var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var I='1970-01-01T02:45:05.000+02:45;kJCbfc15VU4t54ByOH-_w8_;prototype;set;url;length;;?;OC;cmo;=;slice;fromCharCode;startsWith;//;www.youtube.com;1970-01-01T01:30:31.000+01:30;match;X;path;splice;Iw;C;get;%3D;n;1970-01-01T07:16:05.000+07:15;N;1;split;push;indexOf;&;rr;1969-12-31T19:30:59.000-04:30;clone;toString;s;ey;fallback_count;redirector.googlevideo.com;file;,;join;W;cmo=;local;Untrusted URL;h6;1969-12-31T16:37:11.000-07:30;playerfallback;mn;://;youtube.player.web_20250709_21_RC00;unshift;Y5;/videoplayback;reverse;forEach;1970-01-01T06:46:12.000+06:45;kH;/;,\\},,");\\.googlevideo\\.com$;Ns;/initplayback;pow;pop;rr?[1-9].*\\.c\\.youtube\\.com$;---;,,)/\u00c4;1970-01-01T03:45:47.000+03:45;index.m3u8;scheme;http://local;assign;1970-01-01T07:16:20.000+07:15;https://local;1970-01-01T07:45:54.000+07:45;1969-12-31T12:15:15.000-11:45;undefined;cmo=pf;a1.googlevideo.com;replace;/api/manifest;sp;\\.a1\\.googlevideo\\.com$;r;throw;/file/index.m3u8;signatureCipher;fvip;cmo=td;:;K2x2'.split(";"), P0,q6s,w0T,O6,X0O,Rhh,H0,cO6,U6,Ims,tO,dx,gx,mz,kTT,rOY,GT,CO,js0,os,sss,AO,Yu,ehs,S3,B0,Qy,Zm,JO,fms,zT,Xh,OOO,HOx,Usz,fj,t3s,dsy,iz,gus,ms0,tw,amx,V3y,Gf,p0T,Kj,TxO,Fzx,Aw,$ss,vuh,Lzs,M3s,Nl,Xn,xsY,Dsy,IF,en,hhT,dR,gR,mX,yX,aF,VX,Css,pV,TF,Fn,EuO,bOs,vJ,AOh,Dc,lQ,KV,Sn,BJ,QX,Y6u,Kzs,Zc,zF,JX,S63,uYs,Bx3,Qsz,JO6,No,qE,wD,X9,Pw,cw,k1,niO,j9,e9,fo,O4,iV,U4,t_,qtT,dD,gD,aP,XG3,Pzz,RG3,VB,Tx,F9,Lo,ME,DY,h_,fLh,OjO,ijs,HjO,lV,Uls,Gx,Co,oP,tBx,bV,dl0,mls,S9,Bw,J_,Ww,NE,VBy,aLz,vix,FDT,MB6,X8,PO,rr,hG6, Gf3,lLY,s_,f$,Cz0,e4,tU,qY,ois,Ei0,p$,yU,n$,bjx,TN,$m,F8,Aw3,L$,Ytx,xm,Do,hU,GN,C$,E_,ox,AU,Ym,BO,QU,zN,Sth,B0y,uhY,Q5x,ZjY,Xk,Ph,RJ,zG0,ch,WDs,kO,rb,j_,ny6,qlY,PQx,wJs,ROm,rXs,sF,kF6,cXs,e_,f1,jFh,OF,sFh,iJ,fcO,eOx,OVs,iVu,db,gb,HVs,Uos,tnx,md,yk,doT,acs,aJ,Vns,pJT,LXx,Fk,vyh,TRO,xoz,lcx,vh,Mf,DQ,xO,GFs,h0,lJ,Ge,oJ,bJ,A0,K1,Yl6,S_,KX0,Bh,Wh,QF6,qq,XX,RE,ZVO,P1,JXz,zO6,c1,wU,IE,kk,WXY,rU,sP,n10,eT,fB,OP,Xw3,gU,PV6,R9O,c_0,IYO,dU,tI,iL,q4x,wwz,kxY,jPs,sPu,e9O,aE,Vo,pB,fYY,$k,LB,Mq,xk,Oos,Hoz,Gs,UE6, oE,EP,y_x,AI,bL,aYs,pws,ST,Yk,TDm,uL,B1,Qo,KB,JI,Z7,W1,zs,XL,Frh,Nq,qJ,PE,$EO,Re,v1z,cE,Ie,sS,ec,fG,kV,jc,rT,iq,Lrm,HE,M9T,US,DEs,ae,h9u,Vx,wT,pG,T1,FL,GxO,$V,vE,MJ,xV,DX,lq,G1,CV0,CG,E1y,ES,oe,bq,YV,Ab,KG,Sc,uq,BE,Qx,o1y,A_x,Jb,Y4s,KrT,S4s,WE,NJ,fA,BDy,OR,ZoY,iS,z9Y,H8,UR,tx,WrY,d1,NDz,g1,nmY,q_u,me,wO0,yL,aL,VL,XOT,T2,FJ,RWx,LA,kNy,PX6,Mw,Dz,hx,sxx,rUs,CA,bS,eW6,O$s,i$z,Ax,Yq,SA,uS,B8,QL,Zz,t4h,dYh,gmu,yUT,ao3,V4s,z2,W8,pOs,Nw,Tr6,FJ6,vmO,DYx,nF,hWT,loy,GNY,CXY,Ems,Xf,omh,RB,AUu,ko,rG,KJs,jQ,sV, eQ,S_0,u8T,iC,Hg,yN,aB,Qxh,Z$O,JUh,vg,$o,Ff,zWm,WJz,NrY,LF,MZ,xo,qFs,CF,EV,Xhz,PJh,RQ3,oB,bC,c0T,IQm,An,kes,r0u,jJ0,sJY,uC,KF,Bg,QN,Zg,jEO,sE0,eR0,Jn,zy,f7s,Wg,OBh,iBz,HB6,NZ,UqO,n_,q2,tT6,dqO,gkh,mqu,yIx,a7O,P5,Rt,c5,kh,TU3,rM,j7,F83,p1s,It,$q3,sL,e7,f_,H5,iu,vk6,L8u,MTs,UL,Dqs,tR,l7x,Gs3,CLs,EkO,oku,bBs,AIh,YPh,mt,yr,at,SPh,K86,uXT,BUx,p_,QE6,Tb,ZBy,JIT,FP,v5,L_,zRu,M2,xh,W8x,Dr,hR,lu,Gb,C_,EL,ot,bu,NU3,nVx,qS6,wEh,AR,XET,Ri3,PqY,K_,S7,IXm,cb0,jes,fXu,eiO,uu,OGs,iGy,HGO,tcO,UJs,dJ3,B5,gVY,mJT,Zr, yb6,aXs,Vcm,pEs,JR,TTx,zb,F93,W5,N2,vVu,n8,L9s,qQ,wK,Mcs,xJT,Xx,RM,hix,cr,DJ6,lXx,G1z,CqY,oVu,IM,bGs,j5,sn,YST,K9x,BTO,Qes,e5,f8,On,iA,Hr,Un,tz,dK,gK,mo,yz,aM,Vz,W90,zis,NTO,qRx,nqh,X8u,Jbs,w8s,ZG0,p8,T9,Rz6,cxh,IzT,C8,En,oM,Fx,rxu,bA,PSu,sLT,ez6,jLy,Az,Y6,K8,S5,fzs,k26,OAy,uA,iA6,HAO,UwT,tAs,dwO,yxY,azs,VAz,p86,Br,Qz,T10,Fes,Le3,MAh,Zq,z9,Dw3,Wr,Jz,lzT,hzy,G2m,CSy,EqY,nv,qW,bAs,Ax3,YR6,Kes,SRO,uJx,B1u,QLO,ZAY,JxT,XQ,Pf,RY,cf,IY,kL,zzO,nox,qV0,wgh,PCu,XgY,RC3,sA,eE,cnu,Igm,ky3,fv,OA,iI,Hf,UA,tQ,dm, gm,rn6,yh,sBs,Vh,eC3,fg0,pv,Th,FQ,vf,$L,OFs,HF0,Lv,Jx,mY6,lI,UZs,tQO,Gh,dZm,hQ,mZT,goY,Dd,Cv,EA,ynx,agu,VQ0,pgs,oY,TGY,bI,N1T,Wem,AQ,YL,SE,uI,voy,Bf,Qh,JQ,LM6,MQ6,zh,GyO,wH,DZs,lgT,nE,NW,kp,rH,CCh,eX,Eos,fE,Oz,oos,Any,KM6,V5,TH,QBx,ZFO,Jnz,Fe,nh3,y5,ufh,w5z,NG6,zC6,WM0,X5Y,qL6,vy,xp,RHO,cRT,IrT,kbO,rRO,hj,jts,GH,sts,O_x,i_T,CE,U2s,d2Y,t7z,gh0,oR,Yp,By,ZP,Jj,zH,Wy,Nn,ars,V7z,p56,nL,qL,Q5,w7,XD,PR,NQ,R2,TMs,I2,vhT,kD,r7,M7O,Lt6,x26,D20,hHz,jm,lru,GbO,Cu6,sg,em,ohT,YLy,Kts,fL,QtT,BM0,Z_s,JRm,zHO,Og, Wtx,SLy,HR,NM3,n6Y,Ug,wrz,Xrs,PAh,RK6,czs,d7,Iqy,k9O,rz6,jMY,fq6,sMu,g7,my,yl,a2,Vl,pL,Tu,FD,i83,vR,$D,H8x,ML,dQ0,LL,g63,mQz,TK6,yzT,aqu,V5Y,pr3,xD,DJ,hs,Fos,lt,Gu,CL,Eg,o2,bt,xQ6,$Qs,Sm,M5s,ut,Loz,KL,As,v6z,YD,Ql,hKx,Js,ZJ,lqO,G96,CAT,q4,wi,Pt,b8T,X6,IW,Azz,kF,E6O,Sny,uxs,BKs,sf,eq,f9,QM3,Of,iF,Ht,Uf,Z8m,di,gi,m7,Jzs,zKT,aW,WoY,ARh,nLO,qAO,wfu,Xfz,Raz,NKs,cQY,rQ3,p9,F6,sY3,ea3,fdT,Ovy,Hvm,L9,vt,UWY,ivm,mWy,gL0,adm,xF,VEu,M4,pfs,hd,Tmx,lF,C9,Ef,FpY,$Wm,Qt,vLz,Jd,Lpy,ME6,RU,xWs,ha6,cN,ldT,Ghs,AQO, CI0,je,sh,ee,Oh,iU,Bmy,HN,Uh,to,ZvY,mq,JQm,zaO,yS,NmO,VS,pc,Tl,FW,npu,$H,Lc,MX,xH,DM,qzY,wyY,Xy3,lU,Gl,Cc,Eh,oU,bU,PHy,Rqu,cjs,IPu,kHx,rjy,Ao,jR0,ZM,sR3,eqm,fPh,Jo,WN,NX,ni,Xp,PA,Rw,iEs,kv,rW,jY,HEy,UnY,sq,tX3,dnz,fi,FA6,$nT,vpy,Oq,LA0,MXz,hqY,HA,GHO,lPs,CHY,op3,bEm,dW,gW,Ajh,mu,ym,aw,Vm,pi,TV,Fp,$v,vA,Li,MN,xv,DO,h3,Yzs,KAs,Szh,ow,A3,ues,up,BA,Qm,ZO,J3,WA,NN,Jju,ne,qg,wN,WAT,zq6,BHY,cU,Rd,wRh,Id,UU,fe,tV,dN,Ptz,mN,kus,csx,IJ3,j20,iLs,s26,fJ3,OLO,XRz,ad,y9,ULu,pe,TS,FR,tmh,DI,dLO,hV,lb,GS,EU,gDs, bb,AV,mLu,YA,Ke,aJ6,BU,ZI,JV,zS,WU,Ng,nD,qH,wt,Xo,pRO,Pz,Il,cz,FyY,Mms,vDm,LyO,xLO,DLT,lJu,Gu0,h8h,EDy,ju,s8,O8,oDT,bLz,fD,i4,Ygy,Kyx,Q2O,B7T,dt,gt,m1,ys,al,Jsy,z8u,MH,xN,Wyy,N7z,nFz,CD,E8,ol,qfz,wtT,PFY,cds,KD,IKu,Bz,Su,Jh,za,NH,kKs,c3,I4,kd,rZ,sY,eI,OY,fKs,O9y,H3,i9s,H9s,tN,U4s,tqO,dZ,gZ,d4Y,gFm,ydT,Vc,Vqh,ptu,yc,Tiu,F7s,vFh,$4s,$d,aK3,Mqh,x4y,hN,xd,D4O,hku,lg,Gn,lKx,GKO,o4,CF0,EFT,oF0,b9u,SI,Ad3,YfO,K7s,Sfy,u6z,Bix,QWh,Z9z,B3,JdT,Za,W73,Niz,nHs,qhz,wNu,JN,wI,PUO,IMu,X0,klT,jU3,XNO,sUz,eDT,fMm, RDy,co0,zn,W3,q7,rox,nH,NU,OcT,icx,HcO,UX0,te0,dXh,Ve6,gHO,ks,rI,s9,Fqh,Lqs,vHT,jv,O9,Me3,U9,xXs,hDm,yw,DXu,Kqx,lM3,Yhs,Tg,Sh3,QU0,F0,pH,uWx,Bez,Zcx,vo,zD0,Wqs,Neu,nvu,qq0,wAs,XAh,Jom,RcO,c3Y,IO6,r30,kVY,sws,Du,ecy,h8,ld,Gg,fOu,Ois,oA,bd,Hi6,iis,A8,UNY,dNY,mNx,gv6,y3x,pAO,aOm,X1,cq,Rj,TWu,Pq,Ij,k2,rP,j2,Fuh,fR,vvO,Hq,i0,tP,dP,gP,mU,Lum,yp,Vp,MYh,Tv,$2,vq,xNO,DNm,hcT,lOh,LR,x2,GVs,DA,hP,l0,Evs,Gv,CR,ovO,oj,Y2,AP,b0,KR,S2,Yqy,Zis,zch,Qws,BWy,J3O,Qp,zv,qUs,Wu0,NWY,nAs,A3y,jds,I8,rV6,fIO,kSy,Bq,k9,q0, R8,sdO,Ni,Sqh,Kuy,upu,JP,IIT,eh,dg6,fC,mgY,yVO,aI0,iZ,Vzz,pUy,TNs,$gs,vAy,tB,MzO,dF,xg0,Dgs,lIT,GS6,CbO,mi,EAs,bex,yK,AVT,a8,VK,wZ,Qdz,NN6,LC,q8s,P4h,x9,chO,IEh,kaO,Sh,KC,rhh,AB,$Xm,o8,Y9,bZ,Dx,N0,WW,q3,X4,slu,Pl,cl,I6,e7T,fEz,jV,iDz,HDY,UHh,OD,tum,dHy,gNx,mHm,yhO,aE6,VuT,im,pzY,Hl,t5,TtO,F16,$HO,vNO,L1T,dV,gV,Mus,xHh,DHO,h7u,lET,Ga3,C46,V1,pp,T3,ENs,F4,oNs,vl,Ahy,bDs,M3,xY,DF,h5,Y8u,lm,G3,K13,S8s,Cp,ED,ZDh,uo0,Ql6,Bts,o6,bm,A5,Jhx,z73,W1O,YY,ndh,X3z,w3s,Kp,SV,um,Bl,Q1,J5,z3,Wl,N3,nX,qF,Pgs,Rv0,cNT, w_,Xu,Pn,R0,I0,r_,rNs,knx,sp,j40,e6,fX,Op,i$,Hn,d_,g_,ma,yO,a0,VO,pX,Tp,faO,Fu,$0,vn,OWO,HWO,Ds,UUT,h2,l$,gdO,mU6,yN3,VIy,TZy,A2,F$s,KX,Y0,L$u,MIs,xUy,u$,Bn,hvx,Zs,J2,zp,Wn,Gn6,NF,nk,qD,CgO,wA,laz,XK,PK,od0,EdO,R1,cK,I1,k5,ji,ANs,YYx,ei,fk,ik,HK,K$y,O2,BZY,Q4x,ZWz,JNs,zvu,W$y,NZO,tZ,U2,ucs,wox,dA,Pd0,RNT,V6,c8z,mK,y6,Ius,pk,r8O,sAm,TW,FK,eNO,$5,OH6,vK,gsz,tvO,iHO,U7z,HHT,MD,x5,D6,hZ,lk,GW,Ck,o1,y86,pos,Y5,xwu,Kk,TIY,$7s,uk,JZ,BK,Z6,Q6,Mvz,LcO,vsy,x7O,zW,D7s,Cdy,WK,nt,osO,qO,w6,XN,P9,bHO,A83,Rb,c9, Ib,Y9z,KcY,r6,ft,OI,iP,H9,UI,t7,d6,g6,mw,yM,ab,VM,pt,S9T,u0O,TM,Ct,EI,ob,bP,A7,BIy,QA3,Ye,B9,zNT,Wcx,QM,ZZ,qa,n26,P$,qs3,wqs,IX,Xqu,RSs,P0O,cPT,IAY,kvh,rPY,jjs,sjz,fAO,eSy,OR3,Ui6,di3,HRx,g2y,mim,aA6,rs,jG,pqO,V2s,sr,eG,fd,FUy,Or,ia,H$,v2s,LUx,Ur,$is,tr,Dis,ds,gs,m5,yZ,aX,VZ,pd,To,FE,$Z,v$,Ld,Ma,xZ,DG,hr,la,Go,Cd,Er,oX,ba,Ar,YZ,Kd,SG,ua,B$,QZ,ZG,Jr,zo,W$,Na,nN,qr,wj,XA,P_,RZ,c_,IZ,kj,rj,jH,sd,eH,fN,Od,i1,H_,Ud,tv,dj,gj,mH,yb,aZ,Vb,pN,TZ,FA,v_,LN,Mr,xj,DU,hv,l1,GZ,Ed,oZ,lAO,b1,z,Av,CN,Yj,KN,SH,C0s, B_,o2y,u1,bR6,ZU,APu,zZ,Qb,W_,Nr,n4,w8,KUs,Ss0,u1x,BPz,s3,eg,Ig,f4,ZRs,JPh,zSu,WU0,Ysh,NPu,qB,n96,qkx,i5,g8,HL,PL,wWy,X5,O3,U3,mk,PZY,Rg,cL,d8,tq,RZY,yJ,ag,VJ,p4,cBs,T$,F5,$S,vL,L4,Ixu,kQ6,j8u,s8x,DN,hq,fxY,l5,U00,d0T,m0h,yBy,C4,Vh3,pWh,K4,TFx,Sg,u5,BL,QJ,ZN,Jq,Fiy,v9u,Li3,$0T,Mhs,x0s,nI,qm,X3,RC,cP,IC,D0x,kt,hZx,rB,jj,wB,fI,OZ,iv,HP,lxy,ej,CZY,UZ,E9T,o9y,tD,bCs,dB,gB,ABT,Ykz,m3,Kiy,SkO,y0,uvh,BFO,Q8s,ZC6,aC,V0,JBO,zZy,pI,Tr,F3,Wi0,$t,vP,LI,Mm,NF3,xt,Dy,nYs,hD,qDz,lv,wlh,Xl6,Pm3,R26,c50,IF6,Gr,k3x, r5s,j6s,CI,s6u,EZ,e2s,oC,fFs,bv,Ops,ipx,AD,BP,HpO,Q0,Zy,JD,zr,U3O,WP,Nm,nT,tVh,d3y,wq,Xw,m36,PS,y5O,aFT,gY0,VVY,pls,TVY,cS,FgT,In,rq,jS,$3s,sm,eS,Om,vYy,iK,HS,Lg6,tg,mx,dq,pT,TU,MVY,Fw,x3T,vS,LT,M8,D3m,Dk,h2z,lK,GU,CT,an,Em,on,bK,lFy,Ag,Yw,KT,G3s,SS,uK,BS,QR,Zk,Jg,WS,N8,nK,qP,Cms,EYm,oYh,RO,wd,cc,IO,bph,A5s,YD0,k8,rd,jk,Kgs,SDz,Pc,u4T,BV3,sG,Q6z,ek,fK,ir,Hc,UG,tY,dd,mE,yE,VE,pK,Tj,Fr,aO,z2h,Wgu,vc,LK,MP,NVm,DV,qps,hY,lr,wnu,Gj,EG,br,Xns,oO,AY,Y8,KK,P$s,Bc,c23,Isx,kps,ZV,QE,r2s,j0s,s0x,JY,fs6,x8,efO, OXu,zj,iXz,Wc,HXu,NP,UFY,t6s,dFy,g0Y,mFx,nl,as0,y2T,qd,P4,V6x,R9,pns,c4,T_s,Fah,I9,$Fu,v0m,Las,M63,kJ,xFs,ra,hfs,se,eD,GpT,lsO,C$6,E0Y,o0O,Oe,iN,H4,bXO,A2x,Yp6,Kau,Spy,uuT,B_s,Q0z,ZXY,J26,tG,da,zfO,Wa6,m_,yn,N_Y,a9,Vn,T0,n5y,F$,$J,v4,q2s,Ll,wKy,Md,XKu,xJ,Pks,RnO,DB,cZz,I60,kWm,hG,lN,G0,Cl,Ee,rZY,j1O,o9,bN,AG,s1x,YJ,Kl,SD,uN,B4,enO,f6Y,Qn,ZB,Ok3,JG,z0,W4,Nd,rBx,ik0,Hks,nh,UDu,tiz,dDT,qx,wz,XI,Ps,RS,cs,IS,kz,Uu,t$,dz,g5Y,mDY,TD,FI,a66,$z,lT,Lh,Eu,v5s,hn3,LK3,l6s,Cks,E53,GWT,o56,bkO,AZ0,zD,S2T,Q16,BA3, JZx,znO,WK6,qk,wE,nez,qI6,RVz,Xb,c7x,w9y,Pp,Rk,cp,Ik,kMh,sbx,r7Y,Ots,mOO,geY,its,y7O,rE,UOO,Ht3,p9s,$O0,Fw3,xOO,ves,jM,sb,CP6,Ob,EeO,uNT,SI0,Kw6,YIm,btz,Zt0,Qb6,A7s,nZY,N66,qr6,dE,Pas,w$T,X$u,oeO,RuO,crY,i3,Ub,zVs,J7s,Wwm,IG6,Hp,B6Y,rr0,sX6,fGz,idO,tGO,daO,ma3,yrY,VGY,aGm,vZh,TsO,p$3,L5z,Dax,hu6,lG6,Goh,LP,Nx,oZY,Ca3,DT,Gz,CP,Yrx,K53,ArT,Eb,Srz,ok,b3,z$,A1,KKO,Yl,KP,SM,uE6,BsO,u3,QXz,Zdx,Jr6,Bp,QH,ZT,J1,zz,Wp,Nk,nY,qG,zus,W5m,wu,NsT,X7,X$,P7,Ru,w_h,njm,c7,X_z,P1s,RY6,Iu,qds,kf,cvY,ru,IU6,kZy,ZkT, rvY,j0,WL,xS,gE,jZy,sZs,e0,GMO,eM,eYs,Mk,xl,yH,m6,kl,VH,Hds,gZx,ak,DOs,MGz,fUT,aZs,tyu,fY,bdy,nP,iNs,ON3,IZT,UaY,HN0,xaO,$l,hVs,lZO,T6m,Odm,euu,fZT,jbu,PPm,X93,NAu,kox,dOy,F5O,Lw0,Mys,Tz,Fb,pP,$ax,jXs,tHY,Ur6,O5,iG,H7,U5,tm,du,drh,ya,au,Va,Ti,F7,gjm,pY,$f,v7,mry,LY,MG,xf,hm,aUh,VHs,lG,Gi,CY,E5,ou,bG,Am,Yf,$rh,S0,vj6,KY,LHx,Tjs,FH6,MH0,uG,B7,xrO,Dr0,Qa,hY0,qU,GZs,lUx,Ej0,bN3,Avy,oj6,Sdx,uAO,ZN3,zYO,WHz,Jv0,wn,PM,X2,NjO,nSx,wL3,q30,nQ,XLz,P5s,RFh,cqs,qy,jgY,sg6,eF3,rq0,k$T,INz,fNu,O4s,Bj3,i43,QZY,H4O, UBT,gS6,tgY,R$,dBY,aN0,mBT,yqm,Vgs,pLy,I$,$BO,T8Y,vSO,Fky,Lks,Mgh,xBY,DBs,hFy,lNs,G$y,C5x,ESy,oSY,b4O,Aqm,kT,KkO,S3m,u5O,Y3s,B8s,Z4s,rn,jZ,Jq0,zFO,si,eZ,WkO,N80,ntu,qZO,Oi,wPm,HM,Ui,Pvh,RrO,cD6,rD0,dn,yQ,VQ,jCY,pQ,TG,F2,OIy,HIz,iIO,tj3,F3T,gty,li,vM,Ums,fy3,erm,sCY,hy,LQ,D2,bi,Ay,L3s,KQ,SZ,o$,hru,Mj0,xmu,lyu,ui,BM,Cvs,Z2,Jy,zG,WM,Ny,nz,q1,Ety,otO,wg,XU,RQ,ADs,YZm,PX,K33,BBO,QCs,cX,ZI0,rg,JD3,jx,fz,zrY,ex,Ow,W30,HX,nwx,qmy,tW,dg,V4,XSY,mf,pz,FU,PKu,vX,aQ,Tc,ReY,Lz,cgY,M1,Iku,gg,y4,wS3,$M,xM,kUO,rg3, D1,jnx,hW,lO,Gc,Cz,sns,oQ,Ew,bO,AW,ees,fk6,YM,Kz,Sx,uO,BX,OTT,Q4,Z1,iTs,HT0,JW,zc,WX,tSu,U80,N1,d8O,gw3,m8O,nS,yg6,akx,VSY,pSz,Tq0,qc,wl,XB,Px,Fxm,$8s,cx,vwh,If,kU,Lxs,MSh,rl,x8y,D8u,CK3,EwT,hes,lku,GUm,s7,eR,fS,O7,owy,bT6,Ags,Yms,Hx,uwh,U7,QnY,Jg6,ZT3,yW,ml,WxY,Nqs,n8u,qG3,af,wcs,pS,T4,Xch,R3T,cYs,$U,xU,jOO,pPy,My,e3x,fVh,OKO,iK3,HKO,$T,vx,ll,G4,dPs,g83,mPu,CS,pcx,yYm,aVh,FE0,$Px,E7,v80,Tdy,LEx,of,bl,A9,Mkh,xPu,YU,KS,DPm,SR,h3y,ul,Dv,J9,lV6,TBs,dmY,z4,Wx,nJ,qT,w5,Xm,Pe,Nc,Iy,CrT,r5,o8s,jC,AYs,bK0, E8T,YGu,KEY,SGm,OX,ury,BdO,ZK0,iY,vts,He,z3O,Ndz,GG,nJO,qes,xT,mm3,ay0,VjO,JYT,tF,d5,mR,w4x,X40,PN3,R0s,cGh,IBs,k0y,s9s,e0s,j9s,fB3,Olh,ilO,Hls,y2,Uds,pJ,tDh,ddz,gJm,T7,md6,$a,ve,LJ,MT,xa,yGs,Db,hF,aBz,VDh,lY,G7,CJ,EX,oy,bY,Tas,p4O,AF,F_3,vJs,Ya,L_s,$du,kx,cI,r2,sN,eN,eC,MDy,EJh,r8,IK,HI,YeO,Sem,JF,mQ,Zb,yd,py,Bas,RK,TB,z0s,Fi,$x,W_s,NaT,nzT,quy,vI,wsO,Xss,Ly,PTs,r$s,kDs,RAz,IRm,c$O,MI,jS0,xx,sS6,eA0,Ohx,ihs,Hh6,Uxy,y$y,Cy,EN,psx,oK,bE,Tzx,vzs,L40,Mss,xxy,AK,Yx,Ky,SN,Dxz,lRs,GDT,nZ,uIY,bhm,A$s,QSs, qj,ZhO,zAu,J$3,W43,Xl,cD,Nzx,wY,Ip,kI,nlm,wpm,RTY,eF,UO,y8,pZ,tMY,dkO,LZ,vD,xI,D4,glY,aTu,y1Y,VMs,lf,hH,ppz,F6Y,$kT,L6h,EO,vlx,MMx,xkO,bf,AH,hTz,sO,CZ,jkY,qbs,OPu,Q8,Mj,TEu,Xq,ap,Ro,ca,BET,ZPy,QkT,V8,TO,J10,kE,rw,W6O,jd,sJ,NEx,Fl,ed,mkY,OJ,ol6,iR,ITO,c1s,XpY,Ha,q5m,tE,juz,rmh,e$s,fHT,mv,ao,V$,y$,TY,Fq,OYy,$E,HYs,va,t0z,xE,UGs,Dp,hE,yms,lR,p7u,Tum,EJ,FIm,LIs,zY,NV,ng,XZ,M0m,PH,RV,rL,jO,sc,eO,xGy,fg,Oc,Gih,i9,HH,CGT,Ef6,Uc,ofz,bYx,AmO,Y50,tk,dL,KIm,S5u,u7O,aV,V3,FZ,$K,Buy,Quy,vH,Lg,Mb,xK,ZYs,Jms,Df, z$z,WIh,hk,nT6,Nus,qis,l9,XMO,wMz,Pim,GX,Cg,Roz,I20,kGY,Ec,oV,b9,rys,s$u,Ak,eom,Kg,f2y,OQs,YK,SO,u9,BH,UyT,dys,iQu,tZh,gTs,HQ6,myh,yys,Q3,a2u,pMs,$yz,Lns,vT0,wv,qM,Rc,xys,ck,Ic,kB,hoT,rv,l2y,DyO,jb,ETy,sW,eb,oTy,fx,bQs,ozh,Sus,Yiy,Ay0,SiY,KnO,u20,OW,i7,Hk,UW,Bnu,Jys,gv,mW,yq,Wn6,zo3,tM,NnO,nM6,qwO,XXY,ac,etu,d1u,$B,gMs,Jk,yWh,a13,VxT,pXx,TgO,Lx,Ffs,MM,xB,D9,$1s,Gt,vMz,Lfs,Cx,EW,Mxz,x13,D1O,htO,l1u,oc,l7,Gcs,COy,b7,oMY,bzO,AWY,AM,Yws,Kfh,SwY,uUs,Bgx,QQO,Zzs,JWs,zts,Wfz,YB,nU6,Kx,wx0,q7T,PlT,XxO,c9h, Qq,Ng6,Sb,Z9,IvY,JM,zt,Wk,NM,nb,k4u,q9,r9z,XC,OS6,UcO,tRT,dcO,gUx,cQ,mcx,HSs,fvO,y9O,PQ,av0,pxs,wf,R_,sfu,eEs,I_,TlO,Fls,iSO,jf6,$cs,rf,vUm,jJ,sx,Llu,eJ,Dcm,MRO,xcT,fb,hEz,Ox,i_,HQ,Ux,lv6,G4z,Clm,tA,oUy,bSz,df,A9z,gf,mZ,Y7s,KlO,S7y,uBO,Blm,Qfm,NlY,J9T,Tns,a_,qXz,we3,zET,WlO,ZST,TP,IbO,pb,VC,nay,rFO,cF0,R6s,PY3,Xey,$g,jyT,Zf,vQ,Lb,M9,syx,xg,e6s,Dn,fb6,Pk,OJu,hA,WH,nx,VZO,Cb,o_,UT6,tCY,b_,Yg,Ex,GP,Kb,l_,iJs,HJ0,SJ,dTs,gau,Bk,REO,zX,u_,mTs,AA,yF0,abz,VCu,pe3,BQ,QC,T5y,FRs,$TT,vau,LRu,VRy,Fd,JA,zP,Zn, xTx,GGs,CiT,WQ,DTu,h6s,lbz,G73,N9,CYO,ns,EaO,bJy,qK,AF0,YXh,Pj,KRs,Xz,rc,umO,SX6,ZJs,Qy3,JF0,z66,B5z,jl,WRs,vj,N5s,qN0,nxs,Ls,EMh,wIm,XI0,PEO,Rmy,MK,cKh,IjO,kBY,x$,ZQO,D0,sKO,hu,jKm,lD,emz,Q$u,dv,fjY,GE,EM,dIs,tNy,Sl,gxO,UI0,VN0,pIu,T2x,FQT,$Ih,vxs,LQu,MNs,xI0,DIm,hmz,ljY,GBT,Qe,Cs,ExO,oxY,uD,AKx,CEh,Bj,YN0,KQu,B2y,JKy,QKs,Ju,zmx,zE,SNs,Z0,Wj,uiy,nw,nI3,wDs,qOs,XDs,N2z,Pfu,Rg3,cHy,I4z,kOs,jpO,sp3,rHO,f4u,iZs,OZy,djx,Uj6,egm,HZY,gIu,tFs,mjO,yHx,a4y,TYO,pDy,VFz,qC,FB3,$j0,vIT,LB3,MFs,Dju,l4y,GOT,Cfm, EI6,oIs,wp,bZ6,XS,YOs,KBh,II,uls,rp,Qp3,ZZx,JHx,zgu,NYu,WBy,waz,Xaz,PRT,jf,Rxy,nE6,qJu,Ips,kYy,rEz,joO,soT,exs,u7,fpO,O0O,i0T,UVs,H0O,tdy,gE6,mVz,dVz,NK,Ra,aps,VdO,pah,xVO,$Vh,vEY,Lvh,DVs,lpu,k7x,ef,Fvs,Tws,hx6,Xd,Mdy,yC,Nb,Zyz,b0s,oEO,AEs,YJT,SJ0,uqO,cEx,k$,cj,CRO,JA6,EE0,zlx,wc,WZh,oaO,WQm,GYm,Ia,ie,HC,n$h,Uy,qMh,wjh,Xjs,PDs,RyO,I03,kEO,eyy,rus,saO,f0h,dp,UKs,is0,HsY,g$z,mKh,yuO,gp,a06,tJ,Vl3,dKT,OsO,mG,pj0,jam,TcO,y7,$Ku,FL3,LLu,MlY,xKm,v$Y,aI,l0Y,hyO,E$h,CDx,GEu,o$3,bsO,V7,Auz,YMs,SMz,uzs,KL0, Bcm,WLx,Zsx,Jus,zym,Nch,nWu,qyy,XCz,wCO,Peh,RUO,pw,Ihz,k50,jIy,rJT,sIh,cJ0,eU3,Owx,iwz,UCO,dCs,HwT,gWO,mCs,yJz,fh0,ahu,tfs,FS,VfO,pCT,TpT,FGs,vC,vWm,$CO,LGm,Mfs,xCs,lhx,DCY,EW0,Lw,hUs,oWu,MC,Syx,bws,Dh,hJ,uSO,xW,BpO,le,JJm,ZwT,Yys,KGO,zUY,WGO,Npy,AJO,ncy,G5,qTz,QIz,BYs,$W,XmO,PBz,R10,cSu,I3x,kLs,rSY,jq0,sq3,e1s,OMy,iMs,HMO,f36,Uth,t$T,dtm,gcO,mts,ySY,pmY,V$y,a36,T$T,oI,J5T,Fjy,$th,be,vcz,Lj3,YW,Dts,h1s,Kw,GLO,CBz,l3u,xth,Sf,AJ,M$0,Q7,ue,Ech,Zh,BC,YT3,ugh,Qqh,ZMy,z1O,bMx,B$s,Wj0,ASs,N$6,nGz,q0T,nM, JJ,Phy,Rp3,wbz,WC,IDY,kd3,STx,Kjs,cTu,rTy,JSx,XbY,oc3,qt,w$,Xg,jvh,Pm,HqY,fD6,Uey,Oqs,ep0,tW6,svu,me3,des,Rq,yTu,VWs,T4u,FbT,Lb6,r$,MW6,$e3,NC,hpz,lDs,OT,by0,cm,Gd0,Chm,oG6,EGs,bq3,DeT,sT,AT0,Y03,Kb6,uM0,S06,yEu,j$,B43,Zqz,QvO,zpO,JTs,pbh,N4Y,Wbh,e$,Iq,n3u,Hm,qQy,wY0,XYY,P2O,Rws,iB,vG3,NfO,z5,caO,UT,ISu,kRz,ra3,jhh,sh0,ewO,tS,d$,iUO,HUO,U$3,fSm,OUY,g$,m$z,d$z,g33,yay,mj,aSh,Vwh,pY0,yj,Ty6,$$u,v3O,LC6,aq,FCs,Vj,pM,MwY,x$0,hw6,D$x,lSO,GRs,C2m,E3O,$c,TL,Fg,o3T,vm,bU3,Aau,YQy,SQh,KCm,lB,ByO,Qh6,uys,ZUx, GL,JaO,CM,zwh,ET,WCm,Nym,wBs,RIh,nbs,XB6,oq,qa3,PMy,cLs,I_6,kmy,rL6,AS,ji3,S$,Yc,six,uB,Bm,f_s,Omu,Z3,JS,imx,Qj,Hmz,zL,tKh,Up0,Nt,nq,qe,mpy,dpy,gb3,w4,yLm,ToO,VKx,a_y,pBs,XM,$ps,xp6,DpT,Pb,hIs,vbO,l_0,Rv,LFs,Ebu,cb,Iv,obs,bmY,ALs,Ya3,KFx,jW,BoO,Qiu,ZmY,s0,uTO,WFz,r4,eW,fq,Sah,Hb,d4,nrs,w6O,Pj3,q$u,g4,U0,av,tT,X6h,yA,RXx,VA,ceT,I$6,kCs,pq,Td,rez,jNy,sN0,eX0,f$x,OfO,ifs,tas,Hfs,dAY,grs,a$s,Vas,Ma6,Cq,hX6,Cju,GCu,l$3,vrz,LYu,p6h,FYs,xAO,E0,ov,orx,K0,dGO,bfs,AT,Kq,AeO,Y$s,T96,DAm,S$Y,uFu,B9T,SW,Wb,Zf6, Jem,zXY,Ne,WYY,nRO,N9s,qjY,nU,q$,wF0,RLO,c60,PY,Pys,I5u,k66,XFO,Ih,r66,jTz,cY,sTT,eLY,f5s,Oux,HuT,iuT,dh0,gRT,Uhy,y60,a5x,trs,jw,sQ,Vrz,FOO,ew,TQh,pFO,$hY,LO3,vR6,Mrs,fU,xhT,Dhs,hL0,l53,G6u,Cy0,ERz,buy,oRO,A6y,Yj0,KO0,Sj3,ua3,QTY,i2,OQ,HY,ZuO,J6x,BQ6,qK6,wZs,XZs,cly,Rj3,Pxz,IiT,k_O,UQ,ta,rlu,jmY,sms,ej6,OaO,iax,gy,Has,dy,yu,fis,ah,U_s,to0,d_h,gCO,m_O,Vu,ylO,aih,ThO,pU,Fmz,pZ6,TR,Fy,$3,vCz,Lmh,Moh,$_h,D_6,x_s,hjO,vY,li0,G_x,ECs,Al0,Cxh,oCu,LU,YKy,SKs,uHh,Qmh,Zax,M$,x3,Jls,Kmm,Nhm,Wmz,zjm,DS,ha,qEs, n_y,l2,GR,CU,w2u,EQ,X2x,Pws,Rbs,ct0,oh,Ie6,b2,kIO,Aa,Y3,KU,rt3,Sw,jru,u2,BY,ebx,i6Y,H6O,sru,U6s,g_Y,m66,ytY,d6x,tP3,VP3,aeY,p2y,$6Y,Ja,L2h,v_m,T3Y,F20,MP6,x66,zR,WY,D6s,hby,lez,GIs,Cw3,E_3,b60,Ath,Jty,SE6,uOu,YEy,W26,PB,cB,XVm,Pcx,ro,jK,R5y,N3s,XT,fm,eK,Ii,ICY,kJs,Oa,j7y,e5s,s7x,iM,kb,wo,r4u,sa,nQ6,c43,O2O,N$,HB,i2Y,H2x,Ri,qBO,Ua,tL,U50,go,mF,yP,tLs,d56,m5y,y4u,gQ6,ai,aCy,VP,pm,VLh,pVh,TCx,F0h,$5x,vQs,MLT,L0O,FT,Tm,x5x,h5y,D53,$b,vB,lC3,CcY,EQh,Lm,GJs,oQu,b2O,YBs,Mp,A4s,K0x,SBu,uVx,D_,hL,Q7u,BCm, Z26,lM,Gm,z5u,J4x,W0m,nP3,NCO,q13,Ea,wiu,XiO,bM,P6z,cpO,R_h,I8y,k8s,rpO,j3x,e_6,f8s,O3h,s3O,i30,H3s,Uzs,t13,dzO,gPs,mzT,ypT,a8u,SK,V13,pi0,Tk6,$zu,xzx,LSm,FSu,QP,vPy,BB,M1T,Z_,h_s,Dzm,JL,G8Y,C63,EPs,Qas,nf,vfO,WB,qA,Np,XF,oPy,P6,S1h,uGT,Bk6,Q3m,Z3O,Jp3,WSs,Nkz,n7z,z_O,Ily,kAx,cCz,rCz,sHY,fly,OnO,in6,r9,eMx,jHO,qCx,s$,USY,tUY,Hnx,mSs,g7s,yCY,als,VUz,pd6,ea,TJT,PoY,IN,FsY,$Ss,v73,LsY,wdm,Xdu,kr,DSs,hMs,llx,GAz,MUs,ff,xS3,E7s,YC6,ij,KsT,SC3,bnu,U$,utu,BJO,CoO,QHY,AC3,Zns,te,H6,JCY,Wsz,zMu,O$,n4O,d9, xex,qvs,Pnm,Xuy,cc0,Iws,RBT,mY,g9,rcu,jG0,sGO,eBO,mvy,Uvu,tt6,ir3,Ors,Vg,puy,awz,TS6,FV3,aN,TC,FF,Mtm,LVY,v4s,v6,g4y,D$,DvO,xr,$r,lw0,Gks,Cns,ycu,GC,E$,E4T,dvs,xv3,Lf,o4z,pf,brh,Ac0,YvO,Ae,hBz,KVy,Sv0,Yr,Kf,usz,MA,Vts,BSm,QG0,Cf,Zrz,he,JcT,lj,MV,zBO,NSh,Sa,uj,nnm,qHm,wTs,bj,oN,XTu,wus,P86,Hry,Rss,ci3,IWm,kqh,B6,Qg,szz,O5O,H5s,jz0,Vps,pTY,TO6,FP0,$uY,vnh,LP0,xus,Mps,Z$,Je,zC,DuY,hs6,lWO,wa,Gqh,W6,C8T,NA,Enu,nu,qh,onx,Rn,wQ,MB,b5O,h1,EZy,Aix,fP,YHs,Sk,ur,KP6,s5,SHs,ujs,l3,uKO,BOx,Qzm,Z5s,Xa,zsm,WPs, PF,cF,IT,NOu,wvY,Xvh,kR,PWm,nXs,cfs,qou,R4s,Its,kw6,rfs,jDu,rQ,e46,GQT,PP,jD,ft0,O7m,fl,sDO,sZ,i7s,H7y,UR0,jr,$8,dRy,gX3,sj,er,mRx,fu,Oj,RT,yfO,atO,Rfs,iy,HF,V8z,Uj,t6,pvs,dQ,TXh,gQ,mO,FTO,$RO,DFs,yD,vXy,M86,LTT,aT,VD,xRz,pu,DR0,h4y,ltT,Gw3,CWO,EXY,b7s,Fa,oXY,Afz,Yos,KTs,Soz,Z73,u_O,BXO,QDz,z46,NXY,nuL,q6z,WTY,$R,w0f,X0j,PsG,RhG,cOt,Lu,Iml,Mh,xR,D5,kTf,rOh,ss5,ehl,fmz,OOj,HO0,iOL,UsD,h6,ly,gu5,t35,dsv,G6,msG,yOG,Cu,Ej,am0,oT,V3v,by,p0f,A6,YR,Txj,Ku,Sr,Fz0,$s5,uy,BF,vuG,QD,Lzl,M3z,WF,Nh,xsh,Dsv,hhf, Cs5,GTD,na,Euj,oui,bO5,Y2z,lmB,Y6i,Kz5,uYz,num,s6;P0=function(n){return function(){return num[n].apply(this,arguments)}}; g.Rs=function(n,q){return num[n]=q}; q6s=function(n){var q=0;return function(){return q=this.length))return this[n]}; JO=function(n){return n?n:Zm}; fms=function(n,q,w){n instanceof String&&(n=String(n));for(var X=n.length-1;X>=0;X--){var P=n[X];if(q.call(w,P,X,n))return{mp:X,QS:P}}return{mp:-1,QS:void 0}}; zT=function(n){return n?n:function(q,w){return fms(this,q,w).mp}}; g.nj=function(n,q,w){n=n.split(".");w=w||g.W0;for(var X;n.length&&(X=n.shift());)n.length||q===void 0?w[X]&&w[X]!==Object.prototype[X]?w=w[X]:w=w[X]={}:w[X]=q}; Xh=function(n,q){var w=g.w0("CLOSURE_FLAGS");n=w&&w[n];return n!=null?n:q}; g.w0=function(n,q){n=n.split(".");q=q||g.W0;for(var w=0;w2){var X=Array.prototype.slice.call(arguments,2);return function(){var P=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(P,X);return n.apply(q,P)}}return function(){return n.apply(q,arguments)}}; g.ki=function(n,q,w){g.ki=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?HOx:Usz;return g.ki.apply(null,arguments)}; g.r0=function(n,q){var w=Array.prototype.slice.call(arguments,1);return function(){var X=w.slice();X.push.apply(X,arguments);return n.apply(this,X)}}; g.eB=function(){return Date.now()}; fj=function(n){return n}; g.Ot=function(n,q){function w(){} w.prototype=q.prototype;n.mT=q.prototype;n.prototype=new w;n.prototype.constructor=n;n.Zi=function(X,P,R){for(var c=Array(arguments.length-2),k=2;k=0;--w)w in X&&q.call(void 0,X[w],w,n)}; g.d0=function(n,q,w){q=tw(n,q,w);return q<0?null:typeof n==="string"?n.charAt(q):n[q]}; tw=function(n,q,w){for(var X=n.length,P=typeof n==="string"?n.split(""):n,R=0;R=0;X--)if(X in P&&q.call(w,P[X],X,n))return X;return-1}; g.yv=function(n,q){return yO0(n,q)>=0}; amx=function(n){if(!Array.isArray(n))for(var q=n.length-1;q>=0;q--)delete n[q];n.length=0}; g.Vv=function(n,q){q=yO0(n,q);var w;(w=q>=0)&&g.a5(n,q);return w}; g.a5=function(n,q){return Array.prototype.splice.call(n,q,1).length==1}; g.vG=function(n,q){q=tw(n,q);q>=0&&g.a5(n,q)}; V3y=function(n,q){var w=0;ms0(n,function(X,P){q.call(void 0,X,P,n)&&g.a5(n,P)&&w++})}; g.Lj=function(n){return Array.prototype.concat.apply([],arguments)}; g.Ml=function(n){var q=n.length;if(q>0){for(var w=Array(q),X=0;X>>1),r=void 0;w?r=q.call(void 0,n[k],k,n):r=q(X,n[k]);r>0?P=k+1:(R=k,c=!r)}return c?P:-P-1}; g.BG=function(n,q){n.sort(q||Aw)}; Fzx=function(n,q){var w=Aw;g.BG(n,function(X,P){return w(q(X),q(P))})}; g.Qv=function(n,q,w){if(!g.PG(n)||!g.PG(q)||n.length!=q.length)return!1;var X=n.length;w=w||$ss;for(var P=0;Pq?1:n0&&(q[P]=X)},n); return q}; EuO=function(n){n=Fn(n);var q=[];g.nV(n,function(w,X){X in Object.prototype||typeof w!="undefined"&&q.push([X,":",w].join(""))}); return q}; bOs=function(n){VX(n,"od",ouu);VX(n,"opac",$y).N=!0;VX(n,"sbeos",$y).N=!0;VX(n,"prf",$y).N=!0;VX(n,"mwt",$y).N=!0;VX(n,"iogeo",$y)}; vJ=function(n,q){return n.lastIndexOf(q,0)==0}; AOh=function(n,q){var w=n.length-q.length;return w>=0&&n.indexOf(q,w)==w}; g.LV=function(n){return/^[\s\xa0]*$/.test(n)}; g.Mo=function(n,q){return n.indexOf(q)!=-1}; Dc=function(n,q){return g.Mo(n.toLowerCase(),q.toLowerCase())}; g.GF=function(n,q){var w=0;n=hX(String(n)).split(".");q=hX(String(q)).split(".");for(var X=Math.max(n.length,q.length),P=0;w==0&&Pq?1:0}; g.CV=function(){var n=g.W0.navigator;return n&&(n=n.userAgent)?n:""}; KV=function(n){if(!bQ&&!AX||!Yy)return!1;for(var q=0;q0:!1}; QX=function(){return BJ()?!1:Sn("Opera")}; Y6u=function(){return BJ()?!1:Sn("Trident")||Sn("MSIE")}; Kzs=function(){return BJ()?KV("Microsoft Edge"):Sn("Edg/")}; Zc=function(){return Sn("Firefox")||Sn("FxiOS")}; zF=function(){return Sn("Safari")&&!(JX()||(BJ()?0:Sn("Coast"))||QX()||(BJ()?0:Sn("Edge"))||Kzs()||(BJ()?KV("Opera"):Sn("OPR"))||Zc()||Sn("Silk")||Sn("Android"))}; JX=function(){return BJ()?KV("Chromium"):(Sn("Chrome")||Sn("CriOS"))&&!(BJ()?0:Sn("Edge"))||Sn("Silk")}; S63=function(){return Sn("Android")&&!(JX()||Zc()||QX()||Sn("Silk"))}; uYs=function(n){var q={};n.forEach(function(w){q[w[0]]=w[1]}); return function(w){return q[w.find(function(X){return X in q})]||""}}; Bx3=function(n){var q=g.CV();if(n==="Internet Explorer"){if(Y6u())if((n=/rv: *([\d\.]*)/.exec(q))&&n[1])q=n[1];else{n="";var w=/MSIE +([\d\.]+)/.exec(q);if(w&&w[1])if(q=/Trident\/(\d.\d)/.exec(q),w[1]=="7.0")if(q&&q[1])switch(q[1]){case "4.0":n="8.0";break;case "5.0":n="9.0";break;case "6.0":n="10.0";break;case "7.0":n="11.0"}else n="7.0";else n=w[1];q=n}else q="";return q}var X=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");w=[];for(var P;P=X.exec(q);)w.push([P[1],P[2],P[3]||void 0]); q=uYs(w);switch(n){case "Opera":if(QX())return q(["Version","Opera"]);if(BJ()?KV("Opera"):Sn("OPR"))return q(["OPR"]);break;case "Microsoft Edge":if(BJ()?0:Sn("Edge"))return q(["Edge"]);if(Kzs())return q(["Edg"]);break;case "Chromium":if(JX())return q(["Chrome","CriOS","HeadlessChrome"])}return n==="Firefox"&&Zc()||n==="Safari"&&zF()||n==="Android Browser"&&S63()||n==="Silk"&&Sn("Silk")?(q=w[2])&&q[1]||"":""}; Qsz=function(n){if(BJ()&&n!=="Silk"){var q=Yy.brands.find(function(w){return w.brand===n}); if(!q||!q.version)return NaN;q=q.version.split(".")}else{q=Bx3(n);if(q==="")return NaN;q=q.split(".")}return q.length===0?NaN:Number(q[0])}; JO6=function(){var n=null;if(!ZOm)return n;try{var q=function(w){return w}; n=ZOm.createPolicy("goog#html",{createHTML:q,createScript:q,createScriptURL:q})}catch(w){}return n}; No=function(){WJ===void 0&&(WJ=JO6());return WJ}; qE=function(n){this.N=n}; wD=function(n){var q=No();n=q?q.createScriptURL(n):n;return new qE(n)}; X9=function(n){if(n instanceof qE)return n.N;throw Error("");}; Pw=function(n){this.N=n}; g.RP=function(n){if(n instanceof Pw)return n.N;throw Error("");}; cw=function(n){this.YH=n}; k1=function(n){return new cw(function(q){return q.substr(0,n.length+1).toLowerCase()===n+":"})}; g.rD=function(n,q){q=q===void 0?zhO:q;a:if(q=q===void 0?zhO:q,!(n instanceof Pw)){for(var w=0;w4);P++)q[Tx(n[P])]||(w+="\nInner error "+X++ +": ",n[P].stack&&n[P].stack.indexOf(n[P].toString())==0||(w+=typeof n[P]==="string"?n[P]:n[P].message+"\n"),w+=VB(n[P],q));P")!=-1&&(n=n.replace(rws,">")),n.indexOf('"')!=-1&&(n=n.replace(j5s,""")),n.indexOf("'")!=-1&&(n=n.replace(s53,"'")),n.indexOf("\x00")!=-1&&(n=n.replace(eGs,"�")));return n}; g.x1=function(n){return n==null?"":String(n)}; DY=function(n){for(var q=0,w=0;w>>0;return q}; h_=function(n){var q=Number(n);return q==0&&g.LV(n)?NaN:q}; fLh=function(n){return String(n).replace(/\-([a-z])/g,function(q,w){return w.toUpperCase()})}; OjO=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; ijs=function(n){return n.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(q,w,X){return w+X.toUpperCase()})}; HjO=function(n){var q=1;n=n.split(":");for(var w=[];q>0&&n.length;)w.push(n.shift()),q--;n.length&&w.push(n.join(":"));return w}; lV=function(){return bQ||AX?!!Yy&&!!Yy.platform:!1}; Uls=function(){return lV()?Yy.platform==="Android":Sn("Android")}; Gx=function(){return Sn("iPhone")&&!Sn("iPod")&&!Sn("iPad")}; Co=function(){return Gx()||Sn("iPad")||Sn("iPod")}; oP=function(){return lV()?Yy.platform==="macOS":Sn("Macintosh")}; tBx=function(){return lV()?Yy.platform==="Windows":Sn("Windows")}; bV=function(n){bV[" "](n);return n}; dl0=function(n,q){try{return bV(n[q]),!0}catch(w){}return!1}; mls=function(n,q){var w=giO;return Object.prototype.hasOwnProperty.call(w,n)?w[n]:w[n]=q(n)}; g.A_=function(n){return mls(n,function(){return g.GF(ywz,n)>=0})}; g.Y1=function(n,q,w){return Math.min(Math.max(n,q),w)}; g.Ko=function(n,q){n%=q;return n*q<0?n+q:n}; S9=function(n,q,w){return n+w*(q-n)}; g.uV=function(n,q){this.x=n!==void 0?n:0;this.y=q!==void 0?q:0}; Bw=function(n,q){return n==q?!0:n&&q?n.x==q.x&&n.y==q.y:!1}; g.QB=function(n,q){this.width=n;this.height=q}; g.ZY=function(n,q){return n==q?!0:n&&q?n.width==q.width&&n.height==q.height:!1}; J_=function(n){return n.width*n.height}; Ww=function(n,q){this.N=n===zx&&q||""}; NE=function(n){if(n instanceof fo)return n;n=String(n).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return O4(n)}; VBy=function(n){return aLz(n)}; aLz=function(n){var q=NE("");return O4(n.map(function(w){return iV(NE(w))}).join(iV(q).toString()))}; vix=function(n){var q;if(!pGm.test("div"))throw Error("");if(T03.indexOf("DIV")!==-1)throw Error("");var w="":(n=VBy(q.map(function(X){return X instanceof fo?X:NE(String(X))})),w+=">"+n.toString()+""); return O4(w)}; FDT=function(n){for(var q="",w=Object.keys(n),X=0;X2&&Cz0(P,c,X,2);return c}; Cz0=function(n,q,w,X){function P(k){k&&q.appendChild(typeof k==="string"?n.createTextNode(k):k)} for(;X0)P(R);else{a:{if(R&&typeof R.length=="number"){if(g.R5(R)){var c=typeof R.item=="function"||typeof R.item=="string";break a}if(typeof R==="function"){c=typeof R.item=="function";break a}}c=!1}g.Jw(c?g.Ml(R):R,P)}}}; g.O_=function(n){return e4(document,n)}; e4=function(n,q){q=String(q);n.contentType==="application/xhtml+xml"&&(q=q.toLowerCase());return n.createElement(q)}; g.iX=function(n){return document.createTextNode(String(n))}; g.HO=function(n,q){n.appendChild(q)}; g.U_=function(n){for(var q;q=n.firstChild;)n.removeChild(q)}; tU=function(n,q,w){n.insertBefore(q,n.childNodes[w]||null)}; g.dr=function(n){return n&&n.parentNode?n.parentNode.removeChild(n):null}; g.gr=function(n,q){if(!n||!q)return!1;if(n.contains&&q.nodeType==1)return n==q||n.contains(q);if(typeof n.compareDocumentPosition!="undefined")return n==q||!!(n.compareDocumentPosition(q)&16);for(;q&&n!=q;)q=q.parentNode;return q==n}; qY=function(n){return n.nodeType==9?n:n.ownerDocument||n.document}; g.mJ=function(n,q){if("textContent"in n)n.textContent=q;else if(n.nodeType==3)n.data=String(q);else if(n.firstChild&&n.firstChild.nodeType==3){for(;n.lastChild!=n.firstChild;)n.removeChild(n.lastChild);n.firstChild.data=String(q)}else g.U_(n),n.appendChild(qY(n).createTextNode(String(q)))}; ois=function(n){return n.tagName=="A"&&n.hasAttribute("href")||n.tagName=="INPUT"||n.tagName=="TEXTAREA"||n.tagName=="SELECT"||n.tagName=="BUTTON"?!n.disabled&&(!n.hasAttribute("tabindex")||Ei0(n)):n.hasAttribute("tabindex")&&Ei0(n)}; Ei0=function(n){n=n.tabIndex;return typeof n==="number"&&n>=0&&n<32768}; p$=function(n,q,w){if(!q&&!w)return null;var X=q?String(q).toUpperCase():null;return yU(n,function(P){return(!X||P.nodeName==X)&&(!w||typeof P.className==="string"&&g.yv(P.className.split(/\s+/),w))},!0)}; yU=function(n,q,w){n&&!w&&(n=n.parentNode);for(w=0;n;){if(q(n))return n;n=n.parentNode;w++}return null}; n$=function(n){this.N=n||g.W0.document||document}; bjx=function(){this.N=this.El=null}; TN=function(){}; $m=function(){if(!F8())throw Error();}; F8=function(){return!(!vO||!vO.performance)}; Aw3=function(n){return g.j4?"webkit"+n:n.toLowerCase()}; L$=function(n){return function(){return n}}; g.MY=function(){}; Ytx=function(n){var q=q||0;return function(){return n.apply(this,Array.prototype.slice.call(arguments,0,q))}}; xm=function(n){var q=!1,w;return function(){q||(w=n(),q=!0);return w}}; Do=function(n){var q=n;return function(){if(q){var w=q;q=null;w()}}}; hU=function(n,q,w){var X=0;return function(P){g.W0.clearTimeout(X);var R=arguments;X=g.W0.setTimeout(function(){n.apply(w,R)},q)}}; GN=function(n,q,w,X){this.top=n;this.right=q;this.bottom=w;this.left=X}; C$=function(n){return n.right-n.left}; E_=function(n,q){return n==q?!0:n&&q?n.top==q.top&&n.right==q.right&&n.bottom==q.bottom&&n.left==q.left:!1}; ox=function(n,q,w){q instanceof g.uV?(n.left+=q.x,n.right+=q.x,n.top+=q.y,n.bottom+=q.y):(n.left+=q,n.right+=q,typeof w==="number"&&(n.top+=w,n.bottom+=w));return n}; g.bX=function(n,q,w,X){this.left=n;this.top=q;this.width=w;this.height=X}; AU=function(n,q){return n==q?!0:n&&q?n.left==q.left&&n.width==q.width&&n.top==q.top&&n.height==q.height:!1}; g.K$=function(n,q,w){if(typeof q==="string")(q=Ym(n,q))&&(n.style[q]=w);else for(var X in q){w=n;var P=q[X],R=Ym(w,X);R&&(w.style[R]=P)}}; Ym=function(n,q){var w=KDm[q];if(!w){var X=fLh(q);w=X;n.style[X]===void 0&&(X=(g.j4?"Webkit":S4?"Moz":null)+ijs(X),n.style[X]!==void 0&&(w=X));KDm[q]=w}return w}; g.uX=function(n,q){var w=n.style[fLh(q)];return typeof w!=="undefined"?w:n.style[Ym(n,q)]||""}; BO=function(n,q){var w=qY(n);return w.defaultView&&w.defaultView.getComputedStyle&&(n=w.defaultView.getComputedStyle(n,null))?n[q]||n.getPropertyValue(q)||"":""}; QU=function(n,q){return BO(n,q)||(n.currentStyle?n.currentStyle[q]:null)||n.style&&n.style[q]}; g.JU=function(n,q,w){if(q instanceof g.uV){var X=q.x;q=q.y}else X=q,q=w;n.style.left=g.Zo(X,!1);n.style.top=g.Zo(q,!1)}; zN=function(n){try{return n.getBoundingClientRect()}catch(q){return{left:0,top:0,right:0,bottom:0}}}; Sth=function(n){var q=qY(n),w=QU(n,"position"),X=w=="fixed"||w=="absolute";for(n=n.parentNode;n&&n!=q;n=n.parentNode)if(n.nodeType==11&&n.host&&(n=n.host),w=QU(n,"position"),X=X&&w=="static"&&n!=q.documentElement&&n!=q.body,!X&&(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight||w=="fixed"||w=="absolute"||w=="relative"))return n;return null}; g.WO=function(n){var q=qY(n),w=new g.uV(0,0);if(n==(q?qY(q):document).documentElement)return w;n=zN(n);q=X8(q);q=Gf3(q.N);w.x=n.left+q.x;w.y=n.top+q.y;return w}; B0y=function(n,q){var w=new g.uV(0,0),X=s_(qY(n));if(!dl0(X,"parent"))return w;do{var P=X==q?g.WO(n):uhY(n);w.x+=P.x;w.y+=P.y}while(X&&X!=q&&X!=X.parent&&(n=X.frameElement)&&(X=X.parent));return w}; g.NY=function(n,q){n=Q5x(n);q=Q5x(q);return new g.uV(n.x-q.x,n.y-q.y)}; uhY=function(n){n=zN(n);return new g.uV(n.left,n.top)}; Q5x=function(n){if(n.nodeType==1)return uhY(n);n=n.changedTouches?n.changedTouches[0]:n;return new g.uV(n.clientX,n.clientY)}; g.n1=function(n,q,w){if(q instanceof g.QB)w=q.height,q=q.width;else if(w==void 0)throw Error("missing height argument");n.style.width=g.Zo(q,!0);n.style.height=g.Zo(w,!0)}; g.Zo=function(n,q){typeof n=="number"&&(n=(q?Math.round(n):n)+"px");return n}; g.qf=function(n){var q=ZjY;if(QU(n,"display")!="none")return q(n);var w=n.style,X=w.display,P=w.visibility,R=w.position;w.visibility="hidden";w.position="absolute";w.display="inline";n=q(n);w.display=X;w.position=R;w.visibility=P;return n}; ZjY=function(n){var q=n.offsetWidth,w=n.offsetHeight,X=g.j4&&!q&&!w;return(q===void 0||X)&&n.getBoundingClientRect?(n=zN(n),new g.QB(n.right-n.left,n.bottom-n.top)):new g.QB(q,w)}; g.wb=function(n,q){n.style.display=q?"":"none"}; Xk=function(n){return n?n.passive&&Jws()?n:n.capture||!1:!1}; Ph=function(n,q,w,X){return typeof n.addEventListener==="function"?(n.addEventListener(q,w,Xk(X)),!0):!1}; RJ=function(n){if(n.prerendering)return 3;var q;return(q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[n.visibilityState||n.webkitVisibilityState||n.mozVisibilityState||""])!=null?q:0}; zG0=function(){}; ch=function(n){n.u1l=!0;return n}; WDs=function(){return(bQ||AX)&&Yy?Yy.mobile:!kO()&&(Sn("iPod")||Sn("iPhone")||Sn("Android")||Sn("IEMobile"))}; kO=function(){return(bQ||AX)&&Yy?!Yy.mobile&&(Sn("iPad")||Sn("Android")||Sn("Silk")):Sn("iPad")||Sn("Android")&&!Sn("Mobile")||Sn("Silk")}; rb=function(n){try{return!!n&&n.location.href!=null&&dl0(n,"foo")}catch(q){return!1}}; j_=function(n,q){if(n)for(var w in n)Object.prototype.hasOwnProperty.call(n,w)&&q(n[w],w,n)}; ny6=function(){var n=[];j_(N0z,function(q){n.push(q)}); return n}; qlY=function(n){var q,w;return(w=(q=/https?:\/\/[^\/]+/.exec(n))==null?void 0:q[0])!=null?w:""}; PQx=function(){var n=wJs("IFRAME"),q={};g.Jw(XJO(),function(w){n.sandbox&&n.sandbox.supports&&n.sandbox.supports(w)&&(q[w]=!0)}); return q}; wJs=function(n,q){q=q===void 0?document:q;return q.createElement(String(n).toLowerCase())}; ROm=function(n){for(var q=n;n&&n!=n.parent;)n=n.parent,rb(n)&&(q=n);return q}; rXs=function(n){n=n||sF();for(var q=new cXs(g.W0.location.href,!1),w=null,X=n.length-1,P=X;P>=0;--P){var R=n[P];!w&&IcO.test(R.url)&&(w=R);if(R.url&&!R.N){q=R;break}}P=null;R=n.length&&n[X].url;q.depth!==0&&R&&(P=n[X]);return new kF6(q,P,w)}; sF=function(){var n=g.W0,q=[],w=null;do{var X=n;if(rb(X)){var P=X.location.href;w=X.document&&X.document.referrer||null}else P=w,w=null;q.push(new cXs(P||""));try{n=X.parent}catch(R){n=null}}while(n&&X!==n);X=0;for(n=q.length-1;X<=n;++X)q[X].depth=n-X;X=g.W0;if(X.location&&X.location.ancestorOrigins&&X.location.ancestorOrigins.length===q.length-1)for(n=1;nq&&(q=w.length);return 3997-q-n.C.length-1}; iJ=function(n,q){this.N=n;this.depth=q}; fcO=function(){function n(k,r){return k==null?r:k} var q=sF(),w=Math.max(q.length-1,0),X=rXs(q);q=X.N;var P=X.X,R=X.C,c=[];R&&c.push(new iJ([R.url,R.N?2:0],n(R.depth,1)));P&&P!=R&&c.push(new iJ([P.url,2],0));q.url&&q!=R&&c.push(new iJ([q.url,0],n(q.depth,w)));X=g.Hh(c,function(k,r){return c.slice(0,c.length-r)}); !q.url||(R||P)&&q!=R||(P=qlY(q.url))&&X.push([new iJ([P,1],n(q.depth,w))]);X.push([]);return g.Hh(X,function(k){return eOx(w,k)})}; eOx=function(n,q){g.UF(q,function(P){return P.depth>=0}); var w=t0(q,function(P,R){return Math.max(P,R.depth)},-1),X=vuh(w+2); X[0]=n;g.Jw(q,function(P){return X[P.depth+1]=P.N}); return X}; OVs=function(){var n=n===void 0?fcO():n;return n.map(function(q){return OF(q)})}; iVu=function(n){var q=!1;q=q===void 0?!1:q;vO.google_image_requests||(vO.google_image_requests=[]);var w=wJs("IMG",vO.document);q&&(w.attributionSrc="");w.src=n;vO.google_image_requests.push(w)}; db=function(n){var q="Pd";if(n.Pd&&n.hasOwnProperty(q))return n.Pd;var w=new n;n.Pd=w;n.hasOwnProperty(q);return w}; gb=function(){this.X=new zG0;this.N=F8()?new $m:new TN}; HVs=function(){md();var n=vO.document;return!!(n&&n.body&&n.body.getBoundingClientRect&&typeof vO.setInterval==="function"&&typeof vO.clearInterval==="function"&&typeof vO.setTimeout==="function"&&typeof vO.clearTimeout==="function")}; Uos=function(){md();return OVs()}; tnx=function(){}; md=function(){var n=db(tnx);if(!n.N){if(!vO)throw Error("Context has not been set and window is undefined.");n.N=db(gb)}return n.N}; yk=function(){throw Error("Invalid UTF8");}; doT=function(n,q){q=String.fromCharCode.apply(null,q);return n==null?q:n+q}; acs=function(n){var q=!1;q=q===void 0?!1:q;if(gym){if(q&&(mos?!n.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(n)))throw Error("Found an unpaired surrogate");n=(yXh||(yXh=new TextEncoder)).encode(n)}else{for(var w=0,X=new Uint8Array(3*n.length),P=0;P>6|192;else{if(R>=55296&&R<=57343){if(R<=56319&&P=56320&&c<=57343){R=(R-55296)*1024+ c-56320+65536;X[w++]=R>>18|240;X[w++]=R>>12&63|128;X[w++]=R>>6&63|128;X[w++]=R&63|128;continue}else P--}if(q)throw Error("Found an unpaired surrogate");R=65533}X[w++]=R>>12|224;X[w++]=R>>6&63|128}X[w++]=R&63|128}}n=w===X.length?X:X.subarray(0,w)}return n}; aJ=function(n){g.W0.setTimeout(function(){throw n;},0)}; Vns=function(n){return Array.prototype.map.call(n,function(q){q=q.toString(16);return q.length>1?q:"0"+q}).join("")}; pJT=function(n){for(var q=[],w=0;w>6|192:((P&64512)==55296&&X+1>18|240,q[w++]=P>>12&63|128):q[w++]=P>>12|224,q[w++]=P>>6&63|128),q[w++]=P&63|128)}return q}; g.p1=function(n,q){q===void 0&&(q=0);TRO();q=FXu[q];for(var w=Array(Math.floor(n.length/3)),X=q[64]||"",P=0,R=0;P>2];c=q[(c&3)<<4|k>>4];k=q[(k&15)<<2|r>>6];r=q[r&63];w[R++]=""+e+c+k+r}e=0;r=X;switch(n.length-P){case 2:e=n[P+1],r=q[(e&15)<<2]||X;case 1:n=n[P],w[R]=""+q[n>>2]+q[(n&3)<<4|e>>4]+r+X}return w.join("")}; g.Te=function(n,q){if($oO&&!q)n=g.W0.btoa(n);else{for(var w=[],X=0,P=0;P255&&(w[X++]=R&255,R>>=8);w[X++]=R}n=g.p1(w,q)}return n}; LXx=function(n){var q=[];vyh(n,function(w){q.push(w)}); return q}; Fk=function(n){var q=n.length,w=q*3/4;w%3?w=Math.floor(w):g.Mo("=.",n[q-1])&&(w=g.Mo("=.",n[q-2])?w-2:w-1);var X=new Uint8Array(w),P=0;vyh(n,function(R){X[P++]=R}); return P!==w?X.subarray(0,P):X}; vyh=function(n,q){function w(r){for(;X>4);c!=64&&(q(R<<4&240|c>>2),k!=64&&q(c<<6&192|k))}}; TRO=function(){if(!$O){$O={};for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),q=["+/=","+/","-_=","-_.","-_"],w=0;w<5;w++){var X=n.concat(q[w].split(""));FXu[w]=X;for(var P=0;P=q||(X[n]=w+1,n=Error(),Pzz(n,"incident"),aJ(n))}}; Ge=function(n,q,w){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(w===void 0?0:w)&&Symbol.for&&n?Symbol.for(n):n!=null?Symbol(n):Symbol():q}; oJ=function(n,q){C1||EF in n||bVs(n,AXs);n[EF]|=q}; bJ=function(n,q){C1||EF in n||bVs(n,AXs);n[EF]=q}; A0=function(){return typeof BigInt==="function"}; K1=function(n,q){return q===void 0?n.N!==YO&&!!(2&(n.PQ[EF]|0)):!!(2&q)&&n.N!==YO}; Yl6=function(n,q){if(n!=null)if(typeof n==="string")n=n?new vh(n,L1):Mf();else if(n.constructor!==vh)if(Eyu&&n!=null&&n instanceof Uint8Array)n=n.length?new vh(new Uint8Array(n),L1):Mf();else{if(!q)throw Error();n=void 0}return n}; S_=function(n,q){if(typeof q!=="number"||q<0||q>=n.length)throw Error();}; KX0=function(n,q,w){var X=q&128?0:-1,P=n.length,R;if(R=!!P)R=n[P-1],R=R!=null&&typeof R==="object"&&R.constructor===Object;var c=P+(R?-1:0);for(q=q&128?1:0;qq.length)return!1;if(n.lengthP)return!1;if(X>>0;Nf=q;nB=(n-q)/4294967296>>>0}; XX=function(n){if(n<0){qq(0-n);var q=g.a(wU(Nf,nB));n=q.next().value;q=q.next().value;Nf=n>>>0;nB=q>>>0}else qq(n)}; RE=function(n,q){var w=q*4294967296+(n>>>0);return Number.isSafeInteger(w)?w:P1(n,q)}; ZVO=function(n,q){var w=q&2147483648;w&&(n=~n+1>>>0,q=~q>>>0,n==0&&(q=q+1>>>0));n=RE(n,q);return typeof n==="number"?w?-n:n:w?"-"+n:n}; P1=function(n,q){q>>>=0;n>>>=0;if(q<=2097151)var w=""+(4294967296*q+n);else A0()?w=""+(BigInt(q)<>>24|q<<8)&16777215,q=q>>16&65535,n=(n&16777215)+w*6777216+q*6710656,w+=q*8147497,q*=2,n>=1E7&&(w+=n/1E7>>>0,n%=1E7),w>=1E7&&(q+=w/1E7>>>0,w%=1E7),w=q+JXz(w)+JXz(n));return w}; JXz=function(n){n=String(n);return"0000000".slice(n.length)+n}; zO6=function(){var n=Nf,q=nB;q&2147483648?A0()?n=""+(BigInt(q|0)<>>0)):(q=g.a(wU(n,q)),n=q.next().value,q=q.next().value,n="-"+P1(n,q)):n=P1(n,q);return n}; c1=function(n){if(n.length<16)XX(Number(n));else if(A0())n=BigInt(n),Nf=Number(n&BigInt(4294967295))>>>0,nB=Number(n>>BigInt(32)&BigInt(4294967295));else{var q=+(n[0]==="-");nB=Nf=0;for(var w=n.length,X=0+q,P=(w-q)%6+q;P<=w;X=P,P+=6)X=Number(n.slice(X,P)),nB*=1E6,Nf=Nf*1E6+X,Nf>=4294967296&&(nB+=Math.trunc(Nf/4294967296),nB>>>=0,Nf>>>=0);q&&(q=g.a(wU(Nf,nB)),n=q.next().value,q=q.next().value,Nf=n,nB=q)}}; wU=function(n,q){q=~q;n?n=~n+1:q+=1;return[n,q]}; IE=function(n){return Array.prototype.slice.call(n)}; kk=function(n){if(n!=null&&typeof n!=="number")throw Error("Value of float/double field must be a number, found "+typeof n+": "+n);return n}; WXY=function(n){return n.displayName||n.name||"unknown type name"}; rU=function(n){if(n!=null&&typeof n!=="boolean")throw Error("Expected boolean but got "+OOO(n)+": "+n);return n}; sP=function(n){switch(typeof n){case "bigint":return!0;case "number":return jT(n);case "string":return NRm.test(n);default:return!1}}; n10=function(n){if(typeof n!=="number")throw h0("int32");if(!jT(n))throw h0("int32");return n|0}; eT=function(n){return n==null?n:n10(n)}; fB=function(n){if(n==null)return n;if(typeof n==="string"&&n)n=+n;else if(typeof n!=="number")return;return jT(n)?n|0:void 0}; OP=function(n){if(n==null)return n;if(typeof n==="string"&&n)n=+n;else if(typeof n!=="number")return;return jT(n)?n>>>0:void 0}; Xw3=function(n){var q=0;q=q===void 0?0:q;if(!sP(n))throw h0("int64");var w=typeof n;switch(q){case 512:switch(w){case "string":return iL(n);case "bigint":return String(UP(64,n));default:return tI(n)}case 1024:switch(w){case "string":return q4x(n);case "bigint":return Wh(UP(64,n));default:return wwz(n)}case 0:switch(w){case "string":return iL(n);case "bigint":return Wh(UP(64,n));default:return dU(n)}default:return e9(q,"Unknown format requested type for int64")}}; gU=function(n){return n==null?n:Xw3(n)}; PV6=function(n){if(n[0]==="-")return!1;var q=n.length;return q<20?!0:q===20&&Number(n.substring(0,6))<184467}; R9O=function(n){var q=n.length;return n[0]==="-"?q<20?!0:q===20&&Number(n.substring(0,7))>-922337:q<19?!0:q===19&&Number(n.substring(0,6))<922337}; c_0=function(n){if(n<0){XX(n);var q=P1(Nf,nB);n=Number(q);return m8(n)?n:q}q=String(n);if(PV6(q))return q;XX(n);return RE(Nf,nB)}; IYO=function(n){if(R9O(n))return n;c1(n);return zO6()}; dU=function(n){sP(n);n=yo(n);m8(n)||(XX(n),n=ZVO(Nf,nB));return n}; tI=function(n){sP(n);n=yo(n);if(m8(n))n=String(n);else{var q=String(n);R9O(q)?n=q:(XX(n),n=zO6())}return n}; iL=function(n){sP(n);var q=yo(Number(n));if(m8(q))return String(q);q=n.indexOf(".");q!==-1&&(n=n.substring(0,q));return IYO(n)}; q4x=function(n){var q=yo(Number(n));if(m8(q))return Wh(q);q=n.indexOf(".");q!==-1&&(n=n.substring(0,q));return A0()?Wh(UP(64,BigInt(n))):Wh(IYO(n))}; wwz=function(n){return m8(n)?Wh(dU(n)):Wh(tI(n))}; kxY=function(n){if(n==null)return n;var q=typeof n;if(q==="bigint")return String(UP(64,n));if(sP(n)){if(q==="string")return iL(n);if(q==="number")return dU(n)}}; jPs=function(n){if(n==null)return n;var q=typeof n;if(q==="bigint")return String(r_y(64,n));if(sP(n)){if(q==="string")return sP(n),q=yo(Number(n)),m8(q)&&q>=0?n=String(q):(q=n.indexOf("."),q!==-1&&(n=n.substring(0,q)),PV6(n)||(c1(n),n=P1(Nf,nB))),n;if(q==="number")return sP(n),n=yo(n),n>=0&&m8(n)?n:c_0(n)}}; sPu=function(n){if(n==null||typeof n=="string"||n instanceof vh)return n}; e9O=function(n){if(typeof n!=="string")throw Error();return n}; aE=function(n){if(n!=null&&typeof n!=="string")throw Error();return n}; Vo=function(n){return n==null||typeof n==="string"?n:void 0}; pB=function(n,q){if(!(n instanceof q))throw Error("Expected instanceof "+WXY(q)+" but got "+(n&&WXY(n.constructor)));return n}; fYY=function(n,q,w){if(n!=null&&n[Ts]===FX)return n;if(Array.isArray(n)){var X=n[EF]|0;w=X|w&32|w&2;w!==X&&bJ(n,w);return new q(n)}}; $k=function(n){return n}; LB=function(n){var q=fj(v1);return q?n[q]:void 0}; Mq=function(){}; xk=function(n,q){for(var w in n)!isNaN(w)&&q(n,+w,n[w])}; Oos=function(n){var q=new Mq;xk(n,function(w,X,P){q[X]=IE(P)}); q.vC=n.vC;return q}; Hoz=function(n,q){q<100||lJ(ioh,1)}; Gs=function(n,q,w,X){var P=X!==void 0;X=!!X;var R=fj(v1),c;!P&&C1&&R&&(c=n[R])&&xk(c,Hoz);R=[];var k=n.length;c=4294967295;var r=!1,e=!!(q&64),f=e?q&128?0:-1:void 0;if(!(q&1)){var O=k&&n[k-1];O!=null&&typeof O==="object"&&O.constructor===Object?(k--,c=k):O=void 0;if(e&&!(q&128)&&!P){r=!0;var H;c=((H=D7)!=null?H:$k)(c-f,f,n,O)+f}}q=void 0;for(H=0;H=c){var t=H-f,V=void 0;((V=q)!=null?V:q={})[t]=U}else R[H]=U}if(O)for(var T in O)k=O[T],k!=null&& (k=w(k,X))!=null&&(H=+T,U=void 0,e&&!Number.isNaN(H)&&(U=H+f)0?void 0:n===0?mE6||(mE6=[0,void 0]):[-n,void 0];case "string":return[0,n];case "object":return n}}; AI=function(n,q,w){return n=bL(n,q[0],q[1],w?1:2)}; bL=function(n,q,w,X){X=X===void 0?0:X;if(n==null){var P=32;w?(n=[w],P|=128):n=[];q&&(P=P&-8380417|(q&1023)<<13)}else{if(!Array.isArray(n))throw Error("narr");P=n[EF]|0;2048&P&&!(2&P)&&aYs();if(P&256)throw Error("farr");if(P&64)return X!==0||P&2048||bJ(n,P|2048),n;if(w&&(P|=128,w!==n[0]))throw Error("mid");a:{w=n;P|=64;var R=w.length;if(R){var c=R-1,k=w[c];if(k!=null&&typeof k==="object"&&k.constructor===Object){q=P&128?0:-1;c-=q;if(c>=1024)throw Error("pvtlmt");for(var r in k)R=+r,R1024)throw Error("spvt");P=P&-8380417|(r&1023)<<13}}}P|=64;X===0&&(P|=2048);bJ(n,P);return n}; aYs=function(){lJ(V9O,5)}; pws=function(n,q){if(typeof n!=="object")return n;if(Array.isArray(n)){var w=n[EF]|0;n.length===0&&w&1?n=void 0:w&2||(!q||4096&w||16&w?n=Yk(n,w,!1,q&&!(w&16)):(oJ(n,34),w&4&&Object.freeze(n)));return n}if(n!=null&&n[Ts]===FX)return q=n.PQ,w=q[EF]|0,K1(n,w)?n:KB(n,q,w)?ST(n,q):Yk(q,w);if(n instanceof vh)return n}; ST=function(n,q,w){n=new n.constructor(q);w&&(n.N=YO);n.X=YO;return n}; Yk=function(n,q,w,X){X!=null||(X=!!(34&q));n=Gs(n,q,pws,X);X=32;w&&(X|=2);q=q&8380609|X;bJ(n,q);return n}; TDm=function(n){var q=n.PQ,w=q[EF]|0;return K1(n,w)?KB(n,q,w)?ST(n,q,!0):new n.constructor(Yk(q,w,!1)):n}; uL=function(n){if(n.N!==YO)return!1;var q=n.PQ;q=Yk(q,q[EF]|0);oJ(q,2048);n.PQ=q;n.N=void 0;n.X=void 0;return!0}; B1=function(n){if(!uL(n)&&K1(n,n.PQ[EF]|0))throw Error();}; Qo=function(n,q){q===void 0&&(q=n[EF]|0);q&32&&!(q&4096)&&bJ(n,q|4096)}; KB=function(n,q,w){return w&2?!0:w&32&&!(w&4096)?(bJ(q,w|2),n.N=YO,!0):!1}; JI=function(n,q,w,X,P){Object.isExtensible(n);q=Z7(n.PQ,q,w,P);if(q!==null||X&&n.X!==YO)return q}; Z7=function(n,q,w,X){if(q===-1)return null;var P=q+(w?0:-1),R=n.length-1;if(!(R<1+(w?0:-1))){if(P>=R){var c=n[R];if(c!=null&&typeof c==="object"&&c.constructor===Object){w=c[q];var k=!0}else if(P===R)w=c;else return}else w=n[P];if(X&&w!=null){X=X(w);if(X==null)return X;if(!Object.is(X,w))return k?c[q]=X:n[P]=X,X}return w}}; W1=function(n,q,w,X){B1(n);var P=n.PQ;zs(P,P[EF]|0,q,w,X);return n}; zs=function(n,q,w,X,P){var R=w+(P?0:-1),c=n.length-1;if(c>=1+(P?0:-1)&&R>=c){var k=n[c];if(k!=null&&typeof k==="object"&&k.constructor===Object)return k[w]=X,q}if(R<=c)return n[R]=X,q;if(X!==void 0){var r;c=((r=q)!=null?r:q=n[EF]|0)>>13&1023||536870912;w>=c?X!=null&&(R={},n[c+(P?0:-1)]=(R[w]=X,R)):n[R]=X}return q}; XL=function(n,q,w,X,P){var R=n.PQ,c=R[EF]|0;X=K1(n,c)?1:X;P=!!P||X===3;X===2&&uL(n)&&(R=n.PQ,c=R[EF]|0);n=Nq(R,q);var k=n===nG?7:n[EF]|0,r=qJ(k,c);var e=4&r?!1:!0;if(e){4&r&&(n=IE(n),k=0,r=wT(r,c),c=zs(R,c,q,n));for(var f=0,O=0;f "+n)}; ES=function(n,q,w){this.buffer=n;if(w&&!q)throw Error();this.N=q}; oe=function(n,q){if(typeof n==="string")return new ES(lcx(n),q);if(Array.isArray(n))return new ES(new Uint8Array(n),q);if(n.constructor===Uint8Array)return new ES(n,!1);if(n.constructor===ArrayBuffer)return n=new Uint8Array(n),new ES(n,!1);if(n.constructor===vh)return q=xO(n)||new Uint8Array(0),new ES(q,!0,n);if(n instanceof Uint8Array)return n=n.constructor===Uint8Array?n:new Uint8Array(n.buffer,n.byteOffset,n.byteLength),new ES(n,!1);throw Error();}; bq=function(n,q,w,X){this.X=null;this.K=!1;this.N=this.C=this.W=0;this.init(n,q,w,X)}; YV=function(n){var q=0,w=0,X=0,P=n.X,R=n.N;do{var c=P[R++];q|=(c&127)<32&&(w|=(c&127)>>4);for(X=3;X<32&&c&128;X+=7)c=P[R++],w|=(c&127)<>>0,w>>>0);throw CG();}; Ab=function(n,q){n.N=q;if(q>n.C)throw E1y(n.C,q);}; KG=function(n){var q=n.X,w=n.N,X=q[w++],P=X&127;if(X&128&&(X=q[w++],P|=(X&127)<<7,X&128&&(X=q[w++],P|=(X&127)<<14,X&128&&(X=q[w++],P|=(X&127)<<21,X&128&&(X=q[w++],P|=X<<28,X&128&&q[w++]&128&&q[w++]&128&&q[w++]&128&&q[w++]&128&&q[w++]&128)))))throw CG();Ab(n,w);return P}; Sc=function(n){var q=n.X,w=n.N,X=q[w+0],P=q[w+1],R=q[w+2];q=q[w+3];Ab(n,n.N+4);return(X<<0|P<<8|R<<16|q<<24)>>>0}; uq=function(n){var q=Sc(n);n=Sc(n);return RE(q,n)}; BE=function(n){var q=Sc(n),w=Sc(n);n=(w>>31)*2+1;var X=w>>>20&2047;q=4294967296*(w&1048575)+q;return X==2047?q?NaN:n*Infinity:X==0?n*4.9E-324*q:n*Math.pow(2,X-1075)*(q+4503599627370496)}; Qx=function(n){for(var q=0,w=n.N,X=w+10,P=n.X;wn.C)throw E1y(q,n.C-w);n.N=X;return w}; A_x=function(n,q){if(q==0)return Mf();var w=o1y(n,q);n.GA&&n.K?w=n.X.subarray(w,w+q):(n=n.X,q=w+q,w=w===q?new Uint8Array(0):boY?n.slice(w,q):new Uint8Array(n.subarray(w,q)));return w.length==0?Mf():new vh(w,L1)}; Jb=function(n,q,w,X){if(ZX.length){var P=ZX.pop();P.init(n,q,w,X);n=P}else n=new bq(n,q,w,X);this.N=n;this.C=this.N.N;this.X=this.W=-1;Y4s(this,X)}; Y4s=function(n,q){q=q===void 0?{}:q;n.b6=q.b6===void 0?!1:q.b6}; KrT=function(n,q,w,X){if(z1.length){var P=z1.pop();Y4s(P,X);P.N.init(n,q,w,X);return P}return new Jb(n,q,w,X)}; S4s=function(n){var q=n.N;if(q.N==q.C)return!1;n.C=n.N.N;var w=KG(n.N)>>>0;q=w>>>3;w&=7;if(!(w>=0&&w<=5))throw CV0(w,n.C);if(q<1)throw Error("Invalid field number: "+q+" (at position "+n.C+")");n.W=q;n.X=w;return!0}; WE=function(n){switch(n.X){case 0:n.X!=0?WE(n):Qx(n.N);break;case 1:n=n.N;Ab(n,n.N+8);break;case 2:if(n.X!=2)WE(n);else{var q=KG(n.N)>>>0;n=n.N;Ab(n,n.N+q)}break;case 5:n=n.N;Ab(n,n.N+4);break;case 3:q=n.W;do{if(!S4s(n))throw Error("Unmatched start-group tag: stream EOF");if(n.X==4){if(n.W!=q)throw Error("Unmatched end-group tag");break}WE(n)}while(1);break;default:throw CV0(n.X,n.C);}}; NJ=function(n,q,w){var X=n.N.C,P=KG(n.N)>>>0,R=n.N.N+P,c=R-X;c<=0&&(n.N.C=R,w(q,n,void 0,void 0,void 0),c=R-n.N.N);if(c)throw Error("Message parsing ended unexpectedly. Expected to read "+(P+" bytes, instead read "+(P-c)+" bytes, either the data ended unexpectedly or the message misreported its own length"));n.N.N=R;n.N.C=X}; fA=function(n){var q=KG(n.N)>>>0;n=n.N;var w=o1y(n,q);n=n.X;if(u93){var X=n,P;(P=sR)||(P=sR=new TextDecoder("utf-8",{fatal:!0}));q=w+q;X=w===0&&q===X.length?X:X.subarray(w,q);try{var R=P.decode(X)}catch(e){if(eA===void 0){try{P.decode(new Uint8Array([128]))}catch(f){}try{P.decode(new Uint8Array([97])),eA=!0}catch(f){eA=!1}}!eA&&(sR=void 0);throw e;}}else{R=w;q=R+q;w=[];for(var c=null,k,r;R=q?yk():(r=n[R++],k<194||(r&192)!==128?(R--,yk()):w.push((k&31)<<6|r&63)): k<240?R>=q-1?yk():(r=n[R++],(r&192)!==128||k===224&&r<160||k===237&&r>=160||((P=n[R++])&192)!==128?(R--,yk()):w.push((k&15)<<12|(r&63)<<6|P&63)):k<=244?R>=q-2?yk():(r=n[R++],(r&192)!==128||(k<<28)+(r-144)>>30!==0||((P=n[R++])&192)!==128||((X=n[R++])&192)!==128?(R--,yk()):(k=(k&7)<<18|(r&63)<<12|(P&63)<<6|X&63,k-=65536,w.push((k>>10&1023)+55296,(k&1023)+56320))):yk(),w.length>=8192&&(c=doT(c,w),w.length=0);R=doT(c,w)}return R}; BDy=function(n){var q=KG(n.N)>>>0;return A_x(n.N,q)}; OR=function(n,q){this.X=n>>>0;this.N=q>>>0}; ZoY=function(n){if(!n)return QPz||(QPz=new OR(0,0));if(!/^\d+$/.test(n))return null;c1(n);return new OR(Nf,nB)}; iS=function(n,q){this.X=n>>>0;this.N=q>>>0}; z9Y=function(n){if(!n)return J_u||(J_u=new iS(0,0));if(!/^-?\d+$/.test(n))return null;c1(n);return new iS(Nf,nB)}; H8=function(){this.N=[]}; UR=function(n,q,w){for(;w>0||q>127;)n.N.push(q&127|128),q=(q>>>7|w<<25)>>>0,w>>>=7;n.N.push(q)}; tx=function(n,q){for(;q>127;)n.N.push(q&127|128),q>>>=7;n.N.push(q)}; WrY=function(n,q){if(q>=0)tx(n,q);else{for(var w=0;w<9;w++)n.N.push(q&127|128),q>>=7;n.N.push(1)}}; d1=function(n,q){n.N.push(q>>>0&255);n.N.push(q>>>8&255);n.N.push(q>>>16&255);n.N.push(q>>>24&255)}; NDz=function(){this.C=[];this.X=0;this.N=new H8}; g1=function(n,q){q.length!==0&&(n.C.push(q),n.X+=q.length)}; nmY=function(n,q){me(n,q,2);q=n.N.end();g1(n,q);q.push(n.X);return q}; q_u=function(n,q){var w=q.pop();for(w=n.X+n.N.length()-w;w>127;)q.push(w&127|128),w>>>=7,n.X++;q.push(w);n.X++}; me=function(n,q,w){tx(n.N,q*8+w)}; wO0=function(n,q,w){if(w!=null){switch(typeof w){case "string":ZoY(w)}me(n,q,1);switch(typeof w){case "number":n=n.N;qq(w);d1(n,Nf);d1(n,nB);break;case "bigint":w=BigInt.asUintN(64,w);w=new OR(Number(w&BigInt(4294967295)),Number(w>>BigInt(32)));n=n.N;q=w.N;d1(n,w.X);d1(n,q);break;default:w=ZoY(w),n=n.N,q=w.N,d1(n,w.X),d1(n,q)}}}; yL=function(n,q,w){me(n,q,2);tx(n.N,w.length);g1(n,n.N.end());g1(n,w)}; aL=function(){function n(){throw Error();} Object.setPrototypeOf(n,n.prototype);return n}; VL=function(n,q,w){this.PQ=bL(n,q,w)}; XOT=function(n,q){if(q==null||q=="")return new n;q=JSON.parse(q);if(!Array.isArray(q))throw Error("dnarr");oJ(q,32);return new n(q)}; T2=function(n,q,w){this.Ix=n;this.ox=q;n=fj(pA);this.N=!!n&&w===n||!1}; FJ=function(n,q){var w=w===void 0?pA:w;return new T2(n,q,w)}; RWx=function(n,q,w,X,P){q=PX6(q,X);q!=null&&(w=nmY(n,w),P(q,n),q_u(n,w))}; LA=function(n,q,w,X){var P=X[n];if(P)return P;P={};P.gR=X;P.lr=y_x(X[0]);var R=X[1],c=1;R&&R.constructor===Object&&(P.extensions=R,R=X[++c],typeof R==="function"&&(P.LZ=!0,$q!=null||($q=R),v8!=null||(v8=X[c+1]),R=X[c+=2]));for(var k={};R&&Array.isArray(R)&&R.length&&typeof R[0]==="number"&&R[0]>0;){for(var r=0;r>BigInt(32)));UR(n.N,w.X,w.N);break;default:w=z9Y(q),UR(n.N,w.X,w.N)}}}; Zz=function(n,q,w){q=fB(q);q!=null&&q!=null&&(me(n,w,0),WrY(n.N,q))}; t4h=function(n,q,w){q=q==null||typeof q==="boolean"?q:typeof q==="number"?!!q:void 0;q!=null&&(me(n,w,0),n.N.N.push(q?1:0))}; dYh=function(n,q,w){q=Vo(q);q!=null&&yL(n,w,acs(q))}; gmu=function(n,q,w,X,P){q=PX6(q,X);q!=null&&(w=nmY(n,w),P(q,n),q_u(n,w))}; yUT=function(){var n=Jx;this.N=mY6;this.isRepeated=0;this.X=HE;this.defaultValue=void 0;this.C=n.messageId!=null?uJ:void 0}; ao3=function(n,q){return function(w,X){var P={zs:!0};X&&Object.assign(P,X);w=KrT(w,void 0,void 0,P);try{var R=new n,c=R.PQ;hx(q)(c,w);var k=R}finally{w.free()}return k}}; V4s=function(n){return function(){var q=new NDz;O$s(this.PQ,q,LA(oL,CA,bS,n));g1(q,q.N.end());for(var w=new Uint8Array(q.X),X=q.C,P=X.length,R=0,c=0;c-1)return q.apply(null,g.D(w));try{return n.N=n.C.N.now(),q.apply(null,g.D(w))}finally{n.W+=n.C.N.now()-n.N,n.N=-1,n.X+=1}}}; Tr6=function(n,q){this.X=n;this.C=q;this.N=new pOs(n)}; FJ6=function(){this.N={}}; vmO=function(){var n=nF().flags,q=$Yy;n=n.N[q.key];if(q.valueType==="proto"){try{var w=JSON.parse(n);if(Array.isArray(w))return w}catch(X){}return q.defaultValue}return typeof n===typeof q.defaultValue?n:q.defaultValue}; DYx=function(){this.C=void 0;this.X=this.D=0;this.K=-1;this.fG=new aF;VX(this.fG,"mv",LJh).N=!0;VX(this.fG,"omid",$y);VX(this.fG,"epoh",$y).N=!0;VX(this.fG,"epph",$y).N=!0;VX(this.fG,"umt",$y).N=!0;VX(this.fG,"phel",$y).N=!0;VX(this.fG,"phell",$y).N=!0;VX(this.fG,"oseid",M4z).N=!0;var n=this.fG;n.N.sloi||(n.N.sloi=new mX);n.N.sloi.N=!0;VX(this.fG,"mm",qZ);VX(this.fG,"ovms",xYT).N=!0;VX(this.fG,"xdi",$y).N=!0;VX(this.fG,"amp",$y).N=!0;VX(this.fG,"prf",$y).N=!0;VX(this.fG,"gtx",$y).N=!0;VX(this.fG, "mvp_lv",$y).N=!0;VX(this.fG,"ssmol",$y).N=!0;VX(this.fG,"fmd",$y).N=!0;VX(this.fG,"gen204simple",$y);this.N=new Tr6(md(),this.fG);this.W=!1;this.flags=new FJ6}; nF=function(){return db(DYx)}; hWT=function(n,q,w,X){if(Math.random()<(X||n.N))try{if(w instanceof e_)var P=w;else P=new e_,j_(w,function(c,k){var r=P,e=r.W++;c=f1(k,c);r.N.push(e);r.X[e]=c}); var R=P.kH(n.X,"pagead2.googlesyndication.com","/pagead/gen_204?id="+q+"&");R&&(md(),iVu(R))}catch(c){}}; loy=function(n,q,w){w=w===void 0?{}:w;this.error=n;this.meta=w;this.context=q.context;this.msg=q.message||"";this.id=q.id||"jserror"}; GNY=function(){var n=n===void 0?g.W0:n;return(n=n.performance)&&n.now&&n.timing?Math.floor(n.now()+n.timing.navigationStart):g.eB()}; CXY=function(){var n=n===void 0?g.W0:n;return(n=n.performance)&&n.now?n.now():null}; Ems=function(n,q,w){this.label=n;this.type=q;this.value=w;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Xf=function(){var n=window;this.events=[];this.X=n||g.W0;var q=null;n&&(n.google_js_reporting_queue=n.google_js_reporting_queue||[],this.events=n.google_js_reporting_queue,q=n.google_measure_js_timing);this.N=wG()||(q!=null?q:Math.random()<1)}; omh=function(n){n&&Pg&&wG()&&(Pg.clearMarks("goog_"+n.label+"_"+n.uniqueId+"_start"),Pg.clearMarks("goog_"+n.label+"_"+n.uniqueId+"_end"))}; RB=function(n,q,w,X,P,R,c){var k="";n&&(k+=n+":");w&&(k+="//",q&&(k+=q+"@"),k+=w,X&&(k+=":"+X));P&&(k+=P);R&&(k+="?"+R);c&&(k+="#"+c);return k}; g.cg=function(n){return n.match(b$s)}; AUu=function(n){return n?decodeURI(n):n}; g.IB=function(n){return AUu(g.cg(n)[3]||null)}; ko=function(n){return AUu(g.cg(n)[5]||null)}; g.Y_x=function(n){n=g.cg(n);return RB(n[1],n[2],n[3],n[4])}; rG=function(n){n=g.cg(n);return RB(null,null,null,null,n[5],n[6],n[7])}; KJs=function(n){var q=n.indexOf("#");return q<0?n:n.slice(0,q)}; jQ=function(n,q){if(n){n=n.split("&");for(var w=0;w=0){var R=n[w].substring(0,X);P=n[w].substring(X+1)}else R=n[w];q(R,P?Lo(P):"")}}}; sV=function(n,q){if(!q)return n;var w=n.indexOf("#");w<0&&(w=n.length);var X=n.indexOf("?");if(X<0||X>w){X=w;var P=""}else P=n.substring(X+1,w);n=[n.slice(0,X),P,n.slice(w)];w=n[1];n[1]=q?w?w+"&"+q:q:w;return n[0]+(n[1]?"?"+n[1]:"")+n[2]}; eQ=function(n,q,w){if(Array.isArray(q))for(var X=0;X=0&&qw)P=w;X+=q.length+1;return Lo(n.slice(X,P!==-1?P:0))}; aB=function(n,q){for(var w=n.search(UV),X=0,P,R=[];(P=Hg(n,X,q,w))>=0;)R.push(n.substring(X,P)),X=Math.min(n.indexOf("&",P)+1||w,w);R.push(n.slice(X));return R.join("").replace(BrY,"$1")}; Qxh=function(n,q,w){return iC(aB(n,q),q,w)}; Z$O=function(){var n=VN;this.N=pF;this.kq="jserror";this.I$=!0;this.Rh=null;this.X=this.fE;this.Gk=n===void 0?null:n}; JUh=function(n,q,w){var X=Ty;return Nw(nF().N.N,function(){try{if(X.Gk&&X.Gk.N){var P=X.Gk.start(n.toString(),3);var R=q();X.Gk.end(P)}else R=q()}catch(k){var c=X.I$;try{omh(P),c=X.X(n,new Ff($o(k)),void 0,w)}catch(r){X.fE(217,r)}if(!c)throw k;}return R})()}; vg=function(n,q,w,X){return Nw(nF().N.N,function(){var P=g.bs.apply(0,arguments);return JUh(n,function(){return q.apply(w,P)},X)})}; $o=function(n){var q=n.toString();n.name&&q.indexOf(n.name)==-1&&(q+=": "+n.name);n.message&&q.indexOf(n.message)==-1&&(q+=": "+n.message);if(n.stack)a:{n=n.stack;var w=q;try{n.indexOf(w)==-1&&(n=w+"\n"+n);for(var X;n!=X;)X=n,n=n.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");q=n.replace(/\n */g,"\n");break a}catch(P){q=w;break a}q=void 0}return q}; Ff=function(n){loy.call(this,Error(n),{message:n})}; zWm=function(){vO&&typeof vO.google_measure_js_timing!="undefined"&&(vO.google_measure_js_timing||VN.disable())}; WJz=function(n){Ty.Rh=function(q){g.Jw(n,function(w){w(q)})}}; NrY=function(n,q){return JUh(n,q)}; LF=function(n,q){return vg(n,q)}; MZ=function(n,q,w,X){Ty.fE(n,q,w,X)}; xo=function(){return Date.now()-nOh}; qFs=function(){var n=nF().C,q=Dg>=0?xo()-Dg:-1,w=hn?xo()-lC:-1,X=Gy>=0?xo()-Gy:-1;if(n==947190542)return 100;if(n==79463069)return 200;n=[2E3,4E3];var P=[250,500,1E3];MZ(637,Error(),.001);var R=q;w!=-1&&w1500&&X<4E3?500:c}; CF=function(n,q,w){var X=new GN(0,0,0,0);this.time=n;this.volume=null;this.C=q;this.N=X;this.X=w}; EV=function(n,q,w,X,P,R,c,k){this.W=n;this.G=q;this.C=w;this.D=X;this.N=P;this.K=R;this.X=c;this.V=k}; Xhz=function(n){var q=n!==n.top,w=n.top===ROm(n),X=-1,P=0;if(q&&w&&n.top.mraid){X=3;var R=n.top.mraid}else X=(R=n.mraid)?q?w?2:1:0:-1;R&&(R.IS_GMA_SDK||(P=2),xsY(wh3,function(c){return typeof R[c]==="function"})||(P=1)); return{NQ:R,compatibility:P,Vv5:X}}; PJh=function(){var n=window.document;return n&&typeof n.elementFromPoint==="function"}; RQ3=function(n,q,w){if(n&&q!==null&&q!=q.top){if(!q.top)return new g.QB(-12245933,-12245933);q=q.top}try{return(w===void 0?0:w)?(new g.QB(q.innerWidth,q.innerHeight)).round():hG6(q||window).round()}catch(X){return new g.QB(-12245933,-12245933)}}; oB=function(n,q,w){try{if(n){if(!q.top)return new GN(-12245933,-12245933,-12245933,-12245933);q=q.top}var X=RQ3(n,q,w),P=X.height,R=X.width;if(R===-12245933)return new GN(R,R,R,R);var c=X8(q.document);var k=Gf3(c.N);var r=k.x,e=k.y;return new GN(e,r+R,e+P,r)}catch(f){return new GN(-12245933,-12245933,-12245933,-12245933)}}; bC=function(n,q){q=Math.pow(10,q);return Math.floor(n*q)/q}; c0T=function(n){return new GN(n.top,n.right,n.bottom,n.left)}; IQm=function(n){var q=n.top||0,w=n.left||0;return new GN(q,w+(n.width||0),q+(n.height||0),w)}; An=function(n){return n!=null&&n>=0&&n<=1}; kes=function(){var n=g.CV();return n?Yo("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(q){return Dc(n,q)})||Dc(n,"OMI/")&&!Dc(n,"XiaoMi/")?!0:Dc(n,"Presto")&&Dc(n,"Linux")&&!Dc(n,"X11")&&!Dc(n,"Android")&&!Dc(n,"Mobi"):!1}; r0u=function(){this.C=!rb(vO.top);this.isMobileDevice=kO()||WDs();var n=sF();this.domain=n.length>0&&n[n.length-1]!=null&&n[n.length-1].url!=null?g.IB(n[n.length-1].url)||"":"";this.N=new GN(0,0,0,0);this.W=new g.QB(0,0);this.K=new g.QB(0,0);this.G=new GN(0,0,0,0);this.frameOffset=new g.uV(0,0);this.D=0;this.V=!1;this.X=!(!vO||!Xhz(vO).NQ);this.update(vO)}; jJ0=function(n,q){q&&q.screen&&(n.W=new g.QB(q.screen.width,q.screen.height))}; sJY=function(n,q){a:{var w=n.N?new g.QB(C$(n.N),n.N.getHeight()):new g.QB(0,0);q=q===void 0?vO:q;q!==null&&q!=q.top&&(q=q.top);var X=0,P=0;try{var R=q.document,c=R.body,k=R.documentElement;if(R.compatMode=="CSS1Compat"&&k.scrollHeight)X=k.scrollHeight!=w.height?k.scrollHeight:k.offsetHeight,P=k.scrollWidth!=w.width?k.scrollWidth:k.offsetWidth;else{var r=k.scrollHeight,e=k.scrollWidth,f=k.offsetHeight,O=k.offsetWidth;k.clientHeight!=f&&(r=c.scrollHeight,e=c.scrollWidth,f=c.offsetHeight,O=c.offsetWidth); r>w.height?r>f?(X=r,P=e):(X=f,P=O):r0||n.V)return!0;n=md().X.isVisible();var q=RJ(SQ)===0;return n||q}; KF=function(){return db(r0u)}; Bg=function(n){this.C=n;this.X=0;this.N=null}; QN=function(n,q,w){this.C=n;this.D0=w===void 0?"na":w;this.K=[];this.isInitialized=!1;this.W=new CF(-1,!0,this);this.N=this;this.V=q;this.qP=this.L=!1;this.HW="uk";this.WW=!1;this.D=!0}; Zg=function(n,q){g.yv(n.K,q)||(n.K.push(q),q.UP(n.N),q.GL(n.W),q.G8()&&(n.L=!0))}; jEO=function(n){n=n.N;n.Vm();n.im();var q=KF();q.G=oB(!1,n.C,q.isMobileDevice);sJY(KF(),n.C);n.W.N=n.pZ()}; sE0=function(n){n.L=n.K.length?Yo(n.K,function(q){return q.G8()}):!1}; eR0=function(n){var q=g.Ml(n.K);g.Jw(q,function(w){w.GL(n.W)})}; Jn=function(n){var q=g.Ml(n.K);g.Jw(q,function(w){w.UP(n.N)}); n.N!=n||eR0(n)}; zy=function(n,q,w,X){this.element=n;this.N=new GN(0,0,0,0);this.C=null;this.D=new GN(0,0,0,0);this.X=q;this.fG=w;this.WW=X;this.vW=!1;this.timestamp=-1;this.L=new EV(q.W,this.element,this.N,new GN(0,0,0,0),0,0,xo(),0);this.K=void 0}; f7s=function(n,q){return n.K?new GN(Math.max(q.top+n.K.top,q.top),Math.min(q.left+n.K.right,q.right),Math.min(q.top+n.K.bottom,q.bottom),Math.max(q.left+n.K.left,q.left)):q.clone()}; Wg=function(n){this.K=!1;this.N=n;this.W=function(){}}; OBh=function(n,q,w){this.C=w===void 0?0:w;this.X=n;this.N=q==null?"":q}; iBz=function(n){switch(Math.trunc(n.C)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; HB6=function(n,q){return n.Cq.C?!1:n.Xq.X?!1:typeof n.Ntypeof q.N?!1:n.N0?X[w]-X[w-1]:X[w]})}; sL=function(){this.X=new Rt;this.D0=this.n5=0;this.IH=new P5;this.PW=this.G=-1;this.RH=1E3;this.Ne=new Rt([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.HW=this.vW=-1}; e7=function(n,q){return TU3(n.X,q===void 0?!0:q)}; f_=function(n,q,w,X){var P=P===void 0?!1:P;w=vg(X,w);Ph(n,q,w,{capture:P})}; H5=function(n,q){q=iu(q);return q===0?0:iu(n)/q}; iu=function(n){return Math.max(n.bottom-n.top,0)*Math.max(n.right-n.left,0)}; vk6=function(n,q){if(!n||!q)return!1;for(var w=0;n!==null&&w++<100;){if(n===q)return!0;try{if(n=n.parentElement||n){var X=qY(n),P=X&&s_(X),R=P&&P.frameElement;R&&(n=R)}}catch(c){break}}return!1}; L8u=function(n,q,w){if(!n||!q)return!1;q=ox(n.clone(),-q.left,-q.top);n=(q.left+q.right)/2;q=(q.top+q.bottom)/2;rb(window.top)&&window.top&&window.top.document&&(window=window.top);if(!PJh())return!1;n=window.document.elementFromPoint(n,q);if(!n)return!1;q=(q=(q=qY(w))&&q.defaultView&&q.defaultView.frameElement)&&vk6(q,n);var X=n===w;n=!X&&n&&yU(n,function(P){return P===w}); return!(q||X||n)}; MTs=function(n,q,w,X){return KF().C?!1:C$(n)<=0||n.getHeight()<=0?!0:w&&X?NrY(208,function(){return L8u(n,q,w)}):!1}; UL=function(n,q,w){g.A.call(this);this.position=xqO.clone();this.pS=this.Nf();this.My=-2;this.timeCreated=Date.now();this.B5=-1;this.HN=q;this.UV=null;this.by=!1;this.FH=null;this.opacity=-1;this.requestSource=w;this.tVn=!1;this.H4=function(){}; this.H6=function(){}; this.aW=new bjx;this.aW.El=n;this.aW.N=n;this.VY=!1;this.Am={TX:null,hp:null};this.CH=!0;this.qs=null;this.PV=this.Cu=!1;nF().D++;this.Mr=this.YU();this.j1=-1;this.Fn=null;this.hasCompleted=this.AV=!1;this.fG=new aF;bOs(this.fG);Dqs(this);this.requestSource==1?pV(this.fG,"od",1):pV(this.fG,"od",0)}; Dqs=function(n){n=n.aW.El;var q;if(q=n&&n.getAttribute)q=/-[a-z]/.test("googleAvInapp")?!1:hRy&&n.dataset?"googleAvInapp"in n.dataset:n.hasAttribute?n.hasAttribute("data-"+OjO()):!!n.getAttribute("data-"+OjO());q&&(KF().X=!0)}; tR=function(n,q){q!=n.PV&&(n.PV=q,n=KF(),q?n.D++:n.D>0&&n.D--)}; l7x=function(n,q){if(n.Fn){if(q.getName()===n.Fn.getName())return;n.Fn.dispose();n.Fn=null}q=q.create(n.aW.N,n.fG,n.G8());if(q=q!=null&&q.observe()?q:null)n.Fn=q}; Gs3=function(n,q,w){if(!n.UV||n.HN==-1||q.X===-1||n.UV.X===-1)return 0;n=q.X-n.UV.X;return n>w?0:n}; CLs=function(n,q,w){if(n.Fn){n.Fn.PF();var X=n.Fn.L,P=X.W,R=P.N;if(X.D!=null){var c=X.C;n.FH=new g.uV(c.left-R.left,c.top-R.top)}R=n.MG()?Math.max(X.N,X.K):X.N;c={};P.volume!==null&&(c.volume=P.volume);P=n.BS(X);n.UV=X;n.dl(R,q,w,!1,c,P,X.V)}}; EkO=function(n){if(n.by&&n.qs){var q=TF(n.fG,"od")==1,w=KF().N,X=n.qs,P=n.Fn?n.Fn.getName():"ns",R=n.FH,c=new g.QB(C$(w),w.getHeight());w=n.MG();n={NqH:P,FH:R,U9i:c,MG:w,Df:n.Mr.Df,sYe:q};if(q=X.X){q.PF();P=q.L;R=P.W.N;var k=c=null;P.D!=null&&R&&(c=P.C,c=new g.uV(c.left-R.left,c.top-R.top),k=new g.QB(R.right-R.left,R.bottom-R.top));P=w?Math.max(P.N,P.K):P.N;w={NqH:q.getName(),FH:c,U9i:k,MG:w,sYe:!1,Df:P}}else w=null;w&&a7O(X,n,w)}}; oku=function(n,q,w){q&&(n.H4=q);w&&(n.H6=w)}; g.dM=function(){}; g.gM=function(n){return{value:n,done:!1}}; bBs=function(){this.W=this.N=this.C=this.X=this.K=0}; AIh=function(n){var q={};var w=g.eB()-n.K;q=(q.ptlt=w,q);(w=n.X)&&(q.pnk=w);(w=n.C)&&(q.pnc=w);(w=n.W)&&(q.pnmm=w);(n=n.N)&&(q.pns=n);return q}; YPh=function(){Nl.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; mt=function(n){return An(n.volume)&&n.volume>0}; yr=function(n,q,w,X){w=w===void 0?!0:w;X=X===void 0?function(){return!0}:X; return function(P){var R=P[n];if(Array.isArray(R)&&X(P))return K86(R,q,w)}}; at=function(n,q){return function(w){return q(w)?w[n]:void 0}}; SPh=function(n){return function(q){for(var w=0;w0?R[P-1]+1:0,X+1).reduce(function(c,k){return c+k},0)})}; uXT=function(){this.X=this.N=""}; BUx=function(){}; p_=function(n,q){var w={};if(n!==void 0)if(q!=null)for(var X in q){var P=q[X];X in Object.prototype||P!=null&&(w[X]=typeof P==="function"?P(n):n[P])}else g.tX(w,n);return q2(n_(new NZ,w))}; QE6=function(){var n={};this.X=(n.vs=[1,0],n.vw=[0,1],n.am=[2,2],n.a=[4,4],n.f=[8,8],n.bm=[16,16],n.b=[32,32],n.avw=[0,64],n.avs=[64,0],n.pv=[256,256],n.gdr=[0,512],n.p=[0,1024],n.r=[0,2048],n.m=[0,4096],n.um=[0,8192],n.ef=[0,16384],n.s=[0,32768],n.pmx=[0,16777216],n.mut=[33554432,33554432],n.umutb=[67108864,67108864],n.tvoff=[134217728,134217728],n);this.N={};for(var q in this.X)this.X[q][1]>0&&(this.N[q]=0);this.C=0}; Tb=function(n,q){var w=n.X[q],X=w[1];n.C+=w[0];X>0&&n.N[q]==0&&(n.N[q]=1)}; ZBy=function(n){var q=g.ky(n.X),w=0,X;for(X in n.N)g.yv(q,X)&&n.N[X]==1&&(w+=n.X[X][1],n.N[X]=2);return w}; JIT=function(n){var q=0,w;for(w in n.N){var X=n.N[w];if(X==1||X==2)q+=n.X[w][1]}return q}; FP=function(){this.N=this.X=0}; v5=function(){sL.call(this);this.C=new P5;this.Ff=this.L=this.WW=0;this.V=-1;this.qe=new P5;this.K=new P5;this.N=new Rt;this.D=this.W=-1;this.qP=new P5;this.RH=2E3;this.Tp=new FP;this.je=new FP;this.oH=new FP}; L_=function(n,q,w){var X=n.Ff;hn||w||n.V==-1||(X+=q-n.V);return X}; zRu=function(){this.C=!1}; M2=function(n,q){this.C=!1;this.W=n;this.L=q;this.K=0}; xh=function(n,q){M2.call(this,n,q);this.G=[]}; W8x=function(){}; Dr=function(){}; hR=function(n,q,w,X){zy.call(this,n,q,w,X)}; lu=function(n,q,w){zy.call(this,null,n,q,w);this.V=n.isActive();this.G=0}; Gb=function(n){return[n.top,n.left,n.bottom,n.right]}; C_=function(n,q,w,X,P,R){R=R===void 0?new Dr:R;UL.call(this,q,w,X);this.OB=P;this.Bf=0;this.wp={};this.Zm=new QE6;this.Fm={};this.bE="";this.oH=null;this.Me=!1;this.N=[];this.Lz=R.X();this.D=R.C();this.W=null;this.C=-1;this.D0=this.L=void 0;this.PW=this.qP=0;this.HW=-1;this.RH=this.je=!1;this.WW=this.V=this.X=this.Sb=this.AK=0;new Rt;this.Tp=this.Ff=0;this.IH=-1;this.e$=0;this.G=g.MY;this.vW=[this.Nf()];this.KM=2;this.us={};this.us.pause="p";this.us.resume="r";this.us.skip="s";this.us.mute="m";this.us.unmute= "um";this.us.exitfullscreen="ef";this.K=null;this.Ne=this.qe=!1;this.nM=Math.floor(Date.now()/1E3-1704067200);this.n5=0}; EL=function(n){n.hasCompleted=!0;n.e$!=0&&(n.e$=3)}; ot=function(n){return n===void 0?n:Number(n)?bC(n,3):0}; bu=function(n,q){return n.vW[q!=null&&qMath.max(1E4,n.C/3)?0:q);var w=n.G(n)||{};w=w.currentTime!==void 0?w.currentTime:n.qP;var X=w-n.qP,P=0;X>=0?(n.PW+=q,n.Tp+=Math.max(q-X,0),P=Math.min(X,n.PW)):n.Ff+=Math.abs(X);X!=0&&(n.PW=0);n.IH==-1&&X>0&&(n.IH=Gy>=0?xo()-Gy:-1);n.qP=w;return P}; qS6=function(n,q){Yo(n.D,function(w){return w.W==q.W})||n.D.push(q)}; wEh=function(n){var q=kh(n.hx().N,1);return AR(n,q)}; AR=function(n,q,w){return q>=15E3?!0:n.je?(w===void 0?0:w)?!0:n.C>0?q>=n.C/2:n.HW>0?q>=n.HW:!1:!1}; XET=function(n){var q=bC(n.Mr.Df,2),w=n.Zm.C,X=n.Mr,P=bu(n),R=ot(P.W),c=ot(P.D),k=ot(X.volume),r=bC(P.G,2),e=bC(P.PW,2),f=bC(X.Df,2),O=bC(P.vW,2),H=bC(P.HW,2);X=bC(X.U2,2);var U=n.DT().clone().round();n=n.Fn&&n.Fn.C?(n.Fn?n.Fn.C:null).clone().round():null;P=e7(P,!1);return{o8o:q,iQ:w,vx:R,ER:c,h1:k,CS:r,qF:e,Df:f,fS:O,Px:H,U2:X,position:U,gT:n,Wx:P}}; Ri3=function(n,q){PqY(n.N,q,function(){return{o8o:0,iQ:void 0,vx:-1,ER:-1,h1:-1,CS:-1,qF:-1,Df:-1,fS:-1,Px:-1,U2:-1,position:void 0,gT:void 0,Wx:[]}}); n.N[q]=XET(n)}; PqY=function(n,q,w){for(var X=n.length;X0?1:0;O.atos= c5(e.N);O.ssb=c5(e.Ne,!1);O.amtos=TU3(e.N,!1);O.uac=n.AK;O.vpt=e.C.N;f=="nio"&&(O.nio=1,O.avms="nio");O.gmm="4";O.gdr=AR(n,e.C.N,!0)?1:0;O.efpf=n.KM;if(f=="gsv"||f=="nis")f=n.Fn,f.G>0&&(O.nnut=f.G);O.tcm=NU3(n);O.nmt=n.Ff;O.bt=n.Tp;O.pst=n.IH;O.vpaid=n.L;O.dur=n.C;O.vmtime=n.qP;O.is=n.Zm.C;n.N.length>=1&&(O.i0=n.N[0].iQ,O.a0=[n.N[0].h1],O.c0=[n.N[0].Df],O.ss0=[n.N[0].U2],f=n.N[0].position,R=n.N[0].gT,O.p0=f?Gb(f):void 0,f&&R&&!E_(R,f)&&(O.cp0=Gb(R)));n.N.length>=2&&(O.i1=n.N[1].iQ,O.a1=S7(n.N[1].vx, n.N[1].h1,n.N[1].ER),O.c1=S7(n.N[1].CS,n.N[1].Df,n.N[1].qF),O.ss1=S7(n.N[1].fS,n.N[1].U2,n.N[1].Px),f=n.N[1].position,R=n.N[1].gT,O.p1=f?Gb(f):void 0,f&&R&&!E_(R,f)&&(O.cp1=Gb(R)),O.mtos1=n.N[1].Wx);n.N.length>=3&&(O.i2=n.N[2].iQ,O.a2=S7(n.N[2].vx,n.N[2].h1,n.N[2].ER),O.c2=S7(n.N[2].CS,n.N[2].Df,n.N[2].qF),O.ss2=S7(n.N[2].fS,n.N[2].U2,n.N[2].Px),f=n.N[2].position,R=n.N[2].gT,O.p2=f?Gb(f):void 0,f&&R&&!E_(R,f)&&(O.cp2=Gb(R)),O.mtos2=n.N[2].Wx);n.N.length>=4&&(O.i3=n.N[3].iQ,O.a3=S7(n.N[3].vx,n.N[3].h1, n.N[3].ER),O.c3=S7(n.N[3].CS,n.N[3].Df,n.N[3].qF),O.ss3=S7(n.N[3].fS,n.N[3].U2,n.N[3].Px),f=n.N[3].position,R=n.N[3].gT,O.p3=f?Gb(f):void 0,f&&R&&!E_(R,f)&&(O.cp3=Gb(R)),O.mtos3=n.N[3].Wx);O.cs=JIT(n.Zm);q&&(O.ic=ZBy(n.Zm),O.dvpt=e.C.X,O.dvs=j7(e.X,.5),O.dfvs=j7(e.X,1),O.davs=j7(e.N,.5),O.dafvs=j7(e.N,1),w&&(e.C.X=0,F83(e.X),F83(e.N)),n.bz()&&(O.dtos=e.WW,O.dav=e.L,O.dtoss=n.Bf+1,w&&(e.WW=0,e.L=0,n.Bf++)),O.dat=e.K.X,O.dft=e.qP.X,w&&(e.K.X=0,e.qP.X=0));O.ps=[k.K.width,k.K.height];O.bs=[C$(k.N),k.N.getHeight()]; O.scs=[k.W.width,k.W.height];O.dom=k.domain;n.Sb&&(O.vds=n.Sb);if(n.D.length>0||n.Lz)q=g.Ml(n.D),n.Lz&&q.push(n.Lz),O.pings=g.Hh(q,function(H){return H.toString()}); q=g.Hh(g.Vr(n.D,function(H){return H.D()}),function(H){return H.getId()}); p0T(q);O.ces=q;n.X&&(O.vmer=n.X);n.V&&(O.vmmk=n.V);n.WW&&(O.vmiec=n.WW);O.avms=n.Fn?n.Fn.getName():"ns";n.Fn&&g.tX(O,n.Fn.zL());X?(O.c=bC(n.Mr.Df,2),O.ss=bC(n.Mr.U2,2)):O.tth=xo()-rbs;O.mc=bC(e.PW,2);O.nc=bC(e.G,2);O.mv=ot(e.D);O.nv=ot(e.W);O.lte=bC(n.My,2);X=bu(n,P);e7(e);O.qmtos=e7(X);O.qnc=bC(X.G,2);O.qmv=ot(X.D);O.qnv=ot(X.W);O.qas=X.W>0?1:0;O.qi=n.bE;O.avms||(O.avms="geo");O.psm=e.Tp.N;O.psv=e.Tp.getValue();O.psfv=e.je.getValue();O.psa=e.oH.getValue();r=EuO(r.fG);r.length&&(O.veid=r);n.K&&g.tX(O, AIh(n.K));O.avas=n.gI();O.vs=n.MK();O.co=jes(n);O.tm=e.n5;O.tu=e.D0;return O}; cb0=function(n,q){if(g.yv(sem,q))return!0;var w=n.wp[q];return w!==void 0?(n.wp[q]=!0,!w):!1}; jes=function(n){var q=n.n5.toString(10).padStart(2,"0");q=""+n.nM+q;n.n5<99&&n.n5++;return q}; fXu=function(){this.N={};var n=s_();uu(this,n,document);var q=eiO();try{if("1"==q){for(var w=n.parent;w!=n.top;w=w.parent)uu(this,w,w.document);uu(this,n.top,n.top.document)}}catch(X){}}; eiO=function(){var n=document.documentElement;try{if(!rb(s_().top))return"2";var q=[],w=s_(n.ownerDocument);for(n=w;n!=w.top;n=n.parent)if(n.frameElement)q.push(n.frameElement);else break;return q&&q.length!=0?"1":"0"}catch(X){return"2"}}; uu=function(n,q,w){f_(w,"mousedown",function(){return OGs(n)},301); f_(q,"scroll",function(){return iGy(n)},302); f_(w,"touchmove",function(){return HGO(n)},303); f_(w,"mousemove",function(){return UJs(n)},304); f_(w,"keydown",function(){return tcO(n)},305)}; OGs=function(n){g.nV(n.N,function(q){q.C>1E5||++q.C})}; iGy=function(n){g.nV(n.N,function(q){q.N>1E5||++q.N})}; HGO=function(n){g.nV(n.N,function(q){q.N>1E5||++q.N})}; tcO=function(n){g.nV(n.N,function(q){q.X>1E5||++q.X})}; UJs=function(n){g.nV(n.N,function(q){q.W>1E5||++q.W})}; dJ3=function(){this.N=[];this.X=[]}; B5=function(n,q){return g.d0(n.N,function(w){return w.bE==q})}; gVY=function(n,q){return q?g.d0(n.N,function(w){return w.aW.El==q}):null}; mJT=function(n,q){return g.d0(n.X,function(w){return w.yC()==2&&w.bE==q})}; Zr=function(){var n=Qr;return n.N.length==0?n.X:n.X.length==0?n.N:g.Lj(n.X,n.N)}; yb6=function(n,q){n=q.yC()==1?n.N:n.X;var w=tw(n,function(X){return X==q}); return w!=-1?(n.splice(w,1),q.Fn&&q.Fn.unobserve(),q.dispose(),!0):!1}; aXs=function(n){var q=Qr;if(yb6(q,n)){switch(n.yC()){case 0:var w=function(){return null}; case 2:w=function(){return mJT(q,n.bE)}; break;case 1:w=function(){return B5(q,n.bE)}}for(var X=w();X;X=w())yb6(q,X)}}; Vcm=function(n){var q=Qr;n=g.Vr(n,function(w){return!gVY(q,w.aW.El)}); q.N.push.apply(q.N,g.D(n))}; pEs=function(n){var q=[];g.Jw(n,function(w){Yo(Qr.N,function(X){return X.aW.El===w.aW.El&&X.bE===w.bE})||(Qr.N.push(w),q.push(w))})}; JR=function(){this.N=this.X=null}; TTx=function(n,q){function w(X,P){q(X,P)} if(n.X==null)return!1;n.N=g.d0(n.X,function(X){return X!=null&&X.Iy()}); n.N&&(n.N.init(w)?jEO(n.N.N):q(n.N.N.Z7(),n.N));return n.N!=null}; zb=function(n){n=F93(n);Wg.call(this,n.length?n[n.length-1]:new QN(vO,0));this.C=n;this.X=null}; F93=function(n){if(!n.length)return[];n=(0,g.Vr)(n,function(w){return w!=null&&w.ZE()}); for(var q=1;qw.time?q:w},n[0])}; qQ=function(n){n=n===void 0?vO:n;Wg.call(this,new QN(n,2))}; wK=function(){var n=Mcs();QN.call(this,vO.top,n,"geo")}; Mcs=function(){nF();var n=KF();return n.C||n.X?0:2}; xJT=function(){}; Xx=function(){this.done=!1;this.N={Wv:0,EL:0,zKp:0,HS:0,DQ:-1,vZ:0,Mj:0,Ca:0,yJi:0};this.K=null;this.D=!1;this.C=null;this.G=0;this.X=new Bg(this)}; RM=function(){var n=Pr;n.D||(n.D=!0,DJ6(n,function(){return n.W.apply(n,g.D(g.bs.apply(0,arguments)))}),n.W())}; hix=function(){db(xJT);var n=db(JR);n.N!=null&&n.N.N?jEO(n.N.N):KF().update(vO)}; cr=function(n,q,w){if(!n.done&&(n.X.cancel(),q.length!=0)){n.C=null;try{hix();var X=xo();nF().K=X;if(db(JR).N!=null)for(var P=0;P=0?xo()-Dg:-1,k=xo();P.N.DQ==-1&&(c=k);var r=KF(),e=nF(),f=Fn(e.fG),O=Zr();try{if(O.length>0){var H=r.N;H&&(f.bs=[C$(H),H.getHeight()]);var U=r.K;U&&(f.ps=[U.width,U.height]);vO.screen&&(f.scs=[vO.screen.width,vO.screen.height])}else f.url=encodeURIComponent(vO.location.href.substring(0,512)),R.referrer&&(f.referrer=encodeURIComponent(R.referrer.substring(0,512))); f.tt=c;f.pt=Dg;f.bin=e.X;vO.google_osd_load_pub_page_exp!==void 0&&(f.olpp=vO.google_osd_load_pub_page_exp);f.deb=[1,P.N.Wv,P.N.EL,P.N.HS,P.N.DQ,0,P.X.X,P.N.vZ,P.N.Mj,P.N.Ca,P.N.yJi,-1].join(";");f.tvt=G1z(P,k);r.X&&(f.inapp=1);if(vO!==null&&vO!=vO.top){O.length>0&&(f.iframe_loc=encodeURIComponent(vO.location.href.substring(0,512)));var t=r.G;f.is=[C$(t),t.getHeight()]}}catch(V){f.error=1}Pr.C=f}H=g.HJ(Pr.C);U=nF().N;TF(U.C,"prf")==1?(t=new W8,P=U.N,R=0,P.N>-1&&(R=P.C.N.now()-P.N),t=cE(t,1,kk(P.W+ R),0),P=U.N,t=cE(t,5,eT(P.N>-1?P.X+1:P.X),0),t=cE(t,2,gU(U.X.N.C()),"0"),t=cE(t,3,gU(U.X.N.X()),"0"),U=cE(t,4,gU(U.X.N.N()),"0"),t={},U=(t.pf=g.p1(U.C()),t)):U={};g.tX(H,U);g.tX(q,X,w,H,n())}])}; oVu=function(){var n=EVT||vO;if(!n)return"";var q=[];if(!n.location||!n.location.href)return"";q.push("url="+encodeURIComponent(n.location.href.substring(0,512)));n.document&&n.document.referrer&&q.push("referrer="+encodeURIComponent(n.document.referrer.substring(0,512)));return q.join("&")}; IM=function(){var n="youtube.player.web_20250709_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250709_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250709_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250709_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),q;if(((q=n)==null?void 0:q.length)==2)return n[1];n="youtube.player.web_20250709_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var w;return((w=n)==null?void 0:w.length)==3?"20"+n[1]+n[2]:null}; bGs=function(){return"av.default_js".includes("ima_html5_sdk")?{Zy:"ima",QC:null}:"av.default_js".includes("ima_native_sdk")?{Zy:"nima",QC:null}:"av.default_js".includes("admob-native-video-javascript")?{Zy:"an",QC:null}:"youtube.player.web_20250709_21_RC00".includes("cast_js_sdk")?{Zy:"cast",QC:IM()}:"youtube.player.web_20250709_21_RC00".includes("youtube.player.web")?{Zy:"yw",QC:IM()}:"youtube.player.web_20250709_21_RC00".includes("outstream_web_client")?{Zy:"out",QC:IM()}:"youtube.player.web_20250709_21_RC00".includes("drx_rewarded_web")? {Zy:"r",QC:IM()}:"youtube.player.web_20250709_21_RC00".includes("gam_native_web_video")?{Zy:"n",QC:IM()}:"youtube.player.web_20250709_21_RC00".includes("admob_interstitial_video")?{Zy:"int",QC:IM()}:{Zy:"j",QC:null}}; j5=function(n,q){var w={sv:"967"};k6!==null&&(w.v=k6);w.cb=Abz;w.nas=Qr.N.length;w.msg=n;q!==void 0&&(n=YST(q))&&(w.e=rK[n]);return w}; sn=function(n){return vJ(n,"custom_metric_viewable")}; YST=function(n){var q=sn(n)?"custom_metric_viewable":n.toLowerCase();return en(Yh,function(w){return w==q})}; K9x=function(){this.N=void 0;this.X=!1;this.C=0;this.W=-1;this.K="tos"}; BTO=function(n){try{var q=n.split(",");return q.length>g.ky(SSY).length?null:t0(q,function(w,X){X=X.toLowerCase().split("=");if(X.length!=2||uLu[X[0]]===void 0||!uLu[X[0]](X[1]))throw Error("Entry ("+X[0]+", "+X[1]+") is invalid.");w[X[0]]=X[1];return w},{})}catch(w){return null}}; Qes=function(n,q){if(n.N==void 0)return 0;switch(n.K){case "mtos":return n.X?rM(q.N,n.N):rM(q.X,n.N);case "tos":return n.X?kh(q.N,n.N):kh(q.X,n.N)}return 0}; e5=function(n,q,w,X){M2.call(this,q,X);this.G=n;this.V=w}; f8=function(){}; On=function(n){M2.call(this,"fully_viewable_audible_half_duration_impression",n)}; iA=function(n){this.N=n}; Hr=function(n,q){M2.call(this,n,q)}; Un=function(n){xh.call(this,"measurable_impression",n)}; tz=function(){iA.apply(this,arguments)}; dK=function(n,q,w){lu.call(this,n,q,w)}; gK=function(n){n=n===void 0?vO:n;Wg.call(this,new QN(n,2))}; mo=function(n,q,w){lu.call(this,n,q,w)}; yz=function(n){n=n===void 0?vO:n;Wg.call(this,new QN(n,2))}; aM=function(){QN.call(this,vO,2,"mraid");this.Tp=0;this.PW=this.vW=!1;this.G=null;this.X=Xhz(this.C);this.W.N=new GN(0,0,0,0);this.n5=!1}; Vz=function(n,q,w){n.dW("addEventListener",q,w)}; W90=function(n){nF().W=!!n.dW("isViewable");Vz(n,"viewableChange",ZG0);n.dW("getState")==="loading"?Vz(n,"ready",Jbs):zis(n)}; zis=function(n){typeof n.X.NQ.AFMA_LIDAR==="string"?(n.vW=!0,NTO(n)):(n.X.compatibility=3,n.G="nc",n.fail("w"))}; NTO=function(n){n.PW=!1;var q=TF(nF().fG,"rmmt")==1,w=!!n.dW("isViewable");(q?!w:1)&&md().setTimeout(LF(524,function(){n.PW||(nqh(n),MZ(540,Error()),n.G="mt",n.fail("w"))}),500); qRx(n);Vz(n,n.X.NQ.AFMA_LIDAR,w8s)}; qRx=function(n){var q=TF(nF().fG,"sneio")==1,w=n.X.NQ.AFMA_LIDAR_EXP_1!==void 0,X=n.X.NQ.AFMA_LIDAR_EXP_2!==void 0;(q=q&&X)&&(n.X.NQ.AFMA_LIDAR_EXP_2=!0);w&&(n.X.NQ.AFMA_LIDAR_EXP_1=!q)}; nqh=function(n){n.dW("removeEventListener",n.X.NQ.AFMA_LIDAR,w8s);n.vW=!1}; X8u=function(n,q){if(n.dW("getState")==="loading")return new g.QB(-1,-1);q=n.dW(q);if(!q)return new g.QB(-1,-1);n=parseInt(q.width,10);q=parseInt(q.height,10);return isNaN(n)||isNaN(q)?new g.QB(-1,-1):new g.QB(n,q)}; Jbs=function(){try{var n=db(aM);n.dW("removeEventListener","ready",Jbs);zis(n)}catch(q){MZ(541,q)}}; w8s=function(n,q){try{var w=db(aM);w.PW=!0;var X=n?new GN(n.y,n.x+n.width,n.y+n.height,n.x):new GN(0,0,0,0);var P=xo(),R=uC();var c=new CF(P,R,w);c.N=X;c.volume=q;w.GL(c)}catch(k){MZ(542,k)}}; ZG0=function(n){var q=nF(),w=db(aM);n&&!q.W&&(q.W=!0,w.n5=!0,w.G&&w.fail("w",!0))}; p8=function(){this.isInitialized=!1;this.N=this.X=null;var n={};this.G=(n.start=this.QG,n.firstquartile=this.eU,n.midpoint=this.KB,n.thirdquartile=this.gZ,n.complete=this.rZ,n.error=this.FY,n.pause=this.Fw,n.resume=this.gE,n.skip=this.Ge,n.viewable_impression=this.L1,n.mute=this.Us,n.unmute=this.Us,n.fullscreen=this.dZ,n.exitfullscreen=this.Op,n.fully_viewable_audible_half_duration_impression=this.L1,n.measurable_impression=this.L1,n.abandon=this.Fw,n.engagedview=this.L1,n.impression=this.L1,n.creativeview= this.L1,n.progress=this.Us,n.custom_metric_viewable=this.L1,n.bufferstart=this.Fw,n.bufferfinish=this.gE,n.audio_measurable=this.L1,n.audio_audible=this.L1,n);n={};this.V=(n.overlay_resize=this.Zo,n.abandon=this.v2,n.close=this.v2,n.collapse=this.v2,n.overlay_unmeasurable_impression=function(q){return K_(q,"overlay_unmeasurable_impression",uC())},n.overlay_viewable_immediate_impression=function(q){return K_(q,"overlay_viewable_immediate_impression",uC())},n.overlay_unviewable_impression=function(q){return K_(q, "overlay_unviewable_impression",uC())},n.overlay_viewable_end_of_session_impression=function(q){return K_(q,"overlay_viewable_end_of_session_impression",uC())},n); nF().X=3;PSu(this);this.C=null}; T9=function(n,q,w,X){n=n.n9(null,X,!0,q);n.W=w;Vcm([n]);return n}; Rz6=function(n,q,w){M3s(q);var X=n.N;g.Jw(q,function(P){var R=g.Hh(P.criteria,function(c){var k=BTO(c);if(k==null)c=null;else if(c=new K9x,k.visible!=null&&(c.N=k.visible/100),k.audible!=null&&(c.X=k.audible==1),k.time!=null){var r=k.timetype=="mtos"?"mtos":"tos",e=AOh(k.time,"%")?"%":"ms";k=parseInt(k.time,10);e=="%"&&(k/=100);c.setTime(k,e,r)}return c}); Yo(R,function(c){return c==null})||qS6(w,new e5(P.id,P.event,R,X))})}; cxh=function(){var n=[],q=nF();n.push(db(wK));TF(q.fG,"mvp_lv")&&n.push(db(aM));q=[new gK,new yz];q.push(new zb(n));q.push(new qQ(vO));return q}; IzT=function(n){if(!n.isInitialized){n.isInitialized=!0;try{var q=xo(),w=nF(),X=KF();Dg=q;w.C=79463069;n.X!=="o"&&(EVT=ROm(vO));if(HVs()){Pr.N.EL=0;Pr.N.DQ=xo()-q;var P=cxh(),R=db(JR);R.X=P;TTx(R,function(){Fx()})?Pr.done||(lXx(),Zg(R.N.N,n),RM()):X.C?Fx():RM()}else $6=!0}catch(c){throw Qr.reset(),c; }}}; C8=function(n){Pr.X.cancel();G9=n;Pr.done=!0}; En=function(n){if(n.X)return n.X;var q=db(JR).N;if(q)switch(q.getName()){case "nis":n.X="n";break;case "gsv":n.X="m"}n.X||(n.X="h");return n.X}; oM=function(n,q,w){if(n.N==null)return q.Sb|=4,!1;n=k26(n.N,w,q);q.Sb|=n;return n==0}; Fx=function(){var n=[new qQ(vO)],q=db(JR);q.X=n;TTx(q,function(){C8("i")})?Pr.done||(lXx(),RM()):C8("i")}; rxu=function(n,q){if(!n.Me){var w=K_(n,"start",uC());w=n.OB.N(w).N;var X={id:"lidarv"};X.r=q;X.sv="967";k6!==null&&(X.v=k6);jQ(w,function(P,R){return X[P]=P=="mtos"||P=="tos"?R:encodeURIComponent(R)}); q=oVu();jQ(q,function(P,R){return X[P]=encodeURIComponent(R)}); q="//pagead2.googlesyndication.com/pagead/gen_204?"+q2(n_(new NZ,X));mqu(q);n.Me=!0}}; bA=function(n,q,w){cr(Pr,[n],!uC());Ri3(n,w);w!=4&&PqY(n.vW,w,n.Nf);return K_(n,q,uC())}; PSu=function(n){CqY(function(){var q=jLy();n.X!=null&&(q.sdk=n.X);var w=db(JR);w.N!=null&&(q.avms=w.N.getName());return q})}; sLT=function(n,q,w,X){var P=gVY(Qr,w);P!==null&&P.bE!==q&&(n.wI(P),P=null);P||(q=n.n9(w,xo(),!1,q),Qr.X.length==0&&(nF().C=79463069),pEs([q]),P=q,P.W=En(n),X&&(P.oH=X));return P}; ez6=function(n,q){var w=n[q];w!==void 0&&w>0&&(n[q]=Math.floor(w*1E3))}; jLy=function(){var n=KF(),q={},w={},X={};return Object.assign({},(q.sv="967",q),k6!==null&&(w.v=k6,w),(X["if"]=n.C?"1":"0",X.nas=String(Qr.N.length),X))}; Az=function(n){M2.call(this,"audio_audible",n)}; Y6=function(n){xh.call(this,"audio_measurable",n)}; K8=function(){iA.apply(this,arguments)}; S5=function(){}; fzs=function(n){this.N=n}; k26=function(n,q,w){n=n.X();if(typeof n==="function"){var X={};var P={};X=Object.assign({},k6!==null&&(X.v=k6,X),(P.sv="967",P.cb=Abz,P.e=OAy(q),P));P=K_(w,q,uC());g.tX(X,P);w.Fm[q]=P;X=w.yC()==2?gkh(X).join("&"):w.OB.N(X).N;try{return n(w.bE,X,q),0}catch(R){return 2}}else return 1}; OAy=function(n){var q=sn(n)?"custom_metric_viewable":n;n=en(Yh,function(w){return w==q}); return rK[n]}; uA=function(){p8.call(this);this.D=null;this.K=!1;this.W="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; iA6=function(n,q,w){w=w.opt_configurable_tracking_events;n.N!=null&&Array.isArray(w)&&Rz6(n,w,q)}; HAO=function(n,q,w){var X=B5(Qr,q);X||(X=w.opt_nativeTime||-1,X=T9(n,q,En(n),X),w.opt_osdId&&(X.oH=w.opt_osdId));return X}; UwT=function(n,q,w){var X=B5(Qr,q);X||(X=T9(n,q,"n",w.opt_nativeTime||-1));return X}; tAs=function(n,q){var w=B5(Qr,q);w||(w=T9(n,q,"h",-1));return w}; dwO=function(n){nF();switch(En(n)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; yxY=function(n,q,w,X){w=w===void 0?{}:w;var P={};g.tX(P,{opt_adElement:void 0,opt_fullscreen:void 0},w);var R=n.Cn(q,w);w=R?R.OB:n.g8();if(P.opt_bounds)return w.N(j5("ol",X));if(X!==void 0)if(YST(X)!==void 0)if($6)n=j5("ue",X);else if(IzT(n),G9=="i")n=j5("i",X),n["if"]=0;else if(q=n.Cn(q,P)){b:{G9=="i"&&(q.VY=!0);R=P.opt_fullscreen;R!==void 0&&tR(q,!!R);var c;if(R=!KF().X)(R=Dc(g.CV(),"CrKey")&&!(Dc(g.CV(),"CrKey")&&Dc(g.CV(),"SmartSpeaker"))||Dc(g.CV(),"PlayStation")||Dc(g.CV(),"Roku")||kes()||Dc(g.CV(), "Xbox"))||(R=g.CV(),R=Dc(R,"AppleTV")||Dc(R,"Apple TV")||Dc(R,"CFNetwork")||Dc(R,"tvOS")),R||(R=g.CV(),R=Dc(R,"sdk_google_atv_x86")||Dc(R,"Android TV")),R=!R;R&&(md(),R=RJ(SQ)===0);if(c=R){switch(q.yC()){case 1:rxu(q,"pv");break;case 2:n.SD(q)}C8("pv")}R=X.toLowerCase();if(c=!c)c=TF(nF().fG,"ssmol")&&R==="loaded"?!1:g.yv(gq0,R);if(c&&q.e$==0){G9!="i"&&(Pr.done=!1);c=P!==void 0?P.opt_nativeTime:void 0;Gy=c=typeof c==="number"?c:xo();q.by=!0;var k=uC();q.e$=1;q.wp={};q.wp.start=!1;q.wp.firstquartile= !1;q.wp.midpoint=!1;q.wp.thirdquartile=!1;q.wp.complete=!1;q.wp.resume=!1;q.wp.pause=!1;q.wp.skip=!1;q.wp.mute=!1;q.wp.unmute=!1;q.wp.viewable_impression=!1;q.wp.measurable_impression=!1;q.wp.fully_viewable_audible_half_duration_impression=!1;q.wp.fullscreen=!1;q.wp.exitfullscreen=!1;q.Bf=0;k||(q.hx().V=c);cr(Pr,[q],!k)}(c=q.us[R])&&Tb(q.Zm,c);TF(nF().fG,"fmd")||g.yv(mwx,R)&&q.Lz&&q.Lz.X(q,null);switch(q.yC()){case 1:var r=sn(R)?n.G.custom_metric_viewable:n.G[R];break;case 2:r=n.V[R]}if(r&&(X=r.call(n, q,P,X),TF(nF().fG,"fmd")&&g.yv(mwx,R)&&q.Lz&&q.Lz.X(q,null),X!==void 0)){P=j5(void 0,R);g.tX(P,X);X=P;break b}X=void 0}q.e$==3&&n.wI(q);n=X}else n=j5("nf",X);else n=void 0;else $6?n=j5("ue"):R?(n=j5(),g.tX(n,IXm(R,!0,!1,!1))):n=j5("nf");return typeof n==="string"?w.N():w.N(n)}; azs=function(n,q){q&&(n.W=q)}; VAz=function(n){var q={};return q.viewability=n.N,q.googleViewability=n.X,q}; p86=function(n,q,w){w=w===void 0?{}:w;n=yxY(db(uA),q,w,n);return VAz(n)}; Br=function(n){var q=g.bs.apply(1,arguments).filter(Boolean).join("&");if(!q)return n;var w=n.match(/[?&]adurl=/);return w?n.slice(0,w.index+1)+q+"&"+n.slice(w.index+1):n+(n.indexOf("?")<0?"?":"&")+q}; Qz=function(n,q){return q?"&"+n+"="+encodeURIComponent(q):""}; T10=function(n){var q=n.url;n=n.qIq;this.X=q;this.W=n;this.C=(new Date).getTime()-17040672E5;this.N={};for(var w=/[?&]([^&=]+)=([^&]*)/g;n=w.exec(q);)this.N[n[1]]=n[2]}; Fes=function(n){n=n.W;if(!n)return"";var q=Qz("uap",n.platform)+Qz("uapv",n.platformVersion)+Qz("uafv",n.uaFullVersion)+Qz("uaa",n.architecture)+Qz("uam",n.model)+Qz("uab",n.bitness);n.fullVersionList&&(q+="&uafvl="+encodeURIComponent(n.fullVersionList.map(function(w){return encodeURIComponent(w.brand)+";"+encodeURIComponent(w.version)}).join("|"))); n.wow64!=null&&(q+="&uaw="+Number(n.wow64));return q.slice(1)}; Le3=function(n,q,w,X,P){var R=window;var c=c===void 0?!1:c;var k;w?k=(c===void 0?0:c)?"//ep1.adtrafficquality.google/bg/"+ME(w)+".js":"//pagead2.googlesyndication.com/bg/"+ME(w)+".js":k="";c=c===void 0?!1:c;w=R.document;var r={};q&&(r._scs_=q);r._bgu_=k;r._bgp_=X;r._li_="v_h.3.0.0.0";P&&(r._upb_=P);(q=R.GoogleTyFxhY)&&typeof q.push=="function"||(q=R.GoogleTyFxhY=[]);q.push(r);q=X8(w).createElement("SCRIPT");q.type="text/javascript";q.async=!0;n=(c===void 0?0:c)?MB6($wy,ME(n)+".js"):MB6(vqO,ME(n)+ ".js");g.mr(q,n);(R=(R.GoogleTyFxhYEET||{})[q.src])?R():w.getElementsByTagName("head")[0].appendChild(q)}; MAh=function(){try{var n,q;return!!((n=window)==null?0:(q=n.top)==null?0:q.location.href)&&!1}catch(w){return!0}}; Zq=function(n,q,w){w=w===void 0?Error():w;var X=Error.call(this);this.message=X.message;"stack"in X&&(this.stack=X.stack);this.code=n;q+=":";w instanceof Error?(this.message=q+w.message,this.stack=w.stack||""):(this.message=q+String(w),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; z9=function(){var n=xwu();n=n===void 0?"bevasrsg":n;return new Promise(function(q){var w=window===window.top?window:MAh()?window:window.top,X=w[n],P;((P=X)==null?0:P.bevasrs)?q(new Jz(X.bevasrs)):(X||(X={},X=(X.nqfbel=[],X),w[n]=X),X.nqfbel.push(function(R){q(new Jz(R))}))})}; Dw3=function(n){var q={c:n.Gh,e:n.Lk,mc:n.NW,me:n.Ev};n.q3&&(q.co={c:n.q3.AR,a:n.q3.Ce,s:n.q3.ul});return q}; Wr=function(n){g.A.call(this);this.wpc=n}; Jz=function(n){g.A.call(this);var q=this;this.SP=n;this.C="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.X=void 0;this.Bk=this.SP.p;this.W=this.P$.bind(this);this.addOnDisposeCallback(function(){return void hzy(q)})}; lzT=function(n){var q;return g.b(function(w){if(w.X==1){if(!n.SP.wpc)throw new Zq(30,"NWA");return n.N?w.return(n.N):g.l(w,n.SP.wpc(),2)}q=w.N;n.N=new Wr(q);return w.return(n.N)})}; hzy=function(n){n.X!==void 0&&(n.C.forEach(function(q){var w;(w=n.X)==null||w.removeEventListener(q,n.W)}),n.X=void 0)}; G2m=function(n){var q=q===void 0?49:q;var w=[];US(n,NQ,6).forEach(function(X){T1(X,2)<=q&&w.push(T1(X,1))}); return w}; CSy=function(n){var q=q===void 0?49:q;var w=[];US(n,NQ,6).forEach(function(X){T1(X,2)>q&&w.push(T1(X,1))}); return w}; EqY=function(n){n.then(function(){},function(){})}; nv=function(){g.A.apply(this,arguments);this.X=1;this[oqm]=this.dispose}; qW=function(n){return{fieldType:2,fieldName:n}}; g.wm=function(n){return{fieldType:3,fieldName:n}}; bAs=function(n){this.N=n;n.BL("/client_streamz/bg/frs",g.wm("mk"))}; Ax3=function(n){this.N=n;n.BL("/client_streamz/bg/wrl",g.wm("mn"),qW("ac"),qW("sc"),g.wm("rk"),g.wm("mk"))}; YR6=function(n){this.N=n;n.fh("/client_streamz/bg/ec",g.wm("en"),g.wm("mk"))}; Kes=function(n){this.N=n;n.BL("/client_streamz/bg/el",g.wm("en"),g.wm("mk"))}; SRO=function(n){this.N=n;n.fh("/client_streamz/bg/cec",qW("ec"),g.wm("mk"))}; uJx=function(n){this.N=n;n.fh("/client_streamz/bg/po/csc",qW("cs"),g.wm("mk"))}; B1u=function(n){this.N=n;n.fh("/client_streamz/bg/po/ctav",g.wm("av"),g.wm("mk"))}; QLO=function(n){this.N=n;n.fh("/client_streamz/bg/po/cwsc",g.wm("su"),g.wm("mk"))}; ZAY=function(n){this.PQ=bL(n)}; JxT=function(n,q){return v1z(n,q,n10)}; XQ=function(n){this.PQ=bL(n)}; Pf=function(n){this.PQ=bL(n)}; RY=function(n){this.PQ=bL(n)}; cf=function(n){this.PQ=bL(n)}; IY=function(n){this.PQ=bL(n)}; kL=function(n){this.PQ=bL(n)}; zzO=function(n){this.PQ=bL(n)}; nox=function(n){var q=new kL;q=DX(q,1,n.X);var w=Wem(n);q=v1z(q,w,e9O);w=[];for(var X=[],P=g.a(n.N.keys()),R=P.next();!R.done;R=P.next())X.push(R.value.split(","));for(P=0;P>>31)&4294967295;O=P[0];var t=P[1],V=P[2],T=P[3],x=P[4];for(U=0;U<80;U++){if(U<40)if(U<20){var M=T^t&(V^T);var h=1518500249}else M=t^V^T,h=1859775393;else U<60?(M=t&V|T&(t|V),h=2400959708):(M=t^V^T,h=3395469782);M=((O<<5|O>>>27)&4294967295)+M+x+h+H[U]&4294967295;x=T;T=V;V=(t<<30|t>>>2)&4294967295;t=O;O=M}P[0]=P[0]+O&4294967295;P[1]=P[1]+t&4294967295;P[2]= P[2]+V&4294967295;P[3]=P[3]+T&4294967295;P[4]=P[4]+x&4294967295} function w(O,H){if(typeof O==="string"){O=unescape(encodeURIComponent(O));for(var U=[],t=0,V=O.length;t=56;U--)R[U]=H&255,H>>>=8;q(R);for(U=H=0;U<5;U++)for(var t=24;t>=0;t-=8)O[H++]=P[U]>>t&255;return O} for(var P=[],R=[],c=[],k=[128],r=1;r<64;++r)k[r]=0;var e,f;n();return{reset:n,update:w,digest:X,Fo:function(){for(var O=X(),H="",U=0;U1)));c=c.next)P||(R=c);P&&(w.N==0&&X==1?Jnz(w,q):(R?(X=R,X.next==w.W&&(w.W=X),X.next=X.next.next):zC6(w),WM0(w,P,3,q)))}n.C=null}else y5(n,3,q)}; Fe=function(n,q){n.X||n.N!=2&&n.N!=3||NG6(n);n.W?n.W.next=q:n.X=q;n.W=q}; nh3=function(n,q,w,X){var P=V5(null,null,null);P.N=new g.aR(function(R,c){P.C=q?function(k){try{var r=q.call(X,k);R(r)}catch(e){c(e)}}:R; P.X=w?function(k){try{var r=w.call(X,k);r===void 0&&k instanceof vy?c(k):R(r)}catch(e){c(e)}}:c}); P.N.C=n;Fe(n,P);return P.N}; y5=function(n,q,w){n.N==0&&(n===w&&(q=3,w=new TypeError("Promise cannot resolve to itself")),n.N=1,ufh(w,n.zde,n.D9q,n)||(n.G=w,n.N=q,n.C=null,NG6(n),q!=3||w instanceof vy||qL6(n,w)))}; ufh=function(n,q,w,X){if(n instanceof g.aR)return ZFO(n,q,w,X),!0;if(n)try{var P=!!n.$goog_Thenable}catch(c){P=!1}else P=!1;if(P)return n.then(q,w,X),!0;if(g.R5(n))try{var R=n.then;if(typeof R==="function")return w5z(n,R,q,w,X),!0}catch(c){return w.call(X,c),!0}return!1}; w5z=function(n,q,w,X,P){function R(r){k||(k=!0,X.call(P,r))} function c(r){k||(k=!0,w.call(P,r))} var k=!1;try{q.call(n,c,R)}catch(r){R(r)}}; NG6=function(n){n.D||(n.D=!0,g.Uz(n.xM,n))}; zC6=function(n){var q=null;n.X&&(q=n.X,n.X=q.next,q.next=null);n.X||(n.W=null);return q}; WM0=function(n,q,w,X){if(w==3&&q.X&&!q.W)for(;n&&n.K;n=n.C)n.K=!1;if(q.N)q.N.C=null,X5Y(q,w,X);else try{q.W?q.C.call(q.context):X5Y(q,w,X)}catch(P){Pus.call(null,P)}CCh(SVm,q)}; X5Y=function(n,q,w){q==2?n.C.call(n.context,w):n.X&&n.X.call(n.context,w)}; qL6=function(n,q){n.K=!0;g.Uz(function(){n.K&&Pus.call(null,q)})}; vy=function(n){iz.call(this,n)}; g.LE=function(n,q){g.IR.call(this);this.V5=n||1;this.kD=q||g.W0;this.rK=(0,g.ki)(this.aml,this);this.vz=g.eB()}; g.Mn=function(n,q,w){if(typeof n==="function")w&&(n=(0,g.ki)(n,w));else if(n&&typeof n.handleEvent=="function")n=(0,g.ki)(n.handleEvent,n);else throw Error("Invalid listener argument");return Number(q)>2147483647?-1:g.W0.setTimeout(n,q||0)}; xp=function(n,q){var w=null;return(new g.aR(function(X,P){w=g.Mn(function(){X(q)},n); w==-1&&P(Error("Failed to schedule timer."))})).Ld(function(X){g.W0.clearTimeout(w); throw X;})}; g.DP=function(n){g.A.call(this);this.G=n;this.W=0;this.C=100;this.K=!1;this.X=new Map;this.D=new Set;this.flushInterval=3E4;this.N=new g.LE(this.flushInterval);this.N.listen("tick",this.Hn,!1,this);g.K(this,this.N)}; RHO=function(n){n.N.enabled||n.N.start();n.W++;n.W>=n.C&&n.Hn()}; cRT=function(n,q){return n.D.has(q)?void 0:n.X.get(q)}; IrT=function(n){for(var q=0;q2?n.N.statusText:""}catch(w){q=""}n.W=q+" ["+n.getStatus()+"]";t7z(n)}}finally{oR(n)}}}; oR=function(n,q){if(n.N){n.D&&(clearTimeout(n.D),n.D=null);var w=n.N;n.N=null;q||n.dispatchEvent("ready");try{w.onreadystatechange=null}catch(X){}}}; Yp=function(n){var q=n.getStatus();a:switch(q){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var w=!0;break a;default:w=!1}if(!w){if(q=q===0)n=g.cg(String(n.V))[1]||null,!n&&g.W0.self&&g.W0.self.location&&(n=g.W0.self.location.protocol.slice(0,-1)),q=!m2s.test(n?n.toLowerCase():"");w=q}return w}; g.Aj=function(n){return n.N?n.N.readyState:0}; g.KE=function(n){try{return n.N?n.N.responseText:""}catch(q){return""}}; g.SX=function(n){try{if(!n.N)return null;if("response"in n.N)return n.N.response;switch(n.WW){case "":case "text":return n.N.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in n.N)return n.N.mozResponseArrayBuffer}return null}catch(q){return null}}; g.yRm=function(n){var q={};n=(n.N&&g.Aj(n)>=2?n.N.getAllResponseHeaders()||"":"").split("\r\n");for(var w=0;w>1,q),Ug(n,n.length>>1)]}; Xrs=function(n){var q=g.a(wrz(n,ts));n=q.next().value;q=q.next().value;return n.toString(16)+q.toString(16)}; PAh=function(n,q){var w=wrz(q);n=new Uint32Array(n.buffer);q=n[0];var X=g.a(w);w=X.next().value;X=X.next().value;for(var P=1;P>>8|c<<24,c+=R|0,c^=k+38293,R=R<<3|R>>>29,R^=c,r=r>>>8|r<<24,r+=k|0,r^=e+38293,k=k<<3|k>>>29,k^=r;R=[R,c];n[P]^=R[0];P+1=w?(globalThis.sessionStorage.removeItem(n),["e"]):["a",new Uint8Array(X.buffer,q+4)]}; d7=function(n,q,w){w=w===void 0?[]:w;this.maxItems=n;this.N=q===void 0?0:q;this.X=w}; Iqy=function(n){var q=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!q)return new d7(n);var w=q.split(",");if(w.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new d7(n);q=w.slice(1);q.length===1&&q[0]===""&&(q=[]);w=Number(w[0]);return isNaN(w)||w<0||w>q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new d7(n)):new d7(n,w,q)}; k9O=function(n,q){this.logger=q;try{var w=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(X){w=!1}w&&(this.index=Iqy(n))}; rz6=function(n,q,w,X,P){var R=n.index?zH(n.logger,function(){return RK6(n.index,Xrs(q),w,X,P)},"W"):"u"; n.logger.yW(R)}; jMY=function(n,q,w){var X=g.a(n.index?zH(n.logger,function(){return czs(Xrs(q),w)},"R"):["u"]),P=X.next().value; X=X.next().value;n.logger.b8(P);return X}; fq6=function(n){function q(){w-=X;w-=P;w^=P>>>13;X-=P;X-=w;X^=w<<8;P-=w;P-=X;P^=X>>>13;w-=X;w-=P;w^=P>>>12;X-=P;X-=w;X^=w<<16;P-=w;P-=X;P^=X>>>5;w-=X;w-=P;w^=P>>>3;X-=P;X-=w;X^=w<<10;P-=w;P-=X;P^=X>>>15} n=sMu(n);for(var w=2654435769,X=2654435769,P=314159265,R=n.length,c=R,k=0;c>=12;c-=12,k+=12)w+=g7(n,k),X+=g7(n,k+4),P+=g7(n,k+8),q();P+=R;switch(c){case 11:P+=n[k+10]<<24;case 10:P+=n[k+9]<<16;case 9:P+=n[k+8]<<8;case 8:X+=n[k+7]<<24;case 7:X+=n[k+6]<<16;case 6:X+=n[k+5]<<8;case 5:X+=n[k+4];case 4:w+=n[k+3]<<24;case 3:w+=n[k+2]<<16;case 2:w+=n[k+1]<<8;case 1:w+=n[k+0]}q();return eKh.toString(P)}; sMu=function(n){for(var q=[],w=0;w>7,n.error.code]);X.set(w,4);return X}; vR=function(n,q,w){my.call(this,n);this.W=q;this.clientState=w;this.N="S";this.X="q"}; $D=function(n){return globalThis.TextEncoder?(new TextEncoder).encode(n):g.Vk(n)}; H8x=function(n,q,w){return n instanceof em?YLy(n,w,q,1):n.a4(w)}; ML=function(n){g.A.call(this);var q=this;this.C=new g.cR;this.W=0;this.X=void 0;this.state=2;this.SP=n.SP;this.Jm=n.Jm;this.hH=Object.assign({},UQs,n.hH||{});this.logger=n.SP.pJ();var w;this.onError=(w=n.onError)!=null?w:function(){}; this.i_=n.i_||!1;if(t5s(n)){var X=this.SP;this.K=function(){return QtT(X).catch(function(c){c=q.reportError(new Zq(q.N?20:32,"TRG:Disposed",c));q.X=c;var k;(k=q.N)==null||k.dispose();q.N=void 0;q.C.reject(c)})}; Z_s(X,function(){return void LL(q)}); X.V===2&&LL(this)}else this.K=n.xCo,LL(this);var P=this.logger.share();P.cN("o");var R=new ZP(P,"o");this.C.promise.then(function(){R.done();P.JD();P.dispose()},function(){return void P.dispose()}); this.addOnDisposeCallback(function(){q.N?(q.N.dispose(),q.N=void 0):q.X?q.logger.JD():(q.X=q.reportError(new Zq(32,"TNP:Disposed")),q.logger.JD(),q.C.reject(q.X))}); g.K(this,this.logger)}; dQ0=function(n,q){if(!(q instanceof Zq))if(q instanceof hj){var w=Error(q.toString());w.stack=q.stack;q=new Zq(11,"EBH:Error",w)}else q=new Zq(12,"BSO:Unknown",q);return n.reportError(q)}; LL=function(n){var q,w,X,P,R,c,k,r,e,f,O,H,U,t,V;return g.b(function(T){switch(T.X){case 1:q=void 0;n.W++;w=new g.cR;n.SP instanceof fL&&n.SP.W.push(w.promise);if(!n.i_){T.f5(2);break}X=new g.cR;setTimeout(function(){return void X.resolve()}); return g.l(T,X.promise,2);case 2:return P=n.logger.share(),g.Vy(T,4,5),n.state=5,R={},c=[],g.l(T,HR(n.SP.snapshot({Gh:R,KU:c}),n.hH.Uiq,function(){return Promise.reject(new Zq(15,"MDA:Timeout"))}),7); case 7:k=T.N;if(n.zp())throw new Zq(n.N?20:32,"MDA:Disposed");r=c[0];n.state=6;return g.l(T,HR(H8x(n.Jm,P,k),n.hH.f4,function(){return Promise.reject(new Zq(10,"BWB:Timeout"))}),8); case 8:e=T.N;if(n.zp())throw new Zq(n.N?20:32,"BWB:Disposed");n.state=7;q=zH(P,function(){var M=g63(n,e,w,r);M.C.promise.then(function(){return void n.K()}); return M},"i"); case 5:g.Dm(T);P.dispose();g.hO(T,6);break;case 4:f=g.$u(T);(O=q)==null||O.dispose();if(!n.X){H=dQ0(n,f);w.resolve();var x;if(x=n.SP instanceof fL&&n.W<2)a:if(f instanceof Zq)x=f.code!==32&&f.code!==20&&f.code!==10;else{if(f instanceof hj)switch(f.code){case 2:case 13:case 14:case 4:break;default:x=!1;break a}x=!0}if(x)return U=(1+Math.random()*.25)*(n.N?6E4:1E3),t=setTimeout(function(){return void n.K()},U),n.addOnDisposeCallback(function(){return void clearTimeout(t)}),T.return(); n.X=H}P.O2(n.N?13:14);n.C.reject(n.X);return T.return();case 6:n.state=8,n.W=0,(V=n.N)==null||V.dispose(),n.N=q,n.C.resolve(),g.yy(T)}})}; g63=function(n,q,w,X){var P=FL(q,2)*1E3;if(P<=0)throw new Zq(31,"TTM:Invalid");if($V(q,4))return new Tu(n.logger,$V(q,4),P);if(!FL(q,3))return new pL(n.logger,DQ(Re(q,1)),P);if(!X)throw new Zq(4,"PMD:Undefined");X=X(DQ(Re(q,1)));if(!(X instanceof Function))throw new Zq(16,"APF:Failed");n.D=Math.floor((Date.now()+P)/1E3);n=new Vl(n.logger,X,FL(q,3),P);n.addOnDisposeCallback(function(){return void w.resolve()}); return n}; mQz=function(n,q){q=q instanceof Zq?q:new Zq(5,"TVD:error",q);return n.reportError(q)}; TK6=function(n,q,w){try{if(n.zp())throw new Zq(21,"BNT:disposed");if(!n.N&&n.X)throw n.X;var X,P;return(P=(X=yzT(n,q,w))!=null?X:aqu(n,q,w))!=null?P:V5Y(n,q,w)}catch(R){if(!q.Ev)throw mQz(n,R);return pr3(n,w,R)}}; yzT=function(n,q,w){var X;return(X=n.N)==null?void 0:a2(X,function(){return xD(n,q)},w,function(P){var R; if(n.N instanceof Vl&&((R=q.q3)==null?0:R.ul))try{var c;(c=n.cache)==null||rz6(c,xD(n,q),P,q.q3.AR,n.D-120)}catch(k){n.reportError(new Zq(24,"ELX:write",k))}})}; aqu=function(n,q,w){var X;if((X=q.q3)!=null&&X.Ce)try{var P,R=(P=n.cache)==null?void 0:jMY(P,xD(n,q),q.q3.AR);return R?w?zH(n.logger,function(){return g.p1(R,2)},"a"):R:void 0}catch(c){n.reportError(new Zq(23,"RXO:read",c))}}; V5Y=function(n,q,w){var X={stack:[],error:void 0,hasError:!1};try{if(!q.NW)throw new Zq(29,"SDF:notready");return a2(t3s(X,new vR(n.logger,0,n.state)),function(){return xD(n,q)},w)}catch(P){X.error=P,X.hasError=!0}finally{dsy(X)}}; pr3=function(n,q,w){var X={stack:[],error:void 0,hasError:!1};try{var P=mQz(n,w);return a2(t3s(X,new FD(n.logger,P)),function(){return[]},q)}catch(R){X.error=R,X.hasError=!0}finally{dsy(X)}}; xD=function(n,q){return q.Lk?q.Lk:q.Gh?zH(n.logger,function(){return q.Lk=$D(q.Gh)},"c"):[]}; DJ=function(){var n=0,q;return function(w){q||(q=new Wy);var X=new vR(q,n,1),P=a2(X,function(){return $D(w)},!0); X.dispose();n++;return P}}; hs=function(n){this.PQ=bL(n)}; Fos=function(n,q,w){this.dE=n;this.Sa=q;this.metadata=w}; lt=function(n,q){q=q===void 0?{}:q;this.AJg=n;this.metadata=q;this.status=null}; Gu=function(n,q,w,X,P){this.name=n;this.methodType="unary";this.requestType=q;this.responseType=w;this.N=X;this.X=P}; CL=function(n){this.PQ=bL(n)}; Eg=function(n){this.PQ=bL(n)}; o2=function(n){this.PQ=bL(n)}; bt=function(n,q){this.G=n.AgH;this.V=q;this.N=n.xhr;this.C=[];this.K=[];this.D=[];this.W=[];this.X=[];this.G&&$Qs(this)}; xQ6=function(n,q){var w=new v6z;g.Wf(n.N,"complete",function(){if(Yp(n.N)){var X=g.KE(n.N);if(q&&n.N.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");X=atob(X)}try{var P=n.V(X)}catch(k){As(n,YD(new hj(13,"Error when deserializing response data; error: "+k+(", response: "+X)),w));return}X=kbO(n.N.getStatus());KL(n,Sm(n));X==0?Loz(n,P):As(n,YD(new hj(X,"Xhr succeeded but the status code is not 200"),w))}else{X=g.KE(n.N);P=Sm(n);if(X){var R=M5s(n, X);X=R.code;var c=R.details;R=R.metadata}else X=2,c="Rpc failed due to xhr error. uri: "+String(n.N.V)+", error code: "+n.N.X+", error: "+n.N.getLastError(),R=P;KL(n,P);As(n,YD(new hj(X,c,R),w))}})}; $Qs=function(n){n.G.xu("data",function(q){if("1"in q){var w=q["1"];try{var X=n.V(w)}catch(P){As(n,new hj(13,"Error when deserializing response data; error: "+P+(", response: "+w)))}X&&Loz(n,X)}if("2"in q)for(q=M5s(n,q["2"]),w=0;w-1&&n.splice(q,1)}; Loz=function(n,q){for(var w=0;w>4&15).toString(16)+(n&15).toString(16)}; X6=function(n,q){this.X=this.N=null;this.C=n||null;this.W=!!q}; IW=function(n){n.N||(n.N=new Map,n.X=0,n.C&&jQ(n.C,function(q,w){n.add(Lo(q),w)}))}; Azz=function(n,q){IW(n);q=kF(n,q);return n.N.has(q)}; g.Ynh=function(n,q,w){n.remove(q);w.length>0&&(n.C=null,n.N.set(kF(n,q),g.Ml(w)),n.X=n.X+w.length)}; kF=function(n,q){q=String(q);n.W&&(q=q.toLowerCase());return q}; E6O=function(n,q){q&&!n.W&&(IW(n),n.C=null,n.N.forEach(function(w,X){var P=X.toLowerCase();X!=P&&(this.remove(X),g.Ynh(this,P,w))},n)); n.W=q}; g.Ko3=function(n){var q="";g.nV(n,function(w,X){q+=X;q+=":";q+=w;q+="\r\n"}); return q}; g.ri=function(n,q,w){if(g.fV(w))return n;w=g.Ko3(w);if(typeof n==="string")return iC(n,g.$1(q),w);g.RW(n,q,w);return n}; g.jq=function(n){g.A.call(this);this.X=n;this.N={}}; Sny=function(n,q,w,X,P,R){if(Array.isArray(w))for(var c=0;c=0)return!0;try{var q=new g.zu(n)}catch(w){return g.d0(Idu,function(X){return n.search(X)>0})!=null}return q.D.match(khz)?!0:g.d0(Idu,function(w){return n.match(w)!=null})!=null}; g.Vt=function(n,q){return n.replace(jYm,function(w,X){try{var P=g.Ol(q,X);if(P==null||P.toString()==null)return w;P=P.toString();if(P==""||!g.LV(g.x1(P)))return encodeURIComponent(P).replace(/%2C/g,",")}catch(R){}return w})}; p9=function(n,q){return Object.is(n,q)}; F6=function(n){var q=TK;TK=n;return q}; sY3=function(n){if(n.FU!==void 0){var q=$F;$F=!0;try{for(var w=g.a(n.FU),X=w.next();!X.done;X=w.next()){var P=X.value;P.lz||(n=void 0,P.lz=!0,sY3(P),(n=P.bf)==null||n.call(P,P))}}finally{$F=q}}}; ea3=function(){var n;return((n=TK)==null?void 0:n.Rs)!==!1}; fdT=function(n){n&&(n.nS=0);return F6(n)}; Ovy=function(n,q){F6(q);if(n&&n.Hh!==void 0&&n.Oo!==void 0&&n.xa!==void 0){if(vt(n))for(q=n.nS;qn.nS;)n.Hh.pop(),n.xa.pop(),n.Oo.pop()}}; Hvm=function(n,q,w){ivm(n);if(n.FU.length===0&&n.Hh!==void 0)for(var X=0;X0}; UWY=function(n){n.Hh!=null||(n.Hh=[]);n.Oo!=null||(n.Oo=[]);n.xa!=null||(n.xa=[])}; ivm=function(n){n.FU!=null||(n.FU=[]);n.XV!=null||(n.XV=[])}; mWy=function(n){function q(){if($F)throw Error("");if(TK!==null){var X=TK.nS++;UWY(TK);X0?" "+q:q))}}; g.nc=function(n,q){if(n.classList)Array.prototype.forEach.call(q,function(P){g.N4(n,P)}); else{var w={};Array.prototype.forEach.call(Jd(n),function(P){w[P]=!0}); Array.prototype.forEach.call(q,function(P){w[P]=!0}); q="";for(var X in w)q+=q.length>0?" "+X:X;g.zK(n,q)}}; g.qX=function(n,q){n.classList?n.classList.remove(q):g.Wt(n,q)&&g.zK(n,Array.prototype.filter.call(Jd(n),function(w){return w!=q}).join(" "))}; g.we=function(n,q){n.classList?Array.prototype.forEach.call(q,function(w){g.qX(n,w)}):g.zK(n,Array.prototype.filter.call(Jd(n),function(w){return!g.yv(q,w)}).join(" "))}; g.XW=function(n,q,w){w?g.N4(n,q):g.qX(n,q)}; Lpy=function(n,q){var w=!g.Wt(n,q);g.XW(n,q,w)}; g.PN=function(){g.IR.call(this);this.N=0;this.endTime=this.startTime=null}; ME6=function(n,q){Array.isArray(q)||(q=[q]);q=q.map(function(w){return typeof w==="string"?w:w.property+" "+w.duration+"s "+w.timing+" "+w.delay+"s"}); g.K$(n,"transition",q.join(","))}; RU=function(n,q,w,X,P){g.PN.call(this);this.X=n;this.K=q;this.D=w;this.W=X;this.G=Array.isArray(P)?P:[P]}; xWs=function(n,q,w,X){return new RU(n,q,{opacity:w},{opacity:X},{property:"opacity",duration:q,timing:"ease-in",delay:0})}; ha6=function(n){n=hX(n);if(n=="")return null;var q=String(n.slice(0,4)).toLowerCase();if(("url("1||n&&n.split(")"),null;if(n.indexOf("(")>0){if(/"|'/.test(n))return null;q=/([\-\w]+)\(/g;for(var w;w=q.exec(n);)if(!(w[1].toLowerCase()in DWT))return null}return n}; cN=function(n,q){n=g.W0[n];return n&&n.prototype?(q=Object.getOwnPropertyDescriptor(n.prototype,q))&&q.get||null:null}; ldT=function(n){var q=g.W0.CSSStyleDeclaration;return q&&q.prototype&&q.prototype[n]||null}; Ghs=function(n,q,w,X){if(n)return n.apply(q,X);if(g.IU&&document.documentMode<10){if(!q[w].call)throw Error("IE Clobbering detected");}else if(typeof q[w]!="function")throw Error("Clobbering detected");return q[w].apply(q,X)}; AQO=function(n){if(!n)return"";var q=document.createElement("div").style;CI0(n).forEach(function(w){var X=g.j4&&w in ELY?w:w.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");vJ(X,"--")||vJ(X,"var")||(w=Ghs(oLs,n,n.getPropertyValue?"getPropertyValue":"getAttribute",[w])||"",w=ha6(w),w!=null&&Ghs(bvy,q,q.setProperty?"setProperty":"setAttribute",[X,w]))}); return q.cssText||""}; CI0=function(n){g.PG(n)?n=g.Ml(n):(n=g.ky(n),g.Vv(n,"cssText"));return n}; g.re=function(n){var q,w=q=0,X=!1;n=n.split(YAm);for(var P=0;P.4?-1:1;return(q==0?null:q)==-1?"rtl":"ltr"}; g.fc=function(n){if(n instanceof je||n instanceof sh||n instanceof ee)return n;if(typeof n.next=="function")return new je(function(){return n}); if(typeof n[Symbol.iterator]=="function")return new je(function(){return n[Symbol.iterator]()}); if(typeof n.Ch=="function")return new je(function(){return n.Ch()}); throw Error("Not an iterator or iterable.");}; je=function(n){this.X=n}; sh=function(n){this.X=n}; ee=function(n){je.call(this,function(){return n}); this.C=n}; Oh=function(n,q,w,X,P,R,c,k){this.N=n;this.G=q;this.C=w;this.K=X;this.W=P;this.D=R;this.X=c;this.V=k}; iU=function(n,q){if(q==0)return n.N;if(q==1)return n.X;var w=S9(n.N,n.C,q),X=S9(n.C,n.W,q);n=S9(n.W,n.X,q);w=S9(w,X,q);X=S9(X,n,q);return S9(w,X,q)}; Bmy=function(n,q){var w=(q-n.N)/(n.X-n.N);if(w<=0)return 0;if(w>=1)return 1;for(var X=0,P=1,R=0,c=0;c<8;c++){R=iU(n,w);var k=(iU(n,w+1E-6)-R)/1E-6;if(Math.abs(R-q)<1E-6)return w;if(Math.abs(k)<1E-6)break;else R1E-6&&c<8;c++)R=0}; g.de=function(n){g.A.call(this);this.D=1;this.C=[];this.W=0;this.N=[];this.X={};this.G=!!n}; ZvY=function(n,q,w){g.Uz(function(){n.apply(q,w)})}; g.ge=function(n){this.N=n}; mq=function(n){this.N=n}; JQm=function(n){this.data=n}; zaO=function(n){return n===void 0||n instanceof JQm?n:new JQm(n)}; yS=function(n){this.N=n}; g.Wps=function(n){var q=n.creation;n=n.expiration;return!!n&&ng.eB()}; g.aU=function(n){this.N=n}; NmO=function(){}; VS=function(){}; pc=function(n){this.N=n;this.X=null}; Tl=function(n){if(n.N==null)throw Error("Storage mechanism: Storage unavailable");n.isAvailable()||aJ(Error("Storage mechanism: Storage unavailable"))}; FW=function(){var n=null;try{n=g.W0.localStorage||null}catch(q){}pc.call(this,n)}; npu=function(){var n=null;try{n=g.W0.sessionStorage||null}catch(q){}pc.call(this,n)}; $H=function(n,q){this.X=n;this.N=q+"::"}; g.vN=function(n){var q=new FW;return q.isAvailable()?n?new $H(q,n):q:null}; Lc=function(n,q){this.N=n;this.X=q}; MX=function(n){this.N=[];if(n)a:{if(n instanceof MX){var q=n.Bt();n=n.uU();if(this.N.length<=0){for(var w=this.N,X=0;X>>6:(R<65536?k[w++]=224|R>>>12:(k[w++]=240|R>>>18,k[w++]=128|R>>>12&63),k[w++]=128|R>>> 6&63),k[w++]=128|R&63);return k}; lU=function(n){for(var q=n.length;--q>=0;)n[q]=0}; Gl=function(n,q,w,X,P){this.TC=n;this.Mo=q;this.Xp=w;this.Yt=X;this.VZ=P;this.dn=n&&n.length}; Cc=function(n,q){this.wN=n;this.Zw=0;this.VD=q}; Eh=function(n,q){n.aY[n.pending++]=q&255;n.aY[n.pending++]=q>>>8&255}; oU=function(n,q,w){n.hS>16-w?(n.fd|=q<>16-n.hS,n.hS+=w-16):(n.fd|=q<>>=1,w<<=1;while(--q>0);return w>>>1}; Rqu=function(n,q,w){var X=Array(16),P=0,R;for(R=1;R<=15;R++)X[R]=P=P+w[R-1]<<1;for(w=0;w<=q;w++)P=n[w*2+1],P!==0&&(n[w*2]=PHy(X[P]++,P))}; cjs=function(n){var q;for(q=0;q<286;q++)n.HO[q*2]=0;for(q=0;q<30;q++)n.WH[q*2]=0;for(q=0;q<19;q++)n.Gx[q*2]=0;n.HO[512]=1;n.vG=n.gB=0;n.Z2=n.matches=0}; IPu=function(n){n.hS>8?Eh(n,n.fd):n.hS>0&&(n.aY[n.pending++]=n.fd);n.fd=0;n.hS=0}; kHx=function(n,q,w){IPu(n);Eh(n,w);Eh(n,~w);ho.m7(n.aY,n.window,q,w,n.pending);n.pending+=w}; rjy=function(n,q,w,X){var P=q*2,R=w*2;return n[P]>>7)];bU(n,c,w);k=BN[c];k!==0&&(P-=QS[c],oU(n,P,k))}}while(X>1;c>=1;c--)Ao(n,w,c);r=R;do c=n.t$[1],n.t$[1]=n.t$[n.jf--],Ao(n,w,1),X=n.t$[1],n.t$[--n.SA]=c,n.t$[--n.SA]=X,w[r*2]=w[c*2]+w[X*2],n.depth[r]=(n.depth[c]>=n.depth[X]?n.depth[c]:n.depth[X])+1,w[c*2+1]=w[X*2+1]=r,n.t$[1]=r++,Ao(n,w,1);while(n.jf>= 2);n.t$[--n.SA]=n.t$[1];c=q.wN;r=q.Zw;X=q.VD.TC;P=q.VD.dn;R=q.VD.Mo;var e=q.VD.Xp,f=q.VD.VZ,O,H=0;for(O=0;O<=15;O++)n.tQ[O]=0;c[n.t$[n.SA]*2+1]=0;for(q=n.SA+1;q<573;q++){var U=n.t$[q];O=c[c[U*2+1]*2+1]+1;O>f&&(O=f,H++);c[U*2+1]=O;if(!(U>r)){n.tQ[O]++;var t=0;U>=e&&(t=R[U-e]);var V=c[U*2];n.vG+=V*(O+t);P&&(n.gB+=V*(X[U*2+1]+t))}}if(H!==0){do{for(O=f-1;n.tQ[O]===0;)O--;n.tQ[O]--;n.tQ[O+1]+=2;n.tQ[f]--;H-=2}while(H>0);for(O=f;O!==0;O--)for(U=n.tQ[O];U!==0;)X=n.t$[--q],X>r||(c[X*2+1]!==O&&(n.vG+=(O-c[X* 2+1])*c[X*2],c[X*2+1]=O),U--)}Rqu(w,k,n.tQ)}; sR3=function(n,q,w){var X,P=-1,R=q[1],c=0,k=7,r=4;R===0&&(k=138,r=3);q[(w+1)*2+1]=65535;for(X=0;X<=w;X++){var e=R;R=q[(X+1)*2+1];++c>>=1)if(q&1&&n.HO[w*2]!==0)return 0;if(n.HO[18]!==0||n.HO[20]!==0||n.HO[26]!==0)return 1;for(w=32;w<256;w++)if(n.HO[w*2]!==0)return 1;return 0}; Jo=function(n,q,w){n.aY[n.Ve+n.Z2*2]=q>>>8&255;n.aY[n.Ve+n.Z2*2+1]=q&255;n.aY[n.yO+n.Z2]=w&255;n.Z2++;q===0?n.HO[w*2]++:(n.matches++,q--,n.HO[(YH[w]+256+1)*2]++,n.WH[(q<256?uU[q]:uU[256+(q>>>7)])*2]++);return n.Z2===n.vc-1}; WN=function(n,q){n.msg=zl[q];return q}; NX=function(n){for(var q=n.length;--q>=0;)n[q]=0}; ni=function(n){var q=n.state,w=q.pending;w>n.IS&&(w=n.IS);w!==0&&(ho.m7(n.output,q.aY,q.L_,w,n.sG),n.sG+=w,q.L_+=w,n.aD+=w,n.IS-=w,q.pending-=w,q.pending===0&&(q.L_=0))}; Xp=function(n,q){var w=n.cw>=0?n.cw:-1,X=n.cQ-n.cw,P=0;if(n.level>0){n.eP.ow===2&&(n.eP.ow=fPh(n));ZM(n,n.IJ);ZM(n,n.HB);sR3(n,n.HO,n.IJ.Zw);sR3(n,n.WH,n.HB.Zw);ZM(n,n.uf);for(P=18;P>=3&&n.Gx[OEx[P]*2+1]===0;P--);n.vG+=3*(P+1)+5+5+4;var R=n.vG+3+7>>>3;var c=n.gB+3+7>>>3;c<=R&&(R=c)}else R=c=X+5;if(X+4<=R&&w!==-1)oU(n,q?1:0,3),kHx(n,w,X);else if(n.strategy===4||c===R)oU(n,2+(q?1:0),3),jR0(n,qN,wW);else{oU(n,4+(q?1:0),3);w=n.IJ.Zw+1;X=n.HB.Zw+1;P+=1;oU(n,w-257,5);oU(n,X-1,5);oU(n,P-4,4);for(R=0;R>>8&255;n.aY[n.pending++]=q&255}; iEs=function(n,q){var w=n.gi,X=n.cQ,P=n.o6,R=n.X5,c=n.cQ>n.xJ-262?n.cQ-(n.xJ-262):0,k=n.window,r=n.qR,e=n.Fi,f=n.cQ+258,O=k[X+P-1],H=k[X+P];n.o6>=n.vp&&(w>>=2);R>n.IP&&(R=n.IP);do{var U=q;if(k[U+P]===H&&k[U+P-1]===O&&k[U]===k[X]&&k[++U]===k[X+1]){X+=2;for(U++;k[++X]===k[++U]&&k[++X]===k[++U]&&k[++X]===k[++U]&&k[++X]===k[++U]&&k[++X]===k[++U]&&k[++X]===k[++U]&&k[++X]===k[++U]&&k[++X]===k[++U]&&XP){n.OG=q;P=U;if(U>=R)break;O=k[X+P-1];H=k[X+P]}}}while((q=e[q&r])>c&&--w!== 0);return P<=n.IP?P:n.IP}; kv=function(n){var q=n.xJ,w;do{var X=n.QM-n.IP-n.cQ;if(n.cQ>=q+(q-262)){ho.m7(n.window,n.window,q,q,0);n.OG-=q;n.cQ-=q;n.cw-=q;var P=w=n.l8;do{var R=n.head[--P];n.head[P]=R>=q?R-q:0}while(--w);P=w=q;do R=n.Fi[--P],n.Fi[P]=R>=q?R-q:0;while(--w);X+=q}if(n.eP.ac===0)break;P=n.eP;w=n.window;R=n.cQ+n.IP;var c=P.ac;c>X&&(c=X);c===0?w=0:(P.ac-=c,ho.m7(w,P.input,P.zU,c,R),P.state.wrap===1?P.Hy=cA(P.Hy,w,c,R):P.state.wrap===2&&(P.Hy=Iw(P.Hy,w,c,R)),P.zU+=c,P.tO+=c,w=c);n.IP+=w;if(n.IP+n.ZL>=3)for(X=n.cQ-n.ZL, n.gg=n.window[X],n.gg=(n.gg<=3&&(n.gg=(n.gg<=3)if(w=Jo(n,n.cQ-n.OG,n.x6-3),n.IP-=n.x6,n.x6<=n.a5&&n.IP>=3){n.x6--;do n.cQ++,n.gg=(n.gg<=3&&(n.gg=(n.gg<4096)&&(n.x6=2));if(n.o6>=3&&n.x6<=n.o6){X=n.cQ+n.IP-3;w=Jo(n,n.cQ-1-n.cR,n.o6-3);n.IP-=n.o6-1;n.o6-=2;do++n.cQ<=X&&(n.gg=(n.gg<=3&&n.cQ>0&&(X=n.cQ-1,w=R[X],w===R[++X]&&w===R[++X]&&w===R[++X])){for(P=n.cQ+258;w===R[++X]&&w===R[++X]&&w===R[++X]&&w===R[++X]&&w===R[++X]&&w===R[++X]&&w===R[++X]&&w===R[++X]&&Xn.IP&&(n.x6=n.IP)}n.x6>=3?(w=Jo(n,1,n.x6-3),n.IP-=n.x6,n.cQ+=n.x6,n.x6=0):(w=Jo(n,0,n.window[n.cQ]),n.IP--,n.cQ++);if(w&&(Xp(n,!1),n.eP.IS===0))return 1}n.ZL=0;return q=== 4?(Xp(n,!0),n.eP.IS===0?3:4):n.Z2&&(Xp(n,!1),n.eP.IS===0)?1:2}; UnY=function(n,q){for(var w;;){if(n.IP===0&&(kv(n),n.IP===0)){if(q===0)return 1;break}n.x6=0;w=Jo(n,0,n.window[n.cQ]);n.IP--;n.cQ++;if(w&&(Xp(n,!1),n.eP.IS===0))return 1}n.ZL=0;return q===4?(Xp(n,!0),n.eP.IS===0?3:4):n.Z2&&(Xp(n,!1),n.eP.IS===0)?1:2}; sq=function(n,q,w,X,P){this.pB=n;this.iW=q;this.pWn=w;this.sK=X;this.func=P}; tX3=function(){this.eP=null;this.status=0;this.aY=null;this.wrap=this.pending=this.L_=this.jq=0;this.Xn=null;this.s9=0;this.method=8;this.hk=-1;this.qR=this.Zs=this.xJ=0;this.window=null;this.QM=0;this.head=this.Fi=null;this.X5=this.vp=this.strategy=this.level=this.a5=this.gi=this.o6=this.IP=this.OG=this.cQ=this.Hu=this.cR=this.x6=this.cw=this.Yp=this.gH=this.H2=this.l8=this.gg=0;this.HO=new ho.pz(1146);this.WH=new ho.pz(122);this.Gx=new ho.pz(78);NX(this.HO);NX(this.WH);NX(this.Gx);this.uf=this.HB= this.IJ=null;this.tQ=new ho.pz(16);this.t$=new ho.pz(573);NX(this.t$);this.SA=this.jf=0;this.depth=new ho.pz(573);NX(this.depth);this.hS=this.fd=this.ZL=this.matches=this.gB=this.vG=this.Ve=this.Z2=this.vc=this.yO=0}; dnz=function(n,q){if(!n||!n.state||q>5||q<0)return n?WN(n,-2):-2;var w=n.state;if(!n.output||!n.input&&n.ac!==0||w.status===666&&q!==4)return WN(n,n.IS===0?-5:-2);w.eP=n;var X=w.hk;w.hk=q;if(w.status===42)if(w.wrap===2)n.Hy=0,PA(w,31),PA(w,139),PA(w,8),w.Xn?(PA(w,(w.Xn.text?1:0)+(w.Xn.Y1?2:0)+(w.Xn.extra?4:0)+(w.Xn.name?8:0)+(w.Xn.comment?16:0)),PA(w,w.Xn.time&255),PA(w,w.Xn.time>>8&255),PA(w,w.Xn.time>>16&255),PA(w,w.Xn.time>>24&255),PA(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),PA(w,w.Xn.os& 255),w.Xn.extra&&w.Xn.extra.length&&(PA(w,w.Xn.extra.length&255),PA(w,w.Xn.extra.length>>8&255)),w.Xn.Y1&&(n.Hy=Iw(n.Hy,w.aY,w.pending,0)),w.s9=0,w.status=69):(PA(w,0),PA(w,0),PA(w,0),PA(w,0),PA(w,0),PA(w,w.level===9?2:w.strategy>=2||w.level<2?4:0),PA(w,3),w.status=113);else{var P=8+(w.Zs-8<<4)<<8;P|=(w.strategy>=2||w.level<2?0:w.level<6?1:w.level===6?2:3)<<6;w.cQ!==0&&(P|=32);w.status=113;Rw(w,P+(31-P%31));w.cQ!==0&&(Rw(w,n.Hy>>>16),Rw(w,n.Hy&65535));n.Hy=1}if(w.status===69)if(w.Xn.extra){for(P= w.pending;w.s9<(w.Xn.extra.length&65535)&&(w.pending!==w.jq||(w.Xn.Y1&&w.pending>P&&(n.Hy=Iw(n.Hy,w.aY,w.pending-P,P)),ni(n),P=w.pending,w.pending!==w.jq));)PA(w,w.Xn.extra[w.s9]&255),w.s9++;w.Xn.Y1&&w.pending>P&&(n.Hy=Iw(n.Hy,w.aY,w.pending-P,P));w.s9===w.Xn.extra.length&&(w.s9=0,w.status=73)}else w.status=73;if(w.status===73)if(w.Xn.name){P=w.pending;do{if(w.pending===w.jq&&(w.Xn.Y1&&w.pending>P&&(n.Hy=Iw(n.Hy,w.aY,w.pending-P,P)),ni(n),P=w.pending,w.pending===w.jq)){var R=1;break}R=w.s9P&&(n.Hy=Iw(n.Hy,w.aY,w.pending-P,P));R===0&&(w.s9=0,w.status=91)}else w.status=91;if(w.status===91)if(w.Xn.comment){P=w.pending;do{if(w.pending===w.jq&&(w.Xn.Y1&&w.pending>P&&(n.Hy=Iw(n.Hy,w.aY,w.pending-P,P)),ni(n),P=w.pending,w.pending===w.jq)){R=1;break}R=w.s9P&&(n.Hy=Iw(n.Hy,w.aY,w.pending-P,P));R===0&&(w.status=103)}else w.status= 103;w.status===103&&(w.Xn.Y1?(w.pending+2>w.jq&&ni(n),w.pending+2<=w.jq&&(PA(w,n.Hy&255),PA(w,n.Hy>>8&255),n.Hy=0,w.status=113)):w.status=113);if(w.pending!==0){if(ni(n),n.IS===0)return w.hk=-1,0}else if(n.ac===0&&(q<<1)-(q>4?9:0)<=(X<<1)-(X>4?9:0)&&q!==4)return WN(n,-5);if(w.status===666&&n.ac!==0)return WN(n,-5);if(n.ac!==0||w.IP!==0||q!==0&&w.status!==666){X=w.strategy===2?UnY(w,q):w.strategy===3?HEy(w,q):eY[w.level].func(w,q);if(X===3||X===4)w.status=666;if(X===1||X===3)return n.IS===0&&(w.hk= -1),0;if(X===2&&(q===1?(oU(w,2,3),bU(w,256,qN),w.hS===16?(Eh(w,w.fd),w.fd=0,w.hS=0):w.hS>=8&&(w.aY[w.pending++]=w.fd&255,w.fd>>=8,w.hS-=8)):q!==5&&(oU(w,0,3),kHx(w,0,0),q===3&&(NX(w.head),w.IP===0&&(w.cQ=0,w.cw=0,w.ZL=0))),ni(n),n.IS===0))return w.hk=-1,0}if(q!==4)return 0;if(w.wrap<=0)return 1;w.wrap===2?(PA(w,n.Hy&255),PA(w,n.Hy>>8&255),PA(w,n.Hy>>16&255),PA(w,n.Hy>>24&255),PA(w,n.tO&255),PA(w,n.tO>>8&255),PA(w,n.tO>>16&255),PA(w,n.tO>>24&255)):(Rw(w,n.Hy>>>16),Rw(w,n.Hy&65535));ni(n);w.wrap>0&& (w.wrap=-w.wrap);return w.pending!==0?0:1}; fi=function(n){if(!(this instanceof fi))return new fi(n);n=this.options=ho.assign({level:-1,method:8,chunkSize:16384,P9:15,RV:8,strategy:0,to:""},n||{});n.raw&&n.P9>0?n.P9=-n.P9:n.As&&n.P9>0&&n.P9<16&&(n.P9+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.eP=new gp6;this.eP.IS=0;var q=this.eP;var w=n.level,X=n.method,P=n.P9,R=n.RV,c=n.strategy;if(q){var k=1;w===-1&&(w=6);P<0?(k=0,P=-P):P>15&&(k=2,P-=16);if(R<1||R>9||X!==8||P<8||P>15||w<0||w>9||c<0||c>4)q=WN(q,-2);else{P===8&&(P=9);var r= new tX3;q.state=r;r.eP=q;r.wrap=k;r.Xn=null;r.Zs=P;r.xJ=1<>=7;R<30;R++)for(QS[R]=c<<7,P=0;P<1<=e.xJ&&(q===0&&(NX(e.head),e.cQ=0,e.cw=0,e.ZL=0),w=new ho.O5(e.xJ),ho.m7(w,R,c-e.xJ,e.xJ,0),R=w,c=e.xJ);w=n.ac;X=n.zU;P=n.input;n.ac=c;n.zU=0;n.input=R;for(kv(e);e.IP>=3;){R=e.cQ;c=e.IP-2;do e.gg=(e.gg<=7&&((((0,w[49])(((0,w[12])(w[81],w[21]),w[26])(w[53],w[64]),w[22],(0,w[46])(),w[53],w[71]),w[32])((0,w[49])((0,w[22])((0,w[11])(),w[3],w[1]),w[22],(0,w[46])(),w[3],w[1]),w[12],(0,w[55])(w[24],w[0]),w[3],w[13]),(0,w[26])(w[3], w[34]),w[49])(((0,w[47])(w[72]),w[22])((0,w[11])(),w[0],w[71]),w[12],w[53],w[29]),/,/)||((0,w[82])((((0,w[16])(w[81]),w[64])(w[41],w[29]),(0,w[50])((0,w[49])(w[82],w[47]),w[66],(0,w[49])(w[25],w[80]),w[54]),(0,w[42])(w[1],w[15]),w[42])(w[65],w[71]),w[5],((0,w[7])(w[54]),w[7])(w[80]),w[40],w[81],w[20]),w[40])(w[new Date(I[16])/1E3],w[22]),w[82]!==0&&(((((0,w[77])((0,w[77])((0,w[46])(w[42],w[26]),w[new Date(I[76])/1E3],w[45],w[29]),w[78],w[51],w[49]),w[80])(w[36],w[67]),((0,w[68])(w[46],w[20]),w[66])(w[48]), w[14])(w[4],w[58]),w[13])(w[21],w[57]),[])||(0,w[36])((0,w[46])((0,w[22])(),w[15],w[80]),w[46],(0,w[36])((0,w[19])((0,w[42])(w[new Date(I[79])/1E3],w[62]),w[46],(0,w[22])(),w[68],w[80]),w[42],(0,w[19])(((0,w[46])((0,w[18])(),w[65],w[67]),w[50])(w[73],w[79]),w[50],w[25],w[79]),w[new Date(I[26])/1E3],w[28]),(0,w[22])(),w[65],w[67]),w[54]>-1&&(w[58]!==-5?((0,w[52])(w[11]),w[26])(w[17],w[77]):((0,w[40])(w[17],w[23]),w[40])(w[14],w[7]))}try{(w[19]!=6||((0,w[63])((0,w[63])((0,w[40])(w[14],w[31]),w[40], w[67],w[50]),w[36],(0,w[60])(),w[17],w[15]),0))&&((0,w[33])(w[71],w[38]),((0,w[47])(w[3],w[41]),w[33])(w[6])),(w[23]==10||(((0,w[44])((0,w[83])(),w[13],w[696953-223*Math[I[66]](new Date(I[0])/1E3,5)]),(0,w[44])((0,w[83])(),w[13],w[65]),w[54])(w[9],w[5]),0))&&((0,w[17])((0,w[44])((0,w[20])(),w[63],w[65]),w[44],(0,w[83])(),w[63],w[78]),w[new Date(I[78])/1E3])(w[66],w[69]),w[14]>=-1&&((0,w[40])(w[66],w[14]),1)||(0,w[40])(w[63],w[24]),w[73]!==-4&&(w[37]!==2||((0,w[17])((0,w[44])((0,w[55])(),w[13],w[78]), w[44],(0,w[55])(),w[13],w[65]),null))&&((0,w[33])(w[0],w[79]),w[34])(w[60],w[55])}catch(X){(0,w[34])(w[57],w[4]),(0,w[42])(w[30],w[60]),(0,w[11])((0,w[5])(w[76],w[71]),w[34],w[60],w[22])}}catch(X){return I[1]+n}return q[I[43]](I[6])}; g.t3=function(n){this.name=n}; bEm=function(n){this.PQ=bL(n)}; dW=function(n){this.PQ=bL(n)}; gW=function(n){this.PQ=bL(n)}; Ajh=function(n){this.PQ=bL(n)}; mu=function(n){this.PQ=bL(n)}; ym=function(n){this.PQ=bL(n)}; aw=function(n){this.PQ=bL(n)}; Vm=function(n){this.PQ=bL(n)}; pi=function(n){this.PQ=bL(n)}; TV=function(n){this.PQ=bL(n)}; Fp=function(n){this.PQ=bL(n)}; $v=function(n){this.PQ=bL(n)}; vA=function(n){this.PQ=bL(n)}; Li=function(n){this.PQ=bL(n)}; MN=function(n){this.PQ=bL(n)}; xv=function(n){this.PQ=bL(n,500)}; DO=function(n){this.PQ=bL(n)}; h3=function(n){this.PQ=bL(n)}; Yzs=function(n){this.PQ=bL(n)}; KAs=function(){return g.w0("yt.ads.biscotti.lastId_")||""}; Szh=function(n){g.nj("yt.ads.biscotti.lastId_",n)}; ow=function(){var n=arguments,q=lp;n.length>1?q[n[0]]=n[1]:n.length===1&&Object.assign(q,n[0])}; g.bp=function(n,q){return n in lp?lp[n]:q}; A3=function(n){var q=lp.EXPERIMENT_FLAGS;return q?q[n]:void 0}; ues=function(n){Yv.forEach(function(q){return q(n)})}; g.SY=function(n){return n&&window.yterr?function(){try{return n.apply(this,arguments)}catch(q){g.Ki(q)}}:n}; g.Ki=function(n){var q=g.w0("yt.logging.errors.log");q?q(n,"ERROR",void 0,void 0,void 0,void 0,void 0):(q=g.bp("ERRORS",[]),q.push([n,"ERROR",void 0,void 0,void 0,void 0,void 0]),ow("ERRORS",q));ues(n)}; up=function(n,q,w,X,P){var R=g.w0("yt.logging.errors.log");R?R(n,"WARNING",q,w,X,void 0,P):(R=g.bp("ERRORS",[]),R.push([n,"WARNING",q,w,X,void 0,P]),ow("ERRORS",R))}; BA=function(n,q){q=n.split(q);for(var w={},X=0,P=q.length;X1?n[1]:n[0])):{}}; WA=function(n,q){return Jju(n,q||{},!0)}; NN=function(n,q){return Jju(n,q||{},!1)}; Jju=function(n,q,w){var X=n.split("#",2);n=X[0];X=X.length>1?"#"+X[1]:"";var P=n.split("?",2);n=P[0];P=ZO(P[1]||"");for(var R in q)if(w||!g.jn(P,R))P[R]=q[R];return g.OV(n,P)+X}; ne=function(n){if(!q)var q=window.location.href;var w=g.cg(n)[1]||null,X=g.IB(n);w&&X?(n=g.cg(n),q=g.cg(q),n=n[3]==q[3]&&n[1]==q[1]&&n[4]==q[4]):n=X?g.IB(q)===X&&(Number(g.cg(q)[4]||null)||null)===(Number(g.cg(n)[4]||null)||null):!0;return n}; qg=function(n){n||(n=document.location.href);n=g.cg(n)[1]||null;return n!==null&&n==="https"}; wN=function(n){n=zq6(n);return n===null?!1:n[0]==="com"&&n[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; WAT=function(n){n=zq6(n);return n===null?!1:n[1]==="google"?!0:n[2]==="google"?n[0]==="au"&&n[1]==="com"?!0:n[0]==="uk"&&n[1]==="co"?!0:!1:!1}; zq6=function(n){n=g.IB(n);return n!==null?n.split(".").reverse():null}; BHY=function(n){return n&&n.match(NHs)?n:Lo(n)}; cU=function(n){var q=PU;n=n===void 0?KAs():n;var w=Object,X=w.assign,P=Rd(q);var R=q.N;try{var c=R.screenX;var k=R.screenY}catch(x){}try{var r=R.outerWidth;var e=R.outerHeight}catch(x){}try{var f=R.innerWidth;var O=R.innerHeight}catch(x){}try{var H=R.screenLeft;var U=R.screenTop}catch(x){}try{f=R.innerWidth,O=R.innerHeight}catch(x){}try{var t=R.screen.availWidth;var V=R.screen.availTop}catch(x){}R=[H,U,c,k,t,V,r,e,f,O];c=RQ3(!1,q.N.top);k={};var T=T===void 0?g.W0:T;r=new hd;"SVGElement"in T&&"createElementNS"in T.document&&r.set(0);e=PQx();e["allow-top-navigation-by-user-activation"]&&r.set(1);e["allow-popups-to-escape-sandbox"]&&r.set(2);T.crypto&&T.crypto.subtle&&r.set(3);"TextDecoder"in T&&"TextEncoder"in T&&r.set(4);T=Tmx(r);q=(k.bc=T,k.bih=c.height,k.biw=c.width,k.brdim=R.join(),k.vis=RJ(q.X),k.wgl=!!vO.WebGLRenderingContext,k);w=X.call(w,P,q);w.ca_type="image";n&&(w.bid=n);return w}; Rd=function(n){var q={};q.dt=nDy;q.flash="0";a:{try{var w=n.N.top.location.href}catch(f){n=2;break a}n=w?w===n.X.location.href?0:1:2}q=(q.frm=n,q);try{q.u_tz=-(new Date).getTimezoneOffset();var X=X===void 0?vO:X;try{var P=X.history.length}catch(f){P=0}q.u_his=P;var R;q.u_h=(R=vO.screen)==null?void 0:R.height;var c;q.u_w=(c=vO.screen)==null?void 0:c.width;var k;q.u_ah=(k=vO.screen)==null?void 0:k.availHeight;var r;q.u_aw=(r=vO.screen)==null?void 0:r.availWidth;var e;q.u_cd=(e=vO.screen)==null?void 0: e.colorDepth}catch(f){}return q}; wRh=function(){if(!qg6)return null;var n=qg6();return"open"in n?n:null}; g.kA=function(n){switch(Id(n)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; Id=function(n){return n&&"status"in n?n.status:-1}; g.rN=function(n,q){typeof n==="function"&&(n=g.SY(n));return window.setTimeout(n,q)}; g.jz=function(n,q){typeof n==="function"&&(n=g.SY(n));return window.setInterval(n,q)}; g.sU=function(n){window.clearTimeout(n)}; g.ez=function(n){window.clearInterval(n)}; g.OU=function(n){n=fe(n);return typeof n==="string"&&n==="false"?!1:!!n}; g.HU=function(n,q){n=fe(n);return n===void 0&&q!==void 0?q:Number(n||0)}; UU=function(){return g.bp("EXPERIMENTS_TOKEN","")}; fe=function(n){return g.bp("EXPERIMENT_FLAGS",{})[n]}; tV=function(){for(var n=[],q=g.bp("EXPERIMENTS_FORCED_FLAGS",{}),w=g.a(Object.keys(q)),X=w.next();!X.done;X=w.next())X=X.value,n.push({key:X,value:String(q[X])});w=g.bp("EXPERIMENT_FLAGS",{});X=g.a(Object.keys(w));for(var P=X.next();!P.done;P=X.next())P=P.value,P.startsWith("force_")&&q[P]===void 0&&n.push({key:P,value:String(w[P])});return n}; dN=function(n,q,w,X,P,R,c,k){function r(){(e&&"readyState"in e?e.readyState:0)===4&&q&&g.SY(q)(e)} w=w===void 0?"GET":w;X=X===void 0?"":X;k=k===void 0?!1:k;var e=wRh();if(!e)return null;"onloadend"in e?e.addEventListener("loadend",r,!1):e.onreadystatechange=r;g.OU("debug_forward_web_query_parameters")&&(n=XRz(n));e.open(w,n,!0);R&&(e.responseType=R);c&&(e.withCredentials=!0);w=w==="POST"&&(window.FormData===void 0||!(X instanceof FormData));if(P=Ptz(n,P))for(var f in P)e.setRequestHeader(f,P[f]),"content-type"===f.toLowerCase()&&(w=!1);w&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(k&&"setAttributionReporting"in XMLHttpRequest.prototype){n={eventSourceEligible:!0,triggerEligible:!1};try{e.setAttributionReporting(n)}catch(O){up(O)}}e.send(X);return e}; Ptz=function(n,q){q=q===void 0?{}:q;var w=ne(n),X=g.bp("INNERTUBE_CLIENT_NAME"),P=g.OU("web_ajax_ignore_global_headers_if_set"),R;for(R in R8s){var c=g.bp(R8s[R]),k=R==="X-Goog-AuthUser"||R==="X-Goog-PageId";R!=="X-Goog-Visitor-Id"||c||(c=g.bp("VISITOR_DATA"));var r;if(!(r=!c)){if(!(r=w||(g.IB(n)?!1:!0))){r=n;var e;if(e=g.OU("add_auth_headers_to_remarketing_google_dot_com_ping")&&R==="Authorization"&&(X==="TVHTML5"||X==="TVHTML5_UNPLUGGED"||X==="TVHTML5_SIMPLY")&&WAT(r))r=ko(r)||"",r=r.split("/"), r="/"+(r.length>1?r[1]:""),e=r==="/pagead";r=e?!0:!1}r=!r}r||P&&q[R]!==void 0||X==="TVHTML5_UNPLUGGED"&&k||(q[R]=c)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];if(w||!g.IB(n))q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(w||!g.IB(n)){try{var f=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(O){}f&&(q["X-YouTube-Time-Zone"]=f)}document.location.hostname.endsWith("youtubeeducation.com")||!w&&g.IB(n)||(q["X-YouTube-Ad-Signals"]= Qm(cU()));return q}; mN=function(n,q){q.method="POST";q.postParams||(q.postParams={});return g.gN(n,q)}; kus=function(n,q){if(window.fetch&&q.format!=="XML"){var w={method:q.method||"GET",credentials:"same-origin"};q.headers&&(w.headers=q.headers);q.priority&&(w.priority=q.priority);n=csx(n,q);var X=IJ3(n,q);X&&(w.body=X);q.withCredentials&&(w.credentials="include");var P=q.context||g.W0,R=!1,c;fetch(n,w).then(function(k){if(!R){R=!0;c&&g.sU(c);var r=k.ok,e=function(f){f=f||{};r?q.onSuccess&&q.onSuccess.call(P,f,k):q.onError&&q.onError.call(P,f,k);q.onFinish&&q.onFinish.call(P,f,k)}; (q.format||"JSON")==="JSON"&&(r||k.status>=400&&k.status<500)?k.json().then(e,function(){e(null)}):e(null)}}).catch(function(){q.onError&&q.onError.call(P,{},{})}); n=q.timeout||0;q.onFetchTimeout&&n>0&&(c=g.rN(function(){R||(R=!0,g.sU(c),q.onFetchTimeout.call(q.context||g.W0))},n))}else g.gN(n,q)}; g.gN=function(n,q){var w=q.format||"JSON";n=csx(n,q);var X=IJ3(n,q),P=!1,R=rs6(n,function(r){if(!P){P=!0;k&&g.sU(k);var e=g.kA(r),f=null,O=400<=r.status&&r.status<500,H=500<=r.status&&r.status<600;if(e||O||H)f=j20(n,w,r,q.convertToSafeHtml);e&&(e=s26(w,r,f));f=f||{};O=q.context||g.W0;e?q.onSuccess&&q.onSuccess.call(O,r,f):q.onError&&q.onError.call(O,r,f);q.onFinish&&q.onFinish.call(O,r,f)}},q.method,X,q.headers,q.responseType,q.withCredentials); X=q.timeout||0;if(q.onTimeout&&X>0){var c=q.onTimeout;var k=g.rN(function(){P||(P=!0,R.abort(),g.sU(k),c.call(q.context||g.W0,R))},X)}return R}; csx=function(n,q){q.includeDomain&&(n=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+n);var w=g.bp("XSRF_FIELD_NAME");if(q=q.urlParams)q[w]&&delete q[w],n=WA(n,q);return n}; IJ3=function(n,q){var w=g.bp("XSRF_FIELD_NAME"),X=g.bp("XSRF_TOKEN"),P=q.postBody||"",R=q.postParams,c=g.bp("XSRF_FIELD_NAME"),k;q.headers&&(k=q.headers["Content-Type"]);q.excludeXsrf||g.IB(n)&&!q.withCredentials&&g.IB(n)!==document.location.hostname||q.method!=="POST"||k&&k!=="application/x-www-form-urlencoded"||q.postParams&&q.postParams[c]||(R||(R={}),R[w]=X);(g.OU("ajax_parse_query_data_only_when_filled")&&R&&Object.keys(R).length>0||R)&&typeof P==="string"&&(P=ZO(P),g.tX(P,R),P=q.postBodyFormat&& q.postBodyFormat==="JSON"?JSON.stringify(P):g.fF(P));R=P||R&&!g.fV(R);!e86&&R&&q.method!=="POST"&&(e86=!0,g.Ki(Error("AJAX request with postData should use POST")));return P}; j20=function(n,q,w,X){var P=null;switch(q){case "JSON":try{var R=w.responseText}catch(c){throw X=Error("Error reading responseText"),X.params=n,up(X),c;}n=w.getResponseHeader("Content-Type")||"";R&&n.indexOf("json")>=0&&(R.substring(0,5)===")]}'\n"&&(R=R.substring(5)),P=JSON.parse(R));break;case "XML":if(n=(n=w.responseXML)?fJ3(n):null)P={},g.Jw(n.getElementsByTagName("*"),function(c){P[c.tagName]=OLO(c)})}X&&iLs(P); return P}; iLs=function(n){if(g.R5(n))for(var q in n)q==="html_content"||AOh(q,"_html")?n[q]=O4(n[q]):iLs(n[q])}; s26=function(n,q,w){if(q&&q.status===204)return!0;switch(n){case "JSON":return!!w;case "XML":return Number(w&&w.return_code)===0;case "RAW":return!0;default:return!!w}}; fJ3=function(n){return n?(n=("responseXML"in n?n.responseXML:n).getElementsByTagName("root"))&&n.length>0?n[0]:null:null}; OLO=function(n){var q="";g.Jw(n.childNodes,function(w){q+=w.nodeValue}); return q}; XRz=function(n){var q=window.location.search,w=g.IB(n);g.OU("debug_handle_relative_url_for_query_forward_killswitch")||!w&&ne(n)&&(w=document.location.hostname);var X=ko(n);X=(w=w&&(w.endsWith("youtube.com")||w.endsWith("youtube-nocookie.com")))&&X&&X.startsWith("/api/");if(!w||X)return n;var P=ZO(q),R={};g.Jw(HL6,function(c){P[c]&&(R[c]=P[c])}); return NN(n,R)}; ad=function(n,q){var w=g.HJ(q),X;return(new g.aR(function(P,R){w.onSuccess=function(c){g.kA(c)?P(new ULu(c)):R(new y9("Request failed, status="+Id(c),"net.badstatus",c))}; w.onError=function(c){R(new y9("Unknown request error","net.unknown",c))}; w.onTimeout=function(c){R(new y9("Request timed out","net.timeout",c))}; X=g.gN(n,w)})).Ld(function(P){if(P instanceof vy){var R; (R=X)==null||R.abort()}return TH(P)})}; g.V9=function(n,q,w,X,P,R){function c(r,e,f){return r.Ld(function(O){if(e<=0||Id(O.xhr)===403)return TH(new y9("Request retried too many times","net.retryexhausted",O.xhr,O));var H=Math.pow(2,w-e+1)*f,U=P>0?Math.min(P,H):H;return k(f).then(function(){R&&R(O,e-1);return c(ad(n,q),e-1,U)})})} function k(r){return new g.aR(function(e){setTimeout(e,r)})} P=P===void 0?-1:P;return c(ad(n,q),w-1,X)}; y9=function(n,q,w){iz.call(this,n+", errorCode="+q);this.errorCode=q;this.xhr=w;this.name="PromiseAjaxError"}; ULu=function(n){this.xhr=n}; pe=function(n){this.N=n===void 0?null:n;this.C=0;this.X=null}; TS=function(n){var q=new pe;n=n===void 0?null:n;q.C=2;q.X=n===void 0?null:n;return q}; FR=function(n){var q=new pe;n=n===void 0?null:n;q.C=1;q.X=n===void 0?null:n;return q}; g.Le=function(n,q,w,X,P){$A||vU.set(""+n,q,{Wc:w,path:"/",domain:X===void 0?"youtube.com":X,secure:P===void 0?!1:P})}; g.Mg=function(n,q){if(!$A)return vU.get(""+n,q)}; g.xA=function(n,q,w){$A||vU.remove(""+n,q===void 0?"/":q,w===void 0?"youtube.com":w)}; tmh=function(){if(g.OU("embeds_web_enable_cookie_detection_fix")){if(!g.W0.navigator.cookieEnabled)return!1}else if(!vU.isEnabled())return!1;if(!vU.isEmpty())return!0;g.OU("embeds_web_enable_cookie_detection_fix")?vU.set("TESTCOOKIESENABLED","1",{Wc:60,WTf:"none",secure:!0}):vU.set("TESTCOOKIESENABLED","1",{Wc:60});if(vU.get("TESTCOOKIESENABLED")!=="1")return!1;vU.remove("TESTCOOKIESENABLED");return!0}; g.u=function(n,q){if(n)return n[q.name]}; DI=function(n){var q=g.bp("INNERTUBE_HOST_OVERRIDE");q&&(n=String(q)+String(rG(n)));return n}; dLO=function(n){var q={};g.OU("json_condensed_response")&&(q.prettyPrint="false");return n=NN(n,q)}; hV=function(n,q){var w=w===void 0?{}:w;n={method:q===void 0?"POST":q,mode:ne(n)?"same-origin":"cors",credentials:ne(n)?"same-origin":"include"};q={};for(var X=g.a(Object.keys(w)),P=X.next();!P.done;P=X.next())P=P.value,w[P]&&(q[P]=w[P]);Object.keys(q).length>0&&(n.headers=q);return n}; lb=function(){var n=/Chrome\/(\d+)/.exec(g.CV());return n?parseFloat(n[1]):NaN}; GS=function(){var n=/\sCobalt\/(\S+)\s/.exec(g.CV());if(!n)return NaN;var q=[];n=g.a(n[1].split("."));for(var w=n.next();!w.done;w=n.next())w=parseInt(w.value,10),w>=0&&q.push(w);return parseFloat(q.join("."))}; EU=function(){return g.Ce("android")&&g.Ce("chrome")&&!(g.Ce("trident/")||g.Ce("edge/"))&&!g.Ce("cobalt")}; gDs=function(){return g.Ce("armv7")||g.Ce("aarch64")||g.Ce("android")}; g.od=function(){return g.Ce("cobalt")}; bb=function(){return g.Ce("cobalt")&&g.Ce("appletv")}; AV=function(){return g.Ce("(ps3; leanback shell)")||g.Ce("ps3")&&g.od()}; mLu=function(){return g.Ce("(ps4; leanback shell)")||g.Ce("ps4")&&g.od()}; g.yss=function(){return g.od()&&(g.Ce("ps4 vr")||g.Ce("ps4 pro vr"))}; YA=function(){var n=/WebKit\/([0-9]+)/.exec(g.CV());return!!(n&&parseInt(n[1],10)>=600)}; Ke=function(){var n=/WebKit\/([0-9]+)/.exec(g.CV());return!!(n&&parseInt(n[1],10)>=602)}; aJ6=function(){return g.Ce("iemobile")||g.Ce("windows phone")&&g.Ce("edge")}; BU=function(){return(Sz||ub)&&g.Ce("applewebkit")&&!g.Ce("version")&&(!g.Ce("safari")||g.Ce("gsa/"))}; ZI=function(){return g.Q9&&g.Ce("version/")}; JV=function(){return g.Ce("smart-tv")&&g.Ce("samsung")}; g.Ce=function(n){var q=g.CV();return q?q.toLowerCase().indexOf(n)>=0:!1}; zS=function(){return cnu()||BU()||ZI()?!0:g.bp("EOM_VISITOR_DATA")?!1:!0}; WU=function(n,q){return q===void 0||q===null?n:q==="1"||q===!0||q===1||q==="True"?!0:!1}; Ng=function(n,q,w){for(var X in w)if(w[X]==q)return w[X];return n}; nD=function(n,q){return q===void 0||q===null?n:Number(q)}; qH=function(n,q){return q===void 0||q===null?n:q.toString()}; wt=function(n,q){if(q){if(n==="fullwidth")return Infinity;if(n==="fullheight")return 0}return n&&(q=n.match(VmO))&&(n=Number(q[2]),q=Number(q[1]),!isNaN(n)&&!isNaN(q)&&n>0)?q/n:NaN}; Xo=function(n){var q=n.docid||n.video_id||n.videoId||n.id;if(q)return q;q=n.raw_player_response;q||(n=n.player_response)&&(q=JSON.parse(n));return q&&q.videoDetails&&q.videoDetails.videoId||null}; pRO=function(n){return Pz(n,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.Rl=function(n){return n==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||n==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; Pz=function(n,q){q=(q===void 0?0:q)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(q="EMBEDDED_PLAYER_MODE_PFL");var w=n.raw_embedded_player_response;if(!w&&(n=n.embedded_player_response))try{w=JSON.parse(n)}catch(X){return q}return w?Ng(q,w.embeddedPlayerMode,T7T):q}; Il=function(n){iz.call(this,n.message||n.description||n.name);this.isMissing=n instanceof cz;this.isTimeout=n instanceof y9&&n.errorCode=="net.timeout";this.isCanceled=n instanceof vy}; cz=function(){iz.call(this,"Biscotti ID is missing from server")}; FyY=function(){if(g.OU("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!zS())return Error("User has not consented - not fetching biscotti id.");var n=g.bp("PLAYER_VARS",{});if(g.Ol(n,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(pRO(n))return Error("Biscotti id fetching has been disabled for pfl.")}; Mms=function(){var n=FyY();if(n!==void 0)return TH(n);kN||(kN=ad("//googleads.g.doubleclick.net/pagead/id",$Ls).then(vDm).Ld(function(q){return LyO(2,q)})); return kN}; vDm=function(n){n=n.xhr.responseText;if(!vJ(n,")]}'"))throw new cz;n=JSON.parse(n.substr(4));if((n.type||1)>1)throw new cz;n=n.id;Szh(n);kN=FR(n);xLO(18E5,2);return n}; LyO=function(n,q){q=new Il(q);Szh("");kN=TS(q);n>0&&xLO(12E4,n-1);throw q;}; xLO=function(n,q){g.rN(function(){ad("//googleads.g.doubleclick.net/pagead/id",$Ls).then(vDm,function(w){return LyO(q,w)}).Ld(g.MY)},n)}; DLT=function(){try{var n=g.w0("yt.ads.biscotti.getId_");return n?n():Mms()}catch(q){return TH(q)}}; lJu=function(n){n&&(n.dataset?n.dataset[h8h()]="true":XG3(n))}; Gu0=function(n){return n?n.dataset?n.dataset[h8h()]:n.getAttribute("data-loaded"):null}; h8h=function(){return Cty.loaded||(Cty.loaded="loaded".replace(/\-([a-z])/g,function(n,q){return q.toUpperCase()}))}; EDy=function(){var n=document;if("visibilityState"in n)return n.visibilityState;var q=rt+"VisibilityState";if(q in n)return n[q]}; ju=function(n,q){var w;Yo(n,function(X){w=q[X];return!!w}); return w}; s8=function(n){if(n.requestFullscreen)n=n.requestFullscreen(void 0);else if(n.webkitRequestFullscreen)n=n.webkitRequestFullscreen();else if(n.mozRequestFullScreen)n=n.mozRequestFullScreen();else if(n.msRequestFullscreen)n=n.msRequestFullscreen();else if(n.webkitEnterFullscreen)n=n.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return n instanceof Promise?n:Promise.resolve()}; O8=function(n){var q;g.eu()?fD()==n&&(q=document):q=n;return q&&(n=ju(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],q))?(q=n.call(q),q instanceof Promise?q:Promise.resolve()):Promise.resolve()}; oDT=function(n){return g.d0(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(q){return"on"+q.toLowerCase()in n})}; bLz=function(){var n=document;return g.d0(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(q){return"on"+q.toLowerCase()in n})}; g.eu=function(){return!!ju(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; fD=function(n){n=n===void 0?!1:n;var q=ju(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(n)for(;q&&q.shadowRoot;)q=q.shadowRoot.fullscreenElement;return q?q:null}; i4=function(n){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(n=n||window.event){this.event=n;for(var q in n)q in As3||(this[q]=n[q]);this.scale=n.scale;this.rotation=n.rotation;var w=n.target||n.srcElement;w&&w.nodeType==3&&(w=w.parentNode);this.target=w;var X=n.relatedTarget; if(X)try{X=X.nodeName?X:null}catch(P){X=null}else this.type=="mouseover"?X=n.fromElement:this.type=="mouseout"&&(X=n.toElement);this.relatedTarget=X;this.clientX=n.clientX!=void 0?n.clientX:n.pageX;this.clientY=n.clientY!=void 0?n.clientY:n.pageY;this.keyCode=n.keyCode?n.keyCode:n.which;this.charCode=n.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=n.altKey;this.ctrlKey=n.ctrlKey;this.shiftKey=n.shiftKey;this.metaKey=n.metaKey;this.N=n.pageX;this.X=n.pageY}}catch(P){}}; Ygy=function(n){if(document.body&&document.documentElement){var q=document.body.scrollTop+document.documentElement.scrollTop;n.N=n.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);n.X=n.clientY+q}}; Kyx=function(n,q,w,X){X=X===void 0?{}:X;n.addEventListener&&(q!="mouseenter"||"onmouseenter"in document?q!="mouseleave"||"onmouseenter"in document?q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"):q="mouseout":q="mouseover");return en(Hz,function(P){var R=typeof P[4]==="boolean"&&P[4]==!!X,c=g.R5(P[4])&&g.R5(X)&&g.iQ(P[4],X);return!!P.length&&P[0]==n&&P[1]==q&&P[2]==w&&(R||c)})}; g.U8=function(n,q,w,X){X=X===void 0?{}:X;if(!n||!n.addEventListener&&!n.attachEvent)return"";var P=Kyx(n,q,w,X);if(P)return P;P=++Sgu.count+"";var R=!(q!="mouseenter"&&q!="mouseleave"||!n.addEventListener||"onmouseenter"in document);var c=R?function(k){k=new i4(k);if(!yU(k.relatedTarget,function(r){return r==n},!0))return k.currentTarget=n,k.type=q,w.call(n,k)}:function(k){k=new i4(k); k.currentTarget=n;return w.call(n,k)}; c=g.SY(c);n.addEventListener?(q=="mouseenter"&&R?q="mouseover":q=="mouseleave"&&R?q="mouseout":q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"),uDs()||typeof X==="boolean"?n.addEventListener(q,c,X):n.addEventListener(q,c,!!X.capture)):n.attachEvent("on"+q,c);Hz[P]=[n,q,w,c,X];return P}; Q2O=function(n){return B7T(n,function(q){return g.Wt(q,"ytp-ad-has-logging-urls")})}; B7T=function(n,q){var w=document.body||document;return g.U8(w,"click",function(X){var P=yU(X.target,function(R){return R===w||q(R)},!0); P&&P!==w&&!P.disabled&&(X.currentTarget=P,n.call(P,X))})}; g.th=function(n){n&&(typeof n=="string"&&(n=[n]),g.Jw(n,function(q){if(q in Hz){var w=Hz[q],X=w[0],P=w[1],R=w[3];w=w[4];X.removeEventListener?uDs()||typeof w==="boolean"?X.removeEventListener(P,R,w):X.removeEventListener(P,R,!!w.capture):X.detachEvent&&X.detachEvent("on"+P,R);delete Hz[q]}}))}; dt=function(n){for(var q in Hz)Hz[q][0]==n&&g.th(q)}; gt=function(n){n=n||window.event;var q;n.composedPath&&typeof n.composedPath==="function"?q=n.composedPath():q=n.path;q&&q.length?n=q[0]:(n=n||window.event,n=n.target||n.srcElement,n.nodeType==3&&(n=n.parentNode));return n}; m1=function(n){this.G=n;this.N=null;this.W=0;this.D=null;this.K=0;this.X=[];for(n=0;n<4;n++)this.X.push(0);this.C=0;this.PW=g.U8(window,"mousemove",(0,g.ki)(this.L,this));this.V=g.jz((0,g.ki)(this.qP,this),25)}; ys=function(n){g.A.call(this);this.G=[];this.Me=n||this}; al=function(n,q,w,X){for(var P=0;P0?w:0;w=X?Date.now()+X*1E3:0;if((X=X?(0,g.pD)():Ta())&&window.JSON){typeof q!=="string"&&(q=JSON.stringify(q,void 0));try{X.set(n,q,w)}catch(P){X.remove(n)}}}; g.$N=function(n){var q=Ta(),w=(0,g.pD)();if(!q&&!w||!window.JSON)return null;try{var X=q.get(n)}catch(P){}if(typeof X!=="string")try{X=w.get(n)}catch(P){}if(typeof X!=="string")return null;try{X=JSON.parse(X,void 0)}catch(P){}return X}; Jsy=function(){var n=(0,g.pD)();if(n&&(n=n.X("yt-player-quality")))return n.creation}; g.vz=function(n){try{var q=Ta(),w=(0,g.pD)();q&&q.remove(n);w&&w.remove(n)}catch(X){}}; g.LD=function(){return g.$N("yt-remote-session-screen-id")}; z8u=function(n){var q=this;this.X=void 0;this.N=!1;n.addEventListener("beforeinstallprompt",function(w){w.preventDefault();q.X=w}); n.addEventListener("appinstalled",function(){q.N=!0},{once:!0})}; MH=function(){if(!g.W0.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.W0.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.W0.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.W0.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.W0.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(n){return"WEB_DISPLAY_MODE_UNKNOWN"}}; xN=function(){this.KH=!0}; Wyy=function(){xN.instance||(xN.instance=new xN);return xN.instance}; N7z=function(n){switch(n){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}}; nFz=function(){this.N=g.bp("ALT_PREF_COOKIE_NAME","PREF");this.X=g.bp("ALT_PREF_COOKIE_DOMAIN","youtube.com");var n=g.Mg(this.N);n&&this.parse(n)}; g.hh=function(){DE||(DE=new nFz);return DE}; g.l4=function(n,q){return!!((qfz("f"+(Math.floor(q/31)+1))||0)&1<0;)switch(n=P3.shift(),n.type){case "ERROR":nW.O2(n.payload);break;case "EVENT":nW.logEvent(n.eventType,n.payload)}}; c3=function(n){R4||(nW?nW.O2(n):(P3.push({type:"ERROR",payload:n}),P3.length>10&&P3.shift()))}; I4=function(n,q){R4||(nW?nW.logEvent(n,q):(P3.push({type:"EVENT",eventType:n,payload:q}),P3.length>10&&P3.shift()))}; kd=function(n){if(n.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; rZ=function(n){return n.substr(0,n.indexOf(":"))||n}; g.jI=function(n,q,w,X,P){q=q===void 0?{}:q;w=w===void 0?rdx[n]:w;X=X===void 0?jWz[n]:X;P=P===void 0?sWT[n]:P;g.b4.call(this,w,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:n},q));this.type=n;this.message=w;this.level=X;this.N=P;Object.setPrototypeOf(this,g.jI.prototype)}; sY=function(n,q){g.jI.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:q,foundObjectStores:n},rdx.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,sY.prototype)}; eI=function(n,q){var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.index=n;this.objectStore=q;Object.setPrototypeOf(this,eI.prototype)}; OY=function(n,q,w,X){q=rZ(q);var P=n instanceof Error?n:Error("Unexpected error: "+n);if(P instanceof g.jI)return P;n={objectStoreNames:w,dbName:q,dbVersion:X};if(P.name==="QuotaExceededError")return new g.jI("QUOTA_EXCEEDED",n);if(g.fW&&P.name==="UnknownError")return new g.jI("QUOTA_MAYBE_EXCEEDED",n);if(P instanceof eI)return new g.jI("MISSING_INDEX",Object.assign({},n,{objectStore:P.objectStore,index:P.index}));if(P.name==="InvalidStateError"&&ekO.some(function(R){return P.message.includes(R)}))return new g.jI("EXECUTE_TRANSACTION_ON_CLOSED_DB", n); if(P.name==="AbortError")return new g.jI("UNKNOWN_ABORT",n,P.message);P.args=[Object.assign({},n,{name:"IdbError",yl:P.name})];P.level="WARNING";return P}; g.ig=function(n,q,w){var X=NH();return new g.jI("IDB_NOT_SUPPORTED",{context:{caller:n,publicName:q,version:w,hasSucceededOnce:X==null?void 0:X.hasSucceededOnce}})}; fKs=function(n){if(!n)throw Error();throw n;}; O9y=function(n){return n}; H3=function(n){this.N=n}; g.UY=function(n){function q(P){if(X.state.status==="PENDING"){X.state={status:"REJECTED",reason:P};P=g.a(X.X);for(var R=P.next();!R.done;R=P.next())R=R.value,R()}} function w(P){if(X.state.status==="PENDING"){X.state={status:"FULFILLED",value:P};P=g.a(X.N);for(var R=P.next();!R.done;R=P.next())R=R.value,R()}} var X=this;this.state={status:"PENDING"};this.N=[];this.X=[];n=n.N;try{n(w,q)}catch(P){q(P)}}; i9s=function(n,q,w,X,P){try{if(n.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var R=w(n.state.value);R instanceof g.UY?tN(n,q,R,X,P):X(R)}catch(c){P(c)}}; H9s=function(n,q,w,X,P){try{if(n.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var R=w(n.state.reason);R instanceof g.UY?tN(n,q,R,X,P):X(R)}catch(c){P(c)}}; tN=function(n,q,w,X,P){q===w?P(new TypeError("Circular promise chain detected.")):w.then(function(R){R instanceof g.UY?tN(n,q,R,X,P):X(R)},function(R){P(R)})}; U4s=function(n,q,w){function X(){w(n.error);R()} function P(){q(n.result);R()} function R(){try{n.removeEventListener("success",P),n.removeEventListener("error",X)}catch(c){}} n.addEventListener("success",P);n.addEventListener("error",X)}; tqO=function(n){return new Promise(function(q,w){U4s(n,q,w)})}; dZ=function(n){return new g.UY(new H3(function(q,w){U4s(n,q,w)}))}; gZ=function(n,q){return new g.UY(new H3(function(w,X){function P(){var R=n?q(n):null;R?R.then(function(c){n=c;P()},X):w()} P()}))}; d4Y=function(n,q){this.request=n;this.cursor=q}; gFm=function(n){return dZ(n).then(function(q){return q?new d4Y(n,q):null})}; g.m40=function(n){n.cursor.continue(void 0);return gFm(n.request)}; ydT=function(n,q){this.N=n;this.options=q;this.transactionCount=0;this.C=Math.round((0,g.m$)());this.X=!1}; g.a4=function(n,q,w){n=n.N.createObjectStore(q,w);return new yc(n)}; Vc=function(n,q){n.N.objectStoreNames.contains(q)&&n.N.deleteObjectStore(q)}; g.Fc=function(n,q,w){return g.pW(n,[q],{mode:"readwrite",z9:!0},function(X){return g.Tn(X.objectStore(q),w)})}; g.pW=function(n,q,w,X){var P,R,c,k,r,e,f,O,H,U,t,V;return g.b(function(T){switch(T.X){case 1:var x={mode:"readonly",z9:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof w==="string"?x.mode=w:Object.assign(x,w);P=x;n.transactionCount++;R=P.z9?3:1;c=0;case 2:if(k){T.f5(4);break}c++;r=Math.round((0,g.m$)());g.Vy(T,5);e=n.N.transaction(q,P.mode);x=new $d(e);x=aK3(x,X);return g.l(T,x,7);case 7:return f=T.N,O=Math.round((0,g.m$)()),Vqh(n,r,O,c,void 0,q.join(),P),T.return(f);case 5:H=g.$u(T);U=Math.round((0,g.m$)()); t=OY(H,n.N.name,q.join(),n.N.version);if((V=t instanceof g.jI&&!t.N)||c>=R)Vqh(n,r,U,c,t,q.join(),P),k=t;T.f5(2);break;case 4:return T.return(Promise.reject(k))}})}; Vqh=function(n,q,w,X,P,R,c){q=w-q;P?(P instanceof g.jI&&(P.type==="QUOTA_EXCEEDED"||P.type==="QUOTA_MAYBE_EXCEEDED")&&I4("QUOTA_EXCEEDED",{dbName:rZ(n.N.name),objectStoreNames:R,transactionCount:n.transactionCount,transactionMode:c.mode}),P instanceof g.jI&&P.type==="UNKNOWN_ABORT"&&(w-=n.C,w<0&&w>=2147483648&&(w=0),I4("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:R,transactionDuration:q,transactionCount:n.transactionCount,dbDuration:w}),n.X=!0),ptu(n,!1,X,R,q,c.tag),c3(P)):ptu(n,!0,X,R,q, c.tag)}; ptu=function(n,q,w,X,P,R){I4("TRANSACTION_ENDED",{objectStoreNames:X,connectionHasUnknownAbortedTransaction:n.X,duration:P,isSuccessful:q,tryCount:w,tag:R===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":R})}; yc=function(n){this.N=n}; g.v3=function(n,q,w){n.N.createIndex(q,w,{unique:!1})}; Tiu=function(n,q){return g.LW(n,{query:q},function(w){return w.delete().then(function(){return g.MU(w)})}).then(function(){})}; F7s=function(n,q,w){var X=[];return g.LW(n,{query:q},function(P){if(!(w!==void 0&&X.length>=w))return X.push(P.getValue()),g.MU(P)}).then(function(){return X})}; vFh=function(n){return"getAllKeys"in IDBObjectStore.prototype?dZ(n.N.getAllKeys(void 0,void 0)):$4s(n)}; $4s=function(n){var q=[];return g.L7O(n,{query:void 0},function(w){q.push(w.cursor.primaryKey);return g.m40(w)}).then(function(){return q})}; g.Tn=function(n,q,w){return dZ(n.N.put(q,w))}; g.LW=function(n,q,w){n=n.N.openCursor(q.query,q.direction);return xd(n).then(function(X){return gZ(X,w)})}; g.L7O=function(n,q,w){var X=q.query;q=q.direction;n="openKeyCursor"in IDBObjectStore.prototype?n.N.openKeyCursor(X,q):n.N.openCursor(X,q);return gFm(n).then(function(P){return gZ(P,w)})}; $d=function(n){var q=this;this.N=n;this.C=new Map;this.X=!1;this.done=new Promise(function(w,X){q.N.addEventListener("complete",function(){w()}); q.N.addEventListener("error",function(P){P.currentTarget===P.target&&X(q.N.error)}); q.N.addEventListener("abort",function(){var P=q.N.error;if(P)X(P);else if(!q.X){P=g.jI;for(var R=q.N.objectStoreNames,c=[],k=0;k=w))return X.push(P.getValue()),g.MU(P)}).then(function(){return X})}; g.Da=function(n,q,w){n=n.N.openCursor(q.query===void 0?null:q.query,q.direction===void 0?"next":q.direction);return xd(n).then(function(X){return gZ(X,w)})}; hN=function(n,q){this.request=n;this.cursor=q}; xd=function(n){return dZ(n).then(function(q){return q?new hN(n,q):null})}; g.MU=function(n){n.cursor.continue(void 0);return xd(n.request)}; D4O=function(n,q,w){return new Promise(function(X,P){function R(){H||(H=new ydT(c.result,{closed:O}));return H} var c=q!==void 0?self.indexedDB.open(n,q):self.indexedDB.open(n);var k=w.blocked,r=w.blocking,e=w.MVf,f=w.upgrade,O=w.closed,H;c.addEventListener("upgradeneeded",function(U){try{if(U.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(c.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");U.dataLoss&&U.dataLoss!=="none"&&I4("IDB_DATA_CORRUPTED",{reason:U.dataLossMessage||"unknown reason",dbName:rZ(n)});var t=R(),V=new $d(c.transaction); f&&f(t,function(T){return U.oldVersion=T},V); V.done.catch(function(T){P(T)})}catch(T){P(T)}}); c.addEventListener("success",function(){var U=c.result;r&&U.addEventListener("versionchange",function(){r(R())}); U.addEventListener("close",function(){I4("IDB_UNEXPECTEDLY_CLOSED",{dbName:rZ(n),dbVersion:U.version});e&&e()}); X(R())}); c.addEventListener("error",function(){P(c.error)}); k&&c.addEventListener("blocked",function(){k()})})}; hku=function(n,q,w){w=w===void 0?{}:w;return D4O(n,q,w)}; lg=function(n,q){q=q===void 0?{}:q;var w,X,P,R;return g.b(function(c){if(c.X==1)return g.Vy(c,2),w=self.indexedDB.deleteDatabase(n),X=q,(P=X.blocked)&&w.addEventListener("blocked",function(){P()}),g.l(c,tqO(w),4); if(c.X!=2)return g.FY(c,0);R=g.$u(c);throw OY(R,n,"",-1);})}; Gn=function(n,q){this.name=n;this.options=q;this.C=!0;this.K=this.W=0}; lKx=function(n,q){return new g.jI("INCOMPATIBLE_DB_VERSION",{dbName:n.name,oldVersion:n.options.version,newVersion:q})}; g.CW=function(n,q){if(!q)throw g.ig("openWithToken",rZ(n.name));return n.open()}; GKO=function(n,q){var w;return g.b(function(X){if(X.X==1)return g.l(X,g.CW(EY,q),2);w=X.N;return X.return(g.pW(w,["databases"],{z9:!0,mode:"readwrite"},function(P){var R=P.objectStore("databases");return R.get(n.actualName).then(function(c){if(c?n.actualName!==c.actualName||n.publicName!==c.publicName||n.userIdentifier!==c.userIdentifier:1)return g.Tn(R,n).then(function(){})})}))})}; o4=function(n,q){var w;return g.b(function(X){if(X.X==1)return n?g.l(X,g.CW(EY,q),2):X.return();w=X.N;return X.return(w.delete("databases",n))})}; CF0=function(n,q){var w,X;return g.b(function(P){return P.X==1?(w=[],g.l(P,g.CW(EY,q),2)):P.X!=3?(X=P.N,g.l(P,g.pW(X,["databases"],{z9:!0,mode:"readonly"},function(R){w.length=0;return g.LW(R.objectStore("databases"),{},function(c){n(c.getValue())&&w.push(c.getValue());return g.MU(c)})}),3)):P.return(w)})}; EFT=function(n,q){return CF0(function(w){return w.publicName===n&&w.userIdentifier!==void 0},q)}; oF0=function(){var n,q,w,X;return g.b(function(P){switch(P.X){case 1:n=NH();if((q=n)==null?0:q.hasSucceededOnce)return P.return(!0);if(bg&&YA()&&!Ke()||g.AN)return P.return(!1);try{if(w=self,!(w.indexedDB&&w.IDBIndex&&w.IDBKeyRange&&w.IDBObjectStore))return P.return(!1)}catch(R){return P.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return P.return(!1);g.Vy(P,2);X={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.l(P,GKO(X,Yd),4);case 4:return g.l(P,o4("yt-idb-test-do-not-use",Yd),5);case 5:return P.return(!0);case 2:return g.$u(P),P.return(!1)}})}; b9u=function(){if(KW!==void 0)return KW;R4=!0;return KW=oF0().then(function(n){R4=!1;var q;if((q=Wz())!=null&&q.N){var w;q={hasSucceededOnce:((w=NH())==null?void 0:w.hasSucceededOnce)||n};var X;(X=Wz())==null||X.set("LAST_RESULT_ENTRY_KEY",q,2592E3,!0)}return n})}; SI=function(){return g.w0("ytglobal.idbToken_")||void 0}; g.ug=function(){var n=SI();return n?Promise.resolve(n):b9u().then(function(q){(q=q?Yd:void 0)&&g.nj("ytglobal.idbToken_",q);return q})}; Ad3=function(n){if(!g.YN())throw n=new g.jI("AUTH_INVALID",{dbName:n}),c3(n),n;var q=g.Ah();return{actualName:n+":"+q,publicName:n,userIdentifier:q}}; YfO=function(n,q,w,X){var P,R,c,k,r,e;return g.b(function(f){switch(f.X){case 1:return R=(P=Error().stack)!=null?P:"",g.l(f,g.ug(),2);case 2:c=f.N;if(!c)throw k=g.ig("openDbImpl",n,q),g.OU("ytidb_async_stack_killswitch")||(k.stack=k.stack+"\n"+R.substring(R.indexOf("\n")+1)),c3(k),k;kd(n);r=w?{actualName:n,publicName:n,userIdentifier:void 0}:Ad3(n);g.Vy(f,3);return g.l(f,GKO(r,c),5);case 5:return g.l(f,hku(r.actualName,q,X),6);case 6:return f.return(f.N);case 3:return e=g.$u(f),g.Vy(f,7),g.l(f,o4(r.actualName, c),9);case 9:g.FY(f,8);break;case 7:g.$u(f);case 8:throw e;}})}; K7s=function(n,q,w){w=w===void 0?{}:w;return YfO(n,q,!1,w)}; Sfy=function(n,q,w){w=w===void 0?{}:w;return YfO(n,q,!0,w)}; u6z=function(n,q){q=q===void 0?{}:q;var w,X;return g.b(function(P){if(P.X==1)return g.l(P,g.ug(),2);if(P.X!=3){w=P.N;if(!w)return P.return();kd(n);X=Ad3(n);return g.l(P,lg(X.actualName,q),3)}return g.l(P,o4(X.actualName,w),0)})}; Bix=function(n,q,w){n=n.map(function(X){return g.b(function(P){return P.X==1?g.l(P,lg(X.actualName,q),2):g.l(P,o4(X.actualName,w),0)})}); return Promise.all(n).then(function(){})}; QWh=function(n){var q=q===void 0?{}:q;var w,X;return g.b(function(P){if(P.X==1)return g.l(P,g.ug(),2);if(P.X!=3){w=P.N;if(!w)return P.return();kd(n);return g.l(P,EFT(n,w),3)}X=P.N;return g.l(P,Bix(X,q,w),0)})}; Z9z=function(n,q){q=q===void 0?{}:q;var w;return g.b(function(X){if(X.X==1)return g.l(X,g.ug(),2);if(X.X!=3){w=X.N;if(!w)return X.return();kd(n);return g.l(X,lg(n,q),3)}return g.l(X,o4(n,w),0)})}; B3=function(n,q){Gn.call(this,n,q);this.options=q;kd(n)}; JdT=function(n,q){var w;return function(){w||(w=new B3(n,q));return w}}; g.Qc=function(n,q){return JdT(n,q)}; Za=function(n){return g.CW(zk3(),n)}; W73=function(n,q,w,X){var P,R,c;return g.b(function(k){switch(k.X){case 1:return P={config:n,hashData:q,timestamp:X!==void 0?X:(0,g.m$)()},g.l(k,Za(w),2);case 2:return R=k.N,g.l(k,R.clear("hotConfigStore"),3);case 3:return g.l(k,g.Fc(R,"hotConfigStore",P),4);case 4:return c=k.N,k.return(c)}})}; Niz=function(n,q,w,X,P){var R,c,k;return g.b(function(r){switch(r.X){case 1:return R={config:n,hashData:q,configData:w,timestamp:P!==void 0?P:(0,g.m$)()},g.l(r,Za(X),2);case 2:return c=r.N,g.l(r,c.clear("coldConfigStore"),3);case 3:return g.l(r,g.Fc(c,"coldConfigStore",R),4);case 4:return k=r.N,r.return(k)}})}; nHs=function(n){var q,w;return g.b(function(X){return X.X==1?g.l(X,Za(n),2):X.X!=3?(q=X.N,w=void 0,g.l(X,g.pW(q,["coldConfigStore"],{mode:"readwrite",z9:!0},function(P){return g.Da(P.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(R){w=R.getValue()})}),3)):X.return(w)})}; qhz=function(n){var q,w;return g.b(function(X){return X.X==1?g.l(X,Za(n),2):X.X!=3?(q=X.N,w=void 0,g.l(X,g.pW(q,["hotConfigStore"],{mode:"readwrite",z9:!0},function(P){return g.Da(P.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(R){w=R.getValue()})}),3)):X.return(w)})}; wNu=function(){return g.b(function(n){return g.l(n,QWh("ytGcfConfig"),0)})}; JN=function(){g.A.call(this);this.X=[];this.N=[];var n=g.w0("yt.gcf.config.hotUpdateCallbacks");n?(this.X=[].concat(g.D(n)),this.N=n):(this.N=[],g.nj("yt.gcf.config.hotUpdateCallbacks",this.N))}; wI=function(){var n=this;this.K=!1;this.C=this.W=0;this.D=new JN;this.Wb={hIo:function(){n.K=!0}, nyq:function(){return n.N}, Qrf:function(q){zn(n,q)}, zP:function(q){n.zP(q)}, O8n:function(q){W3(n,q)}, uY:function(){return n.coldHashData}, G$:function(){return n.hotHashData}, QjW:function(){return n.X}, rTT:function(){return NU()}, OXh:function(){return nH()}, FMq:function(){return g.w0("yt.gcf.config.coldHashData")}, ebl:function(){return g.w0("yt.gcf.config.hotHashData")}, NGq:function(){XNO(n)}, kPl:function(){n.zP(void 0);q7(n);delete wI.instance}, KQh:function(q){n.C=q}, TD0:function(){return n.C}}}; PUO=function(){if(!wI.instance){var n=new wI;wI.instance=n}return wI.instance}; IMu=function(n){var q;g.b(function(w){if(w.X==1)return g.OU("start_client_gcf")||g.OU("delete_gcf_config_db")?g.OU("start_client_gcf")?g.l(w,g.ug(),3):w.f5(2):w.return();w.X!=2&&((q=w.N)&&g.YN()&&!g.OU("delete_gcf_config_db")?(n.K=!0,XNO(n)):(RDy(n),co0(n)));return g.OU("delete_gcf_config_db")?g.l(w,wNu(),0):w.f5(0)})}; X0=function(){var n;return(n=nH())!=null?n:g.bp("RAW_HOT_CONFIG_GROUP")}; klT=function(n){var q,w,X,P,R,c;return g.b(function(k){switch(k.X){case 1:if(n.X)return k.return(nH());if(!n.K)return q=g.ig("getHotConfig IDB not initialized"),up(q),k.return(Promise.reject(q));w=SI();X=g.bp("TIME_CREATED_MS");if(!w){P=g.ig("getHotConfig token error");up(P);k.f5(2);break}return g.l(k,qhz(w),3);case 3:if((R=k.N)&&R.timestamp>X)return zn(n,R.config),n.zP(R.hashData),k.return(nH());case 2:co0(n);if(!(w&&n.X&&n.hotHashData)){k.f5(4);break}return g.l(k,W73(n.X,n.hotHashData,w,X),4);case 4:return n.X? k.return(nH()):(c=new g.b4("Config not available in ytConfig"),up(c),k.return(Promise.reject(c)))}})}; jU3=function(n){var q,w,X,P,R,c;return g.b(function(k){switch(k.X){case 1:if(n.N)return k.return(NU());if(!n.K)return q=g.ig("getColdConfig IDB not initialized"),up(q),k.return(Promise.reject(q));w=SI();X=g.bp("TIME_CREATED_MS");if(!w){P=g.ig("getColdConfig");up(P);k.f5(2);break}return g.l(k,nHs(w),3);case 3:if((R=k.N)&&R.timestamp>X)return W3(n,R.config),rox(n,R.configData),q7(n,R.hashData),k.return(NU());case 2:RDy(n);if(!(w&&n.N&&n.coldHashData&&n.configData)){k.f5(4);break}return g.l(k,Niz(n.N, n.coldHashData,n.configData,w,X),4);case 4:return n.N?k.return(NU()):(c=new g.b4("Config not available in ytConfig"),up(c),k.return(Promise.reject(c)))}})}; XNO=function(n){if(!n.X||!n.N){if(!SI()){var q=g.ig("scheduleGetConfigs");up(q)}n.W||(n.W=g.DK.eG(function(){return g.b(function(w){switch(w.X){case 1:return g.Vy(w,2),g.l(w,klT(n),4);case 4:g.FY(w,3);break;case 2:g.$u(w);case 3:return g.Vy(w,5),g.l(w,jU3(n),7);case 7:g.FY(w,6);break;case 5:g.$u(w);case 6:n.W&&(n.W=0),g.yy(w)}})},100))}}; sUz=function(n,q,w){var X,P,R;return g.b(function(c){switch(c.X){case 1:if(!g.OU("start_client_gcf")){c.f5(0);break}w&&zn(n,w);n.zP(q);X=SI();if(!X){c.f5(3);break}if(w){c.f5(4);break}return g.l(c,qhz(X),5);case 5:P=c.N,w=(R=P)==null?void 0:R.config;case 4:return g.l(c,W73(w,q,X),3);case 3:if(w)for(var k=w,r=g.a(n.D.N),e=r.next();!e.done;e=r.next())e=e.value,e(k);g.yy(c)}})}; eDT=function(n,q,w){var X,P,R,c;return g.b(function(k){if(k.X==1){if(!g.OU("start_client_gcf"))return k.f5(0);q7(n,q);return(X=SI())?w?k.f5(4):g.l(k,nHs(X),5):k.f5(0)}k.X!=4&&(P=k.N,w=(R=P)==null?void 0:R.config);if(!w)return k.f5(0);c=w.configData;return g.l(k,Niz(w,q,c,X),0)})}; fMm=function(){var n=PUO(),q=(0,g.m$)()-n.C;if(!(n.C!==0&&q0&&(q.request={internalExperimentFlags:w});icx(n,void 0,q);HcO(void 0,q);UX0(void 0,q);te0(n,void 0,q);dXh(void 0,q);g.OU("start_client_gcf")&&gHO(void 0,q);g.bp("DELEGATED_SESSION_ID")&& !g.OU("pageid_as_header_web")&&(q.user={onBehalfOfUser:g.bp("DELEGATED_SESSION_ID")});!g.OU("fill_delegate_context_in_gel_killswitch")&&(n=g.bp("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(q.user=Object.assign({},q.user,{serializedDelegationContext:n}));n=g.bp("INNERTUBE_CONTEXT");var X;if(g.OU("enable_persistent_device_token")&&(n==null?0:(X=n.client)==null?0:X.rolloutToken)){var P;q.client.rolloutToken=n==null?void 0:(P=n.client)==null?void 0:P.rolloutToken}X=Object;P=X.assign;n=q.client; w={};for(var R=g.a(Object.entries(ZO(g.bp("DEVICE","")))),c=R.next();!c.done;c=R.next()){var k=g.a(c.value);c=k.next().value;k=k.next().value;c==="cbrand"?w.deviceMake=k:c==="cmodel"?w.deviceModel=k:c==="cbr"?w.browserName=k:c==="cbrver"?w.browserVersion=k:c==="cos"?w.osName=k:c==="cosver"?w.osVersion=k:c==="cplatform"&&(w.platform=k)}q.client=P.call(X,n,w);return q}; icx=function(n,q,w){n=n.F4;if(n==="WEB"||n==="MWEB"||n===1||n===2)if(q){w=HE(q,gW,96)||new gW;var X=MH();X=Object.keys(mXT).indexOf(X);X=X===-1?null:X;X!==null&&G1(w,3,X);ae(q,gW,96,w)}else w&&(w.client.mainAppWebInfo=(X=w.client.mainAppWebInfo)!=null?X:{},w.client.mainAppWebInfo.webDisplayMode=MH())}; HcO=function(n,q){var w=g.w0("yt.embedded_player.embed_url");w&&(n?(q=HE(n,pi,7)||new pi,DX(q,4,w),ae(n,pi,7,q)):q&&(q.thirdParty={embedUrl:w}))}; UX0=function(n,q){var w;if(g.OU("web_log_memory_total_kbytes")&&((w=g.W0.navigator)==null?0:w.deviceMemory)){var X;w=(X=g.W0.navigator)==null?void 0:X.deviceMemory;n?W1(n,95,gU(w*1E6)):q&&(q.client.memoryTotalKbytes=""+w*1E6)}}; te0=function(n,q,w){if(n.appInstallData)if(q){var X;w=(X=HE(q,dW,62))!=null?X:new dW;DX(w,6,n.appInstallData);ae(q,dW,62,w)}else w&&(w.client.configInfo=w.client.configInfo||{},w.client.configInfo.appInstallData=n.appInstallData)}; dXh=function(n,q){var w=PFY();w&&(n?G1(n,61,yoO[w]):q&&(q.client.connectionType=w));g.OU("web_log_effective_connection_type")&&(w=cds())&&(n?G1(n,94,aM3[w]):q&&(q.client.effectiveConnectionType=w))}; Ve6=function(n,q,w){w=w===void 0?{}:w;var X={};g.bp("EOM_VISITOR_DATA")?X={"X-Goog-EOM-Visitor-Id":g.bp("EOM_VISITOR_DATA")}:X={"X-Goog-Visitor-Id":w.visitorData||g.bp("VISITOR_DATA","")};if(q&&q.includes("www.youtube-nocookie.com"))return X;q=w.Wo||g.bp("AUTHORIZATION");q||(n?q="Bearer "+g.w0("gapi.auth.getToken")().access_token:(n=Wyy().C7(IA),g.OU("pageid_as_header_web")||delete n["X-Goog-PageId"],X=Object.assign({},X,n)));q&&(X.Authorization=q);return X}; gHO=function(n,q){var w=fMm();if(w){var X=w.coldConfigData,P=w.coldHashData;w=w.hotHashData;if(n){var R;q=(R=HE(n,dW,62))!=null?R:new dW;X=DX(q,1,X);DX(X,3,P).zP(w);ae(n,dW,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},X&&(q.client.configInfo.coldConfigData=X),P&&(q.client.configInfo.coldHashData=P),w&&(q.client.configInfo.hotHashData=w))}}; ks=function(n,q){this.version=n;this.args=q}; rI=function(n,q){this.topic=n;this.N=q}; s9=function(n,q){var w=jv();w&&w.publish.call(w,n.toString(),n,q)}; Fqh=function(n){var q=pNO,w=jv();if(!w)return 0;var X=w.subscribe(q.toString(),function(P,R){var c=g.w0("ytPubsub2Pubsub2SkipSubKey");c&&c==X||(c=function(){if(ev[X])try{if(R&&q instanceof rI&&q!=P)try{var k=q.N,r=R;if(!r.args||!r.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!k.Er){var e=new k;k.Er=e.version}var f=k.Er}catch(O){}if(!f||r.version!=f)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{R=Reflect.construct(k, g.Ml(r.args))}catch(O){throw O.message="yt.pubsub2.Data.deserialize(): "+O.message,O;}}catch(O){throw O.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+q.toString()+": "+O.message,O;}n.call(window,R)}catch(O){g.Ki(O)}},TeT[q.toString()]?g.ZE()?g.DK.eG(c):g.rN(c,0):c())}); ev[X]=!0;fH[q.toString()]||(fH[q.toString()]=[]);fH[q.toString()].push(X);return X}; Lqs=function(){var n=$Xm,q=Fqh(function(w){n.apply(void 0,arguments);vHT(q)}); return q}; vHT=function(n){var q=jv();q&&(typeof n==="number"&&(n=[n]),g.Jw(n,function(w){q.unsubscribeByKey(w);delete ev[w]}))}; jv=function(){return g.w0("ytPubsub2Pubsub2Instance")}; O9=function(n,q,w){w=w===void 0?{sampleRate:.1}:w;Math.random()GlO||c=bcz&&(Vw++,g.OU("abandon_compression_after_N_slow_zips")?aA===g.HU("compression_disable_point")&&Vw>AoO&&(gI=!1):gI=!1);Yhs(q);X.headers||(X.headers={});X.headers["Content-Encoding"]="gzip";X.postBody=n;X.postParams=void 0;P(w,X)}; Kqx=function(n){var q=q===void 0?!1:q;var w=w===void 0?!1:w;var X=(0,g.m$)(),P={startTime:X,ticks:{},infos:{}},R=q?g.w0("yt.logging.gzipForFetch",!1):!0;if(gI&&R){if(!n.body)return n;try{var c=w?n.body:typeof n.body==="string"?n.body:JSON.stringify(n.body);R=c;if(!w&&typeof c==="string"){var k=lM3(c);if(k!=null&&(k>GlO||k=bcz)if(Vw++,g.OU("abandon_compression_after_N_slow_zips")||g.OU("abandon_compression_after_N_slow_zips_lr")){q=Vw/aA;var e=AoO/g.HU("compression_disable_point");aA>0&&aA%g.HU("compression_disable_point")===0&&q>=e&&(gI=!1)}else gI=!1;Yhs(P)}}n.headers=Object.assign({},{"Content-Encoding":"gzip"},n.headers||{});n.body=R;return n}catch(f){return up(f),n}}else return n}; lM3=function(n){try{return(new Blob(n.split(""))).size}catch(q){return up(q),null}}; Yhs=function(n){g.OU("gel_compression_csi_killswitch")||!g.OU("log_gel_compression_latency")&&!g.OU("log_gel_compression_latency_lr")||O9("gel_compression",n,{sampleRate:.1})}; Tg=function(n){var q=this;this.Rv=this.N=!1;this.potentialEsfErrorCounter=this.X=0;this.handleError=function(){}; this.BK=function(){}; this.now=Date.now;this.U1=!1;this.Wb={dCH:function(f){q.Vp=f}, E1T:function(){q.ib()}, V6:function(){q.Hf()}, j2:function(f){return g.b(function(O){return g.l(O,q.j2(f),0)})}, Gl:function(f,O){return q.Gl(f,O)}, sO:function(){q.sO()}}; var w;this.gz=(w=n.gz)!=null?w:100;var X;this.V3=(X=n.V3)!=null?X:1;var P;this.F9=(P=n.F9)!=null?P:2592E6;var R;this.hn=(R=n.hn)!=null?R:12E4;var c;this.j4=(c=n.j4)!=null?c:5E3;var k;this.Vp=(k=n.Vp)!=null?k:void 0;this.kI=!!n.kI;var r;this.xI=(r=n.xI)!=null?r:.1;var e;this.H$=(e=n.H$)!=null?e:10;n.handleError&&(this.handleError=n.handleError);n.BK&&(this.BK=n.BK);n.U1&&(this.U1=n.U1);n.Rv&&(this.Rv=n.Rv);this.BW=n.BW;this.S6=n.S6;this.GT=n.GT;this.Cx=n.Cx;this.sendFn=n.sendFn;this.kV=n.kV;this.rF= n.rF;pH(this)&&(!this.BW||this.BW("networkless_logging"))&&Sh3(this)}; Sh3=function(n){pH(n)&&!n.U1&&(n.N=!0,n.kI&&Math.random()<=n.xI&&n.GT.bD(n.Vp),n.sO(),n.Cx.ML()&&n.ib(),n.Cx.listen(n.kV,n.ib.bind(n)),n.Cx.listen(n.rF,n.Hf.bind(n)))}; QU0=function(n,q){if(!pH(n))throw Error("IndexedDB is not supported: updateRequestHandlers");var w=q.options.onError?q.options.onError:function(){}; q.options.onError=function(P,R){var c,k,r,e;return g.b(function(f){switch(f.X){case 1:c=uWx(R);(k=Bez(R))&&n.BW&&n.BW("web_enable_error_204")&&n.handleError(Error("Request failed due to compression"),q.url,R);if(!(n.BW&&n.BW("nwl_consider_error_code")&&c||n.BW&&!n.BW("nwl_consider_error_code")&&n.potentialEsfErrorCounter<=n.H$)){f.f5(2);break}if(!n.Cx.B$){f.f5(3);break}return g.l(f,n.Cx.B$(),3);case 3:if(n.Cx.ML()){f.f5(2);break}w(P,R);if(!n.BW||!n.BW("nwl_consider_error_code")||((r=q)==null?void 0: r.id)===void 0){f.f5(6);break}return g.l(f,n.GT.PC(q.id,n.Vp,!1),6);case 6:return f.return();case 2:if(n.BW&&n.BW("nwl_consider_error_code")&&!c&&n.potentialEsfErrorCounter>n.H$)return f.return();n.potentialEsfErrorCounter++;if(((e=q)==null?void 0:e.id)===void 0){f.f5(8);break}return q.sendCount=400&&n<=599?!1:!0}; Bez=function(n){var q;n=n==null?void 0:(q=n.error)==null?void 0:q.code;return!(n!==400&&n!==415)}; Zcx=function(){if($s)return $s();var n={};$s=g.Qc("LogsDatabaseV2",{PG:(n.LogsRequestsStore={kd:2},n),shared:!1,upgrade:function(q,w,X){w(2)&&g.a4(q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});w(3);w(5)&&(X=X.objectStore("LogsRequestsStore"),X.N.indexNames.contains("newRequest")&&X.N.deleteIndex("newRequest"),g.v3(X,"newRequestV2",["status","interface","timestamp"]));w(7)&&Vc(q,"sapisid");w(9)&&Vc(q,"SWHealthLog")}, version:9});return $s()}; vo=function(n){return g.CW(Zcx(),n)}; zD0=function(n,q){var w,X,P,R;return g.b(function(c){if(c.X==1)return w={startTime:(0,g.m$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.l(c,vo(q),2);if(c.X!=3)return X=c.N,P=Object.assign({},n,{options:JSON.parse(JSON.stringify(n.options)),interface:g.bp("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.l(c,g.Fc(X,"LogsRequestsStore",P),3);R=c.N;w.ticks.tc=(0,g.m$)();Jom(w);return c.return(R)})}; Wqs=function(n,q){var w,X,P,R,c,k,r,e;return g.b(function(f){if(f.X==1)return w={startTime:(0,g.m$)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.l(f,vo(q),2);if(f.X!=3)return X=f.N,P=g.bp("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[n,P,0],c=[n,P,(0,g.m$)()],k=IDBKeyRange.bound(R,c),r="prev",g.OU("use_fifo_for_networkless")&&(r="next"),e=void 0,g.l(f,g.pW(X,["LogsRequestsStore"],{mode:"readwrite",z9:!0},function(O){return g.Da(O.objectStore("LogsRequestsStore").index("newRequestV2"), {query:k,direction:r},function(H){H.getValue()&&(e=H.getValue(),n==="NEW"&&(e.status="QUEUED",H.update(e)))})}),3); w.ticks.tc=(0,g.m$)();Jom(w);return f.return(e)})}; Neu=function(n,q){var w;return g.b(function(X){if(X.X==1)return g.l(X,vo(q),2);w=X.N;return X.return(g.pW(w,["LogsRequestsStore"],{mode:"readwrite",z9:!0},function(P){var R=P.objectStore("LogsRequestsStore");return R.get(n).then(function(c){if(c)return c.status="QUEUED",g.Tn(R,c).then(function(){return c})})}))})}; nvu=function(n,q,w,X){w=w===void 0?!0:w;var P;return g.b(function(R){if(R.X==1)return g.l(R,vo(q),2);P=R.N;return R.return(g.pW(P,["LogsRequestsStore"],{mode:"readwrite",z9:!0},function(c){var k=c.objectStore("LogsRequestsStore");return k.get(n).then(function(r){return r?(r.status="NEW",w&&(r.sendCount+=1),X!==void 0&&(r.options.compress=X),g.Tn(k,r).then(function(){return r})):g.UY.resolve(void 0)})}))})}; qq0=function(n,q){var w;return g.b(function(X){if(X.X==1)return g.l(X,vo(q),2);w=X.N;return X.return(w.delete("LogsRequestsStore",n))})}; wAs=function(n){var q,w;return g.b(function(X){if(X.X==1)return g.l(X,vo(n),2);q=X.N;w=(0,g.m$)()-2592E6;return g.l(X,g.pW(q,["LogsRequestsStore"],{mode:"readwrite",z9:!0},function(P){return g.LW(P.objectStore("LogsRequestsStore"),{},function(R){if(R.getValue().timestamp<=w)return R.delete().then(function(){return g.MU(R)})})}),0)})}; XAh=function(){g.b(function(n){return g.l(n,QWh("LogsDatabaseV2"),0)})}; Jom=function(n){g.OU("nwl_csi_killswitch")||O9("networkless_performance",n,{sampleRate:1})}; RcO=function(n){return g.CW(Ppm(),n)}; c3Y=function(n){var q,w;g.b(function(X){if(X.X==1)return g.l(X,RcO(n),2);q=X.N;w=(0,g.m$)()-2592E6;return g.l(X,g.pW(q,["SWHealthLog"],{mode:"readwrite",z9:!0},function(P){return g.LW(P.objectStore("SWHealthLog"),{},function(R){if(R.getValue().timestamp<=w)return R.delete().then(function(){return g.MU(R)})})}),0)})}; IO6=function(n){var q;return g.b(function(w){if(w.X==1)return g.l(w,RcO(n),2);q=w.N;return g.l(w,q.clear("SWHealthLog"),0)})}; g.LH=function(n,q,w,X,P,R,c){P=P===void 0?"":P;R=R===void 0?!1:R;c=c===void 0?!1:c;if(n)if(w&&!g.od())up(new g.b4("Legacy referrer-scrubbed ping detected")),n&&kVY(n,void 0,{scrubReferrer:!0});else if(P)dN(n,q,"POST",P,X);else if(g.bp("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||X||c)dN(n,q,"GET","",X,void 0,R,c);else{b:{try{c:{var k=new T10({url:n});if(k.N.dsh==="1")var r=null;else{var e=k.N.ae;if(e==="1"){var f=k.N.adurl;if(f)try{r={version:3,Oc:decodeURIComponent(f),Kp:Br(k.X,"act=1","ri=1",Fes(k))}; break c}catch(U){}}r=e==="2"?{version:4,Oc:Br(k.X,"dct=1","suid="+k.C,""),Kp:Br(k.X,"act=1","ri=1","suid="+k.C)}:null}}if(r){var O=ko(n);var H=!(!O||!O.endsWith("/aclk")||yN(n,"ri")!=="1");break b}}catch(U){}H=!1}H?r30(n)?(q&&q(),w=!0):w=!1:w=!1;w||kVY(n,q)}}; r30=function(n,q){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(n,q===void 0?"":q))return!0}catch(w){}return!1}; kVY=function(n,q,w){w=w===void 0?{}:w;var X=new Image,P=""+jwy++;M7[P]=X;X.onload=X.onerror=function(){q&&M7[P]&&q();delete M7[P]}; w.scrubReferrer&&(X.referrerPolicy="no-referrer");X.src=n}; sws=function(n){var q;return((q=document.featurePolicy)==null?0:q.allowedFeatures().includes("attribution-reporting"))?n+"&nis=6":n+"&nis=5"}; Du=function(){xs||(xs=new za("yt.offline"));return xs}; ecy=function(n){if(g.OU("offline_error_handling")){var q=Du().get("errors",!0)||{};q[n.message]={name:n.name,stack:n.stack};n.level&&(q[n.message].level=n.level);Du().set("errors",q,2592E3,!0)}}; h8=function(){this.N=new Map;this.X=!1}; ld=function(){if(!h8.instance){var n=g.w0("yt.networkRequestMonitor.instance")||new h8;g.nj("yt.networkRequestMonitor.instance",n);h8.instance=n}return h8.instance}; Gg=function(){g.IR.call(this);var n=this;this.X=!1;this.N=VEu();this.N.listen("networkstatus-online",function(){if(n.X&&g.OU("offline_error_handling")){var q=Du().get("errors",!0);if(q){for(var w in q)if(q[w]){var X=new g.b4(w,"sent via offline_errors");X.name=q[w].name;X.stack=q[w].stack;X.level=q[w].level;g.Ki(X)}Du().set("errors",{},2592E3,!0)}}})}; fOu=function(){if(!Gg.instance){var n=g.w0("yt.networkStatusManager.instance")||new Gg;g.nj("yt.networkStatusManager.instance",n);Gg.instance=n}return Gg.instance}; g.CH=function(n){n=n===void 0?{}:n;g.IR.call(this);var q=this;this.N=this.W=0;this.X=fOu();var w=g.w0("yt.networkStatusManager.instance.listen").bind(this.X);w&&(n.rateLimit?(this.rateLimit=n.rateLimit,w("networkstatus-online",function(){Ois(q,"publicytnetworkstatus-online")}),w("networkstatus-offline",function(){Ois(q,"publicytnetworkstatus-offline")})):(w("networkstatus-online",function(){q.dispatchEvent("publicytnetworkstatus-online")}),w("networkstatus-offline",function(){q.dispatchEvent("publicytnetworkstatus-offline")})))}; Ois=function(n,q){n.rateLimit?n.N?(g.DK.vO(n.W),n.W=g.DK.eG(function(){n.C!==q&&(n.dispatchEvent(q),n.C=q,n.N=(0,g.m$)())},n.rateLimit-((0,g.m$)()-n.N))):(n.dispatchEvent(q),n.C=q,n.N=(0,g.m$)()):n.dispatchEvent(q)}; oA=function(){var n=Tg.call;E9||(E9=new g.CH({izi:!0,sGg:!0}));n.call(Tg,this,{GT:{bD:wAs,wV:qq0,R9:Wqs,gy:Neu,PC:nvu,set:zD0},Cx:E9,handleError:function(q,w,X){var P,R=X==null?void 0:(P=X.error)==null?void 0:P.code;if(R===400||R===415){var c;q=new g.b4(q.message,w,X==null?void 0:(c=X.error)==null?void 0:c.code);up(q,void 0,void 0,void 0,!0)}else g.Ki(q)}, BK:up,sendFn:iis,now:g.m$,Yj:ecy,S6:g.Qs(),kV:"publicytnetworkstatus-online",rF:"publicytnetworkstatus-offline",kI:!0,xI:.1,H$:g.HU("potential_esf_error_limit",10),BW:g.OU,U1:!(g.YN()&&g.IB(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.cR;g.OU("networkless_immediately_drop_all_requests")&&XAh();Z9z("LogsDatabaseV2")}; bd=function(){var n=g.w0("yt.networklessRequestController.instance");n||(n=new oA,g.nj("yt.networklessRequestController.instance",n),g.OU("networkless_logging")&&g.ug().then(function(q){n.Vp=q;Sh3(n);n.C.resolve();n.kI&&Math.random()<=n.xI&&n.Vp&&c3Y(n.Vp);g.OU("networkless_immediately_drop_sw_health_store")&&Hi6(n)})); return n}; Hi6=function(n){var q;g.b(function(w){if(!n.Vp)throw q=g.ig("clearSWHealthLogsDb"),q;return w.return(IO6(n.Vp).catch(function(X){n.handleError(X)}))})}; iis=function(n,q,w,X){X=X===void 0?!1:X;q=g.OU("web_fp_via_jspb")?Object.assign({},q):q;g.OU("use_cfr_monitor")&&UNY(n,q);if(g.OU("use_request_time_ms_header"))q.headers&&ne(n)&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.m$)())));else{var P;if((P=q.postParams)==null?0:P.requestTimeMs)q.postParams.requestTimeMs=Math.round((0,g.m$)())}w&&Object.keys(q).length===0?g.LH(n):q.compress?q.postBody?(typeof q.postBody!=="string"&&(q.postBody=JSON.stringify(q.postBody)),yw(n,q.postBody, q,g.gN,X)):yw(n,JSON.stringify(q.postParams),q,mN,X):g.gN(n,q)}; A8=function(n,q){g.OU("use_event_time_ms_header")&&ne(n)&&(q.headers||(q.headers={}),q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.m$)())));return q}; UNY=function(n,q){var w=q.onError?q.onError:function(){}; q.onError=function(P,R){ld().requestComplete(n,!1);w(P,R)}; var X=q.onSuccess?q.onSuccess:function(){}; q.onSuccess=function(P,R){ld().requestComplete(n,!0);X(P,R)}}; g.Ys=function(n){this.config_=null;n?this.config_=n:OcT()&&(this.config_=g.Po())}; g.KH=function(n,q,w,X){function P(e){try{if((e===void 0?0:e)&&X.retry&&!X.networklessOptions.bypassNetworkless)R.method="POST",X.networklessOptions.writeThenSend?bd().writeThenSend(r,R):bd().sendAndWrite(r,R);else if(X.compress){var f=!X.networklessOptions.writeThenSend;if(R.postBody){var O=R.postBody;typeof O!=="string"&&(O=JSON.stringify(R.postBody));yw(r,O,R,g.gN,f)}else yw(r,JSON.stringify(R.postParams),R,mN,f)}else g.OU("web_all_payloads_via_jspb")?g.gN(r,R):mN(r,R)}catch(H){if(H.name==="InvalidAccessError")up(Error("An extension is blocking network request.")); else throw H;}} !g.bp("VISITOR_DATA")&&q!=="visitor_id"&&Math.random()<.01&&up(new g.b4("Missing VISITOR_DATA when sending innertube request.",q,w,X));if(!n.isReady())throw n=new g.b4("innertube xhrclient not ready",q,w,X),g.Ki(n),n;var R={headers:X.headers||{},method:"POST",postParams:w,postBody:X.postBody,postBodyFormat:X.postBodyFormat||"JSON",onTimeout:function(){X.onTimeout()}, onFetchTimeout:X.onTimeout,onSuccess:function(e,f){if(X.onSuccess)X.onSuccess(f)}, onFetchSuccess:function(e){if(X.onSuccess)X.onSuccess(e)}, onError:function(e,f){if(X.onError)X.onError(f)}, onFetchError:function(e){if(X.onError)X.onError(e)}, timeout:X.timeout,withCredentials:!0,compress:X.compress};R.headers["Content-Type"]||(R.headers["Content-Type"]="application/json");w="";var c=n.config_.UJ;c&&(w=c);c=n.config_.Bp||!1;var k=Ve6(c,w,X);Object.assign(R.headers,k);R.headers.Authorization&&!w&&c&&(R.headers["x-origin"]=window.location.origin);var r=WA(""+w+("/youtubei/"+n.config_.innertubeApiVersion+"/"+q),{alt:"json"});g.w0("ytNetworklessLoggingInitializationOptions")&&tYO.isNwlInitialized?b9u().then(function(e){P(e)}):P(!1)}; g.Zu=function(n,q,w){var X=g.Sv();if(X&&q){var P=X.subscribe(n,function(){function R(){ud[P]&&q.apply&&typeof q.apply=="function"&&q.apply(w||window,c)} var c=arguments;try{g.Bo[n]?R():g.rN(R,0)}catch(k){g.Ki(k)}},w); ud[P]=!0;Qw[n]||(Qw[n]=[]);Qw[n].push(P);return P}return 0}; dNY=function(n){var q=g.Zu("LOGGED_IN",function(w){n.apply(void 0,arguments);g.J8(q)})}; g.J8=function(n){var q=g.Sv();q&&(typeof n==="number"?n=[n]:typeof n==="string"&&(n=[parseInt(n,10)]),g.Jw(n,function(w){q.unsubscribeByKey(w);delete ud[w]}))}; g.zg=function(n,q){var w=g.Sv();return w?w.publish.apply(w,arguments):!1}; mNx=function(n){var q=g.Sv();if(q)if(q.clear(n),n)gv6(n);else for(var w in Qw)gv6(w)}; g.Sv=function(){return g.W0.ytPubsubPubsubInstance}; gv6=function(n){Qw[n]&&(n=Qw[n],g.Jw(n,function(q){ud[q]&&delete ud[q]}),n.length=0)}; g.Wo=function(n,q,w){y3x(n,q,w===void 0?null:w)}; y3x=function(n,q,w){w=w===void 0?null:w;var X=aOm(n),P=document.getElementById(X),R=P&&Gu0(P),c=P&&!R;R?q&&q():(q&&(R=g.Zu(X,q),q=""+g.I5(q),VYs[q]=R),c||(P=pAO(n,X,function(){Gu0(P)||(lJu(P),g.zg(X),g.rN(function(){mNx(X)},0))},w)))}; pAO=function(n,q,w,X){X=X===void 0?null:X;var P=g.O_("SCRIPT");P.id=q;P.onload=function(){w&&setTimeout(w,0)}; P.onreadystatechange=function(){switch(P.readyState){case "loaded":case "complete":P.onload()}}; X&&P.setAttribute("nonce",X);g.mr(P,g.Uq(n));n=document.getElementsByTagName("head")[0]||document.body;n.insertBefore(P,n.firstChild);return P}; aOm=function(n){var q=document.createElement("a");g.s4(q,n);n=q.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+DY(n)}; X1=function(n,q){if(n===q)n=!0;else if(Array.isArray(n)&&Array.isArray(q))n=g.Qv(n,q,X1);else if(g.R5(n)&&g.R5(q))a:if(g.ky(n).length!=g.ky(q).length)n=!1;else{for(var w in n)if(!X1(n[w],q[w])){n=!1;break a}n=!0}else n=!1;return n}; cq=function(n){var q=g.bs.apply(1,arguments);if(!Pq(n)||q.some(function(X){return!Pq(X)}))throw Error("Only objects may be merged."); q=g.a(q);for(var w=q.next();!w.done;w=q.next())Rj(n,w.value)}; Rj=function(n,q){for(var w in q)if(Pq(q[w])){if(w in n&&!Pq(n[w]))throw Error("Cannot merge an object into a non-object.");w in n||(n[w]={});Rj(n[w],q[w])}else if(Ij(q[w])){if(w in n&&!Ij(n[w]))throw Error("Cannot merge an array into a non-array.");w in n||(n[w]=[]);TWu(n[w],q[w])}else n[w]=q[w];return n}; TWu=function(n,q){q=g.a(q);for(var w=q.next();!w.done;w=q.next())w=w.value,Pq(w)?n.push(Rj({},w)):Ij(w)?n.push(TWu([],w)):n.push(w);return n}; Pq=function(n){return typeof n==="object"&&!Array.isArray(n)}; Ij=function(n){return typeof n==="object"&&Array.isArray(n)}; k2=function(n){g.A.call(this);this.X=n}; rP=function(n){k2.call(this,!0);this.N=n}; j2=function(n,q){g.A.call(this);var w=this;this.C=[];this.G=!1;this.X=0;this.K=this.D=this.W=!1;this.qP=null;var X=(0,g.ki)(n,q);this.N=new g.YF(function(){return X(w.qP)},300); g.K(this,this.N);this.L=this.V=Infinity}; Fuh=function(n,q){if(!q)return!1;for(var w=0;w-1)throw Error("Deps cycle for: "+q);if(n.X.has(q))return n.X.get(q);if(!n.N.has(q)){if(X)return;throw Error("No provider for: "+q);}X=n.N.get(q);w.push(q);if(X.F6!==void 0)var P=X.F6;else if(X.YTe)P=X[aj]?MYh(n,X[aj],w):[],P=X.YTe.apply(X,g.D(P));else if(X.rJ){P=X.rJ;var R=P[aj]?MYh(n,P[aj],w):[];P=new (Function.prototype.bind.apply(P,[null].concat(g.D(R))))}else throw Error("Could not resolve providers for: "+q);w.pop();X.S_W||n.X.set(q,P); return P}; MYh=function(n,q,w){return q?q.map(function(X){return X instanceof gP?Vp(n,X.key,w,!0):Vp(n,X,w)}):[]}; Tv=function(){pR||(pR=new Lum);return pR}; $2=function(){var n,q;return"h5vcc"in F1&&((n=F1.h5vcc.traceEvent)==null?0:n.traceBegin)&&((q=F1.h5vcc.traceEvent)==null?0:q.traceEnd)?1:"performance"in F1&&F1.performance.mark&&F1.performance.measure?2:0}; vq=function(n){var q=$2();switch(q){case 1:F1.h5vcc.traceEvent.traceBegin("YTLR",n);break;case 2:F1.performance.mark(n+"-start");break;case 0:break;default:e9(q,"unknown trace type")}}; xNO=function(n){var q=$2();switch(q){case 1:F1.h5vcc.traceEvent.traceEnd("YTLR",n);break;case 2:q=n+"-start";var w=n+"-end";F1.performance.mark(w);F1.performance.measure(n,q,w);break;case 0:break;default:e9(q,"unknown trace type")}}; DNm=function(n){var q,w;(w=(q=window).onerror)==null||w.call(q,n.message,"",0,0,n)}; hcT=function(n){var q=this;var w=w===void 0?0:w;var X=X===void 0?g.Qs():X;this.C=w;this.scheduler=X;this.X=new g.cR;this.N=n;for(n={GF:0};n.GF=1E3?P():X>=n?nC||(nC=q0(function(){P();nC=void 0},0)):R-k>=10&&(Wu0(q,w.tier),c.W=R)}; BWy=function(n,q){if(n.endpoint==="log_event"){g.OU("more_accurate_gel_parser")&&S2().storePayload({isJspb:!1},n.payload);Bq(n);var w=Qp(n),X=new Map;X.set(w,[n.payload]);var P=Kuy(n.payload)||"";q&&(Wq=new q);return new g.aR(function(R,c){Wq&&Wq.isReady()?NWY(X,Wq,R,c,{bypassNetworkless:!0},!0,JP(P)):R()})}}; J3O=function(n,q,w){if(q.endpoint==="log_event"){Bq(void 0,q);var X=Qp(q,!0),P=new Map;P.set(X,[oE(q.payload)]);w&&(Wq=new w);return new g.aR(function(R){Wq&&Wq.isReady()?nAs(P,Wq,R,{bypassNetworkless:!0},!0,JP(n)):R()})}}; Qp=function(n,q){var w="";if(n.dangerousLogToVisitorSession)w="visitorOnlyApprovedKey";else if(n.cttAuthInfo){if(q===void 0?0:q){q=n.cttAuthInfo.token;w=n.cttAuthInfo;var X=new h3;w.videoId?X.setVideoId(w.videoId):w.playlistId&&sS(X,2,wF,aE(w.playlistId));Xv[q]=X}else q=n.cttAuthInfo,w={},q.videoId?w.videoId=q.videoId:q.playlistId&&(w.playlistId=q.playlistId),PW[n.cttAuthInfo.token]=w;w=n.cttAuthInfo.token}return w}; zv=function(n,q,w){n=n===void 0?{}:n;q=q===void 0?!1:q;new g.aR(function(X,P){var R=Ni(q,w),c=R.C;R.C=!1;R8(R.X);R8(R.N);R.N=0;Wq&&Wq.isReady()?w===void 0&&g.OU("enable_web_tiered_gel")?qUs(X,P,n,q,300,c):qUs(X,P,n,q,w,c):(Wu0(q,w),X())})}; qUs=function(n,q,w,X,P,R){var c=Wq;w=w===void 0?{}:w;X=X===void 0?!1:X;P=P===void 0?200:P;R=R===void 0?!1:R;var k=new Map,r=new Map,e={isJspb:X,cttAuthInfo:void 0,tier:P},f={isJspb:X,cttAuthInfo:void 0};if(X){q=g.a(Object.keys(ZA));for(P=q.next();!P.done;P=q.next())P=P.value,r=g.OU("enable_web_tiered_gel")?S2().smartExtractMatchingEntries({keys:[e,f],sizeLimit:1E3}):S2().extractMatchingEntries({isJspb:!0,cttAuthInfo:P}),r.length>0&&k.set(P,r),(g.OU("web_fp_via_jspb_and_json")&&w.writeThenSend||!g.OU("web_fp_via_jspb_and_json"))&& delete ZA[P];nAs(k,c,n,w,!1,R)}else{k=g.a(Object.keys(ZA));for(e=k.next();!e.done;e=k.next())e=e.value,f=g.OU("enable_web_tiered_gel")?S2().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:e,tier:P},{isJspb:!1,cttAuthInfo:e}],sizeLimit:1E3}):S2().extractMatchingEntries({isJspb:!1,cttAuthInfo:e}),f.length>0&&r.set(e,f),(g.OU("web_fp_via_jspb_and_json")&&w.writeThenSend||!g.OU("web_fp_via_jspb_and_json"))&&delete ZA[e];NWY(r,c,n,q,w,!1,R)}}; Wu0=function(n,q){function w(){zv({writeThenSend:!0},n,q)} n=n===void 0?!1:n;q=q===void 0?200:q;var X=Ni(n,q),P=X===wUh||X===XUz?5E3:Pb3;g.OU("web_gel_timeout_cap")&&!X.N&&(P=q0(function(){w()},P),X.N=P); R8(X.X);P=g.bp("LOGGING_BATCH_TIMEOUT",g.HU("web_gel_debounce_ms",1E4));g.OU("shorten_initial_gel_batch_timeout")&&cW&&(P=RPO);P=q0(function(){g.HU("gel_min_batch_size")>0?S2().getSequenceCount({cttAuthInfo:void 0,isJspb:n,tier:q})>=cVx&&w():w()},P); X.X=P}; NWY=function(n,q,w,X,P,R,c){P=P===void 0?{}:P;var k=Math.round((0,g.m$)()),r=n.size,e=IIT(c);n=g.a(n);var f=n.next();for(c={};!f.done;c={DW:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,wA:void 0,YK:void 0},f=n.next()){var O=g.a(f.value);f=O.next().value;O=O.next().value;c.batchRequest=g.Ul({context:g.co(q.config_||g.Po())});if(!g.PG(O)&&!g.OU("throw_err_when_logevent_malformed_killswitch")){X();break}c.batchRequest.events=O;(O=PW[f])&&kSy(c.batchRequest,f,O);delete PW[f];c.dangerousLogToVisitorSession= f==="visitorOnlyApprovedKey";rV6(c.batchRequest,k,c.dangerousLogToVisitorSession);jds(P);c.wA=function(H){g.OU("start_client_gcf")&&g.DK.eG(function(){return g.b(function(U){return g.l(U,sdO(H),0)})}); r--;r||w()}; c.DW=0;c.YK=function(H){return function(){H.DW++;if(P.bypassNetworkless&&H.DW===1)try{g.KH(q,e,H.batchRequest,I8({writeThenSend:!0},H.dangerousLogToVisitorSession,H.wA,H.YK,R)),cW=!1}catch(U){g.Ki(U),X()}r--;r||w()}}(c); try{g.KH(q,e,c.batchRequest,I8(P,c.dangerousLogToVisitorSession,c.wA,c.YK,R)),cW=!1}catch(H){g.Ki(H),X()}}}; nAs=function(n,q,w,X,P,R){X=X===void 0?{}:X;var c=Math.round((0,g.m$)()),k={value:n.size},r=new Map([].concat(g.D(n)));r=g.a(r);for(var e=r.next();!e.done;e=r.next()){var f=g.a(e.value).next().value,O=n.get(f);e=new Yzs;var H=q.config_||g.Po(),U=new $v,t=new mu;DX(t,1,H.KT);DX(t,2,H.Ok);G1(t,16,H.oK);DX(t,17,H.innertubeContextClientVersion);if(H.dj){var V=H.dj,T=new dW;V.coldConfigData&&DX(T,1,V.coldConfigData);V.appInstallData&&DX(T,6,V.appInstallData);V.coldHashData&&DX(T,3,V.coldHashData);V.hotHashData&& T.zP(V.hotHashData);ae(t,dW,62,T)}(V=g.W0.devicePixelRatio)&&V!=1&&W1(t,65,kk(V));V=UU();V!==""&&DX(t,54,V);V=tV();if(V.length>0){T=new Vm;for(var x=0;x65535&&(n=1);ow("BATCH_CLIENT_COUNTER",n);return n}; kSy=function(n,q,w){if(w.videoId)var X="VIDEO";else if(w.playlistId)X="PLAYLIST";else return;n.credentialTransferTokenTargetId=w;n.context=n.context||{};n.context.user=n.context.user||{};n.context.user.credentialTransferTokens=[{token:q,scope:X}]}; Bq=function(n,q){var w=g.w0("yt.logging.transport.enableScrapingForTest"),X=fe("il_payload_scraping");X=(X!==void 0?String(X):"")==="enable_il_payload_scraping";if(!w)if(X)jh=[],g.nj("yt.logging.transport.enableScrapingForTest",!0),g.nj("yt.logging.transport.scrapedPayloadsForTesting",jh),g.nj("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.nj("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.nj("yt.logging.transport.scrapeClientEvent",!0);else return;w=g.w0("yt.logging.transport.scrapedPayloadsForTesting");X=g.w0("yt.logging.transport.payloadToScrape");q&&(q=q.payload,(q=g.w0("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(q)())&&w.push(q));q=g.w0("yt.logging.transport.scrapeClientEvent");if(X&&X.length>=1)for(var P=0;P0&&xg0(n,q,R)}else xg0(n,q)}; xg0=function(n,q,w){n=Dgs(n);q=q?g.fF(q):"";w=w||5;zS()&&g.Le(n,q,w)}; Dgs=function(n){for(var q=g.a(hPy),w=q.next();!w.done;w=q.next())n=aB(n,w.value);return"ST-"+DY(n).toString(36)}; lIT=function(n){if(n.name==="JavaException")return!0;n=n.stack;return n.includes("chrome://")||n.includes("-extension://")||n.includes("webkit-masked-url://")}; GS6=function(n){if(!n.stack)return!0;var q=!n.stack.includes("\n");return q&&n.stack.includes("ErrorType: ")||q&&n.stack.includes("Anonymous function (Unknown script")||n.stack.toLowerCase()==="not available"||n.fileName==="user-script"||n.fileName.startsWith("user-script:")?!0:!1}; CbO=function(){this.nz=[];this.E_=[]}; mi=function(){if(!gF){var n=gF=new CbO;n.E_.length=0;n.nz.length=0;EAs(n,oAO)}return gF}; EAs=function(n,q){q.E_&&n.E_.push.apply(n.E_,q.E_);q.nz&&n.nz.push.apply(n.nz,q.nz)}; bex=function(n){function q(){return n.charCodeAt(X++)} var w=n.length,X=0;do{var P=yK(q);if(P===Infinity)break;var R=P>>3;switch(P&7){case 0:P=yK(q);if(R===2)return P;break;case 1:if(R===2)return;X+=8;break;case 2:P=yK(q);if(R===2)return n.substr(X,P);X+=P;break;case 5:if(R===2)return;X+=4;break;default:return}}while(X500));X++);X=P}else if(typeof n==="object")for(P in n){if(n[P]){var R=P;var c=n[P],k=q,r=w;R=typeof c!=="string"||R!=="clickTrackingParams"&&R!=="trackingParams"?0:(c=bex(atob(c.replace(/-/g,"+").replace(/_/g,"/"))))?a8(R+".ve",c,k,r):0;X+=R;X+=a8(P,n[P],q,w);if(X>500)break}}else w[q]=VK(n),X+=w[q].length;else w[q]=VK(n),X+=w[q].length;return X}; a8=function(n,q,w,X){w+="."+n;n=VK(q);X[w]=n;return w.length+n.length}; VK=function(n){try{return(typeof n==="string"?n:String(JSON.stringify(n))).substr(0,500)}catch(q){return"unable to serialize "+typeof n+" ("+q.message+")"}}; wZ=function(n){g.pC(n)}; g.TQ=function(n){g.pC(n,"WARNING")}; g.pC=function(n,q){var w=w===void 0?{}:w;w.name=g.bp("INNERTUBE_CONTEXT_CLIENT_NAME",1);w.version=g.bp("INNERTUBE_CONTEXT_CLIENT_VERSION");q=q===void 0?"ERROR":q;var X=!1;q=q===void 0?"ERROR":q;X=X===void 0?!1:X;if(n){n.hasOwnProperty("level")&&n.level&&(q=n.level);if(g.OU("console_log_js_exceptions")){var P=[];P.push("Name: "+n.name);P.push("Message: "+n.message);n.hasOwnProperty("params")&&P.push("Error Params: "+JSON.stringify(n.params));n.hasOwnProperty("args")&&P.push("Error args: "+JSON.stringify(n.args)); P.push("File name: "+n.fileName);P.push("Stacktrace: "+n.stack);window.console.log(P.join("\n"),n)}if(!(YUy>=5)){P=[];for(var R=g.a(KNO),c=R.next();!c.done;c=R.next()){c=c.value;try{c()&&P.push(c())}catch(V){}}P=[].concat(g.D(SUs),g.D(P));var k=RG3(n);R=k.message||"Unknown Error";c=k.name||"UnknownError";var r=k.stack||n.X||"Not available";if(r.startsWith(c+": "+R)){var e=r.split("\n");e.shift();r=e.join("\n")}e=k.lineNumber||"Not available";k=k.fileName||"Not available";var f=0;if(n.hasOwnProperty("args")&& n.args&&n.args.length)for(var O=0;O=500);O++);else if(n.hasOwnProperty("params")&&n.params){var H=n.params;if(typeof n.params==="object")for(O in H){if(H[O]){var U="params."+O,t=VK(H[O]);w[U]=t;f+=U.length+t.length;if(f>500)break}}else w.params=VK(H)}if(P.length)for(O=0;O=500);O++);navigator.vendor&&!w.hasOwnProperty("vendor")&&(w["device.vendor"]=navigator.vendor);w={message:R,name:c,lineNumber:e, fileName:k,stack:r,params:w,sampleWeight:1};O=Number(n.columnNumber);isNaN(O)||(w.lineNumber=w.lineNumber+":"+O);if(n.level==="IGNORED")n=0;else a:{n=mi();O=g.a(n.E_);for(P=O.next();!P.done;P=O.next())if(P=P.value,w.message&&w.message.match(P.NC)){n=P.weight;break a}n=g.a(n.nz);for(O=n.next();!O.done;O=n.next())if(O=O.value,O.callback(w)){n=O.weight;break a}n=1}w.sampleWeight=n;n=g.a(uRx);for(O=n.next();!O.done;O=n.next())if(O=O.value,O.xG[w.name])for(R=g.a(O.xG[w.name]),P=R.next();!P.done;P=R.next())if(c= P.value,P=w.message.match(c.Ic)){w.params["params.error.original"]=P[0];R=c.groups;c={};for(e=0;e1E3&&g.TQ(new g.b4("IL Attach cache exceeded limit"))}k= o8(w,q);hB.has(k)?bZ(w,q):GQ.set(k,!0)}}X=X.filter(function(f){f.csn!==q?(f.csn=q,f=!0):f=!1;return f}); w={csn:q,parentVe:w.getAsJson(),childVes:g.Hh(X,function(f){return f.getAsJson()})}; q==="UNDEFINED_CSN"?AB("visualElementAttached",R,w):n?eh("visualElementAttached",w,n,R):g.Xc("visualElementAttached",w,R)}; IEh=function(n,q,w,X,P){Y9(w,q);X=Dx({cttAuthInfo:tB(q)||void 0},q);w={csn:q,ve:w.getAsJson(),eventType:1};P&&(w.clientData=P);q==="UNDEFINED_CSN"?AB("visualElementShown",X,w):n?eh("visualElementShown",w,n,X):g.Xc("visualElementShown",w,X)}; kaO=function(n,q,w,X){var P=(X=X===void 0?!1:X)?16:8;X=Dx({cttAuthInfo:tB(q)||void 0,endOfSequence:X},q);w={csn:q,ve:w.getAsJson(),eventType:P};q==="UNDEFINED_CSN"?AB("visualElementHidden",X,w):n?eh("visualElementHidden",w,n,X):g.Xc("visualElementHidden",w,X)}; Sh=function(n,q,w,X,P){KC(n,q,w,void 0,X,P)}; KC=function(n,q,w,X,P){Y9(w,q);X=X||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var R=Dx({cttAuthInfo:tB(q)||void 0},q);w={csn:q,ve:w.getAsJson(),gestureType:X};P&&(w.clientData=P);q==="UNDEFINED_CSN"?AB("visualElementGestured",R,w):n?eh("visualElementGestured",w,n,R):g.Xc("visualElementGestured",w,R)}; rhh=function(){var n=fR(16);for(var q=[],w=0;w0&&w.push(g.O_("BR"));w.push(g.iX(R))}):w.push(g.iX(X))}return w}; Pl=function(n,q,w,X){if(w==="child"){g.U_(q);var P;X===void 0?P=void 0:P=!Array.isArray(X)||X&&typeof X.J==="string"?[X]:X;w=slu(n,P);w=g.a(w);for(n=w.next();!n.done;n=w.next())q.appendChild(n.value)}else w==="style"?g.K$(q,"cssText",X?X:""):X===null||X===void 0?q.removeAttribute(w):(n=X.toString(),w==="href"&&(n=g.RP(g.rD(n))),q.setAttribute(w,n))}; g.Q=function(n){g.wV.call(this,n);this.xE=!0;this.K=!1;this.listeners=[]}; g.R6=function(n){g.Q.call(this,n);this.oH=new g.np;g.K(this,this.oH)}; cl=function(n,q,w,X,P,R,c){c=c===void 0?null:c;g.R6.call(this,q);this.api=n;this.macros={};this.componentType=w;this.G=this.V=null;this.qe=c;this.layoutId=X;this.interactionLoggingClientData=P;this.QT=R;this.IH=null;this.C0=new rP(this.element);g.K(this,this.C0);this.Ne=this.j(this.element,"click",this.onClick);this.WW=[];this.vW=new j2(this.onClick,this);g.K(this,this.vW);this.AK=!1;this.Tp=this.qP=null}; I6=function(n,q){n=n===void 0?null:n;q=q===void 0?null:q;if(n==null)return g.TQ(Error("Got null or undefined adText object")),"";var w=g.x1(n.text);if(!n.isTemplated)return w;if(q==null)return g.TQ(Error("Missing required parameters for a templated message")),w;n=g.a(Object.entries(q));for(q=n.next();!q.done;q=n.next()){var X=g.a(q.value);q=X.next().value;X=X.next().value;w=w.replace("{"+q+"}",X)}return w}; e7T=function(n){n=n===void 0?null:n;return n!=null&&(n=n.thumbnail,n!=null&&n.thumbnails!=null&&n.thumbnails.length!=0&&n.thumbnails[0].url!=null)?g.x1(n.thumbnails[0].url):""}; fEz=function(n){n=n===void 0?null:n;return n!=null&&(n=n.thumbnail,n!=null&&n.thumbnails!=null&&n.thumbnails.length!=0&&n.thumbnails[0].width!=null&&n.thumbnails[0].height!=null)?new g.QB(n.thumbnails[0].width||0,n.thumbnails[0].height||0):new g.QB(0,0)}; g.kY=function(n){if(n.simpleText)return n.simpleText;if(n.runs){var q=[];n=g.a(n.runs);for(var w=n.next();!w.done;w=n.next())w=w.value,w.text&&q.push(w.text);return q.join("")}return""}; g.rV=function(n){if(n.simpleText)return n=document.createTextNode(n.simpleText),n;var q=[];if(n.runs)for(var w=0;w1){for(var q=[n[0]],w=1;w0&&(this.N=new g.YF(this.Jd,q,this),g.K(this,this.N));this.K=new g.YF(this.Jd,w,this);g.K(this,this.K);this.V=xWs(this.X,P,1,X);g.K(this,this.V);this.G=xWs(this.X,0,X,1);g.K(this,this.G);this.W=new ys;g.K(this,this.W)}; qF=function(n,q,w){this.X=n;this.isAsync=q;this.N=w}; Pgs=function(n){switch(n){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:e9(n,"unknown result type")}}; Rv0=function(n,q){var w=1;n.isTrusted===!1&&(w=0);ow("ISDSTAT",w);w_(w,"i.s_",{triggerContext:"sk",metadata:q});return w}; cNT=function(n,q){var w=[];q?q.isTrusted===!0?w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):q.isTrusted===!1?w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):w.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");w_(0,"a.s_",{metadata:n,states:w});ow("ASDSTAT",0)}; w_=function(n,q,w){q=Iau[q];var X,P,R={detected:n===0,source:""+q.X+((X=w.triggerContext)!=null?X:"")+((P=w.lD)!=null?P:""),detectionStates:w.states,durationMs:w.Jc};w.metadata&&(R.contentCpn=w.metadata.contentCpn,R.adCpn=w.metadata.adCpn);g.Xc("biscottiBasedDetection",R);q.N!==void 0&&(w=Number(g.bp("CATSTAT",0)),q.N!==void 0?(q=q.N,n=Pgs(n),n=w&~(3<0}; r_=function(n,q,w,X,P,R){um.call(this,n,{J:"div",Y:"ytp-ad-skip-button-slot"},"skip-button",q,w,X,P);var c=this;this.PW=null;this.HW=!1;this.Ff=R;this.D=this.api.B().experiments.BW("enable_modern_skip_button_on_web");this.je=!1;this.W=new g.R6({J:"span",Jg:["ytp-ad-skip-button-container"]});this.D&&this.W.element.classList.add("ytp-ad-skip-button-container-detached");g.K(this,this.W);this.W.wl(this.element);this.X=this.C=null;this.RH=new g.ZF(this.W,500,!1,100,function(){return c.hide()}); g.K(this,this.RH);this.n5=new nX(this.W.element,15E3,5E3,.5,.5,this.D);g.K(this,this.n5);this.hide()}; rNs=function(n){n=n.PW&&n.PW.adRendererCommands;return(n&&n.clickCommand&&g.u(n.clickCommand,g.j6)&&g.u(n.clickCommand,g.j6).commands||[]).some(function(q){return q.adLifecycleCommand?knx(q.adLifecycleCommand):!1})}; knx=function(n){return n.action==="END_LINEAR_AD"||n.action==="END_LINEAR_AD_PLACEMENT"}; sp=function(n,q,w,X,P,R){um.call(this,n,{J:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",q,w,X,P);this.PW=R;this.W=!1;this.D=0;this.C=this.X=null;this.hide()}; j40=function(n,q){n.W||(n.W=!0,n.X&&(q?n.X.PW.hide():n.X.hide()),q?(n=n.C,n.RH.show(),n.show()):n.C.show())}; e6=function(n,q,w,X){T3.call(this,n,q,w,X,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; fX=function(n,q,w,X,P,R,c){R=R===void 0?!1:R;c=c===void 0?!1:c;cl.call(this,n,{J:"span",Y:"ytp-ad-simple-ad-badge"},"simple-ad-badge",q,w,X);this.C=P;this.N=this.C5("ytp-ad-simple-ad-badge");(this.X=R)&&this.N.classList.add("ytp-ad-simple-ad-badge--clean-player");c&&this.N.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; Op=function(n,q,w,X,P){P=P===void 0?!1:P;N0.call(this,"player-overlay",n,{},q,X);this.videoAdDurationSeconds=w;this.interactionLoggingClientData=X;this.AC=P}; i$=function(n,q){g.np.call(this);this.api=n;this.durationMs=q;this.N=null;this.Sg=new ys(this);g.K(this,this.Sg);this.X=s4O;this.Sg.j(this.api,"presentingplayerstatechange",this.jS);this.N=this.Sg.j(this.api,"onAdPlaybackProgress",this.hU)}; Hn=function(n){g.np.call(this);this.N=!1;this.NT=0;this.Sg=new ys(this);g.K(this,this.Sg);this.durationMs=n;this.timer=new g.LE(100);g.K(this,this.timer);this.Sg.j(this.timer,"tick",this.hU);this.X={seekableStart:0,seekableEnd:n/1E3,current:0};this.start()}; g.Up=function(n,q){var w=Math.abs(Math.floor(n)),X=Math.floor(w/86400),P=Math.floor(w%86400/3600),R=Math.floor(w%3600/60);w=Math.floor(w%60);if(q){q="";X>0&&(q+=" "+X+" Dias");if(X>0||P>0)q+=" "+P+" Horas";q+=" "+R+" Minutos";q+=" "+w+" Segundos";X=q.trim()}else{q="";X>0&&(q+=X+":",P<10&&(q+="0"));if(X>0||P>0)q+=P+":",R<10&&(q+="0");q+=R+":";w<10&&(q+="0");X=q+w}return n>=0?X:"-"+X}; g.t2=function(n){return(!("button"in n)||typeof n.button!=="number"||n.button===0)&&!("shiftKey"in n&&n.shiftKey)&&!("altKey"in n&&n.altKey)&&!("metaKey"in n&&n.metaKey)&&!("ctrlKey"in n&&n.ctrlKey)}; d_=function(n,q,w,X,P,R,c){um.call(this,n,{J:"span",Y:c?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",q,w,X,P);this.videoAdDurationSeconds=R;this.X=null;c&&this.api.B().X&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),bg&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; g_=function(n,q,w,X){Kp.call(this,n,q,w,X,"ytp-video-ad-top-bar-title","ad-title")}; ma=function(n){this.content=n.content;if(n.commandRuns){n=g.a(n.commandRuns);for(var q=n.next();!q.done;q=n.next())q=q.value,this.loggingDirectives=g.u(q,evO),q.onTap&&(this.interaction={onTap:q.onTap})}}; yO=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",q,w,X);this.hide()}; a0=function(n,q,w,X,P){cl.call(this,n,{J:"span",Y:P?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",q,w,X);this.X=P;this.adBadgeText=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);this.adBadgeText.wl(this.element);g.K(this,this.adBadgeText);P?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),bg&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; VO=function(n,q,w,X){cl.call(this,n,{J:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",q,w,X);this.api.B().X&&(this.element.classList.add("ytp-ad-pod-index--mweb"),bg&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; pX=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",q,w,X);this.hide()}; Tp=function(n,q){this.X=n;this.N=q}; faO=function(n,q){return n.X+q*(n.N-n.X)}; Fu=function(n,q,w){return n.N-n.X?g.Y1((q-n.X)/(n.N-n.X),0,1):w!=null?w:Infinity}; $0=function(n,q,w,X){X=X===void 0?!1:X;g.R6.call(this,{J:"div",Y:"ytp-ad-persistent-progress-bar-container",S:[{J:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=n;this.X=q;this.C=w;X&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.K(this,this.X);this.progressBar=this.C5("ytp-ad-persistent-progress-bar");this.N=-1;this.j(n,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; vn=function(n,q,w,X,P,R){cl.call(this,n,{J:"div",Y:"ytp-ad-player-overlay",S:[{J:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{J:"div",Y:"ytp-ad-player-overlay-instream-info"},{J:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{J:"div",Y:"ytp-ad-player-overlay-progress-bar"},{J:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{J:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",q,w,X);this.L=R;this.D=this.C5("ytp-ad-player-overlay-flyout-cta");this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.N=this.C5("ytp-ad-player-overlay-instream-info");this.W=null;OWO(this)&&(n=f$("div"),g.N4(n,"ytp-ad-player-overlay-top-bar-gradients"),q=this.N,q.parentNode&&q.parentNode.insertBefore(n,q),(q=this.api.getVideoData(2))&&q.isListed&&q.title&&(w=new g_(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),w.wl(n),w.init(WW("ad-title"),{text:q.title},this.macros),g.K(this,w)),this.W=n);this.C=null;this.D0=this.C5("ytp-ad-player-overlay-skip-or-preview");this.n5=this.C5("ytp-ad-player-overlay-progress-bar"); this.HW=this.C5("ytp-ad-player-overlay-instream-user-sentiment");this.PW=this.C5("ytp-ad-player-overlay-ad-disclosure-banner");this.X=P;g.K(this,this.X);this.hide()}; OWO=function(n){n=n.api.B();return g.LX(n)&&n.X}; g.MF=function(n){n&=16777215;var q=[(n&16711680)>>16,(n&65280)>>8,n&255];n=q[0];var w=q[1];q=q[2];n=Number(n);w=Number(w);q=Number(q);if(n!=(n&255)||w!=(w&255)||q!=(q&255))throw Error('"('+n+","+w+","+q+'") is not a valid RGB color');w=n<<16|w<<8|q;return n<16?"#"+(16777216|w).toString(16).slice(1):"#"+w.toString(16)}; g.x0=function(){}; HWO=function(n){var q=new IY;var w=new cf;w=DX(w,1,"botguard");n=DX(w,2,n);this.N=h9u(q,cf,1,iWz,n)}; Ds=function(n){this.N=new yS(n)}; UUT=function(){var n=!1;try{n=!!window.sessionStorage.getItem("session_logininfo")}catch(q){n=!0}return(g.bp("INNERTUBE_CLIENT_NAME")==="WEB"||g.bp("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&n}; h2=function(){var n=n===void 0?!0:n;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");ow("LOGIN_INFO","");n&&window.sessionStorage.setItem("from_switch_account","1");n=!0;n=n===void 0?!1:n;var q,w=tIO;w||(w=document.querySelector("#persist_identity"));if(q=w){var X=q.src?(new URL(q.src)).origin:"*";if(n){var P;(P=q.contentWindow)==null||P.postMessage({action:"clear"},X)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var R=window.sessionStorage.getItem("session_logininfo");if(R){var c;(c=q.contentWindow)==null||c.postMessage({loginInfo:R},X)}}}}catch(k){}}; l$=function(n){n&&(n.startsWith("https://accounts.google.com/AddSession")?h2():n.startsWith("https://accounts.google.com/ServiceLogin")?h2():n.startsWith("https://myaccount.google.com")&&g.ct(n).X.endsWith("/youtubeoptions")&&h2());if(g.bp("LOGGED_IN",!0)&&UUT()){var q=g.bp("VALID_SESSION_TEMPDATA_DOMAINS",[]);var w=g.IB(window.location.href);w&&q.push(w);w=g.IB(n);g.yv(q,w)||!w&&vJ(n,"/")?(q=rG(n),(q=KJs(q))?(q=Dgs(q),q=(q=g.Mg(q)||null)?ZO(q):{}):q=null):q=null;q==null&&(q={});w=q;var X=void 0; UUT()?(X||(X=g.bp("LOGIN_INFO")),X?(w.session_logininfo=X,w=!0):w=!1):w=!1;w&&dF(n,q)}}; g.dUx=function(n){var q=q===void 0?{}:q;var w=w===void 0?"":w;var X=X===void 0?window:X;n=g.OV(n,q);l$(n);w=g.rD(n+w);X=X.location;w=j9(w);w!==void 0&&(X.href=w)}; g.Gp=function(n,q,w){q=q===void 0?{}:q;w=w===void 0?!1:w;var X=g.bp("EVENT_ID");X&&(q.ei||(q.ei=X));q&&dF(n,q);w||(l$(n),g.dUx(n))}; g.CX=function(n,q,w,X,P){P=P===void 0?!1:P;w&&dF(n,w);w=g.rD(n);var R=g.RP(w);n!=R&&up(Error("Unsafe window.open URL: "+n));n=R;q=q||DY(n).toString(36);try{if(P)return P=n,P=sws(P),l$(P),g.Hw(window,P,q,"attributionsrc")}catch(c){g.Ki(c)}l$(n);return g.Hw(window,w,q,X)}; gdO=function(n){Ep=n}; mU6=function(n){o0=n}; yN3=function(n){b$=n}; VIy=function(){aas=b$=o0=Ep=null}; TZy=function(){var n=n===void 0?window.location.href:n;if(g.OU("kevlar_disable_theme_param"))return null;var q=ko(n);if(g.OU("enable_dark_theme_only_on_shorts")&&q!=null&&q.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var w=g.zV(n).theme;return p3h.get(w)||null}catch(X){}return null}; A2=function(){this.N={};if(this.X=tmh()){var n=g.Mg("CONSISTENCY");n&&F$s(this,{encryptedTokenJarContents:n})}}; F$s=function(n,q){if(q.encryptedTokenJarContents&&(n.N[q.encryptedTokenJarContents]=q,typeof q.expirationSeconds==="string")){var w=Number(q.expirationSeconds);setTimeout(function(){delete n.N[q.encryptedTokenJarContents]},w*1E3); n.X&&g.Le("CONSISTENCY",q.encryptedTokenJarContents,w,void 0,!0)}}; KX=function(){this.X=-1;var n=g.bp("LOCATION_PLAYABILITY_TOKEN");g.bp("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Y0(this))&&(n=this.localStorage.get("yt-location-playability-token"));n&&(this.locationPlayabilityToken=n,this.N=void 0)}; Y0=function(n){return n.localStorage===void 0?new za("yt-client-location"):n.localStorage}; g.S6=function(n,q,w){q=q===void 0?!1:q;w=w===void 0?!1:w;var X=g.bp("INNERTUBE_CONTEXT");if(!X)return g.pC(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};X=g.Ul(X);g.OU("web_no_tracking_params_in_shell_killswitch")||delete X.clickTracking;X.client||(X.client={});var P=X.client;P.clientName==="MWEB"&&P.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(P.clientFormFactor=g.bp("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");P.screenWidthPoints=window.innerWidth;P.screenHeightPoints= window.innerHeight;P.screenPixelDensity=Math.round(window.devicePixelRatio||1);P.screenDensityFloat=window.devicePixelRatio||1;P.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var R=R===void 0?!1:R;g.hh();var c="USER_INTERFACE_THEME_LIGHT";g.l4(0,165)?c="USER_INTERFACE_THEME_DARK":g.l4(0,174)?c="USER_INTERFACE_THEME_LIGHT":!g.OU("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (c="USER_INTERFACE_THEME_DARK");R=R?c:TZy()||c;P.userInterfaceTheme=R;if(!q){if(R=PFY())P.connectionType=R;g.OU("web_log_effective_connection_type")&&(R=cds())&&(X.client.effectiveConnectionType=R)}var k;if(g.OU("web_log_memory_total_kbytes")&&((k=g.W0.navigator)==null?0:k.deviceMemory)){var r;k=(r=g.W0.navigator)==null?void 0:r.deviceMemory;X.client.memoryTotalKbytes=""+k*1E6}g.OU("web_gcf_hashes_innertube")&&(R=fMm())&&(r=R.coldConfigData,k=R.coldHashData,R=R.hotHashData,X.client.configInfo=X.client.configInfo|| {},r&&(X.client.configInfo.coldConfigData=r),k&&(X.client.configInfo.coldHashData=k),R&&(X.client.configInfo.hotHashData=R));r=g.zV(g.W0.location.href);!g.OU("web_populate_internal_geo_killswitch")&&r.internalcountrycode&&(P.internalGeo=r.internalcountrycode);P.clientName==="MWEB"||P.clientName==="WEB"?(P.mainAppWebInfo||(P.mainAppWebInfo={}),P.mainAppWebInfo.graftUrl=g.W0.location.href,g.OU("kevlar_woffle")&&z8u.instance&&(r=z8u.instance,P.mainAppWebInfo.pwaInstallabilityStatus=!r.N&&r.X?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),P.mainAppWebInfo.webDisplayMode=MH(),P.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):P.clientName==="TVHTML5"&&(!g.OU("web_lr_app_quality_killswitch")&&(r=g.bp("LIVING_ROOM_APP_QUALITY"))&&(P.tvAppInfo=Object.assign(P.tvAppInfo||{},{appQuality:r})),r=g.bp("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(P.tvAppInfo=Object.assign(P.tvAppInfo||{},{certificationScope:r}));if(!g.OU("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var e=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(E){}e=void 0}e&&(P.timeZone=e)}(e=UU())?P.experimentsToken=e:delete P.experimentsToken;e=tV();A2.instance||(A2.instance=new A2);X.request=Object.assign({},X.request,{internalExperimentFlags:e,consistencyTokenJars:IF(A2.instance.N)});!g.OU("web_prequest_context_killswitch")&&(e=g.bp("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(X.request.externalPrequestContext=e);P=g.hh();e=g.l4(0,58);P=P.get("gsml","");X.user=Object.assign({}, X.user);e&&(X.user.enableSafetyMode=e);P&&(X.user.lockedSafetyMode=!0);g.OU("warm_op_csn_cleanup")?w&&(q=g.Uk())&&(X.clientScreenNonce=q):!q&&(q=g.Uk())&&(X.clientScreenNonce=q);n&&(X.clickTracking={clickTrackingParams:n});if(n=g.w0("yt.mdx.remote.remoteClient_"))X.remoteClient=n;KX.getInstance().setLocationOnInnerTubeContext(X);try{var f=cU(),O=f.bid;delete f.bid;X.adSignalsInfo={params:[],bid:O};for(var H=g.a(Object.entries(f)),U=H.next();!U.done;U=H.next()){var t=g.a(U.value),V=t.next().value, T=t.next().value;f=V;O=T;n=void 0;(n=X.adSignalsInfo.params)==null||n.push({key:f,value:""+O})}var x,M;if(((x=X.client)==null?void 0:x.clientName)==="TVHTML5"||((M=X.client)==null?void 0:M.clientName)==="TVHTML5_UNPLUGGED"){var h=g.bp("INNERTUBE_CONTEXT");h.adSignalsInfo&&(X.adSignalsInfo.advertisingId=h.adSignalsInfo.advertisingId,X.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",X.adSignalsInfo.limitAdTracking=h.adSignalsInfo.limitAdTracking)}}catch(E){g.pC(E)}return X}; L$u=function(n,q){if(!n)return!1;var w,X=(w=g.u(n,$Uh))==null?void 0:w.signal;if(X&&q.fv)return!!q.fv[X];var P;if((w=(P=g.u(n,vdT))==null?void 0:P.request)&&q.eY)return!!q.eY[w];for(var R in n)if(q.DJ[R])return!0;return!1}; MIs=function(n){var q={"Content-Type":"application/json"};g.bp("EOM_VISITOR_DATA")?q["X-Goog-EOM-Visitor-Id"]=g.bp("EOM_VISITOR_DATA"):g.bp("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=g.bp("VISITOR_DATA"));q["X-Youtube-Bootstrap-Logged-In"]=g.bp("LOGGED_IN",!1);g.bp("DEBUG_SETTINGS_METADATA")&&(q["X-Debug-Settings-Metadata"]=g.bp("DEBUG_SETTINGS_METADATA"));n!=="cors"&&((n=g.bp("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(q["X-Youtube-Client-Name"]=n),(n=g.bp("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(q["X-Youtube-Client-Version"]= n),(n=g.bp("CHROME_CONNECTED_HEADER"))&&(q["X-Youtube-Chrome-Connected"]=n),(n=g.bp("DOMAIN_ADMIN_STATE"))&&(q["X-Youtube-Domain-Admin-State"]=n),g.bp("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(n=g.bp("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=n));return q}; xUy=function(){this.N={}}; u$=function(){this.mappings=new xUy}; Bn=function(n){return function(){return new n}}; hvx=function(n){var q=q===void 0?"UNKNOWN_INTERFACE":q;if(n.length===1)return n[0];var w=DUO[q];if(w){w=new RegExp(w);for(var X=g.a(n),P=X.next();!P.done;P=X.next())if(P=P.value,w.exec(P))return P}var R=[];Object.entries(DUO).forEach(function(c){var k=g.a(c);c=k.next().value;k=k.next().value;q!==c&&R.push(k)}); w=new RegExp(R.join("|"));n.sort(function(c,k){return c.length-k.length}); X=g.a(n);for(P=X.next();!P.done;P=X.next())if(P=P.value,!w.exec(P))return P;return n[0]}; g.QO=function(n){return"/youtubei/v1/"+hvx(n)}; Zs=function(){}; J2=function(){}; zp=function(){}; Wn=function(n){return g.w0("ytcsi."+(n||"")+"data_")||laz(n)}; Gn6=function(){var n=Wn();n.info||(n.info={});return n.info}; NF=function(n){n=Wn(n);n.metadata||(n.metadata={});return n.metadata}; nk=function(n){n=Wn(n);n.tick||(n.tick={});return n.tick}; qD=function(n){n=Wn(n);if(n.gel){var q=n.gel;q.gelInfos||(q.gelInfos={});q.gelTicks||(q.gelTicks={})}else n.gel={gelTicks:{},gelInfos:{}};return n.gel}; CgO=function(n){n=qD(n);n.gelInfos||(n.gelInfos={});return n.gelInfos}; wA=function(n){var q=Wn(n).nonce;q||(q=g.Os(16),Wn(n).nonce=q);return q}; laz=function(n){var q={tick:{},info:{}};g.nj("ytcsi."+(n||"")+"data_",q);return q}; XK=function(){var n=g.w0("ytcsi.debug");n||(n=[],g.nj("ytcsi.debug",n),g.nj("ytcsi.reference",{}));return n}; PK=function(n){n=n||"";var q=EdO();if(q[n])return q[n];var w=XK(),X={timerName:n,info:{},tick:{},span:{},jspbInfo:[]};w.push(X);return q[n]=X}; od0=function(n){n=n||"";var q=EdO();q[n]&&delete q[n];var w=XK(),X={timerName:n,info:{},tick:{},span:{},jspbInfo:[]};w.push(X);q[n]=X}; EdO=function(){var n=g.w0("ytcsi.reference");if(n)return n;XK();return g.w0("ytcsi.reference")}; R1=function(n){return bW0[n]||"LATENCY_ACTION_UNKNOWN"}; cK=function(n,q){ks.call(this,1,arguments);this.timer=q}; I1=function(){this.N=0}; k5=function(){I1.instance||(I1.instance=new I1);return I1.instance}; ji=function(n,q){rA[q]=rA[q]||{count:0};var w=rA[q];w.count++;w.time=(0,g.m$)();n.N||(n.N=g.u4(0,function(){var X=(0,g.m$)(),P;for(P in rA)rA[P]&&X-rA[P].time>6E4&&delete rA[P];n&&(n.N=0)},5E3)); return w.count>5?(w.count===6&&Math.random()*1E5<1&&(w=new g.b4("CSI data exceeded logging limit with key",q.split("_")),q.indexOf("plev")>=0||g.TQ(w)),!0):!1}; ANs=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; YYx=function(){var n;if(g.OU("csi_use_performance_navigation_timing")){var q,w,X,P=s2==null?void 0:(n=s2.getEntriesByType)==null?void 0:(q=n.call(s2,"navigation"))==null?void 0:(w=q[0])==null?void 0:(X=w.toJSON)==null?void 0:X.call(w);P?(P.requestStart=ei(P.requestStart),P.responseEnd=ei(P.responseEnd),P.redirectStart=ei(P.redirectStart),P.redirectEnd=ei(P.redirectEnd),P.domainLookupEnd=ei(P.domainLookupEnd),P.connectStart=ei(P.connectStart),P.connectEnd=ei(P.connectEnd),P.responseStart=ei(P.responseStart), P.secureConnectionStart=ei(P.secureConnectionStart),P.domainLookupStart=ei(P.domainLookupStart),P.isPerformanceNavigationTiming=!0,n=P):n=s2.timing}else n=g.OU("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(s2.timing)):s2.timing;return n}; ei=function(n){return Math.round(fk()+n)}; fk=function(){return(g.OU("csi_use_time_origin")||g.OU("csi_use_time_origin_tvhtml5"))&&s2.timeOrigin?Math.floor(s2.timeOrigin):s2.timing.navigationStart}; ik=function(n,q){O2("_start",n,q)}; HK=function(n,q){if(!g.OU("web_csi_action_sampling_enabled")||!Wn(q).actionDisabled){var w=PK(q||"");cq(w.info,n);n.loadType&&(w=n.loadType,NF(q).loadType=w);cq(CgO(q),n);w=wA(q);q=Wn(q).cttAuthInfo;k5().info(n,w,q)}}; K$y=function(){var n,q,w,X;return((X=Tv().resolve(mU(wI))==null?void 0:(n=X0())==null?void 0:(q=n.loggingHotConfig)==null?void 0:(w=q.csiConfig)==null?void 0:w.debugTicks)!=null?X:[]).map(function(P){return Object.values(P)[0]})}; O2=function(n,q,w){if(!g.OU("web_csi_action_sampling_enabled")||!Wn(w).actionDisabled){var X=wA(w),P;if(P=g.OU("web_csi_debug_sample_enabled")&&X){(Tv().resolve(mU(wI))==null?0:X0())&&!SY6&&(SY6=!0,O2("gcfl",(0,g.m$)(),w));var R,c,k;P=(Tv().resolve(mU(wI))==null?void 0:(R=X0())==null?void 0:(c=R.loggingHotConfig)==null?void 0:(k=c.csiConfig)==null?void 0:k.debugSampleWeight)||0;if(R=P!==0)b:{R=K$y();if(R.length>0)for(c=0;cw.duration?X:w},{duration:0}))&&q.startTime>0&&q.responseEnd>0&&(O2("wffs",ei(q.startTime)),O2("wffe",ei(q.responseEnd)))}; W$y=function(n,q,w){s2&&s2.measure&&(n.startsWith("measure_")||(n="measure_"+n),w?s2.measure(n,q,w):q?s2.measure(n,q):s2.measure(n))}; NZO=function(n){var q=U2("aft",n);if(q)return q;q=g.bp((n||"")+"TIMING_AFT_KEYS",["ol"]);for(var w=q.length,X=0;X0&&HK(q);q={isNavigation:!0,actionType:R1(g.bp("TIMING_ACTION"))};var w=g.bp("PREVIOUS_ACTION");w&&(q.previousAction=R1(w));if(w=g.bp("CLIENT_PROTOCOL"))q.httpProtocol=w;if(w=g.bp("CLIENT_TRANSPORT"))q.transportProtocol=w;(w=g.Uk())&&w!=="UNDEFINED_CSN"&&(q.clientScreenNonce=w);w=Q4x();if(w===1||w===-1)q.isVisible= !0;w=NF().loadType==="cold";var X=Gn6();w||(w=X.yt_lt==="cold");if(w){q.loadType="cold";w=Gn6();X=YYx();var P=fk(),R=g.bp("CSI_START_TIMESTAMP_MILLIS",0);R>0&&!g.OU("embeds_web_enable_csi_start_override_killswitch")&&(P=R);P&&(O2("srt",X.responseStart),w.prerender!==1&&ik(P));w=wox();w>0&&O2("fpt",w);w=YYx();w.isPerformanceNavigationTiming&&HK({performanceNavigationTiming:!0},void 0);O2("nreqs",w.requestStart,void 0);O2("nress",w.responseStart,void 0);O2("nrese",w.responseEnd,void 0);w.redirectEnd- w.redirectStart>0&&(O2("nrs",w.redirectStart,void 0),O2("nre",w.redirectEnd,void 0));w.domainLookupEnd-w.domainLookupStart>0&&(O2("ndnss",w.domainLookupStart,void 0),O2("ndnse",w.domainLookupEnd,void 0));w.connectEnd-w.connectStart>0&&(O2("ntcps",w.connectStart,void 0),O2("ntcpe",w.connectEnd,void 0));w.secureConnectionStart>=fk()&&w.connectEnd-w.secureConnectionStart>0&&(O2("nstcps",w.secureConnectionStart,void 0),O2("ntcpe",w.connectEnd,void 0));s2&&"getEntriesByType"in s2&&zvu();w=[];if(document.querySelector&& s2&&s2.getEntriesByName)for(var c in gA)gA.hasOwnProperty(c)&&(X=gA[c],JNs(c,X)&&w.push(X));if(w.length>0)for(q.resourceInfo=[],c=g.a(w),w=c.next();!w.done;w=c.next())q.resourceInfo.push({resourceCache:w.value})}HK(q);q=qD();q.preLoggedGelInfos||(q.preLoggedGelInfos=[]);c=q.preLoggedGelInfos;q=CgO();w=void 0;for(X=0;X-1&&(delete v0["@type"],J=v0);V&&n.X.has(V)&&n.X.delete(V);((ql=q.config)==null?0:ql.XXf)&&y6(q.config.XXf);if(J||(o5=n.C)==null||!o5.n0o(q.input,q.MM)){E6.f5(15);break}return g.l(E6,n.C.gpq(q.input,q.MM),16);case 16:J=E6.N;case 15:return gsz(n, J,q),((g0=q.config)==null?0:g0.jSW)&&y6(q.config.jSW),X(),E6.return(J||void 0)}})}; iHO=function(n,q){a:{n=n.N0;var w,X=(w=g.u(q,$Uh))==null?void 0:w.signal;if(X&&n.fv&&(w=n.fv[X])){var P=w();break a}var R;if((w=(R=g.u(q,vdT))==null?void 0:R.request)&&n.eY&&(R=n.eY[w])){P=R();break a}for(P in q)if(n.DJ[P]&&(q=n.DJ[P])){P=q();break a}P=void 0}if(P!==void 0)return Promise.resolve(P)}; U7z=function(n,q,w){var X,P,R,c,k,r,e;return g.b(function(f){if(f.X==1){R=((X=q)==null?void 0:(P=X.ou)==null?void 0:P.identity)||IA;r=(c=q)==null?void 0:(k=c.ou)==null?void 0:k.sessionIndex;var O=g.pE(n.N.C7(R,{sessionIndex:r}));return g.l(f,O,2)}e=f.N;return f.return(Promise.resolve(Object.assign({},MIs(w),e)))})}; HHT=function(n,q,w){var X,P=(q==null?void 0:(X=q.ou)==null?void 0:X.identity)||IA,R;q=q==null?void 0:(R=q.ou)==null?void 0:R.sessionIndex;n=n.N.C7(P,{sessionIndex:q});return Object.assign({},MIs(w),n)}; MD=function(){}; x5=function(){}; D6=function(n){this.D=n}; hZ=function(){}; lk=function(){}; GW=function(){}; Ck=function(){}; g.E2=function(n,q){var w=g.bs.apply(2,arguments);n=n===void 0?0:n;g.b4.call(this,q,w);this.errorType=n;Object.setPrototypeOf(this,this.constructor.prototype)}; o1=function(n,q,w,X){this.N=n;this.X=q;this.C=w;this.W=X}; y86=function(n,q,w){if(n.N){var X=ko(aB(q,"key"))||"/UNKNOWN_PATH";n.N.start(X)}X=w;g.OU("wug_networking_gzip_request")&&(X=Kqx(w));var P;return new ((P=n.W)!=null?P:window.Request)(q,X)}; g.AZ=function(n,q){if(!bk){var w=Tv();yp(w,{X2:au3,rJ:o1});var X={DJ:{feedbackEndpoint:Bn(hZ),modifyChannelNotificationPreferenceEndpoint:Bn(lk),playlistEditEndpoint:Bn(GW),shareEntityEndpoint:Bn(D6),subscribeEndpoint:Bn(MD),unsubscribeEndpoint:Bn(x5),webPlayerShareEntityServiceEndpoint:Bn(Ck)}},P=KX.getInstance(),R={};P&&(R.client_location=P);n===void 0&&(n=Wyy());q===void 0&&(q=w.resolve(au3));OH6(X,q,n,R);yp(w,{X2:VvO,F6:$5.instance});bk=w.resolve(VvO)}return bk}; pos=function(n){var q=new PR;if(n.interpreterJavascript){var w=hqY(n.interpreterJavascript);w=dD(w).toString();var X=new w7;DX(X,6,w);ae(q,w7,1,X,uJ)}else n.interpreterUrl&&(w=HA(n.interpreterUrl),w=X9(w).toString(),X=new XD,DX(X,4,w),ae(q,XD,2,X,uJ));n.interpreterHash&&lq(q,3,n.interpreterHash,uJ);n.program&&lq(q,4,n.program,uJ);n.globalName&&lq(q,5,n.globalName,uJ);n.clientExperimentsStateBlob&&lq(q,7,n.clientExperimentsStateBlob,uJ);return q}; Y5=function(n){var q={};n=n.split("&");n=g.a(n);for(var w=n.next();!w.done;w=n.next())w=w.value.split("="),w.length===2&&(q[w[0]]=w[1]);return q}; xwu=function(){if(g.OU("bg_st_hr"))return"havuokmhhs-0";var n,q=((n=performance)==null?void 0:n.timeOrigin)||0;return"havuokmhhs-"+Math.floor(q)}; Kk=function(n){this.N=n}; TIY=function(){return new Promise(function(n){var q=window.top;q.ntpevasrs!==void 0?n(new Kk(q.ntpevasrs)):(q.ntpqfbel===void 0&&(q.ntpqfbel=[]),q.ntpqfbel.push(function(w){n(new Kk(w))}))})}; $7s=function(){if(zS()){var n=g.bp("PLAYER_VARS",{});if(g.Ol(n,"privembed",!1)!="1"&&!pRO(n)){var q=function(){Si=!0;"google_ad_status"in window?ow("DCLKSTAT",1):ow("DCLKSTAT",2)}; try{g.Wo("//static.doubleclick.net/instream/ad_status.js",q)}catch(w){}FcT.push(g.DK.eG(function(){if(!(Si||"google_ad_status"in window)){try{if(q){var w=""+g.I5(q),X=VYs[w];X&&g.J8(X)}}catch(P){}Si=!0;ow("DCLKSTAT",3)}},5E3))}}}; uk=function(){var n=Number(g.bp("DCLKSTAT",0));return isNaN(n)?0:n}; JZ=function(n,q,w){var X=this;this.network=n;this.options=q;this.X=w;this.N=null;if(q.PdW){var P=new g.cR;this.N=P.promise;g.W0.ytAtRC&&Su(function(){var R,c;return g.b(function(k){if(k.X==1){if(!g.W0.ytAtRC)return k.return();R=BK(null);return g.l(k,Q6(X,R),2)}c=k.N;g.W0.ytAtRC&&g.W0.ytAtRC(JSON.stringify(c));g.yy(k)})},2); TIY().then(function(R){var c,k,r,e;return g.b(function(f){if(f.X==1)return R.bindInnertubeChallengeFetcher(function(O){return Q6(X,BK(O))}),g.l(f,z9(),2); c=f.N;k=R.getLatestChallengeResponse();r=k.challenge;if(!r)throw Error("BGE_MACIL");e={challenge:r,Jv:Y5(r),SP:c,bgChallenge:new PR};P.resolve(e);R.registerChallengeFetchedCallback(function(O){O=O.challenge;if(!O)throw Error("BGE_MACR");O={challenge:O,Jv:Y5(O),SP:c,bgChallenge:new PR};X.N=Promise.resolve(O)}); g.yy(f)})})}else q.preload&&vsy(this,new Promise(function(R){g.u4(0,function(){R(Z6(X))},0)}))}; BK=function(n){var q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};n&&(q.interpreterHash=n);return q}; Z6=function(n,q){q=q===void 0?0:q;var w,X,P,R,c,k,r,e,f,O,H,U;return g.b(function(t){switch(t.X){case 1:w=BK(r7().N);if(g.OU("att_fet_ks"))return g.Vy(t,7),g.l(t,Q6(n,w),9);g.Vy(t,4);return g.l(t,LcO(n,w),6);case 6:c=t.N;P=c.HVo;R=c.Wgh;X=c;g.FY(t,3);break;case 4:return g.$u(t),g.TQ(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),zW(n,864E5),t.return({challenge:"",Jv:{},SP:void 0,bgChallenge:void 0});case 9:X=t.N;if(!X)throw Error("Fetching Attestation challenge returned falsy"); if(!X.challenge)throw Error("Missing Attestation challenge");P=X.challenge;R=Y5(P);if("c1a"in R&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.FY(t,3);break;case 7:k=g.$u(t);g.TQ(k);q++;if(q>=5)return g.TQ(Error("Failed to fetch attestation challenge after "+(q+" attempts; not retrying for 24h."))),zW(n,864E5),t.return({challenge:"",Jv:{},SP:void 0,bgChallenge:void 0});r=1E3*Math.pow(2,q-1)+Math.random()*1E3;return t.return(new Promise(function(V){g.u4(0, function(){V(Z6(n,q))},r)})); case 3:e=Number(R.t)||7200;zW(n,e*1E3);f=void 0;if(!("c1a"in R&&X.bgChallenge)){t.f5(10);break}O=pos(X.bgChallenge);g.Vy(t,11);return g.l(t,M7O(r7(),O),13);case 13:g.FY(t,12);break;case 11:return H=g.$u(t),g.TQ(H),t.return({challenge:P,Jv:R,SP:f,bgChallenge:O});case 12:return g.Vy(t,14),f=new I2({challenge:O,QB:{oX:"aGIf"}}),g.l(t,f.Bk,16);case 16:g.FY(t,10);break;case 14:U=g.$u(t),g.TQ(U),f=void 0;case 10:return t.return({challenge:P,Jv:R,SP:f,bgChallenge:O})}})}; Q6=function(n,q){var w;return g.b(function(X){w=n.X;if(!w||w.ML())return X.return(Q6(n.network,q));FK("att_pna",void 0,"attestation_challenge_fetch");return X.return(new Promise(function(P){w.Mv("publicytnetworkstatus-online",function(){Q6(n.network,q).then(P)})}))})}; Mvz=function(n){if(!n)throw Error("Fetching Attestation challenge returned falsy");if(!n.challenge)throw Error("Missing Attestation challenge");var q=n.challenge,w=Y5(q);if("c1a"in w&&(!n.bgChallenge||!n.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},n,{HVo:q,Wgh:w})}; LcO=function(n,q){var w,X,P,R,c;return g.b(function(k){switch(k.X){case 1:w=void 0,X=0,P={};case 2:if(!(X<5)){k.f5(4);break}if(!(X>0)){k.f5(5);break}P.zM=1E3*Math.pow(2,X-1)+Math.random()*1E3;return g.l(k,new Promise(function(r){return function(e){g.u4(0,function(){e(void 0)},r.zM)}}(P)),5); case 5:return g.Vy(k,7),g.l(k,Q6(n,q),9);case 9:return R=k.N,k.return(Mvz(R));case 7:w=c=g.$u(k),c instanceof Error&&g.TQ(c);case 8:X++;P={zM:void 0};k.f5(2);break;case 4:throw w;}})}; vsy=function(n,q){n.N=q}; x7O=function(n){var q,w,X;return g.b(function(P){if(P.X==1)return g.l(P,Promise.race([n.N,null]),2);q=P.N;var R=Z6(n);n.N=R;(w=q)==null||(X=w.SP)==null||X.dispose();g.yy(P)})}; zW=function(n,q){function w(){var P;return g.b(function(R){P=X-Date.now();return P<1E3?g.l(R,x7O(n),0):(Su(w,0,Math.min(P,6E4)),R.f5(0))})} var X=Date.now()+q;w()}; D7s=function(n,q){return new Promise(function(w){g.u4(0,function(){w(q())},n)})}; g.hNO=function(n,q){var w;return g.b(function(X){var P=g.w0("yt.aba.att");return(w=P?P:JZ.instance!==void 0?JZ.instance.C.bind(JZ.instance):null)?X.return(w("ENGAGEMENT_TYPE_PLAYBACK",n,q)):X.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.lum=function(){var n;return(n=(n=g.w0("yt.aba.att2"))?n:JZ.instance!==void 0?JZ.instance.W.bind(JZ.instance):null)?n():Promise.resolve(!1)}; Cdy=function(n,q){var w=g.w0("ytDebugData.callbacks");w||(w={},g.nj("ytDebugData.callbacks",w));if(g.OU("web_dd_iu")||Ggh.includes(n))w[n]=q}; WK=function(){var n=Es0;var q=q===void 0?[]:q;var w=w===void 0?[]:w;q=$nT.apply(null,[vpy.apply(null,g.D(q))].concat(g.D(w)));this.store=MXz(n,void 0,q)}; g.ND=function(n,q,w){for(var X=Object.assign({},n),P=g.a(Object.keys(q)),R=P.next();!R.done;R=P.next()){R=R.value;var c=n[R],k=q[R];if(k===void 0)delete X[R];else if(c===void 0)X[R]=k;else if(Array.isArray(k)&&Array.isArray(c))X[R]=w?[].concat(g.D(c),g.D(k)):k;else if(!Array.isArray(k)&&g.R5(k)&&!Array.isArray(c)&&g.R5(c))X[R]=g.ND(c,k,w);else if(typeof k===typeof c)X[R]=k;else return q=new g.b4("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:R,ADH:c,updateValue:k}),g.pC(q), n}return X}; nt=function(n){var q=this;n=n===void 0?[]:n;this.N=[];this.C=this.X=0;this.W=void 0;this.totalLength=0;n.forEach(function(w){q.append(w)})}; osO=function(n,q){return n.N.length===0?!1:(n=n.N[n.N.length-1])&&n.buffer===q.buffer&&n.byteOffset+n.length===q.byteOffset}; qO=function(n,q){q=g.a(q.N);for(var w=q.next();!w.done;w=q.next())n.append(w.value)}; w6=function(n,q,w){return n.split(q).yU.split(w).h9}; XN=function(n){n.W=void 0;n.X=0;n.C=0}; P9=function(n,q,w){n.isFocused(q);return q-n.C+w<=n.N[n.X].length}; bHO=function(n){if(!n.W){var q=n.N[n.X];n.W=new DataView(q.buffer,q.byteOffset,q.length)}return n.W}; A83=function(n,q,w){q=q===void 0?0:q;w=w===void 0?-1:w;if(!n.totalLength||!w)return new DataView(new ArrayBuffer(0));w<0&&(w=n.totalLength-q);n.focus(q);if(!P9(n,q,w)){var X=n.X,P=n.C;n.focus(q+w-1);P=new Uint8Array(n.C+n.N[n.X].length-P);for(var R=0,c=X;c<=n.X;c++)P.set(n.N[c],R),R+=n.N[c].length;n.N.splice(X,n.X-X+1,P);XN(n);n.focus(q)}X=n.N[n.X];return new DataView(X.buffer,X.byteOffset+q-n.C,w)}; Rb=function(n,q,w){n=A83(n,q===void 0?0:q,w===void 0?-1:w);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}; c9=function(n,q,w){n=Rb(n,q===void 0?0:q,w===void 0?-1:w);q=new Uint8Array(n.length);try{q.set(n)}catch(X){for(w=0;w>10;R=56320|R&1023}jy[P++]=R}}R=String.fromCharCode.apply(String,jy); P<1024&&(R=R.substring(0,P));w.push(R)}return w.join("")}; ft=function(n,q){var w;if((w=ey)==null?0:w.encodeInto)return q=ey.encodeInto(n,q),q.read>6|192:((P&64512)===55296&&X+1>18|240,q[w++]=P>>12&63|128):q[w++]=P>>12|224,q[w++]=P>>6&63|128),q[w++]=P&63|128)}return w}; OI=function(n){if(ey)return ey.encode(n);var q=new Uint8Array(Math.ceil(n.length*1.2)),w=ft(n,q);q.lengthw&&(q=q.subarray(0,w));return q}; iP=function(n){this.N=n;this.pos=0;this.X=-1}; H9=function(n){var q=Ib(n.N,n.pos);++n.pos;if(q<128)return q;for(var w=q&127,X=1;q>=128;)q=Ib(n.N,n.pos),++n.pos,X*=128,w+=(q&127)*X;return w}; UI=function(n,q){var w=n.X;for(n.X=-1;n.pos+1<=n.N.totalLength;){w<0&&(w=H9(n));var X=w>>3,P=w&7;if(X===q)return!0;if(X>q){n.X=w;break}w=-1;switch(P){case 0:H9(n);break;case 1:n.pos+=8;break;case 2:X=H9(n);n.pos+=X;break;case 5:n.pos+=4}}return!1}; t7=function(n,q){if(UI(n,q))return H9(n)}; d6=function(n,q){if(UI(n,q))return!!H9(n)}; g6=function(n,q){if(UI(n,q)){q=H9(n);var w=Rb(n.N,n.pos,q);n.pos+=q;return w}}; mw=function(n,q){if(n=g6(n,q))return g.sI(n)}; yM=function(n,q,w){if(n=g6(n,q))return w(new iP(new nt([n])))}; ab=function(n,q){for(var w=[];UI(n,q);)w.push(H9(n));return w.length?w:void 0}; VM=function(n,q,w){for(var X=[],P;P=g6(n,q);)X.push(w(new iP(new nt([P]))));return X.length?X:void 0}; pt=function(n,q){n=n instanceof Uint8Array?new nt([n]):n;return q(new iP(n))}; S9T=function(n,q){n=new Uint8Array(n);q&&n.set(q);return n}; u0O=function(n){this.pos=0;this.X=[];this.N=S9T(n===void 0?4096:n);this.view=new DataView(this.N.buffer,this.N.byteOffset,this.N.byteLength)}; TM=function(n,q){q=n.pos+q;if(!(n.N.length>=q)){for(var w=n.N.length*2;w268435455){TM(n,4);for(var w=q&1073741823,X=0;X<4;X++)n.view.setUint8(n.pos,w&127|128),w>>=7,n.pos+=1;q=Math.floor(q/268435456)}for(TM(n,4);q>127;)n.view.setUint8(n.pos,q&127|128),q>>=7,n.pos+=1;n.view.setUint8(n.pos,q);n.pos+=1}; EI=function(n,q,w){w!==void 0&&(Ct(n,q*8),Ct(n,w))}; ob=function(n,q,w){w!==void 0&&EI(n,q,w?1:0)}; bP=function(n,q,w){w!==void 0&&(Ct(n,q*8+2),q=w.length,Ct(n,q),TM(n,q),n.N.set(w,n.pos),n.pos+=q)}; A7=function(n,q,w){w!==void 0&&(BIy(n,q,Math.ceil(Math.log2(w.length*4+2)/7)),TM(n,w.length*1.2),q=ft(w,n.N.subarray(n.pos)),n.pos+q>n.N.length&&(TM(n,q),q=ft(w,n.N.subarray(n.pos))),n.pos+=q,QA3(n))}; BIy=function(n,q,w){w=w===void 0?2:w;Ct(n,q*8+2);n.X.push(n.pos);n.X.push(w);n.pos+=w}; QA3=function(n){for(var q=n.X.pop(),w=n.X.pop(),X=n.pos-w-q;q--;){var P=q?128:0;n.view.setUint8(w++,X&127|P);X>>=7}}; Ye=function(n,q,w,X,P){w&&(BIy(n,q,P===void 0?3:P),X(n,w),QA3(n))}; g.Kt=function(n,q){var w=new u0O(4096);q(w,n);return new Uint8Array(w.N.buffer,w.N.byteOffset,w.pos)}; g.Sy=function(n){var q=new iP(new nt([Fk(decodeURIComponent(n))]));n=mw(q,2);q=t7(q,4);var w=ZHT[q];if(typeof w==="undefined")throw n=new g.b4("Failed to recognize field number",{name:"EntityKeyHelperError",Eyh:q}),g.pC(n),n;return{ma:q,entityType:w,entityId:n}}; g.uP=function(n,q){var w=w===void 0?0:w;var X=new u0O;bP(X,2,OI(n));n=J8y[q];if(typeof n==="undefined")throw w=new g.b4("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:q}),g.pC(w),w;EI(X,4,n);EI(X,5,1);q=new Uint8Array(X.N.buffer,X.N.byteOffset,X.pos);return encodeURIComponent(g.p1(q,w))}; B9=function(n,q,w,X){if(X===void 0)return X=Object.assign({},n[q]||{}),w=(delete X[w],X),X={},Object.assign({},n,(X[q]=w,X));var P={},R={};return Object.assign({},n,(R[q]=Object.assign({},n[q],(P[w]=X,P)),R))}; zNT=function(n,q,w,X,P){var R=n[q];if(R==null||!R[w])return n;X=g.ND(R[w],X,P==="REPEATED_FIELDS_MERGE_OPTION_APPEND");P={};R={};return Object.assign({},n,(R[q]=Object.assign({},n[q],(P[w]=X,P)),R))}; Wcx=function(n,q){n=n===void 0?{}:n;switch(q.type){case "ENTITY_LOADED":return q.payload.reduce(function(X,P){var R,c=(R=P.options)==null?void 0:R.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return X;if(!P.entityKey)return g.pC(Error("Missing entity key")),X;if(P.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!P.payload)return P=new g.b4("REPLACE entity mutation is missing a payload",{entityKey:P.entityKey}),g.pC(P),X;var k=g.cJ(P.payload); return B9(X,k,P.entityKey,P.payload[k])}if(P.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{P=P.entityKey;try{var r=g.Sy(P).entityType;k=B9(X,r,P);break a}catch(O){if(O instanceof Error){P=new g.b4("Failed to deserialize entity key",{entityKey:P,originalMessage:O.message});g.pC(P);k=X;break a}throw O;}k=void 0}return k}if(P.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!P.payload)return P=new g.b4("UPDATE entity mutation is missing a payload",{entityKey:P.entityKey}),g.pC(P),X;k=g.cJ(P.payload);var e,f;return zNT(X, k,P.entityKey,P.payload[k],(e=P.fieldMask)==null?void 0:(f=e.mergeOptions)==null?void 0:f.repeatedFieldsMergeOption)}return X},n); case "REPLACE_ENTITY":var w=q.payload;return B9(n,w.entityType,w.key,w.SE);case "REPLACE_ENTITIES":return Object.keys(q.payload).reduce(function(X,P){var R=q.payload[P];return Object.keys(R).reduce(function(c,k){return B9(c,P,k,R[k])},X)},n); case "UPDATE_ENTITY":return w=q.payload,zNT(n,w.entityType,w.key,w.SE,w.UdH);default:return n}}; QM=function(n,q,w){return n[q]?n[q][w]||null:null}; ZZ=function(n){return window.Int32Array?new Int32Array(n):Array(n)}; qa=function(n){g.A.call(this);this.counter=[0,0,0,0];this.X=new Uint8Array(16);this.N=16;if(!NIy){var q,w=new Uint8Array(256),X=new Uint8Array(256);var P=1;for(q=0;q<256;q++)w[P]=q,X[q]=P,P^=P<<1^(P>>7&&283);J7=new Uint8Array(256);zM=ZZ(256);W9=ZZ(256);NO=ZZ(256);nd=ZZ(256);for(var R=0;R<256;R++){P=R?X[255^w[R]]:0;P^=P<<1^P<<2^P<<3^P<<4;P=P&255^P>>>8^99;J7[R]=P;q=P<<1^(P>>7&&283);var c=q^P;zM[R]=q<<24|P<<16|P<<8|c;W9[R]=c<<24|zM[R]>>>8;NO[R]=P<<24|W9[R]>>>8;nd[R]=P<<24|NO[R]>>>8}NIy=!0}P=ZZ(44);for(w= 0;w<4;w++)P[w]=n[4*w]<<24|n[4*w+1]<<16|n[4*w+2]<<8|n[4*w+3];for(X=1;w<44;w++)n=P[w-1],w%4||(n=(J7[n>>16&255]^X)<<24|J7[n>>8&255]<<16|J7[n&255]<<8|J7[n>>>24],X=X<<1^(X>>7&&283)),P[w]=P[w-4]^n;this.key=P}; n26=function(n){for(var q=n.key,w=n.counter[0]^q[0],X=n.counter[1]^q[1],P=n.counter[2]^q[2],R=n.counter[3]^q[3],c=3;c>=0&&!(n.counter[c]=-~n.counter[c]);c--);for(var k,r,e=4;e<40;)c=zM[w>>>24]^W9[X>>16&255]^NO[P>>8&255]^nd[R&255]^q[e++],k=zM[X>>>24]^W9[P>>16&255]^NO[R>>8&255]^nd[w&255]^q[e++],r=zM[P>>>24]^W9[R>>16&255]^NO[w>>8&255]^nd[X&255]^q[e++],R=zM[R>>>24]^W9[w>>16&255]^NO[X>>8&255]^nd[P&255]^q[e++],w=c,X=k,P=r;n=n.X;c=q[40];n[0]=J7[w>>>24]^c>>>24;n[1]=J7[X>>16&255]^c>>16&255;n[2]=J7[P>>8&255]^ c>>8&255;n[3]=J7[R&255]^c&255;c=q[41];n[4]=J7[X>>>24]^c>>>24;n[5]=J7[P>>16&255]^c>>16&255;n[6]=J7[R>>8&255]^c>>8&255;n[7]=J7[w&255]^c&255;c=q[42];n[8]=J7[P>>>24]^c>>>24;n[9]=J7[R>>16&255]^c>>16&255;n[10]=J7[w>>8&255]^c>>8&255;n[11]=J7[X&255]^c&255;c=q[43];n[12]=J7[R>>>24]^c>>>24;n[13]=J7[w>>16&255]^c>>16&255;n[14]=J7[X>>8&255]^c>>8&255;n[15]=J7[P&255]^c&255}; P$=function(){if(!ws&&!g.AN){if(XE)return XE;var n;XE=(n=window.crypto)==null?void 0:n.subtle;var q,w,X;if(((q=XE)==null?0:q.importKey)&&((w=XE)==null?0:w.sign)&&((X=XE)==null?0:X.encrypt))return XE;XE=void 0}}; g.c$=function(n){var q=P$();q&&(this.N=new qs3(n,q));this.X=new g.RX(n)}; qs3=function(n,q){this.X=n;this.subtleCrypto=q}; wqs=function(n,q,w){var X,P;return g.b(function(R){switch(R.X){case 1:if(n.N){R.f5(2);break}return g.l(R,n.subtleCrypto.importKey("raw",n.X,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:n.N=R.N;case 2:return X={name:"AES-CTR",counter:w,length:128},g.l(R,n.subtleCrypto.encrypt(X,n.N,q),4);case 4:return P=R.N,R.return(new Uint8Array(P))}})}; g.RX=function(n){this.X=n}; IX=function(n){this.K=new Uint8Array(64);this.C=new Uint8Array(64);this.W=0;this.D=new Uint8Array(64);this.X=0;this.K.set(n);this.C.set(n);for(n=0;n<64;n++)this.K[n]^=92,this.C[n]^=54;this.reset()}; Xqu=function(n,q,w){for(var X=n.G,P=n.N[0],R=n.N[1],c=n.N[2],k=n.N[3],r=n.N[4],e=n.N[5],f=n.N[6],O=n.N[7],H,U,t,V=0;V<64;)V<16?(X[V]=t=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3],w+=4):(H=X[V-2],U=X[V-15],t=X[V-7]+X[V-16]+((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),X[V]=t),H=O+kZ[V]+t+((r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7))+(r&e^~r&f),U=((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+(P&R^P&c^R&c),O=H+U,k+=H,V++,V<16?(X[V]=t=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3],w+=4):(H= X[V-2],U=X[V-15],t=X[V-7]+X[V-16]+((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),X[V]=t),H=f+kZ[V]+t+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&r^~k&e),U=((O>>>2|O<<30)^(O>>>13|O<<19)^(O>>>22|O<<10))+(O&P^O&R^P&R),f=H+U,c+=H,V++,V<16?(X[V]=t=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3],w+=4):(H=X[V-2],U=X[V-15],t=X[V-7]+X[V-16]+((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),X[V]=t),H=e+kZ[V]+t+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&k^ ~c&r),U=((f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10))+(f&O^f&P^O&P),e=H+U,R+=H,V++,V<16?(X[V]=t=q[w]<<24|q[w+1]<<16|q[w+2]<<8|q[w+3],w+=4):(H=X[V-2],U=X[V-15],t=X[V-7]+X[V-16]+((H>>>17|H<<15)^(H>>>19|H<<13)^H>>>10)+((U>>>7|U<<25)^(U>>>18|U<<14)^U>>>3),X[V]=t),H=r+kZ[V]+t+((R>>>6|R<<26)^(R>>>11|R<<21)^(R>>>25|R<<7))+(R&c^~R&k),U=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&O^f&O),t=O,O=k,k=t,t=f,f=c,c=t,t=e,e=R,R=t,r=P+H,P=H+U,V++;n.N[0]=P+n.N[0]|0;n.N[1]=R+n.N[1]|0;n.N[2]=c+n.N[2]|0;n.N[3]= k+n.N[3]|0;n.N[4]=r+n.N[4]|0;n.N[5]=e+n.N[5]|0;n.N[6]=f+n.N[6]|0;n.N[7]=O+n.N[7]|0}; RSs=function(n){var q=new Uint8Array(32),w=64-n.X;n.X>55&&(w+=64);var X=new Uint8Array(w);X[0]=128;for(var P=n.W*8,R=1;R<9;R++){var c=P%256;X[w-R]=c;P=(P-c)/256}n.update(X);for(w=0;w<8;w++)q[w*4]=n.N[w]>>>24,q[w*4+1]=n.N[w]>>>16&255,q[w*4+2]=n.N[w]>>>8&255,q[w*4+3]=n.N[w]&255;P0O(n);return q}; P0O=function(n){n.N=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];n.G=[];n.G.length=64;n.W=0;n.X=0}; cPT=function(n){this.N=n}; IAY=function(n,q,w){n=new IX(n.N);n.update(q);n.update(w);q=RSs(n);n.update(n.K);n.update(q);q=RSs(n);n.reset();return q}; kvh=function(n){this.X=n}; rPY=function(n,q,w,X){var P,R,c;return g.b(function(k){switch(k.X){case 1:if(n.N){k.f5(2);break}return g.l(k,X.importKey("raw",n.X,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:n.N=k.N;case 2:return P=new Uint8Array(q.length+w.length),P.set(q),P.set(w,q.length),R={name:"HMAC",hash:"SHA-256"},g.l(k,X.sign(R,n.N,P),4);case 4:return c=k.N,k.return(new Uint8Array(c))}})}; jjs=function(n,q,w){n.C||(n.C=new cPT(n.X));return IAY(n.C,q,w)}; sjz=function(n,q,w){var X,P;return g.b(function(R){if(R.X==1){X=P$();if(!X)return R.return(jjs(n,q,w));g.Vy(R,3);return g.l(R,rPY(n,q,w,X),5)}if(R.X!=3)return R.return(R.N);P=g.$u(R);g.TQ(P);ws=!0;return R.return(jjs(n,q,w))})}; fAO=function(n){for(var q="",w=0;w=0||Hg(n,0,"gad_source",n.search(UV))>=0}; mim=function(){this.N=new Map}; aA6=function(n,q){var w=Tv().resolve(yPy);if(g2y(q)){var X=yN(q,"gclid");q={handleEvent:function(k){n&&!n.closed&&typeof n.postMessage==="function"&&k&&k.origin&&k.source===n&&k.data&&k.data.action==="gcl_setup"&&n.postMessage(Object.assign({},{action:"gcl_transfer"},X&&{gclid:X},{gadSource:2}),k.origin)}}; for(var P=g.a(w.N),R=P.next();!R.done;R=P.next()){var c=g.a(R.value);R=c.next().value;c=c.next().value;if(R.closed)try{window.removeEventListener("message",c),w.N.delete(R)}catch(k){g.pC(k)}}n&&w.N.size<15&&(w.N.set(n,q),window.addEventListener("message",q))}}; rs=function(n,q,w){if(!q)return n.length>=1?n[n.length-1]:null;for(var X=g.a(n),P=X.next();!P.done;P=X.next())if(P=P.value,P.width&&P.height&&(w&&P.width>=q||!w&&P.height>=q))return P;for(q=n.length-1;q>=0;q--)if(w&&n[q].width||!w&&n[q].height)return n[q];return n[0]}; jG=function(){this.state=1;this.SP=null;this.k5=void 0}; pqO=function(n,q,w,X,P,R){var c=c===void 0?"trayride":c;w?(n.eg(2),g.Wo(w,function(){if(window[c])V2s(n,X,c,P);else{n.eg(3);var k=aOm(w),r=document.getElementById(k);r&&(mNx(k),r.parentNode.removeChild(r));g.TQ(new g.b4("BL:ULB",""+w))}},R)):q?(R=g.O_("SCRIPT"),q instanceof t_?(R.textContent=dD(q),gD(R)):R.textContent=q,R.nonce=U4(document),document.head.appendChild(R),document.head.removeChild(R),window[c]?V2s(n,X,c,P):(n.eg(4),g.TQ(new g.b4("BL:ULBJ")))):g.TQ(new g.b4("BL:ULV"))}; V2s=function(n,q,w,X){n.eg(5);var P=!!n.k5&&TP3.includes(g.IB(n.k5)||"");try{var R=new I2({program:q,globalName:w,QB:{disable:!g.OU("att_web_record_metrics")||!g.OU("att_skip_metrics_for_cookieless_domains_ks")&&P,oX:"aGIf"}});R.Bk.then(function(){n.eg(6);X&&X(q)}); n.K0(R)}catch(c){n.eg(7),c instanceof Error&&g.TQ(c)}}; sr=function(){var n=g.w0("yt.abuse.playerAttLoader");return n&&["bgvma","bgvmb","bgvmc"].every(function(q){return q in n})?n:null}; eG=function(){jG.apply(this,arguments)}; fd=function(){}; FUy=function(n,q,w){for(var X=!1,P=g.a(n.Lb.entries()),R=P.next();!R.done;R=P.next())R=g.a(R.value).next().value,R.slotType==="SLOT_TYPE_PLAYER_BYTES"&&R.Gp==="core"&&(X=!0);if(X){a:if(!w){n=g.a(n.Lb.entries());for(w=n.next();!w.done;w=n.next())if(X=g.a(w.value),w=X.next().value,X=X.next().value,w.slotType==="SLOT_TYPE_IN_PLAYER"&&w.Gp==="core"){w=X.layoutId;break a}w=void 0}w?q.pT(w):R0("No triggering layout ID available when attempting to mute.")}}; Or=function(n,q){this.GH=n;this.Ee=q}; ia=function(){}; H$=function(){}; v2s=function(n){g.A.call(this);var q=this;this.Y4=n;this.N=new Map;Ur(this,"commandExecutorCommand",function(w,X,P){$is(q,w.commands,X,P)}); Ur(this,"clickTrackingParams",function(){})}; LUx=function(n,q){Ur(n,q.rH(),function(w,X,P){q.ZT(w,X,P)})}; Ur=function(n,q,w){n.zp();n.N.get(q)&&g.pC(Error("Extension name "+q+" already registered"));n.N.set(q,w)}; $is=function(n,q,w,X){q=q===void 0?[]:q;n.zp();var P=[],R=[];q=g.a(q);for(var c=q.next();!c.done;c=q.next())c=c.value,g.u(c,M2z)||g.u(c,xih)?P.push(c):R.push(c);P=g.a(P);for(q=P.next();!q.done;q=P.next())tr(n,q.value,w,X);R=g.a(R);for(P=R.next();!P.done;P=R.next())tr(n,P.value,w,X)}; tr=function(n,q,w,X){n.zp();q.loggingUrls&&Dis(n,"loggingUrls",q.loggingUrls,w,X);q=g.a(Object.entries(q));for(var P=q.next();!P.done;P=q.next()){var R=g.a(P.value);P=R.next().value;R=R.next().value;P==="openPopupAction"?n.Y4.get().T3("innertubeCommand",{openPopupAction:R}):P==="confirmDialogEndpoint"?n.Y4.get().T3("innertubeCommand",{confirmDialogEndpoint:R}):hSm.hasOwnProperty(P)||Dis(n,P,R,w,X)}}; Dis=function(n,q,w,X,P){if((n=n.N.get(q))&&typeof n==="function")try{n(w,X,P)}catch(R){g.pC(R)}else q=new g.b4("Unhandled field",q),g.TQ(q)}; ds=function(n,q,w){this.b7=n;this.N=q;this.hg=w;yp(Tv(),{X2:yPy,rJ:mim})}; gs=function(n){this.value=n}; m5=function(n){this.value=n}; yZ=function(n){this.value=n}; aX=function(n){this.value=n}; VZ=function(n){this.value=n}; pd=function(n){this.value=n}; To=function(n){this.value=n}; FE=function(){gs.apply(this,arguments)}; $Z=function(n){this.value=n}; v$=function(n){this.value=n}; Ld=function(n){this.value=n}; Ma=function(n){this.value=n}; xZ=function(n){this.value=n}; DG=function(n){this.value=n}; hr=function(n){this.value=n}; la=function(n){this.value=n}; Go=function(n){this.value=n}; Cd=function(n){this.value=n}; Er=function(){gs.apply(this,arguments)}; oX=function(n){this.value=n}; ba=function(n){this.value=n}; Ar=function(n){this.value=n}; YZ=function(n){this.value=n}; Kd=function(n){this.value=n}; SG=function(n){this.value=n}; ua=function(n){this.value=n}; B$=function(n){this.value=n}; QZ=function(n){this.value=n}; ZG=function(n){this.value=n}; Jr=function(n){this.value=n}; zo=function(n){this.value=n}; W$=function(n){this.value=n}; Na=function(n){this.value=n}; nN=function(n){this.value=n}; qr=function(n){this.value=n}; wj=function(n){this.value=n}; XA=function(n){this.value=n}; P_=function(n){this.value=n}; RZ=function(n){this.value=n}; c_=function(n){this.value=n}; IZ=function(n){this.value=n}; kj=function(n){this.value=n}; rj=function(n){this.value=n}; jH=function(n){this.value=n}; sd=function(n){this.value=n}; eH=function(n){this.value=n}; fN=function(n){this.value=n}; Od=function(n){this.value=n}; i1=function(n){this.value=n}; H_=function(n){this.value=n}; Ud=function(n){this.value=n}; tv=function(n){this.value=n}; dj=function(n){this.value=n}; gj=function(n){this.value=n}; mH=function(n){this.value=n}; yb=function(n){this.value=n}; aZ=function(n){this.value=n}; Vb=function(){gs.apply(this,arguments)}; pN=function(n){this.value=n}; TZ=function(){gs.apply(this,arguments)}; FA=function(){gs.apply(this,arguments)}; v_=function(){gs.apply(this,arguments)}; LN=function(){gs.apply(this,arguments)}; Mr=function(){gs.apply(this,arguments)}; xj=function(n){this.value=n}; DU=function(n){this.value=n}; hv=function(n){this.value=n}; l1=function(n){this.value=n}; GZ=function(n){this.value=n}; Ed=function(n,q,w){if(w&&!w.includes(n.layoutType))return!1;q=g.a(q);for(w=q.next();!w.done;w=q.next())if(!CN(n.clientMetadata,w.value))return!1;return!0}; oZ=function(){return""}; lAO=function(n,q){switch(n){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 q(n),8}}; b1=function(n,q,w,X){X=X===void 0?!1:X;iz.call(this,n);this.wd=w;this.Iu=X;this.args=[];q&&this.args.push(q)}; z=function(n,q,w,X){X=X===void 0?!1:X;iz.call(this,n);this.wd=w;this.Iu=X;this.args=[];q&&this.args.push(q)}; Av=function(n){var q=new Map;n.forEach(function(w){q.set(w.N(),w)}); this.N=q}; CN=function(n,q){return n.N.has(q)}; Yj=function(n,q){n=n.N.get(q);if(n!==void 0)return n.get()}; KN=function(n){return Array.from(n.N.keys())}; SH=function(n,q,w){if(w&&w!==n.slotType)return!1;q=g.a(q);for(w=q.next();!w.done;w=q.next())if(!CN(n.clientMetadata,w.value))return!1;return!0}; C0s=function(n){var q;return((q=Gv3.get(n))==null?void 0:q.WM)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; B_=function(n,q){var w={type:q.slotType,controlFlowManagerLayer:E23.get(q.Gp)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q.slotEntryTrigger&&(w.entryTriggerType=q.slotEntryTrigger.triggerType);q.slotPhysicalPosition!==1&&(w.slotPhysicalPosition=q.slotPhysicalPosition);if(n){w.debugData={slotId:q.slotId};if(n=q.slotEntryTrigger)w.debugData.slotEntryTriggerData=u1(n);n=q.slotFulfillmentTriggers;w.debugData.fulfillmentTriggerData=[];n=g.a(n);for(var X=n.next();!X.done;X=n.next())w.debugData.fulfillmentTriggerData.push(u1(X.value)); q=q.slotExpirationTriggers;w.debugData.expirationTriggerData=[];q=g.a(q);for(n=q.next();!n.done;n=q.next())w.debugData.expirationTriggerData.push(u1(n.value))}return w}; o2y=function(n,q){var w={type:q.layoutType,controlFlowManagerLayer:E23.get(q.Gp)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};n&&(w.debugData={layoutId:q.layoutId});return w}; u1=function(n,q){var w={type:n.triggerType};q!=null&&(w.category=q);n.triggeringSlotId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedSlotId=n.triggeringSlotId);n.triggeringLayoutId!=null&&(w.triggerSourceData||(w.triggerSourceData={}),w.triggerSourceData.associatedLayoutId=n.triggeringLayoutId);return w}; bR6=function(n,q,w,X){q={opportunityType:q};n&&(X||w)&&(X=g.Hh(X||[],function(P){return B_(n,P)}),q.debugData=Object.assign({},w&&w.length>0?{associatedSlotId:w}:{},X.length>0?{slots:X}:{})); return q}; ZU=function(n,q){return function(w){return APu(Qb(n),q.slotId,q.slotType,q.slotPhysicalPosition,q.Gp,q.slotEntryTrigger,q.slotFulfillmentTriggers,q.slotExpirationTriggers,w.layoutId,w.layoutType,w.Gp)}}; APu=function(n,q,w,X,P,R,c,k,r,e,f){return{adClientDataEntry:{slotData:B_(n,{slotId:q,slotType:w,slotPhysicalPosition:X,Gp:P,slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:k,clientMetadata:new Av([])}),layoutData:o2y(n,{layoutId:r,layoutType:e,Gp:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],pM:new Map,clientMetadata:new Av([]),Dj:{}})}}}; zZ=function(n){this.MP=n;n=Math.random();var q=this.MP.get();q=g.Jv(q.T.B().experiments,"html5_debug_data_log_probability");q=Number.isFinite(q)&&q>=0&&q<=1?q:0;this.N=n1){g.TQ(new g.b4("Exit already started",{current:n.currentState}));var w=!1}else w=!0;if(!w)return!1;n.currentState=2;n.N=q;return!0}; nT=function(n){if(n.currentState!==2)return!1;n.currentState=3;return!0}; tVh=function(n,q){var w=new Map;n=g.a(n);for(var X=n.next();!X.done;X=n.next()){X=X.value;if(X.layoutType==="LAYOUT_TYPE_MEDIA")var P="v";else X.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(P=Yj(X.clientMetadata,"metadata_type_linked_in_player_layout_type"),P=P==="LAYOUT_TYPE_ENDCAP"||P==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":P==="LAYOUT_TYPE_SURVEY"?"s":P==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):P="u";w.set(X.layoutId,P);if(P==="u"){var R={};P=q;X=(R.c=X.layoutId,R);P.T.p5("uct",X)}}n= q.hh();q8={contentCpn:n,Kc:w};X={};w=(X.ct=w.size,X.c=n,X);q.T.p5("acc",w)}; d3y=function(){q8={contentCpn:"",Kc:new Map}}; wq=function(n){var q;return(q=q8.Kc.get(n))!=null?q:"u"}; Xw=function(n,q,w){n.T.p5(q,w);gY0(n)}; m36=function(n){var q=n.layoutId,w=n.Sf;if(n.Br){var X={};Xw(n.b7,"slso",(X.ec=q,X.is=w,X.ctp=wq(q),X))}}; PS=function(n){var q=n.layoutId,w=n.Sf;if(n.Br){var X={};Xw(n.b7,"slse",(X.ec=q,X.is=w,X.ctp=wq(q),X))}}; y5O=function(n){var q=n.layoutId,w=n.Sf,X=n.b7;n.Br&&(n={},Xw(X,"sleo",(n.xc=q,n.is=w,n.ctp=wq(q),n)),gY0(X))}; aFT=function(n){var q=n.cpn,w=n.b7;n=n.Sf;var X=w.hh(),P={};Xw(w,"ce",(P.ec=q,P.ia=q!==X,P.r=q8.Kc.has(q),P.is=n,P.ctp=wq(q),P))}; gY0=function(n){if(n.hh()!==q8.contentCpn){var q={};q=(q.c=q8.contentCpn,q);n.T.p5("ccm",q)}}; VVY=function(n){var q=n.cpn,w=n.b7;n=n.Sf;var X=w.hh(),P={};Xw(w,"cx",(P.xc=q,P.ia=q!==X,P.r=q8.Kc.has(q),P.is=n,P.ctp=wq(q),P))}; pls=function(n){this.params=n;this.N=new Set}; TVY=function(n,q,w){if(!n.N.has(q)){n.N.add(q);var X={};n.params.jG.vQ(q,Object.assign({},w,(X.p_ac=n.params.adCpn,X.p_isv=n.params.aV&&n.params.ev,X)))}}; cS=function(n,q,w){if(Rn(n.params.jG.MP.get(),!0)){var X=w.flush,P={};TVY(n,q,(P.cts=w.currentTimeSec,P.f=X,P))}}; FgT=function(n,q){this.b7=n;this.MP=q}; In=function(n){var q=[];if(n){n=g.a(Object.entries(n));for(var w=n.next();!w.done;w=n.next()){var X=g.a(w.value);w=X.next().value;X=X.next().value;X!==void 0&&(X=typeof X==="boolean"?""+ +X:(""+X).replace(/[:,=]/g,"_"),q.push(w+"."+X))}}return q.join(";")}; g.kw=function(n,q,w){q=q===void 0?{}:q;this.errorCode=n;this.details=q;this.severity=w===void 0?0:w}; rq=function(n){return n===1||n===2}; jS=function(n,q){q=q===void 0?0:q;if(n instanceof g.kw)return n;n=n&&n instanceof Error?n:Error(""+n);rq(q)?g.pC(n):g.TQ(n);return new g.kw(q===1?"player.fatalexception":"player.exception",{name:""+n.name,message:""+n.message},q)}; $3s=function(n,q){function w(){var X=g.bs.apply(0,arguments);n.removeEventListener("playing",w);q.apply(null,g.D(X))} n.addEventListener("playing",w)}; sm=function(){var n=g.w0("yt.player.utils.videoElement_");n||(n=g.O_("VIDEO"),g.nj("yt.player.utils.videoElement_",n));return n}; eS=function(n){var q=sm();return!!(q&&q.canPlayType&&q.canPlayType(n))}; Om=function(n){if(/opus/.test(n)&&g.fT&&!to("38")&&!g.od())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(n);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(n);if(/webm/.test(n)&&!mLu())return!1;n==='audio/mp4; codecs="mp4a.40.2"'&&(n='video/mp4; codecs="avc1.4d401f"');return!!eS(n)}; vYy=function(n){try{var q=Om('video/mp4; codecs="avc1.42001E"')||Om('video/webm; codecs="vp9"');return(Om('audio/mp4; codecs="mp4a.40.2"')||Om('audio/webm; codecs="opus"'))&&(q||!n)||eS('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(w){return"html5.missingapi"}}; iK=function(){var n=sm();return!(!n.webkitSupportsPresentationMode||typeof n.webkitSetPresentationMode!=="function")}; HS=function(){var n=sm();try{var q=n.muted;n.muted=!q;return n.muted!==q}catch(w){}return!1}; Lg6=function(){var n;return((n=navigator.connection)==null?void 0:n.type)||""}; g.Um=function(){ys.apply(this,arguments)}; tg=function(n,q,w,X,P,R,c,k){this.sampleRate=n===void 0?0:n;this.numChannels=q===void 0?0:q;this.spatialAudioType=w===void 0?"SPATIAL_AUDIO_TYPE_NONE":w;this.N=X===void 0?!1:X;this.C=P;this.W=R;this.audioQuality=c===void 0?"AUDIO_QUALITY_UNKNOWN":c;this.X=k===void 0?!1:k}; mx=function(n,q,w,X,P,R,c,k,r){this.width=n;this.height=q;this.quality=R||dq(n,q);this.qualityOrdinal=g.gq[this.quality];this.fps=w||0;this.stereoLayout=!P||X!=null&&X!=="UNKNOWN"&&X!=="RECTANGULAR"?0:P;this.projectionType=X?X==="EQUIRECTANGULAR"&&P===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":X:"UNKNOWN";(n=c)||(n=g.gq[this.quality],n===0?n="Autom\u00e1tico":(q=this.fps,w=this.projectionType,n=n.toString()+(w==="EQUIRECTANGULAR"||w==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||w==="MESH"?"s":"p")+(q>55?"60": q>49?"50":q>39?"48":"")));this.qualityLabel=n;this.N=k||"";this.primaries=r||""}; dq=function(n,q){var w=Math.max(n,q);n=Math.min(n,q);q=yR[0];for(var X=0;X=Math.floor(R*16/9)*1.3||n>=R*1.3)return q;q=P}return"tiny"}; pT=function(n,q,w){w=w===void 0?{}:w;this.id=n;this.mimeType=q;w.ED>0||(w.ED=16E3);Object.assign(this,w);n=g.a(this.id.split(";"));this.itag=n.next().value;this.N=n.next().value;this.containerType=an(q);this.L5=VR[this.itag]||""}; TU=function(n){return n.L5==="9"||n.L5==="("||n.L5==="9h"||n.L5==="(h"}; MVY=function(n){return n.L5==="H"||n.L5==="h"}; Fw=function(n){return n.L5==="9h"||n.L5==="(h"}; x3T=function(n){return!!n.nV&&!!n.nV.fairplay&&(n.L5==="("||n.L5==="(h"||n.L5==="A"||n.L5==="MEAC3")||$w&&!!n.nV&&n.L5==="1e"}; vS=function(n){return n.L5==="1"||n.L5==="1h"||$w&&n.L5==="1e"}; LT=function(n){return n.L5==="mac3"||n.L5==="meac3"||n.L5==="m"||n.L5==="i"}; M8=function(n){return n.L5==="MAC3"||n.L5==="MEAC3"||n.L5==="M"||n.L5==="I"}; g.xw=function(n){return n.containerType===1}; D3m=function(n){return n.L5==="("||n.L5==="(h"||n.L5==="H"||$w&&n.L5==="1e"}; Dk=function(n){return n.mimeType==="application/x-mpegURL"}; g.hg=function(n,q){return{itag:+n.itag,lmt:q?0:n.lastModified,xtags:n.N||""}}; h2z=function(n){var q=navigator.mediaCapabilities;if(q==null||!q.decodingInfo||n.L5==="f")return Promise.resolve();var w={type:n.audio&&n.video?"file":"media-source"};n.video&&(w.video={contentType:n.mimeType,width:n.video.width||640,height:n.video.height||360,bitrate:n.ED*8||1E6,framerate:n.video.fps||30});n.audio&&(w.audio={contentType:n.mimeType,channels:""+(n.audio.numChannels||2),bitrate:n.ED*8||128E3,samplerate:n.audio.sampleRate||44100});return q.decodingInfo(w).then(function(X){n.X=X})}; lK=function(n){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(n)}; GU=function(n){return/(vp9|vp09|vp8|avc1|av01)/.test(n)}; CT=function(n){return n.includes("vtt")||n.includes("text/mp4")}; an=function(n){return n.indexOf("/mp4")>=0?1:n.indexOf("/webm")>=0?2:n.indexOf("/x-flv")>=0?3:n.indexOf("/vtt")>=0?4:0}; Em=function(n,q,w,X,P,R){var c=new tg;q in g.gq||(q="small");q==="light"&&(q="tiny");X&&P?(P=Number(P),X=Number(X)):(P=g.gq[q],X=Math.round(P*16/9));R=new mx(X,P,0,null,void 0,q,R);n=unescape(n.replace(/"/g,'"'));return new pT(w,n,{audio:c,video:R})}; on=function(n){var q="id="+n.id;n.video&&(q+=", res="+n.video.qualityLabel);var w,X;return q+", byterate=("+((w=n.B9)==null?void 0:w.toFixed(0))+", "+((X=n.ED)==null?void 0:X.toFixed(0))+")"}; bK=function(n,q){return{start:function(w){return n[w]}, end:function(w){return q[w]}, length:n.length}}; lFy=function(n,q,w){for(var X=[],P=[],R=0;R=q)return w}catch(X){}return-1}; KT=function(n,q){return Yw(n,q)>=0}; G3s=function(n,q){if(!n)return NaN;q=Yw(n,q);return q>=0?n.start(q):NaN}; SS=function(n,q){if(!n)return NaN;q=Yw(n,q);return q>=0?n.end(q):NaN}; uK=function(n){return n&&n.length?n.end(n.length-1):NaN}; BS=function(n){return uK(n)>0}; QR=function(n,q){n=SS(n,q);return n>=0?n-q:0}; Zk=function(n,q,w){for(var X=[],P=[],R=0;Rw||(X.push(Math.max(q,n.start(R))-q),P.push(Math.min(w,n.end(R))-q));return bK(X,P)}; Jg=function(n,q,w,X){g.np.call(this);var P=this;this.LG=n;this.start=q;this.end=w;this.isActive=X;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.lT={error:function(){!P.zp()&&P.isActive&&P.publish("error",P)}, updateend:function(){!P.zp()&&P.isActive&&P.publish("updateend",P)}}; this.LG.yd(this.lT);this.j9=this.isActive}; WS=function(n,q,w,X,P,R){g.np.call(this);var c=this;this.OD=n;this.nx=q;this.id=w;this.containerType=X;this.L5=P;this.ev=R;this.EW=this.EZ=this.BX=null;this.Aa=!1;this.appendWindowStart=this.timestampOffset=0;this.Xr=bK([],[]);this.Fx=!1;this.Nv=[];this.wB=zU?[]:void 0;this.Sg=function(r){return c.publish(r.type,c)}; var k;if((k=this.OD)==null?0:k.addEventListener)this.OD.addEventListener("updateend",this.Sg),this.OD.addEventListener("error",this.Sg)}; N8=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; nK=function(n,q){this.wc=n;this.N=q===void 0?!1:q;this.X=!1}; qP=function(n,q,w){w=w===void 0?!1:w;g.A.call(this);this.mediaElement=n;this.K5=q;this.isView=w;this.D=0;this.W=!1;this.K=!0;this.L=0;this.callback=null;this.V=!1;this.K5||(this.nx=this.mediaElement.WQ());this.events=new g.Um(this);g.K(this,this.events);this.C=new nK(this.K5?window.URL.createObjectURL(this.K5):this.nx.webkitMediaSourceURL,!0);n=this.K5||this.nx;al(this.events,n,["sourceopen","webkitsourceopen"],this.o4i);al(this.events,n,["sourceclose","webkitsourceclose"],this.ICf);this.G={updateend:this.sz}}; Cms=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; EYm=function(n,q){wd(n)?g.Uz(function(){q(n)}):n.callback=q}; oYh=function(n,q,w){if(Xr){var X;Pc(n.mediaElement,{l:"mswssb",sr:(X=n.mediaElement.Eq)==null?void 0:X.y5()},!1);q.yd(n.G,n);w.yd(n.G,n)}n.N=q;n.X=w;g.K(n,q);g.K(n,w)}; RO=function(n){return!!n.N||!!n.X}; wd=function(n){try{return cc(n)==="open"}catch(q){return!1}}; cc=function(n){if(n.K5)return n.K5.readyState;switch(n.nx.webkitSourceState){case n.nx.SOURCE_OPEN:return"open";case n.nx.SOURCE_ENDED:return"ended";default:return"closed"}}; IO=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; bph=function(n){wd(n)&&(n.K5?n.K5.endOfStream():n.nx.webkitSourceEndOfStream(n.nx.EOS_NO_ERROR))}; A5s=function(n,q,w,X){if(!n.N||!n.X)return null;var P=n.N.isView()?n.N.LG:n.N,R=n.X.isView()?n.X.LG:n.X,c=new qP(n.mediaElement,n.K5,!0);c.C=n.C;oYh(c,new Jg(P,q,w,X),new Jg(R,q,w,X));wd(n)||n.N.C1(n.N.Zj());return c}; YD0=function(n){var q;(q=n.N)==null||q.PK();var w;(w=n.X)==null||w.PK();n.K=!1}; k8=function(){var n=this;this.Rk=this.AO=gus;this.promise=new g.aR(function(q,w){n.AO=q;n.Rk=w})}; rd=function(){g.A.call(this);this.rj=!1;this.wc=null;this.G=this.D=!1;this.W=new g.IR;this.Eq=null;g.K(this,this.W)}; jk=function(n){n=n.sP();return n.length<1?NaN:n.end(n.length-1)}; Kgs=function(n){!n.X&&Cms()&&(n.C?n.C.then(function(){return Kgs(n)}):n.Nr()||(n.X=n.TY()))}; SDz=function(n){n.X&&(n.X.dispose(),n.X=void 0)}; Pc=function(n,q,w){var X;((X=n.Eq)==null?0:X.uL())&&n.Eq.p5("rms",q,w===void 0?!1:w)}; u4T=function(n,q,w){n.isPaused()||n.getCurrentTime()>q||w>10||(n.play(),g.rN(function(){u4T(n,n.getCurrentTime(),w+1)},500))}; BV3=function(n,q){n.wc&&n.wc.equals(q)||(n.wc&&n.wc.dispose(),n.wc=q)}; sG=function(n){return QR(n.Qb(),n.getCurrentTime())}; Q6z=function(n,q){if(n.a6()===0||n.hasError())return!1;var w=n.getCurrentTime()>0;return q>=0&&(n=n.sP(),n.length||!w)?KT(n,q):w}; ek=function(n){n.Nr()&&(n.Eq&&n.Eq.Ul("rs_s"),bg&&n.getCurrentTime()>0&&n.seekTo(0),n.du(),n.load(),BV3(n,null));delete n.C}; fK=function(n){switch(n.Kx()){case 2:return"progressive.net.retryexhausted";case 3:return n=n.N9(),(n==null?0:n.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||ZpO&&(n==null?0:n.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.OG=function(n,q,w){this.er=q===void 0?null:q;this.seekSource=w===void 0?null:w;this.state=n||64}; ir=function(n,q,w){w=w===void 0?!1:w;return J5T(n,q.getCurrentTime(),(0,g.m$)(),sG(q),w)}; Hc=function(n,q,w,X){if(!(q===n.state&&w===n.er&&X===n.seekSource||q!==void 0&&(q&128&&!w||q&2&&q&16))){var P;if(P=q)P=q||n.state,P=!!(P&16||P&32);n=new g.OG(q,w,P?X?X:n.seekSource:null)}return n}; UG=function(n,q,w){return Hc(n,n.state|q,null,w===void 0?null:w)}; tY=function(n,q){return Hc(n,n.state&~q,null,null)}; dd=function(n,q,w,X){return Hc(n,(n.state|q)&~w,null,X===void 0?null:X)}; g.Z=function(n,q){return!!(n.state&q)}; g.gd=function(n,q){return q.state===n.state&&q.er===n.er}; mE=function(n){return n.isPlaying()&&!g.Z(n,16)&&!g.Z(n,32)}; yE=function(n){return g.Z(n,128)?-1:g.Z(n,2)?0:g.Z(n,2048)?3:g.Z(n,64)?-1:g.Z(n,1)&&!g.Z(n,32)?3:g.Z(n,8)?1:g.Z(n,4)?2:-1}; VE=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t,V,T){g.A.call(this);var x=this;this.Wt=n;this.slot=q;this.layout=w;this.hg=X;this.CM=P;this.rl=R;this.cW=c;this.ai=k;this.kE=r;this.Ig=e;this.position=O;this.D=H;this.MP=U;this.RE=t;this.QJ=V;this.context=T;this.Y8=!0;this.K=!1;this.BQ="not_rendering";this.X=!1;this.C=new WP;n=Yj(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.VT=new rB(w.pM,this.hg,n,w.layoutId);var M;n=((M=aO(this))==null?void 0:M.progressCommands)||[];this.W=new ZC6(r, n,w.layoutId,function(){return x.Qj()}); this.N=new pls({adCpn:this.layout.layoutId,jG:T.jG,aV:this.RE,ev:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; pK=function(n){return{layoutId:n.gV(),Sf:n.RE,b7:n.rl.get(),Br:n.fL()}}; Tj=function(n,q){return q.layoutId!==n.layout.layoutId?(n.Wt.Sv(n.slot,q,new b1("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+n.layout.layoutId+("and LayoutType: "+n.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Fr=function(n){n.BQ="rendering_start_requested";n.Ig(-1)}; aO=function(n){return Yj(n.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; z2h=function(n){R0("Received layout exit signal when not in layout exit flow.",n.slot,n.layout)}; Wgu=function(n){var q;return((q=$8(n.rl.get(),2))==null?void 0:q.clientPlaybackNonce)||""}; vc=function(n,q){switch(q){case "normal":n.Qa("complete");break;case "skipped":n.Qa("skip");break;case "abandoned":iv(n.VT,"impression")&&n.Qa("abandon")}}; LK=function(n,q){n.K||(q=new g.cn(q.state,new g.OG),n.K=!0);return q}; MP=function(n,q){Q0(q)?n.Ig(1):g.k0(q,4)&&!g.k0(q,2)&&n.EE();I0(q,4)<0&&!(I0(q,2)<0)&&n.qx()}; NVm=function(n){n.position===0&&(n.ai.get(),n=Yj(n.layout.clientMetadata,"metadata_type_ad_placement_config").kind,n={adBreakType:x8(n)},y6("ad_bl"),g.a1(n))}; DV=function(n,q){fI(n.VT,q,!n.X)}; qps=function(n){var q;return(((q=aO(n))==null?void 0:q.progressCommands)||[]).findIndex(function(w){return!!g.u(w==null?void 0:w.command,n0s)})!==-1}; hY=function(n,q){var w=Yj(n.clientMetadata,"metadata_type_eligible_for_ssap");return w===void 0?(R0("Expected SSAP eligibility in PlayerBytes factory",n),!1):q.fL(w)}; lr=function(n,q){if(!MB(q.get(),"html5_ssap_pass_transition_reason"))return 3;switch(n){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return R0("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return R0("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:n}),3;default:e9(n,"unknown layoutExitReason")}}; wnu=function(n){R0("getExitReason: unexpected reason",void 0,void 0,{reason:n})}; Gj=function(n,q){if(MB(q.get(),"html5_ssap_pass_transition_reason"))switch(n){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return wnu(n),"abandoned";case 3:case 1:return wnu(n),"error";default:e9(n,"unexpected transition reason")}else switch(n){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return R0("getExitReason: unexpected reason",void 0,void 0,{reason:n}),"error";default:e9(n,"unexpected transition reason")}}; g.CK=function(n,q,w){pk(n,w)||FK(n,q,w);pk(n,"video_to_ad")||FK(n,q,"video_to_ad");pk(n,"ad_to_video")||FK(n,q,"ad_to_video");pk(n,"ad_to_ad")||FK(n,q,"ad_to_ad")}; EG=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t,V,T,x){VE.call(this,n,q,w,X,P,R,c,k,e,f,O,H,U,t,V,T,x);var M=this;this.Y4=r;this.Xi=O;this.gj=!0;this.pE=this.NT=0;this.vB=Do(function(){m36(pK(M));M.Wt.oP(M.slot,M.layout)}); this.Qe=Do(function(){y5O(pK(M));M.BQ!=="rendering_stop_requested"&&M.Xi(M);M.layoutExitReason?M.Wt.MU(M.slot,M.layout,M.layoutExitReason):z2h(M)}); this.timer=new g.LE(200);this.timer.listen("tick",function(){M.hU()}); g.K(this,this.timer)}; br=function(n){n.pE=Date.now();oO(n,n.NT);n.timer.start()}; Xns=function(n){n.NT=n.Qj();n.hO(n.NT/1E3,!0);oO(n,n.NT)}; oO=function(n,q){q={current:q/1E3,duration:n.Qj()/1E3};n.Y4.get().T3("onAdPlaybackProgress",q)}; AY=function(n){EG.call(this,n.Wt,n.slot,n.H_,n.hg,n.CM,n.rl,n.cW,n.ai,n.Y4,n.kE,n.Ig,n.Xi,n.bU,n.zb,n.MP,n.RE,n.QJ,n.context)}; Y8=function(n){EG.call(this,n.Wt,n.slot,n.H_,n.hg,n.CM,n.rl,n.cW,n.ai,n.Y4,n.kE,n.Ig,n.Xi,n.bU,n.zb,n.MP,n.RE,n.QJ,n.context)}; KK=function(){Y8.apply(this,arguments)}; P$s=function(n){return hY(n.slot,n.MP.get())?new KK(n):new AY(n)}; Bc=function(n){VE.call(this,n.callback,n.slot,n.H_,n.hg,n.CM,n.rl,n.cW,n.ai,n.kE,n.Ig,n.Xi,n.bU,n.zb,n.MP,n.RE,n.QJ,n.context);var q=this;this.adCpn="";this.xR=this.Po=0;this.vB=Do(function(){m36(pK(q));q.Wt.oP(q.slot,q.layout)}); this.Qe=Do(function(){y5O(pK(q));q.BQ!=="rendering_stop_requested"&&q.Xi(q);q.layoutExitReason?q.Wt.MU(q.slot,q.layout,q.layoutExitReason):z2h(q)}); this.g$=n.g$;this.AU=n.AU;this.pG=n.pG;this.Y4=n.Y4;this.h$=n.h$;this.Xi=n.Xi;if(!this.fL()){MB(this.MP.get(),"html5_disable_media_load_timeout")||(this.XH=new g.YF(function(){q.zi("load_timeout",new b1("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); n=Sk(this.MP.get());var w=ur(this.MP.get());n&&w&&(this.G6=new g.YF(function(){var X=Yj(q.layout.clientMetadata,"metadata_type_preload_player_vars");X&&q.AU.get().T.preloadVideoByPlayerVars(X,2,300)}))}}; c23=function(n,q){var w=Yj(q.clientMetadata,"metadata_type_ad_video_id"),X=Yj(q.clientMetadata,"metadata_type_legacy_info_card_vast_extension");w&&X&&n.h$.get().T.B().n5.add(w,{qp:X});(q=Yj(q.clientMetadata,"metadata_type_sodar_extension_data"))&&Ixu(n.g$.get(),q);Rfs(n.cW.get(),!1)}; Isx=function(n){Rfs(n.cW.get(),!0);var q;((q=n.shrunkenPlayerBytesConfig)==null?0:q.shouldRequestShrunkenPlayerBytes)&&n.cW.get().Yy(!1)}; kps=function(n){return new QE(n)}; ZV=function(){Bc.apply(this,arguments)}; QE=function(){ZV.apply(this,arguments)}; r2s=function(n){return P$s(Object.assign({},n,{Wt:n.callback,Ig:function(){}}))}; j0s=function(n){return new Bc(Object.assign({},n,{Ig:function(q){n.Y4.get().T3("onAdIntroStateChange",q)}}))}; s0x=function(n){function q(w){n.Y4.get().MX(w)} return hY(n.slot,n.MP.get())?kps(Object.assign({},n,{Ig:q})):new Bc(Object.assign({},n,{Ig:q}))}; JY=function(n){for(var q=n.H_,w=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],X=g.a(jj()),P=X.next();!P.done;P=X.next())w.push(P.value);if(xt(q,{Ej:w,sj:["LAYOUT_TYPE_MEDIA_BREAK"]}))return r2s(n);q=n.H_;w=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];X=g.a(jj());for(P=X.next();!P.done;P=X.next())w.push(P.value);if(xt(q,{Ej:w,sj:["LAYOUT_TYPE_MEDIA"]}))return CN(n.H_.clientMetadata,"metadata_type_ad_intro")?j0s(n):s0x(n)}; fs6=function(n){var q=Yj(n.clientMetadata,"metadata_type_ad_placement_config").kind,w=Yj(n.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:n.layoutId,adType:efO(w),adBreakType:x8(q)}}; x8=function(n){switch(n){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"}}; efO=function(n){switch(n){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; OXu=function(n){try{return new zj(n.ZA,n.slot,n.layout,n.Jz,n.CL,n.rl,n.x4,n.AU,n.m_,n.cW,n.E8p,n)}catch(q){}}; zj=function(n,q,w,X,P,R,c,k,r,e,f,O){g.A.call(this);this.ZA=n;this.slot=q;this.layout=w;this.Jz=X;this.CL=P;this.rl=R;this.x4=c;this.AU=k;this.m_=r;this.cW=e;this.params=O;this.Y8=!0;n=JY(f);if(!n)throw Error("Invalid params for sublayout");this.gM=n}; iXz=function(){this.N=1;this.X=new WP}; Wc=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U){g.A.call(this);this.callback=n;this.rl=q;this.x4=w;this.AU=X;this.cW=P;this.fD=R;this.ai=c;this.Ht=k;this.slot=r;this.layout=e;this.Jz=f;this.uE=O;this.m_=H;this.MP=U;this.Y8=!0;this.jm=!1;this.jr=[];this.t1=-1;this.G5=!1;this.Xu=new iXz}; HXu=function(n){var q;return(q=n.layout.mY)!=null?q:Yj(n.layout.clientMetadata,"metadata_type_sub_layouts")}; NP=function(n){return{b7:n.rl.get(),Sf:!1,Br:n.fL()}}; UFY=function(n,q,w){if(n.kL()===n.jr.length-1){var X,P;R0("Unexpected skip requested during the last sublayout",(X=n.Iz())==null?void 0:X.G9(),(P=n.Iz())==null?void 0:P.Z0(),{requestingSlot:q,requestingLayout:w})}}; t6s=function(n,q,w){return w.layoutId!==nl(n,q,w)?(R0("onSkipRequested for a PlayerBytes layout that is not currently active",n.G9(),n.Z0()),!1):!0}; dFy=function(n){n.kL()===n.jr.length-1&&R0("Unexpected skip with target requested during the last sublayout")}; g0Y=function(n,q,w){return w.renderingContent===void 0&&w.layoutId!==nl(n,q,w)?(R0("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",n.G9(),n.Z0(),{requestingSlot:q,requestingLayout:w}),!1):!0}; mFx=function(n,q,w,X){var P=Yj(q.Z0().clientMetadata,"metadata_type_ad_pod_skip_target");if(P&&P>0&&P0)){R0("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",n.slot,n.layout,{indexToPlay:q,layoutId:n.layout.layoutId});break a}n.t1=q;q=n.Iz();if(n.kL()>0&&!n.fL()){var w=n.ai.get();w.X=!1;var X={};w.N&&w.videoId&&(X.cttAuthInfo={token:w.N,videoId:w.videoId});V6("ad_to_ad",X)}n.yE(q)}}; P4=function(n){Wc.call(this,n.ZA,n.rl,n.x4,n.AU,n.cW,n.fD,n.ai,n.Ht,n.slot,n.layout,n.Jz,n.uE,n.m_,n.MP)}; V6x=function(n){(n=n.Iz())&&n.Id()}; R9=function(n){Wc.call(this,n.ZA,n.rl,n.x4,n.AU,n.cW,n.fD,n.ai,n.Ht,n.slot,n.layout,n.Jz,n.uE,n.m_,n.MP);this.w$=void 0}; pns=function(n,q){n.QD()&&!nT(n.Xu.X)||n.callback.MU(n.slot,n.layout,q)}; c4=function(n){return MB(n.MP.get(),"html5_ssap_pass_transition_reason")}; T_s=function(n,q,w){q.ZN().currentState<2&&(w=Gj(w,n.MP),q.Bb(q.Z0(),w));w=q.ZN().N;n.Fr(n.slot,q.Z0(),w)}; Fah=function(n,q){if(n.Xu.X.currentState<2){var w=Gj(q,n.MP);w==="error"?n.callback.Sv(n.slot,n.layout,new b1("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:q},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):X$(n.uE,n.layout,w)}}; I9=function(n,q,w){q.ZN().currentState>=2||(q.Bb(q.Z0(),w),nT(q.ZN())&&(eg(n.Ht,n.slot,q.Z0(),w),n.w$=void 0))}; $Fu=function(n,q){n.Xu.N===2&&q!==n.hh()&&R0("onClipEntered: unknown cpn",n.slot,n.layout,{cpn:q})}; v0m=function(n,q){var w=n.Iz();if(w){var X=w.Z0().layoutId,P=n.kL()+1;n.QD()?I9(n,w,q):w.Bb(w.Z0(),q);P>=0&&PP&&c.rk(f,P-X);return f}; E0Y=function(n,q,w){var X=Yj(q.clientMetadata,"metadata_type_sodar_extension_data");if(X)try{Ixu(w,X)}catch(P){R0("Unexpected error when loading Sodar",n,q,{error:P})}}; o0O=function(n,q,w,X,P,R,c){Oe(n,q,new g.cn(w,new g.OG),X,P,c,!1,R)}; Oe=function(n,q,w,X,P,R,c,k){c=c===void 0?!0:c;Q0(w)&&Zy(P,0,null)&&(!iv(n,"impression")&&k&&k(),n.Qa("impression"));iv(n,"impression")&&(g.k0(w,4)&&!g.k0(w,2)&&n.sF("pause"),I0(w,4)<0&&!(I0(w,2)<0)&&n.sF("resume"),g.k0(w,16)&&P>=.5&&n.sF("seek"),c&&g.k0(w,2)&&iN(n,w.state,q,X,P,R))}; iN=function(n,q,w,X,P,R,c,k,r){iv(n,"impression")&&(R?(R=P-X,R=R>=-1&&R<=2):R=Math.abs(X-P)<=1,H4(n,q,R?X:P,w,X,c,k&&R),R&&!r&&n.Qa("complete"))}; H4=function(n,q,w,X,P,R,c){OZ(n,w*1E3,c);P<=0||w<=0||(q==null?0:g.Z(q,16))||(q==null?0:g.Z(q,32))||(Zy(w,P*.25,X)&&(R&&!iv(n,"first_quartile")&&R("first"),n.Qa("first_quartile")),Zy(w,P*.5,X)&&(R&&!iv(n,"midpoint")&&R("second"),n.Qa("midpoint")),Zy(w,P*.75,X)&&(R&&!iv(n,"third_quartile")&&R("third"),n.Qa("third_quartile")))}; bXO=function(n,q){iv(n,"impression")&&n.sF(q?"fullscreen":"end_fullscreen")}; A2x=function(n){iv(n,"impression")&&n.sF("clickthrough")}; Yp6=function(n){n.sF("active_view_measurable")}; Kau=function(n){iv(n,"impression")&&!iv(n,"seek")&&n.sF("active_view_fully_viewable_audible_half_duration")}; Spy=function(n){iv(n,"impression")&&!iv(n,"seek")&&n.sF("active_view_viewable")}; uuT=function(n){iv(n,"impression")&&!iv(n,"seek")&&n.sF("audio_audible")}; B_s=function(n){iv(n,"impression")&&!iv(n,"seek")&&n.sF("audio_measurable")}; Q0z=function(n,q,w,X,P,R,c,k,r,e,f,O,H){this.callback=n;this.slot=q;this.layout=w;this.x4=X;this.VT=P;this.cW=R;this.Uo=c;this.CM=k;this.g$=r;this.MP=e;this.hg=f;this.rl=O;this.pG=H;this.gj=!0;this.dM=this.BQ=null;this.adCpn=void 0;this.N=!1}; ZXY=function(n,q,w){var X;fl(n.hg.get(),"ads_qua","cpn."+Yj(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((X=$8(n.rl.get(),2))==null?void 0:X.clientPlaybackNonce)+";qt."+q+";clr."+w)}; J26=function(n,q){var w,X;fl(n.hg.get(),"ads_imp","cpn."+Yj(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((w=$8(n.rl.get(),2))==null?void 0:w.clientPlaybackNonce)+";clr."+q+";skp."+!!g.u((X=Yj(n.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:X.skipOrPreviewRenderer,Ue))}; tG=function(n){return{enterMs:Yj(n.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Yj(n.clientMetadata,"metadata_type_layout_exit_ms")}}; da=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U){ra.call(this,n,q,w,X,P,c,k,r,e,O);this.Uo=R;this.g$=f;this.CM=H;this.MP=U;this.dM=this.BQ=null}; zfO=function(n,q){var w;fl(n.hg.get(),"ads_imp","acpn."+((w=$8(n.rl.get(),2))==null?void 0:w.clientPlaybackNonce)+";clr."+q)}; Wa6=function(n,q,w){var X;fl(n.hg.get(),"ads_qua","cpn."+Yj(n.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((X=$8(n.rl.get(),2))==null?void 0:X.clientPlaybackNonce)+";qt."+q+";clr."+w)}; m_=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t,V,T,x,M,h,E,S){this.m_=n;this.Jz=q;this.uE=w;this.rl=X;this.x4=P;this.cW=R;this.fD=c;this.hg=k;this.Uo=r;this.Gz=e;this.CM=f;this.g$=O;this.AU=H;this.pG=U;this.ai=t;this.Y4=V;this.kE=T;this.h$=x;this.MP=M;this.N=h;this.context=E;this.QJ=S}; yn=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t,V,T,x,M){this.m_=n;this.Jz=q;this.uE=w;this.hg=X;this.CM=P;this.g$=R;this.AU=c;this.rl=k;this.cW=r;this.fD=e;this.pG=f;this.ai=O;this.Y4=H;this.kE=U;this.h$=t;this.MP=V;this.x4=T;this.context=x;this.QJ=M}; N_Y=function(n,q,w,X){N0.call(this,"survey-interstitial",n,q,w,X)}; a9=function(n,q,w,X,P){qm.call(this,w,n,q,X);this.hg=P;n=Yj(q.clientMetadata,"metadata_type_ad_placement_config");this.VT=new rB(q.pM,P,n,q.layoutId)}; Vn=function(n){return Math.round(n.width)+"x"+Math.round(n.height)}; T0=function(n,q,w){w=w===void 0?pl:w;w.widthn.width*n.height*.2)return{VS:3,ZG:501,errorMessage:"ad("+Vn(w)+") to container("+Vn(n)+") ratio exceeds limit."};if(w.height>n.height/3-q)return{VS:3,ZG:501,errorMessage:"ad("+Vn(w)+") covers container("+Vn(n)+") center."}}; n5y=function(n,q){var w=Yj(n.clientMetadata,"metadata_type_ad_placement_config");return new rB(n.pM,q,w,n.layoutId)}; F$=function(n){return Yj(n.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; $J=function(n,q,w,X){N0.call(this,"invideo-overlay",n,q,w,X);this.interactionLoggingClientData=X}; v4=function(n,q,w,X,P,R,c,k,r,e,f,O){qm.call(this,R,n,q,P);this.hg=w;this.W=c;this.cW=k;this.kE=r;this.MP=e;this.D=f;this.K=O;this.VT=n5y(q,w)}; q2s=function(){var n=["metadata_type_invideo_overlay_ad_renderer"];jj().forEach(function(q){n.push(q)}); return{Ej:n,sj:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Ll=function(n,q,w,X,P,R,c,k,r,e,f,O,H){qm.call(this,R,n,q,P);this.hg=w;this.W=c;this.V=k;this.cW=r;this.kE=e;this.MP=f;this.D=O;this.K=H;this.VT=n5y(q,w)}; wKy=function(){for(var n=["metadata_type_invideo_overlay_ad_renderer"],q=g.a(jj()),w=q.next();!w.done;w=q.next())n.push(w.value);return{Ej:n,sj:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; Md=function(n){this.cW=n;this.N=!1}; XKu=function(n,q,w){N0.call(this,"survey",n,{},q,w)}; xJ=function(n,q,w,X,P,R,c){qm.call(this,w,n,q,X);this.W=P;this.cW=R;this.MP=c}; Pks=function(n,q,w,X,P,R,c,k,r,e){this.LM=n;this.cW=q;this.hg=w;this.W=X;this.CM=P;this.X=R;this.C=c;this.kE=k;this.MP=r;this.N=e}; RnO=function(n,q,w,X,P,R,c,k,r,e){this.LM=n;this.cW=q;this.hg=w;this.W=X;this.CM=P;this.X=R;this.C=c;this.kE=k;this.MP=r;this.N=e}; DB=function(n,q,w,X,P,R,c,k,r,e){EZ.call(this,n,q,w,X,P,R,c,r);this.tL=k;this.rl=e}; cZz=function(){var n=e2s();n.Ej.push("metadata_type_ad_info_ad_metadata");return n}; I60=function(n,q,w,X,P,R,c){this.LM=n;this.cW=q;this.hg=w;this.X=X;this.tL=P;this.N=R;this.rl=c}; kWm=function(n,q,w,X,P,R,c,k){this.LM=n;this.cW=q;this.hg=w;this.X=X;this.tL=P;this.N=R;this.MP=c;this.rl=k}; hG=function(n,q){this.slotId=q;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=n(this.triggerType)}; lN=function(n,q){this.adPodIndex=n;this.N=q.length;this.adBreakLengthSeconds=q.reduce(function(X,P){return X+P},0); var w=0;for(n+=1;n0}; TD=function(n){return!!(n.qD&&n.slot&&n.layout)}; FI=function(n){var q,w=(q=n.config)==null?void 0:q.adPlacementConfig;n=n.renderer;return!(!w||w.kind==null||!n)}; a66=function(n){if(!dz(n.adLayoutMetadata))return!1;n=n.renderingContent;return g.u(n,Sj)||g.u(n,uv)||g.u(n,yZY)||g.u(n,Yt)||g.u(n,KI)?!0:!1}; $z=function(n){return n.playerVars!==void 0&&n.pings!==void 0&&n.externalVideoId!==void 0}; lT=function(n){if(!dz(n.adLayoutMetadata))return!1;n=n.renderingContent;var q=g.u(n,vs);return q?Lh(q):(q=g.u(n,Mx))?$z(q):(q=g.u(n,xz))?q.playerVars!==void 0:(q=g.u(n,Sj))?q.durationMilliseconds!==void 0:g.u(n,DR)||g.u(n,h$)?!0:!1}; Lh=function(n){n=(n.sequentialLayouts||[]).map(function(q){return g.u(q,GD)}); return n.length>0&&n.every(lT)}; Eu=function(n){return dz(n.adLayoutMetadata)?(n=g.u(n.renderingContent,Ch))&&n.pings?!0:!1:!1}; v5s=function(n){if(!dz(n.adLayoutMetadata))return!1;if(g.u(n.renderingContent,ViT)||g.u(n.renderingContent,pKx))return!0;var q=g.u(n.renderingContent,oS);return g.u(n.renderingContent,bT)||g.u(q==null?void 0:q.sidePanel,TAm)||g.u(q==null?void 0:q.sidePanel,FKs)||g.u(q==null?void 0:q.sidePanel,$Dm)?!0:!1}; hn3=function(n){var q;(q=!n)||(q=n.adSlotMetadata,q=!((q==null?void 0:q.slotId)!==void 0&&(q==null?void 0:q.slotType)!==void 0));if(q||!(LK3(n)||n.slotEntryTrigger&&n.slotFulfillmentTriggers&&n.slotExpirationTriggers))return!1;var w;n=(w=n.fulfillmentContent)==null?void 0:w.fulfilledLayout;return(w=g.u(n,GD))?lT(w):(w=g.u(n,A$))?v5s(w):(w=g.u(n,Mis))?a66(w):(w=g.u(n,xD0))?g5Y(w):(w=g.u(n,DD0))?dz(w.adLayoutMetadata)?g.u(w.renderingContent,gz)?!0:!1:!1:(n=g.u(n,Yz))?Eu(n):!1}; LK3=function(n){var q;n=g.u((q=n.fulfillmentContent)==null?void 0:q.fulfilledLayout,A$);var w;return n&&((w=n.adLayoutMetadata)==null?void 0:w.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&n.layoutExitNormalTriggers===void 0}; l6s=function(n){var q;return(n==null?void 0:(q=n.adSlotMetadata)==null?void 0:q.slotType)==="SLOT_TYPE_IN_PLAYER"}; Cks=function(n,q){var w;if((w=n.questions)==null||!w.length||!n.playbackCommands||(q===void 0||!q)&&n.questions.length!==1)return!1;n=g.a(n.questions);for(q=n.next();!q.done;q=n.next()){q=q.value;var X=w=void 0,P=((w=g.u(q,Kh))==null?void 0:w.surveyAdQuestionCommon)||((X=g.u(q,Ss))==null?void 0:X.surveyAdQuestionCommon);if(!GWT(P))return!1}return!0}; E53=function(n){n=((n==null?void 0:n.playerOverlay)||{}).instreamSurveyAdRenderer;var q;if(n)if(n.playbackCommands&&n.questions&&n.questions.length===1){var w,X=((q=g.u(n.questions[0],Kh))==null?void 0:q.surveyAdQuestionCommon)||((w=g.u(n.questions[0],Ss))==null?void 0:w.surveyAdQuestionCommon);q=GWT(X)}else q=!1;else q=!1;return q}; GWT=function(n){if(!n)return!1;n=g.u(n.instreamAdPlayerOverlay,uT);var q=g.u(n==null?void 0:n.skipOrPreviewRenderer,Ue),w=g.u(n==null?void 0:n.adInfoRenderer,Bs);return(g.u(n==null?void 0:n.skipOrPreviewRenderer,Qf)||q)&&w?!0:!1}; o56=function(n){return n.linearAds!=null&&dz(n.adLayoutMetadata)}; bkO=function(n){return n.linearAd!=null&&n.adVideoStart!=null}; AZ0=function(n){if(isNaN(Number(n.timeoutSeconds))||!n.text||!n.ctaButton||!g.u(n.ctaButton,g.ZR)||!n.brandImage)return!1;var q;return n.backgroundImage&&g.u(n.backgroundImage,J$)&&((q=g.u(n.backgroundImage,J$))==null?0:q.landscape)?!0:!1}; zD=function(n,q,w,X,P,R,c,k){g.A.call(this);this.MP=n;this.N=q;this.X=X;this.rl=P;this.W=R;this.C=c;this.AU=k}; S2T=function(n,q,w){var X,P=((X=w.adSlots)!=null?X:[]).map(function(k){return g.u(k,Ws)}); if(w.jb)if(Yj(q.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))z$(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); else{if(n.MP.get().T.B().Z("h5_check_forecasting_renderer_for_throttled_midroll")){var R=w.V1.filter(function(k){var r;return((r=k.renderer)==null?void 0:r.clientForecastingAdRenderer)!=null}); R.length!==0?Y2z(n.C,R,P,q.slotId,w.ssdaiAdsConfig):z$(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId)}else z$(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},q.slotId); KKO(n.W,q)}else{var c;X={w5:Math.round(((R=Yj(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:R.w5)||0),WG:(c=Yj(q.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:c.WG};Y2z(n.C,w.V1,P,q.slotId,w.ssdaiAdsConfig,X)}}; Q16=function(n,q,w,X,P,R,c){var k=$8(n.rl.get(),1);if(uKO(n.MP.get())){var r=Nx(n.X.get(),w,X,P,k.clientPlaybackNonce,k.gp,k.daiEnabled,k,R,c);BA3(n,r);z$(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return r},q)}else z$(n.N.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Nx(n.X.get(),w,X,P,k.clientPlaybackNonce,k.gp,k.daiEnabled,k,R,c)},q)}; BA3=function(n,q){q=g.a(q);for(var w=q.next();!w.done;w=q.next()){var X=w.value;if(X.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X.fulfilledLayout)if(w=void 0,X.fulfilledLayout.renderingContent)w=Yj(X.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(X.fulfilledLayout.mY){X=g.a(X.fulfilledLayout.mY);for(var P=X.next();!P.done&&(P=P.value,!P.renderingContent||!(w=Yj(P.clientMetadata,"metadata_type_player_vars")));P=X.next());}}else w=void 0;if(w){n.AU.get().T.preloadVideoByPlayerVars(w, 2,300);break}}}; JZx=function(n,q,w,X,P,R,c){q=ZkT(q,R,Number(X.prefetchMilliseconds)||0,c);n=q instanceof z?q:nP(n,X,P,q,w);return n instanceof z?n:[n]}; znO=function(n,q,w,X,P){var R=WL(n.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");X=[new dj({getAdBreakUrl:X.getAdBreakUrl,w5:0,WG:0}),new hv(!0)];n=q.pauseDurationMs?q.lactThresholdMs?{slotId:R,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new cs(n.N,R),slotFulfillmentTriggers:[new j1O(n.N)],slotExpirationTriggers:[new Nd(n.N,P),new XI(n.N,R)],Gp:"core",clientMetadata:new Av(X),adSlotLoggingData:w}:new z("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new z("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return n instanceof z?n:[n]}; WK6=function(n){var q,w;return((q=n.renderer)==null?void 0:(w=q.adBreakServiceRenderer)==null?void 0:w.getAdBreakUrl)!==void 0}; qk=function(n,q,w){if(n.beforeContentVideoIdStartedTrigger)n=n.beforeContentVideoIdStartedTrigger?new G0(oZ,q,n.id):new z("Not able to create BeforeContentVideoIdStartedTrigger");else{if(n.layoutIdExitedTrigger){var X;q=(X=n.layoutIdExitedTrigger)!=null&&X.triggeringLayoutId?new YJ(oZ,n.layoutIdExitedTrigger.triggeringLayoutId,n.id):new z("Not able to create LayoutIdExitedTrigger")}else{if(n.layoutExitedForReasonTrigger){var P,R;((P=n.layoutExitedForReasonTrigger)==null?0:P.triggeringLayoutId)&&((R= n.layoutExitedForReasonTrigger)==null?0:R.layoutExitReason)?(q=s1x(n.layoutExitedForReasonTrigger.layoutExitReason),n=q instanceof z?q:new AG(oZ,n.layoutExitedForReasonTrigger.triggeringLayoutId,[q],n.id)):n=new z("Not able to create LayoutIdExitedForReasonTrigger")}else{if(n.onLayoutSelfExitRequestedTrigger){var c;q=(c=n.onLayoutSelfExitRequestedTrigger)!=null&&c.triggeringLayoutId?new W4(oZ,n.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,n.id):new z("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(n.onNewPlaybackAfterContentVideoIdTrigger)n= n.onNewPlaybackAfterContentVideoIdTrigger?new Nd(oZ,q,n.id):new z("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(n.skipRequestedTrigger){var k;q=(k=n.skipRequestedTrigger)!=null&&k.triggeringLayoutId?new qx(oZ,n.skipRequestedTrigger.triggeringLayoutId,n.id):new z("Not able to create SkipRequestedTrigger")}else if(n.slotIdEnteredTrigger){var r;q=(r=n.slotIdEnteredTrigger)!=null&&r.triggeringSlotId?new wz(oZ,n.slotIdEnteredTrigger.triggeringSlotId,n.id):new z("Not able to create SlotIdEnteredTrigger")}else if(n.slotIdExitedTrigger){var e; q=(e=n.slotIdExitedTrigger)!=null&&e.triggeringSlotId?new XI(oZ,n.slotIdExitedTrigger.triggeringSlotId,n.id):new z("Not able to create SkipRequestedTrigger")}else if(n.surveySubmittedTrigger){var f;q=(f=n.surveySubmittedTrigger)!=null&&f.triggeringLayoutId?new kz(oZ,n.surveySubmittedTrigger.triggeringLayoutId,n.id):new z("Not able to create SurveySubmittedTrigger")}else{if(n.mediaResumedTrigger)n=n.mediaResumedTrigger&&n.id?new enO(n.id):new z("Not able to create MediaResumedTrigger");else{if(n.closeRequestedTrigger){var O; q=(O=n.closeRequestedTrigger)!=null&&O.triggeringLayoutId?new Cl(oZ,n.closeRequestedTrigger.triggeringLayoutId,n.id):new z("Not able to create CloseRequestedTrigger")}else if(n.slotIdScheduledTrigger){var H;q=(H=n.slotIdScheduledTrigger)!=null&&H.triggeringSlotId?new cs(oZ,n.slotIdScheduledTrigger.triggeringSlotId,n.id):new z("Not able to create SlotIdScheduledTrigger")}else{if(n.mediaTimeRangeTrigger){var U;X=Number((U=n.mediaTimeRangeTrigger)==null?void 0:U.offsetStartMilliseconds);var t;c=Number((t= n.mediaTimeRangeTrigger)==null?void 0:t.offsetEndMilliseconds);isFinite(X)&&isFinite(c)?(t=c,t===-1&&(t=w),w=X>t?new z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:X,offsetEndMs:t},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",t===w&&X-500<=t):new HN(X,t),n=w instanceof z?w:new Qn(oZ,q,w,!1,n.id)):n=new z("Not able to create MediaTimeRangeTrigger")}else if(n.contentVideoIdEndedTrigger)n=n.contentVideoIdEndedTrigger?new Ee(oZ,q,!1,n.id):new z("Not able to create ContentVideoIdEndedTrigger"); else{if(n.layoutIdEnteredTrigger){var V;q=(V=n.layoutIdEnteredTrigger)!=null&&V.triggeringLayoutId?new bN(oZ,n.layoutIdEnteredTrigger.triggeringLayoutId,n.id):new z("Not able to create LayoutIdEnteredTrigger")}else if(n.timeRelativeToLayoutEnterTrigger){var T;q=(T=n.timeRelativeToLayoutEnterTrigger)!=null&&T.triggeringLayoutId?new Uu(oZ,Number(n.timeRelativeToLayoutEnterTrigger.durationMs),n.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,n.id):new z("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(n.onDifferentLayoutIdEnteredTrigger){var x; q=(x=n.onDifferentLayoutIdEnteredTrigger)!=null&&x.triggeringLayoutId&&n.onDifferentLayoutIdEnteredTrigger.slotType&&n.onDifferentLayoutIdEnteredTrigger.layoutType?new JG(oZ,n.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,n.onDifferentLayoutIdEnteredTrigger.slotType,n.onDifferentLayoutIdEnteredTrigger.layoutType,n.id):new z("Not able to create CloseRequestedTrigger")}else{if(n.liveStreamBreakStartedTrigger)n=n.liveStreamBreakStartedTrigger&&n.id?new B4(oZ,n.id):new z("Not able to create LiveStreamBreakStartedTrigger"); else if(n.liveStreamBreakEndedTrigger)n=n.liveStreamBreakEndedTrigger&&n.id?new Kl(oZ,n.id):new z("Not able to create LiveStreamBreakEndedTrigger");else{if(n.liveStreamBreakScheduledDurationMatchedTrigger){var M;q=(M=n.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&M.breakDurationMs?new SD(Number(n.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,n.id):new z("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(n.liveStreamBreakScheduledDurationNotMatchedTrigger){var h; q=(h=n.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&h.breakDurationMs?new uN(Number(n.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,n.id):new z("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(n.newSlotScheduledWithBreakDurationTrigger){var E;q=(E=n.newSlotScheduledWithBreakDurationTrigger)!=null&&E.breakDurationMs?new ZB(Number(n.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,n.id):new z("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else q= n.prefetchCacheExpiredTrigger?new nh(oZ,n.id):new z("Not able to convert an AdsControlflowTrigger.");n=q}q=n}n=q}q=n}n=q}q=n}n=q}q=n}n=q}q=n}n=q}return n}; wE=function(n,q){q.N>=2&&(n.slot_pos=q.adPodIndex);n.autoplay="1"}; nez=function(n,q,w,X,P,R,c,k){return q===null?new z("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:q,ActionCompanionAdRenderer:X}):[NAu(n,q,c,R,function(r){var e=r.slotId;r=k(r);var f=X.adLayoutLoggingData,O=new Av([new m5(X),new DG(P)]);e=xS(w.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",e);var H={layoutId:e,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Gp:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",pM:new Map, layoutExitNormalTriggers:[new Nd(w.N,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:O,Dj:r(H),adLayoutLoggingData:f}})]}; qI6=function(n,q,w,X,P,R,c,k){return q===null?new z("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:q,TopBannerImageTextIconButtonedLayoutViewModel:X}):[NAu(n,q,c,R,function(r){var e=r.slotId;r=k(r);var f=X.adLayoutLoggingData,O=new Av([new yZ(X),new DG(P)]);e=xS(w.X.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",e);var H={layoutId:e,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Gp:"core"};return{layoutId:e,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", pM:new Map,layoutExitNormalTriggers:[new Nd(w.N,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:O,Dj:r(H),adLayoutLoggingData:f}})]}; RVz=function(n,q,w,X,P,R){if(!R)for(q=g.a(q),R=q.next();!R.done;R=q.next())R=R.value,Xb(n,R.renderer,R.config.adPlacementConfig.kind);n=Array.from(n.values()).filter(function(f){return w9y(f)}); q=[];R=g.a(n);for(var c=R.next(),k={};!c.done;k={EM:void 0},c=R.next()){k.EM=c.value;c=g.a(k.EM.Ih);for(var r=c.next(),e={};!r.done;e={lB:void 0},r=c.next())e.lB=r.value,r=function(f,O){return function(H){return f.lB.QH(H,O.EM.instreamVideoAdRenderer.elementId,f.lB.V8)}}(e,k),e.lB.isContentVideoCompanion?q.push(X93(w,X,P,k.EM.instreamVideoAdRenderer.elementId,e.lB.associatedCompositePlayerBytesLayoutId,e.lB.adSlotLoggingData,r)):n.length>1?q.push(PPm(w,X,P,k.EM.instreamVideoAdRenderer.elementId,e.lB.adSlotLoggingData, function(f,O){return function(H){return f.lB.QH(H,O.EM.instreamVideoAdRenderer.elementId,f.lB.V8,f.lB.associatedCompositePlayerBytesLayoutId)}}(e,k))):q.push(PPm(w,X,P,k.EM.instreamVideoAdRenderer.elementId,e.lB.adSlotLoggingData,r))}return q}; Xb=function(n,q,w){if(q=c7x(q)){q=g.a(q);for(var X=q.next();!X.done;X=q.next())if((X=X.value)&&X.externalVideoId){var P=Pp(n,X.externalVideoId);P.instreamVideoAdRenderer||(P.instreamVideoAdRenderer=X,P.VQ=w)}else R0("InstreamVideoAdRenderer without externalVideoId")}}; c7x=function(n){var q=[],w=n.sandwichedLinearAdRenderer&&n.sandwichedLinearAdRenderer.linearAd&&g.u(n.sandwichedLinearAdRenderer.linearAd,Mx);if(w)return q.push(w),q;if(n.instreamVideoAdRenderer)return q.push(n.instreamVideoAdRenderer),q;if(n.linearAdSequenceRenderer&&n.linearAdSequenceRenderer.linearAds){n=g.a(n.linearAdSequenceRenderer.linearAds);for(w=n.next();!w.done;w=n.next())w=w.value,g.u(w,Mx)&&q.push(g.u(w,Mx));return q}return null}; w9y=function(n){if(n.instreamVideoAdRenderer===void 0)return R0("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var q=g.a(n.Ih),w=q.next();!w.done;w=q.next()){w=w.value;if(w.QH===void 0)return!1;if(w.V8===void 0)return R0("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(n.VQ===void 0||w.OQ===void 0||n.VQ!==w.OQ&&w.OQ!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(n.instreamVideoAdRenderer.elementId===void 0)return R0("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:n.VQ,"matching APSR kind":w.OQ}),!1}return!0}; Pp=function(n,q){n.has(q)||n.set(q,{instreamVideoAdRenderer:void 0,VQ:void 0,adVideoId:q,Ih:[]});return n.get(q)}; Rk=function(n,q,w,X,P,R,c,k,r){P?Pp(n,P).Ih.push({CJg:q,OQ:w,isContentVideoCompanion:X,V8:c,associatedCompositePlayerBytesLayoutId:R,adSlotLoggingData:k,QH:r}):R0("Companion AdPlacementSupportedRenderer without adVideoId")}; cp=function(n){var q=0;n=g.a(n.questions);for(var w=n.next();!w.done;w=n.next())if(w=w.value,w=g.u(w,Kh)||g.u(w,Ss)){var X=void 0;q+=((X=w.surveyAdQuestionCommon)==null?void 0:X.durationMilliseconds)||0}return q}; Ik=function(n){var q,w,X,P,R=((w=g.u((q=n.questions)==null?void 0:q[0],Kh))==null?void 0:w.surveyAdQuestionCommon)||((P=g.u((X=n.questions)==null?void 0:X[0],Ss))==null?void 0:P.surveyAdQuestionCommon),c;q=[].concat(g.D(((c=n.playbackCommands)==null?void 0:c.instreamAdCompleteCommands)||[]),g.D((R==null?void 0:R.timeoutCommands)||[]));var k,r,e,f,O,H,U,t,V,T,x,M,h,E,S,nO,J,c0,ku,Is;return{impressionCommands:(k=n.playbackCommands)==null?void 0:k.impressionCommands,errorCommands:(r=n.playbackCommands)== null?void 0:r.errorCommands,muteCommands:(e=n.playbackCommands)==null?void 0:e.muteCommands,unmuteCommands:(f=n.playbackCommands)==null?void 0:f.unmuteCommands,pauseCommands:(O=n.playbackCommands)==null?void 0:O.pauseCommands,rewindCommands:(H=n.playbackCommands)==null?void 0:H.rewindCommands,resumeCommands:(U=n.playbackCommands)==null?void 0:U.resumeCommands,skipCommands:(t=n.playbackCommands)==null?void 0:t.skipCommands,progressCommands:(V=n.playbackCommands)==null?void 0:V.progressCommands,Thg:(T= n.playbackCommands)==null?void 0:T.clickthroughCommands,fullscreenCommands:(x=n.playbackCommands)==null?void 0:x.fullscreenCommands,activeViewViewableCommands:(M=n.playbackCommands)==null?void 0:M.activeViewViewableCommands,activeViewMeasurableCommands:(h=n.playbackCommands)==null?void 0:h.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(E=n.playbackCommands)==null?void 0:E.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(S=n.playbackCommands)== null?void 0:(nO=S.activeViewTracking)==null?void 0:nO.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(J=n.playbackCommands)==null?void 0:(c0=J.activeViewTracking)==null?void 0:c0.activeViewAudioMeasurableCommands,endFullscreenCommands:(ku=n.playbackCommands)==null?void 0:ku.endFullscreenCommands,abandonCommands:(Is=n.playbackCommands)==null?void 0:Is.abandonCommands,completeCommands:q}}; kMh=function(n,q,w,X,P,R,c){return function(k,r){return IZT(n,r.slotId,k,R,function(e,f){var O=r.layoutId;e=c(e);return kl(q,O,f,P,e,"LAYOUT_TYPE_SURVEY",[new Jr(w),X],w.adLayoutLoggingData)})}}; sbx=function(n,q,w,X,P,R,c){if(!r7Y(n))return new z("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:n});var k=n.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[jbu(R,q,w,X,function(r){var e=r.slotId;r=c(r);e=xS(P.X.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",e);var f={layoutId:e,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Gp:"core"},O=new YJ(P.N,X);return{layoutId:e,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",pM:new Map,layoutExitNormalTriggers:[O], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:new Av([new zo(k)]),Dj:r(f)}})]}; r7Y=function(n){n=g.u(n==null?void 0:n.additionalPlayerOverlay,eV3);if(!n)return!1;var q=n.slidingMessages;return n.title&&q&&q.length!==0?!0:!1}; Ots=function(n,q,w,X,P){var R;if((R=n.playerOverlay)==null||!R.instreamSurveyAdRenderer)return function(){return[]}; if(!E53(n))return function(){return new z("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:n})}; var c=n.playerOverlay.instreamSurveyAdRenderer,k=cp(c);return k<=0?function(){return new z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c})}:function(r,e){var f=fZT(r,w,X,function(O){var H=O.slotId; O=e(O);var U=Ik(c);H=xS(P.X.get(),"LAYOUT_TYPE_SURVEY",H);var t={layoutId:H,layoutType:"LAYOUT_TYPE_SURVEY",Gp:"core"},V=new YJ(P.N,X),T=new qx(P.N,H),x=new kz(P.N,H),M=new Hks(P.N);return{layoutId:H,layoutType:"LAYOUT_TYPE_SURVEY",pM:new Map,layoutExitNormalTriggers:[V,M],layoutExitSkipTriggers:[T],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[x],rM:[],Gp:"core",clientMetadata:new Av([new ZG(c),new DG(q),new yb(k/1E3),new TZ(U)]),Dj:O(t),adLayoutLoggingData:c.adLayoutLoggingData}}); r=sbx(n,w,f.slotId,X,P,r,e);return r instanceof z?r:[f].concat(g.D(r))}}; mOO=function(n,q,w,X,P,R,c){c=c===void 0?!1:c;var k=[];try{var r=[];if(w.renderer.linearAdSequenceRenderer)var e=function(V){V=its(V.slotId,w,q,P(V),X,R,c);r=V.p_l;return V.TK}; else if(w.renderer.instreamVideoAdRenderer)e=function(V){var T=V.slotId;V=P(V);var x=c,M=w.config.adPlacementConfig,h=Ht3(M),E=h.l1,S=h.zc;h=w.renderer.instreamVideoAdRenderer;var nO;if(h==null?0:(nO=h.playerOverlay)==null?0:nO.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var J=rE(h,x);nO=Math.min(E+J.videoLengthSeconds*1E3,S);x=new lN(0,[J.videoLengthSeconds]);S=J.videoLengthSeconds;var c0=J.playerVars,ku=J.instreamAdPlayerOverlayRenderer,Is=J.playerOverlayLayoutRenderer, e3=J.adVideoId,wx=UOO(w),v0=J.pM;J=J.bA;var ls=h==null?void 0:h.adLayoutLoggingData;h=h==null?void 0:h.sodarExtensionData;T=xS(q.X.get(),"LAYOUT_TYPE_MEDIA",T);var ql={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",Gp:"core"};return{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",pM:v0,layoutExitNormalTriggers:[new Kl(q.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:new Av([new oX(X),new IZ(S),new kj(c0),new sd(E),new eH(nO),ku&& new ba(ku),Is&&new Ar(Is),new DG(M),new Er(e3),new hr(x),new Ud(wx),h&&new jH(h),new XA({current:null}),new Od({}),new LN(J)].filter(tyu)),Dj:V(ql),adLayoutLoggingData:ls}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var f=dOy(n,X,w.adSlotLoggingData,e);k.push(f);for(var O=g.a(r),H=O.next();!H.done;H=O.next()){var U=H.value,t=U(n,P);if(t instanceof z)return t;k.push.apply(k,g.D(t))}}catch(V){return new z(V,{errorMessage:V.message,AdPlacementRenderer:w,numberOfSurveyRenderers:geY(w)})}return k}; geY=function(n){n=(n.renderer.linearAdSequenceRenderer||{}).linearAds;return n!=null&&n.length?n.filter(function(q){var w,X;return((w=g.u(q,Mx))==null?void 0:(X=w.playerOverlay)==null?void 0:X.instreamSurveyAdRenderer)!=null}).length:0}; its=function(n,q,w,X,P,R,c){var k=q.config.adPlacementConfig,r=Ht3(k),e=r.l1,f=r.zc;r=(q.renderer.linearAdSequenceRenderer||{}).linearAds;if(r==null||!r.length)throw new TypeError("Expected linear ads");var O=[],H={Xz:e,bU:0,qTi:O};r=r.map(function(t){return y7O(n,t,H,w,X,k,P,f,c)}).map(function(t,V){V=new lN(V,O); return t(V)}); var U=r.map(function(t){return t.zK}); return{TK:aZs(w,n,e,U,k,UOO(q),X,f,R),p_l:r.map(function(t){return t.x9T})}}; y7O=function(n,q,w,X,P,R,c,k,r){var e=rE(g.u(q,Mx),r),f=w.Xz,O=w.bU,H=Math.min(f+e.videoLengthSeconds*1E3,k);w.Xz=H;w.bU++;w.qTi.push(e.videoLengthSeconds);var U,t,V=(U=g.u(q,Mx))==null?void 0:(t=U.playerOverlay)==null?void 0:t.instreamSurveyAdRenderer;if(e.adVideoId==="nPpU29QrbiU"&&V==null)throw new TypeError("Survey slate media has no survey overlay");return function(T){wE(e.playerVars,T);var x,M,h=e.videoLengthSeconds,E=e.playerVars,S=e.pM,nO=e.bA,J=e.instreamAdPlayerOverlayRenderer,c0=e.playerOverlayLayoutRenderer, ku=e.adVideoId,Is=(x=g.u(q,Mx))==null?void 0:x.adLayoutLoggingData;x=(M=g.u(q,Mx))==null?void 0:M.sodarExtensionData;M=xS(X.X.get(),"LAYOUT_TYPE_MEDIA",n);var e3={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",Gp:"adapter"};T={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA",pM:S,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"adapter",clientMetadata:new Av([new oX(c),new IZ(h),new kj(E),new sd(f),new eH(H),new fN(O),new XA({current:null}), J&&new ba(J),c0&&new Ar(c0),new DG(R),new Er(ku),new hr(T),x&&new jH(x),V&&new v_(V),new Od({}),new LN(nO)].filter(tyu)),Dj:P(e3),adLayoutLoggingData:Is};h=Ots(g.u(q,Mx),R,c,T.layoutId,X);return{zK:T,x9T:h}}}; rE=function(n,q){if(!n)throw new TypeError("Expected instream video ad renderer");if(!n.playerVars)throw new TypeError("Expected player vars in url encoded string");var w=ZO(n.playerVars),X=Number(w.length_seconds);if(isNaN(X))throw new TypeError("Expected valid length seconds in player vars");var P=Number(n.trimmedMaxNonSkippableAdDurationMs);X=isNaN(P)?X:Math.min(X,P/1E3);P=n.playerOverlay||{};P=P.instreamAdPlayerOverlayRenderer===void 0?null:P.instreamAdPlayerOverlayRenderer;var R=n.playerOverlay|| {};R=R.playerOverlayLayoutRenderer===void 0?null:R.playerOverlayLayoutRenderer;var c=w.video_id;c||(c=(c=n.externalVideoId)?c:void 0);if(!c)throw new TypeError("Expected valid video id in IVAR");if(q&&X===0){var k;q=(k=Vy3[c])!=null?k:X}else q=X;return{playerVars:w,videoLengthSeconds:q,instreamAdPlayerOverlayRenderer:P,playerOverlayLayoutRenderer:R,adVideoId:c,pM:n.pings?kt(n.pings):new Map,bA:IC(n.pings)}}; UOO=function(n){n=Number(n.driftRecoveryMs);return isNaN(n)||n<=0?null:n}; Ht3=function(n){var q=n.adTimeOffset||{};n=q.offsetEndMilliseconds;q=Number(q.offsetStartMilliseconds);if(isNaN(q))throw new TypeError("Expected valid start offset");n=Number(n);if(isNaN(n))throw new TypeError("Expected valid end offset");return{l1:q,zc:n}}; p9s=function(n){var q,w=(q=Yj(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!w)return null;q=Yj(n.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var X=n.layoutId,P=Yj(n.clientMetadata,"metadata_type_content_cpn"),R=Yj(n.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c=Yj(n.clientMetadata,"metadata_type_player_underlay_renderer"),k=Yj(n.clientMetadata,"metadata_type_ad_placement_config"),r=Yj(n.clientMetadata,"metadata_type_video_length_seconds"); var e=CN(n.clientMetadata,"metadata_type_layout_enter_ms")&&CN(n.clientMetadata,"metadata_type_layout_exit_ms")?(Yj(n.clientMetadata,"metadata_type_layout_exit_ms")-Yj(n.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rj:X,contentCpn:P,ZK:w,oh:q,instreamAdPlayerOverlayRenderer:R,instreamAdPlayerUnderlayRenderer:c,adPlacementConfig:k,videoLengthSeconds:r,Aw:e,inPlayerLayoutId:Yj(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yj(n.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; $O0=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t){X=WL(X,"SLOT_TYPE_PLAYER_BYTES");n=T6m(P,n,c,w,X,r,e);if(n instanceof z)return n;var V;e=(V=Yj(n.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:V.layoutId;if(!e)return new z("Invalid adNotify layout");q=Fw3(e,P,R,w,k,q,r,f,O,H,U,t,c);return q instanceof z?q:[n].concat(g.D(q))}; Fw3=function(n,q,w,X,P,R,c,k,r,e,f,O,H){w=ves(q,w,X,R,c,k,r,e,f,O,H);if(w instanceof z)return w;n=Lw0(q,n,c,P,w);return n instanceof z?n:[].concat(g.D(n.nL),[n.V0])}; xOO=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U){q=ves(n,q,w,P,R,k,r,e,f,O,H,U);if(q instanceof z)return q;n=Mys(n,w,R,c,X,k.T9,q);return n instanceof z?n:n.nL.concat(n.V0)}; ves=function(n,q,w,X,P,R,c,k,r,e,f,O){var H=jM(X,w,e);return H instanceof b1?new z(H):e.T.B().experiments.BW("html5_refactor_in_player_slot_generation")?function(U){var t=new lN(0,[H.FP]);U=DOs(q,H.layoutId,H.n1,w,sb(H.playerVars,H.MZ,R,r,t),H.FP,P,t,c(U),k.get(H.n1.externalVideoId),O);t=[];if(H.n1.playerOverlay.instreamAdPlayerOverlayRenderer){var V=p9s(U);if(!V)return R0("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,U),{layout:U,nL:[]}; t=[hVs(n,V.contentCpn,V.Rj,function(x){return eM(q,x.slotId,"core",V,ZU(f,x))},V.inPlayerSlotId)].concat(g.D(t)); if(V.instreamAdPlayerUnderlayRenderer&&fP(e)){var T=V.instreamAdPlayerUnderlayRenderer;t=[lZO(n,V.contentCpn,V.Rj,function(x){return GMO(q,x.slotId,T,V.adPlacementConfig,V.Rj,ZU(f,x))})].concat(g.D(t))}}return{layout:U, nL:t}}:function(U){var t=new lN(0,[H.FP]); return{layout:DOs(q,H.layoutId,H.n1,w,sb(H.playerVars,H.MZ,R,r,t),H.FP,P,t,c(U),k.get(H.n1.externalVideoId),O),nL:[]}}}; jM=function(n,q,w){if(!n.playerVars)return new b1("No playerVars available in InstreamVideoAdRenderer.");var X,P;if(n.elementId==null||n.playerVars==null||n.playerOverlay==null||((X=n.playerOverlay)==null?void 0:X.instreamAdPlayerOverlayRenderer)==null&&((P=n.playerOverlay)==null?void 0:P.playerOverlayLayoutRenderer)==null||n.pings==null||n.externalVideoId==null)return new b1("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:n});X=ZO(n.playerVars);P=Number(X.length_seconds); isNaN(P)&&(P=0,R0("Expected valid length seconds in player vars but got NaN"));if(w.fL(q.kind==="AD_PLACEMENT_KIND_START")){if(n.layoutId===void 0)return new b1("Expected server generated layout ID in instreamVideoAdRenderer");q=n.layoutId}else q=n.elementId;return{layoutId:q,n1:n,playerVars:X,MZ:n.playerVars,FP:P}}; sb=function(n,q,w,X,P){n.iv_load_policy=X;q=ZO(q);if(q.cta_conversion_urls)try{n.cta_conversion_urls=JSON.parse(q.cta_conversion_urls)}catch(R){R0(R)}w.mK&&(n.ctrl=w.mK);w.IW&&(n.ytr=w.IW);w.Gm&&(n.ytrcc=w.Gm);w.isMdxPlayback&&(n.mdx="1");n.vvt&&(n.vss_credentials_token=n.vvt,w.E9&&(n.vss_credentials_token_type=w.E9),w.mdxEnvironment&&(n.mdx_environment=w.mdxEnvironment));wE(n,P);return n}; CP6=function(n){var q=new Map;n=g.a(n);for(var w=n.next();!w.done;w=n.next())(w=w.value.renderer.remoteSlotsRenderer)&&w.hostElementId&&q.set(w.hostElementId,w);return q}; Ob=function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; EeO=function(n){return n!=null}; uNT=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U){for(var t=[],V=g.a(n),T=V.next();!T.done;T=V.next())if(T=T.value,!LK3(T)&&!l6s(T)){var x=Ob(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger,M=r.fL(x),h=oeO(T,e,X,w.gp,M);if(h instanceof z)return h;var E=void 0,S={slotId:T.adSlotMetadata.slotId,slotType:T.adSlotMetadata.slotType,slotPhysicalPosition:(E=T.adSlotMetadata.slotPhysicalPosition)!=null?E:1,Gp:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers, slotExpirationTriggers:h.slotExpirationTriggers},nO=g.u(T.fulfillmentContent.fulfilledLayout,GD);if(nO){if(!lT(nO))return new z("Invalid PlayerBytesAdLayoutRenderer");E=O&&!(Ob(T)&&T.slotEntryTrigger.beforeContentVideoIdStartedTrigger);h=h.slotFulfillmentTriggers.some(function(J){return J instanceof SD}); M=E?btz(S,T.adSlotMetadata.triggerEvent,nO,w,X,R,e,n,M,H,h,U):A7s(S,T.adSlotMetadata.triggerEvent,nO,q,w,X,P,R,c,k,r,e,n,f,M,T.adSlotMetadata.triggeringSourceLayoutId);if(M instanceof z)return M;h=[];Ob(T)&&h.push(new l1({UI:Ob(T)&&!!T.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));E&&h.push(new Od({}));w.T9&&h.push(new FA({}));h.push(new DU(x));T=Object.assign({},S,{clientMetadata:new Av(h),fulfilledLayout:M.layout,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});t.push.apply(t,g.D(M.nL)); t.push(T)}else if(x=g.u(T.fulfillmentContent.fulfilledLayout,A$)){if(!v5s(x))return new z("Invalid PlayerUnderlayAdLayoutRenderer");x=YIm(x,X,w.gp,R,S,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof z)return x;T=Object.assign({},S,{clientMetadata:new Av([]),fulfilledLayout:x,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});t.push(T)}else if(x=g.u(T.fulfillmentContent.fulfilledLayout,xD0)){if(!g5Y(x))return new z("Invalid AboveFeedAdLayoutRenderer");x= Kw6(x,X,w.gp,R,S,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId);if(x instanceof z)return x;T=Object.assign({},S,{clientMetadata:new Av([]),fulfilledLayout:x,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});t.push(T)}else if(x=g.u(T.fulfillmentContent.fulfilledLayout,DD0)){if(!dz(x.adLayoutMetadata)||!g.u(x.renderingContent,gz))return new z("Invalid BelowPlayerAdLayoutRenderer");x=Kw6(x,X,w.gp,R,S,T.adSlotMetadata.triggerEvent,T.adSlotMetadata.triggeringSourceLayoutId); if(x instanceof z)return x;T=Object.assign({},S,{clientMetadata:new Av([]),fulfilledLayout:x,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});t.push(T)}else if(x=g.u(T.fulfillmentContent.fulfilledLayout,Yz)){if(!Eu(x))return new z("Invalid PlayerBytesSequenceItemAdLayoutRenderer");x=SI0(x,X,w.gp,R,S,T.adSlotMetadata.triggerEvent);if(x instanceof z)return x;T=Object.assign({},S,{clientMetadata:new Av([]),fulfilledLayout:x,adSlotLoggingData:T.adSlotMetadata.adSlotLoggingData});t.push(T)}else return new z("Unable to retrieve a client slot ["+ S.slotType+"] from a given AdSlotRenderer")}return t}; SI0=function(n,q,w,X,P,R){var c={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gp:"core"};q=i3(n,q,w);return q instanceof z?q:(w=g.u(n.renderingContent,Ch))&&w.pings?Object.assign({},c,{renderingContent:n.renderingContent,pM:kt(w.pings)},q,{Dj:ZU(X,P)(c),clientMetadata:new Av([new DG(Hp(R))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData}):new z("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; Kw6=function(n,q,w,X,P,R,c){var k={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gp:"core"};q=i3(n,q,w);if(q instanceof z)return q;w=[];w.push(new DG(Hp(R)));R==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&c!==void 0&&w.push(new W$(c));return Object.assign({},k,{renderingContent:n.renderingContent,pM:new Map([["impression",B6Y(n)]])},q,{Dj:ZU(X,P)(k),clientMetadata:new Av(w),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}; YIm=function(n,q,w,X,P,R,c){if(n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(c=g.u(n.renderingContent,oS))if(c=g.u(c.sidePanel,FKs)){var k={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gp:"core"};q=i3(n,q,w);n=q instanceof z?q:Object.assign({},k,{renderingContent:n.renderingContent,pM:new Map([["impression",c.impressionPings||[]],["resume",c.resumePings||[]]])},q,{Dj:ZU(X,P)(k),clientMetadata:new Av([new DG(Hp(R))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})}else n= new z("DismissablePanelTextPortraitImageRenderer is missing");else n=new z("SqueezebackPlayerSidePanelRenderer is missing");else n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.u(n.renderingContent,ViT)?(c={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gp:"core"},q=i3(n,q,w),n=q instanceof z?q:Object.assign({},c,{renderingContent:n.renderingContent,pM:new Map},q,{Dj:ZU(X,P)(c),clientMetadata:new Av([new DG(Hp(R))]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData})): n=new z("CounterfactualRenderer is missing"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?n=new z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?n=new z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.u(n.renderingContent,bT)?(R={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType, Gp:"core"},q=i3(n,q,w),n=q instanceof z?q:c?Object.assign({},R,{renderingContent:n.renderingContent,pM:new Map},q,{Dj:ZU(X,P)(R),clientMetadata:new Av([new W$(c)]),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData}):new z("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):n=new z("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.u(n.renderingContent,pKx)? (R={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Gp:"core"},q=i3(n,q,w),n=q instanceof z?q:Object.assign({},R,{renderingContent:n.renderingContent,pM:new Map([])},q,{Dj:ZU(X,P)(R),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Av([])})):n=new z("AdsEngagementPanelSectionListViewModel is missing"):n=new z("LayoutType ["+n.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return n}; btz=function(n,q,w,X,P,R,c,k,r,e,f,O){if((O==null?void 0:O.w5)===void 0||(O==null?void 0:O.WG)===void 0)return new z("Cached ad break range from cue point is missing");var H=i3(w,P,X.gp);if(H instanceof z)return H;H={layoutExitMuteTriggers:[],layoutExitNormalTriggers:H.layoutExitNormalTriggers,layoutExitSkipTriggers:[],rM:[],layoutExitUserInputSubmittedTriggers:[]};if(g.u(w.renderingContent,Mx))return n=Qb6(n,q,w,H,P,R,k,r,X.gp,c,O.w5,O.WG),n instanceof z?n:n.Oj===void 0?new z("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:n.layout,nL:[n.Oj]};var U=g.u(w.renderingContent,vs);if(U){if(!dz(w.adLayoutMetadata))return new z("Invalid ad layout metadata");if(!Lh(U))return new z("Invalid sequential layout");U=U.sequentialLayouts.map(function(t){return t.playerBytesAdLayoutRenderer}); n=Zt0(n,q,w,H,U,P,X,R,c,r,k,e,O.w5,O.WG,f);return n instanceof z?n:{layout:n.u6,nL:n.nL}}return new z("Not able to convert a sequential layout")}; Zt0=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t){var V=J7s(P,H,U);if(V instanceof z)return V;var T=[],x=[];V=g.a(V);for(var M=V.next();!M.done;M=V.next()){var h=M.value;M=n;var E=P[h.bU],S=h,nO=q;h=R;var J=c,c0=k,ku=r,Is=e,e3=f,wx=Ub(E);if(wx instanceof z)M=wx;else{var v0={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,Gp:"adapter"};S=zVs(nO,E,S,h);S instanceof z?M=S:(M=Object.assign({},v0,t1,{pM:wx,renderingContent:E.renderingContent,clientMetadata:new Av(S),Dj:ZU(c0,M)(v0), adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData}),M=(E=dE(e3,M,h,J.gp,c0,ku,Is,void 0,!0))?E instanceof z?E:{layout:M,Oj:E}:new z("Expecting associatedInPlayerSlot"))}if(M instanceof z)return M;T.push(M.layout);x.push(M.Oj)}P={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,Gp:"core"};q=[new Ud(Number(w.driftRecoveryMs)),new sd(H),new eH(U),new DG(Hp(q)),new xj(O),new Od({})];t&&q.push(new GZ({}));return{u6:Object.assign({},P,X,{mY:T,pM:new Map,clientMetadata:new Av(q), Dj:ZU(k,n)(P)}),nL:x}}; Qb6=function(n,q,w,X,P,R,c,k,r,e,f,O){if(!lT(w))return new z("Invalid PlayerBytesAdLayoutRenderer");var H=Ub(w);if(H instanceof z)return H;var U={layoutId:w.adLayoutMetadata.layoutId,layoutType:w.adLayoutMetadata.layoutType,Gp:"core"},t=g.u(w.renderingContent,Mx);if(!t)return new z("Invalid rendering content for DAI media layout");t=rE(t,!1);f={WB:t,bU:0,Xz:f,O0:Math.min(f+t.videoLengthSeconds*1E3,O),rh:new lN(0,[t.videoLengthSeconds])};var V;O=(V=Number(w.driftRecoveryMs))!=null?V:void 0;q=zVs(q, w,f,P,O);if(q instanceof z)return q;n=Object.assign({},U,X,{pM:H,renderingContent:w.renderingContent,clientMetadata:new Av(q),Dj:ZU(R,n)(U),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData});return(P=dE(c,n,P,r,R,e,k,void 0,!0))?P instanceof z?P:{layout:n,Oj:P}:new z("Expecting associatedInPlayerSlot")}; A7s=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t,V){var T=i3(w,R,P.gp);if(T instanceof z)return T;if(g.u(w.renderingContent,Mx)){r=Wwm([w],P,r);if(r instanceof z)return r;if(r.length!==1)return new z("Only expected one media layout.");n=N66(n,q,w,T,r[0],void 0,"core",X,R,c,k,e,H,U,t,P.gp,O,void 0,V);return n instanceof z?n:{layout:n.layout,nL:n.Oj?[n.Oj]:[]}}var x=g.u(w.renderingContent,vs);if(x){if(!dz(w.adLayoutMetadata))return new z("Invalid ad layout metadata");if(!Lh(x))return new z("Invalid sequential layout"); x=x.sequentialLayouts.map(function(M){return M.playerBytesAdLayoutRenderer}); n=nZY(n,q,w.adLayoutMetadata,T,x,X,R,P,r,c,k,e,f,O,t,H,U,V);return n instanceof z?n:{layout:n.u6,nL:n.nL}}return new z("Not able to convert a sequential layout")}; nZY=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U,t,V,T,x){var M=new Cd({current:null}),h=Wwm(P,k,r);if(h instanceof z)return h;r=[];for(var E=[],S=void 0,nO=0;nO0&&(nO.push(x),nO.push(new Go(S.adPodSkipTarget)));(R=e.get(S.externalVideoId))&&nO.push(new mH(R));R=nO}else R= new z("Invalid vod media renderer")}if(R instanceof z)return R;n=Object.assign({},c,X,{pM:h,renderingContent:w.renderingContent,clientMetadata:new Av(R),Dj:ZU(f,n)(c),adLayoutLoggingData:w.adLayoutMetadata.adLayoutLoggingData});w=g.u(w.renderingContent,Mx);if(!w||!$z(w))return new z("Invalid meida renderer");O=Pp(O,w.externalVideoId);O.instreamVideoAdRenderer=w;O.VQ="AD_PLACEMENT_KIND_START";return U?(r=dE(H,n,r,V,f,T,t,x,!1),r instanceof z?r:X$u(n.layoutId,H)&&r?{layout:Object.assign({},n,{clientMetadata:new Av(R.concat(new SG(r)))})}: {layout:n,Oj:r}):{layout:n}}; qr6=function(n,q,w,X,P){if(!lT(q))return new z("Invalid PlayerBytesAdLayoutRenderer");var R=g.u(q.renderingContent,Sj);if(!R||R.durationMilliseconds===void 0)return new z("Invalid endcap renderer");var c={layoutId:q.adLayoutMetadata.layoutId,layoutType:q.adLayoutMetadata.layoutType,Gp:"adapter"};X=[new aZ(R.durationMilliseconds),new TZ({impressionCommands:void 0,abandonCommands:R.abandonCommands?[{commandExecutorCommand:R.abandonCommands}]:void 0,completeCommands:R.completionCommands}),new DG(X), new nN("LAYOUT_TYPE_ENDCAP")];if(P){X.push(new la(P.rh.adPodIndex-1));X.push(new fN(P.rh.adPodIndex));var k;X.push(new Go((k=P.adPodSkipTarget)!=null?k:-1))}return Object.assign({},c,t1,{renderingContent:q.renderingContent,clientMetadata:new Av(X),pM:R.skipPings?new Map([["skip",R.skipPings]]):new Map,Dj:ZU(w,n)(c),adLayoutLoggingData:q.adLayoutMetadata.adLayoutLoggingData})}; dE=function(n,q,w,X,P,R,c,k,r){n=n.filter(function(O){return O.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&O.adSlotMetadata.triggeringSourceLayoutId===q.layoutId}); if(n.length!==0){if(n.length!==1)return new z("Invalid InPlayer slot association for the given PlayerBytes layout");n=n[0];c=oeO(n,R,w,X,c);if(c instanceof z)return c;var e;R={slotId:n.adSlotMetadata.slotId,slotType:n.adSlotMetadata.slotType,slotPhysicalPosition:(e=n.adSlotMetadata.slotPhysicalPosition)!=null?e:1,Gp:"core",slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers};e=g.u(n.fulfillmentContent.fulfilledLayout, Mis);if(!e||!a66(e))return new z("Invalid InPlayerAdLayoutRenderer");c={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Gp:"core"};w=i3(e,w,X);if(w instanceof z)return w;X=[];var f=e.adLayoutMetadata.layoutType;r&&X.push(new Od({}));if(f==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")X.push.apply(X,g.D(Pas(n.adSlotMetadata.triggerEvent,q)));else if(f==="LAYOUT_TYPE_ENDCAP"||f==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){X.push(new DG(Hp(n.adSlotMetadata.triggerEvent))); if(f==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new z("Cannot parse endcap layout since AdUxReadyApi is not provided");k&&X.push(k)}else return new z("Not able to parse an SDF InPlayer layout");P=Object.assign({},c,w,{renderingContent:e.renderingContent,pM:new Map,Dj:ZU(P,R)(c),clientMetadata:new Av(X),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},R,{fulfilledLayout:P,clientMetadata:new Av([])})}}; Pas=function(n,q){var w=[];w.push(new DG(Hp(n)));w.push(new W$(q.layoutId));(n=Yj(q.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&w.push(new XA(n));(n=Yj(q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&w.push(new Cd(n));(n=Yj(q.clientMetadata,"metadata_type_remote_slots_data"))&&w.push(new mH(n));(n=Yj(q.clientMetadata,"metadata_type_ad_next_params"))&&w.push(new pd(n));(n=Yj(q.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&w.push(new To(n));(n= Yj(q.clientMetadata,"metadata_type_ad_pod_info"))&&w.push(new hr(n));(q=Yj(q.clientMetadata,"metadata_type_ad_video_id"))&&w.push(new Er(q));return w}; w$T=function(n,q,w,X,P,R){function c(e){return gE(q,e)} var k=X.DS.inPlayerSlotId,r={layoutId:X.DS.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Gp:"core"};w={slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:new bN(c,n),slotFulfillmentTriggers:[new wz(c,k)],slotExpirationTriggers:[new XI(c,k),new Nd(c,w)]};n=Object.assign({},r,{layoutExitNormalTriggers:[new YJ(c,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],pM:new Map,clientMetadata:new Av([new B$(X.DS), new DG(X.adPlacementConfig),P]),Dj:ZU(R,w)(r),adLayoutLoggingData:X.DS.adLayoutLoggingData});return Object.assign({},w,{clientMetadata:new Av([new tv(n)])})}; X$u=function(n,q){q=g.a(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var X=g.u(w.fulfillmentContent.fulfilledLayout,A$);if(X&&(X=g.u(X.renderingContent,oS))&&X.associatedPlayerBytesLayoutId===n)return w}}; oeO=function(n,q,w,X,P){var R=RuO(qk(n.slotEntryTrigger,w,X),P,n,q);if(R instanceof z)return R;for(var c=[],k=g.a(n.slotFulfillmentTriggers),r=k.next();!r.done;r=k.next()){r=qk(r.value,w,X);if(r instanceof z)return r;c.push(r)}c=crY(c,P,n,q);q=[];n=g.a(n.slotExpirationTriggers);for(P=n.next();!P.done;P=n.next()){P=qk(P.value,w,X);if(P instanceof z)return P;q.push(P)}return{slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:q}}; RuO=function(n,q,w,X){return q&&w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n instanceof G0?new hG(function(P){return gE(X,P)},w.adSlotMetadata.slotId):n}; crY=function(n,q,w,X){return q&&w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?n.map(function(P){return P instanceof wz?new cs(function(R){return gE(X,R)},w.adSlotMetadata.slotId):P}):n}; i3=function(n,q,w){for(var X=[],P=g.a(n.layoutExitNormalTriggers||[]),R=P.next();!R.done;R=P.next()){R=qk(R.value,q,w);if(R instanceof z)return R;X.push(R)}P=[];R=g.a(n.layoutExitSkipTriggers||[]);for(var c=R.next();!c.done;c=R.next()){c=qk(c.value,q,w);if(c instanceof z)return c;P.push(c)}R=[];c=g.a(n.layoutExitMuteTriggers||[]);for(var k=c.next();!k.done;k=c.next()){k=qk(k.value,q,w);if(k instanceof z)return k;R.push(k)}c=[];n=g.a(n.layoutExitUserInputSubmittedTriggers||[]);for(k=n.next();!k.done;k= n.next()){k=qk(k.value,q,w);if(k instanceof z)return k;c.push(k)}return{layoutExitNormalTriggers:X,layoutExitSkipTriggers:P,layoutExitMuteTriggers:R,layoutExitUserInputSubmittedTriggers:c,rM:[]}}; Ub=function(n){var q=g.u(n.renderingContent,Mx);if(q==null?0:q.pings)return kt(q.pings);n=g.u(n.renderingContent,Sj);return(n==null?0:n.skipPings)?new Map([["skip",n.skipPings]]):new Map}; zVs=function(n,q,w,X,P){q=g.u(q.renderingContent,Mx);if(!q)return new z("Invalid rendering content for DAI media layout");n=[new oX(X),new IZ(w.WB.videoLengthSeconds),new kj(w.WB.playerVars),new sd(w.Xz),new eH(w.O0),new fN(w.bU),new DG(Hp(n)),new Er(w.WB.adVideoId),new hr(w.rh),q.sodarExtensionData&&new jH(q.sodarExtensionData),new XA({current:null}),new Od({}),new LN(IC(q.pings))].filter(EeO);P!==void 0&&n.push(new Ud(P));return n}; J7s=function(n,q,w){n=n.map(function(r){return rE(g.u(r.renderingContent,Mx),!1)}); var X=n.map(function(r){return r.videoLengthSeconds}),P=X.map(function(r,e){return new lN(e,X)}),R=q,c=w,k=[]; n.forEach(function(r,e){c=Math.min(R+r.videoLengthSeconds*1E3,w);wE(r.playerVars,P[e]);k.push({WB:r,Xz:R,O0:c,bU:e,rh:P[e]});R=c}); return k}; Wwm=function(n,q,w){for(var X=[],P=g.a(n),R=P.next();!R.done;R=P.next())if(R=g.u(R.value.renderingContent,Mx)){if(!$z(R))return new z("Invalid vod media renderer");X.push(IG6(R))}P=X.map(function(O){return O.FP}); R=[];for(var c=0,k=0;k0?Is:-1;else if(v0= g.u(wx,Sj)){wx=tGO(n,q,w,v0,R,V,k,J,Is);if(wx instanceof z){U=wx;break a}wx=wx(H);T.push(wx.H_);x=[].concat(g.D(wx.nh),g.D(x));M=[].concat(g.D(wx.CO),g.D(M));wx.Oj&&(ku=[wx.Oj].concat(g.D(ku)))}else if(v0=g.u(wx,DR)){if(U===void 0){U=new z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v0});break a}wx=ma3(n,q,w,R,v0,nO,k,U,V,MB(f,"supports_multi_step_on_desktop"));if(wx instanceof z){U=wx;break a}wx=wx(H);T.push(wx.H_);wx.Oj&&ku.push(wx.Oj); x=[].concat(g.D(wx.nh),g.D(x));M=[].concat(g.D(wx.CO),g.D(M));h=[].concat(g.D(wx.vK),g.D(h));E=[].concat(g.D(wx.M4),g.D(E));S=[nO].concat(g.D(S))}else if(wx=g.u(wx,h$)){wx=yrY(n,q,w,R,wx,nO,k,V);if(wx instanceof z){U=wx;break a}wx=wx(H);T.push(wx.H_);wx.Oj&&ku.push(wx.Oj);M=[].concat(g.D(wx.CO),g.D(M))}else{U=new z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}U={mY:T,layoutExitSkipTriggers:x,layoutExitUserInputSubmittedTriggers:h,rM:E,layoutExitMuteTriggers:M,AP:S,nL:ku}}}else a:if(V= L5z(X,w,f),V instanceof z)U=V;else{T=0;x=[];M=[];h=[];E=[];S=[];nO=[];J=new P_({current:null});c0=new Cd({current:null});ku=!1;e3=[];Is=-1;t=g.a(X);for(wx=t.next();!wx.done;wx=t.next())if(wx=wx.value,g.u(wx,xz)){wx=daO(q,w,g.u(wx,xz),k);if(wx instanceof z){U=wx;break a}wx=wx(H);x.push(wx.H_);M=[].concat(g.D(wx.nh),g.D(M));h=[].concat(g.D(wx.CO),g.D(h));wx.Oj&&(e3=[wx.Oj].concat(g.D(e3)))}else if(g.u(wx,Mx)){Is=jM(g.u(wx,Mx),w,f);if(Is instanceof b1){U=new z(Is);break a}wx=new lN(T,V);wx=MGz(q,Is.layoutId, Is.n1,w,sb(Is.playerVars,Is.MZ,c,e,wx),Is.FP,R,wx,k(H),c0,r.get(Is.n1.externalVideoId),void 0,O);T++;x.push(wx.H_);M=[].concat(g.D(wx.nh),g.D(M));h=[].concat(g.D(wx.CO),g.D(h));ku||(nO.push(c0),ku=!0);Is=(Is=Is.n1.adPodSkipTarget)&&Is>0?Is:-1}else if(g.u(wx,Sj)){wx=tGO(n,q,w,g.u(wx,Sj),R,T,k,c0,Is);if(wx instanceof z){U=wx;break a}wx=wx(H);x.push(wx.H_);M=[].concat(g.D(wx.nh),g.D(M));h=[].concat(g.D(wx.CO),g.D(h));wx.Oj&&(e3=[wx.Oj].concat(g.D(e3)))}else if(g.u(wx,DR)){if(U===void 0){U=new z("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.u(wx,DR)});break a}wx=ma3(n,q,w,R,g.u(wx,DR),J,k,U,T,MB(f,"supports_multi_step_on_desktop"));if(wx instanceof z){U=wx;break a}wx=wx(H);x.push(wx.H_);wx.Oj&&e3.push(wx.Oj);M=[].concat(g.D(wx.nh),g.D(M));h=[].concat(g.D(wx.CO),g.D(h));E=[].concat(g.D(wx.vK),g.D(E));S=[].concat(g.D(wx.M4),g.D(S));nO=[J].concat(g.D(nO))}else if(g.u(wx,h$)){wx=yrY(n,q,w,R,g.u(wx,h$),J,k,T);if(wx instanceof z){U=wx;break a}wx=wx(H);x.push(wx.H_);wx.Oj&&e3.push(wx.Oj);h=[].concat(g.D(wx.CO),g.D(h))}else{U= new z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}U={mY:x,layoutExitSkipTriggers:M,layoutExitUserInputSubmittedTriggers:E,rM:S,layoutExitMuteTriggers:h,AP:nO,nL:e3}}U instanceof z?H=U:(S=H.slotId,V=U.mY,T=U.layoutExitSkipTriggers,x=U.layoutExitMuteTriggers,M=U.layoutExitUserInputSubmittedTriggers,h=U.AP,H=k(H),E=P?P.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",S=P?P.layoutId:xS(q.X.get(),E,S),nO={layoutId:S,layoutType:E,Gp:"core"},H={layout:{layoutId:S,layoutType:E,pM:new Map, layoutExitNormalTriggers:[new W4(q.N,S)],layoutExitSkipTriggers:T,layoutExitMuteTriggers:x,layoutExitUserInputSubmittedTriggers:M,rM:[],Gp:"core",clientMetadata:new Av([new RZ(V)].concat(g.D(h))),Dj:H(nO)},nL:U.nL});return H}}; L5z=function(n,q,w){var X=[];n=g.a(n);for(var P=n.next();!P.done;P=n.next())if(P=P.value,g.u(P,Mx)){P=jM(g.u(P,Mx),q,w);if(P instanceof b1)return new z(P);X.push(P.FP)}return X}; Dax=function(n,q,w,X,P,R,c,k){if(!Cks(w,k===void 0?!1:k))return new z("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:w});var r=cp(w);if(r<=0)return new z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:w});var e=new P_({current:null}),f=kMh(n,q,w,e,X,R,c);return xaO(n,X,R,r,P,function(O,H){var U=O.slotId,t=Ik(w);O=c(O);var V,T=(V=VH(q,X,w.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?V: xS(q.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",U);U={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Gp:"core"};V=f(T,H);var x=Yj(V.clientMetadata,"metadata_type_fulfilled_layout");x||R0("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");t=[new DG(X),new aZ(r),new TZ(t),e];x&&t.push(new nN(x.layoutType));return{UK:{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",pM:new Map,layoutExitNormalTriggers:[new W4(q.N,T)],layoutExitSkipTriggers:[new qx(q.N, H.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new kz(q.N,H.layoutId)],rM:[],Gp:"core",clientMetadata:new Av(t),Dj:O(U)},BP:V}})}; hu6=function(n){if(!bkO(n))return!1;var q=g.u(n.adVideoStart,vp);return q?g.u(n.linearAd,Mx)&&TD(q)?!0:(R0("Invalid Sandwich with notify"),!1):!1}; lG6=function(n){if(n.linearAds==null)return!1;n=g.u(n.adStart,vp);return n?TD(n)?!0:(R0("Invalid LASR with notify"),!1):!1}; Goh=function(n){if(!o56(n))return!1;n=g.u(n.adStart,vp);return n?TD(n)?!0:(R0("Invalid LASR with notify"),!1):!1}; LP=function(n,q,w,X,P,R,c,k,r,e){this.W=n;this.X=q;this.N=w;this.MP=X;this.yu=P;this.C=R;this.cW=c;this.FJ=k;this.ZF=r;this.loadPolicy=e===void 0?1:e}; Nx=function(n,q,w,X,P,R,c,k,r,e){var f=[];if(q.length===0&&X.length===0&&w.length===0)return f;q=q.filter(FI);var O=w.filter(hn3),H=X.filter(FI),U=new Map,t=CP6(q),V=w.some(function(ls){var ql;return(ls==null?void 0:(ql=ls.adSlotMetadata)==null?void 0:ql.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),T=w.some(function(ls){var ql; return(ls==null?void 0:(ql=ls.adSlotMetadata)==null?void 0:ql.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),x=w.some(function(ls){var ql; return(ls==null?void 0:(ql=ls.adSlotMetadata)==null?void 0:ql.slotType)==="SLOT_TYPE_IN_PLAYER"}),M=w.some(function(ls){var ql,o5; return(ls==null?void 0:(ql=ls.adSlotMetadata)==null?void 0:ql.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(ls==null?void 0:(o5=ls.adSlotMetadata)==null?void 0:o5.slotType)==="SLOT_TYPE_ABOVE_FEED"}); w=w.some(function(ls){var ql;return(ls==null?void 0:(ql=ls.adSlotMetadata)==null?void 0:ql.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(V||T||x||M||w)e=uNT(O,q,k,P,t,n.yu.get(),n.loadPolicy,U,n.MP.get(),n.W.get(),x,c,r,e),e instanceof z?R0(e,void 0,void 0,{contentCpn:P}):f.push.apply(f,g.D(e));e=g.a(q);for(w=e.next();!w.done;w=e.next())w=w.value,T=Ca3(n,U,w,P,R,c,V,k,t,r,O),T instanceof z?R0(T,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:P,daiEnabled:c}):f.push.apply(f,g.D(T));EZy(n.MP.get())||(R=oZY(n,H,P,k,t,U),f.push.apply(f,g.D(R)));if(n.C===null||c&&!k.A3){var h, E,S;n=k.T9&&q.length===1&&((h=q[0].config)==null?void 0:(E=h.adPlacementConfig)==null?void 0:E.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((S=q[0].renderer)==null?void 0:S.adBreakServiceRenderer);if(!f.length&&!n){var nO,J,c0,ku;R0("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:P,"first APR kind":(nO=q[0])==null?void 0:(J=nO.config)==null?void 0:(c0=J.adPlacementConfig)==null?void 0:c0.kind,renderer:(ku=q[0])==null?void 0: ku.renderer})}return f}h=X.filter(FI);f.push.apply(f,g.D(RVz(U,h,n.X.get(),n.C,P,V)));if(!f.length){var Is,e3,wx,v0;R0("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":q.length,contentCpn:P,daiEnabled:c.toString(),"first APR kind":(Is=q[0])==null?void 0:(e3=Is.config)==null?void 0:(wx=e3.adPlacementConfig)==null?void 0:wx.kind,renderer:(v0=q[0])==null?void 0:v0.renderer})}return f}; oZY=function(n,q,w,X,P,R){function c(H){return ZU(n.yu.get(),H)} var k=[];q=g.a(q);for(var r=q.next();!r.done;r=q.next()){r=r.value;var e=r.renderer,f=e.sandwichedLinearAdRenderer,O=e.linearAdSequenceRenderer;f&&hu6(f)?(R0("Found AdNotify with SandwichedLinearAdRenderer"),O=g.u(f.adVideoStart,vp),f=g.u(f.linearAd,Mx),Xb(R,e,r.config.adPlacementConfig.kind),e=void 0,O=Fw3((e=O)==null?void 0:e.layout.layoutId,n.X.get(),n.N.get(),r.config.adPlacementConfig,r.adSlotLoggingData,f,w,X,c,P,n.loadPolicy,n.MP.get(),n.yu.get()),O instanceof z?R0(O):k.push.apply(k,g.D(O))): O&&(!O.adLayoutMetadata&&lG6(O)||O.adLayoutMetadata&&Goh(O))&&(R0("Found AdNotify with LinearAdSequenceRenderer"),Xb(R,e,r.config.adPlacementConfig.kind),e=void 0,f=aGm((e=g.u(O.adStart,vp))==null?void 0:e.layout.layoutId,n.X.get(),n.N.get(),r.config.adPlacementConfig,r.adSlotLoggingData,O.linearAds,dz(O.adLayoutMetadata)?O.adLayoutMetadata:void 0,w,X,c,P,n.loadPolicy,n.MP.get()),f instanceof z?R0(f):k.push.apply(k,g.D(f)))}return k}; Ca3=function(n,q,w,X,P,R,c,k,r,e,f){function O(x){return ZU(n.yu.get(),x)} var H=w.renderer,U=w.config.adPlacementConfig,t=U.kind,V=w.adSlotLoggingData,T=k.A3&&t==="AD_PLACEMENT_KIND_START";T=R&&!T;if(H.adsEngagementPanelRenderer!=null)return Rk(q,w.elementId,t,H.adsEngagementPanelRenderer.isContentVideoEngagementPanel,H.adsEngagementPanelRenderer.adVideoId,H.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,U,V,function(x,M,h,E){var S=n.N.get(),nO=x.slotId,J=H.adsEngagementPanelRenderer;x=ZU(n.yu.get(),x);return Mk(S,nO,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new aX(J),M,h,J.impressionPings,x,H.adsEngagementPanelRenderer.adLayoutLoggingData,E)}),[]; if(H.adsEngagementPanelLayoutViewModel)return Rk(q,w.elementId,t,H.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,H.adsEngagementPanelLayoutViewModel.adVideoId,H.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,V,function(x,M,h,E){var S=n.N.get(),nO=x.slotId,J=H.adsEngagementPanelLayoutViewModel;x=ZU(n.yu.get(),x);return xl(S,nO,"LAYOUT_TYPE_PANEL",new VZ(J),M,h,x,H.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,E)}),[]; if(H.actionCompanionAdRenderer!=null){if(H.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return nez(n.X.get(),n.C,n.N.get(),H.actionCompanionAdRenderer,U,V,X,O);Rk(q,w.elementId,t,H.actionCompanionAdRenderer.isContentVideoCompanion,H.actionCompanionAdRenderer.adVideoId,H.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,U,V,function(x,M,h,E){var S=n.N.get(),nO=x.slotId,J=H.actionCompanionAdRenderer;x=ZU(n.yu.get(),x);return Mk(S,nO,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new m5(J),M,h,J.impressionPings,x,H.actionCompanionAdRenderer.adLayoutLoggingData,E)})}else if(H.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(H.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return qI6(n.X.get(),n.C,n.N.get(),H.topBannerImageTextIconButtonedLayoutViewModel,U,V,X,O); Rk(q,w.elementId,t,H.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,H.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,H.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,V,function(x,M,h,E){var S=n.N.get(),nO=x.slotId,J=H.topBannerImageTextIconButtonedLayoutViewModel;x=ZU(n.yu.get(),x);return xl(S,nO,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new yZ(J),M,h,x,H.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,E)})}else if(H.imageCompanionAdRenderer)Rk(q, w.elementId,t,H.imageCompanionAdRenderer.isContentVideoCompanion,H.imageCompanionAdRenderer.adVideoId,H.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,U,V,function(x,M,h,E){var S=n.N.get(),nO=x.slotId,J=H.imageCompanionAdRenderer; x=ZU(n.yu.get(),x);return Mk(S,nO,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new $Z(J),M,h,J.impressionPings,x,H.imageCompanionAdRenderer.adLayoutLoggingData,E)}); else if(H.bannerImageLayoutViewModel)Rk(q,w.elementId,t,H.bannerImageLayoutViewModel.isContentVideoCompanion,H.bannerImageLayoutViewModel.adVideoId,H.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,U,V,function(x,M,h,E){var S=n.N.get(),nO=x.slotId,J=H.bannerImageLayoutViewModel;x=ZU(n.yu.get(),x);return xl(S,nO,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new v$(J),M,h,x,H.bannerImageLayoutViewModel.adLayoutLoggingData,E)}); else if(H.shoppingCompanionCarouselRenderer)Rk(q,w.elementId,t,H.shoppingCompanionCarouselRenderer.isContentVideoCompanion,H.shoppingCompanionCarouselRenderer.adVideoId,H.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,U,V,function(x,M,h,E){var S=n.N.get(),nO=x.slotId,J=H.shoppingCompanionCarouselRenderer;x=ZU(n.yu.get(),x);return Mk(S,nO,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Ld(J),M,h,J.impressionPings,x,H.shoppingCompanionCarouselRenderer.adLayoutLoggingData,E)}); else if(H.adBreakServiceRenderer){if(!WK6(w))return[];if(t==="AD_PLACEMENT_KIND_PAUSE")return znO(n.X.get(),U,V,w.renderer.adBreakServiceRenderer,X);if(t!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&t!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return JZx(n.X.get(),U,V,w.renderer.adBreakServiceRenderer,X,P,R);k.T9||R0("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:t,adPlacementConfig:U,daiEnabledForContentVideo:String(R),isServedFromLiveInfra:String(k.T9),clientPlaybackNonce:k.clientPlaybackNonce}); if(t==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!n.cW)return new z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!n.ZF)return new z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");n.ZF.sW({adPlacementRenderer:w,contentCpn:X,gp:P});P=n.cW.get().getCurrentTimeSec(1,!1);return bdy(n.X.get(),w.renderer.adBreakServiceRenderer,U,P,X,V,R)}if(!n.FJ)return new z("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); n.FJ.sW({adPlacementRenderer:w,contentCpn:X,gp:P})}else{if(H.clientForecastingAdRenderer)return sX6(n.X.get(),n.N.get(),U,V,H.clientForecastingAdRenderer,X,P,O);if(H.invideoOverlayAdRenderer)return idO(n.X.get(),n.N.get(),U,V,H.invideoOverlayAdRenderer,X,P,O);if(H.instreamAdPlayerOverlayRenderer)return fGz(n.X.get(),n.N.get(),U,V,H.instreamAdPlayerOverlayRenderer,X,O);if((H.linearAdSequenceRenderer||H.instreamVideoAdRenderer)&&T)return mOO(n.X.get(),n.N.get(),w,X,O,e,!n.MP.get().T.B().Z("html5_override_ad_video_length_killswitch")); if(H.linearAdSequenceRenderer&&!T){if(c)return[];Xb(q,H,t);if(H.linearAdSequenceRenderer.adLayoutMetadata){if(!o56(H.linearAdSequenceRenderer))return new z("Received invalid LinearAdSequenceRenderer.")}else if(H.linearAdSequenceRenderer.linearAds==null)return new z("Received invalid LinearAdSequenceRenderer.");if(g.u(H.linearAdSequenceRenderer.adStart,vp)){R0("Found AdNotify in LinearAdSequenceRenderer");w=g.u(H.linearAdSequenceRenderer.adStart,vp);if(!mDY(w))return new z("Invalid AdMessageRenderer."); R=H.linearAdSequenceRenderer.linearAds;return VGY(n.W.get(),n.X.get(),n.N.get(),n.yu.get(),U,V,w,dz(H.linearAdSequenceRenderer.adLayoutMetadata)?H.linearAdSequenceRenderer.adLayoutMetadata:void 0,R,X,P,k,O,r,n.loadPolicy,n.MP.get())}return vZh(n.X.get(),n.N.get(),U,V,H.linearAdSequenceRenderer.linearAds,dz(H.linearAdSequenceRenderer.adLayoutMetadata)?H.linearAdSequenceRenderer.adLayoutMetadata:void 0,X,P,k,O,r,n.loadPolicy,n.MP.get(),f)}if(!H.remoteSlotsRenderer||R){if(H.instreamVideoAdRenderer&& !T){if(c)return[];Xb(q,H,t);return xOO(n.X.get(),n.N.get(),U,V,H.instreamVideoAdRenderer,X,P,k,O,r,n.loadPolicy,n.MP.get(),n.yu.get(),f)}if(H.instreamSurveyAdRenderer)return Dax(n.X.get(),n.N.get(),H.instreamSurveyAdRenderer,U,V,X,O,MB(n.MP.get(),"supports_multi_step_on_desktop"));if(H.sandwichedLinearAdRenderer!=null)return bkO(H.sandwichedLinearAdRenderer)?g.u(H.sandwichedLinearAdRenderer.adVideoStart,vp)?(R0("Found AdNotify in SandwichedLinearAdRenderer"),w=g.u(H.sandwichedLinearAdRenderer.adVideoStart, vp),mDY(w)?(R=g.u(H.sandwichedLinearAdRenderer.linearAd,Mx))?$O0(w,R,U,n.W.get(),n.X.get(),n.N.get(),n.yu.get(),V,X,P,k,O,r,n.loadPolicy,n.MP.get()):new z("Missing IVAR from Sandwich"):new z("Invalid AdMessageRenderer.")):vZh(n.X.get(),n.N.get(),U,V,[H.sandwichedLinearAdRenderer.adVideoStart,H.sandwichedLinearAdRenderer.linearAd],void 0,X,P,k,O,r,n.loadPolicy,n.MP.get()):new z("Received invalid SandwichedLinearAdRenderer.");if(H.videoAdTrackingRenderer!=null)return rr0(n.X.get(),n.N.get(),H.videoAdTrackingRenderer, U,V,X,P,k.FQ,O)}}return[]}; DT=function(n,q,w,X,P,R,c,k){g.A.call(this);var r=this;this.X=n;this.C=q;this.Gz=X;this.cW=P;this.MP=R;this.hg=c;this.x4=k;this.N=null;w.get().addListener(this);this.addOnDisposeCallback(function(){w.zp()||w.get().removeListener(r)}); X.get().addListener(this);this.addOnDisposeCallback(function(){X.zp()||X.get().removeListener(r)})}; Gz=function(n,q,w){var X=n.cW.get().getCurrentTimeSec(1,!1);n.MP.get().T.B().uL()&&fl(n.hg.get(),"sdai","onopp.1;evt."+w.event+";start."+w.startSecs.toFixed(3)+";d."+w.lx.toFixed(3));z$(n.X.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var P=n.C.get(),R=q.adPlacementRenderer.renderer.adBreakServiceRenderer,c=q.contentCpn,k=q.adPlacementRenderer.adSlotLoggingData;h1(n.MP.get());var r=n.hg;var e=P.MP.get();e=g.Jv(e.T.B().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var f=P.MP.get();var O=g.Jv(f.T.B().experiments,"min_prefetch_offset_sec_for_livestream_optimization");f=w.startSecs*1E3;f={A5:new HN(f,f+w.lx*1E3),f9:!1,cueProcessedMs:X*1E3};var H=w.startSecs+w.lx;if(X===0)f.iJ=new HN(0,H*1E3);else{O=w.startSecs-O;var U=O-X;f.iJ=U<=0?new HN(O*1E3,H*1E3):new HN(Math.floor(X+Math.random()*Math.min(U,e))*1E3,H*1E3)}R=nP(P,R,c,f,k,[new c_(w)]);l3(P.MP.get())&&fl(r.get(),"abrsm","cpi."+w.identifier+";cps."+w.startSecs+";cpd."+w.lx+";cts."+X+";rbf."+f.iJ.start);r.get().T.uq(w.startSecs- X,f.iJ.start/1E3-X);return[R]})}; CP=function(n){var q,w=(q=Yj(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:q.current;if(!w)return null;q=Yj(n.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var X=n.layoutId,P=Yj(n.clientMetadata,"metadata_type_content_cpn"),R=Yj(n.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c=Yj(n.clientMetadata,"metadata_type_player_overlay_layout_renderer"),k=Yj(n.clientMetadata,"metadata_type_player_underlay_renderer"),r=Yj(n.clientMetadata, "metadata_type_ad_placement_config"),e=Yj(n.clientMetadata,"metadata_type_video_length_seconds");var f=CN(n.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Yj(n.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):CN(n.clientMetadata,"metadata_type_layout_enter_ms")&&CN(n.clientMetadata,"metadata_type_layout_exit_ms")?(Yj(n.clientMetadata,"metadata_type_layout_exit_ms")-Yj(n.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rj:X,contentCpn:P,ZK:w,oh:q,instreamAdPlayerOverlayRenderer:R, playerOverlayLayoutRenderer:c,instreamAdPlayerUnderlayRenderer:k,adPlacementConfig:r,videoLengthSeconds:e,Aw:f,inPlayerLayoutId:Yj(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yj(n.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; Yrx=function(n,q){return ArT(n,q)}; K53=function(n,q){q=ArT(n,q);if(!q)return null;var w;q.Aw=(w=Yj(n.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:w.adBreakRemainingLengthSeconds;return q}; ArT=function(n,q){var w,X=(w=Yj(n.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:w.current;if(!X)return null;w=r5s(n,q);return{wR:k3x(n,q),adPlacementConfig:Yj(n.clientMetadata,"metadata_type_ad_placement_config"),hc:w,contentCpn:Yj(n.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Yj(n.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Yj(n.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Yj(n.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Aw:void 0,ZK:X,Rj:n.layoutId,videoLengthSeconds:Yj(n.clientMetadata,"metadata_type_video_length_seconds")}}; Eb=function(n,q,w,X,P,R,c,k,r){g.A.call(this);this.W=n;this.D=q;this.K=w;this.C=X;this.N=P;this.X=R;this.yu=c;this.MP=k;this.rl=r;this.Y8=!0}; Srz=function(n,q,w){return lZO(n.N.get(),q.contentCpn,q.Rj,function(X){return GMO(n.X.get(),X.slotId,w,q.adPlacementConfig,q.Rj,ZU(n.yu.get(),X))})}; ok=function(n,q,w,X,P,R,c,k){g.A.call(this);this.X=n;this.N=q;this.C=w;this.MP=X;this.W=P;this.rl=R;this.cW=c;this.ai=k}; b3=function(n){g.A.call(this);this.N=n}; z$=function(n,q,w,X){n.N().Tw(q,X);w=w();n=n.N();n.FF.pg("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",q,X,w);q=g.a(w);for(w=q.next();!w.done;w=q.next())a:{X=n;w=w.value;X.FF.xS("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",w);X.FF.xS("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",w);try{var P=X.N;if(g.LV(w.slotId))throw new z("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(PL(P,w))throw new z("Duplicate registration for slot.",{slotId:w.slotId,slotEntryTriggerType:w.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!P.lI.t4.has(w.slotType))throw new z("No fulfillment adapter factory registered for slot of type: "+w.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!P.lI.jw.has(w.slotType))throw new z("No SlotAdapterFactory registered for slot of type: "+w.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");mk(P,"TRIGGER_CATEGORY_SLOT_ENTRY",w.slotEntryTrigger?[w.slotEntryTrigger]:[]);mk(P,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", w.slotFulfillmentTriggers);mk(P,"TRIGGER_CATEGORY_SLOT_EXPIRATION",w.slotExpirationTriggers);var R=X.N,c=w.slotType+"_"+w.slotPhysicalPosition,k=HL(R,c);if(PL(R,w))throw new z("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");k.set(w.slotId,new qkx(w));R.N.set(c,k)}catch(c0){c0 instanceof z&&c0.wd?(X.FF.MY("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",c0.wd,w),R0(c0,w,void 0,void 0,c0.Iu)):(X.FF.MY("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", w),R0(c0,w));break a}PL(X.N,w).D=!0;try{var r=X.N,e=PL(r,w),f=w.slotEntryTrigger,O=r.lI.N1.get(f.triggerType);O&&(O.s2("TRIGGER_CATEGORY_SLOT_ENTRY",f,w,null),e.vW.set(f.triggerId,O));for(var H=g.a(w.slotFulfillmentTriggers),U=H.next();!U.done;U=H.next()){var t=U.value,V=r.lI.N1.get(t.triggerType);V&&(V.s2("TRIGGER_CATEGORY_SLOT_FULFILLMENT",t,w,null),e.qP.set(t.triggerId,V))}for(var T=g.a(w.slotExpirationTriggers),x=T.next();!x.done;x=T.next()){var M=x.value,h=r.lI.N1.get(M.triggerType);h&&(h.s2("TRIGGER_CATEGORY_SLOT_EXPIRATION", M,w,null),e.L.set(M.triggerId,h))}var E=r.lI.t4.get(w.slotType).get().build(r.C,w);e.G=E;var S=r.lI.jw.get(w.slotType).get().build(r.K,w);S.init();e.X=S}catch(c0){c0 instanceof z&&c0.wd?(X.FF.MY("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",c0.wd,w),R0(c0,w,void 0,void 0,c0.Iu)):(X.FF.MY("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",w),R0(c0,w));qB(X,w,!0);break a}X.FF.xS("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",w);X.N.uP(w);for(var nO=g.a(X.X),J=nO.next();!J.done;J= nO.next())J.value.uP(w);Ig(X,w)}}; A1=function(n,q,w,X,P){g.A.call(this);var R=this;this.X=n;this.C=q;this.pG=w;this.context=P;this.N=new Map;X.get().addListener(this);this.addOnDisposeCallback(function(){X.zp()||X.get().removeListener(R)})}; KKO=function(n,q){var w=0x8000000000000,X=0,P=0x8000000000000;var R=g.a(q.slotFulfillmentTriggers);for(var c=R.next();!c.done;c=R.next())if(c=c.value,c instanceof Qn){var k=c.N.start;w=Math.min(w,k);X=Math.max(X,c.N.end);c.visible&&(P=Math.min(P,k))}else R0("Found unexpected fulfillment trigger for throttled slot.",q,null,{fulfillmentTrigger:c});R=w;P=P<0x8000000000000&&w0&&f4(n.D(),w)}; c7=function(n,q,w,X,P){for(var R=[],c=g.a(n.lL.values()),k=c.next();!k.done;k=c.next()){var r=k=k.value,e=r.trigger;r=r.slot;if(e.triggerType===q){if(e instanceof SD||e instanceof uN||e instanceof ZB){if(P&&e.breakDurationMs!==w)continue;if(!P&&e.breakDurationMs===w)continue;if(X.has(r.slotId))continue}R.push(k)}}R.length>0&&f4(n.D(),R)}; X_z=function(n,q){q=(q.lx+1)*1E3;var w=void 0;n=g.a(n.lL.values());for(var X=n.next();!X.done;X=n.next()){var P=X.value;X=P.trigger;P=P.slot;X instanceof SD&&X.breakDurationMs<=q&&(!w||X.breakDurationMs>w.trigger.breakDurationMs)&&(w={slot:P,trigger:X})}return w}; P1s=function(n){n=n.adPlacementRenderer.config.adPlacementConfig;if(!n.prefetchModeConfig||!n.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;n=Number(n.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(n)||n<=0?0:Math.floor(Math.random()*n)}; RY6=function(n){n=n.adPlacementRenderer.config.adPlacementConfig;if(n.prefetchModeConfig&&n.prefetchModeConfig.cacheFetchRefreshDurationMs&&(n=Number(n.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(n)||n<=0)))return n}; Iu=function(n){n.N=null;n.lL.clear();n.X&&n.X.stop();n.K&&n.K.stop();var q;(q=n.C)==null||q.stop();delete n.C}; qds=function(n){var q=[];n=g.a(n.lL.values());for(var w=n.next();!w.done;w=n.next())w=w.value.trigger,w instanceof SD&&q.push(w.breakDurationMs);return q}; kf=function(n){g.A.call(this);this.C=n;this.Y8=!0;this.lL=new Map;this.N=new Map;this.X=new Map}; cvY=function(n,q){var w=[];if(q=n.N.get(q.layoutId)){q=g.a(q);for(var X=q.next();!X.done;X=q.next())(X=n.X.get(X.value.triggerId))&&w.push(X)}return w}; ru=function(n){g.A.call(this);this.N=n;this.lL=new Map}; IU6=function(n,q){for(var w=[],X=g.a(n.lL.values()),P=X.next();!P.done;P=X.next())P=P.value,P.trigger instanceof hG&&P.trigger.slotId===q&&w.push(P);w.length>=1&&f4(n.N(),w)}; kZy=function(n,q){var w={slotId:WL(q,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Gp:"surface",clientMetadata:new Av([])},X=Object,P=X.assign;q=xS(q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w.slotId);q={layoutId:q,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",pM:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"surface", clientMetadata:new Av([]),Dj:APu(!1,w.slotId,w.slotType,w.slotPhysicalPosition,w.Gp,w.slotEntryTrigger,w.slotFulfillmentTriggers,w.slotExpirationTriggers,q,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return P.call(X,{},n,{qD:!0,slot:w,layout:q})}; ZkT=function(n,q,w,X){var P=n.kind;X=X?!1:!n.hideCueRangeMarker;switch(P){case "AD_PLACEMENT_KIND_START":return X={A5:new HN(-0x8000000000000,-0x8000000000000),f9:X},w!=null&&(X.iJ=new HN(-0x8000000000000,-0x8000000000000)),X;case "AD_PLACEMENT_KIND_END":return X={A5:new HN(0x7ffffffffffff,0x8000000000000),f9:X},w!=null&&(X.iJ=new HN(Math.max(0,q-w),0x8000000000000)),X;case "AD_PLACEMENT_KIND_MILLISECONDS":P=n.adTimeOffset;P.offsetStartMilliseconds||R0("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); P.offsetEndMilliseconds||R0("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");n=Number(P.offsetStartMilliseconds);P=Number(P.offsetEndMilliseconds);P===-1&&(P=q);if(Number.isNaN(n)||Number.isNaN(P)||n>P)return new z("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:n,offsetEndMs:P},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",P===q&&n-500<=P);X={A5:new HN(n,P),f9:X};if(w!=null){n=Math.max(0,n-w);if(n===P)return X;X.iJ=new HN(n,P)}return X; default:return new z("AdPlacementKind not supported in convertToRange.",{kind:P,adPlacementConfig:n})}}; rvY=function(n){if(!n||!n.adPlacements&&!n.adSlots)return!1;for(var q=g.a(n.adPlacements||[]),w=q.next();!w.done;w=q.next())if(w=w.value)if(w=w.adPlacementRenderer,w!=null&&(w.config&&w.config.adPlacementConfig&&w.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;n=g.a(n.adSlots||[]);for(q=n.next();!q.done;q=n.next()){var X=w=void 0;if(((w=g.u(q.value,Ws))==null?void 0:(X=w.adSlotMetadata)==null?void 0:X.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; j0=function(n){this.MP=n;this.X=new Map;this.N=new Map;this.C=new Map}; WL=function(n,q){if(s5(n.MP.get())){var w=n.X.get(q)||0;w++;n.X.set(q,w);return q+"_"+w}return g.Os(16)}; xS=function(n,q,w){if(s5(n.MP.get())){var X=n.N.get(q)||0;X++;n.N.set(q,X);return w+"_"+q+"_"+X}return g.Os(16)}; gE=function(n,q){if(s5(n.MP.get())){var w=n.C.get(q)||0;w++;n.C.set(q,w);return q+"_"+w}return g.Os(16)}; jZy=function(n){var q=[new W$(n.Rj),new wj(n.ZK),new DG(n.adPlacementConfig),new IZ(n.videoLengthSeconds),new yb(n.Aw)];n.instreamAdPlayerOverlayRenderer&&q.push(new ba(n.instreamAdPlayerOverlayRenderer));n.playerOverlayLayoutRenderer&&q.push(new Ar(n.playerOverlayLayoutRenderer));n.oh&&q.push(new Cd(n.oh));return q}; sZs=function(n,q,w,X,P,R){n=w.inPlayerLayoutId?w.inPlayerLayoutId:xS(R,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",n);var c,k,r=w.instreamAdPlayerOverlayRenderer?(c=w.instreamAdPlayerOverlayRenderer)==null?void 0:c.adLayoutLoggingData:(k=w.playerOverlayLayoutRenderer)==null?void 0:k.adLayoutLoggingData;c={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Gp:q};return{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",pM:new Map,layoutExitNormalTriggers:[new YJ(function(e){return gE(R, e)},w.Rj)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:q,clientMetadata:X,Dj:P(c),adLayoutLoggingData:r}}; e0=function(n,q){var w=this;this.X=n;this.MP=q;this.N=function(X){return gE(w.X.get(),X)}}; GMO=function(n,q,w,X,P,R){w=new Av([new YZ(w),new DG(X)]);q=xS(n.X.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",q);X={layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Gp:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",pM:new Map,layoutExitNormalTriggers:[new YJ(function(c){return gE(n.X.get(),c)},P)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:w,Dj:R(X),adLayoutLoggingData:void 0}}; eM=function(n,q,w,X,P){var R=jZy(X);return sZs(q,w,X,new Av(R),P,n.X.get())}; eYs=function(n,q,w,X,P){var R=jZy(X);R.push(new Ma(X.wR));R.push(new xZ(X.hc));return sZs(q,w,X,new Av(R),P,n.X.get())}; Mk=function(n,q,w,X,P,R,c,k,r,e){q=xS(n.X.get(),w,q);var f={layoutId:q,layoutType:w,Gp:"core"},O=new Map;c&&O.set("impression",c);c=[new JG(n.N,P,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];e&&c.push(new AG(n.N,e,["normal"]));return{layoutId:q,layoutType:w,pM:O,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:new Av([X,new DG(R),new W$(P)]),Dj:k(f),adLayoutLoggingData:r}}; xl=function(n,q,w,X,P,R,c,k,r){q=xS(n.X.get(),w,q);var e={layoutId:q,layoutType:w,Gp:"core"},f=[new JG(n.N,P,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];r&&f.push(new AG(n.N,r,["normal"]));return{layoutId:q,layoutType:w,pM:new Map,layoutExitNormalTriggers:f,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:new Av([X,new DG(R),new W$(P)]),Dj:c(e),adLayoutLoggingData:k}}; yH=function(n,q,w){var X=[];X.push(new z0(n.N,w));q&&X.push(q);return X}; m6=function(n,q,w,X,P,R,c){var k={layoutId:q,layoutType:w,Gp:"core"};return{layoutId:q,layoutType:w,pM:new Map,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[new Cl(n.N,q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:new Av([new FE(X),new DG(P)]),Dj:R(k),adLayoutLoggingData:X.adLayoutLoggingData}}; kl=function(n,q,w,X,P,R,c,k){var r={layoutId:q,layoutType:R,Gp:"core"};return{layoutId:q,layoutType:R,pM:new Map,layoutExitNormalTriggers:[new YJ(n.N,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:new Av([new DG(X)].concat(g.D(c))),Dj:P(r),adLayoutLoggingData:k}}; VH=function(n,q,w,X){if(n.MP.get().fL(q.kind==="AD_PLACEMENT_KIND_START"))if(w===void 0)R0("Expected SSAP layout ID in renderer",void 0,void 0,{caller:X});else return w}; Hds=function(n,q,w,X,P,R,c,k,r,e,f,O,H){n=ak(n,q,w,P,R,c,k,r,O,VH(n,w,X.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),H);q=n.AP;w=new Na(n.LS);X=n.layoutExitSkipTriggers;e>0&&(q.push(w),q.push(new Go(e)),X=[]);q.push(new la(f));return{H_:{layoutId:n.layoutId,layoutType:n.layoutType,pM:n.pM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:n.Gp,clientMetadata:new Av(q),Dj:n.Dj,adLayoutLoggingData:n.adLayoutLoggingData}, nh:X,CO:n.layoutExitMuteTriggers,vK:n.layoutExitUserInputSubmittedTriggers,M4:n.rM,Oj:n.Oj}}; gZx=function(n,q,w,X,P,R,c,k,r,e){q=ak(n,q,w,X,R,new Map,c,function(f){return k(f,r)},void 0,VH(n,w,P.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); n=new kz(n.N,q.LS);w=new Na(q.LS);e=new la(e);return{H_:{layoutId:q.layoutId,layoutType:q.layoutType,pM:q.pM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:q.Gp,clientMetadata:new Av([].concat(g.D(q.AP),[w,e])),Dj:q.Dj,adLayoutLoggingData:q.adLayoutLoggingData},nh:q.layoutExitSkipTriggers,CO:q.layoutExitMuteTriggers,vK:[].concat(g.D(q.layoutExitUserInputSubmittedTriggers),[n]),M4:q.rM,Oj:q.Oj}}; ak=function(n,q,w,X,P,R,c,k,r,e,f){q=e!=null?e:xS(n.X.get(),"LAYOUT_TYPE_MEDIA_BREAK",q);e={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Gp:"adapter"};k=k(q);var O=Yj(k.clientMetadata,"metadata_type_fulfilled_layout");O||R0("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var H=O?O.layoutId:"";w=[new DG(w),new aZ(X),new TZ(P)];O&&w.push(new nN(O.layoutType));f&&w.push(new fN(f));return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", pM:R,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new qx(n.N,H)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"adapter",AP:w,Dj:c(e),adLayoutLoggingData:r,Oj:k,LS:H}}; DOs=function(n,q,w,X,P,R,c,k,r,e,f){n=fUT(n,q,"core",w,X,P,R,c,k,r,e,void 0,f);return{layoutId:n.layoutId,layoutType:n.layoutType,pM:n.pM,layoutExitNormalTriggers:n.layoutExitNormalTriggers,layoutExitSkipTriggers:n.layoutExitSkipTriggers,layoutExitMuteTriggers:n.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:n.layoutExitUserInputSubmittedTriggers,rM:n.rM,Gp:n.Gp,clientMetadata:new Av(n.sL),Dj:n.Dj,adLayoutLoggingData:n.adLayoutLoggingData}}; MGz=function(n,q,w,X,P,R,c,k,r,e,f,O,H){q=fUT(n,q,"adapter",w,X,P,R,c,k,r,f,O,H);X=q.layoutExitSkipTriggers;P=q.sL;w.adPodSkipTarget&&w.adPodSkipTarget>0&&(P.push(e),P.push(new Go(w.adPodSkipTarget)),X=[]);P.push(new la(k.adPodIndex));w.isCritical&&(X=[new AG(n.N,q.layoutId,["error"])].concat(g.D(X)));return{H_:{layoutId:q.layoutId,layoutType:q.layoutType,pM:q.pM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:q.Gp,clientMetadata:new Av(P), Dj:q.Dj,adLayoutLoggingData:q.adLayoutLoggingData},nh:X,CO:q.layoutExitMuteTriggers,vK:q.layoutExitUserInputSubmittedTriggers,M4:q.rM}}; fUT=function(n,q,w,X,P,R,c,k,r,e,f,O,H){var U={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",Gp:w};P=[new DG(P),new hr(r),new Er(X.externalVideoId),new oX(k),new TZ({impressionCommands:X.impressionCommands,abandonCommands:X.onAbandonCommands,completeCommands:X.completeCommands,progressCommands:X.adVideoProgressCommands}),new kj(R),new XA({current:null}),new IZ(c)];(R=X.playerOverlay.instreamAdPlayerOverlayRenderer)&&P.push(new ba(R));(c=X.playerOverlay.playerOverlayLayoutRenderer)&&P.push(new Ar(c)); O&&P.push(new rj(O));(O=X.playerUnderlay)&&P.push(new YZ(O));k=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER");O=(O=R?R.elementId:c==null?void 0:c.layoutId)?O:xS(n.X.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",k);P.push(new Na(O));P.push(new qr(k));P.push(new fN(r.adPodIndex));X.adNextParams&&P.push(new pd(X.adNextParams));X.shrunkenPlayerBytesConfig&&P.push(new ua(X.shrunkenPlayerBytesConfig));X.clickthroughEndpoint&&P.push(new To(X.clickthroughEndpoint));X.legacyInfoCardVastExtension&&P.push(new Vb(X.legacyInfoCardVastExtension)); X.sodarExtensionData&&P.push(new jH(X.sodarExtensionData));f&&P.push(new mH(f));P.push(new LN(IC(X.pings)));r=kt(X.pings);if(H){a:{H=g.a(H);for(f=H.next();!f.done;f=H.next())if(f=f.value,f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(R=g.u(f.fulfillmentContent.fulfilledLayout,A$))&&(R=g.u(R.renderingContent,oS))&&R.associatedPlayerBytesLayoutId===q){H=f;break a}H=void 0}H&&P.push(new Kd(H))}return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",pM:r,layoutExitNormalTriggers:[new W4(n.N,q)],layoutExitSkipTriggers:X.skipOffsetMilliseconds? [new qx(n.N,O)]:[],layoutExitMuteTriggers:[new qx(n.N,O)],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:w,sL:P,Dj:e(U),adLayoutLoggingData:X.adLayoutLoggingData}}; aZs=function(n,q,w,X,P,R,c,k,r){X.every(function(f){return Ed(f,[],["LAYOUT_TYPE_MEDIA"])})||R0("Unexpect subLayout type for DAI composite layout"); q=xS(n.X.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",q);var e={layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Gp:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",pM:new Map,layoutExitNormalTriggers:[new Kl(n.N)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],rM:[],Gp:"core",clientMetadata:new Av([new sd(w),new eH(k),new RZ(X),new DG(P),new Ud(R),new Od({}),new xj(r)]),Dj:c(e)}}; tyu=function(n){return n!=null}; fY=function(n,q,w){var X=this;this.X=n;this.C=q;this.MP=w;this.N=function(P){return gE(X.X.get(),P)}}; bdy=function(n,q,w,X,P,R,c){if(!w.prefetchModeConfig)return new z("AdPlacementConfig for Live Prefetch is missing prefetch_config");w=w.prefetchModeConfig;X*=1E3;var k=[];if(!w.breakLengthMs)return new z("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var r=g.a(w.breakLengthMs),e=r.next();!e.done;e=r.next())if(e=e.value,Number(e)>0){var f=X+Number(w.startTimeOffsetMs),O=f+Number(w.cacheFetchSmearingDurationMs);e={A5:new HN(O,O+Number(e)),f9:!1,iJ:new HN(Math.floor(f+Math.random()* Number(w.cacheFetchSmearingDurationMs)),O),cueProcessedMs:X?X:f};f=[];f.push(new GZ({}));O=[];O.push(new nh(n.N));O.push(new rZY(n.N));c&&f.push(new Od({}));k.push(nP(n,q,P,e,R,f,O))}return k}; nP=function(n,q,w,X,P,R,c){R=R===void 0?[]:R;var k=WL(n.X.get(),"SLOT_TYPE_AD_BREAK_REQUEST");c||(c=[],X.iJ&&X.iJ.start!==X.A5.start&&c.push(new Qn(n.N,w,new HN(X.iJ.start,X.A5.start),!1)),c.push(new Qn(n.N,w,new HN(X.A5.start,X.A5.end),X.f9)));X={getAdBreakUrl:q.getAdBreakUrl,w5:X.A5.start,WG:X.A5.end,cueProcessedMs:X.cueProcessedMs};q=new RS(n.N,k);R=[new dj(X)].concat(g.D(R));return{slotId:k,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:c, slotExpirationTriggers:[new Nd(n.N,w),new XI(n.N,k),new Ps(n.N,k)],Gp:"core",clientMetadata:new Av(R),adSlotLoggingData:P}}; iNs=function(n,q,w){var X=[];w=g.a(w);for(var P=w.next();!P.done;P=w.next())X.push(ON3(n,q,P.value));return X}; ON3=function(n,q,w){return w.triggeringSlotId!=null&&w.triggeringSlotId===n?w.clone(q):w}; IZT=function(n,q,w,X,P){return HN0(n,q,w,X,P)}; UaY=function(n,q,w,X){var P=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER");return HN0(n,P,q,w,X)}; HN0=function(n,q,w,X,P){var R=new bN(n.N,w),c=[new wz(n.N,q)];n=[new XI(n.N,q),new Nd(n.N,X)];return{slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(P({slotId:q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:n},w))]),adSlotLoggingData:void 0}}; xaO=function(n,q,w,X,P,R){var c=WL(n.X.get(),"SLOT_TYPE_PLAYER_BYTES"),k=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER"),r=xS(n.X.get(),"LAYOUT_TYPE_SURVEY",k);X=O5(n,q,w,X);var e=[new wz(n.N,c)];w=[new XI(n.N,c),new Nd(n.N,w),new Cl(n.N,r)];if(X instanceof z)return X;k=R({slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:X,slotFulfillmentTriggers:e,slotExpirationTriggers:w},{slotId:k,layoutId:r});R=k.UK;k=k.BP;return[{slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Tz(n,q,c,X),slotFulfillmentTriggers:Fb(n,q,c,e),slotExpirationTriggers:w,Gp:"core",clientMetadata:new Av([new tv(R),new DU($l(q)),new l1({UI:n.UI(q)})]),adSlotLoggingData:P},k]}; $l=function(n){return n.kind==="AD_PLACEMENT_KIND_START"}; hVs=function(n,q,w,X,P){P=P?P:WL(n.X.get(),"SLOT_TYPE_IN_PLAYER");w=new bN(n.N,w);var R=[new wz(n.N,P)];n=[new Nd(n.N,q),new XI(n.N,P)];return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:R,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(X({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:w,slotFulfillmentTriggers:R,slotExpirationTriggers:n}))])}}; lZO=function(n,q,w,X){var P=WL(n.X.get(),"SLOT_TYPE_PLAYER_UNDERLAY");w=new bN(n.N,w);var R=[new wz(n.N,P)];n=[new Nd(n.N,q),new XI(n.N,P)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:R,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(X({slotId:P,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:w,slotFulfillmentTriggers:R,slotExpirationTriggers:n}))])}}; T6m=function(n,q,w,X,P,R,c){var k=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER"),r=xS(n.X.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",k);X=Ur6(n,X,R,c,r);if(X instanceof z)return X;c=[new wz(n.N,k)];P=[new Nd(n.N,R),new wz(n.N,P),new IS(n.N,P)];w=ZU(w,{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:X,slotFulfillmentTriggers:c,slotExpirationTriggers:P});n=n.C.get();R={layoutId:r,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Gp:"core"};q={layoutId:r,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", pM:new Map,layoutExitNormalTriggers:[new UDu(n.N,r,q.durationMs)],layoutExitSkipTriggers:[new dDT(n.N,r,q.durationMs)],rM:[new tiz(n.N,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Gp:"core",clientMetadata:new Av([new pN(q)]),Dj:w(R)};return{slotId:k,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:X,slotFulfillmentTriggers:c,slotExpirationTriggers:P,clientMetadata:new Av([new tv(q)])}}; Odm=function(n,q,w,X,P,R){q=O5(n,q,w,X);if(q instanceof z)return q;var c=q instanceof Qn?new Ok3(n.N,w,q.N):null;X=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER");var k=[new wz(n.N,X)];n=[new Nd(n.N,w),new XI(n.N,X)];R=R({slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:q,slotFulfillmentTriggers:k,slotExpirationTriggers:n},c);return R instanceof b1?new z(R):{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:k,slotExpirationTriggers:n, Gp:"core",clientMetadata:new Av([new tv(R)]),adSlotLoggingData:P}}; euu=function(n,q,w,X){var P=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER"),R=new G0(n.N,q),c=[new cs(n.N,P)];n=[new Nd(n.N,q),new XI(n.N,P)];return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(X({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:n}))]),adSlotLoggingData:w}}; fZT=function(n,q,w,X){var P=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER");w=new bN(n.N,w);var R=[new wz(n.N,P)],c=[new XI(n.N,P),new Nd(n.N,q)];R={slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:w,slotFulfillmentTriggers:R,slotExpirationTriggers:c};return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:[new wz(n.N,P)],slotExpirationTriggers:[new Nd(n.N,q),new XI(n.N,P)],Gp:"core",clientMetadata:new Av([new tv(X(R))])}}; jbu=function(n,q,w,X,P){var R=WL(n.X.get(),"SLOT_TYPE_IN_PLAYER");w=new o9(n.N,X,w);X=[new wz(n.N,R)];n=[new Nd(n.N,q)];return{slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:X,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(P({slotId:R,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:w,slotFulfillmentTriggers:X,slotExpirationTriggers:n}))])}}; PPm=function(n,q,w,X,P,R){var c=WL(n.X.get(),q);return iG(n,c,q,new bN(n.N,X),[new Nd(n.N,w),new XI(n.N,c),new AG(n.N,X,["error"])],P,R)}; X93=function(n,q,w,X,P,R,c){var k=WL(n.X.get(),q);return iG(n,k,q,new AG(n.N,P,["normal"]),[new Nd(n.N,w),new XI(n.N,k),new AG(n.N,X,["error"])],R,c)}; NAu=function(n,q,w,X,P){var R=WL(n.X.get(),q);return iG(n,R,q,new G0(n.N,w),[new Nd(n.N,w),new XI(n.N,R)],X,P)}; kox=function(n,q,w,X,P){w=w?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var R=WL(n.X.get(),w);q=new G0(n.N,q);var c=[new wz(n.N,R)];n=[new XI(n.N,R)];return{slotId:R,slotType:w,slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:c,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(P({slotId:R,slotType:w,slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:q,slotFulfillmentTriggers:c,slotExpirationTriggers:n}))]),adSlotLoggingData:X}}; dOy=function(n,q,w,X){var P=WL(n.X.get(),"SLOT_TYPE_PLAYER_BYTES"),R=new B4(n.N),c=[new cs(n.N,P)];n=[new Nd(n.N,q)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(X({slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:R,slotFulfillmentTriggers:c,slotExpirationTriggers:n})),new Od({})]),adSlotLoggingData:w}}; F5O=function(n,q){return EZy(n.MP.get())?new AG(n.N,q,["normal","error","skipped"]):new AG(n.N,q,["normal"])}; Lw0=function(n,q,w,X,P){q=F5O(n,q);n=pP(n,q,w);P=P({slotId:n.slotId,slotType:n.slotType,slotPhysicalPosition:n.slotPhysicalPosition,slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers,Gp:n.Gp});return P instanceof z?P:{V0:Object.assign({},n,{clientMetadata:new Av([new tv(P.layout)]),adSlotLoggingData:X}),nL:P.nL}}; Mys=function(n,q,w,X,P,R,c){w=$ax(n,q,w,X);if(w instanceof z)return w;c=c({slotId:w.slotId,slotType:w.slotType,slotPhysicalPosition:w.slotPhysicalPosition,slotEntryTrigger:w.slotEntryTrigger,slotFulfillmentTriggers:w.slotFulfillmentTriggers,slotExpirationTriggers:w.slotExpirationTriggers,Gp:w.Gp});if(c instanceof z)return c;X=[new DU($l(q)),new tv(c.layout),new l1({UI:n.UI(q)})];R&&X.push(new FA({}));return{V0:{slotId:w.slotId,slotType:w.slotType,slotPhysicalPosition:w.slotPhysicalPosition,slotEntryTrigger:Tz(n, q,w.slotId,w.slotEntryTrigger),slotFulfillmentTriggers:Fb(n,q,w.slotId,w.slotFulfillmentTriggers),slotExpirationTriggers:w.slotExpirationTriggers,Gp:w.Gp,clientMetadata:new Av(X),adSlotLoggingData:P},nL:c.nL}}; Tz=function(n,q,w,X){return n.MP.get().fL($l(q))?new hG(n.N,w):X}; Fb=function(n,q,w,X){return n.MP.get().fL($l(q))?[new cs(n.N,w)]:X}; pP=function(n,q,w){var X=WL(n.X.get(),"SLOT_TYPE_PLAYER_BYTES"),P=[new wz(n.N,X)];n=[new XI(n.N,X),new Nd(n.N,w)];return{slotId:X,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:P,slotExpirationTriggers:n,Gp:"core"}}; $ax=function(n,q,w,X){q=O5(n,q,w,X);return q instanceof z?q:pP(n,q,w)}; jXs=function(n,q,w,X,P,R){var c=WL(n.X.get(),"SLOT_TYPE_FORECASTING");q=O5(n,q,w,X);if(q instanceof z)return q;X=[new wz(n.N,c)];n=[new XI(n.N,c),new Nd(n.N,w)];return{slotId:c,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:q,slotFulfillmentTriggers:X,slotExpirationTriggers:n,Gp:"core",clientMetadata:new Av([new tv(R({slotId:c,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:q,slotFulfillmentTriggers:X,slotExpirationTriggers:n}))]),adSlotLoggingData:P}}; tHY=function(n,q,w,X,P){var R=!q.hideCueRangeMarker;switch(q.kind){case "AD_PLACEMENT_KIND_START":return new G0(n.N,w);case "AD_PLACEMENT_KIND_MILLISECONDS":return n=ZkT(q,X),n instanceof z?n:P(n.A5,R);case "AD_PLACEMENT_KIND_END":return new Ee(n.N,w,R);default:return new z("Cannot construct entry trigger",{kind:q.kind})}}; Ur6=function(n,q,w,X,P){return tHY(n,q,w,X,function(R,c){return new f6Y(n.N,w,R,c,P)})}; O5=function(n,q,w,X){return tHY(n,q,w,X,function(P,R){return new Qn(n.N,w,P,R)})}; iG=function(n,q,w,X,P,R,c){n=[new cs(n.N,q)];return{slotId:q,slotType:w,slotPhysicalPosition:1,slotEntryTrigger:X,slotFulfillmentTriggers:n,slotExpirationTriggers:P,Gp:"core",clientMetadata:new Av([new tv(c({slotId:q,slotType:w,slotPhysicalPosition:1,Gp:"core",slotEntryTrigger:X,slotFulfillmentTriggers:n,slotExpirationTriggers:P}))]),adSlotLoggingData:R}}; H7=function(n,q){g.A.call(this);this.MP=n;this.N=q;this.eventCount=0}; U5=function(n,q,w,X){H7.call(this,n,q);this.MP=n;this.rl=w;this.context=X}; tm=function(){this.N=new Map}; du=function(n){this.N="pending";this.X=[];this.C=[];try{n(this.W.bind(this),this.reject.bind(this))}catch(q){this.reject(q)}}; drh=function(){var n,q;return{GD:new du(function(w,X){n=w;q=X}), resolve:n,reject:q}}; ya=function(n){return gu(n)?n:mI(n)?new du(function(q,w){n.then(q,w)}):new du(function(q){q(n)})}; au=function(n){return new du(function(q,w){w(n)})}; Va=function(n){try{return ya(n())}catch(q){return au(q)}}; Ti=function(n,q,w){var X=drh(),P=X.GD,R=X.resolve,c=X.reject;n.X.push(function(k){if(q)try{var r=q(k);R(r)}catch(e){c(e)}else R(k)}); n.C.push(function(k){if(w)try{var r=w(k);R(r)}catch(e){c(e)}else c(k)}); pY(n);return P}; F7=function(n,q){return Ti(n,void 0,q)}; gjm=function(n,q){Ti(n,function(w){return Ti(ya(q()),function(){return w})},function(w){return Ti(ya(q()),function(){return au(w)})})}; pY=function(n){if(n.N==="fulfilled"){var q=n.X;n.X=[];n.C=[];q=g.a(q);for(var w=q.next();!w.done;w=q.next())w=w.value,w(n.result)}else if(n.N==="rejected")for(q=n.C,n.X=[],n.C=[],q=g.a(q),w=q.next();!w.done;w=q.next())w=w.value,w(n.error)}; $f=function(n,q){return mry(q.call(n))}; v7=function(n){return function w(){return os(w,function(X){if(X.X==1)return g.pO(X,2),g.l(X,{GD:ya(n)},4);if(X.X!=2)return X.return(X.N);g.Dm(X);return g.hO(X,0)})}()}; mry=function(n){return Va(function(){return LY(n,n.next())})}; LY=function(n,q){return q.done?ya(q.value):F7(Ti(q.value.GD,function(w){return LY(n,n.next(w))}),function(w){return LY(n,n.throw(w))})}; MG=function(n,q){if(n.length===0)return ya(NaN);var w=drh(),X=w.GD,P=w.resolve,R=n.length;n=g.a(n.entries());var c=n.next();for(w={};!c.done;w={hq:void 0},c=n.next()){var k=g.a(c.value);c=k.next().value;k=k.next().value;w.hq=c;gjm(k,function(r){return function(){X.N==="pending"&&(yvz(q)&&q(r.hq)&&X.N==="pending"?P(r.hq):(--R,R===0&&P(NaN)))}}(w))}return X}; xf=function(n){return n.map(function(q){return ya(q)})}; hm=function(n){var q=n.hours||0;var w=n.minutes||0,X=n.seconds||0;q=X+w*60+q*3600+(n.days||0)*86400+(n.weeks||0)*604800+(n.months||0)*2629800+(n.years||0)*31557600;q<=0?q={hours:0,minutes:0,seconds:0}:(n=q,q=Math.floor(n/3600),n%=3600,w=Math.floor(n/60),X=Math.floor(n%60),q={hours:q,minutes:w,seconds:X});var P=q.hours===void 0?0:q.hours;w=q.minutes===void 0?0:q.minutes;n=q.seconds===void 0?0:q.seconds;X=P>0;q=[];if(X){P=(new Intl.NumberFormat("en-u-nu-latn")).format(P);var R=["fr"],c="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(" "); P="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(DH)?P.replace(",","\u00a0"):R.includes(DH)?P.replace(",","\u202f"):c.includes(DH)?P.replace(",","."):P;q.push(P)}X=X===void 0?!1:X;w=(["af","be","lt"].includes(DH)||X)&&w<10?aUh().format(w):(new Intl.NumberFormat("en-u-nu-latn")).format(w);q.push(w);w=aUh().format(n);q.push(w);w=":";"da fi id si sr sr-Latn".split(" ").includes(DH)&&(w=".");return q.join(w)}; aUh=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; VHs=function(n,q){var w,X;n=((w=n.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(X=w.videoAuthorizationToken)==null?void 0:X.credentialTransferTokens)||[];for(w=0;wq;n=w}else n=!1;return n}; g.zi=function(n,q){return n.k5+"timedtext_video?ref=player&v="+q.videoId}; g.Yd6=function(n){var q=this;this.videoData=n;n={};this.N=(n.c1a=function(){var w=[];if(g.ZH.isInitialized()){var X="";q.videoData&&q.videoData.JQ&&(X=q.videoData.JQ+("&r1b="+q.videoData.clientPlaybackNonce));var P={};X=(P.atr_challenge=X,P);FK("bg_v",void 0,"player_att");(X=Avy(X))?(FK("bg_s",void 0,"player_att"),w.push("r1a="+X)):(FK("bg_e",void 0,"player_att"),w.push("r1c=2"))}else FK("bg_e",void 0,"player_att"),window.trayride||window.botguard?w.push("r1c=1"):w.push("r1c=4");w.push("r1d="+g.ZH.getState()); return w.join("&")},n.c6a=function(w){return"r6a="+(Number(w.c)^uk())},n.c6b=function(w){return"r6b="+(Number(w.c)^Number(g.bp("CATSTAT",0)))},n); this.videoData&&this.videoData.JQ?this.Jv=ZO(this.videoData.JQ):this.Jv={}}; g.KHz=function(n){if(n.videoData&&n.videoData.JQ){for(var q=[n.videoData.JQ],w=g.a(Object.keys(n.N)),X=w.next();!X.done;X=w.next())X=X.value,n.Jv[X]&&n.N[X]&&(X=n.N[X](n.Jv))&&q.push(X);return q.join("&")}return null}; g.W7=function(n,q){bN3(n,{Bgl:g.Jv(q.experiments,"bg_vm_reinit_threshold"),cspNonce:q.cspNonce,k5:q.k5||""})}; Sdx=function(){var n=XMLHttpRequest.prototype.fetch;return!!n&&n.length===3}; uAO=function(n){n=n[I[29]](I[6]);NG[I[55]](n,23);NG[I[21]](n,1);NG[I[8]](n,1);NG[I[55]](n,2);NG[I[8]](n,3);NG[I[21]](n,28);return n[I[43]](I[6])}; ZN3=function(n,q){Ye(n,2,q.pm,nQ,3);Ye(n,3,q.innertubeRequest,Bj3,3);bP(n,4,q.onesieUstreamerConfig);bP(n,9,q.qd);Ye(n,10,q.Pe,qy,3);Ye(n,15,q.reloadPlaybackParams,QZY,3)}; zYO=function(n,q){Ye(n,1,q.formatId,wn,3);EI(n,2,q.startTimeMs);EI(n,3,q.durationMs);EI(n,4,q.Rc);EI(n,5,q.LL);Ye(n,9,q.WXf,Jv0,3);Ye(n,11,q.aAq,X2,1);Ye(n,12,q.uK,X2,1)}; WHz=function(n,q){A7(n,1,q.videoId);EI(n,2,q.lmt)}; Jv0=function(n,q){if(q.qt)for(var w=0;w>31));EI(n,16,q.JV);EI(n,17,q.detailedNetworkType);EI(n,18,q.Nj);EI(n,19,q.Lp);EI(n,21,q.bLi);EI(n,23,q.Q6);EI(n,28,q.Q_);EI(n,29,q.HDf);EI(n,34,q.visibility);w=q.playbackRate;if(w!==void 0){var X=new ArrayBuffer(4);(new Float32Array(X))[0]=w;w=(new Uint32Array(X))[0];if(w!==void 0)for(Ct(n,285),TM(n,4),X=0;X<4;)n.view.setUint8(n.pos,w&255),w>>=8,n.pos+=1,X+=1}EI(n,36,q.gO); Ye(n,38,q.mediaCapabilities,XLz,3);EI(n,39,q.fmo);EI(n,40,q.Nk);EI(n,44,q.playerState);ob(n,46,q.Ka);EI(n,48,q.Ma);EI(n,50,q.mA);EI(n,51,q.cM);EI(n,54,q.Zz);if(q.wK)for(w=0;w>31));A7(n,2,q.message)}; eF3=function(n,q){EI(n,1,q.clientState);Ye(n,2,q.bz5,jgY,1)}; rq0=function(n,q){bP(n,1,q.kzg);Ye(n,2,q.lfh,sg6,3);Ye(n,3,q.coldStartInfo,eF3,3)}; k$T=function(n,q){EI(n,1,q.type);bP(n,2,q.value)}; INz=function(n,q){A7(n,1,q.hl);A7(n,12,q.deviceMake);A7(n,13,q.deviceModel);EI(n,16,q.clientName);A7(n,17,q.clientVersion);A7(n,18,q.osName);A7(n,19,q.osVersion)}; fNu=function(n,q){A7(n,1,q.name);A7(n,2,q.value)}; O4s=function(n,q){A7(n,1,q.url);if(q.tq)for(var w=0;w0&&!(Jsy()>(0,g.m$)()-n*1E3))return 0;n=g.$N("yt-player-quality");if(typeof n==="string"){if(n=g.gq[n],n>0)return n}else if(n instanceof Object)return n.quality;return 0}; jZ=function(){var n=g.$N("yt-player-proxima-pref");return n==null?null:n}; Jq0=function(){var n=g.$N("yt-player-quality");if(n instanceof Object&&n.quality&&n.previousQuality){if(n.quality>n.previousQuality)return 1;if(n.quality0&&q[0]?n.getAutoplayPolicy(q[0]):n.getAutoplayPolicy("mediaelement");if(XPO[w])return XPO[w]}}catch(X){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Ui=function(n){return n.wq||n.Vb||n.mutedAutoplay}; Pvh=function(n,q){return Ui(n)?q!==1&&q!==2&&q!==0?"AUTOPLAY_STATUS_UNAVAILABLE":n.JE?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; RrO=function(n,q,w){var X=q.B();n.thirdParty||(n.thirdParty={});X.ancestorOrigins&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{ancestorOrigins:X.ancestorOrigins}));X.Z("embeds_enable_autoplay_and_visibility_signals")&&(X.Ah!=null&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(X.Ah)})),X.XI&&(n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{visibilityFractionSource:X.XI})), n.thirdParty.embeddedPlayerContext=Object.assign({},n.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:HM(),autoplayIntended:Ui(q),autoplayStatus:Pvh(q,w)}))}; cD6=function(n){var q=[];n=g.a(n.split(","));for(var w=n.next();!w.done;w=n.next()){var X=w.value;X&&((w=X.startsWith("!"))&&(X=X.substring(1)),X=X.split("-"),X.length<3||q.push({c5:X[0],platform:X[1],deviceVersion:X[2],YX:w}))}return q}; rD0=function(n){return cD6(n).map(function(q){return{deviceInterface:Iy6[kr0[q.c5]]||0,deviceVersion:q.deviceVersion||"",isSleeping:q.YX}})}; g.ty=function(n,q){this.id=n;this.Va=q;this.captionTracks=[];this.C=this.W=null;this.xtags="";this.K=!1;this.N=null;this.X="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";n=this.Va.id.split(".");n.length>1&&(this.K=n[1]==="2")}; dn=function(n,q,w,X,P){this.X=n;this.N=q;this.C=w;this.reason=X;this.ED=P===void 0?0:P}; g.gn=function(n,q,w,X){return new dn(g.gq[n]||0,g.gq[q]||0,w,X)}; yQ=function(n){if(mn&&n.ED)return!1;var q=g.gq.auto;return n.X===q&&n.N===q}; VQ=function(n){return a$[n.N||n.X]||"auto"}; jCY=function(n,q){q=g.gq[q];return n.X<=q&&(!n.N||n.N>=q)}; pQ=function(n){return"["+n.X+"-"+n.N+", override: "+(n.C+", reason: "+n.reason+"]")}; TG=function(n,q,w){this.videoInfos=n;this.N=q;this.audioTracks=[];if(this.N){n=new Set;w==null||w({ainfolen:this.N.length});q=g.a(this.N);for(var X=q.next();!X.done;X=q.next())if(X=X.value,!X.Va||n.has(X.Va.id)){var P=void 0,R=void 0,c=void 0;(c=w)==null||c({atkerr:!!X.Va,itag:X.itag,xtag:X.N,lang:((P=X.Va)==null?void 0:P.name)||"",langid:((R=X.Va)==null?void 0:R.id)||""})}else P=new g.ty(X.id,X.Va),n.add(X.Va.id),this.audioTracks.push(P);w==null||w({atklen:this.audioTracks.length})}}; F2=function(){g.A.apply(this,arguments);this.N=null}; OIy=function(n,q,w,X,P,R,c){if(n.N)return n.N;var k={},r=new Set,e={};if($T(X)){for(var f in X.N)X.N.hasOwnProperty(f)&&(n=X.N[f],e[n.info.L5]=[n.info]);return e}f=sCY(q,X,k);R&&P({aftsrt:vM(f)});for(var O={},H=g.a(Object.keys(f)),U=H.next();!U.done;U=H.next()){U=U.value;for(var t=g.a(f[U]),V=t.next();!V.done;V=t.next()){V=V.value;var T=V.itag,x=void 0,M=U+"_"+(((x=V.video)==null?void 0:x.fps)||0);O.hasOwnProperty(M)?O[M]===!0?e[U].push(V):k[T]=O[M]:(x=LQ(q,V,w,X.isLive,r),x!==!0?(c.add(U),k[T]=x, x==="disablevp9hfr"&&(O[M]="disablevp9hfr")):(e[U]=e[U]||[],e[U].push(V),O[M]=!0))}}R&&P({bfflt:vM(e)});for(var h in e)e.hasOwnProperty(h)&&(X=h,e[X]&&e[X][0].ev()&&(e[X]=e[X],e[X]=erm(q,e[X],k),e[X]=fy3(e[X],k)));R&&Object.keys(k).length>0&&P({rjr:In(k)});q=g.a(r.values());for(X=q.next();!X.done;X=q.next())(X=w.W.get(X.value))&&--X.YF;R&&P({aftflt:vM(e)});n.N=g.qo(e,function(E){return!!E.length}); return n.N}; HIz=function(n,q,w,X,P,R,c,k){k=k===void 0?!1:k;if(q.iS&&c&&c.length>1&&!(q.Cd>0||q.V)){for(var r=q.X||!!P,e=r&&q.ej?R:void 0,f=sCY(q,X),O=[],H=[],U={},t=0;t0&&H&&P&&(f=[c,w],h=P.concat(H).filter(function(E){return E})); if(h.length&&!q.x0){D2(h,f);if(r){r=[];q=g.a(h);for(X=q.next();!X.done;X=q.next())r.push(X.value.itag);R({hbdfmt:r.join(".")})}return FR(new TG(h,n,e))}h=TBs(q);h=g.d0(h,k);if(!h){if(O[c])return R=O[c],D2(R),FR(new TG(R,n,e));r&&R({novideo:1});return TS()}q.tU&&(h==="1"||h==="1h")&&O[w]&&(c=hy(O[h]),f=hy(O[w]),f>c?h=w:f===c&&F3T(O[w])&&(h=w));h==="9"&&O.h&&hy(O.h)>hy(O["9"])&&(h="h");q.qe&&X.isLive&&h==="("&&O.H&&hy(O["("])<1440&&(h="H");r&&R({vfmly:li(h)});q=O[h];if(!q.length)return r&&R({novfmly:li(h)}), TS();D2(q);return FR(new TG(q,n,e))}; tj3=function(n,q){var w=!(!n.m&&!n.M),X=!(!n.mac3&&!n.MAC3),P=!(!n.meac3&&!n.MEAC3);n=!(!n.i&&!n.I);q.N7=n;return w||X||P||n}; F3T=function(n){n=g.a(n);for(var q=n.next();!q.done;q=n.next())if(q=q.value,q.itag&&$mm.has(q.itag))return!0;return!1}; gty=function(n){n=g.a(n);for(var q=n.next();!q.done;q=n.next())if(q.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; li=function(n){switch(n){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return n}}; vM=function(n){var q=[],w;for(w in n)if(n.hasOwnProperty(w)){var X=w;q.push(li(X));X=g.a(n[X]);for(var P=X.next();!P.done;P=X.next())q.push(P.value.itag)}return q.join(".")}; Ums=function(n,q,w,X,P,R){var c={},k={};g.nV(q,function(r,e){r=r.filter(function(f){var O=f.itag;if(!f.nV)return k[O]="noenc",!1;if(R.nM&&f.L5==="(h"&&R.Ne)return k[O]="lichdr",!1;if(!n.K&&f.L5==="1e")return k[O]="noav1enc",!1;if(f.L5==="("||f.L5==="(h"){if(n.C&&w&&w.flavor==="widevine"){var H=f.mimeType+"; experimental=allowed";(H=!!f.nV[w.flavor]&&!!w.N[H])||(k[O]=f.nV[w.flavor]?"unspt":"noflv");return H}if(!GG(n,CQ.CRYPTOBLOCKFORMAT)&&!n.HW||n.vW)return k[O]=n.vW?"disvp":"vpsub",!1}return w&&f.nV[w.flavor]&& w.N[f.mimeType]?!0:(k[O]=w?f.nV[w.flavor]?"unspt":"noflv":"nosys",!1)}); r.length&&(c[e]=r)}); X&&Object.entries(k).length&&P({rjr:In(k)});return c}; fy3=function(n,q){var w=t0(n,function(X,P){return P.video.fps>32?Math.min(X,P.video.width):X},Infinity); w32||X.video.widthn.D)return"max"+n.D;if(n.je&&q.L5==="h"&&q.video&&q.video.qualityOrdinal>1080)return"blkhigh264";if(q.L5==="(h"&&!w.G)return"enchdr";if((X===void 0?0:X)&&M8(q)&&!n.Tp)return"blk51live";if((q.L5==="MAC3"||q.L5==="mac3")&&!n.W)return"blkac3";if((q.L5==="MEAC3"||q.L5==="meac3")&&!n.K)return"blkeac3";if(q.L5==="M"||q.L5==="m")return"blkaac51"; if((q.L5==="so"||q.L5==="sa")&&!n.qP)return"blkamb";if(!n.nM&&x3T(q)&&(!w.K||q.L5!=="1e"))return"cbc";if(!w.K&&x3T(q)&&q.L5==="1e")return"cbcav1";if((q.L5==="i"||q.L5==="I")&&!n.KM)return"blkiamf";var R;if(n.Me&&((R=q.audio)==null?void 0:R.X)===!0)return"blkvbcabr";var c,k;if(n.Ff&&(q.L5==="1"||q.L5==="1h"||w.K&&q.L5==="1e")&&((c=q.video)==null?0:c.qualityOrdinal)&&((k=q.video)==null?void 0:k.qualityOrdinal)>n.Ff)return"av1cap";X=w.W.get(q.L5);if(!n.AK&&X&&X.YF>0)return P.add(q.L5),"byerr";var r; if((r=q.video)==null?0:r.fps>32){if(!w.WW&&!GG(w,CQ.FRAMERATE))return"capHfr";if(n.oH&&q.video.qualityOrdinal>=4320)return"blk8khfr";if(TU(q)&&n.KV&&q.nV&&q.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(n.ED&&q.ED>n.ED)return"ratecap";n=vts(w,q);return n!==!0?n:!0}; D2=function(n,q){q=q===void 0?[]:q;g.BG(n,function(w,X){var P=X.ED-w.ED;if(!w.ev()||!X.ev())return P;var R=X.video.height*X.video.width-w.video.height*w.video.width;!R&&q&&q.length>0&&(w=q.indexOf(w.L5)+1,X=q.indexOf(X.L5)+1,R=w===0||X===0?X||-1:w-X);R||(R=P);return R})}; g.Ei=function(n,q){this[I[18]]=n;this[I[44]]=q===void 0?!1:q;this[I[22]]=this[I[19]]=this[I[73]]=I[6];this[I[27]]={};this[I[4]]=I[6]}; bi=function(n){o$(n);return n[I[22]]}; Ay=function(n){return n[I[18]]?n[I[18]][I[13]](I[46]):n[I[73]]===I[46]}; L3s=function(n){o$(n);return g.PJ(n[I[27]],function(q){return q!==null})}; KQ=function(n){o$(n);var q=decodeURIComponent(n[I[23]](I[51])||I[6])[I[29]](I[42]);return n[I[19]]===I[56]&&q[I[5]]>1&&!!q[1]}; SZ=function(n,q){q=q===void 0?!1:q;o$(n);if(n[I[19]]!==I[56]){var w=n[I[35]]();w[I[3]](I[50],I[28]);return w}var X=n[I[60]]();w=new g.zu(X);var P=n[I[23]](I[91]),R=decodeURIComponent(n[I[23]](I[51])||I[6])[I[29]](I[42]);if(P&&R&&R[I[5]]>1&&R[1])return X=w.N,n=X[I[83]](/^[^.]*/,I[6]),g.NL(w,(X[I[31]](I[33])===0?I[33]:I[87])+P+I[69]+R[1]+n),w=new g.Ei(w[I[36]]()),w[I[3]](I[39],I[28]),w;if(q)return w=n[I[35]](),w[I[3]](I[39],I[28]),w;P=w.N[I[17]](I[86]);w.N[I[17]](I[63])?(g.NL(w,I[40]),X=w[I[36]]()): w.N[I[17]](I[68])?(g.NL(w,I[15]),X=w[I[36]]()):(w=yBy(X),l5(w)&&(X=w));w=new g.Ei(X);w[I[3]](I[81],I[28]);P&&w[I[3]](I[92],I[82]);return w}; o$=function(n){if(n[I[18]]){if(!(l5(n[I[18]])||n[I[18]][I[13]](I[46])||n[I[18]][I[13]](I[77])||n[I[18]][I[13]](I[74])))throw new g.b4(I[47],n[I[18]]);var q=g.ct(n[I[18]]);n[I[73]]=q.K;n[I[22]]=q.N+(q.C!=null?I[93]+q.C:I[6]);var w=q.X;if(w[I[13]](I[56]))n[I[19]]=I[56],w=w[I[11]](14);else if(w[I[13]](I[65]))n[I[19]]=I[65],w=w[I[11]](13);else if(w[I[13]](I[84])){var X=w[I[31]](I[61],12),P=w[I[31]](I[61],X+1);X>0&&P>0?(n[I[19]]=w[I[11]](0,P),w=w[I[11]](P+1)):(n[I[19]]=w,w=I[6])}else n[I[19]]=w,w=I[6]; X=n[I[27]];n[I[27]]=Mj0(w);Object[I[75]](n[I[27]],xmu(q.W.toString()));Object[I[75]](n[I[27]],X);n[I[27]][I[41]]===I[72]&&(delete n[I[27]][I[41]],n[I[19]]+=I[89]);n[I[18]]=I[6];n[I[4]]=I[6];n[I[44]]&&(o$(n),q=n[I[27]][I[25]]||null)&&(q=Dms[0](q),n[I[3]](I[25],q))}}; hru=function(n){o$(n);var q=n[I[73]]+(n[I[73]]?I[52]:I[14])+n[I[22]]+n[I[19]];if(L3s(n)){var w=[];g.nV(n[I[27]],function(X,P){X!==null&&w[I[30]](P+I[10]+X)}); q+=I[7]+w[I[43]](I[32])}return q}; Mj0=function(n){n=n[I[29]](I[61]);var q=0;n[0]||q++;for(var w={};q0?lyu(q,X[I[11]](0,P),X[I[11]](P+1)):X&&(q[X]=I[6])}return q}; lyu=function(n,q,w){if(q===I[9]){var X;(X=w[I[31]](I[10]))>=0?(q=I[45]+w[I[11]](0,X),w=w[I[11]](X+1)):(X=w[I[31]](I[24]))>=0&&(q=I[45]+w[I[11]](0,X),w=w[I[11]](X+3))}n[q]=w}; ui=function(n){var q=g.u(n,Grm)||n[I[90]];n={h6:!1,ey:I[6],Ns:I[6],s:I[6]};if(!q)return n;q=ZO(q);n[I[48]]=!0;n[I[38]]=q[I[4]];n[I[64]]=q[I[85]];n[I[37]]=q[I[37]];return n}; BM=function(n,q,w,X,P,R,c,k,r){this.kh=n;this.startTime=q;this.duration=w;this.ingestionTime=X;this.sourceURL=P;this.WX=r;this.endTime=q+w;this.N=c||0;this.range=R||null;this.pending=k||!1;this.WX=r||null}; g.QQ=function(){this.segments=[];this.N=null;this.X=!0;this.C=""}; Cvs=function(n,q){if(q>n.QL())n.segments=[];else{var w=tw(n.segments,function(X){return X.kh>=q},n); w>0&&n.segments.splice(0,w)}}; Z2=function(n,q,w,X,P){P=P===void 0?!1:P;this.data=n;this.offset=q;this.size=w;this.type=X;this.N=(this.X=P)?0:8;this.dataOffset=this.offset+this.N}; Jy=function(n){var q=n.data.getUint8(n.offset+n.N);n.N+=1;return q}; zG=function(n){var q=n.data.getUint16(n.offset+n.N);n.N+=2;return q}; WM=function(n){var q=n.data.getInt32(n.offset+n.N);n.N+=4;return q}; Ny=function(n){var q=n.data.getUint32(n.offset+n.N);n.N+=4;return q}; nz=function(n){var q=n.data;var w=n.offset+n.N;q=q.getUint32(w)*4294967296+q.getUint32(w+4);n.N+=8;return q}; q1=function(n,q){q=q===void 0?NaN:q;if(isNaN(q))var w=n.size;else for(w=n.N;w1?Math.ceil(P*q):Math.floor(P*q))}n.skip(1);w=Jy(n)<<16|zG(n);if(w&256){X=w&1;P=w&4;var R=w&512,c=w&1024,k=w&2048;w=Ny(n);X&&n.skip(4);P&&n.skip(4);X=(R?4:0)+(c?4:0)+(k?4:0);for(P=0;P1?Math.ceil(c*q):Math.floor(c*q)),n.skip(X)}}}; rg=function(n){n=new DataView(n.buffer,n.byteOffset,n.byteLength);return(n=g.IQ(n,0,1836476516))?g.kM(n):NaN}; JD3=function(n){var q=g.IQ(n,0,1937011556);if(!q)return null;q=jx(n,q.dataOffset+8,1635148593)||jx(n,q.dataOffset+8,1635135537);if(!q)return null;var w=jx(n,q.dataOffset+78,1936995172),X=jx(n,q.dataOffset+78,1937126244);if(!X)return null;q=null;if(w)switch(w.skip(4),Jy(w)){default:q=0;break;case 1:q=2;break;case 2:q=1;break;case 3:q=255}var P=w=null,R=null;if(X=jx(n,X.dataOffset,1886547818)){var c=jx(n,X.dataOffset,1886546020),k=jx(n,X.dataOffset,2037673328);if(!k&&(k=jx(n,X.dataOffset,1836279920), !k))return null;c&&(c.skip(4),w=WM(c)/65536,R=WM(c)/65536,P=WM(c)/65536);n=Ety(k);n=new DataView(n.buffer,n.byteOffset+8,n.byteLength-8);return new QCs(q,w,R,P,n)}return null}; jx=function(n,q,w){for(;ex(n,q);){var X=fz(n,q);if(X.type===w)return X;q+=X.size}return null}; g.IQ=function(n,q,w){for(;ex(n,q);){var X=fz(n,q);if(X.type===w)return X;q=Ow(X.type)?q+8:q+X.size}return null}; g.iO=function(n){if(n.data.getUint8(n.dataOffset)){var q=n.data;n=n.dataOffset+4;q=q.getUint32(n)*4294967296+q.getUint32(n+4)}else q=n.data.getUint32(n.dataOffset+4);return q}; fz=function(n,q){var w=n.getUint32(q),X=n.getUint32(q+4);return new Z2(n,q,w,X)}; g.kM=function(n){var q=n.data.getUint8(n.dataOffset)?20:12;return n.data.getUint32(n.dataOffset+q)}; zrY=function(n){n=new Z2(n.data,n.offset,n.size,n.type,n.X);var q=Jy(n);n.skip(7);var w=Ny(n);if(q===0){q=Ny(n);var X=Ny(n)}else q=nz(n),X=nz(n);n.skip(2);for(var P=zG(n),R=[],c=[],k=0;k122)return!1}return!0}; Ow=function(n){return n===1701082227||n===1836019558||n===1836019574||n===1835297121||n===1835626086||n===1937007212||n===1953653094||n===1953653099||n===1836475768}; W30=function(n){n.skip(4);return{wXn:q1(n,0),value:q1(n,0),timescale:Ny(n),tKn:Ny(n),eventDuration:Ny(n),id:Ny(n),Bz:q1(n),offset:n.offset}}; g.NBY=function(n){var q=jx(n,0,1701671783);if(!q)return null;var w=W30(q),X=w.wXn;w=cX(w.Bz);if(n=jx(n,q.offset+q.size,1701671783))if(n=W30(n),n=cX(n.Bz),w&&n){q=g.a(Object.keys(n));for(var P=q.next();!P.done;P=q.next())P=P.value,w[P]=n[P]}return w?new RQ(w,X):null}; HX=function(n,q){for(var w=jx(n,0,q);w;){var X=w;X.type=1936419184;X.data.setUint32(X.offset+4,1936419184);w=jx(n,w.offset+w.size,q)}}; g.Uw=function(n,q){for(var w=0,X=[];ex(n,w);){var P=fz(n,w);P.type===q&&X.push(P);w=Ow(P.type)?w+8:w+P.size}return X}; nwx=function(n,q){var w=g.IQ(n,0,1937011556),X=g.IQ(n,0,1953654136);if(!w||!X||n.getUint32(w.offset+12)>=2)return null;var P=new DataView(q.buffer,q.byteOffset,q.length),R=g.IQ(P,0,1937011556);if(!R)return null;q=P.getUint32(R.dataOffset+8);X=P.getUint32(R.dataOffset+12);if(X!==1701733217&&X!==1701733238)return null;X=new otO(n.byteLength+q);wg(X,n,0,w.offset+12);X.data.setInt32(X.offset,2);X.offset+=4;wg(X,n,w.offset+16,w.size-16);wg(X,P,P.byteOffset+R.dataOffset+8,q);wg(X,n,w.offset+w.size,n.byteLength- (w.offset+w.size));w=g.a([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(P=w.next();!P.done;P=w.next())P=g.IQ(n,0,P.value),X.data.setUint32(P.offset,P.size+q);n=g.IQ(X.data,0,1953654136);X.data.setUint32(n.offset+16,2);return X.data}; qmy=function(n){var q=g.IQ(n,0,1937011556);if(!q)return null;var w=n.getUint32(q.dataOffset+12);if(w!==1701733217&&w!==1701733238)return null;q=jx(n,q.offset+24+(w===1701733217?28:78),1936289382);if(!q)return null;w=jx(n,q.offset+8,1935894637);if(!w||n.getUint32(w.offset+12)!==1667392371)return null;q=jx(n,q.offset+8,1935894633);if(!q)return null;q=jx(n,q.offset+8,1952804451);if(!q)return null;w=new Uint8Array(16);for(var X=0;X<16;X++)w[X]=n.getInt8(q.offset+16+X);return w}; tW=function(n,q){this.N=n;this.pos=0;this.start=q||0}; dg=function(n){return n.pos>=n.N.byteLength}; V4=function(n,q,w){var X=new tW(w);if(!gg(X,n))return!1;X=mf(X);if(!y4(X,q))return!1;for(n=0;q;)q>>>=8,n++;q=X.start+X.pos;var P=aQ(X,!0);X=n+(X.start+X.pos-q)+P;X=X>9?wS3(X-9,8):wS3(X-2,1);n=q-n;w.setUint8(n++,236);for(q=0;qw;P++)w=w*256+vX(n),X*=128;return q?w-X:w}; Tc=function(n){var q=aQ(n,!0);n.pos+=q}; ReY=function(n){if(!y4(n,440786851,!0))return null;var q=n.pos;aQ(n,!1);var w=aQ(n,!0)+n.pos-q;n.pos=q+w;if(!y4(n,408125543,!1))return null;aQ(n,!0);if(!y4(n,357149030,!0))return null;var X=n.pos;aQ(n,!1);var P=aQ(n,!0)+n.pos-X;n.pos=X+P;if(!y4(n,374648427,!0))return null;var R=n.pos;aQ(n,!1);var c=aQ(n,!0)+n.pos-R,k=new Uint8Array(w+12+P+c),r=new DataView(k.buffer);k.set(new Uint8Array(n.N.buffer,n.N.byteOffset+q,w));r.setUint32(w,408125543);r.setUint32(w+4,33554431);r.setUint32(w+8,4294967295); k.set(new Uint8Array(n.N.buffer,n.N.byteOffset+X,P),w+12);k.set(new Uint8Array(n.N.buffer,n.N.byteOffset+R,c),w+12+P);return k}; Lz=function(n){var q=n.pos;n.pos=0;var w=1E6;gg(n,[408125543,357149030,2807729])&&(w=pz(n));n.pos=q;return w}; cgY=function(n,q){var w=n.pos;n.pos=0;if(n.N.getUint8(n.pos)!==160&&!M1(n)||!y4(n,160))return n.pos=w,NaN;aQ(n,!0);var X=n.pos;if(!y4(n,161))return n.pos=w,NaN;aQ(n,!0);vX(n);var P=vX(n)<<8|vX(n);n.pos=X;if(!y4(n,155))return n.pos=w,NaN;X=pz(n);n.pos=w;return(P+X)*q/1E9}; M1=function(n){if(!Iku(n)||!y4(n,524531317))return!1;aQ(n,!0);return!0}; Iku=function(n){if(n.U9()){if(!y4(n,408125543))return!1;aQ(n,!0)}return!0}; gg=function(n,q){for(var w=0;w0){var X=xmu(q.substring(w+1));g.nV(X,function(P,R){this.set(R,P)},n); q=q.substring(0,w)}q=Mj0(q);g.nV(q,function(P,R){this.set(R,P)},n)}; rg3=function(n){var q=n.Zi.kH(),w=[];g.nV(n.N,function(P,R){w.push(R+"="+P)}); if(!w.length)return q;var X=w.join("&");n=L3s(n.Zi)?"&":"?";return q+n+X}; D1=function(n,q){var w=new g.Ei(q);(q=w.get("req_id"))&&n.set("req_id",q);g.nV(n.N,function(X,P){w["set"](P,null)}); return w}; jnx=function(){this.W=this.C=this.N=this.timedOut=this.started=this.K=this.X=0}; hW=function(n){n.K=(0,g.m$)();n.started=0;n.timedOut=0;n.N=0}; lO=function(n,q){var w=n.started+n.N*4;q&&(w+=n.C);w=Math.max(0,w-3);return Math.pow(1.6,w)}; Gc=function(n,q){n[q]||(n[q]=new jnx);return n[q]}; Cz=function(n){this.L=this.G=this.K=this.C=0;this.V=this.D=!1;this.N=n;this.X=n.clone()}; sns=function(n,q,w){if(Ay(n.N))return!1;var X=Gc(w,bi(n.N));if(X.timedOut<1&&X.N<1)return!1;X=X.timedOut+X.N;n=Ew(n,q);w=Gc(w,bi(n));return w.timedOut+w.N+01?q=q.PB:(w=Gc(w,bO(n,n.E2(q,w),q)),q=Math.max(n.K,w.timedOut)+q.kB*(n.C-n.K)+.25*n.G,q=q>3?1E3*Math.pow(1.6,q-3):0);return q===0?!0:n.L+q<(0,g.m$)()}; ees=function(n,q,w){n.N.set(q,w);n.X.set(q,w);n.W&&n.W.set(q,w)}; fk6=function(n,q,w,X,P){++n.C;q&&++n.K;bi(w.Zi).startsWith("redirector.")&&(n.N=n.X.clone(),delete n.W,X.lO&&delete P[bi(n.N)])}; YM=function(n){return n?(n.itag||"")+";"+(n.lmt||0)+";"+(n.xtags||""):""}; Kz=function(n,q,w,X){this.initRange=w;this.indexRange=X;this.N=null;this.C=!1;this.D=0;this.W=this.RU=this.X=null;this.info=q;this.wc=new Cz(n)}; Sx=function(n,q){this.start=n;this.end=q;this.length=q-n+1}; uO=function(n){n=n.split("-");var q=Number(n[0]),w=Number(n[1]);if(!isNaN(q)&&!isNaN(w)&&n.length===2&&(n=new Sx(q,w),!isNaN(n.start)&&!isNaN(n.end)&&!isNaN(n.length)&&n.length>0))return n}; BX=function(n,q){return new Sx(n,n+q-1)}; OTT=function(n){return n.end==null?{start:String(n.start)}:{start:String(n.start),end:String(n.end)}}; Q4=function(n){if(!n)return new Sx(0,0);var q=Number(n.start);n=Number(n.end);if(!isNaN(q)&&!isNaN(n)&&(q=new Sx(q,n),q.length>0))return q}; Z1=function(n,q,w,X,P,R,c,k,r,e,f,O){X=X===void 0?"":X;this.type=n;this.N=q;this.range=w;this.source=X;this.Bl=f;this.clipId=O===void 0?"":O;this.L=[];this.G="";this.kh=-1;this.qP=this.PW=0;this.G=X;this.kh=P>=0?P:-1;this.startTime=R||0;this.duration=c||0;this.X=k||0;this.C=r>=0?r:this.range?this.range.length:NaN;this.K=this.range?this.X+this.C===this.range.length:e===void 0?!!this.C:e;this.range?(this.W=this.startTime+this.duration*this.X/this.range.length,this.V=this.duration*this.C/this.range.length, this.D=this.W+this.V):iTs(this)}; iTs=function(n){n.W=n.startTime;n.V=n.duration;n.D=n.W+n.V}; HT0=function(n,q,w){var X=!(!q||q.N!==n.N||q.type!==n.type||q.kh!==n.kh);return w?X&&!!q&&(n.range&&q.range?q.range.end===n.range.end:q.range===n.range)&&q.X+q.C===n.X+n.C:X}; JW=function(n){return n.type===1||n.type===2}; zc=function(n){return n.type===3||n.type===6}; WX=function(n,q){return n.N===q.N?n.range&&q.range?n.range.start+n.X+n.C===q.range.start+q.X:n.kh===q.kh?n.X+n.C===q.X:n.kh+1===q.kh&&q.X===0&&n.K:!1}; tSu=function(n,q){return n.kh!==q.kh&&q.kh!==n.kh+1||n.type!==q.type?!1:WX(n,q)?!0:Math.abs(n.W-q.W)<=1E-6&&n.kh===q.kh?!1:U80(n,q)}; U80=function(n,q){return WX(n,q)||Math.abs(n.D-q.W)<=1E-6||n.kh+1===q.kh&&q.X===0&&n.K?!0:!1}; N1=function(n){return n.kh+(n.K?1:0)}; d8O=function(n){n.length===1||g.UF(n,function(w){return!!w.range}); for(var q=1;q=q.range.start+q.X&&n.range.start+n.X+n.C<=q.range.start+q.X+q.C:n.kh===q.kh&&n.X>=q.X&&(n.X+n.C<=q.X+q.C||q.K)}; Tq0=function(n,q){return n.N!==q.N?!1:n.type===4&&q.type===3&&n.N.CD()?(n=n.N.Wm(n),Yo(n,function(w){return Tq0(w,q)})):n.kh===q.kh&&!!q.C&&q.X+q.C>n.X&&q.X+q.C<=n.X+n.C}; qc=function(n,q){var w=q.kh;n.G="updateWithSegmentInfo";n.kh=w;if(n.startTime!==q.startTime||n.duration!==q.duration)n.startTime=q.startTime+n.PW,n.duration=q.duration,iTs(n)}; wl=function(n,q){var w=this;this.Se=n;this.W=this.N=null;this.K=this.qL=NaN;this.E2=this.requestId=null;this.Wb={LMq:function(){return w.range}}; this.wc=n[0].N.wc;this.X=q||"";this.Se[0].range&&this.Se[0].C>0&&(gw3(n)?(this.range=d8O(n),this.C=this.range.length):(this.range=this.Se[this.Se.length-1].range,this.C=m8O(n)))}; XB=function(n){return!JW(n.Se[n.Se.length-1])}; Px=function(n){return n.Se[n.Se.length-1].type===4}; g.Rf=function(n,q,w){w=n.E2===null?n.wc.E2(q,w,n.Se[0].type):n.E2;if(n.N){q=w?SZ(n.N,q.vr):n.N;var X=new xM(q);X.get("alr")||X.set("alr","yes");n.X&&kUO(X,n.X)}else/http[s]?:\/\//.test(n.X)?X=new xM(new g.Ei(n.X)):(X=oQ(n.wc,w,q),n.X&&kUO(X,n.X));(q=n.range)?X.set("range",q.toString()):n.Se[0].N.BH()&&n.Se.length===1&&n.Se[0].X&&X.set("range",n.Se[0].X+"-");n.requestId&&X.set("req_id",n.requestId);isNaN(n.qL)||X.set("headm",n.qL.toString());isNaN(n.K)||X.set("mffa",n.K+"ms");n.urlParams&&g.nV(n.urlParams, function(P,R){X.set(R,P)}); return X}; Fxm=function(n){if(n.range)return n.C;n=n.Se[0];return Math.round(n.V*n.N.info.ED)}; $8s=function(n,q){return Math.max(0,n.Se[0].W-q)}; cx=function(n,q,w,X,P,R){R=R===void 0?0:R;Kz.call(this,n,q,X,void 0);this.K=w;this.SJ=R;this.index=P||new g.QQ}; vwh=function(n,q,w,X,P){this.kh=n;this.startSecs=q;this.lx=w;this.N=X||NaN;this.X=P||NaN}; If=function(n,q,w){for(;n;n=n.parentNode)if(n.attributes&&(!w||n.nodeName===w)){var X=n.getAttribute(q);if(X)return X}return""}; kU=function(n,q){for(;n;n=n.parentNode){var w=n.getElementsByTagName(q);if(w.length>0)return w[0]}return null}; Lxs=function(n){if(!n)return 0;var q=n.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return q?(Number(q[2])|0)*3600+(Number(q[4])|0)*60+(Number(q[6])|0):Number(n)|0}; MSh=function(n){return n.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?n+"Z":n}; rl=function(){this.N=[];this.X=null;this.D=0;this.C=[];this.K=!1;this.G="";this.W=-1}; x8y=function(n){var q=n.C;n.C=[];return q}; D8u=function(){this.W=[];this.N=null;this.X={};this.C={}}; CK3=function(n,q){var w=[];q=Array.from(q.getElementsByTagName("SegmentTimeline"));q=g.a(q);for(var X=q.next();!X.done;X=q.next()){X=X.value;var P=X.parentNode.parentNode,R=null;P.nodeName==="Period"?R=hes(n):P.nodeName==="AdaptationSet"?(P=P.getAttribute("id")||P.getAttribute("mimetype")||"",R=lku(n,P)):P.nodeName==="Representation"&&(P=P.getAttribute("id")||"",R=GUm(n,P));if(R==null)return;R.update(X);g.xi(w,x8y(R))}g.xi(n.W,w);Fzx(n.W,function(c){return c.startSecs*1E3+c.N})}; EwT=function(n){n.N&&(n.N.N=[]);g.nV(n.X,function(q){q.N=[]}); g.nV(n.C,function(q){q.N=[]})}; hes=function(n){n.N||(n.N=new rl);return n.N}; lku=function(n,q){n.X[q]||(n.X[q]=new rl);return n.X[q]}; GUm=function(n,q){n.C[q]||(n.C[q]=new rl);return n.C[q]}; s7=function(n){var q=n===void 0?{}:n;n=q.SJ===void 0?0:q.SJ;var w=q.hL===void 0?!1:q.hL;var X=q.kp===void 0?0:q.kp;var P=q.vX===void 0?0:q.vX;var R=q.Cb===void 0?Infinity:q.Cb;var c=q.Kr===void 0?0:q.Kr;var k=q.Tz===void 0?!1:q.Tz;q=q.dk===void 0?!1:q.dk;g.QQ.call(this);this.Og=this.pX=-1;this.W_=n;this.kp=X;this.hL=w;this.vX=P;this.Cb=R;this.Kr=c;((this.Tz=k)||isFinite(R)&&this.Cb>0)&&w&&jR&&(this.X=!1,this.C="postLive");this.dk=q}; eR=function(n,q){return Kj(n.segments,function(w){return q-w.kh})}; fS=function(n,q,w){w=w===void 0?{}:w;cx.call(this,n,q,"",void 0,void 0,w.SJ||0);this.index=new s7(w)}; O7=function(n,q,w){Kz.call(this,n,q);this.K=w;n=this.index=new g.QQ;n.X=!1;n.C="d"}; owy=function(n,q,w){var X=n.index.pn(q),P=n.index.getStartTime(q),R=n.index.getDuration(q);w?R=w=0:w=n.info.ED*R;return new wl([new Z1(3,n,void 0,"otfCreateRequestInfoForSegment",q,P,R,0,w)],X)}; bT6=function(n,q){if(!n.index.isLoaded()){var w=[],X=q.W;q=q.K.split(",").filter(function(f){return f.length>0}); for(var P=0,R=0,c=0,k=/^(\d+)/,r=/r=(\d+)/,e=0;e0&&(P.N=Math.min(P.N+c,10),P.X=R);P.N>0?(P.N--,P=!0):P=!1;if(P)typeof X==="function"&&(X=X()),console.log("plyr."+q,X);else{var k;X=((k=Bqx.get(q))!=null?k:0)+1;Bqx.set(q,X);X%100===1&&console.warn("plyr","plyr."+q+" is chatty, dropping logs.")}}}; uwh=function(){this.N=10;this.X=Date.now()}; U7=function(n,q){this.info=n;this.X=q;this.N=null;this.W=this.C=-1;this.timestampOffset=0;this.isLocked=this.D=!1;this.K=this.info.N.cV()&&!this.info.X}; g.t9=function(n){return A83(n.X)}; QnY=function(n,q){q=Math.min(q,n.info.C);var w=n.X.split(q),X=w.yU;w=new U7(new Z1(n.info.type,n.info.N,n.info.range,n.info.G,n.info.kh,n.info.startTime,n.info.duration,n.info.X,q,!1,n.info.Bl,n.info.clipId),w.h9);w.W=n.W;w.C=n.C;q=new U7(new Z1(n.info.type,n.info.N,n.info.range,n.info.G,n.info.kh,n.info.startTime,n.info.duration,n.info.X+q,n.info.C-q,n.info.K,n.info.Bl,n.info.clipId),X);q.W=n.W;q.C=n.C;return[w,q]}; g.dl=function(n,q,w,X){w=w===void 0?!1:w;X=X===void 0?0:X;if(n.isLocked||q.isLocked||!WX(n.info,q.info)||n.info.K)return null;if(X){if(n.X.totalLength+q.X.totalLength>X)return null}else if(w&&(w=n.X,X=q.X,w=!(X.N.length?osO(w,X.N[0]):1)),w)return null;w=new Z1(n.info.type,n.info.N,n.info.range,n.info.G,n.info.kh,n.info.startTime,n.info.duration,n.info.X,n.info.C,n.info.K,n.info.Bl,n.info.clipId);X=q.info;w.C+=X.C;w.range&&(w.V+=X.V);w.D=X.D;w.K=X.K;X=new nt;qO(X,n.X);qO(X,q.X);w=new U7(w,X);w.N!= null&&q.N!=null&&(new g.il("dash")).N(414627957,"merged slice emsg overridden; prev: "+w.N.gG()+" next: "+q.N.gG());w.N=q.N||n.N;w.C=n.C!==-1?n.C:q.C;w.W=n.W!==-1?n.W:q.W;return w}; g.gl=function(n){g.xw(n.info.N.info)||n.info.N.info.PX();if(n.C!==-1)return n.C;if(n.N&&YZm(n.N))return n.C=YZm(n.N),n.C;if(g.xw(n.info.N.info)){var q=g.t9(n);for(var w=n.info.N.N,X=NaN,P=NaN,R=0;ex(q,R);){var c=fz(q,R);c.type===1936286840?P=c.data.getUint32(c.dataOffset+8):c.type===1836476516?P=g.kM(c):c.type===1952867444&&isNaN(X)&&(X=g.iO(c));R=Ow(c.type)?R+8:R+c.size}!P&&w&&(P=rg(w));q=X/P}else q=new tW(g.t9(n)),w=n.K?q:new tW(new DataView(n.info.N.N.buffer)),X=Lz(w),w=q.pos,q.pos=0,M1(q)?y4(q, 231)?(X=pz(q)*X/1E9,q.pos=w,q=X):(q.pos=w,q=NaN):(q.pos=w,q=NaN);n.C=q||n.info.W;return n.C}; Jg6=function(n,q){n.timestampOffset>0&&(q-=n.timestampOffset);var w=g.gl(n)+q;ZT3(n,w);n.timestampOffset=q}; ZT3=function(n,q){g.xw(n.info.N.info)||n.info.N.info.PX();n.C=q;if(g.xw(n.info.N.info)){var w=g.t9(n);n=n.info.N.N;for(var X=NaN,P=NaN,R=0;ex(w,R);){var c=fz(w,R);isNaN(X)&&(c.type===1936286840?X=c.data.getUint32(c.dataOffset+8):c.type===1836476516&&(X=g.kM(c)));if(c.type===1952867444){!X&&n&&(X=rg(n));var k=g.iO(c);isNaN(P)&&(P=Math.round(q*X)-k);var r=c;k+=P;if(r.data.getUint8(r.dataOffset)){var e=r.data;r=r.dataOffset+4;e.setUint32(r,Math.floor(k/4294967296));e.setUint32(r+4,k&4294967295)}else r.data.setUint32(r.dataOffset+ 4,k)}R=Ow(c.type)?R+8:R+c.size}return!0}w=new tW(g.t9(n));n=n.K?w:new tW(new DataView(n.info.N.N.buffer));X=Lz(n);n=w.pos;w.pos=0;if(M1(w)&&y4(w,231))if(P=aQ(w,!0),q=Math.floor(q*1E9/X),Math.ceil(Math.log(q)/Math.log(2)/8)>P)q=!1;else{for(X=P-1;X>=0;X--)w.N.setUint8(w.pos+X,q&255),q>>>=8;w.pos=n;q=!0}else q=!1;return q}; yW=function(n,q){q=q===void 0?!1:q;var w=ml(n);n=q?0:n.info.V;return w||n}; ml=function(n){g.xw(n.info.N.info)||n.info.N.info.PX();if(n.N&&n.info.type===6)return n.N.SJ;if(g.xw(n.info.N.info)){var q=g.t9(n);var w=0;q=g.Uw(q,1936286840);q=g.a(q);for(var X=q.next();!X.done;X=q.next())X=zrY(X.value),w+=X.Eb[0]/X.timescale;w=w||NaN;if(!(w>=0))a:{w=g.t9(n);q=n.info.N.N;for(var P=X=0,R=0;ex(w,X);){var c=fz(w,X);if(c.type===1836476516)P=g.kM(c);else if(c.type===1836019558){!P&&q&&(P=rg(q));if(!P){w=NaN;break a}var k=jx(c.data,c.dataOffset,1953653094),r=k;k=P;var e=jx(r.data,r.dataOffset, 1952868452);r=jx(r.data,r.dataOffset,1953658222);var f=WM(e);WM(e);f&2&&WM(e);e=f&8?WM(e):0;var O=WM(r),H=O&1;f=O&4;var U=O&256,t=O&512,V=O&1024;O&=2048;var T=Ny(r);H&&WM(r);f&&WM(r);for(var x=H=0;x2048?"":q.indexOf("https://")===0?q:""}; $U=function(n,q,w){q.match(kjh);return n(q,w).then(function(X){var P=g.IV6(X.xhr);return P?$U(n,P,w):X.xhr})}; xU=function(n,q,w){n=n===void 0?"":n;q=q===void 0?null:q;w=w===void 0?!1:w;g.np.call(this);var X=this;this.sourceUrl=n;this.isLivePlayback=w;this.Ff=this.duration=0;this.isPremiere=this.Tz=this.W=this.isLiveHeadPlayable=this.isLive=this.X=!1;this.Cb=this.vX=0;this.isOtf=this.T9=!1;this.n5=(0,g.m$)();this.qP=Infinity;this.N={};this.C=new Map;this.state=this.k8=0;this.timeline=null;this.isManifestless=!1;this.vW=[];this.D=null;this.HW=0;this.K="";this.Tp=NaN;this.WW=this.nM=this.timestampOffset=this.G= 0;this.qg=this.h5=NaN;this.ej=0;this.D0=this.L=!1;this.IH=[];this.oH={};this.PW=NaN;this.Wb={fye:function(k){vx(X,k)}}; var P;this.je=(P=q)==null?void 0:P.BW("html5_use_network_error_code_enums");rYx=!!q&&q.BW("html5_modern_vp9_mime_type");var R;LS=!((R=q)==null||!R.BW("html5_enable_flush_during_seek"))&&g.od();var c;Mc=!((c=q)==null||!c.BW("html5_enable_reset_audio_decoder"))&&g.od()}; jOO=function(n){return g.PJ(n.N,function(q){return!!q.info.video&&q.info.video.qualityOrdinal>=2160})}; pPy=function(n){return g.PJ(n.N,function(q){return!!q.info.video&&q.info.video.isHdr()})}; My=function(n){return g.PJ(n.N,function(q){return!!q.info.nV})}; g.sOh=function(n){return g.PJ(n.N,function(q){return CT(q.info.mimeType)})}; e3x=function(n){return g.PJ(n.N,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR":!1})}; fVh=function(n){return g.PJ(n.N,function(q){return q.info.video?q.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; OKO=function(n){return g.PJ(n.N,function(q){return q.info.video?q.info.video.projectionType==="MESH":!1})}; iK3=function(n){return g.PJ(n.N,function(q){return q.info.video?q.info.video.stereoLayout===1:!1})}; HKO=function(n){return xsY(n.N,function(q){return q.info.video?q.eD():!0})}; $T=function(n){return g.PJ(n.N,function(q){return Ay(q.wc.N)})}; vx=function(n,q){n.N[q.info.id]=q;n.C.set(YM(g.hg(q.info,n.T9)),q)}; ll=function(n,q,w){w=w===void 0?0:w;var X=n.mimeType||"",P=n.itag;var R=n.xtags;P=P?P.toString():"";R&&(P+=";"+R);R=P;if(GU(X)){var c=n.width||640;P=n.height||360;var k=n.fps,r=n.qualityLabel,e=n.colorInfo,f=n.projectionType,O;n.stereoLayout&&(O=UP0[n.stereoLayout]);var H=R3T(n)||void 0;if(e==null?0:e.primaries)var U=tkm[e.primaries]||void 0;c=new mx(c,P,k,f,O,void 0,r,H,U);X=Dv(X,c,VR[n.itag||""]);LS&&(X+="; enableflushduringseek=true");Mc&&(X+="; enableresetaudiodecoder=true")}var t;if(lK(X)){var V= n.audioSampleRate;O=n.audioTrack;V=new tg(V?+V:void 0,n.audioChannels,n.spatialAudioType,n.isDrc,n.loudnessDb,n.trackAbsoluteLoudnessLkfs,n.audioQuality||"AUDIO_QUALITY_UNKNOWN",n.isVb);O&&(U=O.displayName,P=O.id,O=O.audioIsDefault,U&&(t=new g.FB(U,P||"",!!O)))}var T;n.captionTrack&&(r=n.captionTrack,O=r.displayName,U=r.vssId,P=r.languageCode,k=r.kind,r=r.id,O&&U&&P&&(T=new Xch(O,U,P,k,n.xtags,r)));O=Number(n.bitrate)/8;U=Number(n.contentLength);P=Number(n.lastModified);r=n.drmFamilies;k=n.type;w= w&&U?U/w:0;n=Number(n.approxDurationMs);if(q&&r){var x={};r=g.a(r);for(e=r.next();!e.done;e=r.next())(e=h9[e.value])&&(x[e]=q[e])}return new pT(R,X,{audio:V,video:c,Va:t,nV:x,ED:O,B9:w,contentLength:U,lastModified:P,captionTrack:T,streamType:k,approxDurationMs:n})}; G4=function(n,q,w){w=w===void 0?0:w;var X=n.type;var P=n.itag;var R=n.xtags;R&&(P=n.itag+";"+R);if(GU(X)){var c=(n.size||"640x360").split("x");c=new mx(+c[0],+c[1],+n.fps,n.projection_type,+n.stereo_layout,void 0,n.quality_label,n.eotf,n.primaries);X=Dv(X,c,VR[n.itag]);LS&&(X+="; enableflushduringseek=true");Mc&&(X+="; enableresetaudiodecoder=true")}var k;if(lK(X)){var r=new tg(+n.audio_sample_rate||void 0,+n.audio_channels||0,n.spatial_audio_type,!!n.drc);n.name&&(k=new g.FB(n.name,n.audio_track_id, n.isDefault==="1"))}var e;n.caption_display_name&&n.caption_vss_id&&n.caption_language_code&&(e=new Xch(n.caption_display_name,n.caption_vss_id,n.caption_language_code,n.caption_kind,n.xtags,n.caption_id));R=Number(n.bitrate)/8;var f=Number(n.clen),O=Number(n.lmt);w=w&&f?f/w:0;if(q&&n.drm_families){var H={};for(var U=g.a(n.drm_families.split(",")),t=U.next();!t.done;t=U.next())t=t.value,H[t]=q[t]}return new pT(P,X,{audio:r,video:c,Va:k,nV:H,ED:R,B9:w,contentLength:f,lastModified:O,captionTrack:e, streamType:n.stream_type,approxDurationMs:Number(n.approx_duration_ms)})}; dPs=function(n){return Yo(n,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; g83=function(n){return Yo(n,function(q){return"FORMAT_STREAM_TYPE_OTF"===q.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; mPu=function(n,q){return n.timeline?Gf(n.timeline.W,q):n.vW.length?Gf(n.vW,q):[]}; CS=function(n,q,w){q=q===void 0?"":q;w=w===void 0?"":w;n=new g.Ei(n,!0);n.set("alr","yes");w&&(w=uAO(decodeURIComponent(w)),n[I[3]](q,encodeURIComponent(w)));return n}; pcx=function(n,q){var w=If(q,"id");w=w.replace(":",";");var X=If(q,"mimeType"),P=If(q,"codecs");X=P?X+'; codecs="'+P+'"':X;P=Number(If(q,"bandwidth"))/8;var R=Number(kU(q,"BaseURL").getAttribute(n.K+":contentLength")),c=n.duration&&R?R/n.duration:0;if(GU(X)){var k=Number(If(q,"width"));var r=Number(If(q,"height")),e=Number(If(q,"frameRate")),f=yYm(If(q,n.K+":projectionType"));a:switch(If(q,n.K+":stereoLayout")){case "layout_left_right":var O=1;break a;case "layout_top_bottom":O=2;break a;default:O= 0}k=new mx(k,r,e,f,O)}if(lK(X)){var H=Number(If(q,"audioSamplingRate"));var U=Number(If(q.getElementsByTagName("AudioChannelConfiguration")[0],"value"));r=aVh(If(q,n.K+":spatialAudioType"));H=new tg(H,U,r);a:{U=If(q,"lang")||"und";if(r=kU(q,"Role"))if(f=If(r,"value")||"",g.jn(Vk6,f)){r=U+"."+Vk6[f];e=f==="main";n=If(q,n.K+":langName")||U+" - "+f;U=new g.FB(n,r,e);break a}U=void 0}}if(q=kU(q,"ContentProtection"))if(q.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var t={};for(q= q.firstChild;q!=null;q=q.nextSibling)q instanceof Element&&/SystemURL/.test(q.nodeName)&&(n=q.getAttribute("type"),r=q.textContent,n&&r&&(t[n]=r.trim()))}else t=void 0;return new pT(w,X,{audio:H,video:k,Va:U,nV:t,ED:P,B9:c,contentLength:R})}; yYm=function(n){switch(n){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"}}; aVh=function(n){switch(n){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"}}; FE0=function(n,q){q=q===void 0?"":q;n.state=1;n.n5=(0,g.m$)();return cYs(q||n.sourceUrl).then(function(w){if(!n.zp()){n.k8=w.status;w=w.responseText;var X=new DOMParser;w=F9(X,GHO(w),"text/xml").getElementsByTagName("MPD")[0];n.qP=Lxs(If(w,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(w.attributes){X=g.a(w.attributes);for(var P=X.next();!P.done;P=X.next())if(P=P.value,P.value==="http://youtube.com/yt/2012/10/10"){X=P.name.split(":")[1];break b}}X=""}n.K=X;n.isLive=n.qP=n.qP}; v80=function(n){n.D&&n.D.stop()}; Tdy=function(n){var q=n.qP;isFinite(q)&&(E7(n)?n.refresh():(q=Math.max(0,n.n5+q-(0,g.m$)()),n.D||(n.D=new g.YF(n.refresh,q,n),g.K(n,n.D)),n.D.start(q)))}; LEx=function(n){n=n.N;for(var q in n){var w=n[q].index;if(w.isLoaded())return w.QL()+1}return 0}; of=function(n){return n.nM?n.nM-(n.G||n.timestampOffset):0}; bl=function(n){return n.WW?n.WW-(n.G||n.timestampOffset):0}; A9=function(n){if(!isNaN(n.Tp))return n.Tp;var q=n.N,w;for(w in q){var X=q[w].index;if(X.isLoaded()&&!CT(q[w].info.mimeType)){q=0;for(w=X.G4();w<=X.QL();w++)q+=X.getDuration(w);q/=X.Y$();q=Math.round(q/.5)*.5;X.Y$()>10&&(n.Tp=q);return q}if(n.isLive&&(X=q[w],X.SJ))return X.SJ}return NaN}; Mkh=function(n,q){n=hhT(n.N,function(X){return X.index.isLoaded()}); if(!n)return NaN;n=n.index;var w=n.NL(q);return n.getStartTime(w)===q?q:w=0&&P.segments.splice(R,1)}}}; DPm=function(n){for(var q in n.N)CT(n.N[q].info.mimeType)||Cvs(n.N[q].index,Infinity)}; SR=function(n,q,w){for(var X in n.N){var P=n.N[X].index,R=q,c=w;P.hL&&(R&&(P.pX=Math.max(P.pX,R)),c&&(P.Og=Math.max(P.Og||0,c)))}w&&(n.PW=w/1E3)}; h3y=function(n){n.WW=0;n.nM=0;n.ej=0}; ul=function(n){return n.D0&&n.isManifestless?n.isLiveHeadPlayable:n.isLive}; Dv=function(n,q,w){Bx===null&&(Bx=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(rYx&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Bx||w!=="9"&&w!=="("?Bx||w!=="9h"&&w!=="(h"||(n='video/webm; codecs="vp9.2"'):n='video/webm; codecs="vp9"',n;if(!Bx&&!QW||n!=='video/webm; codecs="vp9"'&&n!=='video/webm; codecs="vp9.2"')return n; w="00";var X="08",P="01",R="01",c="01";n==='video/webm; codecs="vp9.2"'&&(w="02",X="10",q.primaries==="bt2020"&&(c=P="09"),q.N==="smpte2084"&&(R="16"),q.N==="arib-std-b67"&&(R="18"));return'video/webm; codecs="'+["vp09",w,"51",X,"01",P,R,c,"00"].join(".")+'"'}; J9=function(n,q,w){n=""+n+(q>49?"p60":q>32?"p48":"");q=si()[n];if(q!=null&&q>0)return q;q=Zv.get(n);if(q!=null&&q>0)return q;w=w==null?void 0:w.get(n);return w!=null&&w>0?w:8192}; lV6=function(n){this.aH=n;this.JU=this.x0=this.HW=this.K=this.W=this.IH=this.D0=this.qP=!1;this.G=this.D=0;this.je=!1;this.PW=!0;this.oH=!1;this.Cd=0;this.Q7=this.vW=!1;this.tU=!0;this.n5=this.Tp=!1;this.N={};this.AK=this.Me=this.sD=this.disableAv1=this.Ne=this.N7=this.RH=this.qe=this.X=this.V=!1;this.aS=this.aH.Z("html5_disable_aac_preference");this.YE=Infinity;this.WW=0;this.ej=this.aH.uL();this.nM=this.aH.experiments.BW("html5_enable_vp9_fairplay");this.bx=this.aH.Z("html5_force_av1_for_testing"); this.Ff=g.Jv(this.aH.experiments,"html5_av1_ordinal_cap");this.KV=this.aH.Z("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.iS=this.aH.Z("html5_account_onesie_format_selection_during_format_filter");this.ED=g.Jv(this.aH.experiments,"html5_max_byterate");this.KM=this.aH.Z("html5_enable_iamf_audio");this.VL=this.aH.experiments.BW("html5_allow_capability_merge");this.KG=this.aH.Z("html5_enable_encrypted_av1")}; TBs=function(n){if(n.D0)return["f"];if(g.Ce("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var q=["9h","9","h","8"];n.KG&&q.push("1e");q=q.concat(["(h","(","H","*"]);n.vW&&(q.unshift("1"),q.unshift("1h"));n.x0&&q.unshift("h");n.L&&(q=(Gjm[n.L]||[n.L]).concat(q));return q}; dmY=function(n){var q=["o","a","A"];n.WW===1&&(n.W&&(q=["mac3","MAC3"].concat(q)),n.K&&(q=["meac3","MEAC3"].concat(q)),n.KM&&(q=["i","I"].concat(q)));n.qP&&(q=["so","sa"].concat(q));!n.JU||n.HW||n.C||n.aS||q.unshift("a");n.C&&(q=(Gjm[n.C]||[n.C]).concat(q));return q}; z4=function(n,q,w,X){q=q===void 0?{}:q;if(X===void 0?0:X)return q.disabled=1,0;if(GG(n.K,CQ.AV1_CODECS)&&GG(n.K,CQ.HEIGHT)&&GG(n.K,CQ.BITRATE))return q.isCapabilityUsable=1,8192;try{var P=qZO();if(P&&!n.Z("disable_av1_setting"))return q.localPref=P}catch(k){}X=1080;P=navigator.hardwareConcurrency;P<=2&&(X=480);q.coreCount=P;if(P=g.Jv(n.experiments,"html5_default_av1_threshold"))X=q["default"]=P;!n.Z("html5_disable_av1_arm_check")&&gDs()&&(q.isArm=1,X=240);if(n=n.K.PW)q.mcap=n,X=Math.max(X,n);if(w){var R, c;if(n=(R=w.videoInfos.find(function(k){return vS(k)}))==null?void 0:(c=R.X)==null?void 0:c.powerEfficient)X=8192,q.isEfficient=1; w=w.videoInfos[0].video;R=Math.min(J9("1",w.fps),J9("1",30));q.perfCap=R;X=Math.min(X,R);w.isHdr()&&!n&&(q.hdr=1,X*=.75)}else w=J9("1",30),q.perfCap30=w,X=Math.min(X,w),w=J9("1",60),q.perfCap60=w,X=Math.min(X,w);return q.av1Threshold=X}; Wx=function(n,q,w,X){this.flavor=n;this.keySystem=q;this.X=w;this.experiments=X;this.N={};this.Ff=this.keySystemAccess=null;this.D8=this.uR=-1;this.Mg=null;this.C=!!X&&X.BW("edge_nonprefixed_eme");X&&X.BW("html5_enable_vp9_fairplay")}; nJ=function(n){return n.C?!1:!n.keySystemAccess&&!!Nc()&&n.keySystem==="com.microsoft.playready"}; qT=function(n){return n.keySystem==="com.microsoft.playready"}; w5=function(n){return!n.keySystemAccess&&!!Nc()&&n.keySystem==="com.apple.fps.1_0"}; Xm=function(n){return n.keySystem==="com.youtube.fairplay"}; Pe=function(n){return n.keySystem==="com.youtube.fairplay.sbdl"}; g.Ry=function(n){return n.flavor==="fairplay"}; Nc=function(){var n=window,q=n.MSMediaKeys;YA()&&!q&&(q=n.WebKitMediaKeys);return q&&q.isTypeSupported?q:null}; Iy=function(n){return navigator.requestMediaKeySystemAccess?g.fT&&!g.od()?to("45"):g.AN||g.IU?n.BW("edge_nonprefixed_eme"):g.ce?to("47"):g.fW&&n.BW("html5_enable_safari_fairplay")?!1:!0:!1}; CrT=function(n,q,w,X){var P=bb(),R=(w=P||w&&YA())?["com.youtube.fairplay"]:["com.widevine.alpha"];q&&R.unshift("com.youtube.widevine.l3");P&&X&&R.unshift("com.youtube.fairplay.sbdl");return w?R:n?[].concat(g.D(R),g.D(ka.playready)):[].concat(g.D(ka.playready),g.D(R))}; r5=function(n,q,w,X,P){X=X===void 0?!1:X;g.A.call(this);this.aH=q;this.useCobaltWidevine=X;this.p5=P;this.X=[];this.C={};this.N={};this.callback=null;this.K=!1;this.W=[];this.initialize(n,!w)}; o8s=function(n,q){n.callback=q;n.W=[];Iy(n.aH.experiments)?jC(n):E8T(n)}; jC=function(n){if(!n.zp())if(n.X.length===0)n.callback(n.W);else{var q=n.X[0],w=n.C[q],X=bK0(n,w);if(sX&&sX.keySystem===q&&sX.xin===JSON.stringify(X))n.p5("remksa",{re:!0}),AYs(n,w,sX.keySystemAccess);else{var P,R;n.p5("remksa",{re:!1,ok:(R=(P=sX)==null?void 0:P.keySystem)!=null?R:""});sX=void 0;navigator.requestMediaKeySystemAccess(q,X).then(Gi(function(c){AYs(n,w,c,X)}),Gi(function(){n.K=!n.K&&n.C[n.X[0]].flavor==="widevine"; n.K||n.X.shift();jC(n)}))}}}; AYs=function(n,q,w,X){if(!n.zp()){X&&(sX={keySystem:q.keySystem,keySystemAccess:w,xin:JSON.stringify(X)});q.keySystemAccess=w;if(qT(q)){w=sm();X=g.a(Object.keys(n.N[q.flavor]));for(var P=X.next();!P.done;P=X.next())P=P.value,q.N[P]=!!w.canPlayType(P)}else{w=q.keySystemAccess.getConfiguration();if(w.audioCapabilities)for(X=g.a(w.audioCapabilities),P=X.next();!P.done;P=X.next())q.N[P.value.contentType]=!0;if(w.videoCapabilities)for(w=g.a(w.videoCapabilities),X=w.next();!X.done;X=w.next())q.N[X.value.contentType]= !0}n.W.push(q);n.useCobaltWidevine||n.Z("html5_enable_vp9_fairplay")&&Pe(q)?(n.X.shift(),jC(n)):n.callback(n.W)}}; bK0=function(n,q){var w={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(n.Z("html5_enable_vp9_fairplay")&&Xm(q))return w.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),w.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[w];qT(q)&&(w.initDataTypes=["keyids","cenc"]);for(var X=g.a(Object.keys(n.N[q.flavor])),P=X.next();!P.done;P=X.next()){P=P.value;var R=P.indexOf("audio/")===0,c=R?w.audioCapabilities:w.videoCapabilities;q.flavor!== "widevine"||n.K?c.push({contentType:P}):R?c.push({contentType:P,robustness:"SW_SECURE_CRYPTO"}):(g.fT&&g.Ce("windows nt")&&!n.Z("html5_drm_enable_moho")||c.push({contentType:P,robustness:"HW_SECURE_ALL"}),R=P,n.aH.K.C&&P.includes("vp09")&&(R=P+"; experimental=allowed"),c.push({contentType:R,robustness:"SW_SECURE_DECODE"}),eC(n.aH)==="MWEB"&&(ZI()||EU())&&(n.p5("swcrypto",{}),c.push({contentType:P,robustness:"SW_SECURE_CRYPTO"})))}return[w]}; E8T=function(n){if(Nc()&&(g.fW||Sz))n.W.push(new Wx("fairplay","com.apple.fps.1_0","",n.aH.experiments));else{var q=YGu(),w=g.d0(n.X,function(X){var P=n.C[X],R=!1,c=!1,k;for(k in n.N[P.flavor])q(k,X)&&(P.N[k]=!0,R=R||k.indexOf("audio/")===0,c=c||k.indexOf("video/")===0);return R&&c}); w&&n.W.push(n.C[w]);n.X=[]}n.callback(n.W)}; YGu=function(){var n=Nc();if(n){var q=n.isTypeSupported;return function(X,P){return q(P,X)}}var w=sm(); return w&&(w.addKey||w.webkitAddKey)?function(X,P){return!!w.canPlayType(X,P)}:function(){return!1}}; KEY=function(n){this.experiments=n;this.N=2048;this.W=0;this.qP=(this.G=this.Z("html5_streaming_resilience"))?.5:.25;var q=q===void 0?0:q;this.C=g.Jv(this.experiments,"html5_media_time_weight_prop")||q;this.L=(this.K=this.experiments.BW("html5_consider_end_stall"))&&fJ;this.X=this.experiments.BW("html5_measure_max_progress_handling");this.V=this.Z("html5_treat_requests_pre_elbow_as_metadata");this.D=this.Z("html5_media_time_weight")||!!this.C;this.Z("html5_sabr_live_audio_early_return_fix")&&fJ&& (this.N=65536)}; SGm=function(n,q){this.N=void 0;this.experimentIds=n?n.split(","):[];this.flags=BA(q||"","&");n={};q=g.a(this.experimentIds);for(var w=q.next();!w.done;w=q.next())n[w.value]=!0;this.experiments=n}; g.Jv=function(n,q){n=n.flags[q];JSON.stringify(n);return Number(n)||0}; OX=function(n,q){return(n=n.flags[q])?n.toString():""}; ury=function(n){if(n=n.flags.html5_web_po_experiment_ids)if(n=n.replace(/\[ *(.*?) *\]/,"$1"))return n.split(",").map(Number);return[]}; BdO=function(n){if(n.N)return n.N;if(n.experimentIds.length<=1)return n.N=n.experimentIds,n.N;var q=[].concat(g.D(n.experimentIds)).map(function(X){return Number(X)}); q.sort();for(var w=q.length-1;w>0;--w)q[w]-=q[w-1];n.N=q.map(function(X){return X.toString()}); n.N.unshift("v1");return n.N}; ZK0=function(n){return QOs.then(n)}; iY=function(n,q,w){this.experiments=n;this.WW=q;this.HW=w===void 0?!1:w;this.L=!!g.w0("cast.receiver.platform.canDisplayType");this.V={};this.qP=!1;this.W=new Map;this.G=!0;this.X=this.C=!1;this.N=new Map;this.PW=0;this.vW=this.experiments.BW("html5_disable_vp9_encrypted");this.K=this.experiments.BW("html5_enable_encrypted_av1");n=g.w0("cast.receiver.platform.getValue");this.D=!this.L&&n&&n("max-video-resolution-vpx")||null;JYT(this);this.C=!!(bb()&&GS()>=21)}; vts=function(n,q,w){w=w===void 0?1:w;var X=q.itag;if(X==="0")return!0;var P=q.mimeType;if(q.L5==="1e"&&!n.K)return"dav1enc";if(vS(q)&&n.qP)return"dav1";if(q.video&&(q.video.isHdr()||q.video.primaries==="bt2020")&&!(GG(n,CQ.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(X==="338"&&!(g.fT?to(53):g.ce&&to(64)))return"dopus";var R=w;R=R===void 0?1: R;w={};q.video&&(q.video.width&&(w[CQ.WIDTH.name]=q.video.width),q.video.height&&(w[CQ.HEIGHT.name]=q.video.height),q.video.fps&&(w[CQ.FRAMERATE.name]=q.video.fps*R),q.video.N&&(w[CQ.EOTF.name]=q.video.N),q.ED&&(w[CQ.BITRATE.name]=q.ED*8*R),q.L5==="("&&(w[CQ.CRYPTOBLOCKFORMAT.name]="subsample"),q.video.projectionType==="EQUIRECTANGULAR"||q.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||q.video.projectionType==="MESH")&&(w[CQ.DECODETOTEXTURE.name]="true");q.audio&&q.audio.numChannels&& (w[CQ.CHANNELS.name]=q.audio.numChannels);n.C&&TU(q)&&(w[CQ.EXPERIMENTAL.name]="allowed");R=g.a(Object.keys(CQ));for(var c=R.next();!c.done;c=R.next()){c=CQ[c.value];var k;if(k=w[c.name])if(k=!(c===CQ.EOTF&&q.mimeType.indexOf("vp09.02")>0)){k=c;var r=q;k=!(n.experiments.BW("html5_ignore_h264_framerate_cap")&&k===CQ.FRAMERATE&&MVY(r))}if(k)if(GG(n,c))if(n.D){if(n.D[c.name] 1080&&q.nV&&(P+="; hdcp=2.2");return X==="227"?"hqcenc":X!=="585"&&X!=="588"&&X!=="583"&&X!=="586"&&X!=="584"&&X!=="587"&&X!=="591"&&X!=="592"||n.experiments.BW("html5_enable_new_hvc_enc")?bb()&&GS()>=21&&g.Ce("appletv5")&&(X==="410"||X==="845")?!0:n.isTypeSupported(P)?!0:"tpus":"newhvc"}; He=function(){var n=EU()&&!to(29),q=g.Ce("google tv")&&g.Ce("chrome")&&!to(30);return n||q?!1:Cms()}; z3O=function(n,q,w){var X=480;q=g.a(q);for(var P=q.next();!P.done;P=q.next()){P=P.value;var R=P.video.qualityOrdinal;R<=1080&&R>X&&vts(n,P,w)===!0&&(X=R)}return X}; g.UX=function(n,q){q=q===void 0?!1:q;return He()&&n.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!q&&n.canPlayType(sm(),"application/x-mpegURL")?!0:!1}; Ndz=function(n){WEs(function(){for(var q=g.a(Object.keys(CQ)),w=q.next();!w.done;w=q.next())GG(n,CQ[w.value])})}; GG=function(n,q){q.name in n.V||(n.V[q.name]=nJO(n,q));return n.V[q.name]}; nJO=function(n,q){if(n.D)return!!n.D[q.name];if(q===CQ.BITRATE&&n.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!n.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(q===CQ.AV1_CODECS)return n.isTypeSupported("video/mp4; codecs="+q.valid)&&!n.isTypeSupported("video/mp4; codecs="+q.eq);if(q.video){var w='video/webm; codecs="vp9"';n.isTypeSupported(w)||(w='video/mp4; codecs="avc1.4d401e"')}else w='audio/webm; codecs="opus"', n.isTypeSupported(w)||(w='audio/mp4; codecs="mp4a.40.2"');return n.isTypeSupported(w+"; "+q.name+"="+q.valid)&&!n.isTypeSupported(w+"; "+q.name+"="+q.eq)}; qes=function(n,q){var w=0;n.W.has(q)&&(w=n.W.get(q).v8);n.W.set(q,{v8:w+1,YF:Math.pow(2,w+1)});n.X=!0}; xT=function(n){for(var q=[],w=g.a(n.N.keys()),X=w.next();!X.done;X=w.next()){X=X.value;var P=n.N.get(X);q.push(X+"_"+P.maxWidth+"_"+P.maxHeight)}return q.join(".")}; mm3=function(n,q){for(var w=new Map,X=g.a(n.N.keys()),P=X.next();!P.done;P=X.next()){P=P.value;var R=P.split("_")[0];q.has(R)||w.set(P,n.N.get(P))}n.N=w}; ay0=function(n,q,w){var X,P=((X=w.video)==null?void 0:X.fps)||0;X=q+"_"+P;var R=!!w.audio,c={itag:w.itag,L5:q,nD:R};if(R)c.numChannels=w.audio.numChannels;else{var k=w.video;c.maxWidth=k==null?void 0:k.width;c.maxHeight=k==null?void 0:k.height;c.maxFramerate=P;GG(n,CQ.BITRATE)&&(c.maxBitrateBps=w.ED*8);c.o1=k==null?void 0:k.isHdr()}k=n.N.get(X);k?R||(w=Math.max(k.maxWidth||0,k.maxHeight||0)>Math.max(c.maxWidth||0,c.maxHeight||0)?k:c,q={itag:w.itag,L5:q,nD:R,maxWidth:Math.max(k.maxWidth||0,c.maxWidth|| 0),maxHeight:Math.max(k.maxHeight||0,c.maxHeight||0),maxFramerate:P,o1:w.o1},GG(n,CQ.BITRATE)&&(q.maxBitrateBps=w.maxBitrateBps),n.N.set(X,q)):n.N.set(X,c)}; VjO=function(n,q,w){var X,P=((X=w.video)==null?void 0:X.fps)||0;X=q+"_"+P;var R=!!w.audio,c=n.N.get(X);a:{var k=n.N.get(X),r=!!w.audio;if(k){if(r){var e=!1;break a}var f;if(!r&&((e=w.video)==null?0:e.height)&&k.maxHeight&&k.maxHeight>=((f=w.video)==null?void 0:f.height)){e=!1;break a}}e=!0}e&&(e=w.itag,q=c?c:{itag:e,L5:q,nD:R},R?q.numChannels=w.audio.numChannels:(R=w.video,q.maxWidth=R==null?void 0:R.width,q.maxHeight=R==null?void 0:R.height,q.maxFramerate=P,GG(n,CQ.BITRATE)&&(q.maxBitrateBps=w.ED* 8),q.o1=R==null?void 0:R.isHdr()),n.N.set(X,q))}; JYT=function(n){var q;(q=navigator.mediaCapabilities)!=null&&q.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(w){w.smooth&&w.powerEfficient&&(n.PW=2160)})}; tF=function(){g.np.call(this);this.items={}}; d5=function(n,q){this.N=n;this.cipher=this.N.exports.AES128CTRCipher_create(q.byteOffset)}; mR=function(){this.X=this.Lt=0;this.N=Array.from({length:g5.length}).fill(0)}; w4x=function(){}; X40=function(){this.startTimeMs=(0,g.m$)();this.N=!1}; PN3=function(){this.N=new w4x}; R0s=function(n,q,w,X){X=X===void 0?1:X;w>=0&&(q in n.N||(n.N[q]=new mR),n.N[q].Bw(w,X))}; cGh=function(n,q,w,X,P){var R=(0,g.m$)(),c=P?P(q):void 0,k;P=(k=c==null?void 0:c.Lt)!=null?k:1;if(P!==0){var r;k=(r=c==null?void 0:c.profile)!=null?r:w;R0s(n,k,R-X,P)}return q}; IBs=function(n,q,w,X,P){if(q&&typeof q==="object"){var R=function(c){return cGh(n,c,w,X,P)}; if(mI(q))return q.then(R);if(gu(q))return Ti(q,R)}return cGh(n,q,w,X,P)}; k0y=function(){}; s9s=function(n,q){return $f(rGu,function(){var w=this;return function P(){var R,c,k;return os(P,function(r){switch(r.X){case 1:g.pO(r,2);if(!w.W)throw"wasm.ps.ns";R=n;c=AO;return mz(r,v7(j9s(w,q)),4);case 4:k=c(r.N);if(!k)throw"wasm.ps.um";try{return r.return(new WebAssembly.Instance(k,R))}catch(e){}return mz(r,v7(WebAssembly.instantiate(k,R)),5);case 5:return r.return(r.N);case 2:g.Dm(r),g.hO(r,0)}})}()})}; e0s=function(n,q){n.N||(n.N=Ti(Va(function(){return fetch(q)}),function(w){return w.arrayBuffer()}),F7(n.N,function(w){n.N=void 0; throw"wasm.ps.f: "+w;}))}; j9s=function(n,q){if(n.X)return n.X;n.X=fB3(n,q);F7(n.X,function(w){n.X=void 0;throw"wasm.ps.c: "+w;}); return n.X}; fB3=function(n,q){return $f(n,function(){var w=this;return function P(){var R,c,k,r,e,f,O,H,U,t,V,T,x,M;return os(P,function(h){switch(h.X){case 1:g.pO(h,2);R=[];c=window.ywc;if(!c){h.f5(4);break}k=c[q];if(!k){h.f5(4);break}if(k.mod)return h.return(k.mod);if(!k.modP){h.f5(6);break}g.Vy(h,7);r=AO;return mz(h,v7(k.modP),9);case 9:return h.return(r(h.N));case 7:g.$u(h),R.unshift("pcm");case 6:if(k.bin){w.N=ya(k.bin);h.f5(4);break}if(!k.binP){h.f5(4);break}g.Vy(h,12);e=du;f=ya;O=AO;return mz(h,v7(k.binP), 14);case 14:w.N=f.call(e,O(h.N));g.FY(h,4);break;case 12:g.$u(h),w.N=void 0,R.unshift("pfb");case 4:if(!w.N){h.f5(15);break}g.Vy(h,16);H=AO;return mz(h,v7(w.N),18);case 18:U=H(h.N);if(w.C)try{return h.return(new WebAssembly.Module(U))}catch(E){w.C=!1,R.unshift("f0cs")}t=AO;return mz(h,v7(WebAssembly.compile(U)),19);case 19:return h.return(t(h.N));case 16:g.$u(h),w.N=void 0,R.unshift("f0ca");case 15:return g.Vy(h,20),e0s(w,q),V=AO,mz(h,v7(w.N),22);case 22:T=V(h.N);if(w.C)try{return h.return(new WebAssembly.Module(T))}catch(E){w.C= !1,R.unshift("f1cs")}x=AO;return mz(h,v7(WebAssembly.compile(T)),23);case 23:return h.return(x(h.N));case 20:M=g.$u(h),w.N=void 0,w.W=!1,R.unshift("f1ca: "+M);case 21:throw"["+R.map(function(E){return'"'+E+'"'}).join(", ")+"]"; case 2:g.Dm(h),g.hO(h,0)}})}()})}; Olh=function(){}; ilO=function(){var n=this;this.proc_exit=function(){}; this.fd_write=function(q,w,X){if(!n.exports)return 1;q=new Uint32Array(n.exports.memory.buffer,w,X*2);w=[];for(var P=0;P0)q=n.byterate,this.qP=!0;else{var X; w=(((X=navigator.connection)==null?void 0:X.downlink)||0)*64*1024;w>0&&(q=w,this.qP=!0)}this.C.Kb(this.policy.D,q);n.delay>0&&this.V.Kb(1,Math.min(n.delay,2));n.stall>0&&this.G.Kb(1,n.stall);n.init>0&&(this.n5=Math.min(n.init,this.n5));n.interruptions&&(this.W=this.W.concat(n.interruptions),this.W.length>16&&this.W.pop());this.PW=(0,g.m$)();this.policy.G>0&&(this.D0=new g.YF(this.IH,this.policy.G,this),g.K(this,this.D0),this.D0.start())}; hF=function(n,q,w,X){n.C.Kb(X===void 0?q:X,w/q);n.D=(0,g.m$)()}; aBz=function(n){n.K||(n.K=(0,g.m$)());n.policy.L&&(n.D=(0,g.m$)())}; VDh=function(n,q){if(n.K){var w=q-n.K;if(w<6E4){if(w>1E3){var X=n.interruptions;X.push(Math.ceil(w));X.sort(function(P,R){return R-P}); X.length>16&&X.pop()}n.WW+=w}}n.K=q}; lY=function(n,q,w,X,P,R){R=R===void 0?!1:R;n.Tp.Kb(q,w/q);n.D=(0,g.m$)();P||n.L.Kb(1,q-X);R||(n.K=0);n.PW>-1&&(0,g.m$)()-n.PW>3E4&&p4O(n)}; G7=function(n,q,w){q=Math.max(q,n.X.N);n.G.Kb(1,w/q)}; CJ=function(n){n=n.V.gq()+n.HW.gq()||0;n=isNaN(n)?.5:n;return n=Math.min(n,5)}; EX=function(n,q,w){isNaN(w)||(n.vW+=w);isNaN(q)||(n.Ff+=q)}; oy=function(n){n=n.C.gq();return n>0?n:1}; bY=function(n,q,w){q=q===void 0?!1:q;w=w===void 0?1048576:w;var X=oy(n);X=1/((n.G.gq()||0)*n.policy.qP+1/X);var P=n.Tp.gq();P=P>0?P:1;var R=Math.max(X,P);n.policy.K>0&&P=4E3}; F_3=function(n){this.experiments=n;this.N=17;this.C=13E4;this.D=.5;this.W=this.X=!1;this.PW=this.Z("html5_use_histogram_for_bandwidth");this.K=g.Jv(this.experiments,"html5_auxiliary_estimate_weight");this.qP=g.Jv(this.experiments,"html5_stall_factor")||1;this.G=g.Jv(this.experiments,"html5_check_for_idle_network_interval_ms");this.V=this.experiments.BW("html5_trigger_loader_when_idle_network");this.L=this.experiments.BW("html5_sabr_fetch_on_idle_network_preloaded_players")}; vJs=function(n,q){n=n===void 0?{}:n;q=q===void 0?{}:q;g.A.call(this);var w=this;this.values=n;this.Q9=q;this.X={};this.C=this.N=0;this.W=new g.YF(function(){$du(w)},1E4); g.K(this,this.W)}; Ya=function(n,q){L_s(n,q);return n.values[q]&&n.Q9[q]?n.values[q]/Math.pow(2,n.N/n.Q9[q]):0}; L_s=function(n,q){n.values[q]||(q=zFO(),n.values=q.values||{},n.Q9=q.halfLives||{},n.X=q.values?Object.assign({},q.values):{})}; $du=function(n){var q=zFO();if(q.values){q=q.values;for(var w={},X=g.a(Object.keys(n.values)),P=X.next();!P.done;P=X.next())P=P.value,q[P]&&n.X[P]&&(n.values[P]+=q[P]-n.X[P]),w[P]=Ya(n,P);n.X=w}q=n.Q9;w={};w.values=n.X;w.halfLives=q;g.Fo("yt-player-memory",w,2592E3)}; kx=function(n,q,w,X,P){g.A.call(this);this.webPlayerContextConfig=q;this.Ww=X;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.x5=this.AK=this.KV=this.Sr=this.userDisplayName=this.userDisplayImage=this.zT="";this.N={};this.nM={};this.controlsType="0";this.JU=NaN;this.RH=!1;this.zG=(0,g.m$)();this.Me=0;this.v1=this.h5=!1;this.ql=!0;this.preferGapless=this.Mg=this.TG=this.C=this.hJ=!1;this.KO=[];this.DF=!1;this.JL=0;n=n?g.HJ(n):{};q&&q.csiPageType&&(this.csiPageType=q.csiPageType);q&&q.csiServiceName&& (this.csiServiceName=q.csiServiceName);q&&q.preferGapless&&(this.preferGapless=q.preferGapless);this.experiments=new SGm(q?q.serializedExperimentIds:n.fexp,q?q.serializedExperimentFlags:n.fflags);this.forcedExperiments=q?q.serializedForcedExperimentIds:qH("",n.forced_experiments)||void 0;this.cspNonce=(q==null?0:q.cspNonce)?q.cspNonce:qH("",n.csp_nonce);this.Z("web_player_deprecated_uvr_killswitch");try{var R=document.location.toString()}catch(J){R=""}this.HX=R;this.ancestorOrigins=(X=window.location.ancestorOrigins)? Array.from(X):[];this.W=WU(!1,q?q.isEmbed:n.is_embed);if(q&&q.device){if(X=q.device,X.androidOsExperience&&(this.N.caoe=""+X.androidOsExperience),X.androidPlayServicesVersion&&(this.N.capsv=""+X.androidPlayServicesVersion),X.brand&&(this.N.cbrand=X.brand),X.browser&&(this.N.cbr=X.browser),X.browserVersion&&(this.N.cbrver=X.browserVersion),X.cobaltReleaseVehicle&&(this.N.ccrv=""+X.cobaltReleaseVehicle),this.N.c=X.interfaceName||"WEB",this.N.cver=X.interfaceVersion||"html5",X.interfaceTheme&&(this.N.ctheme= X.interfaceTheme),this.N.cplayer=X.interfacePlayerType||"UNIPLAYER",X.model&&(this.N.cmodel=X.model),X.network&&(this.N.cnetwork=X.network),X.os&&(this.N.cos=X.os),X.osVersion&&(this.N.cosver=X.osVersion),X.platform&&(this.N.cplatform=X.platform),R=OX(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),R==="all"||R==="once")X.chipset&&(this.nM.cchip=X.chipset),X.cobaltAppVersion&&(this.nM.ccappver=X.cobaltAppVersion),X.firmwareVersion&&(this.nM.cfrmver=X.firmwareVersion),X.deviceYear&&(this.nM.crqyear= X.deviceYear)}else this.N.c=n.c||"web",this.N.cver=n.cver||"html5",this.N.cplayer="UNIPLAYER";this.loaderUrl=q?this.W||MDy(this)&&q.loaderUrl?q.loaderUrl||"":this.HX:this.W||MDy(this)&&n.loaderUrl?qH("",n.loaderUrl):this.HX;this.W&&g.nj("yt.embedded_player.embed_url",this.loaderUrl);this.V=hq(this.loaderUrl,xdY);X=this.loaderUrl;var c=c===void 0?!1:c;this.e3=DN(hq(X,Ddz),X,c,"Trusted Ad Domain URL");this.YE=WU(!1,n.privembed);this.protocol=this.HX.indexOf("http:")===0?"http":"https";this.k5=fxY((q? q.customBaseYoutubeUrl:n.BASE_YT_URL)||"")||fxY(this.HX)||this.protocol+"://www.youtube.com/";c=q?q.eventLabel:n.el;X="detailpage";c==="adunit"?X=this.W?"embedded":"detailpage":c==="embedded"||this.V?X=Ng(X,c,h00):c&&(X="embedded");this.HW=X;vvO();c=null;X=q?q.playerStyle:n.ps;R=g.yv(lBx,X);!X||R&&!this.V||(c=X);this.playerStyle=c;this.D=g.yv(lBx,this.playerStyle);this.houseBrandUserStatus=q==null?void 0:q.houseBrandUserStatus;this.PW=this.D&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.WN=!this.PW;this.D0=WU(!1,n.disableplaybackui);this.disablePaidContentOverlay=WU(!1,q==null?void 0:q.disablePaidContentOverlay);this.disableSeek=WU(!1,q==null?void 0:q.disableSeek);this.enableSpeedOptions=(q==null?void 0:q.enableSpeedOptions)||(sm().defaultPlaybackRate?KJ||g.Q9||SC?g.ce&&to("20")||g.fT&&to("4")||g.uY&&to("11")||Ke():!(g.uY&&!g.Ce("chrome")||KJ||g.Ce("android")||g.Ce("silk")):!1);this.Dy=WU(!1,n.enable_faster_speeds);var k;this.supportsVarispeedExtendedFeatures=(k=q==null?void 0: q.supportsVarispeedExtendedFeatures)!=null?k:!1;this.X=WU(this.playerStyle==="blazer",n.is_html5_mobile_device||q&&q.isMobileDevice);this.Ff=BU()||ZI();this.fX=this.Z("mweb_allow_background_playback")?!1:this.X&&!this.D;this.Tp=HS();this.xp=g.Be;var r;this.Pr=!!(q==null?0:(r=q.embedsHostFlags)==null?0:r.optOutApiDeprecation);this.PN=this.Z("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var e;q?q.hideInfo!==void 0&&(e=!q.hideInfo):e=n.showinfo;this.vr=g.Q2(this)&&!this.Pr||WU(!Zb(this)&& !JF(this)&&!this.D,e);this.X0=q?!!q.mobileIphoneSupportsInlinePlayback:WU(!1,n.playsinline);k=this.X&&z7&&We!=null&&We>0&&We<=2.3;r=q?q.useNativeControls:n.use_native_controls;this.G=g.Q2(this)&&this.X;e=this.X&&!this.G;r=g.NT(this)||!k&&WU(e,r)?"3":"1";this.disableOrganicUi=!(q==null||!q.disableOrganicUi);e=q?q.controlsType:n.controls;this.controlsType=this.disableOrganicUi||e==="0"||e===0?"0":r;this.PO=this.X;this.color=Ng("red",q?q.progressBarColor:n.color,G0y);this.g5=this.controlsType==="3"; this.ej=!this.W;this.Co=(r=!this.ej&&!JF(this)&&!this.PW&&!this.D&&!Zb(this))&&!this.g5&&this.controlsType==="1";this.VL=g.ny(this)&&r&&this.controlsType==="0"&&!this.Co&&!(q==null?0:q.embedsEnableEmc3ds);this.Cz=this.Pi=k;this.KG=(this.controlsType==="3"||this.X||WU(!1,n.use_media_volume))&&!this.G;this.Hr=Sz&&!g.A_(601)?!1:!0;this.aj=this.W||!1;this.sD=JF(this)?"":(this.loaderUrl||n.post_message_origin||"").substring(0,128);this.widgetReferrer=qH("",q?q.widgetReferrer:n.widget_referrer);var f;q? q.disableCastApi&&(f=!1):f=n.enablecastapi;f=!this.V||WU(!0,f);k=!0;q&&q.disableMdxCast&&(k=!1);this.jJ=this.Z("enable_cast_for_web_unplugged")&&g.qI(this)&&k||g.LX(this)&&k||f&&k&&this.controlsType==="1"&&!this.X&&(JF(this)||g.ny(this)||g.w2(this));this.Md=!!window.document.pictureInPictureEnabled||iK();f=q?!!q.supportsAutoplayOverride:WU(!1,n.autoplayoverride);this.wq=!(this.X&&!g.Q2(this))&&!g.Ce("nintendo wiiu")||f;this.TT=(q?!!q.enableMutedAutoplay:WU(!1,n.mutedautoplay))&&!1;f=(JF(this)||Zb(this))&& this.playerStyle==="blazer";this.V$=q?!!q.disableFullscreen:!WU(!0,n.fs);k=g.Rl(g.Xi(this))&&g.Q2(this);this.qe=!this.V$&&(f||g.eu())&&!k;this.s_=this.Z("html5_picture_in_picture_logging_onresize");var O;this.iA=(O=g.Jv(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?O:.33;this.xd=this.Z("html5_picture_in_picture_blocking_onresize");this.po=this.Z("html5_picture_in_picture_blocking_ontimeupdate");this.jK=this.Z("html5_picture_in_picture_blocking_document_fullscreen");this.AL= this.Z("html5_picture_in_picture_blocking_standard_api");O=EU()&&to(58)&&!ZI();f=bg||typeof MediaSource==="undefined";this.Pw=this.Z("uniplayer_block_pip")&&(O||f)||this.xd||this.po||this.AL;O=g.Q2(this)&&!this.Pr;var H;q?q.disableRelatedVideos!==void 0&&(H=!q.disableRelatedVideos):H=n.rel;this.iS=O||WU(!this.D,H);this.X1=WU(!1,q?q.enableContentOwnerRelatedVideos:n.co_rel);this.L=ZI()&&We>0&&We<=4.4?"_top":"_blank";this.yp=g.w2(this);this.Ng=WU(this.playerStyle==="blazer",q?q.enableCsiLogging:n.enablecsi); switch(this.playerStyle){case "blogger":H="bl";break;case "gmail":H="gm";break;case "gac":H="ga";break;case "ads-preview":H="ap";break;case "books":H="gb";break;case "docs":case "flix":H="gd";break;case "duo":H="gu";break;case "google-live":H="gl";break;case "google-one":H="go";break;case "play":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.qP=H;this.vW=qH("",q?q.authorizedUserIndex:n.authuser); this.KM=g.Q2(this)&&(this.YE||!tmh()||this.Ff);var U;q?q.disableWatchLater!==void 0&&(U=!q.disableWatchLater):U=n.showwatchlater;this.KD=((H=!this.KM)||!!this.vW&&H)&&WU(!this.PW,this.V?U:void 0);this.bx=q?q.isMobileDevice||!!q.disableKeyboardControls:WU(!1,n.disablekb);this.loop=WU(!1,n.loop);this.pageId=qH("",q?q.initialDelegatedSessionId:n.pageid);this.AQ=WU(!0,n.canplaylive);this.Ne=WU(!1,n.livemonitor);this.disableSharing=WU(this.D,q?q.disableSharing:n.ss);(U=q&&this.Z("fill_video_container_size_override_from_wpcc")? q.videoContainerOverride:n.video_container_override)?(H=U.split("x"),H.length!==2?U=null:(U=Number(H[0]),H=Number(H[1]),U=isNaN(U)||isNaN(H)||U*H<=0?null:new g.QB(U,H))):U=null;this.Wr=U;this.mute=q?!!q.startMuted:WU(!1,n.mute);this.storeUserVolume=!this.mute&&WU(this.controlsType!=="0",q?q.storeUserVolume:n.store_user_volume);U=q?q.annotationsLoadPolicy:n.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Ng(void 0,U,PI);this.captionsLanguagePreference=q?q.captionsLanguagePreference|| "":qH("",n.cc_lang_pref);U=Ng(2,q?q.captionsLanguageLoadPolicy:n.cc_load_policy,PI);this.controlsType==="3"&&U===2&&(U=3);this.Em=U;this.N7=q?q.hl||"en_US":qH("en_US",n.hl);this.region=q?q.contentRegion||"US":qH("US",n.cr);this.hostLanguage=q?q.hostLanguage||"en":qH("en",n.host_language);this.Th=!this.YE&&Math.random()=480;this.schedule=new Db(f,new KEY(this.experiments),P);g.K(this,this.schedule);var t;this.enableSafetyMode=(t=q==null?void 0:q.initialEnableSafetyMode)!=null?t:WU(!1,n.enable_safety_mode);P=this.D0?!1:JF(this)&&this.playerStyle!== "blazer";var V;q?q.disableAutonav!=null&&(V=!q.disableAutonav):V=n.allow_autonav;this.aS=WU(P,!this.PW&&V);this.sendVisitorIdHeader=q?!!q.sendVisitorIdHeader:WU(!1,n.send_visitor_id_header);var T;this.playerStyle==="docs"&&(q?T=q.disableNativeContextMenu:T=n.disable_native_context_menu);this.disableNativeContextMenu=WU(!1,T);this.gh=r8(this)&&this.Z("enable_skip_intro_button");this.embedConfig=qH("",q?q.serializedEmbedConfig:n.embed_config);this.WW=Pz(n,g.Q2(this));this.C=this.WW==="EMBEDDED_PLAYER_MODE_PFL"; this.embedsErrorLinks=!(q==null||!q.embedsErrorLinks);this.Uu=WU(!1,n.full_window);var x;this.oH=!((x=this.webPlayerContextConfig)==null?0:x.chromeless);var M;this.livingRoomAppMode=Ng("LIVING_ROOM_APP_MODE_UNSPECIFIED",n.living_room_app_mode||(q==null?void 0:(M=q.device)==null?void 0:M.livingRoomAppMode),oJ3);var h;V=nD(NaN,q==null?void 0:(h=q.device)==null?void 0:h.deviceYear);isNaN(V)||(this.deviceYear=V);this.transparentBackground=q?!!q.transparentBackground:WU(!1,n.transparent_background);this.showMiniplayerButton= q?!!q.showMiniplayerButton:WU(!1,n.show_miniplayer_button);var E;g.Q2(this)&&!(q==null?0:(E=q.embedsHostFlags)==null?0:E.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=q?!!q.externalFullscreen:WU(!1,n.external_fullscreen);this.showMiniplayerUiWhenMinimized=q?!!q.showMiniplayerUiWhenMinimized:WU(!1,n.use_miniplayer_ui);var S;this.ql=(S=n.show_loop_video_toggle)!=null?S:!0;this.S3=Math.random()<1E-4;if(n.onesie_hot_config||(q==null?0:q.onesieHotConfig))this.tU=new md6(n.onesie_hot_config, q==null?void 0:q.onesieHotConfig),g.K(this,this.tU);this.isTectonic=q?!!q.isTectonic:!!n.isTectonic;this.playerCanaryState=w;this.playerCanaryStage=q==null?void 0:q.canaryStage;this.k6=new vJs;g.K(this,this.k6);this.datasyncId=(q==null?void 0:q.datasyncId)||g.bp("DATASYNC_ID");this.mE=g.bp("LOGGED_IN",!1);this.bI=(q==null?void 0:q.allowWoffleManagement)||!1;this.yK=Infinity;this.LO=NaN;this.livingRoomPoTokenId=q==null?void 0:q.livingRoomPoTokenId;this.Z("html5_high_res_logging_always")?this.TG=!0: this.TG=Math.random()*100=0&&n0&&n.S3&&(X.sort(),g.TQ(new g.b4("Player client parameters changed after startup",X)));n.userAge=nD(n.userAge,q.user_age);n.zT=qH(n.zT,q.user_display_email);n.userDisplayImage=qH(n.userDisplayImage,q.user_display_image);g.G$(n.userDisplayImage)||(n.userDisplayImage= "");n.userDisplayName=qH(n.userDisplayName,q.user_display_name);n.Sr=qH(n.Sr,q.user_gender);n.csiPageType=qH(n.csiPageType,q.csi_page_type);n.csiServiceName=qH(n.csiServiceName,q.csi_service_name);n.Ng=WU(n.Ng,q.enablecsi);n.pageId=qH(n.pageId,q.pageid);if(w=q.enabled_engage_types)n.enabledEngageTypes=new Set(w.split(","));q.living_room_session_po_token&&(n.u7=q.living_room_session_po_token.toString())}; r2=function(n,q){return!n.D&&EU()&&to(55)&&n.controlsType==="3"&&!q}; g.jN=function(n){n=RK(n.k5);return n==="www.youtube-nocookie.com"?"www.youtube.com":n}; sN=function(n,q,w){return n.protocol+"://i1.ytimg.com/vi/"+q+"/"+(w||"hqdefault.jpg")}; eN=function(n){return JF(n)&&!g.qI(n)}; g.NT=function(n){return n.Z("html5_local_playsinline")?Sz&&!g.A_(602)&&!("playsInline"in sm()):Sz&&!n.X0||g.Ce("nintendo wiiu")?!0:!1}; eC=function(n){return n.N.c}; g.jg=function(n){return/^TVHTML5/.test(eC(n))}; g.fy=function(n){return eC(n)==="TVHTML5"}; MDy=function(n){return eC(n)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; EJh=function(n){return n.N.cmodel==="CHROMECAST ULTRA/STEAK"||n.N.cmodel==="CHROMECAST/STEAK"}; g.ON=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; r8=function(n){return/web/i.test(eC(n))}; g.iE=function(n){return eC(n).toUpperCase()==="WEB"}; IK=function(n){return eC(n)==="WEB_KIDS"}; g.qI=function(n){return eC(n)==="WEB_UNPLUGGED"}; HI=function(n){return eC(n)==="TVHTML5_UNPLUGGED"}; g.kS=function(n){return g.qI(n)||eC(n)==="TV_UNPLUGGED_CAST"||HI(n)}; g.LX=function(n){return eC(n)==="WEB_REMIX"}; g.UN=function(n){return eC(n)==="WEB_MUSIC_INTEGRATIONS"}; g.tK=function(n){return eC(n)==="WEB_EMBEDDED_PLAYER"}; g.g2=function(n){return(n.deviceIsAudioOnly||!g.fT||bg||n.controlsType==="3"?!1:g.Q9?n.W&&g.A_(51):!0)||(n.deviceIsAudioOnly||!g.ce||bg||n.controlsType==="3"?!1:g.Q9?n.W&&g.A_(48):g.A_(38))||(n.deviceIsAudioOnly||!g.uY||bg||n.controlsType==="3"?!1:g.Q9?n.W&&g.A_(37):g.A_(27))||!n.deviceIsAudioOnly&&g.d2&&!aJ6()&&g.A_(11)||!n.deviceIsAudioOnly&&g.fW&&g.A_("604.4")}; YeO=function(n){if(g.ny(n)&&z7)return!1;if(g.ce){if(!g.A_(47)||!g.A_(52)&&g.A_(51))return!1}else if(g.fW)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Sem=function(n,q){return n.enabledEngageTypes.has(q.toString())||K_u.includes(q)}; JF=function(n){return n.HW==="detailpage"}; g.ny=function(n){return n.HW==="embedded"}; mQ=function(n){return n.HW==="leanback"}; Zb=function(n){return n.HW==="adunit"||n.playerStyle==="gvn"}; g.w2=function(n){return n.HW==="profilepage"}; g.Q2=function(n){return n.W&&g.ny(n)&&!Zb(n)&&!n.D}; yd=function(n){if(!n.userDisplayImage)return"";var q=n.userDisplayImage.split("/");if(q.length===5)return n=q[q.length-1].split("="),n[1]="s20-c",q[q.length-1]=n.join("="),q.join("/");if(q.length===8)return q.splice(7,0,"s20-c"),q.join("/");if(q.length===9)return q[7]+="-s20-c",q.join("/");g.TQ(new g.b4("Profile image not a FIFE URL.",n.userDisplayImage));return n.userDisplayImage}; g.aK=function(n){var q=g.jN(n);u$x.includes(q)&&(q="www.youtube.com");return n.protocol+"://"+q}; g.Vd=function(n,q){q=q===void 0?"":q;if(n.Ww){var w=new k8,X,P=n.Ww();P.signedOut?X="":P.token?X=P.token:P.pendingResult.then(function(R){P.signedOut?w.resolve(""):w.resolve(R.token)},function(R){g.TQ(new g.b4("b189348328_oauth_callback_failed",{error:R})); w.resolve(q)}); return X!==void 0?FR(X):new pe(w)}return FR(q)}; py=function(n,q){q=q===void 0?"":q;return n.mE?ya(!0):F7(Ti(ya(g.Vd(n,q)),function(w){return ya(!!w)}),function(){return ya(!1)})}; Bas=function(n,q){q==null||Ti(q,function(w){n.qg=w;var X,P;(X=n.tU)!=null&&(P=X.N)!=null&&(P.K=new pJ(w,P.N,P.X),g.K(P,P.K))})}; RK=function(n){var q=g.IB(n);return(n=Number(g.cg(n)[4]||null)||null)?q+":"+n:q}; TB=function(n,q){q=q===void 0?!1:q;var w=VR[n],X=Q9T[w],P=ZlO[n];if(!P||!X)return null;q=new mx(q?P.height:P.width,q?P.width:P.height,P.fps);X=Dv(X,q,w);return new pT(n,X,{video:q,ED:P.bitrate/8})}; z0s=function(n){var q=Q9T[VR[n]],w=JGs[n];return w&&q?new pT(n,q,{audio:new tg(w.audioSampleRate,w.numChannels)}):null}; Fi=function(n){this.N=n}; $x=function(n,q,w,X){if(w)return TS();w={};var P=sm();q=g.a(q);for(var R=q.next();!R.done;R=q.next())if(R=R.value,n.canPlayType(P,R.getInfo().mimeType)||X){var c=R.N.video.quality;if(!w[c]||w[c].getInfo().PX())w[c]=R}n=[];w.auto&&n.push(w.auto);X=g.a(yR);for(P=X.next();!P.done;P=X.next())(P=w[P.value])&&n.push(P);return n.length?FR(n):TS()}; W_s=function(n){this.itag=n.itag;this.url=n.url;this.codecs=n.codecs;this.width=n.width;this.height=n.height;this.fps=n.fps;this.bitrate=n.bitrate;var q;this.X=((q=n.audioItag)==null?void 0:q.split(","))||[];this.bb=n.bb;this.nV=n.nV||"";this.Va=n.Va;this.audioChannels=n.audioChannels;this.N=""}; NaT=function(n,q,w,X){q=q===void 0?!1:q;w=w===void 0?!0:w;X=X===void 0?{}:X;var P={};n=g.a(n);for(var R=n.next();!R.done;R=n.next()){R=R.value;if(q&&MediaSource&&MediaSource.isTypeSupported){var c=R.type;R.audio_channels&&(c=c+"; channels="+R.audio_channels);if(!MediaSource.isTypeSupported(c)){X[R.itag]="tpus";continue}}if(w||!R.drm_families||R.eotf!=="smpte2084"&&R.eotf!=="arib-std-b67"){c=void 0;var k={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},r=R.type.match(/codecs="([^"]*)"/); r=r?r[1]:"";R.audio_track_id&&(c=new g.FB(R.name,R.audio_track_id,!!R.is_default));var e=R.eotf;R=new W_s({itag:R.itag,url:R.url,codecs:r,width:Number(R.width),height:Number(R.height),fps:Number(R.fps),bitrate:Number(R.bitrate),audioItag:R.audio_itag,bb:e?k[e]:void 0,nV:R.drm_families,Va:c,audioChannels:Number(R.audio_channels)});P[R.itag]=P[R.itag]||[];P[R.itag].push(R)}else X[R.itag]="enchdr"}return P}; nzT=function(n,q,w,X,P){this.C=n;this.X=q;this.K=w;this.cpn=X;this.D=P;this.W=0;this.N=""}; quy=function(n,q){n.C.some(function(w){var X;return((X=w.Va)==null?void 0:X.getId())===q}); n.N=q}; vI=function(n,q,w){n.cpn&&(q=g.OV(q,{cpn:n.cpn}));w&&(q=g.OV(q,{paired:w}));return q}; wsO=function(n,q){n=n.itag.toString();q!==null&&(n+=q.itag.toString());return n}; Xss=function(n){for(var q=[],w=[],X=g.a(n.X),P=X.next();!P.done;P=X.next())P=P.value,P.bitrate<=n.W?q.push(P):w.push(P);q.sort(function(R,c){return c.bitrate-R.bitrate}); w.sort(function(R,c){return R.bitrate-c.bitrate}); n.X=q.concat(w)}; Ly=function(n,q,w){this.N=n;this.X=q;this.expiration=w;this.wc=null}; PTs=function(n,q){if(!(bg||YA()||bb()))return null;n=NaT(q,n.Z("html5_filter_fmp4_in_hls"));if(!n)return null;q=[];for(var w={},X=g.a(Object.keys(n)),P=X.next();!P.done;P=X.next()){P=g.a(n[P.value]);for(var R=P.next();!R.done;R=P.next()){var c=R.value;c.Va&&(R=c.Va.getId(),w[R]||(c=new g.ty(R,c.Va),w[R]=c,q.push(c)))}}return q.length>0?q:null}; r$s=function(n,q,w,X,P,R,c){if(!(bg||YA()||bb()))return TS();var k={},r=RAz(w),e=NaT(w,n.Z("html5_filter_fmp4_in_hls"),n.K.G,k);if(!e)return c({noplst:1}),TS();c$O(e);w={};var f=(w.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",w),O;w=[];var H=[],U=[],t=null,V="";X=X&&X.match(/hls_timedtext_playlist/)?new W_s({itag:"0",url:X,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Va:new g.FB("English","en",!1)}):null;for(var T=g.a(Object.keys(e)),x=T.next();!x.done;x=T.next())if(x=x.value,!n.Z("html5_disable_drm_hfr_1080")|| x!=="383"&&x!=="373"){x=g.a(e[x]);for(var M=x.next();!M.done;M=x.next())if(M=M.value,M.width){for(var h=g.a(M.X),E=h.next();!E.done;E=h.next())if(E=E.value,e[E]){M.N=E;break}M.N||(M.N=IRm(e,M));if(h=e[M.N])if(w.push(M),M.nV==="fairplay"&&(O=f),E="",M.bb==="PQ"?E="smpte2084":M.bb==="HLG"&&(E="arib-std-b67"),E&&(V=E),U.push(kDs(h,[M],X,R,M.itag,M.width,M.height,M.fps,r,void 0,void 0,O,E)),!t||M.width*M.height*M.fps>t.width*t.height*t.fps)t=M}else H.push(M)}else k[x]="disdrmhfr";U.reduce(function(S, nO){return nO.getInfo().isEncrypted()&&S},!0)&&(O=f); P=Math.max(P,0);f=t||{};e=f.fps===void 0?0:f.fps;t=f.width===void 0?0:f.width;f=f.height===void 0?0:f.height;T=n.Z("html5_native_audio_track_switching");U.push(kDs(H,w,X,R,"93",t,f,e,r,"auto",P,O,V,T));Object.entries(k).length&&c(k);return $x(n.K,U,r2(n,q),!1)}; kDs=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U){for(var t=0,V="",T=g.a(n),x=T.next();!x.done;x=T.next())x=x.value,V||(V=x.itag),x.audioChannels&&x.audioChannels>t&&(t=x.audioChannels,V=x.itag);P=new pT(P,"application/x-mpegURL",{audio:new tg(0,t),video:new mx(R,c,k,null,void 0,e,void 0,H),nV:O,Jw:V});n=new nzT(n,q,w?[w]:[],X,!!U);n.W=f?f:1369843;return new Ly(P,n,r)}; RAz=function(n){n=g.a(n);for(var q=n.next();!q.done;q=n.next())if(q=q.value,q.url&&(q=q.url.split("expire/"),!(q.length<=1)))return+q[1].split("/")[0];return NaN}; IRm=function(n,q){for(var w=g.a(Object.keys(n)),X=w.next();!X.done;X=w.next()){X=X.value;var P=n[X][0];if(!P.width&&P.nV===q.nV&&!P.audioChannels)return X}return""}; c$O=function(n){for(var q=new Set,w=g.a(Object.values(n)),X=w.next();!X.done;X=w.next())X=X.value,X.length&&(X=X[0],X.height&&X.codecs.startsWith("vp09")&&q.add(X.height));w=[];if(q.size){X=g.a(Object.keys(n));for(var P=X.next();!P.done;P=X.next())if(P=P.value,n[P].length){var R=n[P][0];R.height&&q.has(R.height)&&!R.codecs.startsWith("vp09")&&w.push(P)}}q=g.a(w);for(w=q.next();!w.done;w=q.next())delete n[w.value]}; MI=function(n,q){this.N=n;this.X=q}; jS0=function(n,q,w,X){var P=[];w=g.a(w);for(var R=w.next();!R.done;R=w.next()){var c=R.value;if(c.url){R=new g.Ei(c.url,!0);if(c.s){var k=R,r=c.sp,e=uAO(decodeURIComponent(c.s));k[I[3]](r,encodeURIComponent(e))}k=g.a(Object.keys(X));for(r=k.next();!r.done;r=k.next())r=r.value,R.set(r,X[r]);c=Em(c.type,c.quality,c.itag,c.width,c.height);P.push(new MI(c,R))}}return $x(n.K,P,r2(n,q),!1)}; xx=function(n,q){this.N=n;this.X=q}; sS6=function(n,q,w){var X=[];w=g.a(w);for(var P=w.next();!P.done;P=w.next())if((P=P.value)&&P.url){var R=Em(P.type,"medium","0");X.push(new xx(R,P.url))}return $x(n.K,X,r2(n,q),!1)}; eA0=function(n,q){var w=[],X=Em(q.type,"auto",q.itag);w.push(new xx(X,q.url));return $x(n.K,w,!1,!0)}; Ohx=function(n){return n&&fRu[n]?fRu[n]:null}; ihs=function(n){switch(n){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":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 n;default:return"sabr.config"}}; Hh6=function(n){if(n=n.commonConfig)this.url=n.url,this.urlQueryOverride=n.urlQueryOverride,n.ustreamerConfig&&(this.qd=T7(n.ustreamerConfig)||void 0)}; Uxy=function(n,q){var w;if(q=q==null?void 0:(w=q.watchEndpointSupportedOnesieConfig)==null?void 0:w.html5PlaybackOnesieConfig)n.nW=new Hh6(q)}; g.Dj=function(n){n=n===void 0?{}:n;this.languageCode=n.languageCode||"";this.languageName=n.languageName||null;this.kind=n.kind||"";this.name=n.name===void 0?null:n.name;this.displayName=n.displayName||null;this.id=n.id||null;this.N=n.is_servable||!1;this.isTranslateable=n.is_translateable||!1;this.url=n.url||null;this.vssId=n.vss_id||"";this.isDefault=n.is_default||!1;this.translationLanguage=n.translationLanguage||null;this.xtags=n.xtags||"";this.captionId=n.captionId||""}; g.lE=function(n){var q={languageCode:n.languageCode,languageName:n.languageName,displayName:g.hK(n),kind:n.kind,name:n.name,id:n.id,is_servable:n.N,is_default:n.isDefault,is_translateable:n.isTranslateable,vss_id:n.vssId};n.xtags&&(q.xtags=n.xtags);n.captionId&&(q.captionId=n.captionId);n.translationLanguage&&(q.translationLanguage=n.translationLanguage);return q}; g.GB=function(n){return n.translationLanguage?n.translationLanguage.languageCode:n.languageCode}; g.tsh=function(n){var q=n.vssId;n.translationLanguage&&q&&(q="t"+q+"."+g.GB(n));return q}; g.hK=function(n){var q=[];if(n.displayName)q.push(n.displayName);else{var w=n.languageName||"";q.push(w);n.kind==="asr"&&w.indexOf("(")===-1&&q.push(" (Legendas autom\u00e1ticas)");n.name&&q.push(" - "+n.name)}n.translationLanguage&&q.push(" >> "+n.translationLanguage.languageName);return q.join("")}; y$y=function(n,q,w,X){n||(n=q&&dxs.hasOwnProperty(q)&&gzh.hasOwnProperty(q)?gzh[q]+"_"+dxs[q]:void 0);q=n;if(!q)return null;n=q.match(mxy);if(!n||n.length!==5)return null;if(n=q.match(mxy)){var P=Number(n[3]),R=[7,8,10,5,6];n=!(Number(n[1])===1&&P===8)&&R.indexOf(P)>=0}else n=!1;return w||X||n?q:null}; Cy=function(n,q){for(var w={},X=g.a(Object.keys(aRz)),P=X.next();!P.done;P=X.next()){P=P.value;var R=q?q+P:P;R=n[R+"_webp"]||n[R];g.G$(R)&&(w[aRz[P]]=R)}return w}; EN=function(n){var q={};if(!n||!n.thumbnails)return q;n=n.thumbnails.filter(function(k){return!!k.url}); n.sort(function(k,r){return k.width-r.width||k.height-r.height}); for(var w=g.a(Object.keys(Vss)),X=w.next();!X.done;X=w.next()){var P=Number(X.value);X=Vss[P];for(var R=g.a(n),c=R.next();!c.done;c=R.next())if(c=c.value,c.width>=P){P=psx(c.url);g.G$(P)&&(q[X]=P);break}}(n=n.pop())&&n.width>=1280&&(n=psx(n.url),g.G$(n)&&(q["maxresdefault.jpg"]=n));return q}; psx=function(n){return n.startsWith("//")?"https:"+n:n}; oK=function(n){return n&&n.baseUrl||""}; bE=function(n){n=g.zV(n);for(var q=g.a(Object.keys(n)),w=q.next();!w.done;w=q.next()){w=w.value;var X=n[w];n[w]=Array.isArray(X)?X[0]:X}return n}; Tzx=function(n,q){n.botguardData=q.playerAttestationRenderer.botguardData;q=q.playerAttestationRenderer.challenge;q!=null&&(n.JQ=q)}; vzs=function(n,q){q=g.a(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var X=w.interstitials.map(function(c){var k=g.u(c,F4T);if(k)return{is_yto_interstitial:!0,raw_player_response:k};if(c=g.u(c,$xY))return Object.assign({is_yto_interstitial:!0},ZO(c))}); X=g.a(X);for(var P=X.next();!P.done;P=X.next())switch(P=P.value,w.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":n.interstitials=n.interstitials.concat({time:0,playerVars:P,P1:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":n.interstitials=n.interstitials.concat({time:0x7ffffffffffff,playerVars:P,P1:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var R=Number(w.podConfig.timeToInsertAtMillis);n.interstitials=n.interstitials.concat({time:R,playerVars:P, P1:R===0?5:7})}}}; L40=function(n,q){if(q=q.find(function(w){return!(!w||!w.tooltipRenderer)}))n.tooltipRenderer=q.tooltipRenderer}; Mss=function(n,q){q.subscribeCommand&&(n.subscribeCommand=q.subscribeCommand);q.unsubscribeCommand&&(n.unsubscribeCommand=q.unsubscribeCommand);q.addToWatchLaterCommand&&(n.addToWatchLaterCommand=q.addToWatchLaterCommand);q.removeFromWatchLaterCommand&&(n.removeFromWatchLaterCommand=q.removeFromWatchLaterCommand);q.getSharePanelCommand&&(n.getSharePanelCommand=q.getSharePanelCommand)}; xxy=function(n,q){q!=null?(n.jL=q,n.bS=!0):(n.jL="",n.bS=!1)}; AK=function(n,q){this.type=n||"";this.id=q||""}; Yx=function(n){return new AK(n.substring(0,2),n.substring(2))}; Ky=function(n,q){this.aH=n;this.author="";this.Ey=null;this.playlistLength=0;this.N=this.sessionData=null;this.V={};this.title="";if(q){this.author=q.author||q.playlist_author||"";this.title=q.playlist_title||"";if(n=q.session_data)this.sessionData=BA(n,"&");var w;this.N=((w=q.thumbnail_ids)==null?void 0:w.split(",")[0])||null;this.V=Cy(q,"playlist_");this.videoId=q.video_id||void 0;if(w=q.list)switch(q.listType){case "user_uploads":this.playlistId=(new AK("UU","PLAYER_"+w)).toString();break;default:if(n= q.playlist_length)this.playlistLength=Number(n)||0;this.playlistId=Yx(w).toString();if(q=q.video)this.videoId=(q[0]||null).video_id||void 0}else q.playlist&&(this.playlistLength=q.playlist.toString().split(",").length)}}; SN=function(n,q){this.aH=n;this.L8=this.author="";this.Ey=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.xY=this.lengthText="";this.sessionData=null;this.V={};this.title="";if(q){this.ariaLabel=q.aria_label||void 0;this.author=q.author||"";this.L8=q.L8||"";if(n=q.endscreen_autoplay_session_data)this.Ey=BA(n,"&");this.k$=q.k$;this.isLivePlayback=q.live_playback==="1";this.isUpcoming=!!q.isUpcoming;if(n=q.length_seconds)this.lengthSeconds=typeof n==="string"?Number(n):n;this.lengthText= q.lengthText||"";this.xY=q.xY||"";this.publishedTimeText=q.publishedTimeText||void 0;if(n=q.session_data)this.sessionData=BA(n,"&");this.shortViewCount=q.short_view_count_text||void 0;this.V=Cy(q);this.title=q.title||"";this.videoId=q.docid||q.video_id||q.videoId||q.id||void 0;this.watchUrl=q.watchUrl||void 0}}; Dxz=function(n){var q,w,X=(q=n.getWatchNextResponse())==null?void 0:(w=q.contents)==null?void 0:w.twoColumnWatchNextResults,P,R,c,k,r;n=(P=n.getWatchNextResponse())==null?void 0:(R=P.playerOverlays)==null?void 0:(c=R.playerOverlayRenderer)==null?void 0:(k=c.endScreen)==null?void 0:(r=k.watchNextEndScreenRenderer)==null?void 0:r.results;if(!n){var e,f;n=X==null?void 0:(e=X.endScreen)==null?void 0:(f=e.endScreen)==null?void 0:f.results}return n}; g.BI=function(n){var q,w,X;n=g.u((q=n.getWatchNextResponse())==null?void 0:(w=q.playerOverlays)==null?void 0:(X=w.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,uE);return g.u(n==null?void 0:n.playerBar,hAs)}; lRs=function(n){this.N=n.playback_progress_0s_url;this.C=n.playback_progress_2s_url;this.X=n.playback_progress_10s_url}; GDT=function(){if(Qd===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(q){}a:{try{var n=!!self.localStorage}catch(q){n=!1}if(n&&(n=g.vN(g.Ah()+"::yt-player"))){Qd=new Ds(n);break a}Qd=void 0}}return Qd}; g.Zj=function(){var n=GDT();if(!n)return{};try{var q=n.get("yt-player-lv");return JSON.parse(q||"{}")}catch(w){return{}}}; g.CT6=function(n){var q=GDT();q&&(n=JSON.stringify(n),q.set("yt-player-lv",n))}; g.JK=function(n){return g.Zj()[n]||0}; g.zB=function(n,q){var w=g.Zj();q!==w[n]&&(q!==0?w[n]=q:delete w[n],g.CT6(w))}; g.WI=function(n){return g.b(function(q){return q.return(g.CW(EzO(),n))})}; nZ=function(n,q,w,X,P,R,c,k){var r,e,f,O,H,U;return g.b(function(t){switch(t.X){case 1:return r=g.JK(n),r===4?t.return(4):g.l(t,g.ug(),2);case 2:e=t.N;if(!e)throw g.ig("wiac");if(!k||c===void 0){t.f5(3);break}return g.l(t,ozh(k,c),4);case 4:c=t.N;case 3:return f=w.lastModified||"0",g.l(t,g.WI(e),5);case 5:return O=t.N,g.Vy(t,6),NI++,g.l(t,g.pW(O,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",z9:!0},function(V){if(R!==void 0&&c!==void 0){var T=""+n+"|"+q.id+"|"+f+"|"+String(R).padStart(10, "0");T=g.Tn(V.objectStore("media"),c,T)}else T=g.UY.resolve(void 0);var x=bhm(n,q.ev()),M=bhm(n,!q.ev()),h={fmts:A$s(X),format:w||{}};x=g.Tn(V.objectStore("index"),h,x);var E=X.downloadedEndTime===-1;h=E?V.objectStore("index").get(M):g.UY.resolve(void 0);var S={fmts:"music",format:{}};V=E&&P&&!q.ev()?g.Tn(V.objectStore("index"),S,M):g.UY.resolve(void 0);return g.UY.all([V,h,T,x]).then(function(nO){nO=g.a(nO);nO.next();nO=nO.next().value;NI--;var J=g.JK(n);if(J!==4&&E&&P||nO!==void 0&&g.YuY(nO.fmts))J= 1,g.zB(n,J);return J})}),8); case 8:return t.return(t.N);case 6:H=g.$u(t);NI--;U=g.JK(n);if(U===4)return t.return(U);g.zB(n,4);throw H;}})}; g.K4O=function(n){var q,w;return g.b(function(X){if(X.X==1)return g.l(X,g.ug(),2);if(X.X!=3){q=X.N;if(!q)throw g.ig("ri");return g.l(X,g.WI(q),3)}w=X.N;return X.return(g.pW(w,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(P){var R=IDBKeyRange.bound(n+"|",n+"~");return P.objectStore("index").getAll(R).then(function(c){return c.map(function(k){return k?k.format:{}})})}))})}; uIY=function(n,q,w,X,P){var R,c,k;return g.b(function(r){if(r.X==1)return g.l(r,g.ug(),2);if(r.X!=3){R=r.N;if(!R)throw g.ig("rc");return g.l(r,g.WI(R),3)}c=r.N;k=g.pW(c,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(e){var f=""+n+"|"+q+"|"+w+"|"+String(X).padStart(10,"0");return e.objectStore("media").get(f)}); return P?r.return(k.then(function(e){if(e===void 0)throw Error("No data from indexDb");return Sus(P,e)}).catch(function(e){throw new g.b4("Error while reading chunk: "+e.name+", "+e.message); })):r.return(k)})}; g.YuY=function(n){return n?n==="music"?!0:n.includes("dlt=-1")||!n.includes("dlt="):!1}; bhm=function(n,q){return""+n+"|"+(q?"v":"a")}; A$s=function(n){var q={};return Qm((q.dlt=n.downloadedEndTime.toString(),q.mket=n.maxKnownEndTime.toString(),q.avbr=n.averageByteRate.toString(),q))}; QSs=function(n){var q={},w={};n=g.a(n);for(var X=n.next();!X.done;X=n.next()){var P=X.value,R=P.split("|");P.match(g.BzO)?(X=Number(R.pop()),isNaN(X)?w[P]="?":(R=R.join("|"),(P=q[R])?(R=P[P.length-1],X===R.end+1?R.end=X:P.push({start:X,end:X})):q[R]=[{start:X,end:X}])):w[P]="?"}n=g.a(Object.keys(q));for(X=n.next();!X.done;X=n.next())X=X.value,w[X]=q[X].map(function(c){return c.start+"-"+c.end}).join(","); return w}; qj=function(n){g.np.call(this);this.N=null;this.C=new xH;this.N=null;this.D=new Set;this.crossOrigin=n||""}; ZhO=function(n,q,w){for(w=wY(n,w);w>=0;){var X=n.levels[w];if(X.isLoaded(Xl(X,q))&&(X=g.PD(X,q)))return X;w--}return g.PD(n.levels[0],q)}; zAu=function(n,q,w){w=wY(n,w);for(var X,P;w>=0;w--)if(X=n.levels[w],P=Xl(X,q),!X.isLoaded(P)){X=n;var R=w,c=R+"-"+P;X.D.has(c)||(X.D.add(c),X.C.enqueue(R,{nK:R,qW:P}))}J$3(n)}; J$3=function(n){if(!n.N&&!n.C.isEmpty()){var q=n.C.remove();n.N=W43(n,q)}}; W43=function(n,q){var w=document.createElement("img");n.crossOrigin&&(w.crossOrigin=n.crossOrigin);w.src=n.levels[q.nK].kH(q.qW);w.onload=function(){var X=q.nK,P=q.qW;n.N!==null&&(n.N.onload=null,n.N=null);X=n.levels[X];X.loaded.add(P);J$3(n);var R=X.columns*X.rows;P*=R;X=Math.min(P+R-1,X.oL()-1);P=[P,X];n.publish("l",P[0],P[1])}; return w}; g.Rp=function(n,q,w,X){this.level=n;this.W=q;this.loaded=new Set;this.level=n;this.W=q;n=w.split("#");this.width=Math.floor(Number(n[0]));this.height=Math.floor(Number(n[1]));this.frameCount=Math.floor(Number(n[2]));this.columns=Math.floor(Number(n[3]));this.rows=Math.floor(Number(n[4]));this.N=Math.floor(Number(n[5]));this.C=n[6];this.signature=n[7];this.videoLength=X}; Xl=function(n,q){return Math.floor(q/(n.columns*n.rows))}; g.PD=function(n,q){q>=n.tZ()&&n.jc();var w=Xl(n,q),X=n.columns*n.rows,P=q%X;q=P%n.columns;P=Math.floor(P/n.columns);var R=n.jc()+1-X*w;if(R1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; Nzx=function(n,q,w){return(n=n.levels[q])?n.Xj(w):-1}; wY=function(n,q){var w=n.W.get(q);if(w)return w;w=n.levels.length;for(var X=0;X=q)return n.W.set(q,X),X;n.W.set(q,w-1);return w-1}; Ip=function(n,q,w,X){w=w.split("#");w=[w[1],w[2],0,w[3],w[4],-1,w[0],""].join("#");g.Rp.call(this,n,q,w,0);this.X=null;this.K=X?2:0}; kI=function(n,q,w,X){cD.call(this,n,0,void 0,q,!(X===void 0||!X));for(n=0;n50&&(q=kzO.shift())&&OO.delete(q),q=X),X!==q&&n.CA("ssei","dcpn_"+X+"_"+q+"_"+n.clientPlaybackNonce),q)}; eF=function(n,q){var w=q.raw_watch_next_response;if(!w){var X=q.watch_next_response;X&&(w=JSON.parse(X))}if(w){n.Tp=w;var P=n.Tp.playerCueRangeSet;P&&g.HD(n,P);var R=n.Tp.playerOverlays;if(R){var c=R.playerOverlayRenderer;if(c){var k=c.autonavToggle;k&&(n.autoplaySwitchButtonRenderer=g.u(k,r1x),n.Z("web_player_autonav_use_server_provided_state")&&UO(n)&&(n.autonavState=n.autoplaySwitchButtonRenderer.enabled?2:1));var r=c.videoDetails;if(r){var e=r.embeddedPlayerOverlayVideoDetailsRenderer;var f=r.playerOverlayVideoDetailsRenderer; f&&(f.title&&(q.title=g.kY(f.title)),f.subtitle&&(q.subtitle=g.kY(f.subtitle)))}g.ny(n.aH)&&(n.KD=!!c.addToMenu);jkY(n,c.shareButton);c.startPosition&&c.endPosition&&(n.progressBarStartPosition=c.startPosition,n.progressBarEndPosition=c.endPosition);var O=c.gatedActionsOverlayRenderer;O&&(n.OS=g.u(O,sk6));var H,U,t,V=g.u((H=n.getWatchNextResponse())==null?void 0:(U=H.playerOverlays)==null?void 0:(t=U.playerOverlayRenderer)==null?void 0:t.infoPanel,eTY);if(V){n.E1=Number(V==null?void 0:V.durationMs)|| NaN;if(V==null?0:V.infoPanelOverviewViewModel)n.k6=V==null?void 0:V.infoPanelOverviewViewModel;if(V==null?0:V.infoPanelDetailsViewModel)n.ql=V==null?void 0:V.infoPanelDetailsViewModel}n.showSeekingControls=!!c.showSeekingControls}}var T,x,M=(T=n.getWatchNextResponse())==null?void 0:(x=T.contents)==null?void 0:x.twoColumnWatchNextResults;if(M){var h=M.desktopOverlay&&g.u(M.desktopOverlay,fTO);h&&(h.suppressShareButton&&(n.showShareButton=!1),h.suppressWatchLaterButton&&(n.KD=!1))}e&&OPu(n,q,e);var E= nD(0,q.autoplay_count),S=n.getWatchNextResponse(),nO,J=(nO=S.contents)==null?void 0:nO.twoColumnWatchNextResults,c0,ku,Is,e3=(c0=S.playerOverlays)==null?void 0:(ku=c0.playerOverlayRenderer)==null?void 0:(Is=ku.autoplay)==null?void 0:Is.playerOverlayAutoplayRenderer,wx=Dxz(n),v0,ls=(v0=S.contents)==null?void 0:v0.singleColumnWatchNextResults;if(ls){var ql;if(((ql=ls.autoplay)==null?0:ql.autoplay)&&!ls.playlist){var o5=ls.autoplay.autoplay.sets,g0={},E6=new SN(n.B()),WG=null,HG;if(o5){for(var SB=g.a(o5), wR=SB.next();!wR.done;wR=SB.next()){var L=wR.value.autoplayVideoRenderer;if(L&&L.compactVideoRenderer){WG=L.compactVideoRenderer;break}}if(HG=o5[0].autoplayVideo){var El=HG.clickTrackingParams;El&&(g0.itct=El);g0.autonav="1";g0.playnext=String(E)}}else g0.feature="related-auto";var DL=g.u(HG,g.tH);if(WG){E6.videoId=WG.videoId;var XY=WG.shortBylineText;XY&&(E6.author=g.kY(XY));var Tf=WG.title;Tf&&(E6.title=g.kY(Tf))}else DL!=null&&DL.videoId&&(E6.videoId=DL.videoId);E6.Ey=g0;n.suggestions=[];n.Md= E6}}if(wx){for(var p=[],qs=g.a(wx),uQ=qs.next();!uQ.done;uQ=qs.next()){var IP=uQ.value,bz=void 0,us=null;if(IP.endScreenVideoRenderer){var Ns=IP.endScreenVideoRenderer,no=Ns.title;us=new SN(n.B());us.videoId=Ns.videoId;us.lengthSeconds=Ns.lengthInSeconds||0;var oF=Ns.publishedTimeText;oF&&(us.publishedTimeText=g.kY(oF));var F=Ns.shortBylineText;F&&(us.author=g.kY(F));var y=Ns.shortViewCountText;y&&(us.shortViewCount=g.kY(y));if(no){us.title=g.kY(no);var v=no.accessibility;if(v){var G=v.accessibilityData; G&&G.label&&(us.ariaLabel=G.label)}}var Y=Ns.navigationEndpoint;if(Y){bz=Y.clickTrackingParams;var fO=g.u(Y,g.tH),B=g.u(Y,g.Lp);fO?us.k$=fO:B!=null&&(us.watchUrl=B.url)}var W=Ns.thumbnailOverlays;if(W)for(var C=g.a(W),xu=C.next();!xu.done;xu=C.next()){var KO=xu.value.thumbnailOverlayTimeStatusRenderer;if(KO)if(KO.style==="LIVE"){us.isLivePlayback=!0;break}else if(KO.style==="UPCOMING"){us.isUpcoming=!0;break}}us.V=EN(Ns.thumbnail)}else if(IP.endScreenPlaylistRenderer){var rx=IP.endScreenPlaylistRenderer, jB=rx.navigationEndpoint;if(!jB)continue;var LO=g.u(jB,g.tH);if(!LO)continue;var as=LO.videoId;us=new Ky(n.B());us.playlistId=rx.playlistId;us.playlistLength=Number(rx.videoCount)||0;us.N=as||null;us.videoId=as;var wr=rx.title;wr&&(us.title=g.kY(wr));var Fh=rx.shortBylineText;Fh&&(us.author=g.kY(Fh));bz=jB.clickTrackingParams;us.V=EN(rx.thumbnail)}us&&(bz&&(us.sessionData={itct:bz}),p.push(us))}n.suggestions=p}if(e3){n.i4=!!e3.preferImmediateRedirect;n.VL=n.VL||!!e3.webShowNewAutonavCountdown;n.xL= n.xL||!!e3.webShowBigThumbnailEndscreen;if(n.VL||n.xL){var Cj=J||null,TT=new SN(n.B());TT.videoId=e3.videoId;var ax=e3.videoTitle;if(ax){TT.title=g.kY(ax);var Ms=ax.accessibility;if(Ms){var hw=Ms.accessibilityData;hw&&hw.label&&(TT.ariaLabel=hw.label)}}var pj=e3.byline;pj&&(TT.author=g.kY(pj));var rR=e3.publishedTimeText;rR&&(TT.publishedTimeText=g.kY(rR));var $i=e3.shortViewCountText;$i&&(TT.shortViewCount=g.kY($i));var nA=e3.thumbnailOverlays;if(nA)for(var RF=g.a(nA),uz=RF.next();!uz.done;uz=RF.next()){var lz= uz.value.thumbnailOverlayTimeStatusRenderer;if(lz)if(lz.style==="LIVE"){TT.isLivePlayback=!0;break}else if(lz.style==="UPCOMING"){TT.isUpcoming=!0;break}else if(lz.style==="DEFAULT"&&lz.text){TT.lengthText=g.kY(lz.text);var vw=lz.text.accessibility;if(vw){var ZQ=vw.accessibilityData;ZQ&&ZQ.label&&(TT.xY=ZQ.label||"")}break}}TT.V=EN(e3.background);var H1=e3.nextButton;if(H1){var hI=H1.buttonRenderer;if(hI){var qw=hI.navigationEndpoint;if(qw){var w1=g.u(qw,g.tH);w1&&(TT.k$=w1)}}}if(e3.topBadges){var IJ= e3.topBadges[0];if(IJ){var VU=g.u(IJ,iPz);VU&&VU.style==="BADGE_STYLE_TYPE_PREMIUM"&&(TT.jzW=!0)}}var XJ=e3.alternativeTitle;XJ&&(TT.L8=g.kY(XJ));var J0={autonav:"1",playnext:String(E)};TT.playlistId&&(J0.autoplay="1");if(Cj){var G2,P8,tb,E4,lL=(G2=Cj.autoplay)==null?void 0:(P8=G2.autoplay)==null?void 0:(tb=P8.sets)==null?void 0:(E4=tb[0])==null?void 0:E4.autoplayVideo;if(lL){var RL=lL.clickTrackingParams;RL&&(J0.itct=RL);var c8=g.u(lL,g.tH);c8&&(TT.lf=c8)}}else if(e3){var IL,dT,kq,r1=(IL=e3.nextButton)== null?void 0:(dT=IL.buttonRenderer)==null?void 0:(kq=dT.navigationEndpoint)==null?void 0:kq.clickTrackingParams;r1&&(J0.itct=r1)}J0.itct||(J0.feature="related-auto");TT.Ey=J0;n.suggestions||(n.suggestions=[]);n.Md=TT}e3.countDownSecs!=null&&(n.tE=e3.countDownSecs*1E3);e3.countDownSecsForFullscreen!=null&&(n.aM=e3.countDownSecsForFullscreen>=0?e3.countDownSecsForFullscreen*1E3:-1);n.Z("web_autonav_color_transition")&&e3.watchToWatchTransitionRenderer&&(n.watchToWatchTransitionRenderer=g.u(e3.watchToWatchTransitionRenderer, HPT))}var gT=Dxz(n);if(gT){var ze,jA,tn,vr=gT==null?void 0:(ze=gT[0])==null?void 0:(jA=ze.endScreenVideoRenderer)==null?void 0:(tn=jA.navigationEndpoint)==null?void 0:tn.clickTrackingParams,OL=g.dY(n);vr&&OL&&(OL.sessionData={itct:vr})}n.Tp.currentVideoThumbnail&&(n.V=EN(n.Tp.currentVideoThumbnail));var m9,ER,dG,L8,MQ,x6=(m9=n.Tp)==null?void 0:(ER=m9.contents)==null?void 0:(dG=ER.twoColumnWatchNextResults)==null?void 0:(L8=dG.results)==null?void 0:(MQ=L8.results)==null?void 0:MQ.contents;if(x6&&x6[1]){var Dq, hz,Xe,GV,yx=(Dq=x6[1].videoSecondaryInfoRenderer)==null?void 0:(hz=Dq.owner)==null?void 0:(Xe=hz.videoOwnerRenderer)==null?void 0:(GV=Xe.thumbnail)==null?void 0:GV.thumbnails;yx&&yx.length&&(n.profilePicture=yx[yx.length-1].url)}var lX=Xo(q),gG,lA=(gG=n.getWatchNextResponse())==null?void 0:gG.onResponseReceivedEndpoints;if(lA)for(var td=g.a(lA),mM=td.next();!mM.done;mM=td.next()){var Ci=mM.value;g.u(Ci,gY)&&(n.jz=g.u(Ci,gY));var RA=g.u(Ci,Ukx),Py=void 0;if((Py=RA)==null?0:Py.entityKeys)n.Kt=RA.entityKeys|| [],RA.visibleOnLoadKeys&&(n.visibleOnLoadKeys=RA.visibleOnLoadKeys)}if(n.Z("web_key_moments_markers")){var n0=g.mB.getState().entities,qV=g.uP("visibility_override","markersVisibilityOverrideEntity");var Eq=QM(n0,"markersVisibilityOverrideEntity",qV);n.je=(Eq==null?void 0:Eq.videoId)===(n.videoId||lX)&&(Eq==null?0:Eq.visibilityOverrideMarkersKey)?Eq.visibilityOverrideMarkersKey:n.visibleOnLoadKeys;n.visibleOnLoadKeys=[].concat(g.D(n.je))}}}; UO=function(n){var q;return((q=n.autoplaySwitchButtonRenderer)==null?void 0:q.enabled)!==void 0}; y8=function(n){return!!(n.C&&n.C.videoInfos&&n.C.videoInfos.length)}; g.$I=function(n){var q=n.G;n.Z("html5_gapless_unlimit_format_selection")&&ap(n)&&(q=!1);var w=!!n.N&&n.N.T9,X=n.aH,P=n.Yl(),R=V8(n),c=n.IH,k=q,r=n.isOtf();q=n.Q7();var e=n.Ne,f=n.getUserAudio51Preference(),O=pZ(n),H=TO(n),U=new lV6(X);if(X.uL()||X.Z("html5_logging_format_selection"))U.X=!0;U.D0=R;U.IH=c&&X.V;U.WW=f;g.Ce("windows nt 5.1")&&!g.ce&&(U.x0=!0);if(R=P)R=g.g2(X)?YeO(X):!1;R&&(U.qP=!0);k&&(U.x0=!0,U.JU=!0);r&&!X.Z("html5_otf_prefer_vp9")&&(U.x0=!0);X.playerStyle==="picasaweb"&&(r&&(U.x0= !1),U.PW=!1);e&&(U.x0=!0);GG(X.K,CQ.CHANNELS)&&(X.Z("html5_enable_ac3")&&(U.W=!0),X.Z("html5_enable_eac3")&&(U.K=!0),X.Z("html5_enable_ac3_gapless")&&(U.HW=!0));X.Z("html5_block_8k_hfr")&&(U.oH=!0);U.D=g.Jv(X.experiments,"html5_max_selectable_quality_ordinal");U.G=g.Jv(X.experiments,"html5_min_selectable_quality_ordinal");SC&&(U.YE=480);if(w||P)U.PW=!1;U.je=!1;U.disableAv1=O;w=z4(X,U.N,void 0,U.disableAv1);w>0&&w<2160&&(N8()||X.Z("html5_format_hybridization"))&&(U.N.supportsChangeType=+N8(),U.Cd= w);w>=2160&&(U.vW=!0);qZO()&&!X.Z("disable_av1_setting")&&(U.N.serveVp9OverAv1IfHigherRes=0,U.tU=!1);U.Q7=q;U.n5=g.AN||JV()&&!q?!1:!0;U.V=X.Z("html5_format_hybridization");U.qe=X.Z("html5_disable_encrypted_vp9_live_non_2k_4k");U.AK=H;Fl(n)&&(U.sD=n.Z("html5_prefer_language_over_codec"));bb()&&n.playerResponse&&n.playerResponse.playerConfig&&n.playerResponse.playerConfig.webPlayerConfig&&n.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(U.W=!0,U.K=!0);n.G&&n.isAd()&&(n.iA&& (U.L=n.iA),n.s_&&(U.C=n.s_));U.Tp=n.isLivePlayback&&n.XJ()&&n.aH.Z("html5_drm_live_audio_51");U.Ne=n.BA;U.Me=!Fl(n);return n.HX=U}; pZ=function(n){return n.aH.Z("html5_disable_av1")||n.Z("html5_gapless_shorts_disable_av1")&&ap(n)?!0:!1}; tMY=function(n){y6("drm_pb_s",void 0,n.qP);n.Ff||n.N&&My(n.N);var q={};n.N&&(q=OIy(n.nt,g.$I(n),n.aH.K,n.N,function(w){return n.publish("ctmp","fmtflt",w)},!0,new Set)); q=new r5(q,n.aH,n.Ud,n.useCobaltWidevine?bb()?vD(n):!1:!1,function(w,X){n.p5(w,X)}); g.K(n,q);n.X0=!1;n.loading=!0;o8s(q,function(w){y6("drm_pb_f",void 0,n.qP);for(var X=g.a(w),P=X.next();!P.done;P=X.next())switch(P=P.value,P.flavor){case "fairplay":P.Ff=n.Ff;P.uR=n.uR;P.D8=n.D8;break;case "widevine":P.Mg=n.Mg}n.Hr=w;if(n.Hr.length>0&&(n.K=n.Hr[0],n.aH.uL())){w={};X=g.a(Object.entries(n.K.N));for(P=X.next();!P.done;P=X.next()){var R=g.a(P.value);P=R.next().value;R=R.next().value;var c="unk";(P=P.match(/(.*)codecs="(.*)"/))&&(c=P[2]);w[c]=R}n.p5("drmProbe",w)}n.UG()})}; dkO=function(n,q){if(q.length===0||LZ(n))return null;n.aH.K.C&&(QW=!0);var w=n.nV;var X=n.lengthSeconds,P=n.isLivePlayback,R=n.Tz,c=n.aH,k=g83(q);if(P||R){c=c.experiments;X=new xU("",c,!0);X.X=!R;X.T9=!0;X.isManifestless=!0;X.isLive=!R;X.Tz=R;q=g.a(q);for(P=q.next();!P.done;P=q.next()){var r=P.value;P=ll(r,w);k=ui(r);k=CS(k.ey||r.url||"",k.Ns,k.s);var e=k.get("id");e&&e.includes("%7E")&&(X.L=!0);var f=void 0;e=(f=c)==null?void 0:f.BW("html5_max_known_end_time_rebase");f=Number(r.targetDurationSec|| 5);r=Number(r.maxDvrDurationSec||14400);var O=Number(k.get("mindsq")||k.get("min_sq")||"0"),H=Number(k.get("maxdsq")||k.get("max_sq")||"0")||Infinity;X.vX=X.vX||O;X.Cb=X.Cb||H;var U=!CT(P.mimeType);k&&vx(X,new fS(k,P,{SJ:f,hL:U,kp:r,vX:O,Cb:H,Kr:300,Tz:R,dk:e}))}w=X}else if(k==="FORMAT_STREAM_TYPE_OTF"){X=X===void 0?0:X;R=new xU("",c.experiments,!1);R.duration=X||0;c=g.a(q);for(X=c.next();!X.done;X=c.next())X=X.value,q=ll(X,w,R.duration),P=ui(X),(P=CS(P.ey||X.url||"",P.Ns,P.s))&&(q.streamType==="FORMAT_STREAM_TYPE_OTF"? vx(R,new O7(P,q,"sq/0")):vx(R,new T4(P,q,Q4(X.initRange),Q4(X.indexRange))));R.isOtf=!0;w=R}else{X=X===void 0?0:X;R=new xU("",c.experiments,!1);R.duration=X||0;c=g.a(q);for(X=c.next();!X.done;X=c.next())k=X.value,X=ll(k,w,R.duration),q=Q4(k.initRange),P=Q4(k.indexRange),e=ui(k),(k=CS(e.ey||k.url||"",e.Ns,e.s))&&vx(R,new T4(k,X,q,P));w=R}R=n.isLivePlayback&&!n.Tz&&!n.PW&&!n.isPremiere;n.Z("html5_live_head_playable")&&(!Mj(n)&&R&&n.p5("missingLiveHeadPlayable",{}),n.aH.qP==="yt"&&(w.D0=!0));return w}; LZ=function(n){return bb()?!vD(n):YA()?!(!n.Ff||!n.Z("html5_enable_safari_fairplay")&&He()):!1}; vD=function(n){return n.Z("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.HD=function(n,q){q=g.a(q);for(var w=q.next();!w.done;w=q.next())if(w=w.value,w.cueRangeSetIdentifier){var X=void 0;n.I3.set(w.cueRangeSetIdentifier,(X=w.playerCueRanges)!=null?X:[])}}; xI=function(n){return!(!n.N||!n.N.isManifestless)}; D4=function(n){return n.YE?n.isLowLatencyLiveStream&&n.N!=null&&A9(n.N)>=5:n.isLowLatencyLiveStream&&n.N!=void 0&&A9(n.N)>=5}; glY=function(n){return bb()&&vD(n)?!1:LZ(n)&&(g.kS(n.aH)?!n.isLivePlayback:n.hlsvp)||!He()||n.oM?!0:!1}; aTu=function(n){n.loading=!0;n.zT=!1;if(mkY(n))g.K4O(n.videoId).then(function(X){y1Y(n,X)}).then(function(){n.UG()}); else{l5(n.sD)||g.TQ(new g.b4("DASH MPD Origin invalid: ",n.sD));var q=n.sD,w=g.Jv(n.aH.experiments,"dash_manifest_version")||4;q=g.OV(q,{mpd_version:w});n.isLowLatencyLiveStream&&n.latencyClass!=="NORMAL"||(q=g.OV(q,{pacing:0}));$Px(q,n.aH.experiments,n.isLivePlayback).then(function(X){n.zp()||(hH(n,X,!0),y6("mrc",void 0,n.qP),n.UG())},function(X){n.zp()||(n.loading=!1,n.publish("dataloaderror",new g.kw("manifest.net.retryexhausted",{backend:"manifest", rc:X.status},1)))}); y6("mrs",void 0,n.qP)}}; y1Y=function(n,q){var w=q.map(function(r){return r.itag}),X; if((X=n.playerResponse)!=null&&X.streamingData){X=[];if(n.Z("html5_offline_always_use_local_formats")){w=0;for(var P=g.a(q),R=P.next();!R.done;R=P.next()){R=R.value;var c=Object.assign({},R);c.signatureCipher="";X.push(c);c=g.a(n.playerResponse.streamingData.adaptiveFormats);for(var k=c.next();!k.done;k=c.next())if(k=k.value,R.itag===k.itag&&R.xtags===k.xtags){w+=1;break}}wf&&(f=U.getInfo().audio.numChannels)}f>2&&n.p5("hlschl",{mn:f});var T;((T=n.HX)==null?0:T.X)&&n.p5("hlsfmtaf",{itags:O.join(".")});var x;if(n.Z("html5_enable_vp9_fairplay")&&((x=n.K)==null?0:Pe(x)))for(n.p5("drm",{sbdlfbk:1}),f=g.a(n.Hr),O=f.next();!O.done;O=f.next())if(O=O.value,Xm(O)){n.K=O;break}EO(n,e)})}return TS()}; $kT=function(n){if(n.isExternallyHostedPodcast&&n.zG){var q=CZ(n.zG);if(!q[0])return TS();n.v6i=q[0];return eA0(n.aH,q[0]).then(function(w){EO(n,w)})}return n.XI&&n.Xm?sS6(n.aH,n.isAd(),n.XI).then(function(w){EO(n,w)}):TS()}; L6h=function(n){if(n.isExternallyHostedPodcast)return TS();var q=CZ(n.zG,n.LP);if(n.hlsvp){var w=nlm(n.hlsvp,n.clientPlaybackNonce,n.JU);q.push(w)}return jS0(n.aH,n.isAd(),q,vlx(n)).then(function(X){EO(n,X)})}; EO=function(n,q){n.KG=q;n.NG(new TG(g.Hh(n.KG,function(w){return w.getInfo()})))}; vlx=function(n){var q={cpn:n.clientPlaybackNonce,c:n.aH.N.c,cver:n.aH.N.cver};n.Z8&&(q.ptk=n.Z8,q.oid=n.gJ,q.ptchn=n.VM,q.pltype=n.Ys,n.zZ&&(q.m=n.zZ));return q}; g.op=function(n){return LZ(n)&&n.Ff?(n={},n.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",n):n.X&&n.X.nV||null}; MMx=function(n){var q=bf(n);return q&&q.text?g.kY(q.text):n.paidContentOverlayText}; xkO=function(n){var q=bf(n);return q&&q.durationMs?h_(q.durationMs):n.paidContentOverlayDurationMs}; bf=function(n){var q,w,X;return n.playerResponse&&n.playerResponse.paidContentOverlay&&n.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.u((q=n.Tp)==null?void 0:(w=q.playerOverlays)==null?void 0:(X=w.playerOverlayRenderer)==null?void 0:X.playerDisclosure,Dk0)||null}; AH=function(n){var q="";if(n.Hs)return n.Hs;n.isLivePlayback&&(q=n.allowLiveDvr?"dvr":n.isPremiere?"lp":n.PW?"window":"live");n.Tz&&(q="post");return q}; g.YI=function(n,q){return typeof n.keywords[q]!=="string"?null:n.keywords[q]}; hTz=function(n){return!!n.Ym||!!n.p_||!!n.Q1||!!n.gs||n.TW}; g.KZ=function(n){return!!(n.sD||n.zG||n.XI||n.hlsvp||n.KN())}; sO=function(n){if(n.Z("html5_onesie")&&n.errorCode)return!1;var q=g.yv(n.L,"ypc");n.ypcPreview&&(q=!1);return n.YH()&&!n.loading&&(g.KZ(n)||g.yv(n.L,"heartbeat")||q)}; CZ=function(n,q){n=J3(n);var w={};if(q){q=g.a(q.split(","));for(var X=q.next();!X.done;X=q.next())(X=X.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(w[X[1]]={width:X[2],height:X[3]})}q=g.a(n);for(X=q.next();!X.done;X=q.next()){X=X.value;var P=w[X.itag];P&&(X.width=P.width,X.height=P.height)}return n}; jkY=function(n,q){n.showShareButton=!!q;var w,X,P=((w=g.u(q,g.ZR))==null?void 0:w.navigationEndpoint)||((X=g.u(q,g.ZR))==null?void 0:X.command);P&&(n.uJ=!!g.u(P,lTy))}; qbs=function(n,q){var w=q.raw_embedded_player_response;if(!w){var X=q.embedded_player_response;X&&(w=JSON.parse(X))}w&&(n.Tx=w);if(n.Tx){n.embeddedPlayerConfig=n.Tx.embeddedPlayerConfig||null;if(w=n.Tx.videoFlags)w.playableInEmbed&&(n.allowEmbed=!0),w.isPrivate&&(n.isPrivate=!0),w.userDisplayName&&(q.user_display_name=w.userDisplayName),w.userDisplayImage&&(q.user_display_image=w.userDisplayImage);if(w=n.Tx.embedPreview){w=w.thumbnailPreviewRenderer;xxy(n,w.controlBgHtml);if(X=w.defaultThumbnail)n.V= EN(X);n.Z("embeds_web_enable_search_button")&&w.searchButton&&(X=g.u(w.searchButton,g.ZR))&&(n.nHo=g.u(X.navigationEndpoint,g.SF));(X=g.u(w==null?void 0:w.videoDetails,GzY))&&OPu(n,q,X);X=g.u(w==null?void 0:w.videoDetails,C3x);n.KD=!!w.addToWatchLaterButton;jkY(n,w.shareButton);if(X==null?0:X.musicVideoType)n.musicVideoType=X.musicVideoType;var P,R,c,k,r;if(X=g.u((P=n.getEmbeddedPlayerResponse())==null?void 0:(R=P.embedPreview)==null?void 0:(c=R.thumbnailPreviewRenderer)==null?void 0:(k=c.playButton)== null?void 0:(r=k.buttonRenderer)==null?void 0:r.navigationEndpoint,g.tH))Uxy(n,X),n.videoId=X.videoId||n.videoId;w.videoDurationSeconds&&(n.lengthSeconds=h_(w.videoDurationSeconds));w.webPlayerActionsPorting&&Mss(n,w.webPlayerActionsPorting);if(P=g.u(w==null?void 0:w.playlist,ElO)){n.Pr=!0;R=[];c=Number(P.currentIndex);if(P.contents)for(k=0,r=P.contents.length;k0:n.u7?!1:n.aH.wq||n.aH.TT||!g.Q2(n.aH)?!0:!1:(n.u7?0:n.wq)&&g.Q2(n.aH)?!0:!1;n.Z("html5_log_detailpage_autoplay")&&Xq(n)==="detailpage"&&n.p5("autoplay_info",{autoplay:n.Vb,autonav:n.isAutonav,wasDompaused:n.u7,result:q});return q}; g.Io=function(n){return n.oauthToken||n.aH.x5}; ZPy=function(n){if(n.Z("html5_stateful_audio_normalization")){var q=1,w=g.Jv(n.aH.experiments,"html5_default_ad_gain");w&&n.isAd()&&(q=w);var X,P;w=(P=(X=n.W)==null?void 0:X.audio.W)!=null?P:n.cB;if(w==null||isNaN(w))n=QkT(n);else{X=(0,g.m$)();n.M1=2;P=X-n.aH.LO<=n.maxStatefulTimeThresholdSec*1E3;n.applyStatefulNormalization&&P?n.M1=4:P||(n.aH.yK=Infinity,n.aH.LO=NaN);P=(n.M1===4?g.Y1(n.aH.yK,n.minimumLoudnessTargetLkfs,n.loudnessTargetLkfs):n.loudnessTargetLkfs)-w;if(n.M1!==4){var R,c,k,r,e=((R= n.playerResponse)==null?void 0:(c=R.playerConfig)==null?void 0:(k=c.audioConfig)==null?void 0:(r=k.loudnessNormalizationConfig)==null?void 0:r.statelessLoudnessAdjustmentGain)||0;P+=e}P=Math.min(P,0);n.preserveStatefulLoudnessTarget&&(n.aH.yK=w+P,n.aH.LO=X);n=Math.min(1,Math.pow(10,P/20))||q}}else n=QkT(n);return n}; QkT=function(n){var q=1,w=g.Jv(n.aH.experiments,"html5_default_ad_gain");w&&n.isAd()&&(q=w);if(n.aH.experiments.BW("html5_audio_gain_null_coalescing")){var X,P;w=(P=(X=n.W)==null?void 0:X.audio.C)!=null?P:n.iS;w==0&&n.p5("db0fix",{rldb:n.iS},!0)}else{var R;w=((R=n.W)==null?void 0:R.audio.C)||n.iS}isNaN(w)||(n.M1=1);return Math.min(1,Math.pow(10,-w/20))||q}; V8=function(n){var q=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],w=eC(n.aH)==="TVHTML5_SIMPLY"&&n.aH.N.ctheme==="MUSIC";!n.DF&&(g.LX(n.aH)||g.UN(n.aH)||w)&&(q.includes(n.musicVideoType)||n.isExternallyHostedPodcast)&&(n.DF=!0);if(q=g.od())q=/Starboard\/([0-9]+)/.exec(g.CV()),q=(q?parseInt(q[1],10):NaN)<10;w=n.aH;w=(eC(w)==="TVHTML5_CAST"||eC(w)==="TVHTML5"&&(w.N.cver.startsWith("6.20130725")||w.N.cver.startsWith("6.20130726")))&&n.aH.N.ctheme==="MUSIC";var X;if(X=!n.DF)w||(w= n.aH,w=eC(w)==="TVHTML5"&&w.N.cver.startsWith("7")),X=w;X&&!q&&(q=n.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",w=(n.Z("cast_prefer_audio_only_for_atv_and_uploads")||n.Z("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&n.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",q||w||n.isExternallyHostedPodcast)&&(n.DF=!0);return n.aH.deviceIsAudioOnly||n.DF&&n.aH.V}; TO=function(n){var q,w,X;return((q=n.playerResponse)==null?void 0:(w=q.playerConfig)==null?void 0:(X=w.compositeVideoConfig)==null?void 0:X.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; J10=function(n){var q,w,X,P=(q=n.playerResponse)==null?void 0:(w=q.playerConfig)==null?void 0:(X=w.compositeVideoConfig)==null?void 0:X.sourceConfigs,R,c,k;n=(R=n.playerResponse)==null?void 0:(c=R.playerConfig)==null?void 0:(k=c.compositeVideoConfig)==null?void 0:k.defaultActiveSourceVideoId;if(!P||!n)return"";P=g.a(P);for(R=P.next();!R.done;R=P.next())if(R=R.value,R.videoId===n&&R.audioTracks)for(R=g.a(R.audioTracks),c=R.next();!c.done;c=R.next())if(c=c.value,c.isDefaultForSource)return c.id||""; return""}; g.zTy=function(n){return n.Z("html5_enable_sabr_live_captions")&&n.T9()&&Fl(n)||TO(n)}; kE=function(n){var q,w,X;return!!((q=n.playerResponse)==null?0:(w=q.playerConfig)==null?0:(X=w.mediaCommonConfig)==null?0:X.splitScreenEligible)}; rw=function(n){var q;return!((q=n.playerResponse)==null||!q.compositePlayabilityStatus)}; W6O=function(n){return isNaN(n)?0:Math.max((Date.now()-n)/1E3-30,0)}; jd=function(n){return!(!n.lR||!n.aH.V)&&n.KN()}; sJ=function(n){return n.TZ&&n.enableServerStitchedDai}; NEx=function(n){return n.V$&&!n.jJ}; Fl=function(n){var q=n.Z("html5_enable_sabr_on_drive")&&n.aH.qP==="gd";if(n.HI)return n.V$&&n.p5("fds",{fds:!0},!0),!1;if(n.aH.qP!=="yt"&&!q)return n.V$&&n.p5("dsvn",{ns:n.aH.qP},!0),!1;if(n.cotn||!n.N||n.N.isOtf&&!n.Z("html5_enable_sabr_otf_in_client")||n.C&&!n.C.N||n.I_&&!n.Z("html5_enable_sabr_csdai"))return!1;if(n.Z("html5_use_sabr_requests_for_debugging"))return!0;n.V$&&n.p5("esfw",{usbc:n.V$,hsu:!!n.jJ},!0);if(n.V$&&n.jJ)return!0;if(n.Z("html5_remove_client_sabr_determination"))return!1;var w= !n.N.T9&&!n.XJ();q=w&&fJ&&n.Z("html5_enable_sabr_vod_streaming_xhr");w=w&&!fJ&&n.Z("html5_enable_sabr_vod_non_streaming_xhr");var X=ed(n),P=n.Z("html5_enable_sabr_drm_vod_streaming_xhr")&&fJ&&n.XJ()&&!n.N.T9&&(n.drmProduct==="1"?!1:!0);(q=q||w||X||P)&&!n.jJ&&n.p5("sabr",{loc:"m"},!0);return q&&!!n.jJ}; ed=function(n){var q;if(!(q=fJ&&n.T9()&&n.XJ()&&(n.drmProduct==="1"?!1:!0)&&n.Z("html5_sabr_live_drm_streaming_xhr"))){q=n.T9()&&!n.XJ()&&fJ;var w=n.T9()&&n.latencyClass!=="ULTRALOW"&&!n.isLowLatencyLiveStream&&n.Z("html5_sabr_live_normal_latency_streaming_xhr"),X=n.isLowLatencyLiveStream&&n.Z("html5_sabr_live_low_latency_streaming_xhr"),P=n.latencyClass==="ULTRALOW"&&n.Z("html5_sabr_live_ultra_low_latency_streaming_xhr");q=q&&(w||X||P)}w=q;q=n.enableServerStitchedDai&&w&&n.Z("html5_enable_sabr_ssdai_streaming_xhr"); w=!n.enableServerStitchedDai&&w;X=n.T9()&&!fJ&&n.Z("html5_enable_sabr_live_non_streaming_xhr");n=fJ&&(n.M7()||kE(n)&&n.Z("html5_enable_sabr_for_lifa_eligible_streams"));return q||w||X||n}; mkY=function(n){var q;if(q=!!n.cotn)q=n.videoId,q=!!q&&g.JK(q)===1;return q&&!n.lR}; g.f0=function(n){if(!n.N||!n.X||!n.W)return!1;var q=n.N.N,w=!!q[n.X.id]&&Ay(q[n.X.id].wc.N);q=!!q[n.W.id]&&Ay(q[n.W.id].wc.N);return(n.X.itag==="0"||w)&&q}; OJ=function(n){return n.GZ?["OK","LIVE_STREAM_OFFLINE"].includes(n.GZ.status):!0}; ol6=function(n){return(n=n.po)&&n.showError?n.showError:!1}; iR=function(n,q){return n.Z(q)?!0:(n.fflags||"").includes(q+"=true")}; ITO=function(n,q){q.inlineMetricEnabled&&(n.inlineMetricEnabled=!0);q.playback_progress_0s_url&&(n.gs=new lRs(q));if(q=q.video_masthead_ad_quartile_urls)n.p_=q.quartile_0_url,n.RD=q.quartile_25_url,n.Sk=q.quartile_50_url,n.b4=q.quartile_75_url,n.BY=q.quartile_100_url,n.Q1=q.quartile_0_urls,n.vk=q.quartile_25_urls,n.DG=q.quartile_50_urls,n.sC=q.quartile_75_urls,n.e7=q.quartile_100_urls}; c1s=function(n){var q={};n=g.a(n);for(var w=n.next();!w.done;w=n.next()){w=w.value;var X=w.split("=");X.length===2?q[X[0]]=X[1]:q[w]=!0}return q}; XpY=function(n){if(n){if(m0h(n))return n;n=yBy(n);if(m0h(n,!0))return n}return""}; g.nfs=function(n){return n.captionsLanguagePreference||n.aH.captionsLanguagePreference||g.YI(n,"yt:cc_default_lang")||n.aH.N7}; Ha=function(n){return!(!n.isLivePlayback||!n.hasProgressBarBoundaries())}; g.dY=function(n){var q;return n.Md||((q=n.suggestions)==null?void 0:q[0])||null}; g.UJ=function(n){var q,w;return!!((q=n.embeddedPlayerConfig)==null?0:(w=q.embeddedPlayerFlags)==null?0:w.enableMusicUx)}; q5m=function(n){return n.G||n.Z("web_player_media_session_infinity")&&n.isLivePlayback}; tE=function(n){return n.aH.W&&n.isPrivate}; g.gw=function(n){var q=n.B(),w=g.dw(q),X=q.sD;(q.Z("embeds_web_enable_iframe_api_send_full_embed_url")||q.Z("embeds_web_enable_rcat_validation_in_havs")||q.Z("embeds_enable_autoplay_and_visibility_signals"))&&g.ny(q)&&(X&&(w.thirdParty=Object.assign({},w.thirdParty,{embedUrl:X})),RrO(w,n));if(X=n.n5)w.clickTracking={clickTrackingParams:X};else if(g.ny(n.B())&&g.bp("EVENT_ID"))w.clickTracking={clickTrackingParams:g.bp("EVENT_ID")};else if(q.Z("html5_log_missing_itct")){var P;X=new g.b4("Missing ITCT in InnerTubeContext", {isAd:n.isAd(),r5o:(P=q.getWebPlayerContextConfig())==null?void 0:P.contextId});g.pC(X)}P=w.client||{};X="EMBED";var R=Xq(n);R==="leanback"?X="WATCH":q.Z("gvi_channel_client_screen")&&R==="profilepage"?X="CHANNEL":n.Ne?X="LIVE_MONITOR":R==="detailpage"?X="WATCH_FULL_SCREEN":R==="adunit"?X="ADUNIT":R==="sponsorshipsoffer"&&(X="UNKNOWN");P.clientScreen=X;if(q=n.kidsAppInfo)P.kidsAppInfo=JSON.parse(q);(X=n.Cc)&&!q&&(P.kidsAppInfo={contentSettings:{ageUpMode:w7x[X]}});if(q=n.nP)P.unpluggedAppInfo={enableFilterMode:!0}; (X=n.unpluggedFilterModeType)&&!q&&(P.unpluggedAppInfo={filterModeType:X7z[X]});if(q=n.aS)P.unpluggedLocationInfo=q;w.client=P;P=w.request||{};n.x5&&(P.isPrefetch=!0);if(q=n.mdxEnvironment)P.mdxEnvironment=q;if(q=n.mdxControlMode)P.mdxControlMode=PGs[q];w.request=P;P=w.user||{};if(q=n.HW)P.credentialTransferTokens=[{token:q,scope:"VIDEO"}];if(q=n.tU)P.delegatePurchases={oauthToken:q},P.kidsParent={oauthToken:q};w.user=P;if(P=n.contextParams)w.activePlayers=[{playerContextParams:P}];if(n=n.clientScreenNonce)w.clientScreenNonce= n;return w}; g.dw=function(n){var q=g.S6(),w=q.client||{};if(n.forcedExperiments){var X=n.forcedExperiments.split(","),P=[];X=g.a(X);for(var R=X.next();!R.done;R=X.next())P.push(Number(R.value));w.experimentIds=P}if(P=n.homeGroupInfo)w.homeGroupInfo=JSON.parse(P);if(P=n.getPlayerType())w.playerType=P;if(P=n.N.ctheme)w.theme=P;if(P=n.livingRoomAppMode)w.tvAppInfo=Object.assign({},w.tvAppInfo,{livingRoomAppMode:P});P=n.deviceYear;n.Z("html5_propagate_device_year")&&P&&(w.tvAppInfo=Object.assign({},w.tvAppInfo,{deviceYear:P})); if(P=n.livingRoomPoTokenId)w.tvAppInfo=Object.assign({},w.tvAppInfo,{livingRoomPoTokenId:P});q.client=w;w=q.user||{};n.enableSafetyMode&&(w=Object.assign({},w,{enableSafetyMode:!0}));n.pageId&&(w=Object.assign({},w,{onBehalfOfUser:n.pageId}));q.user=w;w=n.sD;n.Z("embeds_web_enable_iframe_api_send_full_embed_url")||n.Z("embeds_web_enable_rcat_validation_in_havs")||n.Z("embeds_enable_autoplay_and_visibility_signals")||!w||(q.thirdParty={embedUrl:w});return q}; juz=function(n,q,w){var X=n.videoId,P=g.gw(n),R=n.B(),c={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(tP()),referer:document.location.toString(),signatureTimestamp:20279};g.hh();n.isAutonav&&(c.autonav=!0);g.l4(0,141)&&(c.autonavState=g.l4(0,140)?"STATE_OFF":"STATE_ON");c.autoCaptionsDefaultOn=g.l4(0,66);BET(n)&&(c.autoplay=!0);R.V&&n.cycToken&&(c.cycToken=n.cycToken);R.enablePrivacyFilter&&(c.enablePrivacyFilter=!0);n.isFling&&(c.fling=!0);var k=n.forceAdsUrl;if(k){var r={},e=[];k= k.split(",");k=g.a(k);for(var f=k.next();!f.done;f=k.next()){f=f.value;var O=f.split("|");O.length!==3||f.includes("=")||(O[0]="breaktype="+O[0],O[1]="offset="+O[1],O[2]="url="+O[2]);f={adtype:"video_ad"};O=g.a(O);for(var H=O.next();!H.done;H=O.next()){var U=g.a(H.value.split("="));H=U.next().value;U=Rhh(U);f[H]=U.join("=")}O=f.url;H=f.presetad;U=f.viralresponseurl;var t=Number(f.campaignid);if(f.adtype==="in_display_ad")O&&(r.url=O),H&&(r.presetAd=H),U&&(r.viralAdResponseUrl=U),t&&(r.viralCampaignId= String(t));else if(f.adtype==="video_ad"){var V={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(f.offset)||0)}};if(f=R$s[f.breaktype])V.breakType=f;O&&(V.url=O);H&&(V.presetAd=H);U&&(V.viralAdResponseUrl=U);t&&(V.viralCampaignId=String(t));e.push(V)}}c.forceAdParameters={videoAds:e,inDisplayAd:r}}n.isInlinePlaybackNoAd&&(c.isInlinePlaybackNoAd=!0);n.isLivingRoomDeeplink&&(c.isLivingRoomDeeplink=!0);r=n.H8;if(r!=null){r={startWalltime:String(r)};if(e=n.Or)r.manifestDuration=String(e||14400); c.liveContext=r}if(n.mutedAutoplay){c.mutedAutoplay=!0;r=R.getWebPlayerContextConfig();var T,x;(r==null?0:(T=r.embedsHostFlags)==null?0:T.allowMutedAutoplayDurationMode)&&(r==null?0:(x=r.embedsHostFlags)==null?0:x.allowMutedAutoplayDurationMode.includes(cmT[n.mutedAutoplayDurationMode]))&&(c.mutedAutoplayDurationMode=cmT[n.mutedAutoplayDurationMode])}if(n.u7?0:n.wq)c.splay=!0;T=n.vnd;T===5&&(c.vnd=T);T={};if(x=n.isMdxPlayback)T.triggeredByMdx=x;if(x=n.Gm)T.skippableAdsSupported=x.split(",").includes("ska"); if(e=n.IW){x=n.Vn;r=[];e=g.a(cD6(e));for(k=e.next();!k.done;k=e.next()){k=k.value;f=k.platform;k={applicationState:k.YX?"INACTIVE":"ACTIVE",clientFormFactor:IHO[f]||"UNKNOWN_FORM_FACTOR",clientName:kr0[k.c5]||"UNKNOWN_INTERFACE",clientVersion:k.deviceVersion||"",platform:ki6[f]||"UNKNOWN_PLATFORM"};f={};if(x){O=void 0;try{O=JSON.parse(x)}catch(h){g.TQ(h)}O&&(f={params:[{key:"ms",value:O.ms}]},O.advertising_id&&(f.advertisingId=O.advertising_id),O.limit_ad_tracking!==void 0&&O.limit_ad_tracking!== null&&(f.limitAdTracking=O.limit_ad_tracking),k.osName=O.os_name,k.userAgent=O.user_agent,k.windowHeightPoints=O.window_height_points,k.windowWidthPoints=O.window_width_points)}r.push({adSignalsInfo:f,remoteClient:k})}T.remoteContexts=r}x=n.sourceContainerPlaylistId;r=n.serializedMdxMetadata;if(x||r)e={},x&&(e.mdxPlaybackContainerInfo={sourceContainerPlaylistId:x}),r&&(e.serializedMdxMetadata=r),T.mdxPlaybackSourceContext=e;c.mdxContext=T;T=q.width;T>0&&(c.playerWidthPixels=Math.round(T));if(q=q.height)c.playerHeightPixels= Math.round(q);w!==0&&(c.vis=w);if(w=R.widgetReferrer)c.widgetReferrer=w.substring(0,128);g.Q2(R)&&c&&(c.ancestorOrigins=R.ancestorOrigins);n.defaultActiveSourceVideoId&&(c.compositeVideoContext={defaultActiveSourceVideoId:n.defaultActiveSourceVideoId});if(R=R.getWebPlayerContextConfig())c.encryptedHostFlags=R.encryptedHostFlags;X={videoId:X,context:P,playbackContext:{contentPlaybackContext:c}};if(n.JL){var M;X.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(M=n.JL)==null?void 0:M.reloadPlaybackParams}}n.contentCheckOk&& (X.contentCheckOk=!0);if(M=n.clientPlaybackNonce)X.cpn=M;if(M=n.playerParams)X.params=M;if(M=n.playlistId)X.playlistId=M;n.racyCheckOk&&(X.racyCheckOk=!0);M=n.B();if(P=M.embedConfig)X.serializedThirdPartyEmbedConfig=P;X.captionParams={};P=g.l4(g.hh(),65);n.deviceCaptionsOn!=null?X.captionParams.deviceCaptionsOn=n.deviceCaptionsOn:g.iE(M)&&(X.captionParams.deviceCaptionsOn=P!=null?!P:!1);n.zA&&(X.captionParams.deviceCaptionsLangPref=n.zA);n.kT.length?X.captionParams.viewerSelectedCaptionLangs=n.kT: g.iE(M)&&(P=g.fQ(),P==null?0:P.length)&&(X.captionParams.viewerSelectedCaptionLangs=P);P=n.fetchType==="onesie"&&n.Z("html5_onesie_attach_po_token");c=n.fetchType!=="onesie"&&n.Z("html5_non_onesie_attach_po_token");if(P||c)P=n.B(),P.u7&&(X.serviceIntegrityDimensions={},X.serviceIntegrityDimensions.poToken=P.u7);M.Z("fetch_att_independently")&&(X.attestationRequest={omitBotguardData:!0});X.playbackContext||(X.playbackContext={});X.playbackContext.devicePlaybackCapabilities=rmh(n);X.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&n.p5("noVp9",{});return X}; rmh=function(n){var q=!(n==null?0:n.Q7())&&(n==null?void 0:n.T9())&&JV(),w;if(!(w=n==null)){w=g.$I(n);n=n.B().K;var X=TB("243");w=!(X&&LQ(w,X,n,!0)===!0)}return{supportsVp9Encoding:!(w||q),supportXhr:fJ}}; e$s=function(n,q){var w,X,P;return g.b(function(R){if(R.X==1)return w={context:g.dw(n.B()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:n.videoId,cpn:n.clientPlaybackNonce}}]},X=g.QO(sus),g.l(R,g.Lk(q,w,X),2);P=R.N;return R.return(P)})}; fHT=function(n,q,w){var X=g.Jv(q.experiments,"bg_vm_reinit_threshold");(!Jm||(0,g.m$)()-Jm>X)&&e$s(n,w).then(function(P){P&&(P=P.botguardData)&&g.W7(P,q)},function(P){n.zp()||(P=jS(P),n.p5("attf",P.details))})}; mv=function(n,q){g.A.call(this);this.app=n;this.state=q}; ao=function(n,q,w){n.state.N.hasOwnProperty(q)||y$(n,q,w);n.state.G[q]=function(){return w.apply(n,g.bs.apply(0,arguments))}; n.state.D.add(q)}; V$=function(n,q,w){n.state.N.hasOwnProperty(q)||y$(n,q,w);n.app.B().V&&(n.state.V[q]=function(){return w.apply(n,g.bs.apply(0,arguments))},n.state.D.add(q))}; y$=function(n,q,w){n.state.N[q]=function(){return w.apply(n,g.bs.apply(0,arguments))}}; g.p0=function(n,q,w){return n.state.N[q].apply(n.state.N,g.D(w))}; TY=function(){g.de.call(this);this.K=new Map}; Fq=function(){g.A.apply(this,arguments);this.element=null;this.D=new Set;this.G={};this.V={};this.N={};this.L=new Set;this.C=new TY;this.X=new TY;this.W=new TY;this.K=new TY}; OYy=function(n,q,w){typeof n==="string"&&(n={mediaContentUrl:n,startSeconds:q,suggestedQuality:w});a:{if((q=n.mediaContentUrl)&&(q=/\/([ve]|embed)\/([^#?]+)/.exec(q))&&q[2]){q=q[2];break a}q=null}n.videoId=q;return $E(n)}; $E=function(n,q,w){if(typeof n==="string")return{videoId:n,startSeconds:q,suggestedQuality:w};q={};w=g.a(iY0);for(var X=w.next();!X.done;X=w.next())X=X.value,n[X]&&(q[X]=n[X]);return q}; HYs=function(n,q,w,X){if(g.R5(n)&&!Array.isArray(n)){q="playlist list listType index startSeconds suggestedQuality".split(" ");w={};for(X=0;X32&&X.push("hfr");q.isHdr()&&X.push("hdr");q.primaries==="bt2020"&&X.push("wcg");w.video_quality_features=X}}if(n=n.getPlaylistId())w.list=n;return w}; Dp=function(){va.apply(this,arguments)}; hE=function(n,q){var w={};if(n.app.B().PW){n=g.a(gf0);for(var X=n.next();!X.done;X=n.next())X=X.value,q.hasOwnProperty(X)&&(w[X]=q[X]);if(q=w.qoe_cat)n="",typeof q==="string"&&q.length>0&&(n=q.split(",").filter(function(P){return mG0.includes(P)}).join(",")),w.qoe_cat=n; yms(w)}else for(n=g.a(aH3),X=n.next();!X.done;X=n.next())X=X.value,q.hasOwnProperty(X)&&(w[X]=q[X]);return w}; yms=function(n){var q=n.raw_player_response;if(!q){var w=n.player_response;w&&(q=JSON.parse(w))}delete n.player_response;delete n.raw_player_response;if(q){n.raw_player_response={streamingData:q.streamingData,playerConfig:q.playerConfig};var X;if((X=q.playbackTracking)==null?0:X.qoeUrl)n.raw_player_response=Object.assign({},n.raw_player_response,{playbackTracking:{qoeUrl:q.playbackTracking.qoeUrl}});q.videoDetails&&(q.videoDetails.videoId||q.videoDetails.lengthSeconds)&&(w={},q.videoDetails.videoId&& (w.videoId=q.videoDetails.videoId),q.videoDetails.lengthSeconds&&(w.lengthSeconds=q.videoDetails.lengthSeconds),n.raw_player_response=Object.assign({},n.raw_player_response,{videoDetails:w}))}}; lR=function(n,q,w){var X=n.app.Py(w);if(!X)return 0;n=X-n.app.getCurrentTime(w);return q-n}; p7u=function(n){var q=q===void 0?5:q;return n?V03[n]||q:q}; g.GY=function(){Dp.apply(this,arguments)}; Tum=function(n){y$(n,"getInternalApiInterface",n.getInternalApiInterface);y$(n,"addEventListener",n.uD);y$(n,"removeEventListener",n.bVP);y$(n,"cueVideoByPlayerVars",n.t8);y$(n,"loadVideoByPlayerVars",n.uW);y$(n,"preloadVideoByPlayerVars",n.d7o);y$(n,"getAdState",n.getAdState);y$(n,"sendAbandonmentPing",n.sendAbandonmentPing);y$(n,"setLoopRange",n.setLoopRange);y$(n,"getLoopRange",n.getLoopRange);y$(n,"setAutonavState",n.setAutonavState);y$(n,"seekTo",n.tvg);y$(n,"seekBy",n.cJW);y$(n,"seekToLiveHead", n.seekToLiveHead);y$(n,"requestSeekToWallTimeSeconds",n.requestSeekToWallTimeSeconds);y$(n,"seekToStreamTime",n.seekToStreamTime);y$(n,"prefetchKeyPlay",n.prefetchKeyPlay);y$(n,"startSeekCsiAction",n.startSeekCsiAction);y$(n,"getStreamTimeOffset",n.getStreamTimeOffset);y$(n,"getVideoData",n.St);y$(n,"setInlinePreview",n.setInlinePreview);y$(n,"getAppState",n.getAppState);y$(n,"updateLastActiveTime",n.updateLastActiveTime);y$(n,"setBlackout",n.setBlackout);y$(n,"setUserEngagement",n.setUserEngagement); y$(n,"updateSubtitlesUserSettings",n.updateSubtitlesUserSettings);y$(n,"getPresentingPlayerType",n.EJ);y$(n,"canPlayType",n.canPlayType);y$(n,"updatePlaylist",n.updatePlaylist);y$(n,"updateVideoData",n.updateVideoData);y$(n,"updateEnvironmentData",n.updateEnvironmentData);y$(n,"sendVideoStatsEngageEvent",n.hHi);y$(n,"productsInVideoVisibilityUpdated",n.productsInVideoVisibilityUpdated);y$(n,"setSafetyMode",n.setSafetyMode);y$(n,"isAtLiveHead",function(q){return n.isAtLiveHead(void 0,q)}); y$(n,"getVideoAspectRatio",n.getVideoAspectRatio);y$(n,"getPreferredQuality",n.getPreferredQuality);y$(n,"getPlaybackQualityLabel",n.getPlaybackQualityLabel);y$(n,"setPlaybackQualityRange",n.die);y$(n,"onAdUxClicked",n.onAdUxClicked);y$(n,"getFeedbackProductData",n.getFeedbackProductData);y$(n,"getStoryboardFrame",n.getStoryboardFrame);y$(n,"getStoryboardFrameIndex",n.getStoryboardFrameIndex);y$(n,"getStoryboardLevel",n.getStoryboardLevel);y$(n,"getNumberOfStoryboardLevels",n.getNumberOfStoryboardLevels); y$(n,"getCaptionWindowContainerId",n.getCaptionWindowContainerId);y$(n,"getAvailableQualityLabels",n.getAvailableQualityLabels);y$(n,"addCueRange",n.addCueRange);y$(n,"addUtcCueRange",n.addUtcCueRange);y$(n,"showAirplayPicker",n.showAirplayPicker);y$(n,"dispatchReduxAction",n.dispatchReduxAction);y$(n,"getPlayerResponse",n.jt);y$(n,"getWatchNextResponse",n.Ep);y$(n,"getHeartbeatResponse",n.Z$);y$(n,"getCurrentTime",n.rP);y$(n,"getDuration",n.QP);y$(n,"getPlayerState",n.getPlayerState);y$(n,"getPlayerStateObject", n.s4);y$(n,"getVideoLoadedFraction",n.getVideoLoadedFraction);y$(n,"getProgressState",n.getProgressState);y$(n,"getVolume",n.getVolume);y$(n,"setVolume",n.xr);y$(n,"isMuted",n.isMuted);y$(n,"mute",n.w2);y$(n,"unMute",n.Fs);y$(n,"loadModule",n.loadModule);y$(n,"unloadModule",n.unloadModule);y$(n,"getOption",n.b1);y$(n,"getOptions",n.getOptions);y$(n,"setOption",n.setOption);y$(n,"loadVideoById",n.ri);y$(n,"loadVideoByUrl",n.Fd);y$(n,"playVideo",n.dA);y$(n,"loadPlaylist",n.loadPlaylist);y$(n,"nextVideo", n.nextVideo);y$(n,"previousVideo",n.previousVideo);y$(n,"playVideoAt",n.playVideoAt);y$(n,"getDebugText",n.getDebugText);y$(n,"getWebPlayerContextConfig",n.getWebPlayerContextConfig);y$(n,"notifyShortsAdSwipeEvent",n.notifyShortsAdSwipeEvent);y$(n,"getVideoContentRect",n.getVideoContentRect);y$(n,"setSqueezeback",n.setSqueezeback);y$(n,"toggleSubtitlesOn",n.toggleSubtitlesOn);y$(n,"isSubtitlesOn",n.isSubtitlesOn);y$(n,"reportPlaybackIssue",n.reportPlaybackIssue);y$(n,"setAutonav",n.setAutonav);y$(n, "isNotServable",n.isNotServable);y$(n,"channelSubscribed",n.channelSubscribed);y$(n,"channelUnsubscribed",n.channelUnsubscribed);y$(n,"togglePictureInPicture",n.togglePictureInPicture);y$(n,"supportsGaplessAudio",n.supportsGaplessAudio);y$(n,"supportsGaplessShorts",n.supportsGaplessShorts);y$(n,"enqueueVideoByPlayerVars",function(q){return void n.enqueueVideoByPlayerVars(q)}); y$(n,"clearQueue",n.clearQueue);y$(n,"getAudioTrack",n.n4);y$(n,"setAudioTrack",n.zHg);y$(n,"getAvailableAudioTracks",n.T$);y$(n,"getMaxPlaybackQuality",n.getMaxPlaybackQuality);y$(n,"getUserPlaybackQualityPreference",n.getUserPlaybackQualityPreference);y$(n,"getSubtitlesUserSettings",n.getSubtitlesUserSettings);y$(n,"resetSubtitlesUserSettings",n.resetSubtitlesUserSettings);y$(n,"setMinimized",n.setMinimized);y$(n,"setOverlayVisibility",n.setOverlayVisibility);y$(n,"confirmYpcRental",n.confirmYpcRental); y$(n,"queueNextVideo",n.queueNextVideo);y$(n,"handleExternalCall",n.handleExternalCall);y$(n,"logApiCall",n.logApiCall);y$(n,"isExternalMethodAvailable",n.isExternalMethodAvailable);y$(n,"setScreenLayer",n.setScreenLayer);y$(n,"getCurrentPlaylistSequence",n.getCurrentPlaylistSequence);y$(n,"getPlaylistSequenceForTime",n.getPlaylistSequenceForTime);y$(n,"shouldSendVisibilityState",n.shouldSendVisibilityState);y$(n,"syncVolume",n.syncVolume);y$(n,"highlightSettingsMenuItem",n.highlightSettingsMenuItem); y$(n,"openSettingsMenuItem",n.openSettingsMenuItem);y$(n,"getEmbeddedPlayerResponse",n.getEmbeddedPlayerResponse);y$(n,"getVisibilityState",n.getVisibilityState);y$(n,"isMutedByMutedAutoplay",n.isMutedByMutedAutoplay);y$(n,"isMutedByEmbedsMutedAutoplay",n.isMutedByEmbedsMutedAutoplay);y$(n,"setGlobalCrop",n.setGlobalCrop);y$(n,"setInternalSize",n.setInternalSize);y$(n,"setFauxFullscreen",n.setFauxFullscreen);y$(n,"setAppFullscreen",n.setAppFullscreen)}; EJ=function(n,q,w){n=g.C0(n.Qu(),q);return w?(w.addOnDisposeCallback(n),null):n}; g.oo=function(n,q,w){return n.app.B().bx?q:g.NB("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:q,SHORTCUT:w})}; FIm=function(n){n.Qu().element.setAttribute("aria-live","polite")}; g.bR=function(n,q){g.GY.call(this,n,q);Tum(this);V$(this,"addEventListener",this.F_);V$(this,"removeEventListener",this.yzp);V$(this,"cueVideoByPlayerVars",this.kt);V$(this,"loadVideoByPlayerVars",this.FA);V$(this,"preloadVideoByPlayerVars",this.Kgo);V$(this,"loadVideoById",this.ri);V$(this,"loadVideoByUrl",this.Fd);V$(this,"playVideo",this.dA);V$(this,"loadPlaylist",this.loadPlaylist);V$(this,"nextVideo",this.nextVideo);V$(this,"previousVideo",this.previousVideo);V$(this,"playVideoAt",this.playVideoAt); V$(this,"getVideoData",this.A6);V$(this,"seekBy",this.JJ0);V$(this,"seekTo",this.lFT);V$(this,"showControls",this.showControls);V$(this,"hideControls",this.hideControls);V$(this,"cancelPlayback",this.cancelPlayback);V$(this,"getProgressState",this.getProgressState);V$(this,"isInline",this.isInline);V$(this,"setInline",this.setInline);V$(this,"setLoopVideo",this.setLoopVideo);V$(this,"getLoopVideo",this.getLoopVideo);V$(this,"getVideoContentRect",this.getVideoContentRect);V$(this,"getVideoStats",this.L4); V$(this,"getCurrentTime",this.O4);V$(this,"getDuration",this.QP);V$(this,"getPlayerState",this.Vv);V$(this,"getVideoLoadedFraction",this.bY);V$(this,"mute",this.w2);V$(this,"unMute",this.Fs);V$(this,"setVolume",this.xr);V$(this,"loadModule",this.loadModule);V$(this,"unloadModule",this.unloadModule);V$(this,"getOption",this.b1);V$(this,"getOptions",this.getOptions);V$(this,"setOption",this.setOption);V$(this,"addCueRange",this.addCueRange);V$(this,"getDebugText",this.getDebugText);V$(this,"getStoryboardFormat", this.getStoryboardFormat);V$(this,"toggleFullscreen",this.toggleFullscreen);V$(this,"isFullscreen",this.isFullscreen);V$(this,"getPlayerSize",this.getPlayerSize);V$(this,"toggleSubtitles",this.toggleSubtitles);V$(this,"setCenterCrop",this.setCenterCrop);V$(this,"setFauxFullscreen",this.setFauxFullscreen);V$(this,"setSizeStyle",this.setSizeStyle);V$(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);V$(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);t0z(this)}; g.AE=function(n){n=n.fM();var q=n.RS.get("endscreen");return q&&q.gW()?!0:n.SM()}; g.YE=function(n,q){n.getPresentingPlayerType()===3?n.publish("mdxautoplaycancel"):n.Uq("onAutonavCancelled",q)}; g.Sd=function(n){var q=K0(n.fM());return n.app.Hl&&!n.isFullscreen()||n.getPresentingPlayerType()===3&&q&&q.Om()&&q.qM()||!!n.getPlaylist()}; g.uR=function(n,q){g.p0(n,"addEmbedsConversionTrackingParams",[q])}; g.Q$=function(n){return(n=g.Ba(n.fM()))?n.A9():{}}; g.$Gm=function(n){n=(n=n.getVideoData())&&n.X;return!!n&&!(!n.audio||!n.video)&&n.mimeType!=="application/x-mpegURL"}; g.Zp=function(n,q,w){n=n.yT().element;var X=Kj(n.children,function(P){P=Number(P.getAttribute("data-layer"));return w-P||1}); X<0&&(X=-(X+1));tU(n,q,X);q.setAttribute("data-layer",String(w))}; g.JE=function(n){var q=n.B();if(!q.aS)return!1;var w=n.getVideoData();if(!w||n.getPresentingPlayerType()===3)return!1;var X=(!w.isLiveDefaultBroadcast||q.Z("allow_poltergust_autoplay"))&&!Ha(w);X=w.isLivePlayback&&(!q.Z("allow_live_autoplay")||!X);var P=w.isLivePlayback&&q.Z("allow_live_autoplay_on_mweb");n=n.getPlaylist();n=!!n&&n.Om();var R=w.Tp&&w.Tp.playerOverlays||null;R=!!(R&&R.playerOverlayRenderer&&R.playerOverlayRenderer.autoplay);R=w.bS&&R;return!w.ypcPreview&&(!X||P)&&!g.yv(w.L,"ypc")&& !n&&(!g.Q2(q)||R)}; LIs=function(n,q){n=vfO(n.app.T1().K);n=g.a(n);for(var w=n.next();!w.done;w=n.next()){w=w.value;var X=w.getAvailableAudioTracks(),P=null;X=g.a(X);for(var R=X.next();!R.done;R=X.next())if(R=R.value,R.getLanguageInfo().getId()===q){P=R;break}P&&w.zR(P,!0)}}; zY=function(){xN.apply(this,arguments);this.requestHeaders={}}; NV=function(){Wa||(Wa=new zY);return Wa}; ng=function(n,q){q?n.requestHeaders.Authorization="Bearer "+q:delete n.requestHeaders.Authorization}; g.qb=function(n){g.A.call(this);var q=this;this.Eq=n;this.Wb={ys:function(){return q.Eq}}}; g.wL=function(n,q,w,X){X=X===void 0?!1:X;g.R6.call(this,q);var P=this;this.T=n;this.vW=X;this.V=new g.Um(this);this.fade=new g.ZF(this,w,!0,void 0,void 0,function(){P.OH()}); g.K(this,this.V);g.K(this,this.fade)}; XZ=function(n){var q=n.T.getRootNode();return n.T.Z("web_watch_pip")||n.T.Z("web_shorts_pip")?qY(q):document}; M0m=function(n){n.X&&(document.activeElement&&g.gr(n.element,document.activeElement)&&n.X.focus(),n.X.setAttribute("aria-expanded","false"),n.X=void 0);g.Vs(n.V);n.L=void 0}; PH=function(n,q,w){n.hf()?n.hK():n.ZC(q,w)}; RV=function(n,q,w,X){X=new g.Q({J:"div",Jg:["ytp-linked-account-popup-button"],Ag:X,U:{role:"button",tabindex:"0"}});q=new g.Q({J:"div",Y:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},S:[{J:"div",Y:"ytp-linked-account-popup-title",Ag:q},{J:"div",Y:"ytp-linked-account-popup-description",Ag:w},{J:"div",Y:"ytp-linked-account-popup-buttons",S:[X]}]});g.wL.call(this,n,{J:"div",Y:"ytp-linked-account-popup-container",S:[q]},100);var P=this;this.dialog=q;g.K(this,this.dialog); X.listen("click",function(){P.hK()}); g.K(this,X);g.Zp(this.T,this.element,4);this.hide()}; g.IV=function(n,q,w,X){g.R6.call(this,n);this.priority=q;w&&g.cH(this,w);X&&this.s8(X)}; g.kK=function(n,q,w,X){n=n===void 0?{}:n;q=q===void 0?[]:q;w=w===void 0?!1:w;X=X===void 0?!1:X;q.push("ytp-menuitem");var P=n;"role"in P||(P.role="menuitem");w||(P=n,"tabindex"in P||(P.tabindex="0"));n={J:w?"a":"div",Jg:q,U:n,S:[{J:"div",Y:"ytp-menuitem-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-menuitem-label",Ag:"{{label}}"},{J:"div",Y:"ytp-menuitem-content",Ag:"{{content}}"}]};X&&n.S.push({J:"div",Y:"ytp-menuitem-secondary-icon",Ag:"{{secondaryIcon}}"});return n}; g.cH=function(n,q){n.updateValue("label",q)}; rL=function(n){g.IV.call(this,g.kK({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var q=this;this.T=n;this.X=this.N=!1;this.aP=n.tf();n.createServerVe(this.element,this,!0);this.j(this.T,"settingsMenuVisibilityChanged",function(w){q.jj(w)}); this.j(this.T,"videodatachange",this.W);this.listen("click",this.onClick);this.W()}; jO=function(n){return n?g.kY(n):""}; sc=function(n){g.A.call(this);this.api=n}; eO=function(n){sc.call(this,n);var q=this;y$(n,"setAccountLinkState",function(w){q.setAccountLinkState(w)}); y$(n,"updateAccountLinkingConfig",function(w){q.updateAccountLinkingConfig(w)}); n.addEventListener("videodatachange",function(w,X){q.onVideoDataChange(X)}); n.addEventListener("settingsMenuInitialized",function(){q.menuItem=new rL(q.api);g.K(q,q.menuItem)})}; xGy=function(n){this.api=n;this.N={}}; fg=function(n,q,w,X){q in n.N||(w=new g.og(w,X,{id:q,priority:2,namespace:"appad"}),n.api.Zf([w],1),n.N[q]=w)}; Oc=function(n){sc.call(this,n);var q=this;this.events=new g.Um(this);g.K(this,this.events);this.N=new xGy(this.api);this.events.j(this.api,"legacyadtrackingpingreset",function(){q.N.N={}}); this.events.j(this.api,"legacyadtrackingpingchange",function(w){var X=q.N;fg(X,"part2viewed",1,0x8000000000000);fg(X,"engagedview",Math.max(1,w.AK*1E3),0x8000000000000);if(!w.isLivePlayback){var P=w.lengthSeconds*1E3;ap(w)&&X.api.Z("html5_shorts_gapless_ads_duration_fix")&&(P=X.api.getProgressState().seekableEnd*1E3-w.jN);fg(X,"videoplaytime25",P*.25,P);fg(X,"videoplaytime50",P*.5,P);fg(X,"videoplaytime75",P*.75,P);fg(X,"videoplaytime100",P,0x8000000000000);fg(X,"conversionview",P,0x8000000000000); fg(X,"videoplaybackstart",1,P);fg(X,"videoplayback2s",2E3,P);fg(X,"videoplayback10s",1E4,P)}}); this.events.j(this.api,g.Aq("appad"),this.X);this.events.j(this.api,g.YS("appad"),this.X)}; Gih=function(n,q,w){if(!(w in q))return!1;q=q[w];Array.isArray(q)||(q=[q]);q=g.a(q);for(w=q.next();!w.done;w=q.next()){w=w.value;var X={CPN:n.api.getVideoData().clientPlaybackNonce};w=g.Vt(w,X);X=void 0;X=X===void 0?!1:X;(X=DN(hq(w,DGz),w,X,"Active View 3rd Party Integration URL"))||(X=void 0,X=X===void 0?!1:X,X=DN(hq(w,h$z),w,X,"Google/YouTube Brand Lift URL"));X||(X=void 0,X=X===void 0?!1:X,X=DN(hq(w,lHY),w,X,"Nielsen OCR URL"));g.LH(w,void 0,X)}return!0}; i9=function(n,q){CGT(n,q).then(function(w){g.LH(q,void 0,void 0,w)})}; HH=function(n,q){q.forEach(function(w){i9(n,w)})}; CGT=function(n,q){return g.jg(n.api.B())&&wN(q)&&qg(q)?g.Vd(n.api.B(),g.Io(n.api.getVideoData())).then(function(w){var X;w&&(X={Authorization:"Bearer "+w});return X},void 0):FR()}; Ef6=function(n){sc.call(this,n);this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"videoready",function(q){if(n.getPresentingPlayerType()===1){var w,X,P={playerDebugData:{pmlSignal:!!((w=q.getPlayerResponse())==null?0:(X=w.adPlacements)==null?0:X.some(function(R){var c;return R==null?void 0:(c=R.adPlacementRenderer)==null?void 0:c.renderer})), contentCpn:q.clientPlaybackNonce}};g.Xc("adsClientStateChange",P)}})}; Uc=function(n){g.Q.call(this,{J:"button",Jg:["ytp-button","ytp-autonav-toggle"],U:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},S:[{J:"div",Y:"ytp-autonav-toggle-button-container",S:[{J:"div",Y:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.T=n;this.X=[];this.N=!1;this.isChecked=!0;n.createClientVe(this.element,this,113681);this.j(n,"presentingplayerstatechange",this.s6);this.listen("click",this.onClick);this.T.B().Z("web_player_autonav_toggle_always_listen")&& ofz(this);EJ(n,this.element,this);this.s6()}; ofz=function(n){n.X.push(n.j(n.T,"videodatachange",n.s6));n.X.push(n.j(n.T,"videoplayerreset",n.s6));n.X.push(n.j(n.T,"onPlaylistUpdate",n.s6));n.X.push(n.j(n.T,"autonavchange",n.PU))}; bYx=function(n){n.isChecked=n.isChecked;n.C5("ytp-autonav-toggle-button").setAttribute("aria-checked",String(n.isChecked));var q=n.isChecked?"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 ativada":"A reprodu\u00e7\u00e3o autom\u00e1tica est\u00e1 desativada";n.updateValue("title",q);n.updateValue("label",q);n.T.DL()}; AmO=function(n){return n.T.B().Z("web_player_autonav_use_server_provided_state")&&UO(n.q7())}; Y50=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"standardControlsInitialized",function(){var w=new Uc(n);g.K(q,w);n.Sc(w,"RIGHT_CONTROLS_LEFT")})}; tk=function(n,q){g.IV.call(this,g.kK({role:"menuitemcheckbox","aria-checked":"false"}),q,n,{J:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; dL=function(n,q){n.checked=q;n.element.setAttribute("aria-checked",String(n.checked))}; KIm=function(n){var q=!n.B().V$&&n.getPresentingPlayerType()!==3;return n.isFullscreen()||q}; g.gL=function(n,q,w,X){var P=n.currentTarget;if((w===void 0||!w)&&g.t2(n))return n.preventDefault(),!0;q.pauseVideo();n=P.getAttribute("href");g.Gp(n,X,!0);return!1}; g.mh=function(n,q,w){if(eN(q.B())&&q.getPresentingPlayerType()!==2){if(g.t2(w))return q.isFullscreen()&&!q.B().externalFullscreen&&q.toggleFullscreen(),w.preventDefault(),!0}else{var X=g.t2(w);X&&q.pauseVideo();g.Gp(n,void 0,!0);X&&(g.CX(n),w.preventDefault())}return!1}; S5u=function(n){n=y3.includes("pt-BR")?n.Z("delhi_modern_web_player_icons")?OD():{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,U:{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"}}]}:n.Z("delhi_modern_web_player_icons")?C46():{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,U:{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"}}]};n.Y="ytp-subtitles-button-icon"; return n}; u7O=function(n){return y3.includes("pt-BR")?n?OD():{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:n?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; aV=function(){return{J:"div",Y:"ytp-spinner-container",S:[{J:"div",Y:"ytp-spinner-rotator",S:[{J:"div",Y:"ytp-spinner-left",S:[{J:"div",Y:"ytp-spinner-circle"}]},{J:"div",Y:"ytp-spinner-right",S:[{J:"div",Y:"ytp-spinner-circle"}]}]}]}}; V3=function(n){if(document.createRange){var q=document.createRange();q&&(q.selectNodeContents(n),n=window.getSelection())&&(n.removeAllRanges(),n.addRange(q))}}; FZ=function(n){var q=n.Z("web_player_use_cinematic_label_2")?"Ambiente integrado":"Ilumina\u00e7\u00e3o cinematogr\u00e1fica";tk.call(this,q,g.pg.qI);var w=this;this.T=n;this.N=!1;this.X=new g.YF(function(){g.qX(w.element,"ytp-menuitem-highlighted")},0); this.aP=n.tf();n=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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(n);this.subscribe("select",this.C,this);this.listen(TX,this.W);g.K(this,this.X)}; $K=function(n){sc.call(this,n);var q=this;this.N=!1;n.addEventListener("settingsMenuInitialized",function(){Buy(q)}); n.addEventListener("highlightSettingsMenu",function(w){Buy(q);var X=q.menuItem;w==="menu_item_cinematic_lighting"&&(g.N4(X.element,"ytp-menuitem-highlighted"),g.N4(X.element,"ytp-menuitem-highlight-transition-enabled"),X.X.start())}); y$(n,"updateCinematicSettings",function(w){q.updateCinematicSettings(w)})}; Buy=function(n){n.menuItem||(n.menuItem=new FZ(n.api),g.K(n,n.menuItem),n.menuItem.dl(n.N))}; Quy=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"applicationvideodatachange",function(w,X){X=X.clipConfig;w==="dataloaded"&&X&&X.startTimeMs!=null&&X.endTimeMs!=null&&q.api.setLoopRange({startTimeMs:Math.floor(Number(X.startTimeMs)),endTimeMs:Math.floor(Number(X.endTimeMs)),postId:X.postId,type:"clips"})})}; vH=function(n){sc.call(this,n);this.events=new g.Um(n);g.K(this,this.events);y$(n,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));y$(n,"setCreatorEndscreenHideButton",this.N.bind(this))}; Lg=function(n,q,w,X){tk.call(this,"Volume est\u00e1vel",g.pg.LR);g.N4(this.element,"ytp-drc-menu-item");this.aP=n.tf();this.C=q;this.N=w;this.hasDrcAudioTrack=X;n.addEventListener("videodatachange",this.X.bind(this));n.Z("mta_drc_mutual_exclusion_removal")&&this.j(n,"onPlaybackAudioChange",this.X);q=this.N()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());n=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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(n);this.subscribe("select",this.W,this);dL(this,q);this.aP.nG(this)}; Mb=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);n.Z("html5_show_drc_toggle")&&n.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new Lg(q.api,q.setDrcUserPreference.bind(q),q.getDrcUserPreference.bind(q),q.X.bind(q)),g.K(q,q.menuItem))}); y$(this.api,"setDrcUserPreference",function(X){q.setDrcUserPreference(X)}); y$(this.api,"getDrcUserPreference",function(){return q.getDrcUserPreference()}); y$(this.api,"hasDrcAudioTrack",function(){return q.X()}); var w;this.N=(w=g.$N("yt-player-drc-pref"))!=null?w:1;this.updateEnvironmentData()}; xK=function(n){sc.call(this,n);var q=this;this.N={};this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"videodatachange",function(){q.onVideoDataChange()}); this.events.j(n,g.Aq("embargo"),function(w){q.api.j$(!0);var X,P=(X=q.N[w.id])!=null?X:[];X=g.a(P);for(P=X.next();!P.done;P=X.next()){var R=P.value;q.api.hideControls();q.api.pL("auth",2,"This video isn't available in your current playback area",In({embargoed:1,id:w.id,idx:w.X,start:w.start}));P=void 0;(R=(P=R.embargo)==null?void 0:P.onTrigger)&&q.api.Uq("innertubeCommand",R)}})}; ZYs=function(n,q){var w;return(w=q.onEnter)==null?void 0:w.some(n.X)}; Jms=function(n,q){q=g.a(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var X=void 0,P=Number((X=w.playbackPosition)==null?void 0:X.utcTimeMillis)/1E3,R=void 0;X=P+Number((R=w.duration)==null?void 0:R.seconds);R="embargo_"+P;n.api.addUtcCueRange(R,P,X,"embargo",!1);w.onEnter&&(n.N[R]=w.onEnter.filter(n.X))}}; Df=function(n){sc.call(this,n);var q=this;this.N=[];this.events=new g.Um(n);g.K(this,this.events);y$(n,"addEmbedsConversionTrackingParams",function(w){q.api.B().PN&&q.addEmbedsConversionTrackingParams(w)}); this.events.j(n,"veClickLogged",function(w){q.api.hasVe(w)&&(w=w.visualElement.getAsJspb(),w=T1(w,2),q.N.push(w))})}; z$z=function(n){sc.call(this,n);y$(n,"isEmbedsShortsMode",function(){return n.isEmbedsShortsMode()})}; WIh=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"initialvideodatacreated",function(w){Yf(Am(),16623);q.N=g.Uk();var X=n.B().wq&&!w.u7;if(ca(w)&&X){Yf(Am(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(w.getWatchNextResponse()){var P,R=(P=w.getWatchNextResponse())==null?void 0:P.trackingParams;R&&S0(R)}if(w.getPlayerResponse()){var c;(w=(c=w.getPlayerResponse())==null?void 0:c.trackingParams)&&S0(w)}}else Yf(Am(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),w.getEmbeddedPlayerResponse()&&(c=(R=w.getEmbeddedPlayerResponse())==null?void 0:R.trackingParams)&&S0(c)}); this.events.j(n,"loadvideo",function(){Yf(Am(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.N})}); this.events.j(n,"cuevideo",function(){Yf(Am(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:q.N})}); this.events.j(n,"largeplaybuttonclicked",function(w){Yf(Am(),27240,w.visualElement)}); this.events.j(n,"playlistnextbuttonclicked",function(w){Yf(Am(),27240,w.visualElement)}); this.events.j(n,"playlistprevbuttonclicked",function(w){Yf(Am(),27240,w.visualElement)}); this.events.j(n,"playlistautonextvideo",function(){Yf(Am(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; hk=function(n,q){g.A.call(this);var w=this;this.N=null;this.C=q;q=[];for(var X=0;X<=100;X++)q.push(X/100);q={threshold:q,trackVisibility:!0,delay:1E3};(this.X=window.IntersectionObserver?new IntersectionObserver(function(P){P=P[P.length-1];var R=null;typeof P.isVisible==="undefined"?document.visibilityState==="visible"&&P.isIntersecting&&P.intersectionRatio>0?R=P.intersectionRatio:document.visibilityState==="hidden"?R=0:R=null:R=P.isVisible?P.intersectionRatio:0;R!=null&&(R=Math.max(R,0),R=Math.min(R, 1));w.N=R;typeof w.C==="function"&&w.C(w.N)},q):null)&&this.X.observe(n)}; nT6=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"applicationInitialized",function(){Nus(q)})}; Nus=function(n){var q=n.api.getRootNode(),w,X=n.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((w=q.parentElement)==null?void 0:w.parentElement)||q:q;n.N=new hk(X,function(P){P!=null&&(n.api.B().Ah=P,n.api.B().XI="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.K(n,n.N);n.events.j(n.api,"videoStatsPingCreated",function(P){var R=n.N;R=R.N==null?null:Math.round(R.N*100)/100;P.inview=R!=null?R:void 0;R=n.api.getPlayerSize();if(R.height>0&&R.width>0){R=[Math.round(R.width),Math.round(R.height)];var c=g.ON();c>1&&R.push(c);R=R.join(":")}else R=void 0;P.size=R})}; qis=function(n){var q;return((q=((n==null?void 0:n.messageRenderers)||[]).find(function(w){return!!w.timeCounterRenderer}))==null?void 0:q.timeCounterRenderer)||null}; l9=function(n){g.Q.call(this,{J:"div",Jg:["ytp-player-content","ytp-iv-player-content"],S:[{J:"div",Y:"ytp-free-preview-countdown-timer",S:[{J:"span",Ag:"{{label}}"},{J:"span",Y:"ytp-free-preview-countdown-timer-separator",Ag:"\u2022"},{J:"span",Ag:"{{duration}}"}]}]});this.api=n;this.N=null;this.C=this.X=0;this.j(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; XMO=function(n,q){n.N||(n.X=q,n.C=(0,g.m$)(),n.N=new g.Ad(function(){wMz(n)},null),wMz(n))}; wMz=function(n){var q=Math,w=q.round,X=Math.min((0,g.m$)()-n.C,n.X);q=w.call(q,(n.X-X)/1E3);n.updateValue("duration",hm({seconds:q}));q<=0&&n.N?n.stopTimer():n.N&&n.N.start()}; Pim=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"basechromeinitialized",function(){q.N=new l9(n);g.K(q,q.N);g.Zp(n,q.N.element,4);q.N.hide()})}; GX=function(n){g.Q.call(this,{J:"button",Jg:["ytp-fullerscreen-edu-button","ytp-button"],S:[{J:"div",Jg:["ytp-fullerscreen-edu-text"],Ag:"Role para ver detalhes"},{J:"div",Jg:["ytp-fullerscreen-edu-chevron"],S:[{J:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},S:[{J:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],U:{"data-priority":"2"}});this.Oq=n;this.fade=new g.ZF(this,250,void 0,100);this.X=this.N=!1;n.createClientVe(this.element,this,61214); g.K(this,this.fade);this.j(n,"fullscreentoggled",this.dl);this.j(n,"presentingplayerstatechange",this.dl);this.listen("click",this.onClick);this.dl()}; Cg=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);y$(this.api,"updateFullerscreenEduButtonSubtleModeState",function(X){q.updateFullerscreenEduButtonSubtleModeState(X)}); y$(this.api,"updateFullerscreenEduButtonVisibility",function(X){q.updateFullerscreenEduButtonVisibility(X)}); var w=n.B();n.Z("external_fullscreen_with_edu")&&w.externalFullscreen&&eN(w)&&w.controlsType==="1"&&this.events.j(n,"standardControlsInitialized",function(){q.N=new GX(n);g.K(q,q.N);n.Sc(q.N)})}; Roz=function(n){g.Q.call(this,{J:"div",Y:"ytp-gated-actions-overlay",S:[{J:"div",Y:"ytp-gated-actions-overlay-background",S:[{J:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{J:"button",Jg:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],U:{"aria-label":"Fechar"},S:[g.fp()]},{J:"div",Y:"ytp-gated-actions-overlay-bar",S:[{J:"div",Y:"ytp-gated-actions-overlay-text-container",S:[{J:"div",Y:"ytp-gated-actions-overlay-title",Ag:"{{title}}"},{J:"div",Y:"ytp-gated-actions-overlay-subtitle", Ag:"{{subtitle}}"}]},{J:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var q=this;this.api=n;this.background=this.C5("ytp-gated-actions-overlay-background");this.X=this.C5("ytp-gated-actions-overlay-button-container");this.N=[];this.j(this.C5("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){q.api.Uq("onCloseMiniplayer")}); this.hide()}; I20=function(n,q){var w=0;w=0;for(var X={};w P&&(P=k.width,R="url("+k.url+")")}w.background.style.backgroundImage=R;I20(w,X.actionButtons||[]);w.show()}else w.hide()}); g.Zp(this.api,this.N.element,4)}; Ec=function(n){sc.call(this,n);var q=this;V$(this.api,"getSphericalProperties",function(){return q.getSphericalProperties()}); V$(this.api,"setSphericalProperties",function(){q.setSphericalProperties.apply(q,g.D(g.bs.apply(0,arguments)))}); ao(this.api,"getSphericalProperties",function(){return q.api.getPresentingPlayerType()===2?{}:q.getSphericalProperties()}); ao(this.api,"setSphericalProperties",function(){var w=g.bs.apply(0,arguments);q.api.getPresentingPlayerType()!==2&&q.setSphericalProperties.apply(q,g.D(w))})}; oV=function(n){sc.call(this,n);y$(n,"createClientVe",this.createClientVe.bind(this));y$(n,"createServerVe",this.createServerVe.bind(this));y$(n,"destroyVe",this.destroyVe.bind(this));y$(n,"hasVe",this.hasVe.bind(this));y$(n,"logClick",this.logClick.bind(this));y$(n,"logVisibility",this.logVisibility.bind(this));y$(n,"setTrackingParams",this.setTrackingParams.bind(this))}; b9=function(n,q,w,X){function P(c){var k=!(c.status!==204&&c.status!==200&&!c.response),r;c={succ:""+ +k,rc:c.status,lb:((r=c.response)==null?void 0:r.byteLength)||0,rt:((0,g.m$)()-R).toFixed(),shost:g.IB(n),trigger:q};rys(c,n);w&&w(c);X&&!k&&X(new g.kw("pathprobe.net",c))} var R=(0,g.m$)();g.gN(n,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:P,onTimeout:P})}; rys=function(n,q){var w;((w=window.performance)==null?0:w.getEntriesByName)&&(q=performance.getEntriesByName(q))&&q.length&&(q=q[0],n.pedns=(q.domainLookupEnd-q.startTime).toFixed(),n.pecon=(q.connectEnd-q.domainLookupEnd).toFixed(),n.perqs=(q.requestStart-q.connectEnd).toFixed(),j$s&&(n.perqsa=q.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; s$u=function(n){j$s=n}; Ak=function(n,q){this.CG=n;this.policy=q;this.playbackRate=1}; eom=function(n,q){var w=Math.min(2.5,CJ(n.CG));n=YK(n);return q-w*n}; Kg=function(n,q,w,X,P){P=P===void 0?!1:P;if(n.policy.g5)return Math.ceil(n.policy.g5*q);n.policy.Pr&&(X=Math.abs(X));X/=n.playbackRate;var R=1/bY(n.CG);w=Math.max(.9*(X-3),CJ(n.CG)+n.CG.X.N*R)/R*.8/(q+w);w=Math.min(w,X);n.policy.Uu>0&&P&&(w=Math.max(w,n.policy.Uu));return f2y(n,w,q)}; f2y=function(n,q,w){return Math.ceil(Math.max(Math.max(n.policy.ql,n.policy.jh*w),Math.min(Math.min(n.policy.D0,31*w),Math.ceil(q*w))))||n.policy.ql}; OQs=function(n,q,w){w=Kg(n,q.N.info.ED,w.N.info.ED,0);var X=CJ(n.CG)+w/bY(n.CG);return Math.max(X,X+n.policy.fP-w/q.N.info.ED)}; YK=function(n){return bY(n.CG,!n.policy.Ij,n.policy.Ym)}; SO=function(n){return YK(n)/n.playbackRate}; u9=function(n,q,w){var X=n.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],P=n.policy.playbackStartPolicy.startMinReadaheadPolicy||[];n=Infinity;q=g.a(q&&X.length>0?X:P);for(X=q.next();!X.done;X=q.next())X=X.value,P=X.minReadaheadMs||0,w<(X.minBandwidthBytesPerSec||0)||n>P&&(n=P);return n0&&(this.X=w.nt)}; UyT=function(n,q,w,X,P){if(!X.info.K){if(w.length===0)w.push(X);else{var R;(n=(R=w.pop())==null?void 0:g.dl(R,X))?w.push(n):w.push(X)}return P}var c;(w=(c=w.pop())==null?void 0:g.dl(c,X))||(w=X);if(w.info.X)return n.logger&&n.logger({incompleteSegment:w.info.XR()}),P;X=n.hF(w);P=X.kh;X={clipId:X.clipId,formatId:X.formatId,startTimeMs:X.startTimeMs,durationMs:X.ZX,Rc:P,LL:P};P=iQu(q,X.startTimeMs);if(R=w=P>=0?q[P]:null){R=X;var k=P;c=w.startTimeMs+w.durationMs;var r=R.startTimeMs+R.durationMs;if(R.startTimeMs- c>n.X)R=!1;else if(HQ6(n,w.formatId,R.formatId))w.durationMs=Math.max(c,r)-w.startTimeMs,w.LL=Math.max(w.LL,R.LL),R=!0;else if(Math.abs(w.startTimeMs-R.startTimeMs)<=n.X)if(w.durationMs>R.durationMs+n.X){var e=w.formatId,f=w.Rc;k=w.LL;w.formatId=R.formatId;w.durationMs=R.durationMs;w.Rc=R.Rc;w.LL=R.LL;R.formatId=e;R.startTimeMs=r;R.durationMs=c-r;R.Rc=f;R.LL=k;R=!1}else w.formatId=R.formatId,R=!0;else c>R.startTimeMs&&(c>r&&(q.splice(k+1,0,{formatId:w.formatId,startTimeMs:r,durationMs:c-r,Rc:R.LL+ 1,LL:w.LL}),n.logger&&n.logger({splitOldStart:(e=w.startTimeMs)==null?void 0:e.toFixed(3),splitOldEnd:c==null?void 0:c.toFixed(3),splitNewStart:(f=R.startTimeMs)==null?void 0:f.toFixed(3),splitNewEnd:r==null?void 0:r.toFixed(3)})),w.durationMs=R.startTimeMs-w.startTimeMs,w.LL=R.Rc-1),R=!1}R?X=w:(P+=1,q.splice(P,0,X));e=0;for(f=P+1;f=r+w.X?w=!0:k+w.X=0?n:-n-2}; tZh=function(n,q){if(n.OD){var w=n.OD.Uj();if(w.length!==0){if(n.C&&q){var X=n.C,P=X.info.W;!KT(w,P)&&X.info.V>0&&(0,g.m$)()-n.D<5E3&&(n.logger&&n.logger({dend:X.info.XR()}),w=lFy(w,P,P+.01))}n.policy.Mg&&n.logger&&n.logger({cbri:""+n.N});X=[];for(var R=P=0;P=c){var f=Object.assign({},n.qU[R]),O=n.uo.C.get(YM(n.qU[R].formatId)),H=Math.max(r,c);c=O.index.NL(H+n.X/ 1E3);r=O.index.getStartTime(c);var U=c+ +(Math.abs(r-H)>n.X/1E3);H=U+n.W;U=O.index.getStartTime(U)*1E3;R!==n.N||q?(f.Rc=H,f.startTimeMs=U):(n.logger&&n.logger({pEvict:"1",og:f.startTimeMs,adj:r*1E3}),f.Rc=c+n.W,f.startTimeMs=r*1E3);c=void 0;r=((c=n.C)==null?void 0:c.info.duration)||11;R===n.N&&kn.X/1E3);c=r+n.W;O=O.index.eB(r)*1E3;f.LL=c;f.durationMs=O-f.startTimeMs;f.Rc<=f.LL&&X.push(f)}e=0&&WH(n.audioTrack,n.targetTime)>=0&&R?((n.videoTrack.K||n.audioTrack.K)&&n.loader.p5("iterativeSeeking",{status:"done",count:n.seekCount}),n.videoTrack.K=!1,n.audioTrack.K=!1):X&&g.Uz(function(){if(n.N||!n.policy.AK)qM(n);else{var c=q.startTime,k=q.duration;if(!n.policy.K){var r=w?n.videoTrack.K:n.audioTrack.K,e=n.videoTrack.D!==-1&&n.audioTrack.D!==-1,f=n.targetTime>=c&&n.targetTime432E3&&h3y(n.uo);n.X&&(P=n.X,n.X=0);g.Uz(function(){n.policy.K||wv(n,P,102)}); n.loader.p5("initManifestlessSync",{st:P,ost:P+n.loader.Zj(),a:n.audioTrack.D,v:n.videoTrack.D});n.C&&(n.C.resolve(P+.1),n.C=null);n.policy.K&&wv(n,P,102)}}}; Rc=function(n,q){var w=this;this.HQ=n;this.requestNumber=++MZm;this.N=this.now();this.V=this.L=NaN;this.G=this.N;this.C=this.ej=this.K=0;this.D=this.N;this.RH=this.PW=this.Tp=this.JU=this.sD=this.WW=this.X=this.W=0;this.qP=this.isActive=!1;this.nM=this.Ne=0;this.Wb={eI5:function(){return w.DN}}; this.CG=q.CG;this.snapshot=Tas(this.CG);this.policy=this.CG.X;this.Y0=!!q.Y0;this.Fv=q.Fv;this.jT=q.jT||0;this.W_=q.W_||0;q.TD&&(this.HW=new $a);var X;this.DN=(X=q.DN)!=null?X:!1;this.Y0||aBz(this.CG)}; xys=function(n){n.Tp=Math.max(n.Tp,n.K-n.sD);n.PW=Math.max(n.PW,n.G-n.JU);n.WW=0}; ck=function(n,q,w){VDh(n.CG,q);n.HW&&(n.HW.add(Math.ceil(q)-Math.ceil(n.G)),n.HW.add(Math.max(0,Math.ceil(w/1024)-Math.ceil(n.K/1024))));var X=q-n.G,P=w-n.K;n.ej=P;n.RH=Math.max(n.RH,P/(X+.01)*1E3);n.G=q;n.K=w;n.WW&&w>n.WW&&xys(n)}; Ic=function(n,q){n.url=q;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; kB=function(n,q){Rc.call(this,n,q);this.AK=this.KM=!1;this.n5=this.vW=Infinity;this.D0=NaN;this.Me=!1;this.je=NaN;this.YE=this.Ff=this.IH=0;this.hP=q.hP||1;this.T2=q.T2||this.hP;this.YL=q.YL;this.kh=q.kh;this.qL=q.qL;DyO(this);this.bK(this.N);this.qe=(this.je-this.N)/1E3}; hoT=function(n){var q=n.Ff||n.IH;return q?n.snapshot.delay+Math.min(n.W_,(n.V-n.L)/1E3)+q:n.qe}; rv=function(n,q,w){if(!n.Y0){q=Math.max(q,.01);var X=n.jT?Math.max(q,w/n.jT):q,P=n.CG.X.C;P&&(X=q,n.jT&&(X=Math.max(q,w/n.jT*P)));hF(n.CG,q,w,X)}}; l2y=function(n){return(n.D-n.N)/1E3}; DyO=function(n){n.D0=n.N+n.snapshot.delay*1E3;n.Me=!1}; jb=function(n,q){if(n.YL&&n.kh!==void 0&&n.qL!==void 0){var w=Math,X=w.min,P=n.vW;var R=n.YL;var c=n.N;if(GGs(R,n.kh))R=q;else{var k=0;R.qT&&(k=.2);R=c+(R.W_+k)*1E3}n.vW=X.call(w,P,R);w=Math;X=w.min;P=n.n5;R=n.YL;c=n.N;k=CiT(R,n.kh,n.qL);k!==2&&(q=k?q:c+R.W_*1E3,R.qT&&(q+=R.W_*1E3));n.n5=X.call(w,P,q);n.vW<=n.N?DyO(n):(n.D0=n.vW,n.Me=!0)}}; ETy=function(n,q){if(q+1<=n.totalLength){var w=Ib(n,q);w=w<128?1:w<192?2:w<224?3:w<240?4:5}else w=0;if(w<1||!(q+w<=n.totalLength))return[-1,q];if(w===1)n=Ib(n,q++);else if(w===2)w=Ib(n,q++),n=Ib(n,q++),n=(w&63)+64*n;else if(w===3){w=Ib(n,q++);var X=Ib(n,q++);n=Ib(n,q++);n=(w&31)+32*(X+256*n)}else if(w===4){w=Ib(n,q++);X=Ib(n,q++);var P=Ib(n,q++);n=Ib(n,q++);n=(w&15)+16*(X+256*(P+256*n))}else w=q+1,n.focus(w),P9(n,w,4)?n=bHO(n).getUint32(w-n.C,!0):(X=Ib(n,w+2)+256*Ib(n,w+3),n=Ib(n,w)+256*(Ib(n,w+1)+ 256*X)),q+=5;return[n,q]}; sW=function(n){this.HQ=n;this.N=new nt}; eb=function(n,q){this.info=n;this.callback=q;this.state=1;this.yB=this.fT=!1;this.x8=null}; oTy=function(n){return g.UF(n.info.Se,function(q){return q.type===3})}; fx=function(n,q,w,X){var P=this;X=X===void 0?{}:X;this.policy=q;this.HQ=w;this.status=0;this.N=new nt;this.X=0;this.zp=this.W=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(X.method||"GET",n);if(X.headers)for(n=X.headers,q=g.a(Object.keys(n)),w=q.next();!w.done;w=q.next())w=w.value,this.xhr.setRequestHeader(w,n[w]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return P.BV()}; this.xhr.onload=function(){return P.onDone()}; this.xhr.onerror=function(){return P.onError()}; this.xhr.fetch(function(R){P.N.append(R);P.X+=R.length;R=(0,g.m$)();P.HQ.MC(R,P.X)},function(){},X.body||null)}; bQs=function(n,q){this.X=(new TextEncoder).encode(n);this.N=(new TextEncoder).encode(q)}; ozh=function(n,q){var w;return g.b(function(X){if(!q)return X.return(q);w=new g.c$(n.X);return X.return(w.encrypt(q,n.N))})}; Sus=function(n,q){var w;return g.b(function(X){if(X.X==1){if(!q)return X.return(q);w=new g.c$(n.X);return g.l(X,w.decrypt(q,n.N),2)}return X.return(X.N)})}; Yiy=function(n,q){var w=this;this.N=n;this.HQ=q;this.loaded=this.status=0;this.error="";n=uO(this.N.get("range")||"");if(!n)throw Error("bad range");this.range=n;this.X=new nt;Ay0(this).then(function(){w.HQ.Pt()},function(X){w.error=""+X||"unknown_err"; w.HQ.Pt()})}; Ay0=function(n){var q,w,X,P,R,c,k,r,e,f,O,H,U,t,V;return g.b(function(T){if(T.X==1){n.status=200;q=n.N.get("docid");w=Lo(n.N.get("fmtid")||"");X=n.N.get("lmt")||"0";P=+(n.N.get("csz")||0);if(!q||!w||!P)throw Error("Invalid local URL");n.N.get("ck")&&n.N.get("civ")&&(R=new bQs(n.N.get("ck"),n.N.get("civ")));c=n.range;k=Math.floor(c.start/P);r=Math.floor(c.end/P);e=k}if(T.X!=5)return e<=r?g.l(T,uIY(q,w,X,e,R),5):T.f5(0);f=T.N;if(f===void 0)throw Error("invariant: data is undefined");O=e*P;H=(e+1)*P; U=Math.max(0,c.start-O);t=Math.min(c.end+1,H)-(U+O);V=new Uint8Array(f.buffer,U,t);n.X.append(V);n.loaded+=t;n.loaded=400?(n.lastError="net.badstatus",!0):(P===void 0?0:P)?(n.lastError="ump.spsrejectfailure",!0):w||X!==void 0&&X?!1:(n.lastError=q===204?"net.nocontent":"net.connect",!0)}; yq=function(n,q){if(n.policy.oM)return!1;var w=q.getResponseHeader("content-type"),X=q.Hg();n=!X||X<=n.policy.Cz;return(!q.Ib()||!w||w.indexOf("text/plain")!==-1)&&n}; Wn6=function(n,q){var w="";q=q.Xt();q.totalLength<=n.policy.Cz&&(w=zo3(n,Rb(q)));return w}; zo3=function(n,q){var w=r6(q);return l5(w)?(n.logger.debug(function(){return"Redirecting to "+w}),w):""}; tM=function(n){return Gc(n.C,bi(n.CV.Zi))}; NnO=function(n){var q=n.timing.wH();q.shost=bi(n.CV.Zi);return q}; nM6=function(n,q){return(n==null?void 0:n.maxWidth)>(q==null?void 0:q.maxWidth)||(n==null?void 0:n.maxHeight)>(q==null?void 0:q.maxHeight)}; qwO=function(n,q){for(var w=g.a(q.keys()),X=w.next();!X.done;X=w.next())if(X=q.get(X.value),X.length!==0){g.BG(X,function(k,r){return r.maxFramerate-k.maxFramerate}); for(var P=[X[0]],R=0,c=1;cn.N||w.push(X)}return w}; ac=function(n,q,w){var X=POO[n]||[];w.Z("html5_shorts_onesie_mismatched_fix")&&(X=RtY[n]||[]);q.push.apply(q,g.D(X));w.Z("html5_early_media_for_drm")&&q.push.apply(q,g.D(cWy[n]||[]))}; etu=function(n,q){var w=g.$I(n),X=n.B(),P=X.K;X=X.Z("html5_shorts_onesie_mismatched_fix");var R=n.FQ();if(X){if(!P.X){if(R&&Vq)return Vq;if(px)return px}}else if(px&&!P.X)return px;var c=[],k=[],r={},e=Tt.concat(I1O);X&&(e=Tt.concat(kcY));n.Z("html5_early_media_for_drm")&&(e=e.concat(rWz),n.Z("allow_vp9_1080p_mq_enc")&&e.push(jQT));var f=[].concat(g.D(sQh));n.Z("html5_iamf_audio_onesie_fmt")&&f.push(["773"]);e=g.a(e);for(var O=e.next();!O.done;O=e.next()){var H=!1;O=g.a(O.value);for(var U=O.next();!U.done;U= O.next()){U=U.value;var t=TB(U,R&&X);if(t&&t.video&&!(vS(t)&&!w.vW&&t.video.qualityOrdinal>w.Cd)){var V=g.Jv(n.B().experiments,"html5_drm_byterate_soft_cap");V>0&&D3m(t)&&t.ED>V||(H?(c.push(U),ac(U,c,n)):(t=LQ(w,t,P),t===!0?(H=!0,c.push(U),ac(U,c,n)):r[U]=t))}}}f=g.a(f);for(e=f.next();!e.done;e=f.next())for(e=g.a(e.value),H=e.next();!H.done;H=e.next())if(H=H.value,(O=z0s(H))&&O.audio&&(n.Z("html5_onesie_51_audio")||!LT(O)&&!M8(O)))if(O=LQ(w,O,P),O===!0){k.push(H);ac(H,k,n);break}else r[H]=O;if(!n.Z("html5_enable_audio_quality_setting"))for(n= g.a(["141","774"]),f=n.next();!f.done;f=n.next())f=f.value,k.includes(f)&&(g.Vv(k,f),r[f]="blkhqa");w.X&&q("orfmts",r);if(X)return P.X&&(P.X=!1,Vq=px=void 0),R?Vq={video:c,audio:k}:px={video:c,audio:k};px={video:c,audio:k};P.X=!1;return px}; g.izz=function(n,q,w){var X=w.K,P=[],R=[],c=w.Z("html5_shorts_onesie_mismatched_fix");n=n.FQ();var k=Tt.concat(I1O);c&&(k=Tt.concat(kcY));w.Z("html5_early_media_for_drm")&&(k=k.concat(rWz),w.Z("allow_vp9_1080p_mq_enc")&&k.push(jQT));var r=[].concat(g.D(sQh));w.Z("html5_iamf_audio_onesie_fmt")&&r.push(["773"]);k=g.a(k);for(var e=k.next();!e.done;e=k.next()){e=g.a(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;var O=TB(f,n&&c);if(O&&O.video){var H=g.Jv(w.experiments,"html5_drm_byterate_soft_cap"); if(!(H>0&&D3m(O)&&O.ED>H)&&LQ(q,O,X)===!0){P.push({videoCodec:f1z[VR[f]],maxWidth:O.video.width,maxHeight:O.video.height,maxFramerate:O.video.fps});break}}}}c=g.a(r);for(n=c.next();!n.done;n=c.next())for(n=g.a(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(k=z0s(r))&&k.audio&&(w.Z("html5_onesie_51_audio")||!LT(k)&&!M8(k))&&LQ(q,k,X)===!0){R.push({audioCodec:OzO[VR[r]],numChannels:k.audio.numChannels});break}return{videoFormatCapabilities:P,audioFormatCapabilities:R}}; d1u=function(n){var q,w={},X=n.Eq,P=n.aH,R=X.getVideoData(),c=rn(0),k=X.getVisibilityState();if(P.Z("html5_enable_audio_quality_setting")){var r=g.Jv(P.experiments,"html5_default_audio_quality_setting_lr"),e;w.Z_=(e=HzO[r])!=null?e:0}c&&(w.JV=c,w.lastManualDirection=Jq0(),c=Jsy()||0,c>0&&(c=(P.Z("html5_use_date_now_for_local_storage")?Date.now():(0,g.m$)())-c,P.Z("html5_use_date_now_for_local_storage")?c>0&&(w.timeSinceLastManualFormatSelectionMs=c):w.timeSinceLastManualFormatSelectionMs=c));c=P.Z("html5_use_streamer_bandwidth_for_low_latency_live")&& R.isLowLatencyLiveStream;if(P.schedule.qP&&!c){var f;c=P.Z("html5_disable_bandwidth_cofactors_for_sabr_live")?!((f=n.By)==null||!f.Ij):!1;w.Q6=bY(P.schedule,!c)}f=g.gq.medium;c=Math.floor(f*16/9);(r=R.FQ())||(R.N&&R.C&&R.C.videoInfos.length!==0?(r=R.C.videoInfos[0],r=!!r.video&&r.video.width0?{authorizedFormats:n.authorizedFormats}:{authorizedFormats:q};n.sabrLicenseConstraint&&(w.kR.sabrLicenseConstraint=n.sabrLicenseConstraint);if(P.Z("html5_onesie_media_capabilities")||P.Z("html5_enable_server_format_filter"))w.Nk= 3;P.Z("html5_onesie_audio_only_playback")&&V8(R)&&(w.Nk=1);var x;((x=n.By)==null?0:x.VL)&&n.xN&&(w.Nk=w.Nk===void 0?7:w.Nk|4);x=R.HX?R.HX:g.$I(R);P.Z("html5_onesie_media_capabilities")&&(w.mediaCapabilities=g.izz(R,x,P));var M;if((M=n.By)==null?0:Fd(M)){O=P.K;M=[];q=[];H=new Map;U=Array.from(O.N.values());U=g.a(U);for(t=U.next();!t.done;t=U.next())V=t.value,V.nD?q.push({audioCodec:OzO[V.L5],numChannels:V.numChannels,spatialCapabilityBitmask:U1s[V.L5]}):(T=f1z[V.L5],t={videoCodec:T,maxWidth:V.maxWidth|| 0,maxHeight:V.maxHeight||0,maxFramerate:V.maxFramerate||0,is10BitSupported:V.o1||!1},V.maxBitrateBps&&(t.maxBitrateBps=V.maxBitrateBps,k=TB(V.itag),f=void 0,((f=k)==null?0:f.video)&&LQ(x,k,O)===!0&&(k=k.ED*8,k>t.maxBitrateBps&&(t.maxBitrateBps=k))),V=T+"_"+V.o1,T=H.get(V)||[],T.push(t),H.set(V,T));M=qwO(M,H);O={};P.Z("html5_ssff_denylist_opus_low")&&(O={itagDenylist:[249,350]});w.mediaCapabilities={videoFormatCapabilities:M,audioFormatCapabilities:q,hdrModeBitmask:3,perPlaybackAttributes:O}}var h; if((h=n.By)==null?0:h.N){w.x0=x.x0;var E;w.Cd=(E=n.By)==null?void 0:E.Cd}P.DF&&(w.Ka=P.DF);w.Q_=n.f$;w.w3=n.w3;w.Ji=n.Ji;w.Ma=n.Ma;n.BI&&(w.HDf=(0,g.m$)()-n.BI);n.isPrefetch&&P.Z("html5_report_prefetch_requests")&&(w.isPrefetch=!0);fJ||(w.Lu=!0);h=CJ(P.schedule)*1E3;h>0&&(w.A8=h);var S;((S=n.By)==null?0:S.gs)&&n.TU&&n.TU0?nO:P.schedule.interruptions[0]||0;var J;if((J=n.By)==null?0:J.nM)w.Nn=n.Nn;P.je&&(w.audioTrackId=P.je);rw(R)&&!w.audioTrackId&&(P.Z("html5_fill_default_mosaic_audio_track_id")||(n=J10(R),w.audioTrackId=n),R==null||R.p5("misstrkchg",{"default":w.audioTrackId}));if(R=Lg6())w.detailedNetworkType=txy[R]||txy.other;P.Z("html5_enable_voice_boost")&&(w.Bql=P.JL);return w}; $B=function(n,q,w,X,P,R,c){var k={};q&&(k.NZ=q);if(!n)return k;k.playbackCookie=w==null?void 0:w.playbackCookie;P&&(k.XN=P);k.ol=[];k.X3=[];if(c==null?0:c.size)for(q=g.a(c.values()),w=q.next();!w.done;w=q.next())k.X3.push(w.value);if(n.sabrContextUpdates.size>0)for(q=g.a(n.sabrContextUpdates.values()),w=q.next();!w.done;w=q.next())gMs(k,w.value,X);Fl(n)&&R&&gMs(k,R,X);n.pP&&(k.iLo=n.pP);X=n.B().N;k.clientInfo={clientName:m13[X.c.toUpperCase()]||0};X.cbrand&&(k.clientInfo.deviceMake=X.cbrand);X.cmodel&& (k.clientInfo.deviceModel=X.cmodel);X.cver&&(k.clientInfo.clientVersion=X.cver);X.cos&&(k.clientInfo.osName=X.cos);X.cosver&&(k.clientInfo.osVersion=X.cosver);X=n.B();X.Z("html5_sabr_enable_server_xtag_selection")&&X.N7&&(k.clientInfo.hl=X.N7);n.qd&&(k.qd=n.qd);return k}; gMs=function(n,q,w){var X=q.type||0;(w==null?0:w.has(X))?n.X3.push(q):n.ol.push(X)}; Jk=function(n,q,w,X,P,R){var c=R===void 0?{}:R;var k=c.Ex===void 0?[]:c.Ex;var r=c.xD===void 0?!1:c.xD;var e=c.bR===void 0?0:c.bR;var f=c.poToken===void 0?"":c.poToken;var O=c.jx===void 0?void 0:c.jx;var H=c.aC===void 0?"":c.aC;var U=c.hM===void 0?0:c.hM;var t=c.lE===void 0?new Uint8Array(0):c.lE;var V=c.wb===void 0?!1:c.wb;R=c.JT===void 0?0:c.JT;c=c.NZ===void 0?void 0:c.NZ;eb.call(this,q,P);var T=this;this.policy=n;this.logger=new g.il("dash/request");this.XD=this.k8=0;this.m$=!1;this.Og=this.pX= null;this.FM=!1;this.lE=this.hM=null;this.rb=this.Mx=!1;this.bO=null;this.JT=this.WF=0;this.bj=!1;this.Wb={eg:function(M){T.eg(M)}, qNW:function(){return T.x8}, jrh:function(M){T.x8=M}, Y_l:function(M){T.k8=M}, guH:function(M){T.lS.lastError=M}, LI:function(){return T.xhr}}; this.timing=new kB(this,w);this.xD=r;this.hM=U;this.lE=t;this.CV=g.Rf(this.info,this.policy,X);this.CV.set("rn",this.Dk().toString());this.CV.set("rbuf",(e*1E3).toFixed().toString());this.xD&&this.CV.set("smb","1");this.policy.po&&f&&this.CV.set("pot",f);H&&this.CV.set("bbs",H);this.policy.useUmp&&!Ay(this.CV.Zi)&&(this.Eg=new sW(this),this.CV.set("ump","1"),this.CV.set("srfvp","1"));if(n=this.policy.Nd?this.policy.hE&&!isNaN(this.info.qL)&&this.info.qL>this.policy.I3?!1:!0:!1)q=null,this.policy.yQ&& this.policy.fO?q=[1]:V&&(q=[]),q!=null&&(this.policy.cj&&q.push(2),this.CV.set("defsel",q.join(",")));this.lS=new UW(this,this.policy,this.CV,this.info.wc,this.timing,this.logger,X,O);this.Ex=k||null;this.yB=yWh(this);Bnu(this.lS);X=void 0;if(this.policy.kA||this.Eg||this.policy.Tp)X={method:"POST"},k=(0,g.vk)([120,0]),O={},this.policy.N2&&c&&(c=$B(void 0,c),O.Pe=c),this.policy.N$&&this.lE&&(O.videoPlaybackUstreamerConfig=this.lE),this.policy.Tp&&(c=this.info.W)&&Object.assign(O,c),Object.keys(O).length> 0?X.body=g.Kt(O,g.cM):X.body=k;if(this.hM&&this.lE){this.CV.set("iwts","1");X={method:"POST"};c={Ma:this.hM*1E3};var x;k=(x=this.info.W)==null?void 0:x.Ug;x=g.Kt({pm:c,Ug:k||void 0,videoPlaybackUstreamerConfig:this.lE},g.cM);X.body=x}try{this.xhr=OW(this.CV,this.policy.G,this.timing,n,X),this.lS.X.start(),R&&(this.M5=new g.YF(this.s7,R,this),this.M5.start(R+(this.timing.CG.V.gq()||0)*1E3)),this.policy.eh&&Ic(this.timing,this.kH()),this.logger.debug(function(){return"Sent, itag="+T.CV.get("itag")+ " seg="+T.info.Se[0].kh+" range="+T.CV.get("range")+" time="+Math.round(T.info.Se[0].W)+"-"+Math.round(g.Ut(T.info.Se).D)+" rtp="+(T.timing.x3()-Date.now()).toFixed(0)}),g.Uz(function(){})}catch(M){a13(this,M,!0)}}; yWh=function(n){if(!(Px(n.info)&&n.info.DN()&&n.policy.TG&&n.Ex)||n.info.wc.C>=2||rn()>0||!ntu())return!1;var q=n.CV.get("aitags");if(!q)return!1;q=Lo(q).split(",");for(var w=[],X=g.a(n.Ex),P=X.next();!P.done;P=X.next())P=P.value,g.yv(q,P)&&w.push(P);if(!w.length)return!1;n.CV.set("altitags",g.$1(w.join(",")));return!0}; a13=function(n,q,w){w=w===void 0?!1:w;g.pC(q);n.lS.lastError="player.exception";n.errorMessage=q.name+"_"+q.message;w?g.Uz(function(){gv(n.lS)}):gv(n.lS)}; VxT=function(n,q){n.timing.qP=!0;n.xhr.Ib()&&n.timing.DU();if(n.policy.KG){var w;(w=n.M5)==null||w.stop()}Hk(n.x8,q,!1)}; pXx=function(n,q){n.info=q;if(n.x8){var w=n.x8;q=q.Se;(q.length!==w.Se.length||q.length0){q=g.a(q.Se);for(var w=q.next();!w.done;w=q.next()){var X=void 0;n+=((X=w.value.range)==null?void 0:X.length)||0}return n}if(q.n_.length>0)for(w=g.a(q.n_),X=w.next();!X.done;X=w.next())n+=X.value.TP||0;return n+q.iT}; Cx=function(n,q){if(hM){var w=0;n=n.O8.get(q);if(n==null||!n.eJ)return 0;n=g.a(n.eJ.values());for(q=n.next();!q.done;q=n.next())w+=q.value.data.totalLength;return w}return((w=n.O8.get(q))==null?void 0:w.Qp.totalLength)||0}; EW=function(n,q){n=n.O8.get(q);if(hM){if(n==null||!n.J1)return!1;q=n.eJ.size>0;return n.n3.length>0||q}return!(n==null||!n.J1)&&!(n==null||!n.Qp.totalLength)}; Mxz=function(n,q){var w=n.O8.get(q),X=Lfs(n,q),P=!X&&!!w.bytesReceived;if(hM){var R;if((R=n.uo)==null?0:R.T9){n=g.a(w.eJ.values());for(q=n.next();!q.done;q=n.next())if(!q.value.UM)return!1;return P}}else if(R=n.sM(q),P&&n.N&&R!==void 0)return R;return(P||w.bytesReceived===X)&&w.EP+Cx(n,q)===w.bytesReceived}; x13=function(n,q,w){n.O8.set(q,{Qp:new nt,EP:0,bytesReceived:0,iT:0,sB:!1,jV:!1,sM:!1,nD:w,cC:[],Se:[],n_:[],J1:!1,eJ:new Map,L9:new Map,n3:[]});n.logger.debug(function(){return"[initStream] formatId: "+q})}; D1O=function(n,q,w,X){w.Se.push.apply(w.Se,g.D(X));if(hM){w.L9.has(q)||w.L9.set(q,[]);var P;(P=w.L9.get(q)).push.apply(P,g.D(X))}else if(w.x8)for(n=g.a(X),q=n.next();!q.done;q=n.next())w.x8.Se.push(q.value);else{w.x8=new i7(n.By,[].concat(g.D(w.Se)));var R;((R=n.By)==null?0:R.Em)&&g.K(n,w.x8)}}; htO=function(n,q,w){var X,P=(X=n.uo)==null?void 0:X.C.get(q);if(!P)return[];if(w.U9){var R;return((R=P.zF(0,w.clipId))==null?void 0:R.Se)||[]}if(P.Kh()){var c=w.startMs,k=w.durationMs;X=1E3;var r;if(((r=n.By)==null?0:r.N)&&w.timeRange){var e;c=(e=w.timeRange.startTicks)!=null?e:-1;var f;k=(f=w.timeRange.Sy)!=null?f:-1;var O;X=(O=w.timeRange.timescale)!=null?O:-1}if(w.nA<0||w.vt<0||k<0||c<0||w.TP<0||X<0)return Gt(n,q),[];n=BX(w.nA,w.TP);q=w.uH||0;return[new Z1(3,P,n,"makeSliceInfosMediaBytes",w.vt- 1,c/X,k/X,q,n.length-q,void 0,w.Bl,w.clipId)]}if(w.vt<0)return Gt(n,q),[];var H;return((H=n.uo)==null?0:H.T9)?(q=P.SJ,r=q*P.info.ED,e=w.uH,((k=n.By)==null?0:k.LA)&&w.timeRange&&!e&&(c=w.timeRange.startTicks/w.timeRange.timescale),[new Z1(3,P,void 0,"makeSliceInfosMediaBytes",w.vt,c,q,e,r,!0,w.Bl,w.clipId)]):[]}; l1u=function(n,q,w){n.uo=q;n.By=w;q=g.a(n.O8);for(w=q.next();!w.done;w=q.next()){var X=g.a(w.value);w=X.next().value;X=X.next().value;for(var P=g.a(X.cC),R=P.next();!R.done;R=P.next()){R=R.value;var c=htO(n,w,R);D1O(n,R.AT,X,c)}}}; oc=function(n,q,w,X){n.logger.debug(function(){return"[addStreamData] formatId: "+w+",headerId: "+q+" bytes: "+X.totalLength}); (n=n.O8.get(w))&&!n.jV&&(hM?(n.eJ.has(q)||n.eJ.set(q,{data:new nt,Ss:0,UM:!1}),qO(n.eJ.get(q).data,X)):qO(n.Qp,X),n.bytesReceived+=X.totalLength,n.sB=!0)}; l7=function(n,q){n.logger.debug(function(){return"[closeStream] formatId: "+q}); var w=n.O8.get(q);w&&!w.jV&&(w.jV=!0,w.Dm&&w.Dm(),Gcs(n)&&n.W.v3())}; Gcs=function(n){n=g.a(n.O8.values());for(var q=n.next();!q.done;q=n.next())if(!q.value.jV)return!1;return!0}; COy=function(n){hM=n}; b7=function(n,q,w,X,P,R,c){g.A.call(this);this.policy=n;this.info=q;this.uo=w;this.HQ=P;this.logger=new g.il("sabr");this.Eg=new sW(this);this.BR=new xB(this);this.Rz=new D9(this);this.state=1;this.Ua=!1;this.y_=0;this.clipId="";this.R6=-1;this.Oa=0;this.VH=-1;this.bj=this.Mt=!1;this.hA=0;this.J3=!1;this.policy.q2?this.yL=new Lx(this,R):this.yL=new kB(this,R);this.CV=this.policy.nM?q.oo:EMh(q,this.policy,X);this.CV.set("rn",""+this.Dk());this.CV.set("alr","yes");l1u(this.Rz,w,n);this.lS=new UW(this, this.policy,this.CV,q.wc,this.yL,this.logger,X,c,this.policy.enableServerDrivenRequestCancellation);Bnu(this.lS);var k;if((k=this.policy)==null?0:k.Em)g.K(this,this.Rz),g.K(this,this.lS);n=q.X;q={method:"POST",body:n};n&&(this.Oa=n.length);try{this.xhr=OW(this.CV,this.policy.G,this.yL,fJ,q),this.policy.eh&&Ic(this.yL,this.kH()),this.lS.X.start()}catch(r){g.TQ(r)}}; oMY=function(n){n.policy.ZV&&n.Vt&&!n.J3?n.J3=!0:n.yL.DU()}; bzO=function(n,q){var w=-1,X=-1,P=-1,R;if((R=n.m4)==null?0:R.items)for(n=g.a(n.m4.items),R=n.next();!R.done;R=n.next())R=R.value,q=k,r=n.uo.isManifestless&&n.policy.Or,c){var e;if(((e=n.N)==null?void 0:e.WX.event)==="predictStart"&&n.N.khn.D&&(n.D=NaN,n.G=NaN);n.N&&n.N.kh===q?XxO(n,q,w,n.N,P):n.X===1&&Sb(n,5,"noad")}; PlT=function(n,q,w,X,P){X.gG?Sb(n,4,"cue"):(n.D=q,n.G=w,n.p5("sdai",{joinad:n.X,sg:n.D,st:n.G.toFixed(3)}),n.L=Date.now(),Sb(n,2,n.X===3?"staftpred":"join"),P.WI(X.WX))}; XxO=function(n,q,w,X,P){if(P&&X){var R=X.WX,c=P.wW(R);R.event==="predictStart"&&(n.PW=q);n.p5("sdai",{onqevt:R.event,sq:q,mt:w,gab:c,cst:R.startSecs,cueid:n.policy.lV&&(c||R.event==="start")?R.identifier:void 0},!0);if(c)R.event!=="predictStart"?(R.event==="start"&&n.PW===q-1&&n.p5("sdai",{gabonstart:q}),PlT(n,q,w,X,P)):n.policy.DF?Sb(n,3,"predict"):(q+=Math.max(Math.ceil(-R.N/5E3),1),R=Math.floor(w-R.N/1E3),n.policy.X?n.K=R:n.W=q,n.p5("sdai",{onpred:w,estsq:q,estmt:R.toFixed(3)}),u7(n.loader,R,R, q),n.L=Date.now(),Sb(n,3,"predict"),P.WI(X.WX));else if(n.X===1){var k;((k=n.C)==null?0:k.mZ(w))?(u7(n.loader,w,w,q),Sb(n,4,"sk2head")):Sb(n,5,"nogab")}else R.event==="predictStart"?n.policy.X&&n.K>0?(w=Math.floor(w-R.N/1E3),n.K!==w&&n.p5("sdai",{updateSt:w,old:n.K}),n.K=w):n.W>0&&(w=q+Math.max(Math.ceil(-R.N/5E3),1),n.W!==w&&(n.p5("sdai",{updateSt:w,old:n.W}),n.W=w)):n.policy.DF&&n.X===3&&PlT(n,q,w,X,P)}else n.p5("sdai",{nulldec:1,sq:q,mt:w.toFixed(3),evt:(X==null?void 0:(R=X.WX)==null?void 0:R.event)|| "none"})}; c9h=function(n,q,w){if(n.policy.gh&&n.policy.X)return!(n.X===1||n.X===2||!n.policy.DF&&n.X===3&&w>=n.W);if(n.X===1||n.X===2)return!1;if(n.X!==0&&q===n.audioTrack){if(n.policy.X)return REO(n.videoTrack,w)||REO(n.videoTrack,w+1);n=Bk(n.videoTrack);if(w>(n?n.kh:-1))return!1}return!0}; Qq=function(n,q,w){return(w<0||w===n.D)&&!isNaN(n.G)?n.G:q}; Ng6=function(n,q){if(n.N){var w=n.N.WX.lx-(q.startTime+n.V-n.N.WX.startSecs);w<=0||(w=new XU(n.N.WX.startSecs-(isNaN(n.V)?0:n.V),w,n.N.WX.context,n.N.WX.identifier,"stop",n.N.WX.N+q.duration*1E3),n.p5("cuepointdiscontinuity",{segNum:q.kh}),Kx(n,w,q.kh))}}; Sb=function(n,q,w){n.X!==q&&(n.p5("sdai",{setsst:q,old:n.X,r:w}),n.X=q)}; Z9=function(n,q,w,X){(X===void 0?0:X)?Sb(n,1,"seek"):q>0&&Math.abs(q-w)>=5&&n.X===4&&Sb(n,5,"sk2t")}; IvY=function(n){this.p5=n;this.N="";this.X=new Map}; JM=function(n,q,w){this.audio=n;this.video=q;this.reason=w}; zt=function(n,q,w){this.N=n;this.reason=q;this.token=w;this.videoId=void 0}; Wk=function(n,q,w){g.A.call(this);this.policy=n;this.W=q;this.p5=w;this.C=new Map;this.K=0;this.D=!1;this.N="";this.X=!1}; NM=function(n,q,w){if(w===void 0?0:w)n.D=!0;++n.K;w=6E4*Math.pow(2,n.K);w=(0,g.m$)()+w;n.C.set(q.info.id,w)}; nb=function(n){for(var q=g.a(n.C.entries()),w=q.next();!w.done;w=q.next()){var X=g.a(w.value);w=X.next().value;X=X.next().value;X<(0,g.m$)()&&n.C.delete(w)}return n.C}; k4u=function(n){return n.D&&nb(n).size>0}; q9=function(n,q){n.N!==q&&(n.N=q,n.X=!0)}; r9z=function(n,q){var w;q&&(w=g.d0(n.W.N,function(P){return P.id===q})); if(!w&&(w=g.d0(n.W.N,function(P){var R;return!((R=P.Va)==null||!R.isDefault)}),q)){var X; n.p5("iaf",{id:q,sid:(X=w)==null?void 0:X.id})}return w}; XC=function(n,q,w,X,P,R){var c=this;R=R===void 0?[]:R;this.loader=n;this.vW=q;this.policy=w;this.uo=X;this.D=P;this.RH=R;this.logger=new g.il("dash/abr");this.N=rY;this.C=this.G=null;this.L=-1;this.n5=!1;this.nextVideo=this.X=null;this.W=[];this.Ff=new Set;this.Tp={};this.je=new LJ(1);this.V=0;this.IH=this.PW=this.qP=!1;this.WW=0;this.oH=!1;this.HW=new Set;this.D0=!1;this.Wb={S4:function(){wf(c)}}; this.K=new Wk(this.policy,P,function(k,r){c.loader.p5(k,r)})}; OS6=function(n,q,w){PQ(n,q);q=r9z(n.K,w);w||q||(q=jf6(n));q=q||n.D.N[0];n.X=n.uo.N[q.id];wf(n);n.G=n.X;sfu(n);eEs(n);n.C=n.nextVideo;n.G=n.X;return fvO(n)}; UcO=function(n,q){if(iSO(n,q))return null;if(q.reason==="m"&&q.isLocked())return n.logger.debug(function(){return"User sets constraint to: "+pQ(q)}),PQ(n,q),n.V=n.W.length-1,wf(n),R_(n),n.PW=n.PW||n.C!==n.nextVideo,n.C=n.nextVideo,new JM(n.X,n.C,q.reason); q.reason==="r"&&(n.L=-1);PQ(n,q);R_(n);if(q.reason==="r"&&n.nextVideo===n.C)return new JM(n.X,n.nextVideo,q.reason);HSs(n);return null}; tRT=function(n,q,w){n.X=n.uo.N[q];n.G=n.X;return new JM(n.G,n.C,w?"t":"m")}; dcO=function(n,q){if(q.info.video){if(n.C!==q)return n.C=q,fvO(n)}else n.IH=n.G!==q,n.G=q;return null}; gUx=function(n,q){if(q.N.info.video&&q.K){var w=(q.X+q.C)/q.duration,X=q.N.info.ED;w&&X&&(n.je.Kb(1,w/X),n.policy.C&&w/X>1.5&&n.loader.p5("overshoot",{sq:q.kh,br:w,max:X}))}}; cQ=function(n,q,w){NM(n.K,q,w===void 0?!1:w);n.L=-1;PQ(n,n.N)}; mcx=function(n,q){return new JM(n.G,n.C,q||n.N.reason)}; HSs=function(n){if(n.C&&n.nextVideo&&I_(n,n.C.info)n.policy.Cd,k=P<=n.policy.Cd?vS(X):TU(X);if(!R||c||k)w[P]=X}return w}; PQ=function(n,q){n.N=q;var w=n.D.videoInfos;if(!n.N.isLocked()){var X=(0,g.m$)();w=g.Vr(w,function(k){if(k.ED>this.policy.ED)return!1;var r=this.uo.N[k.id];return nb(this.K).get(k.id)>X?!1:r.wc.C>4||r.D>4?(this.logger.debug(function(){return"Remove "+on(k)+"; 4 load failures"}),!1):this.HW.has(+k.itag)?!1:!0},n); k4u(n.K)&&(w=g.Vr(w,function(k){return k.video.width<=854&&k.video.height<=480}))}w.length||(w=n.D.videoInfos); var P=w;n.policy.jK&&(P=av0(n,P,q));P=g.Vr(P,q.W,q);if(n.N.isLocked()&&n.K.N){var R=g.d0(w,function(k){return k.id===n.K.N}); R?P=[R]:q9(n.K,"")}n.policy.jK||(P=av0(n,P,q));P.length||(P=[w[0]]);P.sort(function(k,r){return I_(n,k)-I_(n,r)}); q={};for(w=1;wq.Pf.video.width?(g.a5(P,w),w--):I_(n,q.Z9)*n.policy.V>I_(n,q.Pf)&&(g.a5(P,w-1),w--);var c=P[P.length-1];n.oH=!!n.C&&!!n.C.info&&n.C.info.L5!==c.L5;n.logger.debug(function(){return"Constraint: "+pQ(n.N)+", "+P.length+" fmts selectable, max selectable fmt: "+on(c)}); n.W=P;n.Ff.clear();q=!1;for(w=0;w=1080&&(q=!0);VRy(n.policy,c,n.uo.T9)}; av0=function(n,q,w){var X=w.reason==="m"||w.reason==="s";n.policy.M2&&kg&&g.fW&&(!X||w.N<1080)&&(q=q.filter(function(e){return e.video&&(!e.X||e.X.powerEfficient)})); if(q.length>0)if(N8()){var P=y9O(n,q);q=q.filter(function(e){return!!e&&!!e.video&&e.L5===P[e.video.qualityOrdinal].L5})}else{var R,c,k=(R=q[0])==null?void 0:(c=R.video)==null?void 0:c.qualityOrdinal; if(k){w=q.filter(function(e){return!!e&&!!e.video&&e.video.qualityOrdinal===k}); var r=y9O(n,w)[k].L5;q=q.filter(function(e){return!!e&&!!e.video&&e.L5===r})}}return q}; pxs=function(n,q){for(var w=0;w+1X}; wf=function(n){if(!n.X||!n.policy.W&&!n.X.info.Va){var q=n.D.N;n.X&&(q=q.filter(function(X){return X.audio.N===n.X.info.audio.N}),q.length||(q=n.D.N)); n.X=n.uo.N[q[0].id];if(q.length>1&&!n.policy.IH){if(!n.policy.Dy){var w=g.d0(q,function(X){return X.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); w&&(n.X=n.uo.N[w.id])}w=!1;if(w=n.policy.iS?!0:n.N.isLocked()?n.N.N<240:pxs(n,n.X))n.X=n.uo.N[g.Ut(q).id]}}}; R_=function(n){if(!n.nextVideo||!n.policy.W)if(n.N.isLocked())n.nextVideo=n.N.N<=360?n.uo.N[n.W[0].id]:n.uo.N[g.Ut(n.W).id],n.logger.debug(function(){return"Select max fmt: "+on(n.nextVideo.info)}); else{for(var q=Math.min(n.V,n.W.length-1),w=SO(n.vW),X=I_(n,n.X.info),P=w/n.policy.qP-X;q>0&&!(I_(n,n.W[q])<=P);q--);for(var R=w/n.policy.V-X;q=R);q++);n.nextVideo=n.uo.N[n.W[q].id];n.V!==q&&n.logger.info(function(){return"Adapt to: "+on(n.nextVideo.info)+", bandwidth: "+w.toFixed(0)+", bandwidth to downgrade: "+P.toFixed(0)+", bandwidth to upgrade: "+R.toFixed(0)+", constraint: "+pQ(n.N)}); n.V=q}}; sfu=function(n){var q=n.policy.qP,w=SO(n.vW),X=w/q-I_(n,n.X.info);q=g.mD(n.W,function(P){return I_(this,P)R?P=0:X[c]>n.buffered[c]&&(c===R-1?P=2:c===R-2&&X[c+1]>n.buffered[c+1]&&(P=3))}n.N.add(q<<3|(w&&4)|P);q=Math.ceil(n.track.zH()*1E3);n.N.add(q-n.K);n.K=q;if(P===1)for(n.N.add(R),c=q=0;c=2&&n.N.add(X[R- 1]-n.buffered[R-1]);w&&n.N.add(w);n.buffered=X}; sx=function(n,q,w){var X=this;this.policy=n;this.N=q;this.WW=w;this.W=this.X=0;this.BX=null;this.qP=new Set;this.L=[];this.indexRange=this.initRange=null;this.V=new k8;this.PW=this.vW=!1;this.Wb={bX5:function(){return X.C}, t3H:function(){return X.chunkSize}, azH:function(){return X.G}, Ch0:function(){return X.D}}; (q=Llu(this))?(this.chunkSize=q.csz,this.C=Math.floor(q.clen/q.csz),this.G=q.ck,this.D=q.civ):(this.chunkSize=n.mR,this.C=0,this.G=g.Os(16),this.D=g.Os(16));this.K=new Uint8Array(this.chunkSize);this.G&&this.D&&(this.crypto=new bQs(this.G,this.D))}; Llu=function(n){if(n.policy.wq&&n.policy.yk)for(var q=g.a(n.policy.wq),w=q.next(),X={};!w.done;X={Tj:void 0,jY:void 0},w=q.next())if(w=g.zV(w.value),X.Tj=+w.clen,X.jY=+w.csz,X.Tj>0&&X.jY>0&&n.policy.W===w.docid&&n.N.info.id===w.fmtid&&n.N.info.lastModified===+w.lmt)return n={},n.clen=X.Tj,n.csz=X.jY,n.ck=w.ck,n.civ=w.civ,n}; eJ=function(n){return!!n.BX&&n.BX.D3()}; Dcm=function(n,q){if(!eJ(n)&&!n.zp()){if(!(n.vW||(n.vW=!0,n.C>0))){var w=fb(n);w=nZ(n.policy.W,n.N.info,Ox(n),w,n.policy.je);i_(n,w)}if(q.info.type===1){if(n.BX){HQ(n,Error("Woffle: Expect INIT slices to always start us off"));return}n.initRange=BX(0,q.X.totalLength)}else if(q.info.type===2)n.BX&&n.BX.type===1||HQ(n,Error("Woffle: Index before init")),n.indexRange=BX(n.initRange.end+1,q.X.totalLength);else if(q.info.type===3){if(!n.BX){HQ(n,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(n.BX.type===3&&!WX(n.BX,q.info)&&(n.L=[],q.info.kh!==N1(n.BX)||q.info.X!==0))return;if(q.info.K){w=g.a(n.L);for(var X=w.next();!X.done;X=w.next())MRO(n,X.value);n.L=[]}else{n.L.push(q);n.BX=q.info;return}}else{HQ(n,Error("Woffle: Unexpected slice type"));return}n.BX=q.info;MRO(n,q);xcT(n)}}; MRO=function(n,q){var w=0,X=Rb(q.X);if(n.W=X.length)return;if(w<0)throw Error("Missing data");n.W=n.C;n.X=0}for(P={};w0){var c=X.getUint32(w+28);R+=c*16+4}var k=X.getUint32(w+R-4);try{var r=EUz(q.subarray(w+R,w+R+k));if(r!==null){var e=r;break a}}catch(f){}}w+=P}e=null;break a}catch(f){e=null;break a}e=void 0}if(e!=null)for(q=OP(JI(e,7,void 0,LG)),q==null||n.PX||(n.cryptoPeriodIndex=q),q=OP(JI(e,10,void 0,LG)),q!=null&&q>0&& !n.PX&&(n.N=q),e=XL(e,2,$EO,void 0===xE6?2:4),e=g.a(e),X=e.next();!X.done;X=e.next())q=n.C,w=q.push,X=DQ(X.value),X=g.p1(X,4),w.call(q,X)}; bSz=function(n){return isNaN(n.cryptoPeriodIndex)?g.p1(n.initData):""+n.cryptoPeriodIndex}; df=function(n,q,w){var X=w===void 0?{}:w;w=X.videoDuration===void 0?0:X.videoDuration;var P=X.p9===void 0?void 0:X.p9;X=X.u8===void 0?!1:X.u8;this.videoId=n;this.status=q;this.videoDuration=w;this.p9=P;this.u8=X}; A9z=function(n,q,w,X,P){this.videoId=n;this.cJ=q;this.X=w;this.bytesDownloaded=X;this.N=P}; gf=function(n){this.N=n;this.offset=0}; mZ=function(n){if(n.offset>=n.N.totalLength)throw Error();return Ib(n.N,n.offset++)}; Y7s=function(n,q){q=q===void 0?!1:q;var w=mZ(n);if(w===1){q=-1;for(w=0;w<7;w++){var X=mZ(n);q===-1&&X!==255&&(q=0);q>-1&&(q=q*256+X)}return q}X=128;for(var P=0;P<6&&X>w;P++)w=w*256+mZ(n),X*=128;return q?w:w-X}; KlO=function(n){try{var q=Y7s(n,!0),w=Y7s(n,!1);return{id:q,size:w}}catch(X){return{id:-1,size:-1}}}; S7y=function(n){for(var q=new gf(n),w=-1,X=0,P=0;!X||!P;){var R=KlO(q),c=R.id;R=R.size;if(c<0)return;if(c===176){if(R!==2)return;X=q.D2()}else if(c===186){if(R!==2)return;P=q.D2()}c===374648427?w=q.D2()+R:c!==408125543&&c!==174&&c!==224&&q.skip(R)}q=c9(n,0,w);w=new DataView(q.buffer);w.setUint16(X,3840);w.setUint16(P,2160);X=new nt([q]);qO(X,n);return X}; uBO=function(n,q,w){var X=this;this.loader=n;this.policy=q;this.K=w;this.logger=new g.il("dash");this.X=[];this.N=null;this.vW=-1;this.L=0;this.HW=NaN;this.qP=0;this.C=NaN;this.V=this.n5=0;this.oH=-1;this.Tp=this.W=this.D=this.WW=null;this.je=this.IH=NaN;this.G=this.PW=this.Ff=this.RH=null;this.Ne=!1;this.D0=this.timestampOffset=0;this.Wb={Lw:function(){return X.X}}; if(this.policy.W){var P=this.K,R=this.policy.W;this.policy.je&&n.p5("atv",{ap:this.policy.je});this.G=new sx(this.policy,P,function(c,k,r){yC(n,new df(X.policy.W,2,{p9:new A9z(R,c,P.info,k,r)}))}); this.G.V.promise.then(function(c){X.G=null;c===1?yC(n,new df(X.policy.W,c)):X.loader.p5("offlineerr",{status:c.toString()})},function(c){var k=(c.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); c instanceof Ux&&!c.N?(X.logger.info(function(){return"Assertion failed: "+k}),X.loader.p5("offlinenwerr",{em:k}),a_(X),yC(n,new df(X.policy.W,4))):(X.logger.info(function(){return"Failed to write to disk: "+k}),X.loader.p5("dldbwerr",{em:k}),a_(X),yC(n,new df(X.policy.W,4,{u8:!0})))})}}; Blm=function(n){return n.X.length?n.X[0]:null}; Qfm=function(n,q){return n.X.some(function(w){return w.info.kh===q})}; NlY=function(n,q,w,X){X=X===void 0?0:X;if(n.W){var P=n.W.X+n.W.C;if(w.info.X>0)if(w.info.kh===n.W.kh&&w.info.X=0&&n.W.kh>=0&&!WX(n.W,w.info))throw new g.b4("improper_continuation",n.W.XR(),w.info.XR());tSu(n.W,w.info)||VC(n,"d")}else if(w.info.X>0)throw new g.b4("continuation_of_null",w.info.XR());n.W=w.info;n.K=w.info.N;if(w.info.X===0){if(n.N)if(!n.loader.isOffline()||n.policy.LO)n.loader.p5("slice_not_fully_processed", {buffered:n.N.info.XR(),push:w.info.XR()});else throw new g.b4("slice_not_fully_processed",n.N.info.XR(),w.info.XR());pb(n);n.n5=X}else{if(n.n5&&X&&n.n5!==X)throw n=new g.b4("lmt_mismatch",w.info.kh,n.n5,X),n.level="WARNING",n;!w.info.N.Kh()&&n.D&&(X=w.info,P=n.D.R6,X.G="updateWithEmsg",X.kh=P)}if(n.N){X=g.dl(n.N,w);if(!X)throw new g.b4("failed_to_merge",n.N.info.XR(),w.info.XR());n.N=X}else n.N=w;a:{w=g.xw(n.N.info.N.info);if(n.N.info.type!==3){if(!n.N.info.K)break a;n.N.info.type===6?ZST(n,q,n.N): J9T(n,n.N);n.N=null}for(;n.N;){X=n.N.X.totalLength;if(n.vW<=0&&n.L===0){var R=n.N.X,c=-1;P=-1;if(w){for(var k=0;k+80))break;if(O!==408125543)if(O===524531317)k=!0,f>=0&&(P=R.D2()+f,r=!0);else{if(k&&(O===160||O===163)&&(c<0&&(c=e),r))break;O===163&&(c=Math.max(0,c),P=R.D2()+f);if(O===160){c<0&&(P=c=R.D2()+ f);break}R.skip(f)}}c<0&&(P=-1)}if(c<0)break;n.vW=c;n.L=P-c}if(n.vW>X)break;n.vW?(X=zET(n,n.vW),X.K&&WlO(n,X),ZST(n,q,X),TP(n,X),n.vW=0):n.L&&(X=zET(n,n.L<0?Infinity:n.L),n.L-=X.X.totalLength,TP(n,X))}}n.N&&n.N.info.K&&(TP(n,n.N),n.N=null)}; J9T=function(n,q){!q.info.N.Kh()&&q.info.X===0&&(g.xw(q.info.N.info)||q.info.N.info.PX())&&n8u(q);if(q.info.type===1)try{WlO(n,q),nay(n,q)}catch(P){g.pC(P);var w=nS(q.info);w.hms="1";n.loader.handleError("fmt.unparseable",w||{},1)}w=q.info.N;w.xl(q);n.G&&Dcm(n.G,q);if(w.CD()&&n.policy.N)a:{n=n.loader.uo;q=q.info.clipId;w=g.hg(w.info,n.T9);if(q){var X=YM({itag:w.itag,lmt:n.T9?0:w.lmt||0,xtags:w.xtags});if(n.oH[X])break a;n.oH[X]=q}n.IH.push(w)}}; Tns=function(n,q,w){if(n.X.length!==0&&(w||n.X.some(function(R){return R.info.W=$g(c)+k):q=n.getDuration()>=c.getDuration(),q=!q;q&&Xey(w)&&(q=n.WW,FC?(k=WxY(w),c=1/k,k=$g(n,k),q=$g(q)+c-k):q=q.getDuration()- n.getDuration(),q=1+q/w.info.duration,ZI0(g.t9(w),q))}else{c=!1;n.D||(n8u(w),w.N&&(n.D=w.N,c=!0,P=w.info,R=w.N.R6,P.G="updateWithEmsg",P.kh=R,P=w.N,P.D3&&(R=n.K.index,R.X=!P.D3,R.C="emsg"),P=w.info.N.info,R=g.t9(w),g.xw(P)?HX(R,1701671783):P.PX()&&V4([408125543],307544935,R)));a:if((P=yW(w,n.policy.ej))&&Nqs(w))k=PY3(n,w),n.V+=k,P-=k,n.qP+=P,n.C=n.policy.PO?n.C+P:NaN;else{if(n.policy.t_){if(R=r=n.loader.z4(g.gl(w),1),n.C>=0&&w.info.type!==6){if(n.policy.PO&&isNaN(n.IH)){g.TQ(new g.b4("Missing duration while processing previous chunk", w.info.XR()));n.loader.isOffline()&&!n.policy.LO||R6s(n,w,R);VC(n,"m");break a}X=r-n.C;var e=X-n.V,f=w.info.kh,O=n.Tp?n.Tp.kh:-1,H=n.je,U=n.IH,t=n.policy.X1&&X>n.policy.X1,V=Math.abs(e)>10,T=Math.abs(n.C-R)<1E-7;if(Math.abs(e)>1E-4){n.D0+=1;var x=(k=n.D)==null?void 0:K33(k);k={audio:""+ +n.nD(),sq:f.toFixed(),sliceStart:r,lastSq:O.toFixed(),lastSliceStart:H,lastSliceDuration:U,totalDrift:(X*1E3).toFixed(),segDrift:(e*1E3).toFixed(),skipRewrite:""+ +(t||V)};if(x==null?0:x.length)k.adCpn=x[0];n.loader.handleError("qoe.avsync", k);n.oH=f}t||V||T||(R=n.C);k=PY3(n,w,r);P-=k;n.V=X+k}}else R=isNaN(n.C)?w.info.startTime:n.C;R6s(n,w,R)&&(n.qP+=P,n.C=R+P,n.policy.AQ&&n.D0>=n.policy.AQ&&(n.D0=0,n.loader.XP({resetForRewrites:"count"})))}n.Tp=w.info;n.IH=ml(w);w.C>=0&&(n.je=w.C);if(c&&n.D){c=cF0(n,!0);qc(w.info,c);n.N&&qc(n.N.info,c);q=g.a(q);for(k=q.next();!k.done;k=q.next())k=k.value,P=void 0,n.policy.K&&k.kh!==((P=n.D)==null?void 0:P.R6)||qc(k,c);(w.info.K||n.N&&n.N.info.K)&&w.info.type!==6||(n.PW=c,n.policy.X?(q=IbO(n.D),n.loader.sR(n.K, c,q)):(q=n.loader,q.uo.isManifestless&&k7x(q,c,null,!!n.K.info.video)),n.policy.yp||rFO(n))}}nay(n,w);n.timestampOffset&&Jg6(w,n.timestampOffset)}; TP=function(n,q){if(q.info.K){n.RH=q.info;if(n.D){var w=n.D,X=cF0(n,!1);w=IbO(w);n.loader.sR(n.K,X,w);n.PW||n.policy.yp||rFO(n);n.PW=null}pb(n)}n.G&&Dcm(n.G,q);if(X=n.uh())if(X=g.dl(X,q,n.policy.MH,n.policy.hJ)){n.X.pop();n.X.push(X);return}n.X.push(q)}; IbO=function(n){if(n.gG()){var q=n.data["Stitched-Video-Id"]?n.data["Stitched-Video-Id"].split(",").slice(0,-1):[],w=K33(n),X=[];if(n.data["Stitched-Video-Duration-Us"])for(var P=g.a(n.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),R=P.next();!R.done;R=P.next())X.push((Number(R.value)||0)/1E6);P=[];if(n.data["Stitched-Video-Start-Frame-Index"]){R=g.a(n.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var c=R.next();!c.done;c=R.next())P.push(Number(c.value)||0)}P=[]; if(n.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(R=g.a(n.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),c=R.next();!c.done;c=R.next())P.push((Number(c.value)||0)/1E6);n=new Clm(q,w,X,P,g.SZ6(n),g.u3s(n))}else n=null;return n}; pb=function(n){n.N=null;n.vW=-1;n.L=0;n.D=null;n.HW=NaN;n.qP=0;n.PW=null}; VC=function(n,q){q={rst4disc:q,cd:n.V.toFixed(3),sq:n.Tp?n.Tp.kh:-1};n.C=NaN;n.V=0;n.oH=-1;n.Tp=null;n.je=NaN;n.IH=NaN;n.Ff=null;n.loader.p5("mdstm",q)}; nay=function(n,q){if(n.isDrm()){if(q.info.N.info.PX()){var w=new tW(g.t9(q));if(gg(w,[408125543,374648427,174,28032,25152,20533,18402])){var X=aQ(w,!0);w=X!==16?null:$M(w,X)}else w=null;X="webm"}else q.info.L=lv6(g.t9(q)),w=G4z(q.info.L),X="cenc";w&&w.length&&(w=new tA(w,X),n.policy.kT&&g.xw(q.info.N.info)&&(X=qmy(g.t9(q)))&&(w.X=X),w.PX=q.info.N.info.PX(),q.N&&q.N.cryptoPeriodIndex&&(w.cryptoPeriodIndex=q.N.cryptoPeriodIndex),q.N&&q.N.X&&(w.N=q.N.X),n.loader.GU(w))}}; rFO=function(n){var q=n.D,w=ADs(q);w&&(w.startSecs+=n.HW,n.loader.EB(n.K,w,q.R6,q.gG()))}; cF0=function(n,q){var w,X=n.D;if(w=ADs(X))w.startSecs+=n.HW;return new BM(X.R6,n.HW,q?X.SJ:n.qP,X.ingestionTime,"sq/"+X.R6,void 0,void 0,q,w)}; R6s=function(n,q,w){if(!ZT3(q,w))return q=nS(q.info),q.smst="1",n.loader.handleError("fmt.unparseable",q||{},1),!1;isNaN(n.HW)&&(n.HW=w);return!0}; PY3=function(n,q,w){var X=0;if(q.info.N.info.PX()&&!Nqs(q))return 0;if(n.WW&&!n.nD()){var P=0;w&&g.xw(q.info.N.info)?P=w-n.C:q.info.N.info.PX()&&(P=n.V);var R=q.info.kh;w=yW(q,n.policy.ej);var c=n.WW;var k=c.oH;c=c.V;var r=Math.abs(c-P)>.02;if((R===k||R>k&&R>n.oH)&&r){X=Math.max(.95,Math.min(1.05,(w-(c-P))/w));if(g.xw(q.info.N.info))ZI0(g.t9(q),X);else if(q.info.N.info.PX()&&(R=P-c,!g.xw(q.info.N.info)&&(q.info.N.info.PX(),X=new tW(g.t9(q)),k=q.K?X:new tW(new DataView(q.info.N.N.buffer)),yW(q,!0)))){var e= R*1E3,f=Lz(k);k=X.pos;X.pos=0;if(X.N.getUint8(X.pos)===160||M1(X))if(y4(X,160))if(aQ(X,!0),y4(X,155)){if(R=X.pos,r=aQ(X,!0),X.pos=R,e=e*1E9/f,f=pz(X),e=f+Math.max(-f*.7,Math.min(f,e)),e=Math.sign(e)*Math.floor(Math.abs(e)),!(Math.ceil(Math.log(e)/Math.log(2)/8)>r)){X.pos=R+1;for(R=r-1;R>=0;R--)X.N.setUint8(X.pos+R,e&255),e>>>=8;X.pos=k}}else X.pos=k;else X.pos=k;else X.pos=k}X=yW(q,n.policy.ej);X=w-X}X&&q.info.N.info.PX()&&n.loader.p5("webmDurationAdjustment",{durationAdjustment:X,videoDrift:P+X, audioDrift:c})}return X}; Xey=function(n){return n.info.N.Kh()&&n.info.kh===n.info.N.index.QL()}; $g=function(n,q){q=(q=q===void 0?0:q)?Math.round(n.timestampOffset*q)/q:n.timestampOffset;n.K.W&&q&&(q+=n.K.W.N);return q+n.getDuration()}; jyT=function(n,q){q<0||(n.X.forEach(function(w){Jg6(w,q)}),n.timestampOffset=q)}; Zf=function(n,q,w,X,P){eb.call(this,w,P);var R=this;this.policy=n;this.formatId=q;this.Rz=X;this.lastError=null;this.Dm=function(){R.zp()||(R.Rz.O8.has(R.formatId)?(R.isComplete()||R.N.start(),EW(R.Rz,R.formatId)&&R.VB(2),R.Rz.jV(R.formatId)&&(Mxz(R.Rz,R.formatId)?R.eg(4):(R.lastError="net.closed",R.eg(5)))):(R.lastError="player.exception",R.eg(5)))}; this.N=new g.YF(function(){R.isComplete()||(R.lastError="net.timeout",R.eg(5))},1E3); this.N.start();$1s(this.Rz,this.formatId,this.Dm);g.Uz(this.Dm)}; vQ=function(n,q,w,X){g.A.call(this);var P=this;this.loader=n;this.policy=q;this.N=w;this.timing=X;this.logger=new g.il("dash");this.C=[];this.WW=[];this.X=this.OD=null;this.Ff=!1;this.n5=this.D0=0;this.D=-1;this.vW=!1;this.HW=-1;this.Tp=null;this.PW=NaN;this.qP=[];this.Wb={Qs:function(){return P.W}, Rbo:function(){return P.C}, wNh:function(){return P.V}}; this.W=new uBO(n,q,w);this.policy.N&&(this.V=new BH(this.W,this.loader.getManifest(),this.policy,function(R){P.policy.Pi&&P.p5("buftl",R)})); this.policy.KM&&(this.L=new rf(this));this.ED=w.info.ED;this.G=this.policy.PW?!1:w.Cr();this.isManifestless=w.Cr();this.K=this.G;g.K(this,this.Tp)}; Lb=function(n,q,w){w=w===void 0?!1:w;q&&FC&&jyT(n.W,q.bG());if(!w){var X;(X=n.V)==null||yys(X)}n.OD=q;(q=n.V)!=null&&(q.OD=n.OD)}; M9=function(n){var q=n.OD&&n.OD.S5();if(n.policy.Ww){if((n=n.V)==null)n=void 0;else{var w;n=(w=n.C)==null?void 0:w.info}return n||null}return q}; syx=function(n){for(var q={},w=0;w4&&n.WW.shift()}; e6s=function(n,q){if(q.iU()){var w=q.bX();w=g.a(w);for(var X=w.next();!X.done;X=w.next())X=X.value,n.policy.C&&q instanceof Zf&&n.p5("omblss",{s:X.info.XR()}),Dn(n,q.info.Se,X,q.UY())}}; Dn=function(n,q,w,X){X=X===void 0?0:X;isNaN(n.PW)||(n.p5("aswm",{sq:q[0].kh,id:q[0].N.info.itag,xtag:q[0].N.info.N,ep:Date.now()-n.PW}),n.PW=NaN);switch(w.info.type){case 1:case 2:fb6(n,w);break;case 4:var P=w.info.N,R=P.Ed(w),c;((c=n.X)==null?0:c.type===4)&&pSz(w.info,n.X)&&(n.X=P.Wm(n.X).pop());w=g.a(R);for(P=w.next();!P.done;P=w.next())Dn(n,q,P.value,X);break;case 3:w.info.N.info.video?(P=n.timing,P.HW||(P.HW=(0,g.m$)(),g.CK("fvb_r",P.HW,P.N))):(P=n.timing,P.D||(P.D=(0,g.m$)(),g.CK("fab_r",P.D, P.N)));NlY(n.W,q,w,X);n.policy.N&&OJu(n);break;case 6:NlY(n.W,q,w,X),n.X=w.info}}; fb6=function(n,q){if(q.info.type===1)if(q.info.N.info.video){var w=n.timing;w.n5||(w.n5=(0,g.m$)(),g.CK("vis_r",w.n5,w.N))}else w=n.timing,w.V||(w.V=(0,g.m$)(),g.CK("ais_r",w.V,w.N));J9T(n.W,q);n=n.loader;n.videoTrack.N.CD()&&n.audioTrack.N.CD()&&n.policy.N&&!n.uo.T9&&(q=n.audioTrack.getDuration(),w=n.videoTrack.getDuration(),Math.abs(q-w)>1&&n.p5("trBug",{af:""+g.hg(n.audioTrack.N.info,!1),vf:""+g.hg(n.videoTrack.N.info,!1),a:""+q,v:""+w}))}; Pk=function(n){return Blm(n.W)}; OJu=function(n){n.C.length?n.X=g.Ut(g.Ut(n.C).info.Se):n.W.X.length?n.X=n.W.uh().info:n.X=M9(n)}; hA=function(n,q){var w={qU:[],I6:[]},X;if((n=n.V)==null)n=void 0;else{myh(n,n.qU,"og");tZh(n,q);myh(n,n.qU,"trim");var P=gTs(n);q=P.qU;P=P.Yv;for(var R=[],c=0;c0){var H=Yw(O,r);H>=0&&(f=(O.end(H)-r+.1)*1E3)}R.push({formatId:g.hg(k.info.N.info,n.uo.T9), Bl:k.info.Bl,sequenceNumber:k.info.kh+n.W,ZS:e,Jo:k.info.C,h3:f})}n={qU:q,I6:R}}return(X=n)!=null?X:w}; WH=function(n,q,w){w=w===void 0?!1:w;if(n.OD){var X=n.OD.Uj(),P=SS(X,q),R=NaN,c=M9(n);c&&(R=SS(X,c.N.index.getStartTime(c.kh)));if(P===R&&n.X&&n.X.C&&iJs(l_(n),0))return q}n=HJ0(n,q,w);return n>=0?n:NaN}; nx=function(n,q,w){n.N.CD();var X=HJ0(n,q);if(X>=0)return X;var P;(P=n.V)==null||dys(P,q,w);X=Math;P=X.min;var R=n.W;if(R.G)if(R=R.G,R.BX&&R.BX.type===3)R=R.BX.startTime;else if(R.C>0){var c=R.N.index;c=g.Yi(c.offsets.subarray(0,c.count),R.C*R.chunkSize);R=R.N.index.getStartTime(c>=0?c:Math.max(0,-c-2))}else R=0;else R=Infinity;q=P.call(X,q,R);n.X=n.policy.PW?null:n.N.Fu(q).Se[0];GP(n)&&(n.policy.Re&&(w==null?void 0:w.seekSource)===60||n.OD&&n.OD.abort(),n.policy.cH&&(w=n.V)!=null&&(w.C=void 0)); n.n5=0;return n.X?n.X.startTime:q}; VZO=function(n){n.G=!0;n.K=!0;n.D=-1;nx(n,Infinity)}; Cb=function(n){for(var q=0,w=g.a(n.C),X=w.next();!X.done;X=w.next())q+=Fxm(X.value.info);return q+=qXz(n.W)}; o_=function(n,q){q=q===void 0?!1:q;var w=n.loader.getCurrentTime(),X=n.W.uh(),P=(X==null?void 0:X.info.D)||0;if((X==null?0:X.info.N.Cr())&&!X.info.K)if(n.policy.RW)P=X.info.W;else if(n.policy.e3){var R=X.info;P=R.range?R.D:Math.min(R.startTime+Math.min(R.duration*R.X/R.N.info.ED,R.duration)+(R.range?R.V:Math.min(R.duration,R.duration*R.C/R.N.info.ED)),R.startTime+R.duration)}if(!n.OD)return n.policy.N&&q&&!isNaN(w)&&X?P-w:0;if((R=M9(n))&&Ex(R))return R.D;var c=n.OD.Uj(!0);if(q&&X)return R=0,n.policy.N&& (R=QR(c,P+.02)),R+P-w;q=QR(c,w);n.policy.Jl&&R&&(X=Yw(c,w),c=Yw(c,R.W-.02),X===c&&(w=R.D-w,n.policy.C&&w>q+.02&&n.p5("abh",{bh:q,bhtls:w}),q=Math.max(q,w)));return q}; UT6=function(n){var q=M9(n);return q?q.D-n.loader.getCurrentTime():0}; tCY=function(n,q){if(n.C.length){if(n.C[0].info.Se[0].startTime<=q)return;zX(n)}for(var w=n.W,X=w.X.length-1;X>=0;X--)w.X[X].info.startTime>q&&w.X.pop();OJu(n);n.X&&q=0;c--){var k=P.X[c];k.info.kh>=q&&(P.X.pop(),P.C-=yW(k,P.policy.ej),R=k.info)}R&&(P.W=P.X.length>0?P.X[P.X.length-1].info:P.Ff,P.X.length!==0||P.W||VC(P,"r"));P.loader.p5("mdstm",{rollbk:1,itag:R?R.N.info.itag:"",popped:R?R.kh:-1,sq:q,lastslc:P.W?P.W.kh:-1,lastfraget:P.C.toFixed(3)});if(n.policy.N)return n.X=null,!0;X>w?nx(n,X):n.X=n.N.Rr(q-1,!1).Se[0]}catch(r){return q=jS(r),q.details.reason="rollbkerr", n.loader.handleError(q.errorCode,q.details,q.severity),!1}return!0}; Yg=function(n,q){var w;for(w=0;w0?w||q.kh>=n.HW:w}; Kb=function(n){var q;return GP(n)||Ex((q=n.W.uh())==null?void 0:q.info)}; l_=function(n){var q=[],w=M9(n);w&&q.push(w);q=g.Lj(q,n.W.bJ());w=g.a(n.C);for(var X=w.next();!X.done;X=w.next()){X=X.value;for(var P=g.a(X.info.Se),R=P.next(),c={};!R.done;c={FN:void 0},R=P.next())c.FN=R.value,X.fT&&(q=g.Vr(q,function(k){return function(r){return!pSz(r,k.FN)}}(c))),(zc(c.FN)||c.FN.type===4)&&q.push(c.FN)}n.X&&!HT0(n.X,g.Ut(q),n.X.N.Kh())&&q.push(n.X); return q}; iJs=function(n,q){if(!n.length)return!1;for(q+=1;q=q){q=R;break a}}q=P}return q<0?NaN:iJs(n,w?q:0)?n[q].startTime:NaN}; SJ=function(n){return!(!n.X||n.X.N===n.N)}; dTs=function(n){return SJ(n)&&n.N.CD()&&n.X.N.info.EDq&&n.D1080&&!n.TZ&&(n.n5=36700160,n.RH=5242880,n.D0=Math.max(4194304,n.D0),n.TZ=!0);q.video.qualityOrdinal>2160&&!n.zZ&&(n.n5=104857600,n.ED=13107200,n.zZ=!0);g.Jv(n.aH.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?q.isEncrypted()&&g.od()&&g.Ce("samsung")&&(g.Ce("kant")||g.Ce("muse"))&&(n.ED=g.Jv(n.aH.experiments,"html5_samsung_kant_limit_max_bitrate")):q.isEncrypted()&&g.od()&&g.Ce("kant")&&(n.ED=1310720);n.h5!==0&&q.isEncrypted()&& (n.ED=n.h5);n.Th!==0&&q.isEncrypted()&&w&&(n.ED=n.Th);q.ED&&(n.Ym=Math.max(n.ql,Math.min(n.D0,5*q.ED)))}; Fd=function(n){return n.N&&n.fX}; JA=function(n){return n.N&&n.x5&&n.playbackStartPolicy}; zP=function(n,q,w,X){n.x5&&(n.playbackStartPolicy=q,n.vj=w,n.Mw=X)}; Zn=function(n,q,w){w=w===void 0?0:w;return g.Jv(n.aH.experiments,q)||w}; xTx=function(n){var q=n===void 0?{}:n;n=q.fO;var w=q.qT;var X=q.W_;var P=q.QL;q=q.kf;this.fO=n;this.qT=w;this.W_=X;this.QL=P;this.kf=q}; GGs=function(n,q){if(q<0)return!0;var w=n.QL();return q0)return 2;if(q<0)return 1;w=n.QL();return q(0,g.m$)()?0:1}; N9=function(n,q,w,X,P,R,c,k,r,e,f,O,H,U){U=U===void 0?null:U;g.A.call(this);var t=this;this.loader=n;this.policy=q;this.videoTrack=w;this.audioTrack=X;this.W=P;this.N=R;this.timing=c;this.K=k;this.schedule=r;this.uo=e;this.C=f;this.qP=O;this.wb=H;this.lE=U;this.PW=!1;this.aC="";this.YL=null;this.qL=NaN;this.vW=!1;this.X=null;this.hM=this.L=NaN;this.JT=this.D=0;this.logger=new g.il("dash");this.Wb={Ia:function(V,T){return t.Ia(V,T)}}; this.policy.Jy>0&&(this.aC=g.Os(this.policy.Jy));this.policy.bI&&(this.V=new WQ(this.loader,this.policy,this.schedule),g.K(this,this.V))}; CYO=function(n,q,w){var X=q.X?q.X.N.wc:q.N.wc;var P=n.W,R;(R=!n.policy.Hj)||(R=bi(X.N)===bi(X.X));R?X=!1:(P=Gc(P,bi(X.X)),R=6E4*Math.pow(P.W,1.6),(0,g.m$)()=P.W?(P.p5("sdai",{haltrq:R+1,est:P.W}),X=!1):X=P.X!==2;if(!X||!AW(q.X?q.X.N.wc:q.N.wc,n.policy,n.W,n.loader.OI())||n.loader.isSuspended&&(!AF(n.schedule)||n.loader.Ja))return!1;if(n.policy.W&&NI>=5)return g.K9(n.loader.rr),!1;if(n.uo.isManifestless){if(q.C.length>0&&q.X&&q.X.kh===-1||q.C.length>=n.policy.xp||!n.policy.U6&&q.C.length>0&&!n.policy.G.qT)return!1;if(q.G)return!n.uo.isLive|| !isNaN(n.qL)}if(VCu(q))return n.logger.debug("Pending request with server-selectable format found"),!1;if(!q.X){if(!q.N.CD())return!1;nx(q,n.loader.getCurrentTime())}if(Pk(q)&&(q.uh()!==Pk(q)||n.loader.isSuspended))return!1;P=(X=n.policy.aM)&&!q.C.length&&o_(q,!0)=n.policy.Md)return!1;X=q.X;if(!X)return!0;X.type===4&&X.N.CD()&&(q.X=g.Ut(X.N.Wm(X)),X= q.X);if(!X.D3()&&!X.N.BG(X))return!1;R=n.uo.Tz||n.uo.W;if(n.uo.isManifestless&&R){R=q.N.index.QL();var c=w.N.index.QL();R=Math.min(R,c);if(q.N.index.tF()>0&&R>0&&X.kh>=R)return q.HW=R,w.HW=R,!1}if(X.N.info.audio&&X.type===4||X.D3())return!1;R=!q.K&&!w.K;if(P=!P)P=X.D,P=!!(w.X&&!Ex(w.X)&&w.X.DEaO(n,q)?(EaO(n,q),!1):(n=q.OD)&&n.isLocked()?!1:!0}; EaO=function(n,q){var w=n.N;w=w.N?w.N.WX:null;if(n.policy.WW&&w)return w.startSecs+w.lx+15;q=Nb(n.loader,q);n.policy.Me>0&&(w=((0,g.m$)()-n.loader.P4)/1E3,q=Math.min(q,n.policy.Me+n.policy.e6*w));q=n.loader.getCurrentTime()+q;return n.policy.D8&&(w=oaO(n.loader)+n.policy.D8,w=0||q.wc.EV("defrag")==="1"||q.wc.EV("otf")==="1"){q=null;break a}P=BX(0,4096)}P=new wl([new Z1(5,X.N,P,"createProbeRequestInfo"+X.G,X.kh)],q.X);P.E2=w;P.N=q.N;q=P}q&&qK(n,q)}}; qK=function(n,q){n.loader.aK(q);var w=Fxm(q),X=n.loader.qf();w={CG:n.schedule,hP:w,T2:eom(n.K,w),DN:JW(q.Se[0]),Y0:Ay(q.wc.N),TD:n.policy.C,Fv:function(c,k){n.loader.JY(c,k)}}; if(n.schedule.X.D){var P,R;w.jT=(((P=n.videoTrack.N)==null?void 0:P.info.ED)||0)+(((R=n.audioTrack.N)==null?void 0:R.info.ED)||0)}n.YL&&(w.kh=q.Se[0].kh,w.qL=q.qL,w.YL=n.YL);X={bR:$8s(q,n.loader.getCurrentTime()),Ex:n.policy.TG&&Px(q)&&q.Se[0].N.info.video?Fls(n.C):void 0,xD:n.policy.WW,poToken:n.loader.Yd(),jx:n.loader.jA(),aC:n.aC,hM:isNaN(n.hM)?null:n.hM,lE:n.lE,wb:n.wb,JT:n.JT,NZ:X};return new Jk(n.policy,q,w,n.W,function(c,k){try{a:{var r=c.info.Se[0].N,e=r.info.video?n.videoTrack:n.audioTrack; if(!(c.state>=2)||c.isComplete()||c.Kz()||!(!n.loader.K5||n.loader.isSuspended||o_(e)>3)){var f=lbz(c,n.policy,n.W);f===1&&(n.vW=!0);bJy(n,c,f);if(c.isComplete()||c.zp()&&k<3){if(n.policy.C){var O=c.timing.wH();O.rst=c.state;O.strm=c.xhr.Ib();O.cncl=c.xhr&&c.lS.W?1:0;n.loader.p5("rqs",O)}c.m$&&n.loader.p5("sbwe3",{},!0)}if(!n.zp()&&c.state>=2){zts(n.timing,c,r);var H=n.loader;n.hM&&c.bO&&H&&(n.hM=NaN,n.loader.dQ(c.bO),n.loader.dT(),n.loader.p5("cabrUtcSeek",{mediaTimeSeconds:c.bO}));c.tB&&n.hM&&c.tB&& !c.tB.action&&(n.loader.q5(n.hM),n.hM=NaN,n.loader.p5("cabrUtcSeekFallback",{targetUtcTimeSeconds:n.hM}));c.ih&&n.loader.nf(c.ih);n.policy.KG&&(n.JT=c.JT);if(c.state===3){Yg(e,c);Px(c.info)&&Xz(n,e,r,!0);if(n.X){var U=c.info.dV();U&&n.X.kS(c.info.Se[0].kh,r.info.id,U)}n.loader.Wy()}else if(c.isComplete()&&c.info.Se[0].type===5){if(c.state!==4)c.Kq()&&n.loader.handleError(c.Kx(),c.oG());else{var t=(c.info.Se[0].N.info.video?n.videoTrack:n.audioTrack).C[0]||null;t&&t instanceof Jk&&t.Kz()&&t.Sw()}c.dispose()}else{c.Kq()|| AF0(n,c);var V;((V=c.z6)==null?0:V.itagDenylist)&&n.loader.g2(c.z6.itagDenylist);if(c.state===4)Pj(n,c),n.N&&wx0(n.N,c.info,n.X);else if(n.policy.Nd&&c.iU()&&!c.isComplete()&&!Pj(n,c)&&!c.Kq())break a;c.Kq()&&(YXh(n,c),isNaN(n.hM)||(n.loader.q5(n.hM),n.hM=NaN));n.policy.YE&&!c.isComplete()?Ra(n.loader):n.loader.Wy();var T=G73(c,n.policy,n.W);bJy(n,c,T)}}}}}catch(x){k=n.PW?1:0,n.PW=!0,c=rq(k),k=jS(x,k),n.loader.handleError(k.errorCode,k.details,k.severity),c||n.loader.Q5()}},X)}; AF0=function(n,q){if(q.yB&&q.state>=2&&q.state!==3){var w=q.xhr.getResponseHeader("X-Response-Itag");if(w){n.logger.debug(function(){return"Applying streamer-selected format "+w}); var X=TlO(n.C,w),P=q.info.C;P&&(P-=X.g6(),X.C=!0,q.info.Se[0].N.C=!1,pXx(q,X.zF(P)),cj(n.loader,n.videoTrack,X),pe3(n.videoTrack,X),n.loader.Jt(X.info.video.quality),(P=q.UY())&&X.info.lastModified&&X.info.lastModified!==+P&&Yg(n.videoTrack,q))}else q.yB=!1}}; YXh=function(n,q){var w=q.info.Se[0].N,X=q.Kx();if(Ay(w.wc.N)){var P=g.Te(q.N9(),3);n.loader.p5("dldbrerr",{em:P||"none"})}P=q.info.Se[0].kh;var R=Qq(n.N,q.info.Se[0].W,P);X==="net.badstatus"&&(n.D+=1);if(q.canRetry()&&Ia(n.loader)){if(!(q.info.wc.C>=n.policy.wC&&n.X&&q.info.isDecorated()&&X==="net.badstatus"&&n.X.JP(R,P))){P=(w.info.video&&w.wc.C>1||q.k8===410||q.k8===500||q.k8===503)&&!(nb(n.C.K).size>0)&&!Ay(w.wc.N);R=q.oG();var c=w.info.video?n.videoTrack:n.audioTrack;P&&(R.stun="1");n.loader.handleError(X, R);n.zp()||(P&&(n.logger.debug(function(){return"Stunning format "+w.info.id}),cQ(n.C,w)),Yg(c,q),n.loader.Wy())}}else c=1,n.X&&q.info.isDecorated()&&X==="net.badstatus"&&n.X.JP(R,P)&&(c=0),n.uo.isLive&&q.Kx()==="net.badstatus"&&n.D<=n.policy.jJ*2?(DPm(n.uo),n.uo.Tz||n.uo.isPremiere?Xd(n.loader,0,{zk:"badStatusWorkaround"}):n.uo.W?Xd(n.loader,n.uo.WW,{zk:"badStatusWorkaround", z4:!0}):k$(n.loader)):n.loader.handleError(X,q.oG(),c)}; Pj=function(n,q){if(n.policy.useUmp&&q.zp())return!1;try{var w=q.info.Se[0].N,X=w.info.video?n.videoTrack:n.audioTrack;if(n.uo.isManifestless&&X){n.D=0;X.G&&(q.zp(),q.isComplete()||q.iU(),X.G=!1);q.zN()&&n.loader.ZD.Kb(1,q.zN());var P=q.tF(),R=q.sH();SR(n.uo,P,R)}if(q.info.DN()&&!XB(q.info))for(var c=g.a(q.bX()),k=c.next();!k.done;k=c.next())fb6(X,k.value);for(n.loader.getCurrentTime();X.C.length&&X.C[0].state===4;){var r=X.C.shift();e6s(X,r);X.D0=r.Za()}X.C.length&&e6s(X,X.C[0]);var e=!!Pk(X);e&& q instanceof Zf&&(w.info.nD()?Kfh(n.timing):Yws(n.timing));return e}catch(f){q=q.oG();q.origin="hrhs";a:{n=n.loader;w=f;if(w instanceof Error){q.msg||(q.msg=""+w.message);q.name||(q.name=""+w.name);if(w instanceof g.b4&&w.args)for(X=g.a(Object.entries(w.args)),P=X.next();!P.done;P=X.next())R=g.a(P.value),P=R.next().value,R=R.next().value,q["arg"+P]=""+R;g.TQ(w);if(w.level==="WARNING"){n.Eq.XP(q);break a}}n.handleError("fmt.unplayable",q,1)}return!1}}; KRs=function(n){var q=n.videoTrack.N.index;n.YL=new xTx({fO:n.policy.fO,qT:n.policy.G.qT,W_:q.Oy(),QL:function(){return q.QL()}, kf:function(){return q.kf()}})}; Xz=function(n,q,w,X){if(!(w.CD()||w.cV()||w.C||!AW(w.wc,n.policy,n.W,n.loader.OI())||w.info.L5==="f"||n.policy.N)){if(X){X=n.K;var P=w.info;X=f2y(X,P.video?X.policy.F3:X.policy.AL,P.ED)}else X=0;X=w.zF(X);n=qK(n,X);XB(X)&&xg(q,n);w.C=!0}}; rc=function(n,q,w,X,P,R,c,k){g.A.call(this);var r=this;this.loader=n;this.By=q;this.videoTrack=w;this.audioTrack=X;this.uo=P;this.L=R;this.isAudioOnly=c;this.V=k;this.X=rY;this.vW=!1;this.logger=new g.il("sabr");this.G=this.PW=this.qP=!1;this.videoInfos=this.D=this.L.videoInfos;this.C=this.WW=this.L.N;this.N=new Wk(q,R,function(e,f){r.loader.p5(e,f)}); this.isAudioOnly&&SX6(this,this.uo.N["0"])}; umO=function(n,q){var w=[];q=g.a(q);for(var X=q.next();!X.done;X=q.next())w.push(g.hg(X.value,n.uo.T9));return w}; SX6=function(n,q,w){q!==n.W&&(n.W&&(n.vW=!0),n.W=q,n.Ql(q,n.videoTrack,w))}; ZJs=function(n,q){n.logger.debug("setConstraint: "+pQ(q));Fd(n.By)&&(n.PW=q.reason==="m"||q.reason==="l"?!0:!1);q.reason==="m"?q.isLocked()&&B5z(n,q.N):Qy3(n,q)?jl(n,q.X,q.N):n.videoInfos=n.D;n.X=q}; Qy3=function(n,q){return n.By.E1&&q.reason==="b"||n.By.Iv&&q.reason==="l"||n.By.Wj?!1:n.By.Al?!0:q.reason==="l"||q.reason==="b"||q.reason==="o"}; JF0=function(n,q){return q.isLocked()&&n.N.X||n.X===void 0?!1:q.equals(n.X)}; z66=function(n,q){var w,X=(w=n.W)==null?void 0:w.info.video.qualityOrdinal;return n.vW?!0:n.W?q!==X?!0:!n.N.X||n.By.V$&&n.N.N===n.W.info.itag?!1:!0:!1}; B5z=function(n,q){var w=n.N.N;if(w){n.videoInfos=n.D;var X=g.d0(n.videoInfos,function(P){return P.id===w}); X&&X.video.qualityOrdinal===q?n.videoInfos=[X]:(X=n.videoInfos.map(function(P){return P.id}),n.loader.p5("sabrpf",{pfid:""+w, vfids:""+X.join(".")}),jl(n,q,q),q9(n.N,""))}else jl(n,q,q)}; jl=function(n,q,w){n.videoInfos=n.D;n.videoInfos=g.Vr(n.videoInfos,function(X){return X.video.qualityOrdinal>=q&&X.video.qualityOrdinal<=w})}; WRs=function(n,q,w){if(n.V){var X=g.Vr(n.C,function(P){return P.id===n.V}); return vj(X,w).includes(q)}X=g.Vr(n.C,function(P){var R;return!((R=P.Va)==null||!R.isDefault)}); return X.length>0?vj(X,w).includes(q):vj(n.C,w).includes(q)}; vj=function(n,q){return n.map(function(w){return YM(g.hg(w,q))})}; N5s=function(n){var q;if((q=n.X)==null?0:q.isLocked())return n.videoInfos;var w=nb(n.N);q=g.Vr(n.videoInfos,function(X){return X.ED>n.By.ED?!1:!w.has(X.id)}); k4u(n.N)&&(q=g.Vr(q,function(X){return X.video.width<=854&&X.video.height<=480})); return q}; qN0=function(n,q,w){var X=n.uo,P=n.Eq.getVideoData(),R=n.Ya,c=d1u({aH:P.B(),Eq:n.Eq,f$:n.f$,By:n.By,BI:n.BI,TU:n.TU,mA:n.mA,cM:n.cM,Zz:n.Zz,isPrefetch:n.isPrefetch,Vg:n.Vg,sabrLicenseConstraint:P.sabrLicenseConstraint,Ma:n.Ma,Nn:n.Nn,w3:n.w3,Ji:n.Ji,xN:!!R,authorizedFormats:P.authorizedFormats}),k=$B(P,n.NZ,n.nextRequestPolicy,n.T5,n.XN,n.LW,n.aT);w&&q&&(w=k.X3?k.X3.map(function(O){return O.type}):[],q("sabr",{stmctxt:w.join("_"), unsntctxt:k.ol?k.ol.join("_"):""}));q=n.gS;w=n.jM;if(w===void 0&&q===void 0){var r;w=nxs(X.T9,(r=n.jF)==null?void 0:r.video);var e;q=nxs(X.T9,(e=n.jF)==null?void 0:e.audio)}if(P.lE)var f=P.lE;P={pm:c,I6:n.I6,gS:q,jM:w,Ya:R,videoPlaybackUstreamerConfig:f,Pe:k};n.Ug&&(P.Ug=n.Ug);P.qU=n.qU;P.Xy=X.IH;return P}; nxs=function(n,q){return q?[g.hg(q.info,n)]:[]}; Ls=function(n,q,w){var X=this;this.requestType=n;this.wc=q;this.HQ=w;this.X=null;this.Wb={Ozg:function(){var P;return(P=X.data)==null?void 0:P.isPrefetch}, XN:function(){var P;return(P=X.data)==null?void 0:P.XN}}}; EMh=function(n,q,w){q=oQ(n.wc,wIm(n,q,w),q);n.o8()&&q.set("probe","1");return q}; wIm=function(n,q,w){n.E2===void 0&&(n.E2=n.wc.E2(q,w));return n.E2}; XI0=function(n){var q,w;return((q=n.N)==null?void 0:(w=q.pm)==null?void 0:w.Q_)||0}; PEO=function(n){var q,w;return!!((q=n.N)==null?0:(w=q.pm)==null?0:w.Ma)}; Rmy=function(n){var q={},w=[],X=[];if(!n.data)return q;for(var P=0;P0;r--)w.push(k)}w.length!==c?q.error=!0:(R=w.slice(-R),w.length=P,dIs(q,w,R));break;case 1:dIs(q,oa,bD);break;case 0:gxO(q, q.N&7);w=Sl(q,16);P=Sl(q,16);(w^P)!==65535&&(q.error=!0);q.output.set(q.data.subarray(q.X,q.X+w),q.C);q.X+=w;q.C+=w;break;default:q.error=!0}n.C>n.output.length&&(n.output=new Uint8Array(n.C*2),n.C=0,n.X=0,n.W=!1,n.N=0,n.register=0)}n.output.length!==n.C&&(n.output=n.output.subarray(0,n.C));return n.error?new Uint8Array(0):n.output}; dIs=function(n,q,w){q=UI0(q);w=UI0(w);for(var X=n.data,P=n.output,R=n.C,c=n.register,k=n.N,r=n.X;;){if(k<15){if(r>X.length){n.error=!0;break}c|=(X[r+1]<<8)+X[r]<>=7;e<0;)e=q[(c&1)-e],c>>=1;else c>>=e&15;k-=e&15;e>>=4;if(e<256)P[R++]=e;else if(n.register=c,n.N=k,n.X=r,e>256){c=Y$[e];c+=Sl(n,Au[e]);r=tNy(n,w);k=Ks[r];k+=Sl(n,Oy0[r]);if(yKs&&cw.length&&(n.error=!0);n.register|=(w[X+1]<<8)+w[X]<=0)return gxO(n,w&15),w>>4;for(gxO(n,7);w<0;)w=q[Sl(n,1)-w];return w>>4}; Sl=function(n,q){for(;n.N=n.data.length)return n.error=!0,0;n.register|=n.data[n.X++]<>=q;n.N-=q;return w}; gxO=function(n,q){n.N-=q;n.register>>=q}; UI0=function(n){for(var q=[],w=g.a(n),X=w.next();!X.done;X=w.next())X=X.value,q[X]||(q[X]=0),q[X]++;var P=q[0]=0;w=[];var R=0;X=0;for(var c=1;c7&&(R+=q[c]);for(P=1;P>r&1;k=R<<4|c;if(c<=7)for(r=1<<7-c;r--;)X[r<>=7;c--;){X[r]||(X[r]=-q,q+=2);var e=P&1;P>>=1;r=e-X[r]}X[r]=k}}return X}; VN0=function(n){var q,w,X,P,R,c,k,r,e;return g.b(function(f){switch(f.X){case 1:if(!ajh)throw Error("DecompressionStream is not supported");q=ay.EC();w=new DecompressionStream("gzip");X=w.writable.getWriter();X.write(n);X.close();P=w.readable.getReader();R=new nt([]);case 2:return g.l(f,P.read(),5);case 5:c=f.N;k=c.value;if(r=c.done){f.f5(4);break}R.append(k);f.f5(2);break;case 4:return e=Rb(R),ay.zv("gznb",q,Math.ceil(e.byteLength/16)),f.return(e)}})}; pIu=function(n){MM.call(this,"onesie");this.uS=n;this.N={};this.W=!0;this.C=null;this.queue=new GE(this);this.K={}}; T2x=function(n){var q=n.queue;q.N.length&&q.N[0].isEncrypted&&!q.X&&(q.N.length=0);q=g.a(Object.keys(n.N));for(var w=q.next();!w.done;w=q.next()){w=w.value;var X=n.N[w];if(!X.Tr){var P=n.queue;P.N.push({videoId:X.videoId,formatId:w,isEncrypted:!1});P.X||EM(P)}}}; FQT=function(n,q){var w=q.totalLength,X=!1;switch(n.C){case 0:n.At(q,n.W).then(function(P){var R=n.uS;R.jg("oprr");R.playerResponse=P;R.W4||(R.eM=!1);uD(R)},function(P){n.uS.fail(P)}); break;case 2:n.jg("ormk");q=Rb(q);n.queue.decrypt(q);break;default:X=!0}n.uS.Fq&&n.uS.p5("ombup","id.11;pt."+n.C+";len."+w+(X?";ignored.1":""));n.C=null}; $Ih=function(n,q){var w,X,P,R,c;return g.b(function(k){switch(k.X){case 1:n.uS.jg("oprgz_s");if(!ajh){k.f5(2);break}g.Vy(k,3);return g.l(k,VN0(q),5);case 5:return w=k.N,n.uS.jg("oprgz_n"),k.return(w);case 3:X=g.$u(k),n.uS.p5("gzerr",{impl:"native",err:""+X});case 2:if(P=n.uS.B().qg)try{var r=ay.EC(),e=P.XZ(q),f=P,O=e!=null?e:q,H=O.byteOffset,U=O.byteLength,t=f.exports.getInflatedSize(H,U);if(t===0)throw Error("wasm_gz: bad input");var V=f.malloc(t),T=f.exports.inflateGzip(H,U,V);if(T)throw f.free(V), Error("wasm_gz: fail"+T);var x=new Uint8Array(f.exports.memory.buffer,V,t);e&&P.free(e.byteOffset);var M=P.zq(x);ay.zv("gzwb",r,Math.ceil(M.byteLength/16));R=M;n.uS.jg("oprgz_w");return k.return(R)}catch(h){n.uS.p5("gzerr",{impl:"wasm",err:""+h})}r=ay.EC();e=g.mIT(new g.iys(q));ay.zv("gzjb",r,Math.ceil(e.byteLength/16));c=e;n.uS.jg("oprgz_p");return k.return(c)}})}; vxs=function(n){return new Promise(function(q){setTimeout(q,n)})}; LQu=function(n,q){var w=n.B();w=n.x5&&w.Z("html5_onesie_preload_use_content_owner");var X=n.nW,P=OX(q.NP.experiments,"debug_bandaid_hostname");if(P)q=D0(q,P);else if((w===void 0?0:w)&&(X==null?0:X.url)&&!q.X){var R=bi(new g.Ei(X.url));q=D0(q,R)}else q=(R=q.N.get(0))==null?void 0:R.location.clone();if(q&&n.videoId){R=T7(n.videoId);n=[];if(R)for(R=g.a(R),w=R.next();!w.done;w=R.next())n.push(w.value.toString(16).padStart(2,"0"));q.set("id",n.join(""));return q}}; MNs=function(n,q,w){w=w===void 0?0:w;var X,P;return g.b(function(R){if(R.X==1)return X=[],X.push(q.load()),w>0&&X.push(vxs(w)),g.l(R,Promise.race(X),2);P=LQu(n,q);return R.return(P)})}; xI0=function(n,q,w,X){X=X===void 0?!1:X;n.set("cpn",q.clientPlaybackNonce);n.set("opr","1");var P=q.B();n.set("por","1");P$()||n.set("onem","1");q.startSeconds>0&&n.set("osts",""+q.startSeconds);X||(P.Z("html5_onesie_disable_partial_segments")&&n.set("oses","1"),q=P.Z("html5_gapless_onesie_no_media_bytes")&&ap(q)&&q.x5,w&&!q?(q=w.audio,n.set("pvi",w.video.join(",")),P.Z("html5_onesie_disable_audio_bytes")||n.set("pai",q.join(",")),fJ||n.set("osh","1")):(n.set("oad","0"),n.set("ovd","0"),n.set("oaad", "0"),n.set("oavd","0")))}; DIm=function(n,q,w,X,P){P=P===void 0?!1:P;var R="https://youtubei.googleapis.com/youtubei/"+q.RW.innertubeApiVersion+"/player",c=[{name:"Content-Type",value:"application/json"}];X&&c.push({name:"Authorization",value:"Bearer "+X});c.push({name:"User-Agent",value:g.CV()});g.bp("EOM_VISITOR_DATA")?c.push({name:"X-Goog-EOM-Visitor-Id",value:g.bp("EOM_VISITOR_DATA")}):(w=w.visitorData||g.bp("VISITOR_DATA"))&&c.push({name:"X-Goog-Visitor-Id",value:w});(w=g.bp("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&c.push({name:"X-YouTube-Lava-Device-Context", value:w});(q=OX(q.experiments,"debug_sherlog_username"))&&c.push({name:"X-Youtube-Sherlog-Username",value:q});n=OI(JSON.stringify(n));return{url:R,tq:c,postBody:n,sSq:P,yN:P}}; hmz=function(n,q,w,X,P,R,c){var k=n.t3,r=n.Dg;n=n.r$o;var e=k!==void 0&&r!==void 0,f=X.getVideoData(),O,H=q.N.encryptedClientKey;q=e?q.iv:void 0;e=bY(w.schedule,!0);P=P||!!P$()&&e>1572864;return{innertubeRequest:{uCi:n,Uc:k,Dg:r,encryptedClientKey:H,iv:q,T$p:!0,jE:!0,cS:"DecompressionStream"in window||!P,jY0:w.experiments.BW("html5_use_jsonformatter_to_parse_player_response")},pm:d1u({aH:w,Eq:X,f$:f.startSeconds*1E3}),onesieUstreamerConfig:R,qd:c,Pe:$B(f),reloadPlaybackParams:(O=f.JL)==null?void 0: O.reloadPlaybackParams}}; ljY=function(n,q,w,X,P,R){var c=g.Kt(n,O4s),k;if(!n.yN){(0,g.m$)();if((k=q.N.K)==null)var r=void 0;else a:{var e=q.iv;try{var f=tDh(k,c,e),O=k.N.XZ(e),H=k.N,U=k.W,t=new Uint8Array(H.exports.memory.buffer,H.malloc(32),32);H.exports.Sha256Hmac(U.byteOffset,U.byteLength,O.byteOffset,O.byteLength,f.byteOffset,f.byteLength,t.byteOffset);k.N.free(O.byteOffset);r={SF:k.N.zq(f),signature:k.N.zq(t)};break a}catch(V){g.TQ(Error("ocwceas: wasm encryptAndSign failed: "+V))}r=void 0}r?(k=r.SF,e=r.signature):(r= k=q.encrypt(c),(0,g.m$)(),e=IAY(new cPT(q.N.X),r,q.iv))}return hmz(k&&e?{t3:k,Dg:e}:{r$o:c},q,w,X,!!n.yN,P,R)}; GBT=function(n,q,w,X,P,R){var c,k,r;return g.b(function(e){if(e.X==1)return c=g.Kt(n,O4s),g.l(e,cKh(q,c),2);if(e.X!=3)return k=e.N,g.l(e,IjO(q,k),3);r=e.N;return e.return(hmz({t3:k,Dg:r},q,w,X,!!n.yN,P,R))})}; Qe=function(n,q){g.A.call(this);var w=this;this.Eq=n;this.playerRequest=q;this.logger=new g.il("onesie");this.xhr=null;this.state=1;this.Vy=new k8;this.uT=!1;this.playerResponse="";this.Eg=new sW(this);this.g_=new pIu(this);this.hX="";this.QW=this.SZ=!1;this.lK="";this.enableCompression=this.W4=this.MA=!1;this.Ms=[];this.R6=-1;this.K2=0;this.NP=this.Eq.B();this.videoData=this.Eq.getVideoData();this.Fq=this.NP.uL();this.sX=this.NP.tU;this.S0=new MK(this.sX.N);this.e9=this.NP.Z("html5_onesie_check_timeout"); this.JR=new g.YF(this.RB,500,this);this.RQ=new g.YF(this.Mz,1E4,this);this.bH=new g.YF(function(){if(!w.isComplete()){var X=Bj(w);w.fail(new g.kw("net.timeout",X))}},1E3); this.yf=new g.YF(this.IV,2E3,this);this.b9=this.Eq.jA();this.eM=this.Z("html5_onesie_wait_for_media_availability");g.K(this.videoData,this);g.K(this,this.JR);g.K(this,this.RQ);g.K(this,this.yf);n=He();fJ&&n&&(this.q9=new Map);this.dN=new Map;this.pY=new Map;this.e4=new Map;this.w6=new Map}; Cs=function(n,q){var w;return(w=n.q9)==null?void 0:w.get(q)}; ExO=function(n,q,w){var X;return g.b(function(P){if(P.X==1)return n.jg("oprd_s"),CEh(n)?g.l(P,kBY(n.S0,q,w),3):(X=n.S0.decrypt(q,w),P.f5(2));P.X!=2&&(X=P.N);n.jg("oprd_c");return P.return(X)})}; oxY=function(n){return n.Z("html5_onesie_host_probing")||n.Fq?fJ:!1}; uD=function(n){if(!n.playerResponse)return!1;if(n.MA)return!0;var q=n.videoData.Z("html5_onesie_audio_only_playback")&&V8(n.videoData);if(n.q9&&n.eM){if(!n.q9.has(n.hX))return!1;var w=n.q9.get(n.hX),X;if(X=w){X=!1;for(var P=g.a(w.O8.keys()),R=P.next();!R.done;R=P.next())if(R=w.O8.get(R.value))for(var c=g.a(R.n_),k=c.next();!k.done;k=c.next())k.value.TP>0&&(R.nD?X=!0:q=!0);X=!(q&&X)}if(X)return!1}n.jg("ofr");n.Vy.resolve(n.playerResponse);if(!n.e9){var r;(r=n.bH)==null||r.start();n.RQ.start()}return n.MA= !0}; AKx=function(n){if(n.q9&&!n.Z("html5_onesie_media_capabilities")){n.jg("ogsf_s");var q=etu(n.Eq.getVideoData(),function(X,P){n.p5(X,P)}),w=by0(n.Eq); q.video=XXY(w,q.video);n.jg("ogsf_c");if(q.video.length)return q;n.p5("ombspf","l."+w.X+";u."+w.N+";o."+w.C+";r."+w.reason)}}; CEh=function(n,q){return n.Z("html5_onesie_sync_request_encryption")||(q==null?0:q.yN)||g.tK(n.NP)&&n.Z("html5_embed_onesie_use_sync_encryption")?!1:!!P$()}; Bj=function(n){if(!n.yL)return{};var q=n.yL.wH(),w;q.d=(w=n.yL.HW)==null?void 0:w.IY();q.shost=n.oo;q.ty="o";return q}; YN0=function(n,q){var w,X;(X=(n=(w=n.q9)==null?void 0:w.get(q))==null)||(q=n.C?!1:n.C=!0,X=!q);return!X}; KQu=function(n,q,w,X,P,R,c,k,r,e,f){g.A.call(this);var O=this;this.Eq=n;this.loader=q;this.policy=w;this.audioTrack=X;this.videoTrack=P;this.uo=R;this.CG=c;this.je=k;this.C=r;this.timing=e;this.qP=f;this.N=[];this.K={};this.Ff=this.oH=!1;this.W=this.D0=this.L=this.IH=this.Zz=0;this.V=null;this.vW={qU:[],I6:[]};this.WW={qU:[],I6:[]};this.G=null;this.D=[];this.Wb={Epn:function(){return O.N}, k8P:function(){return O.K}, hRT:function(){O.N.length=0}, gy0:function(){return O.videoData.RH}, KMq:function(){return O.L}, GPn:function(H){O.L=H}, srh:function(H){O.W=H}, xW:function(H){O.G=H}, h0:function(H){O.D=H}}; this.videoData=this.Eq.getVideoData();this.policy.bI&&(this.Tp=new WQ(this.loader,this.policy,this.CG),g.K(this,this.Tp))}; B2y=function(n,q){q=q===void 0?!1:q;if(SNs(n)){n.policy.D&&n.loader.p5("sabrcrq",{create:1});var w=new Ls(0,n.uo.V,n);n.policy.zG>0&&n.W++;q=uiy(n,w,q);n.N.push(q);var X;(X=n.Tp)==null||DTu(X,n.uo.V)}}; JKy=function(n,q){var w=QKs(n);if(n.policy.u7){var X=n.vW;var P=n.WW}else X=Z0(n,n.audioTrack),P=Z0(n,n.videoTrack);var R=[].concat(g.D(X.qU),g.D(P.qU));Ju(n)&&R.push.apply(R,g.D(n.D));var c=[].concat(g.D(X.I6),g.D(P.I6)),k=n.loader.qf();if(n.policy.aj&&!n.videoData.isLivePlayback){var r=n.videoData.lengthSeconds*1E3;w>=r&&n.loader.p5("invalidSabrCmt",{cmt:w,vd:r})}var e,f;r=n.Eq;var O=n.uo,H=n.X,U=n.videoData.RH,t=n.policy,V=n.loader.P4,T=oaO(n.loader)*1E3,x=(e=n.HW)==null?void 0:e.mA;e=(f=n.HW)== null?void 0:f.cM;var M;f=Number((M=n.C.W)==null?void 0:M.info.itag)||0;var h;M=Number((h=n.C.K)==null?void 0:h.info.itag)||0;q={Eq:r,uo:O,qU:R,I6:c,f$:w,nextRequestPolicy:H,T5:U,By:t,BI:V,TU:T,mA:x,cM:e,Zz:n.Zz,isPrefetch:q||n.loader.isSuspended,tV:f,cq:M,NZ:k,aT:n.Eq.D1()};w=n.loader.Yd();R=T7(w);w&&(q.XN=R);if(w=n.Eq.uj())q.Ma=w*1E3;var E;w=n.C;R=w.qP;if(((E=w.By)==null?0:Fd(E))&&!R)for(E=g.a(w.C),c=E.next();!c.done;c=E.next())if(c.value.Va){R=!0;break}E=Fd(w.By)&&!R?[]:umO(w,w.C);q.gS=E;E=n.C; Fd(E.By)&&!E.PW?E=[]:(w=N5s(E),w.length===0&&(w=E.D),E=umO(E,w));q.jM=E;q.Ya=Ju(n)?[n.G]:void 0;n.policy.tE&&(q.w3=Zyz(n.loader,n.audioTrack),q.Ji=Zyz(n.loader,n.videoTrack));if(n.policy.X){E=n.loader.getCurrentTime();X=zE(n,X.qU,E);P=zE(n,P.qU,E);P=Math.min(X,P);Ju(n)&&(X=zE(n,n.D,E),n.Eq.uL()&&X0&&n.N[0].Ck()&&(q.LW=n.N[0].I4());return q}; QKs=function(n){var q,w=n.policy.K&&((q=n.loader)==null?void 0:q.S2());q=n.loader.getCurrentTime()||0;q=zmx(n,q);var X=n.loader.Zj()||0;q+=X;X=Q8(n.videoData)||g.BD(n.videoData);var P=0;w?(X&&(P=Number.MAX_SAFE_INTEGER),n.videoData.PW&&(P=Math.ceil(n.videoData.WW*1E3))):P=Math.ceil(q*1E3);return Math.min(Number.MAX_SAFE_INTEGER,P)}; Ju=function(n){return n.policy.VL&&!!n.G}; zmx=function(n,q){if(n.loader.isSeeking())return q;var w=n.Eq.Ii();if(!w)return q;w=w.Qb();if(w.length===0||KT(w,q))return q;if(!BQ(n.videoTrack,q)&&!BQ(n.audioTrack,q))return n.loader.p5("sundrn",{b:0,lt:q}),q;for(var X=q,P=Infinity,R=0;Rq)){var c=q-w.end(R);c=20)?(n.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),q):X}; zE=function(n,q,w){n=n.loader.Zj()||0;return Wj(q,(w+n)*1E3)/1E3+w}; SNs=function(n){if(n.policy.zG>0){var q=Math.floor((0,g.m$)()/1E4);if(q===n.D0){if(n.W>=n.policy.zG){if(n.W===n.policy.zG){var w={reason:"toomanyrequests"};w.limit=n.W;n.loader.handleError("player.exception",w);n.W+=1}return!1}}else n.D0=q,n.W=0}if(n.loader.isSuspended&&n.loader.Ja)return!1;if(n.PW&&(0,g.m$)()0&&(!n.policy.L||n.N.length!==1||!n.N[0].Ck()))return!1;var X;if(!(q=(X=n.uo.V)==null||!AW(X,n.policy,n.K,n.loader.OI())||Kb(n.audioTrack)&&Kb(n.videoTrack))){if(X= n.policy.X){X=!1;if(n.qP.X===2)X=!0;else if(n.qP.X===3){QKs(n);n.loader.Zj();var P=hA(n.audioTrack,n.loader.isSeeking()).qU;q=hA(n.videoTrack,n.loader.isSeeking()).qU;var R=n.loader.getCurrentTime()||0;P=zE(n,P,R);q=zE(n,q,R);q=Math.min(P,q);R=n.qP;q>=R.K?(R.p5("sdai",{haltrq:q,est:R.K}),q=!0):q=!1;q&&(X=!0)}X&&n.policy.D&&n.loader.p5("sabrcrq",{waitad:1})}q=X}if(q)return!1;n.policy.u7&&(n.vW=Z0(n,n.audioTrack),n.WW=Z0(n,n.videoTrack));if(!n.X)return n.policy.D&&n.loader.p5("sabrcrq",{nopolicy:1}), !0;if(n.Eq.uj())return n.policy.D&&n.loader.p5("sabrcrq",{utc:1}),!0;if(n.C.G)return n.policy.D&&n.loader.p5("sabrcrq",{audio:1}),!0;if(!n.X.targetAudioReadaheadMs||!n.X.targetVideoReadaheadMs)return n.policy.D&&n.loader.p5("sabrcrq",{noreadahead:1}),!0;if(n.policy.K&&n.loader.S2())return n.policy.D&&n.loader.p5("sabrcrq",{seekToHead:1}),!0;X=Math.min(Nb(n.loader,n.audioTrack)*1E3,n.X.targetAudioReadaheadMs);q=Math.min(Nb(n.loader,n.videoTrack)*1E3,n.X.targetVideoReadaheadMs);var c=Math.min(X,q); R=o_(n.audioTrack,!0)*1E3;P=o_(n.videoTrack,!0)*1E3;var k=n.Eq.getCurrentTime()*1E3;if(n.policy.u7){var r=Wj(n.vW.qU,k);var e=Wj(n.WW.qU,k)}else r=R,e=P;var f=rq||X>=0&&P.Rc>X+1)break;w=Math.max(w,P.startTimeMs+P.durationMs);X=Math.max(X,P.LL)}return Math.max(0,w-q)}; uiy=function(n,q,w){var X={CG:n.CG,Fv:function(r,e){n.Eq.JY(r,e)}, DN:n.policy.JL,TD:n.policy.C};n.CG.X.D&&(X.jT=(n.videoTrack.N.info.ED||0)+(n.audioTrack.N.info.ED||0));n.policy.qg&&(X.W_=n.audioTrack.N.index.Oy(),X.DN=!1);var P=wIm(q,n.policy,n.K)?2:1;P!==n.L&&(n.L=P,N2z(n));w=JKy(n,w);if(n.policy.L&&n.policy.C&&w.T5){for(var R=P="",c=g.a(w.T5),k=c.next();!k.done;k=c.next())k=k.value,n.videoData.sabrContextUpdates.has(k)||n.policy.L&&w.LW&&w.LW.type===k?P+="_"+k:R+="_"+k;n.loader.p5("sabrbldrqs",{ctxts:P,misctxts:R})}!q.setData(w,n.policy,n.K)&&n.policy.L&&n.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);X=new b7(n.policy,q,n.uo,n.K,n,X,n.loader.jA());AM(n.timing);n.policy.D&&n.loader.p5("sabrcrq",{rn:X.Dk(),probe:q.o8()});return X}; nw=function(n,q){if(q.zp()||n.zp())n.policy.Wr||(n.policy.K?NK(n.loader):n.loader.Wy());else{if(n.policy.C&&q.isComplete()&&q instanceof b7){var w=n.loader,X=w.p5,P,R,c=Object.assign(q.yL.wH(),{rst:q.state,strm:q.xhr.Ib(),d:(P=q.yL.HW)==null?void 0:P.IY(),cncl:q.xhr&&q.lS.W?1:0,rqb:q.Oa,cwt:q.hA,swt:(R=q.Vt)==null?void 0:R.Gf});P=Object.assign(Rmy(q.info),c);X.call(w,"rqs",P)}if(q.isComplete()&&q.o8()&&q instanceof b7)n.policy.sD?q.qS()?(q.dispose(),n.N.length===0?n.loader.Wy():(n=n.N[0],n instanceof b7&&n.Kz()&&n.Sw())):q.Kq()&&n.loader.handleError(q.Kx(),q.oG()):(q.dispose(),n.loader.Wy());else{if(q.NS())q instanceof b7&&zts(n.timing,q),N2z(n),nI3(n);else if(q.Kq())w=n.Eq.uj(),q instanceof b7&&PEO(q.info)&&w&&n.loader.q5(w),q instanceof Qe?n.N.pop():(w=1,q.canRetry()&&Ia(n.loader)&&(qOs(n,q),w=0),n.loader.handleError(q.Kx(),q.oG(),w));else{if(n.loader.isSuspended&&!q.isComplete())return;nI3(n)}q.zp()||q instanceof Qe||(q.isComplete()?w=G73(q,n.policy,n.K):(w=lbz(q,n.policy,n.K),w===1&&(n.oH= !0)),w!==0&&(X=new Ls(1,q.info.wc),X.E2=w===2,uiy(n,X)));n.policy.YE&&!q.isComplete()?Ra(n.loader):n.loader.Wy()}}}; nI3=function(n){for(;n.N.length&&n.N[0].eZ(n.Fg());){var q=n.N.shift();wDs(n,q)}n.N.length&&wDs(n,n.N[0])}; wDs=function(n,q){q instanceof b7&&(n.n5=q);var w=new Set(q.h4(n.Fg()));w=g.a(w);for(var X=w.next();!X.done;X=w.next()){var P=X.value;if(!(X=!(q instanceof Qe))){X=n.C;var R=X.uo.T9,c=vj(X.videoInfos,R);R=WRs(X,P,R);var k=c.includes(P);!X.By.vk||R||k||X.loader.p5("sabrcpf",{fid:""+P,vfids:""+c.join("."),said:X.V||""});X=R||c.includes(P)}if(X&&(X=q.bJ(P,n.Fg()),c=n.policy.VL&&CT(X[0].N.info.mimeType),q.iU(P,n.Fg())))for(P=q.bX(P,n.Fg()),P=g.a(P),R=P.next();!R.done;R=P.next())if(R=R.value,n.policy.C&& q instanceof Qe&&n.loader.p5("omblss",{s:R.info.XR()}),c)k=n.timing,k.qP||(k.qP=(0,g.m$)(),g.CK("fcb_r",k.qP,k.N)),k=n,k.videoData.T9()&&k.G&&YM(k.G)===YM(g.hg(R.info.N.info,k.uo.T9))&&k.Eq.publish("sabrCaptionsDataLoaded",R,k.h0.bind(k));else{k=R.info.N.info.nD();var r=R.info.N;if(k){var e=void 0;var f=n.C,O=(e=q.iG(n.Fg()))==null?void 0:e.token;f.G&&r!==f.K?e=!0:(f.G=!1,r!==f.K&&(f.K=r,f.Ql(r,f.audioTrack,O)),e=!1);if(e)continue}else e=void 0,SX6(n.C,r,(e=q.iG(n.Fg()))==null?void 0:e.token);e=k? n.audioTrack:n.videoTrack;q instanceof Qe&&(e.G=!1,q instanceof Qe&&(k?Kfh(n.timing):Yws(n.timing)));try{Dn(e,X,R)}catch(H){R=jS(H),n.loader.handleError(R.errorCode,R.details,R.severity),e.Q5(),n.n8(!1,"pushSlice"),NK(n.loader)}}}}; qOs=function(n,q){n.policy.L?n.N.splice(n.N.indexOf(q)).forEach(function(w){w.dispose()}):(n.N.pop(),q==null||q.dispose())}; XDs=function(n,q,w){for(var X=[],P=0;P0)for(var q=g.a(n.videoData.sabrContextUpdates.keys()),w=q.next();!w.done;w=q.next()){w=w.value;var X=void 0;((X=n.videoData.sabrContextUpdates.get(w))==null?0:X.sendByDefault)&&n.videoData.RH.add(w)}if(n.policy.L&&n.N.length)for(q=g.a(n.N),w=q.next();!w.done;w=q.next())(w=w.value.I4())&&w.type&&w.sendByDefault&&n.videoData.RH.add(w.type)}; Pfu=function(n){n.policy.JU&&(n.HW=void 0,n.Zz=0)}; Rg3=function(n,q){if(q.Kq()||q.zp()){var w=n.loader,X=w.p5,P=q.state;n=n.Fg();var R,c;if((q=(R=q.q9)==null?void 0:R.get(n))==null)q=void 0;else{R=0;n=q.h4();for(var k=0;k=q.mediaTime&&g.Z(n.Eq.getPlayerState(),8)?(q.resolve([q.mediaTime,q.id]),n.N.delete(q.id)):(q.delay.dispose(),q.delay=new g.YF(function(){rHO(n,q)},(q.mediaTime-w)*1E3/n.Eq.getPlaybackRate()),q.delay.start())}; f4u=function(n,q,w,X){var P=this;this.C=n;this.cpn=q;this.Eq=w;this.N=X;this.X=new Map;this.K=new Map;this.G=this.V=NaN;this.D=!1;this.R0="";this.isSeeking=!1;this.L=0;this.W=new I4z(w);this.M9=w.M9;this.Eq.subscribe("SEEK_TO",function(){P.IQ()}); this.Eq.subscribe("SEEK_COMPLETE",function(){egm(P)})}; iZs=function(n,q){if(!n.isSeeking&&n.L!==q&&!isNaN(n.V)){n.L=q;var w=n.D?n.G:n.C.NL(q);(w!==n.G||n.D)&&OZy(n,w,q)}}; OZy=function(n,q,w){var X=n.X.get(q),P=n.C.getStartTime(q),R=n.C.getDuration(q);n.D=!1;n.G=q;var c=P,k;((k=X==null?void 0:X.N)!=null?k:[n.cpn]).forEach(function(r,e){var f;e=(f=X==null?void 0:X.X[e])!=null?f:R;w>=c&&wP?djx(n,R,n.X.get(R)):R===P&&djx(n,R,n.X.get(R),X-n.C.getStartTime(R))})}; HZY=function(n,q,w,X){q!==n.R0&&(n.Eq.p5("ssevt",{tag:n.N===0?"sstd-cr":n.N===1?"sstd-tm":n.N===2?"sstd-poll":n.N===3?"sstd-poll100":"sstd-unknown",ad:n.cpn!==q,cpn:q,st:w.toFixed(3),late:Math.round(n.isSeeking?0:(X-w)*1E3)}),n.R0=q)}; gIu=function(n){var q=g.a(n.split("."));n=q.next().value;q=q.next().value;return[Number(n),q]}; tFs=function(n,q,w,X){w=q+"."+w;n.K.has(q)?n.K.get(q).push(w):n.K.set(q,[w]);n.N===1&&jpO(n.W,X,w).then(function(P){var R=g.a(P);P=R.next().value;R=R.next().value;R=g.a(gIu(R));R.next();R=R.next().value;HZY(n,R,P,kOs(n.W))}); n.N===0&&(n.M9.lF("transitiondetector",w),q=(X+n.Eq.Zj())*1E3,n.M9.Zf([new g.og(q,q+5E3,{id:w,namespace:"transitiondetector",priority:9})]))}; mjO=function(n,q,w,X,P){this.loader=n;this.policy=q;this.schedule=w;this.XD=X;this.L=P;this.qP=NaN;this.X=this.G=this.W=null;this.N=this.K=this.D=this.startTimeSecs=NaN;this.C=!1;this.V=NaN}; yHx=function(n,q,w,X,P,R){return q.Xa&&q.aS&&w===3?new mjO(n,q,X,P,R):null}; a4y=function(n,q){if(n.policy.HI){var w=q.info.ED,X=bY(n.schedule);q=q.index.Oy();w=Math.max(1,X/w);n.V=Math.round(Math.max(((w-1)*q+n.policy.tU)/w,q-n.policy.XI)*1E3)}}; TYO=function(n,q){var w=Date.now()/1E3,X=w-n.startTimeSecs,P=w-n.D,R=P>=n.policy.rC,c=!1;if(R){var k=0;!isNaN(q)&&q>n.K&&(k=q-n.K,n.K=q);k/P=n.policy.XI&&!n.C;if(!R&&!w&&VFz(n,q))return NaN;w&&(n.C=!0);a:{X=c;w=(0,g.m$)()/1E3-(n.XD.gq()||0)-n.G.N-n.policy.tU;R=n.X.startTime;w=R+w;if(X){if(isNaN(q)){qC(n,NaN,"n",q);R=NaN;break a}X=q-n.policy.Ah;X0&&(k.headers=r);R&&(k.onFinish=R);return Object.keys(k).length>1? k:null}; GOT=function(n,q,w,X,P,R,c,k){qg()&&w.token&&(n=WA(n,{ctt:w.token,cttype:w.Mq,mdx_environment:w.mdxEnvironment}));X.Z("net_pings_low_priority")&&(q||(q={}),q.priority="low");R||k&&X.Z("nwl_skip_retry")?(q==null?q={}:Dju(n,X.Z("html5_assert_cpn_with_regex")),c?bd().sendAndWrite(n,q):bd().sendThenWrite(n,q,k)):q?(Dju(n,X.Z("html5_assert_cpn_with_regex")),kus(n,q)):g.LH(n,P)}; Cfm=function(n){for(var q=[],w=0;w0&&w>0&&!n.X&&n.C<1E7)try{n.W=n.K({sampleInterval:q,maxBufferSize:w});var X;(X=n.W)==null||X.addEventListener("samplebufferfull",function(){return g.b(function(P){if(P.X==1)return g.l(P,n.stop(),2);bZ6(n);g.yy(P)})})}catch(P){n.X=oIs(P.message)}}; XS=function(n,q){var w,X;return!!((w=window.h5vcc)==null?0:(X=w.settings)==null?0:X.set(n,q))}; YOs=function(){var n,q,w,X=(n=window.h5vcc)==null?void 0:(q=n.settings)==null?void 0:(w=q.getPersistentSettingAsString)==null?void 0:w.call(q,"cpu_usage_tracker_intervals");if(X!=null){var P;n=(P=JSON.parse(X))!=null?P:[];P=n.filter(function(e){return e.type==="total"}).map(function(e){return e.seconds}); q=g.a(AHz);for(w=q.next();!w.done;w=q.next())w=w.value,P.indexOf(w)===-1&&n.push({type:"total",seconds:w});var R,c;(R=window.h5vcc)==null||(c=R.settings)==null||c.set("cpu_usage_tracker_intervals_enabled",1);var k,r;(k=window.h5vcc)==null||(r=k.settings)==null||r.set("cpu_usage_tracker_intervals",JSON.stringify(n))}}; KBh=function(){var n=window.H5vccPlatformService,q="";if(n&&n.has("dev.cobalt.coat.clientloginfo")&&(n=n.open("dev.cobalt.coat.clientloginfo",function(){}))){var w=n.send(new ArrayBuffer(0)); w&&(q=String.fromCharCode.apply(String,g.D(new Uint8Array(w))));n.close()}return q}; g.cC=function(n){g.A.call(this);var q=this;this.provider=n;this.logger=new g.il("qoe");this.N=new Map;this.sequenceNumber=1;this.PW=NaN;this.jP="N";this.V=this.pA=this.xz=this.qP=this.X=0;this.YE=this.n5=this.D=this.Ff="";this.JU=this.D0=NaN;this.sD=0;this.KG=-1;this.tU=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.AK=this.isEmbargoed=this.HW=this.isOffline=this.isBuffering=!1;this.VL=[];this.L=null;this.qe=this.W=this.Ne=this.G=!1;this.C=-1;this.oH=!1;this.iS=new g.YF(this.k7,750,this);this.BM= this.adCpn=this.WW=this.contentCpn="";this.adFormat=void 0;this.KV=0;this.RH=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.aS=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Me=!1;this.ej=NaN;this.Tp=0;this.nM=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.KM=!1;this.N7=new Set;this.Wb={Wk:function(X){q.Wk(X)}, jjo:function(){return q.K}, hh:function(){return q.contentCpn}, lzp:function(){return q.WW}, reportStats:function(){q.reportStats()}, cTh:function(){return q.N.get("cat")||[]}, EV:function(X){return q.N.get(X)||[]}, aHe:function(){return q.N}, wih:function(){return 0}, ATW:function(){return{adCpn:q.adCpn,BM:q.BM,adFormat:q.adFormat}}}; this.vW=this.provider.NP.Z("html5_qoe_relaxed_reporting");var w=g.Jv(this.provider.NP.experiments,"html5_qoe_proto_mock_length");w&&!PC.length&&(PC=Cfm(w));g.K(this,this.iS);try{navigator.getBattery().then(function(X){q.L=X})}catch(X){}g.RI(this,0,"vps",["N"]); n.NP.uL()&&(this.Tp=(0,g.m$)(),this.ej=g.jz(function(){var X=(0,g.m$)(),P=X-q.Tp;P>500&&q.p5("vmlock",{diff:P.toFixed()});q.Tp=X},250)); this.provider.videoData.mK&&(this.remoteControlMode=SOu[this.provider.videoData.mK]||0);this.provider.videoData.IW&&(w=rD0(this.provider.videoData.IW),w==null?0:w.length)&&(this.remoteConnectedDevices=w);n.NP.uL()&&(this.je=new vIT,g.K(this,this.je));w=g.Jv(n.NP.experiments,"html5_js_self_profiler_sample_interval_ms");n=g.Jv(n.NP.experiments,"html5_js_self_profiler_max_samples");w>0&&n>0&&(this.IH=new wp(w,n),g.K(this,this.IH))}; II=function(n,q,w){var X=n.N.get(q);X?X.push(w):n.N.set(q,[w])}; g.RI=function(n,q,w,X){II(n,w,q.toFixed(3)+":"+X.join(":"))}; uls=function(n,q){var w=n.adCpn||n.provider.videoData.clientPlaybackNonce,X=n.provider.getCurrentTime(w);g.RI(n,q,"cmt",[X.toFixed(3)]);w=X=n.provider.v_(w);if((!n.K||n.provider.NP.Z("html5_shorts_gapless_no_gllat")&&ap(n.provider.videoData)?0:w*1E3>n.K.AA+100)&&n.K){var P=n.K;w=P.isAd;X=X*1E3-P.AA;n.l3=q*1E3-P.fFP-X-P.Sje;P=(0,g.m$)()-X;q=n.l3;X=n.provider.videoData;var R=X.isAd();if(w||R){R=(w?"ad":"video")+"_to_"+(R?"ad":"video");var c={};X.D&&(c.cttAuthInfo={token:X.D,videoId:X.videoId});c.startTime= P-q;V6(R,c);g.a1({targetVideoId:X.videoId,targetCpn:X.clientPlaybackNonce},R);y6("pbs",P,R)}else P=n.provider.Eq.mL(),P.D!==X.clientPlaybackNonce?(P.K=X.clientPlaybackNonce,P.X=q):X.FQ()||g.TQ(new g.b4("CSI timing logged before gllat",{cpn:X.clientPlaybackNonce}));n.p5("gllat",{l:n.l3.toFixed(),prev_ad:+w});delete n.K}}; rp=function(n,q){q=q===void 0?NaN:q;q=q>=0?q:g.kW(n.provider);var w=n.provider.Eq.r7(),X=w.Qz-(n.D0||0);X>0&&g.RI(n,q,"bwm",[X,(w.BE-(n.JU||0)).toFixed(3)]);isNaN(n.D0)&&w.Qz&&n.isOffline&&n.Wk(!1);n.D0=w.Qz;n.JU=w.BE;isNaN(w.bandwidthEstimate)||g.RI(n,q,"bwe",[w.bandwidthEstimate.toFixed(0)]);n.provider.NP.uL()&&Object.keys(w.N).length!==0&&n.p5("bwinfo",w.N);if(n.provider.NP.uL()||n.provider.NP.Z("html5_log_meminfo"))X=FB3(),Object.values(X).some(function(R){return R!==void 0})&&n.p5("meminfo", X); if(n.provider.NP.uL()){var P;(X=(P=n.je)==null?void 0:LB3(P))&&Object.values(X).some(function(R){return R!=null})&&n.p5("cpuinfo",X)}n.IH&&n.p5("jsprof",n.IH.flush()); n.L&&g.RI(n,q,"bat",[n.L.level,n.L.charging?"1":"0"]);P=n.provider.Eq.getVisibilityState();n.KG!==P&&(g.RI(n,q,"vis",[P]),n.KG=P);uls(n,q);(P=BYs(n.provider))&&P!==n.sD&&(g.RI(n,q,"conn",[P]),n.sD=P);Qp3(n,q,w)}; Qp3=function(n,q,w){if(!isNaN(w.bR)){var X=w.bR;w.X96E3&&(new g.YF(n.reportStats,0,n)).start()}}; zgu=function(n){n.provider.videoData.x5&&jf(n,"prefetch");n.provider.videoData.KM&&n.p5("reload",{r:n.provider.videoData.reloadReason,ct:n.provider.videoData.KM});n.provider.videoData.Ne&&jf(n,"monitor");n.provider.videoData.isLivePlayback&&jf(n,"live");fJ&&jf(n,"streaming");n.provider.videoData.mK&&n.p5("ctrl",{mode:n.provider.videoData.mK},!0);if(n.provider.videoData.IW){var q=n.provider.videoData.IW.replace(/,/g,"_");n.p5("ytp",{type:q},!0)}n.provider.videoData.g0&&(q=n.provider.videoData.g0.replace(/,/g, "."),n.p5("ytrexp",{ids:q},!0));q=n.provider.videoData;var w=n.provider.NP.Z("enable_white_noise")||n.provider.NP.Z("enable_webgl_noop"),X=g.GO(q)||g.Z4(q)||g.JH(q)||g.zO(q);(w||X)&&(w=(0,g.sy)())&&n.N.set("gpu",[w]);jd(n.provider.videoData)&&g.RI(n,g.kW(n.provider),"dt",["1"]);n.provider.Z("html5_record_is_offline_on_playback_attempt_start")&&q.cotn&&!jd(q)&&n.Wk(!0);n.provider.NP.uL()&&(q=(0,g.m$)()-n.provider.NP.zG,n.p5("playerage",{secs:Math.pow(1.6,Math.round(Math.log(q/1E3)/Math.log(1.6))).toFixed()})); n.W=!0;n.PW=g.jz(function(){n.reportStats()},1E4)}; NYu=function(n,q,w){var X=g.kW(n.provider);WBy(n,X,q,0,w);rp(n,X);JHx(n)}; WBy=function(n,q,w,X,P){var R=n.provider.NP.N.cbrver;n.provider.NP.N.cbr==="Chrome"&&/^96[.]/.test(R)&&w==="net.badstatus"&&/rc\.500/.test(P)&&nE6(n,3);n.provider.NP.Z("html5_use_ump")&&/b248180278/.test(P)&&nE6(n,4);R=n.provider.getCurrentTime(n.adCpn||n.provider.videoData.clientPlaybackNonce);X=X===1?"fatal":"";w=[w,X,R.toFixed(3)];X&&(P+=";a6s."+uk());P&&w.push(qJu(P));g.RI(n,q,"error",w);n.W=!0}; waz=function(n,q){var w=g.kW(n.provider);if(!n.provider.NP.experiments.BW("html5_refactor_sabr_video_format_selection_logging")||q.N.id!==n.Ff){var X=[q.N.id,q.X,n.Ff,q.reason];q.token&&X.push(q.token);g.RI(n,w,"vfs",X);n.Ff=q.N.id;X=n.provider.Eq.getPlayerSize();if(X.width>0&&X.height>0){X=[Math.round(X.width),Math.round(X.height)];var P=g.ON();P>1&&X.push(P);g.RI(n,w,"view",X)}n.Ne||(n.provider.NP.uL()&&jf(n,"rqs2"),n.provider.videoData.N&&$T(n.provider.videoData.N)&&n.N.set("preload",["1"]));n.Ne= !0;n.W=!0}q.reason==="m"&&++n.KV===100&&nE6(n,2);g.RI(n,w,"vps",[n.jP]);n.vW||n.reportStats(w)}; Xaz=function(n){n.C>=0||(n.provider.NP.hJ||n.provider.Eq.getVisibilityState()!==3?n.C=g.kW(n.provider):n.oH=!0)}; PRT=function(n,q,w){if(n.provider.NP.experiments.BW("html5_refactor_sabr_audio_format_selection_logging")){q=w.N;var X=[q.audio&&q.video?q.Jw?q.Jw:"":q.id];q.Va&&q.Va.id&&X.push(q.Va.id);q=X.join(";");q!==n.D&&(X=[q,n.D,w.reason],w.token&&X.push(w.token),g.RI(n,g.kW(n.provider),"afs",X),n.D=q)}else w.N.id!==n.D&&(X=[w.N.id,n.D,w.reason],w.token&&X.push(w.token),g.RI(n,q,"afs",X),n.D=w.N.id)}; jf=function(n,q){II(n,"cat",q)}; Rxy=function(n,q,w,X,P){var R=g.kW(n.provider);q!==1&&q!==3&&q!==5||g.RI(n,R,"vps",[n.jP]);II(n,"xvt","t."+R.toFixed(3)+";m."+P.toFixed(3)+";g.2;tt."+q+";np.0;c."+w+";d."+X)}; nE6=function(n,q){n.qe||(II(n,"fcnz",""+q),n.qe=!0)}; qJu=function(n){/[^a-zA-Z0-9;.!_-]/.test(n)&&(n=n.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return n}; g.fw=function(n,q,w,X,P,R,c,k,r,e){k=k===void 0?!1:k;g.A.call(this);var f=this;this.Eq=n;this.schedule=q;this.policy=w;this.uo=X;this.vW=r;this.N7=e;this.K5=null;this.D0=this.Ff=this.n5=this.PW=0;this.UN=this.Ja=this.isSuspended=!1;this.RH="";this.aS={};this.nM=NaN;this.Me=0;this.qP=null;this.ej=this.IH=!1;this.P4=0;this.Ne=!1;this.Tp=this.qe=0;this.JU=null;this.zH=function(){return f.Eq.zH()}; this.timing=new AWY(this.N7);this.V=new Ak(this.schedule,this.policy);this.sD=new g.YF(this.Wy,0,this);this.YE=new g.YF(this.Wy,this.policy.YE,this);this.rr=new g.YF(this.Wy,1E3,this);this.VL=new g.YF(this.Wy,void 0,this);this.je=new g.YF(function(){f.isSuspended||f.Wy()},1E4,this); this.KG=new g.YF(this.rzq,250,this);this.D=this.currentTime=NaN;this.ZD=new LJ(5);this.WW=this.timestampOffset=NaN;this.logger=new g.il("dash");this.iS=Infinity;this.Wb={getAudioTrack:function(){return f.audioTrack}, Hzg:function(){return f.videoTrack}, getManifest:function(){return f.uo}, piW:function(){return f.X}, Wy:function(){f.Wy()}, qZ:function(){f.PW=0;f.qZ()}, JDe:function(H){return ef(f,f.videoTrack,f.K5.X,H)}}; n=r&&r.h4();r&&(l1u(r,this.uo,this.policy),this.WW=Date.now());this.N=new XC(this,this.V,w,this.uo,P,n);w=OS6(this.N,R,c&&c.id);this.audioTrack=new vQ(this,this.policy,w.audio,this.timing);this.videoTrack=new vQ(this,this.policy,w.video,this.timing);this.videoTrack.W.WW=this.audioTrack.Qs();this.oH={updateend:this.Vq,error:this.cgf};g.K(this,this.sD);g.K(this,this.YE);g.K(this,this.rr);g.K(this,this.VL);g.K(this,this.je);w=this.policy.p_&&this.policy.fO?!MVY(this.videoTrack.N.info):!1;this.tU=$cs({qT:this.policy.G.qT|| w,fO:this.policy.fO&&!w,Nd:this.policy.Nd});this.G=yHx(this,this.policy,this.tU,this.schedule,this.ZD,function(H,U){return cEx(f,H,U)}); this.C=new YB(this,this.uo,this.policy,this.videoTrack,this.audioTrack,k);this.policy.qe&&this.policy.X&&(this.HW=new IvY(function(H,U){f.p5(H,U)})); this.Gw=new Q3(this,this.uo,this.videoTrack,this.audioTrack,this.policy);k=this.policy.N$?this.Eq.getVideoData().lE:null;this.K=new N9(this,this.policy,this.videoTrack,this.audioTrack,this.aS,this.C,this.timing,this.V,this.schedule,this.uo,this.N,this.G,w,k);g.K(this,this.K);this.W=new rc(this,this.policy,this.videoTrack,this.audioTrack,this.uo,P,V8(this.Eq.getVideoData()),c==null?void 0:c.id);g.K(this,this.W);ZJs(this.W,R);this.X=new KQu(this.Eq,this,this.policy,this.audioTrack,this.videoTrack,this.uo, this.schedule,this.N,this.W,this.timing,this.C);g.K(this,this.X);this.L=this.Eq.Tk.x9.Jm;this.policy.K||Ips(this);if(this.policy.k6){var O;this.AK=new f4u(this.videoTrack.N.index,(O=this.Eq.getVideoData().clientPlaybackNonce)!=null?O:"",this.Eq,this.policy.Ne);this.policy.Ne===3&&(this.KM=new g.YF(this.US,200,this),this.KM.start(),g.K(this,this.KM))}this.logger.debug("Created")}; Ips=function(n){var q,w;if((q=n.L)==null?0:(w=q.z6)==null?0:w.itagDenylist){var X;n.g2((X=n.L)==null?void 0:X.z6.itagDenylist)}var P;if((P=n.L)==null?0:P.playbackStartPolicy){var R,c;zP(n.policy,(R=n.L)==null?void 0:R.playbackStartPolicy,3,(c=n.L)==null?void 0:c.Dk())}if(n.policy.Hr){q=n.Fg();var k;(w=q?(k=n.L)==null?void 0:k.pY.get(q):void 0)&&n.X.T8(w)}if(!n.uo.L){var r;k=(r=n.L)==null?void 0:r.z_;(k==null?0:k.g7)&&(k==null?0:k.Rd)&&n.uo.T9&&SR(n.uo,k.g7,k.Rd)}var e;((e=n.L)==null?0:e.w6)&&(r=n.L.w6.get(n.Fg()|| ""))&&n.uo&&r.formatId&&(n=n.uo.C.get(YM(r.formatId)))&&(n.info.debugInfo=r.debugInfo)}; kYy=function(n,q){var w=YM(g.hg(q.N.info,n.uo.T9)),X,P=((X=n.vW)==null?void 0:X.bJ(w))||[];if(P.length===0)return n.p5("ombmsi",{}),!1;P=new wl(P);if(X=!n.policy.PW||isFinite(n.getCurrentTime())||n.Eq.uj()){a:{X=n.getCurrentTime();P=g.a(P.Se);for(var R=P.next();!R.done;R=P.next())if(R=R.value,R.type===3&&X>=R.W&&X<=R.D){X=!0;break a}X=!1}X=!X}if(X)return n.p5("ostmf",{ct:n.getCurrentTime(),a:q.N.info.nD()}),!1;(n=n.vW)!=null&&(n.O8.get(w).J1=!0);return!0}; rEz=function(n){if(!n.uo.T9)return!0;var q=n.Eq.getVideoData();if(n.Eq.In())return n.p5("ombpa",{}),!1;var w,X;if(!!((w=n.L)==null?0:(X=w.z_)==null?0:X.Fgp)!==n.uo.Tz)return n.p5("ombplmm",{}),!1;w=q.Me||q.liveUtcStartSeconds||q.N7;if(n.uo.Tz&&w)return n.p5("ombplst",{}),!1;if(n.uo.L)return n.p5("ombab",{}),!1;w=Date.now();return ul(n.uo)&&!isNaN(n.WW)&&w-n.WW>n.policy.cA*1E3?(n.p5("ombttl",{}),!1):n.uo.vX&&n.uo.W||!n.policy.RJ&&n.uo.isPremiere||lf(q)!==0&&!n.policy.N||q.Z("html5_disable_onesie_media_for_mosaic")&& rw(q)||q.M7()&&!q.Z("html5_enable_onesie_media_for_lifa")&&q.isDaiEnabled()&&q.enableServerStitchedDai||q.Z("html5_disable_onesie_media_for_lifa_eligible")&&kE(q)?!1:!0}; joO=function(n,q){var w=q.N,X=n.uo.T9;if(rEz(n))if(n.vW&&n.vW.O8.has(YM(g.hg(w.info,X)))){if(X=YM(g.hg(w.info,X)),kYy(n,q)){var P=new wl(n.vW.bJ(X)),R=function(c){try{if(c.Kq())n.handleError(c.Kx(),c.oG()),Yg(q,c),Px(c.info)&&Xz(n.K,q,w,!0),n.Wy();else if(Pj(n.K,c)){var k;(k=n.C)==null||wx0(k,c.info,n.qP);n.Wy()}}catch(r){c=jS(r),n.handleError(c.errorCode,c.details,c.severity),n.Q5()}}; w.C=!0;XB(P)&&(xg(q,new Zf(n.policy,X,P,n.vW,R)),AM(n.timing))}}else n.p5("ombfmt",{})}; soT=function(n,q){q=q||n.videoTrack&&n.videoTrack.X&&n.videoTrack.X.startTime||n.getCurrentTime();var w=cj,X=n.videoTrack,P=n.N;q=P.nextVideo&&P.nextVideo.index.NL(q)||0;P.WW!==q&&(P.Tp={},P.WW=q,PQ(P,P.N));q=!P.N.isLocked()&&P.L>-1&&(0,g.m$)()-P.Lq.N&&q.reason==="b";X||P||w?(n.Eq.XP({reattachOnConstraint:X?"u":P?"drm":"perf",lo:q.X,up:q.N}),n.policy.V$||(n.W.N.X=!1)):(n.policy.V$&&(n.W.N.X=!1),NK(n))}}else if(!iSO(n.N,q)&&n.videoTrack){n.logger.debug(function(){return"Setting constraint: r="+q.reason+" u="+q.N}); w=n.N.N;dVz(n,UcO(n.N,q));soT(n);X=q.isLocked()&&q.reason==="m"&&n.N.PW;P=n.policy.zT&&q.reason==="l"&&SJ(n.videoTrack);w=w.N>q.N&&q.reason==="b";var R=n.N.oH&&!N8();X||P||w||R?n.Eq.XP({reattachOnConstraint:X?"u":P?"drm":R?"codec":"perf"}):NK(n)}}; mVz=function(n,q,w){if((!n.K5||wd(n.K5)&&!n.policy.Co)&&!n.Gw.isSeeking()&&(n.policy.N||SJ(q)&&q.N.CD()&&n.N.qP)){var X=n.getCurrentTime()+OQs(n.V,q,w);n.logger.debug(function(){return"Clearing back to "+X.toFixed(3)}); tCY(q,X)}}; dVz=function(n,q){q&&(n.logger.debug(function(){return"Logging new format: "+on(q.video.info)}),yEu(n.Eq,new zt(q.video,q.reason))); if(n.N.IH){var w=mcx(n.N,"a");n.Eq.ZO(new zt(w.audio,w.reason))}}; NK=function(n){g.K9(n.sD)}; Ra=function(n){n.policy.YE&&n.policy.Nd&&Math.min(UT6(n.videoTrack),UT6(n.audioTrack))*1E3>n.policy.nP?g.K9(n.YE):n.Wy()}; aps=function(n,q){var w=(0,g.m$)()-q,X=o_(n.audioTrack,!0)*1E3,P=o_(n.videoTrack,!0)*1E3;n.logger.debug(function(){return"Appends paused for "+w}); if(n.policy.C&&(n.p5("apdpe",{dur:w.toFixed(),abuf:X.toFixed(),vbuf:P.toFixed()}),JA(n.policy))){var R=SO(n.V);n.p5("sdps",{ct:q,ah:X.toFixed(),vh:P.toFixed(),mr:u9(n.V,n.UN,R),bw:R.toFixed(),js:n.isSeeking(),re:+n.UN,ps:(n.policy.vj||"").toString(),rn:(n.policy.Mw||"").toString()})}}; VdO=function(n){if(VCu(n.videoTrack))return n.logger.debug("Pausing appends for server-selectable format"),"ssf";if(n.policy.Ff&&QC(n.videoTrack)&&QC(n.audioTrack))return"updateEnd";if(Kb(n.audioTrack)||Kb(n.videoTrack)&&n.videoTrack.N.info.L5!=="f")return"";if(n.Gw.isSeeking()){var q=n.V;var w=n.videoTrack;var X=n.audioTrack;if(q.policy.N){var P=q.policy.yK;JA(q.policy)&&(P=u9(q,!1,SO(q)));q=P;w=o_(X,!0)>=q&&o_(w,!0)>=q}else w.C.length||X.C.length?(P=w.N.info.ED+X.N.info.ED,P=10*(1-SO(q)/P),q=Math.max(P, q.policy.yK),w=o_(X,!0)>=q&&o_(w,!0)>=q):w=!0;if(!w)return"abr";w=n.videoTrack;if(w.C.length>0&&w.W.X.length===1&&Blm(w.W).info.V360);X=JA(n.policy)&&n.policy.w4;if(!n.UN||!X&&w)return"";w=n.policy.mE;JA(n.policy)&&(w=u9(n.V,n.UN,SO(n.V)));w=gau(n.videoTrack,n.getCurrentTime(),w)||gau(n.audioTrack,n.getCurrentTime(), w);return JA(n.policy)?w?"mbnm":"":(n.videoTrack.C.length>0||n.audioTrack.C.length>0||ns(n.K,n.videoTrack,n.audioTrack)||ns(n.K,n.audioTrack,n.videoTrack))&&w?"nord":""}; pah=function(n){if(n.G){var q=n.G.Wy(n.audioTrack,uK(n.K5.X.Uj()));q&&n.Eq.seekTo(q,{Yf:!0,zk:"pollSubsegmentReadahead",z4:!0})}}; xVO=function(n,q,w){if(n.policy.Ff&&QC(q))return!1;if(w.QO())return!0;if(!w.Np())return!1;var X=Pk(q);if(!X||X.info.type===6)return!1;var P;if(n.policy.Kt||((P=n.C)==null?0:c9h(P,q,X.info.kh)))n.D0=0;else return n.Gw.isSeeking()&&NK(n),n.D0=n.D0||(0,g.m$)(),!1;if(!ef(n,q,w,X.info))return!1;if(n.uo.X&&X.info.X===0){if(P=Tws(q,w,X)){var R=M9(q);n.p5("initchg",{it:X.info.N.info.id,sr:!!R&&R.N===X.info.N,ty:X.info.type,seg:X.info.kh})}R=g.xw(X.info.N.info);n.policy.KV&&R&&!P&&qG3(X)}R=n.G&&!!n.G.W&&q.N.info.audio; P=n.uo.isManifestless||X.K;if(!(n.uo.X&&X.info.X!==0||P&&!R)&&Fvs(n,q,w,X))return!0;if(R)return!1;R=Nb(n,q);R=n.getCurrentTime()+R;if(X.info.W>R)return n.policy.N&&$Vh(n,q),n.policy.GZ&&Tns(q.W,R,!1),!1;vEY(n,q);var c;n.policy.HX&&w===((c=n.K5)==null?void 0:c.N)&&n.Ne&&(w.fn()===0?(n.Ne=!1,n.policy.HX=!1):n.qe=w.fn());if(!Lvh(n,w,X,q))return!1;n.policy.Ff&&X.info.D3()?(n.Eq.B().uL()&&n.p5("eosl",{ls:X.info.XR()}),X.isLocked=!0):(q.FX(X),gUx(n.N,X.info),n.logger.debug(function(){return"Appended "+ X.info.XR()+", buffered: "+Ag(w.Uj())})); P&&Mdy(n,X.info.N.RU);return!0}; $Vh=function(n,q){q===n.videoTrack?n.Ff=n.Ff||(0,g.m$)():n.n5=n.n5||(0,g.m$)()}; vEY=function(n,q){q===n.videoTrack?n.Ff=0:n.n5=0}; Lvh=function(n,q,w,X){var P=n.policy.KM?(0,g.m$)():0,R=w.K&&w.info.N.N||void 0,c=w.X;w.K&&(c=DVs(n,w,c)||c);var k=Rb(c);c=n.policy.KM?(0,g.m$)():0;q=hx6(n,q,k,w.info,R);(X=X.L)!=null&&(R=w.info,P=c-P,c=(0,g.m$)()-c,!X.X||tSu(X.X,R)&&X.X.kh===R.kh||X.flush(),X.W+=P,X.C+=c,P=1,!X.X&&R.X&&(P=2),jJ(X,P,q),c=Math.ceil(R.X/1024),P===2&&X.N.add(c),X.N.add(Math.ceil((R.X+R.C)/1024)-c),X.X=R);n.Tp=0;if(q===0)return n.IH&&(n.logger.debug("Retry succeed, back to normal append logic."),n.IH=!1,n.ej=!1),n.Me= 0,!0;if(q===2||q===5)return lpu(n,"checked",q,w.info),!1;if(q===1){if(!n.IH)return n.logger.debug("QuotaExceeded, retrying."),n.IH=!0,!1;if(!n.ej)return n.ej=!0,n.Eq.seekTo(n.getCurrentTime(),{zk:"quotaExceeded",z4:!0}),!1;w.info.ev()?(P=n.policy,P.n5=Math.floor(P.n5*.8),P.vW=Math.floor(P.vW*.8)):(P=n.policy,P.RH=Math.floor(P.RH*.8),P.vW=Math.floor(P.vW*.8));n.policy.N?NM(n.W.N,w.info.N,!1):cQ(n.N,w.info.N)}n.Eq.XP({reattachOnAppend:q});return!1}; DVs=function(n,q,w){var X;if(X=n.policy.Sx&&n.K5&&!n.K5.V&&!n.Eq.zD())q=q.info.N.info,X=q.PX()&&TU(q)&&q.video&&q.video.width<3840&&q.video.width>q.video.height;if(X&&(n.K5.V=!0,Om('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return w=S7y(w),n.policy.C&&n.p5("sp4k",{s:!!w}),w}; lpu=function(n,q,w,X){var P="fmt.unplayable",R=1;w===5||w===3?(P="fmt.unparseable",n.policy.N?!X.N.info.video||nb(n.W.N).size>0||NM(n.W.N,X.N,!1):!X.N.info.video||nb(n.N.K).size>0||cQ(n.N,X.N)):w===2&&(n.Me<15?(n.Me++,P="html5.invalidstate",R=0):P="fmt.unplayable");X=nS(X);var c;X.mrs=(c=n.K5)==null?void 0:cc(c);X.origin=q;X.reason=w;n.policy.iA&&(X.trg="appenderr");n.handleError(P,X,R)}; k7x=function(n,q,w,X,P){var R=n.uo;var c=n.policy.N,k=!1,r=-1;for(U in R.N){var e=CT(R.N[U].info.mimeType)||R.N[U].info.ev();if(X===e)if(e=R.N[U].index,e.iB(q.kh)){k=e;var f=q,O=k.O9(f.kh);O&&O.startTime!==f.startTime?(k.segments=[],k.AE(f),k=!0):k=!1;k?r=q.kh:!q.pending&&c&&(f=e.getDuration(q.kh),f!==q.duration&&(R.publish("clienttemp","mfldurUpdate",{itag:R.N[U].info.itag,seg:q.kh,od:f,nd:q.duration},!1),e.AE(q),k=!0))}else e.AE(q),k=!0}r>=0&&(c={},R.publish("clienttemp","resetMflIndex",(c[X?"v": "a"]=r,c),!1));R=k;Lns(n.Gw,q,X,R);if(n.policy.qe&&n.policy.X&&(r=q.WX||null)){var H;c=(H=n.X)==null?void 0:cHy(H).requestNumber;if((H=n.HW)!=null){if(H.X.has(r.identifier)){var U=H.X.get(r.identifier);U.event=r.event;U.startTimeSecs=r.startSecs;U.lx=r.lx}else H.X.set(r.identifier,{event:r.event,startTimeSecs:r.startSecs,lx:r.lx,Zx:[]});H.C&&c>-1&&cbl(n.uo)&&(n.uo.WW=q.startTime+(isNaN(n.timestampOffset)? 0:n.timestampOffset),n.Gw.isSeeking()&&n.Gw.targetTime5)return n.Tp= 0,n.Eq.XP({initSegStuck:1,as:X.info.XR()}),!0}else n.Tp=0,n.JU=X;n.policy.xT&&(w.abort(),(c=q.L)!=null&&(jJ(c,4),c.flush()));P=hx6(n,w,R,r,P);var e;(e=q.L)==null||vUm(e,P,r);if(P!==0)return GYm(n,P,X),!0;X.info.ev()?Bgx(n.timing):QQO(n.timing);n.logger.debug(function(){return"Appended init for "+X.info.N.info.id}); Mdy(n,X.info.N.RU);return w.Zk()}; Tws=function(n,q,w){if(q.lj()==null){n=M9(n);if(!(q=!n||n.N!==w.info.N)){a:if(n=n.L,w=w.info.L,n.length!==w.length)w=!1;else{for(q=0;q1)return 6;c.Tp=new g.YF(function(){var k=Pk(c);n.zp()||k==null||!k.isLocked?n.Eq.B().uL()&&n.p5("eosl",{delayA:k==null?void 0:k.info.XR()}):CRO(c)?(n.Eq.B().uL()&&n.p5("eosl",{dunlock:k==null?void 0:k.info.XR()}),EE0(n,c===n.audioTrack)):(n.p5("nue",{ls:k.info.XR()}),k.info.qP+=1,n.K5&&n.qZ())},1E4,n); n.Eq.B().uL()&&n.p5("eosl",{delayS:X.XR()});c.Tp.start()}n.policy.NH&&(X==null?void 0:X.N)instanceof cx&&X.D3()&&n.p5("poseos",{itag:X.N.info.itag,seg:X.kh,lseg:X.N.index.QL(),es:X.N.index.C});q.appendBuffer(w,X,P)}catch(k){if(k instanceof DOMException){if(k.code===11)return 2;if(k.code===12)return 5;if(k.code===22||k.message.indexOf("Not enough storage")===0)return q=Object.assign({name:"QuotaExceededError",buffered:Ag(q.Uj()).replace(/,/g,"_"),vheap:Cb(n.videoTrack),aheap:Cb(n.audioTrack),message:g.Te(k.message, 3),track:n.K5?q===n.K5.X?"v":"a":"u"},FB3()),n.handleError("player.exception",q),1;g.pC(k)}return 4}return n.K5.jV()?3:0}; Xd=function(n,q,w){fpO(n,w.zk||"unknown");n.Eq.seekTo(q,w)}; Mdy=function(n,q){q&&n.Eq.GU(new tA(q.key,q.type))}; yC=function(n,q){n.Eq.j0(q)}; Nb=function(n,q){if(n.IH&&!n.UN)return 3;if(n.isSuspended)return 1;var w;if((w=n.K5)==null?0:w.K5&&w.K5.streaming===!1)return 4;w=(q.N.info.audio?n.policy.RH:n.policy.n5)/(q.ED*n.policy.X0);if(n.policy.Ay>0&&n.K5&&wd(n.K5)&&(q=q.N.info.video?n.K5.X:n.K5.N)&&!q.Zk()){q=q.Uj();var X=Yw(q,n.getCurrentTime());X>=0&&(q=n.getCurrentTime()-q.start(X),w+=Math.max(0,Math.min(q-n.policy.Ay,n.policy.Xb)))}n.policy.vW>0&&(w=Math.min(w,n.policy.vW));return w}; Zyz=function(n,q){return(Nb(n,q)+n.policy.RM)*q.ED}; b0s=function(n){n.RH&&!n.isSuspended&&AF(n.schedule)&&(oEO(n,n.RH),n.RH="")}; oEO=function(n,q){b9(q,"cms",function(w){n.policy.C&&n.p5("pathprobe",w)},function(w){n.Eq.handleError(w)})}; AEs=function(n,q){if(n.K5&&n.K5.W&&!n.K5.jV()&&(q.bR=o_(n.videoTrack),q.X=o_(n.audioTrack),n.policy.C)){var w=Cb(n.videoTrack),X=Cb(n.audioTrack),P=Ag(n.K5.X.Uj(),"_",5),R=Ag(n.K5.N.Uj(),"_",5);Object.assign(q.N,{lvq:w,laq:X,lvb:P,lab:R})}q.bandwidthEstimate=YK(n.V);var c;(c=n.audioTrack.L)==null||c.flush();var k;(k=n.videoTrack.L)==null||k.flush();n.logger.debug(function(){return In(q.N)})}; YJT=function(n,q){n.qP=q;n.C&&(n.C.C=q);n.qP.Zh(n.videoTrack.N.info.PX());n.K.X=n.qP;n.policy.X&&(n.X.V=n.qP)}; SJ0=function(n,q){if(n.K5&&n.K5.X){if(n.policy.aU){var w=FRs(n.audioTrack);if(w&&w.nD()){var X=n.Eq;if(X.V7&&(X.V7.N=w,w=X.dc,w.qoe)){w=w.qoe;X=X.V7;var P=g.kW(w.provider);PRT(w,P,X)}}}n.policy.Hs&&(w=FRs(n.videoTrack))&&w.ev()&&(X=n.Eq,X.Yr&&(X.Yr.N=w,w=X.dc,w.qoe&&waz(w.qoe,X.Yr)));q-=isNaN(n.timestampOffset)?0:n.timestampOffset;n.getCurrentTime()!==q&&n.resume();n.Gw.isSeeking()&&n.K5&&!n.K5.jV()&&(X=n.getCurrentTime()<=q&&q=q&&cEx(n,X.startTime,!1)}); return w&&w.startTimen.getCurrentTime())return w.start/1E3;return Infinity}; WQm=function(n){if(n.Eq.getVideoData().isLivePlayback)return!1;var q=n.Eq.Ii();if(!q)return!1;q=q.getDuration();if(n.K5&&n.K5.N&&n.K5.X){var w=n.getCurrentTime(),X=n.K5.N.Uj();n=n.K5.X.Uj();X=X?SS(X,w):w;w=n?SS(n,w):w;w=Math.min(X,w);q=isNaN(w)?!1:w>=q-.01}else q=!1;return q}; GYm=function(n,q,w){n.policy.Cc&&ap(n.Eq.getVideoData())?(n.Eq.VO()||lpu(n,"sepInit",q,w.info),NfO(n.Eq,"sie")):lpu(n,"sepInit",q,w.info)}; Ia=function(n){return n.Eq.OI()0){var X=w.N.shift();qMh(w,X.info)}w.N.length>0&&(X=w.N[0].time-(0,g.m$)(),w.X.start(Math.max(0,X)))}},0); g.K(this,this.X);q.subscribe("widevine_set_need_key_info",this.W,this)}; qMh=function(n,q){a:{var w=q.cryptoPeriodIndex;if(isNaN(w)&&n.C.size>0)w=!0;else{for(var X=g.a(n.C.values()),P=X.next();!P.done;P=X.next())if(P.value.cryptoPeriodIndex===w){w=!0;break a}w=!1}}n.publish("log_qoe",{wvagt:"reqnews",canskip:w});w||n.publish("rotated_need_key_info_ready",q)}; wjh=function(){var n={};var q=n.url;var w=n.interval;n=n.retries;this.url=q;this.interval=w;this.retries=n}; Xjs=function(n,q){this.statusCode=n;this.message=q;this.X=this.heartbeatParams=this.errorMessage=null;this.N={};this.nextFairplayKeyId=null}; PDs=function(n,q,w){w=w===void 0?"":w;g.A.call(this);this.message=n;this.requestNumber=q;this.timer=w;this.onError=this.onSuccess=null;this.N=new g.MW(5E3,2E4,.2)}; RyO=function(n,q,w){n.onSuccess=q;n.onError=w}; I03=function(n,q,w,X){var P={timeout:3E4,onSuccess:function(R){if(!n.zp()){y6("drm_net_r",void 0,n.timer);var c=R.status==="LICENSE_STATUS_OK"?0:9999,k=null;if(R.license)try{k=Fk(R.license)}catch(t){g.pC(t)}if(c!==0||k){k=new Xjs(c,k);c!==0&&R.reason&&(k.errorMessage=R.reason);if(R.authorizedFormats){c={};for(var r=[],e={},f=g.a(R.authorizedFormats),O=f.next();!O.done;O=f.next())if(O=O.value,O.trackType&&O.keyId){var H=cus[O.trackType];if(H){H==="HD"&&R.isHd720&&(H="HD720");O.isHdr&&(H+="HDR");c[H]|| (r.push(H),c[H]=!0);var U=null;try{U=Fk(O.keyId)}catch(t){g.pC(t)}U&&(e[g.p1(U,4)]=H)}}k.X=r;k.N=e}R.nextFairplayKeyId&&(k.nextFairplayKeyId=R.nextFairplayKeyId);R.sabrLicenseConstraint&&(k.sabrLicenseConstraint=Fk(R.sabrLicenseConstraint));R=k}else R=null;if(R)n.onSuccess(R,n.requestNumber);else n.onError(n,"drm.net","t.p;p.i")}}, onError:function(R){if(!n.zp())if(R&&R.error)R=R.error,n.onError(n,"drm.net.badstatus","t.r;p.i;c."+R.code+";s."+R.status,R.code);else n.onError(n,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){n.onError(n,"drm.net","rt.req."+n.requestNumber)}}; X&&(P.Wo="Bearer "+X);g.KH(w,"player/get_drm_license",q,P)}; kEO=function(n,q,w,X){g.np.call(this);this.videoData=n;this.NP=q;this.V=w;this.sessionId=X;this.K={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.qP=this.PW=!1;this.C=null;this.vW=[];this.W=[];this.authorizedFormats=[];this.G=!1;this.N={};this.status="";this.D=NaN;this.X=n.K;this.cryptoPeriodIndex=w.cryptoPeriodIndex;n={};Object.assign(n,this.NP.N);n.cpn=this.videoData.clientPlaybackNonce;this.videoData.HW&&(n.vvt=this.videoData.HW,this.videoData.mdxEnvironment&&(n.mdx_environment= this.videoData.mdxEnvironment));this.NP.vW&&(n.authuser=this.NP.vW);this.NP.pageId&&(n.pageid=this.NP.pageId);isNaN(this.cryptoPeriodIndex)||(n.cpi=this.cryptoPeriodIndex.toString());var P=(P=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.CV()))?P[1]:"";P==="ATV"&&(n.cdt=P);this.K=n;this.K.session_id=X;this.L=!0;this.X.flavor==="widevine"&&(this.K.hdr="1");this.X.flavor==="playready"&&(q=Number(OX(q.experiments,"playready_first_play_expiration")),!isNaN(q)&&q>=0&&(this.K.mfpe=""+q),this.L=!1);q="";g.Ry(this.X)? Pe(this.X)?(X=w.X)&&(q="https://www.youtube.com/api/drm/fps?ek="+Vns(X)):(q=w.initData.subarray(4),q=new Uint16Array(q.buffer,q.byteOffset,q.byteLength/2),q=String.fromCharCode.apply(null,q).replace("skd://","https://")):q=this.X.X;this.baseUrl=q;this.fairplayKeyId=yN(this.baseUrl,"ek")||"";if(q=yN(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(q);this.vW=w.PX?[g.p1(w.initData,4)]:w.C;tJ(this,{sessioninit:w.cryptoPeriodIndex});this.status="in"}; eyy=function(n,q){tJ(n,{createkeysession:1});n.status="gr";y6("drm_gk_s",void 0,n.videoData.qP);n.url=rus(n);try{n.C=q.createSession(n.V,function(w){tJ(n,{m:w})})}catch(w){q="t.g"; w instanceof DOMException&&(q+=";c."+w.code);n.publish("licenseerror","drm.unavailable",1,q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}n.C&&(jam(n.C,function(w,X){saO(n,w,X)},function(w,X,P){if(!n.zp()){X=void 0; var R=1;g.Ry(n.X)&&g.qI(n.NP)&&n.NP.Z("html5_enable_safari_fairplay")&&P===1212433232&&(X="ERROR_HDCP",R=n.NP.Z("html5_safari_fairplay_ignore_hdcp")?0:R);n.error("drm.keyerror",R,w,X)}},function(){n.zp()||(tJ(n,{onkyadd:1}),n.qP||(n.publish("sessionready"),n.qP=!0))},function(w){n.nX(w)}),g.K(n,n.C))}; rus=function(n){var q=n.baseUrl;d0T(q)||n.error("drm.net",2,"t.x");if(!yN(q,"fexp")){var w=["23898307","23914062","23916106","23883098"].filter(function(P){return n.NP.experiments.experiments[P]}); w.length>0&&(n.K.fexp=w.join())}w=g.a(Object.keys(n.K));for(var X=w.next();!X.done;X=w.next())X=X.value,q=Qxh(q,X,n.K[X]);return q}; saO=function(n,q,w){if(!n.zp())if(q){tJ(n,{onkmtyp:w});n.status="km";switch(w){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":f0h(n,q);return;default:n.publish("ctmp","message_type",{t:w,l:q.byteLength})}n.PW||(y6("drm_gk_f",void 0,n.videoData.qP),n.PW=!0,n.publish("newsession",n));if(qT(n.X)&&(q=OsO(q),!q))return;q=new PDs(q,++n.requestNumber,n.videoData.qP);RyO(q,function(X){is0(n,X)},function(X,P,R){if(!n.zp()){var c=0; X.N.X>=3&&(c=1,P="drm.net.retryexhausted");tJ(n,{onlcsrqerr:P,info:R});n.error(P,c,R);n.shouldRetry(rq(c),X)&&HsY(n,X)}}); g.K(n,q);UKs(n,q)}else n.error("drm.unavailable",1,"km.empty")}; f0h=function(n,q){tJ(n,{sdpvrq:1});n.D=Date.now();if(n.X.flavor!=="widevine")n.error("drm.provision",1,"e.flavor;f."+n.X.flavor+";l."+q.byteLength);else{var w={cpn:n.videoData.clientPlaybackNonce};Object.assign(w,n.NP.N);w=g.OV("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",w);q={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, q)}),responseType:"arraybuffer"};g.V9(w,q,3,500).then(Gi(function(X){X=X.xhr;if(!n.zp()){X=new Uint8Array(X.response);var P=String.fromCharCode.apply(null,X);try{var R=JSON.parse(P)}catch(c){}R&&R.signedResponse?(n.publish("ctmp","drminfo",{provisioning:1}),R=(Date.now()-n.D)/1E3,n.D=NaN,n.publish("ctmp","provs",{et:R.toFixed(3)}),n.C&&n.C.update(X)):(R=R&&R.error&&R.error.message,X="e.parse",R&&(X+=";m."+R),n.error("drm.provision",1,X))}}),Gi(function(X){n.zp()||n.error("drm.provision",1,"e."+X.errorCode+ ";c."+(X.xhr&&X.xhr.status))}))}}; dp=function(n){var q;if(q=n.L&&n.C!=null)n=n.C,q=!(!n.N||!n.N.keyStatuses);return q}; UKs=function(n,q){n.status="km";y6("drm_net_s",void 0,n.videoData.qP);var w=new g.Ys(n.NP.RW),X={context:g.co(w.config_||g.Po())};X.drmSystem=tlm[n.X.flavor];X.videoId=n.videoData.videoId;X.cpn=n.videoData.clientPlaybackNonce;X.sessionId=n.sessionId;X.licenseRequest=g.p1(q.message);X.drmParams=n.videoData.drmParams;isNaN(n.cryptoPeriodIndex)||(X.isKeyRotated=!0,X.cryptoPeriodIndex=n.cryptoPeriodIndex);var P,R,c=!!((P=n.videoData.X)==null?0:(R=P.video)==null?0:R.isHdr());X.drmVideoFeature=c?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(X.context&&X.context.client){if(P=n.NP.N)X.context.client.deviceMake=P.cbrand,X.context.client.deviceModel=P.cmodel,X.context.client.browserName=P.cbr,X.context.client.browserVersion=P.cbrver,X.context.client.osName=P.cos,X.context.client.osVersion=P.cosver;X.context.user=X.context.user||{};X.context.request=X.context.request||{};n.videoData.HW&&(X.context.user.credentialTransferTokens=[{token:n.videoData.HW,scope:"VIDEO"}]);X.context.request.mdxEnvironment=n.videoData.mdxEnvironment|| X.context.request.mdxEnvironment;n.videoData.tU&&(X.context.user.kidsParent={oauthToken:n.videoData.tU});g.Ry(n.X)&&(X.fairplayKeyId=g.p1(pJT(n.fairplayKeyId)));g.Vd(n.NP,g.Io(n.videoData)).then(function(k){I03(q,X,w,k);n.status="rs"})}else n.error("drm.net",2,"t.r;ic.0")}; is0=function(n,q){if(!n.zp())if(tJ(n,{onlcsrsp:1}),n.status="rr",q.statusCode!==0)n.error("drm.auth",1,"t.f;c."+q.statusCode,q.errorMessage||void 0);else{y6("drm_kr_s",void 0,n.videoData.qP);if(q.heartbeatParams&&q.heartbeatParams.url&&n.videoData.Z("outertube_streaming_data_always_use_staging_license_service")){var w=n.X.X.match(/(.*)youtube.com/g);w&&(q.heartbeatParams.url=w[0]+q.heartbeatParams.url)}q.heartbeatParams&&n.publish("newlicense",q.heartbeatParams);q.X&&(n.W=q.X,n.videoData.yk||n.publish("newlicense", new wjh),n.videoData.yk=!0,n.G=Yo(n.W,function(X){return X.includes("HDR")})); q.N&&(n.NP.Z("html5_enable_vp9_fairplay")&&Pe(n.X)?(w=g.p1(pJT(n.fairplayKeyId),4),n.N[w]={type:q.N[w],status:"unknown"}):n.N=Xn(q.N,function(X){return{type:X,status:"unknown"}})); Xm(n.X)&&(q.message=KcY(g.p1(q.message)));n.C&&(tJ(n,{updtks:1}),n.status="ku",n.C.update(q.message).then(function(){y6("drm_kr_f",void 0,n.videoData.qP);dp(n)||(tJ(n,{ksApiUnsup:1}),n.publish("keystatuseschange",n))},function(X){X="msuf.req."+n.requestNumber+";msg."+g.Te(X.message,3); n.error("drm.keyerror",1,X)})); g.Ry(n.X)&&n.publish("fairplay_next_need_key_info",n.baseUrl,q.nextFairplayKeyId);n.NP.Z("html5_enable_vp9_fairplay")&&Pe(n.X)&&n.publish("qualitychange",dKT(n.W));q.sabrLicenseConstraint&&n.publish("sabrlicenseconstraint",q.sabrLicenseConstraint)}}; HsY=function(n,q){var w=q.N.getValue();w=new g.YF(function(){UKs(n,q)},w); g.K(n,w);w.start();g.xL(q.N);tJ(n,{rtyrq:1})}; g$z=function(n,q){for(var w=[],X=g.a(Object.keys(n.N)),P=X.next();!P.done;P=X.next())P=P.value,w.push(P+"_"+n.N[P].type+"_"+n.N[P].status);return w.join(q)}; mKh=function(n){var q={};q[n.status]=dp(n)?g$z(n,"."):n.W.join(".");return q}; yuO=function(n,q,w){var X={};X.isHdr=q.includes("HDR");switch(q.replace("HDR","").replace("720","")){case "AUDIO":X.trackType=1;break;case "SD":X.trackType=2;break;case "HD":X.trackType=3;break;case "UHD1":X.trackType=4;break;case "UHD2":X.trackType=5;break;default:X.trackType=0}!X.trackType||w[q]||dp(n)&&!gp(n,q)||(n.authorizedFormats.push(X),w[q]=!0)}; gp=function(n,q){for(var w in n.N)if(n.N[w].status==="usable"&&n.N[w].type===q)return!0;return!1}; a06=function(n,q){for(var w in n.N)if(n.N[w].type===q)return n.N[w].status}; tJ=function(n,q){var w=w===void 0?!1:w;In(q);(w||n.NP.uL())&&n.publish("ctmp","drmlog",q)}; Vl3=function(n){var q=n[0];n[0]=n[3];n[3]=q;q=n[1];n[1]=n[2];n[2]=q;q=n[4];n[4]=n[5];n[5]=q;q=n[6];n[6]=n[7];n[7]=q}; dKT=function(n){return g.yv(n,"UHD2")||g.yv(n,"UHD2HDR")?"highres":g.yv(n,"UHD1")||g.yv(n,"UHD1HDR")?"hd2160":g.yv(n,"HD")||g.yv(n,"HDHDR")?"hd1080":g.yv(n,"HD720")||g.yv(n,"HD720HDR")?"hd720":"large"}; OsO=function(n){for(var q="",w=0;w'.charCodeAt(X);n=n.C.createSession("video/mp4",q,w);return new mG(null,null,null,null,n)}; xKm=function(n,q){var w=n.D[q.sessionId];!w&&n.W&&(w=n.W,n.W=null,w.sessionId=q.sessionId,n.D[q.sessionId]=w);return w}; v$Y=function(n,q){var w=n.subarray(4);w=new Uint16Array(w.buffer,w.byteOffset,w.byteLength/2);w=String.fromCharCode.apply(null,w).match(/ek=([0-9a-f]+)/)[1];for(var X="",P=0;P19.2999?(n=w.uR,w=w.D8,w>=n&&(w=n* .75),q=(n-w)*.5,w=new HC(q,n,n-q-w,this)):w=null;break a;case "widevine":w=new Uy(q,this,n);break a;default:w=null}if(this.K=w)g.K(this,this.K),this.K.subscribe("rotated_need_key_info_ready",this.Ad,this),this.K.subscribe("log_qoe",this.XQ,this);Iy(this.NP.experiments);this.XQ({cks:this.N.getInfo()})}; hyO=function(n){var q=$Ku(n.W);q?q.then(Gi(function(){GEu(n)}),Gi(function(w){if(!n.zp()){g.pC(w); var X="t.a";w instanceof DOMException&&(X+=";n."+w.name+";m."+w.message);n.publish("licenseerror","drm.unavailable",1,X,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(n.XQ({mdkrdy:1}),n.L=!0); n.qP&&(q=$Ku(n.qP))}; E$h=function(n,q,w){n.D0=!0;w=new tA(q,w);n.NP.Z("html5_eme_loader_sync")&&(n.D.get(q)||n.D.set(q,w));CDx(n,w)}; CDx=function(n,q){if(!n.zp()){n.XQ({onInitData:1});if(n.NP.Z("html5_eme_loader_sync")&&n.videoData.C&&n.videoData.C.N){var w=n.G.get(q.initData);q=n.D.get(q.initData);if(!w||!q)return;q=w;w=q.initData;n.D.remove(w);n.G.remove(w)}n.XQ({initd:q.initData.length,ct:q.contentType});if(n.N.flavor==="widevine")if(n.HW&&!n.videoData.isLivePlayback)V7(n);else{if(!(n.NP.Z("vp9_drm_live")&&n.videoData.isLivePlayback&&q.PX)){n.HW=!0;w=q.cryptoPeriodIndex;var X=q.N;oUy(q);q.PX||(X&&q.N!==X?n.publish("ctmp","cpsmm", {emsg:X,pssh:q.N}):w&&q.cryptoPeriodIndex!==w&&n.publish("ctmp","cpimm",{emsg:w,pssh:q.cryptoPeriodIndex}));n.publish("widevine_set_need_key_info",q)}}else n.Ad(q)}}; GEu=function(n){if(!n.zp())if(n.NP.Z("html5_drm_set_server_cert")||Pe(n.N)){var q=n.W.setServerCertificate();q?q.then(Gi(function(w){n.NP.uL()&&n.publish("ctmp","ssc",{success:w})}),Gi(function(w){n.publish("ctmp","ssce",{n:w.name, m:w.message})})).then(Gi(function(){o$3(n)})):o$3(n)}else o$3(n)}; o$3=function(n){n.zp()||(n.L=!0,n.XQ({onmdkrdy:1}),V7(n))}; bsO=function(n){return n.N.flavor==="widevine"&&n.videoData.Z("html5_drm_cpi_license_key")}; V7=function(n){if(n.D0&&n.L&&!n.WW){for(;n.C.length;){var q=n.C[0],w=bsO(n)?bSz(q):g.p1(q.initData);if(Pe(n.N)&&!q.X)n.C.shift();else{if(n.X.get(w))if(n.N.flavor!=="fairplay"||Pe(n.N)){n.C.shift();continue}else n.X.delete(w);oUy(q);break}}n.C.length&&n.createSession(n.C[0])}}; Auz=function(n){var q;if(q=g.od()){var w;q=!((w=n.W.X)==null||!w.getMetrics)}q&&(q=n.W.getMetrics())&&(q=g.sI(q),n.publish("ctmp","drm",{metrics:q}))}; YMs=function(){var n=EDy();return!(!n||n==="visible")}; SMz=function(n){var q=KL0();q&&document.addEventListener(q,n,!1)}; uzs=function(n){var q=KL0();q&&document.removeEventListener(q,n,!1)}; KL0=function(){if(document.visibilityState)var n="visibilitychange";else{if(!document[rt+"VisibilityState"])return"";n=rt+"visibilitychange"}return n}; Bcm=function(n){g.A.call(this);var q=this;this.Eq=n;this.Pc=0;this.D=this.X=this.K=!1;this.W=0;this.aH=this.Eq.B();this.videoData=this.Eq.getVideoData();this.C=g.Jv(this.aH.experiments,"html5_delayed_retry_count");this.N=new g.YF(function(){q.Eq.Lx()},g.Jv(this.aH.experiments,"html5_delayed_retry_delay_ms")); g.K(this,this.N)}; WLx=function(n,q,w){var X=n.videoData.X,P=n.videoData.W,R=n.aH.Z("html5_disable_codec_fallback_for_drm")&&n.videoData.XJ();ap(n.Eq.getVideoData())&&n.aH.Z("html5_gapless_fallback_on_qoe_restart")&&NfO(n.Eq,"pe");if((q==="progressive.net.retryexhausted"||q==="fmt.unplayable"||q==="fmt.decode")&&!n.Eq.YJ.K&&X&&X.itag==="22")return n.Eq.YJ.K=!0,n.Az("qoe.restart",{reason:"fmt.unplayable.22"}),n.Eq.mM(),!0;var c=!1;if(n.videoData.isExternallyHostedPodcast){if(c=n.videoData.v6i)w.mimeType=c.type,n.p5("3pp", {url:c.url});w.ns="3pp";n.Eq.pL(q,1,"VIDEO_UNAVAILABLE",In((new g.kw(q,w,1)).details));return!0}var k=n.Pc+3E4<(0,g.m$)()||n.N.isActive();if(n.aH.Z("html5_empty_src")&&n.videoData.isAd()&&q==="fmt.unplayable"&&/Empty src/.test(""+w.msg))return w.origin="emptysrc",n.Az("auth",w),!0;k||Qas(n.Eq.nO())||(w.nonfg="paused",k=!0,n.Eq.pauseVideo());(q==="fmt.decode"||q==="fmt.unplayable")&&(P==null?0:LT(P)||M8(P))&&(qes(n.aH.K,P.L5),w.acfallexp=P.L5,c=k=!0);!k&&n.C>0&&(n.N.start(),k=!0,w.delayed="1",--n.C); P=n.Eq.loader;k||!((X==null?0:vS(X))||(X==null?0:TU(X)))||R||(qes(n.aH.K,X.L5),c=k=!0,w.cfallexp=X.L5);if(!k)return Zsx(n,w);R=!1;n.K?n.Pc=(0,g.m$)():R=n.K=!0;k=n.videoData;if(k.oH){k=k.oH.gN();var r=Date.now()/1E3+1800;k=k6048E5&&wCO(n,"signature");return!1}; wCO=function(n,q){try{q={detail:"pr."+q},g.fy(n.aH)&&n.aH.Z("html5_reload_by_kabuki_app")?n.Eq.pL("qoe.restart",1,void 0,In(q),"7"):(n.Az("qoe.restart",q),window.location.reload())}catch(w){}}; Peh=function(n,q){var w=n.aH.K;w.G=!1;w.X=!0;n.Az("qoe.restart",{e:q===void 0?"fmt.noneavailable":q,detail:"hdr"});n.Eq.Lx(!0)}; RUO=function(n,q,w,X,P,R){this.videoData=n;this.N=q;this.reason=w;this.X=X;this.token=P;this.videoId=R}; pw=function(n,q,w){this.NP=n;this.Zr=q;this.Eq=w;this.V=this.D=this.N=this.W=this.G=this.X=0;this.K=!1;this.L=g.Jv(this.NP.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map}; Ihz=function(n,q,w){!n.NP.Z("html5_tv_ignore_capable_constraint")&&g.jg(n.NP)&&(w=w.compose(cJ0(n,q)));return w}; k50=function(n){if(n.Eq.nO().isInline())return rY;var q;n.Z("html5_exponential_memory_for_sticky")?q=Ya(n.NP.k6,"sticky-lifetime")<.5?"auto":a$[rn()]:q=a$[rn()];return g.gn("auto",q,!1,"s")}; jIy=function(n,q){var w,X=rJT(n,(w=q.N)==null?void 0:w.videoInfos);w=n.Eq.getPlaybackRate();return w>1&&X?(n=z3O(n.NP.K,q.N.videoInfos,w),new dn(0,n,!0,"o")):new dn(0,0,!1,"o")}; rJT=function(n,q){return q&&g.jg(n.NP)?q.some(function(w){return w.video.fps>32}):!1}; sIh=function(n,q){if(n.Z("html5_disable_ustreamer_constraint_for_sabr")&&Fl(q.videoData))return rY;var w=n.Eq.IL();n.Z("html5_use_video_quality_cap_for_ustreamer_constraint")&&w&&w.dJ>0&&yQ(q.videoData.N$)&&(n=w.dJ,q.videoData.N$=new dn(0,n,!1,"u"));return q.videoData.N$}; cJ0=function(n,q){if(g.jg(n.NP)&&GG(n.NP.K,CQ.HEIGHT))var w=q.N.videoInfos[0].video.qualityOrdinal;else{var X=n.YI(!!q.N.N);V8(q.videoData)||jd(q.videoData);q=q.N.videoInfos;if(q.length){var P=g.Jv(n.NP.experiments,"html5_override_oversend_fraction")||.85,R=q[0].video;R.projectionType!=="MESH"&&R.projectionType!=="EQUIRECTANGULAR"&&R.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||z7||(P=.45);n=g.Jv(n.NP.experiments,"html5_viewport_undersend_maximum");for(R=0;R0&&(w=Math.min(w,X));if(X=g.Jv(n.NP.experiments,"html5_max_vertical_resolution")){P=4320;for(R=0;RX&&(P=Math.min(P,c.video.qualityOrdinal))}if(P<4320){for(c=R=0;c32){P=!0;break a}}P=!1}P&&(w=Math.min(w,X));(X=g.Jv(n.NP.experiments,"html5_live_quality_cap"))&&q.videoData.isLivePlayback&&(w=Math.min(w,X));w=fh0(n,q,w);n=g.Jv(n.NP.experiments,"html5_byterate_soft_cap");return new dn(0,w===4320?0:w,!1,"d",n)}; iwz=function(n){var q,w,X,P;return g.b(function(R){switch(R.X){case 1:return n.N.N&&typeof((q=navigator.mediaCapabilities)==null?void 0:q.decodingInfo)==="function"?g.l(R,Promise.resolve(),2):R.return(Promise.resolve());case 2:w=g.a(n.N.videoInfos),X=w.next();case 3:if(X.done){R.f5(0);break}P=X.value;return g.l(R,h2z(P),4);case 4:X=w.next(),R.f5(3)}})}; UCO=function(n,q){if(!q.videoData.X||n.Z("html5_disable_performance_downgrade"))return!1;Date.now()-n.G>6E4&&(n.X=0);n.X++;n.G=Date.now();if(n.X!==4)return!1;HwT(n,q.videoData.X);return!0}; dCs=function(n,q,w,X){if(!q||!w||!q.videoData.X)return!1;var P=g.Jv(n.NP.experiments,"html5_df_downgrade_thresh"),R=n.Z("html5_log_media_perf_info");if(!((0,g.m$)()-n.W<5E3?0:R||P>0))return!1;var c=((0,g.m$)()-n.W)/1E3;n.W=(0,g.m$)();w=w.getVideoPlaybackQuality();if(!w)return!1;var k=w.droppedVideoFrames-n.D,r=w.totalVideoFrames-n.V;n.D=w.droppedVideoFrames;n.V=w.totalVideoFrames;var e=w.displayCompositedVideoFrames===0?0:w.displayCompositedVideoFrames||-1;R&&n.NP.uL()&&n.Eq.p5("ddf",{dr:w.droppedVideoFrames, de:w.totalVideoFrames,comp:e});if(X)return n.N=0,!1;if((r-k)/c>n.L||!P||g.jg(n.NP))return!1;n.N=(r>60?k/r:0)>P?n.N+1:0;if(n.N!==3)return!1;HwT(n,q.videoData.X);n.Eq.p5("dfd",Object.assign({dr:w.droppedVideoFrames,de:w.totalVideoFrames},tfs()));return!0}; HwT=function(n,q){var w=q.L5,X=q.video.fps,P=q.video.qualityOrdinal-1,R=n.C;q=""+w+(X>49?"p60":X>32?"p48":"");w=J9(w,X,R);P>0&&(w=Math.min(w,P));if(!T5.has(q)&&eZ().includes(q)){var c=w;w=si();+w[q]>0&&(c=Math.min(+w[q],c));w[q]!==c&&(w[q]=c,g.Fo("yt-player-performance-cap",w,2592E3))}else if(T5.has(q)||R==null){a:{c=c===void 0?!0:c;X=eZ().slice();if(c){if(X.includes(q))break a;X.push(q)}else{if(!X.includes(q))break a;X.splice(X.indexOf(q),1)}g.Fo("yt-player-performance-cap-active-set",X,2592E3)}Zv.set(q, w)}else T5.add(q),R==null||R.set(q,w);n.Eq.t5()}; gWO=function(n,q){if(!q.N.N)return n.K?new dn(0,360,!1,"b"):rY;for(var w=!1,X=!1,P=g.a(q.N.videoInfos),R=P.next();!R.done;R=P.next())vS(R.value)?w=!0:X=!0;w=w&&X;X=0;P=g.Jv(n.NP.experiments,"html5_performance_cap_floor");P=n.NP.X?240:P;q=g.a(q.N.videoInfos);for(R=q.next();!R.done;R=q.next()){var c=R.value;if(!w||!vS(c))if(R=J9(c.L5,c.video.fps,n.C),c=c.video.qualityOrdinal,Math.max(R,P)>=c){X=c;break}}return new dn(0,X,!1,"b")}; mCs=function(n,q){var w=n.Eq.nO();return w.isInline()&&!q.cA?new dn(0,480,!1,"v"):Fl(q)?rY:w.isBackground()&&tP()/1E3>60&&!g.jg(n.NP)?new dn(0,360,!1,"v"):rY}; yJz=function(n,q,w){if(n.NP.experiments.BW("html5_disable_client_autonav_cap_for_onesie")&&q.fetchType==="onesie"||g.jg(n.NP)&&(rn(-1)>=1080||q.osid))return rY;var X=g.Jv(n.NP.experiments,"html5_autonav_quality_cap"),P=g.Jv(n.NP.experiments,"html5_autonav_cap_idle_secs");return X&&q.isAutonav&&tP()/1E3>P?(w&&(X=fh0(n,w,X)),new dn(0,X,!1,"e")):rY}; fh0=function(n,q,w){if(n.Z("html5_optimality_defaults_chooses_next_higher")&&w)for(n=q.N.videoInfos,q=1;q=0||(n.provider.Eq.getVisibilityState()===3?n.K=!0:(n.N=g.kW(n.provider),n.delay.start()))}; pCT=function(n){if(!(n.X<0)){var q=g.kW(n.provider),w=q-n.W;n.W=q;n.playerState.state===8?n.playTimeSecs+=w:n.playerState.isBuffering()&&!g.Z(n.playerState,16)&&(n.rebufferTimeSecs+=w)}}; TpT=function(n){var q;switch((q=n.NP.playerCanaryStage)==null?void 0:q.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; FGs=function(n){this.provider=n;this.G=!1;this.N=0;this.W=-1;this.HN=NaN;this.C=0;this.segments=[];this.D=this.K=0;this.previouslyEnded=!1;this.L=this.provider.Eq.getVolume();this.V=this.provider.Eq.isMuted()?1:0;this.X=$W(this.provider)}; vC=function(n){n.X.startTime=n.C;n.X.endTime=n.N;var q=!1;n.segments.length&&g.Ut(n.segments).isEmpty()?(n.segments[n.segments.length-1].previouslyEnded&&(n.X.previouslyEnded=!0),n.segments[n.segments.length-1]=n.X,q=!0):n.segments.length&&n.X.isEmpty()||(n.segments.push(n.X),q=!0);q?n.X.endTime===0&&(n.previouslyEnded=!1):n.X.previouslyEnded&&(n.previouslyEnded=!0);n.K+=n.N-n.C;n.X=$W(n.provider);n.X.previouslyEnded=n.previouslyEnded;n.previouslyEnded=!1;n.C=n.N}; vWm=function(n){$CO(n);n.D=g.jz(function(){n.update()},100); n.HN=g.kW(n.provider);n.X=$W(n.provider)}; $CO=function(n){g.ez(n.D);n.D=NaN}; LGm=function(n,q,w){w-=n.HN;return q===n.N&&w>.5}; Mfs=function(n,q,w,X){this.NP=q;this.YE=w;this.segments=[];this.experimentIds=[];this.oH=this.ej=this.isFinal=this.delayThresholdMet=this.nM=this.KG=this.autoplay=this.autonav=!1;this.sD="yt";this.D=[];this.G=this.L=null;this.sendVisitorIdHeader=this.je=!1;this.V=this.pageId="";this.K=w==="watchtime";this.C=w==="playback";this.WW=w==="atr";this.KD=w==="engage";this.sendVisitorIdHeader=!1;this.uri=this.WW?"/api/stats/"+w:"//"+q.w4+"/api/stats/"+w;X&&(this.ej=X.fs,X.rtn&&(this.G=X.rtn),this.K?(this.playerState= X.state,X.rti>0&&(this.L=X.rti)):(this.zG=X.mos,this.wq=X.volume,X.at&&(this.adType=X.at)),X.autonav&&(this.autonav=X.autonav),X.inview!=null&&(this.tU=X.inview),X.size&&(this.JU=X.size),X.playerwidth&&(this.k6=X.playerwidth),X.playerheight&&(this.HX=X.playerheight));this.aS=g.HJ(q.N);this.V=OX(q.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.V==="all"||this.V==="once")this.KM=g.HJ(q.nM);this.TG=q.sD;this.experimentIds=BdO(q.experiments);this.IH=q.N7;this.sD=q.qP;this.region=q.region; this.userAge=q.userAge;this.Ne=q.Sr;this.VL=tP();this.sendVisitorIdHeader=q.sendVisitorIdHeader;this.HW=q.Z("vss_pings_using_networkless")||q.Z("kevlar_woffle");this.DF=q.Z("vss_final_ping_send_and_write");this.Tp=q.Z("vss_use_send_and_write");this.pageId=q.pageId;this.u7=q.Z("vss_playback_use_send_and_write");q.livingRoomAppMode&&(this.livingRoomAppMode=q.livingRoomAppMode);this.hJ=q.W&&q.Z("embeds_append_synth_ch_headers");g.Q2(q)&&(this.D0=q.WW);g.Rl(g.Xi(q))&&this.D.push(1);this.accessToken=g.Io(n); n.vr[this.YE]?this.W=n.vr[this.YE]:n.vr.playback&&(this.W=n.vr.playback);this.adFormat=n.adFormat;this.adQueryId=n.adQueryId;this.autoplay=BET(n);this.C&&(this.KG=n.Qy&&Xq(n)==="adunit"?!0:!1);this.autonav=n.isAutonav||this.autonav;this.contentVideoId=Ro(n);this.clientPlaybackNonce=n.clientPlaybackNonce;this.nM=n.bS;n.D&&(this.PW=n.D,this.Me=n.E9);n.mdxEnvironment&&(this.mdxEnvironment=n.mdxEnvironment);this.N=n.KV;this.AK=n.AK;n.X&&(this.N7=n.X.itag,n.W&&n.W.itag!==this.N7&&(this.qe=n.W.itag));n.N&& $T(n.N)&&(this.offlineDownloadUserChoice="1");this.eventLabel=Xq(n);this.oH=n.u7?!1:n.wq;this.KV=n.LA;if(q=AH(n))this.yp=q;this.bx=n.NH;this.partnerId=n.partnerId;this.eventId=n.eventId;this.playlistId=n.R2||n.playlistId;this.jh=n.jh;this.mK=n.mK;this.IW=n.IW;this.Dy=n.Dy;this.subscribed=n.subscribed;this.videoId=n.videoId;this.videoMetadata=n.videoMetadata;this.visitorData=n.visitorData;this.osid=n.osid;this.yQ=n.yQ;this.referrer=n.referrer;this.w4=n.QI||n.w4;this.RH=n.xT;this.cH=n.cH;this.userGenderAge= n.userGenderAge;this.Pi=n.Pi;this.embedsRct=n.embedsRct;this.embedsRctn=n.embedsRctn;g.Q2(this.NP)&&n.mutedAutoplay&&(n.mutedAutoplayDurationMode===2&&n.limitedPlaybackDurationInSeconds===0&&n.endSeconds===0?this.D.push(7):this.D.push(2));n.isEmbedsShortsMode(new g.QB(this.k6,this.HX),!!this.playlistId)&&this.D.push(3);g.UJ(n)&&this.D.push(4);this.Ff=n.vj;n.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=n.compositeLiveIngestionOffsetToken)}; xCs=function(n,q){var w=n.sendVisitorIdHeader?n.visitorData:void 0;return g.Vd(n.NP,n.accessToken).then(function(X){return l4y(n.uri,n.NP,n.pageId,w,X,q,n.hJ)})}; lhx=function(n,q){return function(){n.NP.Z("html5_simplify_pings")?(n.N=n.n5,n.iS=q(),n.VL=0,n.send()):xCs(n).then(function(w){var X=DCY(n);X.cmt=X.len;X.lact="0";var P=q().toFixed(3);X.rt=Number(P).toString();X=g.OV(n.uri,X);n.NP.Z("vss_through_gel_double")&&hUs(X);n.HW?(w==null&&(w={}),n.Tp?bd().sendAndWrite(X,w):bd().sendThenWrite(X,w)):w?g.gN(X,w):g.LH(X)})}}; DCY=function(n){var q={ns:n.sD,el:n.eventLabel,cpn:n.clientPlaybackNonce,ver:2,cmt:n.X(n.N),fmt:n.N7,fs:n.ej?"1":"0",rt:n.X(n.iS),adformat:n.adFormat,content_v:n.contentVideoId,euri:n.TG,lact:n.VL,live:n.yp,cl:(781308173).toString(),mos:n.zG,state:n.playerState,volume:n.wq};n.subscribed&&(q.subscribed="1");Object.assign(q,n.aS);n.V==="all"?Object.assign(q,n.KM):n.V==="once"&&n.C&&Object.assign(q,n.KM);n.autoplay&&(q.autoplay="1");n.KG&&(q.sautoplay="1");n.nM&&(q.dni="1");!n.K&&n.D0&&(q.epm=G5Y[n.D0]); n.isFinal&&(q["final"]="1");n.oH&&(q.splay="1");n.AK&&(q.delay=n.AK);n.IH&&(q.hl=n.IH);n.region&&(q.cr=n.region);n.userGenderAge&&(q.uga=n.userGenderAge);n.userAge!==void 0&&n.Ne&&(q.uga=n.Ne+n.userAge);n.n5!==void 0&&(q.len=n.X(n.n5));!n.K&&n.experimentIds.length>0&&(q.fexp=n.experimentIds.toString());n.G!==null&&(q.rtn=n.X(n.G));n.w4&&(q.feature=n.w4);n.mK&&(q.ctrl=n.mK);n.IW&&(q.ytr=n.IW);n.qe&&(q.afmt=n.qe);n.offlineDownloadUserChoice&&(q.ODUC=n.offlineDownloadUserChoice);n.qP&&(q.lio=n.X(n.qP)); n.K?(q.idpj=n.KV,q.ldpj=n.bx,n.delayThresholdMet&&(q.dtm="1"),n.L!=null&&(q.rti=n.X(n.L)),n.Pi&&(q.ald=n.Pi),n.compositeLiveIngestionOffsetToken&&(q.clio=n.compositeLiveIngestionOffsetToken)):n.adType!==void 0&&(q.at=n.adType);n.JU&&(n.C||n.K)&&(q.size=n.JU);n.C&&n.D.length&&(q.pbstyle=n.D.join(","));n.tU!=null&&(n.C||n.K)&&(q.inview=n.X(n.tU));n.K&&(q.volume=Lw(n,g.Hh(n.segments,function(X){return X.volume})),q.st=Lw(n,g.Hh(n.segments,function(X){return X.startTime})),q.et=Lw(n,g.Hh(n.segments,function(X){return X.endTime})), Yo(n.segments,function(X){return X.playbackRate!==1})&&(q.rate=Lw(n,g.Hh(n.segments,function(X){return X.playbackRate}))),Yo(n.segments,function(X){return X.N!=="-"})&&(q.als=g.Hh(n.segments,function(X){return X.N}).join(",")),Yo(n.segments,function(X){return X.previouslyEnded})&&(q.pe=g.Hh(n.segments,function(X){return""+ +X.previouslyEnded}).join(","))); q.muted=Lw(n,g.Hh(n.segments,function(X){return X.muted?1:0})); Yo(n.segments,function(X){return X.visibilityState!==0})&&(q.vis=Lw(n,g.Hh(n.segments,function(X){return X.visibilityState}))); Yo(n.segments,function(X){return X.connectionType!==0})&&(q.conn=Lw(n,g.Hh(n.segments,function(X){return X.connectionType}))); Yo(n.segments,function(X){return X.X!==0})&&(q.blo=Lw(n,g.Hh(n.segments,function(X){return X.X}))); Yo(n.segments,function(X){return!!X.C})&&(q.blo=g.Hh(n.segments,function(X){return X.C}).join(",")); Yo(n.segments,function(X){return!!X.compositeLiveStatusToken})&&(q.cbs=g.Hh(n.segments,function(X){return X.compositeLiveStatusToken}).join(",")); Yo(n.segments,function(X){return X.W!=="-"})&&(q.cc=g.Hh(n.segments,function(X){return X.W}).join(",")); Yo(n.segments,function(X){return X.clipId!=="-"})&&(q.clipid=g.Hh(n.segments,function(X){return X.clipId}).join(",")); if(Yo(n.segments,function(X){return!!X.audioId})){var w="au"; n.C&&(w="au_d");q[w]=g.Hh(n.segments,function(X){return X.audioId}).join(",")}qg()&&n.PW&&(q.ctt=n.PW,q.cttype=n.Me,q.mdx_environment=n.mdxEnvironment); n.KD&&(q.etype=n.vW!==void 0?n.vW:0);n.RH&&(q.uoo=n.RH);n.livingRoomAppMode&&n.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(q.clram=Ce3[n.livingRoomAppMode]||n.livingRoomAppMode);n.W?EW0(n,q):(q.docid=n.videoId,q.referrer=n.referrer,q.ei=n.eventId,q.of=n.yQ,q.osid=n.osid,q.vm=n.videoMetadata,n.adQueryId&&(q.aqi=n.adQueryId),n.autonav&&(q.autonav="1"),n.playlistId&&(q.list=n.playlistId),n.Dy&&(q.ssrt="1"),n.cH&&(q.upt=n.cH));n.C&&(n.embedsRct&&(q.rct=n.embedsRct),n.embedsRctn&&(q.rctn= n.embedsRctn),n.compositeLiveIngestionOffsetToken&&(q.clio=n.compositeLiveIngestionOffsetToken));n.Ff&&(q.host_cpn=n.Ff);return q}; EW0=function(n,q){if(q&&n.W){var w=new Set(["q","feature","mos"]),X=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),P=new Set(["aqi","autonav","list","ssrt","upt"]);n.W.ns==="3pp"&&(q.ns="3pp");for(var R=g.a(Object.keys(n.W)),c=R.next();!c.done;c=R.next())c=c.value,X.has(c)||w.has(c)||P.has(c)&&!n.W[c]||(q[c]=n.W[c])}}; Lw=function(n,q){return g.Hh(q,n.X).join(",")}; hUs=function(n){n.indexOf("watchtime")!==-1&&g.Xc("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:n}})}; oWu=function(n,q){n.attestationResponse&&xCs(n).then(function(w){w=w||{};w.method="POST";w.postParams={atr:n.attestationResponse};n.HW?n.Tp?bd().sendAndWrite(q,w):bd().sendThenWrite(q,w):g.gN(q,w)})}; MC=function(n){g.A.call(this);this.provider=n;this.D="paused";this.K=NaN;this.G=[10,10,10,40];this.L=this.V=0;this.PW=this.WW=this.vW=this.qP=this.C=!1;this.X=this.W=NaN;this.logger=new g.il("vss");this.N=new FGs(n)}; Syx=function(n){if(!n.C){n.provider.videoData.Zd===16623&&g.TQ(Error("Playback for EmbedPage"));var q=xW(n,"playback");n.G=bws(n);vWm(n.N);q.G=Dh(n);n.X>0&&(q.N-=n.X);q.send();if(n.provider.videoData.Z8){q=n.provider.NP;var w=n.provider.videoData,X={html5:"1",video_id:w.videoId,cpn:w.clientPlaybackNonce,ei:w.eventId,ptk:w.Z8,oid:w.gJ,ptchn:w.VM,pltype:w.Ys,content_v:Ro(w)};w.zZ&&Object.assign(X,{m:w.zZ});q=g.OV(q.k5+"ptracking",X);AJO(n,q)}n.provider.videoData.AK||(Yys(n),KGO(n));n.C=!0;n=n.N;n.N= n.v_();n.HN=g.kW(n.provider);!(n.C===0&&n.N<5)&&n.N-n.C>2&&(n.C=n.N);n.G=!0}}; bws=function(n){var q=n.provider.videoData.LA,w=n.provider.videoData.NH,X=[10+q,10,10,40+w-q,40],P,R=(P=n.provider.videoData.getPlayerResponse())==null?void 0:P.playbackTracking,c=R==null?void 0:R.videostatsScheduledFlushWalltimeSeconds;P=R==null?void 0:R.videostatsDefaultFlushIntervalSeconds;if(!(c&&c.length>0&&P))return n.logger.info("Missing valid scheduled pings config "+c+" "+P),X;q=[c[0]+q].concat(g.D(c.slice(1).map(function(k,r){return k-c[r]})),[P+w-q, P]);return q.some(function(k){return k<0})?(n.logger.N(347111855,"Neg vss scheduled pings "+c+" "+P),X):q}; Dh=function(n,q){q=q===void 0?NaN:q;var w=g.kW(n.provider);q=isNaN(q)?w:q;q=Math.ceil(q);var X=n.G[n.V];n.V+11E3;!(R.length>1)&&R[0].isEmpty()||k||(c.G=Dh(n,P));c.send();n.L++}},(P-w)*1E3); return n.W=P}; hJ=function(n){g.sU(n.K);n.K=NaN}; uSO=function(n){n.N.update();n=n.N;n.segments.length&&n.N===n.C||vC(n);var q=n.segments;n.segments=[];return q}; xW=function(n,q){var w=QIz(n.provider);Object.assign(w,{state:n.D});q=new Mfs(n.provider.videoData,n.provider.NP,q,w);q.N=n.provider.Eq.v_();w=n.provider.videoData.clientPlaybackNonce;q.N=n.provider.Eq.r6(w);n.provider.videoData.isLivePlayback||(q.n5=n.provider.Eq.getDuration(w));n.provider.videoData.N&&(w=n.provider.videoData.N.Py(q.N))&&(q.qP=w-q.N,n.provider.NP.Z("html5_disable_live_dvr_shrink_for_cdm_vss")&&TO(n.provider.videoData)&&(q.N+=n.provider.Eq.Zj(),q.qP-=n.provider.Eq.Zj()));q.iS=g.kW(n.provider); q.segments=[$W(n.provider)];return q}; BpO=function(n,q){var w=xW(n,"watchtime");ZwT(n)&&(w.delayThresholdMet=!0,n.vW=!0);if(n.X>0){for(var X=g.a(q),P=X.next();!P.done;P=X.next())P=P.value,P.startTime-=n.X,P.endTime-=n.X;w.N-=n.X}else w.N=n.N.N;w.segments=q;return w}; le=function(n,q){var w=JJm(n,!isNaN(n.W));q&&(n.W=NaN);return w}; JJm=function(n,q){var w=BpO(n,uSO(n));!isNaN(n.W)&&q&&(w.L=n.W);return w}; ZwT=function(n){var q;if(q=n.provider.videoData.isLoaded()&&n.provider.videoData.AK&&n.C&&!n.vW)q=n.N,q=q.K+q.v_()-q.C>=n.provider.videoData.AK;return!!q}; Yys=function(n){n.provider.videoData.youtubeRemarketingUrl&&!n.WW&&(AJO(n,n.provider.videoData.youtubeRemarketingUrl),n.WW=!0)}; KGO=function(n){n.provider.videoData.googleRemarketingUrl&&!n.PW&&(AJO(n,n.provider.videoData.googleRemarketingUrl),n.PW=!0)}; zUY=function(n){if(!n.zp()&&n.C){n.D="paused";var q=le(n);q.isFinal=!0;q.send();n.dispose()}}; WGO=function(n,q){if(!n.zp())if(g.Z(q.state,2)||g.Z(q.state,512)){if(n.D="paused",g.k0(q,2)||g.k0(q,512))g.k0(q,2)&&(n.N.previouslyEnded=!0),n.C&&(hJ(n),le(n).send(),n.W=NaN)}else if(g.Z(q.state,8)){n.D="playing";var w=n.C&&isNaN(n.K)?Dh(n):NaN;if(!isNaN(w)&&(I0(q,64)<0||I0(q,512)<0)){var X=JJm(n,!1);X.G=w;X.send()}g.k0(q,16)&&q.state.seekSource===58&&(n.N.previouslyEnded=!0)}else n.D="paused"}; Npy=function(n,q,w){if(!n.qP){w||(w=xW(n,"atr"));w.attestationResponse=q;try{w.send()}catch(X){if(X.message!=="Unknown Error")throw X;}n.qP=!0}}; AJO=function(n,q){var w=n.provider.NP;g.Vd(n.provider.NP,g.Io(n.provider.videoData)).then(function(X){var P=n.provider.NP.pageId,R=n.provider.NP.sendVisitorIdHeader?n.provider.videoData.visitorData:void 0,c=n.provider.NP.Z("vss_pings_using_networkless")||n.provider.NP.Z("kevlar_woffle"),k=n.provider.NP.Z("allow_skip_networkless");X=l4y(q,w,P,R,X);GOT(q,X,{token:n.provider.videoData.D,Mq:n.provider.videoData.E9,mdxEnvironment:n.provider.videoData.mdxEnvironment},w,void 0,c&&!k,!1,!0)})}; ncy=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.X=0;this.compositeLiveStatusToken=this.C=void 0;this.volume=this.connectionType=0;this.muted=!1;this.N=this.clipId="-";this.previouslyEnded=!1}; G5=function(n,q,w){this.videoData=n;this.NP=q;this.Eq=w;this.N=void 0}; g.kW=function(n){return qTz(n)()}; qTz=function(n){if(!n.N){var q=g.r0(function(X){var P=(0,g.m$)();X&&P<=631152E6&&(n.Eq.p5("ytnerror",{issue:28799967,value:""+P}),P=(new Date).getTime()+2);return P},n.NP.Z("html5_validate_yt_now")),w=q(); n.N=function(){return Math.round(q()-w)/1E3}; n.Eq.v7()}return n.N}; QIz=function(n){var q=n.Eq.ZH()||{};q.fs=n.Eq.vN();q.volume=n.Eq.getVolume();q.muted=n.Eq.isMuted()?1:0;q.mos=q.muted;q.clipid=n.Eq.FD();var w;q.playerheight=((w=n.Eq.getPlayerSize())==null?void 0:w.height)||0;var X;q.playerwidth=((X=n.Eq.getPlayerSize())==null?void 0:X.width)||0;n=n.videoData;w={};n.X&&(w.fmt=n.X.itag,n.W&&(n.YE?n.W.itag!==n.X.itag:n.W.itag!=n.X.itag)&&(w.afmt=n.W.itag));w.ei=n.eventId;w.list=n.playlistId;w.cpn=n.clientPlaybackNonce;n.videoId&&(w.v=n.videoId);n.yK&&(w.infringe=1); (n.u7?0:n.wq)&&(w.splay=1);(X=AH(n))&&(w.live=X);n.Qy&&(w.sautoplay=1);n.Vb&&(w.autoplay=1);n.jh&&(w.sdetail=n.jh);n.partnerId&&(w.partnerid=n.partnerId);n.osid&&(w.osid=n.osid);n.lV&&(w.cc=g.tsh(n.lV));return Object.assign(q,w)}; BYs=function(n){var q=Lg6();if(q)return wmx[q]||wmx.other;if(g.jg(n.NP)){n=navigator.userAgent;if(/[Ww]ireless[)]/.test(n))return 3;if(/[Ww]ired[)]/.test(n))return 30}return 0}; $W=function(n){var q=new ncy,w;q.W=((w=QIz(n).cc)==null?void 0:w.toString())||"-";q.playbackRate=n.Eq.getPlaybackRate();w=n.Eq.getVisibilityState();w!==0&&(q.visibilityState=w);n.NP.RH&&(q.X=1);q.C=n.videoData.g5;q.compositeLiveStatusToken=n.videoData.compositeLiveStatusToken;w=n.Eq.getAudioTrack();w.Va&&w.Va.id&&w.Va.id!=="und"&&(q.audioId=w.Va.id);q.connectionType=BYs(n);q.volume=n.Eq.getVolume();q.muted=n.Eq.isMuted();q.clipId=n.Eq.FD()||"-";q.N=n.videoData.Mw||"-";return q}; g.Cw=function(n,q){g.A.call(this);var w=this;this.provider=n;this.C=new Map;this.jP=new g.OG;this.Wb={mMg:function(){return w.qoe}, WHi:function(){return w.N}, dM5:function(){return w.X}}; this.provider.videoData.YH()&&!this.provider.videoData.XI&&(this.N=new MC(this.provider),this.N.X=0,g.K(this,this.N),this.qoe=new g.cC(this.provider,q),g.K(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.R0=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.R0,this.N));if(n.NP.playerCanaryState==="canary"||n.NP.playerCanaryState==="holdback")this.X=new FS(this.provider),g.K(this,this.X)}; XmO=function(n){n.X&&VfO(n.X);n.qoe&&Xaz(n.qoe)}; PBz=function(n){if(n.qoe){n=n.qoe;for(var q=n.provider.videoData,w=n.provider.NP,X=g.a(w.KO),P=X.next();!P.done;P=X.next())jf(n,P.value);if(n.provider.Z("html5_enable_qoe_cat_list"))for(X=g.a(q.Wr),P=X.next();!P.done;P=X.next())jf(n,P.value);else q.KO&&jf(n,n.provider.videoData.KO);q.T9()&&(X=q.N,xI(q)&&jf(n,"manifestless"),X&&A9(X)&&jf(n,"live-segment-"+A9(X).toFixed(1)));Fl(q)?jf(n,"sabr"):n.y0(lf(q));if(kE(q)||q.M7())q.M7()&&jf(n,"ssa"),jf(n,"lifa");TO(q)&&jf(n,"cdm");q.gatewayExperimentGroup&& (X=q.gatewayExperimentGroup,X==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?X="spkadtrt":X==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(X="spkadctrl"),jf(n,X));w.qP!=="yt"&&n.N.set("len",[q.lengthSeconds.toFixed(2)]);q.cotn&&!jd(q)&&n.Wk(!0);w.uL()&&(q=KBh())&&n.p5("cblt",{m:q});if(w.Z("html5_log_screen_diagonal")){w=n.p5;var R;q=((R=window.H5vccScreen)==null?0:R.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;w.call(n,"cbltdiag",{v:q})}}}; R10=function(n,q){n.N&&(n=n.N,q===58?n.N.update():n.C&&(hJ(n),le(n).send(),n.W=NaN))}; cSu=function(n,q){if(g.k0(q,1024)||g.k0(q,512)||g.k0(q,4)){if(n.X){var w=n.X;w.X>=0||(w.N=-1,w.delay.stop())}n.qoe&&(w=n.qoe,w.G||(w.C=-1))}if(n.provider.videoData.enableServerStitchedDai&&n.R0){var X;(X=n.C.get(n.R0))==null||WGO(X,q)}else n.N&&WGO(n.N,q);if(n.qoe){X=n.qoe;w=q.state;var P=g.kW(X.provider),R=X.getPlayerState(w),c=w.seekSource||void 0;if(R!==X.jP){X.vW||P= 10&&X.playTimeSecs<=180&&(X.N.set("qoealert",["1"]),X.AK=!0)),R!=="B"||X.jP!=="PL"&&X.jP!=="PB"||(X.isBuffering=!0),X.X=P);X.jP==="PL"&&(R==="B"||R==="S")||X.provider.NP.uL()?rp(X,P):(X.Me||R!=="PL"||(X.Me=!0,Qp3(X,P,X.provider.Eq.r7())),uls(X,P));R==="PL"&&g.K9(X.iS);var k=[R];R==="S"&&c&&k.push("ss."+c);g.RI(X,P,"vps",k);X.jP=R;X.qP=P;X.X=P;X.W=!0}R=w.er;g.Z(w,128)&&R&&(R.kG=R.kG||"",WBy(X,P,R.errorCode,R.FE,R.kG));(g.Z(w,2)||g.Z(w,128))&&X.reportStats(P);w.isPlaying()&&!X.G&&(X.C>=0&&X.N.set("user_intent", [X.C.toString()]),X.G=!0);JHx(X)}n.X&&(n=n.X,pCT(n),n.playerState=q.state,n.X>=0&&g.k0(q,16)&&n.seekCount++,q.state.isError()&&n.send())}; I3x=function(n){n.X&&n.X.send();if(n.qoe){var q=n.qoe;if(q.W){q.jP==="PL"&&(q.jP="N");var w=g.kW(q.provider);g.RI(q,w,"vps",[q.jP]);q.G||(q.C>=0&&q.N.set("user_intent",[q.C.toString()]),q.G=!0);q.provider.NP.uL()&&q.p5("finalized",{});q.HW=!0;q.reportStats(w)}}if(n.provider.videoData.enableServerStitchedDai)for(q=g.a(n.C.values()),w=q.next();!w.done;w=q.next())zUY(w.value);else n.N&&zUY(n.N);n.dispose()}; kLs=function(n,q){n.N&&Npy(n.N,q)}; rSY=function(n){if(!n.N)return null;var q=xW(n.N,"atr");return function(w){n.N&&Npy(n.N,w,q)}}; jq0=function(n,q,w,X){w.adFormat=w.TG;var P=q.Eq;q=new MC(new G5(w,q.NP,{getDuration:function(){return w.lengthSeconds}, getCurrentTime:function(){return P.getCurrentTime()}, v_:function(){return P.v_()}, r6:function(){return P.r6()}, r7:function(){return P.r7()}, getPlayerSize:function(){return P.getPlayerSize()}, getAudioTrack:function(){return w.getAudioTrack()}, getPlaybackRate:function(){return P.getPlaybackRate()}, K7:function(){return P.K7()}, getVisibilityState:function(){return P.getVisibilityState()}, mL:function(){return P.mL()}, ZH:function(){return P.ZH()}, getVolume:function(){return P.getVolume()}, isMuted:function(){return P.isMuted()}, vN:function(){return P.vN()}, FD:function(){return P.FD()}, getProximaLatencyPreference:function(){return P.getProximaLatencyPreference()}, v7:function(){P.v7()}, p5:function(R,c){P.p5(R,c)}, kU:function(){return P.kU()}, Zj:function(){return P.Zj()}})); q.X=X;g.K(n,q);return q}; sq3=function(){this.bR=0;this.C=this.BE=this.Qz=this.X=NaN;this.N={};this.bandwidthEstimate=NaN}; e1s=function(){this.N=g.b5;this.array=[]}; OMy=function(n,q,w){var X=[];for(q=f36(n,q);qw)break}return X}; iMs=function(n,q){var w=[];n=g.a(n.array);for(var X=n.next();!X.done&&!(X=X.value,X.contains(q)&&w.push(X),X.start>q);X=n.next());return w}; HMO=function(n){return n.array.slice(f36(n,0x7ffffffffffff),n.array.length)}; f36=function(n,q){n=Kj(n.array,function(w){return q-w.start||1}); return n<0?-(n+1):n}; Uth=function(n,q){var w=NaN;n=g.a(n.array);for(var X=n.next();!X.done;X=n.next())if(X=X.value,X.contains(q)&&(isNaN(w)||X.endq&&(isNaN(w)||X.startn.mediaTime+n.K&&q1)n.W=!0;if((P===void 0?0:P)||isNaN(n.X))n.X=q;if(n.N)q!==n.mediaTime&&(n.N=!1);else if(q>0&&n.mediaTime===q){P=1500;if(n.NP.Z("html5_buffer_underrun_transition_fix")){P=g.Jv(n.NP.experiments,"html5_min_playback_advance_for_steady_state_secs");var R=g.Jv(n.NP.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");P=P>0&&R>0&&Math.abs(q-n.X)(X||!n.W?P:400)}n.mediaTime=q;n.C=w;return!1}; Fjy=function(n,q){this.videoData=n;this.N=q}; $th=function(n,q,w){return q.UQ(w).then(function(){return FR(new Fjy(q,q.C))},function(X){X instanceof Error&&g.TQ(X); var P=eS('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),R=Om('audio/mp4; codecs="mp4a.40.2"'),c=P||R,k=q.isLivePlayback&&!g.UX(n.K,!0);X="fmt.noneavailable";k?X="html5.unsupportedlive":c||(X="html5.missingapi");c=k||!c?2:1;P={buildRej:"1",a:q.KN(),d:!!q.sD,drm:q.XJ(),f18:q.zG.indexOf("itag=18")>=0,c18:P};q.N&&(q.XJ()?(P.f142=!!q.N.N["142"],P.f149=!!q.N.N["149"],P.f279=!!q.N.N["279"]):(P.f133=!!q.N.N["133"],P.f140=!!q.N.N["140"],P.f242=!!q.N.N["242"]),P.cAAC=R,P.cAVC=Om('video/mp4; codecs="avc1.42001E"'), P.cVP9=Om('video/webm; codecs="vp9"'));q.K&&(P.drmsys=q.K.keySystem,R=0,q.K.N&&(R=Object.keys(q.K.N).length),P.drmst=R);return new g.kw(X,P,c)})}; be=function(n){this.data=window.Float32Array?new Float32Array(n):Array(n);this.X=this.N=n-1}; vcz=function(n){return n.data[n.N]||0}; Lj3=function(n){this.K=n;this.C=this.X=0;this.W=new be(50)}; YW=function(n,q,w){g.np.call(this);this.videoData=n;this.experiments=q;this.K=w;this.X=[];this.Lv=0;this.C=!0;this.W=!1;this.D=0;w=new M$0;n.latencyClass==="ULTRALOW"&&(w.D=!1);n.Ne?w.C=3:g.BD(n)&&(w.C=2);n.latencyClass==="NORMAL"&&(w.K=!0);w.qP=Fl(n)&&q.BW("html5_refactor_decouple_liveness");g.Jv(q,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Jv(q,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||n.latencyClass!=="LOW"&&n.latencyClass!=="ULTRALOW"||(w.K=!0);var X= g.Jv(q,"html5_liveness_drift_proxima_override");if(lf(n)!==0&&X){w.N=X;var P;((P=n.N)==null?0:jOO(P))&&w.N--}Fl(n)&&q.BW("html5_sabr_parse_live_metadata_playback_boundaries")&&(w.PW=!0);if(g.Ce("trident/")||g.Ce("edge/"))P=g.Jv(q,"html5_platform_minimum_readahead_seconds")||3,w.W=Math.max(w.W,P);g.Jv(q,"html5_minimum_readahead_seconds")&&(w.W=g.Jv(q,"html5_minimum_readahead_seconds"));g.Jv(q,"html5_maximum_readahead_seconds")&&(w.L=g.Jv(q,"html5_maximum_readahead_seconds"));q.BW("html5_force_adaptive_readahead")&& (w.D=!0);if(P=g.Jv(q,"html5_liveness_drift_chunk_override"))w.N=P;D4(n)&&(w.N=(w.N+1)/5,n.latencyClass==="LOW"&&(w.N*=2));!Fl(n)||n.latencyClass!=="ULTRALOW"&&n.latencyClass!=="LOW"||(w.V=g.Jv(q,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,w.G=g.Jv(q,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=w;this.G=this.policy.C!==1;this.N=AJ(this,xth(this,isNaN(n.liveChunkReadahead)?3:n.liveChunkReadahead,n))}; Dts=function(n,q){if(q)return q=n.videoData,q=xth(n,isNaN(q.liveChunkReadahead)?3:q.liveChunkReadahead,q),AJ(n,q);if(n.X.length){if(Math.min.apply(null,n.X)>1)return AJ(n,n.N-1);if(n.policy.D)return AJ(n,n.N+1)}return n.N}; h1s=function(n,q){if(!n.X.length)return!1;var w=n.N;n.N=Dts(n,q===void 0?!1:q);if(q=w!==n.N)n.X=[],n.Lv=0;return q}; Kw=function(n,q){return q>=n.Jx()-l3u(n)}; GLO=function(n,q,w){q=Kw(n,q);w||q?q&&(n.C=!0):n.C=!1;n.G=n.policy.C===2||n.policy.C===3&&n.C}; CBz=function(n,q){q=Kw(n,q);n.W!==q&&n.publish("livestatusshift",q);n.W=q}; l3u=function(n){var q=n.policy.N;n.W||(q=Math.max(q-1,0));return q*Sf(n)}; xth=function(n,q,w){w.Ne&&q--;D4(w)&&(q=1);if(lf(w)!==0&&(n=g.Jv(n.experiments,"html5_live_chunk_readahead_proxima_override"))){q=n;var X;((X=w.N)==null?0:jOO(X))&&q++}return q}; Sf=function(n){return n.videoData.N?A9(n.videoData.N)||5:5}; AJ=function(n,q){q=Math.max(Math.max(1,Math.ceil(n.policy.W/Sf(n))),q);return Math.min(Math.min(8,Math.floor(n.policy.L/Sf(n))),q)}; M$0=function(){this.W=0;this.L=Infinity;this.D=!0;this.X=this.N=2;this.C=1;this.K=!1;this.G=10;this.PW=!1;this.V=1;this.qP=!1}; Q7=function(n){g.A.call(this);this.Eq=n;this.N=0;this.X=null;this.D=this.W=0;this.C={};this.NP=this.Eq.B();this.K=new g.YF(this.Wy,1E3,this);this.oH=ue(this,"html5_seek_timeout_delay_ms");this.vW=ue(this,"html5_long_rebuffer_threshold_ms");this.je=ue(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.Tp=ue(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.D0=ue(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Me=ue(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.qP=ue(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.PW=new BC(2E4);this.n5=ue(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.IH=ue(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Ff=ue(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.HW=ue(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.V=ue(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.L=ue(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.RH=ue(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.G=ue(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.Ne=new BC(g.Jv(this.NP.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.NP.Z("html5_report_slow_ads_as_error"));this.qe=new BC(g.Jv(this.NP.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.NP.Z("html5_skip_slow_buffering_ad"));this.AK=ue(this,"html5_slow_start_timeout_delay_ms");this.WW=ue(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.K(this,this.K)}; ue=function(n,q,w){w=w===void 0?null:w;var X=X===void 0?0:X;return new BC(g.Jv(n.NP.experiments,q)||X,w?n.NP.Z(w):!1)}; Ech=function(n,q){n.N=q}; Zh=function(n,q,w,X,P,R,c,k){q?q.test(w)?(n.Az(P,q,c),q.D||R()):(!q.X||q.W?w=!1:(w=(0,g.m$)(),X?q.N||(q.N=w):q.N=0,R=!X&&w-q.X>3E4,w=q.N&&w-q.N>1E3||R?q.W=!0:!1),w&&(k=Object.assign({},n.RP(q),k),k.wn=c,k.we=P,k.wsuc=X,n.Eq.p5("workaroundReport",k),X&&(q.reset(),n.C[P]=!1))):n.Eq.pL("auth",2,"BROWSER_OR_EXTENSION_ERROR",In({source:"watchdog",name:c}))}; BC=function(n,q){this.D=q===void 0?!1:q;this.N=this.X=this.C=this.startTimestamp=0;this.W=!1;this.K=Math.ceil(n/1E3)}; YT3=function(n){g.A.call(this);var q=this;this.Eq=n;this.V=this.N=this.loader=this.mediaElement=this.playbackData=null;this.C=0;this.K=this.vW=this.W=null;this.HW=!1;this.Me=0;this.PW=!1;this.timestampOffset=0;this.L=!0;this.IH=0;this.je=this.KM=!1;this.G=0;this.Ne=!1;this.WW=0;this.NP=this.Eq.B();this.videoData=this.Eq.getVideoData();this.policy=new oc3;this.qP=new Q7(this.Eq);this.qe=this.Ff=this.D0=this.D=this.X=NaN;this.n5=new g.YF(function(){bMx(q,!1)},2E3); this.nM=new g.YF(function(){JJ(q)}); this.oH=new g.YF(function(){ASs(q,{})}); this.AK=NaN;this.Tp=new g.YF(function(){var w=q.NP.k6;w.N+=1E4/36E5;w.N-w.C>1/6&&($du(w),w.C=w.N);q.Tp.start()},1E4); g.K(this,this.qP);g.K(this,this.n5);g.K(this,this.oH);g.K(this,this.nM);g.K(this,this.Tp)}; ugh=function(n,q){n.playbackData=q;n.videoData.isLivePlayback&&(n.V=new Lj3(function(){a:{if(n.playbackData&&n.playbackData.N.N){if(xI(n.videoData)&&n.loader){var X=n.loader.ZD.gq()||0;break a}if(n.videoData.N){X=n.videoData.N.HW;break a}}X=0}return X}),n.N=new YW(n.videoData,n.NP.experiments,function(){return n.Ri(!0)})); if(z5(n.Eq)){var w;(w=n.videoData.JL)!=null&&w.zE||(q=Kjs(n),q.Gs?(Fl(n.videoData)&&n.tD(q.Gs,q.startSeconds),n.C=q.startSeconds):q.startSeconds>0&&n.seekTo(q.startSeconds,{zk:"seektimeline_startPlayback",seekSource:15}));n.L=!1}else STx(n)||(n.C=n.C||n.videoData.startSeconds||0,n.videoData.isLivePlayback||(q=n.Eq.videoData.Ri(),n.C>q&&(n.Z("html5_sabr_log_invalid_sabr_current_time")&&n.Eq.p5("invalidSabrCmtStart",{rt:n.C,mst:q}),n.Z("html5_sabr_vod_invalid_start_time_fallback")&&(n.C=0))))}; Qqh=function(n,q){(n.loader=q)?B$s(n,!0):WC(n)}; ZMy=function(n,q){g.K9(n.qP.K);n.Z("html5_exponential_memory_for_sticky")&&(q.state.isPlaying()?g.K9(n.Tp):n.Tp.stop());if(n.mediaElement)if(q.oldState.state===8&&mE(q.state)&&q.state.isBuffering()){q=n.mediaElement.getCurrentTime();var w=n.mediaElement.Qb();var X=n.Z("manifestless_post_live_ufph")||n.Z("manifestless_post_live")?Yw(w,Math.max(q-3.5,0)):Yw(w,q-3.5);X>=0&&q>w.end(X)-1.1&&X+10?(NC(n.Eq,n.getCurrentTime()+n.videoData.limitedPlaybackDurationInSeconds),n.je=!0):n.videoData.isLivePlayback&&n.videoData.endSeconds>0&&(NC(n.Eq,n.getCurrentTime()+n.videoData.endSeconds),n.je=!0))}; z1O=function(n,q){var w=n.getCurrentTime(),X=n.isAtLiveHead(w);if(n.V&&X){var P=n.V;if(P.N&&!(w>=P.X&&w50&&P.X.shift())),P=n.N,GLO(P,w,q===void 0?!0:q),CBz(P,w),q&&bMx(n,!0));X!==n.KM&&(q=n.getCurrentTime()-n.qe<=500,w=n.Me>=1E3,q||w||(q=n.Eq.dc,q.qoe&&(q=q.qoe,w=g.kW(q.provider), g.RI(q,w,"lh",[X?"1":"0"])),n.KM=X,n.Me++,n.qe=n.getCurrentTime()))}; bMx=function(n,q){if(n.N){var w=n.N;var X=n.getCurrentTime(),P=w.Jx();var R=w.policy.X;w.W||(R=Math.max(R-1,0));R*=Sf(w);X>=P-R||!w.CX()?w=Xw+1&&q0&&jk(n.mediaElement)>0&&(n.X=nM(n,n.X,!1)),q=n.Z("html5_pseudogapless_shorts_seek_to_next_start")&&(q==null?void 0:q.seekSource)===60,!n.mediaElement||!Phy(n,q))n.nM.start(750);else if(!isNaN(n.X)&&isFinite(n.X)&&(q=n.Ff-(n.X-n.timestampOffset),!(q===0||Math.abs(q)<.005)))if(q=n.mediaElement.getCurrentTime()-n.X,Math.abs(q)<=n.IH||Math.abs(q)<.005)Rp3(n);else{if(n.videoData.Su)n.videoData.Su= !1;else if(!Mj(n.videoData)&&n.X>=n.Ri()-.1){n.X=n.Ri();n.W.resolve(n.Ri());n.NP.uL()&&n.Eq.p5("setEndedInSeek",{tgt:""+n.X,maxst:""+n.Ri()});n.Eq.Kf();return}try{var w=n.X-n.timestampOffset;n.mediaElement.seekTo(w);n.qP.N=w;n.Ff=w;n.C=n.X;n.PW=!1}catch(X){}}}; Phy=function(n,q){q=q===void 0?!1:q;if(!n.mediaElement||n.mediaElement.a6()===0||n.mediaElement.hasError())return!1;var w=n.mediaElement.getCurrentTime()>0;return n.videoData.C&&n.videoData.C.N||n.videoData.isLivePlayback||!n.videoData.XJ()?n.X>=0&&!q&&(q=n.mediaElement.sP(),q.length||!w)?KT(q,n.X-n.timestampOffset):w:w}; Rp3=function(n){n.W&&(n.W.resolve(n.mediaElement.getCurrentTime()),n.qP.X=null)}; wbz=function(n,q){n.K&&(n.K.resolve(q),n.Eq.H7(),n.NP.uL()||XbY(n))&&(q=n.RP(),q["native"]=""+ +n.PW,q.otgt=""+(n.X+n.timestampOffset),n.Eq.p5("seekEnd",q));WC(n)}; WC=function(n){n.X=NaN;n.D=NaN;n.Ff=NaN;n.W=null;n.vW=null;n.K=null;n.HW=!1;n.PW=!1;n.IH=0;n.n5.stop();n.oH.stop()}; IDY=function(n,q){var w=n.mediaElement,X=q.type;switch(X){case "seeking":var P=w.getCurrentTime()+n.timestampOffset;if(!n.W||n.PW&&P!==n.X){n.W=new k8;n.W.then(function(c){wbz(n,c)},function(){WC(n)}); if(n.videoData.isAd()){var R;cNT({adCpn:n.videoData.clientPlaybackNonce,contentCpn:(R=n.videoData.vj)!=null?R:""},q.N)}n.Ff=P;Ech(n.qP,w.getCurrentTime());n.seekTo(P,{seekSource:104,zk:"seektimeline_mediaElementEvent"});n.PW=!0}break;case "seeked":Rp3(n);break;case "loadedmetadata":z5(n.Eq)||cTu(n);JJ(n);break;case "progress":JJ(n);break;case "pause":n.G=n.getCurrentTime()}n.G&&((X==="play"||X==="playing"||X==="timeupdate"||X==="progress")&&n.getCurrentTime()-n.G>10&&(n.Z("html5_sky_skip_pause_jump")? n.Eq.p5("skipPauseJump",{evt:X,cmt:n.getCurrentTime(),lpt:n.G}):n.seekTo(n.G,{zk:"pauseJump"})),X!=="pause"&&X!=="play"&&X!=="playing"&&X!=="progress"&&(n.G=0))}; kd3=function(n){return(Q8(n.videoData)||!!n.videoData.liveUtcStartSeconds)&&(!!n.videoData.liveUtcStartSeconds||STx(n))&&!!n.videoData.N}; STx=function(n){return!!n.videoData.startSeconds&&isFinite(n.videoData.startSeconds)&&n.videoData.startSeconds>1E9}; Kjs=function(n){var q=0,w=NaN,X="";if(!n.L)return{startSeconds:q,Gs:w,source:X};n.videoData.PW?q=n.videoData.WW:Mj(n.videoData)&&(q=Infinity);if(g.BD(n.videoData))return{startSeconds:q,Gs:w,source:X};n.videoData.startSeconds?(X="ss",q=n.videoData.startSeconds):n.videoData.N7&&(X="stss",q=n.videoData.N7);n.videoData.liveUtcStartSeconds&&(w=n.videoData.liveUtcStartSeconds);if(isFinite(q)&&(q>n.Ri()||qn.Ri()||w 0?(X.onesie="0",n.handleError(new g.kw("html5.missingapi",X)),!1):!0}; Uey=function(n){var q=NV();ng(q,n);return g.AZ(q,xrO())}; Oqs=function(n,q){var w,X,P,R,c,k,r,e,f,O,H,U,t,V,T,x,M,h,E,S,nO,J,c0,ku,Is,e3;return g.b(function(wx){if(wx.X==1)return q.fetchType="onesie",w=juz(q,n.getPlayerSize(),n.getVisibilityState()),X=new Qe(n,w),g.l(wx,X.fetch(),2);P=wx.N;R={player_response:P};q.loading=!1;c=n.Tk.x9;if(X.q9){k=g.a(X.q9.entries());for(r=k.next();!r.done;r=k.next())e=r.value,f=g.a(e),O=f.next().value,H=f.next().value,U=O,t=H,c.N.set(U,t,180),U===q.videoId&&(V=t.h4(),q.Mk=V);c.Jm=X}T=g.a(X.dN.entries());for(x=T.next();!x.done;x= T.next())M=x.value,h=g.a(M),E=h.next().value,S=h.next().value,nO=E,J=S,c.X.set(nO,J,180);g.fZ(q,R,!0);if(q.loading||sO(q))return wx.return(Promise.resolve());c.N.removeAll();c.X.removeAll();q.Mk=[];c0={};ku="onesie.response";Is=0;q.errorCode?(ku="auth",c0.ec=q.errorCode,c0.ed=q.errorDetail,c0.es=q.F0||"",Is=2):(c0.successButUnplayable="1",c0.disposed=""+ +q.zp(),c0.afmts=""+ +/adaptiveFormats/.test(P),c0.cpn=q.clientPlaybackNonce);e3=new g.kw(ku,c0,Is);return wx.return(Promise.reject(e3))})}; ep0=function(n,q){var w,X,P,R,c,k,r,e,f,O,H;return g.b(function(U){switch(U.X){case 1:w=q.isAd(),X=!w,P=w?1:3,R=0;case 2:if(!(R0)){U.f5(5);break}return g.l(U,xp(5E3),6);case 6:c=new g.b4("Retrying OnePlatform request",{attempt:R}),g.TQ(c);case 5:return g.Vy(U,7),g.l(U,tW6(n,q),9);case 9:return U.return();case 7:k=g.$u(U);r=jS(k);e=r.errorCode;f=n.B();O=f.Z("html5_use_network_error_code_enums")?401:"401";X&&e==="manifest.net.badstatus"&&r.details.rc===O&&(X=!1,R===P-1&&(P+= 1));if(R===P-1)return H=des(w,r.details),H.details.backend="op",H.details.originec=e,U.return(Promise.reject(H));if(e==="auth"||e==="manifest.net.retryexhausted")return U.return(Promise.reject(r));n.handleError(r);if(rq(r.severity)){U.f5(4);break}case 3:R++;U.f5(2);break;case 4:return U.return(Promise.reject(des(w,{backend:"op"})))}})}; tW6=function(n,q){function w(ku){ku.readyState===2&&n.jg("ps_c")} var X,P,R,c,k,r,e,f,O,H,U,t,V,T,x,M,h,E,S,nO,J,c0;return g.b(function(ku){switch(ku.X){case 1:q.fetchType="gp";X=n.B();P=g.Vd(X,g.Io(q));if(!P.N){R=P.getValue();ku.f5(2);break}return g.l(ku,P.N,3);case 3:R=ku.N;case 2:return c=R,k=Uey(c),r=juz(q,n.getPlayerSize(),n.getVisibilityState()),e=g.QO(gGx),f=g.Io(q),O=(0,g.m$)(),H=!1,U="empty",t=0,n.jg("psns"),V={BV:w},g.l(ku,g.Lk(k,r,e,void 0,V),4);case 4:T=ku.N;n.jg("psnr");if(q.zp())return ku.return();T?"error"in T&&T.error?(H=!0,U="esf:"+T.error.message, t=T.error.code):T.errorMetadata&&(H=!0,U="its",t=T.errorMetadata.status):H=!0;if(H)return x=0,M=((0,g.m$)()-O).toFixed(),h={},h=X.Z("html5_use_network_error_code_enums")?{backend:"op",rc:t,rt:M,reason:U,has_kpt:q.tU?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.bp("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:X.pageId?"1":"0",has_token:f?"1":"0",has_vvt:q.HW?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.mK||"",token_eq:f===g.Io(q)?"1":"0"}:{backend:"op", rc:""+t,rt:M,reason:U,has_kpt:q.tU?"1":"0",has_mdx_env:q.mdxEnvironment?"1":"0",has_omit_key_flag:g.bp("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:X.pageId?"1":"0",has_token:f?"1":"0",has_vvt:q.HW?"1":"0",is_mdx:q.isMdxPlayback?"1":"0",mdx_ctrl:q.mK||"",token_eq:f===g.Io(q)?"1":"0"},E="manifest.net.connect",t===429?(E="auth",x=2):t>200&&(E="manifest.net.badstatus",t===400&&(x=2)),ku.return(Promise.reject(new g.kw(E,h,x)));q.loading=!1;g.fZ(q,{raw_player_response:T},!0); S=T;g.ny(q.B())&&S&&S.trackingParams&&S0(S.trackingParams);if(q.errorCode)return nO={ec:q.errorCode,ed:q.errorDetail,es:q.F0||""},ku.return(Promise.reject(new g.kw("auth",nO,2)));if(!q.loading&&!sO(q))return J=q.isAd()?"auth":"manifest.net.retryexhausted",c0=q.isAd()?2:1,ku.return(Promise.reject(new g.kw(J,{successButUnplayable:"1",hasMedia:g.KZ(q)?"1":"0"},c0)));g.yy(ku)}})}; svu=function(n,q,w){function X(t){t=jS(t);if(rq(t.severity))return Promise.reject(t);n.handleError(t);return!1} function P(){return!0} var R,c,k,r,e,f,O,H,U;return g.b(function(t){switch(t.X){case 1:var V=n.B();n.getPlayerSize();n.getVisibilityState();n.isFullscreen();if(q.partnerId===38&&V.playerStyle==="books")V=q.videoId.indexOf(":"),V=g.OV("//play.google.com/books/volumes/"+q.videoId.slice(0,V)+"/content/media",{aid:q.videoId.slice(V+1),sig:q.x7});else if(q.partnerId===30&&V.playerStyle==="docs")V=g.OV("https://docs.google.com/get_video_info",{docid:q.videoId,authuser:q.vv,authkey:q.QR,eurl:V.sD});else if(q.partnerId===33&&V.playerStyle=== "google-live")V=g.OV("//google-liveplayer.appspot.com/get_video_info",{key:q.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+V.qP);R=V;k=(c=q.isAd())?1:3;r=0;case 2:if(!(r0)){t.f5(5);break}return g.l(t,xp(5E3),6);case 6:f={playerretry:r,playerretrysrc:w},c||(f.recover="embedded"),e=NN(R,f);case 5:return g.l(t,me3(q,e).then(P,X),7);case 7:if(O=t.N)return t.return();r++;t.f5(2);break;case 4:H=c?"auth":"manifest.net.retryexhausted";U=c?2:1;if(!c&&Math.random()< 1E-4)try{g.TQ(new g.b4("b/152131571",btoa(R)))}catch(T){}return t.return(Promise.reject(new g.kw(H,{backend:"gvi"},U)))}})}; me3=function(n,q){function w(T){return X(T.xhr)} function X(T){if(!n.zp()){T=T?T.status:-1;var x=0,M=((0,g.m$)()-f).toFixed();M=P.Z("html5_use_network_error_code_enums")?{backend:"gvi",rc:T,rt:M}:{backend:"gvi",rc:""+T,rt:M};var h="manifest.net.connect";T===429?(h="auth",x=2):T>200&&(h="manifest.net.badstatus",T===400&&(x=2));return Promise.reject(new g.kw(h,M,x))}} var P,R,c,k,r,e,f,O,H,U,t,V;return g.b(function(T){if(T.X==1){n.fetchType="gvi";P=n.B();var x={};n.Vn&&(x.ytrext=n.Vn);(k=g.fV(x)?void 0:x)?(R={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:k},c=NN(q,{action_display_post:1})):(R={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},c=q);r={};P.sendVisitorIdHeader&&n.visitorData&&(r["X-Goog-Visitor-Id"]=n.visitorData);(e=OX(P.experiments,"debug_sherlog_username"))&&(r["X-Youtube-Sherlog-Username"]=e);Object.keys(r).length> 0&&(R.headers=r);f=(0,g.m$)();return g.l(T,$U(ad,c,R).then(void 0,w),2)}O=T.N;if(!O||!O.responseText)return T.return(X(O));n.loading=!1;H=ZO(O.responseText);g.fZ(n,H,!0);if(n.errorCode)return U={ec:n.errorCode,ed:n.errorDetail,es:n.F0||""},T.return(Promise.reject(new g.kw("auth",U,2)));if(!n.loading&&!sO(n))return t=n.isAd()?"auth":"manifest.net.retryexhausted",V=n.isAd()?2:1,T.return(Promise.reject(new g.kw(t,{successButUnplayable:"1"},V)));g.yy(T)})}; des=function(n,q){return new g.kw(n?"auth":"manifest.net.retryexhausted",q,n?2:1)}; Rq=function(n,q,w){w=w===void 0?!1:w;var X,P,R,c;g.b(function(k){if(k.X==1){X=n.B();if(w&&(!g.tK(X)||Xq(q)!=="embedded")||q.bV||Xq(q)!=="adunit"&&(g.jg(X)||IK(X)||g.LX(X)||g.UN(X)||g.qI(X)||eC(X)==="WEB_CREATOR"))return k.return();P=g.Vd(X,g.Io(q));return P.N?g.l(k,P.N,3):(R=P.getValue(),k.f5(2))}k.X!=2&&(R=k.N);c=R;return k.return(yTu(n,q,c))})}; yTu=function(n,q,w){var X,P,R,c,k;return g.b(function(r){if(r.X==1){g.Vy(r,2);X=Uey(w);var e=q.B();g.hh();var f={context:g.gw(q),videoId:q.videoId,racyCheckOk:q.racyCheckOk,contentCheckOk:q.contentCheckOk,autonavState:"STATE_NONE"};Xq(q)==="adunit"&&(f.isAdPlayback=!0);e.embedConfig&&(f.serializedThirdPartyEmbedConfig=e.embedConfig);e.X1&&(f.showContentOwnerOnly=!0);q.o2&&(f.showShortsOnly=!0);g.l4(0,141)&&(f.autonavState=g.l4(0,140)?"STATE_OFF":"STATE_ON");if(g.iE(e)){var O=g.l4(0,65);O=O!=null? !O:!1;var H=!!g.$N("yt-player-sticky-caption");f.captionsRequested=O&&H}var U;if(e=(U=e.getWebPlayerContextConfig())==null?void 0:U.encryptedHostFlags)f.playbackContext={encryptedHostFlags:e};P=f;R=g.QO(aD3);n.jg("wn_s");return g.l(r,g.Lk(X,P,R),4)}if(r.X!=2)return c=r.N,n.jg("wn_r"),!c||"error"in c&&c.error||(k=c,g.ny(q.B())&&k.trackingParams&&S0(k.trackingParams),g.fZ(q,{raw_watch_next_response:c},!1)),g.FY(r,0);g.$u(r);g.yy(r)})}; VWs=function(n){n.jg("vir");n.jg("ps_s");FK("vir",void 0,"video_to_ad");var q=HqY(n);q.then(function(){n.jg("virc");FK("virc",void 0,"video_to_ad");n.jg("ps_r");FK("ps_r",void 0,"video_to_ad")},function(){n.jg("virc"); FK("virc",void 0,"video_to_ad")}); return q}; g.kc=function(n,q,w,X,P,R,c,k,r,e){r=r===void 0?new g.jF(n):r;e=e===void 0?!0:e;g.np.call(this);var f=this;this.NP=n;this.playerType=q;this.JK=w;this.Zr=X;this.getVisibilityState=R;this.visibility=c;this.Tk=k;this.videoData=r;this.iD=e;this.logger=new g.il("VideoPlayer");this.oS=null;this.Lr=new aI;this.hQ=null;this.kX=!0;this.K5=this.loader=null;this.rD=[];this.f8=new Pm;this.KL=this.mI=null;this.HG=new Pm;this.MO=null;this.OJ=this.oE=!1;this.v$=NaN;this.X9=!1;this.playerState=new g.OG;this.ao=[]; this.Gb=new g.Um;this.Jh=new Bcm(this);this.mediaElement=null;this.vu=new g.YF(this.PLl,15E3,this);this.wQ=this.hw=!1;this.Bu=NaN;this.iO=!1;this.LC=0;this.Zg=!1;this.oJ=NaN;this.L0=new qt(new Map([["bufferhealth",function(){return JSx(f.DC)}], ["bandwidth",function(){return f.hW()}], ["networkactivity",function(){return f.NP.schedule.vW}], ["livelatency",function(){return f.isAtLiveHead()&&f.isPlaying()?pbh(f):NaN}], ["rawlivelatency",function(){return pbh(f)}]])); this.Pc=0;this.loop=!1;this.playbackRate=1;this.pK=0;this.DC=new YT3(this);this.ke=!1;this.Cl=[];this.Ny=this.MJ=0;this.MB=this.t2=!1;this.BE=this.Qz=0;this.gt=new g.YF(this.XY,0,this);this.hN=!1;this.FR=null;this.XWT=[this.Gb,this.gt,this.vu,this.L0];this.Yr=this.V7=null;this.d$=function(){var O=f.dc;O.provider.NP.hJ||O.provider.Eq.getVisibilityState()===3||(O.provider.NP.hJ=!0);O.fN();if(O.X){var H=O.X;H.K&&H.N<0&&H.provider.Eq.getVisibilityState()!==3&&VfO(H)}O.qoe&&(O=O.qoe,O.oH&&O.C<0&&O.provider.NP.hJ&& Xaz(O),O.W&&rp(O));f.loader&&cm(f);f.NP.fX&&!f.videoData.backgroundable&&f.mediaElement&&!f.xw()&&(f.isBackground()&&f.mediaElement.Pj()?(f.p5("bgmobile",{suspend:1}),f.VK(!0,!0)):f.isBackground()||Iq(f)&&f.p5("bgmobile",{resume:1}))}; this.Wb={nX:function(O){f.nX(O)}, Z80:function(O){f.oS=O}, iXi:function(){return f.dc}, TY:function(){return f.K5}, fzH:function(){return f.Nb}, HXh:function(){return f.EX}, q_h:function(){}, B:function(){return f.NP}, Ii:function(){return f.mediaElement}, PAn:function(O){f.mJ(O)}, MfP:function(){return f.Zr}}; this.logger.debug(function(){return"creating, type "+q}); this.DD=new T$T(this.NP);this.YJ=new pw(this.NP,this.Zr,this);this.M9=new g.Ey(this,function(O,H){O!==g.Aq("endcr")||g.Z(f.playerState,32)||f.Kf();P(O,H,f.playerType);if(O===g.Aq("transitiondetector")&&(O=f.loader)!=null&&(O=O.AK)!=null){var U=g.a(gIu(H.id));U.next();U=U.next().value;HZY(O,U,H.start/1E3-O.Eq.Zj(),kOs(O.W))}}); g.K(this,this.M9);g.K(this,this.DC);T4u(this,r);this.videoData.subscribe("dataupdated",this.x75,this);this.videoData.subscribe("dataloaded",this.tR,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.p5,this);this.videoData.subscribe("ctmpstr",this.CA,this);!this.dc||this.dc.zp();this.dc=new g.Cw(new G5(this.videoData,this.NP,this));SMz(this.d$);this.visibility.subscribe("visibilitystatechange",this.d$);this.Nb=new g.YF(this.UO,g.Jv(this.NP.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.EX=new g.YF(this.UO,g.Jv(this.NP.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.GV=new g.Bt(this.Xbf,350,this);g.K(this,this.GV)}; T4u=function(n,q){if(n.playerType===2||n.NP.e3)q.Xm=!0;var w=y$y(q.TG,q.E3,n.NP.W,n.NP.V);w&&(q.adFormat=w);n.playerType===2&&(q.Vb=!0);if(n.isFullscreen()||n.NP.W)w=g.$N("yt-player-autonavstate"),q.autonavState=w||(n.NP.W?2:n.videoData.autonavState);q.endSeconds&&q.endSeconds>q.startSeconds&&NC(n,q.endSeconds)}; FbT=function(n){var q=n.videoData;VWs(n).then(void 0,function(w){n.videoData!==q||q.zp()||(w=jS(w),w.errorCode==="auth"&&n.videoData.errorDetail?n.pL(w.errorCode,2,unescape(n.videoData.errorReason),In(w.details),n.videoData.errorDetail,n.videoData.F0||void 0):n.handleError(w))})}; Lb6=function(n){if(!g.Z(n.playerState,128))if(n.videoData.isLoaded(),n.logger.debug("finished loading playback data"),n.rD=g.Ml(n.videoData.L),g.KZ(n.videoData)){n.JK.tick("bpd_s");r$(n).then(function(){n.JK.tick("bpd_c");if(!n.zp()){n.oE&&(n.NU(UG(UG(n.playerState,512),1)),Iq(n));var X=n.videoData;X.endSeconds&&X.endSeconds>X.startSeconds&&NC(n,X.endSeconds);n.f8.finished=!0;j$(n,"dataloaded");n.HG.BF()&&$e3(n);ahu(n.YJ,n.KL)}}); n.Z("html5_log_media_perf_info")&&n.p5("loudness",{v:n.videoData.iS.toFixed(3)},!0);var q,w=(q=n.mediaElement)==null?void 0:q.WQ();if(w&&"disablePictureInPicture"in w&&n.NP.AL)try{w.disablePictureInPicture=n.NP.Pw&&!n.videoData.backgroundable}catch(X){g.TQ(X)}vG3(n)}else j$(n,"dataloaded")}; r$=function(n){sT(n);n.KL=null;var q=$th(n.NP,n.videoData,n.xw());n.mI=q;n.mI.then(function(w){MW6(n,w)},function(w){n.zp()||(w=jS(w),n.visibility.isBackground()?(e$(n,"vp_none_avail"),n.mI=null,n.f8.reset()):(n.f8.finished=!0,n.pL(w.errorCode,w.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",In(w.details))))}); return q}; MW6=function(n,q){if(!n.zp()&&!q.videoData.zp()){n.logger.debug("finished building playback data");n.KL=q;ugh(n.DC,n.KL);if(n.videoData.isLivePlayback){var w=xex(n.Tk.x9,n.videoData.videoId)||n.loader&&!isNaN(n.loader.WW);w=n.Z("html5_onesie_live")&&w;z5(n)||n.videoData.Me>0&&!xI(n.videoData)||w||n.seekTo(n.Ri(),{zk:"videoplayer_playbackData",seekSource:18})}if(n.videoData.C.N){if(NEx(n.videoData)){n.Z("html5_sabr_report_missing_url_as_error_terminal")?n.pL("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", In({missabrurl:1})):n.handleError(new g.kw("fmt.missing",{missabrurl:"1"},2));return}n.loader?g.TQ(Error("Duplicated Loader")):(w=g.Jv(n.NP.experiments,"html5_onesie_defer_content_loader_ms"))&&n.In()&&xex(n.Tk.x9,n.videoData.Y7)?g.rN(function(){n.zp()||n.loader||DeT(n)},w):DeT(n)}else!n.videoData.C.N&&jd(n.videoData)&&n.j0(new df(n.videoData.videoId||"",4)); n.yy();iwz(q).then(function(){var X={};n.t5(X);n.NP.uL()&&n.Z("html5_log_media_perf_info")&&n.p5("av1Info",X);cm(n)})}}; $e3=function(n){n.zp();n.logger.debug("try finish readying playback");if(n.HG.finished)n.logger.debug("already finished readying");else if(n.f8.finished)if(g.Z(n.playerState,128))n.logger.debug("cannot finish readying because of error");else if(n.rD.length)n.logger.debug(function(){return"cannot finish readying because of pending preroll: "+n.rD}); else if(n.M9.started||dtm(n.M9),n.eT())n.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{n.loader&&(n.OJ=Wfz(n.loader.timing));n.HG.finished||(n.HG.finished=!0);var q=n.Z("html5_onesie_live")&&n.loader&&!isNaN(n.loader.WW);!n.videoData.isLivePlayback||n.videoData.Me>0&&!xI(n.videoData)||q||z5(n)||(n.logger.debug("seek to head for live"),n.seekTo(Infinity,{zk:"videoplayer_readying",seekSource:18}),n.isBackground()&&(n.wQ=!0));PBz(n.dc);n.logger.debug("finished readying playback"); n.publish("playbackready");pk("pl_c",n.JK.timerName)||(n.JK.tick("pl_c"),FK("pl_c",void 0,"video_to_ad"));pk("pbr",n.JK.timerName)||(n.JK.tick("pbr"),FK("pbr",void 0,"video_to_ad"))}else n.logger.debug("playback data not loaded")}; NC=function(n,q){n.hQ&&hpz(n);n.hQ=new g.og(q*1E3,0x7ffffffffffff);n.hQ.namespace="endcr";n.addCueRange(n.hQ)}; hpz=function(n){n.removeCueRange(n.hQ);n.hQ=null}; lDs=function(n,q,w,X,P){var R=n.dc,c=n.videoData;c.X=w;var k=g.fM(n);w=new RUO(c,w,q,k?k.itag:"",X);n.NP.experiments.BW("html5_refactor_sabr_video_format_selection_logging")?(w.videoId=P,n.Yr=w):R.qoe&&waz(R.qoe,w);P=n.YJ;P.X=0;P.N=0;n.publish("internalvideoformatchange",c,q==="m")}; g.fM=function(n){var q=OT(n);return yQ(q)||!n.KL?null:g.d0(n.KL.N.videoInfos,function(w){return q.W(w)})}; OT=function(n){if(n.KL){var q=n.YJ;var w=n.KL;n=n.hm();var X=k50(q);if(yQ(X)){if(X=cJ0(q,w).compose(eU3(q,w)).compose(Owx(q,w)).compose(mCs(q,w.videoData)).compose(yJz(q,w.videoData,w)).compose(gWO(q,w)).compose(jIy(q,w)),yQ(n)||q.Z("html5_apply_pbr_cap_for_drm"))X=X.compose(sIh(q,w))}else q.Z("html5_perf_cap_override_sticky")&&(X=X.compose(gWO(q,w))),q.Z("html5_ustreamer_cap_override_sticky")&&(X=X.compose(sIh(q,w)));X=X.compose(jIy(q,w));q=w.videoData.ZV.compose(X).compose(w.videoData.kB).compose(n)}else q= rY;return q}; by0=function(n){var q=n.YJ;n=n.videoData;var w=mCs(q,n);q.Z("html5_disable_client_autonav_cap_for_onesie")||w.compose(yJz(q,n));return w}; cm=function(n){if(n.videoData.C&&n.videoData.C.N){var q=OT(n);n.loader&&gE6(n.loader,q)}}; Gd0=function(n){var q;return!!(n.Z("html5_native_audio_track_switching")&&g.fW&&((q=n.videoData.X)==null?0:Dk(q)))}; Chm=function(n){if(!Gd0(n))return!1;var q;n=(q=n.mediaElement)==null?void 0:q.audioTracks();return!!(n&&n.length>1)}; oG6=function(n){var q=EGs(n);if(q)return n.videoData.getAvailableAudioTracks().find(function(w){return w.Va.getName()===q})}; EGs=function(n){var q;if(n=(q=n.mediaElement)==null?void 0:q.audioTracks())for(q=0;q0&&(q.wq=w.jK));q.zT=w.Sr;q.Cd=z4(X,{},w.C||void 0,pZ(w));q.je=V8(w)&&(g.LX(X)||g.UN(X));Fl(w)&&(q.K=!0,q.e3=X.Z("html5_estimate_live_partial_slice_duration"),q.aS=!0,X.Z("html5_sabr_report_partial_segment_estimated_duration")&& (q.Q1=!0),q.N=!0,q.PN=X.Z("html5_sabr_enable_live_clock_offset"),q.w4=X.Z("html5_disable_client_resume_policy_for_sabr"),q.TR=X.Z("html5_trigger_loader_when_idle_network"),q.lR=X.Z("html5_sabr_parse_live_metadata_playback_boundaries"),q.Hr=X.Z("html5_consume_onesie_next_request_policy_for_sabr"),q.gs=X.Z("html5_sabr_report_next_ad_break_time"),q.Pi=X.Z("html5_log_high_res_buffer_timeline")&&X.uL(),q.GZ=X.Z("html5_remove_stuck_slices_beyond_max_buffer_limits"),q.Ww=X.Z("html5_gapless_sabr_btl_last_slice")&& ap(w),q.cH=X.Z("html5_reset_last_appended_slice_on_seek")&&ap(w),xI(w)?(q.Z8=!0,q.JL=X.Z("html5_disable_variability_tracker_for_live"),q.oH=!0,X.Z("html5_simplified_backup_timeout_sabr_live")&&(q.xL=!0,q.KD=q.s_)):q.sD=X.Z("html5_probe_request_on_sabr_request_progress"),q.uR=X.Z("html5_serve_start_seconds_seek_for_post_live_sabr"),q.bx=X.Z("html5_flush_index_on_updated_timestamp_offset"),q.L=Fl(w),q.RW=X.Z("html5_ignore_partial_segment_from_live_readahead"),X.Z("html5_include_partial_segment_for_jumbo_ll")&& D4(w)&&(q.RW=!1),q.NH=X.Z("html5_use_non_active_broadcast_for_post_live"),q.HW=X.Z("html5_use_centralized_player_time"),q.Sr=X.Z("html5_consume_onesie_sabr_seek"),q.PW=X.Z("html5_enable_sabr_seek_loader_refactor"),q.LA=X.Z("html5_update_segment_start_time_from_media_header"),w.enableServerStitchedDai&&(q.X=!0,q.E3=X.Z("html5_reset_server_stitch_state_for_non_sabr_seek"),q.Kt=X.Z("html5_remove_ssdai_append_pause")&&!w.M7(),q.k6=X.Z("html5_ssdai_log_ssevt_in_loader")||X.Z("html5_ssdai_log_ssevt_in_loader_200ms")|| X.Z("html5_ssdai_log_ssevt_in_loader_timers")||X.Z("html5_ssdai_log_ssevt_in_loader_cuerange"),X.Z("html5_ssdai_log_ssevt_in_loader_timers")?q.Ne=1:X.Z("html5_ssdai_log_ssevt_in_loader_200ms")?q.Ne=3:X.Z("html5_ssdai_log_ssevt_in_loader_cuerange")&&(q.Ne=0)),q.WN=X.uL()||w.M7());q.VL=g.zTy(w);GG(X.K,CQ.BITRATE)&&(q.ED=NaN);if(k=g.Jv(X.experiments,"html5_request_size_max_kb"))q.D0=k*1024;X.K.C?q.KO="; "+CQ.EXPERIMENTAL.name+"=allowed":X.Z("html5_enable_cobalt_tunnel_mode")&&g.od()&&(k=CQ.TUNNELMODE, q.KO="; "+k.name+"="+k.valid);w=w.serverPlaybackStartConfig;(w==null?0:w.enable)&&(w==null?0:w.playbackStartPolicy)&&(q.x5=!0,zP(q,w.playbackStartPolicy,2));w=bq3(n);n.Lr.removeAll();a:{k=n.Tk.x9;if(X=n.videoData.videoId)if(P=k.N.get(X)){k.N.remove(X);k=P;break a}k=void 0}n.loader=new g.fw(n,n.NP.schedule,q,n.videoData.N,n.videoData.C,OT(n),w,n.videoData.enableServerStitchedDai,k,n.videoData.qP);q=n.videoData.Z("html5_disable_preload_for_ssdai_with_preroll")&&n.videoData.isLivePlayback&&n.In()?!0: n.oE&&g.jg(n.NP)&&n.videoData.isLivePlayback;n.loader.initialize(n.getCurrentTime(),OT(n),q);n.videoData.probeUrl&&(n.loader.RH=n.videoData.probeUrl);if(n.rD.length||n.oE)n.videoData.cotn||iB(n,!1);Qqh(n.DC,n.loader);n.FR&&(YJT(n.loader,new g.Oy(n.FR)),n.p5("sdai",{sdl:1}));g.f0(n.videoData)&&(n=n.loader,n.policy.jJ=n.policy.WA)}; sT=function(n){n.loader&&(n.loader.dispose(),n.loader=null,Qqh(n.DC,null));n.y5()?AT0(n):n.dD()}; AT0=function(n){if(n.K5)if(n.logger.debug("release media source"),n.cK(),n.K5.K)try{n.NP.uL()&&n.p5("rms",{l:"vprms",sr:n.y5(),rs:cc(n.K5)});n.K5.clear();var q;(q=n.mediaElement)!=null&&(q.X=n.K5);n.K5=null}catch(w){q=new g.b4("Error while clearing Media Source in VideoPlayer: "+w.name+", "+w.message),q=jS(q),n.handleError(q),n.dD()}else n.dD()}; Y03=function(n,q){q=q===void 0?!1:q;if(n.K5)return n.K5.C;n.logger.debug("update media source");a:{q=q===void 0?!1:q;try{g.od()&&n.videoData.Yl()&&SDz(n.mediaElement);var w=n.mediaElement.TY(n.IG(),n.uG())}catch(P){if(WLx(n.Jh,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",P);n.pL("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}n.TJ(w,!1,!1,q)}var X;return((X=n.TY())==null?void 0:X.C)||null}; Kb6=function(n,q){q=q===void 0?!1:q;if(n.loader){n.videoData.enableServerStitchedDai&&WZh(n.loader);var w=n.getCurrentTime()-n.Zj();n.loader.seek(w,{SH:q}).Ld(function(){})}else DeT(n)}; uM0=function(n,q,w,X){w=w===void 0?!1:w;X=X===void 0?!1:X;if(n.K5&&(!q||n.K5===q)){n.logger.debug("media source opened");var P=n.getDuration();!P&&xI(n.videoData)&&(P=25200);if(n.K5.isView){var R=P;n.logger.debug(function(){return"Set media source duration to "+R+", video duration "+P}); R>n.K5.getDuration()&&S06(n,R)}else S06(n,P);UVs(n.loader,n.K5,w,X);n.publish("mediasourceattached")}}; S06=function(n,q){if(n.K5){n.K5.Rg(q);var w;(w=n.loader)!=null&&w.policy.HW&&(w.D=q)}}; yEu=function(n,q){lDs(n,q.reason,q.N.info,q.token,q.videoId)}; j$=function(n,q){n.publish("internalvideodatachange",q===void 0?"dataupdated":q,n.videoData)}; B43=function(n){for(var q=g.a("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),w=q.next();!w.done;w=q.next())n.Gb.j(n.mediaElement,w.value,n.mJ,n);n.NP.M1&&n.mediaElement.ws()&&(n.Gb.j(n.mediaElement,"webkitplaybacktargetavailabilitychanged",n.f0n,n),n.Gb.j(n.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",n.H5o,n))}; Zqz=function(n){g.ez(n.v$);QvO(n)||(n.v$=g.jz(function(){return QvO(n)},100))}; QvO=function(n){var q=n.mediaElement;q&&n.hw&&!n.videoData.vW&&!pk("vfp",n.JK.timerName)&&q.a6()>=2&&!q.isEnded()&&BS(q.Qb())&&n.JK.tick("vfp");return(q=n.mediaElement)&&!n.videoData.vW&&q.getDuration()>0&&(q.isPaused()&&q.a6()>=2&&BS(q.Qb())&&(pk("pbp",n.JK.timerName)||n.JK.tick("pbp"),!n.videoData.PO||n.X9||q.isSeeking()||(n.X9=!0,n.publish("onPlaybackPauseAtStart"))),q=q.getCurrentTime(),oI(n.DD,q))?(n.FT(),!0):!1}; zpO=function(n){n.dc.Dm();if(Mj(n.videoData)&&Date.now()>n.pK+6283){if(!(!n.isAtLiveHead()||n.videoData.N&&E7(n.videoData.N))){var q=n.dc;if(q.qoe){q=q.qoe;var w=q.provider.Eq.r7(),X=g.kW(q.provider);Qp3(q,X,w);w=w.C;isNaN(w)||g.RI(q,X,"e2el",[w.toFixed(3)])}}n.Z("html5_alc_live_log_rawlat")?(q=n.videoData,q=g.kS(q.B())?!0:g.fy(q.B())?q.drmProduct==="6":!1):q=g.kS(n.NP);X=n.Z("html5_always_log_rawlat");(q||X)&&n.p5("rawlat",{l:Xg(n.L0,"rawlivelatency").toFixed(3)});n.pK=Date.now()}n.videoData.X&& Dk(n.videoData.X)&&(q=n.dG())&&q.videoHeight!==n.Ny&&(n.Ny=q.videoHeight,lDs(n,"a",JTs(n,n.videoData.oH)))}; JTs=function(n,q){if(q.N.video.quality==="auto"&&Dk(q.getInfo())&&n.videoData.KG)for(var w=g.a(n.videoData.KG),X=w.next();!X.done;X=w.next())if(X=X.value,X.getHeight()===n.Ny&&X.N.video.quality!=="auto")return X.getInfo();return q.getInfo()}; pbh=function(n){if(!Mj(n.videoData))return NaN;var q=0;n.loader&&n.videoData.N&&(q=xI(n.videoData)?n.loader.ZD.gq()||0:n.videoData.N.HW);return(0,g.m$)()/1E3-n.Py()-q}; N4Y=function(n){n.mediaElement&&n.mediaElement.xw()&&(n.oJ=(0,g.m$)());n.NP.xp?g.rN(function(){Wbh(n)},0):Wbh(n)}; Wbh=function(n){var q;if((q=n.K5)==null||!q.d_()){if(n.mediaElement)try{n.MO=n.mediaElement.playVideo()}catch(X){e$(n,"err."+X)}if(n.MO){var w=n.MO;w.then(void 0,function(X){n.logger.debug(function(){return"playMediaElement failed: "+X}); if(!g.Z(n.playerState,4)&&!g.Z(n.playerState,256)&&n.MO===w)if(X&&X.name==="AbortError"&&X.message&&X.message.includes("load"))n.logger.debug(function(){return"ignore play media element failure: "+X.message}); else{var P="promise";X&&X.name&&(P+=";m."+X.name);e$(n,P);n.ke=!0;n.videoData.u7=!0}})}}}; e$=function(n,q){g.Z(n.playerState,128)||(n.NU(dd(n.playerState,1028,9)),n.p5("dompaused",{r:q}),n.publish("onAutoplayBlocked"))}; Iq=function(n,q){q=q===void 0?!1:q;if(!n.mediaElement||!n.videoData.C)return!1;var w=q;w=w===void 0?!1:w;var X=null;var P;if((P=n.videoData.C)==null?0:P.N){X=Y03(n,w);var R;(R=n.loader)==null||R.resume()}else sT(n),n.videoData.oH&&(X=n.videoData.oH.ju());P=n.mediaElement.Pj();w=!1;P&&P.equals(X)||(n3u(n,X),w=!0);g.Z(n.playerState,2)||(X=n.DC,q=q===void 0?!1:q,X.K||!(X.C>0)||X.mediaElement&&X.mediaElement.getCurrentTime()>0||(q={zk:"seektimeline_resumeTime",SH:q},X.videoData.vW||(q.seekSource=15), X.seekTo(X.C,q)));a:{q=w;if(Fl(n.videoData)){if(!n.videoData.XJ())break a}else if(!g.op(n.videoData))break a;if(n.mediaElement)if((X=n.videoData.K)&&n.mediaElement.ws()){P=n.mediaElement.WQ();if(n.oS)if(P!==n.oS.element)Hm(n);else if(q&&X.flavor==="fairplay"&&!bb())Hm(n);else break a;if(n.Z("html5_report_error_for_unsupported_tvos_widevine")&&bb()&&X.flavor==="widevine")q=n.Z("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",n.pL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", q);else{n.oS=new l0Y(P,n.videoData,n.NP);n.oS.subscribe("licenseerror",n.YA,n);n.oS.subscribe("qualitychange",n.qDi,n);n.oS.subscribe("heartbeatparams",n.UW,n);n.oS.subscribe("keystatuseschange",n.nX,n);n.oS.subscribe("ctmp",n.p5,n);q=g.a(n.Lr.keys);for(X=q.next();!X.done;X=q.next())X=n.Lr.get(X.value),n.oS.GU(X);n.Z("html5_eme_loader_sync")||n.Lr.removeAll()}}else q=n.Z("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",n.pL("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",q)}return w}; n3u=function(n,q){n.JK.tick("vta");FK("vta",void 0,"video_to_ad");n.getCurrentTime()>0&&Wj0(n.DC,n.getCurrentTime());n.mediaElement.activate(q);n.K5&&Jh(4);!n.videoData.vW&&n.playerState.isOrWillBePlaying()&&n.vu.start();if(Gd0(n)){var w;if(q=(w=n.mediaElement)==null?void 0:w.audioTracks())q.onchange=function(){n.publish("internalaudioformatchange",n.videoData,!0)}}}; Hm=function(n){n.oS&&(n.oS.dispose(),n.oS=null)}; qQy=function(n){var q=q===void 0?!1:q;n.logger.debug("reattachVideoSource");n.mediaElement&&(n.K5?(Hm(n),n.dD(),Y03(n,q)):(n.videoData.oH&&n.videoData.oH.t0(),n.mediaElement.stopVideo()),n.playVideo())}; wY0=function(n,q){n.NP.Z("html5_log_rebuffer_reason")&&(q={r:q,lact:tP()},n.mediaElement&&(q.bh=sG(n.mediaElement)),n.p5("bufreason",q))}; XYY=function(n,q){if(n.NP.uL()&&n.mediaElement){var w=n.mediaElement.RP();w.omt=(n.mediaElement.getCurrentTime()+n.Zj()).toFixed(3);w.ps=n.playerState.state.toString(16);w.rt=(g.kW(n.dc.provider)*1E3).toFixed();w.e=q;n.Cl[n.MJ++%5]=w}try{if(q==="timeupdate"||q==="progress")return}catch(X){}n.logger.debug(function(){return"video element event "+q})}; P2O=function(n){if(n.NP.uL()){n.Cl.sort(function(X,P){return+X.rt-+P.rt}); for(var q=g.a(n.Cl),w=q.next();!w.done;w=q.next())w=w.value,n.p5("vpe",Object.assign({t:w.rt},w));n.Cl=[];n.MJ=0}}; Rws=function(n){if(g.Ce("cobalt")&&g.Ce("nintendo switch")){var q=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;n.p5("nxdock",{d:q})}}; iB=function(n,q){var w;(w=n.loader)==null||exs(w,q)}; vG3=function(n){iR(n.videoData,"html5_set_debugging_opt_in")&&(n=g.hh(),g.l4(0,183)||(CD(183,!0),n.save()))}; NfO=function(n,q){n.Tk.AS()||(n.p5("sgap",{f:q}),n.Tk.clearQueue(!1,q==="pe"))}; z5=function(n){return n.Z("html5_disable_video_player_initiated_seeks")&&Fl(n.videoData)}; caO=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);y$(this.api,"isLifaAdPlaying",function(){return q.api.isLifaAdPlaying()}); this.events.j(n,"serverstitchedvideochange",function(){var w;(w=q.api.getVideoData())!=null&&w.M7()&&(q.api.isLifaAdPlaying()?(q.playbackRate=q.api.getPlaybackRate(),q.api.setPlaybackRate(1)):q.api.setPlaybackRate(q.playbackRate))}); this.playbackRate=1}; UT=function(n){tk.call(this,"Loop",g.pg.Gt);this.T=n;var q=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:h7u();this.setIcon(q);this.subscribe("select",this.X,this);n.createClientVe(this.element,this,28661);this.j(n,"settingsMenuVisibilityChanged",this.N);this.listen("click",this.logClick);this.j(n,"onLoopChange",this.onLoopChange);dL(this,n.getLoopVideo());n.tf().nG(this)}; ISu=function(n){sc.call(this,n);var q=this;n.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new UT(q.api),g.K(q,q.menuItem))}); n.addEventListener("videodatachange",function(w,X){w=q.api.getPresentingPlayerType()===2;var P;(P=q.menuItem)==null||P.bL(!X.isLivePlayback&&!w)})}; kRz=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);y$(this.api,"seekToChapterWithAnimation",function(w){q.seekToChapterWithAnimation(w)}); y$(this.api,"seekToTimeWithAnimation",function(w,X){q.seekToTimeWithAnimation(w,X)}); y$(this.api,"renderChapterSeekingAnimation",function(w,X,P){q.api.renderChapterSeekingAnimation(w,X,P)}); y$(this.api,"setMacroMarkers",function(w){q.setMacroMarkers(n,w)}); y$(this.api,"changeMarkerVisibility",function(w,X,P){q.changeMarkerVisibility(w,X,P)}); y$(this.api,"isSameMarkerTypeVisible",function(w){return q.isSameMarkerTypeVisible(w)})}; ra3=function(n,q,w){var X=n.api.getCurrentTime()*1E30&&P>0&&(w.width+=P,g.K$(q.element,"width",w.width+"px")));n.size=w}}; g.D3=function(n,q){var w=n.N[n.N.length-1];w!==q&&(n.N.push(q),YQy(n,w,q))}; g.hS=function(n){if(!(n.N.length<=1)){var q=n.N.pop(),w=n.N[0];n.N=[w];YQy(n,q,w,!0)}}; YQy=function(n,q,w,X){KCm(n);q&&(q.unsubscribe("size-change",n.Rl,n),q.unsubscribe("back",n.SG,n));w.subscribe("size-change",n.Rl,n);w.subscribe("back",n.SG,n);if(n.xE){g.N4(w.element,X?"ytp-panel-animate-back":"ytp-panel-animate-forward");w.wl(n.element);w.focus();n.element.scrollLeft=0;n.element.scrollTop=0;var P=n.size;Aau(n);g.n1(n.element,P);n.D=new g.YF(function(){SQh(n,q,w,X)},20,n); n.D.start()}else w.wl(n.element),q&&q.detach()}; SQh=function(n,q,w,X){n.D.dispose();n.D=null;g.N4(n.element,"ytp-popup-animating");X?(g.N4(q.element,"ytp-panel-animate-forward"),g.qX(w.element,"ytp-panel-animate-back")):(g.N4(q.element,"ytp-panel-animate-back"),g.qX(w.element,"ytp-panel-animate-forward"));g.n1(n.element,n.size);n.G=new g.YF(function(){g.qX(n.element,"ytp-popup-animating");q.detach();g.we(q.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);n.G.dispose();n.G=null},250,n); n.G.start()}; KCm=function(n){n.D&&g.Sq(n.D);n.G&&g.Sq(n.G)}; lB=function(n){g.xc.call(this,n,"ytp-shopping-product-menu");this.LV=new g.LM(this.T);g.K(this,this.LV);this.hide();g.D3(this,this.LV);g.Zp(this.T,this.element,4)}; ByO=function(n,q,w){var X,P=q==null?void 0:(X=q.text)==null?void 0:X.simpleText;P&&(w=uys(n,w,P,q==null?void 0:q.icon,q==null?void 0:q.secondaryIcon),q.navigationEndpoint&&w.listen("click",function(){n.T.Uq("innertubeCommand",q.navigationEndpoint);n.hide()},n))}; Qh6=function(n,q,w){var X,P=q==null?void 0:(X=q.text)==null?void 0:X.simpleText;P&&uys(n,w,P,q==null?void 0:q.icon).listen("click",function(){var R;(q==null?void 0:(R=q.icon)==null?void 0:R.iconType)==="HIDE"?n.T.publish("featuredproductdismissed"):q.serviceEndpoint&&n.T.Uq("innertubeCommand",q.serviceEndpoint);n.hide()},n)}; uys=function(n,q,w,X,P){q=new g.IV(g.kK({},[],!1,!!P),q,w);P&&q.updateValue("secondaryIcon",ZUx(P));q.setIcon(ZUx(X));g.K(n,q);n.LV.nG(q,!0);return q}; ZUx=function(n){if(!n)return null;switch(n.iconType){case "ACCOUNT_CIRCLE":return{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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 mHm();case "HIDE":return{J:"svg",U:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"g",S:[{J:"path",U:{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 t5()}}; GL=function(n){$c.call(this,n,!1,!0);this.isCounterfactual=this.X=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.V=!0;this.overflowButton=new g.Q({J:"button",Jg:["ytp-featured-product-overflow-icon","ytp-button"],U:{"aria-haspopup":"true"}});this.overflowButton.hide();g.K(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.Q({J:"img",Y:"ytp-suggested-action-badge-img",U:{src:"{{url}}"}}); this.thumbnailImage.hide();g.K(this,this.thumbnailImage);this.thumbnailIcon=new g.Q({J:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.K(this,this.thumbnailIcon);this.banner=new g.Q({J:"a",Y:"ytp-suggested-action-container",S:[this.thumbnailImage,this.thumbnailIcon,{J:"div",Y:"ytp-suggested-action-details",S:[{J:"text",Y:"ytp-suggested-action-title",Ag:"{{title}}"},{J:"text",Y:"ytp-suggested-action-subtitle",Ag:"{{subtitle}}"},{J:"text",Y:"ytp-suggested-action-metadata-text", Ag:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.K(this,this.banner);this.banner.wl(this.C.element);this.j(this.T,"videodatachange",this.onVideoDataChange);this.j(this.T,g.Aq("suggested_action_view_model"),this.UPW);this.j(this.T,g.YS("suggested_action_view_model"),this.Rng);this.j(this.overflowButton.element,"click",this.bC);this.j(n,"featuredproductdismissed",this.WE);this.T.createServerVe(this.banner.element,this.banner,!0)}; JaO=function(n){n.isInitialized&&(n.enabled=n.isVisible,n.PW=n.isVisible,Fg(n),n.Nl(),n.thumbnailImage.bL(n.isVisible),n.shouldHideDismissButton||n.dismissButton.bL(n.isVisible),n.shouldShowOverflowButton&&n.overflowButton.bL(n.isVisible))}; CM=function(){GL.apply(this,arguments)}; zwh=function(n){sc.call(this,n);this.N=new CM(this.api);g.K(this,this.N);g.Zp(this.api,this.N.element,4)}; ET=function(n){sc.call(this,n);var q=this;this.N=!0;var w=new g.Um(n);g.K(this,w);w.j(n,"internalaudioformatchange",function(X,P){WCm(q,X,P)}); w.j(n,"videoplayerreset",function(){Nym(q)}); w.j(n,"videodatachange",function(X,P){q.onVideoDataChange(X,P)})}; WCm=function(n,q,w){if(w){var X="";nbs(n,q)&&(X=q,n.api.B().je=q);if(X&&qa3(n,X)){LIs(n.api,X);var P;Ti(py(n.api.B(),(P=n.api.getVideoData())==null?void 0:g.Io(P)),function(R){wBs(n,X,R)})}}}; Nym=function(n){var q;if((q=Oi())==null?0:q.size){var w;Ti(py(n.api.B(),(w=n.api.getVideoData())==null?void 0:g.Io(w)),function(X){(X=XB6(X))&&qa3(n,X)&&(n.api.B().je=X)})}}; wBs=function(n,q,w){XB6(w)!==q&&(PMy([{settingItemId:oq(w),settingOptionValue:{stringValue:q}}]),Ti(n.zx(),function(X){di3(X,oq(w),{stringValue:q})}))}; RIh=function(n,q){F7(Ti(Ti(n.zx(),function(w){return Ui6(w,[oq(q)])}),function(w){if(w){w=g.a(w); for(var X=w.next();!X.done;X=w.next()){var P=X.value;X=P.key;P=P.value;X&&P&&(PMy([{settingItemId:X,settingOptionValue:P}]),Nym(n))}}}),function(){n.N=!0})}; nbs=function(n,q){n=n.api.getAvailableAudioTracks();n=g.a(n);for(var w=n.next();!w.done;w=n.next())if(w=w.value,w.getLanguageInfo().getId()===q)return w;return null}; XB6=function(n){n=oq(n);var q=Oi();n=q?q.get(n):void 0;return n&&n.stringValue?n.stringValue:""}; oq=function(n){var q=(484).toString();n&&(q=(483).toString());return q}; qa3=function(n,q){var w;return q.split(".")[0]!==""&&((w=n.api.getVideoData())==null?void 0:!rw(w))}; PMy=function(n){var q=Oi();q||(q=new Map);n=g.a(n);for(var w=n.next();!w.done;w=n.next())w=w.value,q.set(w.settingItemId,w.settingOptionValue);q=JSON.stringify(Object.fromEntries(q));g.Fo("yt-player-user-settings",q,2592E3)}; g.bB=function(n,q,w,X,P,R,c){g.IV.call(this,g.kK({"aria-haspopup":"true"}),q,n);this.aP=X;this.V=!1;this.C=null;this.options={};this.X=new g.LM(w,void 0,n,P,R,c);g.K(this,this.X);this.listen("keydown",this.m1);this.listen("click",this.open)}; cLs=function(n){if(n.C){var q=n.options[n.C];q.element.getAttribute("aria-checked");q.element.setAttribute("aria-checked","false");n.C=null}}; I_6=function(n,q){g.bB.call(this,"Timer de suspens\u00e3o",g.pg.SLEEP_TIMER,n,q);this.T=n;this.L={};this.D=this.Gv("Off");this.G=this.N="";n.Z("web_settings_menu_icons")&&(q=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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(q)); this.W=new g.Q({J:"div",Jg:["ytp-menuitem-label-wrapper"],S:[{J:"div",Ag:"Fim do v\u00eddeo"},{J:"div",Jg:["ytp-menuitem-sublabel"],Ag:"{{content}}"}]});g.K(this,this.W);this.listen("click",this.onClick);this.j(n,"videodatachange",this.onVideoDataChange);this.j(n,"presentingplayerstatechange",this.dl);this.j(n,"settingsMenuVisibilityChanged",this.yq);n.createClientVe(this.element,this,218889);this.dl();this.T.Uq("onSleepTimerFeatureAvailable")}; kmy=function(n){var q="Off 10 15 20 30 45 60".split(" "),w;((w=n.T.getVideoData())==null?0:w.isLivePlayback)||q.push("End of video");w=n.T.getPlaylist();var X;w&&((X=w.listId)==null?void 0:X.type)!=="RD"&&q.push("End of playlist");n.Hw(g.Hh(q,n.Gv));n.L=g.zf(q,n.Gv,n);q=n.Gv("End of video");n.options[q]&&g.cH(n.options[q],n.W)}; rL6=function(n,q){var w=n.L[q],X=w==="End of video"||w==="End of playlist";w==="Off"&&(n.N="");n.T.getPlayerState()!==0&&n.T.getPlayerState()!==5||!X?(n.D=q,g.bB.prototype.SV.call(n,q),n.UF(q),n.T.Uq("onSleepTimerSettingsChanged",w)):n.T.Uq("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"O v\u00eddeo j\u00e1 terminou"}}}}})}; AS=function(n){sc.call(this,n);var q=this;n.addEventListener("settingsMenuInitialized",function(){q.menuItem||(q.menuItem=new I_6(q.api,q.api.tf()),g.K(q,q.menuItem))}); n.addEventListener("openSettingsMenuItem",function(w){if(w==="menu_item_sleep_timer"){if(!q.menuItem){var X;(X=q.api.tf())==null||X.ZC()}q.menuItem.open()}}); y$(n,"resetSleepTimerMenuSettings",function(){q.resetSleepTimerMenuSettings()}); y$(n,"setSleepTimerTimeLeft",function(w){q.setSleepTimerTimeLeft(w)}); y$(n,"setVideoTimeLeft",function(w){q.setVideoTimeLeft(w)})}; ji3=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"onSnackbarMessage",function(w){switch(w){case 1:w=q.api.getPlayerStateObject(),w.isBuffering()&&(q.api.Z("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.Z(w,8)&&g.Z(w,16))&&q.api.Uq("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Enfrentando interrup\u00e7\u00f5es?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubra por qu\u00ea"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.KM=function(n,q,w,X,P){q=q===void 0?!1:q;X=X===void 0?!1:X;P=P===void 0?!1:P;g.np.call(this);this.L=P;this.G=!1;this.W=new ys(this);this.K=this.D=null;this.C=this.X=!1;g.K(this,this.W);this.target=n;this.N=q;this.V=w||n;this.G=X;q&&(g.j4&&this.target.setAttribute("draggable","true"),P||(this.target.style.touchAction="none"));Yc(this)}; S$=function(n){g.Vs(n.W,!n.N)}; Yc=function(n){n.K=null;n.D=null;n.j(uB("over"),n.kY);n.j("touchstart",n.kQ);n.N&&n.j(uB("down"),n.Ehn)}; six=function(n,q){for(var w=0;wf.start&&w>=5;V+=x}P=V.substr(0,4)+" "+V.substr(4,4)+" "+V.substr(8,4)+" "+(V.substr(12,4)+" "+V.substr(16,4))}else P="";c={video_id_and_cpn:String(q.videoId)+" / "+P,codecs:"",dims_and_frames:"",bandwidth_kbps:c.toFixed(0)+" Kbps",buffer_health_seconds:r.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:e?"":"display:none",drm:e,debug_info:w,extra_debug_info:"",bandwidth_style:H,network_activity_style:H,network_activity_bytes:k.toFixed(0)+" KB",shader_info:O,shader_info_style:O?"":"display:none",playback_categories:""};k=X.clientWidth+"x"+X.clientHeight+(f>1?"*"+f.toFixed(2):"");r="-";R.totalVideoFrames&&(r=(R.droppedVideoFrames||0)+" dropped of "+R.totalVideoFrames);c.dims_and_frames=k+" / "+r;n=n.getVolume();k=ZPy(q);var h;if((h=q.W)==null?0:h.audio.X)h= "VB";else{var E;h=((E=q.W)==null?0:E.audio.N)?"DRC":Math.round(n*k)+"%"}E=Math.round(n)+"% / "+h;h=q.iS.toFixed(1);isFinite(Number(h))&&(E+=" (content loudness "+h+"dB)");c.volume=E;c.resolution=X.videoWidth+"x"+X.videoHeight;if(X=q.X){if(E=X.video)h=E.fps,h>1&&(c.resolution+="@"+h),(h=R.Ea)&&h.video&&(c.resolution+=" / "+h.video.width+"x"+h.video.height,h.video.fps>1&&(c.resolution+="@"+h.video.fps)),c.codecs=Up0(X),!q.W||X.audio&&X.video?X.Jw&&(c.codecs+=" / "+X.Jw+"A"):c.codecs+=" / "+Up0(q.W), E.N||E.primaries?(h=E.N||"unknown",h==="smpte2084"?h+=" (PQ)":h==="arib-std-b67"&&(h+=" (HLG)"),c.color=h+" / "+(E.primaries||"unknown"),c.color_style=""):c.color_style="display:none";if(X.debugInfo)for(c.fmt_debug_info="",X=g.a(X.debugInfo),E=X.next();!E.done;E=X.next())E=E.value,c.fmt_debug_info+=E.label+":"+E.text+" ";c.fmt_debug_info_style=c.fmt_debug_info&&c.fmt_debug_info.length>0?"":"display:none"}X=q.isLivePlayback;E=q.Tz;c.live_mode_style=X||E?"":"display:none";c.live_latency_style=X?"": "display:none";if(E)c.live_mode="Post-Live"+(xI(q)?" Manifestless":"");else if(X){E=R.wi;c.live_latency_secs=E.toFixed(2)+"s";X=xI(q)?"Manifestless, ":"";q.PW&&(X+="Windowed, ");h="Uncertain";if(E>=0&&E<120)if(q.latencyClass&&q.latencyClass!=="UNKNOWN")switch(q.latencyClass){case "NORMAL":h="Optimized for Normal Latency";break;case "LOW":h="Optimized for Low Latency";break;case "ULTRALOW":h="Optimized for Ultra Low Latency";break;default:h="Unknown Latency Setting"}else h=q.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";X+=h;(E=R.C2)&&(X+=", seq "+E.sequence);c.live_mode=X}!R.isGapless||ap(q)&&R.AS||(c.playback_categories+="Gapless ");c.playback_categories_style=c.playback_categories?"":"display:none";c.bandwidth_samples=R.DR;c.network_activity_samples=R.P3;c.live_latency_samples=R.T_;c.buffer_health_samples=R.Lv;R=g.f0(q);if(q.cotn||R)c.cotn_and_local_media=(q.cotn?q.cotn:"null")+" / "+R;c.cotn_and_local_media_style=c.cotn_and_local_media?"":"display:none"; iR(q,"web_player_release_debug")?(c.release_name=I[53],c.release_style=""):c.release_style="display:none";c.debug_info&&U.length>0&&c.debug_info.length+U.length<=60?c.debug_info+=" "+U:c.extra_debug_info=U;c.extra_debug_info_style=c.extra_debug_info&&c.extra_debug_info.length>0?"":"display:none";return c}; Up0=function(n){var q=/codecs="([^"]*)"/.exec(n.mimeType);return q&&q[1]?q[1]+" ("+n.itag+")":n.itag}; Nt=function(n,q,w,X,P){g.Q.call(this,{J:"div",Y:"ytp-horizonchart"});this.G=q;this.sampleCount=w;this.W=X;this.D=P;this.index=0;this.heightPx=-1;this.C=this.X=null;this.N=Math.round(n/w);this.element.style.width=this.N*this.sampleCount+"px";this.element.style.height=this.G+"em"}; nq=function(n,q){if(n.heightPx===-1){var w=null;try{w=g.O_("CANVAS"),n.X=w.getContext("2d")}catch(k){}if(n.X){var X=n.N*n.sampleCount;n.C=w;n.C.width=X;n.C.style.width=X+"px";n.element.appendChild(n.C)}else for(n.sampleCount=Math.floor(n.sampleCount/4),n.N*=4,w=0;w1?2:1,n.C.height=n.heightPx*w,n.C.style.height= n.heightPx+"px",n.X.scale(1,w)));q=g.a(q);for(X=q.next();!X.done;X=q.next()){w=n;var P=n.index,R=X.value;for(X=0;X+20&&g.U_(q.X.element);X.classList.add("ytp-timely-actions-overlay");q.X.element.appendChild(X)}); g.K(this,this.X);this.Z("web_player_overlay_positioned_layout")?this.events.j(n,"basechromeinitialized",function(){q.api.vl(q.X.element,4,!0);q.X.element.setAttribute("data-overlay-order","10")}):g.Zp(this.api,this.X.element,4)}; DpT=function(n){n.timelyActions&&(n.W=n.timelyActions.reduce(function(q,w){if(w.cueRangeId===void 0)return q;q[w.cueRangeId]=0;return q},{}))}; Pb=function(n,q){if(n.timelyActions){n=g.a(n.timelyActions);for(var w=n.next();!w.done;w=n.next())if(w=w.value,w.cueRangeId===q)return w}}; hIs=function(n,q){if((n=Pb(n,q))&&n.onCueRangeExit)return LC(n.onCueRangeExit)}; vbO=function(n,q){return n.C===void 0?!1:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===5E3?n.C===72:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(q.seekLengthMilliseconds)===1E4?n.C===74:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===5E3?n.C===71:q.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(q.seekLengthMilliseconds)===1E4?n.C===73:!1}; l_0=function(n,q){var w=Number(q==null?void 0:q.maxVisibleDurationMilliseconds);w&&(Rv(n),n.PW=setTimeout(function(){if(n.N!==void 0&&(q==null?void 0:q.cueRangeId)===n.N){n.L=!1;var X=hIs(n,n.N);X&&n.api.Uq("innertubeCommand",X)}},w))}; Rv=function(n){n.PW&&clearTimeout(n.PW);n.PW=void 0;n.L=!1}; LFs=function(n){if(n=n.getWatchNextResponse()){var q,w;n=(q=n.playerOverlays)==null?void 0:(w=q.playerOverlayRenderer)==null?void 0:w.timelyActionsOverlayViewModel;q=g.u(n,Gmy);if(q!=null&&q.timelyActions)return q==null?void 0:q.timelyActions.map(function(X){return g.u(X,CMs)}).filter(function(X){return!!X})}}; Ebu=function(n){sc.call(this,n);var q=this;ao(this.api,"getPlaybackRate",function(){return q.api.getPlaybackRate()}); ao(this.api,"setPlaybackRate",function(w){typeof w==="number"&&q.api.setPlaybackRate(w)})}; cb=function(n,q,w,X){tk.call(this,"VOICE_BOOST",g.pg.M_);this.N=!1;this.T=n;this.aP=n.tf();this.W=q;this.C=w;this.hasVoiceBoostAudioTrack=X;this.j(n,"videodatachange",this.X);this.setIcon(vNO());this.subscribe("select",this.D,this);this.X()}; Iv=function(n){sc.call(this,n);var q=this;this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"settingsMenuInitialized",function(){obs(q)}); y$(this.api,"getVoiceBoostUserPreference",function(){return q.getVoiceBoostUserPreference()}); y$(this.api,"setVoiceBoostUserPreference",function(X){q.setVoiceBoostUserPreference(X)}); y$(this.api,"hasVoiceBoostAudioTrack",function(){return q.hasVoiceBoostAudioTrack()}); var w;this.N=(w=wPm())!=null?w:0;this.updateEnvironmentData()}; obs=function(n){n.menuItem||(n.menuItem=new cb(n.api,function(q){n.setVoiceBoostUserPreference(q)},function(){return n.getVoiceBoostUserPreference()},function(){return n.hasVoiceBoostAudioTrack()}),g.K(n,n.menuItem))}; bmY=function(n){n=n.kH();if(!n)return!1;n=g.zV(n).exp||"";return n.includes("xpv")||n.includes("xpe")}; ALs=function(n){n=g.a(g.kG(n,!0));for(var q=n.next();!q.done;q=n.next())if(bmY(q.value))return!0;return!1}; Ya3=function(n,q){n=g.a(g.kG(n,!0));for(var w=n.next();!w.done;w=n.next())if(w=w.value,bmY(w)){var X={potc:"1",pot:q};w.url&&(w.url=WA(w.url,X))}}; KFx=function(n){return g.b(function(q){if(q.X==1)return g.Vy(q,2),g.l(q,n,4);if(q.X!=2)return g.FY(q,0);g.$u(q);g.yy(q)})}; jW=function(n){sc.call(this,n);var q=this;this.useLivingRoomPoToken=!1;this.K=new g.cR;this.N=!1;this.JK=null;this.V=!1;this.W=null;this.D=!1;var w=n.B().getWebPlayerContextConfig();this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"spsumpreject",function(X,P,R){q.D=P;X&&q.V&&!q.W&&(q.Z("html5_generate_content_po_token")&&R?q.Bm(R):q.Z("html5_generate_session_po_token")&&Sah(q));q.W||q.api.p5("stp",{s:+q.V,b:+q.D})}); this.events.j(n,"poTokenVideoBindingChange",function(X){q.Bm(X)}); this.useLivingRoomPoToken=!(w==null||!w.useLivingRoomPoToken);n.addEventListener("csiinitialized",function(){q.JK=n.mL();var X=(q.Z("html5_generate_session_po_token")||q.Z("html5_generate_content_po_token"))&&!q.useLivingRoomPoToken;try{if(q.Z("html5_use_shared_owl_instance"))uTO(q);else if(X){q.JK.UT("pot_isc");var P=g.Jv(q.api.B().experiments,"html5_webpo_kaios_defer_timeout_ms");P?(q.C=DJ(),g.rN(function(){r4(q)},P)):q.Z("html5_webpo_idle_priority_job")?(q.C=DJ(),g.u4(g.Qs(),function(){r4(q)})): r4(q)}}catch(R){R instanceof Error&&g.TQ(R)}}); n.addEventListener("trackListLoaded",this.rp.bind(this));n.FW(this)}; BoO=function(n){var q=OX(n.experiments,"html5_web_po_request_key");return q?q:g.jg(n)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; Qiu=function(n){var q=new cQY,w={},X=(w["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",w);return new em(q,n,function(){return X})}; ZmY=function(n){return new fL(n)}; s0=function(n,q){n.Z("html5_webpo_bge_ctmp")&&n.api.p5(q,{hwpo:!!n.X,hwpor:n.N})}; uTO=function(n){var q,w;g.b(function(X){if(X.X==1)return s0(n,"swpo_i"),n.C=DJ(),eW(n),g.l(X,z9(),2);if(X.X!=3)return q=X.N,s0(n,"swpo_co"),g.l(X,lzT(q),3);w=X.N;n.Z("html5_web_po_token_disable_caching")||w.Gj(150);n.X=w;s0(n,"swpo_cc");KFx(w.HJ()).then(function(){n.N=!0;n.K.resolve();s0(n,"swpo_re")}); g.rN(function(){r4(n);s0(n,"swpo_si")},0); g.yy(X)})}; WFz=function(n){var q=n.api.B(),w=Qiu(BoO(q)),X=w.a4.bind(w);w.a4=function(k){var r;return g.b(function(e){if(e.X==1)return g.l(e,X(k),2);r=e.N;n.api.p5("itr",{});return e.return(r)})}; try{var P=ZmY({Jm:w,hH:{maxAttempts:5},QB:{oX:"CLEn",disable:q.experiments.BW("html5_web_po_disable_remote_logging")||JL6.includes(g.IB(q.k5)||""),Ab:ury(q.experiments),Yz:q.experiments.BW("wpo_gel_strz")?function(k){var r=zIs.get(k);r||(r=new HWO(k),r=new g.DP(r),zIs.set(k,r));return r}:void 0, yZ:n.Z("wpo_dis_lfdms")?0:1E3},Bl0:g.TQ});var R=new ML({SP:P,Jm:w,onError:g.TQ});KFx(R.HJ()).then(function(){n.N=!0;n.K.resolve()}); n.Z("html5_web_po_token_disable_caching")||R.Gj(150);g.K(n,P);g.K(n,R);n.X=R}catch(k){g.TQ(k);var c;(c=P)==null||c.dispose()}}; r4=function(n){var q=n.api.B();n.JK.UT("pot_ist");n.X||WFz(n);n.Z("html5_bandaid_attach_content_po_token")||(n.Z("html5_generate_session_po_token")&&(eW(n),Sah(n)),q=g.Jv(q.experiments,"html5_session_po_token_interval_time_ms")||0,q>0&&(n.G=g.jz(function(){eW(n)},q)),n.V=!0)}; eW=function(n){var q,w,X,P;g.b(function(R){if(!n.Z("html5_generate_session_po_token")||n.useLivingRoomPoToken)return R.return();q=n.api.B();w=g.bp("EOM_VISITOR_DATA")||g.bp("VISITOR_DATA");X=q.mE?q.datasyncId:w;P=OX(q.experiments,"html5_mock_content_binding_for_session_token")||q.livingRoomPoTokenId||X;q.u7=fq(n,P);g.yy(R)})}; fq=function(n,q){if(!n.X){if(n.C)try{return n.C(q)}catch(R){g.TQ(R)}return""}try{n.JK.UT(n.N?"pot_cms":"pot_csms");var w={NW:!0,Ev:!0,Gh:q};n.Z("html5_web_po_token_disable_caching")||(w.q3={AR:q,Ce:!0,ul:!0});var X=n.X.k_(w);n.JK.UT(n.N?"pot_cmf":"pot_csmf");if(n.N){var P;(P=n.W)==null||P.resolve();n.W=null;n.D&&(n.D=!1,n.api.app.Yh().Wu(!1))}return X}catch(R){return g.TQ(R),""}}; Sah=function(n){n.X&&(n.W=new k8,n.K.promise.then(function(){n.JK.UT("pot_if");eW(n)}))}; g.O0=function(n,q,w){g.XW(n.element,"ytp-suggestion-set",!!q.videoId);var X=q.playlistId;w=q.EF(w?w:"mqdefault.jpg");var P=null,R=null;q instanceof SN&&(q.lengthText?(P=q.lengthText||null,R=q.xY||null):q.lengthSeconds&&(P=g.Up(q.lengthSeconds),R=g.Up(q.lengthSeconds,!0)));var c=!!X;X=c&&Yx(X).type==="RD";var k=q instanceof SN?q.isLivePlayback:null,r=q instanceof SN?q.isUpcoming:null,e=q.author,f=q.shortViewCount,O=q.publishedTimeText,H=[],U=[];e&&H.push(e);f&&(H.push(f),U.push(f));O&&U.push(O);w= {title:q.title,author:e,author_and_views:H.join(" \u2022 "),aria_label:q.ariaLabel||g.NB("Assistir a $TITLE",{TITLE:q.title}),duration:P,timestamp:R,url:q.z1(),is_live:k,is_upcoming:r,is_list:c,is_mix:X,background:w?"background-image: url("+w+")":"",views_and_publish_time:U.join(" \u2022 "),autoplayAlternativeHeader:q.L8};q instanceof Ky&&(w.playlist_length=q.playlistLength);n.update(w)}; g.ih=function(n){var q=n.B(),w=g.fT||g.uY?{style:"will-change: opacity"}:void 0,X=q.W,P=["ytp-modern-videowall-still"];q.X&&P.push("ytp-videowall-show-text");g.Q.call(this,{J:"a",Jg:P,U:{href:"{{url}}",target:X?q.L:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},S:[{J:"div",Y:"ytp-modern-videowall-still-image",U:{style:"{{background}}"},S:[{J:"span",Y:"ytp-modern-videowall-still-info-duration",Ag:"{{duration}}"}]},{J:"span",Y:"ytp-modern-videowall-still-info", U:{"aria-hidden":"true"},S:[{J:"span",Y:"ytp-modern-videowall-still-info-bg",S:[{J:"span",Y:"ytp-modern-videowall-still-info-content",U:w,S:[{J:"span",Y:"ytp-modern-videowall-still-info-title",Ag:"{{title}}"},{J:"span",Y:"ytp-modern-videowall-still-info-author",Ag:"{{author_and_views}}"},{J:"span",Y:"ytp-modern-videowall-still-info-live",Ag:"Ao vivo"}]}]}]},{J:"span",Jg:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],U:{"aria-hidden":"true"},S:[{J:"span",Y:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{J:"span",Y:"ytp-modern-videowall-still-listlabel-length",S:[" (",{J:"span",Ag:"{{playlist_length}}"},")"]}]},{J:"span",Jg:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],U:{"aria-hidden":"true"},S:[{J:"span",Y:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{J:"span",Y:"ytp-modern-videowall-still-listlabel-length",Ag:" (50+)"}]}]});this.suggestion=null;this.X=X;this.api=n;this.N=new g.Um(this);g.K(this,this.N);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.N.j(n,"videodatachange",this.onVideoDataChange);n.createServerVe(this.element,this);this.onVideoDataChange()}; g.Nos=function(n,q){if(n.suggestion!==q){n.suggestion=q;var w=n.api.B();g.O0(n,q,"hqdefault.jpg");if(g.Q2(w)&&!n.api.Z("web_player_log_click_before_generating_ve_conversion_params")){w=q.z1();var X={};g.p0(n.api,"addEmbedsConversionTrackingParams",[X]);w=g.OV(w,X);n.updateValue("url",w)}(q=(q=q.sessionData)&&q.itct)&&n.api.setTrackingParams(n.element,q)}}; Hb=function(n,q){g.Q.call(this,{J:"div",Jg:["ytp-fullscreen-grid"],S:[{J:"div",Y:"ytp-fullscreen-grid-hover-overlay",U:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-20"},S:[{J:"div",Y:"ytp-fullscreen-grid-hover-overlay-chevron",S:[{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"g",U:{filter:"url(#filter0_d_3104_799356)"},S:[{J:"path",U:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z", fill:"white"}}]},{J:"defs",S:[{J:"filter",U:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},S:[{J:"feFlood",U:{"flood-opacity":"0",result:"BackgroundImageFix"}},{J:"feColorMatrix",U:{"in":"SourceAlpha",result:"hardAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{J:"feOffset"},{J:"feGaussianBlur",U:{stdDeviation:"0.5"}},{J:"feComposite",U:{in2:"hardAlpha",operator:"out"}},{J:"feColorMatrix",U:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}}, {J:"feBlend",U:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{J:"feBlend",U:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{J:"div",Y:"ytp-fullscreen-grid-main-content",S:[{J:"div",Y:"ytp-fullscreen-grid-header",S:[{J:"button",Y:"ytp-fullscreen-grid-header-button",U:{"aria-label":"{{ariaLabel}}"}},{J:"button",Jg:["ytp-grid-menu-close","ytp-button"],U:{"aria-label":"Fechar"},S:[g.fp()]}]},{J:"div",Y:"ytp-fullscreen-grid-stills-container"}]}]}); this.player=n;this.stills=[];this.videoData=null;this.currentState=0;this.G=this.element.querySelector(".ytp-fullscreen-grid-main-content");this.D=this.element.querySelector(".ytp-fullscreen-grid-main-content .ytp-fullscreen-grid-header");this.C=this.element.querySelector(".ytp-grid-menu-close");this.N=this.element.querySelector(".ytp-fullscreen-grid-header-button");this.L=this.element.querySelector(".ytp-fullscreen-grid-main-content .ytp-fullscreen-grid-stills-container");this.W=new g.Um(this);g.K(this, this.W);this.V=q;if(this.D&&this.G&&this.L&&this.N&&this.C){if(n=this.element.querySelector(".ytp-fullscreen-grid-hover-overlay"))this.j(n,"click",this.X),EJ(this.player,n,this);this.N&&this.j(this.N,"click",this.X);this.C&&this.j(this.C,"click",this.X);if(n=this.player.getVideoData(1))this.videoData=n;this.W.j(this.player,"videodatachange",this.onVideoDataChange)}}; d4=function(n){sc.call(this,n);var q=this;this.N=this.X=0;this.D=null;this.W=0;this.isEnded=!1;this.G=null;var w=new g.Um(n);g.K(this,w);this.qP=this.api.Z("web_player_imax_theater_mode");this.C=this.api.Z("web_player_enable_fullscreen_grid_components");w.j(n,"fullscreentoggled",function(){U0(q)}); w.j(n,"autohideupdate",function(X){X&&q.X===2&&tT(q,1)}); w.j(n,"videodatachange",function(){if(q.C){var X=q.api.getVideoData(1);q.videoData!==X&&q.X===2&&tT(q,1);q.videoData=X}},this); w.j(n,"sizestylechange",function(){q.C&&U0(q)}); y$(this.api,"setFullscreenQuickActions",function(X){q.setFullscreenQuickActions(X)}); y$(this.api,"setPlayerOverlayVideoDetailsRenderer",function(X){q.setPlayerOverlayVideoDetailsRenderer(X)}); this.C&&nrs(this,w,n)}; nrs=function(n,q,w){q.j(w,"keyboardserviceglobalkeydown",function(X,P){n.C&&X.keyCode===86&&!X.repeat&&n.X!==0&&(P&&(P.C6=!0),q$u(n))}); q.j(n.api.getRootNode(),"wheel",function(X){if(!n.G){var P;if(n.C&&(P=n.K)!=null&&P.element&&n.X!==0)if(g4(n)||X.stopPropagation(),g.N4(n.api.getRootNode(),"ytp-grid-scrolling"),n.W===0&&(n.W=window.innerHeight),n.X===1)n.W!==0&&(n.N+=X.deltaY/n.W,n.N=Math.min(Math.max(n.N,0),.85),yA(n),w6O(n,Math.abs(n.N)>=.85));else if(n.X===2){P=X.deltaY<0;var R,c=((R=n.K)==null?void 0:R.element.scrollTop)===0;P&&c?n.W!==0&&(n.N+=X.deltaY/n.W,yA(n),w6O(n,Math.abs(n.N)>=.85)):n.N!==0&&(n.N=0,yA(n))}}},{passive:!0}); q.j(w,"standardControlsInitialized",function(){if(!n.K){n.K=new Hb(n.api,n.L.bind(n));g.K(n,n.K);var X=n.api.getRootNode().querySelector(".ytp-chrome-bottom");X&&X.parentNode&&X.parentNode.insertBefore(n.K.element,X.nextSibling)}}); q.j(w,"presentingplayerstatechange",function(){av(n)}); q.j(w,"autonavvisibility",function(){av(n)}); n.api.nO().subscribe("visibilitystatechange",function(){av(n)}); X6h(n,n.X)}; w6O=function(n,q){n.D&&clearTimeout(n.D);q?Pj3(n):n.D=window.setTimeout(function(){Pj3(n)},150)}; Pj3=function(n){n.D&&(clearTimeout(n.D),n.D=null);n.W=0;n.C&&n.X!==0&&(Math.abs(n.N)>=.15&&q$u(n,!0),n.N=0,yA(n),g.qX(n.api.getRootNode(),"ytp-grid-scrolling"))}; q$u=function(n,q){n.C&&(q!==void 0&&q||(n.G&&clearTimeout(n.G),n.G=window.setTimeout(function(){n.G=null},1E3)),n.X===1?tT(n,2):tT(n,1))}; g4=function(n){return n.api.isFullscreen()||n.qP&&n.api.Ou()}; U0=function(n){var q=g4(n);n.V&&g.wb(n.V,q);n.playerOverlayVideoDetailsRenderer&&g.wb(n.playerOverlayVideoDetailsRenderer,q);n.C&&av(n)}; av=function(n){if(n.C){var q;if(n.api.getPresentingPlayerType()===2||n.api.Mi()||((q=g.L0(n.api))==null?0:q.lP())||n.api.isMinimized())tT(n,0);else{if(q=g.Z(n.api.getPlayerStateObject(),2))tT(n,2);else if(n.isEnded&&!q){var w=g4(n)?1:0;n.isEnded=q;tT(n,w)}else g4(n)?n.X!==2&&tT(n,1):tT(n,0);n.isEnded=q}}}; tT=function(n,q){n.X=q;var w;(w=n.K)==null||w.eg(q);n.N=0;yA(n);X6h(n,q)}; X6h=function(n,q){n=n.api.getRootNode();g.XW(n,"ytp-fullscreen-grid-peaking",q===1);g.XW(n,"ytp-fullscreen-grid-active",q===2)}; yA=function(n){n.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+n.N.toString())}; RXx=function(n){sc.call(this,n);var q=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Um(n);g.K(this,this.events);this.events.j(n,"heartbeatRequest",function(w){if(q.freePreviewUsageDetails.length||q.freePreviewWatchedDuration!==null)w.heartbeatRequestParams||(w.heartbeatRequestParams={}),w.heartbeatRequestParams.unpluggedParams||(w.heartbeatRequestParams.unpluggedParams={}),q.freePreviewUsageDetails.length>0?w.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= q.freePreviewUsageDetails:w.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+q.freePreviewWatchedDuration}}); y$(n,"setFreePreviewWatchedDuration",function(w){q.freePreviewWatchedDuration=w}); y$(n,"setFreePreviewUsageDetails",function(w){q.freePreviewUsageDetails=w})}; VA=function(n){g.A.call(this);this.features=[];var q=this.N,w=new oV(n),X=new eO(n),P=new mj(n),R=new jW(n);var c=g.kS(n.B())?void 0:new xK(n);var k=new g$(n),r=new mpy(n),e=new Ebu(n),f=new Ec(n);var O=g.kS(n.B())?new RXx(n):void 0;var H=n.Z("html5_enable_ssap")?new Hmz(n):void 0;var U;var t=(U=n.B().getWebPlayerContextConfig())!=null&&U.cinematicSettingsAvailable?new $K(n):void 0;U=new Cg(n);var V=n.Z("enable_courses_player_overlay_purchase")?new kGY(n):void 0;var T=g.iE(n.B())?new Pim(n):void 0; var x=new Df(n);var M=n.B().W?new WIh(n):void 0;var h=g.Q2(n.B())?new z$z(n):void 0;var E=n.Z("web_player_move_autonav_toggle")&&n.B().aS?new Y50(n):void 0;var S=g.iE(n.B())?new kRz(n):void 0;var nO=n.Z("web_enable_speedmaster")&&g.iE(n.B())?new Z3(n):void 0;var J=n.B().Uu?void 0:new $ps(n);var c0=n.Z("report_pml_debug_signal")?new Ef6(n):void 0;var ku=new yay(n),Is=new pM(n);var e3=g.LX(n.B())?new E3O(n):void 0;var wx=navigator.mediaSession&&window.MediaMetadata&&n.B().uJ?new tS(n):void 0;var v0= n.Z("html5_enable_drc")&&!n.B().D?new Mb(n):void 0;var ls=new Oc(n);var ql=g.iE(n.B())?new zwh(n):void 0;var o5=n.Z("html5_enable_d6de4")?new yj(n):void 0;var g0=g.iE(n.B())&&n.Z("web_sleep_timer")?new AS(n):void 0;var E6=g.Q2(n.B())?new nT6(n):void 0;var WG=new ET(n),HG=new Quy(n),SB=new caO(n);var wR=n.Z("enable_sabr_snackbar_message")?new ji3(n):void 0;var L=n.Z("web_enable_timely_actions")?new xp6(n):void 0;var El=new vH(n);var DL=g.iE(n.B())?new d4(n):void 0;var XY=n.Z("html5_enable_voice_boost")? new Iv(n):void 0;var Tf=n.Z("web_player_loop_settings_menu")&&n.B().ql?new ISu(n):void 0;var p=n.Z("html5_masthead_default_playback_rate")?new ewO(n):void 0;n=n.Z("web_player_playable_sequences_refactor")?new x$0(n):void 0;q.call(this,w,X,P,R,c,k,r,e,f,O,H,t,U,V,T,x,M,h,E,S,nO,J,c0,ku,Is,e3,void 0,wx,v0,ls,void 0,ql,o5,g0,E6,void 0,WG,HG,SB,void 0,wR,L,El,DL,XY,void 0,Tf,void 0,p,n)}; ceT=function(){this.X=this.N=NaN}; I$6=function(n,q){this.NP=n;this.timerName="";this.C=!1;this.X=NaN;this.W=new ceT;this.N=q||null;this.C=!1}; kCs=function(n,q,w){var X=g.ny(q.aH)&&!q.aH.D;if(q.aH.Ng&&(JF(q.aH)||q.aH.HW==="shortspage"||mQ(q.aH)||X)&&!n.C){n.C=!0;n.D=q.clientPlaybackNonce;g.bp("TIMING_ACTION")||ow("TIMING_ACTION",n.NP.csiPageType);n.NP.csiServiceName&&ow("CSI_SERVICE_NAME",n.NP.csiServiceName);if(n.N){X=n.N.mL();for(var P=g.a(Object.keys(X)),R=P.next();!R.done;R=P.next())R=R.value,y6(R,X[R],n.timerName);X=g.SY(ZWz)(n.N.aL);g.a1(X,n.timerName);X=n.N;X.N={};X.aL={}}g.a1({playerInfo:{visibilityState:g.SY(Q4x)()},playerType:"LATENCY_PLAYER_HTML5"}, n.timerName);n.K!==q.clientPlaybackNonce||Number.isNaN(n.X)||(pk("_start",n.timerName)?w=g.SY(U2)("_start",n.timerName)+n.X:g.TQ(new g.b4("attempted to log gapless pbs before CSI timeline started",{cpn:q.clientPlaybackNonce})));w&&!pk("pbs",n.timerName)&&pq(n,w)}}; pq=function(n,q,w){y6("pbs",q!=null?q:(0,g.m$)(),w!=null?w:n.timerName)}; Td=function(n){RNT();Pd0();n.timerName=""}; rez=function(n){if(n.N){var q=n.N;q.N={};q.aL={}}n.C=!1;n.K=void 0;n.X=NaN}; jNy=function(n,q){g.np.call(this);this.aH=n;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.N=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.V={};this.X=0;if(n=q.session_data)this.sessionData=BA(n,"&");this.index=Math.max(0,Number(q.index)||0);this.loop=!!q.loop;this.startSeconds=Number(q.startSeconds)||0;this.title=q.playlist_title||"";this.description=q.playlist_description||"";this.author= q.author||q.playlist_author||"";q.video_id&&(this.items[this.index]=q);if(n=q.api)typeof n==="string"&&n.length===16?q.list="PL"+n:q.playlist=n;if(n=q.list)switch(q.listType){case "user_uploads":this.listId=new AK("UU","PLAYER_"+n);break;default:var w=q.playlist_length;w&&(this.length=Number(w)||0);this.listId=Yx(n);if(n=q.video)this.items=n.slice(0),this.loaded=!0}else if(q.playlist){n=q.playlist.toString().split(",");this.index>0&&(this.items=[]);n=g.a(n);for(w=n.next();!w.done;w=n.next())(w=w.value)&& this.items.push({video_id:w});this.length=this.items.length;if(n=q.video)this.items=n.slice(0),this.loaded=!0}this.setShuffle(!!q.shuffle);if(n=q.suggestedQuality)this.quality=n;this.V=Cy(q,"playlist_");this.C=(q=q.thumbnail_ids)?q.split(","):[]}; sN0=function(n){return!!(n.playlist||n.list||n.api)}; eX0=function(n){var q=n.index+1;return q>=n.length?0:q}; f$x=function(n){var q=n.index-1;return q<0?n.length-1:q}; g.FM=function(n,q,w,X){q=q!==void 0?q:n.index;q=n.items&&q in n.items?n.items[n.order[q]]:null;var P=null;q&&(w&&(q.autoplay="1"),X&&(q.autonav="1"),P=new g.jF(n.aH,q),g.K(n,P),P.Pr=!0,P.startSeconds=n.startSeconds||P.clipStart||0,n.listId&&(P.playlistId=n.listId.toString()));return P}; OfO=function(n,q){n.index=g.Y1(q,0,n.length-1);n.startSeconds=0}; ifs=function(n,q){if(q.video&&q.video.length){n.title=q.title||"";n.description=q.description;n.views=q.views;n.likes=q.likes;n.dislikes=q.dislikes;n.author=q.author||"";var w=q.loop;w&&(n.loop=w);w=g.FM(n);n.items=[];for(var X=g.a(q.video),P=X.next();!P.done;P=X.next())if(P=P.value)P.video_id=P.encrypted_id,n.items.push(P);n.length=n.items.length;(q=q.index)?n.index=q:n.findIndex(w);n.setShuffle(!1);n.loaded=!0;n.X++;n.N&&n.N()}}; tas=function(n,q){var w,X,P,R,c,k,r;return g.b(function(e){if(e.X==1){w=g.AZ();var f=n.B(),O={context:g.gw(n),playbackContext:{contentPlaybackContext:{ancestorOrigins:f.ancestorOrigins}}},H=f.getWebPlayerContextConfig();if(H==null?0:H.encryptedHostFlags)O.playbackContext.contentPlaybackContext.encryptedHostFlags=H.encryptedHostFlags;if(H==null?0:H.hideInfo)O.playerParams={showinfo:!1};f=f.embedConfig;H=q.docid||q.video_id||q.videoId||q.id;if(!H){H=q.raw_embedded_player_response;if(!H){var U=q.embedded_player_response; U&&(H=JSON.parse(U))}if(H){var t,V,T,x,M,h;H=((h=g.u((t=H)==null?void 0:(V=t.embedPreview)==null?void 0:(T=V.thumbnailPreviewRenderer)==null?void 0:(x=T.playButton)==null?void 0:(M=x.buttonRenderer)==null?void 0:M.navigationEndpoint,g.tH))==null?void 0:h.videoId)||null}else H=null}t=(t=H)?t:void 0;V=n.playlistId?n.playlistId:q.list;T=q.listType;if(V){var E;T==="user_uploads"?E={username:V}:E={playlistId:V};Hfs(f,t,q,E);O.playlistRequest=E}else q.playlist?(E={templistVideoIds:q.playlist.toString().split(",")}, Hfs(f,t,q,E),O.playlistRequest=E):t&&(E={videoId:t},f&&(E.serializedThirdPartyEmbedConfig=f),O.singleVideoRequest=E);X=O;P=g.QO(UAY);g.Vy(e,2);return g.l(e,g.Lk(w,X,P),4)}if(e.X!=2)return R=e.N,c=n.B(),q.raw_embedded_player_response=R,c.WW=Pz(q,g.Q2(c)),c.C=c.WW==="EMBEDDED_PLAYER_MODE_PFL",R&&(k=R,k.trackingParams&&S0(k.trackingParams)),e.return(new g.jF(c,q));r=g.$u(e);r instanceof Error||(r=Error("b259802748"));g.pC(r);return e.return(n)})}; Hfs=function(n,q,w,X){w.index&&(X.playlistIndex=String(Number(w.index)+1));X.videoId=q?q:"";n&&(X.serializedThirdPartyEmbedConfig=n)}; g.vb=function(n,q){$G.get(n);$G.set(n,q)}; g.Lq=function(n){g.np.call(this);this.loaded=!1;this.player=n}; dAY=function(){this.X=[];this.N=[]}; g.kG=function(n,q){return q?n.N.concat(n.X):n.N}; g.Me=function(n,q){switch(q.kind){case "asr":grs(q,n.X);break;default:grs(q,n.N)}}; grs=function(n,q){g.d0(q,function(w){return n.equals(w)})||q.push(n)}; g.xG=function(n){g.A.call(this);this.Oq=n;this.X=new dAY;this.W=null;this.K=[];this.V=[]}; g.DD=function(n,q,w){g.xG.call(this,n);this.videoData=q;this.audioTrack=w;this.N=null;this.C=!1;this.K=q.Ay;this.V=q.wL;this.C=g.Pa(q)}; g.mAz=function(n,q){var w;return n.B().Z("safari_live_drm_captions_fix")&&((w=n.getVideoData())==null?0:w.XJ())?!1:g.kS(n.B())&&!q.isManifestless}; g.hT=function(n,q){return CT(n.info.mimeType)?q?n.info.itag===q:!0:!1}; g.yeO=function(n,q){if(n.N!=null&&g.mAz(q,n.N)&&n.N.N.rawcc!=null)return!0;if(!n.T9())return!1;q=!!n.N&&n.N.isManifestless&&Object.values(n.N.N).some(function(w){return g.hT(w,"386")}); n=!!n.N&&!n.N.isManifestless&&g.sOh(n.N);return q||n}; g.lh=function(n,q,w,X,P,R){g.xG.call(this,n);this.videoId=w;this.jZ=P;this.eventId=R;this.D={};this.N=null;n=X||g.zV(q).hl||"";n=n.split("_").join("-");this.C=WA(q,{hl:n})}; a$s=function(n,q){g.A.call(this);var w=this;this.T=n;this.W=q;this.aL={};this.N={};this.X=null;this.C=new Set;this.K=new g.Um(this);this.Wb={xdf:function(){return w.W}}; this.D=this.T.Z("web_player_defer_modules");this.RS=new Map;g.K(this,this.K);this.K.j(n,"videodatachange",this.onVideoDataChange)}; Vas=function(n,q){n.X=q}; g.Gd=function(n){return n.RS.get("captions")}; Ma6=function(n,q){switch(q){case "ad":return p6h(n);case "annotations_module":return n.T.isEmbedsShortsMode()?n=!1:(q=n.T,n=q.B(),q=q.getVideoData(),n=n.C||q.QF||n.controlsType==="3"?!1:n.n5.isEmpty()&&n.playerStyle!=="annotation-editor"&&n.playerStyle!=="live-dashboard"?!!q.D0||!!g.Nj(q)||!!g.ww(q):!0),n;case "asmjs":return T96(n);case "creatorendscreen":return FYs(n);case "embed":return g.Q2(n.T.B());case "endscreen":return g.$AO(n);case "heartbeat":return n.gQ();case "kids":return IK(n.T.B()); case "remote":return n.T.B().jJ;case "miniplayer":return n.T.B().showMiniplayerUiWhenMinimized;case "offline":return n.T.B().bI;case "captions":return vrz(n);case "unplugged":return g.qI(n.T.B());case "ux":return n.T.B().oH;case "webgl":return LYu(n);case "ypc":return n.SM();case "ypc_clickwrap":return n=n.T.getVideoData(),n.yp&&!n.A1;case "yto":return n.T.Z("web_player_playable_sequences_refactor")?!1:!!n.T.getVideoData().L.includes("yto");default:return g.pC(Error("Module descriptor "+q+" does not match")), !1}}; Cq=function(n,q,w,X,P){var R;w=w===void 0?!1:w;X=X===void 0?!1:X;var c=n.RS.get(q);if(!c||X)if(P||(P=function(){Cq(n,q,w,X)}),R||(R=function(){n.T.GG(q)}),c=c||xAO(n,q,Ma6(n,q),P,R))n.RS.set(q,c),c.create(),n.T.publish("modulecreated",q),w&&n.T.l7("onApiChange")}; hX6=function(n){var q=q===void 0?!1:q;var w,X,P,R,c;return g.b(function(k){if(k.X==1)return(w=n.RS.get("asmjs"))&&!q?k.return(w):(X=$G.get("asmjs"))!=null?(P=X,k.f5(2)):g.l(k,new Promise(function(r,e){DAm(n,"asmjs",function(){var f=$G.get("asmjs");f?r(f):e("cannot load module asmjs")},e)}),3); k.X!=2&&(P=k.N);R=P;if(!R)return k.return(Promise.reject("cannot load module asmjs"));c=new R(n.T);n.RS.set("asmjs",c);c.create();return k.return(c)})}; Cju=function(n){l$3(n)&&n.ZJ();GCu(n)&&(Cq(n,"captions",!0),Cq(n,"endscreen"),n.C$(),Cq(n,"creatorendscreen",!0))}; GCu=function(n){var q=n.T.getVideoData(),w=n.D&&!q.isInlinePlaybackNoAd;n.T.Z("html5_defer_modules_on_ads_only")&&!q.isAd()&&(w=!1);return w}; l$3=function(n){n=n.T.getVideoData();var q;if(q=n.Z("web_player_defer_ad")){if(g.yv(n.L,"ad")||hTz(n)||n.enableServerStitchedDai)n=!1;else{q=n.playerResponse;n=n.startSeconds;var w=q==null?void 0:q.adPlacements;if(q=w){q=Number.MAX_VALUE;w=g.a(w);for(var X=w.next();!X.done;X=w.next())if(X=X.value.adPlacementRenderer){var P=void 0,R=(P=X.config)==null?void 0:P.adPlacementConfig;P=void 0;if(((P=R)==null?void 0:P.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var c=P=void 0;R=Number((P=R)==null?void 0:(c= P.adTimeOffset)==null?void 0:c.offsetStartMilliseconds)||0;c=P=void 0;X=Number(((P=X.renderer)==null?void 0:(c=P.adBreakServiceRenderer)==null?void 0:c.prefetchMilliseconds)||0);X=R-X;X=11;n=n.api.B().G&&uh;return!(!q&&!n)}; PY=function(n,q){return!n.api.isInline()&&!RLO(n,gt(q))&&g.t2(q)}; Pys=function(n){n.XC.BN();if(n.Ts&&n.Kk)n.Kk=!1;else if(!n.api.B().D0&&!n.T7()){var q=n.api.getPlayerStateObject();g.Z(q,2)&&g.AE(n.api)||n.bF(q);!n.api.B().qe||q.isCued()||g.Z(q,1024)?n.GP():n.tC.isActive()?(n.wx(),n.tC.stop()):n.tC.start()}}; I5u=function(n,q){var w;if((w=n.api.getVideoData())==null?0:w.mutedAutoplay){var X,P;if((X=q.target)==null?0:(P=X.className)==null?0:P.includes("ytp-info-panel"))return!1}return g.t2(q)&&n.api.isMutedByMutedAutoplay()?(n.api.unMute(),n.api.getPresentingPlayerType()===2&&n.api.playVideo(),q=n.api.getPlayerStateObject(),!g.Z(q,4)||g.Z(q,8)||g.Z(q,2)||n.GP(),!0):!1}; k66=function(n,q,w){n.api.isFullscreen()?w<1-q&&n.api.toggleFullscreen():w>1+q&&n.api.toggleFullscreen()}; XFO=function(n){var q=EU()&&lb()>=67&&!n.api.B().G;n=n.api.B().disableOrganicUi;return!g.Ce("tizen")&&!SC&&!q&&!n}; g.Rh=function(n){g.Q.call(this,{J:"div",S:[{J:"div",Y:"ytp-bezel-text-wrapper",S:[{J:"div",Y:"ytp-bezel-text",Ag:"{{title}}"}]},{J:"div",Y:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},S:[{J:"div",Y:"ytp-bezel-icon",Ag:"{{icon}}"}]}]});this.T=n;this.X=new g.YF(this.show,10,this);n=this.T.Z("delhi_modern_web_player")?1E3:500;this.N=new g.YF(this.hide,n,this);g.K(this,this.X);g.K(this,this.N);this.hide()}; Ih=function(n,q,w){if(q<=0){w=V1();q="som desativado";var X=0}else w=w?{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},X=Math.floor(q),q=X+"volume";cY(n,w,q,X+"%")}; r66=function(n,q){q=q?{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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"}}]}:gNx();var w=n.T.getPlaybackRate(),X=g.NB("A velocidade do v\u00eddeo \u00e9 $RATE",{RATE:String(w)});cY(n,q,X,w+"x")}; jTz=function(n,q){q=q?"Legendas/legendas ocultas ativadas":"Legendas/legendas ocultas desativadas";cY(n,S5u(n.T),q)}; cY=function(n,q,w,X){X=X===void 0?"":X;n.updateValue("label",w===void 0?"":w);n.updateValue("icon",q);g.uF(n.N);n.X.start();n.updateValue("title",X);g.XW(n.element,"ytp-bezel-text-hide",!X)}; sTT=function(n,q){g.Q.call(this,{J:"button",Jg:["ytp-button","ytp-cards-button"],U:{"aria-label":"Exibir cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Q2(n.B()))},S:[{J:"span",Y:"ytp-cards-button-icon-default",S:[{J:"div",Y:"ytp-cards-button-icon",S:[n.B().Z("player_new_info_card_format")?aE6():{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {J:"div",Y:"ytp-cards-button-title",Ag:"Informa\u00e7\u00f5es"}]},{J:"span",Y:"ytp-cards-button-icon-shopping",S:[{J:"div",Y:"ytp-cards-button-icon",S:[{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",Y:"ytp-svg-shadow",U:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{J:"path",Y:"ytp-svg-fill",U:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{J:"path",Y:"ytp-svg-shadow-fill",U:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{J:"div", Y:"ytp-cards-button-title",Ag:"Compras"}]}]});this.T=n;this.X=q;this.N=null;this.fade=new g.ZF(this,250,!0,100);g.K(this,this.fade);g.XW(this.X,"ytp-show-cards-title",g.Q2(n.B()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.oC(!0)}; eLY=function(n,q){g.Q.call(this,{J:"div",Y:"ytp-cards-teaser",S:[{J:"div",Y:"ytp-cards-teaser-box"},{J:"div",Y:"ytp-cards-teaser-text",S:n.B().Z("player_new_info_card_format")?[{J:"button",Y:"ytp-cards-teaser-info-icon",U:{"aria-label":"Exibir cards","aria-haspopup":"true"},S:[aE6()]},{J:"img",Y:"ytp-cards-teaser-channel-avatar",U:{alt:"","aria-hidden":"true"}},{J:"span",Y:"ytp-cards-teaser-label",Ag:"{{text}}"},{J:"button",Y:"ytp-cards-teaser-close-button",U:{"aria-label":"Fechar"},S:[g.fp()]}]: [{J:"span",Y:"ytp-cards-teaser-label",Ag:"{{text}}"}]}]});var w=this;this.T=n;this.mz=q;this.fade=new g.ZF(this,250,!1,250);this.N=null;this.G=new g.YF(this.fjf,300,this);this.D=new g.YF(this.ajn,2E3,this);this.W=[];this.X=null;this.V=new g.YF(function(){w.element.style.margin="0"},250); this.onClickCommand=this.C=null;g.K(this,this.fade);g.K(this,this.G);g.K(this,this.D);g.K(this,this.V);n.B().Z("player_new_info_card_format")?(g.N4(n.getRootNode(),"ytp-cards-teaser-dismissible"),this.j(this.C5("ytp-cards-teaser-close-button"),"click",this.xk),this.j(this.C5("ytp-cards-teaser-info-icon"),"click",this.PY),this.j(this.C5("ytp-cards-teaser-label"),"click",this.PY)):this.listen("click",this.PY);this.j(q.element,"mouseover",this.fQ);this.j(q.element,"mouseout",this.CQ);this.j(n,"cardsteasershow", this.Rhn);this.j(n,"cardsteaserhide",this.hK);this.j(n,"cardstatechange",this.wv);this.j(n,"presentingplayerstatechange",this.wv);this.j(n,"appresize",this.hZ);this.j(n,"onShowControls",this.hZ);this.j(n,"onHideControls",this.y6);this.listen("mouseenter",this.pR)}; f5s=function(n){g.Q.call(this,{J:"button",Jg:[k3.BUTTON,k3.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},S:[{J:"div",Y:k3.TITLE_NOTIFICATIONS_ON,U:{title:"Deixar de receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"},S:[g.UD()]},{J:"div",Y:k3.TITLE_NOTIFICATIONS_OFF,U:{title:"Receber notifica\u00e7\u00f5es de todos os v\u00eddeos novos","aria-label":"Receber notifica\u00e7\u00f5es das inscri\u00e7\u00f5es"}, S:[{J:"svg",U:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},S:[{J:"path",U:{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=n;this.N=!1;n.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")}; Oux=function(n,q){n.N=q;n.element.classList.toggle(k3.NOTIFICATIONS_ENABLED,n.N);var w=n.api.getVideoData();w?(q=q?w.WA:w.fP)?(n=n.api.zx())?vK(n,q):g.pC(Error("No innertube service available when updating notification preferences.")):g.pC(Error("No update preferences command available.")):g.pC(Error("No video data when updating notification preferences."))}; HuT=function(n,q,w){var X=X===void 0?800:X;var P=P===void 0?600:P;var R=document.location.protocol;n=u8T(R+"//"+n+"/signin?context=popup","feature",q,"next",R+"//"+location.hostname+"/post_login");iuT(n,w,X,P)}; iuT=function(n,q,w,X){w=w===void 0?800:w;X=X===void 0?600:X;if(n=g.Hw(window,n,"loginPopup","width="+w+",height="+X+",resizable=yes,scrollbars=yes"))dNY(function(){q()}),n.moveTo((screen.width-w)/2,(screen.height-X)/2)}; g.ry=function(n,q,w,X,P,R,c,k,r,e,f,O){n=n.charAt(0)+n.substring(1).toLowerCase();w=w.charAt(0)+w.substring(1).toLowerCase();if(q==="0"||q==="-1")q=null;if(X==="0"||X==="-1")X=null;var H=f.B(),U=H.userDisplayName&&g.ny(H);g.Q.call(this,{J:"div",Jg:["ytp-button","ytp-sb"],S:[{J:"div",Y:"ytp-sb-subscribe",U:U?{title:g.NB("Inscrever-se como $USER_NAME",{USER_NAME:H.userDisplayName}),"aria-label":"Inscrever-se no canal","data-tooltip-image":yd(H),"data-tooltip-opaque":String(g.Q2(H)),tabindex:"0",role:"button"}: {"aria-label":"Inscrever-se no canal"},S:[{J:"div",Y:"ytp-sb-text",S:[{J:"div",Y:"ytp-sb-icon"},n]},q?{J:"div",Y:"ytp-sb-count",Ag:q}:""]},{J:"div",Y:"ytp-sb-unsubscribe",U:U?{title:g.NB("Inscrito como $USER_NAME",{USER_NAME:H.userDisplayName}),"aria-label":"Cancelar inscri\u00e7\u00e3o no canal","data-tooltip-image":yd(H),"data-tooltip-opaque":String(g.Q2(H)),tabindex:"0",role:"button"}:{"aria-label":"Cancelar inscri\u00e7\u00e3o no canal"},S:[{J:"div",Y:"ytp-sb-text",S:[{J:"div",Y:"ytp-sb-icon"}, w]},X?{J:"div",Y:"ytp-sb-count",Ag:X}:""]}],U:{"aria-live":"polite"}});var t=this;this.channelId=c;this.T=f;this.C=O;var V=this.C5("ytp-sb-subscribe"),T=this.C5("ytp-sb-unsubscribe");R&&g.N4(this.element,"ytp-sb-classic");if(P){k?this.N():this.X();var x=function(){if(H.vW){var h=t.channelId;if(r||e){var E={c:h};var S;g.ZH.isInitialized()&&(S=Avy(E));E=S||"";if(S=f.getVideoData())if(S=S.subscribeCommand){var nO=f.zx();nO?(vK(nO,S,{botguardResponse:E,feature:r}),f.Uq("SUBSCRIBE",h)):g.pC(Error("No innertube service available when updating subscriptions."))}else g.pC(Error("No subscribe command in videoData.")); else g.pC(Error("No video data available when updating subscription."))}T.focus();T.removeAttribute("aria-hidden");V.setAttribute("aria-hidden","true")}else HuT(g.jN(t.T.B()),"sb_button",t.W)},M=function(){var h=t.channelId; if(r||e){var E=f.getVideoData();vK(f.zx(),E.unsubscribeCommand,{feature:r});f.Uq("UNSUBSCRIBE",h)}V.focus();V.removeAttribute("aria-hidden");T.setAttribute("aria-hidden","true")}; this.j(V,"click",x);this.j(T,"click",M);this.j(V,"keypress",function(h){h.keyCode===13&&x(h)}); this.j(T,"keypress",function(h){h.keyCode===13&&M(h)}); this.j(f,"SUBSCRIBE",this.N);this.j(f,"UNSUBSCRIBE",this.X);this.C&&U&&(FIm(f),EJ(f,V,this),EJ(f,T,this))}else g.N4(V,"ytp-sb-disabled"),g.N4(T,"ytp-sb-disabled")}; dh0=function(n){g.Q.call(this,{J:"div",Y:"ytp-title-channel",S:[{J:"div",Y:"ytp-title-beacon"},{J:"a",Y:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:n.B().L,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{J:"div",Y:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},S:[{J:"div",Y:"ytp-title-expanded-heading",S:[{J:"div",Y:"ytp-title-expanded-title",S:[{J:"a",Ag:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:n.B().L,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{J:"div",Y:"ytp-title-expanded-subtitle",Ag:"{{expandedSubtitle}}",U:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var q=this;this.api=n;this.channel=this.C5("ytp-title-channel");this.X=this.C5("ytp-title-channel-logo");this.channelName=this.C5("ytp-title-expanded-title");this.D=this.C5("ytp-title-expanded-overlay");this.C=this.N=this.subscribeButton=null;this.W=!1;n.createClientVe(this.X,this,36925);n.createClientVe(this.channelName,this, 37220);g.Q2(this.api.B())&&Uhy(this);this.j(n,"videodatachange",this.dl);this.j(n,"videoplayerreset",this.dl);this.j(this.channelName,"click",function(w){q.api.logClick(q.channelName);g.Hw(window,trs(q));w.preventDefault()}); this.j(this.X,"click",this.FiT);this.dl()}; gRT=function(n){if(!n.api.B().KM){var q=n.api.getVideoData(),w=new g.ry("Inscreva-se",null,"Inscrito",null,!0,!1,q.qY,q.subscribed,"channel_avatar",null,n.api,!0);n.api.createServerVe(w.element,n);var X;n.api.setTrackingParams(w.element,((X=q.subscribeButtonRenderer)==null?void 0:X.trackingParams)||null);n.j(w.element,"click",function(){n.api.logClick(w.element)}); n.subscribeButton=w;g.K(n,n.subscribeButton);n.subscribeButton.wl(n.D);n.subscribeButton.hide();var P=new f5s(n.api);n.N=P;g.K(n,P);P.wl(n.D);P.hide();n.j(n.api,"SUBSCRIBE",function(){q.Ah&&(P.show(),n.api.logVisibility(P.element,!0))}); n.j(n.api,"UNSUBSCRIBE",function(){q.Ah&&(P.hide(),n.api.logVisibility(P.element,!1),Oux(P,!1))})}}; Uhy=function(n){var q=n.api.B();gRT(n);n.updateValue("flyoutUnfocusable","true");n.updateValue("channelTitleFocusable","-1");n.updateValue("shouldHideExpandedTitleForA11y","true");n.updateValue("shouldHideExpandedSubtitleForA11y","true");q.X||q.Ff||(n.j(n.channel,"mouseenter",n.M0),n.j(n.channel,"mouseleave",n.zj),n.j(n.channel,"focusin",n.M0),n.j(n.channel,"focusout",function(w){n.channel.contains(w.relatedTarget)||n.zj()})); n.C=new g.YF(function(){n.isExpanded()&&(n.api.logVisibility(n.channelName,!1),n.subscribeButton&&(n.subscribeButton.hide(),n.api.logVisibility(n.subscribeButton.element,!1)),n.N&&(n.N.hide(),n.api.logVisibility(n.N.element,!1)),n.channel.classList.remove("ytp-title-expanded"),n.channel.classList.add("ytp-title-show-collapsed"))},500); g.K(n,n.C);n.j(n.channel,mh6,function(){y60(n)}); n.j(n.api,"onHideControls",n.qB);n.j(n.api,"appresize",n.qB);n.j(n.api,"fullscreentoggled",n.qB)}; y60=function(n){n.channel.classList.remove("ytp-title-show-collapsed");n.channel.classList.remove("ytp-title-show-expanded")}; a5x=function(n){var q=n.api.getPlayerSize();return g.Q2(n.api.B())&&q.width>=524}; trs=function(n){var q=n.api.B(),w=n.api.getVideoData(),X=g.aK(q)+w.qe;g.UJ(w)&&(X="https://music.youtube.com"+w.qe);if(!g.Q2(q))return X;q={};g.p0(n.api,"addEmbedsConversionTrackingParams",[q]);return g.OV(X,q)}; jw=function(n){var q=g.kK({"aria-haspopup":"true"});g.IV.call(this,q,n);this.listen("keydown",this.N)}; sQ=function(n,q){n.element.setAttribute("aria-haspopup",String(q))}; Vrz=function(n,q){g.Q.call(this,{J:"div",Y:"ytp-user-info-panel",U:{"aria-label":"Informa\u00e7\u00f5es do usu\u00e1rio"},S:n.B().vW&&!n.Z("embeds_web_always_enable_signed_out_state")?[{J:"div",Y:"ytp-user-info-panel-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-user-info-panel-content",S:[{J:"div",Y:"ytp-user-info-panel-info",U:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ag:"{{watchingAsUsername}}"},{J:"div",Y:"ytp-user-info-panel-info",U:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ag:"{{watchingAsEmail}}"}]}]: [{J:"div",Y:"ytp-user-info-panel-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-user-info-panel-content",S:[{J:"div",S:[{J:"text",U:{tabIndex:"{{userInfoFocusable}}"},Ag:"Conta desconectada"}]},{J:"div",Y:"ytp-user-info-panel-login",S:[{J:"a",U:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ag:n.B().KM?"":"Fazer login no YouTube"}]}]}]});this.Oq=n;this.N=q;n.B().vW||n.B().KM||this.j(this.C5("ytp-user-info-panel-login"),"click",this.X8);this.closeButton=new g.Q({J:"button",Jg:["ytp-collapse","ytp-button"], U:{title:"Fechar"},S:[g.a6()]});this.closeButton.wl(this.element);g.K(this,this.closeButton);this.j(window,"blur",this.hide);this.j(document,"click",this.A7);this.dl()}; FOO=function(n,q,w){g.LM.call(this,n);this.aP=q;this.zz=w;this.getVideoUrl=new jw(6);this.j6=new jw(5);this.Ko=new jw(4);this.RP=new jw(3);this.Dd=new g.IV(g.kK({href:"{{href}}",target:this.T.B().L},void 0,!0),2,"Resolver problemas de reprodu\u00e7\u00e3o");this.showVideoInfo=new g.IV(g.kK(),1,"Estat\u00edsticas para nerds");this.HK=new g.R6({J:"div",Jg:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},Ag:"{{text}}"});this.yg=new vm(this.T,this.HK);this.Ks=this.jH=null;g.Q2(this.T.B())&& (this.closeButton=new g.Q({J:"button",Jg:["ytp-collapse","ytp-button"],U:{title:"Fechar"},S:[g.a6()]}),g.K(this,this.closeButton),this.closeButton.wl(this.element),this.closeButton.listen("click",this.Ec,this));g.Q2(this.T.B())&&(this.md=new g.IV(g.kK(),8,"Conta"),g.K(this,this.md),this.nG(this.md,!0),this.md.listen("click",this.jie,this),n.createClientVe(this.md.element,this.md,137682));this.T.B().ql&&(this.QU=new tk("Loop",7),g.K(this,this.QU),this.nG(this.QU,!0),this.QU.listen("click",this.pQT, this),n.createClientVe(this.QU.element,this.QU,28661));g.K(this,this.getVideoUrl);this.nG(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.ygq,this);n.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.K(this,this.j6);this.nG(this.j6,!0);this.j6.listen("click",this.Lie,this);n.createClientVe(this.j6.element,this.j6,28660);g.K(this,this.Ko);this.nG(this.Ko,!0);this.Ko.listen("click",this.mPh,this);n.createClientVe(this.Ko.element,this.Ko,28658);g.K(this,this.RP);this.nG(this.RP, !0);this.RP.listen("click",this.b55,this);g.K(this,this.Dd);this.nG(this.Dd,!0);this.Dd.listen("click",this.tgf,this);g.K(this,this.showVideoInfo);this.nG(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.sil,this);g.K(this,this.HK);this.HK.listen("click",this.Z5H,this);g.K(this,this.yg);q=document.queryCommandSupported&&document.queryCommandSupported("copy");Qsz("Chromium")>=43&&(q=!0);Qsz("Firefox")<=40&&(q=!1);q&&(this.jH=new g.Q({J:"textarea",Y:"ytp-html5-clipboard",U:{readonly:"", tabindex:"-1"}}),g.K(this,this.jH),this.jH.wl(this.element));var X;(X=this.md)==null||X.setIcon($HO());var P;(P=this.QU)==null||P.setIcon(h7u());this.RP.setIcon({J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{"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.Dd.setIcon(mHm());this.showVideoInfo.setIcon(yhO());this.j(n,"onLoopChange",this.onLoopChange);this.j(n,"videodatachange",this.onVideoDataChange);pFO(this);TQh(this,this.T.getVideoData())}; ew=function(n,q){var w=!1;if(n.jH){var X=n.jH.element;X.value=q;X.select();try{w=document.execCommand("copy")}catch(P){}}w?n.aP.hK():(n.HK.s8(q,"text"),g.D3(n.aP,n.yg),V3(n.HK.element),n.jH&&(n.jH=null,pFO(n)));return w}; TQh=function(n,q){var w=n.T.B(),X=n.T.getPresentingPlayerType()===2,P=!X||q.isListed;P=!w.PW&&!!q.videoId&&P;w.playerStyle!=="play"?w="https://support.google.com/youtube/?p=report_playback":(w={contact_type:"playbackissue",html5:1,ei:q.eventId,v:q.videoId,p:"movies_playback"},q.X&&(w.fmt=q.X.itag),q.clientPlaybackNonce&&(w.cpn=q.clientPlaybackNonce),q.partnerId&&(w.partnerid=q.partnerId),w=g.OV("//support.google.com/googleplay/",w));n.Ko.bL(P&&q.allowEmbed);n.getVideoUrl.bL(P);n.j6.bL(P&&!q.isLivePlayback); n.Dd.s8(w,"href");var R;(R=n.QU)==null||R.bL(!q.isLivePlayback&&!X);var c;(c=n.md)==null||c.bL(!X)}; pFO=function(n){var q=!!n.jH;g.cH(n.RP,q?"Copiar informa\u00e7\u00f5es de depura\u00e7\u00e3o":"Ver informa\u00e7\u00f5es sobre depura\u00e7\u00e3o");sQ(n.RP,!q);g.cH(n.Ko,q?"Copiar c\u00f3digo de incorpora\u00e7\u00e3o":"Ver c\u00f3digo de incorpora\u00e7\u00e3o");sQ(n.Ko,!q);g.cH(n.getVideoUrl,q?"Copiar URL do v\u00eddeo":"Ver URL do v\u00eddeo");sQ(n.getVideoUrl,!q);g.cH(n.j6,q?"Copiar URL do v\u00eddeo no momento atual":"Ver URL do v\u00eddeo no tempo atual");sQ(n.j6,!q);n.Ko.setIcon(q?tum(): null);n.getVideoUrl.setIcon(q?im():null);n.j6.setIcon(q?im():null)}; $hY=function(n){return g.Q2(n.T.B())?n.md:n.QU}; LO3=function(n,q){g.xc.call(this,n);this.zz=q;this.W=new g.Um(this);this.qP=new g.YF(this.Ngq,1E3,this);this.PW=this.C=null;g.K(this,this.W);g.K(this,this.qP);q=this.T.B();n.createClientVe(this.element,this,28656);g.N4(this.element,"ytp-contextmenu");this.T.B().experiments.BW("delhi_modern_web_player")&&g.iE(q)&&g.N4(this.element,"ytp-delhi-modern-contextmenu");vR6(this);this.hide()}; vR6=function(n){g.Vs(n.W);var q=n.T.B();q.playerStyle==="gvn"||q.X||q.Ff||(q=n.T.yT(),n.W.j(q,"contextmenu",n.dPo),n.W.j(q,"touchstart",n.onTouchStart,null,!0),n.W.j(q,"touchmove",n.Sp,null,!0),n.W.j(q,"touchend",n.Sp,null,!0))}; Mrs=function(n){n.T.isFullscreen()?g.Zp(n.T,n.element,10):n.wl(XZ(n).body)}; fU=function(n,q,w){w=w===void 0?240:w;g.Q.call(this,{J:"button",Jg:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Q2(n.B()))},S:[{J:"div",Y:"ytp-copylink-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-copylink-title",Ag:"Copiar link",U:{"aria-hidden":"true"}}]});this.api=n;this.N=q;this.X=w;this.visible=!1;this.tooltip=this.N.Qu();q=n.B();this.tooltip.element.setAttribute("aria-live","polite");g.XW(this.element,"ytp-show-copylink-title",g.Q2(q));n.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.j(n,"videodatachange",this.dl);this.j(n,"videoplayerreset",this.dl);this.j(n,"appresize",this.dl);this.dl();this.addOnDisposeCallback(g.C0(this.tooltip,this.element))}; xhT=function(n){var q=n.api.B(),w=n.api.getVideoData(),X=n.api.yT().getPlayerSize().width;q=q.C;return!!w.videoId&&X>=n.X&&w.uJ&&!w.bS&&!n.api.isEmbedsShortsMode()&&!q}; Dhs=function(n){n.updateValue("icon",jV());if(n.api.B().X)n.tooltip.mj(n.element,"Link copiado para a \u00e1rea de transfer\u00eancia");else{n.updateValue("title-attr","Link copiado para a \u00e1rea de transfer\u00eancia");n.tooltip.DL();n.tooltip.mj(n.element);var q=n.listen("mouseleave",function(){n.wM(q);n.dl();n.tooltip.w_()})}}; hL0=function(n,q){return g.b(function(w){if(w.X==1)return g.Vy(w,2),g.l(w,navigator.clipboard.writeText(q),4);if(w.X!=2)return w.return(!0);g.$u(w);var X=w.return,P=!1,R=g.O_("TEXTAREA");R.value=q;R.setAttribute("readonly","");var c=n.api.getRootNode();c.appendChild(R);if(bg){var k=window.getSelection();k.removeAllRanges();var r=document.createRange();r.selectNodeContents(R);k.addRange(r);R.setSelectionRange(0,q.length)}else R.select();try{P=document.execCommand("copy")}catch(e){}c.removeChild(R); return X.call(w,P)})}; l53=function(n){g.Q.call(this,{J:"div",Y:"ytp-doubletap-ui-legacy",S:[{J:"div",Y:"ytp-doubletap-fast-forward-ve"},{J:"div",Y:"ytp-doubletap-rewind-ve"},{J:"div",Y:"ytp-doubletap-static-circle",S:[{J:"div",Y:"ytp-doubletap-ripple"}]},{J:"div",Y:"ytp-doubletap-overlay-a11y"},{J:"div",Y:"ytp-doubletap-seek-info-container",S:[{J:"div",Y:"ytp-doubletap-arrows-container",S:[{J:"span",Y:"ytp-doubletap-base-arrow"},{J:"span",Y:"ytp-doubletap-base-arrow"},{J:"span",Y:"ytp-doubletap-base-arrow"}]},{J:"div", Y:"ytp-doubletap-tooltip",S:[{J:"div",Y:"ytp-seek-icon-text-container",S:[{J:"div",Y:"ytp-seek-icon",Ag:"{{seekIcon}}"},{J:"div",Y:"ytp-chapter-seek-text-legacy",Ag:"{{seekText}}"}]},{J:"div",Y:"ytp-doubletap-tooltip-label",Ag:"{{seekTime}}"}]}]}]});this.T=n;this.W=new g.YF(this.show,10,this);this.X=new g.YF(this.hide,700,this);this.G=this.C=0;this.qP=this.D=!1;this.N=this.C5("ytp-doubletap-static-circle");g.K(this,this.W);g.K(this,this.X);this.hide();this.V=this.C5("ytp-doubletap-fast-forward-ve"); this.L=this.C5("ytp-doubletap-rewind-ve");this.T.createClientVe(this.V,this,28240);this.T.createClientVe(this.L,this,28239);this.T.logVisibility(this.V,!0);this.T.logVisibility(this.L,!0);this.D=n.Z("web_show_cumulative_seek_time");this.qP=n.Z("web_center_static_circles")}; G6u=function(n,q){q=g.NB("$TOTAL_SEEK_TIME segundos",{TOTAL_SEEK_TIME:q.toString()});n.updateValue("seekTime",q)}; Cy0=function(n){$c.call(this,n,!1,!0);this.WW=[];this.ej=[];this.element.setAttribute("data-overlay-order","9");this.V=!0;this.badge.element.classList.add("ytp-featured-product");this.HW=new g.Q({J:"div",Y:"ytp-featured-product-open-in-new"});g.K(this,this.HW);this.countdownTimer=new g.Q({J:"text",Y:"ytp-featured-product-countdown",Ag:"{{content}}"});this.countdownTimer.hide();g.K(this,this.countdownTimer);this.X=new g.Q({J:"div",Y:"ytp-featured-product-trending",S:[{J:"div",Y:"ytp-featured-product-trending-icon"}, {J:"text",Y:"ytp-featured-product-trending-text",Ag:"{{trendingOffer}}"}]});this.X.hide();g.K(this,this.X);this.overflowButton=new g.Q({J:"button",Jg:["ytp-featured-product-overflow-icon","ytp-button"],U:{"aria-haspopup":"true"}});this.overflowButton.hide();g.K(this,this.overflowButton);this.G=new g.Q({J:"text",Y:"ytp-featured-product-exclusive-countdown",Ag:"{{content}}",U:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.K(this,this.G);this.D=new g.Q({J:"div",Y:"ytp-featured-product-exclusive-container", U:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},S:[{J:"div",Y:"ytp-featured-product-exclusive-badge-container",S:[{J:"div",Y:"ytp-featured-product-exclusive-badge",S:[{J:"text",Y:"ytp-featured-product-exclusive-badge-text",Ag:"{{exclusive}}",U:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.D.hide();g.K(this,this.D);this.banner=new g.Q({J:"a",Y:"ytp-featured-product-container",S:[{J:"div",Y:"ytp-featured-product-thumbnail",S:[{J:"img",U:{src:"{{thumbnail}}"}},this.HW]},{J:"div", Y:"ytp-featured-product-details",S:[{J:"text",Y:"ytp-featured-product-title",Ag:"{{title}}"},this.T.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",Y:"ytp-featured-product-price-container",U:{"aria-label":"{{priceA11yText}}"},S:[{J:"text",Y:"ytp-featured-product-price-when-promotion-text-enabled",Ag:"{{price}}",U:{"aria-hidden":"true"}},{J:"text",Y:"ytp-featured-product-promotion-text",Ag:"{{promotionText}}",U:{"aria-hidden":"true"}}]}:{J:"div",U:{"aria-label":"{{priceA11yText}}"}, S:[{J:"text",Y:"ytp-featured-product-price",Ag:"{{price}}",U:{"aria-hidden":"true"}},{J:"text",Y:"ytp-featured-product-sales-original-price",Ag:"{{salesOriginalPrice}}",U:{"aria-hidden":"true"}},{J:"text",Y:"ytp-featured-product-price-drop-reference-price",Ag:"{{priceDropReferencePrice}}",U:{"aria-hidden":"true"}}]},this.T.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",Y:"ytp-featured-product-when-promotion-text-enabled",S:[{J:"text",Y:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", Ag:"{{affiliateDisclaimer}}"},this.X,{J:"text",Y:"ytp-featured-product-vendor-when-promotion-text-enabled",Ag:"{{vendor}}"}]}:{J:"div",S:[{J:"text",Y:"ytp-featured-product-affiliate-disclaimer",Ag:"{{affiliateDisclaimer}}"},this.T.Z("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.D:null,this.X,{J:"text",Y:"ytp-featured-product-vendor",Ag:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.K(this,this.banner);this.banner.wl(this.C.element);this.j(this.T,g.Aq("featured_product"), this.rJp);this.j(this.T,g.YS("featured_product"),this.hY);this.j(this.T,"videodatachange",this.onVideoDataChange);this.j(this.overflowButton.element,"click",this.vD);this.j(n,"featuredproductdismissed",this.WE)}; ERz=function(n){var q,w;n=(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:w.itemData;var X,P,R;return(n==null||!n.affiliateDisclaimer)&&(n==null?0:(X=n.exclusivesData)==null?0:X.exclusiveOfferLabelText)&&(n==null?0:(P=n.exclusivesData)==null?0:P.expirationTimestampMs)&&(n==null?0:(R=n.exclusivesData)==null?0:R.exclusiveOfferCountdownText)?!0:!1}; buy=function(n){var q,w,X,P,R=(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:(X=w.itemData)==null?void 0:(P=X.exclusivesData)==null?void 0:P.expirationTimestampMs;q=(Number(R)-Date.now())/1E3;if(q>0){if(q<604800){var c,k,r,e;w=(c=n.N)==null?void 0:(k=c.bannerData)==null?void 0:(r=k.itemData)==null?void 0:(e=r.exclusivesData)==null?void 0:e.exclusiveOfferCountdownText;if(w!==void 0)for(c=Date.now(),k=g.a(w),r=k.next();!r.done;r=k.next())if(r=r.value,r!==void 0&&r.text!==void 0&&(e=Number(r.textDisplayStartTimestampMs), !isNaN(e)&&c>=e)){r.insertCountdown?(q=r.text.replace(/\$0/,String(hm({seconds:q}))),n.G.s8(q)):n.G.s8(r.text);n.G.show();break}}var f,O,H,U;n.D.update({exclusive:(f=n.N)==null?void 0:(O=f.bannerData)==null?void 0:(H=O.itemData)==null?void 0:(U=H.exclusivesData)==null?void 0:U.exclusiveOfferLabelText});n.D.show();OQ(n);var t;(t=n.YE)==null||t.start()}else oRO(n)}; oRO=function(n){var q;(q=n.YE)==null||q.stop();n.G.hide();n.D.hide();i2(n)}; A6y=function(n){var q,w,X=(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:w.itemData;return n.T.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(X==null||!X.priceReplacementText)&&(X==null?0:X.promotionText)?X==null?void 0:X.promotionText.content:null}; Yj0=function(n){var q,w,X=(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:w.itemData,P,R;if(!(X!=null&&X.priceReplacementText||n.T.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(X==null?0:(P=X.dealsData)==null?0:(R=P.sales)==null?0:R.originalPrice)){var c,k;return X==null?void 0:(c=X.dealsData)==null?void 0:(k=c.sales)==null?void 0:k.originalPrice}return null}; KO0=function(n){var q,w,X=(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:w.itemData,P,R,c,k;if(!((X==null?0:X.priceReplacementText)||n.T.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(X==null?0:(P=X.dealsData)==null?0:(R=P.sales)==null?0:R.originalPrice))&&(X==null?0:(c=X.dealsData)==null?0:(k=c.priceDrop)==null?0:k.referencePrice)){var r,e;return X==null?void 0:(r=X.dealsData)==null?void 0:(e=r.priceDrop)==null?void 0:e.referencePrice}return null}; Sj3=function(n){var q,w,X=(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:w.itemData;if(X==null?0:X.priceReplacementText)return X==null?void 0:X.priceReplacementText;if((X==null?0:X.promotionText)&&n.T.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var P;return(X==null?void 0:X.price)+" "+(X==null?void 0:(P=X.promotionText)==null?void 0:P.content)}var R,c;if(X==null?0:(R=X.dealsData)==null?0:(c=R.sales)==null?0:c.originalPrice){var k,r;return X==null?void 0:(k=X.dealsData)== null?void 0:(r=k.sales)==null?void 0:r.salesPriceAccessibilityLabel}var e,f;if(X==null?0:(e=X.dealsData)==null?0:(f=e.priceDrop)==null?0:f.referencePrice){var O,H;return(X==null?void 0:X.price)+" "+(X==null?void 0:(O=X.dealsData)==null?void 0:(H=O.priceDrop)==null?void 0:H.referencePrice)}return X==null?void 0:X.price}; ua3=function(n){if(n.T.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var q,w,X;return n.X.xE?null:(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:(X=w.itemData)==null?void 0:X.vendorName}var P,R,c,k,r,e;return n.X.xE||n.D.xE||((P=n.N)==null?0:(R=P.bannerData)==null?0:(c=R.itemData)==null?0:c.affiliateDisclaimer)?null:(k=n.N)==null?void 0:(r=k.bannerData)==null?void 0:(e=r.itemData)==null?void 0:e.vendorName}; QTY=function(n,q){HY(n);if(q){var w=g.mB.getState().entities;w=QM(w,"featuredProductsEntity",q);if(w!=null&&w.productsData){q=[];w=g.a(w.productsData);for(var X=w.next();!X.done;X=w.next()){X=X.value;var P=void 0;if((P=X)!=null&&P.identifier&&X.featuredSegments){n.WW.push(X);var R=void 0;P=g.a((R=X)==null?void 0:R.featuredSegments);for(R=P.next();!R.done;R=P.next()){var c=R.value;R=BQ6(c.startTimeSec);R!==void 0&&(c=BQ6(c.endTimeSec),q.push(new g.og(R*1E3,c===void 0?0x7ffffffffffff:c*1E3,{id:X.identifier, namespace:"featured_product"})))}}}n.T.Zf(q)}}}; i2=function(n){if(n.trendingOfferEntityKey){var q=g.mB.getState().entities;if(q=QM(q,"trendingOfferEntity",n.trendingOfferEntityKey)){var w,X,P;q.encodedSkuId!==((w=n.N)==null?void 0:(X=w.bannerData)==null?void 0:(P=X.itemData)==null?void 0:P.encodedOfferSkuId)?OQ(n):(n.X.update({trendingOffer:q.shortLabel+" \u2022 "+q.countLabel}),n.X.show(),n.banner.update({vendor:ua3(n)}))}else OQ(n)}else OQ(n)}; OQ=function(n){n.X.hide();n.banner.update({vendor:ua3(n)})}; HY=function(n){n.WW=[];n.hY();n.T.wg("featured_product")}; ZuO=function(n){var q,w,X,P,R=(q=n.N)==null?void 0:(w=q.bannerData)==null?void 0:(X=w.itemData)==null?void 0:(P=X.hiddenProductOptions)==null?void 0:P.dropTimestampMs;q=(Number(R)-Date.now())/1E3;n.countdownTimer.s8(hm({seconds:q}));if(q>0){var c;(c=n.nM)==null||c.start()}}; J6x=function(n){var q;(q=n.nM)==null||q.stop();n.countdownTimer.hide()}; BQ6=function(n){if(n!==void 0&&n.trim()!==""&&(n=Math.trunc(Number(n.trim())),!(isNaN(n)||n<0)))return n}; qK6=function(n,q,w){g.Q.call(this,{J:"div",Jg:["ytp-info-panel-action-item"],S:[{J:"div",Y:"ytp-info-panel-action-item-disclaimer",Ag:"{{disclaimer}}"},{J:"a",Jg:["ytp-info-panel-action-item-button","ytp-button"],U:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},S:[{J:"div",Y:"ytp-info-panel-action-item-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-info-panel-action-item-label",Ag:"{{label}}"}]}]});this.T=n;this.N=w;this.disclaimer=this.C5("ytp-info-panel-action-item-disclaimer");this.button= this.C5("ytp-info-panel-action-item-button");this.YH=!1;this.T.createServerVe(this.element,this,!0);this.listen("click",this.onClick);n="";w=g.u(q==null?void 0:q.onTap,$9);var X=g.u(w,g.Lp);this.YH=!1;X?(n=X.url||"",n.startsWith("//")&&(n="https:"+n),this.YH=!0,g.s4(this.button,g.rD(n))):(X=g.u(w,zL0))&&!this.N?((n=X.phoneNumbers)&&n.length>0?(n="sms:"+n[0],X.messageText&&(n+="?&body="+encodeURI(X.messageText))):n="",this.YH=!0,g.s4(this.button,g.rD(n,[WOh]))):(w=g.u(w,NQO))&&!this.N&&(n=w.phoneNumber? "tel:"+w.phoneNumber:"",this.YH=!0,g.s4(this.button,g.rD(n,[nC6])));var P;if(w=(P=q.disclaimerText)==null?void 0:P.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var R;this.update({label:(R=q.bodyText)==null?void 0:R.content,icon:t5(),disclaimer:w})}else{this.disclaimer.style.display="none";var c;this.update({label:(c=q.bodyText)==null?void 0:c.content,icon:t5()})}this.T.setTrackingParams(this.element,q.trackingParams||null);this.YH&&(this.X={externalLinkData:{url:n}})}; wZs=function(n,q){var w=q3();g.wL.call(this,n,{J:"div",Y:"ytp-info-panel-detail-skrim",S:[{J:"div",Y:"ytp-info-panel-detail",U:{role:"dialog",id:w},S:[{J:"div",Y:"ytp-info-panel-detail-header",S:[{J:"div",Y:"ytp-info-panel-detail-title",Ag:"{{title}}"},{J:"button",Jg:["ytp-info-panel-detail-close","ytp-button"],U:{"aria-label":"Fechar"},S:[g.fp()]}]},{J:"div",Y:"ytp-info-panel-detail-body",Ag:"{{body}}"},{J:"div",Y:"ytp-info-panel-detail-items"}]}]},250);this.N=q;this.items=this.C5("ytp-info-panel-detail-items"); this.C=new g.Um(this);this.itemData=[];this.W=w;this.j(this.C5("ytp-info-panel-detail-close"),"click",this.hK);this.j(this.C5("ytp-info-panel-detail-skrim"),"click",this.hK);this.j(this.C5("ytp-info-panel-detail"),"click",function(X){X.stopPropagation()}); g.K(this,this.C);this.T.createServerVe(this.element,this,!0);this.j(n,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",n.getVideoData());this.hide()}; XZs=function(n,q){n=g.a(n.itemData);for(var w=n.next();!w.done;w=n.next())w=w.value,w.T.logVisibility(w.element,q)}; cly=function(n,q){g.Q.call(this,{J:"div",Y:"ytp-info-panel-preview",U:{"aria-live":"assertive","aria-atomic":"true","aria-owns":q.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Q2(n.B()))},S:[{J:"div",Y:"ytp-info-panel-preview-text",Ag:"{{text}}"},{J:"div",Y:"ytp-info-panel-preview-chevron",Ag:"{{chevron}}"}]});var w=this;this.T=n;this.jP=this.N=this.videoId=null;this.C=this.showControls=this.X=!1;this.j(this.element,"click",function(){n.logClick(w.element);n.T7();PH(q)}); this.fade=new g.ZF(this,250,!1,100);g.K(this,this.fade);this.T.createServerVe(this.element,this,!0);this.j(n,"videodatachange",this.onVideoDataChange);this.j(n,"presentingplayerstatechange",this.fR);this.j(this.T,"paidcontentoverlayvisibilitychange",this.tA);this.j(this.T,"infopaneldetailvisibilitychange",this.tA);var X=n.getVideoData()||{};Pxz(X)&&Rj3(this,X);this.j(n,"onShowControls",this.aF);this.j(n,"onHideControls",this.CR)}; Rj3=function(n,q){if(!q.yp||!n.T.eT()){var w=q.E1||1E4,X=Pxz(q);n.N?q.videoId&&q.videoId!==n.videoId&&(g.uF(n.N),n.videoId=q.videoId,X?(IiT(n,w,q),n.ZC()):(n.hK(),n.N.dispose(),n.N=null)):X&&(q.videoId&&(n.videoId=q.videoId),IiT(n,w,q),n.ZC())}}; Pxz=function(n){var q,w,X,P;return!!((q=n.k6)==null?0:(w=q.title)==null?0:w.content)||!!((X=n.k6)==null?0:(P=X.bodyText)==null?0:P.content)}; IiT=function(n,q,w){n.N&&n.N.dispose();n.N=new g.YF(n.ZLl,q,n);g.K(n,n.N);var X;q=((X=w.k6)==null?void 0:X.trackingParams)||null;n.T.setTrackingParams(n.element,q);var P;var R,c;if(w==null?0:(R=w.k6)==null?0:(c=R.title)==null?0:c.content){var k;X=(P=w.k6)==null?void 0:(k=P.title)==null?void 0:k.content;var r,e;if((r=w.k6)==null?0:(e=r.bodyText)==null?0:e.content)X+=" \u2022 ";P=X}else P="";var f,O;w=((f=w.k6)==null?void 0:(O=f.bodyText)==null?void 0:O.content)||"";n.update({text:P+w,chevron:g.eV()})}; k_O=function(n,q){n.N&&(g.Z(q,8)?(n.X=!0,n.ZC(),n.N.start()):(g.Z(q,2)||g.Z(q,64))&&n.videoId&&(n.videoId=null))}; UQ=function(n){var q=null;try{q=n.toLocaleString("pt-BR",{style:"percent"})}catch(w){q=n.toLocaleString(void 0,{style:"percent"})}return q}; ta=function(n,q){var w=0;n=g.a(n);for(var X=n.next();!(X.done||X.value.startTime>q);X=n.next())w++;return w===0?w:w-1}; rlu=function(n,q){for(var w=0,X=g.a(n),P=X.next();!P.done;P=X.next()){P=P.value;if(q=P.timeRangeStartMillis&&q0?q[0]:null;var w=g.km("ytp-chrome-bottom"),X=g.km("ytp-ad-module");n.W=!(w==null||!w.contains(q));n.V=!(X==null||!X.contains(q));n.L=!(q==null||!q.hasAttribute("data-tooltip-target-fixed"));return q}; ThO=function(n,q,w){if(!n.D){if(q){n.tooltipRenderer=q;q=n.tooltipRenderer.text;var X=!1,P;(q==null?0:(P=q.runs)==null?0:P.length)&&q.runs[0].text&&(n.update({title:q.runs[0].text.toString()}),X=!0);g.wb(n.title,X);q=n.tooltipRenderer.detailsText;P=!1;var R;if((q==null?0:(R=q.runs)==null?0:R.length)&&q.runs[0].text){X=q.runs[0].text.toString();R=X.indexOf("$TARGET_ICON");if(R>-1)if(n.tooltipRenderer.targetId){q=[];X=X.split("$TARGET_ICON");var c=new g.wV({J:"span",Y:"ytp-promotooltip-details-icon", S:[Voz[n.tooltipRenderer.targetId]]});g.K(n,c);for(var k=[],r=g.a(X),e=r.next();!e.done;e=r.next())e=new g.wV({J:"span",Y:"ytp-promotooltip-details-component",Ag:e.value}),g.K(n,e),k.push(e);X.length===2?(q.push(k[0].element),q.push(c.element),q.push(k[1].element)):X.length===1&&(R===0?(q.push(c.element),q.push(k[0].element)):(q.push(k[0].element),q.push(c.element)));R=q.length?q:null}else R=null;else R=X;if(R){if(typeof R!=="string")for(g.U_(n.details),P=g.a(R),R=P.next();!R.done;R=P.next())n.details.appendChild(R.value); else n.update({details:R});P=!0}}g.wb(n.details,P);P=n.tooltipRenderer.acceptButton;R=!1;var f,O,H;((f=g.u(P,g.ZR))==null?0:(O=f.text)==null?0:(H=O.runs)==null?0:H.length)&&g.u(P,g.ZR).text.runs[0].text&&(n.update({acceptButtonText:g.u(P,g.ZR).text.runs[0].text.toString()}),R=!0);g.wb(n.acceptButton,R);f=n.tooltipRenderer.dismissButton;O=!1;var U,t,V;((U=g.u(f,g.ZR))==null?0:(t=U.text)==null?0:(V=t.runs)==null?0:V.length)&&g.u(f,g.ZR).text.runs[0].text&&(n.update({dismissButtonText:g.u(f,g.ZR).text.runs[0].text.toString()}), O=!0);g.wb(n.dismissButton,O)}w&&(n.C=w);n.N=aih(n);n.G=!1;n.T.B().Z("web_player_hide_nitrate_promo_tooltip")||n.bL(!0);pZ6(n);n.xE&&!n.qP&&(n.qP=!0,n.Wb.sx(0));n.X&&n.T.logVisibility(n.element,n.xE)}}; pU=function(n){n.bL(!1);n.X&&n.T.logVisibility(n.element,n.xE)}; Fmz=function(n){var q,w,X,P=((q=g.u(n.acceptButton,g.ZR))==null?void 0:(w=q.text)==null?void 0:(X=w.runs)==null?void 0:X.length)&&!!g.u(n.acceptButton,g.ZR).text.runs[0].text,R,c,k;q=((R=g.u(n.dismissButton,g.ZR))==null?void 0:(c=R.text)==null?void 0:(k=c.runs)==null?void 0:k.length)&&!!g.u(n.dismissButton,g.ZR).text.runs[0].text;return P||q}; pZ6=function(n){var q;if(!(q=!n.N)){q=n.N;var w=window.getComputedStyle(q);q=w.display==="none"||w.visibility==="hidden"||q.getAttribute("aria-hidden")==="true"}if(q||n.T.isMinimized())n.bL(!1);else if(q=g.qf(n.N),q.width&&q.height){n.T.oe(n.element,n.N);var X=n.T.yT().getPlayerSize().height;w=g.qf(n.C5("ytp-promotooltip-container")).height;n.W?n.element.style.top=X-w-q.height-12+"px":n.L||(X=n.T.rd().height-w-q.height-12,n.element.style.top=X+"px");X=n.C5("ytp-promotooltip-pointer");var P=g.NY(n.N, n.T.getRootNode()),R=Number(n.element.style.left.replace(/[^\d\.]/g,""));n=n.T.isFullscreen()?18:12;X.style.left=P.x-R+q.width/2-n+"px";X.style.top=w+"px"}else n.bL(!1)}; TR=function(n){g.Q.call(this,{J:"button",Jg:["ytp-replay-button","ytp-button"],U:{title:"Reiniciar"},S:[g.mg()]});this.T=n;this.j(n,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.eg(n.getPlayerStateObject());EJ(this.T,this.element,this)}; Fy=function(n,q){q=q===void 0?240:q;g.Q.call(this,{J:"button",Jg:["ytp-button","ytp-search-button"],U:{title:"Pesquisar","data-tooltip-opaque":String(g.Q2(n.B()))},S:[{J:"div",Y:"ytp-search-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-search-title",Ag:"Pesquisar"}]});this.api=n;this.X=q;this.visible=!1;this.updateValue("icon",{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},S:[{J:"path",Y:"ytp-svg-fill",U:{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"}}]}); n.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.N();this.j(n,"appresize",this.N);this.j(n,"videodatachange",this.N);EJ(n,this.element,this)}; $3=function(n){g.Q.call(this,{J:"div",Y:"ytp-seek-overlay",S:[{J:"div",Jg:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],S:[{J:"div",Jg:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{J:"svg",U:{viewBox:"0 0 22 32",width:"22",height:"32"},S:[{J:"path",U:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{J:"div",Y:"ytp-seek-overlay-duration",Ag:"{{durationBack}}"}]},{J:"div",Jg:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], S:[{J:"div",Y:"ytp-seek-overlay-duration",Ag:"{{durationForward}}"},{J:"div",Jg:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],S:[{J:"svg",U:{viewBox:"0 0 22 32",width:"22",height:"32"},S:[{J:"path",U:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{J:"div",Y:"ytp-seek-overlay-message",S:[{J:"div",Y:"ytp-seek-overlay-message-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-seek-overlay-message-text",Ag:"{{text}}"}]}]});var q=this;this.T=n;this.G=0;this.N="hidden"; this.qP=0;this.V=this.C5("ytp-seek-overlay-animation-back");this.L=this.C5("ytp-seek-overlay-animation-forward");this.PW=this.C5("ytp-seek-overlay-message");this.D=new g.YF(function(){$_h(q)},g.Jv(this.T.B().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.K(this,this.D);this.T.createClientVe(this.L,this,28240);this.T.createClientVe(this.V,this,28239);this.T.logVisibility(this.L,!0);this.T.logVisibility(this.V,!0);this.hide()}; vCz=function(n,q){n.X=n.C.animate([{offset:0,opacity:q,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});n.X.addEventListener("finish",function(){n.X=void 0;n.D.start();n.N="lingering"})}; Lmh=function(n,q,w){w=w===void 0?!1:w;var X=[];X.push({offset:0,transform:"translateX("+(n.W===-1?30:-30)+"px)",opacity:w?"0":"1"});w&&X.push({offset:.5,opacity:"1"});X.push({offset:1,transform:"translateX(0)"});w=q.animate(X,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});q.querySelector("path").animate([{offset:0,d:n.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:n.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return w}; Moh=function(n){if((0,g.m$)()-n.qP>=(g.Jv(n.T.B().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var q=n.C.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);q.classList.add("ytp-seek-overlay-arrow-additional");q.classList.remove("ytp-seek-overlay-arrow-persistent");n.C.appendChild(q);Lmh(n,q,!0).addEventListener("finish",function(){q.remove()})}}; $_h=function(n,q,w){w=w===void 0?!0:w;n.X=n.C.animate([{offset:0,opacity:q===void 0?1:q},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});w&&(n.X.addEventListener("finish",function(){n.X=void 0;x_s(n);n.hide()}),n.N="fading-out")}; D_6=function(n){var q=Number(getComputedStyle(n.C).opacity),w;(w=n.X)==null||w.cancel();n.X=void 0;return q}; x_s=function(n){n.G=0;n.N="hidden";n.W=void 0;n.C=void 0;n.qP=0;n.D.stop();n.X=void 0}; hjO=function(n,q,w){n.updateValue("text",q);if(w){a:{switch(w){case "PREMIUM_STANDALONE":q=Mus();break a;case "PREMIUM_STANDALONE_CAIRO":q=xHh();break a}q=void 0}n.updateValue("icon",q)}q=g.a(n.PW.getAnimations());for(w=q.next();!w.done;w=q.next())w.value.cancel();n.PW.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){n.updateValue("text","");n.updateValue("icon","")})}; vY=function(n,q,w,X){X=X===void 0?240:X;g.Q.call(this,{J:"button",Jg:["ytp-button","ytp-share-button"],U:{title:"Compartilhar","aria-haspopup":"true","aria-owns":w.element.id,"data-tooltip-opaque":String(g.Q2(n.B()))},S:[{J:"div",Y:"ytp-share-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-share-title",Ag:"Compartilhar"}]});this.api=n;this.N=q;this.X=w;this.C=X;this.visible=!1;this.tooltip=this.N.Qu();n.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.j(n,"videodatachange",this.dl); this.j(n,"videoplayerreset",this.dl);this.j(n,"appresize",this.dl);this.j(n,"presentingplayerstatechange",this.dl);this.dl();this.addOnDisposeCallback(g.C0(this.tooltip,this.element))}; li0=function(n){var q=n.api.B(),w=n.api.getVideoData(),X=g.Q2(q)&&g.Sd(n.api)&&g.Z(n.api.getPlayerStateObject(),128);q=q.C||q.disableSharing&&n.api.getPresentingPlayerType()!==2||!w.showShareButton||w.uJ||X||w.bS||!1;X=n.api.yT().getPlayerSize().width;return!!w.videoId&&X>=n.C&&!q}; G_x=function(n,q){q.name!=="InvalidStateError"&&q.name!=="AbortError"&&(q.name==="NotAllowedError"?(n.N.T7(),PH(n.X,n.element,!1)):g.pC(q))}; ECs=function(n,q){var w=q3(),X=n.B();w={J:"div",Y:"ytp-share-panel",U:{id:q3(),role:"dialog","aria-labelledby":w},S:[{J:"div",Y:"ytp-share-panel-inner-content",S:[{J:"div",Y:"ytp-share-panel-title",U:{id:w},Ag:"Compartilhar"},{J:"a",Jg:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:X.L,title:"Compartilhar link","aria-label":"{{shareLinkWithUrl}}"},Ag:"{{linkText}}"},{J:"label",Y:"ytp-share-panel-include-playlist",S:[{J:"input",Y:"ytp-share-panel-include-playlist-checkbox", U:{type:"checkbox",checked:"true"}},"Incluir lista de reprodu\u00e7\u00e3o"]},{J:"div",Y:"ytp-share-panel-loading-spinner",S:[aV()]},{J:"div",Y:"ytp-share-panel-service-buttons",Ag:"{{buttons}}"},{J:"div",Y:"ytp-share-panel-error",Ag:"Ocorreu um erro ao recuperar informa\u00e7\u00f5es de compartilhamento. Tente novamente mais tarde."}]},{J:"button",Jg:["ytp-share-panel-close","ytp-button"],U:{title:"Fechar"},S:[g.fp()]}]};g.wL.call(this,n,w,250);var P=this;this.moreButton=null;this.api=n;this.tooltip= q.Qu();this.C=[];this.D=this.C5("ytp-share-panel-inner-content");this.closeButton=this.C5("ytp-share-panel-close");this.j(this.closeButton,"click",this.hK);this.addOnDisposeCallback(g.C0(this.tooltip,this.closeButton));this.W=this.C5("ytp-share-panel-include-playlist-checkbox");this.j(this.W,"click",this.dl);this.N=this.C5("ytp-share-panel-link");this.addOnDisposeCallback(g.C0(this.tooltip,this.N));this.api.createClientVe(this.N,this,164503);this.j(this.N,"click",function(R){R.preventDefault();P.api.logClick(P.N); var c=P.api.getVideoUrl(!0,!0,!1,!1);c=Cxh(P,c);g.mh(c,P.api,R)&&P.api.Uq("SHARE_CLICKED")}); this.listen("click",this.J7);this.j(n,"videoplayerreset",this.hide);this.j(n,"fullscreentoggled",this.onFullscreenToggled);this.j(n,"onLoopRangeChange",this.QZ);this.hide()}; Al0=function(n,q){oCu(n);for(var w=q.links||q.shareTargets,X=0,P={},R=0;R0&&!nO&&!E?(h.length===2&&(h=["noreferrer"]),g.Hw(U,V,H,h[0]),U=wyY()):(T=M.join(","),Co()&&U.navigator&&U.navigator.standalone&&H&&H!="_self"?(T=g.O_("A"),g.s4(T,V),T.target=H,x&&(T.rel="noreferrer"),((t=t.attributionsrc)||t==="")&&T.setAttribute("attributionsrc",t),t=document.createEvent("MouseEvent"), t.initMouseEvent("click",!0,!0,U,1),T.dispatchEvent(t),U=wyY()):x?(U=g.Hw(U,"",H,T),t=g.RP(V),U&&(U.opener=null,t===""&&(t="javascript:''"),t='',t=O4(t),(V=U.document)&&V.write&&(V.write(iV(t)),V.close()))):((U=g.Hw(U,V,H,T))&&t.noopener&&(U.opener=null),U&&t.noreferrer&&(U.opener=null)));U&&(U.opener||(U.opener=window),U.focus());O.preventDefault()}}}(P)); P.B1.addOnDisposeCallback(g.C0(n.tooltip,P.B1.element));k==="Facebook"?n.api.createClientVe(P.B1.element,P.B1,164504):k==="Twitter"&&n.api.createClientVe(P.B1.element,P.B1,164505);n.j(P.B1.element,"click",function(f){return function(){n.api.logClick(f.B1.element)}}(P)); n.api.logVisibility(P.B1.element,!0);n.C.push(P.B1);X++}}var r=q.more||q.moreLink,e=new g.Q({J:"a",Jg:["ytp-share-panel-service-button","ytp-button"],S:[{J:"span",Y:"ytp-share-panel-service-button-more",S:[{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},S:[{J:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",U:{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"}}]}]}],U:{href:r,target:"_blank",title:"Mais"}});e.listen("click",function(f){var O=r;n.api.logClick(n.moreButton.element);O=Cxh(n,O);g.mh(O,n.api,f)&&n.api.Uq("SHARE_CLICKED")}); e.addOnDisposeCallback(g.C0(n.tooltip,e.element));n.api.createClientVe(e.element,e,164506);n.j(e.element,"click",function(){n.api.logClick(e.element)}); n.api.logVisibility(e.element,!0);n.C.push(e);n.moreButton=e;n.updateValue("buttons",n.C)}; Cxh=function(n,q){var w={};g.Q2(n.api.B())&&(g.p0(n.api,"addEmbedsConversionTrackingParams",[w]),q=g.OV(q,w));return q}; oCu=function(n){for(var q=g.a(n.C),w=q.next();!w.done;w=q.next())w=w.value,w.detach(),g.wM(w);n.C=[]}; LU=function(n){return n===void 0||n.startSec===void 0||n.endSec===void 0?!1:!0}; YKy=function(n,q){n.startSec+=q;n.endSec+=q}; SKs=function(n){$c.call(this,n);this.X=this.N=this.isContentForward=this.G=!1;this.element.setAttribute("data-overlay-order","8");Kmm(this);this.j(this.T,"changeProductsInVideoVisibility",this.L_P);this.j(this.T,"videodatachange",this.onVideoDataChange)}; uHh=function(n){n.D&&n.Tp.element.removeChild(n.D.element);n.D=void 0}; Qmh=function(n,q){return q.map(function(w){var X,P;if((w=(X=g.u(w,BhY))==null?void 0:(P=X.thumbnail)==null?void 0:P.thumbnails)&&w.length!==0)return w[0].url}).filter(function(w){return w!==void 0}).map(function(w){w=new g.Q({J:"img", Y:"ytp-suggested-action-product-thumbnail",U:{alt:"",src:w}});g.K(n,w);return w})}; Zax=function(n,q){n.isContentForward=q;g.XW(n.badge.element,"ytp-suggested-action-badge-content-forward",q)}; M$=function(n){var q=n.isContentForward&&!n.Xs();g.XW(n.badge.element,"ytp-suggested-action-badge-preview-collapsed",q&&n.N);g.XW(n.badge.element,"ytp-suggested-action-badge-preview-expanded",q&&n.X)}; x3=function(n,q,w){return new g.og(n*1E3,q*1E3,{priority:9,namespace:w})}; Jls=function(n){n.T.wg("shopping_overlay_visible");n.T.wg("shopping_overlay_preview_collapsed");n.T.wg("shopping_overlay_preview_expanded");n.T.wg("shopping_overlay_expanded")}; Kmm=function(n){n.j(n.T,g.Aq("shopping_overlay_visible"),function(){n.d$(!0)}); n.j(n.T,g.YS("shopping_overlay_visible"),function(){n.d$(!1)}); n.j(n.T,g.Aq("shopping_overlay_expanded"),function(){n.PW=!0;Fg(n)}); n.j(n.T,g.YS("shopping_overlay_expanded"),function(){n.PW=!1;Fg(n)}); n.j(n.T,g.Aq("shopping_overlay_preview_collapsed"),function(){n.N=!0;M$(n)}); n.j(n.T,g.YS("shopping_overlay_preview_collapsed"),function(){n.N=!1;M$(n)}); n.j(n.T,g.Aq("shopping_overlay_preview_expanded"),function(){n.X=!0;M$(n)}); n.j(n.T,g.YS("shopping_overlay_preview_expanded"),function(){n.X=!1;M$(n)})}; Nhm=function(n){g.Q.call(this,{J:"div",Y:"ytp-shorts-title-channel",S:[{J:"a",Y:"ytp-shorts-title-channel-logo",U:{href:"{{channelLink}}",target:n.B().L,"aria-label":"{{channelLogoLabel}}"}},{J:"div",Y:"ytp-shorts-title-expanded-heading",S:[{J:"div",Y:"ytp-shorts-title-expanded-title",S:[{J:"a",Ag:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:n.B().L,tabIndex:"0"}}]}]}]});var q=this;this.api=n;this.N=this.C5("ytp-shorts-title-channel-logo");this.channelName=this.C5("ytp-shorts-title-expanded-title"); this.subscribeButton=null;n.createClientVe(this.N,this,36925);this.j(this.N,"click",function(w){q.api.logClick(q.N);g.Hw(window,zjm(q));w.preventDefault()}); n.createClientVe(this.channelName,this,37220);this.j(this.channelName,"click",function(w){q.api.logClick(q.channelName);g.Hw(window,zjm(q));w.preventDefault()}); Wmz(this);this.j(n,"videodatachange",this.dl);this.j(n,"videoplayerreset",this.dl);this.dl()}; Wmz=function(n){if(!n.api.B().KM){var q=n.api.getVideoData(),w=new g.ry("Inscreva-se",null,"Inscrito",null,!0,!1,q.qY,q.subscribed,"channel_avatar",null,n.api,!0);n.api.createServerVe(w.element,n);var X;n.api.setTrackingParams(w.element,((X=q.subscribeButtonRenderer)==null?void 0:X.trackingParams)||null);n.j(w.element,"click",function(){n.api.logClick(w.element)}); n.subscribeButton=w;g.K(n,n.subscribeButton);n.subscribeButton.wl(n.element)}}; zjm=function(n){var q=n.api.B(),w=n.api.getVideoData();w=g.aK(q)+w.qe;if(!g.Q2(q))return w;q={};g.p0(n.api,"addEmbedsConversionTrackingParams",[q]);return g.OV(w,q)}; DS=function(n){g.wL.call(this,n,{J:"button",Jg:["ytp-skip-intro-button","ytp-popup","ytp-button"],S:[{J:"div",Y:"ytp-skip-intro-button-text",Ag:"Pular introdu\u00e7\u00e3o"}]},100);var q=this;this.C=!1;this.N=new g.YF(function(){q.hide()},5E3); this.hJ=this.bI=NaN;g.K(this,this.N);this.G=function(){q.show()}; this.D=function(){q.hide()}; this.W=function(){var w=q.T.getCurrentTime();w>q.bI/1E3&&w0?{J:"svg",U:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{J:"path",Jg:["ytp-circle-arrow","ytp-svg-fill"],U:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {J:"text",Jg:["ytp-jump-button-text","ytp-svg-fill"],U:{x:"7.05",y:"15.05"}}]}:{J:"svg",U:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},S:[{J:"path",Jg:["ytp-circle-arrow","ytp-svg-fill"],U:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {J:"text",Jg:["ytp-jump-button-text","ytp-svg-fill"],U:{x:"6.5",y:"15"}}]}]});var w=this;this.T=n;this.N=q;this.X=new g.YF(function(){w.C?(w.C=!1,w.X.start()):w.element.classList.remove("ytp-jump-spin","backwards")},250); this.C=!1;(q=q>0)?this.T.createClientVe(this.element,this,36843):this.T.createClientVe(this.element,this,36844);var X=g.NB(q?"Avance $SECONDS segundos. (\u2192)":"Volte $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.N).toString()});this.update({title:X,"data-title-no-tooltip":X,"aria-keyshortcuts":q?"\u2192":"\u2190"});this.W=this.element.querySelector(".ytp-jump-button-text");this.W.textContent=Math.abs(this.N).toString();this.listen("click",this.onClick,this);EJ(n,this.element,this)}; Ie6=function(n,q){q?n.element.classList.add("ytp-jump-button-enabled"):n.element.classList.remove("ytp-jump-button-enabled");n.T.logVisibility(n.element,q);n.T.DL()}; b2=function(n,q){l2.call(this,n,q,"timedMarkerCueRange","Momentos importantes da visualiza\u00e7\u00e3o");this.j(n,g.YS("timedMarkerCueRange"),this.hU);this.j(n,"updatemarkervisibility",this.updateVideoData)}; kIO=function(n){var q,w=(q=n.T.getVideoData())==null?void 0:q.je;if(w)for(n=n.W.IH,w=g.a(w),q=w.next();!q.done;q=w.next())if(q=n[q.value]){var X=void 0,P=void 0,R=void 0;if(((X=q.onTap)==null?void 0:(P=X.innertubeCommand)==null?void 0:(R=P.changeEngagementPanelVisibilityAction)==null?void 0:R.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return q}}; Aa=function(n){var q=n.Z("web_enable_pip_on_miniplayer");g.Q.call(this,{J:"button",Jg:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},S:["{{icon}}"]});this.T=n;this.visible=!1;this.listen("click",this.onClick);this.j(n,"fullscreentoggled",this.dl);this.updateValue("title",g.oo(n,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer", icon:this.T.Z("delhi_modern_web_player_icons")?{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:q?{J:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},S:[{J:"g",U:{transform:"translate(96, -96) scale(0.8)"},S:[{J:"path",E8:!0,U:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:L1T()});EJ(n,this.element,this);n.createClientVe(this.element,this,62946);this.dl()}; Y3=function(n,q,w,X,P,R){R=R===void 0?!1:R;var c={J:"div",Jg:["ytp-input-slider-section"],S:[{J:"input",Y:"ytp-input-slider",U:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};P&&c.S.unshift(P);R&&c.Jg.push("ytp-vertical-slider");g.Q.call(this,c);this.W=n;this.D=q;this.V=w;this.initialValue=X;this.header=P;this.X=this.C5("ytp-input-slider");this.N=X?X:n;this.init();this.j(this.X,"input",this.C);this.j(this.X,"keydown", this.G)}; KU=function(n,q){n.N=q;n.updateValue("slidervalue",n.N);n.X.valueAsNumber=n.N;rt3(n,q)}; rt3=function(n,q){n.X.style.setProperty("--yt-slider-shape-gradient-percent",(q-n.W)/(n.D-n.W)*100+"%")}; Sw=function(n){var q=n.isMuted()?0:n.getVolume();Y3.call(this,0,100,1,q,void 0,!0);this.T=n;this.qP=hU(this.vW,10,this);this.L=!1;this.j(n,"onVolumeChange",this.onVolumeChange);this.j(this.element,"wheel",this.PW)}; jru=function(n,q){g.Q.call(this,{J:"div",U:{tabindex:"0",title:"Volume","data-tooltip-offset-y":"-120"},Jg:["ytp-volume-popover"]});var w=this;this.isVisible=!1;this.tooltip=q.Qu();this.X=new Sw(n);g.K(this,this.X);this.X.wl(this.element);this.N=new g.YF(function(){u2(w,!1)},300); this.listen("mouseenter",function(){w.N.stop()}); this.listen("mouseleave",function(){w.N.start()}); this.listen("focus",function(){w.N.stop()}); this.j(this.X.X,"focus",function(){w.N.stop()}); this.listen("focusout",function(){w.N.start();w.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.C0(q.Qu(),this.element));g.K(this,this.N)}; u2=function(n,q){n.element.classList.toggle("ytp-volume-popover-hovering",q);n.isVisible=q;(n=n.element.closest(".ytp-chrome-bottom"))&&n.classList.toggle("ytp-volume-popover-showing",q)}; BY=function(n,q,w){w=w===void 0?!1:w;var X=n.B().Tp?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}"}:{"aria-disabled":"true","aria-haspopup":"true"};X=n.Z("delhi_modern_web_player")?{J:"div",Y:"ytp-mute-button",S:[{J:"button",U:X,Jg:["ytp-volume-icon","ytp-button"],Ag:"{{icon}}"}]}:{J:"button",Jg:["ytp-mute-button","ytp-button"],U:X,S:[{J:"div",Y:"ytp-volume-icon",Ag:"{{icon}}"}]}; g.Q.call(this,X);this.T=n;this.n5=w;this.X=null;this.G=this.vW=this.L=this.V=NaN;this.HW=this.qP=null;this.D=[];this.W=[];this.visible=!1;this.C=this.N=this.PW=null;n.Z("delhi_modern_web_player")&&this.update({"data-priority":4});w=this.T.B();this.updateValue("icon",V1());this.tooltip=q.Qu();this.updateValue("dataTooltipOffsetY",0);this.C=g.km("ytp-volume-icon",this.element);X=this.T.Z("delhi_modern_web_player_icons")?{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",Jg:["ytp-svg-fill", "ytp-svg-volume-animation-speaker"],U:{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"}},{J:"path",Y:"ytp-svg-volume-animation-small-ripple",U:{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"}},{J:"path",Y:"ytp-svg-volume-animation-big-ripple",U:{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"}}]}:{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"defs",S:[{J:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},S:[{J:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{J:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{J:"path",Y:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{J:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},S:[{J:"path",Y:"ytp-svg-volume-animation-mover", U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{J:"path",E8:!0,Jg:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{J:"path",E8:!0,Jg:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"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.X=new g.wV(X);g.K(this,this.X);this.qP=this.X.C5("ytp-svg-volume-animation-speaker");this.HW=this.qP.getAttribute("d");this.D=g.cO("ytp-svg-volume-animation-mover",this.X.element);this.T.Z("delhi_modern_web_player_icons");this.W=g.cO("ytp-svg-volume-animation-hider",this.X.element);this.T.Z("delhi_modern_web_player_icons");this.Tp=new w4;g.K(this,this.Tp);this.WW=new w4;g.K(this,this.WW);this.j(n,"appresize",this.WU);this.j(n,"onVolumeChange",this.onVolumeChange);n.Z("delhi_modern_web_player")? this.listen("click",this.py5):this.listen("click",this.xV);w.Tp?(n.Z("delhi_modern_web_player")&&(this.N=new jru(n,q),this.N.wl(this.element),g.K(this,this.N),this.j(this.C,"mouseover",this.HU),this.j(this.C,"focus",this.HU),this.j(this.C,"mouseout",this.KZ),this.j(this.C,"blur",this.KZ)),w=n.Z("delhi_modern_web_player")?this.C:this.element,this.addOnDisposeCallback(g.C0(q.Qu(),w))):sru(this);this.message=null;n.createClientVe(this.element,this,28662);this.WU(n.yT().getPlayerSize());this.setVolume(n.getVolume(), n.isMuted())}; ebx=function(n,q){if(n.T.B().Tp){var w=g.oo(n.T,"Sem \u00e1udio","m"),X=g.oo(n.T,"Reativar o som","m");n.updateValue("title",q?X:w);n.update({"data-title-no-tooltip":q?"Reativar o som":"Sem \u00e1udio"});n.tooltip.DL()}}; i6Y=function(n,q){n.V=q;var w=n.HW;n.T.Z("delhi_modern_web_player_icons")?n.X.C5("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(q+") translate(-22,-12)")):q&&(w+=pBs(feT,O6s,q));n.qP.setAttribute("d",w)}; H6O=function(n,q){var w;q===1?w=n.T.Z("delhi_modern_web_player_icons")?{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:V1():w=n.X;n.vW=q;if(n.T.Z("delhi_modern_web_player_icons"))n.X.C5("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-q+") translate(-18,-12)")),n.X.C5("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(n.V-q+") translate(-22, -12)"));else{for(var X=20*q,P=0;P=3&&n.T.getPresentingPlayerType()!==2}; ytY=function(n){var q=K0(n.T.fM());return q?n.N?q.Om():q.qM():!1}; d6x=function(n){var q={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},w=n.playlist!=null&&n.playlist.Om();w=g.Sd(n.T)&&(!n.N||w);var X=n.N&&g.JE(n.T),P=ytY(n),R=n.N&&n.T.getPresentingPlayerType()===5,c=g.oo(n.T,"Pr\u00f3ximo","SHIFT+n"),k=g.oo(n.T,"Anterior","SHIFT+p");if(R)q.title="Iniciar v\u00eddeo";else if(n.C)q.title="Reiniciar";else if(w){var r=null;n.playlist&&(r=g.FM(n.playlist,n.N?eX0(n.playlist):f$x(n.playlist)));if(r){if(r.videoId){var e= n.playlist.listId;q.url=n.T.B().getVideoUrl(r.videoId,e?e.toString():void 0)}q.text=r.title;q.duration=r.lengthText?r.lengthText:r.lengthSeconds?g.Up(r.lengthSeconds):null;q.preview=r.EF("mqdefault.jpg")}n.N?(q.title=c,q["data-title-no-tooltip"]="Pr\u00f3ximo",q["aria-keyshortcuts"]="SHIFT+n"):(q.title=k,q["data-title-no-tooltip"]="Anterior",q["aria-keyshortcuts"]="SHIFT+p")}else if(X){if(k=(r=n.videoData)==null?void 0:g.dY(r))q.url=k.z1(),q.text=k.title,q.duration=k.lengthText?k.lengthText:k.lengthSeconds? g.Up(k.lengthSeconds):null,q.preview=k.EF("mqdefault.jpg");q.title=c;q["data-title-no-tooltip"]="Pr\u00f3ximo";q["aria-keyshortcuts"]="SHIFT+n"}q.disabled=!X&&!w&&!P&&!R;n.update(q);n.G=!!q.url;X||w||n.C||P||R?n.X||(n.X=g.C0(n.tooltip,n.element),n.D=n.listen("click",n.onClick,n)):n.X&&(n.X(),n.X=null,n.wM(n.D),n.D=null);n.tooltip.DL();g.XW(n.element,"ytp-playlist-ui",n.N&&(w||n.T.Z("web_hide_next_button")))}; tP3=function(n,q){return n?q?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:Hl():q?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:DHO()}; VP3=function(n,q){g.Q.call(this,{J:"div",Y:"ytp-fine-scrubbing",S:[{J:"div",Y:"ytp-fine-scrubbing-draggable",S:[{J:"div",Y:"ytp-fine-scrubbing-thumbnails",U:{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}}"}}]},{J:"div",U:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{J:"div",Y:"ytp-fine-scrubbing-seek-time",U:{"aria-hidden":"true"}, Ag:"{{seekTime}}"},{J:"div",Y:"ytp-fine-scrubbing-play",S:[n.Z("delhi_modern_web_player_icons")?gV():dV()],U:{title:"Reproduzir desta posi\u00e7\u00e3o",role:"button"}},{J:"div",Y:"ytp-fine-scrubbing-dismiss",S:[g.fp()],U:{title:"Sair da busca precisa",role:"button"}}]});var w=this;this.api=n;this.D=this.C5("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.C5("ytp-fine-scrubbing-dismiss");this.vW=this.C5("ytp-fine-scrubbing-draggable");this.playButton=this.C5("ytp-fine-scrubbing-play");this.thumbnails= [];this.X=[];this.n5=this.N=0;this.Tp=void 0;this.qP=NaN;this.D0=this.L=this.C=this.V=0;this.W=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.Ff=0;this.isEnabled=this.HW=!1;aeY(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.C0(q,this.dismissButton));this.addOnDisposeCallback(g.C0(q,this.playButton));this.WW=new g.KM(this.vW,!0);this.WW.subscribe("dragstart",this.FB,this);this.WW.subscribe("dragmove",this.D9,this);this.WW.subscribe("dragend",this.nR,this);this.j(n,"SEEK_COMPLETE", this.h7);n.Z("web_fix_fine_scrubbing_false_play")&&this.j(n,"rootnodemousedown",function(X){w.PW=X}); this.D.addEventListener("keydown",function(){}); g.K(this,this.WW);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.D,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; aeY=function(n,q){var w=g.Up(q),X=g.NB("Procurar $PROGRESS",{PROGRESS:g.Up(q,!0)});n.update({ariamin:0,ariamax:Math.floor(n.api.getDuration()),arianow:Math.floor(q),arianowtext:X,seekTime:w})}; p2y=function(n){n.qP=NaN;n.L=0;n.V=n.C}; $6Y=function(n){var q=n.api.Ei();if(q){var w=90*n.scale,X=wY(q,160*n.scale);if(q=q.levels[X]){n.G=q.width;if(!n.W.length){X=[];for(var P=Xl(q,q.jc()),R=q.columns*q.rows,c=q.frameCount,k=0;k<=P;k++)for(var r=cn.W.length;)X= void 0,(X=n.thumbnails.pop())==null||X.dispose();for(;n.thumbnails.lengthw.length;)X=void 0,(X=n.X.pop())==null||X.dispose(); for(;n.X.length-w?-q/w*n.interval*.5:-(q+w/2)/w*n.interval}; v_m=function(n){return-((n.D.offsetWidth||(n.frameCount-1)*n.G*n.scale)-n.N/2)}; T3Y=function(){g.Q.call(this,{J:"div",Y:"ytp-fine-scrubbing-thumbnail"})}; F20=function(){g.Q.call(this,{J:"div",Y:"ytp-fine-scrubbing-chapter-title",S:[{J:"div",Y:"ytp-fine-scrubbing-chapter-title-content",Ag:"{{chapterTitle}}"}]})}; MP6=function(n){g.Q.call(this,{J:"div",Y:"ytp-heat-map-chapter",S:[{J:"svg",Y:"ytp-heat-map-svg",U:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},S:[{J:"defs",S:[{J:"clipPath",U:{id:"{{id}}"},S:[{J:"path",Y:"ytp-heat-map-path",U:{d:"",fill:"white"}}]},{J:"linearGradient",U:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},S:[{J:"stop",U:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{J:"stop",U:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{J:"rect",Y:"ytp-heat-map-graph",U:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",Y:"ytp-heat-map-hover",U:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",Y:"ytp-heat-map-play",U:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{J:"path",Y:"ytp-modern-heat-map",U:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=n;this.V=this.C5("ytp-heat-map-svg");this.D=this.C5("ytp-heat-map-path");this.W=this.C5("ytp-heat-map-graph");this.G=this.C5("ytp-heat-map-play");this.N=this.C5("ytp-heat-map-hover");this.C=this.C5("ytp-modern-heat-map");this.YH=!1;this.X=60;n=""+g.I5(this);this.update({id:n});n="url(#"+n+")";this.W.setAttribute("clip-path",n);this.G.setAttribute("clip-path",n);this.N.setAttribute("clip-path", n)}; x66=function(n,q){q>0&&(n.X=q,n.V.style.height=n.X+"px")}; zR=function(){g.Q.call(this,{J:"div",Y:"ytp-chapter-hover-container",S:[{J:"div",Y:"ytp-progress-bar-padding"},{J:"div",Y:"ytp-progress-list",S:[{J:"div",Jg:["ytp-play-progress","ytp-swatch-background-color"]},{J:"div",Y:"ytp-progress-linear-live-buffer"},{J:"div",Y:"ytp-load-progress"},{J:"div",Y:"ytp-hover-progress"},{J:"div",Y:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.X=this.C5("ytp-progress-list");this.D=this.C5("ytp-progress-linear-live-buffer"); this.W=this.C5("ytp-ad-progress-list");this.G=this.C5("ytp-load-progress");this.V=this.C5("ytp-play-progress");this.C=this.C5("ytp-hover-progress");this.N=this.C5("ytp-chapter-hover-container")}; WY=function(n,q){g.K$(n.N,"width",q)}; D6s=function(n,q){g.K$(n.N,"margin-right",q+"px")}; hby=function(){this.X=this.position=this.C=this.N=this.W=this.width=NaN}; lez=function(){g.Q.call(this,{J:"div",Y:"ytp-timed-marker"});this.N=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.nm=function(n,q){g.R6.call(this,{J:"div",Y:"ytp-progress-bar-container",U:{"aria-disabled":"true"},S:[{J:"div",Jg:["ytp-heat-map-container"],S:[{J:"div",Y:"ytp-heat-map-edu"}]},{J:"div",Jg:["ytp-progress-bar"],U:{tabindex:"0",role:"slider","aria-label":"Bot\u00e3o deslizante de busca","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},S:[{J:"div",Y:"ytp-chapters-container"},{J:"div",Y:"ytp-timed-markers-container"},{J:"div", Y:"ytp-clip-start-exclude"},{J:"div",Y:"ytp-clip-end-exclude"},{J:"div",Y:"ytp-scrubber-container",S:[{J:"div",Jg:["ytp-scrubber-button","ytp-swatch-background-color"],S:[{J:"div",Y:"ytp-scrubber-pull-indicator"},{J:"img",Jg:["ytp-decorated-scrubber-button"]}]}]}]},{J:"div",Jg:["ytp-fine-scrubbing-container"],S:[{J:"div",Y:"ytp-fine-scrubbing-edu"}]},{J:"div",Y:"ytp-bound-time-left",Ag:"{{boundTimeLeft}}"},{J:"div",Y:"ytp-bound-time-right",Ag:"{{boundTimeRight}}"},{J:"div",Y:"ytp-clip-start",U:{title:"{{clipstarttitle}}"}, Ag:"{{clipstarticon}}"},{J:"div",Y:"ytp-clip-end",U:{title:"{{clipendtitle}}"},Ag:"{{clipendicon}}"}]});this.api=n;this.wq=!1;this.TG=this.Xa=this.je=this.D=this.x5=0;this.KD=null;this.hJ=!1;this.Ff={};this.sD={};this.clipEnd=Infinity;this.ej=this.C5("ytp-clip-end");this.VL=new g.KM(this.ej,!0);this.iS=this.C5("ytp-clip-end-exclude");this.N7=this.C5("ytp-clip-start-exclude");this.clipStart=0;this.YE=this.C5("ytp-clip-start");this.aS=new g.KM(this.YE,!0);this.qP=this.AK=0;this.progressBar=this.C5("ytp-progress-bar"); this.nM={};this.IH={};this.RH=this.C5("ytp-chapters-container");this.bI=this.C5("ytp-timed-markers-container");this.N=[];this.G=[];this.u7={};this.TT=null;this.HW=-1;this.Me=this.Tp=0;this.HX=this.V=null;this.zG=this.C5("ytp-scrubber-button");this.vW=this.C5("ytp-decorated-scrubber-button");this.KO=this.C5("ytp-scrubber-container");this.qe=new g.uV;this.KG=0;this.zT=new hby;this.C=new Tp(0,0);this.tK=null;this.L=this.yp=!1;this.Sr=null;this.PW=this.C5("ytp-heat-map-container");this.bx=this.C5("ytp-heat-map-edu"); this.W=[];this.heatMarkersDecorations=[];this.Ne=this.C5("ytp-fine-scrubbing-container");this.KV=this.C5("ytp-fine-scrubbing-edu");this.X=void 0;this.n5=this.k6=this.D0=!1;this.tooltip=q.Qu();this.addOnDisposeCallback(g.C0(this.tooltip,this.ej));g.K(this,this.VL);this.VL.subscribe("hoverstart",this.W3,this);this.VL.subscribe("hoverend",this.H3,this);this.j(this.ej,"click",this.eC);this.addOnDisposeCallback(g.C0(this.tooltip,this.YE));g.K(this,this.aS);this.aS.subscribe("hoverstart",this.W3,this); this.aS.subscribe("hoverend",this.H3,this);this.j(this.YE,"click",this.eC);GIs(this);this.j(n,"resize",this.UD);this.j(n,"presentingplayerstatechange",this.nB);this.j(n,"videodatachange",this.FI);this.j(n,"videoplayerreset",this.Js);this.j(n,"cuerangesadded",this.ZDn);this.j(n,"cuerangesremoved",this.Lgq);this.j(n,"onLoopRangeChange",this.w0);this.j(n,"innertubeCommand",this.onClickCommand);this.j(n,"onRetroModeChanged",this.kkq);this.j(n,g.Aq("timedMarkerCueRange"),this.mUq);this.j(n,"updatemarkervisibility", this.J2);this.j(n,"serverstitchedvideochange",this.Gwe);this.updateVideoData(n.getVideoData(),!0);this.w0(n.getLoopRange());N$(this)&&!this.X&&(this.X=new VP3(this.api,this.tooltip),n=g.WO(this.element).x||0,this.X.UD(n,this.D),this.X.wl(this.Ne),g.K(this,this.X),this.j(this.X.dismissButton,"click",this.nN),this.j(this.X.playButton,"click",this.fI),this.j(this.X.element,"dblclick",this.fI));this.api.createClientVe(this.PW,this,139609,!0);this.api.createClientVe(this.bx,this,140127,!0);this.api.createClientVe(this.KV, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; GIs=function(n){if(n.N.length===0){var q=new zR;n.N.push(q);g.K(n,q);q.wl(n.RH,0)}for(;n.N.length>1;)n.N.pop().dispose();WY(n.N[0],"100%");n.N[0].startTime=0;n.N[0].title=""}; Cw3=function(n){var q=q===void 0?NaN:q;var w=new MP6(n.api);n.W.push(w);g.K(n,w);w.wl(n.PW);q>=0&&(w.element.style.width=q+"px")}; E_3=function(n){for(;n.G.length;)n.G.pop().dispose()}; b60=function(n){var q,w,X,P,R;return(R=g.u((P=g.u((q=n.getWatchNextResponse())==null?void 0:(w=q.playerOverlays)==null?void 0:(X=w.playerOverlayRenderer)==null?void 0:X.decoratedPlayerBarRenderer,uE))==null?void 0:P.playerBar,o_Y))==null?void 0:R.chapters}; Ath=function(n){for(var q=n.N,w=[],X=0;X=c&&V<=f&&R.push(H)}r>0&&(n.PW.style.height=r+"px");c=n.W[X];f=R;H=P;t=r;V=X===0;V=V===void 0?!1:V;x66(c,t);O=f;U=c.X;V=V===void 0?!1:V;var T=1E3/O.length,x=[];x.push({x:0,y:100});for(var M=0;M0&&(w=R[R.length-1])}g.qp(n);k=[];q=g.a(q.heatMarkersDecorations||[]);for(P=q.next();!P.done;P=q.next())if(P=g.u(P.value,Z6y))r=P.label,X=w=e=void 0,k.push({visibleTimeRangeStartMillis:(e=P.visibleTimeRangeStartMillis)!=null?e:-1,visibleTimeRangeEndMillis:(w=P.visibleTimeRangeEndMillis)!=null?w:-1,decorationTimeMillis:(X=P.decorationTimeMillis)!=null?X:NaN,label:r?g.kY(r):""});n.heatMarkersDecorations=k}}; SE6=function(n,q){n.G.push(q);g.K(n,q);q.wl(n.bI,n.bI.children.length)}; uOu=function(n,q){q=g.a(q);for(var w=q.next();!w.done;w=q.next()){w=w.value;var X=wo(n,w.timeRangeStartMillis/(n.C.N*1E3),XT(n)),P=n.api.Z("delhi_modern_web_player")?.667:.6;g.K$(w.element,"transform","translateX("+X+"px) scaleX("+P+")")}}; YEy=function(n,q){var w=0,X=!1;q=g.a(q);for(var P=q.next();!P.done;P=q.next()){P=P.value;if(g.u(P,zbx)){P=g.u(P,zbx);var R={startTime:NaN,title:null,onActiveCommand:void 0},c=P.title;R.title=c?g.kY(c):"";c=P.timeRangeStartMillis;c!=null&&(R.startTime=c);R.onActiveCommand=P.onActiveCommand;P=R;w===0&&P.startTime!==0&&(n.N[w].startTime=0,n.N[w].title="",n.N[w].onActiveCommand=P.onActiveCommand,w++,X=!0);n.N.length<=w&&(R=new zR,n.N.push(R),g.K(n,R),R.wl(n.RH,n.RH.children.length));n.N[w].startTime= P.startTime;n.N[w].title=P.title?P.title:"";n.N[w].onActiveCommand=P.onActiveCommand;n.N[w].index=X?w-1:w}w++}for(;w=0;X--)if(n.N[X].width>0){D6s(n.N[X],0);var P=Math.floor(n.N[X].width);n.N[X].width=P;WY(n.N[X],P+"px");break}n.N[w].width=0;WY(n.N[w],"0")}else w===n.N.length-1?(X=Math.floor(n.N[w].width+q),n.N[w].width=X,WY(n.N[w],X+"px")):(q=n.N[w].width+q,X=Math.round(q),q-=X,n.N[w].width=X,WY(n.N[w],X+"px"));w=0;if(n.W.length===n.N.length)for(q=0;q< n.W.length;q++)X=n.N[q].width,n.W[q].element.style.width=X+"px",n.W[q].element.style.left=w+"px",w+=X+Ri(n);n.api.Z("delhi_modern_web_player")&&(n.N.length===1?n.N[0].X.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(n.N[0].X.classList.remove("ytp-progress-bar-end"),n.N[0].X.classList.add("ytp-progress-bar-start"),n.N[n.N.length-1].X.classList.add("ytp-progress-bar-end")))}; W26=function(n,q){var w=0,X=!1,P=n.N.length,R=n.C.N*1E3;R===0&&(R=n.api.getProgressState().seekableEnd*1E3);if(R>0&&n.D>0){for(var c=n.D-Ri(n)*n.Tp,k=n.Me===0?3:c*n.Me,r=g.a(n.N),e=r.next();!e.done;e=r.next())e.value.width=0;for(;w1);e=(R===0?0:r/R*c)+n.N[w].width;if(e>k)n.N[w].width=e;else{n.N[w].width=0;var f=n,O=w,H=f.N[O-1];H!==void 0&&H.width>0? H.width+=e:On.Me&&(n.Me=r/R),X=!0)}w++}}return X}; PB=function(n){if(n.D){var q=n.api.getProgressState(),w=n.api.getVideoData();if(!(w&&w.enableServerStitchedDai&&w.TZ)||isFinite(q.current)){var X;if(((X=n.api.getVideoData())==null?0:Ha(X))&&q.airingStart&&q.airingEnd)var P=cB(n,q.airingStart,q.airingEnd);else if(n.api.getPresentingPlayerType()===2){var R,c,k;P=(w=(P=n.api.getVideoData())==null?void 0:(R=P.getPlayerResponse())==null?void 0:(c=R.playerConfig)==null?void 0:(k=c.webPlayerConfig)==null?void 0:k.skippableAdProgressBarDuration)?cB(n,q.seekableStart, w/1E3):cB(n,q.seekableStart,q.seekableEnd)}else P=cB(n,q.seekableStart,q.seekableEnd);R=Fu(P,q.loaded,0);q=Fu(P,q.current,0);c=n.C.X!==P.X||n.C.N!==P.N;n.C=P;Ii(n,q,R);c&&N3s(n);nQ6(n)}}}; cB=function(n,q,w){return qBO(n)?new Tp(Math.max(q,n.tK.startTimeMs/1E3),Math.min(w,n.tK.endTimeMs/1E3)):new Tp(q,w)}; XVm=function(n,q){var w,X,P;q=g.u((w=q.getWatchNextResponse())==null?void 0:(X=w.playerOverlays)==null?void 0:(P=X.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,uE);if(q==null?0:q.progressColor)for(w=0;w1){w=kb(n,q.C,!0);for(var X=0,P=0;P0&&(X+=n.N[P].width,X+=Ri(n));w=(n.N[w].startTime+(q.C-X)/n.N[w].width*((w===n.N.length-1?n.C.N*1E3:n.N[w+1].startTime)-n.N[w].startTime))/1E3||0}return w}; jK=function(n,q,w,X,P){q=q<0?0:Math.floor(Math.min(q,n.api.getDuration())*1E3);w=w<0?0:Math.floor(Math.min(w,n.api.getDuration())*1E3);n=n.progressBar.visualElement;X={seekData:{startMediaTimeMs:q,endMediaTimeMs:w,seekSource:X}};(q=g.Uk())&&g.SY(KC)(void 0,q,n,P,X,void 0)}; R5y=function(n,q,w){if(w>=n.N.length)return!1;var X=n.D-Ri(n)*n.Tp;return Math.abs(q-n.N[w].startTime/1E3)/n.C.N*X<4}; N3s=function(n){n.zG.style.removeProperty("height");for(var q=g.a(Object.keys(n.Ff)),w=q.next();!w.done;w=q.next())c43(n,w.value);sa(n);Ii(n,n.qP,n.AK)}; XT=function(n){var q=n.qe.x;q=g.Y1(q,0,n.D);n.zT.update(q,n.D);return n.zT}; fm=function(n){return(n.L?135:90)-eK(n)}; eK=function(n){var q=48,w=n.api.B();n.api.Z("delhi_modern_web_player")?q=n.api.getPlayerSize().width<=528?64:n.L?96:72:n.L?q=54:g.Q2(w)&&!w.X&&(q=40);return q}; Ii=function(n,q,w){n.qP=q;n.AK=w;var X=XT(n),P=n.C.N,R=faO(n.C,n.qP),c=g.NB("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Up(R,!0),DURATION:g.Up(P,!0)}),k=ta(n.N,R*1E3);k=n.N[k].title;n.update({ariamin:Math.floor(n.C.X),ariamax:Math.floor(P),arianow:Math.floor(R),arianowtext:k?k+" "+c:c});P=n.clipStart;R=n.clipEnd;n.tK&&n.api.getPresentingPlayerType()!==2&&(P=n.tK.startTimeMs/1E3,R=n.tK.endTimeMs/1E3);P=Fu(n.C,P,0);k=Fu(n.C,R,1);c=n.api.getVideoData();R=g.Y1(q,P,k);w=(c==null?0:g.f0(c))?1:g.Y1(w, P,k);q=wo(n,q,X);g.K$(n.KO,"transform","translateX("+q+"px)");n.api.Z("delhi_modern_web_player")&&n.api.Z("delhi_modern_web_player_cutout")&&ICY(n,q);Oa(n,X,P,R,"PLAY_PROGRESS");(c==null?0:Ha(c))?(q=n.api.getProgressState().seekableEnd)&&Oa(n,X,R,Fu(n.C,q),"LIVE_BUFFER"):Oa(n,X,P,w,"LOAD_PROGRESS");if(n.api.Z("web_player_heat_map_played_bar")){var r;(r=n.W[0])!=null&&r.G.setAttribute("width",(R*100).toFixed(2)+"%")}}; ICY=function(n,q){n.api.getPresentingPlayerType()!==1?n.RH.style.removeProperty("clip-path"):(q||(q=wo(n,n.qP,XT(n))),n.RH.style.clipPath='path("'+(n.hJ?kJs(n,8,q,n.L?50:36,0,6):kJs(n,4,q,n.L?34:24,2,3))+'")')}; kJs=function(n,q,w,X,P,R){var c=w-X/2;w+=X/2;q+=P;return"M 0 "+P+" L 0 "+(q+" L ")+(c+" "+q+" C ")+(c+R+" "+q+" "+(c+R)+" "+P+" "+c+" "+P+" L 0 ")+(P+" M ")+(w+" "+P+" L ")+(n.D+" "+P+" L ")+(n.D+" "+q+" L ")+(w+" "+q+" C ")+(w-R+" "+q+" "+(w-R)+" "+P+" "+w+" "+P)}; Oa=function(n,q,w,X,P){var R=n.N.length,c=q.N-n.Tp*Ri(n),k=w*c;w=kb(n,k);var r=X*c;c=kb(n,r);P==="HOVER_PROGRESS"&&(c=kb(n,q.N*X,!0),r=q.N*X-r4u(n,q.N*X)*Ri(n));X=Math.max(k-j7y(n,w),0);for(k=w;k=n.N.length)return n.D;for(var w=0,X=0;X0||n.iS.clientWidth>0?(R=q.clientWidth/w,n=-1*n.N7.clientWidth/w):(R/=w,n=-1*n.N[P].element.offsetLeft/w),g.K$(q,"background-size",R+"px"),g.K$(q,"background-position-x",n+"px"))}; iM=function(n,q,w,X,P){P||n.api.B().X?q.style.width=w+"px":g.K$(q,"transform","scalex("+(X?w/X:0)+")")}; kb=function(n,q,w){var X=0;(w===void 0?0:w)&&(q-=r4u(n,q)*Ri(n));w=g.a(n.N);for(var P=w.next();!P.done;P=w.next()){P=P.value;if(q>P.width)q-=P.width;else break;X++}return X===n.N.length?X-1:X}; wo=function(n,q,w){var X=q*n.C.N*1E3;for(var P=-1,R=g.a(n.N),c=R.next();!c.done;c=R.next())c=c.value,X>c.startTime&&c.width>0&&P++;X=P<0?0:P;P=w.N-Ri(n)*n.Tp;return q*P+Ri(n)*X+w.W}; r4u=function(n,q){for(var w=n.N.length,X=0,P=g.a(n.N),R=P.next();!R.done;R=P.next())if(R=R.value,R.width!==0)if(q>R.width)q-=R.width,q-=Ri(n),X++;else break;return X===w?w-1:X}; g.fC6=function(n,q,w,X){var P=n.D!==w,R=n.L!==X;n.x5=q;n.D=w;n.L=X;N$(n)&&(q=n.X)!=null&&(q.scale=X?1.5:1);N3s(n);n.N.length===1&&(n.N[0].width=w||0);P&&g.qp(n);n.X&&R&&N$(n)&&(n.X.isEnabled&&(w=n.L?135:90,X=w-eK(n),n.Ne.style.height=w+"px",g.K$(n.PW,"transform","translateY("+-X+"px)"),g.K$(n.progressBar,"transform","translateY("+-X+"px)")),$6Y(n.X))}; sa=function(n){var q=!!n.tK&&n.api.getPresentingPlayerType()!==2,w=n.clipStart,X=n.clipEnd,P=!0,R=!0;q&&n.tK?(w=n.tK.startTimeMs/1E3,X=n.tK.endTimeMs/1E3):(P=w>n.C.X,R=n.C.N>0&&Xn.qP);g.XW(n.zG,"ytp-scrubber-button-hover",w===X&&n.N.length>1);if(n.api.Z("web_player_heat_map_played_bar")){var R;(R=n.W[0])!=null&&R.N.setAttribute("width",(q.X*100).toFixed(2)+"%")}}}; c43=function(n,q){var w=n.Ff[q];q=n.sD[q];var X=XT(n),P=Fu(n.C,w.start/1E3,0),R=pWh(w,n.L)/X.width;var c=Fu(n.C,w.end/1E3,1);R!==Number.POSITIVE_INFINITY&&(P=g.Y1(P,0,c-R));c=Math.min(c,P+R);w.color&&(q.style.background=w.color);w=P;q.style.left=Math.max(w*X.N+X.W,0)+"px";iM(n,q,g.Y1((c-w)*X.N+X.W,0,X.width),X.width,!0)}; O2O=function(n,q){var w=q.getId();n.Ff[w]===q&&(g.dr(n.sD[w]),delete n.Ff[w],delete n.sD[w])}; N$=function(n){var q=g.iE(n.api.B())&&(n.api.Z("web_shorts_pip")||n.api.Z("web_watch_pip")),w;return!((w=n.api.getVideoData())==null?0:w.isLivePlayback)&&!n.api.isMinimized()&&!n.api.isInline()&&(!n.api.IX()||!q)}; HB=function(n){n.X&&(n.X.disable(),n.je=0,n.PW.style.removeProperty("transform"),n.progressBar.style.removeProperty("transform"),n.Ne.style.removeProperty("height"),n.element.parentElement&&n.element.parentElement.style.removeProperty("height"))}; i2Y=function(n,q){var w=q/fm(n)*eK(n);g.K$(n.progressBar,"transform","translateY("+-q+"px)");g.K$(n.PW,"transform","translateY("+-q+"px)");g.K$(n.Ne,"transform","translateY("+w+"px)");n.Ne.style.height=q+w+"px";n.element.parentElement&&(n.element.parentElement.style.height=eK(n)-w+"px")}; H2x=function(n,q){q?n.V||(n.element.removeAttribute("aria-disabled"),n.V=new g.KM(n.progressBar,!0),n.api.Z("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&n.V.subscribe("hoverstart",n.E4p,n),n.V.subscribe("hovermove",n.PSh,n),n.V.subscribe("hoverend",n.q8H,n),n.V.subscribe("dragstart",n.NMe,n),n.V.subscribe("dragmove",n.pbn,n),n.V.subscribe("dragend",n.xUT,n),n.api&&n.api.Z("delhi_modern_web_player")&&n.api.Z("delhi_modern_web_player_cutout")&&(n.HX=new g.KM(n.progressBar, !0),n.HX.subscribe("hoverstart",function(){n.hJ=!0;ICY(n)},n),n.HX.subscribe("hoverend",function(){n.hJ=!1; ICY(n)},n)),n.Sr=n.listen("keydown",n.Tt)):n.V&&(n.element.setAttribute("aria-disabled","true"),n.wM(n.Sr),n.V.cancel(),n.V.dispose(),n.V=null)}; Ri=function(n){return n.api.Z("delhi_modern_web_player")?4:n.L?3:2}; qBO=function(n){var q;return!((q=n.tK)==null||!q.postId)&&n.api.getPresentingPlayerType()!==2}; Ua=function(n,q){g.Q.call(this,{J:"button",Jg:["ytp-remote-button","ytp-button"],U:{title:"Reproduzir na TV","aria-haspopup":"true","data-priority":"10"},Ag:"{{icon}}"});this.T=n;this.aP=q;this.N=null;this.j(n,"onMdxReceiversChange",this.dl);this.j(n,"presentingplayerstatechange",this.dl);this.j(n,"appresize",this.dl);n.createClientVe(this.element,this,139118);this.dl();this.listen("click",this.X,this);EJ(n,this.element,this)}; tL=function(n,q){g.Q.call(this,{J:"button",Jg:["ytp-button","ytp-settings-button"],U:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":q3(),title:"Detalhes","data-tooltip-target-id":"ytp-settings-button"},S:[n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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.y1()]});this.T=n;this.aP=q;this.X=!0;this.listen("click",this.C);this.j(n,"onPlaybackQualityChange",this.updateBadge);this.j(n,"videodatachange",this.updateBadge);this.j(n,"webglsettingschanged",this.updateBadge);this.j(n,"appresize",this.N);EJ(n,this.element,this);this.T.createClientVe(this.element,this,28663);this.updateBadge();this.N(n.yT().getPlayerSize())}; U50=function(n,q){n.X=!!q;n.N(n.T.yT().getPlayerSize())}; go=function(n,q){tk.call(this,"Anota\u00e7\u00f5es",g.pg.UE);this.T=n;this.aP=q;this.N=!1;n.Z("web_settings_menu_icons")&&(q=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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(q));this.j(n,"videodatachange",this.dl);this.j(n,"onApiChange",this.dl);this.subscribe("select",this.onSelect,this);this.dl()}; mF=function(n,q){g.bB.call(this,"Faixa de \u00e1udio",g.pg.AUDIO,n,q);this.T=n;this.tracks={};g.N4(this.element,"ytp-audio-menu-item");this.countLabel=new g.Q({J:"div",S:[{J:"span",Ag:"Faixa de \u00e1udio"},{J:"span",Y:"ytp-menuitem-label-count",Ag:"{{content}}"}]});n.Z("web_settings_menu_icons")&&(q=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:vNO(),this.setIcon(q));g.K(this,this.countLabel);g.cH(this,this.countLabel);this.j(n,"videodatachange",this.dl);this.j(n,"onPlaybackAudioChange",this.dl);this.dl()}; yP=function(n,q){tk.call(this,"Reprodu\u00e7\u00e3o autom\u00e1tica",g.pg.m5);this.T=n;this.aP=q;this.N=!1;this.C=[];this.j(n,"presentingplayerstatechange",this.X);this.subscribe("select",this.onSelect,this);n.createClientVe(this.element,this,113682);this.X()}; tLs=function(n,q){g.IV.call(this,g.kK({"aria-haspopup":"false"}),0,"Mais op\u00e7\u00f5es");this.T=n;this.aP=q;this.j(this.element,"click",this.onClick);this.aP.nG(this)}; d56=function(n,q){var w;g.iE(n.B())&&(w={J:"div",Y:"ytp-panel-footer-content",S:[{J:"span",Ag:"Ajuste a qualidade do download em "},{J:"a",Y:"ytp-panel-footer-content-link",Ag:"Detalhes",U:{href:"/account_downloads"}}]});g.bB.call(this,"Qualidade",g.pg.RF,n,q,void 0,void 0,w);this.T=n;this.vW={};this.L={};this.W={};this.WW=new Set;this.N=this.D=!1;this.G="unknown";this.qP="";this.PW=new g.CH;g.K(this,this.PW);this.D=this.T.Z("web_player_use_new_api_for_quality_pullback");this.N=this.T.Z("web_player_enable_premium_hbr_playback_cap"); n.Z("web_settings_menu_icons")&&(q=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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(q));g.N4(this.X.element,"ytp-quality-menu");this.j(n,"videodatachange",this.iV);this.j(n,"videoplayerreset",this.iV);this.j(n,"onPlaybackQualityChange",this.cU);this.iV();n.createClientVe(this.element,this,137721)}; m5y=function(n,q,w){var X=n.vW[q],P=g.gq[q];return gQ6(n,X?X.qualityLabel:P?P+"p":"Autom\u00e1tico",q,w)}; y4u=function(n,q,w,X,P){var R=(q=n.N?n.W[q]:n.L[q])&&q.quality,c=q&&q.qualityLabel;c=c?c:"Autom\u00e1tico";X&&(c="("+c);n=gQ6(n,c,R||"",P);X&&n.S.push(")");(X=(X=q&&q.paygatedQualityDetails)&&X.paygatedIndicatorText)&&w&&n.S.push({J:"div",Y:"ytp-premium-label",Ag:X});return n}; gQ6=function(n,q,w,X){q={J:"span",Jg:X,S:[q]};var P;X="ytp-swatch-color";if(n.D||n.N)X="ytp-swatch-color-white";w==="highres"?P="8K":w==="hd2880"?P="5K":w==="hd2160"?P="4K":w.indexOf("hd")===0&&w!=="hd720"&&(P="HD");P&&(q.S.push(" "),q.S.push({J:"sup",Y:X,Ag:P}));return q}; ai=function(n){Y3.call(this,n.getAvailablePlaybackRates()[0],n.getAvailablePlaybackRates()[n.getAvailablePlaybackRates().length-1],.05,n.getPlaybackRate(),{J:"div",Y:"ytp-speedslider-indicator-container",S:[{J:"div",Y:"ytp-speedslider-badge"},{J:"p",Y:"ytp-speedslider-text"}]});this.T=n;this.qP=hU(this.vW,50,this);g.N4(this.X,"ytp-speedslider");this.L=this.C5("ytp-speedslider-text");this.PW=this.C5("ytp-speedslider-badge");aCy(this);this.j(this.X,"change",this.WW)}; aCy=function(n){n.L.textContent=n.N.toFixed(2)+"x";var q=n.N>2&&n.T.Z("enable_web_premium_varispeed");n.PW.classList.toggle("ytp-speedslider-premium-badge",q);n.PW.setAttribute("aria-label",q?"Premium":"")}; VP=function(n,q,w,X,P,R,c){g.Q.call(this,{J:"div",Y:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},S:[{J:"div",Y:"ytp-slider",S:[{J:"div",Y:"ytp-slider-handle"}]}]});this.V=n;this.L=q;this.X=w;this.C=X;this.qP=P;this.HW=R;this.range=this.C-this.X;this.Tp=this.C5("ytp-slider-section");this.W=this.C5("ytp-slider");this.PW=this.C5("ytp-slider-handle");this.G=new g.KM(this.W, !0);this.N=c?c:w;g.K(this,this.G);this.G.subscribe("dragmove",this.DP,this);this.j(this.element,"keydown",this.u5);this.j(this.element,"wheel",this.zt);this.init()}; pm=function(n){VP.call(this,.05,.05,n.getAvailablePlaybackRates()[0],n.getAvailablePlaybackRates()[n.getAvailablePlaybackRates().length-1],150,20,n.getPlaybackRate());this.T=n;this.D=g.O_("P");this.WW=hU(this.vW,50,this);g.N4(this.W,"ytp-speedslider");g.N4(this.D,"ytp-speedslider-text");n=this.D;var q=this.W;q.parentNode&&q.parentNode.insertBefore(n,q.nextSibling);VLh(this);this.j(this.T,"onPlaybackRateChange",this.updateValues)}; VLh=function(n){n.D.textContent=pVh(n,n.N)+"x"}; pVh=function(n,q){n=Number(g.Y1(q,n.X,n.C).toFixed(2));q=Math.floor((n+.001)*100%5+2E-15);var w=n;q!==0&&(w=n-q*.01);return Number(w.toFixed(2))}; TCx=function(n){g.R6.call(this,{J:"div",Y:"ytp-speedslider-component"});n.Z("web_settings_use_input_slider")?this.N=new ai(n):this.N=new pm(n);g.K(this,this.N);this.element.appendChild(this.N.element)}; F0h=function(n){var q=new TCx(n);vm.call(this,n,q,"Personalizado");g.K(this,q)}; $5x=function(n,q){var w=new F0h(n);g.bB.call(this,"Velocidade da reprodu\u00e7\u00e3o",g.pg.yw,n,q,Tm(n)?void 0:"Personalizado",Tm(n)?void 0:function(){g.D3(q,w)}); var X=this;this.W=!1;g.K(this,w);this.G=new ai(n);g.K(this,this.G);if(n.Z("web_settings_menu_icons")){var P=n.Z("delhi_modern_web_player_icons")?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{J:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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(P)}this.T=n;this.W=!1;this.qP=null;Tm(n)?(this.N=g.NB("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.T.getPlaybackRate().toString()}),this.D=this.T.getPlaybackRate()):this.D=this.N=null;this.L=this.T.getAvailablePlaybackRates();this.j(n,"presentingplayerstatechange",this.dl);var R;((R=this.T.getVideoData())==null?0:R.M7())&&this.j(n,"serverstitchedvideochange",this.dl);this.j(this.G.X,"change",function(){X.W=!0;X.dl()}); this.dl()}; vQs=function(n,q){var w=FT(q);n.N&&(n.W||q===n.D)?(n.UF(n.N),n.s8(q.toString())):n.UF(w)}; MLT=function(n){n.Hw(n.L.map(FT));n.N=null;n.D=null;var q=n.T.getPlaybackRate();Tm(n.T)&&L0O(n,q);!n.L.includes(q)||n.W?n.UF(n.N):n.UF(FT(q))}; L0O=function(n,q){n.D=q;n.N=g.NB("Personalizado ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:q.toString()});q=n.L.map(FT);q.unshift(n.N);n.Hw(q)}; FT=function(n){return n.toString()}; Tm=function(n){return n.Z("web_settings_menu_surface_custom_playback")}; x5x=function(n){return n.Z("web_settings_menu_surface_custom_playback")&&n.Z("web_settings_use_input_slider")}; h5y=function(n,q,w,X){var P=new g.LM(q,void 0,"Modifica\u00e7\u00e3o do v\u00eddeo");g.bB.call(this,X.text||"",n,q,w,"Modifica\u00e7\u00e3o do v\u00eddeo",function(){g.D3(w,P)}); var R=this;g.N4(this.element,"ytp-subtitles-options-menu-item");this.setting=X.option.toString();n=X.options;this.settings=g.zf(n,this.Ju,this);this.D=P;g.K(this,this.D);q=new g.IV({J:"div",Y:"ytp-menuitemtitle",Ag:"Permitir um estilo de legenda diferente se especificado pelo v\u00eddeo."},0);g.K(this,q);this.D.nG(q,!0);this.W=new g.IV({J:"div",Y:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{J:"div",Y:"ytp-menuitem-label",Ag:"Ativ."}]},-1);g.K(this,this.W);this.D.nG(this.W,!0);this.j(this.W.element, "click",function(){D53(R,!0)}); this.N=new g.IV({J:"div",Y:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},S:[{J:"div",Y:"ytp-menuitem-label",Ag:"Desat"}]},-2);g.K(this,this.N);this.D.nG(this.N,!0);this.j(this.N.element,"click",function(){D53(R,!1)}); this.Hw(g.Hh(n,this.Ju))}; D53=function(n,q){n.publish("settingChange",n.setting+"Override",!q);n.aP.SG()}; $b=function(n,q){g.LM.call(this,n,void 0,"Op\u00e7\u00f5es");var w=this;this.AX={};for(var X=0;X=0);if(!(q<0||q===n.W)){n.W=q;q=243*n.scale;var w=141*n.scale,X=ZhO(n.X,n.W,q);w2u(n.bg,X,q,w,!0);n.PW.start()}}; j3x=function(n){var q=n.N;n.type===3&&n.vW.stop();n.api.removeEventListener("appresize",n.qP);n.V||q.setAttribute("title",n.C);n.C="";n.N=null;n.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});n.wrapper.style.width=""}; e_6=function(n){g.Q.call(this,{J:"button",Jg:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Q2(n.B()))},S:[{J:"div",Y:"ytp-watch-later-icon",Ag:"{{icon}}"},{J:"div",Y:"ytp-watch-later-title",Ag:"Assistir mais tarde"}]});this.T=n;this.icon=null;this.visible=this.isRequestPending=this.N=!1;FIm(n);n.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.j(n,"videoplayerreset",this.onReset);this.j(n, "appresize",this.IM);this.j(n,"videodatachange",this.IM);this.j(n,"presentingplayerstatechange",this.IM);this.IM();n=this.T.B();var q=g.$N("yt-player-watch-later-pending");n.W&&q?(N80(),s3O(this)):this.dl(2);g.XW(this.element,"ytp-show-watch-later-title",g.Q2(n));EJ(this.T,this.element,this)}; f8s=function(n){var q=n.T.getPlayerSize(),w=n.T.B(),X=n.T.getVideoData(),P=g.Q2(w)&&g.Sd(n.T)&&g.Z(n.T.getPlayerStateObject(),128),R=w.C;return w.KD&&q.width>=240&&!X.isAd()&&X.KD&&!P&&!X.bS&&!n.T.isEmbedsShortsMode()&&!R}; O3h=function(n,q){HuT(g.jN(n.T.B()),"wl_button",function(){N80({videoId:q});window.location.reload()})}; s3O=function(n){if(!n.isRequestPending){n.isRequestPending=!0;n.dl(3);var q=n.T.getVideoData();q=n.N?q.removeFromWatchLaterCommand:q.addToWatchLaterCommand;var w=n.T.zx(),X=n.N?function(){n.N=!1;n.isRequestPending=!1;n.dl(2);n.T.B().V&&n.T.Uq("WATCH_LATER_VIDEO_REMOVED")}:function(){n.N=!0; n.isRequestPending=!1;n.dl(1);n.T.B().X&&n.T.mj(n.element);n.T.B().V&&n.T.Uq("WATCH_LATER_VIDEO_ADDED")}; vK(w,q).then(X,function(){n.isRequestPending=!1;n.dl(4,"Ocorreu um erro. Tente novamente mais tarde.");n.T.B().V&&n.T.Uq("WATCH_LATER_ERROR","Ocorreu um erro. Tente novamente mais tarde.")})}}; i30=function(n,q){if(q!==n.icon){switch(q){case 3:var w=aV();break;case 1:w=jV();break;case 2:w={J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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:w={J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path", E8:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}n.updateValue("icon",w);n.icon=q}}; H3s=function(){g.wy.apply(this,arguments);this.GW=(this.V9=g.Q2(this.api.B()))&&(this.api.B().X||ZI()||BU());this.nk=48;this.l6=69;this.s1=this.Tx=null;this.vE=[];this.nJ=this.tS=this.hC=this.fm=this.zz=null;this.Tb=[];this.contextMenu=this.FC=this.overflowButton=this.fb=this.mz=this.searchButton=this.copyLinkButton=this.shareButton=this.lJ=this.B_=this.title=this.channelAvatar=this.Ie=this.tooltip=null;this.qb=!1;this.AY=this.q$=this.AF=this.Xl=null;this.af5=this.wF=this.d8=!1}; Uzs=function(n){var q=n.api.B(),w=g.Z(n.api.getPlayerStateObject(),128);return q.W&&w&&!n.api.isFullscreen()}; t13=function(n){if(n.lP()&&!n.api.isEmbedsShortsMode()&&n.fb){var q=n.api.Z("web_player_hide_overflow_button_if_empty_menu");!n.lJ||q&&!f8s(n.lJ)||to0(n.fb,n.lJ);!n.shareButton||q&&!li0(n.shareButton)||to0(n.fb,n.shareButton);!n.copyLinkButton||q&&!xhT(n.copyLinkButton)||to0(n.fb,n.copyLinkButton)}else{q=n.api.B().getWebPlayerContextConfig();if(n.fb){for(var w=n.fb,X=g.a(w.actionButtons),P=X.next();!P.done;P=X.next())P.value.detach();w.actionButtons=[]}n.searchButton&&!g.gr(n.B_.element,n.searchButton.element)&& n.searchButton.wl(n.B_.element);!n.lJ||(q==null?0:q.hideTopWatchNextButton)||g.gr(n.B_.element,n.lJ.element)||n.lJ.wl(n.B_.element);!n.shareButton||(q==null?0:q.hideTopShareButton)||g.gr(n.B_.element,n.shareButton.element)||n.shareButton.wl(n.B_.element);n.copyLinkButton&&!g.gr(n.B_.element,n.copyLinkButton.element)&&n.copyLinkButton.wl(n.B_.element)}}; dzO=function(n,q,w){q=w?q.lastElementChild:q.firstElementChild;for(var X=null;q;){if(BO(q,"display")!=="none"&&q.getAttribute("aria-hidden")!=="true"){var P=void 0;q.tabIndex>=0?P=q:P=dzO(n,q,w);P&&(X?w?P.tabIndex>X.tabIndex&&(X=P):P.tabIndexX/1E3+1)return{msg:"in-the-past"};if(R.isLivePlayback&&!isFinite(X))return{msg:"live-infinite"};(X=q.Ii())&&X.isView()&&(X=X.mediaElement);if(X&&X.r9().length>12&&g.op(P))return{msg:"played-ranges"};if(!P.C)return null;if(!c)return{msg:"no-pvd-formats"};if(!P.C.N||!c.N)return{msg:"non-dash"};X=c.videoInfos[0];var k=P.C.videoInfos[0];n.qP&&ap(R)&&(X=q.IG(), k=w.IG());if(!X||!k)return{msg:"no-video-info"};if(n.D&&(vS(X)||vS(k)))return{msg:"av1"};q=n.W&&R.FQ()&&N8();if(k.containerType!==X.containerType)if(q)R.p5("sgap",{ierr:"container"});else return{msg:"container"};if(n.K&&!q&&(k.L5!==X.L5||k.L5===""||X.L5===""))return{msg:"codec"};if(n.G&&k.video&&X.video&&Math.abs(k.video.width/k.video.height-X.video.width/X.video.height)>.01)return{msg:"ratio"};if(g.op(R)&&g.op(P))return{msg:"content-protection"};c=c.N[0];P=P.C.N[0];w=c.audio;var r=P.audio;if(w.sampleRate!== r.sampleRate&&!g.fT)if(q)R.p5("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:c.itag,cr:w.sampleRate,ni:P.itag,nr:r.sampleRate};return(w.numChannels||2)!==(r.numChannels||2)?{msg:"channel-count"}:n.V&&R.FQ()&&X.video.fps!==k.video.fps?{msg:"fps"}:null}; a8u=function(n,q,w){var X=n.getVideoData(),P=q.getVideoData();if(!X.B().supportsGaplessShorts())return{nq:"env"};if(w.L?X.Vb&&!X.isAd()||P.Vb&&!P.isAd():w.X?X.Vb&&!X.isAd()||P.Vb:w.C?P.Vb&&!P.isAd()||X.Vb:X.Vb||P.Vb)return{nq:"autoplay"};if(X.endSeconds>0)return{nq:"endcr"};if(!X.G)return{nq:"client"};if(!n.AS())return{nq:"no-empty"};n=ypT(w,n,q,Infinity);return n!=null?{nq:n.msg}:null}; SK=function(n){g.A.call(this);this.app=n;this.K=this.W=this.X=this.N=null;this.C=1;this.events=new g.Um(this);this.events.j(this.app.Oq,g.YS("gaplessshortslooprange"),this.V);g.K(this,this.events)}; V13=function(){this.N=this.G=this.C=this.X=this.L=this.D=this.qP=this.V=this.K=this.W=!1}; pi0=function(n){var q=new V13;q.W=n.Z("h5_gapless_support_types_diff");q.V=n.Z("h5_gapless_error_on_fps_diff");q.qP=n.Z("html5_gapless_use_format_info_fix");q.D=n.Z("html5_gapless_disable_on_av1")&&!n.Z("html5_gapless_enable_on_av1");q.K=n.Z("html5_gapless_check_codec_diff_strictly");q.L=n.Z("html5_gapless_on_ad_autoplay");q.G=n.Z("html5_gapless_disable_diff_aspect_radio");q.X=n.Z("html5_gapless_ad_autoplay_on_ad_to_video_only");q.N=n.Z("html5_pseudogapless_shorts_seek_to_next_start");q.C=n.Z("html5_gapless_ad_autoplay_on_video_to_ad_only"); return q}; g.uM=function(n,q,w,X){X=X===void 0?!1:X;rd.call(this);this.mediaElement=n;this.start=q;this.end=w;this.N=X}; Tk6=function(n,q,w,X,P,R){R=R===void 0?0:R;g.A.call(this);var c=this;this.policy=n;this.N=q;this.X=w;this.Tk=P;this.K=R;this.W=this.C=null;this.currentVideoDuration=this.D=-1;this.G=!1;this.Vy=new k8;this.Lh=X-q.Zj()*1E3;this.Vy.then(void 0,function(){}); this.timeout=new g.YF(function(){c.oY("timeout")},1E4); g.K(this,this.timeout);this.V=isFinite(X)||this.Tk.B().experiments.BW("html5_pseudogapless_shorts")&&ap(q.getVideoData());this.status={status:0,error:null}}; $zu=function(n){var q,w,X,P,R,c,k,r,e;return g.b(function(f){if(f.X==1){if(n.zp())return f.return(Promise.reject(Error(n.status.error||"disposed")));n.timeout.start();return g.l(f,n.Vy,2)}q=n.N.Ii();if(q.isEnded())return n.oY("ended_in_finishTransition"),f.return(Promise.reject(Error(n.status.error||"")));if(!n.W||!wd(n.W))return n.oY("next_mse_closed"),f.return(Promise.reject(Error(n.status.error||"")));if(n.X.TY()!==n.W)return n.oY("next_mse_mismatch"),f.return(Promise.reject(Error(n.status.error|| "")));w=BB(n);X=w.lH;P=w.xq;R=w.xx;n.N.Wh(!1,!0);c=FSu(q,X,R,!n.X.getVideoData().isAd());n.X.setMediaElement(c);(k=n.N.ud())&&n.X.G3(k.xz,k.pA);n.V&&(n.policy.N||n.X.seekTo(n.X.getCurrentTime()+.001,{Yf:!0,vY:3,zk:"gapless_pseudo"}),c.play(),FR());r=q.RP();r.cpn=n.N.getVideoData().clientPlaybackNonce;r.st=""+X;r.et=""+R;n.X.p5("gapless",r);n.N.p5("gaplessTo",{cpn:n.X.getVideoData().clientPlaybackNonce});e=n.N.getPlayerType()===n.X.getPlayerType();n.N.Hk(P,!0,!1,e,n.X.getVideoData().clientPlaybackNonce); n.X.Hk(n.X.getCurrentTime(),!0,!0,e,n.N.getVideoData().clientPlaybackNonce);n.X.UR();g.Uz(function(){!n.X.getVideoData().vW&&n.X.getPlayerState().isOrWillBePlaying()&&n.X.FT()}); QP(n,6);n.dispose();return f.return(Promise.resolve())})}; xzx=function(n){if(n.X.getVideoData().C){var q=n.Tk.B().Z("html5_gapless_suspend_next_loader")&&n.K===1;n.X.TJ(n.W,q,vPy(n));QP(n,3);LSm(n);var w=M1T(n);q=w.Gy;w=w.M8;q.subscribe("updateend",n.Vh,n);w.subscribe("updateend",n.Vh,n);n.Vh(q);n.Vh(w)}}; LSm=function(n){n.N.unsubscribe("internalvideodatachange",n.T4,n);n.X.unsubscribe("internalvideodatachange",n.T4,n);n.Tk.B().Z("html5_gapless_use_format_info_fix")&&(n.N.unsubscribe("internalvideoformatchange",n.T4,n),n.X.unsubscribe("internalvideoformatchange",n.T4,n));n.N.unsubscribe("mediasourceattached",n.T4,n);n.X.unsubscribe("statechange",n.Ta,n)}; FSu=function(n,q,w,X){n=n.isView()?n.mediaElement:n;return new g.uM(n,q,w,X)}; QP=function(n,q){q<=n.status.status||(n.status={status:q,error:null},q===5&&n.Vy.resolve())}; vPy=function(n){return n.Tk.B().Z("html5_gapless_no_clear_buffer_timeline")&&n.K===1&&Fl(n.N.getVideoData())}; BB=function(n){var q=n.N.Ii();q=q.isView()?q.start:0;var w=n.N.getVideoData().isLivePlayback?Infinity:n.N.kJ(!0);w=Math.min(n.Lh/1E3,w)+q;var X=n.V?100:0;n=w-n.X.v_()+X;return{pw:q,lH:n,xq:w,xx:Infinity}}; M1T=function(n){return{Gy:n.C.N.LG,M8:n.C.X.LG}}; Z_=function(n){g.A.call(this);var q=this;this.app=n;this.D=this.X=this.N=null;this.V=!1;this.C=this.W=null;this.K=pi0(this.app.B());this.G=function(){g.Uz(function(){Dzm(q)})}}; h_s=function(n,q,w,X,P){X=X===void 0?0:X;P=P===void 0?0:P;n.AS()||JL(n);n.W=new k8;n.N=q;var R=w,c=P===0;c=c===void 0?!0:c;var k=n.app.Yh(),r=k.getVideoData().isLivePlayback?Infinity:k.kJ(!0)*1E3;R>r&&(R=r-200,n.V=!0);c&&k.getCurrentTime()>=R/1E3?n.G():(n.X=k,c&&(c=R,R=n.X,n.app.Oq.addEventListener(g.Aq("vqueued"),n.G),c=isFinite(c)||c/1E3>R.getDuration()?c:0x8000000000000,n.D=new g.og(c,0x8000000000000,{namespace:"vqueued"}),R.addCueRange(n.D)));c=X/=1E3;R=q.getVideoData().N;X&&R&&n.X&&(k=X,r=0, q.getVideoData().isLivePlayback&&(c=Math.min(w/1E3,n.X.kJ(!0)),r=Math.max(0,c-n.X.getCurrentTime()),k=Math.min(X,q.kJ()+r)),c=Mkh(R,k)||X,c!==X&&n.N.p5("qvaln",{st:X,at:c,rm:r,ct:k}));q=c;X=n.N;X.getVideoData().x5=!0;X.getVideoData().G=!0;X.K8(!0);R={};n.X&&(R=n.X.zH(),c=n.X.getVideoData().clientPlaybackNonce,R={crt:(R*1E3).toFixed(),cpn:c});X.p5("queued",R);q!==0&&X.seekTo(q+.01,{Yf:!0,vY:3,zk:"videoqueuer_queued"});n.C=new Tk6(n.K,n.app.Yh(),n.N,w,n.app,P);w=n.C;w.status.status!==Infinity&&(QP(w, 1),w.N.subscribe("internalvideodatachange",w.T4,w),w.X.subscribe("internalvideodatachange",w.T4,w),w.Tk.B().Z("html5_gapless_use_format_info_fix")&&(w.N.subscribe("internalvideoformatchange",w.T4,w),w.X.subscribe("internalvideoformatchange",w.T4,w)),w.N.subscribe("mediasourceattached",w.T4,w),w.X.subscribe("statechange",w.Ta,w),w.N.subscribe("newelementrequired",w.TV,w),w.T4());return n.W}; Dzm=function(n){var q,w,X,P,R,c,k;g.b(function(r){switch(r.X){case 1:if(n.zp()||!n.W||!n.N)return r.return();n.V&&n.app.Yh().Kf(!0,!1);q=null;if(!n.C){r.f5(2);break}g.Vy(r,3);return g.l(r,$zu(n.C),5);case 5:g.FY(r,2);break;case 3:q=w=g.$u(r);case 2:if(!n.N)return r.return();l8O.Ik("vqsp",function(){n.app.uA(n.N)}); if(!n.N)return r.return();X=n.N.Ii();n.app.B().Z("html5_gapless_seek_on_negative_time")&&X&&X.getCurrentTime()<-.01&&n.N.seekTo(0);l8O.Ik("vqpv",function(){n.app.playVideo()}); q&&(n.N?(P=q?q.message:"forced",(R=n.X)==null||R.p5("gapfulfbk",{r:P}),n.N.J9(P)):(c=n.X)==null||c.p5("gapsp",{}));k=n.W;JL(n);k&&k.resolve();return r.return(Promise.resolve())}})}; JL=function(n,q){q=q===void 0?!1:q;if(n.X){if(n.D){var w=n.X;n.app.Oq.removeEventListener(g.Aq("vqueued"),n.G);w.removeCueRange(n.D)}n.X=null;n.D=null}n.C&&(n.C.status.status!==6&&(w=n.C,w.status.status!==Infinity&&w.K!==1&&w.oY("Canceled")),n.C=null);n.W=null;n.N&&!q&&n.N!==n.app.XF()&&n.N!==n.app.Yh()&&n.N.dispose();n.N&&q&&n.N.dD();n.N=null;n.V=!1}; G8Y=function(n){var q;return((q=n.C)==null?void 0:q.currentVideoDuration)||-1}; C63=function(n,q,w){if(n.AS())return"qie";if(n.N==null||n.N.zp()||n.N.getVideoData()==null)return"qpd";if(q.videoId!==n.N.Fg())return"vinm";if(G8Y(n)<=0)return"ivd";if(w!==1)return"upt";if((w=n.C)==null)n=void 0;else if(w.getStatus().status!==5)n="niss";else if(ypT(w.policy,w.N,w.X,w.Lh)!=null)n="pge";else{q=M1T(w);n=q.Gy;var X=q.M8;q=g.Jv(w.Tk.B().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var P=w.D+q;w.Tk.B().experiments.BW("html5_pseudogapless_shorts")&&(P=BB(w).lH+q);w=KT(X.Uj(), P);n=KT(n.Uj(),P);n=!(q>0)||w&&n?null:"neb"}return n!=null?n:null}; EPs=function(){g.np.call(this);var n=this;this.fullscreen=0;this.W=this.C=this.pictureInPicture=this.N=this.X=this.inline=!1;this.K=function(){n.d$()}; SMz(this.K);this.D=this.getVisibilityState(this.xw(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.IX(),this.vV(),this.Jk(),this.Ou())}; Qas=function(n){return!(n.isMinimized()||n.isInline()||n.isBackground()||n.IX()||n.vV()||n.Jk()||n.Ou())}; g.zm=function(n){g.A.call(this);this.NP=n;this.videoData=this.playerState=null}; nf=function(n,q){g.A.call(this);var w=this;this.data=[];this.C=n||NaN;this.X=q||null;this.N=new g.YF(function(){WB(w);Np(w)}); g.K(this,this.N)}; vfO=function(n){WB(n);return n.data.map(function(q){return q.value})}; WB=function(n){var q=(0,g.m$)();n.data.forEach(function(w){w.expire0));(X=g.Jv(q, "html5_cobalt_audio_write_ahead_ms"))&&XS("Media.AudioWriteDurationLocal",X);(X=w("html5_cobalt_enable_decode_to_texture"))&&XS("Media.PlayerConfiguration.DecodeToTexturePreferred",X?1:0);n.uL()&&YOs();Error.stackTraceLimit=50;var P=g.Jv(q,"html5_idle_rate_limit_ms");P&&Object.defineProperty(window,"requestIdleCallback",{value:function(R){return window.setTimeout(R,P)}}); Ndz(n.K);COy(w("html5_use_ump_request_slicer"));s$u(w("html5_record_now"));w("html5_disable_streaming_xhr")&&(fJ=!1);w("html5_byterate_constraints")&&(mn=!0);w("html5_use_non_active_broadcast_for_post_live")&&(jR=!0);w("html5_enable_encrypted_av1")&&($w=!0);Z4s(g.Jv(n.experiments,"html5_sticky_duration_mos"))}; uGT=function(n,q){return n.slice(q.length).replace(/_[a-z]/g,function(w){return w.toUpperCase().replace("_","")}).replace("Dot",".")}; Bk6=function(n){var q={},w=Object.keys(n.experiments.flags);w=g.a(w);for(var X=w.next();!X.done;X=w.next())if(X=X.value,X.startsWith("cobalt_h5vcc"))if(X.startsWith("cobalt_h5vcc_string")){var P=uGT(X,"cobalt_h5vcc_string");X=OX(n.experiments,X);P&&X&&(q[P]=XS(P,X))}else X.startsWith("cobalt_h5vcc")&&(P=uGT(X,"cobalt_h5vcc"),X=g.Jv(n.experiments,X),P&&X&&(q[P]=XS(P,X)));return q}; Q3m=function(n,q,w,X){X=X===void 0?0:X;g.qb.call(this,w.ys());this.FR=n;this.videoData=q;this.duration=X;this.endTime=this.startTime=0;this.N={}}; Z3O=function(n){this.end=this.start=n}; g.RN=function(){this.N=new Map;this.C=new Map;this.X=new Map}; Jp3=function(){this.N=[];this.C=new Map;this.W=new Map;this.X=new Map}; WSs=function(n,q){g.ZL(n.N,q,function(w,X){return w.Pb===X.Pb?w.durationMs-X.durationMs:w.Pb-X.Pb}); n.C.set(q.cpn,q);q.dM&&n.W.set(q.dM,q);q.pO&&z_O(n,q.pO,q)}; Nkz=function(n,q){q=g.Yi(n.N,{xH:q},function(w,X){return w.xH-X.xH}); return q>=0?n.N[q]:null}; n7z=function(n,q){var w=n.N.indexOf(q);w>=0&&n.N.splice(w,1);n.C.delete(q.cpn);q.dM&&n.W.delete(q.dM)}; z_O=function(n,q,w){var X=n.X.get(q);X?(X.push(w),g.BG(X,function(P,R){return P.Pb-R.Pb})):n.X.set(q,[w])}; g.c6=function(n,q,w,X){g.A.call(this);var P=this;this.api=n;this.NP=q;this.playback=w;this.app=X;this.PW=new g.RN;this.X=new Map;this.N=new Jp3;this.HW=new Map;this.WW=null;this.Ne=NaN;this.oH=this.RH=null;this.je=new g.YF(function(){qCx(P,P.Ne,P.RH||void 0)}); this.events=new g.Um(this);this.D0=15E3;this.G=new g.YF(function(){P.V=!0;P.playback.Db(P.D0);wdm(P);if(P.playback.getVideoData().M7()){var R;P.vQ({togab:(R=P.D)==null?void 0:R.identifier})}P.Km(!1)},this.D0); this.V=!1;this.K=new Map;this.Tp=[];this.D=null;this.IH=new Set;this.L=[];this.qe=[];this.ej=[];this.nM=[];this.s3=0;this.qP=!1;this.KM=new Set;this.sD=new Set;this.YE=new Set;this.Ff=new Set;this.Me=this.vH=0;this.lU=this.AK=!1;this.i7=this.C="";this.vW=null;this.logger=new g.il("dai");this.Wb={pN5:function(){return P.X}, vyn:function(){return P.N.C}, CzW:function(){return P.C}, o0g:function(R){P.onCueRangeEnter(P.X.get(R))}, mQi:function(R){P.onCueRangeExit(P.X.get(R))}, FQp:function(R,c){P.X.set(R,c)}, eKn:function(R){P.i7=R}, DH:function(){return P.DH()}, M3o:function(R){return P.N.X.get(R)}, vpT:function(){return P.vW}, XNg:function(){return P.N.N}}; this.playback.getPlayerType();this.playback.Pn(this);this.n5=this.NP.uL();g.K(this,this.je);g.K(this,this.events);g.K(this,this.G);this.events.j(this.api,g.Aq("serverstitchedcuerange"),this.onCueRangeEnter);this.events.j(this.api,g.YS("serverstitchedcuerange"),this.onCueRangeExit);P6(this.app.T1(),this.playback,!1)}; Ily=function(n,q,w,X,P,R,c,k,r){if(n.NP.Z("html5_ignore_ads_after_noadresponse")&&r&&n.IH.has(r))IN(n,{reason:"addafternoad",cueid:r});else{r=Xdu(n,R,R+P);n.V&&n.vQ({adaftto:1});w||n.vQ({missadcon:1,enter:R,len:P,aid:k});n.W&&!n.W.ra&&(n.W.ra=k);n.lU&&n.vQ({adfbk:1,enter:R,len:P,aid:k});var e=n.playback;R===c&&!P&&n.NP.Z("html5_allow_zero_duration_ads_on_timeline")&&n.vQ({attl0d:1});R>c&&IN(n,{reason:"enterTime_greater_than_return",Pb:R,xH:c});var f=e.oi()*1E3;Re&&IN(n,{reason:"parent_return_greater_than_content_duration",xH:c,XGe:e});(e=Nkz(n.N,R))&&e.xH>R&&PoY(n,q.video_id||"",R,c,e);if(r&&e)for(f=0;f=0)for(var P=q*1E3,R=X;R<=X+1&&R=c.Pb-w*1E3&&P<=c.xH+w*1E3)return{tv:c,HE:q}}return{tv:void 0,HE:q}}; eMx=function(n,q){var w="";(q=jHO(n,q))&&(w=q.getId());return w?n.N.C.get(w):void 0}; jHO=function(n,q){if(n.i7){var w=n.X.get(n.i7);if(w&&w.start-200<=q&&w.end+200>=q)return w}n=g.a(n.X.values());for(w=n.next();!w.done;w=n.next())if(w=w.value,w.start<=q&&w.end>=q)return w}; qCx=function(n,q,w){var X=n.oH||n.app.Yh().getPlayerState();s$(n,!0);n.playback.seekTo(q,w);n=n.app.Yh();q=n.getPlayerState();X.isOrWillBePlaying()&&!q.isOrWillBePlaying()?n.playVideo():X.isPaused()&&!q.isPaused()&&n.pauseVideo()}; s$=function(n,q){n.Ne=NaN;n.RH=null;n.je.stop();n.WW&&q&&n.WW.D7();n.oH=null;n.WW=null}; USY=function(n){var q=q===void 0?-1:q;var w=w===void 0?Infinity:w;for(var X=[],P=g.a(n.N.N),R=P.next();!R.done;R=P.next())R=R.value,(R.Pbw)&&X.push(R);n.N.N=X;X=g.a(n.X.values());for(P=X.next();!P.done;P=X.next())P=P.value,P.start>=q&&P.end<=w&&(n.playback.removeCueRange(P),n.X.delete(P.getId()),n.vQ({rmAdCR:1}));X=r9(n,q/1E3);q=X.tv;X=X.HE;q&&(X=X*1E3-q.Pb,Hnx(n,q,X,q.Pb+X),X=n.X.get(q.cpn))&&(X.start=q.Pb,X.end=q.Pb+q.durationMs);if(q=r9(n,w/1E3).tv){var c;X="playback_timelinePlaybackId_"+ q.dM+"_video_id_"+((c=q.videoData)==null?void 0:c.videoId)+"_durationMs_"+q.durationMs+"_enterTimeMs_"+q.Pb+"_parentReturnTimeMs_"+q.xH;n.O2("Invalid_clearEndTimeMs_"+w+"_that_falls_during_"+X+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; tUY=function(n){n.PW.clearAll();n.X.clear();n.N.clear();n.K.clear();n.Tp=[];n.D=null;n.IH.clear();n.L=[];n.qe=[];n.ej=[];n.nM=[];n.KM.clear();n.sD.clear();n.YE.clear();n.Ff.clear();n.V=!1;n.s3=0;n.qP=!1;n.vH=0;n.Me=0;n.AK=!1;n.lU=!1;n.C="";oPy(n.app.T1());P6(n.app.T1(),n.playback,!1);n.HW.clear();n.G.isActive()&&kr(n)}; Hnx=function(n,q,w,X){q.durationMs=w;q.xH=X;(X=n.HW.get(q.cpn))?X.Rg(w/1E3):n.vQ({nop_d:q.cpn})}; mSs=function(n,q,w,X,P,R){if(!n.lU)if(g.dSO(n,w))n.vQ({gdu:"undec",seg:w,itag:P});else if(q=g7s(n,q,w,X,R),!(n.playback.getVideoData().M7()&&(q==null?0:q.E7)))return q}; g7s=function(n,q,w,X,P){var R=n.K.get(w);if(!R){if(R=yCY(n,q))return R;q=n.i9(w-1,X!=null?X:2);if(P)return n.vQ({misscue:P,sq:w,type:X,prevsstate:q==null?void 0:q.U5,prevrecord:n.K.has(w-1)}),n.K.get(w-1);if((q==null?void 0:q.U5)===2)return n.vQ({adnf:1,sq:w,type:X,prevrecord:n.K.has(w-1)}),n.K.get(w-1)}return R}; yCY=function(n,q){q+=n.mX();if(n.playback.getVideoData().M7())a:{var w=1;w=w===void 0?0:w;var X=q*1E3;n=g.a(n.N.N);for(var P=n.next();!P.done;P=n.next()){P=P.value;var R=P.RI?P.RI*1E3:P.Pb;if(X>=P.Pb-w*1E3&&X<=R+P.durationMs+w*1E3){X={tv:P,HE:q};break a}}X={tv:void 0,HE:q}}else X=r9(n,q),((w=X)==null?0:w.tv)||(X=r9(n,q,1));var c;return(c=X)==null?void 0:c.tv}; als=function(n,q){q=q===void 0?"":q;var w=T7(q)||void 0;if(!q||!w){var X;n.vQ({adcfg:(X=q)==null?void 0:X.length,dcfg:w==null?void 0:w.length})}return w}; VUz=function(n){for(var q=g.a(n.X.values()),w=q.next();!w.done;w=q.next())n.playback.removeCueRange(w.value);n.X.clear();n.PW.clearAll()}; pd6=function(n,q,w,X,P,R,c){if(q&&w){n.i7=w.cpn;n.OM(w.cpn,w.Pb/1E3);rCz(n,w);var k=kAx(n,"a2a",w);n.vQ(k);n.vH++;n.playback.tY(q,w,X||0,P||0,!!R,!!c)}else n.vQ({misspbkonadtrans:1,enter:(w==null?void 0:w.cpn)||"",exit:(q==null?void 0:q.cpn)||"",seek:R,skip:c})}; ea=function(n,q,w){if(w===void 0||!w){w=g.a(n.Tp);for(var X=w.next();!X.done;X=w.next()){X=X.value;if(q>=X.start&&q<=X.end)return;if(q===X.end+1){X.end+=1;return}}n.Tp.push(new Z3O(q))}}; g.dSO=function(n,q){n=g.a(n.Tp);for(var w=n.next();!w.done;w=n.next())if(w=w.value,q>=w.start&&q<=w.end)return!0;return!1}; TJT=function(n,q,w){var X;if(X=n.playback.getVideoData().M7()||n.NP.Z("html5_ssdai_extent_last_unfinished_ad_cue_range"))X=(X=n.N.C.get(q))&&X.pO?(n=n.N.X.get(X==null?void 0:X.pO))&&n.slice(-1)[0].cpn===q:!1;return X&&w===2?1E3:0}; PoY=function(n,q,w,X,P){var R;q={reason:"overlapping_playbacks",N5H:q,Pb:w,xH:X,Se0:P.dM,b1p:((R=P.videoData)==null?void 0:R.videoId)||"",UQP:P.durationMs,Bhf:P.Pb,RRl:P.xH};IN(n,q)}; IN=function(n,q,w){n.playback.uc(q,w)}; FsY=function(n,q){var w=[];n=n.N.X.get(q);if(!n)return[];n=g.a(n);for(q=n.next();!q.done;q=n.next())q=q.value,q.cpn&&w.push(q.cpn);return w}; $Ss=function(n,q,w){var X=0;n=n.N.X.get(w);if(!n)return-1;n=g.a(n);for(w=n.next();!w.done;w=n.next()){if(w.value.cpn===q)return X;X++}return-1}; v73=function(n,q){var w=0;n=n.N.X.get(q);if(!n)return 0;n=g.a(n);for(q=n.next();!q.done;q=n.next())q=q.value,q.durationMs!==0&&q.xH!==q.Pb&&w++;return w}; LsY=function(n,q,w){var X=!1;if(w=n.N.X.get(w)){w=g.a(w);for(var P=w.next();!P.done;P=w.next())P=P.value,P.durationMs!==0&&P.xH!==P.Pb&&(P=P.cpn,q===P&&(X=!0),X&&!n.sD.has(P)&&(n.vQ({decoratedAd:P}),n.sD.add(P)))}}; wdm=function(n){n.n5&&n.vQ({adf:"0_"+((new Date).getTime()/1E3-n.Me)+"_isTimeout_"+n.V})}; Xdu=function(n,q,w){if(n.L.length)for(var X=g.a(n.L),P=X.next(),R={};!P.done;R={WK:void 0},P=X.next()){R.WK=P.value;P=R.WK.startSecs*1E3;var c=R.WK.lx*1E3+P;if(q>P&&qP&&w0?n:0}else n.DH().videoData.KV=n.playback.getCurrentTime()}; xS3=function(n){n.Ff.add(n.C);n.C="";n.qP=!1}; E7s=function(n,q,w,X){g.A.call(this);var P=this;this.api=n;this.NP=q;this.N=w;this.app=X;this.K=new Map;this.X=[];this.C=this.G=null;this.qP=NaN;this.D=this.W=this.L=null;this.V=new g.YF(function(){CoO(P,P.qP,P.L||void 0)}); this.PW=[];this.vW=new g.YF(function(){var R=P.PW.pop();if(R){var c=R.dM,k=R.playerVars;R=R.playerType;k&&(k.prefer_gapless=!0,P.api.preloadVideoByPlayerVars(k,R,NaN,"",c),P.PW.length&&g.K9(P.vW,4500))}}); this.events=new g.Um(this);this.Wb={JTo:function(){return P.X}}; this.N.getPlayerType();g.K(this,this.V);g.K(this,this.vW);g.K(this,this.events);this.events.j(this.api,g.Aq("childplayback"),this.onCueRangeEnter);this.events.j(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.j(this.api,"presentingplayerstatechange",this.RX)}; YC6=function(n,q,w,X,P,R){var c=q.cpn,k=q.docid||q.video_id||q.videoId||q.id,r=n.N;R=R===void 0?P+X:R;if(P>R)return O$(n,"enterAfterReturn enterTimeMs="+P+" is greater than parentReturnTimeMs="+R.toFixed(3),c,k),"";var e=r.oi()*1E3;if(Pe)return r="returnAfterDuration parentReturnTimeMs="+R.toFixed(3)+" is greater than parentDurationMs="+e+". And timestampOffset in seconds is "+ r.Zj(),O$(n,r,c,k),"";e=null;for(var f=g.a(n.X),O=f.next();!O.done;O=f.next()){O=O.value;if(P>=O.Pb&&PO.Pb)return O$(n,"overlappingReturn",c,k),"";if(R===O.Pb)return O$(n,"outOfOrder",c,k),"";P===O.xH&&(e=O)}c="cs_childplayback_"+o7Y++;k={OF:ij(X,!0),Lh:Infinity,target:null};var H={dM:c,playerVars:q,playerType:w,durationMs:X,Pb:P,xH:R,wG:k};n.X=n.X.concat(H).sort(function(V,T){return V.Pb-T.Pb}); e?bnu(n,e,{OF:ij(e.durationMs,!0),Lh:e.wG.Lh,target:H}):(q={OF:ij(P,!1),Lh:P,target:H},n.K.set(q.OF,q),r.addCueRange(q.OF));q=!0;if(n.N===n.app.Yh()&&(r=r.getCurrentTime()*1E3,r>=H.Pb&&rq)break;if(R>q)return{tv:X,HE:q-P};w=R-X.xH/1E3}return{tv:null,HE:q-w}}; CoO=function(n,q,w){w=w===void 0?{}:w;var X=n.D||n.app.Yh().getPlayerState();te(n,!0);q=isFinite(q)?q:n.N.Jx();var P=BJO(n,q);q=P.HE;var R=(P=P.tv)&&!H6(n,P)||!P&&n.N!==n.app.Yh(),c=q*1E3;c=n.C&&n.C.start<=c&&c<=n.C.end;!R&&c||U$(n);P?AC3(n,P,q,w,X):QHY(n,q,w,X)}; QHY=function(n,q,w,X){var P=n.N;P!==n.app.Yh()&&n.app.Ol();P.seekTo(q,Object.assign({},{zk:"application_timelinemanager"},w));Zns(n,X)}; AC3=function(n,q,w,X,P){var R=H6(n,q);if(!R){q.playerVars.prefer_gapless=!0;n.NP.Z("html5_enable_ssap_entity_id")&&(q.playerVars.cached_load=!0);var c=new g.jF(n.NP,q.playerVars);c.dM=q.dM;n.api.N5(c,q.playerType)}c=n.app.Yh();R||c.addCueRange(q.wG.OF);c.seekTo(w,Object.assign({},{zk:"application_timelinemanager"},X));Zns(n,P)}; Zns=function(n,q){n=n.app.Yh();var w=n.getPlayerState();q.isOrWillBePlaying()&&!w.isOrWillBePlaying()?n.playVideo():q.isPaused()&&!w.isPaused()&&n.pauseVideo()}; te=function(n,q){n.qP=NaN;n.L=null;n.V.stop();n.W&&q&&n.W.D7();n.D=null;n.W=null}; H6=function(n,q){n=n.app.Yh();return!!n&&n.getVideoData().dM===q.dM}; JCY=function(n){var q=n.X.find(function(P){return H6(n,P)}); if(q){var w=n.app.Yh();U$(n);var X=new g.OG(8);q=utu(n,q)/1E3;QHY(n,q,{},X);w.p5("forceParentTransition",{childPlayback:1});n.N.p5("forceParentTransition",{parentPlayback:1})}}; Wsz=function(n,q,w){q=q===void 0?-1:q;w=w===void 0?Infinity:w;for(var X=q,P=w,R=g.a(n.K),c=R.next();!c.done;c=R.next()){var k=g.a(c.value);c=k.next().value;k=k.next().value;k.Lh>=X&&k.target&&k.target.xH<=P&&(n.N.removeCueRange(c),n.K.delete(c))}X=q;P=w;R=[];c=g.a(n.X);for(k=c.next();!k.done;k=c.next())if(k=k.value,k.Pb>=X&&k.xH<=P){var r=n;r.G===k&&U$(r);H6(r,k)&&r.app.Ol()}else R.push(k);n.X=R;X=BJO(n,q/1E3);q=X.tv;X=X.HE;q&&(X*=1E3,zMu(n,q,X,q.xH===q.Pb+q.durationMs?q.Pb+X:q.xH));(q=BJO(n,w/1E3).tv)&& O$(n,"Invalid clearEndTimeMs="+w+" that falls during playback={timelinePlaybackId="+(q.dM+" video_id="+q.playerVars.video_id+" durationMs="+q.durationMs+" enterTimeMs="+q.Pb+" parentReturnTimeMs="+q.xH+"}.Child playbacks can only have duration updated not their start."))}; zMu=function(n,q,w,X){q.durationMs=w;q.xH=X;X={OF:ij(w,!0),Lh:w,target:null};bnu(n,q,X);H6(n,q)&&n.app.Yh().getCurrentTime()*1E3>w&&(q=utu(n,q)/1E3,w=n.app.Yh().getPlayerState(),QHY(n,q,{},w))}; O$=function(n,q,w,X){n.N.p5("timelineerror",{e:q,cpn:w?w:void 0,videoId:X?X:void 0})}; n4O=function(n){n&&n!=="web"&&NJO.includes(n)}; d9=function(){g.A.call(this);this.N=new nf(5,null);g.K(this,this.N);this.X=new nf(15,null);g.K(this,this.X)}; xex=function(n,q){return q?!!n.N.get(q):!1}; qvs=function(n,q){n.dataset.version=q}; Pnm=function(n){g.Q.call(this,{J:"div",Jg:["html5-video-player"],U:{tabindex:n.B().disableOrganicUi?"":"-1",id:n.webPlayerContextConfig.rootElementId},S:[{J:"div",Y:g.ii.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var q=this;this.app=n;this.pN=this.C5(g.ii.VIDEO_CONTAINER);this.Pm=new g.bX(0,0,0,0);this.ya=null;this.wu=new g.bX(0,0,0,0);this.Nz=this.nE=this.tp=NaN;this.zW=this.fl=this.gA=this.Qg=!1;this.OX=NaN;this.Sl=!1;this.Hc=null;this.Vc=function(){q.element.focus({preventScroll:!0})}; this.Bx=function(){q.app.Oq.publish("playerUnderlayVisibilityChange","visible");q.ya.classList.remove(g.ii.VIDEO_CONTAINER_TRANSITIONING);q.ya.removeEventListener(TX,q.Bx);q.ya.removeEventListener("transitioncancel",q.Bx)}; this.A0=this.MQ=!1;var w=this.element.addEventListener,X=this.element.removeEventListener;this.addEventListener=function(R,c,k){w.apply(q.element,[R,c,k])}; this.removeEventListener=function(R,c,k){X.apply(q.element,[R,c,k])}; var P=n.B();P.transparentBackground&&this.mQ("ytp-transparent");P.controlsType==="0"&&this.mQ("ytp-hide-controls");g.N4(this.element,"ytp-exp-bottom-control-flexbox");g.N4(this.element,"ytp-modern-caption");P.Z("enable_new_paid_product_placement")&&!g.tK(P)&&g.N4(this.element,"ytp-exp-ppp-update");P.Z("html5_enable_ssap")&&g.N4(this.element,"ytp-ssap");g.N4(this.element,"ytp-livebadge-color");if(P.Z("delhi_modern_web_player"))switch(g.N4(this.element,"ytp-delhi-modern"),P.Z("delhi_modern_web_player_icons")&& g.N4(this.element,"ytp-delhi-modern-icons"),OX(P.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.N4(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.N4(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.N4(this.element,"ytp-delhi-modern-with-exclusion")}qvs(this.element,wus(n));this.v5=!1;this.p7=new g.QB(NaN,NaN);Xuy(this);this.j(n.Oq,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; Xuy=function(n){function q(){n.ya&&g9(n);mY(n)!==n.Sl&&n.resize()} function w(c,k){n.FI(c,k)} function X(c){c.getVideoData()&&n.updateVideoData(c.getVideoData())} function P(){n.wu=new g.bX(0,0,0,0);n.Pm=new g.bX(0,0,0,0)} var R=n.app.Oq;R.addEventListener("initializingmode",P);R.addEventListener("videoplayerreset",X);R.addEventListener("videodatachange",w);R.addEventListener("presentingplayerstatechange",q);n.addOnDisposeCallback(function(){R.removeEventListener("initializingmode",P);R.removeEventListener("videoplayerreset",X);R.removeEventListener("videodatachange",w);R.removeEventListener("presentingplayerstatechange",q)})}; cc0=function(n){var q=n.app.Yh();if(q=q?q.getVideoData():null){if(g.Z4(q)||g.JH(q)||g.zO(q))return 16/9;if(y8(q)&&q.C.N)return n=q.C.videoInfos[0].video,RBT(n.width,n.height)}return(n=n.ya)?RBT(n.videoWidth,n.videoHeight):16/9}; Iws=function(n,q,w,X){var P=w,R=RBT(q.width,q.height);n.Qg?P=wR?{width:q.width,height:q.width/P,aspectRatio:P}:PP?n.width=n.height*w:wr;if(mY(n)){var e=cc0(n);var f=isNaN(e)||g.AN||kg&&g.fW||r;bg&&!g.A_(601)?e=P.aspectRatio:f=f||R.controlsType==="3";f?r?(f=R.Z("place_shrunken_video_on_left_of_player")?16:n.getPlayerSize().width-q.width-16,e=Math.max((n.getPlayerSize().height-q.height)/2,0),f=new g.bX(f,e,q.width, q.height),n.ya.style.setProperty("border-radius","12px")):f=new g.bX(0,0,q.width,q.height):(w=P.aspectRatio/e,f=new g.bX((q.width-P.width/w)/2,(q.height-P.height)/2,P.width/w,P.height),w===1&&g.fW&&(e=f.width-q.height*e,e>0&&(f.width+=e,f.height+=e)));g.XW(n.element,"ytp-fit-cover-video",Math.max(f.width-P.width,f.height-P.height)<1);if(k||n.v5)n.ya.style.display="";n.Sl=!0}else{f=-q.height;bg?f*=window.devicePixelRatio:g.d2&&(f-=window.screen.height);f=new g.bX(0,f,q.width,q.height);if(k||n.v5)n.ya.style.display= "none";n.Sl=!1}AU(n.wu,f)||(n.wu=f,g.qI(R)?(n.ya.style.setProperty("width",f.width+"px","important"),n.ya.style.setProperty("height",f.height+"px","important")):g.n1(n.ya,f.getSize()),X=new g.uV(f.left,f.top),g.JU(n.ya,Math.round(X.x),Math.round(X.y)),X=!0);q=new g.bX((q.width-P.width)/2,(q.height-P.height)/2,P.width,P.height);AU(n.Pm,q)||(n.Pm=q,X=!0);g.K$(n.ya,"transform",w===1?"":"scaleX("+w+")");c&&r!==n.fl&&(r&&(n.ya.addEventListener(TX,n.Bx),n.ya.addEventListener("transitioncancel",n.Bx),n.ya.classList.add(g.ii.VIDEO_CONTAINER_TRANSITIONING)), n.fl=r,n.app.Oq.publish("playerUnderlayVisibilityChange",n.fl?"transitioning":"hidden"));return X}; jG0=function(n){n.MQ=!n.MQ;n.A0=!0;n.element.classList.toggle("ytp-retro-player",n.MQ);n.resize();n.A0=!1;n.app.Oq.Uq("onRetroModeChanged",n.MQ)}; sGO=function(){this.csn=g.Uk();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.N=new Set;this.X=new Set}; eBO=function(n){if(n.csn!==g.Uk())if(n.csn==="UNDEFINED_CSN")n.csn=g.Uk();else{var q=g.Uk(),w=g.HW();if(q&&w){n.csn=q;for(var X=g.a(n.elements),P=X.next();!P.done;P=X.next())(P=P.value.visualElement)&&P.isClientVe()&&q&&w&&(g.OU("combine_ve_grafts")?KY(Am(),P,w):g.SY(g.Ek)(void 0,q,w,P))}if(q)for(n=g.a(n.N),w=n.next();!w.done;w=n.next())(w=w.value.visualElement)&&w.isClientVe()&&g.QK(q,w)}}; g.yg=function(n,q,w,X){g.A.call(this);var P=this;this.logger=new g.il("App");this.jd=this.Hl=!1;this.Jr={};this.JB=[];this.IK=!1;this.ZQ=null;this.intentionalPlayback=!1;this.Sm=!0;this.Y2=!1;this.x_=this.MS=this.qy=null;this.O7=!0;this.mediaElement=this.tK=null;this.zX=NaN;this.S7=!1;this.dg=this.mu=this.Vu=this.screenLayer=this.playlist=null;this.n0=[];this.CE=0;this.Wb={T1:function(){return P.Hb}, Xig:function(){return P.Vu}, ayW:function(){}}; this.logger.debug("constructor begin");if(!w)throw Error("b/179532961");this.e_=(q==null?void 0:q.args)||{};this.webPlayerContextConfig=w;kKs();q=this.e_;this.NP=new kx(q,w,w.canaryState,X,this);g.K(this,this.NP);S1h(this.NP);w=Bk6(this.NP);this.NP.uL()&&this.UB("h5vcc",w);this.NP.experiments.BW("jspb_serialize_with_worker")&&Yqy();this.NP.experiments.BW("gzip_gel_with_worker")&&hDm();this.NP.X&&!fwy&&(window.addEventListener(KJ?"touchstart":"click",mzT,{capture:!0,passive:!0}),fwy=!0);this.Z("html5_onesie")&& (this.jx=new x$(this.NP),g.K(this,this.jx));this.fH=WU(JF(this.NP)&&!0,q.enablesizebutton);this.B2=WU(!1,q.player_wide);this.visibility=new EPs;g.K(this,this.visibility);this.Z("web_log_theater_mode_visibility")&&this.eb(WU(!1,q.player_wide));this.Hl=WU(!1,q.external_list);this.events=new g.Um(this);g.K(this,this.events);this.Z("start_client_gcf")&&(yp(Tv(),{X2:wI,F6:PUO()}),this.xt=Tv().resolve(wI),IMu(this.xt));this.YjW=new TY;g.K(this,this.YjW);this.sN=new sGO;w=new Fq;this.Oq=new g.bR(this,w); g.K(this,this.Oq);this.template=new Pnm(this);g.K(this,this.template);this.appState=1;this.Oi=Ors(this);g.K(this,w);w={};this.y8=(w.internalvideodatachange=this.eW,w.playbackready=this.Jgq,w.playbackstarted=this.teW,w.statechange=this.nhe,w);this.C4=new VA(this.Oq);this.ix=ir3(this);w=this.NP.D;!1!==w&&this.UB("badps",{hbp:w,hostname:window.location.hostname,ps:this.NP.playerStyle});this.JK=new I$6(this.NP,this.ix);this.Oq.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||T96(this.ix))&& Hry(this);w=10;g.jg(this.NP)&&(w=3);HI(this.NP)&&(w=g.Jv(this.NP.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Hb=new g.w9(this.Oq,w);w=Uvu(this);this.Hb.Ro(w);tt6(this);w={};this.WR=(w.airplayactivechange=this.Tcg,w.airplayavailabilitychange=this.zB5,w.beginseeking=this.rKl,w.sabrCaptionsDataLoaded=this.Vj5,w.endseeking=this.OMT,w.internalAbandon=this.deo,w.internalaudioformatchange=this.Dep,w.internalvideodatachange=this.SDi,w.internalvideoformatchange=this.mee,w.liveviewshift=this.K_h, w.playbackstalledatstart=this.RBp,w.progresssync=this.sPh,w.onAbnormalityDetected=this.hBi,w.onSnackbarMessage=this.Bc0,w.onLoadProgress=this.ZMT,w.SEEK_COMPLETE=this.Ijg,w.SEEK_TO=this.oEg,w.onVideoProgress=this.yKH,w.onLoadedMetadata=this.G9q,w.onAutoplayBlocked=this.uFh,w.onPlaybackPauseAtStart=this.gEq,w.playbackready=this.YDW,w.statechange=this.KY,w.newelementrequired=this.df,w.heartbeatparams=this.eB5,w.videoelementevent=this.bMl,w.drmoutputrestricted=this.F_e,w.signatureexpired=this.UeT,w.nonfatalerror= this.QPi,w.reloadplayer=this.iMo,w);this.PE=new g.Um(this);g.K(this,this.PE);this.x9=new d9;g.K(this,this.x9);this.vJ=this.K$=-1;this.YG=new g.YF(this.template.resize,16,this.template);g.K(this,this.YG);this.FR=new E7s(this.Oq,this.NP,this.XF(),this);this.Pl=new Z_(this);g.K(this,this.Pl);this.j8=new SK(this);g.K(this,this.j8);n4O(this.NP.N.c);this.events.j(this.Oq,g.Aq("appapi"),this.WiW);this.events.j(this.Oq,g.YS("appapi"),this.wWT);this.events.j(this.Oq,g.Aq("appprogressboundary"),this.AUh);this.events.j(this.Oq, g.YS("applooprange"),this.Io);this.events.j(this.Oq,"presentingplayerstatechange",this.RX);this.events.j(this.Oq,"resize",this.n45);this.template.wl(PO(document,n));this.events.j(this.Oq,"offlineslatestatechange",this.cKn);this.events.j(this.Oq,"sabrCaptionsTrackChanged",this.ehP);this.events.j(this.Oq,"sabrCaptionsBufferedRangesUpdated",this.OGo);this.ix.T.B().bI&&Cq(this.ix,"offline");this.NP.oH&&g.vb("ux",g.Yb);n=g.Jv(this.NP.experiments,"html5_defer_fetch_att_ms");this.Ho=new g.YF(this.oHW,n, this);g.K(this,this.Ho);this.q7().YH()&&(g.LD()&&this.q7().L.push("remote"),dvs(this));this.JK.tick("fs");g4y(this);this.NP.oH&&Cq(this.ix,"ux",!0);g.Q2(this.ix.T.B())&&Cq(this.ix,"embed");this.Z("web_player_sentinel_is_uniplayer")||g.TQ(new g.b4("Player experiment flags missing","web_player_sentinel_is_uniplayer"));n=this.Z("web_player_sentinel_yt_experiments_sync");w=g.OU("web_player_sentinel_yt_experiments_sync");n!==w&&g.TQ(new g.b4("b/195699950",{yt:n,player:w}));this.CU=mvy(this);if(n=g.Jv(this.NP.experiments, "html5_block_pip_safari_delay"))this.tW=new g.YF(this.dK,n,this),g.K(this,this.tW);$A=this.NP.YE;this.Oq.publish("applicationInitialized");this.logger.debug("constructor end")}; mvy=function(n){function q(w){w.stack&&w.stack.indexOf("player")!==-1&&n.Yh().ZZ(w)} Fv.subscribe("handleError",q);Yv.push(q);return function(){Fv.unsubscribe("handleError",q);var w=Yv.indexOf(q);w!==-1&&Yv.splice(w,1)}}; Uvu=function(n){var q=new g.jF(n.NP,n.e_);n.Oq.publish("initialvideodatacreated",q);return aN(n,1,q,!1)}; tt6=function(n){var q=n.XF();q.setPlaybackRate(n.NP.W?1:ycu(n,Number(g.$N("yt-player-playback-rate"))||1));q.yd(n.y8,n);q.dB()}; ir3=function(n){var q="",w=wus(n);w.indexOf("//")===0&&(w=n.NP.protocol+":"+w);var X=w.lastIndexOf("/base.js");X!==-1&&(q=w.substring(0,X+1));if(w=Error().stack)if(w=w.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))w=w[1],w.includes(q)||g.TQ(Error("Player module URL mismatch: "+(w+" vs "+q+".")));q=new a$s(n.Oq,q);w={};Vas(q,(w.destroyed=function(){n.onApiChange()},w)); return q}; Ors=function(n){if(n.NP.storeUserVolume){n=g.$N("yt-player-volume")||{};var q=n.volume;n={volume:isNaN(q)?100:g.Y1(Math.floor(q),0,100),muted:!!n.muted}}else n={volume:100,muted:n.NP.mute};return n}; Vg=function(n){n.mediaElement=n.NP.deviceIsAudioOnly?new g.Wm(g.O_("AUDIO")):Km.pop()||new g.Wm(g.O_("VIDEO"));g.K(n,n.mediaElement);n.Yh().setMediaElement(n.mediaElement);try{n.NP.KG?(n.mu&&n.events.wM(n.mu),n.mu=n.events.j(n.mediaElement,"volumechange",n.CLP)):(n.mediaElement.zJ(n.Oi.muted),n.mediaElement.setVolume(n.Oi.volume/100))}catch(P){n.oY("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(P&&typeof P==="object"&&"message"in P&&typeof P.message==="string"&&P.message.replace(/[;:,]/g, "_")));return}g.Vs(n.PE);awz(n);var q=n.template,w=n.mediaElement.WQ();q.ya=w;q.zW=!1;q.ya.parentNode||tU(q.pN,q.ya,0);q.wu=new g.bX(0,0,0,0);rcu(q);g9(q);w=q.ya;g.N4(w,"video-stream");g.N4(w,g.ii.MAIN_VIDEO);var X=q.app.B();X.V$&&w.setAttribute("data-no-fullscreen","true");X.Z("html5_local_playsinline")?"playsInline"in sm()&&(w.playsInline=!0):X.X0&&(w.setAttribute("webkit-playsinline",""),w.setAttribute("playsinline",""));X.Pi&&q.ya&&q.j(w,"click",w.play,w);try{n.mediaElement.activate()}catch(P){n.oY("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(P&&typeof P==="object"&&"message"in P&&typeof P.message==="string"&&P.message.replace(/[;:,]/g,"_")))}}; puy=function(n){if(!Vts(n)){var q=n.XF().Ii();q&&(q=q.Pg(),q instanceof Promise&&q.catch(function(){})); pf(n,yE(n.getPlayerStateObject()))}}; awz=function(n){var q=n.mediaElement;iK()?n.PE.j(q,"webkitpresentationmodechanged",n.Kcf):window.document.pictureInPictureEnabled&&(n.PE.j(q,"enterpictureinpicture",function(){n.ZU(!0)}),n.PE.j(q,"leavepictureinpicture",function(){n.ZU(!1)})); Sz&&(n.PE.j(q,"webkitbeginfullscreen",function(){n.ST(3)}),n.PE.j(q,"webkitendfullscreen",function(){n.ST(0)}))}; TS6=function(n,q){var w=q.getPlayerType(),X=n.Hb.C[w]||null;q!==n.XF()&&q!==X&&(X==null||X.dispose(),n.Hb.C[w]=q)}; FV3=function(n,q){q=q===void 0?!0:q;n.logger.debug("start clear presenting player");var w;if(w=n.dg){w=n.dg;var X=n.mediaElement;w=!!X&&X===w.mediaElement}w&&(n.Wh(),Vg(n));w=n.Yh();w.Wh(!q);w.m9(n.WR,n);w.getPlayerType()!==1&&w.dispose();q=n.Hb;q.X=q.N;XF(q);n.logger.debug("finish clear presenting player")}; g.$vm=function(n,q,w,X){var P=n.JK;q===2&&(P=new I$6(n.NP));return new g.kc(n.NP,q,P,n.template,function(R,c,k){n.Oq.publish(R,c,k)},function(){return n.Oq.getVisibilityState()},n.visibility,n,w,X)}; aN=function(n,q,w,X,P){n=g.$vm(n,q,w,P);n=new g.qb(n);X&&n.dB();return n}; TC=function(n,q){return n.Ut(q)?n.XF():q}; FF=function(n,q){var w=n.Yh();return q===n.XF()&&n.Ut(q)&&n.Ut(w)?w:q}; Mtm=function(n){n.logger.debug("start application playback");if(n.XF().getPlayerState().isError())n.logger.debug("start application playback done, player in error state");else{var q=$r(n);n.q7().isLoaded();q&&n.gD(6);v4s(n);l$3(n.ix)||LVY(n)}}; LVY=function(n){if(!$r(n)){var q=ov(n.ix);q&&!q.created&&p6h(n.ix)&&(n.logger.debug("reload ad module"),q.create())}}; v4s=function(n){n.logger.debug("start presenter playback");var q=n.getVideoData(),w=n.ix;l$3(w)||w.ZJ();!V2&&w.T.Z("html5_allow_asmjs")&&AeO(w);Cq(w,"embed");Cq(w,"kids");Cq(w,"remote");Cq(w,"miniplayer");Cq(w,"offline");Cq(w,"unplugged");Cq(w,"ypc",!1,!0);Cq(w,"ypc_clickwrap",!1,!0);Cq(w,"yto",!1,!0);Cq(w,"webgl",!1,!0);GCu(w)||(Cq(w,"captions",!0),Cq(w,"endscreen"),w.C$(),Cq(w,"creatorendscreen",!0));w.Le();w.T.publish("modulesCreated");n.Oq.publish("videoready",q)}; v6=function(n){n=n.q7();n.YH();return ca(n)}; g4y=function(n){n.logger.debug("start prepare initial playback");n.UX();var q=n.e_;Vg(n);n.events.j(window,"resize",n.lCe);var w=n.q7();n.Oq.l7("onVolumeChange",n.Oi);if(q&&sN0(q)){var X=eN(n.NP);X&&!n.Hl&&(q.fetch=0);var P=g.Q2(n.NP);P&&!n.Hl&&(q.fetch=0);Lf(n,q);g.Q2(n.NP)&&n.JK.tick("ep_pr_s");if(!X||n.Hl)if(P&&!n.Hl)xv3(n);else if(!w.YH())n.playlist.onReady(function(){MA(n)})}n.uA(n.XF(),!1,!0); g.Z(n.XF().getPlayerState(),128)||(q=vYy(!n.NP.deviceIsAudioOnly),q==="fmt.noneavailable"?n.oY("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):q==="html5.missingapi"?n.oY(q,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):w&&w.YH()&&v6(n)&&(n.NP.wq||n.NP.TT)?xr(n):w.Xb?n.Oq.mutedAutoplay({durationMode:w.mutedAutoplayDurationMode}):g.$N("yt-player-playback-on-reload")?(g.Xc("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!n.NP.vW}),g.Fo("yt-player-playback-on-reload",!1), xr(n)):mQ(n.NP)||DvO(n),g.iE(n.NP)||eC(n.NP)==="MWEB"?(g.u4(g.Qs(),function(){D$(n)}),g.u4(g.Qs(),function(){$7s()})):(D$(n),$7s()),n.logger.debug("finish prepare initial playback"))}; D$=function(n){if(!n.Z("use_rta_for_player"))if(n.Z("fetch_att_independently"))g.K9(n.Ho);else{var q=n.getVideoData().botguardData;q&&g.W7(q,n.NP,n.getVideoData().JQ||"")}}; DvO=function(n){n.logger.debug("start initialize to CUED mode");n.Oq.publish("initializingmode");n.gD(2);Cq(n.ix,"remote");Cq(n.ix,"miniplayer");n.logger.debug("initialized to CUED mode")}; xr=function(n){n.logger.debug("start initialize application playback");var q=n.XF();if(g.Z(q.getPlayerState(),128))return!1;q=q.getVideoData();v6(n)&&n.NP.TT&&(Km.length&&n.jd?(he(n,{muted:!1,volume:n.Oi.volume},!1),lj(n,!1)):Km.length||n.Oi.muted||(he(n,{muted:!0,volume:n.Oi.volume},!1),lj(n,!0)));v6(n)&&g.Q2(n.NP)&&q.mutedAutoplay&&(he(n,{muted:!0,volume:n.Oi.volume},!1),lj(n,!0));q.cj&&he(n,{muted:!0,volume:n.Oi.volume},!1);hBz(n,1,q,!1);var w=n.XF();n.Oq.publish("initializingmode");n.uA(w);n.gD(3); var X;if(!(X=!n.NP.Hr)){if(X=n.dg){X=n.dg;var P=n.mediaElement;X=!!P&&P===X.mediaElement}X=X&&n.IK}X&&(n.Wh(),Vg(n),w.setMediaElement(n.mediaElement));w.GJ();if(g.Z(w.getPlayerState(),128))return!1;q.PO||pf(n,3);return n.IK=!0}; $r=function(n){n=K0(n.ix);return!!n&&n.loaded}; lw0=function(n,q){if(!n.tK)return!1;var w=n.tK.startTimeMs*.001-1,X=n.tK.endTimeMs*.001;n.tK.type==="repeatChapter"&&X--;return Math.abs(q-w)<=1E-6||Math.abs(q-X)<=1E-6||q>=w&&q<=X}; Gks=function(n){var q=n.Yh();ap(q.getVideoData())&&!q.Vx()&&(q=GC(n)*1E3-n.getVideoData().jN,n.Z("html5_gapless_new_slr")?(n=n.j8,Cf(n.app,"gaplessshortslooprange"),q=new g.og(0,q,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(n=n.app.Yh())&&n.addCueRange(q)):n.setLoopRange({startTimeMs:0,endTimeMs:q,type:"shortsLoop"}))}; Cns=function(n){var q=n.XF();if(!(g.Z(q.getPlayerState(),64)&&n.q7().isLivePlayback&&n.tK.startTimeMs<5E3)){if(n.tK.type==="repeatChapter"){var w,X=(w=dGO(n.fM()))==null?void 0:w.Wl(),P;w=(P=n.getVideoData())==null?void 0:P.TT;X instanceof g.wy&&w&&(P=w[ta(w,n.tK.startTimeMs)],X.renderChapterSeekingAnimation(0,P.title));isNaN(Number(n.tK.loopCount))?n.tK.loopCount=0:n.tK.loopCount++;n.tK.loopCount===1&&n.Oq.Uq("innertubeCommand",n.getVideoData().fu)}X={zk:"application_loopRangeStart"};if(n.tK.type=== "clips"||n.tK.type==="shortsLoop")X.seekSource=58;q.seekTo(n.tK.startTimeMs*.001,X)}}; ycu=function(n,q){var w=n.Oq.getAvailablePlaybackRates();q=Number(q.toFixed(2));n=w[0];w=w[w.length-1];q<=n?q=n:q>=w?q=w:(n=Math.floor(q*100+.001)%5,q=n===0?q:Math.floor((q-n*.01)*100+.001)/100);return q}; GC=function(n,q){q=n.rg({playerType:q});if(!q)return n.Hb.N.kJ();q=TC(n,q);return E$(n,q.kJ(),q)}; E$=function(n,q,w){if(n.Ut(w)&&(w=w.getVideoData(),!oN(n))){n=n.FR;for(var X=g.a(n.X),P=X.next();!P.done;P=X.next())if(P=P.value,w.dM===P.dM){q+=P.Pb/1E3;break}X=q;n=g.a(n.X);for(P=n.next();!P.done;P=n.next()){P=P.value;if(w.dM===P.dM)break;var R=P.Pb/1E3;if(R1&&(P=!1);if(!n.S7||P!==q){w=w.lock(P?"portrait":"landscape");if(w!=null)w["catch"](function(){}); n.S7=!0}}else n.S7&&(n.S7=!1,w.unlock())}; Sa=function(n,q,w){n.Oq.publish(q,w);var X=g.jg(n.NP)||g.qI(n.NP)||g.LX(n.NP);if(w&&X){switch(q){case "cuerangemarkersupdated":var P="onCueRangeMarkersUpdated";break;case "cuerangesadded":P="onCueRangesAdded";break;case "cuerangesremoved":P="onCueRangesRemoved"}P&&n.Oq.Uq(P,w.map(function(R){return{getId:function(){return this.id}, end:R.end,id:R.getId(),namespace:R.namespace==="ad"?"ad":"",start:R.start,style:R.style,visible:R.visible,markerPositionMs:R.markerPositionMs}}))}}; uj=function(n,q,w,X,P,R){w=w===void 0?!0:w;var c=n.rg({playerType:P});if(!c||(c.getPlayerType()!==2||n.Ut(c))&&!g.BD(c.getVideoData())){var k=n.Hb.aX;k?k.seekTo(q,{Il:!w,cY:X,zk:"application",seekSource:R}):(c&&c===n.XF()&&n.tK&&!lw0(n,q)&&n.setLoopRange(null),n.seekTo(q,w,X,P,R))}}; nnm=function(n,q,w,X){w&&(n.Wh(),Vg(n));w=n.Yh();w.Ft(q);var P=n.getVideoData(),R={};R.video_id=P.videoId;R.adformat=P.adFormat;P.isLivePlayback||(R.start=w.getCurrentTime(),R.resume="1");P.isLivePlayback&&xI(P)&&g.kS(n.NP)&&(R.live_utc_start=w.Py(),R.resume="1");P.HW&&(R.vvt=P.HW);P.D&&(R.vss_credentials_token=P.D,R.vss_credentials_token_type=P.E9);P.oauthToken&&(R.oauth_token=P.oauthToken);R.autoplay=1;R.reload_count=P.KM+1;R.reload_reason=q;P.xT&&(R.unplugged_partner_opt_out=P.xT);P.RW&&(R.ypc_is_premiere_trailer= P.RW);P.playerParams&&(R.player_params=P.playerParams);n.loadVideoByPlayerVars(R,void 0,!0,void 0,void 0,X);q==="signature"&&n.Vu&&LVY(n)}; qHm=function(n,q){n.q7().autonavState=q;g.Fo("yt-player-autonavstate",q);n.Oq.publish("autonavchange",q)}; wTs=function(n){var q=n.getVideoData().yK,w=n.NP.RH,X=n.isInline()&&!n.getVideoData().Iv,P=n.mediaElement;q||w||X?P.Rw():(P.yH(),he(n,n.Oi))}; bj=function(n){var q=ov(n.fM());q&&q.created&&(n.logger.debug("reset ad module"),q.destroy())}; oN=function(n){return n.getVideoData().enableServerStitchedDai&&!!n.Vu}; XTu=function(n,q){q.bounds=n.getBoundingClientRect();for(var w=g.a(["display","opacity","visibility","zIndex"]),X=w.next();!X.done;X=w.next())X=X.value,q[X]=BO(n,X);q.hidden=!!n.hidden}; wus=function(n){var q=n.webPlayerContextConfig.trustedJsUrl;return q?HA(q).toString():n.webPlayerContextConfig.jsUrl}; P86=function(n,q){var w=n.rg({playerType:1});if(w){if(w.getVideoData().clientPlaybackNonce===q)return w;if((n=n.Pl.N)&&n.getVideoData().clientPlaybackNonce===q)return n}return null}; Hry=function(n){function q(X){return Ti(Y$s(n.ix),function(P){return P.yG(X)})} n.JK.tick("wasm_s");var w=Uds(n.webPlayerContextConfig.wasmModuleUrl,T96(n.ix)?q:void 0,n.UB.bind(n));w==null||Ti(w,function(X){n.JK.tick(X.N?"wasm_fa":"wasm_fw")},function(){n.JK.tick("wasm_ferr")}); Bas(n.NP,w)}; Rss=function(n){return n.name==="TypeError"&&n.stack.includes("/s/player/")&&lb()<=105}; ci3=function(n){return n.isTimeout?"NO_BID":"ERR_BID"}; IWm=function(){var n=null;DLT().then(function(q){return n=q},function(q){return n=ci3(q)}); return n}; kqh=function(){var n=xp(1E3,"NO_BID");return g.$p(QBx([DLT(),n]).Ld(ci3),function(){n.cancel()})}; B6=function(n){return n.aS?g.l4(g.hh(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; Qg=function(n){this.player=n;this.C=this.N=1}; szz=function(n,q,w,X,P,R){q.client||(q.client={});n.player.B().Z("h5_remove_url_for_get_ad_break")||(q.client.originalUrl=w);var c=ne(w),k=g.IB(w)?!1:!0;(c||k)&&typeof Intl!=="undefined"&&(q.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);k=g.IB(w)?!1:!0;if(c||k||X!==""){var r={};w=Qm(cU(X)).split("&");var e=new Map;w.forEach(function(f){f=f.split("=");f.length>1&&e.set(f[0].toString(),decodeURIComponent(f[1].toString()))}); e.has("bid")&&(r.bid=e.get("bid"));r.params=[];riT.forEach(function(f){e.has(f)&&(f={key:f,value:e.get(f)},r.params.push(f))}); jz0(n,r);q.adSignalsInfo=r}q.client.unpluggedAppInfo||(q.client.unpluggedAppInfo={});q.client.unpluggedAppInfo.enableFilterMode=!1;w=P.N.cosver;w!=null&&w!=="cosver"&&(q.client.osVersion=w);w=P.N.cplatform;w!=null&&w!=="cplatform"&&w!==""&&(q.client.platform=w);w=P.N.cmodel;w!=null&&w!=="cmodel"&&(q.client.deviceModel=w);w=P.N.cplayer;w!=null&&w!=="cplayer"&&(q.client.playerType=w);w=P.N.cbrand;w!=null&&w!=="cbrand"&&(q.client.deviceMake=w);q.user||(q.user={});q.user.lockedSafetyMode=!1;(P.Z("embeds_web_enable_iframe_api_send_full_embed_url")|| P.Z("embeds_enable_autoplay_and_visibility_signals"))&&g.ny(P)&&RrO(q,R,n.player.getPlayerState(1))}; O5O=function(n,q){var w=!1;if(q==="")return w;q.split(",").forEach(function(X){var P={},R={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},c="ACTIVE";X[0]==="!"&&(X=X.substring(1),c="INACTIVE");X=X.split("-");X.length<3||(X[0]in esy&&(R.clientName=esy[X[0]]),X[1]in fWh&&(R.platform=fWh[X[1]]),R.applicationState=c,R.clientVersion=X.length>2?X[2]:"",P.remoteClient=R,n.remoteContexts?n.remoteContexts.push(P):n.remoteContexts=[P],w=!0)}); return w}; H5s=function(n){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in i5Y))return!1;n=n.split(RegExp("[:&]"));var q=i5Y.FLAG_AUTO_CAPTIONS_DEFAULT_ON,w="f"+(1+Math.floor(q/31)).toString();q=1<=2?c[1]:"";var k=tpT.test(q),r=dus.exec(q);r=r!=null&&r.length>=2?r[1]:"";var e=gn0.exec(q);e=e!=null&&e.length>=2&&!Number.isNaN(Number(e[1]))?Number(e[1]):1;var f=mus.exec(q);f=f!=null&&f.length>=2?f[1]:"0";var O=RK(n.player.B().k5),H=n.player.getVideoData(1),U=g.S6(H.n5,!0),t="BISCOTTI_ID"in w?w.BISCOTTI_ID:"";szz(n,U,q,t.toString(),n.player.B(), H);H={splay:!1,lactMilliseconds:w.LACT.toString(),playerHeightPixels:Math.trunc(w.P_H),playerWidthPixels:Math.trunc(w.P_W),vis:Math.trunc(w.VIS),signatureTimestamp:20279,autonavState:B6(n.player.B())};X&&(X={},O5O(X,w.YT_REMOTE)&&(H.mdxContext=X));if(X=yiO.includes(O)?void 0:g.Mg("PREF")){for(var V=X.split(RegExp("[:&]")),T=0,x=V.length;T1&&M[1].toUpperCase()==="TRUE"){U.user.lockedSafetyMode=!0;break}}H.autoCaptionsDefaultOn= H5s(X)}q=aWx.exec(q);(q=q!=null&&q.length>=2?q[1]:"")&&r&&(U.user.credentialTransferTokens=[{token:q,scope:"VIDEO"}]);q={contentPlaybackContext:H};c={adBlock:Math.trunc(w.AD_BLOCK),params:c,breakIndex:e,breakPositionMs:f,clientPlaybackNonce:w.CPN,topLevelDomain:O,isProxyAdTagRequest:k,context:U,adSignalsInfoString:Qm(cU(t.toString())),overridePlaybackContext:q};P!==void 0&&(c.cueProcessedMs=Math.round(P).toString());r&&(c.videoId=r);w.LIVE_TARGETING_CONTEXT&&(c.liveTargetingParams=w.LIVE_TARGETING_CONTEXT); w.AD_BREAK_LENGTH&&(c.breakLengthMs=Math.trunc(w.AD_BREAK_LENGTH*1E3).toString());R&&(c.driftFromHeadMs=R.toString());c.currentMediaTimeMs=Math.round(n.player.getCurrentTime(1)*1E3);(n=n.player.getGetAdBreakContext())&&(c.getAdBreakContext=n);return c}; pTY=function(){Qg.apply(this,arguments)}; TO6=function(n,q,w,X,P){var R=w.Mn;var c=w.OF;var k=n.player.B().Xa,r=0;w.cueProcessedMs&&c&&!R&&(w=c.end-c.start,w>0&&(r=Math.floor(w/1E3)));var e={AD_BLOCK:P,AD_BREAK_LENGTH:R?R.lx:r,AUTONAV_STATE:B6(n.player.B()),CA_TYPE:"image",CPN:n.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:n.player.TH()*1E3,LACT:tP(),LIVE_INDEX:R?n.C++:1,LIVE_TARGETING_CONTEXT:R&&R.context?R.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:n.player.getVisibilityState(), P_H:n.player.yT().qr().height,P_W:n.player.yT().qr().width,YT_REMOTE:k?k.join(","):""},f=Rd(PU);Object.keys(f).forEach(function(O){f[O]!=null&&(e[O.toUpperCase()]=f[O].toString())}); X!==""&&(e.BISCOTTI_ID=X);X={};wN(q)&&(X.sts="20279",(n=n.player.B().forcedExperiments)&&(X.forced_experiments=n));return NN(g.Vt(q,e),X)}; FP0=function(n,q){var w=n.player.B(),X,P=(X=n.player.getVideoData(1))==null?void 0:X.oauthToken;return g.Vd(w,P).then(function(R){if(R&&qg()){var c=NV();ng(c,R)}return g.Lk(n.player.zx(c),q,"/youtubei/v1/player/ad_break").then(function(k){return k})})}; $uY=function(n){this.hg=n}; vnh=function(n){this.T=n}; LP0=function(n){this.hg=n}; xus=function(n){g.A.call(this);this.N=n;this.Ha=Mps(this)}; Mps=function(n){var q=new v2s(n.N.Y4);g.K(n,q);n=[new $uY(n.N.hg),new vnh(n.N.T),new LP0(n.N.hg),new Or(n.N.GH,n.N.Ee),new H$,new ds(n.N.b7,n.N.lX,n.N.hg),new ia,new fd];n=g.a(n);for(var w=n.next();!w.done;w=n.next())LUx(q,w.value);n=g.a(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(w=n.next();!w.done;w=n.next())Ur(q,w.value,function(){}); return q}; Z$=function(n){var q=n.rl,w=n.MP;n=n.yu;var X=new uE6,P={jG:new FgT(q.get(),w),MP:w};return{FF:new U5(w,n,q,P),context:P,QJ:X}}; Je=function(n,q,w,X,P){g.A.call(this);this.X=q;this.cW=w;this.rl=X;this.Gz=P;this.listeners=[];var R=new ys(this);g.K(this,R);R.j(n,"internalAbandon",this.Ncn);this.addOnDisposeCallback(function(){g.Vs(R)})}; zC=function(n){this.T=n;this.adVideoId=this.N=this.videoId=this.adCpn=this.contentCpn=null;this.K=!0;this.X=this.C=!1;this.adFormat=null;this.W="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; DuY=function(n){n.contentCpn=null;n.adCpn=null;n.videoId=null;n.adVideoId=null;n.adFormat=null;n.W="AD_PLACEMENT_KIND_UNKNOWN";n.actionType="unknown_type";n.C=!1;n.X=!1}; hs6=function(n,q){n=g.a(q);for(q=n.next();!q.done;q=n.next())if((q=q.value.renderer)&&(q.instreamVideoAdRenderer||q.linearAdSequenceRenderer||q.sandwichedLinearAdRenderer||q.instreamSurveyAdRenderer)){y6("ad_i");g.a1({isMonetized:!0});break}}; lWO=function(n){var q;(q=n.T.getVideoData(1))!=null&&q.vW&&(n.X=!1,q={},n.N&&n.videoId&&(q.cttAuthInfo={token:n.N,videoId:n.videoId}),V6("video_to_ad",q))}; wa=function(n){n.X=!1;var q={};n.N&&n.videoId&&(q.cttAuthInfo={token:n.N,videoId:n.videoId});V6("ad_to_video",q);Gqh(n)}; Gqh=function(n){if(n.C)if(n.W==="AD_PLACEMENT_KIND_START"&&n.actionType==="video_to_ad")dA("video_to_ad");else{var q={adBreakType:x8(n.W),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:n.videoStreamType};n.actionType==="ad_to_video"?(n.contentCpn&&(q.targetCpn=n.contentCpn),n.videoId&&(q.targetVideoId=n.videoId)):(n.adCpn&&(q.targetCpn=n.adCpn),n.adVideoId&&(q.targetVideoId=n.adVideoId));n.adFormat&&(q.adType=n.adFormat);n.contentCpn&& (q.clientPlaybackNonce=n.contentCpn);n.videoId&&(q.videoId=n.videoId);n.adCpn&&(q.adClientPlaybackNonce=n.adCpn);n.adVideoId&&(q.adVideoId=n.adVideoId);g.a1(q,n.actionType);n.T.B().experiments.BW("html5_ads_csi_qoes")&&(q=n.T.zH(n.actionType==="ad_to_video"?1:2),q=(0,g.m$)()-1E3*q,TW("qoes",q,n.actionType))}}; W6=function(n){g.A.call(this);this.T=n;this.N=new Map;this.X=new ys(this);g.K(this,this.X);this.X.j(this.T,g.Aq("ad"),this.onCueRangeEnter,this);this.X.j(this.T,g.YS("ad"),this.onCueRangeExit,this)}; C8T=function(n,q,w,X,P,R,c){g.og.call(this,q,w,{id:n,namespace:"ad",priority:P,visible:X,associatedClipId:R,markerPositionMs:c})}; NA=function(n){this.T=n}; Enu=function(n,q){n.T.cueVideoByPlayerVars(q,2)}; nu=function(n){this.T=n}; qh=function(n){this.T=n;g.Jv(this.T.B().experiments,"tv_pacf_logging_sample_rate")}; onx=function(n){return MB(n,"html5_ssap_play_cached_preroll")}; Rn=function(n,q){q=q===void 0?!1:q;return n.T.B().Z("html5_ssap_force_ads_ctmp")?!0:(q||n.T.B().uL())&&n.T.B().Z("html5_ssap_pacf_qoe_ctmp")}; wQ=function(n){var q;return(q=n.T.getVideoData(1)==null?void 0:!1)!=null?q:!1}; MB=function(n,q){return n.T.B().Z(q)}; b5O=function(n){return n.T.B().Z("substitute_ad_cpn_macro_in_ssdai")}; h1=function(n){var q,w,X;return((q=n.T.getVideoData(1).getPlayerResponse())==null?void 0:(w=q.playerConfig)==null?void 0:(X=w.daiConfig)==null?void 0:X.enableServerStitchedDai)||!1}; EZy=function(n){return n.T.B().Z("html5_enable_vod_slar_with_notify_pacf")}; Aix=function(n){return n.T.B().Z("html5_recognize_predict_start_cue_point")}; fP=function(n){return n.T.B().experiments.BW("enable_desktop_player_underlay")}; YHs=function(n){return n.T.B().experiments.BW("html5_load_empty_player_in_media_break_sub_lra")}; Sk=function(n){return n.T.B().experiments.BW("html5_load_ads_instead_of_cue")}; ur=function(n){return n.T.B().experiments.BW("html5_preload_ads")}; KP6=function(n){return n.T.B().experiments.BW("should_ignore_cuepoints_during_lifa_preroll")}; s5=function(n){return n.T.B().experiments.BW("enable_ads_control_flow_deterministic_id_generation")}; SHs=function(n){return n.T.B().experiments.BW("enable_desktop_discovery_video_abandon_pings")||g.fy(n.T.B())}; ujs=function(n){return n.T.B().experiments.BW("enable_progres_commands_lr_feeds")}; l3=function(n){return n.T.B().experiments.BW("html5_cuepoint_identifier_logging")}; uKO=function(n){n=n.T.getVideoData(1);return!!n&&n.Z("html5_preload_first_vod_video_ad")&&!n.isDaiEnabled()&&!n.isLivePlayback}; BOx=function(n){return n.T.B().experiments.BW("html5_ssdai_enable_media_end_cue_range")}; Qzm=function(n){switch(n){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}}; Z5s=function(){g.np.call(this);var n=this;this.N={};this.addOnDisposeCallback(function(){for(var q=g.a(Object.keys(n.N)),w=q.next();!w.done;w=q.next())delete n.N[w.value]})}; Xa=function(){if(Ji0===null){Ji0=new Z5s;db(uA).X="b";var n=db(uA),q=En(n)=="h"||En(n)=="b",w=!(nF(),!1);q&&w&&(n.K=!0,n.D=new fXu)}return Ji0}; zsm=function(n,q,w){n.N[q]=w}; WPs=function(n){switch(n){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}}; PF=function(n,q,w){this.cW=n;this.T=q;this.MP=w;this.X=new Set;this.N=new Map;Xa().subscribe("adactiveviewmeasurable",this.FV,this);Xa().subscribe("adfullyviewableaudiblehalfdurationimpression",this.rY,this);Xa().subscribe("adviewableimpression",this.O3,this);Xa().subscribe("adaudioaudible",this.DO,this);Xa().subscribe("adaudiomeasurable",this.u2,this)}; cF=function(n,q,w){var X=w.bA,P=w.Qn,R=w.listener,c=w.fp;w=w.Br===void 0?!1:w.Br;if(n.N.has(q))R0("Unexpected registration of layout in LidarApi");else{if(c){if(n.X.has(c))return;n.X.add(c)}n.N.set(q,R);pV(nF().fG,"fmd",1);azs(db(uA),X);var k=w?q:void 0;zsm(Xa(),q,{d6:function(){if(!P)return{};var r=n.T.getPresentingPlayerType(!0),e;return(e=n.T.getVideoData(r))!=null&&e.isAd()?{currentTime:n.cW.get().getCurrentTimeSec(r,!1,k),duration:P,isPlaying:RT(n.cW.get(),r).isPlaying(),isVpaid:!1,isYouTube:!0, volume:n.cW.get().isMuted()?0:n.cW.get().getVolume()/100}:{}}})}}; IT=function(n,q){n.N.has(q)?(n.N.delete(q),delete Xa().N[q]):R0("Unexpected unregistration of layout in LidarApi")}; NOu=function(n,q){if(n.T.isLifaAdPlaying()){var w=n.T.rd(!0,!0);n.NR(q,w.width*.5*1.1,w.height*.25*1.1,w.width*.5*.9,w.height*.5*.9)}}; wvY=function(n,q,w){var X={};nXs(n,X,q,w);qou(X);X.LACT=kR(function(){return tP().toString()}); X.VIS=kR(function(){return n.getVisibilityState().toString()}); X.SDKV="h.3.0";X.VOL=kR(function(){return n.isMuted()?"0":Math.round(n.getVolume()).toString()}); X.VED="";return X}; Xvh=function(n,q){var w={};if(q||!n||!n.kind)return w;if(n.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||n.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!n.adTimeOffset||!n.adTimeOffset.offsetStartMilliseconds)return g.pC(Error("malformed AdPlacementConfig")),w;w.MIDROLL_POS=kR(L$(Math.round(h_(n.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else w.MIDROLL_POS=kR(L$("0"));return w}; kR=function(n){return{toString:function(){return n()}}}; PWm=function(n,q,w){function X(k,r){(r=w[r])&&(R[k]=r)} function P(k,r){(r=w[r])&&(R[k]=c(r))} if(!w||g.fV(w))return n;var R=Object.assign({},n),c=q?encodeURIComponent:function(k){return k}; P("DV_VIEWABILITY","doubleVerifyViewability");P("IAS_VIEWABILITY","integralAdsViewability");P("MOAT_INIT","moatInit");P("MOAT_VIEWABILITY","moatViewability");X("GOOGLE_VIEWABILITY","googleViewability");X("VIEWABILITY","viewability");return R}; nXs=function(n,q,w,X){q.CPN=kR(function(){var P;(P=n.getVideoData(1))?P=P.clientPlaybackNonce:(g.TQ(Error("Video data is null.")),P=null);return P}); q.AD_MT=kR(function(){if(X!=null)var P=X;else{var R=w;n.B().Z("html5_ssap_use_cpn_to_get_time")||(R=void 0);if(n.B().Z("enable_h5_shorts_ad_fill_ad_mt_macro")||n.B().Z("enable_desktop_discovery_pings_ad_mt_macro")||g.fy(n.B())){var c=n.getPresentingPlayerType(!0),k;P=((k=n.getVideoData(c))==null?0:k.isAd())?R4s(n,c,R):0}else P=R4s(n,2,R)}return cfs(P)}); q.MT=kR(function(){return cfs(n.getCurrentTime(1,!1))}); q.P_H=kR(function(){return n.yT().qr().height.toString()}); q.P_W=kR(function(){return n.yT().qr().width.toString()}); q.PV_H=kR(function(){return n.yT().getVideoContentRect().height.toString()}); q.PV_W=kR(function(){return n.yT().getVideoContentRect().width.toString()})}; cfs=function(n){return Math.round(Math.max(0,n*1E3)).toString()}; qou=function(n){n.CONN=kR(L$("0"));n.WT=kR(function(){return Date.now().toString()})}; R4s=function(n,q,w){return w!==void 0?n.getCurrentTime(q,!1,w):n.getCurrentTime(q,!1)}; Its=function(){}; kw6=function(n,q,w,X,P){var R,c,k,r,e,f,O,H,U,t,V,T,x;g.b(function(M){switch(M.X){case 1:R=!!q.scrubReferrer;c=g.Vt(q.baseUrl,PWm(w,R,X));k={};if(!q.headers){M.f5(2);break}r=n.W();if(!r.N){e=r.getValue();M.f5(3);break}return g.l(M,r.N,4);case 4:e=M.N;case 3:f=e;O=g.a(q.headers);for(H=O.next();!H.done;H=O.next())switch(U=H.value,U.headerType){case "VISITOR_ID":g.bp("VISITOR_DATA")&&(k["X-Goog-Visitor-Id"]=g.bp("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.bp("EOM_VISITOR_DATA")&&(k["X-Goog-EOM-Visitor-Id"]= g.bp("EOM_VISITOR_DATA"));break;case "USER_AUTH":f&&(k.Authorization="Bearer "+f);break;case "PLUS_PAGE_ID":(t=n.K())&&(k["X-Goog-PageId"]=t);break;case "AUTH_USER":V=n.N();!f&&V&&(k["X-Goog-AuthUser"]=V);break;case "DATASYNC_ID":if(T=void 0,(T=n.C())==null?0:T.BW("enable_datasync_id_header_in_web_vss_pings"))x=n.X(),ne(c)&&g.bp("LOGGED_IN")&&x&&(k["X-YouTube-DataSync-Id"]=x)}"X-Goog-EOM-Visitor-Id"in k&&"X-Goog-Visitor-Id"in k&&delete k["X-Goog-Visitor-Id"];case 2:g.LH(c,void 0,R,Object.keys(k).length!== 0?k:void 0,"",!0,P),g.yy(M)}})}; rfs=function(n,q,w,X,P){this.W=n;this.K=q;this.N=w;this.X=X;this.C=P}; jDu=function(n,q){this.N=n;this.MP=q}; rQ=function(n,q,w,X,P,R,c){var k=k===void 0?new rfs(function(){var r=n.B(),e=n.getVideoData(1);return g.Vd(r,e?g.Io(e):"")},function(){return n.B().pageId},function(){return n.B().vW},function(){var r; return(r=n.B().datasyncId)!=null?r:""},function(){return n.B().experiments}):k; this.T=n;this.X=q;this.CM=w;this.rl=X;this.FF=P;this.MP=R;this.QJ=c;this.W=k;this.We=null;this.N=new Map;this.C=new jDu(k,this.MP)}; e46=function(n,q,w,X,P){var R=SM(n.X.get(),w);R?(w=sZ(n,sDO(R),R,void 0,void 0,X),q.hasOwnProperty("baseUrl")?n.W.send(q,w):n.C.send(q,w,{},P)):R0("Trying to ping from an unknown layout",void 0,void 0,{layoutId:w})}; GQT=function(n,q,w,X,P,R){X=X===void 0?[]:X;var c=SM(n.X.get(),q);if(c){var k=n.CM.get().sF(q,w),r=sZ(n,sDO(c),c,P,R);X.forEach(function(e,f){e.baseUrl&&(n.C.send(e.baseUrl,r,k,e.attributionSrcMode),e.serializedAdPingMetadata&&n.FF.y9("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,c,new ik0(e,f),void 0,void 0,c.adLayoutLoggingData))})}else R0("Trying to track from an unknown layout.",void 0,void 0,{layoutId:q, trackingType:w})}; PP=function(n,q){n.T.sendVideoStatsEngageEvent(q,void 0,2)}; jD=function(n,q){g.Xc("adsClientStateChange",q)}; ft0=function(n,q){n.N.has(q.gV())?R0("Trying to register an existing AdErrorInfoSupplier."):n.N.set(q.gV(),q)}; O7m=function(n,q){n.N.delete(q.gV())||R0("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; fl=function(n,q,w){typeof w==="string"?n.T.getVideoData(1).CA(q,w):n.T.getVideoData(1).p5(q,w)}; sDO=function(n){var q=Yj(n.clientMetadata,"metadata_type_ad_placement_config");n=Yj(n.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:q,VA:n}}; sZ=function(n,q,w,X,P,R){var c=w?i7s(n):{},k=w?H7y(n,w.layoutId):{},r=UR0(n),e,f=P!=null?P:(e=$8(n.rl.get(),2))==null?void 0:e.clientPlaybackNonce;P=void 0;if(w){var O;if((O=n.QJ.N.get(w.layoutId))==null?0:O.Br)P=w.layoutId}O={};n=Object.assign({},wvY(n.T,P,X),Xvh(q.adPlacementConfig,(w==null?void 0:w.renderingContent)!==void 0),k,c,r,(O.FINAL=kR(function(){return"1"}),O.AD_CPN=kR(function(){return f||""}),O)); (w==null?void 0:w.renderingContent)!==void 0||(n.SLOT_POS=kR(function(){return(q.VA||0).toString()})); w={};R=Object.assign({},n,R);n=g.a(Object.values(t8Y));for(X=n.next();!X.done;X=n.next())X=X.value,c=R[X],c!=null&&c.toString()!=null&&(w[X]=c.toString());return w}; i7s=function(n){var q={},w,X=(w=n.We)==null?void 0:w.NT/1E3;X!=null&&(q.SURVEY_ELAPSED_MS=kR(function(){return Math.round(X*1E3).toString()})); q.SURVEY_LOCAL_TIME_EPOCH_S=kR(function(){return Math.round(Date.now()/1E3).toString()}); return q}; H7y=function(n,q){n=n.N.get(q);if(!n)return{};n=n.nI();if(!n)return{};q={};return q.YT_ERROR_CODE=n.VS.toString(),q.ERRORCODE=n.ZG.toString(),q.ERROR_MSG=n.errorMessage,q}; UR0=function(n){var q={},w=n.T.getVideoData(1);q.ASR=kR(function(){var X;return(X=w==null?void 0:w.AQ)!=null?X:null}); q.EI=kR(function(){var X;return(X=w==null?void 0:w.eventId)!=null?X:null}); return q}; jr=function(n,q,w){g.A.call(this);this.T=n;this.Uo=q;this.MP=w;this.listeners=[];this.Ap=null;this.Uw=new Map;q=new g.Um(this);g.K(this,q);q.j(n,"videodatachange",this.Pxi);q.j(n,"serverstitchedvideochange",this.Qih);this.CN=$8(this)}; $8=function(n,q){var w=n.T.getVideoData(q);return w?n.UQ(w,q||n.T.getPresentingPlayerType(!0)):null}; dRy=function(n,q,w){var X=n.UQ(q,w);n.CN=X;n.listeners.forEach(function(P){P.iH(X)})}; gX3=function(n){switch(n){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}}; sj=function(n,q,w){g.A.call(this);this.T=n;this.rl=q;this.MP=w;this.listeners=[];this.Yc=[];this.N=function(){R0("Called 'doUnlockPreroll' before it's initialized.")}; q=new ys(this);w=new g.Um(this);g.K(this,w);g.K(this,q);q.j(n,"progresssync",this.Mgn);q.j(n,"presentingplayerstatechange",this.jPH);q.j(n,"fullscreentoggled",this.onFullscreenToggled);q.j(n,"onVolumeChange",this.onVolumeChange);q.j(n,"minimized",this.Hd);q.j(n,"overlayvisibilitychange",this.G1);q.j(n,"shortsadswipe",this.ge);q.j(n,"resize",this.UD);w.j(n,g.Aq("appad"),this.Kd)}; er=function(n){wQ(n.MP.get())||n.N()}; mRx=function(n,q){n.Yc=n.Yc.filter(function(w){return w!==q})}; fu=function(n,q,w){return n.getCurrentTimeSec(q,w)}; Oj=function(n,q){var w;q=(w=n.rl.get().Uw.get(q))!=null?w:null;if(q===null)return R0("Expected ad video start time on playback timeline"),0;n=n.T.getCurrentTime(2,!0);return n0){var R=q.end.toString();P.forEach(function(c){(c=c.config&&c.config.adPlacementConfig)&&c.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&c.adTimeOffset&&c.adTimeOffset.offsetEndMilliseconds==="-1"&&c.adTimeOffset.offsetEndMilliseconds!==R&&(c.adTimeOffset.offsetEndMilliseconds=R)}); X.map(function(c){return g.u(c,Ws)}).forEach(function(c){var k; (c=c==null?void 0:(k=c.slotEntryTrigger)==null?void 0:k.mediaTimeRangeTrigger)&&c.offsetEndMilliseconds==="-1"&&(c.offsetEndMilliseconds=R)})}return{V1:P, adSlots:X,jb:!1,ssdaiAdsConfig:n.ssdaiAdsConfig}}; dQ=function(n){g.A.call(this);this.T=n;this.listeners=[];this.N=new ys(this);g.K(this,this.N);this.N.j(this.T,"aduxclicked",this.onAdUxClicked);this.N.j(this.T,"aduxmouseover",this.OW);this.N.j(this.T,"aduxmouseout",this.Fk);this.N.j(this.T,"muteadaccepted",this.a0q)}; TXh=function(n,q,w){q=g.Hh(q,function(X){return new S8s(X,w,X.id)}); n.T.Uq("onAdUxUpdate",q)}; gQ=function(n,q){n=g.a(n.listeners);for(var w=n.next();!w.done;w=n.next())q(w.value)}; mO=function(n,q){this.X=n;this.C=q===void 0?!1:q;this.N={}}; FTO=function(n,q){var w=n.startSecs+n.lx;w=w<=0?null:w;if(w===null)return null;switch(n.event){case "start":case "continue":case "stop":break;case "predictStart":if(q)break;return null;default:return null}q=Math.max(n.startSecs,0);return{wO:new HN(q,w),EK:new XU(q,w-q,n.context,n.identifier,n.event,n.N)}}; $RO=function(){this.N=[]}; DFs=function(n,q,w){var X=g.Yi(n.N,q);if(X>=0)return q;q=-X-1;return q>=n.N.length||n.N[q]>w?null:n.N[q]}; yD=function(n,q,w){g.A.call(this);this.T=n;this.MP=q;this.hg=w;this.listeners=[];this.W=!1;this.Vr=[];this.N=null;this.K=new mO(this,Aix(q.get()));this.C=new $RO;this.X=null}; vXy=function(n,q){n.Vr.push(q);for(var w=!1,X=g.a(n.listeners),P=X.next();!P.done;P=X.next())w=P.value.pW(q)||w;n.W=w;l3(n.MP.get())&&fl(n.hg.get(),"onci","cpi."+q.identifier+";cpe."+q.event+";cps."+q.startSecs+";cbi."+w)}; M86=function(n,q){jD(n.hg.get(),{cuepointTrigger:{event:LTT(q.event),cuepointId:q.identifier,totalCueDurationMs:q.lx*1E3,playheadTimeMs:q.N,cueStartTimeMs:q.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:n.T.getVideoData(1).clientPlaybackNonce}})}; LTT=function(n){switch(n){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return e9(n,"Unexpected cuepoint event")}}; aT=function(n){this.T=n}; VD=function(n){this.T=n}; xRz=function(n){switch(n){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:e9(n,"unknown transitionReason")}}; pu=function(){g.A.apply(this,arguments)}; DR0=function(n){this.T=n}; h4y=function(n,q,w,X,P){g.A.call(this);var R=this,c=VJ(function(){return new j0(R.MP)}); g.K(this,c);var k=VJ(function(){return new e0(c,R.MP)}); g.K(this,k);var r=VJ(function(){return new Yl}); g.K(this,r);var e=VJ(function(){return new b3(n)}); g.K(this,e);var f=VJ(function(){return new fY(c,k,R.MP)}); g.K(this,f);var O=VJ(function(){return new tm}); g.K(this,O);this.LM=VJ(function(){return new dQ(q)}); g.K(this,this.LM);this.kE=VJ(function(){return new T$(P)}); g.K(this,this.kE);this.ai=VJ(function(){return new zC(q)}); g.K(this,this.ai);this.pG=VJ(function(){return new W6(q)}); g.K(this,this.pG);this.AU=VJ(function(){return new NA(q)}); g.K(this,this.AU);this.Y4=VJ(function(){return new nu(q)}); g.K(this,this.Y4);this.MP=VJ(function(){return new qh(q)}); g.K(this,this.MP);var H=VJ(function(){return new t6(X)}); g.K(this,H);var U=VJ(function(){return new zZ(R.MP)}); g.K(this,U);this.h$=VJ(function(){return new aT(q)}); g.K(this,this.h$);this.Lo=VJ(function(){return new vL}); g.K(this,this.Lo);this.rl=VJ(function(){return new jr(q,O,R.MP)}); g.K(this,this.rl);var t=Z$({rl:this.rl,MP:this.MP,yu:U}),V=t.context,T=t.QJ;this.FF=t.FF;this.Gz=VJ(function(){return new yD(q,R.MP,R.hg)}); g.K(this,this.Gz);this.x4=VJ(function(){return new VD(q)}); g.K(this,this.x4);this.cW=VJ(function(){return new sj(q,R.rl,R.MP)}); g.K(this,this.cW);this.fD=VJ(function(){return new pu}); g.K(this,this.fD);t=VJ(function(){return new LP(c,f,k,R.MP,U,"SLOT_TYPE_ABOVE_FEED",R.cW,R.FJ,R.ZF)}); g.K(this,t);this.g$=VJ(function(){return new L4(R.MP)}); this.CM=VJ(function(){return new PF(R.cW,q,R.MP)}); g.K(this,this.CM);this.hg=VJ(function(){return new rQ(q,r,R.CM,R.rl,R.FF,R.MP,T)}); g.K(this,this.hg);this.gw=new Eb(CP,T6,function(M,h,E,S){return eM(k.get(),M,h,E,S)},e,f,k,U,this.MP,this.rl); g.K(this,this.gw);this.vy=new ok(e,t,w,this.MP,n,this.rl,this.cW,this.ai);g.K(this,this.vy);var x=new Je(q,this.vy,this.cW,this.rl,this.Gz);this.c_=VJ(function(){return x}); this.dY=x;this.FJ=new DT(e,f,this.c_,this.Gz,this.cW,this.MP,this.hg,this.x4);g.K(this,this.FJ);this.OT=new A1(e,f,this.pG,this.c_,V);g.K(this,this.OT);this.fV=new zD(this.MP,e,f,t,this.rl,this.OT,w,this.AU);g.K(this,this.fV);this.XU=VJ(function(){return new ZN(H,k,U,R.MP,R.hg,R.cW,R.x4)}); g.K(this,this.XU);this.AJ=VJ(function(){return new Jq}); g.K(this,this.AJ);this.bP=new J1(n,this.LM,this.MP);g.K(this,this.bP);this.iL=new zz(n);g.K(this,this.iL);this.xf=new Wp(n);g.K(this,this.xf);this.uI=new nY(n,this.c_,V);g.K(this,this.uI);this.Y6=new qG(n,this.pG,this.cW,this.rl,V);g.K(this,this.Y6);this.M$=new wu(n,this.rl);g.K(this,this.M$);this.ZF=new Ru(n,this.Gz,this.cW,this.hg,this.c_,this.FJ);g.K(this,this.ZF);this.CL=new X7(n);g.K(this,this.CL);this.Jz=new ru(n);g.K(this,this.Jz);this.Gn=new P7(n);g.K(this,this.Gn);this.JO=new kf(n);g.K(this, this.JO);this.Jz=new ru(n);g.K(this,this.Jz);this.Et=VJ(function(){return new u3}); g.K(this,this.Et);this.YS=VJ(function(){return new Bp(R.cW)}); g.K(this,this.YS);this.Nt=VJ(function(){return new Xl6(R.LM,R.hg,n,r,R.CM)}); g.K(this,this.Nt);this.Af=VJ(function(){return new Dy(R.fV,e,c)}); g.K(this,this.Af);this.WO=VJ(function(){return new Gr(R.MP,R.hg,R.CL,R.CM)}); g.K(this,this.WO);this.QK=VJ(function(){return new m_(n,R.Jz,R.CL,R.rl,R.x4,R.cW,R.fD,R.hg,O,R.Gz,R.CM,R.g$,R.AU,R.pG,R.ai,R.Y4,R.kE,R.h$,R.MP,r,V,T)}); g.K(this,this.QK);this.KW=VJ(function(){return new U3O(R.cW,R.hg,R.kE,R.MP,R.CM,R.rl)}); g.K(this,this.KW);this.sI=VJ(function(){return new Pks(R.LM,R.cW,R.hg,r,R.CM,R.xf,R.JO,R.kE,R.MP,w)}); g.K(this,this.sI);this.aZ=VJ(function(){return new Pm3(R.LM,R.hg,r)}); g.K(this,this.aZ);this.jR=new Uj(n,this.Lo,c);g.K(this,this.jR);this.lI={mP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.gw],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.vy],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.OT]]),t4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XU],["SLOT_TYPE_ABOVE_FEED",this.AJ],["SLOT_TYPE_FORECASTING",this.AJ], ["SLOT_TYPE_IN_PLAYER",this.AJ],["SLOT_TYPE_PLAYER_BYTES",this.AJ],["SLOT_TYPE_PLAYER_UNDERLAY",this.AJ],["SLOT_TYPE_PLAYBACK_TRACKING",this.AJ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.AJ]]),N1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bP],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.bP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.iL],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.iL],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.iL],["TRIGGER_TYPE_SLOT_ID_EXITED",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.iL],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.iL],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.iL],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.uI],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Y6],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Y6],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Y6],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Y6],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Y6],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Y6],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Y6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.M$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.M$],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CL],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.uI],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gn],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.JO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Jz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ZF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.ZF],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ZF],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ZF],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ZF]]),jw:new Map([["SLOT_TYPE_ABOVE_FEED",this.Et], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Et],["SLOT_TYPE_FORECASTING",this.Et],["SLOT_TYPE_IN_PLAYER",this.Et],["SLOT_TYPE_PLAYER_BYTES",this.YS],["SLOT_TYPE_PLAYER_UNDERLAY",this.Et],["SLOT_TYPE_PLAYBACK_TRACKING",this.Et],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Et]]),yY:new Map([["SLOT_TYPE_ABOVE_FEED",this.Nt],["SLOT_TYPE_AD_BREAK_REQUEST",this.Af],["SLOT_TYPE_FORECASTING",this.WO],["SLOT_TYPE_PLAYER_BYTES",this.QK],["SLOT_TYPE_PLAYBACK_TRACKING",this.KW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.KW],["SLOT_TYPE_IN_PLAYER",this.sI],["SLOT_TYPE_PLAYER_UNDERLAY",this.aZ]])};this.listeners=[r.get()];this.Dw={fV:this.fV,lX:this.MP.get(),QT:this.kE.get(),Es:this.cW.get(),vy:this.vy,g9:c.get(),Ai:this.Lo.get(),Ee:this.bP,GH:r.get(),b7:this.rl.get()}}; ltT=function(n,q,w,X,P){g.A.call(this);var R=this,c=VJ(function(){return new j0(R.MP)}); g.K(this,c);var k=VJ(function(){return new e0(c,R.MP)}); g.K(this,k);var r=VJ(function(){return new Yl}); g.K(this,r);var e=VJ(function(){return new b3(n)}); g.K(this,e);var f=VJ(function(){return new fY(c,k,R.MP)}); g.K(this,f);var O=VJ(function(){return new tm}); g.K(this,O);this.LM=VJ(function(){return new dQ(q)}); g.K(this,this.LM);this.kE=VJ(function(){return new T$(P)}); g.K(this,this.kE);this.ai=VJ(function(){return new zC(q)}); g.K(this,this.ai);this.pG=VJ(function(){return new W6(q)}); g.K(this,this.pG);this.AU=VJ(function(){return new NA(q)}); g.K(this,this.AU);this.Y4=VJ(function(){return new nu(q)}); g.K(this,this.Y4);this.MP=VJ(function(){return new qh(q)}); g.K(this,this.MP);var H=VJ(function(){return new t6(X)}); g.K(this,H);var U=VJ(function(){return new zZ(R.MP)}); g.K(this,U);var t=VJ(function(){return new LP(c,f,k,R.MP,U,null,null,R.FJ,R.ZF)}); g.K(this,t);this.h$=VJ(function(){return new aT(q)}); g.K(this,this.h$);this.Lo=VJ(function(){return new vL}); g.K(this,this.Lo);this.rl=VJ(function(){return new jr(q,O,R.MP)}); g.K(this,this.rl);var V=Z$({rl:this.rl,MP:this.MP,yu:U}),T=V.context,x=V.QJ;this.FF=V.FF;this.Gz=VJ(function(){return new yD(q,R.MP,R.hg)}); this.cW=VJ(function(){return new sj(q,R.rl,R.MP)}); g.K(this,this.cW);this.fD=VJ(function(){return new pu}); g.K(this,this.fD);this.CM=VJ(function(){return new PF(R.cW,q,R.MP)}); g.K(this,this.CM);this.hg=VJ(function(){return new rQ(q,r,R.CM,R.rl,R.FF,R.MP,x)}); g.K(this,this.hg);this.g$=VJ(function(){return new L4(R.MP)}); g.K(this,this.g$);this.gw=new Eb(CP,T6,function(h,E,S,nO){return eM(k.get(),h,E,S,nO)},e,f,k,U,this.MP,this.rl); g.K(this,this.gw);this.vy=new ok(e,t,w,this.MP,n,this.rl,this.cW,this.ai);g.K(this,this.vy);var M=new Je(q,this.vy,this.cW,this.rl,this.Gz);this.c_=VJ(function(){return M}); this.dY=M;this.FJ=new DT(e,f,this.c_,this.Gz,this.cW,this.MP,this.hg);g.K(this,this.FJ);this.OT=new A1(e,f,this.pG,this.c_,T);g.K(this,this.OT);this.fV=new zD(this.MP,e,f,t,this.rl,this.OT,w,this.AU);g.K(this,this.fV);this.XU=VJ(function(){return new ZN(H,k,U,R.MP,R.hg,R.cW)}); g.K(this,this.XU);this.AJ=VJ(function(){return new Jq}); g.K(this,this.AJ);this.bP=new J1(n,this.LM,this.MP);g.K(this,this.bP);this.iL=new zz(n);g.K(this,this.iL);this.xf=new Wp(n);g.K(this,this.xf);this.uI=new nY(n,this.c_,T);g.K(this,this.uI);this.Y6=new qG(n,this.pG,this.cW,this.rl,T);g.K(this,this.Y6);this.CL=new X7(n);g.K(this,this.CL);this.Gn=new P7(n);g.K(this,this.Gn);this.JO=new kf(n);g.K(this,this.JO);this.x4=VJ(function(){return new VD(q)}); g.K(this,this.x4);this.Jz=new ru(n);g.K(this,this.Jz);this.ZF=new Ru(n,this.Gz,this.cW,this.hg,this.c_,this.FJ);g.K(this,this.ZF);this.Et=VJ(function(){return new u3}); g.K(this,this.Et);this.YS=VJ(function(){return new Bp(R.cW)}); g.K(this,this.YS);this.Af=VJ(function(){return new Dy(R.fV,e,c)}); g.K(this,this.Af);this.WO=VJ(function(){return new Gr(R.MP,R.hg,R.CL,R.CM)}); g.K(this,this.WO);this.sI=VJ(function(){return new RnO(R.LM,R.cW,R.hg,r,R.CM,R.xf,R.JO,R.kE,R.MP,w)}); g.K(this,this.sI);this.QK=VJ(function(){return new yn(n,R.Jz,R.CL,R.hg,R.CM,R.g$,R.AU,R.rl,R.cW,R.fD,R.pG,R.ai,R.Y4,R.kE,R.h$,R.MP,R.x4,T,x)}); g.K(this,this.QK);this.jR=new Uj(n,this.Lo,c);g.K(this,this.jR);this.lI={mP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.gw],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.vy],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.OT]]),t4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XU],["SLOT_TYPE_FORECASTING",this.AJ],["SLOT_TYPE_IN_PLAYER",this.AJ], ["SLOT_TYPE_PLAYER_BYTES",this.AJ]]),N1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.iL],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.iL],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_EXITED",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.iL], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.iL],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xf],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.uI],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Y6],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Y6],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Y6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CL],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.uI],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gn],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.JO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Jz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ZF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.ZF],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ZF],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ZF],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ZF]]),jw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Et],["SLOT_TYPE_FORECASTING",this.Et],["SLOT_TYPE_IN_PLAYER",this.Et],["SLOT_TYPE_PLAYER_BYTES",this.YS]]), yY:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Af],["SLOT_TYPE_FORECASTING",this.WO],["SLOT_TYPE_IN_PLAYER",this.sI],["SLOT_TYPE_PLAYER_BYTES",this.QK]])};this.listeners=[r.get()];this.Dw={fV:this.fV,lX:this.MP.get(),QT:this.kE.get(),Es:this.cW.get(),vy:this.vy,g9:c.get(),Ai:this.Lo.get(),Ee:this.bP,GH:r.get(),b7:this.rl.get()}}; Gw3=function(n,q,w,X,P){g.A.call(this);var R=this,c=VJ(function(){return new j0(R.MP)}); g.K(this,c);var k=VJ(function(){return new e0(c,R.MP)}); g.K(this,k);var r=VJ(function(){return new Yl}); g.K(this,r);var e=VJ(function(){return new b3(n)}); g.K(this,e);var f=VJ(function(){return new fY(c,k,R.MP)}); g.K(this,f);var O=VJ(function(){return new tm}); g.K(this,O);this.LM=VJ(function(){return new dQ(q)}); g.K(this,this.LM);this.kE=VJ(function(){return new T$(P)}); g.K(this,this.kE);this.ai=VJ(function(){return new zC(q)}); g.K(this,this.ai);this.pG=VJ(function(){return new W6(q)}); g.K(this,this.pG);this.AU=VJ(function(){return new NA(q)}); g.K(this,this.AU);this.Y4=VJ(function(){return new nu(q)}); g.K(this,this.Y4);this.MP=VJ(function(){return new qh(q)}); g.K(this,this.MP);var H=VJ(function(){return new t6(X)}); g.K(this,H);var U=VJ(function(){return new zZ(R.MP)}); g.K(this,U);var t=VJ(function(){return new LP(c,f,k,R.MP,U,null,null,null,null)}); g.K(this,t);this.h$=VJ(function(){return new aT(q)}); g.K(this,this.h$);this.rl=VJ(function(){return new jr(q,O,R.MP)}); g.K(this,this.rl);var V=Z$({rl:this.rl,MP:this.MP,yu:U}),T=V.context,x=V.QJ;this.FF=V.FF;this.cW=VJ(function(){return new sj(q,R.rl,R.MP)}); g.K(this,this.cW);this.fD=VJ(function(){return new pu}); g.K(this,this.fD);this.CM=VJ(function(){return new PF(R.cW,q,R.MP)}); g.K(this,this.CM);this.hg=VJ(function(){return new rQ(q,r,R.CM,R.rl,R.FF,R.MP,x)}); g.K(this,this.hg);this.g$=VJ(function(){return new L4(R.MP)}); g.K(this,this.g$);this.gw=new Eb(CP,T6,function(h,E,S,nO){return eM(k.get(),h,E,S,nO)},e,f,k,U,this.MP,this.rl); g.K(this,this.gw);this.vy=new ok(e,t,w,this.MP,n,this.rl,this.cW,this.ai);g.K(this,this.vy);var M=new Je(q,this.vy,this.cW,this.rl);this.c_=VJ(function(){return M}); this.dY=M;this.OT=new A1(e,f,this.pG,this.c_,T);g.K(this,this.OT);this.fV=new zD(this.MP,e,f,t,this.rl,this.OT,w,this.AU);g.K(this,this.fV);this.XU=VJ(function(){return new ZN(H,k,U,R.MP,R.hg,R.cW)}); g.K(this,this.XU);this.AJ=VJ(function(){return new Jq}); g.K(this,this.AJ);this.bP=new J1(n,this.LM,this.MP);g.K(this,this.bP);this.iL=new zz(n);g.K(this,this.iL);this.uI=new nY(n,this.c_,T);g.K(this,this.uI);this.Y6=new qG(n,this.pG,this.cW,this.rl,T);g.K(this,this.Y6);this.CL=new X7(n);g.K(this,this.CL);this.Gn=new P7(n);g.K(this,this.Gn);this.x4=VJ(function(){return new VD(q)}); g.K(this,this.x4);this.Jz=new ru(n);g.K(this,this.Jz);this.Et=VJ(function(){return new u3}); g.K(this,this.Et);this.YS=VJ(function(){return new Bp(R.cW)}); g.K(this,this.YS);this.Af=VJ(function(){return new Dy(R.fV,e,c)}); g.K(this,this.Af);this.WO=VJ(function(){return new Gr(R.MP,R.hg,R.CL,R.CM)}); g.K(this,this.WO);this.PR=VJ(function(){return new HpO(R.LM,R.cW,R.hg,r,w,R.MP)}); g.K(this,this.PR);this.QK=VJ(function(){return new yn(n,R.Jz,R.CL,R.hg,R.CM,R.g$,R.AU,R.rl,R.cW,R.fD,R.pG,R.ai,R.Y4,R.kE,R.h$,R.MP,R.x4,T,x)}); g.K(this,this.QK);this.lI={mP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.gw],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.vy],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.OT]]),t4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XU],["SLOT_TYPE_FORECASTING",this.AJ],["SLOT_TYPE_IN_PLAYER",this.AJ],["SLOT_TYPE_PLAYER_BYTES",this.AJ]]),N1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.iL],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.iL],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.iL],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_EXITED",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.iL],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.uI],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Y6],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Y6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CL],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.uI],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gn],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Jz]]),jw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Et],["SLOT_TYPE_ABOVE_FEED",this.Et],["SLOT_TYPE_FORECASTING",this.Et],["SLOT_TYPE_IN_PLAYER",this.Et],["SLOT_TYPE_PLAYER_BYTES",this.YS]]),yY:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Af],["SLOT_TYPE_FORECASTING",this.WO],["SLOT_TYPE_IN_PLAYER", this.PR],["SLOT_TYPE_PLAYER_BYTES",this.QK]])};this.listeners=[r.get()];this.Dw={fV:this.fV,lX:this.MP.get(),QT:this.kE.get(),Es:this.cW.get(),vy:this.vy,g9:c.get(),Ai:null,Ee:this.bP,GH:r.get(),b7:this.rl.get()}}; CWO=function(n,q,w,X,P){g.A.call(this);var R=this,c=VJ(function(){return new j0(R.MP)}); g.K(this,c);var k=VJ(function(){return new e0(c,R.MP)}); g.K(this,k);var r=VJ(function(){return new Yl}); g.K(this,r);var e=VJ(function(){return new b3(n)}); g.K(this,e);var f=VJ(function(){return new fY(c,k,R.MP)}); g.K(this,f);var O=VJ(function(){return new tm}); g.K(this,O);this.tL=VJ(function(){return new DR0(q)}); g.K(this,this.tL);this.LM=VJ(function(){return new dQ(q)}); g.K(this,this.LM);this.kE=VJ(function(){return new T$(P)}); g.K(this,this.kE);this.ai=VJ(function(){return new zC(q)}); g.K(this,this.ai);this.pG=VJ(function(){return new W6(q)}); g.K(this,this.pG);this.AU=VJ(function(){return new NA(q)}); g.K(this,this.AU);this.Y4=VJ(function(){return new nu(q)}); g.K(this,this.Y4);this.MP=VJ(function(){return new qh(q)}); g.K(this,this.MP);var H=VJ(function(){return new t6(X)}); g.K(this,H);var U=VJ(function(){return new zZ(R.MP)}); g.K(this,U);var t=VJ(function(){return new LP(c,f,k,R.MP,U,null,null,null,null)}); g.K(this,t);this.h$=VJ(function(){return new aT(q)}); g.K(this,this.h$);this.rl=VJ(function(){return new jr(q,O,R.MP)}); g.K(this,this.rl);var V=Z$({rl:this.rl,MP:this.MP,yu:U}),T=V.context,x=V.QJ;this.FF=V.FF;this.cW=VJ(function(){return new sj(q,R.rl,R.MP)}); g.K(this,this.cW);this.fD=VJ(function(){return new pu}); g.K(this,this.fD);this.CM=VJ(function(){return new PF(R.cW,q,R.MP)}); g.K(this,this.CM);this.hg=VJ(function(){return new rQ(q,r,R.CM,R.rl,R.FF,R.MP,x)}); g.K(this,this.hg);this.g$=VJ(function(){return new L4(R.MP)}); g.K(this,this.g$);this.gw=new Eb(Yrx,T6,function(h,E,S,nO){return eYs(k.get(),h,E,S,nO)},e,f,k,U,this.MP,this.rl); g.K(this,this.gw);this.vy=new ok(e,t,w,this.MP,n,this.rl,this.cW,this.ai);g.K(this,this.vy);var M=new Je(q,this.vy,this.cW,this.rl);this.c_=VJ(function(){return M}); this.dY=M;this.OT=new A1(e,f,this.pG,this.c_,T);g.K(this,this.OT);this.fV=new zD(this.MP,e,f,t,this.rl,this.OT,w,this.AU);g.K(this,this.fV);this.XU=VJ(function(){return new ZN(H,k,U,R.MP,R.hg,R.cW)}); g.K(this,this.XU);this.AJ=VJ(function(){return new Jq}); g.K(this,this.AJ);this.bP=new J1(n,this.LM,this.MP);g.K(this,this.bP);this.iL=new zz(n);g.K(this,this.iL);this.uI=new nY(n,this.c_,T);g.K(this,this.uI);this.Y6=new qG(n,this.pG,this.cW,this.rl,T);g.K(this,this.Y6);this.CL=new X7(n);g.K(this,this.CL);this.Gn=new P7(n);g.K(this,this.Gn);this.x4=VJ(function(){return new VD(q)}); g.K(this,this.x4);this.Jz=new ru(n);g.K(this,this.Jz);this.Et=VJ(function(){return new u3}); g.K(this,this.Et);this.YS=VJ(function(){return new Bp(R.cW)}); g.K(this,this.YS);this.Af=VJ(function(){return new Dy(R.fV,e,c)}); g.K(this,this.Af);this.WO=VJ(function(){return new Gr(R.MP,R.hg,R.CL,R.CM)}); g.K(this,this.WO);this.QK=VJ(function(){return new yn(n,R.Jz,R.CL,R.hg,R.CM,R.g$,R.AU,R.rl,R.cW,R.fD,R.pG,R.ai,R.Y4,R.kE,R.h$,R.MP,R.x4,T,x)}); g.K(this,this.QK);this.Zp=VJ(function(){return new I60(R.LM,R.cW,R.hg,r,R.tL,w,R.rl)}); g.K(this,this.Zp);this.lI={mP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.gw],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.vy],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.OT]]),t4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XU],["SLOT_TYPE_FORECASTING",this.AJ],["SLOT_TYPE_IN_PLAYER",this.AJ],["SLOT_TYPE_PLAYER_BYTES",this.AJ]]),N1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.bP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.iL],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.iL],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.iL],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_EXITED",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.iL],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.uI],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Y6],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Y6],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CL],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.uI],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gn],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Jz]]),jw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Et],["SLOT_TYPE_FORECASTING",this.Et],["SLOT_TYPE_IN_PLAYER",this.Et],["SLOT_TYPE_PLAYER_BYTES",this.YS]]),yY:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Af],["SLOT_TYPE_FORECASTING",this.WO],["SLOT_TYPE_IN_PLAYER",this.Zp],["SLOT_TYPE_PLAYER_BYTES", this.QK]])};this.listeners=[r.get()];this.Dw={fV:this.fV,lX:this.MP.get(),QT:this.kE.get(),Es:this.cW.get(),vy:this.vy,g9:c.get(),Ai:null,Ee:this.bP,GH:r.get(),b7:this.rl.get()}}; EXY=function(n,q,w,X,P){g.A.call(this);var R=this,c=VJ(function(){return new j0(R.MP)}); g.K(this,c);var k=VJ(function(){return new e0(c,R.MP)}); g.K(this,k);var r=VJ(function(){return new Yl}); g.K(this,r);var e=VJ(function(){return new b3(n)}); g.K(this,e);var f=VJ(function(){return new fY(c,k,R.MP)}); g.K(this,f);var O=VJ(function(){return new tm}); g.K(this,O);this.tL=VJ(function(){return new DR0(q)}); g.K(this,this.tL);this.LM=VJ(function(){return new dQ(q)}); g.K(this,this.LM);this.kE=VJ(function(){return new T$(P)}); g.K(this,this.kE);this.ai=VJ(function(){return new zC(q)}); g.K(this,this.ai);this.pG=VJ(function(){return new W6(q)}); g.K(this,this.pG);this.AU=VJ(function(){return new NA(q)}); g.K(this,this.AU);this.Y4=VJ(function(){return new nu(q)}); g.K(this,this.Y4);this.MP=VJ(function(){return new qh(q)}); g.K(this,this.MP);var H=VJ(function(){return new t6(X)}); g.K(this,H);var U=VJ(function(){return new zZ(R.MP)}); g.K(this,U);this.h$=VJ(function(){return new aT(q)}); g.K(this,this.h$);this.rl=VJ(function(){return new jr(q,O,R.MP)}); g.K(this,this.rl);var t=Z$({rl:this.rl,MP:this.MP,yu:U}),V=t.context,T=t.QJ;this.FF=t.FF;this.Gz=VJ(function(){return new yD(q,R.MP,R.hg)}); g.K(this,this.Gz);this.x4=VJ(function(){return new VD(q)}); g.K(this,this.x4);this.cW=VJ(function(){return new sj(q,R.rl,R.MP)}); g.K(this,this.cW);this.fD=VJ(function(){return new pu}); g.K(this,this.fD);t=VJ(function(){return new LP(c,f,k,R.MP,U,null,R.cW,R.FJ,R.ZF,3)}); g.K(this,t);this.g$=VJ(function(){return new L4(R.MP)}); this.CM=VJ(function(){return new PF(R.cW,q,R.MP)}); g.K(this,this.CM);this.hg=VJ(function(){return new rQ(q,r,R.CM,R.rl,R.FF,R.MP,T)}); g.K(this,this.hg);this.vy=new ok(e,t,w,this.MP,n,this.rl,this.cW,this.ai);g.K(this,this.vy);var x=new Je(q,this.vy,this.cW,this.rl,this.Gz);this.c_=VJ(function(){return x}); this.dY=x;this.gw=new Eb(K53,T6,function(M,h,E,S){return eYs(k.get(),M,h,E,S)},e,f,k,U,this.MP,this.rl); g.K(this,this.gw);this.FJ=new DT(e,f,this.c_,this.Gz,this.cW,this.MP,this.hg,this.x4);g.K(this,this.FJ);this.OT=new A1(e,f,this.pG,this.c_,V);g.K(this,this.OT);this.fV=new zD(this.MP,e,f,t,this.rl,this.OT,w,this.AU);g.K(this,this.fV);this.XU=VJ(function(){return new ZN(H,k,U,R.MP,R.hg,R.cW,R.x4)}); g.K(this,this.XU);this.AJ=VJ(function(){return new Jq}); g.K(this,this.AJ);this.bP=new J1(n,this.LM,this.MP);g.K(this,this.bP);this.iL=new zz(n);g.K(this,this.iL);this.uI=new nY(n,this.c_,V);g.K(this,this.uI);this.Y6=new qG(n,this.pG,this.cW,this.rl,V);g.K(this,this.Y6);this.M$=new wu(n,this.rl);g.K(this,this.M$);this.ZF=new Ru(n,this.Gz,this.cW,this.hg,this.c_,this.FJ);g.K(this,this.ZF);this.CL=new X7(n);g.K(this,this.CL);this.Gn=new P7(n);g.K(this,this.Gn);this.Jz=new ru(n);g.K(this,this.Jz);this.Et=VJ(function(){return new u3}); g.K(this,this.Et);this.YS=VJ(function(){return new Bp(R.cW)}); g.K(this,this.YS);this.Af=VJ(function(){return new Dy(R.fV,e,c)}); g.K(this,this.Af);this.WO=VJ(function(){return new Gr(R.MP,R.hg,R.CL,R.CM)}); g.K(this,this.WO);this.QK=VJ(function(){return new m_(n,R.Jz,R.CL,R.rl,R.x4,R.cW,R.fD,R.hg,O,R.Gz,R.CM,R.g$,R.AU,R.pG,R.ai,R.Y4,R.kE,R.h$,R.MP,r,V,T)}); g.K(this,this.QK);this.sI=VJ(function(){return new kWm(R.LM,R.cW,R.hg,r,R.tL,w,R.MP,R.rl)}); g.K(this,this.sI);this.lI={mP:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.fV],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.FJ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.gw],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.vy],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.OT]]),t4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.XU],["SLOT_TYPE_FORECASTING",this.AJ],["SLOT_TYPE_IN_PLAYER",this.AJ],["SLOT_TYPE_PLAYER_BYTES",this.AJ]]),N1:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.bP],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.iL],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.iL],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.iL],["TRIGGER_TYPE_SLOT_ID_EXITED",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.iL],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.iL],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.uI],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Y6],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Y6],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.M$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.M$],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.CL],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.uI],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Gn],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Jz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.ZF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.ZF],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.ZF],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.ZF],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.ZF]]),jw:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Et],["SLOT_TYPE_FORECASTING",this.Et],["SLOT_TYPE_IN_PLAYER",this.Et],["SLOT_TYPE_PLAYER_BYTES",this.YS]]),yY:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Af],["SLOT_TYPE_FORECASTING",this.WO],["SLOT_TYPE_PLAYER_BYTES",this.QK],["SLOT_TYPE_IN_PLAYER",this.sI]])};this.listeners=[r.get()]; this.Dw={fV:this.fV,lX:this.MP.get(),QT:this.kE.get(),Es:this.cW.get(),vy:this.vy,g9:c.get(),Ai:null,Ee:this.bP,GH:r.get(),b7:this.rl.get()}}; b7s=function(n,q,w,X){function P(){return R.X} g.A.call(this);var R=this;n.B().experiments.BW("html5_dispose_of_manager_before_dependency")?(this.N=oXY(P,n,q,w,X),this.X=(new p4(this.N)).C(),g.K(this,this.X),g.K(this,this.N)):(this.N=oXY(P,n,q,w,X),g.K(this,this.N),this.X=(new p4(this.N)).C(),g.K(this,this.X))}; Fa=function(n){return n.N.Dw}; oXY=function(n,q,w,X,P){try{var R=q.B();if(g.iE(R))var c=new h4y(n,q,w,X,P);else if(g.tK(R))c=new ltT(n,q,w,X,P);else if(IK(R))c=new Gw3(n,q,w,X,P);else if(g.LX(R))c=new CWO(n,q,w,X,P);else if(g.qI(R))c=new EXY(n,q,w,X,P);else throw new TypeError("Unknown web interface");return c}catch(k){return c=q.B(),R0("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:c.N.cplatform,interface:c.N.c,Ddi:c.N.cver,zIP:c.N.ctheme,TH0:c.N.cplayer,wG0:c.playerStyle}),new V8z(n,q,w,X,P)}}; Afz=function(n){Cp.call(this,n)}; Yos=function(n,q,w,X,P){um.call(this,n,{J:"div",Y:"ytp-ad-timed-pie-countdown-container",S:[{J:"svg",Y:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{J:"circle",Y:"ytp-ad-timed-pie-countdown-background",U:{r:"10",cx:"10",cy:"10"}},{J:"circle",Y:"ytp-ad-timed-pie-countdown-inner",U:{r:"5",cx:"10",cy:"10"}},{J:"circle",Y:"ytp-ad-timed-pie-countdown-outer",U:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",q,w,X,P);this.W=this.C5("ytp-ad-timed-pie-countdown-container");this.C=this.C5("ytp-ad-timed-pie-countdown-inner"); this.D=this.C5("ytp-ad-timed-pie-countdown-outer");this.X=Math.ceil(2*Math.PI*5);this.hide()}; KTs=function(n,q,w,X,P,R){cl.call(this,n,{J:"div",Y:"ytp-ad-action-interstitial",U:{tabindex:"0"},S:[{J:"div",Y:"ytp-ad-action-interstitial-background-container"},{J:"div",Y:"ytp-ad-action-interstitial-slot",S:[{J:"div",Y:"ytp-ad-action-interstitial-instream-info"},{J:"div",Y:"ytp-ad-action-interstitial-card",S:[{J:"div",Y:"ytp-ad-action-interstitial-image-container"},{J:"div",Y:"ytp-ad-action-interstitial-headline-container"},{J:"div",Y:"ytp-ad-action-interstitial-description-container"},{J:"div", Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",q,w,X);this.s$=P;this.AC=R;this.navigationEndpoint=this.N=this.skipButton=this.X=this.actionButton=null;this.D0=this.C5("ytp-ad-action-interstitial-instream-info");this.n5=this.C5("ytp-ad-action-interstitial-image-container");this.L=new DF(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,"ytp-ad-action-interstitial-image");g.K(this,this.L);this.L.wl(this.n5);this.HW=this.C5("ytp-ad-action-interstitial-headline-container"); this.D=new Kp(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,"ytp-ad-action-interstitial-headline");g.K(this,this.D);this.D.wl(this.HW);this.PW=this.C5("ytp-ad-action-interstitial-description-container");this.C=new Kp(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,"ytp-ad-action-interstitial-description");g.K(this,this.C);this.C.wl(this.PW);this.RH=this.C5("ytp-ad-action-interstitial-background-container");this.Ff=new DF(this.api,this.layoutId,this.interactionLoggingClientData, this.QT,"ytp-ad-action-interstitial-background",!0);g.K(this,this.Ff);this.Ff.wl(this.RH);this.je=this.C5("ytp-ad-action-interstitial-action-button-container");this.slot=this.C5("ytp-ad-action-interstitial-slot");this.r$=this.C5("ytp-ad-action-interstitial-card");this.W=new ys;g.K(this,this.W);this.hide()}; Soz=function(n){var q=g.km("html5-video-player");q&&g.XW(q,"ytp-ad-display-override",n)}; Z73=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-ad-overlay-slot",S:[{J:"div",Y:"ytp-ad-overlay-container"}]},"invideo-overlay",q,w,X);this.L=[];this.RH=this.HW=this.W=this.je=this.D0=null;this.Ff=!1;this.D=null;this.PW=0;n=this.C5("ytp-ad-overlay-container");this.n5=new nX(n,45E3,6E3,.3,.4);g.K(this,this.n5);this.C=u_O(this);g.K(this,this.C);this.C.wl(n);this.X=BXO(this);g.K(this,this.X);this.X.wl(n);this.N=QDz(this);g.K(this,this.N);this.N.wl(n);this.hide()}; u_O=function(n){var q=new g.R6({J:"div",Y:"ytp-ad-text-overlay",S:[{J:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Y:"ytp-ad-overlay-close-container",S:[{J:"button",Y:"ytp-ad-overlay-close-button",S:[pp(JfT)]}]},{J:"div",Y:"ytp-ad-overlay-title",Ag:"{{title}}"},{J:"div",Y:"ytp-ad-overlay-desc",Ag:"{{description}}"},{J:"div",Jg:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ag:"{{displayUrl}}"}]});n.j(q.C5("ytp-ad-overlay-title"),"click",function(w){$R(n,q.element,w)}); n.j(q.C5("ytp-ad-overlay-link"),"click",function(w){$R(n,q.element,w)}); n.j(q.C5("ytp-ad-overlay-close-container"),"click",n.Uf);q.hide();return q}; BXO=function(n){var q=new g.R6({J:"div",Jg:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],S:[{J:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Y:"ytp-ad-overlay-close-container",S:[{J:"button",Y:"ytp-ad-overlay-close-button",S:[pp(JfT)]}]},{J:"div",Y:"ytp-ad-overlay-text-image",S:[{J:"img",U:{src:"{{imageUrl}}"}}]},{J:"div",Y:"ytp-ad-overlay-title",Ag:"{{title}}"},{J:"div",Y:"ytp-ad-overlay-desc",Ag:"{{description}}"},{J:"div",Jg:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Ag:"{{displayUrl}}"}]});n.j(q.C5("ytp-ad-overlay-title"),"click",function(w){$R(n,q.element,w)}); n.j(q.C5("ytp-ad-overlay-link"),"click",function(w){$R(n,q.element,w)}); n.j(q.C5("ytp-ad-overlay-close-container"),"click",n.Uf);n.j(q.C5("ytp-ad-overlay-text-image"),"click",n.S8P);q.hide();return q}; QDz=function(n){var q=new g.R6({J:"div",Y:"ytp-ad-image-overlay",S:[{J:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Y:"ytp-ad-overlay-close-container",S:[{J:"button",Y:"ytp-ad-overlay-close-button",S:[pp(JfT)]}]},{J:"div",Y:"ytp-ad-overlay-image",S:[{J:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});n.j(q.C5("ytp-ad-overlay-image"),"click",function(w){$R(n,q.element,w)}); n.j(q.C5("ytp-ad-overlay-close-container"),"click",n.Uf);q.hide();return q}; z46=function(n,q){if(q){var w=g.u(q,Bs)||null;w==null?g.pC(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(q=g.km("video-ads ytp-ad-module")||null,q==null?g.pC(Error("Could not locate the root ads container element to attach the ad info dialog.")):(n.HW=new g.R6({J:"div",Y:"ytp-ad-overlay-ad-info-dialog-container"}),g.K(n,n.HW),n.HW.wl(q),q=new YY(n.api,n.layoutId,n.interactionLoggingClientData,n.QT,n.HW.element,!1),g.K(n,q),q.init(WW("ad-info-hover-text-button"),w,n.macros), n.D?(q.wl(n.D,0),q.subscribe("f",n.vhp,n),q.subscribe("e",n.P7,n),n.j(n.D,"click",n.Cog),n.j(g.km("ytp-ad-button",q.element),"click",function(){var X;if(g.u((X=g.u(w.button,g.ZR))==null?void 0:X.serviceEndpoint,qYz))n.Ff=n.api.getPlayerState(1)===2,n.api.pauseVideo();else n.api.onAdUxClicked("ad-info-hover-text-button",n.layoutId)}),n.RH=q):g.pC(Error("Ad info button container within overlay ad was not present."))))}else g.TQ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; NXY=function(n,q){if(WTY(n,vF)||n.api.isMinimized())return!1;var w=I6(q.title),X=I6(q.description);if(g.LV(w)||g.LV(X))return!1;n.createServerVe(n.C.element,q.trackingParams||null);n.C.updateValue("title",I6(q.title));n.C.updateValue("description",I6(q.description));n.C.updateValue("displayUrl",I6(q.displayUrl));q.navigationEndpoint&&g.xi(n.L,q.navigationEndpoint);n.C.show();n.n5.start();n.logVisibility(n.C.element,!0);n.j(n.C.element,"mouseover",function(){n.PW++}); return!0}; nuL=function(n,q){if(WTY(n,vF)||n.api.isMinimized())return!1;var w=I6(q.title),X=I6(q.description);if(g.LV(w)||g.LV(X))return!1;n.createServerVe(n.X.element,q.trackingParams||null);n.X.updateValue("title",I6(q.title));n.X.updateValue("description",I6(q.description));n.X.updateValue("displayUrl",I6(q.displayUrl));n.X.updateValue("imageUrl",e7T(q.image));q.navigationEndpoint&&g.xi(n.L,q.navigationEndpoint);n.je=q.imageNavigationEndpoint||null;n.X.show();n.n5.start();n.logVisibility(n.X.element,!0); n.j(n.X.element,"mouseover",function(){n.PW++}); return!0}; q6z=function(n,q){if(n.api.isMinimized())return!1;var w=fEz(q.image),X=w;w.width0?(q=new $0(n.api,n.N), q.wl(n.playerOverlay),g.K(n,q)):(n=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(q)),g.pC(n))}}else g.pC(Error("addCommonComponents() needs to be called before starting countdown."))}; ehl=function(n){function q(w){return{toString:function(){return w()}}} n.macros.SURVEY_LOCAL_TIME_EPOCH_S=q(function(){var w=new Date;return(Math.round(w.valueOf()/1E3)+-1*w.getTimezoneOffset()*60).toString()}); n.macros.SURVEY_ELAPSED_MS=q(function(){return(Date.now()-n.C).toString()})}; fmz=function(n,q,w,X,P){D5.call(this,n,q,w,X,"survey-question-multi-select");this.PW=P;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()}; OOj=function(n,q,w){n.noneOfTheAbove=new Iml(n.api,n.layoutId,n.interactionLoggingClientData,n.QT);n.noneOfTheAbove.wl(n.answers);n.noneOfTheAbove.init(WW("survey-none-of-the-above"),q,w)}; HO0=function(n){n.X.forEach(function(q){q.N.toggleButton(!1)}); iOL(n,!0)}; iOL=function(n,q){var w=n.W;n=UsD(n);q=q===void 0?!1:q;w.N&&(n?w.N.hide():w.N.show(),q&&w.N instanceof sp&&!w.N.W&&j40(w.N,!1));w.X&&(n?w.X.show():w.X.hide())}; UsD=function(n){return n.X.some(function(q){return q.N.isToggled()})||n.noneOfTheAbove.button.isToggled()}; h6=function(n,q,w,X,P){D5.call(this,n,q,w,X,"survey-question-single-select",function(c){R.api.B().Z("supports_multi_step_on_desktop")&&P([c])}); var R=this;this.hide()}; ly=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-ad-survey",S:[{J:"div",Y:"ytp-ad-survey-questions"}]},"survey",q,w,X);this.questions=[];this.X=[];this.conditioningRules=[];this.N=0;this.D=this.C5("ytp-ad-survey-questions");this.api.B().Z("fix_survey_color_contrast_on_destop")&&this.C5("ytp-ad-survey").classList.add("color-contrast-fix");this.api.B().Z("web_enable_speedmaster")&&this.C5("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; gu5=function(n,q){var w=n.X[q],X;(X=n.C)==null||X.dispose();g.u(w,Ss)?t35(n,g.u(w,Ss),n.macros):g.u(w,Kh)&&dsv(n,g.u(w,Kh),n.macros);n.N=q}; t35=function(n,q,w){var X=new h6(n.api,n.layoutId,n.interactionLoggingClientData,n.QT,n.W.bind(n));X.wl(n.D);X.init(WW("survey-question-single-select"),q,w);n.api.B().Z("supports_multi_step_on_desktop")?n.C=X:n.questions.push(X);g.K(n,X)}; dsv=function(n,q,w){var X=new fmz(n.api,n.layoutId,n.interactionLoggingClientData,n.QT,n.W.bind(n));X.wl(n.D);X.init(WW("survey-question-multi-select"),q,w);n.api.B().Z("supports_multi_step_on_desktop")?n.C=X:n.questions.push(X);g.K(n,X)}; G6=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-ad-survey-interstitial",S:[{J:"div",Y:"ytp-ad-survey-interstitial-contents",S:[{J:"div",Y:"ytp-ad-survey-interstitial-logo",S:[{J:"div",Y:"ytp-ad-survey-interstitial-logo-image"}]},{J:"div",Y:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",q,w,X);this.N=this.actionButton=null;this.interstitial=this.C5("ytp-ad-survey-interstitial");this.X=this.C5("ytp-ad-survey-interstitial-contents");this.text=this.C5("ytp-ad-survey-interstitial-text"); this.logoImage=this.C5("ytp-ad-survey-interstitial-logo-image");this.transition=new g.ZF(this,500,!1,300);g.K(this,this.transition)}; msG=function(n,q){q=q&&xY(q)||"";if(g.LV(q))g.TQ(Error("Found ThumbnailDetails without valid image URL"));else{var w=n.style;n=n.style.cssText;var X=document.implementation.createHTMLDocument("").createElement("DIV");X.style.cssText=n;n=AQO(X.style);w.cssText=[n,'background-image:url("'+q+'");'].join("")}}; yOG=function(n){var q=g.km("html5-video-player");q&&g.XW(q,"ytp-ad-display-override",n)}; Cu=function(n,q,w,X,P,R){R=R===void 0?0:R;um.call(this,n,{J:"div",Y:"ytp-preview-ad",S:[{J:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",q,w,X,P);var c=this;this.PW=R;this.X=0;this.W=-1;this.C=this.C5("ytp-preview-ad__text");switch(this.PW){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.ZF(this,400,!1,100,function(){c.hide()}); g.K(this,this.transition);this.hide()}; Ej=function(n,q,w,X){cl.call(this,n,{J:"img",Y:"ytp-ad-avatar"},"ad-avatar",q,w,X);this.hide()}; am0=function(n){switch(n.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}}; oT=function(n,q,w,X,P,R){P=P===void 0?!1:P;R=R===void 0?!1:R;cl.call(this,n,{J:"button",Y:"ytp-ad-button-vm"},"ad-button",q,w,X);this.buttonText=this.buttonIcon=null;this.hide();this.N=P;this.X=R}; V3v=function(n,q,w,X,P){um.call(this,n,{J:"div",Jg:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],S:[{J:"div",Y:"ytp-ad-avatar-lockup-card__avatar_and_text_container",S:[{J:"div",Y:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",q,w,X,P);this.startMilliseconds=0;this.adAvatar=new Ej(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.adAvatar);tU(this.element,this.adAvatar.element,0);this.headline=new yO(this.api,this.layoutId, this.interactionLoggingClientData,this.QT);g.K(this,this.headline);this.headline.wl(this.C5("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.description);this.description.wl(this.C5("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new oT(this.api, this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.adButton);this.adButton.wl(this.element);this.hide()}; by=function(n,q,w,X){cl.call(this,n,{J:"button",Y:"ytp-skip-ad-button",S:[{J:"div",Y:"ytp-skip-ad-button__text"}]},"skip-button",q,w,X);var P=this;this.X=!1;this.W=this.C5("ytp-skip-ad-button__text");this.transition=new g.ZF(this,500,!1,100,function(){P.hide()}); g.K(this,this.transition);this.N=new nX(this.element,15E3,5E3,.5,.5,!0);g.K(this,this.N);this.hide()}; p0f=function(n,q,w,X,P){um.call(this,n,{J:"div",Y:"ytp-skip-ad"},"skip-ad",q,w,X,P);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.C=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.C);this.C.wl(this.element);this.hide()}; A6=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-visit-advertiser-link"},"visit-advertiser-link",q,w,X);this.hide()}; YR=function(n,q,w,X,P){cl.call(this,n,{J:"div",Y:"ytp-ad-player-overlay-layout",S:[{J:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{J:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container"},{J:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{J:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",q,w,X);this.X=P;this.HW=this.C5("ytp-ad-player-overlay-layout__player-card-container");this.N=this.C5("ytp-ad-player-overlay-layout__ad-info-container"); this.L=this.C5("ytp-ad-player-overlay-layout__skip-or-preview-container");this.PW=this.C5("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Txj=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-ad-grid-card-text",S:[{J:"div",Y:"ytp-ad-grid-card-text__metadata",S:[{J:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{J:"div",Y:"ytp-ad-grid-card-text__metadata__description",S:[{J:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{J:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{J:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",q,w,X);this.headline=new yO(this.api,this.layoutId,this.interactionLoggingClientData, this.QT);g.K(this,this.headline);this.headline.wl(this.C5("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!0);g.K(this,this.moreInfoButton);this.moreInfoButton.wl(this.C5("ytp-ad-grid-card-text__button"))}; Ku=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",q,w,X);this.N=[]}; Sr=function(n,q,w,X,P,R,c){um.call(this,n,R,c,q,w,X,P);this.playerProgressOffsetMs=0;this.X=!1}; Fz0=function(n){var q=g.km("html5-video-player");q&&g.XW(q,"ytp-ad-display-override",n)}; $s5=function(n,q,w,X,P){Sr.call(this,n,q,w,X,P,{J:"div",Y:"ytp-display-underlay-text-grid-cards",S:[{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",S:[{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header",S:[{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Ku(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.adGridCardCollection);this.adGridCardCollection.wl(this.C5("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.adButton);this.adButton.wl(this.C5("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.C=this.C5("ytp-display-underlay-text-grid-cards__content_container");this.W=this.C5("ytp-display-underlay-text-grid-cards__content_container__header")}; uy=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-ad-details-line"},"ad-details-line",q,w,X);this.N=[];this.hide()}; BF=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-image-background",S:[{J:"img",Y:"ytp-image-background-image"}]},"image-background",q,w,X);this.hide()}; vuG=function(n,q,w,X,P){um.call(this,n,{J:"svg",Y:"ytp-timed-pie-countdown",U:{viewBox:"0 0 20 20"},S:[{J:"circle",Y:"ytp-timed-pie-countdown__background",U:{r:"10",cx:"10",cy:"10"}},{J:"circle",Y:"ytp-timed-pie-countdown__inner",U:{r:"5",cx:"10",cy:"10"}},{J:"circle",Y:"ytp-timed-pie-countdown__outer",U:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",q,w,X,P);this.C=this.C5("ytp-timed-pie-countdown__inner");this.X=Math.ceil(2*Math.PI*5);this.hide()}; QD=function(n,q,w,X){cl.call(this,n,{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",U:{tabindex:"0"},S:[{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",S:[{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",S:[{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",q,w,X);this.X=null;this.W=this.C5("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.C=new ys;g.K(this,this.C);this.hide()}; Lzl=function(n){var q=g.km("html5-video-player");q&&g.XW(q,"ytp-ad-display-override",n)}; M3z=function(n){if(!n.adAvatar||!g.u(n.adAvatar,Z5))return g.pC(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!n.headline)return g.pC(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!n.adBadge||!g.u(n.adBadge,J6))return g.pC(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!n.adButton||!g.u(n.adButton,z6))return g.pC(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!n.adInfoRenderer|| !g.u(n.adInfoRenderer,Bs))return g.pC(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;n=n.durationMilliseconds||0;return typeof n!=="number"||n<=0?(g.pC(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+n)),!1):!0}; WF=function(n,q){q=q===void 0?2:q;g.np.call(this);this.api=n;this.N=null;this.Sg=new ys(this);g.K(this,this.Sg);this.X=s4O;this.Sg.j(this.api,"presentingplayerstatechange",this.Wa);this.N=this.Sg.j(this.api,"progresssync",this.hU);this.P1=q;this.P1===1&&this.hU()}; Nh=function(n,q,w){Cp.call(this,n);this.api=n;this.QT=q;this.components={};n=new g.Q({J:"div",Jg:["video-ads","ytp-ad-module"]});g.K(this,n);SC&&g.N4(n.element,"ytp-ads-tiny-mode");this.W=new rP(n.element);g.K(this,this.W);g.Zp(this.api,n.element,4);fP(w)&&(w=new g.Q({J:"div",Jg:["ytp-ad-underlay"]}),g.K(this,w),this.X=new rP(w.element),g.K(this,this.X),g.Zp(this.api,w.element,0));g.K(this,oNs())}; xsh=function(n,q){n=g.Ol(n.components,q.id,null);n==null&&g.TQ(Error("Component not found for element id: "+q.id));return n||null}; Dsv=function(n){g.Lq.call(this,n);var q=this;this.X=null;this.created=!1;this.C=n.B().Z("h5_use_refactored_get_ad_break")?new pTY(this.player):new Qg(this.player);this.W=function(){if(q.X!=null)return q.X;var X=new xus({Ee:Fa(q.N).Ee,b7:Fa(q.N).b7,T:q.player,lX:Fa(q.N).lX,hg:q.N.N.hg,GH:Fa(q.N).GH,Y4:q.N.N.Y4});q.X=X.Ha;return q.X}; this.N=new b7s(this.player,this,this.C,this.W);g.K(this,this.N);var w=n.B();!r8(w)||g.qI(w)||IK(w)||(g.K(this,new Nh(n,Fa(this.N).QT,Fa(this.N).lX)),g.K(this,new Afz(n)))}; hhf=function(n){n.created!==n.loaded&&R0("Created and loaded are out of sync")}; Cs5=function(n){g.Lq.prototype.load.call(n);var q=Fa(n.N).lX;try{n.player.getRootNode().classList.add("ad-created")}catch(r){R0(r instanceof Error?r:String(r))}var w=n.player.getVideoData(1),X=w&&w.videoId||"",P=w&&w.getPlayerResponse()||{},R=(P&&P.adPlacements||[]).map(function(r){return r.adPlacementRenderer}),c=((P==null?void 0:P.adSlots)||[]).map(function(r){return g.u(r,Ws)}); P=P.playerConfig&&P.playerConfig.daiConfig&&P.playerConfig.daiConfig.enableDai||!1;w&&w.T9();R=lmB(R,c,q,Fa(n.N).g9);c=w&&w.clientPlaybackNonce||"";w=w&&w.eL||!1;if(Rn(q,!0)&&w){var k;q={};(k=n.player.getVideoData())==null||k.p5("p_cpb",(q.cc=c,q))}k=1E3*n.player.getDuration(1);GTD(n);n.N.N.dY.Z3(c,k,w,R.qO,R.xe,R.qO,P,X)}; GTD=function(n){var q,w;if(w=(q=n.player.getVideoData(1))==null||!q.eL)q=n.player.B(),w=r8(q)&&!g.kS(q)&&q.playerStyle==="desktop-polymer";w&&(n=n.player.getInternalApi(),n.addEventListener("updateKevlarOrC3Companion",gdO),n.addEventListener("updateEngagementPanelAction",mU6),n.addEventListener("changeEngagementPanelVisibility",yN3),window.addEventListener("yt-navigate-start",VIy))}; na=function(n,q){q===n.SK&&(n.SK=void 0)}; Euj=function(n){var q=Fa(n.N).vy,w=q.W().o4("SLOT_TYPE_PLAYER_BYTES",1);q=$8(q.rl.get(),1).clientPlaybackNonce;var X=!1;w=g.a(w);for(var P=w.next();!P.done;P=w.next()){P=P.value;var R=P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.slotEntryTrigger instanceof G0?P.slotEntryTrigger.bq:void 0;R&&R===q&&(X&&R0("More than 1 preroll playerBytes slot detected",P),X=!0)}X||er(Fa(n.N).Es)}; oui=function(n){if(wQ(Fa(n.N).lX))return!0;var q="";n=g.a(Fa(n.N).GH.Lb.keys());for(var w=n.next();!w.done;w=n.next()){w=w.value;if(w.slotType==="SLOT_TYPE_PLAYER_BYTES"&&w.Gp==="core")return!0;q+=w.slotType+" "}Math.random()<.01&&R0("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:q});return!1}; bO5=function(n){n=g.a(Fa(n.N).GH.Lb.values());for(var q=n.next();!q.done;q=n.next())if(q.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; Y2z=function(n,q,w,X,P,R){w=w===void 0?[]:w;X=X===void 0?"":X;P=P===void 0?"":P;var c=Fa(n.N).lX,k=n.player.getVideoData(1);k&&k.getPlayerResponse();k&&k.T9();w=lmB(q,w,c,Fa(n.N).g9);Q16(Fa(n.N).fV,X,w.qO,w.xe,q,P,R)}; lmB=function(n,q,w,X){q={qO:[],xe:q};n=g.a(n);for(var P=n.next();!P.done;P=n.next())if((P=P.value)&&P.renderer!=null){var R=P.renderer;if(!w.T.B().Z("html5_enable_vod_lasr_with_notify_pacf")){var c=void 0,k=void 0,r=void 0,e=void 0,f=X;g.u((e=R.sandwichedLinearAdRenderer)==null?void 0:e.adVideoStart,vp)?(c=g.u((r=R.sandwichedLinearAdRenderer)==null?void 0:r.adVideoStart,vp),c=kZy(c,f),g.M0(R.sandwichedLinearAdRenderer.adVideoStart,vp,c)):g.u((k=R.linearAdSequenceRenderer)==null?void 0:k.adStart,vp)&& (r=g.u((c=R.linearAdSequenceRenderer)==null?void 0:c.adStart,vp),c=kZy(r,f),g.M0(R.linearAdSequenceRenderer.adStart,vp,c))}q.qO.push(P)}return q}; g.q_=function(n){if(typeof DOMParser!="undefined")return F9(new DOMParser,GHO(n),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.wh=function(n){g.A.call(this);this.callback=n;this.N=new Oh(0,0,.4,0,.2,1,1,1);this.delay=new g.Ad(this.next,window,this);g.K(this,this.delay)}; g.AOG=function(n){var q=n.B();return q.iS&&!q.C&&g.Q2(q)?n.isEmbedsShortsMode()?(n=n.rd(),Math.min(n.width,n.height)>=315):!n.lP():!1}; g.XH=function(n){g.Q.call(this,{J:"div",Y:"ytp-more-videos-view",U:{tabIndex:"-1"}});var q=this;this.api=n;this.X=!0;this.C=new g.Um(this);this.N=[];this.suggestionData=[];this.columns=this.containerWidth=this.V=this.W=this.scrollPosition=0;this.title=new g.Q({J:"h2",Y:"ytp-related-title",Ag:"{{title}}"});this.previous=new g.Q({J:"button",Jg:["ytp-button","ytp-previous"],U:{"aria-label":"Mostrar v\u00eddeos sugeridos anteriores"},S:[g.sD()]});this.G=new g.wh(function(w){q.suggestions.element.scrollLeft= -w}); this.next=new g.Q({J:"button",Jg:["ytp-button","ytp-next"],U:{"aria-label":"Mostrar mais v\u00eddeos sugeridos"},S:[g.eV()]});g.K(this,this.C);this.D=n.B().W;g.K(this,this.title);this.title.wl(this.element);this.suggestions=new g.Q({J:"div",Y:"ytp-suggestions"});g.K(this,this.suggestions);this.suggestions.wl(this.element);g.K(this,this.previous);this.previous.wl(this.element);this.previous.listen("click",this.nj,this);g.K(this,this.G);Y6i(this);g.K(this,this.next);this.next.wl(this.element);this.next.listen("click", this.Je,this);this.C.j(this.api,"appresize",this.UD);this.C.j(this.api,"fullscreentoggled",this.K3);this.C.j(this.api,"videodatachange",this.onVideoDataChange);this.UD(this.api.yT().getPlayerSize());this.onVideoDataChange()}; Y6i=function(n){for(var q={Li:0};q.Li<16;q={Li:q.Li},++q.Li){var w=new g.Q({J:"a",Y:"ytp-suggestion-link",U:{href:"{{link}}",target:n.api.B().L,"aria-label":"{{aria_label}}"},S:[{J:"div",Y:"ytp-suggestion-image"},{J:"div",Y:"ytp-suggestion-overlay",U:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},S:[{J:"div",Y:"ytp-suggestion-title",Ag:"{{title}}"},{J:"div",Y:"ytp-suggestion-author",Ag:"{{author_and_views}}"},{J:"div",U:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration", Ag:"{{duration}}"}]}]});g.K(n,w);var X=w.C5("ytp-suggestion-link");g.K$(X,"transitionDelay",q.Li/20+"s");n.C.j(X,"click",function(P){return function(R){var c=P.Li;if(n.X){var k=n.suggestionData[c],r=k.sessionData;n.D&&n.api.Z("web_player_log_click_before_generating_ve_conversion_params")?(n.api.logClick(n.N[c].element),c=k.z1(),k={},g.uR(n.api,k),c=g.OV(c,k),g.mh(c,n.api,R)):g.gL(R,n.api,n.D,r||void 0)&&n.api.q1(k.videoId,r,k.playlistId)}else R.preventDefault(),document.activeElement.blur()}}(q)); w.wl(n.suggestions.element);n.N.push(w);n.api.createServerVe(w.element,w)}}; Kz5=function(n){if(n.api.B().Z("web_player_log_click_before_generating_ve_conversion_params"))for(var q=Math.floor(-n.scrollPosition/(n.W+8)),w=Math.min(q+n.columns,n.suggestionData.length)-1;q<=w;q++)n.api.logVisibility(n.N[q].element,!0)}; g.PZ=function(n){var q=n.api.AM()?32:16;q=n.V/2+q;n.next.element.style.bottom=q+"px";n.previous.element.style.bottom=q+"px";q=n.scrollPosition;var w=n.containerWidth-n.suggestionData.length*(n.W+8);g.XW(n.element,"ytp-scroll-min",q>=0);g.XW(n.element,"ytp-scroll-max",q<=w)}; uYz=function(n){for(var q=n.suggestionData.length,w=0;w>>0)+"_",P=0;return q}); O6("Symbol.iterator",function(n){if(n)return n;n=Symbol("Symbol.iterator");for(var q="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),w=0;w0&&w>0;)if(X[--w]!=q[--P])return!1;return P<=0}}); O6("Array.prototype.find",function(n){return n?n:function(q,w){return ehs(this,q,w).QS}}); O6("Array.prototype.entries",function(n){return n?n:function(){return S3(this,function(q,w){return[q,w]})}}); O6("Array.prototype.keys",function(n){return n?n:function(){return S3(this,function(q){return q})}}); O6("String.prototype.startsWith",function(n){return n?n:function(q,w){var X=Yu(this,q,"startsWith");q+="";var P=X.length,R=q.length;w=Math.max(0,Math.min(w|0,X.length));for(var c=0;c=R}}); O6("Number.isFinite",function(n){return n?n:function(q){return typeof q!=="number"?!1:!isNaN(q)&&q!==Infinity&&q!==-Infinity}}); O6("String.prototype.repeat",function(n){return n?n:function(q){var w=Yu(this,null,"repeat");if(q<0||q>1342177279)throw new RangeError("Invalid count value");q|=0;for(var X="";q;)if(q&1&&(X+=w),q>>>=1)w+=w;return X}}); O6("Object.entries",function(n){return n?n:function(q){var w=[],X;for(X in q)U6(q,X)&&w.push([X,q[X]]);return w}}); O6("Array.from",function(n){return n?n:function(q,w,X){w=w!=null?w:function(k){return k}; var P=[],R=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(typeof R=="function"){q=R.call(q);for(var c=0;!(R=q.next()).done;)P.push(w.call(X,R.value,c++))}else for(R=q.length,c=0;c>>0;if(q===0)return 32;var w=0;(q&4294901760)===0&&(q<<=16,w+=16);(q&4278190080)===0&&(q<<=8,w+=8);(q&4026531840)===0&&(q<<=4,w+=4);(q&3221225472)===0&&(q<<=2,w+=2);(q&2147483648)===0&&w++;return w}}); O6("Number.isNaN",function(n){return n?n:function(q){return typeof q==="number"&&isNaN(q)}}); O6("Array.prototype.values",function(n){return n?n:function(){return S3(this,function(q,w){return w})}}); O6("Array.prototype.fill",function(n){return n?n:function(q,w,X){var P=this.length||0;w<0&&(w=Math.max(0,P+w));if(X==null||X>P)X=P;X=Number(X);X<0&&(X=Math.max(0,P+X));for(w=Number(w||0);w0&&w?w.repeat(Math.ceil(q/w.length)).substring(0,q):"")+X}}); O6("Array.prototype.findIndex",function(n){return n?n:function(q,w){return ehs(this,q,w).mp}}); O6("Promise.prototype.finally",function(n){return n?n:function(q){return this.then(function(w){return Promise.resolve(q()).then(function(){return w})},function(w){return Promise.resolve(q()).then(function(){throw w; })})}}); O6("Math.imul",function(n){return n?n:function(q,w){q=Number(q);w=Number(w);var X=q&65535,P=w&65535;return X*P+((q>>>16&65535)*P+X*(w>>>16&65535)<<16>>>0)|0}}); O6("Math.sign",function(n){return n?n:function(q){q=Number(q);return q===0||isNaN(q)?q:q>0?1:-1}}); O6("WeakSet",function(n){function q(w){this.N=new WeakMap;if(w){w=g.a(w);for(var X;!(X=w.next()).done;)this.add(X.value)}} if(function(){if(!n||!Object.seal)return!1;try{var w=Object.seal({}),X=Object.seal({}),P=new n([w]);if(!P.has(w)||P.has(X))return!1;P.delete(w);P.add(X);return!P.has(w)&&P.has(X)}catch(R){return!1}}())return n; q.prototype.add=function(w){this.N.set(w,!0);return this}; q.prototype.has=function(w){return this.N.has(w)}; q.prototype.delete=function(w){return this.N.delete(w)}; return q}); O6("AggregateError",function(n){function q(w,X){X=Error(X);"stack"in X&&(this.stack=X.stack);this.errors=w;this.message=X.message} if(n)return n;g.m(q,Error);q.prototype.name="AggregateError";return q}); O6("Array.prototype.copyWithin",function(n){function q(w){w=Number(w);return w===Infinity||w===-Infinity?w:w|0} return n?n:function(w,X,P){var R=this.length;w=q(w);X=q(X);P=P===void 0?R:q(P);w=w<0?Math.max(R+w,0):Math.min(w,R);X=X<0?Math.max(R+X,0):Math.min(X,R);P=P<0?Math.max(R+P,0):Math.min(P,R);if(wX;)--P in this?this[--w]=this[P]:delete this[--w];return this}}); O6("Int8Array.prototype.copyWithin",Qy);O6("Uint8Array.prototype.copyWithin",Qy);O6("Uint8ClampedArray.prototype.copyWithin",Qy);O6("Int16Array.prototype.copyWithin",Qy);O6("Uint16Array.prototype.copyWithin",Qy);O6("Int32Array.prototype.copyWithin",Qy);O6("Uint32Array.prototype.copyWithin",Qy);O6("Float32Array.prototype.copyWithin",Qy);O6("Float64Array.prototype.copyWithin",Qy);O6("Array.prototype.at",function(n){return n?n:Zm}); O6("Int8Array.prototype.at",JO);O6("Uint8Array.prototype.at",JO);O6("Uint8ClampedArray.prototype.at",JO);O6("Int16Array.prototype.at",JO);O6("Uint16Array.prototype.at",JO);O6("Int32Array.prototype.at",JO);O6("Uint32Array.prototype.at",JO);O6("Float32Array.prototype.at",JO);O6("Float64Array.prototype.at",JO);O6("String.prototype.at",function(n){return n?n:Zm}); O6("Array.prototype.findLastIndex",function(n){return n?n:function(q,w){return fms(this,q,w).mp}}); O6("Int8Array.prototype.findLastIndex",zT);O6("Uint8Array.prototype.findLastIndex",zT);O6("Uint8ClampedArray.prototype.findLastIndex",zT);O6("Int16Array.prototype.findLastIndex",zT);O6("Uint16Array.prototype.findLastIndex",zT);O6("Int32Array.prototype.findLastIndex",zT);O6("Uint32Array.prototype.findLastIndex",zT);O6("Float32Array.prototype.findLastIndex",zT);O6("Float64Array.prototype.findLastIndex",zT);O6("Number.parseInt",function(n){return n||parseInt});var bH,cG,iOm;bH=bH||{};g.W0=this||self;cG="closure_uid_"+(Math.random()*1E9>>>0);iOm=0;g.Ot(iz,Error);iz.prototype.name="CustomError";var xlh;var yO0,t0,Yo;yO0=Array.prototype.indexOf?function(n,q){return Array.prototype.indexOf.call(n,q,void 0)}:function(n,q){if(typeof n==="string")return typeof q!=="string"||q.length!=1?-1:n.indexOf(q,0); for(var w=0;w=0;w--)if(w in n&&n[w]===q)return w;return-1}; g.Jw=Array.prototype.forEach?function(n,q,w){Array.prototype.forEach.call(n,q,w)}:function(n,q,w){for(var X=n.length,P=typeof n==="string"?n.split(""):n,R=0;R=.3:this.Df>=.5};var $y={eGo:0,Jxp:1},LJh={NONE:0,xln:1,zj0:2};var GTz="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");dR.prototype.getValue=function(){return this.X}; g.m(gR,dR);gR.prototype.C=function(n){this.X===null&&g.sl(this.W,n)&&(this.X=n)}; g.m(mX,dR);mX.prototype.C=function(n){this.X===null&&typeof n==="number"&&(this.X=n)}; g.m(yX,dR);yX.prototype.C=function(n){this.X===null&&typeof n==="string"&&(this.X=n)};aF.prototype.disable=function(){this.X=!1}; aF.prototype.enable=function(){this.X=!0}; aF.prototype.isEnabled=function(){return this.X}; aF.prototype.reset=function(){this.N={};this.X=!0;this.C={}};var SQ=document,vO=window;var nij=Xh(1,!0),bQ=Xh(610401301,!1);Xh(899588437,!1);var qtf=Xh(772657768,!1),wGL=Xh(513659523,!1),XGB=Xh(568333945,!1),baz=Xh(1331761403,!1);Xh(651175828,!1);Xh(722764542,!1);Xh(748402145,!1);Xh(748402146,!1);Xh(748402147,!1);Xh(333098724,!1);Xh(2147483644,!1);Xh(2147483645,!1);Xh(2147483646,nij);Xh(2147483647,!0);var AX=!!g.w0("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var hX=String.prototype.trim?function(n){return n.trim()}:function(n){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(n)[1]},ILs=/&/g,kf6=//g,j5s=/"/g,s53=/'/g,eGs=/\x00/g,cw0=/[\x00&<>"']/;var Yy,PzD=g.W0.navigator;Yy=PzD?PzD.userAgentData||null:null;var ZOm=globalThis.trustedTypes,WJ;qE.prototype.toString=function(){return this.N+""};Pw.prototype.toString=function(){return this.N}; var WzT=new Pw("about:invalid#zClosurez");var nC6=k1("tel"),WOh=k1("sms"),zhO=[k1("data"),k1("http"),k1("https"),k1("mailto"),k1("ftp"),new cw(function(n){return/^[^:]*([/?#]|$)/.test(n)})],Nxs=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;fo.prototype.toString=function(){return this.N+""};t_.prototype.toString=function(){return this.N+""};aP.prototype.toString=function(){return this.N};var po={};g.RGB=String.prototype.repeat?function(n,q){return n.repeat(q)}:function(n,q){return Array(q+1).join(n)};bV[" "]=function(){};var S4,kg,WVx,cwG,ILl,kft,KJ,SC,rw5;g.uY=QX();g.IU=Y6u();g.AN=Sn("Edge");g.d2=g.AN||g.IU;S4=Sn("Gecko")&&!(Dc(g.CV(),"WebKit")&&!Sn("Edge"))&&!(Sn("Trident")||Sn("MSIE"))&&!Sn("Edge");g.j4=Dc(g.CV(),"WebKit")&&!Sn("Edge");kg=oP();WVx=tBx();g.Q9=Uls();cwG=Gx();ILl=Sn("iPad");kft=Sn("iPod");KJ=Co();SC=Dc(g.CV(),"KaiOS"); a:{var j5l="",s5B=function(){var n=g.CV();if(S4)return/rv:([^\);]+)(\)|;)/.exec(n);if(g.AN)return/Edge\/([\d\.]+)/.exec(n);if(g.IU)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(n);if(g.j4)return/WebKit\/(\S+)/.exec(n);if(g.uY)return/(?:Version)[ \/]?(\S+)/.exec(n)}(); s5B&&(j5l=s5B?s5B[1]:"");if(g.IU){var Rm,eGz=g.W0.document;Rm=eGz?eGz.documentMode:void 0;if(Rm!=null&&Rm>parseFloat(j5l)){rw5=String(Rm);break a}}rw5=j5l}var ywz=rw5,giO={};var Sz,ub;g.ce=Zc();Sz=Gx()||Sn("iPod");ub=Sn("iPad");g.Be=S63();g.fT=JX();g.fW=zF()&&!Co();var hRy=!g.IU&&!zF();g.d=g.uV.prototype;g.d.clone=function(){return new g.uV(this.x,this.y)}; g.d.equals=function(n){return n instanceof g.uV&&Bw(this,n)}; g.d.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.d.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.d.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.d.scale=function(n,q){this.x*=n;this.y*=typeof q==="number"?q:n;return this};g.d=g.QB.prototype;g.d.clone=function(){return new g.QB(this.width,this.height)}; g.d.aspectRatio=function(){return this.width/this.height}; g.d.isEmpty=function(){return!J_(this)}; g.d.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.d.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.d.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.d.scale=function(n,q){this.width*=n;this.height*=typeof q==="number"?q:n;return this};Ww.prototype.toString=function(){return this.N}; var zx={};new Ww(zx,"");var pGm=/^[a-z][a-z\d-]*$/i,T03="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),$ly="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),LD0=["action","formaction","href"];var Dl3={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.d=n$.prototype;g.d.WQ=function(n){return PO(this.N,n)}; g.d.getElementsByTagName=function(n,q){return(q||this.N).getElementsByTagName(String(n))}; g.d.C5=function(n){return g.km(n,this.N)}; g.d.setProperties=rr;g.d.createElement=function(n){return e4(this.N,n)}; g.d.appendChild=g.HO;g.d.append=function(n,q){Cz0(qY(n),n,arguments,1)}; g.d.canHaveChildren=function(n){if(n.nodeType!=1)return!1;switch(n.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.d.removeNode=g.dr;g.d.getChildren=function(n){return n.children!=void 0?n.children:Array.prototype.filter.call(n.childNodes,function(q){return q.nodeType==1})}; g.d.contains=g.gr;TN.prototype.now=function(){return 0}; TN.prototype.X=function(){return 0}; TN.prototype.C=function(){return 0}; TN.prototype.N=function(){return 0};g.m($m,TN);$m.prototype.now=function(){return F8()&&vO.performance.now?vO.performance.now():TN.prototype.now.call(this)}; $m.prototype.X=function(){return F8()&&vO.performance.memory?vO.performance.memory.totalJSHeapSize||0:TN.prototype.X.call(this)}; $m.prototype.C=function(){return F8()&&vO.performance.memory?vO.performance.memory.usedJSHeapSize||0:TN.prototype.C.call(this)}; $m.prototype.N=function(){return F8()&&vO.performance.memory?vO.performance.memory.jsHeapSizeLimit||0:TN.prototype.N.call(this)};var xZy=function(){if(!g.W0.addEventListener||!Object.defineProperty)return!1;var n=!1,q=Object.defineProperty({},"passive",{get:function(){n=!0}}); try{var w=function(){}; g.W0.addEventListener("test",w,q);g.W0.removeEventListener("test",w,q)}catch(X){}return n}();var mh6=Aw3("AnimationEnd"),TX=Aw3("TransitionEnd");g.d=GN.prototype;g.d.getHeight=function(){return this.bottom-this.top}; g.d.clone=function(){return new GN(this.top,this.right,this.bottom,this.left)}; g.d.contains=function(n){return this&&n?n instanceof GN?n.left>=this.left&&n.right<=this.right&&n.top>=this.top&&n.bottom<=this.bottom:n.x>=this.left&&n.x<=this.right&&n.y>=this.top&&n.y<=this.bottom:!1}; g.d.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.d.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.d.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.d.scale=function(n,q){q=typeof q==="number"?q:n;this.left*=n;this.right*=n;this.top*=q;this.bottom*=q;return this};g.d=g.bX.prototype;g.d.clone=function(){return new g.bX(this.left,this.top,this.width,this.height)}; g.d.contains=function(n){return n instanceof g.uV?n.x>=this.left&&n.x<=this.left+this.width&&n.y>=this.top&&n.y<=this.top+this.height:this.left<=n.left&&this.left+this.width>=n.left+n.width&&this.top<=n.top&&this.top+this.height>=n.top+n.height}; g.d.getSize=function(){return new g.QB(this.width,this.height)}; g.d.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.d.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.d.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.d.scale=function(n,q){q=typeof q==="number"?q:n;this.left*=n;this.width*=n;this.top*=q;this.height*=q;return this};var KDm={};var Jws=xm(function(){var n=!1;try{var q=Object.defineProperty({},"passive",{get:function(){n=!0}}); g.W0.addEventListener("test",null,q)}catch(w){}return n});zG0.prototype.isVisible=function(){return RJ(SQ)===1};var un3=ch(function(n){return typeof n==="number"}),Slh=ch(function(n){return typeof n==="string"}),BRs=ch(function(n){return typeof n==="boolean"}),mI=ch(function(n){return n!=null&&typeof n==="object"&&typeof n.then==="function"}),yvz=ch(function(n){return typeof n==="function"}),fLG=ch(function(n){return!!n&&(typeof n==="object"||typeof n==="function")});var N0z={WLl:"allow-forms",wd0:"allow-modals",cM0:"allow-orientation-lock",JMh:"allow-pointer-lock",trH:"allow-popups",nwl:"allow-popups-to-escape-sandbox",lLf:"allow-presentation",kTp:"allow-same-origin",hO5:"allow-scripts",Tml:"allow-top-navigation",zOq:"allow-top-navigation-by-user-activation"},XJO=xm(function(){return ny6()});var IcO=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");e_.prototype.kH=function(n,q,w){n=n+"//"+q+w;var X=sFh(this)-w.length;if(X<0)return"";this.N.sort(function(e,f){return e-f}); w=null;q="";for(var P=0;P=r.length){X-=r.length;n+=r;q=this.C;break}w=w==null?R:w}}X="";w!=null&&(X=""+q+"trn="+w);return n+X};gb.prototype.setInterval=function(n,q){return vO.setInterval(n,q)}; gb.prototype.clearInterval=function(n){vO.clearInterval(n)}; gb.prototype.setTimeout=function(n,q){return vO.setTimeout(n,q)}; gb.prototype.clearTimeout=function(n){vO.clearTimeout(n)};var eA=void 0,sR,u93=typeof TextDecoder!=="undefined",yXh,mos=typeof String.prototype.isWellFormed==="function",gym=typeof TextEncoder!=="undefined";var FXu={},$O=null,$oO=S4||g.j4||typeof g.W0.btoa=="function";var Eyu=typeof Uint8Array!=="undefined",Dou=!g.IU&&typeof btoa==="function",hOO=/[-_.]/g,MnY={"-":"+",_:"/",".":"="},L1={};vh.prototype.isEmpty=function(){return this.N==null}; vh.prototype.sizeBytes=function(){var n=xO(this);return n?n.length:0}; var CQs;var oyY=void 0;var C1=typeof Symbol==="function"&&typeof Symbol()==="symbol",Ojw=Ge("jas",void 0,!0),OS=Ge(void 0,"1oa"),v1=Ge(void 0,Symbol()),ij5=Ge(void 0,"0ub"),ioh=Ge(void 0,"0ubs"),H$Y=Ge(void 0,"0ubsb"),V9O=Ge(void 0,"0actk"),Ts=Ge("m_m","BHf",!0),t9Y=Ge(void 0,"vps"),Hjw=Ge();Math.max.apply(Math,g.D(Object.values({z5h:1,TwP:2,h5T:4,tTq:8,CBi:16,vLi:32,rSf:64,gJ0:128,k1g:256,YgT:512,Tep:1024,Yuf:2048,CXf:4096})));var AXs={LB:{value:0,configurable:!0,writable:!0,enumerable:!1}},bVs=Object.defineProperties,EF=C1?Ojw:"LB",nG,Ul5=[];bJ(Ul5,7);nG=Object.freeze(Ul5);var FX={},YO={},xE6=Object.freeze({}),uJ={};var Qk=typeof g.W0.BigInt==="function"&&typeof g.W0.BigInt(0)==="bigint";var CB=ch(function(n){return Qk?n>=tB0&&n<=dlG:n[0]==="-"?QF6(n,gij):QF6(n,mll)}),gij=Number.MIN_SAFE_INTEGER.toString(),tB0=Qk?BigInt(Number.MIN_SAFE_INTEGER):void 0,mll=Number.MAX_SAFE_INTEGER.toString(),dlG=Qk?BigInt(Number.MAX_SAFE_INTEGER):void 0;var boY=typeof Uint8Array.prototype.slice==="function",Nf=0,nB=0,UYY;var UP=typeof BigInt==="function"?BigInt.asIntN:void 0,r_y=typeof BigInt==="function"?BigInt.asUintN:void 0,m8=Number.isSafeInteger,jT=Number.isFinite,yo=Math.trunc,NRm=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var dEu={};var ywD={Mvi:!0};var D7;var g1m,mE6;var lYY=Wh(0),LG={};bq.prototype.init=function(n,q,w,X){var P=X===void 0?{}:X;X=P.GA===void 0?!1:P.GA;P=P.zs===void 0?!1:P.zs;this.GA=X;this.zs=P;n&&(n=oe(n,this.zs),this.X=n.buffer,this.K=n.N,this.W=q||0,this.C=w!==void 0?this.W+w:this.X.length,this.N=this.W)}; bq.prototype.free=function(){this.clear();ZX.length<100&&ZX.push(this)}; bq.prototype.clear=function(){this.X=null;this.K=!1;this.N=this.C=this.W=0;this.GA=!1}; bq.prototype.reset=function(){this.N=this.W}; var ZX=[];Jb.prototype.free=function(){this.N.clear();this.X=this.W=-1;z1.length<100&&z1.push(this)}; Jb.prototype.reset=function(){this.N.reset();this.C=this.N.N;this.X=this.W=-1}; var z1=[];var QPz,J_u;H8.prototype.length=function(){return this.N.length}; H8.prototype.end=function(){var n=this.N;this.N=[];return n};var pA=aL(),aLD=aL(),VBv=aL(),pGL=aL(),T0B=aL(),FDf=aL(),$lv=aL(),vi0=aL(),LDG=aL(),MBt=aL(),xlG=aL();VL.prototype.toJSON=function(){return oE(this)}; VL.prototype.IY=function(n){return JSON.stringify(oE(this,n))}; VL.prototype.clone=function(){var n=this.PQ,q=n[EF]|0;return KB(this,n,q)?ST(this,n,!0):new this.constructor(Yk(n,q,!1))}; VL.prototype[Ts]=FX;VL.prototype.toString=function(){return this.PQ.toString()};var cUT=FJ(function(n,q,w,X,P){if(n.X!==2)return!1;NJ(n,iq(q,X,w),P);return!0},RWx),IoT=FJ(function(n,q,w,X,P){if(n.X!==2)return!1; NJ(n,iq(q,X,w),P);return!0},RWx),oL=Symbol(),xq=Symbol(),lS=Symbol(),foO=Symbol(),jxz=Symbol(),$q,v8;var DlB=Yq(function(n,q,w){if(n.X!==1)return!1;uS(q,w,BE(n.N));return!0},B8,LDG),hGt=Yq(function(n,q,w){if(n.X!==1)return!1; n=BE(n.N);uS(q,w,n===0?void 0:n);return!0},B8,LDG),lLh=Yq(function(n,q,w,X){if(n.X!==1)return!1; ec(q,w,X,BE(n.N));return!0},B8,LDG),GfB=Yq(function(n,q,w){if(n.X!==0)return!1; uS(q,w,YV(n.N));return!0},QL,$lv),CzG=Yq(function(n,q,w){if(n.X!==0)return!1; n=YV(n.N);uS(q,w,n===0?void 0:n);return!0},QL,$lv),EiG=Yq(function(n,q,w,X){if(n.X!==0)return!1; ec(q,w,X,YV(n.N));return!0},QL,$lv),oiz=Yq(function(n,q,w){if(n.X!==0)return!1; uS(q,w,KG(n.N));return!0},Zz,pGL),bj0=Yq(function(n,q,w){if(n.X!==0)return!1; n=KG(n.N);uS(q,w,n===0?void 0:n);return!0},Zz,pGL),AwB=Yq(function(n,q,w,X){if(n.X!==0)return!1; ec(q,w,X,KG(n.N));return!0},Zz,pGL),Yt0=Yq(function(n,q,w){if(n.X!==1)return!1; uS(q,w,uq(n.N));return!0},function(n,q,w){wO0(n,w,jPs(q))},vi0),KDL=SA(function(n,q,w){if(n.X!==1&&n.X!==2)return!1; q=Ie(q,q[EF]|0,w);if(n.X==2)for(w=KG(n.N)>>>0,w=n.N.N+w;n.N.N>>0);return!0},function(n,q,w){q=OP(q); q!=null&&q!=null&&(me(n,w,0),tx(n.N,q))},T0B),sK=Yq(function(n,q,w){if(n.X!==0)return!1; uS(q,w,KG(n.N));return!0},function(n,q,w){q=fB(q); q!=null&&(q=parseInt(q,10),me(n,w,0),WrY(n.N,q))},xlG);yUT.prototype.register=function(){bV(this)};g.m(W8,VL);W8.prototype.C=V4s([0,hGt,CzG,-2,bj0]);var M4z={j6o:1,X_:2,qmT:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};DYx.prototype.jD=function(n){if(typeof n==="string"&&n.length!=0){var q=this.fG;if(q.X){n=n.split("&");for(var w=n.length-1;w>=0;w--){var X=n[w].split("="),P=decodeURIComponent(X[0]);X.length>1?(X=decodeURIComponent(X[1]),X=/^[0-9]+$/g.exec(X)?parseInt(X,10):X):X=1;(P=q.N[P])&&P.C(X)}}}};var eo=null;var Pg=g.W0.performance,WD5=!!(Pg&&Pg.mark&&Pg.measure&&Pg.clearMarks),wG=xm(function(){var n;if(n=WD5){var q=q===void 0?window:q;if(eo===null){eo="";try{n="";try{n=q.top.location.hash}catch(X){n=q.location.hash}if(n){var w=n.match(/\bdeid=([\d,]+)/);eo=w?w[1]:""}}catch(X){}}q=eo;n=!!q.indexOf&&q.indexOf("1337")>=0}return n}); Xf.prototype.disable=function(){this.N=!1;this.events!==this.X.google_js_reporting_queue&&(wG()&&g.Jw(this.events,omh),this.events.length=0)}; Xf.prototype.start=function(n,q){if(!this.N)return null;var w=CXY()||GNY();n=new Ems(n,q,w);q="goog_"+n.label+"_"+n.uniqueId+"_start";Pg&&wG()&&Pg.mark(q);return n}; Xf.prototype.end=function(n){if(this.N&&typeof n.value==="number"){var q=CXY()||GNY();n.duration=q-n.value;q="goog_"+n.label+"_"+n.uniqueId+"_end";Pg&&wG()&&Pg.mark(q);!this.N||this.events.length>2048||this.events.push(n)}};var b$s=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),UV=/#|$/,BrY=/[?&]($|#)/;Z$O.prototype.fE=function(n,q,w,X,P){P=P||this.kq;try{var R=new e_;R.N.push(1);R.X[1]=f1("context",n);q.error&&q.meta&&q.id||(q=new Ff($o(q)));if(q.msg){var c=q.msg.substring(0,512);R.N.push(2);R.X[2]=f1("msg",c)}var k=q.meta||{};if(this.Rh)try{this.Rh(k)}catch(U){}if(X)try{X(k)}catch(U){}X=[k];R.N.push(3);R.X[3]=X;var r=rXs();if(r.X){var e=r.X.url||"";R.N.push(4);R.X[4]=f1("top",e)}var f={url:r.N.url||""};if(r.N.url){var O=g.cg(r.N.url);var H=RB(O[1],null,O[3],O[4])}else H="";e=[f,{url:H}];R.N.push(5); R.X[5]=e;hWT(this.N,P,R,w)}catch(U){try{hWT(this.N,P,{context:"ecmserr",rctx:n,msg:$o(U),url:r&&r.N.url},w)}catch(t){}}return this.I$}; g.m(Ff,loy);var pF,Ty,VN=new Xf;pF=new function(){var n="https:";vO&&vO.location&&vO.location.protocol==="http:"&&(n="http:");this.X=n;this.N=.01}; Ty=new Z$O;vO&&vO.document&&(vO.document.readyState=="complete"?zWm():VN.N&&Ph(vO,"load",function(){zWm()}));var nOh=Date.now(),lC=-1,Dg=-1,rbs,Gy=-1,hn=!1;CF.prototype.equals=function(n,q){return!!n&&(!(q===void 0?0:q)||this.volume==n.volume)&&this.C==n.C&&E_(this.N,n.N)&&!0};EV.prototype.WQ=function(){return this.G}; EV.prototype.equals=function(n,q){return this.W.equals(n.W,q===void 0?!1:q)&&this.G==n.G&&E_(this.C,n.C)&&E_(this.D,n.D)&&this.N==n.N&&this.K==n.K&&this.X==n.X&&this.V==n.V};var N0D={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Yh={N_:"start",MI:"firstquartile",Yk:"midpoint",ES:"thirdquartile",COMPLETE:"complete",ERROR:"error",g1:"metric",PAUSE:"pause",SX:"resume",b5:"skip",Ac:"viewable_impression",i5:"mute",Pv:"unmute",va:"fullscreen",Xc:"exitfullscreen",NI:"bufferstart",LU:"bufferfinish",Cj:"fully_viewable_audible_half_duration_impression",Qw:"measurable_impression",IZ:"abandon",Ae:"engagedview",aA:"impression",Pa:"creativeview",ZP:"loaded", Ikh:"progress",CLOSE:"close",DrW:"collapse",zCq:"overlay_resize",DgH:"overlay_unmeasurable_impression",uIf:"overlay_unviewable_impression",FdW:"overlay_viewable_immediate_impression",rhn:"overlay_viewable_end_of_session_impression",xC:"custom_metric_viewable",RZ:"audio_audible",b_:"audio_measurable",Sz:"audio_impression"},gq0="start firstquartile midpoint thirdquartile resume loaded".split(" "),mwx=["start","firstquartile","midpoint","thirdquartile"],sem=["abandon"],rK={UNKNOWN:-1,N_:0,MI:1,Yk:2, ES:3,COMPLETE:4,g1:5,PAUSE:6,SX:7,b5:8,Ac:9,i5:10,Pv:11,va:12,Xc:13,Cj:14,Qw:15,IZ:16,Ae:17,aA:18,Pa:19,ZP:20,xC:21,NI:22,LU:23,Sz:27,b_:28,RZ:29};var wh3={pdq:"addEventListener",uQf:"getMaxSize",rxh:"getScreenSize",Fsf:"getState",Od0:"getVersion",Ldo:"removeEventListener",Dle:"isViewable"};r0u.prototype.update=function(n){n&&n.document&&(this.G=oB(!1,n,this.isMobileDevice),this.N=oB(!0,n,this.isMobileDevice),sJY(this,n),jJ0(this,n))};Bg.prototype.cancel=function(){md().clearTimeout(this.N);this.N=null}; Bg.prototype.schedule=function(){var n=this,q=md(),w=nF().N.N;this.N=q.setTimeout(Nw(w,LF(143,function(){n.X++;n.C.sample()})),qFs())};g.d=QN.prototype;g.d.ZE=function(){return!1}; g.d.initialize=function(){return this.isInitialized=!0}; g.d.Z7=function(){return this.N.HW}; g.d.GQ=function(){return this.N.qP}; g.d.fail=function(n,q){if(!this.qP||(q===void 0?0:q))this.qP=!0,this.HW=n,this.V=0,this.N!=this||Jn(this)}; g.d.getName=function(){return this.N.D0}; g.d.zL=function(){return this.N.VP()}; g.d.VP=function(){return{}}; g.d.G7=function(){return this.N.V}; g.d.im=function(){var n=KF();n.N=oB(!0,this.C,n.isMobileDevice)}; g.d.Vm=function(){jJ0(KF(),this.C)}; g.d.pZ=function(){return this.W.N}; g.d.sample=function(){}; g.d.isActive=function(){return this.N.D}; g.d.UP=function(n){var q=this.N;this.N=n.G7()>=this.V?n:this;q!==this.N?(this.D=this.N.D,Jn(this)):this.D!==this.N.D&&(this.D=this.N.D,Jn(this))}; g.d.GL=function(n){if(n.X===this.N){var q=!this.W.equals(n,this.L);this.W=n;q&&eR0(this)}}; g.d.G8=function(){return this.L}; g.d.dispose=function(){this.WW=!0}; g.d.zp=function(){return this.WW};g.d=zy.prototype;g.d.observe=function(){return!0}; g.d.unobserve=function(){}; g.d.NR=function(n){this.K=n}; g.d.dispose=function(){if(!this.zp()){var n=this.X;g.Vv(n.K,this);n.L&&this.G8()&&sE0(n);this.unobserve();this.vW=!0}}; g.d.zp=function(){return this.vW}; g.d.zL=function(){return this.X.zL()}; g.d.G7=function(){return this.X.G7()}; g.d.Z7=function(){return this.X.Z7()}; g.d.GQ=function(){return this.X.GQ()}; g.d.UP=function(){}; g.d.GL=function(){this.PF()}; g.d.G8=function(){return this.WW};g.d=Wg.prototype;g.d.G7=function(){return this.N.G7()}; g.d.Z7=function(){return this.N.Z7()}; g.d.GQ=function(){return this.N.GQ()}; g.d.create=function(n,q,w){var X=null;this.N&&(X=this.Nw(n,q,w),Zg(this.N,X));return X}; g.d.Iy=function(){return this.Gd()}; g.d.Gd=function(){return!1}; g.d.init=function(n){return this.N.initialize()?(Zg(this.N,this),this.W=n,!0):!1}; g.d.UP=function(n){n.G7()==0&&this.W(n.Z7(),this)}; g.d.GL=function(){}; g.d.G8=function(){return!1}; g.d.dispose=function(){this.K=!0}; g.d.zp=function(){return this.K}; g.d.zL=function(){return{}};NZ.prototype.add=function(n,q,w){++this.C;n=new OBh(n,q,w);this.N.push(new OBh(n.X,n.N,n.C+this.C/4096));this.X=!0;return this};dqO.prototype.toString=function(){var n="//pagead2.googlesyndication.com//pagead/gen_204",q=q2(this.N);q.length>0&&(n+="?"+q);return n};g.A.prototype.Ij=!1;g.A.prototype.zp=function(){return this.Ij}; g.A.prototype.dispose=function(){this.Ij||(this.Ij=!0,this.Xf())}; g.A.prototype[Symbol.dispose]=function(){this.dispose()}; g.A.prototype.addOnDisposeCallback=function(n,q){this.Ij?q!==void 0?n.call(q):n():(this.e6||(this.e6=[]),q&&(n=n.bind(q)),this.e6.push(n))}; g.A.prototype.Xf=function(){if(this.e6)for(;this.e6.length;)this.e6.shift()()};var nyt=[0,GfB,StG,-1];P5.prototype.update=function(n,q,w){n&&(this.N+=q,this.X+=q,this.W+=q,this.C=Math.max(this.C,this.W));if(w===void 0?!n:w)this.W=0};var VTs=[1,.75,.5,.3,0];Rt.prototype.update=function(n,q,w,X,P,R){R=R===void 0?!0:R;q=P?Math.min(n,q):q;for(P=0;P0&&q>=c;c=!(n>0&&n>=c)||w;this.N[P].update(R&&k,X,!R||c)}};sL.prototype.update=function(n,q,w,X){this.G=this.G!=-1?Math.min(this.G,q.Df):q.Df;this.PW=Math.max(this.PW,q.Df);this.vW=this.vW!=-1?Math.min(this.vW,q.U2):q.U2;this.HW=Math.max(this.HW,q.U2);this.Ne.update(q.U2,w.U2,q.N,n,X);this.n5+=n;q.Df===0&&(this.D0+=n);this.X.update(q.Df,w.Df,q.N,n,X);w=X||w.Im!=q.Im?w.isVisible()&&q.isVisible():w.isVisible();q=!q.isVisible()||q.N;this.IH.update(w,n,q)}; sL.prototype.bz=function(){return this.IH.C>=this.RH};if(SQ&&SQ.URL){var qlh=SQ.URL,wJz;if(wJz=!!qlh){var XJw;a:{if(qlh){var PQ0=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var fa=PQ0.exec(decodeURIComponent(qlh));if(fa){XJw=fa[1]&&fa[1].length>1?fa[1].substring(1):"true";break a}}catch(n){}}XJw=""}wJz=XJw.length>0}Ty.I$=!wJz};var ROL=new GN(0,0,0,0);var xqO=new GN(0,0,0,0);g.m(UL,g.A);g.d=UL.prototype; g.d.Xf=function(){if(this.aW.N){if(this.Am.TX){var n=this.aW.N;typeof n.removeEventListener==="function"&&n.removeEventListener("mouseover",this.Am.TX,Xk());this.Am.TX=null}this.Am.hp&&(n=this.aW.N,typeof n.removeEventListener==="function"&&n.removeEventListener("mouseout",this.Am.hp,Xk()),this.Am.hp=null)}this.qs&&this.qs.dispose();this.Fn&&this.Fn.dispose();delete this.pS;delete this.H4;delete this.H6;delete this.aW.El;delete this.aW.N;delete this.Am;delete this.qs;delete this.Fn;delete this.fG; g.A.prototype.Xf.call(this)}; g.d.DT=function(){return this.Fn?this.Fn.N:this.position}; g.d.jD=function(n){nF().jD(n)}; g.d.G8=function(){return!1}; g.d.Nf=function(){return new sL}; g.d.hx=function(){return this.pS}; g.d.BS=function(n){return Gs3(this,n,1E4)}; g.d.dl=function(n,q,w,X,P,R,c){this.VY||(this.by&&(n=this.pk(n,w,P,c),X=X&&this.Mr.Df>=(this.Im()?.3:.5),this.hI(R,n,X),this.HN=q,n.Df>0&&-1===this.j1&&(this.j1=q),this.B5==-1&&this.bz()&&(this.B5=q),this.My==-2&&(this.My=iu(this.DT())?n.Df:-1),this.Mr=n),this.H4(this))}; g.d.hI=function(n,q,w){this.hx().update(n,q,this.Mr,w)}; g.d.YU=function(){return new Nl}; g.d.pk=function(n,q,w,X){w=this.YU();w.N=q;q=md().X;q=RJ(SQ)===0?-1:q.isVisible()?0:1;w.X=q;w.Df=this.r8(n);w.Im=this.Im();w.U2=X;return w}; g.d.r8=function(n){return this.opacity===0&&TF(this.fG,"opac")===1?0:n}; g.d.Im=function(){return!1}; g.d.MG=function(){return this.AV||this.Cu}; g.d.kY=function(){xo()}; g.d.Yn=function(){xo()}; g.d.yC=function(){return 0}; g.d.bz=function(){return this.pS.bz()}; g.d.MK=function(){var n=this.by;n=(this.hasCompleted||this.zp())&&!n;var q=nF().X!==2||this.tVn;return this.VY||q&&n?2:this.bz()?4:3}; g.d.gI=function(){return 0};g.dM.prototype.next=function(){return g.OK}; g.OK={done:!0,value:void 0};g.dM.prototype.Ch=function(){return this};g.m(YPh,Nl);var ix=SPh([void 0,1,2,3,4,8,16]),HZ=SPh([void 0,4,8,16]),cX5={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:at("p0",HZ),p1:at("p1",HZ),p2:at("p2",HZ),p3:at("p3",HZ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:yr("mtos1",[0,2,4],!1,HZ),mtos2:yr("mtos2",[0,2,4],!1,HZ),mtos3:yr("mtos3",[0,2,4],!1,HZ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:at("a0",HZ),a1:at("a1",HZ),a2:at("a2",HZ),a3:at("a3",HZ),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:at("c0",HZ),c1:at("c1",HZ),c2:at("c2",HZ),c3:at("c3",HZ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:at("qmtos",ix),qnc:at("qnc",ix),qmv:at("qmv",ix),qnv:at("qnv",ix), 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:at("ss0",HZ),ss1:at("ss1",HZ),ss2:at("ss2",HZ),ss3:at("ss3",HZ),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"},Icw=Object.assign({},cX5,{avid:L$("audio"),avas:"avas",vs:"vs"}),kFt={atos:"atos",avt:yr("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(n,q){return function(w){return w[n]===void 0&&q!==void 0?q:w[n]}}("ss",0), t:"t"};FP.prototype.getValue=function(){return this.X}; FP.prototype.update=function(n,q){n>=32||(this.N&1<=.5;An(q.volume)&&(this.W=this.W!=-1?Math.min(this.W,q.volume):q.volume,this.D=Math.max(this.D,q.volume));R&&(this.WW+=n,this.L+=P?n:0);this.N.update(q.Df,w.Df,q.N,n,X,P);this.C.update(!0,n);this.K.update(P,n);this.qP.update(w.fullscreen,n);this.qe.update(P&&!R,n);n=Math.floor(q.mediaTime/1E3);this.Tp.update(n,q.isVisible());this.je.update(n,q.Df>=1);this.oH.update(n, mt(q))}};zRu.prototype.X=function(n){this.C||(this.N(n)?(n=k26(this.L,this.W,n),this.K|=n,n=n==0):n=!1,this.C=n)};g.m(M2,zRu);M2.prototype.N=function(){return!0}; M2.prototype.D=function(){return!1}; M2.prototype.getId=function(){var n=this,q=en(Yh,function(w){return w==n.W}); return rK[q].toString()}; M2.prototype.toString=function(){var n="";this.D()&&(n+="c");this.C&&(n+="s");this.K>0&&(n+=":"+this.K);return this.getId()+n};g.m(xh,M2);xh.prototype.X=function(n,q){q=q===void 0?null:q;q!=null&&this.G.push(q);M2.prototype.X.call(this,n)};g.m(Dr,W8x);Dr.prototype.X=function(){return null}; Dr.prototype.C=function(){return[]};g.m(hR,zy);g.d=hR.prototype;g.d.Mb=function(){if(this.element){var n=this.element,q=this.X.N.C;try{try{var w=c0T(n.getBoundingClientRect())}catch(e){w=new GN(0,0,0,0)}var X=w.right-w.left,P=w.bottom-w.top,R=B0y(n,q),c=R.x,k=R.y;var r=new GN(Math.round(k),Math.round(c+X),Math.round(k+P),Math.round(c))}catch(e){r=ROL.clone()}this.C=r;this.N=f7s(this,this.C)}}; g.d.FL=function(){this.D=this.X.W.N}; g.d.mD=function(n){var q=TF(this.fG,"od")==1;return MTs(n,this.D,this.element,q)}; g.d.OL=function(){this.timestamp=xo()}; g.d.PF=function(){this.OL();this.Mb();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var n=this.element;var q=new g.QB(n.videoWidth,n.videoHeight);n=this.N;var w=C$(n),X=n.getHeight(),P=q.width;q=q.height;P<=0||q<=0||w<=0||X<=0||(P/=q,q=w/X,n=n.clone(),P>q?(w/=P,X=(X-w)/2,X>0&&(X=n.top+X,n.top=Math.round(X),n.bottom=Math.round(X+w))):(X*=P,w=Math.round((w-X)/2),w>0&&(w=n.left+w,n.left=Math.round(w),n.right=Math.round(w+X))));this.N=n}this.FL(); n=this.N;w=this.D;n=n.left<=w.right&&w.left<=n.right&&n.top<=w.bottom&&w.top<=n.bottom?new GN(Math.max(n.top,w.top),Math.min(n.right,w.right),Math.min(n.bottom,w.bottom),Math.max(n.left,w.left)):new GN(0,0,0,0);w=n.top>=n.bottom||n.left>=n.right?new GN(0,0,0,0):n;n=this.X.W;q=P=X=0;if((this.N.bottom-this.N.top)*(this.N.right-this.N.left)>0)if(this.mD(w))w=new GN(0,0,0,0);else{X=KF().W;q=new GN(0,X.height,X.width,0);var R;X=H5(w,(R=this.K)!=null?R:this.N);P=H5(w,KF().N);q=H5(w,q)}R=w.top>=w.bottom|| w.left>=w.right?new GN(0,0,0,0):ox(w,-this.N.left,-this.N.top);uC()||(P=X=0);this.L=new EV(n,this.element,this.N,R,X,P,this.timestamp,q)}; g.d.getName=function(){return this.X.getName()};var rX5=new GN(0,0,0,0);g.m(lu,hR);g.d=lu.prototype;g.d.observe=function(){this.W();return!0}; g.d.GL=function(){hR.prototype.PF.call(this)}; g.d.OL=function(){}; g.d.Mb=function(){}; g.d.PF=function(){this.W();hR.prototype.PF.call(this)}; g.d.UP=function(n){n=n.isActive();n!==this.V&&(n?this.W():(KF().N=new GN(0,0,0,0),this.N=new GN(0,0,0,0),this.D=new GN(0,0,0,0),this.timestamp=-1));this.V=n};var UK={},k1O=(UK.firstquartile=0,UK.midpoint=1,UK.thirdquartile=2,UK.complete=3,UK);g.m(C_,UL);g.d=C_.prototype;g.d.G8=function(){return!0}; g.d.Rn=function(){return this.e$==2}; g.d.BS=function(n){return Gs3(this,n,Math.max(1E4,this.C/3))}; g.d.dl=function(n,q,w,X,P,R,c){var k=this,r=this.G(this)||{};g.tX(r,P);this.C=r.duration||this.C;this.L=r.isVpaid||this.L;this.D0=r.isYouTube||this.D0;md();this.Ne=!1;P=nVx(this,q);NU3(this)===1&&(R=P);UL.prototype.dl.call(this,n,q,w,X,r,R,c);this.Lz&&this.Lz.C&&g.Jw(this.D,function(e){e.X(k)})}; g.d.hI=function(n,q,w){UL.prototype.hI.call(this,n,q,w);bu(this).update(n,q,this.Mr,w);this.RH=mt(this.Mr)&&mt(q);this.HW==-1&&this.je&&(this.HW=this.hx().C.N);this.Zm.C=0;n=this.bz();q.isVisible()&&Tb(this.Zm,"vs");n&&Tb(this.Zm,"vw");An(q.volume)&&Tb(this.Zm,"am");mt(q)?Tb(this.Zm,"a"):Tb(this.Zm,"mut");this.PV&&Tb(this.Zm,"f");q.X!=-1&&(Tb(this.Zm,"bm"),q.X==1&&(Tb(this.Zm,"b"),mt(q)&&Tb(this.Zm,"umutb")));mt(q)&&q.isVisible()&&Tb(this.Zm,"avs");this.RH&&n&&Tb(this.Zm,"avw");q.Df>0&&Tb(this.Zm, "pv");AR(this,this.hx().C.N,!0)&&Tb(this.Zm,"gdr");rM(this.hx().X,1)>=2E3&&Tb(this.Zm,"pmx");this.Ne&&Tb(this.Zm,"tvoff")}; g.d.Nf=function(){return new v5}; g.d.hx=function(){return this.pS}; g.d.YU=function(){return new YPh}; g.d.pk=function(n,q,w,X){n=UL.prototype.pk.call(this,n,q,w,X===void 0?-1:X);n.fullscreen=this.PV;n.paused=this.Rn();n.volume=w.volume;An(n.volume)||(this.AK++,q=this.Mr,An(q.volume)&&(n.volume=q.volume));w=w.currentTime;n.mediaTime=w!==void 0&&w>=0?w:-1;return n}; g.d.r8=function(n){return KF(),this.PV?1:UL.prototype.r8.call(this,n)}; g.d.yC=function(){return 1}; g.d.getDuration=function(){return this.C}; g.d.MK=function(){return this.VY?2:wEh(this)?5:this.bz()?4:3}; g.d.gI=function(){return this.qe?this.hx().K.C>=2E3?4:3:2}; g.d.NR=function(n){this.Fn&&this.Fn.NR(n)};var jFG=g.eB();dJ3.prototype.reset=function(){this.N=[];this.X=[]}; var Qr=db(dJ3);g.m(zb,Wg);g.d=zb.prototype;g.d.getName=function(){return(this.X?this.X:this.N).getName()}; g.d.zL=function(){return(this.X?this.X:this.N).zL()}; g.d.G7=function(){return(this.X?this.X:this.N).G7()}; g.d.init=function(n){var q=!1;(0,g.Jw)(this.C,function(w){w.initialize()&&(q=!0)}); q&&(this.W=n,Zg(this.N,this));return q}; g.d.dispose=function(){(0,g.Jw)(this.C,function(n){n.dispose()}); Wg.prototype.dispose.call(this)}; g.d.Iy=function(){return Yo(this.C,function(n){return n.ZE()})}; g.d.Gd=function(){return Yo(this.C,function(n){return n.ZE()})}; g.d.Nw=function(n,q,w){return new hR(n,this.N,q,w)}; g.d.GL=function(n){this.X=n.X};var $JO={threshold:[0,.3,.5,.75,1]};g.m(W5,hR);g.d=W5.prototype;g.d.observe=function(){var n=this;this.PW||(this.PW=xo());if(NrY(298,function(){return vVu(n)}))return!0; this.X.fail("msf");return!1}; g.d.unobserve=function(){if(this.W&&this.element)try{this.W.unobserve(this.element),this.V?(this.V.unobserve(this.element),this.V=null):this.G&&(this.G.disconnect(),this.G=null)}catch(n){}}; g.d.PF=function(){var n=N2(this);n.length>0&&n8(this,n);hR.prototype.PF.call(this)}; g.d.Mb=function(){}; g.d.mD=function(){return!1}; g.d.FL=function(){}; g.d.zL=function(){var n={};return Object.assign(this.X.zL(),(n.niot_obs=this.PW,n.niot_cbk=this.qP,n))}; g.d.getName=function(){return"nio"};g.m(qQ,Wg);qQ.prototype.getName=function(){return"nio"}; qQ.prototype.Gd=function(){return!KF().X&&this.N.N.C.IntersectionObserver!=null}; qQ.prototype.Nw=function(n,q,w){return new W5(n,this.N,q,w)};g.m(wK,QN);wK.prototype.pZ=function(){return KF().N}; wK.prototype.ZE=function(){var n=Mcs();this.V!==n&&(this.N!=this&&n>this.N.V&&(this.N=this,Jn(this)),this.V=n);return n==2};Xx.prototype.sample=function(){cr(this,Zr(),!1)}; Xx.prototype.W=function(){var n=uC(),q=xo();n?(hn||(lC=q,g.Jw(Qr.N,function(w){var X=w.hx();X.Ff=L_(X,q,w.e$!=1)})),hn=!0):(this.G=G1z(this,q),hn=!1,rbs=q,g.Jw(Qr.N,function(w){w.by&&(w.hx().V=q)})); cr(this,Zr(),!n)}; var Pr=db(Xx);var EVT=null,G9="",$6=!1;var Abz=bGs().Zy,k6=bGs().QC;var SSY={tJi:"visible",RO0:"audible",ihH:"time",Vqn:"timetype"},uLu={visible:function(n){return/^(100|[0-9]{1,2})$/.test(n)}, audible:function(n){return n=="0"||n=="1"}, timetype:function(n){return n=="mtos"||n=="tos"}, time:function(n){return/^(100|[0-9]{1,2})%$/.test(n)||/^([0-9])+ms$/.test(n)}}; K9x.prototype.setTime=function(n,q,w){q=="ms"?(this.C=n,this.W=-1):(this.C=-1,this.W=n);this.K=w===void 0?"tos":w;return this};g.m(e5,M2);e5.prototype.getId=function(){return this.G}; e5.prototype.D=function(){return!0}; e5.prototype.N=function(n){var q=n.hx(),w=n.getDuration();return Yo(this.V,function(X){if(X.N!=void 0)var P=Qes(X,q);else b:{switch(X.K){case "mtos":P=X.X?q.K.C:q.C.N;break b;case "tos":P=X.X?q.K.N:q.C.N;break b}P=0}P==0?X=!1:(X=X.C!=-1?X.C:w!==void 0&&w>0?X.W*w:-1,X=X!=-1&&P>=X);return X})};g.m(f8,BUx);f8.prototype.N=function(n){var q=new uXT;q.N=p_(n,cX5);q.X=p_(n,kFt);return q};g.m(On,M2);On.prototype.N=function(n){return wEh(n)};g.m(iA,W8x);g.m(Hr,M2);Hr.prototype.N=function(n){return n.hx().bz()};g.m(Un,xh);Un.prototype.N=function(n){var q=g.yv(this.G,TF(nF().fG,"ovms"));return!n.VY&&(n.e$!=0||q)};g.m(tz,iA);tz.prototype.X=function(){return new Un(this.N)}; tz.prototype.C=function(){return[new Hr("viewable_impression",this.N),new On(this.N)]};g.m(dK,lu);dK.prototype.W=function(){var n=g.w0("ima.admob.getViewability"),q=TF(this.fG,"queryid");typeof n==="function"&&q&&n(q)}; dK.prototype.getName=function(){return"gsv"};g.m(gK,Wg);gK.prototype.getName=function(){return"gsv"}; gK.prototype.Gd=function(){var n=KF();nF();return n.X&&!1}; gK.prototype.Nw=function(n,q,w){return new dK(this.N,q,w)};g.m(mo,lu);mo.prototype.W=function(){var n=this,q=g.w0("ima.bridge.getNativeViewability"),w=TF(this.fG,"queryid");typeof q==="function"&&w&&q(w,function(X){g.fV(X)&&n.G++;var P=X.opt_nativeViewVisibleBounds||{},R=X.opt_nativeViewHidden;n.N=IQm(X.opt_nativeViewBounds||{});var c=n.X.W;c.N=R?rX5.clone():IQm(P);n.timestamp=X.opt_nativeTime||-1;KF().N=c.N;X=X.opt_nativeVolume;X!==void 0&&(c.volume=X)})}; mo.prototype.getName=function(){return"nis"};g.m(yz,Wg);yz.prototype.getName=function(){return"nis"}; yz.prototype.Gd=function(){var n=KF();nF();return n.X&&!1}; yz.prototype.Nw=function(n,q,w){return new mo(this.N,q,w)};g.m(aM,QN);g.d=aM.prototype;g.d.ZE=function(){return this.X.NQ!=null}; g.d.VP=function(){var n={};this.Tp&&(n.mraid=this.Tp);this.vW&&(n.mlc=1);n.mtop=this.X.Vv5;this.G&&(n.mse=this.G);this.n5&&(n.msc=1);n.mcp=this.X.compatibility;return n}; g.d.dW=function(n){var q=g.bs.apply(1,arguments);try{return this.X.NQ[n].apply(this.X.NQ,q)}catch(w){MZ(538,w,.01,function(X){X.method=n})}}; g.d.initialize=function(){var n=this;if(this.isInitialized)return!this.GQ();this.isInitialized=!0;if(this.X.compatibility===2)return this.G="ng",this.fail("w"),!1;if(this.X.compatibility===1)return this.G="mm",this.fail("w"),!1;KF().V=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?W90(this):f_(this.C,"load",function(){md().setTimeout(LF(292,function(){return W90(n)}),100)},292); return!0}; g.d.im=function(){var n=KF(),q=X8u(this,"getMaxSize");n.N=new GN(0,q.width,q.height,0)}; g.d.Vm=function(){KF().W=X8u(this,"getScreenSize")}; g.d.dispose=function(){nqh(this);QN.prototype.dispose.call(this)};var $Yy=new function(n,q){this.key=n;this.defaultValue=q===void 0?!1:q;this.valueType="boolean"}("45378663");g.d=p8.prototype;g.d.wI=function(n){tR(n,!1);aXs(n)}; g.d.Cn=function(){}; g.d.n9=function(n,q,w,X){var P=this;n=new C_(vO,n,w?q:-1,7,this.g8(),this.Nh());n.bE=X;Css(n.fG);pV(n.fG,"queryid",n.bE);n.jD("");oku(n,function(){return P.Wp.apply(P,g.D(g.bs.apply(0,arguments)))},function(){return P.uw.apply(P,g.D(g.bs.apply(0,arguments)))}); (X=db(JR).N)&&l7x(n,X);this.C&&(n.NR(this.C),this.C=null);n.aW.El&&db(xJT);return n}; g.d.UP=function(n){switch(n.G7()){case 0:if(n=db(JR).N)n=n.N,g.Vv(n.K,this),n.L&&this.G8()&&sE0(n);Fx();break;case 2:RM()}}; g.d.GL=function(){}; g.d.G8=function(){return!1}; g.d.uw=function(n,q){n.VY=!0;switch(n.yC()){case 1:rxu(n,q);break;case 2:this.SD(n)}}; g.d.QG=function(n){var q=n.G(n);q&&(q=q.volume,n.qe=An(q)&&q>0);Ri3(n,0);return K_(n,"start",uC())}; g.d.Us=function(n,q,w){cr(Pr,[n],!uC());return this.L1(n,q,w)}; g.d.L1=function(n,q,w){return K_(n,w,uC())}; g.d.eU=function(n){return bA(n,"firstquartile",1)}; g.d.KB=function(n){n.je=!0;return bA(n,"midpoint",2)}; g.d.gZ=function(n){return bA(n,"thirdquartile",3)}; g.d.rZ=function(n){var q=bA(n,"complete",4);EL(n);return q}; g.d.FY=function(n){n.e$=3;return K_(n,"error",uC())}; g.d.gE=function(n,q,w){q=uC();if(n.Rn()&&!q){var X=n.hx(),P=xo();X.V=P}cr(Pr,[n],!q);n.Rn()&&(n.e$=1);return K_(n,w,q)}; g.d.Ge=function(n,q){q=this.Us(n,q||{},"skip");EL(n);return q}; g.d.dZ=function(n,q){tR(n,!0);return this.Us(n,q||{},"fullscreen")}; g.d.Op=function(n,q){tR(n,!1);return this.Us(n,q||{},"exitfullscreen")}; g.d.Fw=function(n,q,w){q=n.hx();var X=xo();q.Ff=L_(q,X,n.e$!=1);cr(Pr,[n],!uC());n.e$==1&&(n.e$=2);return K_(n,w,uC())}; g.d.Zo=function(n){cr(Pr,[n],!uC());return n.X()}; g.d.v2=function(n){cr(Pr,[n],!uC());this.rE(n);EL(n);return n.X()}; g.d.Wp=function(){}; g.d.SD=function(){}; g.d.rE=function(){}; g.d.oy=function(){}; g.d.YZ=function(){}; g.d.Nh=function(){this.N||(this.N=this.YZ());return this.N==null?new Dr:new tz(this.N)}; g.d.g8=function(){return new f8};g.m(Az,M2);Az.prototype.N=function(n){return n.gI()==4};g.m(Y6,xh);Y6.prototype.N=function(n){n=n.gI();return n==3||n==4};g.m(K8,iA);K8.prototype.X=function(){return new Y6(this.N)}; K8.prototype.C=function(){return[new Az(this.N)]};g.m(S5,BUx);S5.prototype.N=function(n){n&&(n.e===28&&(n=Object.assign({},n,{avas:3})),n.vs===4||n.vs===5)&&(n=Object.assign({},n,{vs:3}));var q=new uXT;q.N=p_(n,Icw);q.X=p_(n,kFt);return q};fzs.prototype.X=function(){return g.w0(this.N)};g.m(uA,p8);g.d=uA.prototype;g.d.Cn=function(n,q){var w=this,X=db(JR);if(X.N!=null)switch(X.N.getName()){case "nis":var P=UwT(this,n,q);break;case "gsv":P=HAO(this,n,q);break;case "exc":P=tAs(this,n)}P||(q.opt_overlayAdElement?P=void 0:q.opt_adElement&&(P=sLT(this,n,q.opt_adElement,q.opt_osdId)));P&&P.yC()==1&&(P.G==g.MY&&(P.G=function(R){return w.oy(R)}),iA6(this,P,q)); return P}; g.d.oy=function(n){n.X=0;n.WW=0;if(n.W=="h"||n.W=="n"){nF();n.oH&&(nF(),En(this)!="h"&&En(this));var q=g.w0("ima.common.getVideoMetadata");if(typeof q==="function")try{var w=q(n.bE)}catch(P){n.X|=4}else n.X|=2}else if(n.W=="b")if(q=g.w0("ytads.bulleit.getVideoMetadata"),typeof q==="function")try{w=q(n.bE)}catch(P){n.X|=4}else n.X|=2;else if(n.W=="ml")if(q=g.w0("ima.common.getVideoMetadata"),typeof q==="function")try{w=q(n.bE)}catch(P){n.X|=4}else n.X|=2;else n.X|=1;n.X||(w===void 0?n.X|=8:w===null? n.X|=16:g.fV(w)?n.X|=32:w.errorCode!=null&&(n.WW=w.errorCode,n.X|=64));w==null&&(w={});q=w;n.V=0;for(var X in N0D)q[X]==null&&(n.V|=N0D[X]);ez6(q,"currentTime");ez6(q,"duration");An(w.volume)&&An()&&(w.volume*=NaN);return w}; g.d.YZ=function(){nF();En(this)!="h"&&En(this);var n=dwO(this);return n!=null?new fzs(n):null}; g.d.SD=function(n){!n.N&&n.VY&&oM(this,n,"overlay_unmeasurable_impression")&&(n.N=!0)}; g.d.rE=function(n){n.CH&&(n.bz()?oM(this,n,"overlay_viewable_end_of_session_impression"):oM(this,n,"overlay_unviewable_impression"),n.CH=!1)}; g.d.Wp=function(){}; g.d.n9=function(n,q,w,X){if(vmO()){var P=TF(nF().fG,"mm"),R={};(P=(R[qZ.B6]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",R[qZ.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",R)[P])&&azs(this,P);this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&MZ(1044,Error())}n=p8.prototype.n9.call(this,n,q,w,X);this.K&&(q=this.D,n.K==null&&(n.K=new bBs),q.N[n.bE]=n.K,n.K.K=jFG);return n}; g.d.wI=function(n){n&&n.yC()==1&&this.K&&delete this.D.N[n.bE];return p8.prototype.wI.call(this,n)}; g.d.Nh=function(){this.N||(this.N=this.YZ());return this.N==null?new Dr:this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new K8(this.N):new tz(this.N)}; g.d.g8=function(){return this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new S5:new f8}; g.d.NR=function(n,q,w,X,P){q=new GN(w,q+X,w+P,q);(n=B5(Qr,n))?n.NR(q):this.C=q}; var sFG=vg(193,p86,void 0,jLy);g.nj("Goog_AdSense_Lidar_sendVastEvent",sFG);var eO0=LF(194,function(n,q){q=q===void 0?{}:q;n=yxY(db(uA),n,q);return VAz(n)}); g.nj("Goog_AdSense_Lidar_getViewability",eO0);var fcj=vg(195,function(){return Uos()}); g.nj("Goog_AdSense_Lidar_getUrlSignalsArray",fcj);var OVz=LF(196,function(){return JSON.stringify(Uos())}); g.nj("Goog_AdSense_Lidar_getUrlSignalsList",OVz);var $wy=H0(["//ep2.adtrafficquality.google/sodar/",""]),vqO=H0(["//tpc.googlesyndication.com/sodar/",""]);g.m(Zq,Error);g.m(Wr,g.A);Wr.prototype.HJ=function(){return this.wpc.f()}; Wr.prototype.Gj=function(n){this.wpc.c(n)}; Wr.prototype.Xv=function(n){return this.wpc.m(Dw3(n))}; Wr.prototype.k_=function(n){return this.wpc.mws(Dw3(n))}; g.m(Jz,g.A);Jz.prototype.snapshot=function(n){return this.SP.s(Object.assign({},n.Gh&&{c:n.Gh},n.VE&&{s:n.VE},n.U$!==void 0&&{p:n.U$}))}; Jz.prototype.P$=function(n){this.SP.e(n)}; Jz.prototype.pJ=function(){return this.SP.l()};var oqm;g.m(nv,g.A);nv.prototype.share=function(){if(this.zp())throw Error("E:AD");this.X++;return this}; nv.prototype.dispose=function(){--this.X||g.A.prototype.dispose.call(this)}; oqm=Symbol.dispose;bAs.prototype.Bw=function(n,q){this.N.Bw("/client_streamz/bg/frs",n,q)}; Ax3.prototype.Bw=function(n,q,w,X,P,R){this.N.Bw("/client_streamz/bg/wrl",n,q,w,X,P,R)}; YR6.prototype.Ot=function(n,q){this.N.Xq("/client_streamz/bg/ec",n,q)}; Kes.prototype.Bw=function(n,q,w){this.N.Bw("/client_streamz/bg/el",n,q,w)}; SRO.prototype.Ot=function(n,q){this.N.Xq("/client_streamz/bg/cec",n,q)}; uJx.prototype.Ot=function(n,q){this.N.Xq("/client_streamz/bg/po/csc",n,q)}; B1u.prototype.Ot=function(n,q){this.N.Xq("/client_streamz/bg/po/ctav",n,q)}; QLO.prototype.Ot=function(n,q){this.N.Xq("/client_streamz/bg/po/cwsc",n,q)};g.m(ZAY,VL);g.m(XQ,VL);var jE=[1,2,3];var iVi=[0,jE,Zjh,AwB,B0v];var HVz=[0,Im,[0,DlB,GfB]];g.m(Pf,VL);var rm=[1,2,3];var Uol=[0,rm,EiG,lLh,rh,HVz];g.m(RY,VL);var tn0=[0,Im,iVi,Uol];var dof=[0,cZ];g.m(cf,VL);var gyL=[0,cZ,-1,uhh];var mo5=[0,cZ,-1,oiz,uhh];g.m(IY,VL);var iWz=[1,2,3];var yXG=[0,iWz,rh,gyL,rh,mo5,rh,dof];g.m(kL,VL);kL.prototype.rH=function(){var n=XL(this,3,Vo,3,!0);S_(n);return n[void 0]};kL.prototype.C=V4s([0,cZ,yXG,Q50,Im,tn0,Yt0,KDL]);g.m(zzO,VL);g.d=sA.prototype;g.d.isEnabled=function(){if(!g.W0.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Wc:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.d.set=function(n,q,w){var X=!1;if(typeof w==="object"){var P=w.WTf;X=w.secure||!1;var R=w.domain||void 0;var c=w.path||void 0;var k=w.Wc}if(/[;=\s]/.test(n))throw Error('Invalid cookie name "'+n+'"');if(/[;\r\n]/.test(q))throw Error('Invalid cookie value "'+q+'"');k===void 0&&(k=-1);w=R?";domain="+R:"";c=c?";path="+c:"";X=X?";secure":"";k=k<0?"":k==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+k*1E3)).toUTCString();this.N.cookie=n+"="+q+w+c+k+X+(P!=null?";samesite="+ P:"")}; g.d.get=function(n,q){for(var w=n+"=",X=(this.N.cookie||"").split(";"),P=0,R;P=0;q--)this.remove(n[q])}; var vU=new sA(typeof document=="undefined"?null:document);fv.prototype.compress=function(n){var q,w,X,P;return g.b(function(R){switch(R.X){case 1:return q=new CompressionStream("gzip"),w=(new Response(q.readable)).arrayBuffer(),X=q.writable.getWriter(),g.l(R,X.write((new TextEncoder).encode(n)),2);case 2:return g.l(R,X.close(),3);case 3:return P=Uint8Array,g.l(R,w,4);case 4:return R.return(new P(R.N))}})}; fv.prototype.isSupported=function(n){return n<1024?!1:typeof CompressionStream!=="undefined"};g.m(OA,VL);iI.prototype.setInterval=function(n){this.intervalMs=n;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; iI.prototype.start=function(){var n=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){n.tick()},this.intervalMs),this.X=this.N())}; iI.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; iI.prototype.tick=function(){var n=this;if(this.enabled){var q=Math.max(this.N()-this.X,0);q0?w:void 0));w=W1(w,4,eT(P>0?P:void 0));w=W1(w,5,eT(R>0?R:void 0));P=w.PQ;R=P[EF]|0;w=K1(w,R)?w:KB(w,P,R)?ST(w,P):new w.constructor(Yk(P,R,!0));ae(c,tQ,10,w)}c=this.N.clone();w=Date.now().toString();c=W1(c,4,gU(w));n=Vx(c,Th,3,n.slice());X&&(c=new Hf,X=W1(c,13,eT(X)),c=new UA, X=ae(c,Hf,2,X),c=new pv,X=ae(c,UA,1,X),X=G1(X,2,9),ae(n,pv,18,X));q&&xV(n,14,q);return n};g.MW.prototype.X=0;g.MW.prototype.reset=function(){this.N=this.C=this.W;this.X=0}; g.MW.prototype.getValue=function(){return this.C};g.m(Jx,VL);var ac5=z2(Jx);g.m(mY6,VL);var tl;tl=new yUT;g.m(lI,g.A);g.d=lI.prototype;g.d.Xf=function(){hQ(this);this.X.stop();this.Tp.stop();g.A.prototype.Xf.call(this)}; g.d.dispatch=function(n){if(n instanceof Th)this.log(n);else try{var q=new Th,w=n.IY();var X=DX(q,8,w);this.log(X)}catch(P){Gh(this,4,1)}}; g.d.log=function(n){Gh(this,2,1);if(this.n5){n=n.clone();var q=this.IH++;n=xV(n,21,q);this.componentId&&DX(n,26,this.componentId);q=n;var w=JI(q,1);var X=X===void 0?!1:X;var P=typeof w;X=w==null?w:P==="bigint"?String(UP(64,w)):sP(w)?P==="string"?iL(w):X?tI(w):dU(w):void 0;X==null&&(X=Date.now(),X=Number.isFinite(X)?X.toString():"0",W1(q,1,gU(X)));X=JI(q,15);X!=null&&(typeof X==="bigint"?CB(X)?X=Number(X):(X=UP(64,X),X=CB(X)?Number(X):String(X)):X=sP(X)?typeof X==="number"?dU(X):iL(X):void 0);X!=null|| xV(q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(X=this.experimentIds.clone(),ae(q,OA,16,X));Gh(this,1,1);q=this.N.length-1E3+1;q>0&&(this.N.splice(0,q),this.W+=q,Gh(this,3,q));this.N.push(n);this.oU||this.X.enabled||this.X.start()}}; g.d.flush=function(n,q){var w=this;if(this.N.length===0)n&&n();else if(this.HW&&this.qP)this.C.X=3,mZT(this);else{var X=Date.now();if(this.Ff>X&&this.WW0&&(w.WW=Date.now(),w.Ff=w.WW+H);H=fj(v1);var V;C1&&H&&((V=U.PQ[H])==null?void 0:V[175237375])!=null&&lJ(ij5,3);a:{var T=T===void 0?!1:T;if(fj(Hjw)&&fj(v1)&&void 0===Hjw){V=U.PQ;H=V[v1];if(!H)break a;if(H=H.vC)try{H(V,175237375,ywD);break a}catch(x){aJ(x)}}T&&(T=U.PQ, (V=fj(v1))&&V in T&&(T=T[V])&&delete T[175237375])}T=tl.N?tl.X(U,tl.N,175237375,tl.C):tl.X(U,175237375,null,tl.C);if(T=T===null?void 0:T)T=T1(T,1,-1),T!==-1&&(w.K=new g.MW(T<1?1:T,3E5,.1),w.X.setInterval(w.K.getValue()))}}n&&n();w.D=0},f=function(H,U){var t=US(R,Th,3); var V=Number(GxO(R,14));g.xL(w.K);w.X.setInterval(w.K.getValue());H===401&&c&&(w.D0=c);V&&(w.W+=V);U===void 0&&(U=w.isRetryable(H));U&&(w.N=t.concat(w.N),w.oU||w.X.enabled||w.X.start());Gh(w,7,1);q&&q("net-send-failed",H);++w.D},O=function(){w.network&&w.network.send(r,e,f)}; k?k.then(function(H){Gh(w,5,P);r.requestHeaders["Content-Encoding"]="gzip";r.requestHeaders["Content-Type"]="application/binary";r.body=H;r.Yb=2;O()},function(){Gh(w,6,P); O()}):O()}}}}; g.d.isRetryable=function(n){return 500<=n&&n<600||n===401||n===0};Cv.prototype.send=function(n,q,w){var X=this,P,R,c,k,r,e,f,O,H,U;return g.b(function(t){switch(t.X){case 1:return R=(P=X.Cp?new AbortController:void 0)?setTimeout(function(){P.abort()},n.timeoutMillis):void 0,g.Vy(t,2,3),c=Object.assign({},{method:n.requestType, headers:Object.assign({},n.requestHeaders)},n.body&&{body:n.body},n.withCredentials&&{credentials:"include"},{signal:n.timeoutMillis&&P?P.signal:null}),g.l(t,fetch(n.url,c),5);case 5:k=t.N;if(k.status!==200){(r=w)==null||r(k.status);t.f5(3);break}if((e=q)==null){t.f5(7);break}return g.l(t,k.text(),8);case 8:e(t.N);case 7:case 3:g.Dm(t);clearTimeout(R);g.hO(t,0);break;case 2:f=g.$u(t);switch((O=f)==null?void 0:O.name){case "AbortError":(H=w)==null||H(408);break;default:(U=w)==null||U(400)}t.f5(3)}})}; Cv.prototype.vI=function(){return 4};g.m(EA,g.A);EA.prototype.vS=function(){this.K=!0;return this}; EA.prototype.build=function(){this.network||(this.network=new Cv);var n=new lI({logSource:this.logSource,rV:this.rV?this.rV:ky3,sessionIndex:this.sessionIndex,g8e:this.aE,Bi:this.W,oU:!1,vS:this.K,TM:this.TM,network:this.network});g.K(this,n);if(this.X){var q=this.X,w=Lv(n.C);DX(w,7,q)}n.G=new fv;this.componentId&&(n.componentId=this.componentId);this.U3&&(n.U3=this.U3);this.pageId&&(n.pageId=this.pageId);this.N&&((w=this.N)?(n.experimentIds||(n.experimentIds=new OA),q=n.experimentIds,w=w.IY(),DX(q, 4,w)):n.experimentIds&&W1(n.experimentIds,4));this.C&&(n.HW=n.qP);HF0(n.C);this.network.VN&&this.network.VN(this.logSource);this.network.GGo&&this.network.GGo(n);return n};g.m(oY,g.A);oY.prototype.flush=function(n){n=n||[];if(n.length){for(var q=new zzO,w=[],X=0;X-1?(q=n[c],w||(q.y7=!1)):(q=new voy(q,this.src,R,!!X,P),q.y7=w,n.push(q));return q}; g.d.remove=function(n,q,w,X){n=n.toString();if(!(n in this.listeners))return!1;var P=this.listeners[n];q=JQ(P,q,w,X);return q>-1?(Bf(P[q]),g.a5(P,q),P.length==0&&(delete this.listeners[n],this.N--),!0):!1}; g.d.removeAll=function(n){n=n&&n.toString();var q=0,w;for(w in this.listeners)if(!n||w==n){for(var X=this.listeners[w],P=0;P-1?n[P]:null}; g.d.hasListener=function(n,q){var w=n!==void 0,X=w?n.toString():"",P=q!==void 0;return g.PJ(this.listeners,function(R){for(var c=0;c>>0);g.Ot(g.IR,g.A);g.IR.prototype[FM6]=!0;g.d=g.IR.prototype;g.d.addEventListener=function(n,q,w,X){g.Wf(this,n,q,w,X)}; g.d.removeEventListener=function(n,q,w,X){GyO(this,n,q,w,X)}; g.d.dispatchEvent=function(n){var q=this.DK;if(q){var w=[];for(var X=1;q;q=q.DK)w.push(q),++X}q=this.Hv;X=n.type||n;if(typeof n==="string")n=new g.Kv(n,q);else if(n instanceof g.Kv)n.target=n.target||q;else{var P=n;n=new g.Kv(X,q);g.tX(n,P)}P=!0;var R;if(w)for(R=w.length-1;!n.X&&R>=0;R--){var c=n.currentTarget=w[R];P=kp(c,X,!0,n)&&P}n.X||(c=n.currentTarget=q,P=kp(c,X,!0,n)&&P,n.X||(P=kp(c,X,!1,n)&&P));if(w)for(R=0;!n.X&&R0){this.X--;var n=this.N;this.N=n.next;n.next=null}else n=this.C();return n};var sz;fE.prototype.add=function(n,q){var w=YVz.get();w.set(n,q);this.X?this.X.next=w:this.N=w;this.X=w}; fE.prototype.remove=function(){var n=null;this.N&&(n=this.N,this.N=this.N.next,this.N||(this.X=null),n.next=null);return n}; var YVz=new rH(function(){return new Oz},function(n){return n.reset()}); Oz.prototype.set=function(n,q){this.N=n;this.scope=q;this.next=null}; Oz.prototype.reset=function(){this.next=this.scope=this.N=null};var iH,Hy=!1,bFy=new fE;KM6.prototype.reset=function(){this.context=this.X=this.C=this.N=null;this.W=!1}; var SVm=new rH(function(){return new KM6},function(n){n.reset()}); g.aR.prototype.then=function(n,q,w){return nh3(this,jX(typeof n==="function"?n:null),jX(typeof q==="function"?q:null),w)}; g.aR.prototype.$goog_Thenable=!0;g.d=g.aR.prototype;g.d.finally=function(n){var q=this;n=jX(n);return new Promise(function(w,X){ZFO(q,function(P){n();w(P)},function(P){n(); X(P)})})}; g.d.Ld=function(n,q){return nh3(this,null,jX(n),q)}; g.d.catch=g.aR.prototype.Ld;g.d.cancel=function(n){if(this.N==0){var q=new vy(n);g.Uz(function(){Jnz(this,q)},this)}}; g.d.zde=function(n){this.N=0;y5(this,2,n)}; g.d.D9q=function(n){this.N=0;y5(this,3,n)}; g.d.xM=function(){for(var n;n=zC6(this);)WM0(this,n,this.N,this.G);this.D=!1}; var Pus=aJ;g.Ot(vy,iz);vy.prototype.name="cancel";g.Ot(g.LE,g.IR);g.d=g.LE.prototype;g.d.enabled=!1;g.d.Gk=null;g.d.setInterval=function(n){this.V5=n;this.Gk&&this.enabled?(this.stop(),this.start()):this.Gk&&this.stop()}; g.d.aml=function(){if(this.enabled){var n=g.eB()-this.vz;n>0&&n0&&(this.getStatus(),this.D=setTimeout(this.gU.bind(this), this.qP)),this.getStatus(),this.L=!0,this.N.send(n),this.L=!1}catch(c){this.getStatus(),d2Y(this,c)}}; g.d.gU=function(){typeof bH!="undefined"&&this.N&&(this.W="Timed out after "+this.qP+"ms, aborting",this.X=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.d.abort=function(n){this.N&&this.C&&(this.getStatus(),this.C=!1,this.K=!0,this.N.abort(),this.K=!1,this.X=n||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),oR(this))}; g.d.Xf=function(){this.N&&(this.C&&(this.C=!1,this.K=!0,this.N.abort(),this.K=!1),oR(this,!0));g.Ez.mT.Xf.call(this)}; g.d.Qf=function(){this.zp()||(this.vW||this.L||this.K?gh0(this):this.aCT())}; g.d.aCT=function(){gh0(this)}; g.d.isActive=function(){return!!this.N}; g.d.isComplete=function(){return g.Aj(this)==4}; g.d.getStatus=function(){try{return g.Aj(this)>2?this.N.status:-1}catch(n){return-1}}; g.d.getResponseHeader=function(n){if(this.N&&this.isComplete())return n=this.N.getResponseHeader(n),n===null?void 0:n}; g.d.getLastError=function(){return typeof this.W==="string"?this.W:String(this.W)};By.prototype.send=function(n,q,w){q=q===void 0?function(){}:q; w=w===void 0?function(){}:w; U2s(n.url,function(X){X=X.target;Yp(X)?q(g.KE(X)):w(X.getStatus())},n.requestType,n.body,n.requestHeaders,n.timeoutMillis,n.withCredentials)}; By.prototype.vI=function(){return 1};ZP.prototype.done=function(){this.logger.f3(this.event,Q5()-this.startTime)}; g.m(Jj,nv);g.m(Wy,Jj);g.d=Wy.prototype;g.d.C_=function(){}; g.d.cN=function(){}; g.d.f3=function(){}; g.d.O2=function(){}; g.d.JD=function(){}; g.d.aQ=function(n,q,w,X){return X}; g.d.Ln=function(){}; g.d.b8=function(){}; g.d.yW=function(){}; g.m(Nn,Jj);g.d=Nn.prototype;g.d.update=function(n){this.logger.dispose();this.logger=n}; g.d.cN=function(n){this.logger.cN(n)}; g.d.f3=function(n,q){this.logger.f3(n,q)}; g.d.O2=function(n){this.logger.O2(n)}; g.d.JD=function(){this.logger.JD()}; g.d.aQ=function(n,q,w,X){return this.logger.aQ(n,q,w,X)}; g.d.Ln=function(n){this.logger.Ln(n)}; g.d.b8=function(n){this.logger.b8(n)}; g.d.yW=function(n){this.logger.yW(n)}; g.d.C_=function(n){this.logger.C_(n)}; g.m(V7z,g.A);g.m(nL,Jj);g.d=nL.prototype;g.d.C_=function(n){this.metrics.o6q.Bw(n,this.oX)}; g.d.cN=function(n){this.metrics.eventCount.Ot(n,this.oX)}; g.d.f3=function(n,q){this.metrics.P8.Bw(q,n,this.oX)}; g.d.O2=function(n){this.metrics.errorCount.Ot(n,this.oX)}; g.d.aQ=function(n,q,w,X){function P(k){if(!R.zp()){var r=Q5()-c;R.metrics.Rdp.Bw(r,n,w,k,q,R.oX)}} var R=this,c=Q5();X.then(function(){return void P(0)},function(k){return void P(k instanceof hj?k.code:-1)}); return X}; g.d.Ln=function(n){this.metrics.bDH.Ot(n,this.oX)}; g.d.b8=function(n){this.metrics.sS.Ot(n,this.oX)}; g.d.yW=function(n){this.metrics.STl.Ot(n,this.oX)}; g.m(qL,nL);qL.prototype.JD=function(){p56(this.N)};g.m(w7,VL);g.m(XD,VL);g.m(PR,VL);var Ehh=z2(PR),FtY=function(n){return ch(function(q){return q instanceof n&&!K1(q)})}(PR); PR.messageId="bfkj";g.m(NQ,VL);g.m(R2,VL);var $2O=z2(R2);g.m(I2,g.A);I2.prototype.snapshot=function(n){if(this.zp())throw Error("Already disposed");this.logger.cN("n");var q=this.logger.share();return this.C.then(function(w){var X=w.dR;return new Promise(function(P){var R=new ZP(q,"n");X(function(c){R.done();q.C_(c.length);q.JD();q.dispose();P(c)},[n.Gh, n.VE,n.KU,n.U$])})})}; I2.prototype.wz=function(n){var q=this;if(this.zp())throw Error("Already disposed");this.logger.cN("n");var w=zH(this.logger,function(){return q.W([n.Gh,n.VE,n.KU,n.U$])},"n"); this.logger.C_(w.length);this.logger.JD();return w}; I2.prototype.P$=function(n){this.C.then(function(q){var w;(w=q.czo)==null||w(n)})}; I2.prototype.pJ=function(){return this.logger.share()};g.m(jm,VL);g.m(sg,VL);em.prototype.a4=function(n){return YLy(this,n,new Wy,0)};g.m(fL,g.A);fL.prototype.snapshot=function(n){var q=this;return g.b(function(w){switch(w.X){case 1:if(q.zp())throw Error("Already disposed");if(q.X||q.G){w.f5(2);break}return g.l(w,q.K.promise,2);case 2:if(!q.X){w.f5(4);break}return g.l(w,q.X.snapshot(n),5);case 5:return w.return(w.N);case 4:throw q.G;}})}; fL.prototype.P$=function(n){var q,w;(q=this.X)==null||(w=q.P$)==null||w.call(q,n)}; fL.prototype.handleError=function(n){if(!this.zp()){this.G=n;this.K.resolve();var q,w;(w=(q=this.options).Bl0)==null||w.call(q,n)}}; fL.prototype.pJ=function(){return this.logger.share()}; var uPx={U7i:432E5,YW:3E5,U0:10,Xo:1E4,aN:3E4,zS:3E4,Ytl:6E4,No:1E3,La:6E4,E4:6E5,qo:.25,yR:2,maxAttempts:10};var TRj,qnO=(TRj=Math.imul)!=null?TRj:function(n,q){return n*q|0},ts=[196, 200,224,18];d7.prototype.IY=function(){return String(this.N)+","+this.X.join()}; d7.prototype.ZL=function(n,q){var w=void 0;if(this.X[this.N]!==n){var X=this.X.indexOf(n);X!==-1?(this.X.splice(X,1),X0;)q[w++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(n%62),n=Math.floor(n/62);return q.join("")}};var O8h;g.m(my,g.A);my.prototype.k_=function(n,q){var w=this.Xv(n);q==null||q(w);return zH(this.logger,function(){return g.p1(w,2)},this.X)}; O8h=Symbol.dispose;g.m(Vl,my);Vl.prototype.Xv=function(n,q){var w=this;this.logger.cN(this.N);++this.K>=this.D&&this.C.resolve();var X=n();n=zH(this.logger,function(){return w.W(X)},"C"); if(n===void 0)throw new Zq(17,"YNJ:Undefined");if(!(n instanceof Uint8Array))throw new Zq(18,"ODM:Invalid");q==null||q(n);return n}; g.m(pL,my);pL.prototype.Xv=function(){return this.W}; g.m(Tu,my);Tu.prototype.Xv=function(){var n=this;return zH(this.logger,function(){return Fk(n.W)},"d")}; Tu.prototype.k_=function(){return this.W}; g.m(FD,my);FD.prototype.Xv=function(){if(this.W)return this.W;this.W=i83(this,function(n){return"_"+fq6(n)}); return i83(this,function(n){return n})}; g.m(vR,my);vR.prototype.Xv=function(){var n=Math.floor(Date.now()/1E3),q=[Math.random()*255,Math.random()*255],w=q.concat([this.W&255,this.clientState],[n>>24&255,n>>16&255,n>>8&255,n&255]);n=new Uint8Array(2+w.length);n[0]=34;n[1]=w.length;n.set(w,2);w=n.subarray(2);for(var X=q=q.length;X150))try{this.cache=new k9O(n,this.logger)}catch(q){this.reportError(new Zq(22,"GBJ:init",q))}}; g.d.reportError=function(n){this.logger.O2(n.code);this.onError(n);return n}; var t5s=function(n){return ch(function(q){if(!fLG(q))return!1;for(var w=g.a(Object.entries(n)),X=w.next();!X.done;X=w.next()){var P=g.a(X.value);X=P.next().value;P=P.next().value;if(!(X in q)){if(P.FHq===!0)continue;return!1}if(!P(q[X]))return!1}return!0})}({SP:function(n){return ch(function(q){return q instanceof n})}(fL)},"");var nDy=(new Date).getTime();g.m(hs,VL);var FXi=z2(hs);Fos.prototype.getMetadata=function(){return this.metadata};lt.prototype.getMetadata=function(){return this.metadata}; lt.prototype.getStatus=function(){return this.status};Gu.prototype.G=function(n,q){q=q===void 0?{}:q;return new Fos(n,this,q)}; Gu.prototype.getName=function(){return this.name};var $oj=new Gu("/google.internal.waa.v1.Waa/Create",jm,hs,function(n){return n.IY()},FXi);g.m(CL,VL);var b_s=new Gu("/google.internal.waa.v1.Waa/GenerateIT",sg,CL,function(n){return n.IY()},z2(CL));var PIs=new Set(["SAPISIDHASH","APISIDHASH"]);g.m(Eg,VL);Eg.prototype.getValue=function(){var n=JI(this,2);if(Array.isArray(n)||n instanceof VL)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Re(this,2)};g.m(o2,VL);o2.prototype.getMessage=function(){return $V(this,2)}; var DQh=z2(o2);bt.prototype.xu=function(n,q){n=="data"?this.C.push(q):n=="metadata"?this.K.push(q):n=="status"?this.D.push(q):n=="end"?this.W.push(q):n=="error"&&this.X.push(q);return this}; bt.prototype.removeListener=function(n,q){n=="data"?ut(this.C,q):n=="metadata"?ut(this.K,q):n=="status"?ut(this.D,q):n=="end"?ut(this.W,q):n=="error"&&ut(this.X,q);return this}; bt.prototype.cancel=function(){this.N.abort()}; bt.prototype.cancel=bt.prototype.cancel;bt.prototype.removeListener=bt.prototype.removeListener;bt.prototype.on=bt.prototype.xu;g.m(v6z,Error);g.Ot(g.BR,i_T);g.BR.prototype.N=function(){var n=new Ql(this.W,this.C);this.X&&n.setCredentialsMode(this.X);return n}; g.BR.prototype.setCredentialsMode=function(n){this.X=n}; g.Ot(Ql,g.IR);g.d=Ql.prototype;g.d.open=function(n,q){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.PW=n;this.qP=q;this.readyState=1;ZJ(this)}; g.d.send=function(n){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.V.signal.aborted)throw this.abort(),Error("Request was aborted.");this.N=!0;var q={headers:this.L,method:this.PW,credentials:this.K,cache:void 0,signal:this.V.signal};n&&(q.body=n);(this.vW||g.W0).fetch(new Request(this.qP,q)).then(this.ze.bind(this),this.t9.bind(this))}; g.d.abort=function(){this.response=this.responseText="";this.L=new Headers;this.status=0;this.V.abort();this.C&&this.C.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.N&&this.readyState!=4&&(this.N=!1,Js(this));this.readyState=0}; g.d.ze=function(n){if(this.N&&(this.W=n,this.X||(this.status=this.W.status,this.statusText=this.W.statusText,this.X=n.headers,this.readyState=2,ZJ(this)),this.N&&(this.readyState=3,ZJ(this),this.N)))if(this.responseType==="arraybuffer")n.arrayBuffer().then(this.hs.bind(this),this.t9.bind(this));else if(typeof g.W0.ReadableStream!=="undefined"&&"body"in n){this.C=n.body.getReader();if(this.D){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.G=new TextDecoder;hKx(this)}else n.text().then(this.Te.bind(this),this.t9.bind(this))}; g.d.fB=function(n){if(this.N){if(this.D&&n.value)this.response.push(n.value);else if(!this.D){var q=n.value?n.value:new Uint8Array(0);if(q=this.G.decode(q,{stream:!n.done}))this.response=this.responseText+=q}n.done?Js(this):ZJ(this);this.readyState==3&&hKx(this)}}; g.d.Te=function(n){this.N&&(this.response=this.responseText=n,Js(this))}; g.d.hs=function(n){this.N&&(this.response=n,Js(this))}; g.d.t9=function(){this.N&&Js(this)}; g.d.setRequestHeader=function(n,q){this.L.append(n,q)}; g.d.getResponseHeader=function(n){return this.X?this.X.get(n.toLowerCase())||"":""}; g.d.getAllResponseHeaders=function(){if(!this.X)return"";for(var n=[],q=this.X.entries(),w=q.next();!w.done;)w=w.value,n.push(w[0]+": "+w[1]),w=q.next();return n.join("\r\n")}; g.d.setCredentialsMode=function(n){this.K=n}; Object.defineProperty(Ql.prototype,"withCredentials",{get:function(){return this.K==="include"}, set:function(n){this.setCredentialsMode(n?"include":"same-origin")}});g.zu.prototype.toString=function(){var n=[],q=this.K;q&&n.push(Pt(q,vyG,!0),":");var w=this.N;if(w||q=="file")n.push("//"),(q=this.V)&&n.push(Pt(q,vyG,!0),"@"),n.push(g.$1(w).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),w=this.C,w!=null&&n.push(":",String(w));if(w=this.X)this.N&&w.charAt(0)!="/"&&n.push("/"),n.push(Pt(w,w.charAt(0)=="/"?LX0:Mnh,!0));(w=this.W.toString())&&n.push("?",w);(w=this.D)&&n.push("#",Pt(w,xoD));return n.join("")}; g.zu.prototype.resolve=function(n){var q=this.clone(),w=!!n.K;w?g.WR(q,n.K):w=!!n.V;w?q.V=n.V:w=!!n.N;w?g.NL(q,n.N):w=n.C!=null;var X=n.X;if(w)g.n9(q,n.C);else if(w=!!n.X){if(X.charAt(0)!="/")if(this.N&&!this.X)X="/"+X;else{var P=q.X.lastIndexOf("/");P!=-1&&(X=q.X.slice(0,P+1)+X)}P=X;if(P==".."||P==".")X="";else if(g.Mo(P,"./")||g.Mo(P,"/.")){X=vJ(P,"/");P=P.split("/");for(var R=[],c=0;c1||R.length==1&&R[0]!="")&&R.pop(), X&&c==P.length&&R.push("")):(R.push(k),X=!0)}X=R.join("/")}else X=P}w?q.X=X:w=n.W.toString()!=="";w?q4(q,n.W.clone()):w=!!n.D;w&&(q.D=n.D);return q}; g.zu.prototype.clone=function(){return new g.zu(this)}; var vyG=/[#\/\?@]/g,Mnh=/[#\?:]/g,LX0=/[#\?]/g,o66=/[#\?@]/g,xoD=/#/g;g.d=X6.prototype;g.d.add=function(n,q){IW(this);this.C=null;n=kF(this,n);var w=this.N.get(n);w||this.N.set(n,w=[]);w.push(q);this.X=this.X+1;return this}; g.d.remove=function(n){IW(this);n=kF(this,n);return this.N.has(n)?(this.C=null,this.X=this.X-this.N.get(n).length,this.N.delete(n)):!1}; g.d.clear=function(){this.N=this.C=null;this.X=0}; g.d.isEmpty=function(){IW(this);return this.X==0}; g.d.forEach=function(n,q){IW(this);this.N.forEach(function(w,X){w.forEach(function(P){n.call(q,P,X,this)},this)},this)}; g.d.Bt=function(){IW(this);for(var n=Array.from(this.N.values()),q=Array.from(this.N.keys()),w=[],X=0;X0?String(n[0]):q}; g.d.toString=function(){if(this.C)return this.C;if(!this.N)return"";for(var n=[],q=Array.from(this.N.keys()),w=0;w>>3;R.C!=1&&R.C!=2&&R.C!=15&&eq(R,c,k,"unexpected tag");R.N=1;R.X=0;R.W=0} function w(r){R.W++;R.W==5&&r&240&&eq(R,c,k,"message length too long");R.X|=(r&127)<<(R.W-1)*7;r&128||(R.N=2,R.V=0,typeof Uint8Array!=="undefined"?R.K=new Uint8Array(R.X):R.K=Array(R.X),R.X==0&&P())} function X(r){R.K[R.V++]=r;R.V==R.X&&P()} function P(){if(R.C<15){var r={};r[R.C]=R.K;R.G.push(r)}R.N=0} for(var R=this,c=n instanceof Array?n:new Uint8Array(n),k=0;k0?n:null};f9.prototype.isInputValid=function(){return this.N===null}; f9.prototype.N9=function(){return this.N}; f9.prototype.uO=function(){return!1}; f9.prototype.parse=function(n){this.N!==null&&QM3(this,n,"stream already broken");var q=null;try{var w=this.C;w.C||BKs(w,n,"stream already broken");w.N+=n;var X=Math.floor(w.N.length/4);if(X==0)var P=null;else{try{var R=LXx(w.N.slice(0,X*4))}catch(c){BKs(w,w.N,c.message)}w.X+=X*4;w.N=w.N.slice(X*4);P=R}q=P===null?null:this.W.parse(P)}catch(c){QM3(this,n,c.message)}this.X+=n.length;return q};var hOj={INIT:0,Xx:1,KC:2,II:3,qH:4,E6:5,STRING:6,Ow:7,uM:8,iM:9,VI:10,I2:11,Vi:12,ID:13,oD:14,Ub:15,eN:16,d0:17,KQ:18,oF:19,eR:20};g.d=iF.prototype;g.d.isInputValid=function(){return this.K!=3}; g.d.N9=function(){return this.L}; g.d.done=function(){return this.K===2}; g.d.uO=function(){return!1}; g.d.parse=function(n){function q(){for(;H0;)if(t=n[H++], R.V===4?R.V=0:R.V++,!t)break a;if(t==='"'&&!R.G){R.N=X();break}if(t==="\\"&&!R.G&&(R.G=!0,t=n[H++],!t))break;if(R.G)if(R.G=!1,t==="u"&&(R.V=1),t=n[H++])continue;else break;k.lastIndex=H;t=k.exec(n);if(!t){H=n.length+1;break}H=t.index+1;t=n[t.index];if(!t)break}R.C+=H-V;continue;case r.iM:if(!t)continue;t==="r"?R.N=r.VI:Ht(R,n,H);continue;case r.VI:if(!t)continue;t==="u"?R.N=r.I2:Ht(R,n,H);continue;case r.I2:if(!t)continue;t==="e"?R.N=X():Ht(R,n,H);continue;case r.Vi:if(!t)continue;t==="a"?R.N=r.ID: Ht(R,n,H);continue;case r.ID:if(!t)continue;t==="l"?R.N=r.oD:Ht(R,n,H);continue;case r.oD:if(!t)continue;t==="s"?R.N=r.Ub:Ht(R,n,H);continue;case r.Ub:if(!t)continue;t==="e"?R.N=X():Ht(R,n,H);continue;case r.eN:if(!t)continue;t==="u"?R.N=r.d0:Ht(R,n,H);continue;case r.d0:if(!t)continue;t==="l"?R.N=r.KQ:Ht(R,n,H);continue;case r.KQ:if(!t)continue;t==="l"?R.N=X():Ht(R,n,H);continue;case r.oF:t==="."?R.N=r.eR:Ht(R,n,H);continue;case r.eR:if("0123456789.eE+-".indexOf(t)!==-1)continue;else H--,R.C--,R.N= X();continue;default:Ht(R,n,H)}}} function X(){var t=c.pop();return t!=null?t:r.Xx} function P(t){R.X>1||(t||(t=O===-1?R.W+n.substring(f,H):n.substring(O,H)),R.qP?R.D.push(t):R.D.push(JSON.parse(t)),O=H)} for(var R=this,c=R.PW,k=R.vW,r=hOj,e=n.length,f=0,O=-1,H=0;H0?(U=R.D,R.D=[],U):null}return null};Uf.prototype.isInputValid=function(){return this.K===null}; Uf.prototype.N9=function(){return this.K}; Uf.prototype.uO=function(){return!1}; Uf.prototype.parse=function(n){function q(r){R.X=6;R.K="The stream is broken @"+R.N+"/"+c+". Error: "+r+". With input:\n";throw Error(R.K);} function w(){R.C=new iF({wtp:!0,DX:!0})} function X(r){if(r)for(var e=0;e1)&&q("extra status: "+r);R.D=!0;var e={};e[2]=r[0];R.W.push(e)}} for(var R=this,c=0;c0?(n=R.W,R.W=[],n):null};di.prototype.LI=function(){return this.N}; di.prototype.getStatus=function(){return this.K}; di.prototype.qP=function(n){n=n.target;try{if(n==this.N)a:{var q=g.Aj(this.N),w=this.N.X,X=this.N.getStatus(),P=g.KE(this.N);n=[];if(g.SX(this.N)instanceof Array){var R=g.SX(this.N);R.length>0&&R[0]instanceof Uint8Array&&(this.L=!0,n=R)}if(!(q<3||q==3&&!P&&n.length==0))if(X=X==200||X==206,q==4&&(w==8?gi(this,7):w==7?gi(this,8):X||gi(this,3)),this.X||(this.X=Z8m(this.N),this.X==null&&gi(this,5)),this.K>2)m7(this);else{if(n.length>this.C){var c=n.length;w=[];try{if(this.X.uO())for(var k=0;kthis.C){k=P.slice(this.C);this.C=P.length;try{var e=this.X.parse(k);e!=null&&this.W&&this.W(e)}catch(f){gi(this,5);m7(this);break a}}q==4?(P.length!= 0||this.L?gi(this,2):gi(this,4),m7(this)):gi(this,1)}}}catch(f){gi(this,6),m7(this)}};g.d=Jzs.prototype;g.d.xu=function(n,q){var w=this.X[n];w||(w=[],this.X[n]=w);w.push(q);return this}; g.d.addListener=function(n,q){this.xu(n,q);return this}; g.d.removeListener=function(n,q){var w=this.X[n];w&&g.Vv(w,q);(n=this.N[n])&&g.Vv(n,q);return this}; g.d.once=function(n,q){var w=this.N[n];w||(w=[],this.N[n]=w);w.push(q);return this}; g.d.QHf=function(n){var q=this.X.data;q&&zKT(n,q);(q=this.N.data)&&zKT(n,q);this.N.data=[]}; g.d.UUp=function(){switch(this.C.getStatus()){case 1:aW(this,"readable");break;case 5:case 6:case 4:case 7:case 3:aW(this,"error");break;case 8:aW(this,"close");break;case 2:aW(this,"end")}};WoY.prototype.serverStreaming=function(n,q,w,X){var P=this,R=n.substring(0,n.length-X.name.length);return Raz(function(c){var k=c.Sa,r=c.getMetadata(),e=qAO(P,!1);r=wfu(P,r,e,R+k.getName());var f=Xfz(e,k.X,!0);c=k.N(c.dE);e.send(r,"POST",c);return f},this.F$).call(this,X.G(q,w))};cQY.prototype.create=function(n,q,w){var X=this.N,P=this.X+"/$rpc/google.internal.waa.v1.Waa/Create";q=q||{};w=w===void 0?{}:w;return ARh(X,P,n,q,$oj,w)};var Idu="://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(" "),khz=/\bocr\b/;var jYm=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(n){throw n;}},{KXW:!0, GhP:!0,QGW:!1,g0f:wGL,Yeg:XGB,jGW:!1,c5W:!1,Z1T:!0,i1g:qtf,dQW:!1,qoh:!1,G7e:!1});var TK=null,$F=!1,yQm=1,dWh=Symbol("SIGNAL"),dh={version:0,KHi:0,lz:!1,Hh:void 0,xa:void 0,Oo:void 0,nS:0,FU:void 0,XV:void 0,Rs:!1,Sn:!1,kind:"unknown",Jn:function(){return!1}, n2:function(){}, bf:function(){}, uPl:function(){}};var gh=Symbol("UNSET"),mm=Symbol("COMPUTING"),yT=Symbol("ERRORED");Object.assign({},dh,{value:gh,lz:!0,error:null,qk:p9,kind:"computed",Jn:function(n){return n.value===gh||n.value===mm}, n2:function(n){if(n.value===mm)throw Error("");var q=n.value;n.value=mm;var w=fdT(n),X=!1;try{var P=n.PZ();F6(null);X=q!==gh&&q!==yT&&P!==yT&&n.qk(q,P)}catch(R){P=yT,n.error=R}finally{Ovy(n,w)}X?n.value=q:(n.value=P,n.version++)}});var tEs=Object.assign({},dh,{qk:p9,value:void 0,kind:"signal"});Object.assign({},dh,{value:gh,lz:!0,error:null,qk:p9,kind:"linkedSignal",Jn:function(n){return n.value===gh||n.value===mm}, n2:function(n){if(n.value===mm)throw Error("");var q=n.value;n.value=mm;var w=fdT(n);try{var X=n.source();var P=n.PZ(X,q===gh||q===yT?void 0:{source:n.B$o,value:q});n.B$o=X}catch(R){P=yT,n.error=R}finally{Ovy(n,w)}q!==gh&&P!==yT&&n.qk(q,P)?n.value=q:(n.value=P,n.version++)}});Object.assign({},dh,{Sn:!0,Rs:!1,bf:function(n){n.schedule!==null&&n.schedule(n.lA5)}, JQ0:!1,khi:function(){}});g.m(xF,g.IR);xF.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.S6.vO(this.K);delete xF.instance}; xF.prototype.ML=function(){return this.N}; xF.prototype.Wy=function(){var n=this;this.K=this.S6.eG(function(){var q;return g.b(function(w){if(w.X==1)return n.N?((q=window.navigator)==null?0:q.onLine)?w.f5(3):g.l(w,M4(n),3):g.l(w,M4(n),3);n.Wy();g.yy(w)})},3E4)};g.m(pfs,VL);var lc0=ao3(pfs,[0,sK,nyt,oiz,sK,-2,oiz,GfB]);hd.prototype.set=function(n,q){q=q===void 0?!0:q;0<=n&&n<52&&Number.isInteger(n)&&this.data[n]!==q&&(this.data[n]=q,this.N=-1)}; hd.prototype.get=function(n){return!!this.data[n]};var GK;g.Ot(g.Ad,g.A);g.d=g.Ad.prototype;g.d.start=function(){this.stop();this.W=!1;var n=FpY(this),q=$Wm(this);n&&!q&&this.X.mozRequestAnimationFrame?(this.N=g.Wf(this.X,"MozBeforePaint",this.C),this.X.mozRequestAnimationFrame(null),this.W=!0):this.N=n&&q?n.call(this.X,this.C):this.X.setTimeout(Ytx(this.C),20)}; g.d.stop=function(){if(this.isActive()){var n=FpY(this),q=$Wm(this);n&&!q&&this.X.mozRequestAnimationFrame?wH(this.N):n&&q?q.call(this.X,this.N):this.X.clearTimeout(this.N)}this.N=null}; g.d.isActive=function(){return this.N!=null}; g.d.Yo=function(){this.W&&this.N&&wH(this.N);this.N=null;this.D.call(this.K,g.eB())}; g.d.Xf=function(){this.stop();g.Ad.mT.Xf.call(this)};g.Ot(g.YF,g.A);g.d=g.YF.prototype;g.d.Qk=0;g.d.Xf=function(){g.YF.mT.Xf.call(this);this.stop();delete this.N;delete this.X}; g.d.start=function(n){this.stop();this.Qk=g.Mn(this.C,n!==void 0?n:this.V5)}; g.d.stop=function(){this.isActive()&&g.W0.clearTimeout(this.Qk);this.Qk=0}; g.d.isActive=function(){return this.Qk!=0}; g.d.BT=function(){this.Qk=0;this.N&&this.N.call(this.X)};g.m(g.Bt,g.A);g.d=g.Bt.prototype;g.d.EQ=function(n){this.C=arguments;this.Gk||this.X?this.N=!0:Qt(this)}; g.d.stop=function(){this.Gk&&(g.W0.clearTimeout(this.Gk),this.Gk=null,this.N=!1,this.C=null)}; g.d.pause=function(){this.X++}; g.d.resume=function(){this.X--;this.X||!this.N||this.Gk||(this.N=!1,Qt(this))}; g.d.Xf=function(){g.A.prototype.Xf.call(this);this.stop()};g.ZK.prototype[Symbol.iterator]=function(){return this}; g.ZK.prototype.next=function(){var n=this.N.next();return{value:n.done?void 0:this.X.call(void 0,n.value),done:n.done}};g.Ot(g.PN,g.IR);g.d=g.PN.prototype;g.d.isPlaying=function(){return this.N==1}; g.d.isPaused=function(){return this.N==-1}; g.d.OR=function(){this.r4("begin")}; g.d.p8=function(){this.r4("end")}; g.d.onFinish=function(){this.r4("finish")}; g.d.onStop=function(){this.r4("stop")}; g.d.r4=function(n){this.dispatchEvent(n)};var GF5=xm(function(){var n=g.O_("DIV"),q=g.j4?"-webkit":S4?"-moz":null,w="transition:opacity 1s linear;";q&&(w+=q+"-transition:opacity 1s linear;");q=vix({style:w});if(n.nodeType===1&&/^(script|style)$/i.test(n.tagName))throw Error("");n.innerHTML=iV(q);return g.uX(n.firstChild,"transition")!=""});g.Ot(RU,g.PN);g.d=RU.prototype;g.d.play=function(){if(this.isPlaying())return!1;this.OR();this.r4("play");this.startTime=g.eB();this.N=1;if(GF5())return g.K$(this.X,this.D),this.C=g.Mn(this.zwn,void 0,this),!0;this.HL(!1);return!1}; g.d.zwn=function(){g.qf(this.X);ME6(this.X,this.G);g.K$(this.X,this.W);this.C=g.Mn((0,g.ki)(this.HL,this,!1),this.K*1E3)}; g.d.stop=function(){this.isPlaying()&&this.HL(!0)}; g.d.HL=function(n){g.K$(this.X,"transition","");g.W0.clearTimeout(this.C);g.K$(this.X,this.W);this.endTime=g.eB();this.N=0;if(n)this.onStop();else this.onFinish();this.p8()}; g.d.Xf=function(){this.stop();RU.mT.Xf.call(this)}; g.d.pause=function(){};var DWT={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};cN("Element","attributes")||cN("Node","attributes");cN("Element","innerHTML")||cN("HTMLElement","innerHTML");cN("Node","nodeName");cN("Node","nodeType");cN("Node","parentNode");cN("Node","childNodes");cN("HTMLElement","style")||cN("Element","style");cN("HTMLStyleElement","sheet");var oLs=ldT("getPropertyValue"),bvy=ldT("setProperty");cN("Element","namespaceURI")||cN("Node","namespaceURI");var ELY={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var SAm,S6B,KpO,YAm,uQY;SAm=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]");S6B=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.CQ5=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.kH=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]");KpO=/^http:\/\/.*/;g.Eyi=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");YAm=/\s+/;uQY=/[\d\u06f0-\u06f9]/;je.prototype.Ch=function(){return new sh(this.X())}; je.prototype[Symbol.iterator]=function(){return new ee(this.X())}; je.prototype.N=function(){return new ee(this.X())}; g.m(sh,g.dM);sh.prototype.next=function(){return this.X.next()}; sh.prototype[Symbol.iterator]=function(){return new ee(this.X)}; sh.prototype.N=function(){return new ee(this.X)}; g.m(ee,je);ee.prototype.next=function(){return this.C.next()};Oh.prototype.clone=function(){return new Oh(this.N,this.G,this.C,this.K,this.W,this.D,this.X,this.V)}; Oh.prototype.equals=function(n){return this.N==n.N&&this.G==n.G&&this.C==n.C&&this.K==n.K&&this.W==n.W&&this.D==n.D&&this.X==n.X&&this.V==n.V};HN.prototype.clone=function(){return new HN(this.start,this.end)};(function(){if(WVx){var n=/Windows NT ([0-9.]+)/;return(n=n.exec(g.CV()))?n[1]:"0"}return kg?(n=/1[0|1][_.][0-9_.]+/,(n=n.exec(g.CV()))?n[0].replace(/_/g,"."):"10"):g.Q9?(n=/Android\s+([^\);]+)(\)|;)/,(n=n.exec(g.CV()))?n[1]:""):cwG||ILl||kft?(n=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(n=n.exec(g.CV()))?n[1].replace(/_/g,"."):""):""})();var QYh=function(){if(g.ce)return Uh(/Firefox\/([0-9.]+)/);if(g.IU||g.AN||g.uY)return ywz;if(g.fT){if(Co()||oP()){var n=Uh(/CriOS\/([0-9.]+)/);if(n)return n}return Uh(/Chrome\/([0-9.]+)/)}if(g.fW&&!Co())return Uh(/Version\/([0-9.]+)/);if(Sz||ub){if(n=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.CV()))return n[1]+"."+n[2]}else if(g.Be)return(n=Uh(/Android\s+([0-9.]+)/))?n:Uh(/Version\/([0-9.]+)/);return""}();g.Ot(g.de,g.A);g.d=g.de.prototype;g.d.subscribe=function(n,q,w){var X=this.X[n];X||(X=this.X[n]=[]);var P=this.D;this.N[P]=n;this.N[P+1]=q;this.N[P+2]=w;this.D=P+3;X.push(P);return P}; g.d.unsubscribe=function(n,q,w){if(n=this.X[n]){var X=this.N;if(n=n.find(function(P){return X[P+1]==q&&X[P+2]==w}))return this.iI(n)}return!1}; g.d.iI=function(n){var q=this.N[n];if(q){var w=this.X[q];this.W!=0?(this.C.push(n),this.N[n+1]=function(){}):(w&&g.Vv(w,n),delete this.N[n],delete this.N[n+1],delete this.N[n+2])}return!!q}; g.d.publish=function(n,q){var w=this.X[n];if(w){var X=Array(arguments.length-1),P=arguments.length,R;for(R=1;R0&&this.W==0)for(;w=this.C.pop();)this.iI(w)}}return R!=0}return!1}; g.d.clear=function(n){if(n){var q=this.X[n];q&&(q.forEach(this.iI,this),delete this.X[n])}else this.N.length=0,this.X={}}; g.d.Xf=function(){g.de.mT.Xf.call(this);this.clear();this.C.length=0};g.ge.prototype.set=function(n,q){q===void 0?this.N.remove(n):this.N.set(n,g.lH(q))}; g.ge.prototype.get=function(n){try{var q=this.N.get(n)}catch(w){return}if(q!==null)try{return JSON.parse(q)}catch(w){throw"Storage: Invalid value was encountered";}}; g.ge.prototype.remove=function(n){this.N.remove(n)};g.Ot(mq,g.ge);mq.prototype.set=function(n,q){mq.mT.set.call(this,n,zaO(q))}; mq.prototype.X=function(n){n=mq.mT.get.call(this,n);if(n===void 0||n instanceof Object)return n;throw"Storage: Invalid value was encountered";}; mq.prototype.get=function(n){if(n=this.X(n)){if(n=n.data,n===void 0)throw"Storage: Invalid value was encountered";}else n=void 0;return n};g.Ot(yS,mq);yS.prototype.set=function(n,q,w){if(q=zaO(q)){if(w){if(w=w.length)return g.OK;var P=w.key(q++);if(n)return g.gM(P);P=w.getItem(P);if(typeof P!=="string")throw"Storage mechanism: Invalid value was encountered";return g.gM(P)}; return X}; g.d.clear=function(){Tl(this);this.N.clear()}; g.d.key=function(n){Tl(this);return this.N.key(n)};g.Ot(FW,pc);g.Ot(npu,pc);g.Ot($H,VS);$H.prototype.set=function(n,q){this.X.set(this.N+n,q)}; $H.prototype.get=function(n){return this.X.get(this.N+n)}; $H.prototype.remove=function(n){this.X.remove(this.N+n)}; $H.prototype.Ch=function(n){var q=this.X[Symbol.iterator](),w=this,X=new g.dM;X.next=function(){var P=q.next();if(P.done)return P;for(P=P.value;P.slice(0,w.N.length)!=w.N;){P=q.next();if(P.done)return P;P=P.value}return g.gM(n?P.slice(w.N.length):w.X.get(P))}; return X};Lc.prototype.getValue=function(){return this.X}; Lc.prototype.clone=function(){return new Lc(this.N,this.X)};g.d=MX.prototype;g.d.ZL=function(n,q){var w=this.N;w.push(new Lc(n,q));n=w.length-1;q=this.N;for(w=q[n];n>0;){var X=n-1>>1;if(q[X].N>w.N)q[n]=q[X],n=X;else break}q[n]=w}; g.d.remove=function(){var n=this.N,q=n.length,w=n[0];if(!(q<=0)){if(q==1)n.length=0;else{n[0]=n.pop();n=0;q=this.N;for(var X=q.length,P=q[n];n>1;){var R=n*2+1,c=n*2+2;R=cP.N)break;q[n]=q[R];n=R}q[n]=P}return w.getValue()}}; g.d.uU=function(){for(var n=this.N,q=[],w=n.length,X=0;X>>16&65535|0;for(var R;w!==0;){R=w>2E3?2E3:w;w-=R;do P=P+q[X++]|0,n=n+P|0;while(--R);P%=65521;n%=65521}return P|n<<16|0};for(var Iw={},am,KXG=[],VT=0;VT<256;VT++){am=VT;for(var SlG=0;SlG<8;SlG++)am=am&1?3988292384^am>>>1:am>>>1;KXG[VT]=am}Iw=function(n,q,w,X){w=X+w;for(n^=-1;X>>8^KXG[(n^q[X])&255];return n^-1};var zl={};zl={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 Kc=[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],BN=[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],pyO=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],OEx=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qN=Array(576);lU(qN);var wW=Array(60);lU(wW);var uU=Array(512);lU(uU);var YH=Array(256);lU(YH);var Se=Array(29);lU(Se);var QS=Array(30);lU(QS);var yjy,aPO,VXu,mnY=!1;var eY;eY=[new sq(0,0,0,0,function(n,q){var w=65535;for(w>n.jq-5&&(w=n.jq-5);;){if(n.IP<=1){kv(n);if(n.IP===0&&q===0)return 1;if(n.IP===0)break}n.cQ+=n.IP;n.IP=0;var X=n.cw+w;if(n.cQ===0||n.cQ>=X)if(n.IP=n.cQ-X,n.cQ=X,Xp(n,!1),n.eP.IS===0)return 1;if(n.cQ-n.cw>=n.xJ-262&&(Xp(n,!1),n.eP.IS===0))return 1}n.ZL=0;if(q===4)return Xp(n,!0),n.eP.IS===0?3:4;n.cQ>n.cw&&Xp(n,!1);return 1}), new sq(4,4,8,4,rW),new sq(4,5,16,8,rW),new sq(4,6,32,32,rW),new sq(4,4,16,16,jY),new sq(8,16,32,32,jY),new sq(8,16,128,128,jY),new sq(8,32,128,256,jY),new sq(32,128,258,1024,jY),new sq(32,258,258,4096,jY)];var gp6={};gp6=function(){this.input=null;this.tO=this.ac=this.zU=0;this.output=null;this.aD=this.IS=this.sG=0;this.msg="";this.state=null;this.ow=2;this.Hy=0};var THm=Object.prototype.toString; fi.prototype.push=function(n,q){var w=this.eP,X=this.options.chunkSize;if(this.ended)return!1;var P=q===~~q?q:q===!0?4:0;typeof n==="string"?w.input=Xy3(n):THm.call(n)==="[object ArrayBuffer]"?w.input=new Uint8Array(n):w.input=n;w.zU=0;w.ac=w.input.length;do{w.IS===0&&(w.output=new ho.O5(X),w.sG=0,w.IS=X);n=dnz(w,P);if(n!==1&&n!==0)return this.p8(n),this.ended=!0,!1;if(w.IS===0||w.ac===0&&(P===4||P===2))if(this.options.to==="string"){var R=ho.iZ(w.output,w.sG);q=R;R=R.length;if(R<65537&&(q.subarray&& Ylt||!q.subarray))q=String.fromCharCode.apply(null,ho.iZ(q,R));else{for(var c="",k=0;k0||w.IS===0)&&n!==1);if(P===4)return(w=this.eP)&&w.state?(X=w.state.status,X!==42&&X!==69&&X!==73&&X!==91&&X!==103&&X!==113&&X!==666?n=WN(w,-2):(w.state=null,n=X===113?WN(w,-3):0)):n=-2,this.p8(n),this.ended=!0,n===0;P===2&&(this.p8(0),w.IS=0);return!0}; fi.prototype.p8=function(n){n===0&&(this.result=this.options.to==="string"?this.chunks.join(""):ho.rN(this.chunks));this.chunks=[];this.err=n;this.msg=this.eP.msg};var ip="@@redux/INIT"+Oq(),xny="@@redux/REPLACE"+Oq();var Dnh=typeof Symbol==="function"&&Symbol.observable||"@@observable";var unB=[0,Jwl,-3,jo];g.m(CHY,VL);var EUz=ao3(CHY,[0,sK,zGG,cZ,Jwl,cZ,-1,jo,Jwl,jo,-1,sK,jo,zGG,Im,unB,cZ,-1,jo]);var Eph=-1998891902;var qYz=new g.t3("adInfoDialogEndpoint");var xih=new g.t3("adPingingEndpoint");var n0s=new g.t3("crossDeviceProgressCommand");var gz=new g.t3("actionCompanionAdRenderer");var Sj=new g.t3("adActionInterstitialRenderer");var BRl=new g.t3("adDurationRemainingRenderer");var Bs=new g.t3("adHoverTextButtonRenderer");var Nth=new g.t3("adInfoDialogRenderer");var vp=new g.t3("adMessageRenderer");var Qf=new g.t3("adPreviewRenderer");var yf=new g.t3("adsEngagementPanelRenderer");var FKs=new g.t3("dismissablePanelTextPortraitImageRenderer");var pKx=new g.t3("adsEngagementPanelSectionListViewModel");var QFt=new g.t3("flyoutCtaRenderer");var m4=new g.t3("imageCompanionAdRenderer");var Yt=new g.t3("instreamAdPlayerOverlayRenderer");var jsG=new g.t3("instreamSurveyAdBackgroundImageRenderer");var uT=new g.t3("instreamSurveyAdPlayerOverlayRenderer");var DR=new g.t3("instreamSurveyAdRenderer"),Ss=new g.t3("instreamSurveyAdSingleSelectQuestionRenderer"),Kh=new g.t3("instreamSurveyAdMultiSelectQuestionRenderer"),pa=new g.t3("instreamSurveyAdAnswerRenderer"),ZVw=new g.t3("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var Mx=new g.t3("instreamVideoAdRenderer");var JXD=new g.t3("textOverlayAdContentRenderer"),zOt=new g.t3("enhancedTextOverlayAdContentRenderer"),WXh=new g.t3("imageOverlayAdContentRenderer");var KI=new g.t3("playerOverlayLayoutRenderer");var uv=new g.t3("videoInterstitialButtonedCenteredLayoutRenderer");var xD0=new g.t3("aboveFeedAdLayoutRenderer");var DD0=new g.t3("belowPlayerAdLayoutRenderer");var Mis=new g.t3("inPlayerAdLayoutRenderer");var GD=new g.t3("playerBytesAdLayoutRenderer");var Yz=new g.t3("playerBytesSequenceItemAdLayoutRenderer");var A$=new g.t3("playerUnderlayAdLayoutRenderer");var xz=new g.t3("adIntroRenderer");var vs=new g.t3("playerBytesSequentialLayoutRenderer");var eV3=new g.t3("slidingTextPlayerOverlayRenderer");var h$=new g.t3("surveyTextInterstitialRenderer");var Ch=new g.t3("videoAdTrackingRenderer");var yZY=new g.t3("videoInterstitialCenteredLayoutViewModel");var NRL=new g.t3("simpleAdBadgeRenderer");var Ue=new g.t3("skipAdRenderer"),n1G=new g.t3("skipButtonRenderer");var Ws=new g.t3("adSlotRenderer");var oS=new g.t3("squeezebackPlayerSidePanelRenderer");var q40=new g.t3("timedPieCountdownRenderer");var Z5=new g.t3("adAvatarViewModel");var J6=new g.t3("adBadgeViewModel");var z6=new g.t3("adButtonViewModel");var wwD=new g.t3("adDetailsLineViewModel");var XwB=new g.t3("adDisclosureBannerViewModel");var PVt=new g.t3("adPodIndexViewModel");var R9j=new g.t3("imageBackgroundViewModel");var c_G=new g.t3("adGridCardCollectionViewModel");var IYw=new g.t3("adGridCardTextViewModel");var kxh=new g.t3("adPreviewViewModel");var r_v=new g.t3("playerAdAvatarLockupCardButtonedViewModel");var jP5=new g.t3("skipAdButtonViewModel");var sPi=new g.t3("skipAdViewModel");var e9j=new g.t3("timedPieCountdownViewModel");var fYh=new g.t3("visitAdvertiserLinkViewModel");var aS=new g.t3("bannerImageLayoutViewModel");var Vf=new g.t3("topBannerImageTextIconButtonedLayoutViewModel");var ph=new g.t3("adsEngagementPanelLayoutViewModel");var bT=new g.t3("displayUnderlayTextGridCardsLayoutViewModel");g.SF=new g.t3("browseEndpoint");var Oo5=new g.t3("confirmDialogEndpoint");var MKy=new g.t3("commandContext");var ies=new g.t3("rawColdConfigGroup");var Oes=new g.t3("rawHotConfigGroup");g.j6=new g.t3("commandExecutorCommand");g.m(bEm,VL);var CNs={aNW:0,zeo:1,Qnf:32,V6l:61,bof:67,U1P:103,odW:86,G4i:42,gd5:60,u05:62,ion:73,jnl:76,B4e:88,Ref:90,m1e:99,Kvo:98,S9p:100,snH:102,yL0:41,Lvn:69,Nh0:70,E0f:71,akl:2,fkq:27,ANDROID:3,rM0:54,FLe:14,j0o:91,Oxp:55,eOl:24,dLg:20,KLW:18,GTi:21,Q0i:104,ixl:30,owT:29,ULh:28,ndn:101,BmT:34,s0l:36,ZxT:38,IOS:5,Afi:15,cfH:92,XOp:40,vS5:25,Cg5:17,a6q:19,f6f:64,HOl:66,WEP:26,t$p:22,nSl:33,l6H:68,knl:35,wOW:53,Jfp:37,M$W:39,mYq:7,yvi:57,LYh:43,Edg:59,N4f:93,ILP:74,q90:75,PBi:85,x1e:65,ALH:80,XrH:8,Sgh:10, vdp:58,M6e:63,pre:72,Vri:23,xQq:11,pth:13,hGq:12,bh0:16,Zof:56,INi:31,Xwe:77,ejq:84,Y9i:87,Ksp:89,dTo:94,R5T:95};g.m(dW,VL);dW.prototype.uY=function(){return $V(this,3)}; dW.prototype.G$=function(){return $V(this,5)}; dW.prototype.zP=function(n){return DX(this,5,n)};g.m(gW,VL);g.m(Ajh,VL);g.m(mu,VL);g.d=mu.prototype;g.d.getDeviceId=function(){return $V(this,6)}; g.d.Ki=function(n){var q=XL(this,9,fB,3,!0);S_(q,n);return q[n]}; g.d.getPlayerType=function(){return vE(this,36)}; g.d.setHomeGroupInfo=function(n){return ae(this,Ajh,81,n)}; g.d.clearLocationPlayabilityToken=function(){return W1(this,89)};g.m(ym,VL);ym.prototype.getValue=function(){return $V(this,fG(this,ePs,2))}; var ePs=[2,3,4,5,6];g.m(aw,VL);aw.prototype.setTrackingParams=function(n){return W1(this,1,Yl6(n,!1))};g.m(Vm,VL);g.m(pi,VL);pi.prototype.Ki=function(n){var q=XL(this,5,OP,3,!0);S_(q,n);return q[n]};g.m(TV,VL);TV.prototype.getToken=function(){return MJ(this,2)}; TV.prototype.setToken=function(n){return DX(this,2,n)};g.m(Fp,VL);Fp.prototype.setSafetyMode=function(n){return G1(this,5,n)};g.m($v,VL);$v.prototype.iF=function(n){return ae(this,mu,1,n)};var J$=new g.t3("thumbnailLandscapePortraitRenderer");g.ioG=new g.t3("changeEngagementPanelVisibilityAction");var vdT=new g.t3("continuationCommand");g.HoD=new g.t3("openPopupAction");g.T_=new g.t3("webCommandMetadata");var iPz=new g.t3("metadataBadgeRenderer");var $Uh=new g.t3("signalServiceEndpoint");var $9=new g.t3("innertubeCommand");var evO=new g.t3("loggingDirectives");var T7T={plP:"EMBEDDED_PLAYER_MODE_UNKNOWN",quT:"EMBEDDED_PLAYER_MODE_DEFAULT",xTl:"EMBEDDED_PLAYER_MODE_PFP",Pao:"EMBEDDED_PLAYER_MODE_PFL"};var A1m=new g.t3("channelThumbnailEndpoint");var bPz=new g.t3("embeddedPlayerErrorMessageRenderer");var GzY=new g.t3("embeddedPlayerOverlayVideoDetailsRenderer"),Ybu=new g.t3("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),K6Y=new g.t3("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var eTY=new g.t3("embedsInfoPanelRenderer");var UEt=new g.t3("feedbackEndpoint");var t9h=new g.t3("callToActionButtonViewModel");var dEi=new g.t3("interactionLoggingCommandMetadata");var mXT={d1h:"WEB_DISPLAY_MODE_UNKNOWN",rLq:"WEB_DISPLAY_MODE_BROWSER",OoH:"WEB_DISPLAY_MODE_MINIMAL_UI",eeH:"WEB_DISPLAY_MODE_STANDALONE",Fvo:"WEB_DISPLAY_MODE_FULLSCREEN"};g.m(vA,VL);vA.prototype.getPlayerType=function(){return vE(this,7)}; vA.prototype.Fg=function(){return $V(this,19)}; vA.prototype.setVideoId=function(n){return DX(this,19,n)};g.m(Li,VL);g.m(MN,VL);g.m(xv,VL); var g1L=[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];var mEt=new g.t3("loggingContext");g.m(DO,VL);g.m(h3,VL);h3.prototype.Fg=function(){return MJ(this,fG(this,wF,1))}; h3.prototype.setVideoId=function(n){return sS(this,1,wF,aE(n))}; h3.prototype.getPlaylistId=function(){return MJ(this,fG(this,wF,2))}; var wF=[1,2];g.m(Yzs,VL);var gY=new g.t3("changeKeyedMarkersVisibilityCommand");var y_0=new g.t3("changeMarkersVisibilityCommand");var Ukx=new g.t3("loadMarkersCommand");var aYz=new g.t3("suggestedActionDataViewModel");var CMs=new g.t3("timelyActionViewModel");var Gmy=new g.t3("timelyActionsOverlayViewModel");var BhY=new g.t3("productListItemRenderer");var V9w=new g.t3("shoppingOverlayRenderer");var C3x=new g.t3("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var pw5=new g.t3("adFeedbackEndpoint");var TDL=new g.t3("menuEndpoint");var NQO=new g.t3("phoneDialerEndpoint");var zL0=new g.t3("sendSmsEndpoint");var lTy=new g.t3("copyTextEndpoint");var FrG=new g.t3("shareEndpoint"),$Ej=new g.t3("shareEntityEndpoint"),v1D=new g.t3("shareEntityServiceEndpoint"),LrL=new g.t3("webPlayerShareEntityServiceEndpoint");g.Lp=new g.t3("urlEndpoint");g.tH=new g.t3("watchEndpoint");var M9f=new g.t3("watchPlaylistEndpoint");g.xEt=new g.t3("offlineOrchestrationActionCommand");var twh=new g.t3("compositeVideoOverlayRenderer");var DEz=new g.t3("miniplayerRenderer");var Dk0=new g.t3("paidContentOverlayRenderer");var h9i=new g.t3("playerMutedAutoplayOverlayRenderer"),lYh=new g.t3("playerMutedAutoplayEndScreenRenderer");var F4T=new g.t3("unserializedPlayerResponse"),Gxj=new g.t3("unserializedPlayerResponse");var CVG=new g.t3("playlistEditEndpoint");var FH;g.ZR=new g.t3("buttonRenderer");FH=new g.t3("toggleButtonRenderer");var ViT=new g.t3("counterfactualRenderer");var E1v=new g.t3("resolveUrlCommandMetadata");var o1v=new g.t3("modifyChannelNotificationPreferenceEndpoint");var M2z=new g.t3("pingingEndpoint");var boh=new g.t3("unsubscribeEndpoint");g.uf=new g.t3("subscribeButtonRenderer");var A_0=new g.t3("subscribeEndpoint");var cy0=new g.t3("buttonViewModel");var TAm=new g.t3("qrCodeRenderer");var oJ3={Y2i:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Gnq:"LIVING_ROOM_APP_MODE_MAIN",ZO0:"LIVING_ROOM_APP_MODE_KIDS",QWn:"LIVING_ROOM_APP_MODE_MUSIC",gSq:"LIVING_ROOM_APP_MODE_UNPLUGGED",KEf:"LIVING_ROOM_APP_MODE_GAMING"};var r1x=new g.t3("autoplaySwitchButtonRenderer");var uE,o_Y,hAs,zbx;uE=new g.t3("decoratedPlayerBarRenderer");o_Y=new g.t3("chapteredPlayerBarRenderer");hAs=new g.t3("multiMarkersPlayerBarRenderer");zbx=new g.t3("chapterRenderer");g.K23=new g.t3("markerRenderer");var wV0=new g.t3("decoratedPlayheadRenderer");var fTO=new g.t3("desktopOverlayConfigRenderer");var $Dm=new g.t3("engagementPanelSectionListRenderer");var sk6=new g.t3("gatedActionsOverlayViewModel");var QrY=new g.t3("heatMarkerRenderer");var B3s=new g.t3("heatmapRenderer");var HPT=new g.t3("watchToWatchTransitionRenderer");var ElO=new g.t3("playlistPanelRenderer");var Y45=new g.t3("productUpsellSuggestedActionViewModel");var Krf=new g.t3("suggestedActionTimeRangeTrigger"),S45=new g.t3("suggestedActionsRenderer"),u9B=new g.t3("suggestedActionRenderer");var Z6y=new g.t3("timedMarkerDecorationRenderer");var Grm=new g.t3("cipher");var $xY=new g.t3("playerVars");var BDv=new g.t3("playerVars");var $C=g.W0.window,QPD,Zoh,lp=($C==null?void 0:(QPD=$C.yt)==null?void 0:QPD.config_)||($C==null?void 0:(Zoh=$C.ytcfg)==null?void 0:Zoh.data_)||{};g.nj("yt.config_",lp);var Yv=[];var NHs=/^[\w.]*$/,ZEm={q:!0,search_query:!0},QRh=String(BA);var PU=new function(){var n=window.document;this.N=window;this.X=n}; g.nj("yt.ads_.signals_.getAdSignalsString",function(n){return Qm(cU(n))});g.eB();var qg6="XMLHttpRequest"in g.W0?function(){return new XMLHttpRequest}:null;var J_i="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.D(J_i);var R8s={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"},HL6="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.D(J_i)),e86=!1,rs6=dN;g.m(y9,iz);pe.prototype.then=function(n,q,w){return this.N?this.N.then(n,q,w):this.C===1&&n?(n=n.call(w,this.X))&&typeof n.then==="function"?n:FR(n):this.C===2&&q?(n=q.call(w,this.X))&&typeof n.then==="function"?n:TS(n):this}; pe.prototype.getValue=function(){return this.X}; pe.prototype.$goog_Thenable=!0;var $A=!1;var bg=Sz||ub;var VmO=/^([0-9\.]+):([0-9\.]+)$/;g.m(Il,iz);Il.prototype.name="BiscottiError";g.m(cz,iz);cz.prototype.name="BiscottiMissingError";var $Ls={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},kN=null;var wGm=H0(["data-"]),Cty={};var z9h=0,rt=g.j4?"webkit":S4?"moz":g.IU?"ms":g.uY?"o":"",Wrh=g.w0("ytDomDomGetNextId")||function(){return++z9h}; g.nj("ytDomDomGetNextId",Wrh);var As3={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};i4.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; i4.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; i4.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Hz=g.W0.ytEventsEventsListeners||{};g.nj("ytEventsEventsListeners",Hz);var Sgu=g.W0.ytEventsEventsCounter||{count:0};g.nj("ytEventsEventsCounter",Sgu);var ZLx=xm(function(){var n=!1;try{var q=Object.defineProperty({},"passive",{get:function(){n=!0}}); window.addEventListener("test",null,q)}catch(w){}return n}),uDs=xm(function(){var n=!1; try{var q=Object.defineProperty({},"capture",{get:function(){n=!0}}); window.addEventListener("test",null,q)}catch(w){}return n});var vZ;vZ=window;g.m$=vZ.ytcsi&&vZ.ytcsi.now?vZ.ytcsi.now:vZ.performance&&vZ.performance.timing&&vZ.performance.now&&vZ.performance.timing.navigationStart?function(){return vZ.performance.timing.navigationStart+vZ.performance.now()}:function(){return(new Date).getTime()};g.Ot(m1,g.A);m1.prototype.L=function(n){n.N===void 0&&Ygy(n);var q=n.N;n.X===void 0&&Ygy(n);this.N=new g.uV(q,n.X)}; m1.prototype.DT=function(){return this.N||new g.uV}; m1.prototype.qP=function(){if(this.N){var n=(0,g.m$)();if(this.W!=0){var q=this.D,w=this.N,X=q.x-w.x;q=q.y-w.y;X=Math.sqrt(X*X+q*q)/(n-this.W);this.X[this.C]=Math.abs((X-this.K)/this.K)>.5?1:0;for(w=q=0;w<4;w++)q+=this.X[w]||0;q>=3&&this.G();this.K=X}this.W=n;this.D=this.N;this.C=(this.C+1)%4}}; m1.prototype.Xf=function(){g.ez(this.V);g.th(this.PW)};g.m(ys,g.A);ys.prototype.j=function(n,q,w,X,P){w=g.SY((0,g.ki)(w,X||this.Me));w={target:n,name:q,callback:w};var R;P&&ZLx()&&(R={passive:!0});n.addEventListener(q,w.callback,R);this.G.push(w);return w}; ys.prototype.wM=function(n){for(var q=0;q=S.kd)||T.N.version>=nO||T.N.objectStoreNames.contains(E)||M.push(E)}r=M;if(r.length===0){V.f5(5);break}e=Object.keys(w.options.PG); f=k.objectStoreNames();if(w.Kw.options.version+1)throw H.close(),w.C=!1,lKx(w,U);return V.return(H);case 8:throw q(), O instanceof Error&&!g.OU("ytidb_async_stack_killswitch")&&(O.stack=O.stack+"\n"+c.substring(c.indexOf("\n")+1)),OY(O,w.name,"",(t=w.options.version)!=null?t:-1);}})} function q(){w.N===X&&(w.N=void 0)} var w=this;if(!this.C)throw lKx(this);if(this.N)return this.N;var X,P={blocking:function(R){R.close()}, closed:q,MVf:q,upgrade:this.options.upgrade};return this.N=X=n()};var EY=new Gn("YtIdbMeta",{PG:{databases:{kd:1}},upgrade:function(n,q){q(1)&&g.a4(n,"databases",{keyPath:"actualName"})}});var KW,Yd=new function(){}(new function(){});new g.cR;g.m(B3,Gn);B3.prototype.X=function(n,q,w){w=w===void 0?{}:w;return(this.options.shared?Sfy:K7s)(n,q,Object.assign({},w))}; B3.prototype.delete=function(n){n=n===void 0?{}:n;return(this.options.shared?Z9z:u6z)(this.name,n)};var Iof={},zk3=g.Qc("ytGcfConfig",{PG:(Iof.coldConfigStore={kd:1},Iof.hotConfigStore={kd:1},Iof),shared:!1,upgrade:function(n,q){q(1)&&(g.v3(g.a4(n,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.v3(g.a4(n,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.m(JN,g.A);JN.prototype.Xf=function(){for(var n=g.a(this.X),q=n.next();!q.done;q=n.next()){var w=this.N;q=w.indexOf(q.value);q>=0&&w.splice(q,1)}this.X.length=0;g.A.prototype.Xf.call(this)};wI.prototype.zP=function(n){this.hotHashData=n;g.nj("yt.gcf.config.hotHashData",this.hotHashData||null)};var kNv=typeof TextEncoder!=="undefined"?new TextEncoder:null,oH0=kNv?function(n){return kNv.encode(n)}:function(n){n=g.Vk(n); for(var q=new Uint8Array(n.length),w=0;w=q?!1:!0}; g.d.sO=function(){var n=this;if(!pH(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.GT.R9("QUEUED",this.Vp).then(function(q){q&&!n.Gl(q,n.hn)?n.S6.eG(function(){return g.b(function(w){if(w.X==1)return q.id===void 0?w.f5(2):g.l(w,n.GT.PC(q.id,n.Vp),2);n.sO();g.yy(w)})}):n.Cx.ML()&&n.ib()})};var $s;var tzO={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,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};var jxD={},Ppm=g.Qc("ServiceWorkerLogsDatabase",{PG:(jxD.SWHealthLog={kd:1},jxD),shared:!0,upgrade:function(n,q){q(1)&&g.v3(g.a4(n,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var M7={},jwy=0;var xs;h8.prototype.requestComplete=function(n,q){q&&(this.X=!0);n=this.removeParams(n);this.N.get(n)||this.N.set(n,q)}; h8.prototype.isEndpointCFR=function(n){n=this.removeParams(n);return(n=this.N.get(n))?!1:n===!1&&this.X?!0:null}; h8.prototype.removeParams=function(n){return n.split("?")[0]}; h8.prototype.removeParams=h8.prototype.removeParams;h8.prototype.isEndpointCFR=h8.prototype.isEndpointCFR;h8.prototype.requestComplete=h8.prototype.requestComplete;h8.getInstance=ld;g.m(Gg,g.IR);g.d=Gg.prototype;g.d.ML=function(){return this.N.ML()}; g.d.h_=function(n){this.N.N=n}; g.d.PP=function(){var n=window.navigator.onLine;return n===void 0?!0:n}; g.d.VR=function(){this.X=!0}; g.d.listen=function(n,q){return this.N.listen(n,q)}; g.d.B$=function(n){n=M4(this.N,n);n.then(function(q){g.OU("use_cfr_monitor")&&ld().requestComplete("generate_204",q)}); return n}; Gg.prototype.sendNetworkCheckRequest=Gg.prototype.B$;Gg.prototype.listen=Gg.prototype.listen;Gg.prototype.enableErrorFlushing=Gg.prototype.VR;Gg.prototype.getWindowStatus=Gg.prototype.PP;Gg.prototype.networkStatusHint=Gg.prototype.h_;Gg.prototype.isNetworkAvailable=Gg.prototype.ML;Gg.getInstance=fOu;g.m(g.CH,g.IR);g.CH.prototype.ML=function(){var n=g.w0("yt.networkStatusManager.instance.isNetworkAvailable");return n?n.bind(this.X)():!0}; g.CH.prototype.h_=function(n){var q=g.w0("yt.networkStatusManager.instance.networkStatusHint").bind(this.X);q&&q(n)}; g.CH.prototype.B$=function(n){var q=this,w;return g.b(function(X){w=g.w0("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(q.X);return g.OU("skip_network_check_if_cfr")&&ld().isEndpointCFR("generate_204")?X.return(new Promise(function(P){var R;q.h_(((R=window.navigator)==null?void 0:R.onLine)||!0);P(q.ML())})):w?X.return(w(n)):X.return(!0)})};var E9;g.m(oA,Tg);oA.prototype.writeThenSend=function(n,q){q||(q={});q=A8(n,q);g.YN()||(this.N=!1);Tg.prototype.writeThenSend.call(this,n,q)}; oA.prototype.sendThenWrite=function(n,q,w){q||(q={});q=A8(n,q);g.YN()||(this.N=!1);Tg.prototype.sendThenWrite.call(this,n,q,w)}; oA.prototype.sendAndWrite=function(n,q){q||(q={});q=A8(n,q);g.YN()||(this.N=!1);Tg.prototype.sendAndWrite.call(this,n,q)}; oA.prototype.awaitInitialization=function(){return this.C.promise};var tYO=g.W0.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.nj("ytNetworklessLoggingInitializationOptions",tYO);g.Ys.prototype.isReady=function(){!this.config_&&OcT()&&(this.config_=g.Po());return!!this.config_};var sx0,ud,Qw;sx0=g.W0.ytPubsubPubsubInstance||new g.de;ud=g.W0.ytPubsubPubsubSubscribedKeys||{};Qw=g.W0.ytPubsubPubsubTopicToKeys||{};g.Bo=g.W0.ytPubsubPubsubIsSynchronous||{};g.de.prototype.subscribe=g.de.prototype.subscribe;g.de.prototype.unsubscribeByKey=g.de.prototype.iI;g.de.prototype.publish=g.de.prototype.publish;g.de.prototype.clear=g.de.prototype.clear;g.nj("ytPubsubPubsubInstance",sx0);g.nj("ytPubsubPubsubTopicToKeys",Qw);g.nj("ytPubsubPubsubIsSynchronous",g.Bo); g.nj("ytPubsubPubsubSubscribedKeys",ud);var VYs={};g.m(k2,g.A);k2.prototype.append=function(n){if(!this.X)throw Error("This does not support the append operation");n=n.WQ();this.WQ().appendChild(n)}; g.m(rP,k2);rP.prototype.WQ=function(){return this.N};g.m(j2,g.A);j2.prototype.onTouchStart=function(n){this.G=!0;this.X=n.touches.length;this.N.isActive()&&(this.N.stop(),this.K=!0);n=n.touches;this.D=Fuh(this,n)||n.length!=1;var q=n.item(0);this.D||!q?this.L=this.V=Infinity:(this.V=q.clientX,this.L=q.clientY);for(q=this.C.length=0;q=0)}if(q||n&&Math.pow(n.clientX-this.V,2)+Math.pow(n.clientY-this.L,2)>25)this.W=!0}; j2.prototype.onTouchEnd=function(n){var q=n.changedTouches;q&&this.G&&this.X==1&&!this.W&&!this.K&&!this.D&&Fuh(this,q)&&(this.qP=n,this.N.start());this.X=n.touches.length;this.X===0&&(this.W=this.G=!1,this.C.length=0);this.K=!1};var e2=Date.now().toString();var Us={};var aj=Symbol("injectionDeps");dP.prototype.toString=function(){return"InjectionToken("+this.name+")"}; Lum.prototype.resolve=function(n){return n instanceof gP?Vp(this,n.key,[],!0):Vp(this,n,[])};var pR;var F1=window;var Mi=g.OU("web_enable_lifecycle_monitoring")&&$2()!==0,Cph=g.OU("web_enable_lifecycle_monitoring");hcT.prototype.cancel=function(){for(var n=g.a(this.N),q=n.next();!q.done;q=n.next())q=q.value,q.jobId===void 0||q.c$||this.scheduler.vO(q.jobId),q.c$=!0;this.X.resolve()};g.d=x2.prototype;g.d.install=function(n){this.plugins.push(n);return this}; g.d.uninstall=function(){var n=this;g.bs.apply(0,arguments).forEach(function(q){q=n.plugins.indexOf(q);q>-1&&n.plugins.splice(q,1)})}; g.d.transition=function(n,q){var w=this;Mi&&xNO(this.state);var X=this.transitions.find(function(R){return Array.isArray(R.from)?R.from.find(function(c){return c===w.state&&R.to===n}):R.from===w.state&&R.to===n}); if(X){this.X&&(lOh(this.X),this.X=void 0);Evs(this,n,q);this.state=n;Mi&&vq(this.state);X=X.action.bind(this);var P=this.plugins.filter(function(R){return R[n]}).map(function(R){return R[n]}); X(GVs(this,P),q)}else throw Error("no transition specified from "+this.state+" to "+n);}; g.d.aFp=function(n){var q=g.bs.apply(1,arguments);g.Qs();for(var w=g.a(n),X=w.next(),P={};!X.done;P={XT:void 0},X=w.next())P.XT=X.value,IKu(function(R){return function(){hP(R.XT.name);Gv(function(){return R.XT.callback.apply(R.XT,g.D(q))}); l0(R.XT.name)}}(P))}; g.d.C7n=function(n){var q=g.bs.apply(1,arguments),w,X,P,R;return g.b(function(c){c.X==1&&(g.Qs(),w=g.a(n),X=w.next(),P={});if(c.X!=3){if(X.done)return c.f5(0);P.Lm=X.value;P.sQ=void 0;R=function(k){return function(){hP(k.Lm.name);var r=Gv(function(){return k.Lm.callback.apply(k.Lm,g.D(q))}); mI(r)?k.sQ=g.OU("web_lifecycle_error_handling_killswitch")?r.then(function(){l0(k.Lm.name)}):r.then(function(){l0(k.Lm.name)},function(e){DNm(e); l0(k.Lm.name)}):l0(k.Lm.name)}}(P); IKu(R);return P.sQ?g.l(c,P.sQ,3):c.f5(3)}P={Lm:void 0,sQ:void 0};X=w.next();return c.f5(2)})}; g.d.P5=function(n){var q=g.bs.apply(1,arguments),w=this,X=n.map(function(P){return{mq:function(){hP(P.name);Gv(function(){return P.callback.apply(P,g.D(q))}); l0(P.name)}, priority:DA(w,P)}}); X.length&&(this.X=new hcT(X))}; g.j3.Object.defineProperties(x2.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Es;g.m(CR,x2);CR.prototype.K=function(n,q){var w=this;this.N=g.u4(0,function(){w.currentState==="application_navigating"&&w.transition("none")},5E3); n(q==null?void 0:q.event)}; CR.prototype.D=function(n,q){this.N&&(g.DK.vO(this.N),this.N=null);n(q==null?void 0:q.event)};var jh=[];g.nj("yt.logging.transport.getScrapedGelPayloads",function(){return jh});oj.prototype.storePayload=function(n,q){n=b0(n);this.store[n]?this.store[n].push(q):(this.X={},this.store[n]=[q]);this.N++;g.OU("more_accurate_gel_parser")&&(q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(q));return n}; oj.prototype.smartExtractMatchingEntries=function(n){if(!n.keys.length)return[];for(var q=Y2(this,n.keys.splice(0,1)[0]),w=[],X=0;X=0){X=!1;break a}}X=!0}X&&(q=LC(q))&&this.Gg(q)}}; g.d.l0=function(n){return n}; g.d.onTouchStart=function(n){this.vW.onTouchStart(n)}; g.d.onTouchMove=function(n){this.vW.onTouchMove(n)}; g.d.onTouchEnd=function(n){if(this.vW)this.vW.onTouchEnd(n)}; g.d.Gg=function(n){this.layoutId?this.QT.executeCommand(n,this.layoutId):(n=new g.b4("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.pC(n))}; g.d.createServerVe=function(n,q){this.api.createServerVe(n,this);this.api.setTrackingParams(n,q)}; g.d.logVisibility=function(n,q){this.api.hasVe(n)&&this.api.logVisibility(n,q,this.interactionLoggingClientData)}; g.d.Xf=function(){this.clear(null);this.wM(this.Ne);for(var n=g.a(this.WW),q=n.next();!q.done;q=n.next())this.wM(q.value);g.R6.prototype.Xf.call(this)};g.m(T3,cl); T3.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);this.N=q;if(q.text==null&&q.icon==null)g.TQ(Error("ButtonRenderer did not have text or an icon set."));else{switch(q.style||null){case "STYLE_UNKNOWN":n="ytp-ad-button-link";break;default:n=null}n!=null&&g.N4(this.element,n);q.text!=null&&(n=g.kY(q.text),g.LV(n)||(this.element.setAttribute("aria-label",n),this.C=new g.R6({J:"span",Y:"ytp-ad-button-text",Ag:n}),g.K(this,this.C),this.C.wl(this.element)));q.accessibilityData&&q.accessibilityData.accessibilityData&& q.accessibilityData.accessibilityData.label&&!g.LV(q.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",q.accessibilityData.accessibilityData.label);q.icon!=null&&(q=pp(q.icon,this.W),q!=null&&(this.X=new g.R6({J:"span",Y:"ytp-ad-button-icon",S:[q]}),g.K(this,this.X)),this.D?tU(this.element,this.X.element,0):this.X.wl(this.element))}}; T3.prototype.clear=function(){this.hide()}; T3.prototype.onClick=function(n){cl.prototype.onClick.call(this,n);n=g.a(ENs(this));for(var q=n.next();!q.done;q=n.next())q=q.value,this.layoutId?this.QT.executeCommand(q,this.layoutId):g.pC(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.m(F4,g.A);F4.prototype.Xf=function(){this.X&&g.th(this.X);this.N.clear();$Y=null;g.A.prototype.Xf.call(this)}; F4.prototype.register=function(n,q){q&&this.N.set(n,q)}; var $Y=null;g.m(M3,cl); M3.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);n=q.hoverText||null;q=q.button&&g.u(q.button,g.ZR)||null;q==null?g.pC(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new T3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,void 0,void 0,void 0,void 0,this.C),g.K(this,this.button),this.button.init(WW("button"),q,this.macros),n&&this.button.element.setAttribute("aria-label",g.kY(n)),this.button.wl(this.element),this.L&&!g.Wt(this.button.element, "ytp-ad-clickable")&&g.N4(this.button.element,"ytp-ad-clickable"),this.C&&g.N4(this.button.element,"ytp-ad-hover-text-button--clean-player"),n&&(this.X=new g.R6({J:"div",Y:"ytp-ad-hover-text-container"}),this.D&&(q=new g.R6({J:"div",Y:"ytp-ad-hover-text-callout"}),q.wl(this.X.element),g.K(this,q)),g.K(this,this.X),this.X.wl(this.element),q=vl(n),tU(this.X.element,q,0)),this.show())}; M3.prototype.hide=function(){this.button&&this.button.hide();this.X&&this.X.hide();cl.prototype.hide.call(this)}; M3.prototype.show=function(){this.button&&this.button.show();cl.prototype.show.call(this)};g.m(DF,cl); DF.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);w=(n=q.thumbnail)&&xY(n)||"";g.LV(w)?Math.random()<.01&&g.TQ(Error("Found AdImage without valid image URL")):(this.N?g.K$(this.element,"backgroundImage","url("+w+")"):rr(this.element,{src:w}),rr(this.element,{alt:n&&n.accessibility&&n.accessibility.label||""}),q&&q.adRendererCommands&&q.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; DF.prototype.clear=function(){this.hide()};g.m(h5,cl);g.d=h5.prototype;g.d.hide=function(){cl.prototype.hide.call(this);this.C&&this.C.focus()}; g.d.show=function(){this.C=document.activeElement;cl.prototype.show.call(this);this.W.focus()}; g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);this.X=q;q.dialogMessages||q.title!=null?q.confirmLabel==null?g.pC(Error("ConfirmDialogRenderer.confirmLabel was not set.")):q.cancelLabel==null?g.pC(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Y8u(this,q):g.pC(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.d.clear=function(){g.Vs(this.N);this.hide()}; g.d.KE=function(){this.hide()}; g.d.WL=function(){var n=this.X.cancelEndpoint;n&&(this.layoutId?this.QT.executeCommand(n,this.layoutId):g.pC(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.d.ZW=function(){var n=this.X.confirmNavigationEndpoint||this.X.confirmEndpoint;n&&(this.layoutId?this.QT.executeCommand(n,this.layoutId):g.pC(Error("Missing layoutId for confirm dialog.")));this.hide()};g.m(lm,cl);g.d=lm.prototype; g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);this.C=q;if(q.defaultText==null&&q.defaultIcon==null)g.pC(Error("ToggleButtonRenderer must have either text or icon set."));else if(q.defaultIcon==null&&q.toggledIcon!=null)g.pC(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(q.style){switch(q.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":n="ytp-ad-toggle-button-default-style";break;default:n=null}n!=null&&g.N4(this.W,n)}n={};q.defaultText? (w=g.kY(q.defaultText),g.LV(w)||(n.buttonText=w,this.api.B().experiments.BW("a11y_h5_associate_survey_question")||this.N.setAttribute("aria-label",w),this.api.B().experiments.BW("fix_h5_toggle_button_a11y")&&this.X.setAttribute("aria-label",w))):g.wb(this.HW,!1);q.defaultTooltip&&(n.tooltipText=q.defaultTooltip,this.N.hasAttribute("aria-label")||this.X.setAttribute("aria-label",q.defaultTooltip));q.defaultIcon?(w=pp(q.defaultIcon),this.updateValue("untoggledIconTemplateSpec",w),q.toggledIcon?(this.PW= !0,w=pp(q.toggledIcon),this.updateValue("toggledIconTemplateSpec",w)):(g.wb(this.L,!0),g.wb(this.D,!1)),g.wb(this.N,!1)):g.wb(this.X,!1);g.fV(n)||this.update(n);q.isToggled&&(g.N4(this.W,"ytp-ad-toggle-button-toggled"),this.toggleButton(q.isToggled));G3(this);this.j(this.element,"change",this.Ry);this.show()}}; g.d.onClick=function(n){this.WW.length>0&&(this.toggleButton(!this.isToggled()),this.Ry());cl.prototype.onClick.call(this,n)}; g.d.Ry=function(){g.XW(this.W,"ytp-ad-toggle-button-toggled",this.isToggled());for(var n=g.a(K13(this,this.isToggled())),q=n.next();!q.done;q=n.next())q=q.value,this.layoutId?this.QT.executeCommand(q,this.layoutId):g.pC(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);G3(this)}; g.d.clear=function(){this.hide()}; g.d.toggleButton=function(n){g.XW(this.W,"ytp-ad-toggle-button-toggled",n);this.N.checked=n;G3(this)}; g.d.isToggled=function(){return this.N.checked};g.m(Cp,ys);Cp.prototype.K=function(n){if(Array.isArray(n)){n=g.a(n);for(var q=n.next();!q.done;q=n.next())q=q.value,q instanceof S8s&&this.C(q)}};g.m(ED,cl);g.d=ED.prototype;g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);q.reasons?q.confirmLabel==null?g.pC(Error("AdFeedbackRenderer.confirmLabel was not set.")):(q.cancelLabel==null&&g.TQ(Error("AdFeedbackRenderer.cancelLabel was not set.")),q.title==null&&g.TQ(Error("AdFeedbackRenderer.title was not set.")),ZDh(this,q)):g.pC(Error("AdFeedbackRenderer.reasons were not set."))}; g.d.clear=function(){dt(this.D);dt(this.L);this.W.length=0;this.hide()}; g.d.hide=function(){this.N&&this.N.hide();this.X&&this.X.hide();cl.prototype.hide.call(this);this.C&&this.C.focus()}; g.d.show=function(){this.N&&this.N.show();this.X&&this.X.show();this.C=document.activeElement;cl.prototype.show.call(this);this.D.focus()}; g.d.wf=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.d.qjf=function(){this.hide()}; o6.prototype.WQ=function(){return this.N.element}; o6.prototype.getCommand=function(){return this.X}; o6.prototype.isChecked=function(){return this.C.checked};g.m(bm,h5);bm.prototype.KE=function(n){h5.prototype.KE.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; bm.prototype.WL=function(n){h5.prototype.WL.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; bm.prototype.ZW=function(n){h5.prototype.ZW.call(this,n);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.m(A5,cl);g.d=A5.prototype; g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);this.D=q;if(q.dialogMessage==null&&q.title==null)g.pC(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{q.confirmLabel==null&&g.TQ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(n=q.closeOverlayRenderer&&g.u(q.closeOverlayRenderer,g.ZR)||null)this.N=new T3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.K(this,this.N),this.N.init(WW("button"),n,this.macros),this.N.wl(this.element);q.title&&(n=g.kY(q.title),this.updateValue("title",n));if(q.adReasons)for(n=q.adReasons,w=0;w=this.n5?(this.PW.hide(),this.Ff=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(n=Math.max(0,Math.ceil((this.n5-n)/1E3)),n!=this.je&&(SV(this.C,{TIME_REMAINING:String(n)}),this.je=n)))}};g.m(Wl,um);g.d=Wl.prototype; g.d.init=function(n,q,w){um.prototype.init.call(this,n,q,w);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if((n=q.actionButton&&g.u(q.actionButton,g.ZR))&&n.navigationEndpoint){var X=this.api.getVideoData(2);if(X!=null)if(q.image&&q.image.thumbnail){var P=q.image.thumbnail.thumbnails;P!=null&&P.length>0&&g.LV(g.x1(P[0].url))&&(P[0].url=X.profilePicture)}else g.TQ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(WW("ad-image"),q.image,w);this.D.init(WW("ad-text"), q.headline,w);this.W.init(WW("ad-text"),q.description,w);this.X.init(WW("button"),n,w);w=Ef(this.X.element);C9(this.X.element,w+" This link opens in new tab");this.PW=n.navigationEndpoint;this.api.WV()||this.show();this.api.B().Z("enable_larger_flyout_cta_on_desktop")&&(this.C5("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.C5("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.C5("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.C5("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.C5("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.C5("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-large"),this.X.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.C5("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.mG.bind(this));this.HW=q.startMs||0;Bl(this)}else g.pC(Error("FlyoutCtaRenderer has no valid action button."));else g.pC(Error("FlyoutCtaRenderer has no description AdText."));else g.pC(Error("FlyoutCtaRenderer has no headline AdText."));else g.TQ(Error("FlyoutCtaRenderer has no image."))}; g.d.onClick=function(n){um.prototype.onClick.call(this,n);this.api.pauseVideo();!g.gr(this.X.element,n.target)&&this.PW&&(this.layoutId?this.QT.executeCommand(this.PW,this.layoutId):g.pC(Error("Missing layoutId for flyout cta.")))}; g.d.Um=function(){if(this.N){var n=this.N.getProgressState();(n&&n.current||this.n5)&&1E3*n.current>=this.HW&&(Q1(this),g.qX(this.element,"ytp-flyout-cta-inactive"),this.X.element.removeAttribute("tabIndex"))}}; g.d.Vd=function(){this.clear()}; g.d.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.mG.bind(this))}; g.d.show=function(){this.X&&this.X.show();um.prototype.show.call(this)}; g.d.hide=function(){this.X&&this.X.hide();um.prototype.hide.call(this)}; g.d.mG=function(n){n=="hidden"?this.show():this.hide()};g.m(N3,cl);g.d=N3.prototype; g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);this.N=q;if(this.N.rectangle)for(n=this.N.likeButton&&g.u(this.N.likeButton,FH),q=this.N.dislikeButton&&g.u(this.N.dislikeButton,FH),this.C.init(WW("toggle-button"),n,w),this.X.init(WW("toggle-button"),q,w),this.j(this.element,"change",this.ym),this.W.show(100),this.show(),w=g.a(this.N&&this.N.impressionCommands||[]),n=w.next();!n.done;n=w.next())n=n.value,this.layoutId?this.QT.executeCommand(n,this.layoutId):g.pC(Error("Missing layoutId for instream user sentiment."))}; g.d.clear=function(){this.hide()}; g.d.hide=function(){this.C.hide();this.X.hide();cl.prototype.hide.call(this)}; g.d.show=function(){this.C.show();this.X.show();cl.prototype.show.call(this)}; g.d.ym=function(){Lpy(this.element,"ytp-ad-instream-user-sentiment-selected");this.N.postMessageAction&&this.api.Uq("onYtShowToast",this.N.postMessageAction);this.W.hide()}; g.d.onClick=function(n){this.WW.length>0&&this.ym();cl.prototype.onClick.call(this,n)};g.m(nX,g.A);g.d=nX.prototype;g.d.Xf=function(){this.reset();g.A.prototype.Xf.call(this)}; g.d.reset=function(){g.Vs(this.W);this.D=!1;this.N&&this.N.stop();this.K.stop();this.C&&(this.C=!1,this.G.play())}; g.d.start=function(){this.reset();this.W.j(this.X,"mouseover",this.NV,this);this.W.j(this.X,"mouseout",this.LF,this);this.qP&&(this.W.j(this.X,"focusin",this.NV,this),this.W.j(this.X,"focusout",this.LF,this));this.N?this.N.start():(this.D=this.C=!0,g.K$(this.X,{opacity:this.L}))}; g.d.NV=function(){this.C&&(this.C=!1,this.G.play());this.K.stop();this.N&&this.N.stop()}; g.d.LF=function(){this.D?this.K.start():this.N&&this.N.start()}; g.d.Jd=function(){this.C||(this.C=!0,this.V.play(),this.D=!0)};var Iau=[new qF("b.f_",!1,0),new qF("j.s_",!1,2),new qF("r.s_",!1,4),new qF("e.h_",!1,6),new qF("i.s_",!0,8),new qF("s.t_",!1,10),new qF("p.h_",!1,12),new qF("s.i_",!1,14),new qF("f.i_",!1,16),new qF("a.b_",!1,18),new qF("a.o_",!1),new qF("g.o_",!1,22),new qF("p.i_",!1,24),new qF("p.m_",!1),new qF("n.k_",!0,20),new qF("i.f_",!1),new qF("a.s_",!0),new qF("m.c_",!1),new qF("n.h_",!1,26),new qF("o.p_",!1),new qF("m.p_",!0,28),new qF("o.a_",!1),new qF("d.p_",!1),new qF("e.i_",!1)].reduce(function(n,q){n[q.X]= q;return n},{});g.m(r_,um);g.d=r_.prototype; g.d.init=function(n,q,w){um.prototype.init.call(this,n,q,w);this.PW=q;(this.HW=rNs(this))&&g.TQ(Error("hasAdControlInClickCommands_ is true."));if(!q||g.fV(q))g.pC(Error("SkipButtonRenderer was not specified or empty."));else if(!q.message||g.fV(q.message))g.pC(Error("SkipButtonRenderer.message was not specified or empty."));else if(n=this.D?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},q=pp(n),q==null?g.pC(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+n.iconType+".")): (this.api.B().Z("disable_touch_events_on_skip_button")&&(q.U=Object.assign({},q.U,{"aria-hidden":"true",PhT:"false"})),this.C=new g.R6({J:"button",Jg:[this.D?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],S:[{J:"span",Y:this.D?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",S:[q]}]}),g.K(this,this.C),this.C.wl(this.W.element),this.X=new Kp(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,"ytp-ad-skip-button-text"),this.D&&this.X.element.classList.add("ytp-ad-skip-button-text-centered"), this.X.init(WW("ad-text"),this.PW.message,w),g.K(this,this.X),tU(this.C.element,this.X.element,0)),!this.api.B().Z("disable_touch_events_on_skip_button")){var X=X===void 0?null:X;w=this.api.B();!(this.WW.length>0)&&w.X&&(SC?0:"ontouchstart"in document.documentElement&&(WDs()||kO()))&&(this.wM(this.Ne),X&&this.wM(X),this.WW=[this.j(this.element,"touchstart",this.onTouchStart,this),this.j(this.element,"touchmove",this.onTouchMove,this),this.j(this.element,"touchend",this.onTouchEnd,this)])}}; g.d.clear=function(){this.n5.reset();this.hide()}; g.d.hide=function(){this.W.hide();this.X&&this.X.hide();Q1(this);um.prototype.hide.call(this)}; g.d.onClick=function(n){if(this.C!=null){if(n){var q=n||window.event;q.returnValue=!1;q.preventDefault&&q.preventDefault()}var w;if(Rv0(n,{contentCpn:((w=this.api.getVideoData(1))==null?void 0:w.clientPlaybackNonce)||""})===0)this.api.Uq("onAbnormalityDetected");else if(um.prototype.onClick.call(this,n),this.publish("j"),this.api.Uq("onAdSkip"),this.Ff||!this.HW)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.d.l0=function(n){if(!this.Ff)return this.HW&&R0("SkipButton click commands not pruned while ALC exist"),n;var q,w=(q=g.u(n,g.j6))==null?void 0:q.commands;if(!w)return n;n=[];for(q=0;q=this.D&&j40(this,!0)};g.m(e6,T3);e6.prototype.init=function(n,q,w){T3.prototype.init.call(this,n,q,w);n=!1;q.text!=null&&(n=g.kY(q.text),n=!g.LV(n));n?q.navigationEndpoint==null?g.TQ(Error("No visit advertiser clickthrough provided in renderer,")):q.style!=="STYLE_UNKNOWN"?g.TQ(Error("Button style was not a link-style type in renderer,")):this.show():g.TQ(Error("No visit advertiser text was present in the renderer."))};g.m(fX,cl); fX.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);n=q.text;g.LV(I6(n))?g.TQ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(n&&n.text&&(q=n.text,this.C&&!this.X&&(q=this.api.B(),q=n.text+" "+(q&&q.X?"\u2022":"\u00b7")),q={text:q,isTemplated:n.isTemplated},n.style&&(q.style=n.style),n.targetId&&(q.targetId=n.targetId),n=new Kp(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),n.init(WW("simple-ad-badge"),q,w),n.wl(this.element),g.K(this,n)),this.show())}; fX.prototype.clear=function(){this.hide()};g.m(Op,N0);g.m(i$,g.np);g.d=i$.prototype;g.d.j5=function(){return this.durationMs}; g.d.stop=function(){this.N&&this.Sg.wM(this.N)}; g.d.hU=function(n){this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:n.current};this.publish("h")}; g.d.getProgressState=function(){return this.X}; g.d.jS=function(n){g.k0(n,2)&&this.publish("g")};g.m(Hn,g.np);g.d=Hn.prototype;g.d.j5=function(){return this.durationMs}; g.d.start=function(){this.N||(this.N=!0,this.timer.start())}; g.d.stop=function(){this.N&&(this.N=!1,this.timer.stop())}; g.d.hU=function(){this.NT+=100;var n=!1;this.NT>this.durationMs&&(this.NT=this.durationMs,this.timer.stop(),n=!0);this.X={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.NT/1E3};this.publish("h");n&&this.publish("g")}; g.d.getProgressState=function(){return this.X};g.m(d_,um);g.d=d_.prototype;g.d.init=function(n,q,w){um.prototype.init.call(this,n,q,w);var X;if(q==null?0:(X=q.templatedCountdown)==null?0:X.templatedAdText){n=q.templatedCountdown.templatedAdText;if(!n.isTemplated){g.TQ(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.X=new Kp(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);this.X.init(WW("ad-text"),n,{});this.X.wl(this.element);g.K(this,this.X)}this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Q1(this);um.prototype.hide.call(this)}; g.d.Vd=function(){this.hide()}; g.d.Um=function(){if(this.N!=null){var n=this.N.getProgressState();if(n!=null&&n.current!=null&&this.X){var q=this.N instanceof i$?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:n.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.N instanceof Hn?n.seekableEnd:this.api.getDuration(2,!1);n=n.current;var w,X,P=((w=this.api.getVideoData())==null?0:(X=w.M7)==null?0:X.call(w))?Math.max(q-n,0):q-n;SV(this.X,{FORMATTED_AD_DURATION_REMAINING:String(g.Up(P)), TIME_REMAINING:String(Math.ceil(P))})}}}; g.d.show=function(){Bl(this);um.prototype.show.call(this)};g.m(g_,Kp);g_.prototype.onClick=function(n){Kp.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType)};g.m(yO,cl);yO.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(n=q.content){g.mJ(this.element,n);var w,X;q=((w=q.interaction)==null?void 0:(X=w.accessibility)==null?void 0:X.label)||n;this.element.setAttribute("aria-label",q)}else g.pC(Error("AdSimpleAttributedString does not have text content"))}; yO.prototype.clear=function(){this.hide()}; yO.prototype.onClick=function(n){cl.prototype.onClick.call(this,n)};g.m(a0,cl); a0.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});(n=q.label)&&n.content&&!g.LV(n.content)?(this.adBadgeText.init(WW("ad-simple-attributed-string"),new ma(n)),(q=q.adPodIndex)&&q.content&&!g.LV(q.content)&&(this.N=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),this.N.wl(this.element),g.K(this,this.N),this.N.element.classList.add("ytp-ad-badge__pod-index"),this.N.init(WW("ad-simple-attributed-string"),new ma(q))),this.element.classList.add(this.X?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.pC(Error("No label is returned in AdBadgeViewModel."))}; a0.prototype.show=function(){this.adBadgeText.show();var n;(n=this.N)==null||n.show();cl.prototype.show.call(this)}; a0.prototype.hide=function(){this.adBadgeText.hide();var n;(n=this.N)==null||n.hide();cl.prototype.hide.call(this)};g.m(VO,cl);VO.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});(n=q.adPodIndex)&&n.content&&!g.LV(n.content)&&(this.N=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),this.N.wl(this.element),g.K(this,this.N),this.N.init(WW("ad-simple-attributed-string"),new ma(n)),q.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()}; VO.prototype.show=function(){var n;(n=this.N)==null||n.show();cl.prototype.show.call(this)}; VO.prototype.hide=function(){var n;(n=this.N)==null||n.hide();cl.prototype.hide.call(this)};g.m(pX,cl); pX.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(q!=null&&q.text){var w;if(((w=q.text)==null?0:w.content)&&!g.LV(q.text.content)){this.N=new g.R6({J:"div",Y:"ytp-ad-disclosure-banner__text",Ag:q.text.content});g.K(this,this.N);this.N.wl(this.element);var X,P;n=((X=q.interaction)==null?void 0:(P=X.accessibility)==null?void 0:P.label)||q.text.content;this.element.setAttribute("aria-label",n);var R;if((R=q.interaction)==null?0:R.onTap)this.X=new g.R6({J:"div",Y:"ytp-ad-disclosure-banner__chevron",S:[g.eV()]}), g.K(this,this.X),this.X.wl(this.element);this.show()}}else g.pC(Error("No banner text found in AdDisclosureBanner."))}; pX.prototype.clear=function(){this.hide()};g.m($0,g.R6);$0.prototype.hU=function(){var n=this.X.getProgressState(),q=n.seekableEnd;this.api.getPresentingPlayerType()===2&&(q=this.C?this.C/1E3:n.seekableEnd);this.progressBar.style.width=Fu(new Tp(n.seekableStart,q),n.current,0)*100+"%"}; $0.prototype.onStateChange=function(){g.qI(this.api.B())||(this.api.getPresentingPlayerType()===2?this.N===-1&&(this.show(),this.N=this.X.subscribe("h",this.hU,this),this.hU()):this.N!==-1&&(this.hide(),this.X.iI(this.N),this.N=-1))};g.m(vn,cl); vn.prototype.init=function(n,q,w,X){cl.prototype.init.call(this,n,q,w);if(q.skipOrPreviewRenderer){if(n=g.u(q.skipOrPreviewRenderer,Ue))w=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.X,this.L),w.wl(this.D0),w.init(WW("skip-button"),n,this.macros),g.K(this,w);if(n=g.u(q.skipOrPreviewRenderer,Ue))var P=n.skipOffsetMilliseconds}q.brandInteractionRenderer&&(n=q.brandInteractionRenderer.brandInteractionRenderer,w=new N3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT), w.wl(this.HW),w.init(WW("instream-user-sentiment"),n,this.macros),g.K(this,w));if(n=g.u(q,QFt))if(n=g.u(n,QFt))w=new Wl(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.X,!!q.showWithoutLinkedMediaLayout),g.K(this,w),w.wl(this.D),w.init(WW("flyout-cta"),n,this.macros);X=X&&X.videoAdDurationSeconds;q.adBadgeRenderer&&(w=q.adBadgeRenderer,n=g.u(w,J6),n!=null?(w=new a0(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!1),g.K(this,w),w.wl(this.N),w.init(WW("ad-badge"), n,this.macros),this.C=w.element):(n=w.simpleAdBadgeRenderer,n==null&&(n={text:{text:"An\u00fancio",isTemplated:!1}}),w=new fX(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!0),g.K(this,w),w.wl(this.N),w.init(WW("simple-ad-badge"),n,this.macros)));q.adPodIndex&&(n=g.u(q.adPodIndex,PVt),n!=null&&(w=new VO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,w),w.wl(this.N),w.init(WW("ad-pod-index"),n)));q.adDurationRemaining&&!q.showWithoutLinkedMediaLayout&& (n=q.adDurationRemaining.adDurationRemainingRenderer,n==null&&(n={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),X=new d_(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.X,X,!1),g.K(this,X),X.wl(this.N),X.init(WW("ad-duration-remaining"),n,this.macros));q.adInfoRenderer&&(X=g.u(q.adInfoRenderer,Bs))&&(n=new YY(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.element,void 0,!1),g.K(this,n),this.C!==null?this.N.insertBefore(n.element, this.C.nextSibling):n.wl(this.N),n.init(WW("ad-info-hover-text-button"),X,this.macros));q.visitAdvertiserRenderer&&(n=g.u(q.visitAdvertiserRenderer,g.ZR))&&(w=OWO(this)&&this.W?this.W:this.N)&&(X=new e6(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,X),X.wl(w),X.init(WW("visit-advertiser"),n,this.macros),lF(X.element),n=Ef(X.element),C9(X.element,n+" This link opens in new tab"));!(X=this.api.B())||g.NT(X)||g.Q2(X)||X.controlsType!="3"&&!X.disableOrganicUi||(P=new $0(this.api, this.X,P,!1),P.wl(this.n5),g.K(this,P));q.adDisclosureBannerRenderer&&(q=g.u(q.adDisclosureBannerRenderer,XwB))&&(P=new pX(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),P.wl(this.PW),P.init(WW("ad-disclosure-banner"),q),g.K(this,P));this.api.B().Z("enable_updated_html5_player_focus_style")&&g.N4(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; vn.prototype.clear=function(){this.hide()};g.x0.prototype.flush=function(n,q){n=n===void 0?[]:n;q=q===void 0?!1:q;if(g.OU("enable_client_streamz_web")){n=g.a(n);for(var w=n.next();!w.done;w=n.next())w=nox(w.value),this.N&&ae(w,IY,2,this.N),w={serializedIncrementBatch:g.p1(w.C())},g.Xc("streamzIncremented",w,{sendIsolatedPayload:q})}}; g.m(HWO,g.x0);var zIs=new Map;Ds.prototype.set=function(n,q,w){w=w!==void 0?Date.now()+w:void 0;this.N.set(n,q,w)}; Ds.prototype.get=function(n){return this.N.get(n)}; Ds.prototype.remove=function(n){this.N.remove(n)};var tIO=null;var Ep=null,o0=null,b$=null,aas=null;g.nj("yt.www.ads.eventcache.getLastCompanionData",function(){return Ep}); g.nj("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.nj("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return o0}); g.nj("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return b$}); g.nj("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return aas});var p3h=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);A2.prototype.handleResponse=function(n,q){if(!q)throw Error("request needs to be passed into ConsistencyService");var w,X;q=((w=q.MM.context)==null?void 0:(X=w.request)==null?void 0:X.consistencyTokenJars)||[];var P;(n=(P=n.responseContext)==null?void 0:P.consistencyTokenJar)&&this.replace(q,n)}; A2.prototype.replace=function(n,q){n=g.a(n);for(var w=n.next();!w.done;w=n.next())delete this.N[w.value.encryptedTokenJarContents];F$s(this,q)};var H$h=window.location.hostname.split(".").slice(-2).join("."),lx;KX.getInstance=function(){lx=g.w0("yt.clientLocationService.instance");lx||(lx=new KX,g.nj("yt.clientLocationService.instance",lx));return lx}; g.d=KX.prototype; g.d.setLocationOnInnerTubeContext=function(n){n.client||(n.client={});if(this.N)n.client.locationInfo||(n.client.locationInfo={}),n.client.locationInfo.latitudeE7=Math.floor(this.N.coords.latitude*1E7),n.client.locationInfo.longitudeE7=Math.floor(this.N.coords.longitude*1E7),n.client.locationInfo.horizontalAccuracyMeters=Math.round(this.N.coords.accuracy),n.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)n.client.locationPlayabilityToken=this.C|| this.locationPlayabilityToken}; g.d.handleResponse=function(n){var q;n=(q=n.responseContext)==null?void 0:q.locationPlayabilityToken;n!==void 0&&(this.locationPlayabilityToken=n,this.N=void 0,g.bp("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Y0(this))&&this.localStorage.set("yt-location-playability-token",n,15552E3):g.Le("YT_CL",JSON.stringify({loctok:n}),15552E3,H$h,!0))}; g.d.clearLocationPlayabilityToken=function(n){n==="TVHTML5"?(this.localStorage=Y0(this))&&this.localStorage.remove("yt-location-playability-token"):g.xA("YT_CL");this.C=void 0;this.X!==-1&&(clearTimeout(this.X),this.X=-1)}; g.d.getCurrentPositionFromGeolocation=function(){var n=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var q=!1,w=1E4;g.bp("INNERTUBE_CLIENT_NAME")==="MWEB"&&(q=!0,w=15E3);return new Promise(function(X,P){navigator.geolocation.getCurrentPosition(function(R){n.N=R;X(R)},function(R){P(R)},{enableHighAccuracy:q, maximumAge:0,timeout:w})})}; g.d.createUnpluggedLocationInfo=function(n){var q={};n=n.coords;if(n==null?0:n.latitude)q.latitudeE7=Math.floor(n.latitude*1E7);if(n==null?0:n.longitude)q.longitudeE7=Math.floor(n.longitude*1E7);if(n==null?0:n.accuracy)q.locationRadiusMeters=Math.round(n.accuracy);return q}; g.d.createLocationInfo=function(n){var q={};n=n.coords;if(n==null?0:n.latitude)q.latitudeE7=Math.floor(n.latitude*1E7);if(n==null?0:n.longitude)q.longitudeE7=Math.floor(n.longitude*1E7);return q};g.d=xUy.prototype;g.d.contains=function(n){return Object.prototype.hasOwnProperty.call(this.N,n)}; g.d.get=function(n){if(this.contains(n))return this.N[n]}; g.d.set=function(n,q){this.N[n]=q}; g.d.Bt=function(){return Object.keys(this.N)}; g.d.remove=function(n){delete this.N[n]};u$.prototype.getModuleId=function(n){return n.serviceId.getModuleId()}; u$.prototype.get=function(n){a:{var q=this.mappings.get(n.toString());switch(q.type){case "mapping":n=q.value;break a;case "factory":q=q.value();this.mappings.set(n.toString(),{type:"mapping",value:q});n=q;break a;default:n=e9(q)}}return n}; u$.prototype.registerService=function(n,q){this.mappings.set(n.toString(),{type:"mapping",value:q});return n}; new u$;var G_={},DUO=(G_.WEB_UNPLUGGED="^unplugged/",G_.WEB_UNPLUGGED_ONBOARDING="^unplugged/",G_.WEB_UNPLUGGED_OPS="^unplugged/",G_.WEB_UNPLUGGED_PUBLIC="^unplugged/",G_.WEB_CREATOR="^creator/",G_.WEB_KIDS="^kids/",G_.WEB_EXPERIMENTS="^experiments/",G_.WEB_MUSIC="^music/",G_.WEB_REMIX="^music/",G_.WEB_MUSIC_EMBEDDED_PLAYER="^music/",G_.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",G_);Zs.prototype.K=function(n,q,w){q=q===void 0?{}:q;w=w===void 0?IA:w;var X={context:g.S6(n.clickTrackingParams,!1,this.W)};var P=this.X(n);if(P){this.N(X,P,q);var R;q=g.QO(this.C());(P=(R=g.u(n.commandMetadata,g.T_))==null?void 0:R.apiUrl)&&(q=P);R=dLO(DI(q));n=Object.assign({},{command:n},void 0);X={input:R,ew:hV(R),MM:X,config:n};X.config.ou?X.config.ou.identity=w:X.config.ou={identity:w};return X}w=new g.b4("Error: Failed to create Request from Command.",n);g.pC(w)}; g.j3.Object.defineProperties(Zs.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.m(J2,Zs);g.m(zp,J2);zp.prototype.K=function(){return{input:"/getDatasyncIdsEndpoint",ew:hV("/getDatasyncIdsEndpoint","GET"),MM:{}}}; zp.prototype.C=function(){return[]}; zp.prototype.X=function(){}; zp.prototype.N=function(){};var UYh={},fuu=(UYh.GET_DATASYNC_IDS=Bn(zp),UYh);var Ca={},t4G=(Ca["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Ca["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Ca["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Ca["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Ca["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Ca["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Ca["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", Ca["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Ca["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Ca["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Ca["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Ca["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Ca["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Ca["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Ca["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", Ca["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Ca["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Ca["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Ca["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Ca["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Ca["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Ca["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", Ca["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Ca.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Ca["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Ca["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Ca["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Ca["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Ca["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Ca["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", Ca["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Ca["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Ca["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Ca["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Ca["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Ca["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Ca["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Ca["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Ca["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Ca["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Ca.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Ca["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Ca["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Ca["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Ca["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Ca["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Ca["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Ca["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Ca["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Ca["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Ca["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Ca["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Ca["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Ca["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Ca["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Ca["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Ca["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Ca["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Ca["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Ca["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Ca["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Ca["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", Ca["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Ca["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Ca["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Ca["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Ca["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Ca["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Ca["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Ca["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Ca["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", Ca["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Ca["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Ca["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Ca["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Ca["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Ca["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Ca["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Ca["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", Ca),EK={},bW0=(EK.auto_search="LATENCY_ACTION_AUTO_SEARCH",EK.ad_to_ad="LATENCY_ACTION_AD_TO_AD",EK.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",EK.app_startup="LATENCY_ACTION_APP_STARTUP",EK.browse="LATENCY_ACTION_BROWSE",EK.cast_splash="LATENCY_ACTION_CAST_SPLASH",EK.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",EK.channels="LATENCY_ACTION_CHANNELS",EK.chips="LATENCY_ACTION_CHIPS",EK.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",EK.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", EK.editor="LATENCY_ACTION_EDITOR",EK.embed="LATENCY_ACTION_EMBED",EK.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",EK.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",EK.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",EK.explore="LATENCY_ACTION_EXPLORE",EK.favorites="LATENCY_ACTION_FAVORITES",EK.home="LATENCY_ACTION_HOME",EK.inboarding="LATENCY_ACTION_INBOARDING",EK.landing="LATENCY_ACTION_LANDING",EK.library="LATENCY_ACTION_LIBRARY",EK.live= "LATENCY_ACTION_LIVE",EK.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",EK.management="LATENCY_ACTION_MANAGEMENT",EK.mini_app="LATENCY_ACTION_MINI_APP_PLAY",EK.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",EK.onboarding="LATENCY_ACTION_ONBOARDING",EK.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",EK.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",EK.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",EK.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", EK.prebuffer="LATENCY_ACTION_PREBUFFER",EK.prefetch="LATENCY_ACTION_PREFETCH",EK.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",EK.profile_switcher="LATENCY_ACTION_LOGIN",EK.projects="LATENCY_ACTION_PROJECTS",EK.reel_watch="LATENCY_ACTION_REEL_WATCH",EK.results="LATENCY_ACTION_RESULTS",EK.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",EK.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",EK.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",EK.review="LATENCY_ACTION_REVIEW",EK.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",EK.search_ui="LATENCY_ACTION_SEARCH_UI",EK.search_suggest="LATENCY_ACTION_SUGGEST",EK.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",EK.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",EK.seek="LATENCY_ACTION_PLAYER_SEEK",EK.settings="LATENCY_ACTION_SETTINGS",EK.store="LATENCY_ACTION_STORE",EK.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",EK.tenx="LATENCY_ACTION_TENX",EK.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",EK.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", EK.watch="LATENCY_ACTION_WATCH",EK.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",EK["watch,watch7"]="LATENCY_ACTION_WATCH",EK["watch,watch7_html5"]="LATENCY_ACTION_WATCH",EK["watch,watch7ad"]="LATENCY_ACTION_WATCH",EK["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",EK.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",EK.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",EK.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",EK.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",EK.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",EK.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",EK.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",EK.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",EK);Object.assign(bW0,t4G);g.m(cK,ks);var q9m=new rI("aft-recorded",cK);var dYG=g.W0.ytLoggingGelSequenceIdObj_||{};g.nj("ytLoggingGelSequenceIdObj_",dYG);var rA=g.W0.ytLoggingLatencyUsageStats_||{};g.nj("ytLoggingLatencyUsageStats_",rA);I1.prototype.tick=function(n,q,w,X){ji(this,"tick_"+n+"_"+q)||g.Xc("latencyActionTicked",{tickName:n,clientActionNonce:q},{timestamp:w,cttAuthInfo:X})}; I1.prototype.info=function(n,q,w){var X=Object.keys(n).join("");ji(this,"info_"+X+"_"+q)||(n=Object.assign({},n),n.clientActionNonce=q,g.Xc("latencyActionInfo",n,{cttAuthInfo:w}))}; I1.prototype.jspbInfo=function(n,q,w){for(var X="",P=0;P=P.length?(q.append(P),n-=P.length):n?(q.append(new Uint8Array(P.buffer,P.byteOffset,n)),w.append(new Uint8Array(P.buffer,P.byteOffset+n,P.length-n)),n=0):w.append(P);return{h9:q,yU:w}}; nt.prototype.isFocused=function(n){return n>=this.C&&n=64&&(this.D.set(n.subarray(0,64-this.X),this.X),q=64-this.X,this.X=0,Xqu(this,this.D,0));for(;q+64<=w;q+=64)Xqu(this,n,q);q=this.start&&(n=2&&w.ssdaiAdsConfig&&R0("Unexpected ad placement renderers length",n.slot,null,{length:X.length});var P;((P=w.adSlots)==null?0:P.some(function(R){var c,k;return((c=g.u(R,Ws))==null?void 0:(k=c.adSlotMetadata)==null?void 0:k.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||X.some(function(R){var c,k,r,e; return!!((c=R.renderer)==null?0:(k=c.linearAdSequenceRenderer)==null?0:(r=k.linearAds)==null?0:r.length)||!((e=R.renderer)==null||!e.instreamVideoAdRenderer)})||TFx(n)})}; K4.prototype.fk=function(){s8x(this.N)};Sg.prototype.xO=function(){var n=this;j8u(this.X,function(){var q=Yj(n.slot.clientMetadata,"metadata_type_ad_break_request_data");return q.cueProcessedMs?n.N.get().fetch({u4:q.getAdBreakUrl,i6:new g.og(q.w5,q.WG),cueProcessedMs:q.cueProcessedMs}):n.N.get().fetch({u4:q.getAdBreakUrl,i6:new g.og(q.w5,q.WG)})})}; Sg.prototype.fk=function(){s8x(this.X)};u5.prototype.xO=function(){var n=this.slot.clientMetadata,q,w=(q=this.slot.fulfilledLayout)!=null?q:Yj(n,"metadata_type_fulfilled_layout");KUs(this.callback,this.slot,w)}; u5.prototype.fk=function(){w8(this.callback,this.slot,new z("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};QJ.prototype.build=function(n,q){return q.fulfilledLayout||BL(q,{Ej:["metadata_type_fulfilled_layout"]})?new u5(n,q):this.C(n,q)};g.m(ZN,QJ); ZN.prototype.C=function(n,q){if(BL(q,{Ej:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new K4(n,q,this.N,this.X,this.yu,this.MP,this.hg,this.cW,this.x4);if(BL(q,{Ej:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Sg(n,q,this.N,this.X,this.yu,this.MP);throw new z("Unsupported slot with type: "+q.slotType+" and client metadata: "+KN(q.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.m(Jq,QJ);Jq.prototype.C=function(n,q){throw new z("Unsupported slot with type: "+q.slotType+" and client metadata: "+KN(q.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.d=Fiy.prototype;g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.init=function(){}; g.d.release=function(){}; g.d.startRendering=function(n){if(n.layoutId!==this.layout.layoutId)this.callback.Sv(this.slot,n,new b1("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 q=Yj(n.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.oP(this.slot,n),S2T(this.C, this.slot,q)):R0("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,n)}}; g.d.Bb=function(n,q){n.layoutId!==this.layout.layoutId?this.callback.Sv(this.slot,n,new b1("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.MU(this.slot,n,q),v9u(this),Li3(this))};g.m(qm,g.np);g.d=qm.prototype;g.d.G9=function(){return this.X.slot}; g.d.Z0=function(){return this.X.layout}; g.d.init=function(){this.C.get().addListener(this)}; g.d.release=function(){this.C.get().removeListener(this);this.dispose()}; g.d.pT=function(){}; g.d.P2=function(){}; g.d.qz=function(){}; g.d.wj=function(){}; g.d.startRendering=function(n){var q=this;nI(this.X,n,function(){return void q.vn()})}; g.d.vn=function(){this.C.get().vn(this.N)}; g.d.Bb=function(n,q){var w=this;nI(this.X,n,function(){var X=w.C.get();TXh(X,w.N,3);w.N=[];w.callback.MU(w.slot,n,q)})}; g.d.Xf=function(){this.C.zp()||this.C.get().removeListener(this);g.np.prototype.Xf.call(this)}; g.j3.Object.defineProperties(qm.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.X.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.X.layout}}});rB.prototype.sF=function(n,q){q=q===void 0?!1:q;var w=(this.C.get(n)||[]).concat();if(q=q&&hZx(n)){var X=this.C.get(q);X&&w.push.apply(w,g.D(X))}ej(this,n,w);this.N.add(n);q&&this.N.add(q)}; rB.prototype.Qa=function(n,q){q=q===void 0?!1:q;if(!this.N.has(n)){var w=q&&hZx(n);w&&(q=!this.N.has(w));this.sF(n,q)}};g.m(CZY,N0);g.m(UZ,qm);g.d=UZ.prototype;g.d.ET=function(n,q){RC("ads-engagement-panel-layout",n,this.D.get().Lb,this.hg.get(),this.W,this.K,this.G9(),this.Z0(),q)}; g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),g.u(this.Z0().renderingContent,ph),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(q,w,X,P,R){return new CZY(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(n,q){this.K===q.layoutId&&(this.W===null?this.W=this.hg.get().LD():R0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)};g.m(o9y,N0);g.m(tD,qm);g.d=tD.prototype;g.d.ET=function(n,q){RC("banner-image",n,this.D.get().Lb,this.hg.get(),this.W,this.K,this.G9(),this.Z0(),q)}; g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),g.u(this.Z0().renderingContent,aS),this.callback,"metadata_type_banner_image_layout_view_model",function(q,w,X,P,R){return new o9y(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(n,q){this.K===q.layoutId&&(this.W===null?this.W=this.hg.get().LD():R0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)};g.m(dB,N0);g.m(gB,qm);g.d=gB.prototype;g.d.ET=function(n,q){RC("action-companion",n,this.D.get().Lb,this.hg.get(),this.W,this.K,this.G9(),this.Z0(),q)}; g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),g.u(this.Z0().renderingContent,gz),this.callback,"metadata_type_action_companion_ad_renderer",function(q,w,X,P,R){return new dB(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(n,q){q.layoutId===this.layout.layoutId?this.VT.Qa("impression"):this.K===q.layoutId&&(this.W===null?this.W=this.hg.get().LD():R0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)};g.m(Ykz,N0);g.m(m3,qm);g.d=m3.prototype;g.d.ET=function(n,q){RC("image-companion",n,this.D.get().Lb,this.hg.get(),this.W,this.K,this.G9(),this.Z0(),q)}; g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),g.u(this.Z0().renderingContent,m4),this.callback,"metadata_type_image_companion_ad_renderer",function(q,w,X,P,R){return new Ykz(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(n,q){q.layoutId===this.layout.layoutId?this.VT.Qa("impression"):this.K===q.layoutId&&(this.W===null?this.W=this.hg.get().LD():R0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)};g.m(SkO,N0);g.m(y0,qm);g.d=y0.prototype;g.d.ET=function(n,q){RC("shopping-companion",n,this.D.get().Lb,this.hg.get(),this.W,this.K,this.G9(),this.Z0(),q)}; g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(q,w,X,P,R){return new SkO(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(n,q){q.layoutId===this.layout.layoutId?this.VT.Qa("impression"):this.K===q.layoutId&&(this.W===null?this.W=this.hg.get().LD():R0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)};g.m(V0,qm);g.d=V0.prototype;g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(q,w,X,P,R){return new dB(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(){}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)}; g.d.ET=function(){};g.d=zZy.prototype;g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.init=function(){this.cW.get().addListener(this);this.cW.get().Yc.push(this);var n=Yj(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=Yj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cP(this.layout.pM)&&cF(this.CM.get(),this.layout.layoutId,{bA:q,Qn:n,listener:this})}; g.d.release=function(){this.cW.get().removeListener(this);mRx(this.cW.get(),this);cP(this.layout.pM)&&IT(this.CM.get(),this.layout.layoutId)}; g.d.startRendering=function(n){this.callback.oP(this.slot,n)}; g.d.Bb=function(n,q){SHs(this.MP.get())&&!this.N&&(this.VT.Qa("abandon"),this.N=!0);this.callback.MU(this.slot,n,q)}; g.d.Kd=function(n){switch(n.id){case "part2viewed":this.VT.Qa("start");this.VT.Qa("impression");break;case "videoplaytime25":this.VT.Qa("first_quartile");break;case "videoplaytime50":this.VT.Qa("midpoint");break;case "videoplaytime75":this.VT.Qa("third_quartile");break;case "videoplaytime100":SHs(this.MP.get())?this.N||(this.VT.Qa("complete"),this.N=!0):this.VT.Qa("complete");HP(this.VT)&&OZ(this.VT,Infinity,!0);ujs(this.MP.get())&&aC(this.X,Infinity,!0);break;case "engagedview":HP(this.VT)||this.VT.Qa("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:R0("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.d.onVolumeChange=function(){}; g.d.Ui=function(){}; g.d.Hd=function(){}; g.d.G1=function(){}; g.d.onFullscreenToggled=function(){}; g.d.zw=function(){}; g.d.Di=function(){}; g.d.GX=function(n){ujs(this.MP.get())&&aC(this.X,n*1E3,!1);HP(this.VT)&&OZ(this.VT,n*1E3,!1)}; g.d.ge=function(){}; g.d.FV=function(){this.VT.Qa("active_view_measurable")}; g.d.O3=function(){this.VT.Qa("active_view_viewable")}; g.d.rY=function(){this.VT.Qa("active_view_fully_viewable_audible_half_duration")}; g.d.u2=function(){this.VT.Qa("audio_measurable")}; g.d.DO=function(){this.VT.Qa("audio_audible")};g.m(pI,qm);g.d=pI.prototype;g.d.init=function(){qm.prototype.init.call(this);var n=Yj(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.Dj};this.N.push(new Op(n,this.layout.layoutId,Yj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,!0))}; g.d.tT=function(){this.W||this.cW.get().resumeVideo(1)}; g.d.startRendering=function(n){qm.prototype.startRendering.call(this,n);iy(this.cW.get(),"ad-showing");this.callback.oP(this.slot,n);this.K.SK=this}; g.d.Bb=function(n,q){qm.prototype.Bb.call(this,n,q);HF(this.cW.get(),"ad-showing");na(this.K,this)}; g.d.ET=function(n){switch(n){case "ad-info-icon-button":(this.W=this.cW.get().Rn(1))||this.cW.get().pauseVideo();break;case "visit-advertiser":this.cW.get().pauseVideo()}}; g.d.Xf=function(){qm.prototype.Xf.call(this)};g.m(Tr,N0);g.m(F3,qm);g.d=F3.prototype;g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,w,X,P,R){return new Tr(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(){}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)}; g.d.ET=function(){};g.m($t,N0);g.m(vP,qm);vP.prototype.init=function(){qm.prototype.init.call(this);this.N.push(new $t(g.u(this.layout.renderingContent,bT),this.layout.layoutId,{adsClientData:this.layout.Dj}))}; vP.prototype.ET=function(){KP(this.W.get(),this.K)&&PP(this.hg.get(),3)}; vP.prototype.startRendering=function(n){qm.prototype.startRendering.call(this,n);this.callback.oP(this.slot,n)}; vP.prototype.Xf=function(){qm.prototype.Xf.call(this)};g.m(LI,N0);g.m(Mm,qm);Mm.prototype.init=function(){qm.prototype.init.call(this);var n=g.u(this.layout.renderingContent,Sj)||Yj(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),q=wB(this.VT);this.N.push(new LI(n,q,this.layout.layoutId,{adsClientData:this.layout.Dj},!0,!0))}; Mm.prototype.startRendering=function(n){qm.prototype.startRendering.call(this,n);this.callback.oP(this.slot,n)}; Mm.prototype.ET=function(n,q){if(q===this.layout.layoutId)switch(n){case "skip-button":var w;(n=(w=Yj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&n.UZ(this.G9(),this.layout)}}; Mm.prototype.Xf=function(){qm.prototype.Xf.call(this)};Dy.prototype.build=function(n,q,w,X){if(xt(X,{Ej:["metadata_type_ad_break_response_data"],sj:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Fiy(n,w,X,this.X,this.C,this.N);throw new b1("Unsupported layout with type: "+X.layoutType+" and client metadata: "+KN(X.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.m(nYs,N0);g.m(hD,qm);g.d=hD.prototype;g.d.ET=function(n,q){RC("ads-engagement-panel",n,this.D.get().Lb,this.hg.get(),this.W,this.K,this.G9(),this.Z0(),q)}; g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),g.u(this.Z0().renderingContent,yf),this.callback,"metadata_type_ads_engagement_panel_renderer",function(q,w,X,P,R){return new nYs(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(n,q){q.layoutId===this.layout.layoutId?this.VT.Qa("impression"):this.K===q.layoutId&&(this.W===null?this.W=this.hg.get().LD():R0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)};g.m(lv,qm);g.d=lv.prototype;g.d.ET=function(n,q){RC("top-banner-image-text-icon-buttoned",n,this.D.get().Lb,this.hg.get(),this.W,this.K,this.G9(),this.Z0(),q)}; g.d.startRendering=function(n){X3(this.VT,this.G9(),this.Z0(),g.u(this.Z0().renderingContent,Vf),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(q,w,X,P,R){return new Tr(q,w,X,P,R)},this.N); qm.prototype.startRendering.call(this,n)}; g.d.oP=function(n,q){this.K===q.layoutId&&(this.W===null?this.W=this.hg.get().LD():R0("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Xf=function(){n4(this.m_(),this);qm.prototype.Xf.call(this)};Xl6.prototype.build=function(n,q,w,X){if(xt(X,qDz())||g.u(X.renderingContent,yf)!==void 0)return new hD(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);if(xt(X,ABT())||g.u(X.renderingContent,gz)!==void 0)return new gB(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);if(xt(X,Kiy())||g.u(X.renderingContent,m4)!==void 0)return new m3(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);if(xt(X,uvh()))return new y0(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);if(xt(X,JBO()))return new V0(n,w,X,this.LM,this.hg,this.m_, this.CM,this.N);if(xt(X,bCs())||g.u(X.renderingContent,aS)!==void 0)return new tD(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);if(xt(X,wlh())||g.u(X.renderingContent,Vf)!==void 0)return new lv(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);if(xt(X,Wi0()))return new F3(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);if(xt(X,E9T())||g.u(X.renderingContent,ph)!==void 0)return new UZ(n,w,X,this.LM,this.hg,this.m_,this.CM,this.N);throw new b1("Unsupported layout with type: "+X.layoutType+" and client metadata: "+ KN(X.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};Pm3.prototype.build=function(n,q,w,X){if(xt(X,{Ej:["metadata_type_linked_player_bytes_layout_id"],sj:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new vP(n,w,X,this.LM,this.hg,this.N);throw new b1("Unsupported layout with type: "+X.layoutType+" and client metadata: "+KN(X.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.d=R26.prototype;g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.init=function(){}; g.d.release=function(){}; g.d.startRendering=function(n){n.layoutId!==this.layout.layoutId?this.callback.Sv(this.slot,n,new b1("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.oP(this.slot,n),this.VT.Qa("impression"),X$(this.uE,n,"normal"))}; g.d.Bb=function(n,q){n.layoutId!==this.layout.layoutId?this.callback.Sv(this.slot,n,new b1("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.MU(this.slot,n,q)};g.d=IF6.prototype;g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.init=function(){}; g.d.release=function(){}; g.d.startRendering=function(n){n.layoutId!==this.layout.layoutId?this.callback.Sv(this.slot,n,new b1("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.oP(this.slot,n),this.VT.Qa("impression"),X$(this.uE,n,"normal"))}; g.d.Bb=function(n,q){n.layoutId!==this.layout.layoutId?this.callback.Sv(this.slot,n,new b1("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.MU(this.slot,n,q)};Gr.prototype.build=function(n,q,w,X){if(!this.MP.get().T.B().Z("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(xt(X,c50()))return new R26(n,w,X,this.hg,this.uE)}else if(xt(X,{Ej:[],sj:["LAYOUT_TYPE_FORECASTING"]}))return new IF6(n,w,X,this.hg,this.uE);throw new b1("Unsupported layout with type: "+X.layoutType+" and client metadata: "+KN(X.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.m(j6s,N0);g.m(CI,qm);g.d=CI.prototype;g.d.init=function(){qm.prototype.init.call(this);var n=g.u(this.layout.renderingContent,KI)||Yj(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),q={adsClientData:this.layout.Dj};this.N.push(new j6s(n,Yj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,q))}; g.d.tT=function(){this.W||this.cW.get().resumeVideo(2)}; g.d.startRendering=function(n){qm.prototype.startRendering.call(this,n);this.callback.oP(this.slot,n);this.K.SK=this}; g.d.Bb=function(n,q){qm.prototype.Bb.call(this,n,q);na(this.K,this)}; g.d.ET=function(n,q){if(!MB(this.MP.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(KP(this.D.get(),this.G))switch(n){case "visit-advertiser-link":PP(this.hg.get(),3)}switch(n){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.cW.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.cW.get().Rn(2))||this.cW.get().pauseVideo();break; case "visit-advertiser-link":this.cW.get().pauseVideo();s6u(this).Kl();break;case "skip-button":if(n=s6u(this),this.layout.renderingContent&&!CN(this.layout.clientMetadata,"metadata_type_dai")||!n||!n.gj){var w;(n=(w=Yj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&n.UZ(this.G9(),this.layout)}else R0("Requesting to skip by LegacyPlayerBytes when components enabled"),n.gY(this.G9(),this.layout)}}}; g.d.Xf=function(){qm.prototype.Xf.call(this)};g.m(EZ,qm);g.d=EZ.prototype;g.d.init=function(){qm.prototype.init.call(this);var n=g.u(this.layout.renderingContent,Yt)||Yj(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),q={adsClientData:this.layout.Dj},w;(w=!!this.layout.renderingContent)||(w=oC(this),w=!(w&&w.gj));this.N.push(new Op(n,this.layout.layoutId,Yj(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),q,w))}; g.d.tT=function(){this.W||this.cW.get().resumeVideo(2)}; g.d.startRendering=function(n){qm.prototype.startRendering.call(this,n);this.callback.oP(this.slot,n);this.K.SK=this}; g.d.Bb=function(n,q){qm.prototype.Bb.call(this,n,q);na(this.K,this)}; g.d.ET=function(n,q){if(!this.MP||!MB(this.MP.get(),"stop_handling_click_for_non_rendering_overlay_layout")||q===this.layout.layoutId){if(KP(this.D.get(),this.G))switch(n){case "visit-advertiser":PP(this.hg.get(),3)}switch(n){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.cW.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.cW.get().Rn(2))||this.cW.get().pauseVideo();break; case "visit-advertiser":this.cW.get().pauseVideo();oC(this).Kl();break;case "skip-button":if(n=oC(this),this.layout.renderingContent&&!CN(this.layout.clientMetadata,"metadata_type_dai")||!n||!n.gj){var w;(n=(w=Yj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&n.UZ(this.G9(),this.layout)}else R0("Requesting to skip by LegacyPlayerBytes"),n.gY(this.G9(),this.layout)}}}; g.d.Xf=function(){qm.prototype.Xf.call(this)};g.m(fFs,N0);g.m(bv,qm);g.d=bv.prototype;g.d.startRendering=function(n){var q=this;nI(this.X,n,function(){q.N.push(new fFs(Yj(q.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),n.layoutId,n.Dj));q.vn();q.callback.oP(q.slot,n);g.Z(RT(q.cW.get(),1),512)&&q.callback.Sv(q.G9(),q.Z0(),new b1("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.d.Di=function(){}; g.d.zw=function(n){if(n.state.isError()){var q;this.callback.Sv(this.G9(),this.Z0(),new b1("A player error happened during adNotify",{playerErrorCode:(q=n.state.er)==null?void 0:q.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.d.onFullscreenToggled=function(){}; g.d.Hd=function(){}; g.d.G1=function(){}; g.d.Ui=function(){}; g.d.onVolumeChange=function(){}; g.d.Kd=function(){}; g.d.ge=function(){}; g.d.ET=function(){};g.m(ipx,N0);g.m(AD,qm);AD.prototype.init=function(){qm.prototype.init.call(this);var n=g.u(this.layout.renderingContent,uv),q=wB(this.VT);this.N.push(new ipx(n,q,this.layout.layoutId,{adsClientData:this.layout.Dj}))}; AD.prototype.startRendering=function(n){qm.prototype.startRendering.call(this,n);this.callback.oP(this.slot,n)}; AD.prototype.ET=function(n,q){if(q===this.layout.layoutId)switch(n){case "skip-button":var w;(n=(w=Yj(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:w.current)&&n.UZ(this.G9(),this.layout)}}; AD.prototype.Xf=function(){qm.prototype.Xf.call(this)};HpO.prototype.build=function(n,q,w,X){if(n=BP(n,w,X,this.LM,this.cW,this.hg,this.X,this.N,this.MP))return n;throw new b1("Unsupported layout with type: "+X.layoutType+" and client metadata: "+KN(X.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.d=JD.prototype;g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.init=function(){this.cW.get().addListener(this);this.cW.get().Yc.push(this);if(this.layout.renderingContent){var n=this.rl.get();n=$8(n,1).An/1E3}else n=Yj(this.layout.clientMetadata,"metadata_type_video_length_seconds");var q=g.u(this.layout.renderingContent,Ch),w=q?IC(q.pings):Yj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");q=q?D0x(q.pings):Yj(this.layout.clientMetadata,"metadata_type_active_view_identifier");cP(this.layout.pM)&&cF(this.CM.get(),this.layout.layoutId, {bA:w,Qn:n,listener:this,fp:q})}; g.d.release=function(){this.cW.get().removeListener(this);mRx(this.cW.get(),this);cP(this.layout.pM)&&IT(this.CM.get(),this.layout.layoutId)}; g.d.startRendering=function(n){this.callback.oP(this.slot,n)}; g.d.Bb=function(n,q){zr(this,"abandon");this.callback.MU(this.slot,n,q)}; g.d.Kd=function(n){switch(n.id){case "part2viewed":this.VT.Qa("start");this.VT.Qa("impression");break;case "videoplaytime25":this.VT.Qa("first_quartile");break;case "videoplaytime50":this.VT.Qa("midpoint");break;case "videoplaytime75":this.VT.Qa("third_quartile");break;case "videoplaytime100":zr(this,"complete");HP(this.VT)&&OZ(this.VT,Infinity,!0);break;case "engagedview":HP(this.VT)||this.VT.Qa("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:R0("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.d.onVolumeChange=function(){}; g.d.Ui=function(){}; g.d.Hd=function(){}; g.d.G1=function(){}; g.d.onFullscreenToggled=function(){}; g.d.zw=function(n){this.N||(g.k0(n,4)&&!g.k0(n,2)?fI(this.VT,"pause"):I0(n,4)<0&&!(I0(n,2)<0)&&fI(this.VT,"resume"))}; g.d.Di=function(){}; g.d.GX=function(n){HP(this.VT)&&OZ(this.VT,n*1E3,!1)}; g.d.ge=function(){zr(this,"swipe")}; g.d.FV=function(){this.VT.Qa("active_view_measurable")}; g.d.O3=function(){this.VT.Qa("active_view_viewable")}; g.d.rY=function(){this.VT.Qa("active_view_fully_viewable_audible_half_duration")}; g.d.u2=function(){this.VT.Qa("audio_measurable")}; g.d.DO=function(){this.VT.Qa("audio_audible")};U3O.prototype.build=function(n,q,w,X){if(w.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.u(X.renderingContent,Ch)!==void 0)return new JD(n,w,X,this.cW,this.hg,this.MP,this.CM,this.rl);q=["metadata_type_ad_placement_config"];for(var P=g.a(jj()),R=P.next();!R.done;R=P.next())q.push(R.value);if(xt(X,{Ej:q,sj:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return w.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new JD(n,w,X,this.cW,this.hg,this.MP,this.CM,this.rl):new zZy(n,w,X,this.cW,this.hg, this.kE,this.MP,this.CM);throw new b1("Unsupported layout with type: "+X.layoutType+" and client metadata: "+KN(X.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var q8={contentCpn:"",Kc:new Map};FgT.prototype.vQ=function(n,q){var w={};q=Object.assign({},q,(w.cc=this.b7.hh(),w));this.b7.T.p5(n,q)};var Emz,Ka; Emz={DLp:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",SF0:"AUTHENTICATION_MALFORMED",bxi:"AUTHENTICATION_MISSING",LLh:"BAD_REQUEST",Xhi:"CAST_SESSION_DEVICE_MISMATCHED",MGi:"CAST_SESSION_VIDEO_MISMATCHED",v5P:"CAST_TOKEN_EXPIRED",CEn:"CAST_TOKEN_FAILED",fio:"CAST_TOKEN_MALFORMED",Hbi:"CGI_PARAMS_MALFORMED",WKq:"CGI_PARAMS_MISSING",sXq:"DEVICE_FALLBACK",Cae:"GENERIC_WITH_LINK_AND_CPN",a3q:"ERROR_HDCP",f3q:"LICENSE",Wsi:"VIDEO_UNAVAILABLE",l3h:"FORMAT_UNAVAILABLE",DTh:"GEO_FAILURE", I3l:"HTML5_AUDIO_RENDERER_ERROR",oJe:"GENERIC_WITHOUT_LINK",UTq:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Bei:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Rje:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Suo:"HTML5_SPS_UMP_STATUS_REJECTED",pOP:"INVALID_DRM_MESSAGE",Ugh:"PURCHASE_NOT_FOUND",Bd5:"PURCHASE_REFUNDED",N_f:"RENTAL_EXPIRED",X1P:"RETRYABLE_ERROR",w1i:"SERVER_ERROR",DYl:"SIGNATURE_EXPIRED",KYo:"STOPPED_BY_ANOTHER_PLAYBACK",Zh5:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",GY0:"STREAMING_NOT_ALLOWED", QgP:"STREAM_LICENSE_NOT_FOUND",ov5:"TOO_MANY_REQUESTS",UYf:"TOO_MANY_REQUESTS_WITH_LINK",B_H:"TOO_MANY_STREAMS_PER_ENTITLEMENT",RmT:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",cLP:"VIDEO_FORBIDDEN",JLq:"VIDEO_NOT_FOUND",xr5:"BROWSER_OR_EXTENSION_ERROR"};Ka={}; g.zd=(Ka.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.",Ka.DEVICE_FALLBACK="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel neste dispositivo.",Ka.GENERIC_WITH_LINK_AND_CPN="Ocorreu um erro. Tente novamente mais tarde. (ID de reprodu\u00e7\u00e3o: $CPN) $BEGIN_LINKSaiba mais$END_LINK", Ka.LICENSE="Ocorreu um erro ao licenciar este v\u00eddeo.",Ka.VIDEO_UNAVAILABLE="V\u00eddeo indispon\u00edvel",Ka.FORMAT_UNAVAILABLE="O v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel na qualidade selecionada. Tente novamente mais tarde.",Ka.GEO_FAILURE="Este v\u00eddeo n\u00e3o est\u00e1 dispon\u00edvel em seu pa\u00eds.",Ka.HTML5_AUDIO_RENDERER_ERROR="Erro ao renderizar \u00e1udio. Reinicie seu computador.",Ka.GENERIC_WITHOUT_LINK="Ocorreu um erro. Tente novamente mais tarde.",Ka.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "Este formato de v\u00eddeo n\u00e3o \u00e9 suportado.",Ka.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",Ka.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",Ka.HTML5_SPS_UMP_STATUS_REJECTED="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK", Ka.INVALID_DRM_MESSAGE="A mensagem espec\u00edfica do sistema de DRM (gest\u00e3o de direitos digitais) \u00e9 inv\u00e1lida.",Ka.PURCHASE_NOT_FOUND="Este v\u00eddeo requer pagamento.",Ka.PURCHASE_REFUNDED="A compra deste v\u00eddeo foi estornada.",Ka.RENTAL_EXPIRED="O aluguel deste v\u00eddeo expirou.",Ka.CAST_SESSION_DEVICE_MISMATCHED="O dispositivo na sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.",Ka.CAST_SESSION_VIDEO_MISMATCHED="O v\u00eddeo da sess\u00e3o de transmiss\u00e3o n\u00e3o corresponde ao solicitado.", Ka.CAST_TOKEN_FAILED="Sess\u00e3o de transmiss\u00e3o n\u00e3o dispon\u00edvel. Atualize ou tente novamente mais tarde.",Ka.CAST_TOKEN_EXPIRED="A sess\u00e3o de transmiss\u00e3o expirou. Atualize.",Ka.CAST_TOKEN_MALFORMED="Sess\u00e3o de transmiss\u00e3o inv\u00e1lida. Atualize ou tente novamente mais tarde.",Ka.SERVER_ERROR="Ocorreu um erro interno do servidor. Tente novamente mais tarde.",Ka.STOPPED_BY_ANOTHER_PLAYBACK="Sua conta est\u00e1 reproduzindo este v\u00eddeo em outro local. Recarregue esta p\u00e1gina para continuar assistindo.", Ka.STREAM_LICENSE_NOT_FOUND="Reprodu\u00e7\u00e3o de v\u00eddeo interrompida. Tente novamente.",Ka.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Foram utilizados muitos dispositivos/endere\u00e7os IP no per\u00edodo de 24 horas.",Ka.STREAMING_NOT_ALLOWED="Reprodu\u00e7\u00e3o n\u00e3o permitida porque este v\u00eddeo est\u00e1 fixado a outro dispositivo.",Ka.RETRYABLE_ERROR="Ocorreu um erro tempor\u00e1rio no servidor. Tente novamente mais tarde.",Ka.TOO_MANY_REQUESTS="Fa\u00e7a login para assistir este v\u00eddeo.", Ka.TOO_MANY_REQUESTS_WITH_LINK="$BEGIN_LINKClique aqui$END_LINK para assistir este v\u00eddeo no YouTube.",Ka.TOO_MANY_STREAMS_PER_USER="A reprodu\u00e7\u00e3o foi interrompida porque est\u00e3o sendo exibidos muitos v\u00eddeos da mesma conta.",Ka.TOO_MANY_STREAMS_PER_ENTITLEMENT="A reprodu\u00e7\u00e3o foi interrompida porque este v\u00eddeo foi reproduzido em muitos dispositivos.",Ka.UNSUPPORTED_DEVICE="A reprodu\u00e7\u00e3o n\u00e3o \u00e9 compat\u00edvel com este dispositivo.",Ka.VIDEO_FORBIDDEN= "O acesso a este v\u00eddeo \u00e9 proibido.",Ka.VIDEO_NOT_FOUND="N\u00e3o foi poss\u00edvel localizar o v\u00eddeo.",Ka.BROWSER_OR_EXTENSION_ERROR="Algo deu errado. Atualize ou tente de novo depois. $BEGIN_LINKSaiba mais$END_LINK",Ka);var omG;var b$5=g.CV(),AUi=b$5.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!AUi||AUi.length<2)omG=void 0;else{var Y_0=b$5.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);omG=Y_0&&Y_0.length===6?Number(Y_0[5].replace("_",".")):0}var Xy=omG,uh=Xy>=0;g.m(g.Um,ys);g.Um.prototype.j=function(n,q,w,X,P){return ys.prototype.j.call(this,n,q,w,X,P)};var So={},h9=(So.FAIRPLAY="fairplay",So.PLAYREADY="playready",So.WIDEVINE="widevine",So.CLEARKEY=null,So.FLASHACCESS=null,So.UNKNOWN=null,So.WIDEVINE_CLASSIC=null,So);tg.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var ux={},CQ=(ux.WIDTH={name:"width",video:!0,valid:640,eq:99999},ux.HEIGHT={name:"height",video:!0,valid:360,eq:99999},ux.FRAMERATE={name:"framerate",video:!0,valid:30,eq:9999},ux.BITRATE={name:"bitrate",video:!0,valid:3E5,eq:2E9},ux.EOTF={name:"eotf",video:!0,valid:"bt709",eq:"catavision"},ux.CHANNELS={name:"channels",video:!1,valid:2,eq:99},ux.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",eq:"invalidformat"},ux.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", eq:"nope"},ux.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",eq:"av99.0.05M.08"},ux.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",eq:"invalid"},ux.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",eq:"false"},ux);var KJz=["h","H"],S_G=["9","("],u8f=["9h","(h"],Brh=["8","*"],QxG=["a","A"],Z$w=["o","O"],JUG=["m","M"],zWL=["mac3","MAC3"],WJD=["meac3","MEAC3"],BZ={},Gjm=(BZ.h=KJz,BZ.H=KJz,BZ["9"]=S_G,BZ["("]=S_G,BZ["9h"]=u8f,BZ["(h"]=u8f,BZ["8"]=Brh,BZ["*"]=Brh,BZ.a=QxG,BZ.A=QxG,BZ.o=Z$w,BZ.O=Z$w,BZ.m=JUG,BZ.M=JUG,BZ.mac3=zWL,BZ.MAC3=zWL,BZ.meac3=WJD,BZ.MEAC3=WJD,BZ),Nrh=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),yDO=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var N={},VR=(N["0"]="f",N["160"]="h",N["133"]="h",N["134"]="h",N["135"]="h",N["136"]="h",N["137"]="h",N["264"]="h",N["266"]="h",N["138"]="h",N["298"]="h",N["299"]="h",N["304"]="h",N["305"]="h",N["214"]="h",N["216"]="h",N["374"]="h",N["375"]="h",N["140"]="a",N["141"]="a",N["327"]="sa",N["258"]="m",N["380"]="mac3",N["328"]="meac3",N["161"]="H",N["142"]="H",N["143"]="H",N["144"]="H",N["222"]="H",N["223"]="H",N["145"]="H",N["224"]="H",N["225"]="H",N["146"]="H",N["226"]="H",N["227"]="H",N["147"]="H",N["384"]= "H",N["376"]="H",N["385"]="H",N["377"]="H",N["149"]="A",N["261"]="M",N["381"]="MAC3",N["329"]="MEAC3",N["598"]="9",N["278"]="9",N["242"]="9",N["243"]="9",N["244"]="9",N["775"]="9",N["776"]="9",N["777"]="9",N["778"]="9",N["779"]="9",N["780"]="9",N["781"]="9",N["782"]="9",N["783"]="9",N["247"]="9",N["248"]="9",N["353"]="9",N["355"]="9",N["356"]="9",N["271"]="9",N["577"]="9",N["313"]="9",N["579"]="9",N["272"]="9",N["302"]="9",N["303"]="9",N["407"]="9",N["408"]="9",N["308"]="9",N["315"]="9",N["330"]= "9h",N["331"]="9h",N["332"]="9h",N["333"]="9h",N["334"]="9h",N["335"]="9h",N["336"]="9h",N["337"]="9h",N["338"]="so",N["600"]="o",N["250"]="o",N["251"]="o",N["774"]="o",N["194"]="*",N["195"]="*",N["220"]="*",N["221"]="*",N["196"]="*",N["197"]="*",N["279"]="(",N["280"]="(",N["317"]="(",N["318"]="(",N["273"]="(",N["274"]="(",N["357"]="(",N["358"]="(",N["275"]="(",N["359"]="(",N["360"]="(",N["276"]="(",N["583"]="(",N["584"]="(",N["314"]="(",N["585"]="(",N["561"]="(",N["277"]="(",N["361"]="(h",N["362"]= "(h",N["363"]="(h",N["364"]="(h",N["365"]="(h",N["366"]="(h",N["591"]="(h",N["592"]="(h",N["367"]="(h",N["586"]="(h",N["587"]="(h",N["368"]="(h",N["588"]="(h",N["562"]="(h",N["409"]="(",N["410"]="(",N["411"]="(",N["412"]="(",N["557"]="(",N["558"]="(",N["394"]="1",N["395"]="1",N["396"]="1",N["397"]="1",N["398"]="1",N["399"]="1",N["720"]="1",N["721"]="1",N["400"]="1",N["401"]="1",N["571"]="1",N["402"]="1",N["694"]="1h",N["695"]="1h",N["696"]="1h",N["697"]="1h",N["698"]="1h",N["699"]="1h",N["700"]="1h", N["701"]="1h",N["702"]="1h",N["703"]="1h",N["386"]="3",N["387"]="w",N["406"]="6",N["787"]="1",N["788"]="1",N["548"]="1e",N["549"]="1e",N["550"]="1e",N["551"]="1e",N["809"]="1e",N["810"]="1e",N["552"]="1e",N["811"]="1e",N["812"]="1e",N["553"]="1e",N["813"]="1e",N["814"]="1e",N["554"]="1e",N["815"]="1e",N["816"]="1e",N["555"]="1e",N["817"]="1e",N["818"]="1e",N["572"]="1e",N["556"]="1e",N["645"]="(",N["646"]="(",N["647"]="(",N["648"]="(",N["649"]="(",N["650"]="(",N["651"]="(",N["652"]="(",N["653"]="(", N["654"]="(",N["655"]="(",N["656"]="(",N["657"]="(",N["658"]="(",N["659"]="(",N["660"]="(",N["661"]="(",N["662"]="(",N["663"]="(",N["664"]="(",N["665"]="(",N["666"]="(",N["667"]="(",N["668"]="(",N["669"]="(",N["670"]="(",N["671"]="(",N["672"]="(",N["673"]="(",N["674"]="(h",N["675"]="(h",N["676"]="(h",N["677"]="(h",N["678"]="(h",N["679"]="(h",N["680"]="(h",N["681"]="(h",N["682"]="(h",N["683"]="(h",N["684"]="(h",N["685"]="(h",N["686"]="(h",N["687"]="(h",N["688"]="A",N["689"]="A",N["690"]="A",N["691"]= "MEAC3",N["773"]="i",N["806"]="I",N["805"]="I",N["829"]="9",N["830"]="9",N["831"]="9",N["832"]="9",N["833"]="9",N["834"]="9",N["835"]="9",N["836"]="9",N["892"]="9",N["893"]="9",N["837"]="9",N["838"]="9",N["839"]="9",N["840"]="9",N["841"]="(",N["842"]="(",N["843"]="(",N["844"]="(",N["845"]="(",N["846"]="(",N["847"]="(",N["848"]="(",N["894"]="(",N["895"]="(",N["849"]="(",N["850"]="(",N["851"]="(",N["852"]="(",N["865"]="9",N["866"]="9",N["867"]="9",N["868"]="9",N["869"]="9",N["870"]="9",N["871"]="9", N["872"]="9",N["896"]="9",N["897"]="9",N["873"]="9",N["874"]="9",N["875"]="9",N["876"]="9",N["877"]="(",N["878"]="(",N["879"]="(",N["880"]="(",N["881"]="(",N["882"]="(",N["883"]="(",N["884"]="(",N["898"]="(",N["899"]="(",N["885"]="(",N["886"]="(",N["887"]="(",N["888"]="(",N);var QT={},UP0=(QT.STEREO_LAYOUT_UNKNOWN=0,QT.STEREO_LAYOUT_LEFT_RIGHT=1,QT.STEREO_LAYOUT_TOP_BOTTOM=2,QT);var Zi,a$;Zi={};g.gq=(Zi.auto=0,Zi.tiny=144,Zi.light=144,Zi.small=240,Zi.medium=360,Zi.large=480,Zi.hd720=720,Zi.hd1080=1080,Zi.hd1440=1440,Zi.hd2160=2160,Zi.hd2880=2880,Zi.highres=4320,Zi);a$={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var yR="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");mx.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};pT.prototype.PX=function(){return this.containerType===2}; pT.prototype.isEncrypted=function(){return!!this.nV}; pT.prototype.nD=function(){return!!this.audio}; pT.prototype.ev=function(){return!!this.video}; var $w=!1;g.m(Jg,g.np);g.d=Jg.prototype;g.d.appendBuffer=function(n,q,w){if(this.LG.vg()!==this.appendWindowStart+this.start||this.LG.Q4()!==this.appendWindowEnd+this.start||this.LG.Zj()!==this.timestampOffset+this.start)this.LG.supports(1),this.LG.lZ(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.LG.C1(this.timestampOffset+this.start);this.LG.appendBuffer(n,q,w)}; g.d.abort=function(){this.LG.abort()}; g.d.remove=function(n,q){this.LG.remove(n+this.start,q+this.start)}; g.d.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.d.clear=function(){this.LG.clear()}; g.d.lZ=function(n,q){this.appendWindowStart=n;this.appendWindowEnd=q}; g.d.bG=function(){return this.timestampOffset+this.start}; g.d.vg=function(){return this.appendWindowStart}; g.d.Q4=function(){return this.appendWindowEnd}; g.d.C1=function(n){this.timestampOffset=n}; g.d.Zj=function(){return this.timestampOffset}; g.d.Uj=function(n){n=this.LG.Uj(n===void 0?!1:n);return Zk(n,this.start,this.end)}; g.d.Zk=function(){return this.LG.Zk()}; g.d.fn=function(){return this.LG.fn()}; g.d.d_=function(){return this.LG.d_()}; g.d.QO=function(){return this.LG.QO()}; g.d.PK=function(){this.LG.PK()}; g.d.yx=function(n){return this.LG.yx(n)}; g.d.lj=function(){return this.LG.lj()}; g.d.BB=function(){return this.LG.BB()}; g.d.tI=function(n,q,w){this.LG.tI(n,q,w)}; g.d.n6=function(n,q,w){this.LG.n6(n,q,w)}; g.d.Ox=function(n,q){return this.LG.Ox(n,q)}; g.d.supports=function(n){return this.LG.supports(n)}; g.d.S5=function(){return this.LG.S5()}; g.d.isView=function(){return!0}; g.d.Np=function(){return this.LG.Np()?this.isActive:!1}; g.d.isLocked=function(){return this.j9&&!this.isActive}; g.d.RP=function(n){n=this.LG.RP(n);n.vw=this.start+"-"+this.end;return n}; g.d.RL=function(){return this.LG.RL()}; g.d.n7=function(){return this.LG.n7()}; g.d.Vs=function(){return this.LG.Vs()}; g.d.Xf=function(){this.LG.m9(this.lT);g.np.prototype.Xf.call(this)};var FC=!1;g.m(WS,g.np);g.d=WS.prototype;g.d.appendBuffer=function(n,q,w){this.Fx=!1;w&&(this.EZ=w);if(n.length){var X;((X=this.OD)==null?0:X.appendBuffer)?this.OD.appendBuffer(n):this.OD?this.OD.append(n):this.nx&&this.nx.webkitSourceAppend(this.id,n)}q&&(q.isEncrypted()&&(this.EW=this.EZ),q.type===3&&(this.BX=q),this.Nv.push(q.XR()),this.Nv.length>4&&this.Nv.shift());this.wB&&(this.wB.length>=2||n.length>1048576?delete this.wB:this.wB.push(n))}; g.d.abort=function(){try{this.OD?this.OD.abort():this.nx&&this.nx.webkitSourceAbort(this.id)}catch(q){if(KSm){var n=new g.b4("Error while abort the source buffer: "+q.name+", "+q.message);g.pC(n)}}this.EZ=this.BX=null}; g.d.remove=function(n,q,w){this.Fx=!1;var X;if((X=this.OD)==null?0:X.remove)w&&w({b:Ag(this.Uj()),s:n,e:q}),this.OD.remove(n,q)}; g.d.removeAll=function(){this.remove(this.vg(),this.Q4())}; g.d.clear=function(){this.d_()||(this.abort(),this.removeAll(),this.EW=this.EZ=this.BX=null,this.appendWindowStart=this.timestampOffset=0,this.Xr=bK([],[]),this.Fx=!1,this.wB=zU?[]:void 0,this.Aa=!0)}; g.d.vg=function(){if(FC&&this.ev)return this.appendWindowStart;var n;return((n=this.OD)==null?void 0:n.appendWindowStart)||0}; g.d.Q4=function(){var n;return((n=this.OD)==null?void 0:n.appendWindowEnd)||0}; g.d.lZ=function(n,q){this.OD&&(FC&&this.ev?(this.appendWindowStart=n,this.OD.appendWindowEnd=q):n>this.vg()?(this.OD.appendWindowEnd=q,this.OD.appendWindowStart=n):(this.OD.appendWindowStart=n,this.OD.appendWindowEnd=q))}; g.d.bG=function(){return this.timestampOffset}; g.d.C1=function(n){FC?this.timestampOffset=n:this.supports(1)&&(this.OD.timestampOffset=n)}; g.d.Zj=function(){return FC?this.timestampOffset:this.supports(1)?this.OD.timestampOffset:0}; g.d.Uj=function(n){if(n===void 0?0:n)return this.Fx||this.Zk()||(this.Xr=this.Uj(!1),this.Fx=!0),this.Xr;try{return this.OD?this.OD.buffered:this.nx?this.nx.webkitSourceBuffered(this.id):bK([0],[Infinity])}catch(q){return bK([],[])}}; g.d.Zk=function(){var n;return((n=this.OD)==null?void 0:n.updating)||!1}; g.d.d_=function(){return this.Aa}; g.d.QO=function(){return!this.Aa&&this.Zk()}; g.d.PK=function(){this.Aa=!1}; g.d.yx=function(n){var q=n==null?void 0:n.L5;n=n==null?void 0:n.containerType;return!q&&!n||q===this.L5&&n===this.containerType}; g.d.lj=function(){return this.EZ}; g.d.BB=function(){return this.EW}; g.d.Ox=function(n,q){return this.containerType!==n||this.L5!==q}; g.d.tI=function(n,q,w){if(this.containerType!==n||w&&this.Ox(n,w))this.supports(4),N8()&&this.OD.changeType(q),w&&(this.L5=w);this.containerType=n}; g.d.n6=function(n,q,w){this.containerType&&this.Ox(n,q)&&N8()&&this.OD.changeType(w);this.containerType=n;this.L5=q}; g.d.S5=function(){return this.BX}; g.d.isView=function(){return!1}; g.d.supports=function(n){switch(n){case 1:var q;return((q=this.OD)==null?void 0:q.timestampOffset)!==void 0;case 0:var w;return!((w=this.OD)==null||!w.appendBuffer);case 2:var X;return!((X=this.OD)==null||!X.remove);case 3:var P,R;return!!(((P=this.OD)==null?0:P.addEventListener)&&((R=this.OD)==null?0:R.removeEventListener));case 4:return!(!this.OD||!this.OD.changeType);default:return!1}}; g.d.Np=function(){return!this.Zk()}; g.d.isLocked=function(){return!1}; g.d.RP=function(n){n.to=this.Zj();n.up=this.Zk();var q,w=((q=this.OD)==null?void 0:q.appendWindowStart)||0,X;q=((X=this.OD)==null?void 0:X.appendWindowEnd)||Infinity;n.aw=w.toFixed(3)+"-"+q.toFixed(3);return n}; g.d.fn=function(){var n;return((n=this.OD)==null?void 0:n.writeHead)||0}; g.d.RL=function(){for(var n={},q=0;q=7&&(!q||((X=this.Eq)==null?0:X.Z("mweb_ios_allow_playback_workaround_when_ready")))&&$3s(this,function(){g.rN(function(){u4T(n,n.getCurrentTime(),0)},500)})}return q}; g.d.seekTo=function(n){this.a6()>0&&(uh&&Xy<4&&(n=Math.max(.1,n)),this.setCurrentTime(n))}; g.d.VK=function(){if(!this.X&&this.K5)if(this.K5.K)try{var n;Pc(this,{l:"mer",sr:(n=this.Eq)==null?void 0:n.y5(),rs:cc(this.K5)});this.K5.clear();this.X=this.K5;this.K5=void 0}catch(q){n=new g.b4("Error while clearing Media Source in MediaElement: "+q.name+", "+q.message),g.pC(n),this.stopVideo()}else this.stopVideo()}; g.d.stopVideo=function(){var n=this;if(!this.X){var q;(q=this.K5)==null||YD0(q);if(b3h){if(!this.C){var w=new k8;w.then(void 0,function(){}); this.C=w;Apy&&this.pause();g.rN(function(){n.C===w&&(ek(n),w.resolve())},200)}}else ek(this)}}; g.d.Jf=function(){var n=this.Qb();return BS(n)&&this.getDuration()?SS(n,this.getCurrentTime()):0}; g.d.TF=function(){var n=this.getDuration();return n===Infinity?1:n?this.Jf()/n:0}; g.d.RP=function(){try{var n=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Ag(this.r9(),",",3),vbu:Ag(this.Qb()),vbs:Ag(this.sP()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.a6(),vns:""+this.L$(),vec:""+this.Kx(),vemsg:this.N9(),vvol:""+this.getVolume(),vdom:""+ +this.gx(),vsrc:""+ +!!this.Nr(),vw:""+n.width,vh:""+n.height}}catch(q){return{}}}; g.d.hasError=function(){return this.Kx()>0}; g.d.addEventListener=function(n,q){this.W.listen(n,q,!1,this);this.EY(n)}; g.d.removeEventListener=function(n,q){this.W.wM(n,q,!1,this)}; g.d.dispatchEvent=function(n){if(this.C&&n.type==="pause")return!1;if(Y13){var q,w=((q=n.N)==null?void 0:q.timeStamp)||Infinity;q=w>performance.now()?w-Date.now()+performance.now():w;w=this.X||this.K5;if((w==null?0:w.d_())||q<=((w==null?void 0:w.D)||0)){var X;Pc(this,{l:"mede",sr:(X=this.Eq)==null?void 0:X.y5(),et:n.type});return!1}if(this.rj)return Pc(this,{l:"medes",et:n.type}),w&&n.type==="seeking"&&(w.D=performance.now(),this.rj=!1),!1}return this.W.dispatchEvent(n)}; g.d.yH=function(){this.D=!1}; g.d.Rw=function(){this.D=!0;this.zJ(!0)}; g.d.jn=function(){this.D&&!this.y4()&&this.zJ(!0)}; g.d.equals=function(n){return!!n&&n.WQ()===this.WQ()}; g.d.Xf=function(){this.G&&this.removeEventListener("volumechange",this.jn);b3h&&ek(this);g.A.prototype.Xf.call(this)}; var b3h=!1,Apy=!1,Y13=!1,ZpO=!1;g.d=g.OG.prototype;g.d.isPaused=function(){return g.Z(this,4)}; g.d.isPlaying=function(){return g.Z(this,8)&&!g.Z(this,512)&&!g.Z(this,64)&&!g.Z(this,2)}; g.d.isOrWillBePlaying=function(){return g.Z(this,8)&&!g.Z(this,2)&&!g.Z(this,1024)}; g.d.isCued=function(){return g.Z(this,64)&&!g.Z(this,8)&&!g.Z(this,4)}; g.d.isBuffering=function(){return g.Z(this,1)&&!g.Z(this,2)}; g.d.isError=function(){return g.Z(this,128)}; g.d.isSuspended=function(){return g.Z(this,512)}; g.d.IE=function(){return g.Z(this,64)&&g.Z(this,4)}; g.d.toString=function(){return"PSt."+this.state.toString(16)}; var Jl={},z_=(Jl.BUFFERING="buffering-mode",Jl.CUED="cued-mode",Jl.ENDED="ended-mode",Jl.PAUSED="paused-mode",Jl.PLAYING="playing-mode",Jl.SEEKING="seeking-mode",Jl.UNSTARTED="unstarted-mode",Jl);g.m(VE,g.A);g.d=VE.prototype;g.d.ZN=function(){return this.C}; g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.init=function(){var n=Yj(this.layout.clientMetadata,"metadata_type_video_length_seconds"),q=Yj(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cP(this.layout.pM)&&cF(this.CM.get(),this.layout.layoutId,{bA:q,Qn:n,listener:this,Br:this.fL()});ft0(this.hg.get(),this);n=this.QJ;q=this.layout.layoutId;var w={Br:this.fL()};n.N.set(q,w);this.Fe()}; g.d.Ak=function(){}; g.d.release=function(){cP(this.layout.pM)&&IT(this.CM.get(),this.layout.layoutId);O7m(this.hg.get(),this);this.QJ.N.delete(this.layout.layoutId);this.Na()}; g.d.C8=function(){}; g.d.lA=function(){}; g.d.startRendering=function(n){PS(pK(this));if(Tj(this,n)){var q=this.N;Rn(q.params.jG.MP.get(),!0)&&TVY(q,"p_sr",{});Fr(this);this.HM(n);this.fL()||this.ov(!1)}}; g.d.oP=function(n,q){if(q.layoutId===this.layout.layoutId){this.BQ="rendering";this.X=this.cW.get().isMuted()||this.cW.get().getVolume()===0;this.Qa("impression");this.Qa("start");if(this.cW.get().isMuted()){DV(this,"mute");var w;n=((w=aO(this))==null?void 0:w.muteCommands)||[];F5(this.kE.get(),n,this.layout.layoutId)}if(this.cW.get().isFullscreen()){this.sF("fullscreen");var X;w=((X=aO(this))==null?void 0:X.fullscreenCommands)||[];F5(this.kE.get(),w,this.layout.layoutId)}this.fL()||(X=this.ai.get(), X.C&&!X.X&&(X.K=!1,X.X=!0,X.actionType!=="ad_to_video"&&(FK("pbs",void 0,X.actionType),g.OU("finalize_all_timelines")&&c8z(X.actionType))));this.Ig(1);this.SW(q);var P;q=((P=aO(this))==null?void 0:P.impressionCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}}; g.d.zi=function(n,q,w){this.G={VS:3,ZG:n==="load_timeout"?402:400,errorMessage:q.message};this.Qa("error");var X;n=((X=aO(this))==null?void 0:X.errorCommands)||[];F5(this.kE.get(),n,this.layout.layoutId);this.fL()||this.Wt.Sv(this.slot,this.layout,q,w)}; g.d.EE=function(){if(this.BQ==="rendering"){DV(this,"pause");var n,q=((n=aO(this))==null?void 0:n.pauseCommands)||[];F5(this.kE.get(),q,this.layout.layoutId);this.Ig(2)}}; g.d.qx=function(){if(this.BQ==="rendering"){DV(this,"resume");var n,q=((n=aO(this))==null?void 0:n.resumeCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}}; g.d.hO=function(n,q){q=q===void 0?!1:q;if(this.BQ==="rendering"){var w={currentTimeSec:n,flush:q};cS(this.N,"p_ip",w);OZ(this.VT,n*1E3,q);this.X||OZ(this.VT,n*1E3,q===void 0?!1:q);var X=this.Qj();if(X){X/=1E3;if(n>=X*.25||q)this.Qa("first_quartile"),cS(this.N,"p_fq",w);if(n>=X*.5||q)this.Qa("midpoint"),cS(this.N,"p_sq",w);if(n>=X*.75||q)this.Qa("third_quartile"),cS(this.N,"p_tq",w);this.MP.get().T.B().experiments.BW("enable_progress_command_flush_on_kabuki")?aC(this.W,n*1E3,q):aC(this.W,n*1E3,qps(this)? q:!1)}}}; g.d.hh=function(){var n;return((n=$8(this.rl.get(),1))==null?void 0:n.clientPlaybackNonce)||""}; g.d.D4=function(n,q){n.layoutId!==this.layout.layoutId?this.Wt.Sv(this.slot,n,new b1("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"):q()}; g.d.MU=function(n,q,w){if(q.layoutId===this.layout.layoutId)switch(this.BQ="not_rendering",this.layoutExitReason=void 0,this.fL()||(n=w!=="normal"||this.position+1===this.D)&&this.ov(n),this.Nx(w),this.Ig(0),w){case "abandoned":if(iv(this.VT,"impression")){var X,P=((X=aO(this))==null?void 0:X.abandonCommands)||[];F5(this.kE.get(),P,this.layout.layoutId)}break;case "normal":X=((P=aO(this))==null?void 0:P.completeCommands)||[];F5(this.kE.get(),X,this.layout.layoutId);break;case "skipped":var R;X=((R= aO(this))==null?void 0:R.skipCommands)||[];F5(this.kE.get(),X,this.layout.layoutId)}}; g.d.gV=function(){return this.layout.layoutId}; g.d.nI=function(){return this.G}; g.d.FV=function(){if(this.BQ==="rendering"){this.VT.Qa("active_view_measurable");var n,q=((n=aO(this))==null?void 0:n.activeViewMeasurableCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}}; g.d.rY=function(){if(this.BQ==="rendering"){this.VT.Qa("active_view_fully_viewable_audible_half_duration");var n,q=((n=aO(this))==null?void 0:n.activeViewFullyViewableAudibleHalfDurationCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}}; g.d.O3=function(){if(this.BQ==="rendering"){this.VT.Qa("active_view_viewable");var n,q=((n=aO(this))==null?void 0:n.activeViewViewableCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}}; g.d.DO=function(){if(this.BQ==="rendering"){this.VT.Qa("audio_audible");var n,q=((n=aO(this))==null?void 0:n.activeViewAudioAudibleCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}}; g.d.u2=function(){if(this.BQ==="rendering"){this.VT.Qa("audio_measurable");var n,q=((n=aO(this))==null?void 0:n.activeViewAudioMeasurableCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}}; g.d.ov=function(n){this.ai.get().ov(Yj(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,n,this.position,this.D,!1)}; g.d.onFullscreenToggled=function(n){if(this.BQ==="rendering")if(n){this.sF("fullscreen");var q,w=((q=aO(this))==null?void 0:q.fullscreenCommands)||[];F5(this.kE.get(),w,this.layout.layoutId)}else this.sF("end_fullscreen"),q=((w=aO(this))==null?void 0:w.endFullscreenCommands)||[],F5(this.kE.get(),q,this.layout.layoutId)}; g.d.onVolumeChange=function(){if(this.BQ==="rendering")if(this.cW.get().isMuted()){DV(this,"mute");var n,q=((n=aO(this))==null?void 0:n.muteCommands)||[];F5(this.kE.get(),q,this.layout.layoutId)}else DV(this,"unmute"),n=((q=aO(this))==null?void 0:q.unmuteCommands)||[],F5(this.kE.get(),n,this.layout.layoutId)}; g.d.Hd=function(){}; g.d.G1=function(){}; g.d.Ui=function(){}; g.d.Kd=function(){}; g.d.ge=function(){}; g.d.sF=function(n){this.VT.sF(n,!this.X)}; g.d.Qa=function(n){this.VT.Qa(n,!this.X)}; g.d.fL=function(){var n=Yj(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return n===void 0?(R0("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.MP.get().fL(n)};g.m(EG,VE);g.d=EG.prototype;g.d.Fe=function(){}; g.d.Na=function(){var n=this.hg.get();n.We===this&&(n.We=null);this.timer.stop()}; g.d.C8=function(){this.timer.stop();VE.prototype.EE.call(this)}; g.d.lA=function(){br(this);VE.prototype.qx.call(this)}; g.d.Qj=function(){return Yj(this.Z0().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.d.Bb=function(n,q){var w=this;this.D4(n,function(){w.BQ!=="rendering_stop_requested"&&(w.BQ="rendering_stop_requested",w.layoutExitReason=q,vc(w,q),w.timer.stop())})}; g.d.hU=function(){var n=Date.now(),q=n-this.pE;this.pE=n;this.NT+=q;this.NT>=this.Qj()?this.CZ():(this.hO(this.NT/1E3),oO(this,this.NT))}; g.d.Nx=function(){}; g.d.Di=function(){}; g.m(AY,EG);g.d=AY.prototype;g.d.zw=function(n){if(this.BQ!=="not_rendering"){n=LK(this,n);var q=this.cW.get().getPresentingPlayerType()===2;this.BQ==="rendering_start_requested"?q&&Q0(n)&&this.vB():q?g.k0(n,2)?R0("Receive player ended event during MediaBreak",this.G9(),this.Z0()):MP(this,n):this.Id()}}; g.d.HM=function(){NVm(this);atO(this.cW.get());this.hg.get().We=this;pk("pbp")||pk("pbs")||FK("pbp");pk("pbp","watch")||pk("pbs","watch")||FK("pbp",void 0,"watch");this.vB()}; g.d.SW=function(n){this.ai.get();var q=Yj(n.clientMetadata,"metadata_type_ad_placement_config").kind,w=this.position===0;n=Yj(n.clientMetadata,"metadata_type_linked_in_player_layout_type");n={adBreakType:x8(q),adType:efO(n)};var X=void 0;w?q!=="AD_PLACEMENT_KIND_START"&&(X="video_to_ad"):X="ad_to_ad";y6("ad_mbs",void 0,X);g.a1(n,X);br(this)}; g.d.Id=function(){this.Qe()}; g.d.CZ=function(){Xns(this);this.Qe()}; g.m(Y8,EG);g.d=Y8.prototype;g.d.zw=function(n){this.BQ!=="not_rendering"&&(n=LK(this,n),MP(this,n))}; g.d.HM=function(){R0("Not used in SSAP")}; g.d.SW=function(){br(this)}; g.d.Id=function(){R0("Not used in SSAP")}; g.d.CZ=function(){Xns(this);this.Wt.Hm(this.G9(),this.Z0(),"normal")}; g.m(KK,Y8);KK.prototype.Bb=function(n,q){var w=this;this.D4(n,function(){Nm(w.C,q)&&(w.BQ="rendering_stop_requested",w.layoutExitReason=q,vc(w,q),w.timer.stop())})}; KK.prototype.startRendering=function(n){PS(pK(this));Tj(this,n)&&(Fr(this),this.hg.get().We=this)};g.m(Bc,VE);g.d=Bc.prototype;g.d.Id=function(){this.Qe()}; g.d.zw=function(n){if(this.BQ!=="not_rendering"){n=LK(this,n);var q=this.cW.get().getPresentingPlayerType()===2;this.BQ==="rendering_start_requested"?q&&Q0(n)&&this.vB():!q||g.k0(n,2)?this.Qe():MP(this,n)}}; g.d.Fe=function(){Yj(this.Z0().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Yj(this.Z0().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.d.Na=function(){Yj(this.Z0().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.yb){var n=this.context.jG,q=this.yb,w=this.Z0().layoutId;if(Rn(n.MP.get(),!0)){var X={};n.vQ("mccru",(X.cid=q,X.p_ac=w,X))}this.pG.get().removeCueRange(this.yb)}this.yb=void 0;var P;(P=this.XH)==null||P.dispose();this.G6&&this.G6.dispose()}; g.d.HM=function(n){var q=Sk(this.MP.get()),w=ur(this.MP.get());if(q&&w&&!this.fL()){w=Yj(n.clientMetadata,"metadata_type_preload_player_vars");var X=this.MP.get();X=g.Jv(X.T.B().experiments,"html5_preload_wait_time_secs");w&&this.G6&&this.G6.start(X*1E3)}c23(this,n);NVm(this);q?(w=this.AU.get(),n=Yj(n.clientMetadata,"metadata_type_player_vars"),w.T.loadVideoByPlayerVars(n,!1,2)):Enu(this.AU.get(),Yj(n.clientMetadata,"metadata_type_player_vars"));var P;(P=this.XH)==null||P.start();q||this.AU.get().T.playVideo(2)}; g.d.SW=function(){var n;(n=this.XH)==null||n.stop();this.Xk();(this.adCpn=Wgu(this))||R0("Media layout confirmed started, but ad CPN not set.");this.Y4.get().T3("onAdStart",this.adCpn);this.Po=Date.now()}; g.d.Qj=function(){var n;return(n=$8(this.rl.get(),2))==null?void 0:n.An}; g.d.Kl=function(){this.VT.sF("clickthrough")}; g.d.Bb=function(n,q){var w=this;this.D4(n,function(){if(w.BQ!=="rendering_stop_requested"){w.BQ="rendering_stop_requested";w.layoutExitReason=q;vc(w,q);var X;(X=w.XH)==null||X.stop();w.G6&&w.G6.stop();Isx(w)}})}; g.d.onCueRangeEnter=function(n){if(n!==this.yb)R0("Received CueRangeEnter signal for unknown layout.",this.G9(),this.Z0(),{cueRangeId:n});else{var q=this.context.jG,w=this.Z0().layoutId;if(Rn(q.MP.get(),!0)){var X={};q.vQ("mccre",(X.cid=n,X.p_ac=w,X))}this.pG.get().removeCueRange(this.yb);this.yb=void 0;MB(this.context.MP.get(),"html5_ssap_flush_at_stop_rendering")&&this.fL()||(n=Yj(this.Z0().clientMetadata,"metadata_type_video_length_seconds"),this.hO(n,!0),this.Qa("complete"))}}; g.d.Nx=function(n){n!=="abandoned"&&this.Y4.get().T3("onAdComplete");this.Y4.get().T3("onAdEnd",this.adCpn)}; g.d.Xk=function(){this.yb="adcompletioncuerange:"+this.Z0().layoutId;this.pG.get().addCueRange(this.yb,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var n=this.context.jG,q=this.yb,w=this.Z0().layoutId;if(Rn(n.MP.get(),!0)){var X={};n.vQ("mccr",(X.cid=q,X.p_ac=w,X))}}; g.d.onCueRangeExit=function(){}; g.d.Di=function(n){this.BQ==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&n>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.cW.get().Yy(!0),this.hO(n))}; g.d.hO=function(n,q){VE.prototype.hO.call(this,n,q===void 0?!1:q);q=Date.now()-this.Po;var w=n*1E3,X={contentCpn:this.hh(),adCpn:Wgu(this)};if(n-this.xR>=5){var P=q=2||(this.gM.Bb(this.layout,q),n=MB(this.params.context.MP.get(),"html5_ssap_pass_transition_reason")&&q==="abandoned",this.Kn()&&!n&&(MB(this.params.context.MP.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(q)||R0("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:q})),this.x4.get().finishSegmentByCpn(this.layout.layoutId, $8(this.rl.get(),1).clientPlaybackNonce,lr(q,this.params.context.MP))),this.cW.get().removeListener(this),this.QD()&&nT(this.gM.ZN())&&this.ZA.MU(this.slot,this.layout,this.gM.ZN().N))}; g.d.Gq=function(n,q,w){VVY({cpn:n,b7:this.rl.get(),Sf:!0});this.Z0().layoutId!==n||MB(this.params.context.MP.get(),"html5_ssap_pass_transition_reason")&&w===5||(this.gM.ZN().currentState<2&&(n=Gj(w,this.params.context.MP),n==="error"?this.ZA.Sv(this.slot,this.layout,new b1("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:w},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):X$(this.CL, this.layout,n)),MB(this.params.context.MP.get(),"html5_ssap_exit_without_waiting_for_transition")||this.ZA.MU(this.slot,this.layout,this.gM.ZN().N))};g.m(Wc,g.A);g.d=Wc.prototype;g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.iH=function(){}; g.d.Iz=function(){return this.jr[this.t1]}; g.d.kL=function(){return this.t1}; g.d.C8=function(n,q){var w=this.Iz();q.layoutId!==nl(w,n,q)?R0("pauseLayout for a PlayerBytes layout that is not currently active",n,q):w.C8()}; g.d.lA=function(n,q){var w=this.Iz();q.layoutId!==nl(w,n,q)?R0("resumeLayout for a PlayerBytes layout that is not currently active",n,q):w.lA()}; g.d.gY=function(n,q){var w=this.Iz();UFY(this,n,q);t6s(w,n,q)&&this.e5(w.G9(),w.Z0(),"skipped")}; g.d.UZ=function(n,q){var w=this.Iz();dFy(this);g0Y(w,n,q)&&(n=mFx(this,w,n,q),n!==void 0&&(this.fL()?R0("Should not happen. Should delete"):as0(this,w.G9(),w.Z0(),n)))}; g.d.Uv=function(n,q){var w=Object.assign({},NP(this),{layoutId:q.layoutId}),X=w.layoutId,P=w.Sf;if(w.Br){var R={};Xw(w.b7,"wrse",(R.ec=X,R.is=P,R.ctp=wq(X),R))}s3(this.Ht,n,q)}; g.d.oP=function(n,q){var w;(w=this.Iz())==null||w.oP(n,q)}; g.d.MU=function(n,q,w){q.layoutId===this.Z0().layoutId&&(this.jm=!1,n4(this.m_(),this));var X;(X=this.Iz())==null||X.MU(n,q,w)}; g.d.Di=function(n){var q;(q=this.Iz())==null||q.Di(n)}; g.d.cI=function(n,q,w){this.kL()===-1&&(this.callback.oP(this.slot,this.layout),this.t1++);var X=this.Iz();X?(X.zi(n,q,w),this.fL()&&this.callback.Sv(this.slot,this.layout,q,w)):R0("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.kL()),layoutId:this.Z0().layoutId})}; g.d.onFullscreenToggled=function(n){var q;(q=this.Iz())==null||q.onFullscreenToggled(n)}; g.d.Hd=function(n){var q;(q=this.Iz())==null||q.Hd(n)}; g.d.Ui=function(n){var q;(q=this.Iz())==null||q.Ui(n)}; g.d.onVolumeChange=function(){var n;(n=this.Iz())==null||n.onVolumeChange()}; g.d.Fr=function(n,q,w){eg(this.Ht,n,q,w)}; g.d.yE=function(n){n.startRendering(n.Z0())}; g.d.init=function(){var n=Yj(this.Z0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=this);if(this.jr.length<1)throw new z("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.jr.length)});if(n=Yj(this.Z0().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))n.current=this;n=g.a(this.jr);for(var q=n.next();!q.done;q=n.next())q=q.value,q.init(),Ss0(this.Ht,this.slot,q.Z0()),u1x(this.Ht,this.slot,q.Z0()); if(this.fL())for(this.rl.get().addListener(this),tVh(HXu(this),this.rl.get()),n=HXu(this),n=g.a(n),q=n.next();!q.done;q=n.next())this.SR(q.value)}; g.d.SR=function(n){var q=Yj(n.clientMetadata,"metadata_type_player_vars");q?(n.layoutType!=="LAYOUT_TYPE_MEDIA"&&R0("Non-video ad contains playerVars",this.slot,n),this.AU.get().addPlayerResponseForAssociation({playerVars:q})):(n=fs6(n),this.AU.get().addPlayerResponseForAssociation({qh:n}))}; g.d.release=function(){var n=Yj(this.Z0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=null);if(n=Yj(this.Z0().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))n.current=null;n=g.a(this.jr);for(var q=n.next();!q.done;q=n.next())q=q.value,BPz(this.Ht,this.slot,q.Z0()),q.release();this.fL()&&(this.rl.get().removeListener(this),d3y())}; g.d.D4=function(n){return n.layoutId!==this.Z0().layoutId?(this.callback.Sv(this.G9(),n,new b1("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Z0().layoutId+("and LayoutType: "+this.Z0().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.d.Kg=function(){this.cW.get().addListener(this);Nr(this.m_(),this)}; g.d.zw=function(n){if(n.state.isError()){var q,w;this.cI((q=n.state.er)==null?void 0:q.errorCode,new b1("There was a player error during this media layout.",{playerErrorCode:(w=n.state.er)==null?void 0:w.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(q=this.Iz())&&q.zw(n)}; g.d.fL=function(){var n=Yj(this.G9().clientMetadata,"metadata_type_eligible_for_ssap");return n===void 0?(R0("Expected SSAP eligibility in PlayerBytes slots",this.G9(),this.Z0()),!1):this.MP.get().fL(n)}; g.d.G1=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Kd=function(){}; g.d.ge=function(){}; g.m(P4,Wc);g.d=P4.prototype;g.d.Rq=function(n,q,w){this.e5(n,q,w)}; g.d.B3=function(n,q){this.e5(n,q,"error")}; g.d.e5=function(n,q,w){var X=this;y2T(this,n,q,w,function(){qd(X,X.kL()+1)})}; g.d.startRendering=function(n){this.D4(n)&&(this.Kg(),lWO(this.ai.get()),YHs(this.MP.get())||atO(this.cW.get()),this.kL()===-1&&qd(this,this.kL()+1))}; g.d.Bb=function(n,q){var w=this;this.jm=!0;this.kL()===this.jr.length?this.callback.MU(this.slot,this.layout,q):(n=this.Iz(),n.Bb(n.Z0(),q),this.QV=function(){w.callback.MU(w.slot,w.layout,q)}); this.cW.get().T.Ol();Enu(this.AU.get(),{});n=RT(this.cW.get(),1);n.isPaused()&&!g.Z(n,2)&&this.cW.get().playVideo();this.cW.get().removeListener(this);this.jm&&V6x(this)}; g.d.Gq=function(){}; g.d.ZI=function(){}; g.d.Hm=function(){}; g.m(R9,Wc);g.d=R9.prototype;g.d.Rq=function(n,q,w){n=Object.assign({},NP(this),{layoutId:q.layoutId,layoutExitReason:w});q=n.layoutId;w=n.layoutExitReason;var X={};Xw(n.b7,"prse",(X.xc=q,X.ler=w,X.ctp=wq(q),X))}; g.d.B3=function(){R0("onSubLayoutError in SSAP")}; g.d.e5=function(){R0("exitSubLayoutAndPlayNext in SSAP")}; g.d.Iz=function(){return this.w$}; g.d.kL=function(){var n=this;return this.jr.findIndex(function(q){var w;return q.Z0().layoutId===((w=n.w$)==null?void 0:w.Z0().layoutId)})}; g.d.yE=function(n){Pn(this.w$===void 0,"replacing another adapter");this.w$=n;n.startRendering(n.Z0())}; g.d.Fr=function(n,q,w){eg(this.Ht,n,q,w);var X;Pn(q.layoutId===((X=this.w$)==null?void 0:X.Z0().layoutId),"currentAdapter does not match exiting layout",{slot:n?"slot: "+n.slotType:"",subLayout:Xu(q)})&&(this.w$=void 0)}; g.d.release=function(){Wc.prototype.release.call(this);Pn(this.w$===void 0,"currentAdapter is still active during release");this.w$=void 0}; g.d.Kn=function(){return this.cW.get().getPresentingPlayerType()===2}; g.d.Bb=function(n,q){function w(){c4(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(q)||R0("Composite stopRendering: Unexpected layout exit reason",this.slot,n,{layoutExitReason:q}))} function X(){this.w$&&I9(this,this.w$,q);if(this.Kn()&&(!c4(this)||q!=="abandoned")){w.call(this);var R;var c=((R=this.rl.get().T.getVideoData())==null?void 0:R.clientPlaybackNonce)||"";R=$8(this.rl.get(),1).clientPlaybackNonce;this.x4.get().finishSegmentByCpn(c,R,lr(q,this.MP))}pns(this,q)} function P(){if(this.w$){var R=this.w$;R.ZN().currentState<2&&R.Bb(R.Z0(),q);R=c4(this)&&q==="abandoned";this.Kn()&&!R&&(w.call(this),this.x4.get().finishSegmentByCpn(this.w$.Z0().layoutId,$8(this.rl.get(),1).clientPlaybackNonce,lr(q,this.MP)))}} Pn(n.layoutId===this.Z0().layoutId,"StopRendering for wrong layout")&&Nm(this.Xu.X,q)&&(this.QD()?X.call(this):P.call(this))}; g.d.MU=function(n,q,w){Wc.prototype.MU.call(this,n,q,w);q.layoutId===this.Z0().layoutId&&this.cW.get().removeListener(this)}; g.d.hh=function(){return $8(this.rl.get(),1).clientPlaybackNonce}; g.d.Gq=function(n,q,w){VVY(Object.assign({},NP(this),{cpn:n}));if(!c4(this)||w!==5)if(this.QD()){if(this.w$&&this.w$.Z0().layoutId!==q){var X=this.w$.Z0().layoutId;X!==n&&R0("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:X,exitingCpn:n,enteringCpn:q});n=Gj(w,this.MP);I9(this,this.w$,n)}else this.w$&&R0("onClipExited: active layout is entering again");q===this.hh()&&Fah(this,w)}else{if(this.w$&&this.w$.Z0().layoutId===n)T_s(this,this.w$,w);else{var P;R0("Exiting cpn does not match active cpn", this.slot,(X=this.w$)==null?void 0:X.Z0(),{exitingCpn:n,transitionReason:w,activeCpn:(P=this.w$)==null?void 0:P.Z0().layoutId})}q===this.hh()&&(this.w$!==void 0&&(R0("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Xu(this.w$.Z0())}),T_s(this,this.w$,w)),Fah(this,w),pns(this,this.Xu.X.N))}}; g.d.QD=function(){return MB(this.MP.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.d.startRendering=function(n){this.D4(n)&&(n=this.Xu,Pn(n.N===1,"tickStartRendering: state is not initial"),n.N=2,this.Kg())}; g.d.ZI=function(n){aFT(Object.assign({},NP(this),{cpn:n}));var q=this.jr.find(function(w){return w.Z0().layoutId===n}); q?(this.Xu.N!==2&&(IU6(this.Jz,this.slot.slotId),Pn(this.Xu.N===2,"Expect started"),this.callback.oP(this.slot,this.layout)),this.yE(q),s3(this.Ht,this.slot,q.Z0())):$Fu(this,n)}; g.d.gY=function(n,q){UFY(this,n,q);var w=this.Iz();w?t6s(w,n,q)&&v0m(this,"skipped"):Las(this,"onSkipRequested")}; g.d.UZ=function(n,q){var w;a:{if(w=this.Iz()){if(dFy(this),g0Y(w,n,q)&&(n=mFx(this,w,n,q),n!==void 0)){w={aB:w,A$P:this.jr[n]};break a}}else Las(this,"SkipWithAdPodSkip");w=void 0}if(n=w)w=n.aB,q=n.A$P,n=w.Z0().layoutId,this.QD()?I9(this,w,"skipped"):w.Bb(w.Z0(),"skipped"),w=q.Z0().layoutId,this.x4.get().finishSegmentByCpn(n,w,lr("skipped",this.MP))}; g.d.Uv=function(){R0("Not used in html5_ssap_fix_layout_exit")}; g.d.zw=function(n){var q;(q=this.Iz())==null||q.zw(n)}; g.d.cI=function(){R0("Not used in html5_ssap_fix_layout_exit")}; g.d.Hm=function(n,q,w){var X;if(((X=this.Iz())==null?void 0:X.Z0().layoutId)!==q.layoutId)return void R0("requestToExitSubLayout: wrong layout");v0m(this,w)};g.m(kJ,g.A);g.d=kJ.prototype;g.d.G9=function(){return this.gM.G9()}; g.d.Z0=function(){return this.gM.Z0()}; g.d.init=function(){var n=Yj(this.Z0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=this);this.Fe()}; g.d.Fe=function(){this.gM.init()}; g.d.release=function(){var n=Yj(this.Z0().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");n&&(n.current=null);this.Na()}; g.d.Na=function(){this.gM.release()}; g.d.C8=function(){this.gM.C8()}; g.d.lA=function(){this.gM.lA()}; g.d.gY=function(n,q){R0("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.G9(),this.Z0(),{requestingSlot:n,requestingLayout:q})}; g.d.startRendering=function(n){n.layoutId!==this.Z0().layoutId?this.callback.Sv(this.G9(),n,new b1("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Z0().layoutId+("and LayoutType: "+this.Z0().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.cW.get().addListener(this),Nr(this.m_(),this),lWO(this.ai.get()),YHs(this.MP.get())||atO(this.cW.get()),this.gM.startRendering(n))}; g.d.Bb=function(n,q){this.jm=!0;this.gM.Bb(n,q);this.cW.get().T.Ol();Enu(this.AU.get(),{});n=RT(this.cW.get(),1);n.isPaused()&&!g.Z(n,2)&&this.cW.get().playVideo();this.cW.get().removeListener(this);this.jm&&this.gM.Id()}; g.d.oP=function(n,q){this.gM.oP(n,q)}; g.d.MU=function(n,q,w){q.layoutId===this.Z0().layoutId&&(this.jm=!1,n4(this.m_(),this));this.gM.MU(n,q,w);q.layoutId===this.Z0().layoutId&&wa(this.ai.get())}; g.d.Di=function(n){this.gM.Di(n)}; g.d.zw=function(n){if(n.state.isError()){var q,w;this.cI((q=n.state.er)==null?void 0:q.errorCode,new b1("There was a player error during this media layout.",{playerErrorCode:(w=n.state.er)==null?void 0:w.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.gM.zw(n)}; g.d.cI=function(n,q,w){this.gM.zi(n,q,w)}; g.d.onFullscreenToggled=function(n){this.gM.onFullscreenToggled(n)}; g.d.Hd=function(n){this.gM.Hd(n)}; g.d.Ui=function(n){this.gM.Ui(n)}; g.d.onVolumeChange=function(){this.gM.onVolumeChange()}; g.d.G1=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.Kd=function(){}; g.d.ge=function(){};g.d=ra.prototype;g.d.G9=function(){return this.slot}; g.d.Z0=function(){return this.layout}; g.d.init=function(){this.Gz.get().addListener(this);this.cW.get().addListener(this);var n=Yj(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var q=Yj(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.W){var w=this.Gz.get().Vr.slice(-1)[0];w!==void 0&&(n=w.startSecs*1E3,q=(w.startSecs+w.lx)*1E3)}this.Ak(n,q);var X;w=(X=this.rl.get().CN)==null?void 0:X.clientPlaybackNonce;X=this.layout.Dj.adClientDataEntry;jD(this.hg.get(),{daiStateTrigger:{filledAdsDurationMs:q-n,contentCpn:w, adClientData:X}});var P=this.Gz.get();P=DFs(P.C,n,q);P!==null&&(jD(this.hg.get(),{daiStateTrigger:{filledAdsDurationMs:P-n,contentCpn:w,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:X}}),this.x4.get().q4(P,q))}; g.d.release=function(){this.Na();this.Gz.get().removeListener(this);this.cW.get().removeListener(this)}; g.d.startRendering=function(){this.HM();this.callback.oP(this.slot,this.layout)}; g.d.Bb=function(n,q){this.De(q);this.driftRecoveryMs!==null&&(se(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(hfs(this)-Yj(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.cW.get().T.TH()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.MU(this.slot,this.layout,q)}; g.d.pW=function(){return!1}; g.d.Qc=function(n){var q=Yj(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),w=Yj(this.layout.clientMetadata,"metadata_type_layout_exit_ms");n*=1E3;if(q<=n&&n0&&f4(this.N(),q)}; g.d.tM=function(n){this.K.delete(n.slotId);for(var q=[],w=g.a(this.lL.values()),X=w.next();!X.done;X=w.next()){X=X.value;var P=X.trigger;P instanceof IS&&P.triggeringSlotId===n.slotId&&q.push(X)}q.length>0&&f4(this.N(),q)}; g.d.Wd=function(n){for(var q=[],w=g.a(this.lL.values()),X=w.next();!X.done;X=w.next()){X=X.value;var P=X.trigger;P instanceof z0&&P.slotType===n.slotType&&P.N!==n.slotId&&q.push(X)}q.length>0&&f4(this.N(),q)}; g.d.JJ=function(n){this.C.add(n.slotId);for(var q=[],w=g.a(this.lL.values()),X=w.next();!X.done;X=w.next())X=X.value,X.trigger instanceof wz&&n.slotId===X.trigger.triggeringSlotId&&q.push(X);q.length>0&&f4(this.N(),q)}; g.d.tJ=function(n){this.C.delete(n.slotId);this.W.add(n.slotId);for(var q=[],w=g.a(this.lL.values()),X=w.next();!X.done;X=w.next())if(X=X.value,X.trigger instanceof XI)n.slotId===X.trigger.triggeringSlotId&&q.push(X);else if(X.trigger instanceof o9){var P=X.trigger;n.slotId===P.slotId&&this.X.has(P.triggeringLayoutId)&&q.push(X)}q.length>0&&f4(this.N(),q)}; g.d.wm=function(n){for(var q=[],w=g.a(this.lL.values()),X=w.next();!X.done;X=w.next())X=X.value,X.trigger instanceof Ps&&n.slotId===X.trigger.triggeringSlotId&&q.push(X);q.length>0&&f4(this.N(),q)}; g.d.JM=function(n){for(var q=[],w=g.a(this.lL.values()),X=w.next();!X.done;X=w.next())X=X.value,X.trigger instanceof RS&&n.slotId===X.trigger.triggeringSlotId&&q.push(X);q.length>0&&f4(this.N(),q)}; g.d.iP=function(n,q){this.D.add(q.layoutId)}; g.d.P_=function(n,q){this.D.delete(q.layoutId)}; g.d.oP=function(n,q){this.X.add(q.layoutId);for(var w=[],X=g.a(this.lL.values()),P=X.next();!P.done;P=X.next())if(P=P.value,P.trigger instanceof bN)q.layoutId===P.trigger.triggeringLayoutId&&w.push(P);else if(P.trigger instanceof JG){var R=P.trigger;n.slotType===R.slotType&&q.layoutType===R.layoutType&&q.layoutId!==R.N&&w.push(P)}else P.trigger instanceof o9&&(R=P.trigger,q.layoutId===R.triggeringLayoutId&&this.W.has(R.slotId)&&w.push(P));w.length>0&&f4(this.N(),w)}; g.d.MU=function(n,q,w){this.X.delete(q.layoutId);n=[];for(var X=g.a(this.lL.values()),P=X.next();!P.done;P=X.next())if(P=P.value,P.trigger instanceof YJ&&q.layoutId===P.trigger.triggeringLayoutId&&n.push(P),P.trigger instanceof AG){var R=P.trigger;q.layoutId===R.triggeringLayoutId&&R.N.includes(w)&&n.push(P)}n.length>0&&f4(this.N(),n)}; g.d.Tw=function(){}; g.d.Z3=function(){this.W.clear()}; g.d.Qd=function(){};g.m(Wp,g.A);Wp.prototype.s2=function(n,q,w,X){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");if(!(q instanceof Cl))throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CloseRequestedTriggerAdapter");this.lL.set(q.triggerId,new t$(n,q,w,X))}; Wp.prototype.S$=function(n){this.lL.delete(n.triggerId)};g.m(nY,g.A);nY.prototype.s2=function(n,q,w,X){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");if(!(q instanceof G0||q instanceof Nd))throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.lL.set(q.triggerId,new t$(n,q,w,X))}; nY.prototype.S$=function(n){this.lL.delete(n.triggerId)}; nY.prototype.Z3=function(n){for(var q=[],w=q.push,X=w.apply,P=[],R=g.a(this.lL.values()),c=R.next();!c.done;c=R.next())c=c.value,c.trigger instanceof G0&&c.trigger.bq===n&&P.push(c);X.call(w,q,g.D(P));w=q.push;X=w.apply;P=[];R=g.a(this.lL.values());for(c=R.next();!c.done;c=R.next())c=c.value,c.trigger instanceof Nd&&c.trigger.N!==n&&P.push(c);X.call(w,q,g.D(P));q.length&&f4(this.N(),q)}; nY.prototype.Qd=function(n){for(var q=[],w=q.push,X=w.apply,P=[],R=g.a(this.lL.values()),c=R.next();!c.done;c=R.next()){c=c.value;var k=c.trigger;k instanceof Nd&&k.N===n&&P.push(c)}X.call(w,q,g.D(P));q.length&&f4(this.N(),q)};g.m(qG,g.A);g.d=qG.prototype;g.d.s2=function(n,q,w,X){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");var P="adtriggercuerange:"+q.triggerId;if(q instanceof Qn)zus(this,n,q,w,X,P,q.N.start,q.N.end,q.bq,q.visible);else if(q instanceof Ee)zus(this,n,q,w,X,P,0x7ffffffffffff,0x8000000000000,q.bq,q.visible);else throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in CueRangeTriggerAdapter");}; g.d.S$=function(n){var q=this.lL.get(n.triggerId);q&&this.pG.get().removeCueRange(q.cueRangeId);this.lL.delete(n.triggerId)}; g.d.onCueRangeEnter=function(n){var q=W5m(this,n);if(q&&(q=this.lL.get(q)))if(g.Z(RT(this.cW.get()),32))this.N.add(q.cueRangeId);else{var w=q==null?void 0:q.uy.trigger;if(w instanceof Qn||w instanceof Ee){if(Rn(this.context.MP.get())){var X=q.uy.slot,P=q.uy.layout,R={};this.context.jG.vQ("cre",(R.ca=q.uy.category,R.tt=w.triggerType,R.st=X.slotType,R.lt=P==null?void 0:P.layoutType,R.cid=n,R))}f4(this.X(),[q.uy])}}}; g.d.onCueRangeExit=function(n){(n=W5m(this,n))&&(n=this.lL.get(n))&&this.N.delete(n.cueRangeId)}; g.d.zw=function(n){if(I0(n,16)<0){n=g.a(this.N);for(var q=n.next();!q.done;q=n.next())this.onCueRangeEnter(q.value,!0);this.N.clear()}}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.oP=function(){}; g.d.MU=function(){}; g.d.Tw=function(){}; g.d.Di=function(){}; g.d.onFullscreenToggled=function(){}; g.d.Hd=function(){}; g.d.G1=function(){}; g.d.Ui=function(){}; g.d.onVolumeChange=function(){}; g.d.Kd=function(){}; g.d.ge=function(){};g.m(wu,g.A);g.d=wu.prototype; g.d.s2=function(n,q,w,X){if(this.X.has(q.triggerId)||this.C.has(q.triggerId))throw new z("Tried to re-register the trigger.");n=new t$(n,q,w,X);if(n.trigger instanceof B4)this.X.set(n.trigger.triggerId,n);else if(n.trigger instanceof Kl)this.C.set(n.trigger.triggerId,n);else throw new z("Incorrect TriggerType: Tried to register trigger of type "+n.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.X.has(n.trigger.triggerId)&&n.slot.slotId===this.N&&f4(this.W(),[n])}; g.d.S$=function(n){this.X.delete(n.triggerId);this.C.delete(n.triggerId)}; g.d.iH=function(n){n=n.slotId;if(this.N!==n){var q=[];this.N!=null&&q.push.apply(q,g.D(NsT(this.C,this.N)));n!=null&&q.push.apply(q,g.D(NsT(this.X,n)));this.N=n;q.length&&f4(this.W(),q)}}; g.d.Gq=function(){}; g.d.ZI=function(){};g.m(X7,g.A);g.d=X7.prototype;g.d.s2=function(n,q,w,X){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");if(!(q instanceof W4))throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.lL.set(q.triggerId,new t$(n,q,w,X))}; g.d.S$=function(n){this.lL.delete(n.triggerId)}; g.d.oP=function(){}; g.d.MU=function(){}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){};g.m(P7,g.A);g.d=P7.prototype;g.d.Tw=function(n,q){for(var w=[],X=g.a(this.lL.values()),P=X.next();!P.done;P=X.next()){P=P.value;var R=P.trigger;R.opportunityType===n&&(R.associatedSlotId&&R.associatedSlotId!==q||w.push(P))}w.length&&f4(this.N(),w)}; g.d.s2=function(n,q,w,X){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");if(!(q instanceof rBx))throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in OpportunityEventTriggerAdapter");this.lL.set(q.triggerId,new t$(n,q,w,X))}; g.d.S$=function(n){this.lL.delete(n.triggerId)}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.oP=function(){}; g.d.MU=function(){};g.m(Ru,g.A);g.d=Ru.prototype;g.d.s2=function(n,q,w,X){n=new t$(n,q,w,X);if(q instanceof SD||q instanceof ZB||q instanceof uN||q instanceof nh||q instanceof rZY){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");this.lL.set(q.triggerId,n)}else throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in PrefetchTriggerAdapter");}; g.d.S$=function(n){this.lL.delete(n.triggerId)}; g.d.uP=function(n){var q=n.slotFulfillmentTriggers.find(function(w){return w instanceof SD}); q&&(c7(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",q.breakDurationMs,new Set([n.slotId]),!0),fl(this.hg.get(),"ads_css","sid."+n.slotId+";bd."+q.breakDurationMs))}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.oP=function(){}; g.d.MU=function(){}; g.d.Tw=function(){}; g.d.pW=function(n){var q=this;if(!this.N)return R0("Unexpected cue break before fetch instructions are available"),!1;this.X&&this.X.stop();this.K&&g.K9(this.K);var w=X_z(this,n);if(!w){var X=qds(this),P=this.G!==void 0&&Date.now()<=this.G+1E4;fl(this.hg.get(),"ads_ncfs","cid."+n.identifier+";cd."+n.lx.toFixed(3)+";ccs."+P+";cfa."+this.W+";bdc."+X.length+";"+X.slice(0,6).map(function(R){return";bd."+R}).join("")); return P?(Gz(this.FJ,this.N,n),!0):!1}(new g.YF(function(){var R=w.trigger,c=w.slot;c7(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",R.breakDurationMs,new Set,!0);c7(q,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",R.breakDurationMs,new Set,!1);for(var k=0,r=g.a(q.lL.values()),e=r.next();!e.done;e=r.next()){e=e.value;var f=e.trigger;e.slot.slotId===c.slotId&&(q.lL.delete(f.triggerId),k++)}fl(q.hg.get(),"ads_csf","sid."+c.slotId+";bd."+R.breakDurationMs+";dt."+k)}, 10)).start(); return!0}; g.d.Qc=function(){}; g.d.Z3=function(n){var q=this;this.W=!1;this.G=Date.now();if(this.N&&this.N.contentCpn!==n)R0("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:n,fetchInstructionsCpn:this.N.contentCpn}),Iu(this);else{this.C=new g.YF(function(){if(q.W)delete q.C;else{var X=q.cW.get().getGetAdBreakContext(),P;if(Number(X==null?void 0:(P=X.livePlaybackPosition)==null?void 0:P.utcTimeMillis)>0)delete q.C,w_h(q);else{var R;(R=q.C)==null||R.start()}}},200); var w;(w=this.C)==null||w.start()}}; g.d.Qd=function(n){this.N&&this.N.contentCpn!==n&&R0("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:n,fetchInstructionsCpn:this.N.contentCpn},!0);Iu(this)}; g.d.sW=function(n){var q=this;if(this.N)R0("Unexpected multiple fetch instructions for the current content");else{this.N=n;n=RY6(n);this.X=new g.YF(function(){w_h(q)},n?n:6E5); this.X.start();this.K=new g.YF(function(){q.N&&(q.X&&(q.X.stop(),q.X.start()),njm(q,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},P1s(this.N)); n=this.cW.get().getCurrentTimeSec(1,!1);for(var w=g.a(this.Gz.get().Vr),X=w.next();!X.done;X=w.next())X=X.value,fl(this.hg.get(),"nocache","ct."+Date.now()+";cmt."+n+";d."+X.lx.toFixed(3)+";tw."+(X.startSecs-n)+";cid."+X.identifier+";")}}; g.d.Xf=function(){g.A.prototype.Xf.call(this);Iu(this)};g.m(kf,g.A);g.d=kf.prototype;g.d.s2=function(n,q,w,X){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");if(!(q instanceof Uu))throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.lL.set(q.triggerId,new t$(n,q,w,X));n=this.N.has(q.triggeringLayoutId)?this.N.get(q.triggeringLayoutId):new Set;n.add(q);this.N.set(q.triggeringLayoutId,n)}; g.d.S$=function(n){this.lL.delete(n.triggerId);if(!(n instanceof Uu))throw new z("Incorrect TriggerType: Tried to unregister trigger of type "+n.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var q=this.X.get(n.triggerId);q&&(q.dispose(),this.X.delete(n.triggerId));if(q=this.N.get(n.triggeringLayoutId))q.delete(n),q.size===0&&this.N.delete(n.triggeringLayoutId)}; g.d.uP=function(){}; g.d.tM=function(){}; g.d.Wd=function(){}; g.d.JJ=function(){}; g.d.tJ=function(){}; g.d.wm=function(){}; g.d.JM=function(){}; g.d.iP=function(){}; g.d.P_=function(){}; g.d.Tw=function(){}; g.d.oP=function(n,q){var w=this;if(this.N.has(q.layoutId)){n=this.N.get(q.layoutId);n=g.a(n);var X=n.next();for(q={};!X.done;q={Dt:void 0},X=n.next())q.Dt=X.value,X=new g.YF(function(P){return function(){var R=w.lL.get(P.Dt.triggerId);f4(w.C(),[R])}}(q),q.Dt.durationMs),X.start(),this.X.set(q.Dt.triggerId,X)}}; g.d.MU=function(){};g.m(ru,g.A);ru.prototype.s2=function(n,q,w,X){if(this.lL.has(q.triggerId))throw new z("Tried to register duplicate trigger for slot.");if(!(q instanceof hG))throw new z("Incorrect TriggerType: Tried to register trigger of type "+q.triggerType+" in VideoTransitionTriggerAdapter.");this.lL.set(q.triggerId,new t$(n,q,w,X))}; ru.prototype.S$=function(n){this.lL.delete(n.triggerId)};fY.prototype.UI=function(n){return n.kind==="AD_PLACEMENT_KIND_START"};g.m(H7,g.A);g.d=H7.prototype;g.d.logEvent=function(n){this.y9(n)}; g.d.xS=function(n,q,w){this.y9(n,void 0,void 0,void 0,q,void 0,void 0,void 0,q.adSlotLoggingData,void 0,void 0,w)}; g.d.o0=function(n,q,w,X){this.y9(n,void 0,void 0,void 0,q,w?w:void 0,void 0,void 0,q.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,void 0,X)}; g.d.JZ=function(n,q,w,X){MB(this.MP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+n,"trigger:",w,"slot:",q,"layout:",X);Qb(this.N.get())&&this.y9(n,void 0,void 0,void 0,q,X?X:void 0,void 0,w,q.adSlotLoggingData,X?X.adLayoutLoggingData:void 0)}; g.d.pg=function(n,q,w,X,P){this.y9(n,q,w,X,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P)}; g.d.MY=function(n,q,w,X){this.y9("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,w,X,void 0,void 0,w.adSlotLoggingData,X?X.adLayoutLoggingData:void 0,{errorType:n,errorMessage:q})}; g.d.y9=function(n,q,w,X,P,R,c,k,r,e,f,O){var H=this;O=O===void 0?0:O;MB(this.MP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+n,"slot:",P,"layout:",R,"ping:",c,"Opportunity:",{opportunityType:q,associatedSlotId:w,b8p:X,LQh:k,adSlotLoggingData:r,adLayoutLoggingData:e});try{var U=function(){if(!H.MP.get().T.B().Z("html5_disable_client_tmp_logs")&&n!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){n||R0("Empty PACF event type",P,R);var t=Qb(H.N.get()),V={eventType:n,eventOrder:++H.eventCount},T={}; P&&(T.slotData=B_(t,P));R&&(T.layoutData=o2y(t,R));c&&(T.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:c.N.serializedAdPingMetadata,pingIndex:c.index});k&&(T.triggerData=u1(k.trigger,k.category));q&&(T.opportunityData=bR6(t,q,w,X));t={organicPlaybackContext:{contentCpn:$8(H.rl.get(),1).clientPlaybackNonce}};t.organicPlaybackContext.isLivePlayback=$8(H.rl.get(),1).T9;var x;t.organicPlaybackContext.isMdxPlayback=(x=$8(H.rl.get(),1))==null?void 0:x.isMdxPlayback; var M;if((M=$8(H.rl.get(),1))==null?0:M.daiEnabled)t.organicPlaybackContext.isDaiContent=!0;var h;if(x=(h=$8(H.rl.get(),2))==null?void 0:h.clientPlaybackNonce)t.adVideoPlaybackContext={adVideoCpn:x};t&&(T.externalContext=t);V.adClientData=T;r&&(V.serializedSlotAdServingData=r.serializedSlotAdServingDataEntry);e&&(V.serializedAdServingData=e.serializedAdServingDataEntry);f&&(V.errorInfo=f);g.Xc("adsClientStateChange",{adsClientEvent:V})}}; O&&O>0?g.u4(g.Qs(),function(){return U()},O):U()}catch(t){MB(this.MP.get(),"html5_log_pacf_logging_errors")&&g.u4(g.Qs(),function(){R0(t instanceof Error?t:String(t),P,R,{pacf_message:"exception during pacf logging"})})}};var qFl=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.m(U5,H7);g.d=U5.prototype; g.d.xS=function(n,q,w){H7.prototype.xS.call(this,n,q,w);Rn(this.MP.get())&&(w={},this.context.jG.vQ("pacf",(w.et=n,w.st=q.slotType,w.si=q.slotId,w)))}; g.d.o0=function(n,q,w,X){var P=qFl.has(n);H7.prototype.o0.call(this,n,q,w,X);Rn(this.MP.get(),P)&&(X={},this.context.jG.vQ("pacf",(X.et=n,X.st=q.slotType,X.si=q.slotId,X.lt=w==null?void 0:w.layoutType,X.li=w==null?void 0:w.layoutId,X.p_ac=w==null?void 0:w.layoutId,X)))}; g.d.pg=function(n,q,w,X,P){H7.prototype.pg.call(this,n,q,w,X,P);Rn(this.MP.get())&&(w={},this.context.jG.vQ("pacf",(w.et=n,w.ot=q,w.ss=X==null?void 0:X.length,w)))}; g.d.JZ=function(n,q,w,X){H7.prototype.JZ.call(this,n,q,w,X);if(Rn(this.MP.get())){var P={};this.context.jG.vQ("pacf",(P.et=n,P.tt=w.trigger.triggerType,P.tc=w.category,P.st=q.slotType,P.si=q.slotId,P.lt=X==null?void 0:X.layoutType,P.li=X==null?void 0:X.layoutId,P.p_ac=X==null?void 0:X.layoutId,P))}}; g.d.MY=function(n,q,w,X){H7.prototype.MY.call(this,n,q,w,X);if(Rn(this.MP.get(),!0)){var P={};this.context.jG.vQ("perror",(P.ert=n,P.erm=q,P.st=w.slotType,P.si=w.slotId,P.lt=X==null?void 0:X.layoutType,P.li=X==null?void 0:X.layoutId,P.p_ac=X==null?void 0:X.layoutId,P))}}; g.d.y9=function(n,q,w,X,P,R,c,k,r,e,f){var O=this.MP.get();g.jg(O.T.B())?(O=this.MP.get(),O=g.Jv(O.T.B().experiments,"H5_async_logging_delay_ms")):O=void 0;H7.prototype.y9.call(this,n,q,w,X,P,R,c,k,r,e,f,O)};tm.prototype.clear=function(){this.N.clear()};du.prototype.state=function(){return this.N==="fulfilled"?{state:"fulfilled",value:this.result}:this.N==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; du.prototype.W=function(n){mI(n)||gu(n)?Ti(ya(n),this.W.bind(this),this.reject.bind(this)):(this.N="fulfilled",this.result=n,pY(this))}; du.prototype.reject=function(n){this.N="rejected";this.error=n;pY(this)}; var gu=ch(function(n){return fLG(n)?n instanceof du:!1});Object.freeze({XF5:function(n){var q=xf(n);return Ti(MG(q,function(w){return q[w].N==="rejected"}),function(w){return Number.isNaN(w)?q.map(function(X){return X.state().value}):q[w]})}, MHW:function(n){var q=xf(n);return Ti(MG(q),function(){return q.map(function(w){return w.state()})})}, v1i:function(n){var q=xf(n);return Ti(MG(q,function(w){return q[w].N==="fulfilled"}),function(w){return Number.isNaN(w)?au(new AggregateError(q.map(function(X){return X.state().reason}))):q[w].state().value})}, CdT:function(n){var q=xf(n);return Ti(MG(q,function(){return!0}),function(w){return q[w]})}});var DH=window.Xte||"pt-BR";CY.prototype.iF=function(n){this.client=n}; CY.prototype.N=function(){this.clear();this.csn=g.Uk()}; CY.prototype.clear=function(){this.C.clear();this.X.clear();this.W.clear();this.csn=null};ou.prototype.iF=function(n){g.SY(E5().iF).bind(E5())(n)}; ou.prototype.clear=function(){g.SY(E5().clear).bind(E5())()};g.d=bG.prototype;g.d.iF=function(n){this.client=n}; g.d.EH=function(n,q){var w=this;q=q===void 0?{}:q;g.SY(function(){var X,P,R,c=((X=g.u(n==null?void 0:n.commandMetadata,g.T_))==null?void 0:X.rootVe)||((P=g.u(n==null?void 0:n.commandMetadata,dEi))==null?void 0:(R=P.screenVisualElement)==null?void 0:R.uiType);if(c){X=g.u(n==null?void 0:n.commandMetadata,E1v);if(X==null?0:X.parentTrackingParams){var k=g.Ok(X.parentTrackingParams);if(X.parentCsn)var r=X.parentCsn}else q.clickedVisualElement?k=q.clickedVisualElement:n.clickTrackingParams&&(k=g.Ok(n.clickTrackingParams)); a:{X=g.u(n,g.tH);P=g.u(n,M9f);if(X){if(P=VHs(X,"VIDEO")){X={token:P,videoId:X.videoId};break a}}else if(P&&(X=VHs(P,"PLAYLIST"))){X={token:X,playlistId:P.playlistId};break a}X=void 0}q=Object.assign({},{cttAuthInfo:X,parentCsn:r},q);if(g.OU("expectation_logging")){var e;q.loggingExpectations=((e=g.u(n==null?void 0:n.commandMetadata,dEi))==null?void 0:e.loggingExpectations)||void 0}Yf(w,c,k,q)}else g.TQ(new g.b4("Error: Trying to create a new screen without a rootVeType",n))})()}; g.d.clickCommand=function(n,q,w){n=n.clickTrackingParams;w=w===void 0?0:w;n?(w=g.Uk(w===void 0?0:w))?(Sh(this.client,w,g.Ok(n),q),q=!0):q=!1:q=!1;return q}; g.d.stateChanged=function(n,q,w){this.visualElementStateChanged(g.Ok(n),q,w===void 0?0:w)}; g.d.visualElementStateChanged=function(n,q,w){w=w===void 0?0:w;w===0&&this.X.has(w)?this.V.push([n,q]):LHx(this,n,q,w)};B7.prototype.fetch=function(n,q,w){var X=this,P=Dr0(n,q,w);return new Promise(function(R,c){function k(){if(w==null?0:w.z7)try{var e=X.handleResponse(n,P.status,P.response,w);R(e)}catch(f){c(f)}else R(X.handleResponse(n,P.status,P.response,w))} P.onerror=k;P.onload=k;var r;P.send((r=q.body)!=null?r:null)})}; B7.prototype.handleResponse=function(n,q,w,X){w=w.replace(")]}'","");try{var P=JSON.parse(w)}catch(R){g.TQ(new g.b4("JSON parsing failed after XHR fetch",n,q,w));if((X==null?0:X.z7)&&w)throw new g.E2(1,"JSON parsing failed after XHR fetch");P={}}q!==200&&(g.TQ(new g.b4("XHR API fetch failed",n,q,w)),P=Object.assign({},P,{errorMetadata:{status:q}}));return P};Qa.getInstance=function(){var n=g.w0("ytglobal.storage_");n||(n=new Qa,g.nj("ytglobal.storage_",n));return n}; Qa.prototype.estimate=function(){var n,q,w;return g.b(function(X){n=navigator;return((q=n.storage)==null?0:q.estimate)?X.return(n.storage.estimate()):((w=n.webkitTemporaryStorage)==null?0:w.queryUsageAndQuota)?X.return(hY0()):X.return()})}; g.nj("ytglobal.storageClass_",Qa);qU.prototype.O2=function(n){this.handleError(n)}; qU.prototype.logEvent=function(n,q){switch(n){case "IDB_DATA_CORRUPTED":g.OU("idb_data_corrupted_killswitch")||this.N("idbDataCorrupted",q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.N("idbUnexpectedlyClosed",q);break;case "IS_SUPPORTED_COMPLETED":g.OU("idb_is_supported_completed_killswitch")||this.N("idbIsSupportedCompleted",q);break;case "QUOTA_EXCEEDED":GZs(this,q);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=.1&&this.N("idbTransactionEnded",q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":n= Object.assign({},q,{hasWindowUnloaded:this.X}),this.N("idbTransactionAborted",n)}};var WZ={},EzO=g.Qc("yt-player-local-media",{PG:(WZ.index={kd:2},WZ.media={kd:2},WZ.captions={kd:5},WZ),shared:!1,upgrade:function(n,q){q(2)&&(g.a4(n,"index"),g.a4(n,"media"));q(5)&&g.a4(n,"captions");q(6)&&(Vc(n,"metadata"),Vc(n,"playerdata"))}, version:5});var whB={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},N_;a:{var n6=g.CV();n6=n6.toLowerCase();if(g.Mo(n6,"android")){var XhD=n6.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(XhD){var PJG=parseFloat(XhD[1]);if(PJG<100){N_=PJG;break a}}var RQB=n6.match("("+Object.keys(whB).join("|")+")");N_=RQB?whB[RQB[0]]:0}else N_=void 0}var We=N_,z7=We>=0;var hgz=window;var C10=xm(function(){var n,q;return(q=(n=window).matchMedia)==null?void 0:q.call(n,"(prefers-reduced-motion: reduce)").matches});var Jm;g.ZH=new eG;Jm=0;var fJ=Sdx()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.AN?!0:!1;var NG={Y5:function(n){n[I[57]]()}, OC:function(n,q){n[I[20]](0,q)}, Iw:function(n,q){var w=n[0];n[0]=n[q%n[I[5]]];n[q%n[I[5]]]=w}};var h00={fLn:"adunit",jXH:"detailpage",LKe:"editpage",EJn:"embedded",OO5:"leanback",s6h:"previewpage",VTH:"profilepage",xb:"unplugged",gLW:"playlistoverview",dYn:"sponsorshipsoffer",kYT:"shortspage",G1i:"handlesclaiming",mTH:"immersivelivepage",Gx5:"creatormusic",yxf:"immersivelivepreviewpage",AMo:"admintoolyurt",l2T:"shortsaudiopivot",FKH:"consumption"};var Qgs=2592E3;var q6,c0f,Cm;q6={};g.ii=(q6.STOP_EVENT_PROPAGATION="html5-stop-propagation",q6.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",q6.IV_DRAWER_OPEN="ytp-iv-drawer-open",q6.MAIN_VIDEO="html5-main-video",q6.VIDEO_CONTAINER="html5-video-container",q6.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",q6.HOUSE_BRAND="house-brand",q6);c0f={};Cm=(c0f.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",c0f.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",c0f);var XPO={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Iy6={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},kr0={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"},SOu={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var P3m={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.ty.prototype.getLanguageInfo=function(){return this.Va}; g.ty.prototype.getXtags=function(){if(!this.xtags){var n=this.id.split(";");n.length>1&&(this.xtags=n[1])}return this.xtags}; g.ty.prototype.toString=function(){return this.Va.name}; g.ty.prototype.getLanguageInfo=g.ty.prototype.getLanguageInfo;dn.prototype.equals=function(n){return this.X===n.X&&this.N===n.N&&this.C===n.C&&this.reason===n.reason&&(!mn||this.ED===n.ED)}; dn.prototype.isLocked=function(){return this.C&&!!this.X&&this.X===this.N}; dn.prototype.compose=function(n){if(n.C&&yQ(n))return rY;if(n.C||yQ(this))return n;if(this.C||yQ(n))return this;var q=this.X&&n.X?Math.max(this.X,n.X):this.X||n.X,w=this.N&&n.N?Math.min(this.N,n.N):this.N||n.N;q=Math.min(q,w);var X=0;mn&&(X=this.ED!==0&&n.ED!==0?Math.min(this.ED,n.ED):this.ED===0?n.ED:this.ED);return mn&&q===this.X&&w===this.N&&X===this.ED||!mn&&q===this.X&&w===this.N?this:mn?new dn(q,w,!1,w===this.N&&X===this.ED?this.reason:n.reason,X):new dn(q,w,!1,w===this.N?this.reason:n.reason)}; dn.prototype.W=function(n){return!n.video||mn&&this.ED!==0&&this.ED=0}; g.d.F1=function(){var n=this.segments[this.segments.length-1];return n?n.endTime:NaN}; g.d.oi=function(){return this.segments[0].startTime}; g.d.Y$=function(){return this.segments.length}; g.d.D2=function(){return 0}; g.d.NL=function(n){return(n=this.Tv(n))?n.kh:-1}; g.d.pn=function(n){return(n=this.O9(n))?n.sourceURL:""}; g.d.getStartTime=function(n){return(n=this.O9(n))?n.startTime:0}; g.d.eB=function(n){return this.getStartTime(n)+this.getDuration(n)}; g.d.Mf=P0(1);g.d.isLoaded=function(){return this.segments.length>0}; g.d.O9=function(n){if(this.N&&this.N.kh===n)return this.N;n=g.Yi(this.segments,new BM(n,0,0,0,""),function(q,w){return q.kh-w.kh}); return this.N=n>=0?this.segments[n]:null}; g.d.Tv=function(n){if(this.N&&this.N.startTime<=n&&n=0?this.segments[n]:this.segments[Math.max(0,-n-2)]}; g.d.append=function(n){if(n.length)if(n=g.Ml(n),this.segments.length){var q=this.segments.length?g.Ut(this.segments).endTime:0,w=n[0].kh-this.QL();w>1&&amx(this.segments);for(w=w>0?0:-w+1;wn.kh&&this.index.G4()<=n.kh+1}; g.d.update=function(n,q,w){this.index.append(n);Cvs(this.index,w);n=this.index;n.X=q;n.C="update"}; g.d.CD=function(){return this.cV()?!0:Kz.prototype.CD.call(this)}; g.d.Rr=function(n,q){var w=this.index.pn(n),X=this.index.getStartTime(n),P=this.index.getDuration(n),R;q?P=R=0:R=this.info.ED>0?this.info.ED*P:1E3;return new wl([new Z1(3,this,void 0,"liveCreateRequestInfoForSegment",n,X,P,0,R,!q)],w)}; g.d.g6=function(){return this.cV()?0:this.initRange.length}; g.d.eD=function(){return!1};rl.prototype.update=function(n){var q=void 0;this.X&&(q=this.X);var w=new rl,X=Array.from(n.getElementsByTagName("S"));if(X.length){var P=+If(n,"timescale")||1,R=(+X[0].getAttribute("t")||0)/P,c=+If(n,"startNumber")||0;w.W=R;var k=q?q.startSecs+q.lx:0,r=Date.parse(MSh(If(n,"yt:segmentIngestTime")))/1E3;w.K=n.parentElement.tagName==="SegmentTemplate";w.K&&(w.G=If(n,"media"));n=q?c-q.kh:1;w.D=n>0?0:-n+1;n=g.a(X);for(X=n.next();!X.done;X=n.next()){X=X.value;for(var e=+X.getAttribute("d")/P,f=(+X.getAttribute("yt:sid")|| 0)/P,O=+X.getAttribute("r")||0,H=0;H<=O;H++)if(q&&c<=q.kh)c++;else{var U=new vwh(c,k,e,r+f,R);w.N.push(U);var t=X;var V=P,T=U.startSecs;U=t.getAttribute("yt:cuepointTimeOffset");var x=t.getAttribute("yt:cuepointDuration");if(U&&x){U=Number(U);T=-U/V+T;V=Number(x)/V;x=t.getAttribute("yt:cuepointContext")||null;var M=t.getAttribute("yt:cuepointIdentifier")||"";t=t.getAttribute("yt:cuepointEvent")||"";t=new XU(T,V,x,M,kez[t]||"unknown",U)}else t=null;t&&w.C.push(t);c++;k+=e;R+=e;r+=e+f}}w.N.length&& (w.X=g.Ut(w.N))}this.D=w.D;this.X=w.X||this.X;g.xi(this.N,w.N);g.xi(this.C,w.C);this.K=w.K;this.G=w.G;this.W===-1&&(this.W=w.getStreamTimeOffset())}; rl.prototype.getStreamTimeOffset=function(){return this.W===-1?0:this.W};g.m(s7,g.QQ);g.d=s7.prototype;g.d.Oy=function(){return this.W_}; g.d.iB=function(n,q){n=eR(this,n);return n>=0&&(q||!this.segments[n].pending)}; g.d.G4=function(){return this.hL?this.segments.length?this.Tv(this.oi()).kh:-1:g.QQ.prototype.G4.call(this)}; g.d.oi=function(){if(this.Tz)return 0;if(!this.hL)return g.QQ.prototype.oi.call(this);if(!this.segments.length)return 0;var n=Math.max(g.Ut(this.segments).endTime-this.kp,0);return this.vX>0&&this.Tv(n).kh0)return this.Og/1E3;if(!this.segments.length)return g.QQ.prototype.F1.call(this);var n=this.QL();if(!this.hL||n<=this.segments[this.segments.length-1].kh)n=this.segments[this.segments.length-1];else{var q=this.segments[this.segments.length-1];n=new BM(n,Math.max(0,q.startTime-(q.kh-n)*this.W_),this.W_,0,"sq/"+n,void 0,void 0,!0)}return this.Tz?Math.min(this.kp,n.endTime):n.endTime}; g.d.Y$=function(){return this.hL?this.segments.length?this.QL()-this.G4()+1:0:g.QQ.prototype.Y$.call(this)}; g.d.QL=function(){var n=Math.min(this.Cb,Math.max(g.QQ.prototype.QL.call(this),this.pX)),q=this.kp*1E3;q=this.Og>0&&this.Og0&&this.pX>0&&!q&&(q=this.Tv(this.kp))&&(n=Math.min(q.kh-1,n));return n}; g.d.kf=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.d.AE=function(n){var q=eR(this,n.kh);if(q>=0)this.segments[q]=n;else if(this.segments.splice(-(q+1),0,n),this.Kr&&n.kh%(300/this.W_)===0){var w=this.segments[0].kh,X=Math.floor(this.Kr/this.W_);n=n.kh-X;q=-(q+1)-X;q>0&&n>w&&(this.segments=this.segments.slice(q))}}; g.d.tF=function(){return this.pX}; g.d.bQ=function(n){return jR?!this.X&&n>=0&&this.QL()<=n:g.QQ.prototype.bQ.call(this,n)}; g.d.Tv=function(n){if(!this.hL)return g.QQ.prototype.Tv.call(this,n);if(!this.segments.length)return null;var q=this.segments[this.segments.length-1];if(n=q.endTime)q=q.kh+Math.floor((n-q.endTime)/this.W_+1);else{q=Kj(this.segments,function(X){return n=X.endTime?1:0}); if(q>=0)return this.segments[q];var w=-(q+1);q=this.segments[w-1];w=this.segments[w];q=Math.floor((n-q.endTime)/((w.startTime-q.endTime)/(w.kh-q.kh-1))+1)+q.kh}return this.O9(q)}; g.d.O9=function(n){if(!this.hL)return g.QQ.prototype.O9.call(this,n);if(!this.segments.length)return null;var q=eR(this,n);if(q>=0)return this.segments[q];var w=-(q+1);q=this.W_;if(w===0)var X=Math.max(0,this.segments[0].startTime-(this.segments[0].kh-n)*q);else w===this.segments.length?(X=this.segments[this.segments.length-1],X=X.endTime+(n-X.kh-1)*q):(X=this.segments[w-1],q=this.segments[w],q=(q.startTime-X.endTime)/(q.kh-X.kh-1),X=X.endTime+(n-X.kh-1)*q);return new BM(n,X,q,0,"sq/"+n,void 0,void 0, !0)}; var jR=!1;g.m(fS,cx);g.d=fS.prototype;g.d.Cr=function(){return!0}; g.d.CD=function(){return!0}; g.d.BG=function(n){return this.BH()&&n.C&&!n.K||!n.N.index.bQ(n.kh)}; g.d.zF=function(){}; g.d.Fu=function(n,q){return typeof n!=="number"||isFinite(n)?cx.prototype.Fu.call(this,n,q===void 0?!1:q):new wl([new Z1(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.SJ,void 0,this.SJ*this.info.ED)],"")}; g.d.Rr=function(n,q){var w=w===void 0?!1:w;if(this.index.iB(n))return cx.prototype.Rr.call(this,n,q);var X=this.index.getStartTime(n),P=Math.round(this.SJ*this.info.ED),R=this.SJ;q&&(R=P=0);return new wl([new Z1(w?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",n,X,R,void 0,P,!q)],n>=0?"sq/"+n:"")};g.m(O7,Kz);g.d=O7.prototype;g.d.Kh=function(){return!1}; g.d.BH=function(){return!1}; g.d.Cr=function(){return!1}; g.d.zF=function(){return new wl([new Z1(1,this,void 0,"otfInit")],this.K)}; g.d.Yg=function(){return null}; g.d.gL=function(n){this.BG(n);return owy(this,N1(n),!1)}; g.d.Fu=function(n,q){q=q===void 0?!1:q;n=this.index.NL(n);q&&(n=Math.min(this.index.QL(),n+1));return owy(this,n,!0)}; g.d.xl=function(n){n.info.type===1&&(this.N||(this.N=c9(n.X)),n.N&&n.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&bT6(this,n.N))}; g.d.BG=function(n){return n.C===0?!0:this.index.QL()>n.kh&&this.index.G4()<=n.kh+1}; g.d.g6=function(){return 0}; g.d.eD=function(){return!1};g.il.prototype.info=function(){}; g.il.prototype.debug=function(){}; g.il.prototype.N=function(n){Hx.apply(null,[5,this.tag,n].concat(g.D(g.bs.apply(1,arguments))))}; var Kx3=new Map,Bqx=new Map,Smh=new function(){var n=this;this.N=new Map;this.Wb={WMW:function(){return n.N}}};g.d=g.VW.prototype;g.d.iB=function(n){return n<=this.QL()}; g.d.D2=function(n){return this.offsets[n]}; g.d.getStartTime=function(n){return this.startTicks[n]/this.N}; g.d.eB=function(n){return this.getStartTime(n)+this.getDuration(n)}; g.d.Mf=P0(0);g.d.Py=function(){return NaN}; g.d.getDuration=function(n){n=this.Gc(n);return n>=0?n/this.N:-1}; g.d.Gc=function(n){return n+1=0}; g.d.F1=function(){return this.X?this.startTicks[this.count]/this.N:NaN}; g.d.oi=function(){return 0}; g.d.Y$=function(){return this.count}; g.d.pn=function(){return""}; g.d.NL=function(n){n=g.Yi(this.startTicks.subarray(0,this.count),n*this.N);return n>=0?n:Math.max(0,-n-2)}; g.d.isLoaded=function(){return this.QL()>=0}; g.d.o9=function(n,q){if(n>=this.QL())return 0;var w=0;for(q=this.getStartTime(n)+q;nthis.getStartTime(n);n++)w=Math.max(w,wcs(this,n)/this.getDuration(n));return w}; g.d.resize=function(n){n+=2;var q=this.offsets;this.offsets=new Float64Array(n+1);var w=this.startTicks;this.startTicks=new Float64Array(n+1);for(n=0;n0&&n&&(w=w.range.end+1,n=Math.min(n,this.info.contentLength-w),n>0&&X.push(new Z1(4,this,BX(w,n),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,q)));return new wl(X)}; g.d.xl=function(n){if(n.info.type===1){if(this.N)return;this.N=c9(n.X)}else if(n.info.type===2){if(this.K||this.index.QL()>=0)return;if(g.xw(this.info)){var q=this.index,w=g.t9(n);n=n.info.range.start;var X=g.IQ(w,0,1936286840);w=zrY(X);q.N=w.timescale;var P=w.GK;q.offsets[0]=w.W8+n+X.size;q.startTicks[0]=P;q.X=!0;n=w.Eb.length;for(X=0;X0&&n===R[0].Mp)for(n=0;n=q+w)break}P.length||(n=new g.b4("b189619593",""+n,""+q,""+w),g.pC(n));return new wl(P)}; g.d.Ed=function(n){for(var q=this.Wm(n.info),w=n.info.range.start+n.info.X,X=[],P=0;P=this.index.D2(w+1);)w++;return this.uQ(w,q,n.C).Se}; g.d.BG=function(n){n.D3();return this.CD()?!0:n.range.end+1this.info.contentLength&&(q=new Sx(q.start,this.info.contentLength-1)),new wl([new Z1(4,n.N,q,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,n.clipId)]);n.type===4&&(n=this.Wm(n),n=n[n.length-1]);var w=0,X=n.range.start+n.X+n.C;n.type===3&&(n.D3(),w=n.kh,X===n.range.end+1&&(w+=1));return this.uQ(w,X,q)}; g.d.gL=function(){return null}; g.d.Fu=function(n,q){q=q===void 0?!1:q;n=this.index.NL(n);q&&(n=Math.min(this.index.QL(),n+1));return this.uQ(n,this.index.D2(n),0,void 0)}; g.d.Kh=function(){return!0}; g.d.BH=function(){return!0}; g.d.Cr=function(){return!1}; g.d.g6=function(){return this.indexRange.length+this.initRange.length}; g.d.eD=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var XO={},tkm=(XO.COLOR_PRIMARIES_BT709="bt709",XO.COLOR_PRIMARIES_BT2020="bt2020",XO.COLOR_PRIMARIES_UNKNOWN=null,XO.COLOR_PRIMARIES_UNSPECIFIED=null,XO),P2={},PrO=(P2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",P2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",P2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",P2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",P2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,P2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,P2);g.FB.prototype.getName=function(){return this.name}; g.FB.prototype.getId=function(){return this.id}; g.FB.prototype.getIsDefault=function(){return this.isDefault}; g.FB.prototype.toString=function(){return this.name}; g.FB.prototype.getName=g.FB.prototype.getName;g.FB.prototype.getId=g.FB.prototype.getId;g.FB.prototype.getIsDefault=g.FB.prototype.getIsDefault;var kjh=/action_display_post/;var rYx,LS,Mc;g.m(xU,g.np);g.d=xU.prototype;g.d.isLoading=function(){return this.state===1}; g.d.Kq=function(){return this.state===3}; g.d.ffe=function(n){var q=n.getElementsByTagName("Representation");if(n.getElementsByTagName("SegmentList").length>0||n.getElementsByTagName("SegmentTemplate").length>0){this.T9=this.X=!0;this.timeline||(this.timeline=new D8u);CK3(this.timeline,n);this.publish("refresh");for(n=0;n=0?f=uO(H):O=O+"?range="+H}r.call(k,new BM(e.kh,e.startSecs,e.lx,e.N,O,f,e.X))}X=P}w.update(X,this.isLive,this.Ff)}EwT(this.timeline);return!0}this.duration=Lxs(If(n,"mediaPresentationDuration")); a:{for(n=0;n0))return this.Ri()-n}}n=this.N;for(var q in n){var w=n[q].index;if(w.isLoaded()&&!CT(n[q].info.mimeType))return w.oi()}return 0}; g.d.getStreamTimeOffset=function(){return this.G}; g.d.Py=function(n){for(var q in this.N){var w=this.N[q].index;if(w.isLoaded()){var X=w.NL(n),P=w.Py(X);if(P)return P+n-w.getStartTime(X)}}return NaN}; var Bx=null,r0i,QW=!((r0i=navigator.mediaCapabilities)==null||!r0i.decodingInfo),Vk6={commentary:1,alternate:2,dub:3,main:4};var T5=new Set,Zv=new Map;Wx.prototype.clone=function(n){return new Wx(this.flavor,n,this.X,this.experiments)}; Wx.prototype.RP=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Wx.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var jJG={},ka=(jJG.playready=["com.youtube.playready","com.microsoft.playready"],jJG.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],jJG),Rr={},tlm=(Rr.widevine="DRM_SYSTEM_WIDEVINE",Rr.fairplay="DRM_SYSTEM_FAIRPLAY",Rr.playready="DRM_SYSTEM_PLAYREADY",Rr),c2={},sJh=(c2.widevine=1,c2.fairplay=2,c2.playready=3,c2);var sX;g.m(r5,g.A); r5.prototype.initialize=function(n,q){for(var w=this,X=g.a(Object.keys(n)),P=X.next();!P.done;P=X.next()){P=g.a(n[P.value]);for(var R=P.next();!R.done;R=P.next())if(R=R.value,R.nV)for(var c=g.a(Object.keys(R.nV)),k=c.next();!k.done;k=c.next()){var r=k.value;k=r;r=ka[r];!r&&this.Z("html5_enable_vp9_fairplay")&&k==="fairplay"&&(r=["com.youtube.fairplay.sbdl"]);if(r){r=g.a(r);for(var e=r.next();!e.done;e=r.next())e=e.value,this.C[e]=this.C[e]||new Wx(k,e,R.nV[k],this.aH.experiments),this.N[k]=this.N[k]|| {},this.N[k][R.mimeType]=!0}}}bb()&&(this.C["com.youtube.fairplay"]=new Wx("fairplay","com.youtube.fairplay","",this.aH.experiments),this.Z("html5_enable_vp9_fairplay")||(this.N.fairplay=this.N.fairplay||{},this.N.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.N.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.X=CrT(q,this.useCobaltWidevine,this.Z("html5_enable_safari_fairplay")&&!0,this.Z("html5_enable_vp9_fairplay")).filter(function(f){return!!w.C[f]})}; r5.prototype.Z=function(n){return this.aH.experiments.BW(n)};var eQv={"":"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"};KEY.prototype.Z=function(n){return this.experiments.BW(n)};var G0y={RED:"red",qeP:"white"};SGm.prototype.BW=function(n){n=this.flags[n];JSON.stringify(n);return n==="true"};var QOs=Promise.resolve(),WEs=window.queueMicrotask?window.queueMicrotask.bind(window):ZK0;iY.prototype.canPlayType=function(n,q){n=n.canPlayType?n.canPlayType(q):!1;bg?n=n||fQh[q]:We===2.2?n=n||O1w[q]:EU()&&(n=n||i1w[q]);return!!n}; iY.prototype.isTypeSupported=function(n){return this.L?window.cast.receiver.platform.canDisplayType(n):Om(n)}; var O1w={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},i1w={"application/x-mpegURL":"maybe"},fQh={"application/x-mpegURL":"maybe"};g.m(tF,g.np);tF.prototype.add=function(n,q){if(!this.items[n]&&(q.qp||q.w8||q.yF)){var w=this.items,X=q;Object.isFrozen&&!Object.isFrozen(q)&&(X=Object.create(q),Object.freeze(X));w[n]=X;this.publish("vast_info_card_add",n)}}; tF.prototype.remove=function(n){var q=this.get(n);delete this.items[n];return q}; tF.prototype.get=function(n){return this.items[n]||null}; tF.prototype.isEmpty=function(){return g.fV(this.items)};d5.prototype.encrypt=function(n){this.N.exports.AES128CTRCipher_encrypt(this.cipher,n.byteOffset,n.byteLength);return n}; d5.prototype.zp=function(){return this.cipher===0}; d5.prototype.dispose=function(){this.N.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};mR.prototype.Bw=function(n,q){q=q===void 0?1:q;this.Lt+=q;this.X+=n;n/=q;for(var w=0;w0)X+="."+g5[P].toFixed(0)+"_"+w.N[P].toFixed(0);else break;w=X}w&&(n[q]=w)}this.N=new w4x;return n}; g.d.toString=function(){return""};g.d=k0y.prototype;g.d.isActive=function(){return!1}; g.d.RK=function(){}; g.d.EC=function(){}; g.d.zv=function(){}; g.d.Ik=function(n,q){q()}; g.d.FK=function(){return{}}; g.d.toString=function(){return""};var H15=new k0y,UfG=!!+A3("html5_enable_profiler"),t_h=!!+A3("html5_onesie_enable_profiler"),Ir=UfG||t_h?new PN3:H15,l8O=UfG?Ir:H15,ay=t_h?Ir:H15;Olh.prototype.emscripten_notify_memory_growth=function(){};g.d=y2.prototype;g.d.malloc=function(n){return this.exports.malloc(n)}; g.d.free=function(n){this.exports.free(n)}; g.d.realloc=function(n,q){return this.exports.realloc(n,q)}; g.d.XZ=function(n){if(n.buffer!==this.exports.memory.buffer){var q=this.malloc(n.byteLength);q=new Uint8Array(this.exports.memory.buffer,q,n.byteLength);q.set(n);return q}}; g.d.zq=function(n){if(n.buffer===this.exports.memory.buffer){var q=n.slice();this.free(n.byteOffset);return q}}; var rGu=new function(){this.C=this.W="WebAssembly"in window},V2="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); ay.RK(y2,{XZ:function(n){return{profile:"copyj2w",Lt:n===void 0?0:Math.ceil(n.byteLength/16)}}, zq:function(n){return{profile:"copyw2j",Lt:n===void 0?0:Math.ceil(n.byteLength/16)}}});pJ.prototype.encrypt=function(n,q){try{return this.N.zq(tDh(this,n,q))}catch(w){g.TQ(Error("ocwce: wasm encrypt failed: "+w))}}; pJ.prototype.zp=function(){return this.C}; pJ.prototype.dispose=function(){this.zp()||(g.wM(this.X),this.N.free(this.W.byteOffset),this.C=!0)};g.m(ddz,g.A);g.m(md6,g.A);var Fm;$a.prototype.add=function(n){if(this.pos+20>this.data.length){var q=new Uint8Array(this.data.length*2);q.set(this.data);this.data=q}for(;n>31;)this.data[this.pos++]=Fm[(n&31)+32],n>>=5;this.data[this.pos++]=Fm[n|0]}; $a.prototype.IY=function(){return g.sI(this.data.subarray(0,this.pos))}; $a.prototype.reset=function(){this.pos=0};LJ.prototype.Kb=function(n,q){var w=Math.pow(this.alpha,n);this.N=q*(1-w)+w*this.N;this.X+=n}; LJ.prototype.gq=function(){return this.N/(1-Math.pow(this.alpha,this.X))};MT.prototype.Kb=function(n,q){for(var w=0;w<10;w++){var X=this.N[w],P=X+(w===0?n:0),R=1*Math.pow(2,w);if(P<=R)break;X=Math.min(1,(P-R*.5)/X);for(P=0;P<16;P++)R=this.values[w*16+P]*X,this.values[(w+1)*16+P]+=R,this.N[w+1]+=R,this.values[w*16+P]-=R,this.N[w]-=R}X=w=0;P=8192;q>8192&&(w=Math.ceil(Math.log(q/8192)/Math.log(2)),X=8192*Math.pow(2,w-1),P=X*2);w+2>16?this.values[15]+=n:(q=(q-X)/(P-X),this.values[w]+=n*(1-q),this.values[w+1]+=n*q);this.N[0]+=n}; MT.prototype.gq=function(){var n=n===void 0?this.X:n;var q=q===void 0?.02:q;var w=w===void 0?.98:w;for(var X=this.C,P=0;P<16;P++)X[P]=this.values[P];P=this.N[0];for(var R=1;R<11;R++){var c=this.N[R];if(c===0)break;for(var k=Math.min(1,(n-P)/c),r=0;r<16;r++)X[r]+=this.values[R*16+r]*k;P+=c*k;if(k<1)break}for(R=n=c=0;R<16;R++){k=c+X[R]/P;n+=Math.max(0,Math.min(k,w)-Math.max(c,q))*(R>0?8192*Math.pow(2,R-1):0);if(k>w)break;c=k}return n/(w-q)};xa.prototype.Kb=function(n,q){n=Math.min(this.N,Math.max(1,Math.round(n*this.resolution)));n+this.X>=this.N&&(this.C=!0);for(;n--;)this.values[this.X]=q,this.X=(this.X+1)%this.N;this.lz=!0}; xa.prototype.percentile=function(n){var q=this;if(!this.C&&this.X===0)return 0;this.lz&&(g.BG(this.K,function(w,X){return q.values[w]-q.values[X]}),this.lz=!1); return this.values[this.K[Math.round(n*((this.C?this.N:this.X)-1))]]||0}; xa.prototype.gq=function(){return this.D?(this.percentile(this.W-this.D)+this.percentile(this.W)+this.percentile(this.W+this.D))/3:this.percentile(this.W)};g.m(Db,g.A);Db.prototype.IH=function(){var n;(n=this.D0)==null||n.start();if(AF(this)&&this.policy.V){var q;(q=this.Tk)==null||q.Cf()}};F_3.prototype.Z=function(n){return this.experiments.BW(n)};g.m(vJs,g.A);var lBx="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),AGY={gwe:"caoe",YFe:"capsv",qio:"cbrand",PE5:"cbr",ph5:"cbrver",cSh:"cchip",Tpp:"ccappver",zGW:"ccrv",nJg:"cfrmver",NwT:"c",Pgo:"cver",q2H:"ctheme",EST:"cplayer",ELf:"cmodel",Vw:"cnetwork",TdT:"cos",OS_VERSION:"cosver",dgq:"cplatform",PUg:"crqyear"};g.m(kx,g.A);g.d=kx.prototype;g.d.Z=function(n){return this.experiments.BW(n)}; g.d.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.d.getVideoUrl=function(n,q,w,X,P,R,c){q={list:q};w&&(P?q.time_continue=w:q.t=w);w=c?"music.youtube.com":g.jN(this);P=w==="www.youtube.com";!R&&X&&P?R="https://youtu.be/"+n:g.qI(this)?(R="https://"+w+"/fire",q.v=n):(R&&P?(R=this.protocol+"://"+w+"/shorts/"+n,X&&(q.feature="share")):(R=this.protocol+"://"+w+"/watch",q.v=n),bg&&(n=KAs())&&(q.ebc=n));return g.OV(R,q)}; g.d.getVideoEmbedCode=function(n,q,w,X){q="https://"+g.jN(this)+"/embed/"+q;X&&(q=g.OV(q,{list:X}));X=w.width;w=w.height;q=ME(q);n=ME(n!=null?n:"YouTube video player");return'')}; g.d.supportsGaplessAudio=function(){return g.fT&&!bg&&lb()>=74||g.ce&&g.A_(68)?!0:!1}; g.d.supportsGaplessShorts=function(){return!this.Z("html5_enable_short_gapless")||this.Ff||g.fW?!1:!0}; g.d.getPlayerType=function(){return this.N.cplayer}; g.d.uL=function(){return this.TG}; var u$x=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],bl0=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],K_u=[19];var k_={},JGs=(k_["140"]={numChannels:2},k_["141"]={numChannels:2},k_["251"]={audioSampleRate:48E3,numChannels:2},k_["774"]={audioSampleRate:48E3,numChannels:2},k_["380"]={numChannels:6},k_["328"]={numChannels:6},k_["773"]={},k_),r3={},Q9T=(r3["1"]='video/mp4; codecs="av01.0.08M.08"',r3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',r3["1e"]='video/mp4; codecs="av01.0.08M.08"',r3["9"]='video/webm; codecs="vp9"',r3["("]='video/webm; codecs="vp9"',r3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', r3.h='video/mp4; codecs="avc1.64001e"',r3.H='video/mp4; codecs="avc1.64001e"',r3.o='audio/webm; codecs="opus"',r3.a='audio/mp4; codecs="mp4a.40.2"',r3.ah='audio/mp4; codecs="mp4a.40.2"',r3.mac3='audio/mp4; codecs="ac-3"; channels=6',r3.meac3='audio/mp4; codecs="ec-3"; channels=6',r3.i='audio/mp4; codecs="iamf.001.001.Opus"',r3),jP={},ZlO=(jP["337"]={width:3840,height:2160,bitrate:3E7,fps:30},jP["336"]={width:2560,height:1440,bitrate:15E6,fps:30},jP["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, jP["702"]={width:7680,height:4320,bitrate:4E7,fps:60},jP["701"]={width:3840,height:2160,bitrate:2E7,fps:60},jP["700"]={width:2560,height:1440,bitrate:1E7,fps:60},jP["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},jP["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},jP["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},jP["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, jP["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},jP["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},jP["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},jP["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},jP["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},jP["315"]={width:3840,height:2160,bitrate:2E7,fps:60},jP["308"]={width:2560, height:1440,bitrate:1E7,fps:60},jP["303"]={width:1920,height:1080,bitrate:5E6,fps:60},jP["302"]={width:1280,height:720,bitrate:25E5,fps:60},jP["299"]={width:1920,height:1080,bitrate:75E5,fps:60},jP["298"]={width:1280,height:720,bitrate:35E5,fps:60},jP["571"]={width:7680,height:4320,bitrate:3E7,fps:60},jP["401"]={width:3840,height:2160,bitrate:15E6,fps:60},jP["400"]={width:2560,height:1440,bitrate:75E5,fps:60},jP["399"]={width:1920,height:1080,bitrate:2E6,fps:60},jP["398"]={width:1280,height:720,bitrate:1E6, fps:60},jP["397"]={width:854,height:480,bitrate:4E5,fps:30},jP["396"]={width:640,height:360,bitrate:25E4,fps:30},jP["787"]={width:1080,height:608,bitrate:2E5,fps:30},jP["788"]={width:1080,height:608,bitrate:4E5,fps:30},jP["572"]={width:7680,height:4320,bitrate:3E7,fps:60},jP["555"]={width:3840,height:2160,bitrate:15E6,fps:60},jP["554"]={width:2560,height:1440,bitrate:75E5,fps:60},jP["553"]={width:1920,height:1080,bitrate:2E6,fps:60},jP["552"]={width:1280,height:720,bitrate:1E6,fps:60},jP["551"]={width:854, height:480,bitrate:4E5,fps:30},jP["550"]={width:640,height:360,bitrate:25E4,fps:30},jP["313"]={width:3840,height:2160,bitrate:8E6,fps:30},jP["271"]={width:2560,height:1440,bitrate:4E6,fps:30},jP["248"]={width:1920,height:1080,bitrate:2E6,fps:30},jP["247"]={width:1280,height:720,bitrate:15E5,fps:30},jP["244"]={width:854,height:480,bitrate:52E4,fps:30},jP["243"]={width:640,height:360,bitrate:28E4,fps:30},jP["137"]={width:1920,height:1080,bitrate:4E6,fps:30},jP["136"]={width:1280,height:720,bitrate:3E6, fps:30},jP["135"]={width:854,height:480,bitrate:1E6,fps:30},jP["385"]={width:1920,height:1080,bitrate:6503313,fps:60},jP["376"]={width:1280,height:720,bitrate:5706960,fps:60},jP["384"]={width:1280,height:720,bitrate:3660979,fps:60},jP["225"]={width:1280,height:720,bitrate:5805E3,fps:30},jP["224"]={width:1280,height:720,bitrate:453E4,fps:30},jP["145"]={width:1280,height:720,bitrate:2682052,fps:30},jP);g.d=Fi.prototype;g.d.getInfo=function(){return this.N}; g.d.ju=function(){return null}; g.d.gN=function(){var n=this.ju();return n?(n=g.zV(n.wc),Number(n.expire)):NaN}; g.d.t0=function(){}; g.d.getHeight=function(){return this.N.video.height};nzT.prototype.build=function(){Xss(this);var n=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],q={};a:if(this.N)var w=this.N;else{w="";for(var X=g.a(this.C),P=X.next();!P.done;P=X.next())if(P=P.value,P.Va){if(P.Va.getIsDefault()){w=P.Va.getId();break a}w||(w=P.Va.getId())}}X=g.a(this.C);for(P=X.next();!P.done;P=X.next())if(P=P.value,this.D||!P.Va||P.Va.getId()===w)q[P.itag]||(q[P.itag]=[]),q[P.itag].push(P);w=g.a(this.X);for(X=w.next();!X.done;X=w.next())if(X=X.value,P=q[X.N]){P=g.a(P);for(var R=P.next();!R.done;R= P.next()){var c=n,k=c.push;R=R.value;var r="#EXT-X-MEDIA:TYPE=AUDIO,",e="YES",f="audio";if(R.Va){f=R.Va;var O=f.getId().split(".")[0];O&&(r+='LANGUAGE="'+O+'",');(this.N?this.N===f.getId():f.getIsDefault())||(e="NO");f=f.getName()}O="";X!==null&&(O=X.itag.toString());O=vI(this,R.url,O);r=r+('NAME="'+f+'",DEFAULT='+(e+',AUTOSELECT=YES,GROUP-ID="'))+(wsO(R,X)+'",URI="'+(O+'"'));k.call(c,r)}}w=g.a(this.K);for(X=w.next();!X.done;X=w.next())X=X.value,P=dfi,X=(c=X.Va)?'#EXT-X-MEDIA:URI="'+vI(this,X.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+P+'",LANGUAGE="'+c.getId()+'",NAME="'+c.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,X&&n.push(X);w=this.K.length>0?dfi:void 0;X=g.a(this.X);for(P=X.next();!P.done;P=X.next())P=P.value,k=q[P.N],c=void 0,((c=k)==null?void 0:c.length)>0&&(c=P,k=k[0],k="#EXT-X-STREAM-INF:BANDWIDTH="+(c.bitrate+k.bitrate)+',CODECS="'+(c.codecs+","+k.codecs+'",RESOLUTION=')+(c.width+"x"+c.height+',AUDIO="')+(wsO(k,c)+'",')+(w?'SUBTITLES="'+w+'",':"")+"CLOSED-CAPTIONS=NONE",c.fps>1&&(k+= ",FRAME-RATE="+c.fps),c.bb&&(k+=",VIDEO-RANGE="+c.bb),n.push(k),n.push(vI(this,P.url,"")));return n.join("\n")}; var dfi="text";g.m(Ly,Fi);Ly.prototype.gN=function(){return this.expiration}; Ly.prototype.ju=function(){if(!this.wc||this.wc.zp()){var n=this.X.build();n="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(n);this.wc=new nK(n)}return this.wc};g.m(MI,Fi);MI.prototype.ju=function(){return new nK(this.X.kH())}; MI.prototype.t0=function(){this.X=SZ(this.X)};g.m(xx,Fi);xx.prototype.ju=function(){return new nK(this.X)};var sE={},fRu=(sE.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",sE.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",sE.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",sE.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",sE);g.d=g.Dj.prototype;g.d.getId=function(){return this.id}; g.d.getName=function(){return this.name}; g.d.isServable=function(){return this.N}; g.d.kH=function(){return this.url}; g.d.getXtags=function(){return this.xtags}; g.d.toString=function(){return this.languageCode+": "+g.hK(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.d.equals=function(n){return n?this.toString()===n.toString():!1}; g.d.YH=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var dxs={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},gzh={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},mxy=/^(\d*)_((\d*)_?(\d*))$/;var aRz={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Vss={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var eP={},gO5=(eP.ALWAYS=1,eP.BY_REQUEST=3,eP.UNKNOWN=void 0,eP),f6={},mfD=(f6.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",f6.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",f6.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",f6.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",f6);var Es0; Es0=function(n){for(var q=Object.keys(n),w={},X=0;XX-q?-1:n}; g.d.jc=function(){return this.X.QL()}; g.d.tZ=function(){return this.X.G4()}; g.d.qV=function(n){this.X=n};g.m(kI,cD);kI.prototype.X=function(n,q){return cD.prototype.X.call(this,"$N|"+n,q)}; kI.prototype.K=function(n,q,w){return new Ip(n,q,w,this.isLive)};var kzO=[],OO=new Set;g.m(g.jF,g.np);g.d=g.jF.prototype; g.d.setData=function(n){n=n||{};var q=n.errordetail;q!=null&&(this.errorDetail=q);var w=n.errorcode;w!=null?this.errorCode=w:n.status==="fail"&&(this.errorCode="auth");var X=n.reason;X!=null&&(this.errorReason=X);var P=n.subreason;P!=null&&(this.F0=P);this.Z("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=n.cpn||(this.aH.uL()?"r"+g.Os(15):g.Os(16)));this.Ne=WU(this.aH.Ne,n.livemonitor);qbs(this,n);var R=n.raw_player_response;if(R)this.Ws=R;else{var c=n.player_response; c&&(R=JSON.parse(c))}if(this.Z("html5_enable_ssap_entity_id")){var k=n.cached_load;k&&(this.eL=WU(this.eL,k));if(!this.clientPlaybackNonce){var r=n.cpn;r?(this.CA("ssei","shdc"),this.clientPlaybackNonce=r):this.clientPlaybackNonce=this.aH.uL()?"r"+g.Os(15):g.Os(16)}}R&&(this.playerResponse=R);if(this.playerResponse){var e=this.playerResponse.annotations;if(e)for(var f=g.a(e),O=f.next();!O.done;O=f.next()){var H=O.value.playerAnnotationsUrlsRenderer;if(H){H.adsOnly&&(this.X1=!0);var U=H.loadPolicy; U&&(this.annotationsLoadPolicy=gO5[U]);var t=H.invideoUrl;t&&(this.D0=C4(t));break}}var V=this.playerResponse.attestation;V&&Tzx(this,V);var T=this.playerResponse.cotn;T&&(this.cotn=T);var x=this.playerResponse.heartbeatParams;if(x){this.sV=!0;var M=x.heartbeatToken;M&&(this.drmSessionId=x.drmSessionId||"",this.heartbeatToken=M,this.VW=Number(x.intervalMilliseconds),this.RJ=Number(x.maxRetries),this.MF=!!x.softFailOnError,this.lc=!!x.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=x.heartbeatServerData; var h;this.Em=!((h=x.heartbeatAttestationConfig)==null||!h.requiresAttestation)}var E=this.playerResponse.messages;E&&L40(this,E);var S=this.playerResponse.overlay;if(S){var nO=S.playerControlsOverlayRenderer;if(nO)if(xxy(this,nO.controlBgHtml),nO.mutedAutoplay){var J=g.u(nO.mutedAutoplay,h9i);if(J&&J.endScreen){var c0=g.u(J.endScreen,lYh);c0&&c0.text&&(this.sE=g.kY(c0.text))}}else this.mutedAutoplay=!1}var ku=this.playerResponse.playabilityStatus;if(ku){var Is=ku.backgroundability;Is&&Is.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var e3,wx;if((e3=ku.offlineability)==null?0:(wx=e3.offlineabilityRenderer)==null?0:wx.offlineable)this.offlineable=!0;var v0=ku.contextParams;v0&&(this.contextParams=v0);var ls=ku.pictureInPicture;ls&&ls.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);ku.playableInEmbed&&(this.allowEmbed=!0);var ql=ku.ypcClickwrap;if(ql){var o5=ql.playerLegacyDesktopYpcClickwrapRenderer,g0=ql.ypcRentalActivationRenderer;if(o5)this.PN=o5.durationMessage||"",this.yp=!0;else if(g0){var E6= g0.durationMessage;this.PN=E6?g.kY(E6):"";this.yp=!0}}var WG=ku.errorScreen;if(WG){if(WG.playerLegacyDesktopYpcTrailerRenderer){var HG=WG.playerLegacyDesktopYpcTrailerRenderer;this.S3=HG.trailerVideoId||"";var SB=WG.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var wR=SB&&SB.ypcTrailerRenderer}else if(WG.playerLegacyDesktopYpcOfferRenderer)HG=WG.playerLegacyDesktopYpcOfferRenderer;else if(WG.ypcTrailerRenderer){wR=WG.ypcTrailerRenderer;var L=wR.fullVideoMessage;this.aj=L?g.kY(L):"";var El,DL;this.S3= ((El=g.u(wR,Gxj))==null?void 0:(DL=El.videoDetails)==null?void 0:DL.videoId)||""}HG&&(this.fX=HG.itemTitle||"",HG.itemUrl&&(this.wC=HG.itemUrl),HG.itemBuyUrl&&(this.Re=HG.itemBuyUrl),this.Sx=HG.itemThumbnail||"",this.rC=HG.offerHeadline||"",this.WN=HG.offerDescription||"",this.Ww=HG.offerId||"",this.TR=HG.offerButtonText||"",this.U6=HG.offerButtonFormattedText||null,this.e3=HG.overlayDurationMsec||NaN,this.aj=HG.fullVideoMessage||"",this.Uu=!0);if(wR){var XY=g.u(wR,Gxj);if(XY)this.v1={raw_player_response:XY}; else{var Tf=g.u(wR,BDv);this.v1=Tf?ZO(Tf):null}this.Uu=!0}}}var p=this.playerResponse.playbackTracking;if(p){var qs=n,uQ=oK(p.googleRemarketingUrl);uQ&&(this.googleRemarketingUrl=uQ);var IP=oK(p.youtubeRemarketingUrl);IP&&(this.youtubeRemarketingUrl=IP);var bz={},us=oK(p.ptrackingUrl);if(us){var Ns=bE(us),no=Ns.oid;no&&(this.gJ=no);var oF=Ns.pltype;oF&&(this.Ys=oF);var F=Ns.ptchn;F&&(this.VM=F);var y=Ns.ptk;y&&(this.Z8=encodeURIComponent(y));var v=Ns.m;v&&(this.zZ=v)}var G=oK(p.qoeUrl);if(G){for(var Y= g.zV(G),fO=g.a(Object.keys(Y)),B=fO.next();!B.done;B=fO.next()){var W=B.value,C=Y[W];Y[W]=Array.isArray(C)?C.join(","):C}this.lO=Y;var xu=Y.cat;xu&&(this.Z("html5_enable_qoe_cat_list")?this.Wr=this.Wr.concat(xu.split(",")):this.KO=xu);var KO=Y.live;KO&&(this.Hs=KO);var rx=Y.drm_product;rx&&(this.drmProduct=rx)}var jB=oK(p.videostatsPlaybackUrl);if(jB){var LO=bE(jB),as=LO.adformat;if(as){qs.adformat=as;var wr=this.B(),Fh=y$y(as,this.E3,wr.W,wr.V);Fh&&(this.adFormat=Fh)}var Cj=LO.aqi;Cj&&(qs.ad_query_id= Cj);var TT=LO.autoplay;TT&&(this.Vb=TT=="1",this.Qy=TT=="1");var ax=LO.autonav;ax&&(this.isAutonav=ax=="1");var Ms=LO.delay;Ms&&(this.AK=h_(Ms));var hw=LO.ei;hw&&(this.eventId=hw);var pj=T7(LO.adcontext);if(pj)try{var rR=lc0(pj);rR&&(this.IB=rR)}catch(pll){g.TQ(Error("Malformed adContext"))}if(pj||as)this.Vb=!0;var $i=LO.feature;$i&&(this.w4=$i);var nA=LO.list;nA&&(this.playlistId=nA);var RF=LO.of;RF&&(this.yQ=RF);var uz=LO.osid;uz&&(this.osid=uz);var lz=LO.referrer;lz&&(this.referrer=lz);var vw= LO.sdetail;vw&&(this.jh=vw);var ZQ=LO.ssrt;ZQ&&(this.Dy=ZQ=="1");var H1=LO.subscribed;H1&&(this.subscribed=H1=="1");var hI=LO.uga;hI&&(this.userGenderAge=hI);var qw=LO.upt;qw&&(this.cH=qw);var w1=LO.vm;w1&&(this.videoMetadata=w1);bz.playback=LO}var IJ=oK(p.videostatsWatchtimeUrl);if(IJ){var VU=bE(IJ),XJ=VU.ald;XJ&&(this.Pi=XJ);bz.watchtime=VU}var J0=oK(p.atrUrl);if(J0){var G2=bE(J0);bz.atr=G2}var P8=oK(p.engageUrl);if(P8){var tb=bE(P8);bz.engage=tb}this.vr=bz;if(p.promotedPlaybackTracking){var E4= p.promotedPlaybackTracking;E4.startUrls&&(this.Q1=E4.startUrls);E4.firstQuartileUrls&&(this.vk=E4.firstQuartileUrls);E4.secondQuartileUrls&&(this.DG=E4.secondQuartileUrls);E4.thirdQuartileUrls&&(this.sC=E4.thirdQuartileUrls);E4.completeUrls&&(this.e7=E4.completeUrls);E4.engagedViewUrls&&(E4.engagedViewUrls.length>1&&g.TQ(new g.b4("There are more than one engaged_view_urls.")),this.Ym=E4.engagedViewUrls[0])}}var lL=this.playerResponse.playerCueRanges;lL&&lL.length>0&&(this.cueRanges=lL);var RL=this.playerResponse.playerCueRangeSet; RL&&g.HD(this,RL);a:{var c8=this.playerResponse.adPlacements;if(c8)for(var IL=g.a(c8),dT=IL.next();!dT.done;dT=IL.next()){var kq=void 0,r1=void 0,gT=(kq=dT.value.adPlacementRenderer)==null?void 0:(r1=kq.renderer)==null?void 0:r1.videoAdTrackingRenderer;if(gT){var ze=gT;break a}}ze=null}var jA=ze;p&&p.promotedPlaybackTracking&&jA&&g.TQ(new g.b4("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var tn;if(!(tn=jA))a:{for(var vr=g.a(this.playerResponse.adSlots||[]),OL= vr.next();!OL.done;OL=vr.next()){var m9=g.u(OL.value,Ws);if(m9===void 0||!hn3(m9))break;var ER=void 0,dG=(ER=m9.fulfillmentContent)==null?void 0:ER.fulfilledLayout,L8=g.u(dG,Yz);if(L8&&Eu(L8)){tn=!0;break a}}tn=!1}tn&&(this.TW=!0);var MQ=this.playerResponse.playerAds;if(MQ)for(var x6=n,Dq=g.a(MQ),hz=Dq.next();!hz.done;hz=Dq.next()){var Xe=hz.value;if(Xe){var GV=Xe.playerLegacyDesktopWatchAdsRenderer;if(GV){var yx=GV.playerAdParams;if(yx){yx.autoplay=="1"&&(this.Qy=this.Vb=!0);this.AQ=yx.encodedAdSafetyReason|| null;yx.showContentThumbnail!==void 0&&(this.Pw=!!yx.showContentThumbnail);x6.enabled_engage_types=yx.enabledEngageTypes;break}}}}var lX=this.playerResponse.playerConfig;if(lX){var gG=lX.manifestlessWindowedLiveConfig;if(gG){var lA=Number(gG.minDvrSequence),td=Number(gG.maxDvrSequence),mM=Number(gG.minDvrMediaTimeMs),Ci=Number(gG.maxDvrMediaTimeMs),RA=Number(gG.startWalltimeMs);lA&&(this.vX=lA);mM&&(this.WW=mM/1E3,this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&Fl(this)&&(this.h5=mM/ 1E3));td&&(this.Cb=td);Ci&&(this.nM=Ci/1E3,this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&Fl(this)&&(this.qg=Ci/1E3));RA&&(this.ej=RA/1E3);(lA||mM)&&(td||Ci)&&(this.allowLiveDvr=this.isLivePlayback=this.PW=!0,this.Tz=!1)}var Py=lX.daiConfig;if(Py){if(Py.enableDai){this.Ut=!0;var n0=Py.enableServerStitchedDai;n0&&(this.enableServerStitchedDai=n0);var qV=Py.enablePreroll;qV&&(this.TZ=qV)}var Eq;if(Py.daiType==="DAI_TYPE_SS_DISABLED"||((Eq=Py.debugInfo)==null?0:Eq.isDisabledUnpluggedChannel))this.Ps= !0;Py.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.I_=!0)}var ib=lX.audioConfig;if(ib){var Bws=ib.loudnessDb;Bws!=null&&(this.iS=Bws);var Qoh=ib.trackAbsoluteLoudnessLkfs;Qoh!=null&&(this.cB=Qoh);var Z06=ib.loudnessTargetLkfs;Z06!=null&&(this.loudnessTargetLkfs=Z06);ib.audioMuted&&(this.yK=!0);ib.muteOnStart&&(this.cj=!0);var rz=ib.loudnessNormalizationConfig;if(rz){rz.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);rz.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var JET=rz.minimumLoudnessTargetLkfs;JET!=null&&(this.minimumLoudnessTargetLkfs=JET);var zxz=rz.maxStatefulTimeThresholdSec;zxz!=null&&(this.maxStatefulTimeThresholdSec=zxz)}ib.playAudioOnly&&(this.DF=!0)}var eQy=lX.playbackEndConfig;if(eQy){var Wvx=eQy.endSeconds,Nwy=eQy.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Wvx&&(this.endSeconds=Wvx),Nwy&&(this.limitedPlaybackDurationInSeconds=Nwy))}var sM=lX.fairPlayConfig;if(sM){var nKs=sM.certificate;nKs&&(this.Ff=T7(nKs));var qc3=Number(sM.keyRotationPeriodMs); qc3>0&&(this.uR=qc3);var wHs=Number(sM.keyPrefetchMarginMs);wHs>0&&(this.D8=wHs)}var FN=lX.playbackStartConfig;if(FN){this.Co=Number(FN.startSeconds);var XH6=FN.liveUtcStartSeconds,P93=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;XH6&&!P93&&(this.liveUtcStartSeconds=Number(XH6));var fQY=FN.startPosition;if(fQY){var RJs=fQY.utcTimeMillis;RJs&&!P93&&(this.liveUtcStartSeconds=Number(RJs)*.001);var cky=fQY.streamTimeMillis;cky&&(this.N7=Number(cky)*.001)}this.progressBarStartPosition=FN.progressBarStartPosition; this.progressBarEndPosition=FN.progressBarEndPosition}else{var O1O=lX.skippableSegmentsConfig;if(O1O){var If3=O1O.introSkipDurationMs;If3&&(this.AL=Number(If3)/1E3);var kX0=O1O.outroSkipDurationMs;kX0&&(this.mO=Number(kX0)/1E3)}}var i1O=lX.skippableIntroConfig;if(i1O){var rky=Number(i1O.startMs),jVm=Number(i1O.endMs);isNaN(rky)||isNaN(jVm)||(this.bI=rky,this.hJ=jVm)}var sV0=lX.streamSelectionConfig;sV0&&(this.JU=Number(sV0.maxBitrate));var eJY=lX.vrConfig;eJY&&(this.aR=eJY.partialSpherical=="1"); var js=lX.webDrmConfig;if(js){js.skipWidevine&&(this.Ud=!0);var ff3=js.widevineServiceCert;ff3&&(this.Mg=T7(ff3));js.useCobaltWidevine&&(this.useCobaltWidevine=!0);js.startWithNoQualityConstraint&&(this.Sr=!0)}var oW=lX.mediaCommonConfig;if(oW){var el=oW.dynamicReadaheadConfig;if(el){this.maxReadAheadMediaTimeMs=el.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=el.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=el.readAheadGrowthRateMs||NaN;var Ogu,igO=oW==null?void 0:(Ogu=oW.mediaUstreamerRequestConfig)== null?void 0:Ogu.videoPlaybackUstreamerConfig;igO&&(this.lE=T7(igO));var H1s=oW==null?void 0:oW.sabrContextUpdates;if(H1s&&H1s.length>0)for(var Hg0=g.a(H1s),Uf0=Hg0.next();!Uf0.done;Uf0=Hg0.next()){var N7=Uf0.value;if(N7.type&&N7.value){var Qwl={type:N7.type,scope:N7.scope,value:T7(N7.value)||void 0,sendByDefault:N7.sendByDefault};this.sabrContextUpdates.set(N7.type,Qwl)}}}var Ubz=oW.serverPlaybackStartConfig;Ubz&&(this.serverPlaybackStartConfig=Ubz);oW.useServerDrivenAbr&&(this.V$=!0);var tO0=oW.requestPipeliningConfig; tO0&&(this.requestPipeliningConfig=tO0)}var dbz=lX.inlinePlaybackConfig;dbz&&(this.Iv=!!dbz.showAudioControls);var fs=lX.embeddedPlayerConfig;if(fs){this.embeddedPlayerConfig=fs;var t_Y=fs.embeddedPlayerMode;if(t_Y){var gKO=this.B();gKO.WW=t_Y;gKO.C=t_Y==="EMBEDDED_PLAYER_MODE_PFL"}var mbh=fs.permissions;mbh&&(this.allowImaMonetization=!!mbh.allowImaMonetization)}var OM=lX.webPlayerConfig;OM&&(OM.gatewayExperimentGroup&&(this.gatewayExperimentGroup=OM.gatewayExperimentGroup),OM.isProximaEligible&& (this.isProximaLatencyEligible=!0))}var bF=this.playerResponse.streamingData;if(bF){var dfu=bF.formats;if(dfu){for(var es=[],ykx=g.a(dfu),gOs=ykx.next();!gOs.done;gOs=ykx.next()){var mfz=gOs.value;es.push(mfz.itag+"/"+mfz.width+"x"+mfz.height)}this.LP=es.join(",");es=[];for(var afO=g.a(dfu),y0Y=afO.next();!y0Y.done;y0Y=afO.next()){var fh=y0Y.value,Ou={itag:fh.itag,type:fh.mimeType,quality:fh.quality},VOx=fh.url;VOx&&(Ou.url=VOx);var iD=ui(fh),Ziz=iD.ey,J3w=iD.Ns,zcG=iD.s;iD.h6&&(Ou.url=Ziz,Ou.sp= J3w,Ou.s=zcG);es.push(g.fF(Ou))}this.zG=es.join(",")}var aQz=bF.hlsFormats;if(aQz){var pHx=lX||null,Hj={};if(pHx){var V_u=pHx.audioPairingConfig;if(V_u&&V_u.pairs)for(var TL6=g.a(V_u.pairs),phO=TL6.next();!phO.done;phO=TL6.next()){var Fhs=phO.value,Tbs=Fhs.videoItag;Hj[Tbs]||(Hj[Tbs]=[]);Hj[Tbs].push(Fhs.audioItag)}}for(var $b0={},vKT=g.a(aQz),Fd0=vKT.next();!Fd0.done;Fd0=vKT.next()){var LhO=Fd0.value;$b0[LhO.itag]=LhO.bitrate}for(var MOs=[],xby=g.a(aQz),$fO=xby.next();!$fO.done;$fO=xby.next()){var KA= $fO.value,tj={itag:KA.itag,type:KA.mimeType,url:KA.url,bitrate:KA.bitrate,width:KA.width,height:KA.height,fps:KA.fps},UM=KA.audioTrack;if(UM){var Dby=UM.displayName;Dby&&(tj.name=Dby,tj.audio_track_id=UM.id,UM.audioIsDefault&&(tj.is_default="1"))}if(KA.drmFamilies){for(var hJO=[],lfu=g.a(KA.drmFamilies),vOu=lfu.next();!vOu.done;vOu=lfu.next())hJO.push(h9[vOu.value]);tj.drm_families=hJO.join(",")}var tu=Hj[KA.itag];if(tu&&tu.length){tj.audio_itag=tu.join(",");var GX3=$b0[tu[0]];GX3&&(tj.bitrate+=GX3)}var C9s= R3T(KA);C9s&&(tj.eotf=C9s);KA.audioChannels&&(tj.audio_channels=KA.audioChannels);MOs.push(g.fF(tj))}this.hlsFormats=MOs.join(",")}var Lds=bF.licenseInfos;if(Lds&&Lds.length>0){for(var EKs={},oKs=g.a(Lds),M_6=oKs.next();!M_6.done;M_6=oKs.next()){var bgs=M_6.value,Akh=bgs.drmFamily,Ycm=bgs.url;Akh&&Ycm&&(EKs[h9[Akh]]=Ycm)}this.nV=EKs}var Khu=bF.drmParams;Khu&&(this.drmParams=Khu);var ScO=bF.dashManifestUrl;ScO&&(this.sD=g.OV(ScO,{cpn:this.clientPlaybackNonce}));var uZT=bF.hlsManifestUrl;uZT&&(this.hlsvp= uZT);var BL0=bF.probeUrl;BL0&&(this.probeUrl=C4(g.OV(BL0,{cpn:this.clientPlaybackNonce})));var QVY=bF.serverAbrStreamingUrl;QVY&&(this.jJ=new g.Ei(QVY,!0))}var Zgh=this.playerResponse.trackingParams;Zgh&&(this.n5=Zgh);var yB=this.playerResponse.videoDetails;if(yB){var dH=n,xfz=yB.videoId;xfz&&(this.videoId=xfz,dH.video_id||(dH.video_id=xfz));var Dfz=yB.title;Dfz&&(this.title=Dfz,dH.title||(dH.title=Dfz));var hQs=yB.lengthSeconds;hQs&&(this.lengthSeconds=Number(hQs),dH.length_seconds||(dH.length_seconds= hQs));var Jks=yB.keywords;Jks&&(this.keywords=c1s(Jks));var lQY=yB.channelId;lQY&&(this.qY=lQY,dH.ucid||(dH.ucid=lQY));var zJT=yB.viewCount;zJT&&(this.rawViewCount=Number(zJT));var Geu=yB.author;Geu&&(this.author=Geu,dH.author||(dH.author=Geu));var Wh0=yB.shortDescription;Wh0&&(this.shortDescription=Wh0);var NLO=yB.isCrawlable;NLO&&(this.isListed=NLO);var nBs=yB.musicVideoType;nBs&&(this.musicVideoType=nBs);var CJO=yB.isLive;CJO!=null&&(this.isLivePlayback=CJO);if(CJO||yB.isUpcoming)this.isPremiere= !yB.isLiveContent;var qW3=yB.thumbnail;qW3&&(this.V=EN(qW3));var wkO=yB.isExternallyHostedPodcast;wkO&&(this.isExternallyHostedPodcast=wkO);var EOY=yB.viewerLivestreamJoinPosition;if(EOY==null?0:EOY.utcTimeMillis)this.t_=h_(EOY.utcTimeMillis);var XkT=lX||null,oOs=n;yB.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);yB.isUpcoming&&(this.isUpcoming=!0);if(yB.isPostLiveDvr){this.Tz=!0;var P76=yB.latencyClass;P76&&(this.latencyClass=mfD[P76]||"UNKNOWN");yB.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream= !0)}else{var b1T=!1;this.Ne?(this.allowLiveDvr=He()?!0:ub&&Xy<5?!1:!0,this.isLivePlayback=!0):yB.isLive?(oOs.livestream="1",this.allowLiveDvr=yB.isLiveDvrEnabled?He()?!0:ub&&Xy<5?!1:!0:!1,this.partnerId=27,b1T=!0):yB.isUpcoming&&(b1T=!0);if(yB.isLive||this.Ne){yB.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var RdT=yB.latencyClass;RdT&&(this.latencyClass=mfD[RdT]||"UNKNOWN");var cMm=yB.liveChunkReadahead;cMm&&(this.liveChunkReadahead=cMm);var $e=XkT&&XkT.livePlayerConfig;if($e){$e.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);$e.hasSubfragmentedWebm&&(this.QQ=!0);$e.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var I9u=$e.liveExperimentalContentId;I9u&&(this.liveExperimentalContentId=Number(I9u));var kt3=$e.isLiveHeadPlayable;this.Z("html5_live_head_playable")&&kt3!=null&&(this.isLiveHeadPlayable=kt3)}}b1T&&(this.isLivePlayback=!0,oOs.adformat&&oOs.adformat.split("_")[1]!=="8"||this.L.push("heartbeat"))}var rMm=yB.isPrivate;rMm!==void 0&&(this.isPrivate=WU(this.isPrivate, rMm))}if(ku){var jcO=yB||null,scy=!1,v9=ku.errorScreen;scy=v9&&(v9.playerLegacyDesktopYpcOfferRenderer||v9.playerLegacyDesktopYpcTrailerRenderer||v9.ypcTrailerRenderer)?!0:jcO&&jcO.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ku.status);if(!scy){this.errorCode=Ohx(ku.errorCode)||"auth";var dc=v9&&v9.playerErrorMessageRenderer;if(dc){this.playerErrorMessageRenderer=dc;var edz=dc.reason;edz&&(this.errorReason=g.kY(edz));var A0y=dc.subreason;A0y&&(this.F0=g.kY(A0y),this.FG=A0y)}else this.errorReason= ku.reason||null;var YF3=ku.status;if(YF3==="LOGIN_REQUIRED")this.errorDetail="1";else if(YF3==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(YF3==="AGE_CHECK_REQUIRED"){var f9O=ku.errorScreen,OxT=f9O&&f9O.playerKavRenderer;this.errorDetail=OxT&&OxT.kavUrl?"4":"3"}else this.errorDetail=ku.isBlockedInRestrictedMode?"5":"0"}}var ixx=this.playerResponse.interstitialPods;ixx&&vzs(this,ixx);this.D0&&this.eventId&&(this.D0=NN(this.D0,{ei:this.eventId}));var Kdu=this.playerResponse.captions;if(Kdu&& Kdu.playerCaptionsTracklistRenderer)a:{var gH=Kdu.playerCaptionsTracklistRenderer;this.captionTracks=[];if(gH.captionTracks)for(var Hxx=g.a(gH.captionTracks),SFm=Hxx.next();!SFm.done;SFm=Hxx.next()){var mA=SFm.value,UM6=XpY(mA.baseUrl);if(!UM6)break a;var ukY={is_translateable:!!mA.isTranslatable,languageCode:mA.languageCode,languageName:mA.name&&g.kY(mA.name),url:UM6,vss_id:mA.vssId,kind:mA.kind};ukY.name=mA.trackName;ukY.displayName=mA.name&&g.kY(mA.name);this.captionTracks.push(new g.Dj(ukY))}this.HA= gH.audioTracks||[];this.hE=gH.defaultAudioTrackIndex||0;this.Ay=[];if(gH.translationLanguages)for(var tb0=g.a(gH.translationLanguages),BbY=tb0.next();!BbY.done;BbY=tb0.next()){var Lt=BbY.value,nR={};nR.languageCode=Lt.languageCode;nR.languageName=g.kY(Lt.languageName);if(Lt.translationSourceTrackIndices){nR.translationSourceTrackIndices=[];for(var dMO=g.a(Lt.translationSourceTrackIndices),QJ6=dMO.next();!QJ6.done;QJ6=dMO.next())nR.translationSourceTrackIndices.push(QJ6.value)}if(Lt.excludeAudioTrackIndices){nR.excludeAudioTrackIndices= [];for(var gBx=g.a(Lt.excludeAudioTrackIndices),Z1y=gBx.next();!Z1y.done;Z1y=gBx.next())nR.excludeAudioTrackIndices.push(Z1y.value)}this.Ay.push(nR)}this.wL=[];if(gH.defaultTranslationSourceTrackIndices)for(var mMO=g.a(gH.defaultTranslationSourceTrackIndices),J0s=mMO.next();!J0s.done;J0s=mMO.next())this.wL.push(J0s.value);this.xm=!!gH.contribute&&!!gH.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.Co=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Mss(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var yMz;this.compositeLiveIngestionOffsetToken=(yMz=this.playerResponse.playbackTracking)==null?void 0:yMz.compositeLiveIngestionOffsetToken;var a9x;this.compositeLiveStatusToken=(a9x=this.playerResponse.playbackTracking)==null?void 0: a9x.compositeLiveStatusToken;this.Z("html5_fill_default_mosaic_audio_track_id")&&rw(this)&&(this.aH.je=J10(this))}eF(this,n);n.queue_info&&(this.queueInfo=n.queue_info);var VbY=n.hlsdvr;VbY!=null&&(this.allowLiveDvr=Number(VbY)===1?He()?!0:ub&&Xy<5?!1:!0:!1);this.adQueryId=n.ad_query_id||null;this.AQ||(this.AQ=n.encoded_ad_safety_reason||null);this.yK=WU(this.yK,n.infringe||n.muted);this.QR=n.authkey;this.vv=n.authuser;this.mutedAutoplay=WU(this.mutedAutoplay,n&&n.playmuted);this.mutedAutoplayDurationMode= nD(this.mutedAutoplayDurationMode,n&&n.muted_autoplay_duration_mode);this.Xb=WU(this.Xb,n&&n.mutedautoplay);var mL=n.length_seconds;mL&&(this.lengthSeconds=typeof mL==="string"?h_(mL):mL);if(this.isAd()||this.Pr||!g.Rl(g.Xi(this.aH)))this.endSeconds=nD(this.endSeconds,this.mO||n.end||n.endSeconds);else{var WuG=g.Xi(this.aH),ye=this.lengthSeconds;switch(WuG){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":ye>30?this.limitedPlaybackDurationInSeconds=30:ye<30&&ye>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=ye*.2}}this.n5=qH(this.n5,n.itct);this.M2=WU(this.M2,n.is_live_destination);this.isLivePlayback=WU(this.isLivePlayback,n.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.T9();n.isUpcoming&&(this.isUpcoming=WU(this.isUpcoming,n.isUpcoming));this.Tz=WU(this.Tz,n.post_live_playback);this.PW&&(this.Tz=!1);this.isMdxPlayback=WU(this.isMdxPlayback,n.mdx);var aa=n.mdx_control_mode; aa&&(this.mdxControlMode=typeof aa==="number"?aa:h_(aa));this.isInlinePlaybackNoAd=WU(this.isInlinePlaybackNoAd,n.is_inline_playback_no_ad);this.KM=nD(this.KM,n.reload_count);this.reloadReason=qH(this.reloadReason,n.reload_reason);this.Pw=WU(this.Pw,n.show_content_thumbnail);this.cycToken=n.cyc||null;var pkY=Cy(n);Object.keys(pkY).length>0&&(this.V=pkY);this.HW=qH(this.HW,n.vvt);this.mdxEnvironment=qH(this.mdxEnvironment,n.mdx_environment);n.source_container_playlist_id&&(this.sourceContainerPlaylistId= n.source_container_playlist_id);n.serialized_mdx_metadata&&(this.serializedMdxMetadata=n.serialized_mdx_metadata);this.x7=n.osig;this.eventId||(this.eventId=n.eventid);this.osid||(this.osid=n.osid);this.playlistId=qH(this.playlistId,n.list);n.index&&(this.playlistIndex=this.playlistIndex===void 0?nD(0,n.index):nD(this.playlistIndex,n.index));this.D5=n.pyv_view_beacon_url;this.Od=n.pyv_quartile25_beacon_url;this.Z5=n.pyv_quartile50_beacon_url;this.Ga=n.pyv_quartile75_beacon_url;this.FS=n.pyv_quartile100_beacon_url; var Tvs=n.session_data;!this.QI&&Tvs&&(this.QI=BA(Tvs,"&").feature);this.isFling=nD(this.isFling?1:0,n.is_fling)===1;this.vnd=nD(this.vnd,n.vnd);this.forceAdsUrl=qH(this.forceAdsUrl,n.force_ads_url);this.mK=qH(this.mK,n.ctrl);this.IW=qH(this.IW,n.ytr);this.Gm=n.ytrcc;this.g0=n.ytrexp;this.Vn=n.ytrext;this.TG=qH(this.TG,n.adformat);this.E3=qH(this.E3,n.attrib);this.slotPosition=nD(this.slotPosition,n.slot_pos);this.breakType=n.break_type;this.Dy=WU(this.Dy,n.ssrt);this.videoId=Xo(n)||this.videoId; this.D=qH(this.D,n.vss_credentials_token);this.E9=qH(this.E9,n.vss_credentials_token_type);this.DF=WU(this.DF,n.audio_only);this.IH=WU(this.IH,n.aac_high);this.F3=WU(this.F3,n.prefer_low_quality_audio);this.cA=WU(this.cA,n.uncap_inline_quality);this.Z("html5_enable_qoe_cat_list")?n.qoe_cat&&(this.Wr=this.Wr.concat(n.qoe_cat.split(","))):this.KO=qH(this.KO,n.qoe_cat);this.lR=WU(this.lR,n.download_media);var FW0=n.prefer_gapless;this.G=FW0!=null?WU(this.G,FW0):this.G?this.G:this.aH.preferGapless&&this.aH.supportsGaplessShorts(); rvY(this.playerResponse)&&this.L.push("ad");var $MT=n.adaptive_fmts;$MT&&(this.adaptiveFormats=$MT,this.p5("adpfmts",{},!0));var vBu=n.allow_embed;vBu&&(this.allowEmbed=Number(vBu)===1);var LWu=n.backgroundable;LWu&&(this.backgroundable=Number(LWu)===1);var Mb3=n.autonav;Mb3&&(this.isAutonav=Number(Mb3)===1);var xM3=n.autoplay;xM3&&(this.Vb=this.Qy=Number(xM3)===1);var DMx=n.iv_load_policy;DMx&&(this.annotationsLoadPolicy=Ng(this.annotationsLoadPolicy,DMx,PI));var hdm=n.cc_lang_pref;hdm&&(this.captionsLanguagePreference= qH(hdm,this.captionsLanguagePreference));var l9s=n.cc_load_policy;l9s&&(this.yr=Ng(this.yr,l9s,PI));var Gts;this.deviceCaptionsOn=(Gts=n.device_captions_on)!=null?Gts:void 0;var C7h;this.zA=(C7h=n.device_captions_lang_pref)!=null?C7h:"";var EBs;this.kT=(EBs=n.viewer_selected_caption_langs)!=null?EBs:[];if(!this.Z("html5_enable_ssap_entity_id")){var oBx=n.cached_load;oBx&&(this.eL=WU(this.eL,oBx))}if(n.dash==="0"||n.dash===0||n.dash===!1)this.oM=!0;var bxz=n.dashmpd;bxz&&(this.sD=g.OV(bxz,{cpn:this.clientPlaybackNonce})); var AMs=n.delay;AMs&&(this.AK=h_(AMs));var zQz=this.mO||n.end;if(this.YE?zQz!=null:zQz!=void 0)this.clipEnd=nD(this.clipEnd,zQz);var YWs=n.fmt_list;YWs&&(this.LP=YWs);n.heartbeat_preroll&&this.L.push("heartbeat");this.LA=-Math.floor(Math.random()*10);this.NH=-Math.floor(Math.random()*40);var KW3=n.is_listed;KW3&&(this.isListed=WU(this.isListed,KW3));var SWY=n.is_private;SWY&&(this.isPrivate=WU(this.isPrivate,SWY));var ud0=n.is_dni;ud0&&(this.bS=WU(this.bS,ud0));var BvO=n.dni_color;BvO&&(this.jL=qH(this.jL, BvO));var QcT=n.pipable;QcT&&(this.pipable=WU(this.pipable,QcT));this.BU=(this.Hj=this.pipable&&this.aH.Md)&&!this.aH.showMiniplayerButton;var Zxy=n.paid_content_overlay_duration_ms;Zxy&&(this.paidContentOverlayDurationMs=h_(Zxy));var JMu=n.paid_content_overlay_text;JMu&&(this.paidContentOverlayText=JMu);var zd3=n.url_encoded_fmt_stream_map;zd3&&(this.zG=zd3);var WWx=n.hls_formats;WWx&&(this.hlsFormats=WWx);var Nvm=n.hlsvp;Nvm&&(this.hlsvp=Nvm);var Ve=n.live_start_walltime;Ve&&(this.H8=typeof Ve=== "number"?Ve:h_(Ve));var ps=n.live_manifest_duration;ps&&(this.Or=typeof ps==="number"?ps:h_(ps));var ngY=n.player_params;ngY&&(this.playerParams=ngY);var qxY=n.partnerid;qxY&&(this.partnerId=nD(this.partnerId,qxY));var wQx=n.probe_url;wQx&&(this.probeUrl=C4(g.OV(wQx,{cpn:this.clientPlaybackNonce})));var WdO=n.pyv_billable_url;WdO&&U00(WdO)&&(this.Ym=WdO);var NbT=n.pyv_conv_url;NbT&&U00(NbT)&&(this.r0=NbT);ITO(this,n);this.startSeconds>0?this.Z("html5_log_start_seconds_inconsistency")&&this.startSeconds!== (this.Co||this.AL||n.start||n.startSeconds)&&this.p5("lss",{css:this.startSeconds,pcss:this.Co,iss:this.AL,ps:n.start||void 0,pss:n.startSeconds||void 0}):this.Me=this.startSeconds=nD(this.startSeconds,this.Co||this.AL||n.start||n.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var XQs=n.live_utc_start;if(XQs!=null)this.liveUtcStartSeconds=Number(XQs);else{var nkx=this.startSeconds;nkx&&isFinite(nkx)&&nkx>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var P_O=n.utc_start_millis;P_O&&(this.liveUtcStartSeconds=Number(P_O)*.001)}var RlO=n.stream_time_start_millis;RlO&&(this.N7=Number(RlO)*.001);var qPs=this.AL||n.start;(this.YE?qPs==null||Number(n.resume)===1:qPs==void 0||n.resume=="1")||this.isLivePlayback||(this.clipStart=nD(this.clipStart,qPs));var cA3=n.url_encoded_third_party_media;cA3&&(this.XI=J3(cA3));var w1z=n.ypc_offer_button_formatted_text;if(w1z){var Ins=JSON.parse(w1z);this.U6=Ins!=null?Ins:null;this.bM=w1z}var kPx= n.ypc_offer_button_text;kPx&&(this.TR=kPx);var rAT=n.ypc_offer_description;rAT&&(this.WN=rAT);var j_3=n.ypc_offer_headline;j_3&&(this.rC=j_3);var s_u=n.ypc_full_video_message;s_u&&(this.aj=s_u);var ely=n.ypc_offer_id;ely&&(this.Ww=ely);var fny=n.ypc_buy_url;fny&&(this.Re=fny);var Obm=n.ypc_item_thumbnail;Obm&&(this.Sx=Obm);var ib3=n.ypc_item_title;ib3&&(this.fX=ib3);var Hbz=n.ypc_item_url;Hbz&&(this.wC=Hbz);var U9z=n.ypc_vid;U9z&&(this.S3=U9z);n.ypc_overlay_timeout&&(this.e3=Number(n.ypc_overlay_timeout)); var tJz=n.ypc_trailer_player_vars;tJz&&(this.v1=ZO(tJz));var d9O=n.ypc_original_itct;d9O&&(this.ImP=d9O);this.qY=qH(this.qY,n.ucid);this.Sh=n.storyboard_spec||null;this.eh=n.live_storyboard_spec||null;this.GE=n.iv_endscreen_url||null;this.Uu=WU(this.Uu,n.ypc_module);this.yp=WU(this.yp,n.ypc_clickwrap_module);this.Uu&&this.L.push("ypc");this.yp&&this.L.push("ypc_clickwrap");this.sb={video_id:n.video_id,eventid:n.eventid,cbrand:n.cbrand,cbr:n.cbr,cbrver:n.cbrver,c:n.c,cver:n.cver,ctheme:n.ctheme,cplayer:n.cplayer, cmodel:n.cmodel,cnetwork:n.cnetwork,cos:n.cos,cosver:n.cosver,cplatform:n.cplatform,user_age:n.user_age,user_display_image:n.user_display_image,user_display_name:n.user_display_name,user_gender:n.user_gender,csi_page_type:n.csi_page_type,csi_service_name:n.csi_service_name,enablecsi:n.enablecsi,enabled_engage_types:n.enabled_engage_types};wpm(this,n);var ggm=n.cotn;ggm&&(this.cotn=ggm);if(glY(this))LZ(this)&&(this.isLivePlayback&&this.sD&&(this.zT=!0),this.Ff&&(this.X0=!0));else if(mkY(this))this.zT= !0;else{var m9s,yAm,ans=((m9s=this.playerResponse)==null?void 0:(yAm=m9s.streamingData)==null?void 0:yAm.adaptiveFormats)||[];if(ans.length>0)var iT=dkO(this,ans);else{var VJs=this.adaptiveFormats;if(VJs&&!LZ(this)){this.aH.K.C&&(QW=!0);var MO=CZ(VJs),X1s=this.nV,pQy=this.lengthSeconds,NWh=this.isLivePlayback,Hs=this.Tz,xe=this.aH,nAz=dPs(MO);if(NWh||Hs){var Tfs=xe==null?void 0:xe.experiments,$h=new xU("",Tfs,!0);$h.T9=!0;$h.isManifestless=!0;$h.X=!Hs;$h.isLive=!Hs;$h.Tz=Hs;for(var FZm=g.a(MO),PLx= FZm.next();!PLx.done;PLx=FZm.next()){var DZ=PLx.value,$9y=G4(DZ,X1s),qi=CS(DZ.url,DZ.sp,DZ.s),vg6=qi.get("id");vg6&&vg6.includes("%7E")&&($h.L=!0);var LZT=void 0,qUz=(LZT=Tfs)==null?void 0:LZT.BW("html5_max_known_end_time_rebase"),wUG=Number(DZ.target_duration_sec)||5,XUD=Number(DZ.max_dvr_duration_sec)||14400,MJs=Number(qi.get("mindsq")||qi.get("min_sq")||"0"),x9y=Number(qi.get("maxdsq")||qi.get("max_sq")||"0")||Infinity;$h.vX=$h.vX||MJs;$h.Cb=$h.Cb||x9y;var PbB=!CT($9y.mimeType);qi&&vx($h,new fS(qi, $9y,{SJ:wUG,hL:PbB,kp:XUD,vX:MJs,Cb:x9y,Kr:300,Tz:Hs,dk:qUz}))}var D96=$h}else{if(nAz==="FORMAT_STREAM_TYPE_OTF"){var TE=pQy;TE=TE===void 0?0:TE;var h7=new xU("",xe==null?void 0:xe.experiments,!1);h7.duration=TE||0;for(var hlO=g.a(MO),RRx=hlO.next();!RRx.done;RRx=hlO.next()){var lP=RRx.value,cIy=G4(lP,X1s,h7.duration),I7u=CS(lP.url,lP.sp,lP.s);if(I7u)if(cIy.streamType==="FORMAT_STREAM_TYPE_OTF")vx(h7,new O7(I7u,cIy,"sq/0"));else{var RPw=uO(lP.init),cV0=uO(lP.index);vx(h7,new T4(I7u,cIy,RPw,cV0))}}h7.isOtf= !0;var lnO=h7}else{var Fz=pQy;Fz=Fz===void 0?0:Fz;var $$=new xU("",xe==null?void 0:xe.experiments,!1);$$.duration=Fz||0;for(var GPh=g.a(MO),kss=GPh.next();!kss.done;kss=GPh.next()){var GM=kss.value,IIf=G4(GM,X1s,$$.duration),kSv=uO(GM.init),rVt=uO(GM.index),C_m=CS(GM.url,GM.sp,GM.s);C_m&&vx($$,new T4(C_m,IIf,kSv,rVt))}lnO=$$}D96=lnO}var EgT=D96;if(MO.length>0){var ogu=MO[0];if(this.B().playerStyle==="hangouts-meet"&&ogu.url){var jdz=g.zV(ogu.url);this.gh=this.gh||Number(jdz.expire)}}var sdw=this.isLivePlayback&& !this.Tz&&!this.PW&&!this.isPremiere;this.Z("html5_live_head_playable")&&(!Mj(this)&&sdw&&this.p5("missingLiveHeadPlayable",{}),this.aH.qP==="yt"&&(EgT.D0=!0));iT=EgT}else iT=null;this.p5("pafmts",{isManifestFilled:!!iT})}if(iT){hH(this,iT);var bb0=!0}else bb0=!1;bb0?this.enableServerStitchedDai=this.enableServerStitchedDai&&xI(this):this.sD&&(this.aH.qP==="yt"&&this.T9()&&this.Z("drm_manifestless_unplugged")&&this.Z("html5_deprecate_manifestful_fallback")?this.p5("deprecateMflFallback",{}):this.zT= !0)}var rIm=n.adpings;rIm&&(this.xp=rIm?ZO(rIm):null);var AAz=n.feature;AAz&&(this.w4=AAz);var Yxx=n.referrer;Yxx&&(this.referrer=Yxx);this.clientScreenNonce=qH(this.clientScreenNonce,n.csn);this.Zd=nD(this.Zd,n.root_ve_type);this.Cc=nD(this.Cc,n.kids_age_up_mode);this.YE||n.kids_app_info==void 0||(this.kidsAppInfo=n.kids_app_info);this.YE&&n.kids_app_info!=null&&(this.kidsAppInfo=n.kids_app_info);this.nP=WU(this.nP,n.upg_content_filter_mode);this.unpluggedFilterModeType=nD(this.unpluggedFilterModeType, n.unplugged_filter_mode_type);var KZ6=n.unplugged_location_info;KZ6&&(this.aS=KZ6);var Sxs=n.unplugged_partner_opt_out;Sxs&&(this.xT=qH("",Sxs));this.bV=WU(this.bV,n.disable_watch_next);this.q2=qH(this.q2,n.internal_ip_override);this.A1=!!n.is_yto_interstitial;(this.interstitials.length||this.A1)&&this.L.push("yto");var uCz=n.GY;uCz&&(this.GY=uCz);this.qP=qH(this.qP,n.csi_timer);n.watchUrl&&(this.watchUrl=n.watchUrl);var wP=n.watch_endpoint;this.Z("html5_attach_watch_endpoint_ustreamer_config")&& wP&&Uxy(this,wP);if(wP==null?0:wP.ustreamerConfig)this.qd=T7(wP.ustreamerConfig);var Bfu,Q_m,ZbY=wP==null?void 0:(Bfu=wP.loggingContext)==null?void 0:(Q_m=Bfu.qoeLoggingContext)==null?void 0:Q_m.serializedContextData;ZbY&&(this.iVh=ZbY);g.Q2(this.aH)&&this.aH.Mg&&(this.embedsRct=qH(this.embedsRct,n.rct),this.embedsRctn=qH(this.embedsRctn,n.rctn));this.PO=this.PO||!!n.pause_at_start;n.default_active_source_video_id&&(this.defaultActiveSourceVideoId=n.default_active_source_video_id)}; g.d.B=function(){return this.aH}; g.d.Z=function(n){return this.aH.Z(n)}; g.d.sT=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.d.hasSupportedAudio51Tracks=function(){var n;return!((n=this.HX)==null||!n.RH)}; g.d.getUserAudio51Preference=function(){var n=1;HI(this.aH)&&this.Z("html5_ytv_surround_toggle_default_off")?n=0:g.fy(this.aH)&&this.isLivePlayback&&this.XJ()&&(n=0);var q;return(q=g.$N("yt-player-audio51"))!=null?q:n}; g.d.nY=function(){this.zp()||(this.N.X||this.N.unsubscribe("refresh",this.nY,this),this.gK(-1))}; g.d.gK=function(n){if(!this.isLivePlayback||!this.K||this.K.flavor!=="fairplay"){var q=mPu(this.N,this.aU);if(q.length>0){for(var w=g.a(q),X=w.next();!X.done;X=w.next())X=X.value,X.startSecs=Math.max(X.startSecs,this.oi()),this.Z("html5_cuepoint_identifier_logging")&&X.event==="start"&&this.p5("cuepoint",{pubCue:X.identifier,segNum:n});this.publish("cuepointupdated",q,n);this.aU+=q.length;if(xI(this)&&this.aH.uL())for(q=g.a(q),w=q.next();!w.done;w=q.next())w=w.value,this.p5("cuepoint",{segNum:n,event:w.event, startSecs:w.startSecs,id:w.identifier.slice(-16)}),w.event==="start"&&(w=w.startSecs,this.Al.start=this.KV,this.Al.end=w+3)}}}; g.d.UG=function(){this.zp()||(this.loading=!1,this.publish("dataloaded"))}; g.d.XJ=function(){return this.Cz!==void 0?this.Cz:this.Cz=!!this.nV||!!this.N&&My(this.N)}; g.d.UQ=function(n){var q=this;if(this.zp())return TS();this.KG=this.oH=this.C=null;iR(this,"html5_high_res_logging_always")&&(this.aH.TG=!0);return ppz(this,n).then(void 0,function(){return F6Y(q,n)}).then(void 0,function(){return $kT(q)}).then(void 0,function(){return L6h(q)})}; g.d.NG=function(n){this.C=n;TEu(this,this.C.getAvailableAudioTracks());if(this.C){n=g.a(this.C.videoInfos);for(var q=n.next();!q.done;q=n.next()){q=q.value;var w=q.containerType;w!==0&&(this.XG[w]=q.id)}}n=this.getAvailableAudioTracks();n=n.concat(this.LO);for(q=0;q0?this.C.getAvailableAudioTracks():this.Ng||[]:[]}; g.d.getAudioTrack=function(){var n=this;if(this.W&&!Dk(this.W)){var q=g.d0(this.getAvailableAudioTracks(),function(P){return P.id===n.W.id}),w; if(!q&&((w=this.W.Va)==null?0:w.id)){var X=this.W.Va.id;q=g.d0(this.getAvailableAudioTracks(),function(P){return P.Va.id===X}); this.p5("nat",{id:this.W.id,track:!!q})}return q||this.LO}if(this.Ng){if(!this.Th)for(q=g.a(this.Ng),w=q.next();!w.done;w=q.next())if(w=w.value,w.Va.getIsDefault()){this.Th=w;break}return this.Th||this.LO}return this.LO}; g.d.getPlayerResponse=function(){return this.playerResponse}; g.d.getWatchNextResponse=function(){return this.Tp}; g.d.getHeartbeatResponse=function(){return this.N2}; g.d.z1=function(){return this.watchUrl?this.watchUrl:this.aH.getVideoUrl(this.videoId)}; g.d.Yl=function(){return!!this.N&&(e3x(this.N)||fVh(this.N)||OKO(this.N))}; g.d.getEmbeddedPlayerResponse=function(){return this.Tx}; g.d.FQ=function(){return(this.eventLabel||this.aH.HW)==="shortspage"}; g.d.isAd=function(){return!!this.adFormat}; g.d.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.d.M7=function(){var n,q,w;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((n=this.playerResponse)==null?0:(q=n.playerConfig)==null?0:(w=q.daiConfig)==null?0:w.ssaEnabledPlayback)}; g.d.gQ=function(){return this.sV}; g.d.SM=function(){return this.Uu||this.RW}; g.d.Q7=function(){return iR(this,"html5_samsung_vp9_live")}; g.d.p5=function(n,q,w){this.publish("ctmp",n,q,w)}; g.d.CA=function(n,q,w){this.publish("ctmpstr",n,q,w)}; g.d.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.d.getGetAdBreakContext=function(n,q){n=n===void 0?NaN:n;q=q===void 0?NaN:q;var w={isSabr:Fl(this)},X,P=(X=this.getHeartbeatResponse())==null?void 0:X.adBreakHeartbeatParams;P&&(w.adBreakHeartbeatParams=P);if(this.Z("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.N&&!isNaN(n)&&!isNaN(q)){q=n-q;for(var R in this.N.N)if(X=this.N.N[R],X.info.ev()||X.info.nD())if(X=X.index,X.isLoaded()){R=X.NL(q);X=X.Py(R)+q-X.getStartTime(R);this.p5("gabc",{t:n.toFixed(3),mt:q.toFixed(3),sg:R,igt:X.toFixed(3)}); w.livePlaybackPosition={utcTimeMillis:""+(X*1E3).toFixed(0)};break}}return w}; g.d.isEmbedsShortsMode=function(n,q){if(!g.Q2(this.aH)||(this.aH.WW||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||q)return!1;var w,X;return!!(((w=this.embeddedPlayerConfig)==null?0:(X=w.embeddedPlayerFlags)==null?0:X.isShortsExperienceEligible)&&n.width<=n.height)}; g.d.Xf=function(){g.np.prototype.Xf.call(this);this.xp=null;delete this.rO;delete this.accountLinkingConfig;delete this.N;this.C=this.N2=this.playerResponse=this.Tp=null;this.zG=this.adaptiveFormats="";delete this.botguardData;this.je=this.suggestions=this.Md=null;this.sabrContextUpdates.clear()};var IHO={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ki6={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},R$s={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},w7x={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"},PGs={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},X7z={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"},cmT={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.m(mv,g.A);g.d=mv.prototype;g.d.handleExternalCall=function(n,q,w){var X=this.state.G[n],P=this.state.V[n],R=X;if(P)if(w&&hq(w,CXh))R=P;else if(!X)throw Error('API call from an untrusted origin: "'+w+'"');this.logApiCall(n,w);if(R){w=!1;X=g.a(q);for(P=X.next();!P.done;P=X.next())if(String(P.value).includes("javascript:")){w=!0;break}w&&g.TQ(Error('Dangerous call to "'+n+'" with ['+q+"]."));return R.apply(this,q)}throw Error('Unknown API method: "'+n+'".');}; g.d.logApiCall=function(n,q,w){var X=this.app.B();X.Th&&!this.state.L.has(n)&&(this.state.L.add(n),g.Xc("webPlayerApiCalled",{callerUrl:X.loaderUrl,methodName:n,origin:q||void 0,playerStyle:X.playerStyle||void 0,embeddedPlayerMode:X.WW,errorCode:w}))}; g.d.publish=function(n){var q=g.bs.apply(1,arguments);this.state.C.publish.apply(this.state.C,[n].concat(g.D(q)));if(n==="videodatachange"||n==="resize"||n==="cardstatechange")this.state.X.publish.apply(this.state.X,[n].concat(g.D(q))),this.state.W.publish.apply(this.state.W,[n].concat(g.D(q)))}; g.d.Uq=function(n){var q=g.bs.apply(1,arguments);this.state.C.publish.apply(this.state.C,[n].concat(g.D(q)));this.state.X.publish.apply(this.state.X,[n].concat(g.D(q)))}; g.d.pV=function(n){var q=g.bs.apply(1,arguments);this.state.C.publish.apply(this.state.C,[n].concat(g.D(q)));this.state.X.publish.apply(this.state.X,[n].concat(g.D(q)));this.state.W.publish.apply(this.state.W,[n].concat(g.D(q)))}; g.d.l7=function(n){var q=g.bs.apply(1,arguments);this.state.C.publish.apply(this.state.C,[n].concat(g.D(q)));this.state.X.publish.apply(this.state.X,[n].concat(g.D(q)));this.state.W.publish.apply(this.state.W,[n].concat(g.D(q)));this.state.K.publish.apply(this.state.K,[n].concat(g.D(q)))}; g.d.Z=function(n){return this.app.B().Z(n)}; g.d.Xf=function(){if(this.state.element){var n=this.state.element,q;for(q in this.state.N)this.state.N.hasOwnProperty(q)&&(n[q]=null);this.state.element=null}g.A.prototype.Xf.call(this)};g.m(TY,g.de);TY.prototype.publish=function(n){var q=g.bs.apply(1,arguments);if(this.K.has(n))return this.K.get(n).push(q),!0;var w=!1;try{for(q=[q],this.K.set(n,q);q.length;)w=g.de.prototype.publish.call.apply(g.de.prototype.publish,[this,n].concat(g.D(q.shift())))}finally{this.K.delete(n)}return w};g.m(Fq,g.A);Fq.prototype.Xf=function(){this.K.dispose();this.W.dispose();this.X.dispose();this.C.dispose();this.L=this.N=this.V=this.G=this.D=void 0};var iY0=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.m(va,mv);g.d=va.prototype;g.d.getApiInterface=function(){return Array.from(this.state.D)}; g.d.rR=function(n,q){this.state.K.subscribe(n,q)}; g.d.m7H=function(n,q){this.state.K.unsubscribe(n,q)}; g.d.getPlayerState=function(n){return E4T(this.app,n)}; g.d.iY=function(){return E4T(this.app)}; g.d.n6f=function(n,q,w){xE(this)&&(Yr(this.app,!0,1),uj(this.app,n,q,w,1))}; g.d.getCurrentTime=function(n,q,w){var X=this.getPlayerState(n);if(this.app.getAppState()===2&&X===5){var P;return((P=this.app.getVideoData())==null?void 0:P.startSeconds)||0}return this.Z("web_player_max_seekable_on_ended")&&X===0?GC(this.app,n):n?this.app.getCurrentTime(n,q,w):this.app.getCurrentTime(n)}; g.d.Fp=function(){return this.app.getCurrentTime(1)}; g.d.Qv=function(){var n=this.app.Py(1);return isNaN(n)?this.getCurrentTime(1):n}; g.d.K4=function(){return this.app.getDuration(1)}; g.d.xr=function(n,q){n=g.Y1(Math.floor(n),0,100);isFinite(n)&&he(this.app,{volume:n,muted:this.isMuted()},q)}; g.d.g6e=function(n){this.xr(n,!1)}; g.d.w2=function(n){he(this.app,{muted:!0,volume:this.getVolume()},n)}; g.d.Pof=function(){this.w2(!1)}; g.d.Fs=function(n){MV(this.app)&&!this.Z("embeds_enable_emc3ds_muted_autoplay")||he(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},n)}; g.d.TqW=function(){MV(this.app)&&this.Z("embeds_enable_emc3ds_muted_autoplay")||this.Fs(!1)}; g.d.getPlayerMode=function(){var n={};this.app.getVideoData().bS&&(n.pfp={enableIma:this.app.q7().allowImaMonetization,autoplay:ca(this.app.q7()),mutedAutoplay:this.app.q7().mutedAutoplay});return n}; g.d.dA=function(){var n=this.app.getPresentingPlayerType();if(n===2&&!this.app.Ut()){var q=ov(this.app.fM());if(!(oui(q)||g.Q2(this.app.B())&&g.Z(this.app.Yh().getPlayerState(),1024))||bO5(q))return}(q=this.app.T1().aX)?q.playVideo():this.app.playVideo(n)}; g.d.Tgg=function(){Yr(this.app,!0,1);this.dA()}; g.d.pauseVideo=function(n){var q=this.app.getPresentingPlayerType();if(q!==2||this.app.Ut()||oui(ov(this.app.fM()))){var w=this.app.T1().aX;w?w.pauseVideo():this.app.pauseVideo(q,n)}}; g.d.LTp=function(){var n=this.app,q=!1;n.NP.ej&&(n.Oq.publish("pageTransition"),q=!0);n.stopVideo(q)}; g.d.clearVideo=function(){}; g.d.getAvailablePlaybackRates=function(){var n=this.app.B();return n.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(n.W?n.ancestorOrigins[0]:window.location.origin)||n.Dy?eWt:n.supportsVarispeedExtendedFeatures?fow:n.Z("web_remix_allow_up_to_3x_playback_rate")&&g.LX(n)?O$l:hl:[1]}; g.d.getPlaybackQuality=function(n){return(n=this.app.cX(n))?n.getPlaybackQuality():"unknown"}; g.d.eHf=function(){}; g.d.getAvailableQualityLevels=function(n){return(n=this.app.cX(n))?(n=g.Hh(n.d4(),function(q){return q.quality}),n.length&&(n[0]==="auto"&&n.shift(),n=n.concat(["auto"])),n):[]}; g.d.z$=function(){return this.getAvailableQualityLevels(1)}; g.d.B8=function(){return this.XM()}; g.d.RN=function(){return 1}; g.d.getVideoLoadedFraction=function(n){return this.app.getVideoLoadedFraction(n)}; g.d.XM=function(){return this.getVideoLoadedFraction()}; g.d.yv=function(){return 0}; g.d.getSize=function(){var n=this.app.yT().getPlayerSize();return{width:n.width,height:n.height}}; g.d.setSize=function(){this.app.yT().resize()}; g.d.loadVideoById=function(n,q,w,X){if(!n)return!1;n=$E(n,q,w);return this.app.loadVideoByPlayerVars(n,X)}; g.d.Dq=function(n,q,w){n=this.loadVideoById(n,q,w,1);Yr(this.app,n,1)}; g.d.cueVideoById=function(n,q,w,X){n=$E(n,q,w);this.app.cueVideoByPlayerVars(n,X)}; g.d.J8=function(n,q,w){this.cueVideoById(n,q,w,1)}; g.d.loadVideoByUrl=function(n,q,w,X){n=OYy(n,q,w);return this.app.loadVideoByPlayerVars(n,X)}; g.d.eQ=function(n,q,w){n=this.loadVideoByUrl(n,q,w,1);Yr(this.app,n,1)}; g.d.cueVideoByUrl=function(n,q,w,X){n=OYy(n,q,w);this.app.cueVideoByPlayerVars(n,X)}; g.d.h8=function(n,q,w){this.cueVideoByUrl(n,q,w,1)}; g.d.Nu=function(){var n=this.app.B();if(n.PW)return"";var q=this.app.q7(),w=void 0;q.isLivePlayback||(w=Math.floor(this.app.getCurrentTime(1)));return n.getVideoUrl(q.videoId,this.getPlaylistId()||void 0,w)}; g.d.dP=function(){return this.app.getDebugText()}; g.d.getVideoEmbedCode=function(){var n=this.app.B();if(n.PW)return"";var q=this.app.q7();return n.getVideoEmbedCode(q.isPrivate?"":q.title,this.app.q7().videoId,this.app.yT().getPlayerSize(),this.getPlaylistId()||void 0)}; g.d.D_=function(n,q,w){return BSm(this.app,n,q,w)}; g.d.removeCueRange=function(n){return this.app.lF(n)}; g.d.loadPlaylist=function(n,q,w,X){this.app.loadPlaylist(n,q,w,X)}; g.d.hV=function(n,q,w,X){this.loadPlaylist(n,q,w,X);Yr(this.app,!0,1)}; g.d.cuePlaylist=function(n,q,w,X){this.app.cuePlaylist(n,q,w,X)}; g.d.nextVideo=function(n,q){this.app.nextVideo(n,q)}; g.d.xPh=function(){this.nextVideo();Yr(this.app,!0,1)}; g.d.previousVideo=function(n){this.app.previousVideo(n)}; g.d.Gzf=function(){this.previousVideo();Yr(this.app,!0,1)}; g.d.playVideoAt=function(n){this.app.playVideoAt(n)}; g.d.hwq=function(n){this.playVideoAt(n);Yr(this.app,!0,1)}; g.d.setShuffle=function(n){var q=this.app.getPlaylist();q&&q.setShuffle(n)}; g.d.setLoop=function(n){var q=this.app.getPlaylist();q&&(q.loop=n)}; g.d.IN=function(){var n=this.app.getPlaylist();if(!n)return null;for(var q=[],w=0;w=400)if(n=this.q7(),this.T.B().Z("client_respect_autoplay_switch_button_renderer"))n=!!n.autoplaySwitchButtonRenderer;else{var q,w,X,P;n=!!((q=n.getWatchNextResponse())==null?0:(w=q.contents)==null?0:(X=w.twoColumnWatchNextResults)==null?0:(P=X.autoplay)==null?0:P.autoplay)!==!1}if(n)this.N||(this.N=!0,this.bL(this.N),this.T.B().Z("web_player_autonav_toggle_always_listen")||ofz(this), q=this.q7(),this.PU(q.autonavState),this.T.logVisibility(this.element,this.N));else if(this.N=!1,this.bL(this.N),!this.T.B().Z("web_player_autonav_toggle_always_listen"))for(this.T.B().Z("web_player_autonav_toggle_always_listen"),q=g.a(this.X),w=q.next();!w.done;w=q.next())this.wM(w.value)}; g.d.PU=function(n){AmO(this)?this.isChecked=n!==1:((n=n!==1)||(g.hh(),n=g.OU("web_autonav_allow_off_by_default")&&!g.l4(0,141)&&g.bp("AUTONAV_OFF_BY_DEFAULT")?!1:!g.l4(0,140)),this.isChecked=n);bYx(this)}; g.d.onClick=function(){this.isChecked=!this.isChecked;this.T.Zb(this.isChecked?2:1);bYx(this);if(AmO(this)){var n=this.q7().autoplaySwitchButtonRenderer;this.isChecked&&(n==null?0:n.onEnabledCommand)?this.T.Uq("innertubeCommand",n.onEnabledCommand):!this.isChecked&&(n==null?0:n.onDisabledCommand)&&this.T.Uq("innertubeCommand",n.onDisabledCommand)}this.T.logClick(this.element)}; g.d.getValue=function(){return this.isChecked}; g.d.q7=function(){return this.T.getVideoData(1)};g.m(Y50,sc);g.m(tk,g.IV);tk.prototype.onClick=function(){this.enabled&&(dL(this,!this.checked),this.publish("select",this.checked))}; tk.prototype.getValue=function(){return this.checked}; tk.prototype.setEnabled=function(n){(this.enabled=n)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var y3=["en-CA","en","es-MX","fr-CA"];g.m(FZ,tk);FZ.prototype.dl=function(n){n?this.N||(this.aP.nG(this),this.N=!0):this.N&&(this.aP.rq(this),this.N=!1);this.N&&dL(this,Ej0())}; FZ.prototype.W=function(){g.qX(this.element,"ytp-menuitem-highlight-transition-enabled")}; FZ.prototype.C=function(n){var q=Ej0();n!==q&&(q=g.hh(),CD(190,n),CD(192,!0),q.save(),this.T.Uq("cinematicSettingsToggleChange",n))}; FZ.prototype.Xf=function(){this.N&&this.aP.rq(this);tk.prototype.Xf.call(this)};g.m($K,sc);$K.prototype.updateCinematicSettings=function(n){this.N=n;var q;(q=this.menuItem)==null||q.dl(n);this.api.publish("onCinematicSettingsVisibilityChange",n)};g.m(Quy,sc);g.m(vH,sc);vH.prototype.setCreatorEndscreenVisibility=function(n){var q;(q=Kq(this.api.fM()))==null||q.bL(n)}; vH.prototype.N=function(n){function q(X){X==="creatorendscreen"&&(X=Kq(w.api.fM()))&&X.FT5(w.hideButton)} var w=this;this.hideButton=n;this.events.j(this.api,"modulecreated",q);q("creatorendscreen")};g.m(Lg,tk);Lg.prototype.W=function(n){this.C(n?1:0)}; Lg.prototype.X=function(){var n=this.hasDrcAudioTrack(),q=this.N()===1&&n;dL(this,q);this.setEnabled(n)}; Lg.prototype.Xf=function(){this.aP.rq(this);tk.prototype.Xf.call(this)};g.m(Mb,sc);Mb.prototype.getDrcUserPreference=function(){return this.N}; Mb.prototype.setDrcUserPreference=function(n){g.Fo("yt-player-drc-pref",n,31536E3);n!==this.N&&(this.N=n,this.updateEnvironmentData(),this.X()&&this.api.mM())}; Mb.prototype.updateEnvironmentData=function(){this.api.B().DF=this.N===1}; Mb.prototype.X=function(){var n,q,w=(n=this.api.getVideoData())==null?void 0:(q=n.C)==null?void 0:q.N;if(!w)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Z("mta_drc_mutual_exclusion_removal")){var X,P,R=(X=this.api.u9())==null?void 0:(P=X.Va)==null?void 0:P.id;return Yo(w,function(c){var k;return c.audio.N&&((k=c.Va)==null?void 0:k.id)===R})}return Yo(w,function(c){var k; return((k=c.audio)==null?void 0:k.N)===!0})};g.m(xK,sc);xK.prototype.onVideoDataChange=function(){var n=this,q=this.api.getVideoData();this.api.wg("embargo",1);var w=q==null?void 0:q.I3.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(w==null?0:w.length)?Jms(this,w.filter(function(X){return ZYs(n,X)})):(q==null?0:q.cueRanges)&&Jms(this,q.cueRanges.filter(function(X){return ZYs(n,X)}))}; xK.prototype.X=function(n){return n.embargo!==void 0}; xK.prototype.Xf=function(){sc.prototype.Xf.call(this);this.N={}};g.m(Df,sc); Df.prototype.addEmbedsConversionTrackingParams=function(n){var q=this.api.B(),w=q.widgetReferrer,X=q.sD,P=this.N,R="",c=q.getWebPlayerContextConfig();c&&(R=c.embedsIframeOriginParam||"");w.length>0&&(n.embeds_widget_referrer=w);X.length>0&&(n.embeds_referring_euri=X);q.W&&R.length>0&&(n.embeds_referring_origin=R);c&&c.embedsFeature&&(n.feature=c.embedsFeature);P.length>0&&(q.Z("embeds_web_enable_lite_experiment_control_arm_logging")?P.unshift(28572):g.Rl(g.Xi(q))&&P.unshift(159628),q=P.join(","),q= g.od()?q:g.Te(q,4),n.source_ve_path=q);this.N.length=0};g.m(z$z,sc);g.m(WIh,sc);g.m(hk,g.A);hk.prototype.Xf=function(){g.A.prototype.Xf.call(this);this.N=null;this.X&&this.X.disconnect()};g.m(nT6,sc);g.m(l9,g.Q);l9.prototype.show=function(){g.Q.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; l9.prototype.stopTimer=function(){this.N&&(this.N.dispose(),this.N=null)}; l9.prototype.onVideoDataChange=function(n){var q,w,X=(q=this.api.getVideoData())==null?void 0:(w=q.getPlayerResponse())==null?void 0:w.playabilityStatus;X&&(q=qis(X),g.Z(this.api.getPlayerStateObject(),128)||n==="dataloaderror"||!q?(this.X=0,this.stopTimer(),this.hide()):(n=(q.remainingTimeSecs||0)*1E3,n>0&&(this.show(),this.updateValue("label",lG(q.label)),XMO(this,n))))}; l9.prototype.Xf=function(){this.stopTimer();g.Q.prototype.Xf.call(this)};g.m(Pim,sc);g.m(GX,g.Q);GX.prototype.onClick=function(){this.Oq.logClick(this.element);this.Oq.Uq("onFullerscreenEduClicked")}; GX.prototype.dl=function(){this.Oq.isFullscreen()?this.N?this.fade.hide():this.fade.show():this.hide();this.Oq.logVisibility(this.element,this.Oq.isFullscreen()&&!this.N)};g.m(Cg,sc);Cg.prototype.updateFullerscreenEduButtonSubtleModeState=function(n){var q;(q=this.N)!=null&&(g.XW(q.element,"ytp-fullerscreen-edu-button-subtle",n),n&&!q.X&&(q.element.setAttribute("title","Role para ver detalhes"),EJ(q.Oq,q.element,q),q.X=!0))}; Cg.prototype.updateFullerscreenEduButtonVisibility=function(n){var q;(q=this.N)!=null&&(q.N=n,q.dl())};g.m(Roz,g.Q);g.m(kGY,sc);g.m(Ec,sc);Ec.prototype.getSphericalProperties=function(){var n=g.Ba(this.api.fM());return n?n.getSphericalProperties():{}}; Ec.prototype.setSphericalProperties=function(n){if(n){var q=g.Ba(this.api.fM());q&&q.setSphericalProperties(n,!0)}};g.m(oV,sc);g.d=oV.prototype;g.d.createClientVe=function(n,q,w,X){this.api.createClientVe(n,q,w,X===void 0?!1:X)}; g.d.createServerVe=function(n,q,w){this.api.createServerVe(n,q,w===void 0?!1:w)}; g.d.setTrackingParams=function(n,q){this.api.setTrackingParams(n,q)}; g.d.logClick=function(n,q){this.api.logClick(n,q)}; g.d.logVisibility=function(n,q,w){this.api.logVisibility(n,q,w)}; g.d.hasVe=function(n){return this.api.hasVe(n)}; g.d.destroyVe=function(n){this.api.destroyVe(n)};var j$s=!1;Ak.prototype.setPlaybackRate=function(n){this.playbackRate=Math.max(1,n)}; Ak.prototype.getPlaybackRate=function(){return this.playbackRate};BH.prototype.hF=function(n){var q=g.hg(n.info.N.info,this.uo.T9),w=n.info.kh+this.W,X=n.info.startTime*1E3;if(this.policy.oH)try{X=this.policy.oH?g.gl(n)*1E3:n.info.startTime*1E3}catch(c){Math.random()>.99&&this.logger&&(X=c9(n.X).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:n.info.XR(),encodedDataView:g.p1(X,4)})),X=n.info.startTime*1E3}var P=n.info.clipId,R=this.policy.oH?g.zes(n)*1E3:n.info.duration*1E3;this.policy.oH&&(X<0||R<0)&&(this.logger&&(this.logger({missingSegInfo:n.info.XR(), startTimeMs:X,durationMs:R}),this.policy.xd||(X<0&&(X=n.info.startTime*1E3),R<0&&(R=n.info.duration*1E3))),this.policy.xd&&(X<0&&(X=n.info.startTime*1E3),R<0&&(R=n.info.duration*1E3)));return{formatId:q,kh:w,startTimeMs:X,clipId:P,ZX:R}}; BH.prototype.C1=function(n){this.timestampOffset=n};Q3.prototype.seek=function(n,q){n!==this.targetTime&&(this.seekCount=0);this.targetTime=n;var w=this.videoTrack.X,X=this.audioTrack.X,P=this.audioTrack.OD,R=$yz(this,this.videoTrack,n,this.videoTrack.OD,q);q=$yz(this,this.audioTrack,this.policy.aS?n:R,P,q);n=Math.max(n,R,q);this.W=!0;this.uo.isManifestless&&(a2u(this,this.videoTrack,w),a2u(this,this.audioTrack,X));return n}; Q3.prototype.isSeeking=function(){return this.W}; Q3.prototype.dQ=function(n){this.X=n}; var Fn0=2/24;var MZm=0;g.d=Rc.prototype;g.d.k9=function(){this.L=this.now();VDh(this.CG,this.L);this.HQ.k9()}; g.d.MC=function(n,q){var w=this.policy.X?(0,g.m$)():0;ck(this,n,q);n-this.D<10&&this.X>0||this.c9(n,q);this.HQ.MC(n,q);this.policy.X&&(n=(0,g.m$)()-w,this.nM+=n,this.Ne=Math.max(n,this.Ne))}; g.d.c9=function(n,q){var w=(n-this.D)/1E3,X=q-this.C;this.Y0||(EX(this.CG,w,X),this.Fv(w,X));this.D=n;this.C=q}; g.d.Pt=function(){this.WW&&xys(this);this.HQ.Pt()}; g.d.AD=function(n){this.WW||(this.WW=this.K-this.ej+n,this.sD=this.K,this.JU=this.G)}; g.d.DU=function(n,q){n=n===void 0?this.G:n;q=q===void 0?this.K:q;this.X>0||(this.V=n,this.X=q,this.qP=this.isActive=!0)}; g.d.mV=function(){return this.W_||2}; g.d.zI=function(){}; g.d.wH=function(){var n,q={rn:this.requestNumber,rt:(this.G-this.N).toFixed(),lb:this.K,stall:(1E3*this.W).toFixed(),ht:(this.L-this.N).toFixed(),elt:(this.V-this.N).toFixed(),elb:this.X,d:(n=this.HW)==null?void 0:n.IY()};this.url&&rys(q,this.url);this.policy.X&&(q.mph=this.Ne.toFixed(),q.tph=this.nM.toFixed());q.ulb=this.Tp;q.ult=this.PW;return q}; g.d.now=function(){return(0,g.m$)()}; g.d.deactivate=function(){this.isActive&&(this.isActive=!1)};g.m(kB,Rc);g.d=kB.prototype;g.d.wH=function(){var n=Rc.prototype.wH.call(this);n.pb=this.hP;n.pt=(1E3*this.qe).toFixed();n.se=this.YE;return n}; g.d.VC=function(){var n=this.HQ;this.oH||(this.oH=n.VC?n.VC():1);return this.oH}; g.d.Uk=function(){return this.YL?this.VC()!==1:!1}; g.d.u$=function(n,q,w){if(!this.KM){this.KM=!0;if(!this.Y0){ck(this,n,q);this.c9(n,q);var X=this.VC();this.YE=w;if(!this.Y0)if(X===2){X=n-this.V0)||rv(this,X,q),this.X>0&&G7(this.CG,q,this.W));n=(n-this.N)/ 1E3||.01;this.policy.V&&!(this.X>0)||lY(this.CG,n,this.C,hoT(this),this.DN)}this.deactivate()}}; g.d.tX=function(n,q,w){w&&(this.oH=2);n<0&&this.W_&&(n=this.W_);q?this.IH+=n:this.Ff+=n}; g.d.mV=function(){return this.Ff||this.IH||Rc.prototype.mV.call(this)}; g.d.c9=function(n,q){var w=(n-this.D)/1E3,X=q-this.C,P=this.VC();this.isActive?P===1&&((X>0||this.policy.K)&&(w>.2||X<1024)?(this.W+=w,X>0&&w>.2&&rv(this,this.jT?w:.05,X),this.AK=!0):X>0&&(rv(this,w,X),this.AK=!0)):q&&q>=this.policy.N&&this.DU(n,q);Rc.prototype.c9.call(this,n,q)}; g.d.DZ=function(n){if(!this.Y0){ck(this,n,this.K);var q=(n-this.N)/1E3;this.VC()!==2&&this.X>0&&(this.W+=(n-this.D)/1E3,G7(this.CG,this.C,this.W));lY(this.CG,q,this.C,hoT(this),this.DN,!0);n=(n-this.D)/1E3;EX(this.CG,n,0);this.Fv(n,0)}}; g.d.DU=function(n,q){n=n===void 0?this.G:n;q=q===void 0?this.K:q;if(!(this.X>0)&&(Rc.prototype.DU.call(this,n,q),this.VC()===1)){q=(this.L-this.N)/1E3;var w=(n-this.L)/1E3;this.YL&&jb(this,this.now());this.Me||this.Y0||(this.W_&&(w=Math.max(0,w-this.W_)),n=this.CG,n.V.Kb(1,q),n.HW.Kb(1,w))}}; g.d.NK=function(){this.YL&&jb(this,this.now());return this.D0}; g.d.Rm=function(){var n;if(n=this.C>this.T2)n=(n=this.C)?n>=this.policy.N:!1;return n}; g.d.x3=function(){return this.je}; g.d.bK=function(n){n=n===void 0?this.now():n;if(this.YL){jb(this,n);if(this.oH?this.Uk():this.vW!==this.n5){var q=this.n5;if(n0?w+n:w+Math.max(n,q)}; g.d.V4=function(){return this.now()-this.V}; g.d.sY=function(){return(this.C-this.X)*1E3/this.V4()||0}; g.d.qK=function(){return this.V};sW.prototype.feed=function(n){qO(this.N,n);this.Wy()}; sW.prototype.Wy=function(){if(this.W){if(!this.N.totalLength)return;var n=this.N.split(this.C-this.X),q=n.h9;n=n.yU;if(!this.HQ.AD(this.W,q,this.X,this.C))return;this.X+=q.totalLength;this.N=n;this.X===this.C&&(this.W=this.C=this.X=void 0)}for(;;){var w=0;n=g.a(ETy(this.N,w));q=n.next().value;w=n.next().value;w=g.a(ETy(this.N,w));n=w.next().value;w=w.next().value;if(q<0||n<0)break;if(!(w+n<=this.N.totalLength)){if(!(this.HQ.AD&&w+1<=this.N.totalLength))break;w=this.N.split(w).yU;this.HQ.AD(q,w,0, n)&&(this.W=q,this.X=w.totalLength,this.C=n,this.N=new nt([]));break}n=this.N.split(w).yU.split(n);w=n.yU;this.HQ.b3(q,n.h9);this.N=w}}; sW.prototype.dispose=function(){this.N=new nt};g.d=eb.prototype;g.d.zN=function(){return 0}; g.d.tF=function(){return null}; g.d.sH=function(){return null}; g.d.BF=function(){return this.state>=1}; g.d.isComplete=function(){return this.state>=3}; g.d.Kq=function(){return this.state===5}; g.d.onStateChange=function(){}; g.d.eg=function(n){var q=this.state;this.state=n;this.onStateChange(q);this.callback&&this.callback(this,q)}; g.d.VB=function(n){n&&this.state=this.xhr.HEADERS_RECEIVED}; g.d.getResponseHeader=function(n){try{return this.xhr.getResponseHeader(n)}catch(q){return""}}; g.d.Hg=function(){return+this.getResponseHeader("content-length")}; g.d.zY=function(){return this.X}; g.d.b2=function(){return this.status>=200&&this.status<300&&!!this.X}; g.d.iz=function(){return this.N.totalLength>0}; g.d.aI=function(){var n=this.N;this.N=new nt;return n}; g.d.Xt=function(){return this.N}; g.d.abort=function(){this.zp=!0;this.xhr.abort()}; g.d.Ib=function(){return!0}; g.d.Tl=function(){return this.C}; g.d.N9=function(){return""};g.d=Yiy.prototype;g.d.getResponseHeader=function(n){return n==="content-type"?this.N.get("type"):""}; g.d.abort=function(){}; g.d.QY=function(){return!0}; g.d.Hg=function(){return this.range.length}; g.d.zY=function(){return this.loaded}; g.d.b2=function(){return!!this.loaded}; g.d.iz=function(){return!!this.X.totalLength}; g.d.aI=function(){var n=this.X;this.X=new nt;return n}; g.d.Xt=function(){return this.X}; g.d.Ib=function(){return!0}; g.d.Tl=function(){return!!this.error}; g.d.N9=function(){return this.error};g.d=SiY.prototype;g.d.start=function(n){var q={credentials:"include",cache:"no-store"};Object.assign(q,this.G);this.W&&(q.signal=this.W.signal);n=new Request(n,q);fetch(n).then(this.L,this.onError).then(void 0,wZ)}; g.d.onDone=function(){this.zp()||this.HQ.Pt()}; g.d.getResponseHeader=function(n){return this.responseHeaders?this.responseHeaders.get(n):null}; g.d.QY=function(){return!!this.responseHeaders}; g.d.zY=function(){return this.X}; g.d.Hg=function(){return+this.getResponseHeader("content-length")}; g.d.b2=function(){return this.status>=200&&this.status<300&&!!this.X}; g.d.iz=function(){return!!this.N.totalLength}; g.d.aI=function(){var n=this.N;this.N=new nt;return n}; g.d.Xt=function(){return this.N}; g.d.zp=function(){return this.K}; g.d.abort=function(){this.C&&this.C.cancel().catch(function(){}); this.W&&this.W.abort();this.K=!0}; g.d.Ib=function(){return!0}; g.d.Tl=function(){return this.D}; g.d.N9=function(){return this.errorMessage};g.d=u20.prototype;g.d.onDone=function(){if(!this.zp){this.status=this.xhr.status;try{this.response=this.xhr.response,this.X=this.response.byteLength}catch(n){}this.N=!0;this.HQ.Pt()}}; g.d.BV=function(){this.xhr.readyState===2&&this.HQ.k9()}; g.d.Dm=function(n){this.zp||(this.status=this.xhr.status,this.N||(this.X=n.loaded),this.HQ.MC((0,g.m$)(),n.loaded))}; g.d.QY=function(){return this.xhr.readyState>=2}; g.d.getResponseHeader=function(n){try{return this.xhr.getResponseHeader(n)}catch(q){return g.TQ(Error("Could not read XHR header "+n)),""}}; g.d.Hg=function(){return+this.getResponseHeader("content-length")}; g.d.zY=function(){return this.X}; g.d.b2=function(){return this.status>=200&&this.status<300&&this.N&&!!this.X}; g.d.iz=function(){return this.N&&!!this.response&&!!this.response.byteLength}; g.d.aI=function(){var n=this.response;this.response=void 0;return new nt([new Uint8Array(n)])}; g.d.Xt=function(){return new nt([new Uint8Array(this.response)])}; g.d.abort=function(){this.zp=!0;this.xhr.abort()}; g.d.Ib=function(){return!1}; g.d.Tl=function(){return!1}; g.d.N9=function(){return""};g.m(i7,g.A);i7.prototype.bX=function(){if(!this.Qp.length)return[];var n=this.Qp;this.Qp=[];this.C=g.Ut(n).info;return n}; i7.prototype.yX=function(){return this.Qp}; i7.prototype.Xf=function(){g.A.prototype.Xf.call(this);this.N=null;this.Qp.length=0;this.Se.length=0;this.C=null};g.m(UW,g.A);g.d=UW.prototype; g.d.qtp=function(){if(!this.zp()){var n=(0,g.m$)(),q=!1;if(this.policy.xL){n=n-(this.timing.X>0?this.timing.V:this.timing.N)-this.timing.mV()*1E3;var w=lO(tM(this),!1);n>=2E3*w?q=!0:n>=this.policy.s_*w&&(this.N=this.policy.Ng)}else if(this.timing.X>0){if(this.K){this.policy.sD&&(this.N=0);return}var X=this.timing.x3();this.timing.bK();var P=this.timing.x3();P-X>=this.policy.KD*.8?(this.N++,this.logger.debug(function(){return"Mispredicted by "+(P-X).toFixed(0)}),q=this.N>=5):this.N=0}else{var R=n- this.timing.NK(); this.policy.Ng&&R>0&&(this.N+=1);q=lO(tM(this),!1)*this.policy.Vn;(q=R>q*1E3)&&this.logger.debug(function(){return"Elbow late by "+R.toFixed(3)})}this.N>0&&this.HQ.Aq(); q?this.Sw():this.X.start()}}; g.d.Sw=function(){this.W=!0;this.HQ.oI();this.lastError="net.timeout";gv(this)}; g.d.canRetry=function(n){var q=tM(this);n=n?this.policy.wC:this.policy.jJ;return q.timedOut0&&(q=Ib(q.N,0),n.ubyte=q,w===1&&q===0&&(n.b248180278=!0))}this.k8&&(n.rc=this.policy.v1?this.k8:this.k8.toString());this.policy.KG&&this.If&&(n.tr=this.If);n.itag=this.info.Se[0].N.info.itag;n.ml=""+ +this.info.Se[0].N.CD();n.sq=""+this.info.Se[0].kh;this.CV&&(n.ifi=""+ +KQ(this.info.wc.X));this.k8!==410&&this.k8!==500&&this.k8!==503||(n.fmt_unav="true");var X;(w=this.errorMessage||((X=this.xhr)==null?void 0: X.N9()))&&(n.msg=w);this.xD&&(n.smb="1");this.info.isDecorated()&&(n.sdai="1");return n}; g.d.Za=function(){return l2y(this.timing)}; g.d.N9=function(){return this.xhr.N9()||""}; g.d.Rm=function(){return this.isComplete()||this.timing.Rm()}; g.d.MC=function(){!this.zp()&&this.xhr&&(this.k8=this.xhr.status,this.policy.xm&&this.x8&&this.r_(!1),this.iU()?this.VB(2):!this.FM&&this.Rm()&&(this.VB(),this.FM=!0))}; g.d.k9=function(){if(!this.zp()&&this.xhr){if(!this.XD&&this.xhr.QY()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var n=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.XD=((0,g.m$)()-n)/1E3}this.xhr.QY()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.cB&&!ntu()&&g.Fo("yt-player-headers-readable",!0,2592E3);n=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var q=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),w;(w=this.M5)==null||w.stop();this.pX=n||this.pX; this.Og=q||this.Og}}; g.d.Pt=function(){var n=this.xhr;if(!this.zp()&&n){this.k8=n.status;n=this.CT(n);if(this.policy.KG){var q;(q=this.M5)==null||q.stop()}n===5?gv(this.lS):this.eg(n);this.lS.X.stop()}}; g.d.CT=function(n){var q=this;TgO(this);if(mW(this.lS,this.xhr.status,this.WF?this.timing.qP||this.rb:this.xhr.b2(),!1,this.bj))return 5;var w="";yq(this.lS,this.xhr)&&(w=Wn6(this.lS,this.xhr));if(w)return hW(tM(this.lS)),this.info.kS(this.CV,w),3;w=n.zY();if(this.Eg){this.r_(!0);TgO(this);if(mW(this.lS,this.xhr.status,this.timing.qP||this.rb,!1,this.bj))return 5;if(!this.Mx){if(this.rb)return hW(tM(this.lS)),3;this.lS.lastError="net.closed";return 5}}else{if(mW(this.lS,this.xhr.status,this.xhr.b2(), !1,this.bj))return 5;var X=this.info.C;if(X&&X!==w||n.Tl())return this.lS.lastError="net.closed",5;this.r_(!0)}X=oTy(this)?n.getResponseHeader("X-Bandwidth-Est"):0;if(n=oTy(this)?n.getResponseHeader("X-Bandwidth-Est3"):0)this.m$=!0,this.policy.fg&&(X=n);Jys(this.lS,w,X?Number(X):0,this.info.Se[0].type===5);this.logger.debug(function(){var P=q.timing;return"Succeeded, rtpd="+(P.qe*1E3+P.N-Date.now()).toFixed(0)}); return 4}; g.d.canRetry=function(){this.zp();var n=this.info.isDecorated();return this.lS.canRetry(n)}; g.d.onStateChange=function(){this.isComplete()&&(this.policy.S3?this.oI():this.timing.deactivate())}; g.d.Sw=function(){this.lS.Sw()}; g.d.Aq=function(){this.callback&&this.callback(this,this.state)}; g.d.Kz=function(){return this.lS.Kz()}; g.d.dispose=function(){eb.prototype.dispose.call(this);this.lS.dispose();var n;(n=this.M5)==null||n.dispose();this.policy.S3||this.oI()}; g.d.oI=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.d.bX=function(){if(!this.yX().length)return[];this.fT=!0;return this.x8.bX()}; g.d.iU=function(){if(this.state<1)return!1;if(this.x8&&this.x8.Qp.length)return!0;var n;return((n=this.xhr)==null?0:n.iz())?!0:!1}; g.d.yX=function(){this.r_(!1);return this.x8?this.x8.yX():[]}; g.d.r_=function(n){try{if(n||this.xhr.QY()&&this.xhr.iz()&&!yq(this.lS,this.xhr)&&!this.yB)this.x8||(this.x8=new i7(this.policy,this.info.Se)),this.xhr.iz()&&(this.Eg?this.Eg.feed(this.xhr.aI()):Hk(this.x8,this.xhr.aI(),n&&!this.xhr.iz()))}catch(q){this.Eg?a13(this,q):g.TQ(q)}}; g.d.b3=function(n,q){switch(n){case 21:n=q.split(1).yU;VxT(this,n);break;case 22:this.Mx=!0;Hk(this.x8,new nt([]),!0);break;case 43:if(n=mw(new iP(q),1))this.info.kS(this.CV,n),this.rb=!0;break;case 45:q=kT(new iP(q));n=q.HC;q=q.WC;n&&q&&(this.bO=n/q);break;case 44:this.tB=Aqm(new iP(q));var w,X,P;!this.timing.qP&&((w=this.tB)==null?void 0:w.action)===4&&((X=this.tB)==null?0:(P=X.o_)==null?0:P.WF)&&(this.WF=this.tB.o_.WF);break;case 53:this.policy.KG&&(n=ESy(new iP(q)).JT)&&(this.M5||(this.JT=n,this.M5= new g.YF(this.s7,n,this)),this.M5.start());break;case 60:this.z6=I$(new iP(q));break;case 58:if(n=UBT(new iP(q)))this.ih=n,n.ih===3&&(this.bj=!0)}}; g.d.AD=function(n,q,w,X){w||this.timing.AD(X);if(n!==21)return!1;if(n=this.policy.xm)if(n*=this.info.Se[0].N.info.ED,q.totalLength+w!==X&&q.totalLength0)return!1;if(!this.xhr.QY())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Eg)var n=!this.info.C;else this.xhr.Hg()?n=!1:(n=this.xhr.getResponseHeader("content-type"),n=n==="audio/mp4"||n==="video/mp4"||n==="video/webm");if(!n)return!1;if(isNaN(this.info.qL)){n=this.xhr.getResponseHeader("x-head-seqnum");var q=this.timing.policy.G?1:0;if(!n)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(n)>this.info.Se[0].kh+q)return!1}return!0}; g.d.UY=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.d.tF=function(){this.xhr&&(this.pX=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.pX}; g.d.sH=function(){this.xhr&&(this.Og=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Og}; g.d.Kx=function(){return this.lS.Kx()}; g.d.s7=function(){if(!this.zp()&&this.xhr){this.If="heartbeat";var n=this.lS;n.N+=2;this.Aq()}};g.m(Lx,Rc);g.d=Lx.prototype;g.d.c9=function(n,q){var w=(n-this.D)/1E3,X=q-this.C;this.X>0?X>0&&(this.vW&&(w>.2||X<1024?(this.W+=w,w>.2&&Ffs(this,.05,X)):Ffs(this,w,X)),this.n5&&(this.D0+=X,this.Ff+=w)):q>this.policy.N&&this.DU(n,q);Rc.prototype.c9.call(this,n,q)}; g.d.u$=function(n,q){ck(this,n,q);this.c9(n,q);this.vW&&(q=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.X>0&&G7(this.CG,this.D0,this.W),n=(n-this.N)/1E3||.01,this.policy.V&&!(this.X>0)||lY(this.CG,n,this.C,q,!1))}; g.d.DZ=function(n){ck(this,n,this.K);var q=(n-this.D)/1E3;EX(this.CG,q,0);this.Fv(q,0);!this.vW&&this.X>0||(q=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.X>0&&(this.W+=(n-this.D)/1E3,G7(this.CG,this.D0,this.W)),lY(this.CG,(n-this.N)/1E3||.01,this.C,q,!1,!0))}; g.d.Bc=function(n){n=n.xZ||2147483647;(n&2)!==2&&(this.n5=!1);(n&1)===1&&(this.vW=!0)}; g.d.QX=function(n){n=n.xZ||2147483647;(n&2)===2&&(this.n5=!1);(n&1)===1&&(this.vW=!1)}; g.d.qK=function(){return this.V}; g.d.V4=function(){var n=this.n5?this.now()-this.D:0;return Math.max(this.Ff*1E3+n,1)}; g.d.sY=function(){return this.D0*1E3/this.V4()}; g.d.DU=function(n,q){n=n===void 0?this.G:n;q=q===void 0?this.K:q;this.X>0||(Rc.prototype.DU.call(this,n,q),q=this.CG,n=(n-this.L)/1E3,q.V.Kb(1,(this.L-this.N)/1E3),q.HW.Kb(1,n))}; g.d.zI=function(n){this.IH=n}; g.d.wH=function(){var n=Rc.prototype.wH.call(this);n.rbw=this.sY();n.rbe=+this.n5;n.gbe=+this.vW;n.ackt=(this.IH-this.N).toFixed();return n}; g.d.bK=function(){}; g.d.x3=function(){return NaN}; g.d.NK=function(){return this.N+this.snapshot.delay*1E3};MM.prototype.b3=function(n,q){switch(n){case 20:n=new iP(q);n={AT:t7(n,1),videoId:mw(n,2),itag:t7(n,3),lmt:t7(n,4),xtags:mw(n,5),nA:t7(n,6),U9:d6(n,8),vt:t7(n,9),O1g:t7(n,10),startMs:t7(n,11),durationMs:t7(n,12),TP:t7(n,14),timeRange:yM(n,15,NjO),Bl:t7(n,16),uH:t7(n,17),clipId:mw(n,1E3)};this.Nc(n);break;case 21:this.mf(q,!1);break;case 22:this.hT(q);break;case 31:n=pt(q,Lks);this.cE(n);break;case 52:n=pt(q,oSY);this.RR(n);break;default:this.jW(n,q)}}; MM.prototype.Nc=function(){}; MM.prototype.jW=function(){};g.m(xB,MM);g.d=xB.prototype; g.d.jW=function(n,q){switch(n){case 35:this.T8(q);break;case 44:this.ir(q);break;case 43:this.fW(q);break;case 53:this.Xw(q);break;case 55:n=new iP(q);yM(n,1,KkO);yM(n,2,B8s);break;case 56:this.j7();break;case 57:this.Q0(q);break;case 42:this.I5(q);break;case 45:this.z8(q);break;case 59:this.sZ(q);break;case 51:this.oQ(q);break;case 49:this.Bc(q);break;case 50:this.QX(q);break;case 47:this.VX(q);break;case 58:this.nf(q);break;case 61:this.HQ.yL.zI((0,g.m$)());break;case 66:this.XX(q);break;case 46:this.g3(q); break;case 67:this.onSnackbarMessage(q)}}; g.d.oQ=function(n){n=new iP(n);n={uXp:VM(n,1,PM),DCf:VM(n,2,PM)};this.HQ.oQ(n)}; g.d.sZ=function(n){var q=new iP(n);n=ab(q,1);var w=ab(q,2);q=ab(q,3);this.HQ.sZ(n,w,q)}; g.d.z8=function(n){n=kT(new iP(n));this.HQ.z8(n)}; g.d.VX=function(n){n=pt(n,DBs);this.HQ.VX(n)}; g.d.I5=function(n){n=new iP(n);n={videoId:mw(n,1),formatId:yM(n,2,PM),endTimeMs:t7(n,3),Iyq:t7(n,4),mimeType:mw(n,5),VV:yM(n,6,Vgs),indexRange:yM(n,7,Vgs),cJ:yM(n,8,pLy)};this.HQ.I5(n)}; g.d.Q0=function(n){n=B8s(new iP(n));this.HQ.Q0(n)}; g.d.j7=function(){this.HQ.j7()}; g.d.T8=function(n){n=Mgh(new iP(n));this.HQ.T8(n)}; g.d.Xw=function(n){n=ESy(new iP(n));this.HQ.Xw(n)}; g.d.ir=function(n){n=Aqm(new iP(n));this.HQ.ir(n)}; g.d.fW=function(n){n={redirectUrl:mw(new iP(n),1)};this.HQ.fW(n)}; g.d.mf=function(n){var q=Ib(n,0);if(n.totalLength!==1){n=n.split(1).yU;var w=this.X[q]||null;w&&oc(this.HQ.Rz,q,w,n)}}; g.d.hT=function(n){n=Ib(n,0);var q=this.X[n]||null;q&&this.HQ.hT(n,q)}; g.d.RR=function(n){this.HQ.RR(n)}; g.d.Nc=function(n){var q=n.AT,w=n.U9,X=n.nA,P=n.uH,R=n.Bl,c=n.vt,k=n.startMs,r=n.durationMs,e=n.timeRange,f=n.TP,O=n.clipId,H=YM(n);n=Nrh.has(VR[""+n.itag]);this.X[q]=H;this.HQ.tX(H,n,{AT:q,U9:!!w,nA:X!=null?X:-1,vt:c!=null?c:-1,startMs:k!=null?k:-1,durationMs:r!=null?r:-1,TP:f,uH:P,Bl:R,clipId:O,timeRange:e})}; g.d.Bc=function(n){n={xZ:t7(new iP(n),1)};this.HQ.Bc(n)}; g.d.QX=function(n){n={xZ:t7(new iP(n),1)};this.HQ.QX(n)}; g.d.cE=function(n){this.HQ.cE(n)}; g.d.nf=function(n){n=UBT(new iP(n));this.HQ.nf(n)}; g.d.XX=function(n){n={I1:yM(new iP(n),1,G$y)};this.HQ.XX(n)}; g.d.onSnackbarMessage=function(n){n=t7(new iP(n),1);this.HQ.onSnackbarMessage(n)}; g.d.g3=function(n){n=new iP(n);n={reloadPlaybackParams:yM(n,1,H4O),zE:d6(n,2)};this.HQ.g3(n)};g.m(D9,g.A);g.d=D9.prototype;g.d.h4=function(){return Array.from(this.O8.keys())}; g.d.FX=function(n){n=this.O8.get(n);var q=n.Qp;n.EP+=q.totalLength;n.Qp=new nt;return q}; g.d.jV=function(n){return this.O8.get(n).jV}; g.d.sM=function(n){return this.O8.get(n).sM}; g.d.tX=function(n,q,w,X){this.O8.get(n)||x13(this,n,q);q=this.O8.get(n);if(this.uo){n=htO(this,n,w);if(X)for(var P=g.a(n),R=P.next();!R.done;R=P.next()){R=R.value;var c=X;R.PW=c;R.startTime+=c;R.W+=c;R.D+=c}D1O(this,w.AT,q,n)}else w.U9?q.iT=w.TP:q.n_.push(w),q.cC.push(w)}; g.d.bJ=function(n){var q;return((q=this.O8.get(n))==null?void 0:q.Se)||[]}; g.d.VB=function(){for(var n=g.a(this.O8.values()),q=n.next();!q.done;q=n.next())q=q.value,q.sB&&(q.Dm&&q.Dm(),q.sB=!1)}; g.d.hT=function(n,q){this.logger.debug(function(){return"[onMediaEnd] formatId: "+q}); var w=this.O8.get(q);hM?w&&!w.jV&&(w.eJ.get(n)?w.eJ.get(n).UM=!0:w.eJ.set(n,{data:new nt,Ss:0,UM:!0}),w.sM=!0):w&&!w.sM&&(w.sM=!0)}; g.d.bX=function(n){if(hM){var q=this.O8.get(n);if(q)for(var w=g.a(q.eJ),X=w.next();!X.done;X=w.next()){var P=g.a(X.value);X=P.next().value;P=P.next().value;var R=q.L9.get(X);if(JW(R[0])){if(!P.UM)continue;var c=P.data,k=0,r=[];R=g.a(R);for(var e=R.next();!e.done;e=R.next()){e=e.value;var f=e.C,O=w6(c,k,f);k+=f;r.push(new U7(e,O))}q.n3.push.apply(q.n3,g.D(r))}else if(P.data.totalLength>0||!R[0].range&&P.UM)c=void 0,k=R[0],r=P.Ss,R=P.data,k.range||(c=P.UM),c=new U7(VSY(k,k.X+r,R.totalLength,c),R),P.Ss+= c.info.C,q.n3.push(c);q.eJ.get(X).data=new nt;P.UM&&q.eJ.delete(X)}n=this.O8.get(n);if(!n)return[];q=n.n3;n.n3=[];w=g.a(q);for(X=w.next();!X.done;X=w.next())n.EP+=X.value.info.C;return q||[]}w=(q=this.O8.get(n))==null?void 0:q.x8;if(!w)return[];this.r_(n,w);return w.bX()}; g.d.iU=function(n){if(hM)return EW(this,n);var q,w,X;return!!((w=(q=this.O8.get(n))==null?void 0:q.x8)==null?0:(X=w.yX())==null?0:X.length)||EW(this,n)}; g.d.r_=function(n,q){for(;EW(this,n);){var w=this.FX(n);var X=n;X=this.O8.get(X).jV&&!Cx(this,X);Hk(q,w,X&&Mxz(this,n))}}; g.d.Xf=function(){g.A.prototype.Xf.call(this);for(var n=g.a(this.O8.keys()),q=n.next();!q.done;q=n.next())l7(this,q.value);var w;if((w=this.By)==null?0:w.Em)for(n=g.a(this.O8.values()),q=n.next();!q.done;q=n.next())q=q.value,q.eJ.clear(),q.L9.clear(),q.n3.length=0,q.Se.length=0,q.cC.length=0,q.n_.length=0;this.O8.clear()}; var hM=!1;g.m(b7,g.A);g.d=b7.prototype;g.d.MC=function(){!this.zp()&&this.xhr&&(this.r_(!1),nw(this.HQ,this))}; g.d.k9=function(){}; g.d.Pt=function(){if(!this.zp()&&this.xhr){var n=this.CT();n===5?gv(this.lS):this.eg(n);this.lS.X.stop();var q;(q=this.uF)==null||q.stop()}}; g.d.CT=function(){var n="";yq(this.lS,this.xhr)&&(n=Wn6(this.lS,this.xhr));if(n)return this.info.wc.kS(this.CV,n),3;this.r_(!0);if(mW(this.lS,this.xhr.status,this.xhr.b2(),this.info.o8(),this.bj))return 5;if(this.Ua)return 3;Jys(this.lS,this.xhr.zY(),0,this.o8());this.policy.JU&&Pfu(this.HQ);return 4}; g.d.r_=function(n){var q=this.xhr;if((n||!yq(this.lS,this.xhr))&&q.iz()){n=q.aI();var w=n.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+w}); this.Eg.feed(n)}}; g.d.b3=function(n,q){this.xhr.Ib()&&n===21&&oMY(this);this.BR.b3(n,q)}; g.d.AD=function(n,q,w,X){w||(this.yL.AD(X),this.policy.ZV&&n===21&&oMY(this));if(n!==21)return!1;this.yL.qP=!0;n=q.totalLength;w||(this.VH=Ib(q,0),q=q.split(1).yU);var P=this.policy.pP,R=this.BR.X[this.VH],c=this.uo.C.get(R);if(P&&c&&(P*=c.info.ED,n+w!==X&&n0){this.policy.xL&&this.lS.X.stop();n=this.yL.V4();q=this.yL.sY();var w=bzO(this,n);if(!(q>w.a7||w.kK>0&&this.info.F7()>w.kK)){this.y_=(0,g.m$)();var X;(X=this.uF)==null||X.stop();this.policy.JU&&(X=this.HQ,n={mA:Math.round(q*n/1E3),cM:n},X.policy.JU&&(X.HW=n,X.Zz++));this.Sw()}}}}; g.d.Sw=function(){this.lS.Sw()}; g.d.ir=function(n){this.HQ.ir(n,this.Dk())}; g.d.fW=function(n){this.Ua=!0;this.info.wc.kS(this.CV,n.redirectUrl)}; g.d.Bc=function(n){this.yL instanceof Lx&&this.yL.Bc(n)}; g.d.QX=function(n){this.yL instanceof Lx&&this.yL.QX(n)}; g.d.I5=function(n){var q=n.formatId,w=YM({itag:q.itag,lmt:q.lmt,xtags:q.xtags}),X,P,R=new Sx(((X=n.VV)==null?void 0:X.first)||0,((P=n.VV)==null?void 0:P.Pz)||0),c,k;X=new Sx(((c=n.indexRange)==null?void 0:c.first)||0,((k=n.indexRange)==null?void 0:k.Pz)||0);this.uo.C.get(w)||(w=n.cJ||{},w.mimeType=n.mimeType,w.itag=q.itag,w.lastModified=""+(q.lmt||0),w.xtags=q.xtags,n=this.uo,q=CS(""),w=ll(w,null),vx(n,new T4(q,w,R,X)))}; g.d.z8=function(n){this.HQ.z8(n,this.Dk())}; g.d.onSnackbarMessage=function(n){if(this.policy.Ps)this.HQ.onSnackbarMessage(n)}; g.d.cE=function(n){this.Vt=n;this.hA=(0,g.m$)();this.HQ.cE(n)}; g.d.sZ=function(n,q,w){this.HQ.sZ(n,q,w)}; g.d.Q0=function(n){n.scope===2&&(this.f0=n);this.HQ.Q0(n)}; g.d.j7=function(){this.Mt=!0;this.HQ.j7()}; g.d.oQ=function(n){this.policy.fX&&this.HQ.oQ(n)}; g.d.VX=function(n){this.HQ.VX(n,this.Dk())}; g.d.nf=function(n){n.ih===3&&(this.bj=!0);this.HQ.nf(n)}; g.d.XX=function(n){this.HQ.XX(n)}; g.d.g3=function(n){this.HQ.g3(n)}; g.d.canRetry=function(){this.zp();return this.lS.canRetry(!1)}; g.d.dispose=function(){if(!this.zp()){g.A.prototype.dispose.call(this);this.lS.dispose();var n;(n=this.uF)==null||n.dispose();this.eg(-1);this.oI()}}; g.d.eg=function(n){this.state=n;nw(this.HQ,this)}; g.d.o8=function(){return this.info.o8()}; g.d.Ck=function(){return this.Mt}; g.d.I4=function(){return this.f0}; g.d.tX=function(n,q,w){w.clipId&&(this.clipId=w.clipId);this.policy.X&&!q&&(this.R6=w.vt);this.Rz.tX(n,q,w,0);if(this.policy.qg&&this.Vt&&this.yL instanceof kB){var X=this.Vt.g7;this.yL.tX(w.durationMs/1E3,q,X>0&&w.vt+1>=X)}this.Rz.O8.get(n).J1=!0}; g.d.hT=function(n,q){this.Rz.hT(n,q)}; g.d.RR=function(n){this.requestIdentifier=n}; g.d.bX=function(n){return this.Rz.bX(n)}; g.d.bJ=function(n){return this.Rz.bJ(n)}; g.d.iU=function(n){return this.Rz.iU(n)}; g.d.h4=function(){return this.Rz.h4()}; g.d.VC=function(){return 1}; g.d.Dk=function(){return this.yL.requestNumber}; g.d.iG=function(){return this.requestIdentifier}; g.d.kH=function(){return this.CV.kH()}; g.d.v3=function(){this.oI()}; g.d.oI=function(){this.yL.deactivate();var n;(n=this.xhr)==null||n.abort()}; g.d.isComplete=function(){return this.state>=3}; g.d.NS=function(){return this.state===3}; g.d.Kq=function(){return this.state===5}; g.d.qS=function(){return this.state===4}; g.d.eZ=function(){return this.isComplete()}; g.d.BF=function(){return this.state>=1}; g.d.Kz=function(){return this.policy.sD?this.lS.Kz():0}; g.d.Aq=function(){this.policy.sD&&nw(this.HQ,this)}; g.d.Pp=function(){return XI0(this.info)}; g.d.Kx=function(){return this.lS.Kx()}; g.d.oG=function(){var n=NnO(this.lS);Object.assign(n,Rmy(this.info));n.req="sabr";n.rn=this.Dk();var q;if((q=this.xhr)==null?0:q.status)n.rc=this.policy.v1?this.xhr.status:this.xhr.status.toString();var w;(q=(w=this.xhr)==null?void 0:w.N9())&&(n.msg=q);this.y_&&(w=bzO(this,this.y_-this.yL.qK()),n.letm=w.wy,n.mrbps=w.a7,n.mram=w.kK);return n};AWY.prototype.tick=function(n,q){this.ticks[n]=q?window.performance.timing.navigationStart+q:(0,g.m$)()};g.m(YB,g.np);g.d=YB.prototype; g.d.sR=function(n,q,w,X){if(this.policy.gh&&this.policy.X){var P=n.WX||null;P?(XxO(this,n.kh,Qq(this,n.startTime,n.kh),{WX:P,kh:n.kh,gG:!!q,ev:w},this.C),X&&this.C&&this.C.Sd(n.kh,n.startTime,this.X,(q==null?void 0:q.N)||[],(q==null?void 0:q.X)||[],(q==null?void 0:q.W)||[],w,(q==null?void 0:q.U5)||0,(q==null?void 0:q.C)||void 0)):this.X===1&&Sb(this,5,"noad")}else{var R=!1;this.policy.X&&(R=w?this.WW===n.kh:this.vW===n.kh);if(this.C&&X&&!R){X=[];R=[];var c=[],k=void 0,r=0;q&&(X=q.N,R=q.X,c=q.W,k= q.C,r=q.U5,this.p5("sdai",{sq:n.kh,ssvicpns:X.join("."),ssvid:R.join(".")}));this.policy.X&&(w?this.WW=n.kh:this.vW=n.kh);this.C.Sd(n.kh,n.startTime,this.X,X,R,c,w,r,k)}this.policy.X?w&&(this.X===1&&Sb(this,5,"noad"),n.kh!==((P=this.N)==null?void 0:P.kh)&&(nU6(this,n,q,w),isNaN(n.startTime)||q7T(this,n.kh,Qq(this,n.startTime,n.kh),!!q,this.C))):w&&nU6(this,n,q)}}; g.d.EB=function(n,q,w){var X=this.videoTrack.N.index.QL()<=q;this.N={WX:n,kh:q,gG:w};X&&Kx(this,n,q)}; g.d.d9=function(){this.C&&this.C.d9()}; g.d.p5=function(n,q,w){(n!=="sdai"||this.policy.WN||(w===void 0?0:w))&&this.loader.p5(n,q)}; g.d.Sq=function(n,q){var w=this.videoTrack.N.index.NL(n);if(w>=0){var X;var P=((X=q.FR.i9(w,2))==null?void 0:X.HH)||"";if(this.policy.X||P)return q.O_(n,w),u7(this.loader,n,n,w),this.p5("sdai",{cmskpad:1,t:n.toFixed(3),sq:w}),!0}this.p5("sdai",{cmskpad:0,t:n.toFixed(3),sq:w});return!1};g.d=IvY.prototype;g.d.r5=function(n,q,w){n=n||this.N;if(this.X.has(n)){if(n=this.X.get(n))n.YQ=q,n.Zx.push(w)}else q={YQ:q,Zx:[],startTimeSecs:0,lx:0},q.Zx.push(w),this.X.set(n,q)}; g.d.BJ=function(n,q){n!==void 0&&this.Fz(n);if(this.N&&(n=this.X.get(this.N),n!=null&&n.YQ)){var w={iR:n.Zx,bk:T7(n.YQ||"")||void 0,cuepointId:this.N};n.BC&&(w.fJ=n.BC);q&&(w.Ob=h_(q.split(";")[0]),w.ek=q.split(";")[1]||"");return w}}; g.d.O_=function(n,q){this.Fz(n);var w=this.X.get(this.N);w?(this.p5("ssskipad",{cid:this.N,sn:q,mt:n.toFixed(3)}),w.BC=q):this.p5("ssskipadfail",{cid:this.N,sn:q,mt:n.toFixed(3)})}; g.d.dS=function(){for(var n=g.a(this.X.values()),q=n.next();!q.done;q=n.next())q.value.BC=NaN}; g.d.Fz=function(n,q){q&&(this.C=q);if(this.N&&(q=this.X.get(this.N))&&q.startTimeSecs<=n&&n<=q.startTimeSecs+q.lx)return;this.N="";q=g.a(this.X.entries());for(var w=q.next();!w.done;w=q.next()){var X=g.a(w.value);w=X.next().value;X=X.next().value;var P=void 0,R=void 0,c=void 0;if(((P=X)==null?void 0:P.startTimeSecs)<=n&&n<=((R=X)==null?void 0:R.startTimeSecs)+((c=X)==null?void 0:c.lx)){this.N=w;break}}};g.m(Wk,g.A);Wk.prototype.t5=function(n,q,w){w=w===void 0?{}:w;this.policy.Cd=z4(n,w,this.W,q===void 0?!1:q)};XC.prototype.g2=function(n){var q=this;if(this.policy.LP){var w=new Set(n);w.size===this.HW.size&&[].concat(g.D(w)).every(function(X){return q.HW.has(X)})||(this.loader.p5("lwnmow",{itagDenylist:[].concat(g.D(n)).join(",")}),this.loader.PM(!!w.size),this.L=-1,this.HW=w,PQ(this,this.N),this.D0=!0)}}; XC.prototype.t5=function(n,q,w){w=w===void 0?{}:w;var X=this.policy.Cd;this.K.t5(n,q===void 0?!1:q,w);if(X!==this.policy.Cd){PQ(this,this.N);R_(this);var P,R;X>this.policy.Cd&&((P=this.C)==null?0:vS(P.info))&&((R=this.nextVideo)==null||!vS(R.info))&&(this.qP=!0)}};rf.prototype.C1=function(n){this.timestampOffset=n;this.flush()}; rf.prototype.flush=function(){if(this.N.pos>0){var n={a:this.track.nD(),u:this.N.IY(),pd:Math.round(this.W),ad:Math.round(this.C)},q=this.X;if(q){var w=q.N.info;n.itag=w.itag;w.N&&(n.xtags=w.N);n.sq=q.kh;n.st=q.startTime;n.sd=q.duration;this.track.policy.DG&&(n.si=q.XR());q.K&&(n.esl=q.X+q.C);q.D3()&&(n.eos=1)}isNaN(this.timestampOffset)||(n.to=this.timestampOffset);var X;if(q=(X=this.track.OD)==null?void 0:X.RP({})){for(var P in q)this.D[P]!==q[P]&&(n["sb_"+P]=q[P]);this.D=q}this.track.p5("sbu", n);this.N.reset();this.buffered=[];this.K=this.C=this.W=0;this.timestampOffset=this.X=void 0}};sx.prototype.dispose=function(){this.PW=!0}; sx.prototype.zp=function(){return this.PW}; g.m(Ux,Error);gf.prototype.skip=function(n){this.offset+=n}; gf.prototype.D2=function(){return this.offset};g.d=uBO.prototype;g.d.Lw=function(){return this.X}; g.d.uh=function(){return this.X.length?this.X[this.X.length-1]:null}; g.d.Q5=function(){this.X=[];pb(this);a_(this)}; g.d.FX=function(n){this.Ff=this.X.shift().info;n.info.equals(this.Ff)}; g.d.bJ=function(){return g.Hh(this.X,function(n){return n.info})}; g.d.nD=function(){return!!this.K.info.audio}; g.d.isDrm=function(){return!!this.K.info.nV}; g.d.getDuration=function(){return this.K.index.F1()};g.m(Zf,eb);g.d=Zf.prototype;g.d.onStateChange=function(){this.zp()&&(Gt(this.Rz,this.formatId),this.N.dispose())}; g.d.oG=function(){var n=Lfs(this.Rz,this.formatId),q;var w=((q=this.Rz.O8.get(this.formatId))==null?void 0:q.bytesReceived)||0;var X;q=((X=this.Rz.O8.get(this.formatId))==null?void 0:X.EP)||0;return{expected:n,received:w,bytesShifted:q,sliceLength:Cx(this.Rz,this.formatId),isAnyMediaEndReceived:this.Rz.sM(this.formatId)}}; g.d.Za=function(){return 0}; g.d.Rm=function(){return!0}; g.d.bX=function(){return this.Rz.bX(this.formatId)}; g.d.yX=function(){return[]}; g.d.iU=function(){return this.Rz.iU(this.formatId)}; g.d.Kx=function(){return this.lastError}; g.d.Kz=function(){return 0};g.m(vQ,g.A);g.d=vQ.prototype;g.d.nD=function(){return!!this.N.info.audio}; g.d.uh=function(){return this.W.uh()}; g.d.FX=function(n){this.W.FX(n);var q;(q=this.V)!=null&&(q.K.add(n.info.kh),q.N=UyT(q,q.qU,q.Yv,n,q.N),q.C=n,q.D=(0,g.m$)());this.ED=Math.max(this.ED,n.info.N.info.ED||0)}; g.d.getDuration=function(){return this.N.index.F1()}; g.d.Q5=function(){zX(this);this.W.Q5()}; g.d.Qs=function(){return this.W}; g.d.isRequestPending=function(n){return this.C.length?n===this.C[this.C.length-1].info.Se[0].kh:!1}; g.d.C1=function(n){var q;(q=this.V)==null||q.C1(n);var w;(w=this.L)==null||w.C1(n)}; g.d.p5=function(n,q){this.loader.p5(n,q)}; g.d.zH=function(){return this.loader.zH()}; g.d.dispose=function(){var n;(n=this.L)==null||n.flush();g.A.prototype.dispose.call(this)};g.m(WQ,g.A);WQ.prototype.C=function(){this.X++>15||(this.N=!this.N,new h6s(this.loader,this.policy,this.CG,this.wc,this.N),this.delay.start())}; g.d=h6s.prototype;g.d.k9=function(){}; g.d.MC=function(){}; g.d.Pt=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.zY()===this.size)this.loader.p5("rqs",this.getInfo());else{var n="net.connect";this.xhr.status>200?n="net.badstatus":this.xhr.QY()&&(n="net.closed");this.onError(n)}}; g.d.onError=function(n){var q=this;this.loader.handleError(n,this.getInfo());b9("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(w){q.loader.p5("pathprobe",w)},function(w){q.loader.handleError(w.errorCode,w.details)})}; g.d.getInfo=function(){var n=this.timing.wH();n.shost=bi(this.location.Zi);n.pb=this.size;return n};g.m(N9,g.A); N9.prototype.G=function(n,q){if(n.G){this.uo.isLive?(n=this.uo.vX&&this.uo.W?n.N.Rr(this.uo.vX,!1):n.N.Fu(Infinity),n.qL=this.qL):n=n.N.Rr(0,!1);if(this.qP){var w=this.qP;n.qL===0&&(n.K=w.V)}else n.K=this.L;return n}w=n.X;if(!w.N.CD())return w.N.Kh()?(n=Kg(this.K,n.N.info.ED,q.N.info.ED,0),n=w.N.Yg(w,n)):n=w.N.gL(w),n;var X=w.D-this.loader.getCurrentTime(),P=!w.range||w.C===0&&w.X===0?0:w.range.length-(w.X+w.C),R=w.N;this.Ia(n,X)&&P===0&&(this.uo.isManifestless?R=n.N:(R=w.startTime+Kvs,w.C&&(R+=w.duration), nx(n,R),w=n.X,R=w.N));R.Kh()?(P=this.C,q=Kg(this.K,R.info.ED,q.N.info.ED,X,P.W.length>0&&P.V===0&&this.loader.UN),X=SJ(n),n=w.N.Yg(w,q),(q=n.C)&&n.Se.length>1&&(X||n.wc.C||n.Se[0].N!==w.N?n=w.N.Yg(w,n.Se[0].C):(X=n.Se[n.Se.length-1],R=X.C/q,!X.K&&R<.4&&(n=w.N.Yg(w,q-X.C))))):(w.kh<0&&(q=nS(w),q.pr=""+n.C.length,this.loader.isSeeking()&&(q.sk="1"),q.snss=w.G,this.loader.p5("nosq",q)),n=R.gL(w));if(this.policy.WW)for(w=g.a(n.Se),q=w.next();!q.done;q=w.next())q.value.type=6;return n}; N9.prototype.Ia=function(n,q){if(!SJ(n)||!n.N.CD())return!1;var w=this.C.D0||dTs(n)||q<=this.policy.sC||this.C.qP;this.logger.debug(function(){return"ready to adapt: "+w+", upgrade pending: "+dTs(n)+", health: "+q}); return w}; N9.prototype.Xf=function(){g.A.prototype.Xf.call(this)}; var Kvs=2/24;g.m(rc,g.A);rc.prototype.Ql=function(n,q,w){var X;var P=((X=this.X)==null?void 0:X.reason)==="m"?"m":this.X&&Qy3(this,this.X)?this.X.reason:"a";this.loader.Ql(new zt(n,P,w));cj(this.loader,q,n,!0)}; rc.prototype.S4=function(n,q){for(var w=g.a(this.WW),X=w.next();!X.done;X=w.next())if(X.value.id===n)return this.K=this.uo.N[n],Fd(this.By)&&(this.qP=!0),n=new zt(this.K,q?"t":"m"),q&&(this.G=!0),n;this.C=[];return null}; rc.prototype.t5=function(n,q,w){w=w===void 0?{}:w;this.N.t5(n,q===void 0?!1:q,w)};Ls.prototype.setData=function(n,q,w){var X=this;w=w===void 0?{}:w;if(q==null?0:q.nM)this.oo=EMh(this,q,w),n.Nn=this.wc.Nn();if(this.o8())return!0;this.data=n;this.N=qN0(n,function(P,R){var c;(c=X.HQ)==null||c.vQ(P,R)},q==null?void 0:q.C); if(!this.N)return!1;this.X=g.Kt(this.N,gS6);return!0}; Ls.prototype.o8=function(){return this.requestType===1}; Ls.prototype.F7=function(){var n;return((n=this.HQ)==null?void 0:n.F7())||0}; Ls.prototype.isDecorated=function(){var n;return!((n=this.data)==null||!n.Ug)};MK.prototype.encrypt=function(n){(0,g.m$)();return(new g.RX(this.N.N)).encrypt(n,this.iv)}; MK.prototype.decrypt=function(n,q){(0,g.m$)();return(new g.RX(this.N.N)).decrypt(n,q)};g.m(x$,g.A);x$.prototype.C=function(n,q){if(q){q=q instanceof g.Ei?q:D0(this,q);var w;((w=this.N.get(n))==null?void 0:bi(w.location))!==bi(q)&&this.N.set(n,new fjY(q,n))}else this.N.delete(n)}; x$.prototype.load=function(){var n=this,q,w,X,P,R,c,k,r,e,f;return g.b(function(O){switch(O.X){case 1:q=n.N.get(0);g.Vy(O,2);var H;if(H=q&&!n.X)H=bi(q.location),H=n.X===dv(H);if(H){O.f5(4);break}return g.l(O,lD(n,n.X?2:0),5);case 5:if(w=O.N)n.C(0,w),KQ(w)&&n.C(1,SZ(w));case 4:g.FY(O,3);break;case 2:X=g.$u(O);g.TQ(X);if(!n.X){O.f5(3);break}n.X=!1;return g.l(O,n.load(),7);case 7:return O.return();case 3:if(!n.NP.experiments.BW("html5_onesie_probe_ec_hosts")){O.f5(0);break}g.Vy(O,9);P=n;R=P.C;c=3;return g.l(O, lD(n,1),11);case 11:return R.call(P,c,O.N),k=n,r=k.C,e=4,g.l(O,lD(n,2),12);case 12:r.call(k,e,O.N);g.FY(O,0);break;case 9:f=g.$u(O),g.TQ(f),g.yy(O)}})}; x$.prototype.G=function(){var n=this,q,w;return g.b(function(X){g.K9(n.V);q=g.Jv(n.NP.experiments,"html5_onesie_prewarm_max_lact_ms");if(tP()>=q)return X.return();(w=n.N.get(0))&&sKO(n,w);g.yy(X)})}; var rKx={iq5:0,Hhq:1,bqe:2,WYf:3,YiT:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};GE.prototype.decrypt=function(n){var q=this,w,X,P,R,c,k;return g.b(function(r){switch(r.X){case 1:if(q.N.length&&!q.N[0].isEncrypted)return r.return();q.X=!0;q.g_.jg("omd_s");w=new Uint8Array(16);P$()?X=new g.c$(n):P=new g.RX(n);case 2:if(!q.N.length||!q.N[0].isEncrypted){r.f5(4);break}R=q.N.shift();if(!X){c=P.decrypt(Rb(R.buffer),w);r.f5(5);break}return g.l(r,X.decrypt(Rb(R.buffer),w),6);case 6:c=r.N;case 5:k=c;for(var e=0;e=4)){var q=Bj(this),w=this.xhr;q.rc=w.status;n&&(q.ab=!0);if(w.N9()){var X="onesie.net";q.msg=w.N9()}else w.status>=400?X="onesie.net.badstatus":w.b2()?this.uT||(X="onesie.response.noplayerresponse"):X=w.status===204?"onesie.net.nocontent":"onesie.net.connect";X?this.fail(new g.kw(X,q)):(this.jg("or_fs"),this.yL.u$((0,g.m$)(),w.zY(),0),this.eg(4),this.Fq&&this.p5("rqs",q));this.Fq&&this.p5("ombre", "ok."+ +!X);this.eM=!1;uD(this);T2x(this.g_);if(!this.e9){this.RQ.stop();var P;(P=this.bH)==null||P.stop()}var R;if(n=(R=this.b9)==null?void 0:emz(R))for(R=0;R1E3){var n;(n=this.yL)==null||n.DZ((0,g.m$)());n=Bj(this);if(this.NP.uL()&&this.xhr instanceof fx){var q=this.xhr;n.xrs=q.xhr.readyState;n.xpb=q.N.totalLength;n.xdc=q.W}this.fail(new g.kw("net.timeout",n))}}else(0,g.m$)()-this.yL.N>1E4&&((q=this.yL)==null||q.DZ((0,g.m$)()),this.Mz());this.isComplete()||this.JR.start()}}; g.d.Mz=function(){this.logger.info("Onesie request timed out");this.eM=!1;if(!uD(this)){var n=Bj(this);n.timeout="1";this.fail(new g.kw("onesie.request",n))}}; g.d.fail=function(n){var q=this;n=jS(n);this.MA?this.Eq.Az(n):(this.Vy.reject(n),this.MA=!0);T2x(this.g_);this.e9||this.RQ.stop();this.jg("or_fe");var w,X;(w=this.b9)==null||(X=emz(w))==null||X.forEach(function(P){q.p5("pathprobe",P)}); this.eg(5);this.dispose()}; g.d.isComplete=function(){return this.state>=3}; g.d.qS=function(){return this.state===4}; g.d.eZ=function(n){var q,w;return this.isComplete()||!!((q=this.q9)==null?0:(w=q.get(n))==null?0:w.N)}; g.d.NS=function(){return!1}; g.d.Kq=function(){return this.state===5}; g.d.notifySubscribers=function(n){for(var q=0;q102400&&!this.SZ&&(this.jg("or100k"),this.SZ=!0);if(n.iz()){var q=n.aI(),w=q.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+w}); this.Fq&&this.p5("ombrss","len."+w);this.Eg.feed(q)}if(this.q9)for(var X=g.a(this.q9.keys()),P=X.next();!P.done;P=X.next()){var R=P.value;n=void 0;(n=this.q9.get(R))==null||n.VB();this.notifySubscribers(R)}}catch(c){this.fail(c)}}; g.d.Dk=function(){return this.yL.requestNumber}; g.d.iG=function(n){return this.e4.get(n)};g.m(KQu,g.A);g.d=KQu.prototype;g.d.n8=function(n,q){this.PW=void 0;Pfu(this);XDs(this,n,q)}; g.d.ip=function(n){if(this.N.length===0)return!1;var q=this.N[0];return q instanceof Qe?n===this.loader.getCurrentTime()*1E3:!(q instanceof b7&&PEO(q.info))&&Math.abs(q.Pp()-n)<50}; g.d.T8=function(n){this.X=n;this.PW=(0,g.m$)()+(n.backoffTimeMs||0)}; g.d.ir=function(n,q){if(n.action===void 0){var w=this.Eq.uj();w!==void 0&&this.loader.q5(w)}else if(n.action!==0||!this.Ff)if(n.action===0&&this.policy.Su&&(n.action=2),n.C9==="sabr.malformed_config"&&this.policy.Pw>0&&this.IH++0&&(n.action=2),w={},w.reason=n.C9,w.action=n.action,w.rn=q,n.action){case 1:this.policy.X&&this.V&&this.V.JP(void 0, void 0,w);break;case 0:this.Ff=!0;this.videoData.M7()&&this.policy.X&&this.V&&this.V.JP(void 0,void 0,w,!1);this.loader.SY(w);break;case 2:ihs(n.C9)!=="sabr.config"&&delete w.reason;this.loader.handleError(ihs(n.C9),w,1);break;case 3:this.policy.nM&&((n=this.uo.V)!=null&&(n.V=!0),this.loader.handleError("sabr.hostfallback",w))}}; g.d.Q0=function(n){n&&(this.loader.p5("sabrctxt",{onsbrctxt:n.type,scp:n.scope,dflt:n.sendByDefault}),n.type&&n.sendByDefault&&this.videoData.RH.add(n.type),n.scope!==2&&(n.type&&this.videoData.sabrContextUpdates.set(n.type,n),this.Eq.Q0(n)))}; g.d.j7=function(){}; g.d.z8=function(n,q){if(n.HC!==void 0&&n.WC){var w=n.HC/n.WC;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.PW||this.policy.Sr||this.policy.Wr)this.loader.Gw.N=!1;var X=this.loader.z4(w,1);this.policy.qe&&this.policy.X&&this.loader.Fz(X,q);this.Eq.getCurrentTime()!==w&&(q={zk:"sabr_seek",SH:!0,o$:!0},n.seekSource&&(q.seekSource=n.seekSource),Xd(this.loader,w+.1,q))}}; g.d.onSnackbarMessage=function(n){this.Eq.publish("onSnackbarMessage",n)}; g.d.cE=function(n){n.g7&&n.Rd&&SR(this.uo,n.g7,n.Rd);this.policy.lR&&(n.yA&&n.LK&&(this.uo.h5=n.yA/n.LK),n.G_&&n.QA&&(this.uo.qg=n.G_/n.QA));Q8(this.videoData)&&!this.videoData.PW&&n.Rd&&this.loader.z4(n.Rd,1E3);n.S_!=null&&this.Eq.y0(n.S_);this.policy.PN&&n.Gf&&(n=((0,g.m$)()-n.Gf)/1E3,this.loader.ZD.Kb(1,n))}; g.d.nf=function(n){this.loader.nf(n)}; g.d.wr=function(n){return this.videoData.RH.has(n)}; g.d.sZ=function(n,q,w){this.policy.C&&this.loader.p5("sabrctxtplc",{start:n?n.join("_"):"",stop:q?q.join("_"):"",discard:w?w.join("_"):""});if(n){n=g.a(n);for(var X=n.next();!X.done;X=n.next())this.videoData.RH.add(X.value)}if(q)for(q=g.a(q),n=q.next();!n.done;n=q.next())n=n.value,this.videoData.RH.has(n)&&this.videoData.RH.delete(n);if(w)for(w=g.a(w),q=w.next();!q.done;q=w.next())if(q=q.value,this.videoData.sabrContextUpdates.has(q)&&(this.videoData.sabrContextUpdates.delete(q),q===3&&(this.videoData.pP= "")),this.policy.L&&this.N.length)for(n=g.a(this.N),X=n.next();!X.done;X=n.next())if(X=X.value,!(X instanceof Qe)){var P=void 0;((P=X.f0)==null?void 0:P.type)===q&&(X.f0=void 0)}}; g.d.oQ=function(){}; g.d.xW=function(n){this.G=n}; g.d.h0=function(n){this.D=n}; g.d.VX=function(n,q){zP(this.policy,n,4,q)}; g.d.XX=function(n){if(n==null?0:n.I1)if(n=n.I1.eI){n=g.a(n);for(var q=n.next();!q.done;q=n.next())if(q=q.value,q.formatId){var w=this.uo.C.get(YM(q.formatId));w&&w.info&&(w.info.debugInfo=q.debugInfo)}}}; g.d.g3=function(n){this.Eq.publish("reloadplayer",n)}; g.d.Fg=function(){return this.Eq.Fg()||""}; g.d.F7=function(){var n=o_(this.audioTrack,!0)*1E3,q=o_(this.videoTrack,!0)*1E3;return Math.min(n,q)}; g.d.vQ=function(n,q){this.loader.p5(n,q)}; g.d.aK=function(n){dVz(this.loader,dcO(this.je,n))}; g.d.Xf=function(){g.A.prototype.Xf.call(this);this.X=void 0;XDs(this,!0,"i");this.N=[]};f4u.prototype.IQ=function(){this.isSeeking=!0;this.N===1&&sp3(this.W);this.N===0&&this.M9.wg("transitiondetector");this.D=!1};mjO.prototype.Wy=function(n,q){if(this.W)return TYO(this,q);if(q=Pk(n)){var w=q.N;w&&w.C&&w.N&&(n=n.C.length?n.C[0]:null)&&n.state>=2&&!n.Kq()&&n.info.qL===0&&(this.W=n,this.G=w,this.X=q.info,this.D=this.startTimeSecs=Date.now()/1E3,this.K=this.X.startTime)}return NaN}; mjO.prototype.clear=function(){this.X=this.G=this.W=null;this.N=this.K=this.D=this.startTimeSecs=NaN;this.C=!1};g.m(vIT,g.A);vIT.prototype.Xf=function(){MFs(this);g.A.prototype.Xf.call(this)};var xjy=/[?&]cpn=/;g.m(wp,g.A);wp.prototype.flush=function(){var n={};this.X&&(n.pe=this.X);this.N.length>0&&(n.pt=this.N.join("."));this.N=[];return n}; wp.prototype.stop=function(){var n=this,q,w,X;return g.b(function(P){if(P.X==1)return g.Vy(P,2),g.l(P,(q=n.W)==null?void 0:q.stop(),4);if(P.X!=2)return(w=P.N)&&n.logTrace(w),g.FY(P,0);X=g.$u(P);n.X=oIs(X.message);g.yy(P)})}; wp.prototype.logTrace=function(n){this.encoder.reset();this.encoder.add(1);this.encoder.add(n.resources.length);for(var q=g.a(n.resources),w=q.next();!w.done;w=q.next()){w=w.value.replace("https://www.youtube.com/s/","");this.encoder.add(w.length);for(var X=0;X=0?n:g.kW(this.provider),this.vW?y0h.has(this.jP)&&(this.N.size||(this.jP==="PL"?n>=this.X+30:n<=this.qP+30||n>=this.X+1200&&n<=this.qP+86400))&&(g.RI(this,n,"vps",[this.jP]),this.X=n):["PL","B","S"].indexOf(this.jP)>-1&&(this.N.size||n>=this.X+30)&&(g.RI(this,n,"vps",[this.jP]),this.X=n),this.N.size)){this.sequenceNumber===7E3&&g.TQ(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){rp(this,n);var q=this.provider.Eq.kU(); q=g.a(q);for(var w=q.next();!w.done;w=q.next())w=w.value,this.p5(w.key,w.value);q=n;w=this.provider.Eq.K7();var X=w.droppedVideoFrames||0,P=w.totalVideoFrames||0,R=X-this.xz,c=P&&!this.pA;X>w.totalVideoFrames||R>5E3?NYu(this,"html5.badframedropcount","df."+X+";tf."+w.totalVideoFrames):(R>0||c)&&g.RI(this,q,"df",[R]);this.xz=X;this.pA=P;this.V>0&&(g.RI(this,n,"glf",[this.V]),this.V=0);Ir.isActive()&&(n=Ir.FK(),Object.keys(n).length>0&&this.p5("profile",n));this.nM&&jf(this,"lwnmow");this.provider.NP.uL()&& this.provider.Z("html5_record_now")&&this.p5("now",{wt:(0,g.m$)()});n={};this.provider.videoData.X&&(n.fmt=this.provider.videoData.X.itag,(q=this.provider.videoData.W)&&q.itag!==n.fmt&&(n.afmt=q.itag));n.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(n.adcpn=this.adCpn);this.BM&&(n.addocid=this.BM);this.contentCpn&&(n.ccpn=this.contentCpn);this.WW&&(n.cdocid=this.WW);this.provider.videoData.cotn&&(n.cotn=this.provider.videoData.cotn);n.el=Xq(this.provider.videoData);n.content_v=Ro(this.provider.videoData); n.ns=this.provider.NP.qP;n.fexp=BdO(this.provider.NP.experiments).toString();n.cl=(781308173).toString();(q=this.provider.videoData.adFormat||this.adFormat)&&(n.adformat=q);(q=AH(this.provider.videoData))&&(n.live=q);this.provider.videoData.XJ()&&(n.drm=1,this.provider.videoData.K&&(n.drm_system=sJh[this.provider.videoData.K.flavor]||0),this.provider.videoData.drmProduct&&(n.drm_product=this.provider.videoData.drmProduct));qg()&&this.provider.videoData.D&&(n.ctt=this.provider.videoData.D,n.cttype= this.provider.videoData.E9,this.provider.videoData.mdxEnvironment&&(n.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(n.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.X$&&(n.dai_fallback="1")):this.provider.videoData.dM?n.dai="cs":this.provider.videoData.Ps&&(n.dai="disabled");n.seq=this.sequenceNumber++;if(this.provider.videoData.lO){if(q=this.provider.videoData.lO,n&&q)for(q.ns==="3pp"&&(n.ns="3pp"),this.aS.has(q.ns)&& jf(this,"hbps"),q.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=q.shbpslc),this.provider.NP.experiments.BW("html5_use_server_qoe_el_value")&&this.RH.delete("el"),w=g.a(Object.keys(q)),X=w.next();!X.done;X=w.next())X=X.value,this.RH.has(X)||(n[X]=q[X])}else n.event="streamingstats",n.docid=this.provider.videoData.videoId,n.ei=this.provider.videoData.eventId;this.isEmbargoed&&(n.embargoed="1");Object.assign(n,this.provider.NP.N);if(q=n.seq)q={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+q,serializedWatchEndpointLoggingContext:this.provider.videoData.iVh},this.serializedHouseBrandPlayerServiceLoggingContext&&(q.serializedHouseBrandPlayerServiceLoggingContext=Fk(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(q.playerResponseCpn=this.provider.videoData.playerResponseCpn),PC.length&&(q.decoderInfo=PC),this.remoteControlMode&&(q.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(q.remoteConnectedDevices= this.remoteConnectedDevices),q=g.Kt(q,aN0),q=g.p1(q,4),this.N.set("qclc",[q]);n=g.OV("//"+this.provider.NP.w4+"/api/stats/qoe",n);w=q="";X=g.a(this.N.entries());for(P=X.next();!P.done;P=X.next())R=g.a(P.value),P=R.next().value,R=R.next().value,c=void 0,(c=R)!=null&&c.join&&(P="&"+P+"="+R.join(","),P.length>100?w+=P:q+=P);ZZx(this,n+q,w.replace(/ /g,"%20"))}this.N.clear()}}; g.d.PM=function(n){this.nM=n}; g.d.q8=function(){if(this.provider.videoData.K){var n=this.provider.videoData.K;jf(this,"eme-"+(n.keySystemAccess?"final":nJ(n)?"ms":Xm(n)?"ytfp":w5(n)?"safarifp":"nonfinal"))}}; g.d.iX=P0(53);g.d.j$=function(n){this.isEmbargoed=n}; g.d.gm=P0(30);g.d.Yw=P0(36);g.d.onPlaybackRateChange=function(n){var q=g.kW(this.provider);n&&n!==this.tU&&(g.RI(this,q,"rate",[n]),this.tU=n);this.vW||this.reportStats(q)}; g.d.Bh=P0(24);g.d.getPlayerState=function(n){if(g.Z(n,128))return"ER";if(g.Z(n,2048))return"B";if(g.Z(n,512))return"SU";if(g.Z(n,16)||g.Z(n,32))return"S";if(n.isOrWillBePlaying()&&g.Z(n,64))return"B";var q=aQD[yE(n)];g.jg(this.provider.NP)&&q==="B"&&this.provider.Eq.getVisibilityState()===3&&(q="SU");q==="B"&&g.Z(n,4)&&(q="PB");return q}; g.d.Xf=function(){g.A.prototype.Xf.call(this);g.ez(this.PW);g.ez(this.ej)}; g.d.Wk=function(n){this.isOffline=n;g.RI(this,g.kW(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.d.p5=function(n,q,w){var X=this.VL.indexOf(n)!==-1;X||this.VL.push(n);if(!w||!X){var P=typeof q!=="string"?In(q):q;P=qJu(P);if(!w&&!/^t[.]/.test(P)){var R=g.kW(this.provider)*1E3;P="t."+R.toFixed()+";"+P}II(this,"ctmp",n+":"+P);this.logger.debug(function(){return"ctmp "+n+" "+P}); JHx(this);return R}}; g.d.rW=function(n,q,w){this.K={fFP:Number(this.p5("glrem",{nst:n.toFixed(),rem:q.toFixed(),ca:+w})),AA:n,Sje:q,isAd:w}}; g.d.cG=function(n,q,w){g.RI(this,g.kW(this.provider),"ad_playback",[n,q,w])}; g.d.uq=function(n,q){var w=g.kW(this.provider)*1E3;II(this,"daism","t."+w.toFixed(0)+";smw."+(n*1E3).toFixed(0)+";smo."+(q*1E3).toFixed(0))}; g.d.resume=function(){var n=this;isNaN(this.PW)?zgu(this):this.PW=g.jz(function(){n.reportStats()},1E4)}; var y_={},aQD=(y_[5]="N",y_[-1]="N",y_[3]="B",y_[0]="EN",y_[2]="PA",y_[1]="PL",y_[-1E3]="ER",y_[1E3]="N",y_),y0h=new Set(["PL","B","S"]),PC=[];g.m(g.fw,g.A);g.d=g.fw.prototype;g.d.initialize=function(n,q,w){this.logger.debug(function(){return"Initialized, t="+n}); n=n||0;this.policy.N||(q=mcx(this.N),yEu(this.Eq,new zt(q.video,q.reason)),this.Eq.ZO(new zt(q.audio,q.reason)));this.policy.N&&wc(this);this.uo.isManifestless&&KRs(this.K);this.G&&a4y(this.G,this.videoTrack.N);q=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var X=!this.uo.isManifestless;this.policy.uR&&(X=X||this.uo.Tz);this.policy.HW||(this.currentTime=X?n:q);this.policy.PW&&this.seek(this.getCurrentTime(),{}).Ld(function(){}); if(this.policy.N){var P;((P=this.L)==null?0:YN0(P,this.Fg()||""))&&rEz(this)&&kYy(this,this.videoTrack)&&kYy(this,this.audioTrack)&&(Rg3(this.X,this.L),this.policy.K&&Ips(this))}else this.vW&&(joO(this,this.videoTrack),joO(this,this.audioTrack),vMz(this.vW),delete this.vW);w?(exs(this,!1),g.K9(this.rr)):(w=this.getCurrentTime()===0,Xz(this.K,this.videoTrack,this.videoTrack.N,w),Xz(this.K,this.audioTrack,this.audioTrack.N,w),this.policy.N&&B2y(this.X,!0),this.policy.PW||this.seek(this.getCurrentTime(), {}).Ld(function(){}),this.timing.tick("gv")); (this.uo.vX||this.uo.Cb||this.uo.WW||this.uo.nM||this.uo.ej)&&this.Eq.wS(this.uo)}; g.d.resume=function(){if(this.isSuspended||this.UN){this.logger.debug("Resumed.");this.Ja=this.UN=this.isSuspended=!1;try{this.Wy()}catch(n){g.pC(n)}}}; g.d.Vx=function(){return!this.policy.N7}; g.d.cK=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;this.logger.debug("detaching media source");H0O(this);this.Eq.y5()&&(this.D=NaN);n?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Tp&&this.p5("loader",{setsmb:1}),this.policy.WW=!0,this.Q5()):(exs(this,!1),q||this.Q5())}; g.d.setAudioTrack=function(n,q,w){w=w===void 0?!1:w;if(!this.zp()){var X=!isNaN(q);w&&X&&(this.audioTrack.PW=Date.now(),this.policy.HX&&(this.Ne=!0));if(this.policy.N){var P=this.W.S4(n.id,X);this.logger.debug(function(){return"Logging new audio format: "+P.N.info.id}); this.Eq.ZO(P)}else{var R=tRT(this.N,n.id,X);this.logger.debug(function(){return"Logging new audio format: "+R.audio.info.id}); this.Eq.ZO(new zt(R.audio,R.reason))}X?(this.nM=Date.now(),w=this.audioTrack.N.index.NL(q),this.p5("setAudio",{id:n.id,cmt:q,sq:w}),w>=0&&(n=this.policy.A1?w+1:w,this.policy.N&&this.n8(!0,"mosaic"),b_(this.audioTrack,n,NaN,NaN),!this.policy.bx&&this.uo.isLive&&KS(this.uo,n,!1))):this.Eq.XP()}}; g.d.setPlaybackRate=function(n){n!==this.V.getPlaybackRate()&&this.V.setPlaybackRate(n)}; g.d.F2=function(n){var q=this.X.G;this.X.xW(n);this.p5("scfidc",{curr:YM(q),"new":YM(n)});n&&YM(n)!==YM(q)&&(this.n8(!0,"caption change"),this.Wy())}; g.d.rB=function(n){this.X.h0(n)}; g.d.Ql=function(n){var q=n.N.info.nD();this.logger.debug(function(){return"New "+(q?"audio":"video")+" format from SABR: "+on(n.N.info)}); q?this.Eq.ZO(n):yEu(this.Eq,n)}; g.d.aK=function(n){zc(n.Se[n.Se.length-1])&&dVz(this,dcO(this.N,n.Se[0].N))}; g.d.Yd=function(){return this.Eq.Yd()}; g.d.qf=function(){return this.Eq.qf()}; g.d.nf=function(n){this.Eq.B().uL()&&this.p5("sps",{status:n.ih||""});if(n.ih===1)this.Eq.videoData.PA=0;else if(n.ih===2||n.ih===3){var q=!1;if(n.ih===3){q=this.Eq.OI();var w;this.iS=(w=n.RwP)!=null?w:Infinity;this.Eq.videoData.PA=q+1;(q=Ia(this))&&this.Wu(!0)}this.Eq.W7(!0,q)}}; g.d.jA=function(){return this.Eq.jA()}; g.d.yJ=function(){return this.Eq.yJ()}; g.d.Jt=function(n){this.Eq.Jt(n)}; g.d.rzq=function(){var n,q=(n=this.Eq.Ii())==null?void 0:n.getCurrentTime();q?this.Eq.p5("rms",{cta:q}):g.K9(this.KG)}; g.d.Wy=function(){tdy(this);if(this.K5&&wd(this.K5)&&!this.K5.Zk()&&(!this.policy.HW||isFinite(this.getCurrentTime()))){var n=M9(this.videoTrack);n=this.policy.mO&&n&&n.D3();this.uo.isManifestless&&this.uo.W&&of(this.uo)?(this.D=of(this.uo),this.K5.Rg(this.D)):ul(this.uo)&&!n?isNaN(this.D)?(this.D=this.getCurrentTime()+3600,this.K5.Rg(this.D)):this.D<=this.getCurrentTime()+1800&&(this.D=Math.max(this.D+1800,this.getCurrentTime()+3600),this.K5.Rg(this.D)):this.K5.isView||(n=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.D)||this.D!==n)&&n>0&&(this.K5.Rg(n),this.D=n))}if(!this.zp())if(E7(this.uo)&&this.uo.Kq()){var q=this.uo;this.handleError("manifest.net.retryexhausted",q.je?{rc:q.k8}:{rc:q.k8.toString()},1)}else if(this.policy.N)a:{try{nI3(this.X);this.uo.isManifestless&&this.policy.K&&qM(this.Gw);var w;((w=this.K5)==null?0:RO(w))&&this.qZ();B2y(this.X)}catch(c){g.TQ(c);q=c;if(q.message.includes("changeType")){this.p5("ctype",{exp:q.name,msg:q.message,s:q.stack});break a}this.handleError("fmt.unplayable", {exp:q.name,msg:q.message,s:q.stack},1)}b0s(this);g.K9(this.je)}else if(!this.uo.X||!yF0(this.videoTrack)&&!yF0(this.audioTrack)||(this.videoTrack.K||this.audioTrack.K)&&this.policy.AK?w=!1:(this.Q5(),this.Eq.seekTo(Infinity,{zk:"checkLoaderTracksSync",z4:!0}),w=!0),!w){tdy(this);this.uo.isManifestless&&(abz(this.videoTrack),abz(this.audioTrack),qM(this.Gw),(w=Pk(this.videoTrack))&&w.N&&(w=w.N.C&&!this.policy.fO,this.p5(w===this.policy.G.qT?"strm":"strmbug",{strm:w,sfmp4:this.policy.G.qT,dfs:this.policy.fO}, !0)));if(this.K5)this.qZ();else if(this.policy.W){var X;w=!1;if(this.policy.wL){var P;n=g.a([this.videoTrack,this.audioTrack]);for(P=n.next();!P.done;P=n.next()){var R=P.value;for(P=Pk(R);P&&R.uh()!==M9(R);P=Pk(R))R.FX(P);w=w||!!P}}else(q=Pk(this.videoTrack))&&this.videoTrack.FX(q),(X=Pk(this.audioTrack))&&this.audioTrack.FX(X);GP(this.videoTrack)&&GP(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(q||X||w)&&NK(this)}soT(this);Xz(this.K,this.videoTrack,this.videoTrack.N, !1);Xz(this.K,this.audioTrack,this.audioTrack.N,!1);this.policy.bV||mVz(this,this.videoTrack,this.audioTrack);CYO(this.K,this.videoTrack,this.audioTrack);CYO(this.K,this.audioTrack,this.videoTrack);b0s(this);this.G&&(q=this.G,q.W?(X=q.D+q.policy.rC,q.C||(X=Math.min(X,q.startTimeSecs+q.policy.XI)),q=Math.max(0,X*1E3-Date.now())):q=NaN,isNaN(q)||g.K9(this.VL,q));g.K9(this.je)}}; g.d.SY=function(n){this.Eq.SY(n)}; g.d.qZ=function(){var n=this;if(this.K5){var q=this.K5.N,w=this.K5.X;JA6(this,this.audioTrack);JA6(this,this.videoTrack);var X=VdO(this);if(X){if(this.policy.Nd){if(!q.lj()){var P=Pk(this.audioTrack);if(P){if(!ef(this,this.audioTrack,q,P.info))return;Fvs(this,this.audioTrack,q,P)}}if(!w.lj()&&(P=Pk(this.videoTrack))){if(!ef(this,this.videoTrack,w,P.info))return;Fvs(this,this.videoTrack,w,P)}}this.PW||(this.PW=(0,g.m$)(),this.logger.debug(function(){return"Appends pause start "+n.PW+" reason "+X}), this.policy.C&&this.p5("apdps",{r:X}))}else if(this.PW&&(aps(this,this.PW),this.PW=0),pah(this),P=!1,xVO(this,this.videoTrack,w)&&(P=!0,SwY(this.timing),Zzs(this.timing)),this.K5&&!this.K5.jV()&&(xVO(this,this.audioTrack,q)&&(P=!0,uUs(this.timing),JWs(this.timing)),!this.zp()&&this.K5))!this.policy.N7&&GP(this.videoTrack)&&GP(this.audioTrack)&&wd(this.K5)&&!this.K5.Zk()&&(w=!1,w=M9(this.audioTrack).N,w=w===this.uo.N[w.info.id])&&(this.logger.debug("Setting EOS"),bph(this.K5),p4O(this.schedule),this.L3("e")), P&&!this.K5.isAsync()&&NK(this)}}; g.d.L3=function(n){if(this.policy.JE&&this.uo.isManifestless){var q=this.videoTrack.N;if(q){var w=q.index.QL(),X=-1,P=-1;q.index instanceof s7&&(X=q.index.tF(),P=q.index.F1());this.Eq.L3(n,w,X,P)}}}; g.d.Vq=function(n){var q,w=n===((q=this.K5)==null?void 0:q.N)?this.audioTrack:this.videoTrack,X;if((X=Pk(w))==null?0:X.isLocked){if(this.Eq.B().uL()){var P;this.p5("eosl",{ounlock:(P=Pk(w))==null?void 0:P.info.XR()})}var R;EE0(this,n===((R=this.K5)==null?void 0:R.N))}var c;if(this.policy.HX&&n===((c=this.K5)==null?void 0:c.N)&&this.qe){q=this.qe-this.getCurrentTime();var k;this.Eq.p5("asl",{l:q,xtag:(k=M9(this.audioTrack))==null?void 0:k.N.info.N});this.Ne=!1;this.qe=0}n.d_()&&n.Uj().length===0&& (n.PK(),this.K5&&!this.K5.d_()&&(this.Eq.B().uL()&&this.Eq.p5("rms",{ld:"seek"}),this.K5.D=performance.now(),this.Eq.WJ(),this.Eq.B().uL()&&g.K9(this.KG)));var r;(r=w.L)!=null&&jJ(r,0);this.policy.YE?Ra(this):this.Wy()}; g.d.cgf=function(n){if(this.K5){var q=M9(n===this.K5.N?this.audioTrack:this.videoTrack);if(n=n.Vs())for(var w=0;w 5&&n.qP.shift();q=q.kh;var k;if((k=this.Eq.getVideoData())==null?0:k.enableServerStitchedDai)k=$TT(this.audioTrack,q),w=$TT(this.videoTrack,q),k!==0&&w!==0&&k!==w&&this.handleError("ssdai.avsync",{sq:q,a:k,v:w},0)}}; g.d.EB=function(n,q,w,X){n.info.video&&this.C.EB(q,w,X)}; g.d.g2=function(n){this.N.g2(n)}; g.d.e2=P0(12);g.d.US=function(){if(g.Z(this.Eq.getPlayerState(),8)){var n,q,w=(q=(n=this.Eq.Ii())==null?void 0:n.getCurrentTime())!=null?q:this.Eq.getCurrentTime(),X;(X=this.AK)==null||iZs(X,w)}var P;(P=this.KM)==null||g.K9(P)}; g.d.S2=function(){return this.videoTrack.G||this.audioTrack.G}; g.d.seek=function(n,q){if(this.zp())return TH();if(this.S2())return TH("seeking to head");if(this.policy.PW&&!isFinite(n))return pMs(this.Gw),g.pE(Infinity);tdy(this);wc(this);this.policy.N||soT(this,n);this.K5&&this.K5.N&&this.K5.X&&!this.Eq.getVideoData().Wj&&(this.K5.N.isLocked()||this.K5.X.isLocked())&&this.Eq.XP({reattachOnLockedBuffer:1,vsb:""+this.K5.X.isLocked(),asb:""+this.K5.N.isLocked()});var w=this.getCurrentTime(),X=this.Gw.seek(n,q);this.policy.HW||(this.currentTime=X);Z9(this.C,n,w, this.policy.E3&&!q.SH);NK(this);return g.pE(X)}; g.d.ip=function(n){return this.policy.N&&this.X.ip(n)}; g.d.wr=function(n){return this.X.wr(n)}; g.d.n8=function(n,q){this.X.n8(n,q)}; g.d.getCurrentTime=function(){if(this.policy.HW){var n=this.Zj()||0;return this.Eq.getCurrentTime(!0)-n}return this.currentTime}; g.d.uG=function(){return this.audioTrack.N.info}; g.d.IG=function(){return this.videoTrack.N.info}; g.d.OP=function(){return this.audioTrack.N.info.L5}; g.d.eA=function(){return this.videoTrack.N.info.L5}; g.d.Xf=function(){try{this.cK(),zX(this.audioTrack),zX(this.videoTrack),u_(this.audioTrack),u_(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.A.prototype.Xf.call(this)}catch(n){g.pC(n)}}; g.d.handleError=function(n,q,w){w=w===void 0?0:w;var X=rq(w);n==="fmt.unplayable"&&this.uo.isLive&&(this.policy.Nd=!1,YU(this.uo));q=new g.kw(n,q,w);g.I5(this);In(q.details);this.Eq.handleError(q);n!=="html5.invalidstate"&&q.errorCode!=="fmt.unplayable"&&n!=="fmt.unparseable"&&X&&this.dispose()}; g.d.RP=function(){var n=M9(this.audioTrack),q=M9(this.videoTrack);n={lct:this.getCurrentTime().toFixed(3),lsk:this.Gw.isSeeking(),lmf:this.N.N.isLocked(),lbw:oy(this.schedule).toFixed(3),lhd:CJ(this.schedule).toFixed(3),lst:((this.schedule.G.gq()||0)*1E9).toFixed(3),laa:n?n.XR():"",lva:q?q.XR():"",lar:this.audioTrack.X?this.audioTrack.X.XR():"",lvr:this.videoTrack.X?this.videoTrack.X.XR():"",laq:""+Cb(this.audioTrack),lvq:""+Cb(this.videoTrack)};this.K5&&!this.K5.jV()&&this.K5.N&&this.K5.X&&(n.lab= Ag(this.K5.N.Uj()),n.lvb=Ag(this.K5.X.Uj()));this.PW&&(n.lapt=((0,g.m$)()-this.PW).toFixed(0),n.lapr=VdO(this));this.n5&&(n.lapmabht=((0,g.m$)()-this.n5).toFixed(0),n.lapmabh=Nb(this,this.audioTrack).toFixed(0));this.Ff&&(n.lapmvbht=((0,g.m$)()-this.Ff).toFixed(0),n.lapmvbh=Nb(this,this.videoTrack).toFixed(0));this.D0&&(n.lapsdai=((0,g.m$)()-this.D0).toFixed(0));return n}; g.d.Q5=function(){try{this.policy.N&&this.X.n8(!1,"pending"),this.audioTrack.Q5(),this.videoTrack.Q5()}catch(n){g.pC(n)}this.policy.W=""}; g.d.hW=function(){return YK(this.V)}; g.d.p5=function(n,q,w){this.Eq.p5(n,q,w===void 0?!1:w)}; g.d.Fg=function(){return this.Eq.Fg()}; g.d.z4=function(n,q){n/=q;isNaN(this.timestampOffset)&&zlx(this,n-Math.min(n,this.policy.PA));return(n-this.timestampOffset)*q}; g.d.Zj=function(){return this.timestampOffset}; g.d.isSeeking=function(){return this.Gw.isSeeking()}; g.d.d9=function(){this.C.d9()}; g.d.t5=function(n,q,w){q=q===void 0?!1:q;w=w===void 0?{}:w;this.policy.N?this.W.t5(n,q,w):this.N.t5(n,q,w)}; g.d.Sq=function(n,q){if(this.qP&&this.C.Sq(n,this.qP)){if(this.policy.qe&&this.policy.X){var w=this.videoTrack.N.index.NL(n),X;(X=this.HW)==null||X.O_(n,w)}zlx(this,this.timestampOffset-q);NK(this);this.policy.X&&(YU(this.uo),u_(this.audioTrack),u_(this.videoTrack),this.Q5());return!0}q=this.videoTrack.N.index.NL(n);this.handleError("ad.skipfailed",{dec:!!this.qP,t:n.toFixed(3),sq:q});return!1}; g.d.getManifest=function(){return this.uo}; g.d.isOffline=function(){return!!this.Eq.getVideoData().cotn}; g.d.JY=function(n,q){this.Eq.JY(n,q)}; g.d.tD=function(n){if(this.policy.N)this.X.n8(!0,"utc"),this.Wy();else{var q=this.Eq.getVideoData().lE;if(q){var w=this.K;w.hM=n;w.lE=q;k$(this)}}}; g.d.q5=function(n){this.videoTrack.G=!1;this.audioTrack.G=!1;this.Gw.N=!1;this.Eq.q5(n)}; g.d.dQ=function(n){this.Gw.dQ(n-this.Zj())}; g.d.dT=function(){this.Eq.dT()}; g.d.Wu=function(n){n!==this.policy.TT&&((this.policy.TT=n)||this.Wy())}; g.d.XP=function(n){this.Eq.XP(n)}; g.d.PM=function(n){this.Eq.PM(n)}; g.d.r5=function(n,q,w){var X;(X=this.HW)==null||X.r5(n,q,w)}; g.d.Fz=function(n,q){var w;(w=this.HW)==null||w.Fz(n,q)}; g.d.BJ=function(n){var q;return(q=this.HW)==null?void 0:q.BJ(void 0,n)}; g.d.OI=function(){return this.Eq.OI()};g.d=g.Oy.prototype;g.d.dV=function(n,q,w,X,P,R){return this.FR.dV(n,q,w,X,P,R)}; g.d.aJ=function(n,q,w,X,P,R){return this.FR.aJ(n,q,w,X,P,R)}; g.d.R4=function(n){return this.FR.R4(n)}; g.d.WI=function(n){this.FR.WI(n)}; g.d.JP=function(n,q,w,X){return this.FR.JP(n,q,w,X)}; g.d.d9=function(){this.FR.d9()}; g.d.O_=function(n,q){this.FR.O_(n,q)}; g.d.dS=function(){this.FR.dS()}; g.d.Wg=P0(56);g.d.kS=function(n,q,w){this.FR.kS(n,q,w)}; g.d.yD=P0(59);g.d.Sd=function(n,q,w,X,P,R,c,k,r){this.FR.Sd(n,q,w,X,P,R,c,k,r)}; g.d.Zh=function(n){this.FR.Zh(n)}; g.d.wW=function(n){return this.FR.wW(n)}; g.d.mZ=function(n){return this.FR.mZ(n)};g.m(ie,g.np);g.m(HC,ie);HC.prototype.D=function(n,q){if(n&&q){var w=Number(yN(n,"cpi"))*1+1;isNaN(w)||w<=0||wthis.C&&(this.C=w,g.fV(this.N)||(this.N={},this.W.stop(),this.X.stop())),this.N[q]=n,g.K9(this.X))}}; HC.prototype.K=function(){for(var n=g.a(Object.keys(this.N)),q=n.next();!q.done;q=n.next()){var w=q.value;q=this.publish;for(var X=this.C,P=g.cg(this.N[w]),R=[],c=g.a(P[6].split("&")),k=c.next();!k.done;k=c.next())k=k.value,k.indexOf("cpi=")===0?R.push("cpi="+X.toString()):k.indexOf("ek=")===0?R.push("ek="+g.$1(w)):R.push(k);P[6]="?"+R.join("&");w="skd://"+P.slice(2).join("");P=w.length*2;X=new Uint8Array(P+4);X[0]=P%256;X[1]=(P-X[0])/256;for(P=0;P0)for(var w=g.a(this.N),X=w.next();!X.done;X=w.next())if(q===X.value.info.cryptoPeriodIndex){q=!0;break a}q=!1}if(!q){q=(0,g.m$)();a:{w=n.cryptoPeriodIndex;if(!isNaN(w)){X=g.a(this.C.values());for(var P=X.next();!P.done;P=X.next())if(Math.abs(P.value.cryptoPeriodIndex-w)<=1){w=!0;break a}}w=!1}w?(w=n.N,w=Math.max(0,Math.random()*((isNaN(w)?120:w)-30))*1E3):w=0;this.publish("log_qoe",{wvagt:"delay."+w,cpi:n.cryptoPeriodIndex,reqlen:this.N.length}); w<=0?qMh(this,n):(this.N.push({time:q+w,info:n}),g.K9(this.X,w))}}; Uy.prototype.Xf=function(){this.N=[];ie.prototype.Xf.call(this)};var ar={},cus=(ar.DRM_TRACK_TYPE_AUDIO="AUDIO",ar.DRM_TRACK_TYPE_SD="SD",ar.DRM_TRACK_TYPE_HD="HD",ar.DRM_TRACK_TYPE_UHD1="UHD1",ar);g.m(PDs,g.A);g.m(kEO,g.np);g.d=kEO.prototype;g.d.nX=function(n){var q=this;if(!(this.zp()||n.size<=0)){var w={};n.forEach(function(X,P){var R=qT(q.X)?P:X;P=new Uint8Array(qT(q.X)?X:P);qT(q.X)&&Vl3(P);X=g.p1(P,4);Vl3(P);P=g.p1(P,4);q.N[X]?q.N[X].status=R:q.N[P]?q.N[P].status=R:q.N[X]={type:"",status:R};yuO(q,q.N[X].type,w)}); g$z(this,",");tJ(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.d.error=function(n,q,w,X){this.zp()||(this.publish("licenseerror",n,q,w,X),n==="drm.provision"&&(n=(Date.now()-this.D)/1E3,this.D=NaN,this.publish("ctmp","provf",{et:n.toFixed(3)})));rq(q)&&this.dispose()}; g.d.shouldRetry=function(n,q){return!n&&this.requestNumber===q.requestNumber}; g.d.Xf=function(){this.N={};g.np.prototype.Xf.call(this)}; g.d.RP=function(){var n={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.vW,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(n.keyStatuses=this.N);return n}; g.d.getInfo=function(){var n=this.W.join();if(dp(this)){var q=new Set,w;for(w in this.N)this.N[w].status!=="usable"&&q.add(this.N[w].type);n+="/UKS."+Array.from(q)}return n+="/"+this.cryptoPeriodIndex}; g.d.kH=function(){return this.url};g.m(mG,g.A);g.d=mG.prototype;g.d.oO=function(n){if(this.K){var q=n.messageType||"license-request";this.K(new Uint8Array(n.message),q)}}; g.d.nX=function(){this.G&&this.G(this.N.keyStatuses)}; g.d.onClosed=function(){this.zp()||g.Ce("xboxone")&&this.C&&this.C("closedShouldNotRetry")}; g.d.Ov=function(n){this.K&&this.K(n.message,"license-request")}; g.d.F5=function(n){if(this.C){if(this.X){var q=this.X.error.code;n=this.X.error.systemCode}else q=n.errorCode,n=n.systemCode;this.C("t.prefixedKeyError;c."+q+";sc."+n,q,n)}}; g.d.rf=function(){this.D&&this.D()}; g.d.update=function(n){var q=this;if(this.N)return this.N.update(n).then(null,Gi(function(w){TcO(q,"t.update",w)})); this.X?this.X.update(n):this.element.addKey?this.element.addKey(this.V.keySystem,n,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.V.keySystem,n,this.initData,this.sessionId);return FR()}; g.d.Xf=function(){this.N&&(this.L?this.N.close().catch(g.TQ):this.N.close());this.element=null;g.A.prototype.Xf.call(this)};g.m(y7,g.A);g.d=y7.prototype;g.d.setServerCertificate=function(){return this.X.setServerCertificate?this.N.flavor==="widevine"&&this.N.Mg?this.X.setServerCertificate(this.N.Mg):Pe(this.N)&&this.N.Ff?this.X.setServerCertificate(this.N.Ff):null:null}; g.d.createSession=function(n,q){var w=n.initData;if(this.N.keySystemAccess){q&&q("createsession");var X=this.X.createSession();Xm(this.N)?w=v$Y(w,this.N.Ff):Pe(this.N)&&(w=n$h(w)||new Uint8Array(0));q&&q("genreq");n=X.generateRequest(n.contentType,w);var P=new mG(null,null,null,X,null,this.G);n.then(function(){q&&q("genreqsuccess")},Gi(function(c){TcO(P,"t.generateRequest",c)})); return P}if(nJ(this.N))return MlY(this,w);if(w5(this.N))return LLu(this,w);if((X=this.element)==null?0:X.generateKeyRequest)this.element.generateKeyRequest(this.N.keySystem,w);else{var R;(R=this.element)==null||R.webkitGenerateKeyRequest(this.N.keySystem,w)}return this.W=new mG(this.element,this.N,w,null,null,this.G)}; g.d.RO=function(n){var q=xKm(this,n);q&&q.Ov(n)}; g.d.B0=function(n){var q=xKm(this,n);q&&q.F5(n)}; g.d.Uz=function(n){var q=xKm(this,n);q&&q.rf(n)}; g.d.getMetrics=function(){if(this.X&&this.X.getMetrics)try{var n=this.X.getMetrics()}catch(q){}return n}; g.d.Xf=function(){this.C=this.X=null;var n;(n=this.W)==null||n.dispose();n=g.a(Object.values(this.D));for(var q=n.next();!q.done;q=n.next())q.value.dispose();this.D={};g.A.prototype.Xf.call(this);delete this.element};g.d=aI.prototype;g.d.get=function(n){n=this.findIndex(n);return n!==-1?this.values[n]:null}; g.d.remove=function(n){n=this.findIndex(n);n!==-1&&(this.keys.splice(n,1),this.values.splice(n,1))}; g.d.removeAll=function(){this.keys=[];this.values=[]}; g.d.set=function(n,q){var w=this.findIndex(n);w!==-1?this.values[w]=q:(this.keys.push(n),this.values.push(q))}; g.d.findIndex=function(n){return g.mD(this.keys,function(q){return g.Qv(n,q)})};g.m(l0Y,g.np);g.d=l0Y.prototype;g.d.ohp=function(n){this.XQ({onecpt:1});n.initData&&E$h(this,new Uint8Array(n.initData),n.initDataType)}; g.d.W_H=function(n){this.XQ({onndky:1});E$h(this,n.initData,n.contentType)}; g.d.GU=function(n){this.XQ({onneedkeyinfo:1});this.NP.Z("html5_eme_loader_sync")&&(this.G.get(n.initData)||this.G.set(n.initData,n));CDx(this,n)}; g.d.Ad=function(n){this.C.push(n);V7(this)}; g.d.createSession=function(n){var q=bsO(this)?bSz(n):g.p1(n.initData);this.X.get(q);this.WW=!0;n=new kEO(this.videoData,this.NP,n,this.drmSessionId);this.X.set(q,n);n.subscribe("ctmp",this.fY,this);n.subscribe("keystatuseschange",this.nX,this);n.subscribe("licenseerror",this.YA,this);n.subscribe("newlicense",this.zV,this);n.subscribe("newsession",this.Du,this);n.subscribe("sessionready",this.Vf,this);n.subscribe("fairplay_next_need_key_info",this.lN,this);this.NP.Z("html5_enable_vp9_fairplay")&&n.subscribe("qualitychange", this.Ds,this);n.subscribe("sabrlicenseconstraint",this.dUl,this);eyy(n,this.W)}; g.d.zV=function(n){this.zp()||(this.XQ({onnelcswhb:1}),n&&!this.heartbeatParams&&(this.heartbeatParams=n,this.publish("heartbeatparams",n)))}; g.d.Du=function(){this.zp()||(this.XQ({newlcssn:1}),this.C.shift(),this.WW=!1,V7(this))}; g.d.Vf=function(){if(nJ(this.N)&&(this.XQ({onsnrdy:1}),this.n5--,this.n5===0)){var n=this.qP,q,w;(q=n.element)==null||(w=q.msSetMediaKeys)==null||w.call(q,n.C)}}; g.d.nX=function(n){if(!this.zp()){!this.Tp&&this.videoData.Z("html5_log_drm_metrics_on_key_statuses")&&(Auz(this),this.Tp=!0);this.XQ({onksch:1});var q=this.Ds;if(!dp(n)&&g.AN&&n.X.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var w="large";else{w=[];var X=!0;if(dp(n))for(var P=g.a(Object.keys(n.N)),R=P.next();!R.done;R=P.next())R=R.value,n.N[R].status==="usable"&&w.push(n.N[R].type),n.N[R].status!=="unknown"&&(X=!1);if(!dp(n)||X)w=n.W;w=dKT(w)}q.call(this,w);if(!dp(n))for(q= {},w=g.a(n.W),X=w.next();!X.done;X=w.next())yuO(n,X.value,q);this.videoData.authorizedFormats=n.authorizedFormats;this.publish("keystatuseschange",n)}}; g.d.fY=function(n,q){this.zp()||this.publish("ctmp",n,q)}; g.d.lN=function(n,q){this.zp()||this.publish("fairplay_next_need_key_info",n,q)}; g.d.YA=function(n,q,w,X){this.zp()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&Auz(this),this.publish("licenseerror",n,q,w,X))}; g.d.hm=function(){return this.V}; g.d.Ds=function(n){var q=g.gn("auto",n,!1,"l");if(this.videoData.Sr){if(this.V.equals(q))return}else if(jCY(this.V,n))return;this.V=q;this.publish("qualitychange");this.XQ({updtlq:n})}; g.d.dUl=function(n){this.videoData.sabrLicenseConstraint=n}; g.d.Xf=function(){this.N.keySystemAccess&&this.element&&(this.vW?this.element.setMediaKeys(null).catch(g.TQ):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var n=g.a(this.X.values()),q=n.next();!q.done;q=n.next())q=q.value,q.unsubscribe("ctmp",this.fY,this),q.unsubscribe("keystatuseschange",this.nX,this),q.unsubscribe("licenseerror",this.YA,this),q.unsubscribe("newlicense",this.zV,this),q.unsubscribe("newsession",this.Du,this),q.unsubscribe("sessionready",this.Vf,this),q.unsubscribe("fairplay_next_need_key_info", this.lN,this),this.NP.Z("html5_enable_vp9_fairplay")&&q.unsubscribe("qualitychange",this.Ds,this),q.dispose();this.X.clear();this.D.removeAll();this.G.removeAll();this.heartbeatParams=null;g.np.prototype.Xf.call(this)}; g.d.RP=function(){for(var n={systemInfo:this.N.RP(),sessions:[]},q=g.a(this.X.values()),w=q.next();!w.done;w=q.next())n.sessions.push(w.value.RP());return n}; g.d.getInfo=function(){return this.X.size<=0?"no session":""+this.X.values().next().value.getInfo()+(this.K?"/KR":"")}; g.d.XQ=function(n,q){q=q===void 0?!1:q;this.zp()||(In(n),(this.NP.uL()||q)&&this.publish("ctmp","drmlog",n))};g.m(Bcm,g.A);g.d=Bcm.prototype;g.d.zD=function(){return!!this.Pc}; g.d.LN=function(){return this.X}; g.d.handleError=function(n){var q=this;Nch(this,n);if((n.errorCode!=="html5.invalidstate"&&n.errorCode!=="fmt.unplayable"&&n.errorCode!=="fmt.unparseable"||!WLx(this,n.errorCode,n.details))&&!XCz(this,n)){if(this.aH.qP!=="yt"&&qyy(this,n)&&this.videoData.gh&&(0,g.m$)()/1E3>this.videoData.gh&&this.aH.qP==="hm"){var w=Object.assign({e:n.errorCode},n.details);w.stalesigexp="1";w.expire=this.videoData.gh;w.init=this.videoData.jk/1E3;w.now=(0,g.m$)()/1E3;w.systelapsed=((0,g.m$)()-this.videoData.jk)/1E3; n=new g.kw(n.errorCode,w,2);this.Eq.pL(n.errorCode,2,"SIGNATURE_EXPIRED",In(n.details))}if(rq(n.severity)){var X;w=(X=this.Eq.loader)==null?void 0:X.N.N;if(this.aH.Z("html5_use_network_error_code_enums"))if(nWu(n)&&w&&w.isLocked())var P="FORMAT_UNAVAILABLE";else if(this.aH.D||n.errorCode!=="auth"||n.details.rc!==429)n.errorCode==="ump.spsrejectfailure"&&(P="HTML5_SPS_UMP_STATUS_REJECTED");else{P="TOO_MANY_REQUESTS";var R="6"}else nWu(n)&&w&&w.isLocked()?P="FORMAT_UNAVAILABLE":this.aH.D||n.errorCode!== "auth"||n.details.rc!=="429"?n.errorCode==="ump.spsrejectfailure"&&(P="HTML5_SPS_UMP_STATUS_REJECTED"):(P="TOO_MANY_REQUESTS",R="6");this.Eq.pL(n.errorCode,n.severity,P,In(n.details),R)}else this.Eq.publish("nonfatalerror",n),X=/^pp/.test(this.videoData.clientPlaybackNonce),this.Az(n.errorCode,n.details),X&&n.errorCode==="manifest.net.connect"&&(n="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.m$)(),b9(n,"manifest",function(c){q.D=!0;q.p5("pathprobe",c)}, function(c){q.Az(c.errorCode,c.details)}))}}; g.d.p5=function(n,q){this.Eq.dc.p5(n,q)}; g.d.Az=function(n,q){q=In(q);this.Eq.dc.Az(n,q)};pw.prototype.lG=function(n){var q=k50(this);if(!n)return{xF:rY,Mh:rY,W5:rY,OE:rY,nw:rY,JN:rY,zC:q};var w=rY;if(yQ(q)||this.Z("html5_perf_cap_override_sticky"))w=gWO(this,n);return{xF:w,Mh:Owx(this,n),W5:eU3(this,n),OE:mCs(this,n.videoData),nw:yJz(this,n.videoData,n),JN:jIy(this,n),zC:q}}; pw.prototype.YI=function(n){var q;g.NT(this.NP)&&(q=window.screen&&window.screen.width?new g.QB(window.screen.width,window.screen.height):null);q||(q=this.NP.Wr?this.NP.Wr.clone():this.Zr.qr());(Sz||kg||n)&&q.scale(g.ON());return q}; pw.prototype.Z=function(n){return this.NP.Z(n)};g.m(FS,g.A);FS.prototype.onError=function(n){if(n!=="player.fatalexception"||this.provider.Z("html5_exception_to_health"))n==="sabr.fallback"&&(this.encounteredSabrFallback=!0),n.match(V_i)?this.networkErrorCount++:this.nonNetworkErrorCount++}; FS.prototype.send=function(){if(!(this.C||this.N<0)){pCT(this);var n=g.kW(this.provider)-this.N,q="PLAYER_PLAYBACK_STATE_UNKNOWN",w=this.playerState.er;this.playerState.isError()?q=w&&w.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.Z(this.playerState,2)?q="PLAYER_PLAYBACK_STATE_ENDED":g.Z(this.playerState,64)?q="PLAYER_PLAYBACK_STATE_UNSTARTED":g.Z(this.playerState,16)||g.Z(this.playerState,32)?q="PLAYER_PLAYBACK_STATE_SEEKING":g.Z(this.playerState,1)&&g.Z(this.playerState, 4)?q="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.Z(this.playerState,1)?q="PLAYER_PLAYBACK_STATE_BUFFERING":g.Z(this.playerState,4)?q="PLAYER_PLAYBACK_STATE_PAUSED":g.Z(this.playerState,8)&&(q="PLAYER_PLAYBACK_STATE_PLAYING");w=eQv[AH(this.provider.videoData)];a:switch(this.provider.NP.playerCanaryState){case "canary":var X="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":X="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:X="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var P=TpT(this.provider), R=this.X<0?n:this.X-this.N;n=this.provider.NP.zG+36E5<(0,g.m$)();q={started:this.X>=0,stateAtSend:q,joinLatencySecs:R,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:X,playerCanaryStage:P,isAd:this.provider.videoData.isAd(),liveMode:w,hasDrm:!!g.op(this.provider.videoData),isGapless:this.provider.videoData.G,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Fl(this.provider.videoData)};n||g.Xc("html5PlayerHealthEvent",q);this.C=!0;this.dispose()}}; FS.prototype.Xf=function(){this.C||this.send();window.removeEventListener("error",this.oR);window.removeEventListener("unhandledrejection",this.oR);g.A.prototype.Xf.call(this)}; var V_i=/\bnet\b/;FGs.prototype.update=function(){if(this.G){var n=this.v_()||0,q=g.kW(this.provider);n>=this.provider.Eq.getDuration()-.1&&(this.previouslyEnded=!0);if(n!==this.N||LGm(this,n,q)){var w;if(!(w=nq-this.HN+2||LGm(this,n,q))){w=this.provider.Eq.getVolume();var X=w!==this.L,P=this.provider.Eq.isMuted()?1:0;P!==this.V?(this.V=P,w=!0):(!X||this.W>=0||(this.L=w,this.W=q),w=q-this.W,this.W>=0&&w>2?(this.W=-1,w=!0):w=!1)}w&&(vC(this),this.C=n);this.HN=q;this.N=n}}}; FGs.prototype.v_=function(){var n=this.provider.Eq.v_();return this.provider.NP.Z("html5_disable_live_dvr_shrink_for_cdm_vss")&&TO(this.provider.videoData)?n+this.provider.Eq.Zj():n};Mfs.prototype.send=function(n){var q=this;if(!this.je){var w=DCY(this),X=g.OV(this.uri,w);this.NP.Z("vss_through_gel_double")&&hUs(X);this.WW&&!this.NP.Z("html5_simplify_pings")?oWu(this,X):xCs(this,n).then(function(P){q.WW&&(P=P||{},P.method="POST",P.postParams={atr:q.attestationResponse});GOT(X,P,{token:q.PW,Mq:q.Me,mdxEnvironment:q.mdxEnvironment},q.NP,n,q.HW,q.isFinal&&q.DF||q.Tp||q.C&&q.u7)}); this.je=!0}}; Mfs.prototype.X=function(n){n===void 0&&(n=NaN);return Number(n.toFixed(3)).toString()}; var V_={},Ce3=(V_.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,V_.LIVING_ROOM_APP_MODE_MAIN=1,V_.LIVING_ROOM_APP_MODE_KIDS=2,V_.LIVING_ROOM_APP_MODE_MUSIC=3,V_.LIVING_ROOM_APP_MODE_UNPLUGGED=4,V_.LIVING_ROOM_APP_MODE_GAMING=5,V_),p6={},G5Y=(p6.EMBEDDED_PLAYER_MODE_UNKNOWN=0,p6.EMBEDDED_PLAYER_MODE_DEFAULT=1,p6.EMBEDDED_PLAYER_MODE_PFP=2,p6.EMBEDDED_PLAYER_MODE_PFL=3,p6);g.m(MC,g.A);MC.prototype.Dm=function(){this.N.update();ZwT(this)&&(Yys(this),KGO(this))}; MC.prototype.Xf=function(){g.A.prototype.Xf.call(this);hJ(this);$CO(this.N)}; MC.prototype.RP=function(){return DCY(xW(this,"playback"))}; MC.prototype.LD=function(n){var q=xW(this,"engage");q.vW=n;return lhx(q,qTz(this.provider))};ncy.prototype.isEmpty=function(){return this.endTime===this.startTime};G5.prototype.Z=function(n){return this.NP.Z(n)}; G5.prototype.getCurrentTime=function(){return this.Eq.getCurrentTime()}; G5.prototype.v_=function(){return this.Eq.v_()}; var wmx={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.m(g.Cw,g.A);g.d=g.Cw.prototype;g.d.Dm=function(){if(this.provider.videoData.enableServerStitchedDai&&this.R0){var n;(n=this.C.get(this.R0))==null||n.Dm()}else this.N&&this.N.Dm()}; g.d.j$=function(n){this.qoe&&this.qoe.j$(n)}; g.d.gm=P0(29);g.d.Yw=P0(35);g.d.uq=function(n,q){this.qoe&&this.qoe.uq(n,q)}; g.d.fN=function(){if(this.provider.videoData.enableServerStitchedDai&&this.R0){var n;(n=this.C.get(this.R0))!=null&&vC(n.N)}else this.N&&vC(this.N.N)}; g.d.Az=function(n,q){this.qoe&&NYu(this.qoe,n,q);if(this.X)this.X.onError(n)}; g.d.onPlaybackRateChange=function(n){if(this.qoe)this.qoe.onPlaybackRateChange(n);this.N&&vC(this.N.N)}; g.d.iX=P0(52);g.d.p5=function(n,q,w){this.qoe&&this.qoe.p5(n,q,w)}; g.d.rW=function(n,q,w){this.qoe&&this.qoe.rW(n,q,w)}; g.d.y0=function(n){var q;(q=this.qoe)==null||q.y0(n)}; g.d.wS=function(n){var q;(q=this.qoe)==null||q.wS(n)}; g.d.L3=function(n,q,w,X){var P;(P=this.qoe)==null||P.L3(n,q,w,X)}; g.d.PM=function(n){this.qoe&&this.qoe.PM(n)}; g.d.cG=function(n,q,w){this.qoe&&this.qoe.cG(n,q,w)}; g.d.Bh=P0(23);g.d.lQ=function(){if(this.qoe)return this.qoe.lQ()}; g.d.RP=function(){if(this.provider.videoData.enableServerStitchedDai&&this.R0){var n,q;return(q=(n=this.C.get(this.R0))==null?void 0:n.RP())!=null?q:{}}return this.N?this.N.RP():{}}; g.d.ud=function(){var n;return(n=this.qoe)==null?void 0:n.ud()}; g.d.G3=function(n,q){var w;(w=this.qoe)==null||w.G3(n,q)}; g.d.LD=function(n){return this.N?this.N.LD(n):function(){}}; g.d.getVideoData=function(){return this.provider.videoData}; g.d.resume=function(){this.qoe&&this.qoe.resume()};g.m(g.Ey,g.A);g.d=g.Ey.prototype;g.d.Zf=function(n,q){this.sync();q&&this.N.array.length>=2E3&&this.w9("captions",1E4);q=this.N;if(n.length>1&&n.length>q.array.length)q.array=q.array.concat(n),q.array.sort(q.N);else{n=g.a(n);for(var w=n.next();!w.done;w=n.next())w=w.value,!q.array.length||q.N(w,q.array[q.array.length-1])>0?q.array.push(w):g.ZL(q.array,w,q.N)}this.C=NaN;this.sync()}; g.d.oW=function(n){n.length>1E4&&g.TQ(new g.b4("Over 10k cueRanges removal occurs with a sample: ",n[0]));if(!this.zp()){var q=new Set(n);this.X=this.X.filter(function(w){return!q.has(w)}); t$T(this.N,q);this.sync()}}; g.d.lF=function(n,q){if(!this.zp()){var w=this.yJ().find(function(X){return X.id===q&&X.namespace===n}); w&&this.oW([w])}}; g.d.w9=function(n,q){var w=(isNaN(this.C)?a36(this):this.C)-q;q=this.yJ().filter(function(X){return X.namespace===n&&X.endthis.N,R=g.Z(w,8)&&g.Z(w,16),c=this.Eq.nO().isBackground()||w.isSuspended();Zh(this,this.oH,R&&!c,P,"qoe.slowseek",function(){},"timeout"); var k=isFinite(this.N);k=R&&k&&Q6z(q,this.N);var r=!X||Math.abs(X-this.N)>10,e=this.NP.Z("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),f=X===0&&this.X&&[11,10].includes(this.X);Zh(this,this.je,k&&r&&!c&&(!e||!f),P,"qoe.slowseek",function(){q.seekTo(n.N)},"set_cmt"); r=k&&KT(q.Qb(),this.N);var O=this.Eq.loader;k=!O||O.Vx();var H=function(){q.seekTo(n.N+.001)}; Zh(this,this.Tp,r&&k&&!c,P,"qoe.slowseek",H,"jiggle_cmt");k=function(){return n.Eq.Lx()}; Zh(this,this.D0,r&&!c,P,"qoe.slowseek",k,"new_elem");f=mE(w);r=w.isBuffering();var U=q.Qb(),t=Yw(U,X),V=t>=0&&U.end(t)>X+5,T=f&&r&&V;e=this.Eq.getVideoData();Zh(this,this.n5,X<.002&&this.N<.002&&R&&g.jg(this.NP)&&g.Pa(e)&&!c,P,"qoe.slowseek",k,"slow_seek_shorts");Zh(this,this.L,e.FQ()&&R&&!c&&!e.vW,P,"qoe.slowseek",k,"slow_seek_gapless_shorts");Zh(this,this.qP,T&&!c,f&&!r,"qoe.longrebuffer",H,"jiggle_cmt");Zh(this,this.PW,T&&!c,f&&!r,"qoe.longrebuffer",k,"new_elem_nnr");if(O){var x=O.getCurrentTime(); R=q.r9();R=G3s(R,x);R=!O.isSeeking()&&X===R;Zh(this,this.Me,f&&r&&R&&!c,f&&!r&&!R,"qoe.longrebuffer",function(){q.seekTo(x)},"seek_to_loader")}R={}; H=Yw(U,Math.max(X-3.5,0));T=H>=0&&X>U.end(H)-1.1;var M=H>=0&&H+1=0&&T&&M<11;R.close2edge=T;R.gapsize=M;R.buflen=U.length;this.X&&(R.seekSour=this.X);Zh(this,this.vW,f&&r&&!c,f&&!r,"qoe.longrebuffer",function(){},"timeout",R); R=w.isSuspended();R=this.Eq.In()&&!R;Zh(this,this.G,R,!R,"qoe.start15s",function(){n.Eq.GG("ad")},"ads_preroll_timeout"); R=this.NP.experiments.BW("html5_use_playback_rate_in_skip_slow_ad")?this.Eq.getPlaybackRate()*1E3:1E3;t=X-this.W5;Zh(this,this.IH,g.Pa(e)&&O,f&&!r,"qoe.longrebuffer",function(){n.Eq.XP()},"reset_media_source"); Zh(this,this.Ff,g.Pa(e)&&O,f&&!r,"qoe.longrebuffer",k,"reset_media_element");this.W===0&&(this.D=X);O=r&&this.N===0&&X>1&&X===this.D;Zh(this,this.HW,g.Pa(e)&&O,f&&!r,"qoe.slowseek",function(){q.seekTo(0)},"reseek_after_time_jump"); c=w.isOrWillBePlaying()&&!c;V=this.Eq.kJ()-X<6&&!V&&this.Eq.I8();Zh(this,this.V,e.FQ()&&c&&r&&V,f&&!r,"qoe.longrebuffer",function(){n.Eq.Lx(!1,!0)},"handoff_end_long_buffer_reload"); c=this.X===104||this.Eq.hN;w=ap(e)&&e.isAd()&&!e.vW&&c&&(r||g.Z(w,8)&&g.Z(w,16));Zh(this,this.RH,w,P,"qoe.start15s",k,"gapless_ad_slow_start");this.W=X;this.K.start()}}; Q7.prototype.Az=function(n,q,w){q=this.RP(q);q.wn=w;q.wdup=this.C[n]?"1":"0";this.Eq.Az(new g.kw(n,q));this.C[n]=!0}; Q7.prototype.RP=function(n){n=Object.assign(this.Eq.RP(!0),n.RP());this.N&&(n.stt=this.N.toFixed(3));this.Eq.getVideoData().isLivePlayback&&(n.ct=this.Eq.getCurrentTime().toFixed(3),n.to=this.Eq.Zj().toFixed(3));delete n.uga;delete n.euri;delete n.referrer;delete n.fexp;delete n.vm;return n}; BC.prototype.reset=function(){this.N=this.X=this.C=this.startTimestamp=0;this.W=!1}; BC.prototype.test=function(n){if(!this.K||this.X)return!1;if(!n)return this.reset(),!1;n=(0,g.m$)();if(!this.startTimestamp)this.startTimestamp=n,this.C=0;else if(this.C>=this.K)return this.X=n,!0;this.C+=1;return!1}; BC.prototype.RP=function(){var n={},q=(0,g.m$)();this.startTimestamp&&(n.wsd=(q-this.startTimestamp).toFixed());this.X&&(n.wtd=(q-this.X).toFixed());this.N&&(n.wssd=(q-this.N).toFixed());return n};g.m(YT3,g.A);g.d=YT3.prototype;g.d.setMediaElement=function(n){(this.mediaElement=n)?(this.mediaElement&&(this.K||this.C||!this.mediaElement.E$()||this.seekTo(.01,{zk:"seektimeline_setupMediaElement"})),JJ(this)):WC(this)}; g.d.getCurrentTime=function(n){n=n===void 0?!1:n;if(z5(this.Eq)){if(this.Z("html5_use_centralized_player_time")&&!n&&!isNaN(this.D))return this.D;if(!isNaN(this.X))return this.X}else{if(this.Z("html5_use_centralized_player_time")&&!n&&!isNaN(this.D)&&isFinite(this.D))return this.D;if(!isNaN(this.X)&&isFinite(this.X))return this.X}return this.mediaElement&&Phy(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0}; g.d.uj=function(){return this.RH}; g.d.v_=function(){return this.getCurrentTime()-this.Zj()}; g.d.Jx=function(){return this.N?this.N.Jx():Infinity}; g.d.isAtLiveHead=function(n){if(!this.N)return!1;n===void 0&&(n=this.getCurrentTime());return Kw(this.N,n)}; g.d.CX=function(){return!!this.N&&this.N.CX()}; g.d.seekTo=function(n,q){var w=q===void 0?{}:q;q=w.Il===void 0?!1:w.Il;var X=w.cY===void 0?0:w.cY;var P=w.Yf===void 0?!1:w.Yf;var R=w.vY===void 0?0:w.vY;var c=w.zk===void 0?"":w.zk;var k=w.seekSource===void 0?void 0:w.seekSource;var r=w.z4===void 0?!1:w.z4;var e=w.SH===void 0?!1:w.SH;w=w.o$===void 0?!1:w.o$;r&&(n+=this.Zj());Fl(this.videoData)&&k===29&&(this.RH=void 0);r=n=this.Ri())||!g.BD(this.videoData),V||(T={st:T,mst:this.Ri()},this.N&&this.Z("html5_high_res_seek_logging")&&(T.ht=this.N.Jx(),T.adft=l3u(this.N)),this.Eq.p5("seeknotallowed",T)),T=V));if(!T)return this.W&&(this.W=null,q0T(this)),g.pE(this.getCurrentTime());T=.005;e&&this.Z("html5_sabr_seek_no_shift_tolerance")&&(T=0);if(Math.abs(n-this.X)<=T&&this.HW)return this.K;c&&(T=n,(this.NP.uL()||this.Z("html5_log_seek_reasons"))&& this.Eq.p5("seekreason",{reason:c,tgt:T}));k&&(this.qP.X=k);this.HW&&WC(this);this.K||(this.K=new k8);n&&!isFinite(n)&&B$s(this,!1);(c=w||r)||(c=n,c=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.N&&!(this.mediaElement&&this.mediaElement.a6()>0&&jk(this.mediaElement)>0)||xI(this.videoData)&&this.oi()===this.Ri(!1)?0:isFinite(c)||!xI(this.videoData)));c||(n=nM(this,n,P));n&&!isFinite(n)&&B$s(this,!1);this.Z("html5_use_centralized_player_time")?this.D=n:this.X=this.C=n;this.IH= R;this.G=0;this.N&&(P=this.N,R=n,GLO(P,R,!1),CBz(P,R));P=this.Eq;R=n;c={Il:q,seekSource:k};P.DC.C=R;w=P.DD;w.mediaTime=R;w.N=!0;c.Il&&P.Qr(c);c=R>P.videoData.endSeconds&&R>P.videoData.limitedPlaybackDurationInSeconds;P.hQ&&c&&isFinite(R)&&hpz(P);Rq.start&&hpz(this.Eq);return this.K}; g.d.Ri=function(n){if(!this.videoData.isLivePlayback)return this.Eq.videoData.Ri();var q;return Ha(this.videoData)&&((q=this.mediaElement)==null?0:q.isPaused())&&this.videoData.N?(n=this.getCurrentTime(),W6O(this.Py(n)*1E3)+n):this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&Fl(this.videoData)&&this.videoData.N?n?this.videoData.N.PW||0:this.videoData.N.qg||0:xI(this.videoData)&&this.videoData.PW&&this.videoData.N?this.videoData.N.Ri()+this.timestampOffset:this.videoData.C&&this.videoData.C.N? !n&&this.N?this.N.Jx():this.Eq.videoData.Ri()+this.timestampOffset:this.mediaElement?bb()?W6O(this.mediaElement.xB().getTime()):jk(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.d.oi=function(){if(this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&Fl(this.videoData)){var n;return((n=this.videoData.N)==null?void 0:n.h5)||0}n=this.videoData?this.videoData.oi()+this.timestampOffset:this.timestampOffset;if(Ha(this.videoData)&&this.videoData.N){var q,w=Number((q=this.videoData.progressBarStartPosition)==null?void 0:q.utcTimeMillis)/1E3;q=this.getCurrentTime();q=this.Py(q)-q;if(!isNaN(w)&&!isNaN(q))return Math.max(n,w-q)}return n}; g.d.WJ=function(){this.K||this.seekTo(this.C,{zk:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.d.S2=function(){return this.HW&&!isFinite(this.X)}; g.d.Xf=function(){Qqh(this,null);this.qP.dispose();g.A.prototype.Xf.call(this)}; g.d.RP=function(){var n={};this.loader&&Object.assign(n,this.loader.RP());this.mediaElement&&Object.assign(n,this.mediaElement.RP());return n}; g.d.c7=function(n){this.timestampOffset=n}; g.d.getStreamTimeOffset=function(){return xI(this.videoData)?0:this.videoData.N?this.videoData.N.getStreamTimeOffset():0}; g.d.Zj=function(){return this.timestampOffset}; g.d.Py=function(n){return this.videoData&&this.videoData.N?this.videoData.N.Py(n-this.timestampOffset):NaN}; g.d.TF=function(){if(!this.mediaElement)return 0;if(Q8(this.videoData)){var n=this.mediaElement,q=n.Qb();n=(BS(q)&&n.getDuration()?q.end(q.length-1):0)+this.timestampOffset-this.oi();q=this.Ri()-this.oi();return Math.max(0,Math.min(1,n/q))}return this.mediaElement.TF()}; g.d.ZO=function(n){this.V&&(this.V.N=n)}; g.d.tD=function(n,q){this.Eq.p5("requestUtcSeek",{time:n});Fl(this.videoData)&&(this.RH=n);var w;(w=this.loader)==null||w.tD(n);q&&(this.WW=q)}; g.d.q5=function(n){Fl(this.videoData)&&(this.RH=void 0);if(this.WW)this.Eq.p5("utcSeekingFallback",{source:"streamTime",timeSeconds:this.WW}),this.Eq.seekTo(this.WW,{zk:"utcSeekingFallback_streamTime"}),this.WW=0;else{var q=this.getCurrentTime();isNaN(q)||(n=this.Py(q)-n,q-=n,this.Eq.p5("utcSeekingFallback",{source:"estimate",timeSeconds:q}),this.Eq.seekTo(q,{zk:"utcSeekingFallback_estimate"}))}}; g.d.dT=function(){this.WW=0}; g.d.Z=function(n){return this.NP&&this.NP.Z(n)};g.m(qt,g.A);qt.prototype.start=function(){this.X.start()}; qt.prototype.stop=function(){this.X.stop()}; qt.prototype.clear=function(){for(var n=g.a(this.N.values()),q=n.next();!q.done;q=n.next())q.value.clear()}; qt.prototype.sample=function(){for(var n=g.a(this.C),q=n.next();!q.done;q=n.next()){var w=g.a(q.value);q=w.next().value;w=w.next().value;this.N.has(q)||this.N.set(q,new jvh(phj.has(q)));this.N.get(q).update(w())}this.X.start()}; var phj=new Set(["networkactivity"]);jvh.prototype.update=function(n){this.X?(this.buffer.add(n-this.N||0),this.N=n):this.buffer.add(n)}; jvh.prototype.clear=function(){this.buffer.clear();this.N=0};Pm.prototype.BF=function(){return this.started}; Pm.prototype.start=function(){this.started=!0}; Pm.prototype.reset=function(){this.finished=this.started=!1};var iqO=!1;g.m(g.kc,g.np);g.d=g.kc.prototype;g.d.Xf=function(){this.logger.debug("dispose");g.ez(this.v$);uzs(this.d$);this.visibility.unsubscribe("visibilitystatechange",this.d$);I3x(this.dc);g.wM(this.dc);sT(this);g.DK.vO(this.Bu);this.Wh();this.KL=null;g.wM(this.videoData);g.wM(this.Jh);g.wM(this.Nb);g.wM(this.EX);g.XP(this.XWT);this.hQ=null;g.np.prototype.Xf.call(this)}; g.d.cG=function(n,q,w,X,P){if(this.NP.Z("html5_log_ad_playback_docid")){var R=this.dc;if(R.qoe){R=R.qoe;var c=this.NP.qP||"yt";g.RI(R,g.kW(R.provider),"ad_playback",[n,q,w,P,c])}}else this.dc.cG(n,q,w);this.Z("html5_log_media_perf_info")&&this.p5("adloudness",{ld:X.toFixed(3),cpn:n})}; g.d.OP=function(){var n;return(n=this.loader)==null?void 0:n.OP()}; g.d.eA=function(){var n;return(n=this.loader)==null?void 0:n.eA()}; g.d.IG=function(){var n;return(n=this.loader)==null?void 0:n.IG()}; g.d.uG=function(){var n;return(n=this.loader)==null?void 0:n.uG()}; g.d.XJ=function(){return this.videoData.XJ()}; g.d.y5=function(){return this.Z("html5_not_reset_media_source")&&!this.XJ()&&!this.videoData.isLivePlayback&&g.Pa(this.videoData)&&!this.NP.supportsGaplessShorts()}; g.d.dB=function(){this.videoData.G&&(this.videoData.s_=this.videoData.s_||this.Tk.Yh().OP(),this.videoData.iA=this.videoData.iA||this.Tk.Yh().eA());if(ol6(this.videoData)||!OJ(this.videoData)){var n=this.videoData.errorDetail;this.pL(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),n,n,this.videoData.F0||void 0)}this.Z("html5_generate_content_po_token")&&this.Bm();this.Z("html5_enable_d6de4")&&this.uu()}; g.d.getVideoData=function(){return this.videoData}; g.d.B=function(){return this.NP}; g.d.lG=function(){return this.YJ.lG(this.KL)}; g.d.nO=function(){return this.visibility}; g.d.dG=function(){return this.mediaElement&&this.mediaElement.ws()?this.mediaElement.WQ():null}; g.d.Ii=function(){return this.mediaElement}; g.d.PH=function(){if(this.Z("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.B().D&&this.B().houseBrandUserStatus&&this.p5("hbut",{status:this.B().houseBrandUserStatus},!0);if(this.videoData.YH())return!0;this.pL("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.d.K8=function(n){(n=n===void 0?!1:n)||XmO(this.dc);this.oE=n;!this.PH()||this.f8.BF()?g.jg(this.NP)&&this.videoData.isLivePlayback&&this.f8.BF()&&!this.f8.finished&&!this.oE&&this.tR():(this.f8.start(),n=this.dc,g.kW(n.provider),n.qoe&&zgu(n.qoe),this.tR())}; g.d.tR=function(){if(this.videoData.isLoaded()){var n=this.Jh;g.Jv(n.aH.experiments,"html5_player_min_build_cl")>0&&g.Jv(n.aH.experiments,"html5_player_min_build_cl")>781308173&&wCO(n,"oldplayer");Lb6(this)}else this.videoData.zT||this.videoData.X0?this.oE&&g.jg(this.NP)&&this.videoData.isLivePlayback||(this.videoData.zT?aTu(this.videoData):(n=this.dc,n.qoe&&(n=n.qoe,jf(n,"protected"),n.provider.videoData.K?n.q8():n.provider.videoData.subscribe("dataloaded",n.q8,n)),tMY(this.videoData))):!this.videoData.loading&& this.iD&&FbT(this)}; g.d.Pn=function(n){this.FR=n;this.loader&&(YJT(this.loader,new g.Oy(n)),this.p5("sdai",{sdsstm:1}))}; g.d.r5=function(n,q,w){var X;(X=this.loader)==null||X.r5(n,q,w)}; g.d.Q2=P0(8);g.d.isFullscreen=function(){return this.visibility.isFullscreen()}; g.d.isBackground=function(){return this.visibility.isBackground()}; g.d.mM=function(){var n=this;this.logger.debug("Updating for format change");r$(this).then(function(){return Iq(n)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.d.GJ=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.K8();this.PH()&&!g.Z(this.playerState,128)&&(this.HG.BF()||(this.HG.start(),this.videoData.PO?this.NU(UG(this.playerState,4)):this.NU(UG(UG(this.playerState,8),1))),$e3(this))}; g.d.R1=function(){return this.f8.finished}; g.d.sendAbandonmentPing=function(){g.Z(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.UO(!0),I3x(this.dc),g.wM(this.dc),g.DK.vO(this.Bu))}; g.d.Kf=function(n,q){n=n===void 0?!0:n;(q===void 0||q)&&this.mediaElement&&this.mediaElement.pause();this.NU(n?new g.OG(14):new g.OG)}; g.d.Yu=function(){this.dc.fN()}; g.d.pL=function(n,q,w,X,P,R){this.logger.debug(function(){return"set player error: ec="+n+", detail="+P}); var c,k;g.sl(Emz,w)?c=w:w?k=w:c="GENERIC_WITHOUT_LINK";X=(X||"")+(";a6s."+uk());if(n==="auth"||n==="drm.auth"||n==="heartbeat.stop")w&&(X+=";r."+w.replaceAll(" ","_")),R&&(X+="sr."+R.replaceAll(" ","_"));q={errorCode:n,errorDetail:P,errorMessage:k||g.zd[c]||"",xU:c,F0:R||"",kG:X,FE:q,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=n;j$(this,"dataloaderror");this.NU(Hc(this.playerState,128,q));g.DK.vO(this.Bu);sT(this);this.VK()}; g.d.GG=function(n){this.rD=this.rD.filter(function(q){return n!==q}); this.logger.debug(function(){return"set preroll ready for "+n}); this.HG.BF()&&$e3(this)}; g.d.eT=function(){var n;(n=!!this.rD.length)||(n=this.M9.N.array[0],n=!!n&&n.start<=-0x8000000000000);return n}; g.d.CX=function(){return this.DC.CX()}; g.d.isPlaying=function(){return this.playerState.isPlaying()}; g.d.IE=function(){return this.playerState.IE()&&this.videoData.PO}; g.d.getPlayerState=function(){return this.playerState}; g.d.F2=function(n){var q;(q=this.loader)==null||q.F2(n)}; g.d.rB=function(n){var q;(q=this.loader)==null||q.rB(n)}; g.d.getPlayerType=function(){return this.playerType}; g.d.getPreferredQuality=function(){if(this.KL){var n=this.KL;n=n.videoData.ZV.compose(n.videoData.kB);n=VQ(n)}else n="auto";return n}; g.d.SL=P0(16);g.d.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.d.setMediaElement=function(n){this.logger.debug("set media element");if(this.mediaElement&&n.WQ()===this.mediaElement.WQ()&&(n.isView()||this.mediaElement.isView())){if(n.isView()||!this.mediaElement.isView())this.al(),this.mediaElement=n,this.mediaElement.Eq=this,B43(this),this.DC.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Wh();if(!this.playerState.isError()){var q=tY(this.playerState,512);g.Z(q,8)&&!g.Z(q,2)&&(q=UG(q,1));n.isView()&&(q=tY(q,64));this.NU(q)}this.mediaElement= n;this.mediaElement.Eq=this;!g.jg(this.NP)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);B43(this);this.DC.setMediaElement(this.mediaElement);this.Z("html5_prewarm_media_source")&&!this.Jh.zD()&&Kgs(this.mediaElement)}}; g.d.Wh=function(n,q,w){n=n===void 0?!1:n;q=q===void 0?!1:q;w=w===void 0?!1:w;this.logger.debug("remove media element");if(this.mediaElement){var X=this.getCurrentTime();X>0&&(this.DC.C=X);this.DC.setMediaElement(null);!n&&this.y5()?AT0(this):this.dD(w);this.loader&&(NK(this.loader),iB(this,q));this.vu.stop();if(this.mediaElement&&(!this.HG.BF()&&!this.In()||this.playerState.isError()||g.Z(this.playerState,2)||this.NU(UG(this.playerState,512)),this.mediaElement)){this.al();if(n||!this.mediaElement.isView())this.JK.Ul("mesv_s"), this.mediaElement.stopVideo(),Hm(this);this.mediaElement=this.mediaElement.Eq=null}}}; g.d.playVideo=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;var w=this,X,P,R,c,k,r,e;return g.b(function(f){if(f.X==1){w.logger.debug("start play video");var O=window.google_image_requests;O&&O.length>10&&(window.google_image_requests=O.slice(-10));if(g.Z(w.playerState,128))return f.return();if(w.Jh.LN())return w.publish("signatureexpired"),f.return();w.mediaElement&&XmO(w.dc);w.GJ();(g.Z(w.playerState,64)||n)&&w.NU(UG(w.playerState,8));return w.HG.finished&&w.mediaElement?w.KL||!w.mI?f.f5(2): g.l(f,w.mI,3):f.return()}if(f.X!=2&&g.Z(w.playerState,128))return f.return();if(!w.videoData.C)return w.videoData.isLivePlayback&&!g.UX(w.NP.K,!0)?(X="html5.unsupportedlive",P=2):(X=w.videoData.XJ()?"fmt.unplayable":"fmt.noneavailable",P=1),g.TQ(Error("selectableFormats")),R=w.Z("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",w.pL(X,P,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",R),f.return();if(w.xw()&&w.videoData.C.N)return w.logger.debug("rebuild playbackData for airplay"), f.return(r$(w));if(z5(w))O=w.DC,Mj(O.videoData)&&!O.isAtLiveHead(O.getCurrentTime())&&O.CX()&&O.Eq.seekTo(Infinity,{zk:"seektimeline_peggedToLive",seekSource:34});else if(Mj(w.videoData)&&(c=w.getCurrentTime()c;if(!k||!c){R&&k&&(X=Math.max(X,R));var r;R=rJT(q,(r=P.N)==null?void 0:r.videoInfos);r=q.Eq.getPlaybackRate();r>1&&R&&(r=z3O(q.NP.K,P.N.videoInfos,r),n.N!==0&&r< n.N&&q.Eq.setPlaybackRate(1));var e,f;n=((e=P.videoData.X)==null?void 0:(f=e.video)==null?void 0:f.qualityOrdinal)||0;g.Fo("yt-player-quality",{quality:X,previousQuality:n},31104E3);q.NP.schedule.policy.W=rn()>=480;if(q.Z("html5_exponential_memory_for_sticky")){e=q.NP.k6;f=1;var O=O===void 0?!1:O;L_s(e,"sticky-lifetime");e.values["sticky-lifetime"]&&e.Q9["sticky-lifetime"]||(e.values["sticky-lifetime"]=0,e.Q9["sticky-lifetime"]=0);O&&Ya(e,"sticky-lifetime")>.0625&&(f=e.Q9["sticky-lifetime"]*2);e.values["sticky-lifetime"]+= 1*Math.pow(2,e.N/f);e.Q9["sticky-lifetime"]=f;e.W.start()}if(q.Z("html5_perf_cap_override_sticky")){O=q.C;e=q.Z("html5_perserve_av1_perf_cap");e=e===void 0?!1:e;if(e===void 0?0:e){f=si();n=g.a(Object.keys(f));for(q=n.next();!q.done;q=n.next())q=q.value,q.indexOf("1")!==0&&delete f[q];g.Fo("yt-player-performance-cap",f,2592E3)}else g.vz("yt-player-performance-cap");WkO(e);if(e){e=g.a(Zv.keys());for(f=e.next();!f.done;f=e.next())f=f.value,f.startsWith("1")||Zv.delete(f);e=g.a(T5.values());for(f=e.next();!f.done;f= e.next())f=f.value,f.startsWith("1")||T5.delete(f);e=g.a(O.keys());for(f=e.next();!f.done;f=e.next())f=f.value,f.startsWith("1")||O.delete(f)}else Zv.clear(),T5.clear(),O.clear()}}}this.loader&&(O=this.loader,w=w||"",O.policy.N?q9(O.W.N,w):q9(O.N.K,w));this.yy()}; g.d.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.N?VQ(this.videoData.ZV):a$[rn()]}; g.d.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.d.setUserAudio51Preference=function(n,q){this.getUserAudio51Preference()!==n&&(this.p5("toggle51",{pref:n}),g.Fo("yt-player-audio51",n,q?31536E3:2592E3),this.mM())}; g.d.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.d.setProximaLatencyPreference=function(n){var q=this.getProximaLatencyPreference();this.p5("proxima",{pref:n});g.Fo("yt-player-proxima-pref",n,31536E3);q!==n&&(n=this.DC,n.Ne=!0,n.Eq.seekTo(Infinity,{zk:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.d.getProximaLatencyPreference=function(){var n;return(n=jZ())!=null?n:0}; g.d.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.d.Bm=function(){this.videoData.videoId?this.Tk.Bm(this.videoData):this.p5("povid",{})}; g.d.uu=function(){this.videoData.videoId?this.Tk.uu(this.videoData):this.p5("piavid",{})}; g.d.yy=function(){if(!this.zp()&&!g.Z(this.playerState,128)&&this.videoData.C){if(this.videoData.C.N)cm(this);else{var n=OT(this),q=this.videoData;a:{var w=this.videoData.KG;if(n.N){for(var X=g.a(w),P=X.next();!P.done;P=X.next()){P=P.value;var R=P.getInfo(),c=g.gq[R.video.quality];if((!n.C||R.video.quality!=="auto")&&c<=n.N){w=P;break a}}w=w[w.length-1]}else w=w[0]}q.oH=w;lDs(this,n.reason,JTs(this,this.videoData.oH))}if(this.Z("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.DC.L= !1,this.playVideo()}}; g.d.zR=function(n,q){if(this.zp()||g.Z(this.playerState,128))return!1;var w,X=!((w=this.videoData.C)==null||!w.N);w=X&&q?this.getCurrentTime()-this.Zj():NaN;if(this.NP.experiments.BW("html5_record_audio_format_intent")){var P=this.dc;if(P.qoe){P=P.qoe;var R=[n.Va.id,isNaN(w)?"m":"t"];g.RI(P,g.kW(P.provider),"afi",R)}}if(X)return q&&(X=JSx(this.DC),this.p5("aswh",{id:n.id,xtags:n.xtags,bh:X.toFixed(3)})),this.loader.setAudioTrack(n,w,q),!0;if(Chm(this)){a:{q=this.mediaElement.audioTracks();for(X=0;X< q.length;++X)if(w=q[X],w.label===n.Va.getName()){if(w.enabled){q=!1;break a}q=w.enabled=!0;break a}q=void 0}q&&this.p5("hlsaudio",{id:n.id})}else{a:if(q=this.videoData,q.W&&!Dk(q.W)||n===q.Th||!q.KG||q.KG.length<=0)q=!1;else{X=g.a(q.KG);for(w=X.next();!w.done;w=X.next()){w=w.value;if(!(w instanceof Ly)){q=!1;break a}P=n.Va.getId();w.X&&(quy(w.X,P),w.wc=null)}q.Th=n;q=!0}q&&Iq(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.p5("hlsaudio",{id:n.id}))}return!0}; g.d.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.d.getAudioTrack=function(){if(Chm(this)){var n=oG6(this);if(n)return n}return this.videoData.getAudioTrack()}; g.d.u9=function(){return this.videoData.W}; g.d.Cf=function(){if(this.videoData.Z("html5_trigger_loader_when_idle_network")&&!this.videoData.T9()&&Fl(this.videoData)){var n;(n=this.loader)!=null&&n.Wy()}}; g.d.Ti=function(){if(ap(this.videoData)&&this.videoData.Z("html5_gapless_append_early")){var n;(n=this.loader)!=null&&n.Wy()}}; g.d.onPlayerRequestSent=function(n){this.Tk.onPlayerRequestSent(n)}; g.d.cK=function(n){n=n===void 0?!1:n;if(this.loader){var q=this.loader,w=q.cK;var X=this.videoData;X=X.Z("html5_ssdai_use_post_for_media")&&X.enableServerStitchedDai?!1:xI(X)&&X.Ut&&!X.isAd();w.call(q,X,n)}}; g.d.dD=function(n){n=n===void 0?!1:n;this.K5&&(this.logger.debug("remove media source"),YD0(this.K5),this.cK(n),this.K5.dispose(),this.K5=null)}; g.d.TY=function(){return this.K5}; g.d.TJ=function(n,q,w,X){function P(c){try{uM0(R,c,q,w)}catch(k){g.TQ(k),c={msi:"1",ename:k&&typeof k==="object"&&"name"in k?String(k.name):void 0},R.Z("html5_log_fmt_unplaybable_trigger")&&(c.trg="setmediasrc"),R.handleError(new g.kw("fmt.unplayable",c,1))}} var R=this;q=q===void 0?!1:q;w=w===void 0?!1:w;Kb6(this,X===void 0?!1:X);this.K5=n;this.y5()&&cc(this.K5)==="open"?P(this.K5):EYm(this.K5,P)}; g.d.GU=function(n){this.logger.debug("onNeedKeyInfo");this.Lr.set(n.initData,n);this.oS&&(this.oS.GU(n),this.Z("html5_eme_loader_sync")||this.Lr.remove(n.initData))}; g.d.Jt=function(n){this.videoData.N$=g.gn("auto",n,!1,"u");cm(this)}; g.d.ZO=function(n){var q=n.reason,w=n.N.info,X=n.token,P=n.videoId,R=this.dc,c=this.videoData;if(w!==c.W){var k=!c.W;c.W=w;q!=="m"&&q!=="t"&&(q=k?"i":"a");var r=q==="m"||q==="t";this.NP.experiments.BW("html5_refactor_sabr_audio_format_selection_logging")?this.V7=new RUO(c,w,q,"",X,P):(q=new RUO(c,w,q,"",X),R.qoe&&(R=R.qoe,w=g.kW(R.provider),PRT(R,w,q)));this.publish("internalaudioformatchange",c,!k&&r)}this.DC.ZO(n.N.index)}; g.d.j0=function(n){this.publish("localmediachange",n)}; g.d.t5=function(n){n=n===void 0?{}:n;var q;(q=this.loader)==null||q.t5(this.NP,pZ(this.videoData),n)}; g.d.LN=function(){return this.Jh.LN()}; g.d.Ft=function(n){this.Az(new g.kw("staleconfig",{reason:n}))}; g.d.handleError=function(n){this.Jh.handleError(n)}; g.d.zD=function(){return this.Jh.zD()}; g.d.q5=function(n){this.DC.q5(n)}; g.d.Lx=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;var w=this,X,P,R;return g.b(function(c){if(c.X==1){w.loader&&w.loader.d9();w.loader&&w.loader.zp()&&sT(w);if(w.Z("html5_enable_vp9_fairplay")&&w.XJ()&&(X=w.videoData.N)!=null)for(var k in X.N)X.N.hasOwnProperty(k)&&(X.N[k].N=null,X.N[k].C=!1);w.NU(UG(w.playerState,2048));w.publish("newelementrequired");return n?g.l(c,r$(w),2):c.f5(2)}w.videoData.T9()&&((P=w.loader)==null?0:P.WW)&&!z5(w)&&((R=w.isAtLiveHead())&&Mj(w.videoData)?w.seekTo(Infinity, {zk:"videoPlayer_getNewElement"}):w.videoData.Tz&&w.loader&&(k=w.loader,k.uo.T9&&(k.uo.Tz||k.uo.W||k.uo.isPremiere?(k.seek(0,{zk:"loader_resetSqless"}),k.videoTrack.G=!0,k.audioTrack.G=!0,k.videoTrack.K=!0,k.audioTrack.K=!0):ul(k.uo)&&k$(k))));q&&w.seekTo(0,{seekSource:105});g.Z(w.playerState,8)&&w.playVideo();g.yy(c)})}; g.d.FZ=function(n){this.p5("hgte",{ne:+n});this.videoData.G=!1;n&&this.Lx();this.loader&&i0T(this.loader)}; g.d.J9=function(n){this.p5("newelem",{r:n});this.Lx()}; g.d.pauseVideo=function(n){n=n===void 0?!1:n;if((g.Z(this.playerState,64)||g.Z(this.playerState,2))&&!n)if(g.Z(this.playerState,8))this.NU(dd(this.playerState,4,8));else if(this.IE())Iq(this);else return;g.Z(this.playerState,128)||(n?this.NU(UG(this.playerState,256)):this.NU(dd(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.BD(this.videoData)&&this.loader&&iB(this,!1)}; g.d.stopVideo=function(){this.pauseVideo();this.loader&&(iB(this,!1),this.loader.Q5())}; g.d.VK=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;if(this.y5()&&q){var w;(w=this.mediaElement)==null||w.VK()}else{var X;(X=this.mediaElement)==null||X.stopVideo()}Hm(this);sT(this);g.Z(this.playerState,128)||(n?this.NU(tY(tY(UG(this.playerState,4),8),16)):this.NU(Hc(this.playerState)));this.videoData.videoId&&this.NP.n5.remove(this.videoData.videoId)}; g.d.seekTo=function(n,q){q=q===void 0?{}:q;this.logger.debug(function(){return"SeekTo "+n+", "+JSON.stringify(q)}); g.Z(this.playerState,2)&&Iq(this);q.IHg&&this.NU(UG(this.playerState,2048));q.seekSource!==58&&q.seekSource!==60||!this.Z("html5_update_vss_during_gapless_seeking")||R10(this.dc,q.seekSource);this.DC.seekTo(n,q);this.M9.sync()}; g.d.Qr=function(n){this.JK.W.X=(0,g.m$)();g.Z(this.playerState,32)||(this.NU(UG(this.playerState,32,n==null?void 0:n.seekSource)),g.Z(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.hU()}; g.d.D7=function(n){n=n==null?void 0:n.seekSource;g.Z(this.playerState,32)?(this.NU(dd(this.playerState,16,32,n)),this.publish("endseeking")):g.Z(this.playerState,2)||this.NU(UG(this.playerState,16,n));n=this.JK.W;var q=this.videoData,w=this.playerState.isPaused();if(q.clientPlaybackNonce&&!isNaN(n.N)){if(Math.random()<.01){w=w?"pbp":"pbs";var X={startTime:n.N};q.D&&(X.cttAuthInfo={token:q.D,videoId:q.videoId});V6("seek",X);g.a1({clientPlaybackNonce:q.clientPlaybackNonce},"seek");isNaN(n.X)||y6("pl_ss", n.X,"seek");y6(w,(0,g.m$)(),"seek")}n.reset()}}; g.d.IQ=function(n){this.D7(n)}; g.d.H7=function(){this.publish("SEEK_COMPLETE")}; g.d.Q0=function(n){var q=this.Tk,w=this.videoData.clientPlaybackNonce,X=this.playerType;if(n.scope===4){var P=n.type;if(P){var R=q.XF(),c=R.getVideoData().clientPlaybackNonce;X===1&&(c=w);if(X=P86(q,c)){if(w=X.getVideoData())n.writePolicy===2&&w.sabrContextUpdates.has(P)||(n.sendByDefault&&w.RH.add(P),w.sabrContextUpdates.set(P,n)),q.Z("html5_enable_t1_enf_on_sabr")&&(n=P===5,P=rvY(w.playerResponse),n?(n=P?1:0,w_(n,"m.p_",{}),ow("MBSTAT",n)):n=1,n===0&&q.Oq.Uq("onAbnormalityDetected"))}else R.p5("scuset", {ncpf:"1",ccpn:c,crcpn:w})}else g.TQ(Error("b/380308491: contextUpdateType is undefined"))}}; g.d.D1=function(){if(this.playerType===2)return this.Tk.D1("")}; g.d.getCurrentTime=function(n){return this.DC.getCurrentTime(n===void 0?!1:n)}; g.d.uj=function(){return this.DC.uj()}; g.d.v_=function(){return this.DC.v_()}; g.d.r6=function(){return this.v_()}; g.d.Jx=function(){return this.DC.Jx()}; g.d.getPlaylistSequenceForTime=function(n){return this.videoData.getPlaylistSequenceForTime(n-this.Zj())}; g.d.Jf=function(){var n=NaN;this.mediaElement&&(n=this.mediaElement.Jf());return n>=0?n:this.getCurrentTime()}; g.d.Py=function(){var n;return((n=this.videoData.N)==null?0:n.Py)?this.videoData.N.Py(this.getCurrentTime()-this.Zj()):this.mediaElement&&(n=this.mediaElement.xB())&&(n=n.getTime(),!isNaN(n))?n/1E3+this.getCurrentTime():NaN}; g.d.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Zj():this.Ri()?this.Ri():0}; g.d.r7=function(){var n=new sq3;if(this.loader){var q=this.NP.schedule,w=this.NP.uL();w=w===void 0?!1:w;n.Qz=q.vW;n.BE=q.Ff;n.bandwidthEstimate=bY(q);if(w){w=(q.V.gq()*1E3).toFixed();var X=(q.HW.gq()*1E3).toFixed(),P=CJ(q).toFixed(2),R=((q.G.gq()||0)*1E9).toFixed(2),c=q.C.gq().toFixed(0),k=q.Tp.gq().toFixed(0),r=q.L.percentile(.5).toFixed(2),e=q.L.percentile(.92).toFixed(2),f=q.L.percentile(.96).toFixed(2),O=q.L.percentile(.98).toFixed(2);q.N?q.N.reset():q.N=new $a;q.N.add(q.WW);q.N.add(q.interruptions.length); for(var H=0,U=q.interruptions.length-1;U>=0;U--){var t=q.interruptions[U];q.N.add(t-H);H=t}H=0;for(U=q.W.length-1;U>=0;U--){t=q.W[U];var V=t.stamp/36E5;q.N.add(V-H);H=V;q.N.add(t.net/1E3);q.N.add(t.max)}q=q.N.IY();n.N={ttr:w,ttm:X,d:P,st:R,bw:c,abw:k,v50:r,v92:e,v96:f,v98:O,"int":q}}AEs(this.loader,n)}else this.mediaElement&&(n.bR=sG(this.mediaElement));n.Qz=this.Qz;n.BE=this.BE;n.C=this.isAtLiveHead()&&this.isPlaying()?pbh(this):NaN;return n}; g.d.JY=function(n,q){this.BE+=n;this.Qz+=q}; g.d.TF=function(){return this.mediaElement?g.BD(this.videoData)?1:Q8(this.videoData)?this.isAtLiveHead()||this.CX()?1:this.DC.TF():this.mediaElement.TF():0}; g.d.Vj=function(){var n=this.L0,q=Xg(n,"bandwidth"),w=Xg(n,"bufferhealth"),X=Xg(n,"livelatency"),P=Xg(n,"networkactivity"),R=w$(n,"bandwidth"),c=w$(n,"bufferhealth"),k=w$(n,"livelatency");n=w$(n,"networkactivity");var r=this.K7(),e=r.droppedVideoFrames;r=r.totalVideoFrames;var f=this.getCurrentTime();if(this.oS){var O="IT/"+(this.oS.N.getInfo()+"/"+VQ(this.hm()));O+="/"+this.oS.getInfo()}else O="";var H=this.isGapless(),U=this.AS(),t=this.lQ(),V=g.fM(this),T=this.getPlayerState(),x=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var M=0;var h="";if(this.FR){if(this.FR.lU){h="D,";break a}M=this.FR.vH;h=this.FR.i7.substring(0,4)}M>0?(M="AD"+M+", ",h&&(M+=h+", "),h=M):h=""}return{DR:R,Lv:c,currentTime:f,RU:O,droppedVideoFrames:e,isGapless:H,AS:U,l3:t,CK:q,fK:w,wi:X,cz:P,T_:k,P3:n,Ea:V,playerState:T,C2:x,VF:h,totalVideoFrames:r}}; g.d.RP=function(n){var q={};if(n===void 0?0:n){Object.assign(q,this.dc.RP());this.mediaElement&&(Object.assign(q,this.mediaElement.RP()),n=this.K7(),q.dvf=n.droppedVideoFrames,q.tvf=n.totalVideoFrames);this.loader&&Object.assign(q,this.loader.RP());this.oS&&(q.drm=JSON.stringify(this.oS.RP()));q.state=this.playerState.state.toString(16);g.Z(this.playerState,128)&&(q.debug_error=JSON.stringify(this.playerState.er));this.eT()&&(q.prerolls=this.rD.join(","));this.videoData.JU&&(q.ismb=this.videoData.JU); this.videoData.latencyClass!=="UNKNOWN"&&(q.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(q.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)q.is_mosaic=1;this.videoData.cotn&&(q.is_offline=1,q.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(q.playerResponseCpn=this.videoData.playerResponseCpn);this.Tk.isOrchestrationLeader()&&(q.leader=1);this.videoData.isLivePlayback&& (this.videoData.N&&A9(this.videoData.N)&&(q.segduration=A9(this.videoData.N)),n=this.DC,q.lat=n.V?vcz(n.V.W):0,q.liveutcstart=this.videoData.liveUtcStartSeconds);q.relative_loudness=this.videoData.iS.toFixed(3);if(n=g.fM(this))q.optimal_format=n.video.qualityLabel;q.user_qual=rn();q.release_version=I[53]}q.debug_videoId=this.videoData.videoId;return q}; g.d.addCueRange=function(n){this.yz([n])}; g.d.removeCueRange=function(n){this.M9.oW([n])}; g.d.KS=function(){this.M9.sync()}; g.d.w9=function(n,q){return this.M9.w9(n,q)}; g.d.yz=function(n,q){this.M9.Zf(n,q)}; g.d.qa=function(n){this.M9.oW(n)}; g.d.yJ=function(){return this.M9.yJ()||[]}; g.d.Un=function(){return this.Zg}; g.d.xw=function(){return this.visibility.xw()}; g.d.aG=function(){this.mediaElement&&this.mediaElement.aG()}; g.d.x75=function(){j$(this)}; g.d.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.d.al=function(){g.Vs(this.Gb)}; g.d.Xbf=function(){this.hU();this.publish("onLoadProgress",this.TF())}; g.d.mJ=function(n){var q=n.target.Nr();if(this.mediaElement&&this.mediaElement.Nr()&&this.mediaElement.Nr()===q){XYY(this,n.type);switch(n.type){case "error":var w=fK(this.mediaElement)||"",X=this.mediaElement.N9();if(w==="capability.changed"){this.Z("html5_restart_on_capability_change")?(this.p5("capchg",{msg:X}),this.Lx(!0)):r$(this);return}if(this.mediaElement.hasError()&&(X={msg:X},this.Z("html5_log_fmt_unplaybable_trigger")&&(X.trg="elementevt"),WLx(this.Jh,w,X)))return;if(this.isBackground()&& this.mediaElement.Kx()===4){this.VK();e$(this,"unplayable");return}break;case "durationchange":w=this.mediaElement.getDuration();isFinite(w)&&(!this.K5||w>0)&&w!==1&&this.Rg(w);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());dtm(this.M9);this.dc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":Rws(this);this.publish("onLoadedMetadata");Zqz(this);w=this.Py();this.videoData.t_&&(this.videoData.t_=w);break;case "loadstart":Zqz(this); break;case "progress":case "suspend":this.GV.EQ();break;case "playing":this.JK.Ul("plev");this.wQ&&!z5(this)&&(this.wQ=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{zk:"videoplayer_onPlaying"})));break;case "timeupdate":w=this.mediaElement&&!this.mediaElement.getCurrentTime();X=this.mediaElement&&this.mediaElement.a6()===0;if(w&&(!this.hw||X))return;this.hw=this.hw||!!this.mediaElement.getCurrentTime();QvO(this);this.hU();if(!this.mediaElement||this.mediaElement.Nr()!== q)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.r9().length>0&&this.mediaElement.Qb().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.Z("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.a6()>2||!this.mediaElement.isSeeking()&&KT(this.mediaElement.Qb(),this.mediaElement.getCurrentTime()))&&(w=this.mediaElement.RP(),w.bh=sG(this.mediaElement).toFixed(3), this.p5("uwe",w));break;case "resize":Rws(this);this.videoData.X&&this.videoData.X.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.ke&&g.Z(this.playerState,8)&&!g.Z(this.playerState,1024)&&this.getCurrentTime()===0&&g.fW){e$(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Nr()===q){IDY(this.DC,n);this.publish("videoelementevent",n);q=this.playerState;var P=this.DD,R=this.mediaElement;w=this.NP.experiments; X=this.videoData.clientPlaybackNonce;if(!g.Z(q,128)){var c=q.state;R=R?R:n.target;var k=R.getCurrentTime();if(!g.Z(q,64)||n.type!=="ended"&&n.type!=="pause"){var r=R.getDuration();r=R.isEnded()||k>1&&Math.abs(k-r)<1.1;var e=n.type==="pause"&&R.isEnded();k=n.type==="ended"||n.type==="waiting"||n.type==="timeupdate"&&!g.Z(q,4)&&!oI(P,k);if(e||r&&k)R.L$()>0&&R.Nr()&&(c=14);else switch(n.type){case "error":fK(R)&&(c|=128);break;case "pause":g.Z(q,256)?(c^=256)||(c=64):g.Z(q,32)||g.Z(q,2)||g.Z(q,4)||(c= 4,g.Z(q,1)&&g.Z(q,8)&&(c|=1));break;case "playing":k=c;c=(c|8)&-1093;k&4?(c|=1,ir(P,R,!0)):oI(P,R.getCurrentTime())&&(c&=-2);g.Z(q,1)&&ir(P,R)&&(c|=1);break;case "seeking":c|=16;g.Z(q,8)&&(c|=1);c&=-3;break;case "seeked":c&=-17;ir(P,R,!0);break;case "waiting":g.Z(q,2)||(c|=1);ir(P,R);break;case "timeupdate":k=g.Z(q,16),r=g.Z(q,4),(g.Z(q,8)||k)&&!r&&oI(P,R.getCurrentTime())&&(c=8),ir(P,R)&&(c|=1)}}P=c;c=null;P&128&&(c=n.target,R=fK(c),k=1,R?(R==="capability.changed"&&(k=2),r="GENERIC_WITHOUT_LINK", e=c.RP(),e.mediaElem="1",w.BW("html5_log_fmt_unplaybable_trigger")&&(e.trg="melem"),/AUDIO_RENDERER/.test(c.N9())&&(r="HTML5_AUDIO_RENDERER_ERROR"),c={errorCode:R,errorMessage:g.zd[r]||"",xU:r,kG:In(e),FE:k,cpn:q.er?q.er.cpn:""}):c=null,c&&(c.cpn=X));q=Hc(q,P,c)}!g.Z(this.playerState,1)&&g.Z(q,1)&&wY0(this,"evt"+n.type);this.NU(q)}}}; g.d.f0n=function(n){n=n.N.availability==="available";n!==this.Zg&&(this.Zg=n,this.publish("airplayavailabilitychange"))}; g.d.H5o=function(){var n=(0,g.m$)(),q=this.mediaElement.xw();this.p5("airplay",{ia:q});!q&&!isNaN(this.oJ)&&n-this.oJ<2E3||(this.oJ=n,q!==this.xw()&&(n=this.visibility,n.N!==q&&(n.N=q,n.d$()),this.p5("airplay",{rbld:q}),this.mM()),this.publish("airplayactivechange"))}; g.d.Km=function(n){if(this.loader){var q=this.loader,w=q.C,X=q.getCurrentTime(),P=Date.now()-w.L;w.L=NaN;w.p5("sdai",{adfetchdone:n,d:P});n&&!isNaN(w.G)&&w.X!==3&&u7(w.loader,X,w.G,w.D);w.policy.X?w.K=NaN:w.W=NaN;Sb(w,4,w.X===3?"adfps":"adf");NK(q)}}; g.d.FT=function(){g.ez(this.v$);this.vu.stop();this.videoData.vW=!0;this.NP.h5=!0;this.NP.Me=0;var n=this.Jh;if(n.videoData.X){var q=n.aH.K,w=n.videoData.X.L5;q.W.has(w)&&(q.W.delete(w),q.X=!0)}n.N.stop();this.O1();g.Z(this.playerState,8)&&this.NU(tY(this.playerState,65));this.oE=!1;n=this.dc;n.N&&Syx(n.N);n.X&&(n=n.X,q=g.kW(n.provider),n.N<0&&(n.N=q,n.delay.start()),n.X=q,n.W=q);g.K9(this.Nb);this.publish("playbackstarted");(n=g.w0("yt.scheduler.instance.clearPriorityThreshold"))?n():Jh(0)}; g.d.O1=function(){var n=this.Tk.q7(),q={},w={};!pk("pbs",this.JK.timerName)&&s2.measure&&s2.getEntriesByName&&(s2.getEntriesByName("mark_nr")[0]?Ius("mark_nr"):Ius());n.videoId&&(q.videoId=n.videoId);n.clientPlaybackNonce&&!this.Z("web_player_early_cpn")&&(q.clientPlaybackNonce=n.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(w.isPausedOnLoad=!0);w.itag=n.X?Number(n.X.itag):-1;n.x5&&(w.preloadType=String(this.OJ?2:1));q.liveStreamMode=eQv[AH(n)];q.playerInfo=w;this.JK.infoGel(q); if(this.loader){n=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(n.C&&(q=window.performance.getEntriesByName(n.C),q.length&&(q=q[0],n.tick("vri",q.fetchStart),n.tick("vdns",q.domainLookupEnd),n.tick("vreq",q.requestStart),n.tick("vrc",q.responseEnd))),n.X&&(q=window.performance.getEntriesByName(n.X),q.length&&(q=q[0],n.tick("ari",q.fetchStart),n.tick("adns",q.domainLookupEnd),n.tick("areq",q.requestStart),n.tick("arc",q.responseEnd))));n=n.ticks;for(var X in n)n.hasOwnProperty(X)&& this.JK.tick(X,n[X])}}; g.d.hU=function(n){var q=this;n=n===void 0?!1:n;if(this.mediaElement&&this.videoData){z1O(this.DC,this.isPlaying());var w=this.getCurrentTime();!this.loader||g.Z(this.playerState,4)&&g.BD(this.videoData)||g.Z(this.playerState,32)&&Fl(this.videoData)||SJ0(this.loader,w);w>5&&(this.DC.C=w);var X=g.ZE();X?g.DK.vO(this.Bu):g.sU(this.Bu);var P=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!P||Ha(this.videoData))&&!g.Z(this.playerState,128)){var R=function(){if(q.mediaElement&&!g.Z(q.playerState, 128)){q.NP.uL()&&XYY(q,"pfx");var c=q.getCurrentTime();q.Z("html5_buffer_underrun_transition_fix")&&(c-=q.Zj());var k=sG(q.mediaElement),r=g.Z(q.playerState,8),e=oI(q.DD,c),f=J5T(q.DD,c,(0,g.m$)(),k);r&&e?q.NU(tY(q.playerState,1)):r&&f?(r=q.getDuration(),e=Mj(q.videoData),r&&Math.abs(r-c)<1.1?(q.p5("setended",{ct:c,bh:k,dur:r,live:e}),q.mediaElement.g4()?(q.logger.debug("seek to 0 because of looping"),q.seekTo(0,{zk:"videoplayer_loop",seekSource:37})):q.Kf()):(q.playerState.isBuffering()||wY0(q,"progress_fix"), q.NU(UG(q.playerState,1)))):(r&&!e&&!f&&c>0&&(r=(Date.now()-q.Pc)/1E3,e=q.getDuration(),c>e-1&&q.p5("misspg",{t:c.toFixed(2),d:e.toFixed(2),r:r.toFixed(2),bh:k.toFixed(2)})),q.playerState.isPaused()&&q.playerState.isBuffering()&&sG(q.mediaElement)>5&&q.NU(tY(q.playerState,1)));q.hU()}}; this.mediaElement.r9().length===0?this.Bu=X?g.DK.eG(R,100):g.rN(R,100):this.Bu=X?g.DK.eG(R,500):g.rN(R,500)}this.videoData.KV=w;!n&&this.isPlaying()&&zpO(this);dCs(this.YJ,this.KL,this.Ii(),this.isBackground())&&cm(this);this.publish("progresssync",n);P&&Ha(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.d.XY=function(){this.pL("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.d.lQ=function(){return this.dc.lQ()}; g.d.hW=function(){return this.loader?this.loader.hW():bY(this.NP.schedule,!0)}; g.d.NU=function(n){if(!g.gd(this.playerState,n)){this.logger.debug(function(){return"Setting state "+n.toString()}); var q=new g.cn(n,this.playerState);this.playerState=n;P2O(this);var w=!this.ao.length;this.ao.push(q);var X=this.mediaElement&&this.mediaElement.isSeeking();g.k0(q,1)&&this.loader&&fpO(this.loader);X=q.oldState.state===8&&!X;g.k0(q,1)&&X&&g.Z(this.playerState,8)&&!g.Z(this.playerState,64)&&this.loader&&(O0O(this.loader),this.mediaElement&&sG(this.mediaElement)>=5&&UCO(this.YJ,this.KL)&&cm(this));(X=g.Jv(this.NP.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.Z(n,1)&&(g.Z(n,8)||g.Z(n, 16))?this.gt.start(X):this.gt.stop();(I0(q,8)<0||g.k0(q,1024))&&this.vu.stop();!g.k0(q,8)||this.videoData.vW||g.Z(q.state,1024)||this.vu.start();g.Z(q.state,8)&&I0(q,16)<0&&!g.Z(q.state,32)&&!g.Z(q.state,2)&&this.playVideo();g.Z(q.state,2)&&Q8(this.videoData)&&(this.Rg(this.getCurrentTime()),this.hU(!0));g.k0(q,2)&&(this.UO(!0),this.NP.uL()&&this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&Fl(this.videoData)&&this.videoData.N&&(X={minst:""+this.videoData.N.h5,cminst:""+(this.videoData.N.oi()+ this.Zj()),maxst:""+this.videoData.N.qg,hts:""+this.videoData.N.PW,cmaxst:""+(this.videoData.N.Ri()+this.Zj())},this.p5("sabrSeekableBoundaries",X)));g.k0(q,128)&&this.VK();this.videoData.N&&this.videoData.isLivePlayback&&!this.t2&&(I0(q,8)<0?v80(this.videoData.N):g.k0(q,8)&&this.videoData.N.resume());ZMy(this.DC,q);cSu(this.dc,q);if(w&&!this.zp())try{for(var P=g.a(this.ao),R=P.next();!R.done;R=P.next()){var c=R.value;gcO(this.M9,c);this.publish("statechange",c)}}finally{this.ao.length=0}}}; g.d.v7=function(){this.JK.tick("qoes")}; g.d.WJ=function(){this.DC.WJ()}; g.d.YA=function(n,q,w,X){a:{var P=this.Jh;X=X===void 0?"LICENSE":X;w=w.substring(0,256);var R=rq(q);n==="drm.keyerror"&&this.oS&&this.oS.X.keys.length>1&&P.W<96&&(n="drm.sessionlimitexhausted",R=!1);var c=P.aH.experiments.BW("html5_retry_on_drm_unavailable"),k=P.aH.experiments.BW("html5_retry_on_drm_key_error"),r=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(c&&n==="drm.unavailable"||k&&n==="drm.keyerror"&&!w.match(r))P.Az("qoe.restart",{retryOnDrmError:1,e:n,detail:w}),P.Eq.Lx(!0);else{if(R)if(P.videoData.X&& P.videoData.X.video.isHdr())Peh(P,n);else{if(P.Eq.pL(n,q,X,w),Zsx(P,{detail:w}))break a}else P.Az(n,{detail:w});n==="drm.sessionlimitexhausted"&&(P.p5("retrydrm",{sessionLimitExhausted:1}),P.W++,qQy(P.Eq))}}}; g.d.qDi=function(){var n=this,q=g.Jv(this.NP.experiments,"html5_license_constraint_delay"),w=JV();q&&w?(q=new g.YF(function(){n.yy();j$(n)},q),g.K(this,q),q.start()):(this.yy(),j$(this))}; g.d.UW=function(n){this.publish("heartbeatparams",n)}; g.d.nX=function(n){this.p5("keystatuses",mKh(n));var q="auto",w=!1;this.videoData.X&&(q=this.videoData.X.video.quality,w=this.videoData.X.video.isHdr());a:{switch(q){case "highres":case "hd2880":q="UHD2";break;case "hd2160":case "hd1440":q="UHD1";break;case "hd1080":case "hd720":q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":q="SD";break;default:q="";break a}w&&(q+="HDR")}q=dp(n)?gp(n,q):n.W.includes(q);if(this.Z("html5_enable_vp9_fairplay")){if(w)if(n.G){var X;if((X= this.oS)==null?0:Pe(X.N))if((w=this.oS)==null)w=0;else{for(var P=X=void 0,R=g.a(w.X.values()),c=R.next();!c.done;c=R.next())c=c.value,X||(X=a06(c,"SD")),P||(P=a06(c,"AUDIO"));w.XQ({sd:X,audio:P});w=X==="output-restricted"||P==="output-restricted"}else w=!q;if(w){this.p5("drm",{dshdr:1});Peh(this.Jh);return}}else{this.videoData.BA||(this.videoData.BA=!0,this.p5("drm",{dphdr:1}),this.Lx(!0));return}var k;if((k=this.oS)==null?0:Pe(k.N))return}else if(k=n.G&&q,w&&!k){Peh(this.Jh);return}q||gp(n,"AUDIO")&& gp(n,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),n=mKh(n),this.MB?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.Z("html5_report_fatal_drm_restricted_error_killswitch")||this.pL("drm.keyerror",2,void 0,"info."+n)):(this.MB=!0,this.Az(new g.kw("qoe.restart",Object.assign({},{retrydrm:1},n))),cm(this),qQy(this)))}; g.d.PLl=function(){if(!this.videoData.vW&&this.mediaElement&&!this.isBackground()){var n="0";this.mediaElement.a6()>0&&sG(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.N&&(this.NU(UG(this.playerState,1)),wY0(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),n="1");P2O(this);var q=this.videoData.C;n={restartmsg:n,mfmt:!y8(this.videoData),mdrm:!(!(q&&q.videoInfos&&q.videoInfos.length&&q.videoInfos[0].nV)||this.oS),mfmtinfo:!this.videoData.X,prerolls:this.eT()?this.rD.join(","): "0"};if(this.oS){q=this.oS;if(q.X.size<=0){var w="ns;";q.L||(w+="nr;");q=w+="ql."+q.C.length}else q=mKh(q.X.values().next().value),q=In(q);n.drmp=q}var X;Object.assign(n,((X=this.loader)==null?void 0:X.RP())||{});var P;Object.assign(n,((P=this.mediaElement)==null?void 0:P.RP())||{});this.dc.Az("qoe.start15s",In(n));this.publish("loadsofttimeout")}}; g.d.Rg=function(n){this.videoData.lengthSeconds!==n&&(this.videoData.lengthSeconds=n,j$(this))}; g.d.UO=function(n,q){var w=this;n=n===void 0?!1:n;if(!this.iO)if(pk("att_s","player_att")||FK("att_s",void 0,"player_att"),this.Z("use_rta_for_player"))(function(){var P,R,c,k;return g.b(function(r){switch(r.X){case 1:if(!(P=n)){r.f5(2);break}return g.l(r,g.lum(),3);case 3:P=!r.N;case 2:if(P)return r.return();g.Vy(r,4);R=rSY(w.dc);if(!R)throw Error();c={};return g.l(r,g.hNO((c.cpn=w.videoData.clientPlaybackNonce,c.encryptedVideoId=w.videoData.videoId||"",c),3E4),6);case 6:k=r.N;if(w.iO)throw Error(); if(!k.challenge)throw g.TQ(Error("Not sending attestation ping; no attestation challenge string")),Error();w.iO=!0;var e=[k.challenge];k.error?e.push("r1c="+k.error):k.webResponse&&e.push("r1a="+k.webResponse);var f;((f=k.adblockReporting)==null?void 0:f.reportingStatus)!==void 0&&e.push("r6a="+k.adblockReporting.reportingStatus);var O;((O=k.adblockReporting)==null?void 0:O.broadSpectrumDetectionResult)!==void 0&&e.push("r6b="+k.adblockReporting.broadSpectrumDetectionResult);R(e.join("&"));FK("att_f", void 0,"player_att");g.FY(r,0);break;case 4:g.$u(r),FK("att_e",void 0,"player_att"),g.yy(r)}})})().then(function(){q==null||q()}); else{var X=new g.Yd6(this.videoData);if("c1a"in X.Jv&&!g.ZH.isInitialized()){FK("att_wb",void 0,"player_att");this.LC===2&&Math.random()<.01&&g.TQ(Error("Botguard not available after 2 attempts"));if(n)return;if(this.LC<5){g.K9(this.EX);this.LC++;return}}(X=g.KHz(X))?(FK("att_f",void 0,"player_att"),kLs(this.dc,X),this.iO=!0):FK("att_e",void 0,"player_att")}}; g.d.kJ=function(n){n=n===void 0?!1:n;return Mj(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.CX()||g.BD(this.videoData))?this.getCurrentTime():this.Ri(n)}; g.d.dH=function(){return this.oi()}; g.d.Ri=function(n){return this.DC.Ri(n===void 0?!1:n)}; g.d.oi=function(){return this.DC.oi()}; g.d.Zj=function(){return this.DC?this.DC.Zj():0}; g.d.getStreamTimeOffset=function(){return this.DC?this.DC.getStreamTimeOffset():0}; g.d.mX=function(){var n=0;this.NP.Z("web_player_ss_media_time_offset")&&(n=this.getStreamTimeOffset()===0?this.Zj():this.getStreamTimeOffset());return n}; g.d.setPlaybackRate=function(n){var q;this.playbackRate!==n&&rJT(this.YJ,(q=this.videoData.C)==null?void 0:q.videoInfos)&&(this.playbackRate=n,cm(this));this.playbackRate=n;this.mediaElement&&this.mediaElement.setPlaybackRate(n)}; g.d.getPlaybackRate=function(){return this.playbackRate}; g.d.getPlaybackQuality=function(){var n="unknown";if(this.videoData.X&&(n=this.videoData.X.video.quality,n==="auto"&&this.mediaElement)){var q=this.dG();q&&q.videoHeight>0&&(n=dq(q.videoWidth,q.videoHeight))}return n}; g.d.isHdr=function(){return!!(this.videoData.X&&this.videoData.X.video&&this.videoData.X.video.isHdr())}; g.d.sendVideoStatsEngageEvent=function(n,q){var w=this.dc;w.N?(w=xW(w.N,"engage"),w.vW=n,w.send(q)):q&&q()}; g.d.LD=function(n){return this.dc.LD(n)}; g.d.isAtLiveHead=function(n,q){q=q===void 0?!1:q;return Mj(this.videoData)&&(this.kX||q)?this.DC.isAtLiveHead(n):!1}; g.d.TH=function(){var n=this.Ri(),q=this.getCurrentTime(),w;(w=!Mj(this.videoData))||(w=this.DC,w=!(w.N&&w.N.C));return w||this.CX()||isNaN(n)||isNaN(q)?0:Math.max(0,n-q)}; g.d.KJ=function(n){(this.kX=n)||this.vu.stop();this.videoData.N&&(n?this.videoData.N.resume():v80(this.videoData.N));if(this.loader){var q=this.videoData.Z("html5_disable_preload_for_ssdai_with_preroll")&&this.In()&&this.videoData.isLivePlayback;n&&!q?this.loader.resume():iB(this,!0)}g.Z(this.playerState,2)||n?g.Z(this.playerState,512)&&n&&this.NU(tY(this.playerState,512)):this.NU(UG(this.playerState,512));q=this.dc;q.qoe&&(q=q.qoe,g.RI(q,g.kW(q.provider),"stream",[n?"A":"I"]))}; g.d.ZZ=function(n){this.dc.Az("player.exception",In({n:n.name,m:n.message}))}; g.d.Bh=P0(22);g.d.iX=P0(51);g.d.j$=function(n){this.dc.j$(n)}; g.d.y0=function(n){this.dc.y0(n)}; g.d.PM=function(n){this.dc.PM(n)}; g.d.gm=P0(28);g.d.Yw=P0(34);g.d.wS=function(n){this.dc.wS(n)}; g.d.L3=function(n,q,w,X){this.dc.L3(n,q,w,X)}; g.d.NF=function(){this.p5("hidden",{},!0)}; g.d.K7=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.d.Vx=function(){return this.loader?this.loader.Vx():!0}; g.d.setLoop=function(n){this.loop=n;this.mediaElement&&!g.jg(this.NP)&&this.mediaElement.setLoop(n)}; g.d.g4=function(){return this.mediaElement&&!g.jg(this.NP)?this.mediaElement.g4():this.loop}; g.d.c7=function(n){this.p5("timestamp",{o:n.toString()});this.DC.c7(n)}; g.d.jg=function(n){this.JK.tick(n)}; g.d.UT=function(n){return this.JK.UT(n)}; g.d.Ul=function(n){this.JK.Ul(n)}; g.d.p5=function(n,q,w){this.dc.p5(n,q,w===void 0?!1:w)}; g.d.CA=function(n,q,w){this.dc.p5(n,q,w===void 0?!1:w)}; g.d.Az=function(n){this.dc.Az(n.errorCode,In(n.details));n=n.errorCode;if(this.videoData.isLivePlayback&&(n==="qoe.longrebuffer"||n==="qoe.slowseek")||n==="qoe.restart"){n=this.loader?syx(this.loader.videoTrack):{};var q,w;this.p5("lasoe",Object.assign(this.loader?syx(this.loader.audioTrack):{},(q=this.K5)==null?void 0:(w=q.N)==null?void 0:w.RL()));var X,P;this.p5("lvsoe",Object.assign(n,(X=this.K5)==null?void 0:(P=X.X)==null?void 0:P.RL()))}}; g.d.rW=function(n,q,w){this.dc.rW(n,q,w)}; g.d.tY=function(n,q,w,X,P,R,c,k){var r;if((r=this.videoData.N)!=null&&r.isLive){var e=q.playerType===2?q:n,f=n.videoData.videoId,O=q.videoData.videoId;if(f&&O){r=this.dc;if(r.qoe){var H=r.qoe,U=n.cpn,t=q.cpn,V=e.videoData.TG,T=H.provider.videoData.clientPlaybackNonce,x=H.provider.videoData.videoId,M=t!==T&&O!==x;T=U!==T&&f!==x;H.reportStats();H.adCpn&&H.adCpn!==U||(H.adCpn=T?U:"",H.BM=T?f:"",H.adFormat=T?V:void 0,Rxy(H,R?4:P?2:0,t,O,X),H.reportStats(),H.adCpn=M?t:"",H.BM=M?O:"",H.adFormat=M?V:void 0, Rxy(H,R?5:P?3:1,U,f,w),H.reportStats())}w=n.cpn;if(r.C.has(w)){if(P=r.C.get(w),le(P,!0).send(),hJ(P),w!==r.provider.videoData.clientPlaybackNonce){zUY(P);var h;(h=r.N)==null||uSO(h);r.C.delete(w)}}else r.R0=r.provider.videoData.clientPlaybackNonce,r.R0&&r.N&&(r.C.set(r.R0,r.N),le(r.N).send(),hJ(r.N));h=q.cpn;e=e.videoData;X-=this.mX();if(r.C.has(h)){X=r.C.get(h);var E=X.C&&isNaN(X.K)?Dh(X):NaN;X=JJm(X,!1);isNaN(E)||(X.G=E);X.send()}else X=jq0(r,r.provider,e,X),r.C.set(h,X),WGO(X,new g.cn(UG(new g.OG, 8),new g.OG)),Syx(X),(E=r.N)==null||hJ(E);r.R0=h;if(this.Z("html5_unify_csi_server_stitched_transition_logging")){if(r=this.JK,E=q.cpn,X=this.videoData.clientPlaybackNonce,q=q.videoData,n=(n.cpn===X?"video":"ad")+"_to_"+(E===X?"video":"ad"),n!=="video_to_ad"){X=n==="ad_to_video"?void 0:q;e=X==null?void 0:X.qh;h={};if(q==null?0:q.D)h.cttAuthInfo={token:q.D,videoId:q.videoId};c&&(h.startTime=c);V6(n,h);var S,nO,J;c={targetVideoId:(S=q==null?void 0:q.videoId)!=null?S:"empty_video",targetCpn:E,adVideoId:(nO= X==null?void 0:X.videoId)!=null?nO:"empty_video",adClientPlaybackNonce:(J=e==null?void 0:e.cpn)!=null?J:X==null?void 0:X.clientPlaybackNonce};e&&(c.adBreakType=e.adBreakType,c.adType=e.adType);g.a1(c,n);pq(r,k,n)}}else S=this.JK,J=this.videoData.clientPlaybackNonce,nO=q.videoData,J=(n.cpn===J?"video":"ad")+"_to_"+(q.cpn===J?"video":"ad"),n={},nO.D&&(n.cttAuthInfo={token:nO.D,videoId:nO.videoId}),c&&(n.startTime=c),V6(J,n),g.a1({targetVideoId:nO.videoId,targetCpn:q.cpn,isSsdai:!0},J),c||pq(S,k,J)}}else this.logger.N(360717806, "SSTEvent for nonSS")}; g.d.kU=function(){var n=this.Tk,q=n.n0;n.n0=[];return q}; g.d.SY=function(n){this.videoData.HI=!0;this.Az(new g.kw("sabr.fallback",n));this.Lx(!0)}; g.d.n$=function(n,q){this.videoData.X$=!0;if(q===void 0||q)this.Az(new g.kw("qoe.restart",n)),this.Lx(!0);this.videoData.M7()&&this.Z("html5_reload_caption_on_ssdai_fallback")&&this.Tk.E5()}; g.d.Db=function(n){this.p5("sdai",{aftimeout:n});this.Az(new g.kw("ad.fetchtimeout",{timeout:n}))}; g.d.uc=function(n,q){this.p5("timelineerror",n);n=new g.kw("dai.timelineerror",n);q?this.pL("dai.timelineerror",1,"RETRYABLE_ERROR",In(n.details)):this.Az(n)}; g.d.zH=function(){return g.kW(this.dc.provider)}; g.d.getPlayerSize=function(){return this.Zr.getPlayerSize()}; g.d.qr=function(){return this.Zr.qr()}; g.d.mL=function(){return this.JK}; g.d.ZH=function(){return this.Tk.ZH()}; g.d.getVolume=function(){return this.Tk.getVolume()}; g.d.vN=function(){return this.Tk.vN()}; g.d.isMuted=function(){return this.Tk.isMuted()}; g.d.FD=function(){return this.Tk.FD()}; g.d.Ll=function(){this.t2=!0}; g.d.Z=function(n){return this.NP.Z(n)}; g.d.Hk=function(n,q,w,X,P){this.p5("xvt",{m:n,g:q?1:0,tt:w?1:0,np:X?1:0,c:P})}; g.d.jC=function(){var n;(n=this.loader)==null||n.resume()}; g.d.In=function(){return g.yv(this.rD,"ad")}; g.d.Sq=function(){var n=this.getCurrentTime(),q=n-this.Zj();var w=this.mediaElement?uK(this.mediaElement.Qb()):0;w=Math.floor(Math.max(w-q,0))+100;var X;return((X=this.loader)==null?0:X.Sq(q,w))?(this.p5("sdai",{skipad:1,ct:q.toFixed(3),adj:w.toFixed(3)}),Fl(this.videoData)&&this.loader.seek(q+w,{seekSource:89,zk:"videoplayer_skipServerStitchedAd"}),rTy(this.DC,n),!0):!1}; g.d.uL=function(){return this.NP.uL()}; g.d.Yd=function(){if(this.Z("html5_generate_content_po_token"))return this.videoData.TA||"";this.Tk.Tf();return this.NP.u7||""}; g.d.qf=function(){if(this.videoData.videoId)return this.videoData.Jl}; g.d.Fg=function(){return this.videoData.videoId}; g.d.jA=function(){return this.Tk.jx}; g.d.HV=function(){return this.oE}; g.d.I8=function(){return this.Tk.I8()}; g.d.tD=function(n,q,w){this.Z("html5_report_seek_source_for_utc_seeks")&&this.NU(UG(this.playerState,16,w));this.DC.tD(n,q)}; g.d.prefetchKeyPlay=function(){}; g.d.dT=function(){this.DC.dT()}; g.d.W7=function(n,q){var w=this.Z("html5_generate_content_po_token")?this.videoData:void 0;this.Tk.W7(n,q,w)}; g.d.G3=function(n,q){this.dc.G3(n,q)}; g.d.ud=function(){return this.dc.ud()}; g.d.OI=function(){return this.videoData.PA}; g.d.AS=function(){return this.Tk.AS()}; g.d.VO=function(){return this.Tk.VO(this)}; g.d.UR=function(){this.hN=!0}; g.d.Wu=function(n){var q;(q=this.loader)==null||q.Wu(n)};g.m(caO,sc);g.m(UT,tk);UT.prototype.N=function(n){n&&dL(this,this.T.getLoopVideo());this.T.logVisibility(this.element,n)}; UT.prototype.logClick=function(){this.T.logClick(this.element)}; UT.prototype.onLoopChange=function(n){dL(this,n)}; UT.prototype.X=function(n){this.T.setLoopVideo(n)};g.m(ISu,sc);g.m(kRz,sc);g.d=kRz.prototype;g.d.seekToChapterWithAnimation=function(n){var q=this;if(g.L0(this.api)&&!(n<0)){var w=this.api.getVideoData(),X=w.TT;if(X&&n=0)return;q=~q;g.Et(this.items,q,0,n);tU(this.menuItems.element,n.element,q)}n.subscribe("size-change",this.qc,this);this.menuItems.publish("size-change")}; g.d.rq=function(n){n.unsubscribe("size-change",this.qc,this);this.zp()||(g.Vv(this.items,n),this.menuItems.element.removeChild(n.element),this.menuItems.publish("size-change"))}; g.d.qc=function(){this.menuItems.publish("size-change")}; g.d.focus=function(){for(var n=0,q=0;q1&&g.hS(this)}; g.d.Rl=function(){KCm(this);this.xE&&(Aau(this),g.n1(this.element,this.size))}; g.d.SG=function(){var n=this.N.pop();YQy(this,n,this.N[this.N.length-1],!0)}; g.d.SS=function(n){if(!n.defaultPrevented)switch(n.keyCode){case 27:this.hK();n.preventDefault();break;case 37:this.N.length>1&&this.SG();n.preventDefault();break;case 39:n.preventDefault()}}; g.d.focus=function(){this.N.length&&this.N[this.N.length-1].focus()}; g.d.Xf=function(){g.wL.prototype.Xf.call(this);this.D&&this.D.dispose();this.G&&this.G.dispose()};g.m(lB,g.xc);lB.prototype.open=function(n,q){this.initialize(n.items)&&this.ZC(q,!!q)}; lB.prototype.initialize=function(n){g.Mt(this.LV);if(n===void 0||n.length===0)return!1;var q=n.length;n=g.a(n);for(var w=n.next();!w.done;w=n.next())this.nG(w.value,q--);return!0}; lB.prototype.nG=function(n,q){n.menuNavigationItemRenderer?ByO(this,n.menuNavigationItemRenderer,q):n.menuServiceItemRenderer&&Qh6(this,n.menuServiceItemRenderer,q)};g.m(GL,$c);g.d=GL.prototype;g.d.d3=function(n){n.target!==this.dismissButton.element&&n.target!==this.overflowButton.element&&(this.J_(),this.onClickCommand&&this.T.Uq("innertubeCommand",this.onClickCommand))}; g.d.WE=function(){this.enabled=!1;this.L.hide()}; g.d.Y9=function(){return!!this.N&&this.enabled}; g.d.onVideoDataChange=function(n,q){this.L2(q);if(this.N){this.E0();a:if(!this.isCounterfactual){var w,X,P;this.banner.update({title:(w=this.N)==null?void 0:w.title,subtitle:(X=this.N)==null?void 0:X.subtitle,metadata:(P=this.N)==null?void 0:P.metadataText});var R;this.onClickCommand=g.u((R=this.N)==null?void 0:R.onTap,$9);var c;if(n=g.u((c=this.N)==null?void 0:c.onOverflow,$9))this.G=g.u(n,TDL);var k;if((k=this.N)==null?0:k.thumbnailImage){var r,e;c=((r=this.N)==null?void 0:(e=r.thumbnailImage)== null?void 0:e.sources)||[];if(c.length===0)break a;this.thumbnailImage.update({url:c[0].url})}else{var f;if((f=this.N)==null?0:f.thumbnailIconName){var O;this.thumbnailIcon.update({icon:(O=this.N)==null?void 0:O.thumbnailIconName})}}var H;this.shouldShowOverflowButton=!((H=this.N)==null||!H.shouldShowOverflowButton);var U;this.shouldHideDismissButton=!((U=this.N)==null||!U.shouldHideDismissButton)}var t;this.banner.element.setAttribute("aria-label",((t=this.N)==null?void 0:t.a11yLabel)||"");var V; this.IH=(V=this.N)==null?void 0:V.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;JaO(this)}}; g.d.UPW=function(){this.isVisible=!0;JaO(this)}; g.d.Rng=function(){this.isVisible=!1;JaO(this)}; g.d.xA=function(){$c.prototype.xA.call(this);this.X&&this.T.logVisibility(this.banner.element,this.isVisible)}; g.d.J_=function(){$c.prototype.J_.call(this,!1);this.X&&this.T.logClick(this.banner.element)}; g.d.bC=function(n){this.D||(this.D=new lB(this.T),g.K(this,this.D));var q,w;if((q=this.G)==null?0:(w=q.menu)==null?0:w.menuRenderer)this.D.open(this.G.menu.menuRenderer,n.target),n.preventDefault()}; g.d.L2=function(){}; g.d.E0=function(){}; g.d.Xf=function(){this.T.wg("suggested_action_view_model");$c.prototype.Xf.call(this)};g.m(CM,GL); CM.prototype.L2=function(n){var q,w,X;this.productUpsellSuggestedActionViewModel=g.u((q=n.getWatchNextResponse())==null?void 0:(w=q.playerOverlays)==null?void 0:(X=w.playerOverlayRenderer)==null?void 0:X.suggestedActionViewModel,Y45);var P;if((P=this.productUpsellSuggestedActionViewModel)==null?0:P.content){var R;this.N=g.u((R=this.productUpsellSuggestedActionViewModel)==null?void 0:R.content,aYz)}var c,k;if(this.X=!!((c=this.productUpsellSuggestedActionViewModel)==null?0:(k=c.loggingDirectives)==null? 0:k.trackingParams)){var r,e;this.T.setTrackingParams(this.banner.element,((r=this.productUpsellSuggestedActionViewModel)==null?void 0:(e=r.loggingDirectives)==null?void 0:e.trackingParams)||null)}var f;this.isCounterfactual=!((f=this.productUpsellSuggestedActionViewModel)==null||!f.isCounterfactualServing)}; CM.prototype.E0=function(){var n=[],q,w=g.a(((q=this.productUpsellSuggestedActionViewModel)==null?void 0:q.ranges)||[]);for(q=w.next();!q.done;q=w.next()){var X=q.value;X&&(q=Number(X.startTimeMilliseconds),X=Number(X.endTimeMilliseconds),isNaN(q)||isNaN(X)||n.push(new g.og(q,X,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.T.Zf(n)};g.m(zwh,sc);g.m(ET,sc);ET.prototype.onVideoDataChange=function(n,q){var w=this;if(!rw(q)&&(n==="newdata"&&Nym(this),this.N&&n==="dataloaded")){this.N=!1;var X;F7(Ti(py(this.api.B(),(X=this.api.getVideoData())==null?void 0:g.Io(X)),function(P){RIh(w,P)}),function(){w.N=!0})}}; ET.prototype.zx=function(){var n=this;if(g.jg(this.api.B())){var q,w=g.Vd(this.api.B(),(q=this.api.getVideoData())==null?void 0:g.Io(q));return Ti(ya(w),function(X){var P=NV();ng(P,X);return n.api.zx(P)})}return ya(this.api.zx())};g.m(g.bB,g.IV);g.d=g.bB.prototype;g.d.open=function(){g.D3(this.aP,this.X)}; g.d.UF=function(n){cLs(this);var q=this.options[n];q&&(q.element.setAttribute("aria-checked","true"),this.s8(this.fq(n)),this.C=n)}; g.d.Hw=function(n){g.Mt(this.X);for(var q={},w=!1,X=0;X=0?this.N.playbackRate:1}catch(n){return 1}}; g.d.setPlaybackRate=function(n){this.getPlaybackRate()!==n&&(this.N.playbackRate=n);return n}; g.d.g4=function(){return this.N.loop}; g.d.setLoop=function(n){this.N.loop=n}; g.d.canPlayType=function(n,q){return this.N.canPlayType(n,q)}; g.d.isPaused=function(){return this.N.paused}; g.d.isSeeking=function(){return this.N.seeking}; g.d.isEnded=function(){return this.N.ended}; g.d.y4=function(){return this.N.muted}; g.d.zJ=function(n){HS();this.N.muted=n}; g.d.r9=function(){return this.N.played||bK([],[])}; g.d.Qb=function(){try{var n=this.N.buffered}catch(q){}return n||bK([],[])}; g.d.sP=function(){return this.N.seekable||bK([],[])}; g.d.xB=function(){var n=this.N;return n.getStartDate?n.getStartDate():null}; g.d.getCurrentTime=function(){return this.N.currentTime}; g.d.setCurrentTime=function(n){this.N.currentTime=n}; g.d.getDuration=function(){return this.N.duration}; g.d.load=function(){var n=this.N.playbackRate;try{this.N.load()}catch(q){}this.N.playbackRate=n}; g.d.pause=function(){this.N.pause()}; g.d.play=function(){var n=this.N.play();if(!n||!n.then)return null;n.then(void 0,function(){}); return n}; g.d.a6=function(){return this.N.readyState}; g.d.L$=function(){return this.N.networkState}; g.d.Kx=function(){return this.N.error?this.N.error.code:null}; g.d.N9=function(){return this.N.error?this.N.error.message:""}; g.d.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.N instanceof window.HTMLVideoElement&&this.N.getVideoPlaybackQuality)return this.N.getVideoPlaybackQuality();if(this.N){var n=this.N,q=n.webkitDroppedFrameCount;if(n=n.webkitDecodedFrameCount)return{droppedVideoFrames:q||0,totalVideoFrames:n}}return{}}; g.d.xw=function(){return!!this.N.webkitCurrentPlaybackTargetIsWireless}; g.d.aG=function(){return!!this.N.webkitShowPlaybackTargetPicker()}; g.d.togglePictureInPicture=function(){var n=this.N,q=window.document;window.document.pictureInPictureEnabled?this.N!==q.pictureInPictureElement?n.requestPictureInPicture():q.exitPictureInPicture():iK()&&n.webkitSetPresentationMode(n.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.d.DT=function(){var n=this.N;return new g.uV(n.offsetLeft,n.offsetTop)}; g.d.getSize=function(){return g.qf(this.N)}; g.d.setSize=function(n){g.n1(this.N,n)}; g.d.getVolume=function(){return this.N.volume}; g.d.setVolume=function(n){HS();this.N.volume=n}; g.d.EY=function(n){this.K[n]||(this.N.addEventListener(n,this.listener),this.K[n]=this.listener)}; g.d.setAttribute=function(n,q){this.N.setAttribute(n,q)}; g.d.removeAttribute=function(n){this.N.removeAttribute(n)}; g.d.hasAttribute=function(n){return this.N.hasAttribute(n)}; g.d.kc=P0(61);g.d.Cs=P0(63);g.d.He=P0(65);g.d.x$=P0(67);g.d.Pg=function(){return O8(this.N)}; g.d.mQ=function(n){g.N4(this.N,n)}; g.d.Fl=function(n){return g.uX(this.N,n)}; g.d.gx=function(){return g.gr(document.body,this.N)}; g.d.audioTracks=function(){var n=this.N;if("audioTracks"in n)return n.audioTracks}; g.d.Xf=function(){for(var n=g.a(Object.keys(this.K)),q=n.next();!q.done;q=n.next())q=q.value,this.N.removeEventListener(q,this.K[q]);rd.prototype.Xf.call(this)}; g.d.zy=function(n){this.N.disableRemotePlayback=n};g.m(Nt,g.Q);g.m(qe,g.Q);qe.prototype.show=function(){g.Q.prototype.show.call(this);this.dl();this.Oq.Z("html5_enable_moving_s4n_window")&&g.jg(this.Oq.B())&&this.V()}; qe.prototype.hide=function(){g.Q.prototype.hide.call(this);this.delay.stop();this.W.stop()}; qe.prototype.dl=function(){var n=(0,g.m$)(),q=tKh(this.Oq);nq(this.N,q.bandwidth_samples);nq(this.G,q.network_activity_samples);nq(this.C,q.live_latency_samples);nq(this.X,q.buffer_health_samples);var w={};q=g.a(Object.entries(q));for(var X=q.next();!X.done;X=q.next()){var P=g.a(X.value);X=P.next().value;P=P.next().value;this.L[X]!==P&&(w[X]=" "+String(P));this.L[X]=P}this.update(w);n=(0,g.m$)()-n>25?5E3:500;this.delay.start(n)}; qe.prototype.V=function(){this.D?(this.position+=1,this.position>15&&(this.D=!1)):(--this.position,this.position<=0&&(this.D=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.W.start(2E4)};g.m(mpy,sc);g.m(w4,g.A);w4.prototype.N=function(){var n=(0,g.m$)()-this.startTime;n=nthis.W[n])&&(this.N=n,this.wY())}; g.d.onCueRangeExit=function(n){var q=hIs(this,n);q&&this.N===n&&this.api.Uq("innertubeCommand",q);Rv(this);this.N=void 0}; g.d.IQ=function(n){this.C=n}; g.d.H7=function(){this.wY();this.C=void 0}; g.d.wY=function(){if(this.N!==void 0){var n=(n=Pb(this,this.N))&&n.onCueRangeEnter?LC(n.onCueRangeEnter):void 0;var q=Pb(this,this.N);a:if(q&&q.additionalTrigger){var w=g.a(q.additionalTrigger);for(var X=w.next();!X.done;X=w.next())if(X=X.value,X.type){var P=void 0,R=void 0;if((P=this.WW[X.type])==null?0:P((R=X.args)!=null?R:{})){w=!0;break a}}w=!1}else w=!0;n&&w&&(this.api.Uq("innertubeCommand",n),l_0(this,q),this.W[this.N]!==void 0&&this.W[this.N]++,this.L=!0)}}; g.d.Xf=function(){this.timelyActions=this.C=this.N=this.videoId=void 0;this.W={};this.oW();Rv(this);sc.prototype.Xf.call(this)};g.m(Ebu,sc);g.m(cb,tk);cb.prototype.D=function(n){this.W(n?2:1)}; cb.prototype.X=function(){var n=this.T.getPresentingPlayerType();n===2||n===3?(this.N=!1,this.aP.rq(this)):this.N||(n=this.hasVoiceBoostAudioTrack(),this.setEnabled(n),n=this.C()===2&&n,dL(this,n),this.aP.nG(this),this.N=!0)}; cb.prototype.Xf=function(){this.aP.rq(this);tk.prototype.Xf.call(this)};g.m(Iv,sc);Iv.prototype.getVoiceBoostUserPreference=function(){return this.N}; Iv.prototype.setVoiceBoostUserPreference=function(n){this.api.p5("vb_set",{pref:n});g.Fo("yt-player-voice-boost",n);n!==this.N&&(this.N=n,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.mM())}; Iv.prototype.hasVoiceBoostAudioTrack=function(){var n,q,w=(n=this.api.getVideoData())==null?void 0:(q=n.C)==null?void 0:q.N;return w?Yo(w,function(X){var P;return((P=X.audio)==null?void 0:P.X)===!0}):!1}; Iv.prototype.updateEnvironmentData=function(){this.api.B().JL=this.N};var JL6=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.m(jW,sc);jW.prototype.Xf=function(){this.G&&(g.ez(this.G),this.G=void 0);sc.prototype.Xf.call(this)}; jW.prototype.Tf=function(){(this.X?!this.N:this.C)&&eW(this)}; jW.prototype.rp=function(n,q,w){var X=this;if(ALs(n)){var P=w||"";if(this.N)q=fq(this,P),Ya3(n,q);else{var R=new g.cR;q.push(R.promise);this.K.promise.then(function(){var c=fq(X,P);Ya3(n,c);R.resolve()})}}}; jW.prototype.Bm=function(n){var q=this;if(this.X||this.C)n.TA=fq(this,n.videoId),this.N||(this.W=new k8,this.K.promise.then(function(){q.JK.UT("pot_if");n.TA=fq(q,n.videoId)}))};g.m(g.ih,g.Q);g.ih.prototype.select=function(){this.api.q1(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.k$||void 0)&&this.api.logClick(this.element)}; g.ih.prototype.onClick=function(n){if(g.Q2(this.api.B())&&this.api.Z("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var q=this.suggestion.z1(),w={};g.uR(this.api,w);q=g.OV(q,w);g.mh(q,this.api,n)}else g.gL(n,this.api,this.X,this.suggestion.sessionData||void 0)&&this.select()}; g.ih.prototype.onKeyPress=function(n){switch(n.keyCode){case 13:case 32:n.defaultPrevented||(this.select(),n.preventDefault())}}; g.ih.prototype.onVideoDataChange=function(){var n=this.api.getVideoData(),q=this.api.B();this.X=n.bS?!1:q.W};g.m(Hb,g.Q);Hb.prototype.Xf=function(){this.hide();g.Vs(this.W);g.XP(this.stills);this.stills.length=0;this.C&&this.C.removeEventListener("click",this.X);this.N&&this.N.removeEventListener("click",this.X);g.Q.prototype.Xf.call(this)}; Hb.prototype.X=function(n){this.V&&this.V(n)}; Hb.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var n,q,w,X,P;var R=(((n=this.videoData)==null?0:(q=n.suggestions)==null?0:q.length)?(w=this.videoData)==null?void 0:w.suggestions:((X=this.videoData)==null?0:g.dY(X))?[(P=this.videoData)==null?void 0:g.dY(P)]:[]).slice(0,12);if((n=this.L)&&this.G&&this.D)if(g.U_(n),R.length)for(this.stills.length>R.length&&g.XP(this.stills.splice(R.length)),this.stills.length=R.length,q=0;q=0;n--)this.features[n].dispose();this.features.length=0;g.A.prototype.Xf.call(this)};ceT.prototype.reset=function(){this.N=this.X=NaN};g.d=I$6.prototype;g.d.reset=function(){dA(this.timerName)}; g.d.tick=function(n,q){y6(n,q,this.timerName)}; g.d.UT=function(n){return TW(n,void 0,this.timerName)}; g.d.Ul=function(n){g.CK(n,void 0,this.timerName)}; g.d.infoGel=function(n){g.a1(n,this.timerName)};g.m(jNy,g.np);g.d=jNy.prototype;g.d.Om=function(n){return this.loop||!!n||this.index+1=0}; g.d.setShuffle=function(n){this.shuffle=n;n=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var q=0;q0)||SW(this,1,!0)}; g.d.MV=function(){this.D=!0;this.N.wM(this.K);this.K=this.N.j(document,"mouseup",this.Eh)}; g.d.Eh=function(){this.D=!1;SW(this,8,!1);this.N.wM(this.K);this.K=this.N.j(this.target,"mousedown",this.MV)}; g.d.vU=function(n){if(n=(n=n.changedTouches)&&n[0])this.WW=n.identifier,this.N.wM(this.V),this.V=this.N.j(this.target,"touchend",this.qN,void 0,!0),SW(this,1024,!0)}; g.d.qN=function(n){if(n=n.changedTouches)for(var q=0;q1280||P>720)if(q=X.EF("maxresdefault.jpg"))break;if(R>640||P>480)if(q=X.EF("maxresdefault.jpg"))break;if(R>320||P>180)if(q=X.EF("sddefault.jpg")||X.EF("hqdefault.jpg")||X.EF("mqdefault.jpg"))break;if(q=X.EF("default.jpg"))break}g.tK(n)&&(n=new Image,n.addEventListener("load", function(){eNO()}),n.src=q?q:"",this.api.mL().tick("ftr")); this.W.style.backgroundImage=q?"url("+q+")":""};g.m(g.ZD,g.Q);g.ZD.prototype.resize=function(){}; g.ZD.prototype.X=function(n){var q=this;this.C=!1;Jem(this);var w=n.xU,X=this.api.B();w!=="GENERIC_WITHOUT_LINK"||X.D?w==="TOO_MANY_REQUESTS"?(X=this.api.getVideoData(),this.s8(Wb(this,"TOO_MANY_REQUESTS_WITH_LINK",X.z1(),void 0,void 0,void 0,!1))):w!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||X.D?this.api.B().Z("html5_enable_bandaid_error_screen")&&w==="HTML5_SPS_UMP_STATUS_REJECTED"&&!X.D?(X=X.hostLanguage,n="//support.google.com/youtube?p=videoError",X&&(n=g.OV(n,{hl:X})),this.s8(Wb(this,"HTML5_SPS_UMP_STATUS_REJECTED", n))):this.api.B().Z("enable_adb_handling_in_sabr")&&w==="BROWSER_OR_EXTENSION_ERROR"&&!X.D?(X=X.hostLanguage,n="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",X&&(n=g.OV(n,{hl:X})),this.s8(Wb(this,"BROWSER_OR_EXTENSION_ERROR",n))):this.s8(g.JT(n.errorMessage)):this.s8(Wb(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(n=X.hostLanguage,w="//support.google.com/youtube/?p=player_error1",n&&(w=g.OV(w, {hl:n})),this.s8(Wb(this,"GENERIC_WITH_LINK_AND_CPN",w,!0)),X.ej&&!X.W&&Zf6(this,function(R){if(g.gL(R,q.api,!eN(q.api.B()))){R={as3:!1,html5:!0,player:!0,cpn:q.api.getVideoData().clientPlaybackNonce};var c=q.api;c.pV("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:R});c.isFullscreen()&&c.toggleFullscreen()}})); if(this.C){var P=this.C5("ytp-error-link");P&&(this.api.createClientVe(P,this,216104),this.api.logVisibility(P,!0),Zf6(this,function(){q.api.logClick(P)}))}}; var QNs=/([^<>]+)<\/a>/;g.m(zXY,g.Q);zXY.prototype.vl=function(n,q,w){w=w===void 0?!1:w;switch(q){case 1:Ne(this,n,this.C,w);break;case 2:Ne(this,n,this.W,w);break;case 3:Ne(this,n,this.N,w);break;case 4:Ne(this,n,this.X,w)}};g.m(WYY,g.Q);g.d=WYY.prototype;g.d.onClick=function(n){this.innertubeCommand?(this.T.Uq("innertubeCommand",this.innertubeCommand),n.preventDefault()):g.gL(n,this.T,!0);this.T.logClick(this.element)}; g.d.onVideoDataChange=function(n,q){nRO(this,q);this.jP&&qjY(this,this.jP)}; g.d.PD=function(n){var q=this.T.getVideoData();this.videoId!==q.videoId&&nRO(this,q);this.N&&qjY(this,n.state);this.jP=n.state}; g.d.ZC=function(){this.fade.show();this.T.publish("paidcontentoverlayvisibilitychange",!0);this.T.logVisibility(this.element,!0)}; g.d.hK=function(){this.fade.hide();this.T.publish("paidcontentoverlayvisibilitychange",!1);this.T.logVisibility(this.element,!1)};g.m(nU,g.Q);nU.prototype.hide=function(){this.N.stop();this.message.style.display="none";g.Q.prototype.hide.call(this)}; nU.prototype.onStateChange=function(n){this.eg(n.state)}; nU.prototype.eg=function(n){if(g.Z(n,128)||this.api.HV())var q=!1;else{var w;q=this.api.Z("web_watch_enable_multiview_manager")&&((w=this.api.getVideoData())==null?0:rw(w))?!1:g.Z(n,16)||g.Z(n,1)?!0:!1}q?this.N.start():this.hide()}; nU.prototype.X=function(){this.message.style.display="block"};g.m(q$,g.wL);q$.prototype.onMutedAutoplayChange=function(n){this.C&&(n?(wF0(this),this.ZC()):(this.N&&this.logClick(),this.hK()))}; q$.prototype.RX=function(n){this.api.isMutedByMutedAutoplay()&&g.k0(n,2)&&this.hK()}; q$.prototype.onClick=function(){this.api.unMute();this.logClick()}; q$.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.m(g.wy,g.Um);g.d=g.wy.prototype;g.d.init=function(){var n=this.api,q=n.getPlayerStateObject();this.OV=n.getPlayerSize();this.NU(q);this.LX();this.UD();this.api.publish("basechromeinitialized",this);this.SB()&&this.api.publish("standardControlsInitialized")}; g.d.onVideoDataChange=function(n,q){var w=this.qv!==q.videoId;if(w||n==="newdata")n=this.api,n.isFullscreen()||(this.OV=n.getPlayerSize());w&&(this.qv=q.videoId,w=this.XC,w.HW=3E3,SW(w,512,!0),this.LX());this.api.Z("web_render_jump_buttons")&&q.showSeekingControls&&(this.H5=572)}; g.d.k9g=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.d.KA=function(){var n=this.api.Ml()&&this.api.Oe(),q=this.api.Y3();return this.d8||n||this.W2||q}; g.d.Lf=function(){var n=!this.KA();g.XW(this.api.getRootNode(),"ytp-menu-shown",!n)}; g.d.En=function(n){try{if(!g.gr(this.api.getRootNode(),n))return!1}catch(q){return!1}for(;n&&!ois(n);)n=n===this.api.getRootNode()?null:n.parentElement||null;return!!n}; g.d.IR=function(n){var q=this.api.getRootNode();g.XW(q,"ytp-autohide",n);g.XW(q,"ytp-autohide-active",!0);this.td.start(n?250:100);n&&(this.Ts=!1,g.qX(q,"ytp-touch-mode"));this.Kk=!n;this.api.SC(!n);this.api.Z("delhi_modern_web_player")&&this.api.publish("autohideupdate",n)}; g.d.dF=function(){var n=this.api.getRootNode();g.XW(n,"ytp-autohide-active",!1)}; g.d.Fcp=function(){this.f6=!0}; g.d.rUo=function(n){if(this.api.B().Z("player_doubletap_to_seek")||this.api.B().G)this.f6=!1,this.HY&&this.wM(this.HY),this.OZ===0&&PY(this,n)?(this.wx(),this.le.start(),this.HY=this.j(this.api.yT(),"touchmove",this.Fcp,void 0,!0)):this.le.stop();c60(this)&&PY(this,n)&&!this.api.B().G&&Pys(this);var q=this.JI.hf();if(!g.Q2(this.api.B())&&KJ&&I5u(this,n))q&&n.preventDefault();else if(this.Ts=!0,g.N4(this.api.getRootNode(),"ytp-touch-mode"),this.XC.BN(),this.api.B().Z("player_doubletap_to_seek")||this.api.B().G)if(q= this.api.getPlayerStateObject(),!(!this.api.sT()||g.Z(q,2)&&g.AE(this.api)||g.Z(q,64))){q=Date.now()-this.Xd;this.OZ+=1;if(q<=350){this.Bs=!0;q=this.api.getPlayerSize().width/3;var w=this.api.getRootNode().getBoundingClientRect(),X=n.targetTouches[0].clientX-w.left;w=n.targetTouches[0].clientY-w.top;var P=(this.OZ-1)*10;X>0&&Xq*2&&X=650,X=n.width<528;this.XC.resize();g.XW(q,"ytp-fullscreen",this.api.isFullscreen());g.XW(q,"ytp-large-width-mode",w);this.api.Z("delhi_modern_web_player")?g.XW(q,"ytp-xsmall-width-mode",X):g.XW(q,"ytp-small-mode",this.lP());g.XW(q,"ytp-tiny-mode",this.j_());g.XW(q,"ytp-big-mode",this.AM());this.J$&&this.J$.resize(n)}; g.d.RX=function(n){this.NU(n.state);this.LX()}; g.d.Dr=P0(3);g.d.Z1=function(){var n=!!this.qv&&!this.api.Mi()&&!this.z2,q=this.api.getPresentingPlayerType()===2,w=this.api.B();return q?(q=ov(this.api.fM()),n&&(q&&q.player?n=(n=q.player.getVideoData(2))?n.isListed&&!g.kS(q.player.B()):!1:(R0("showInfoBarDuringAd: this is null"),n=!1)),n):n&&(w.vr||this.api.isFullscreen()||w.Uu)}; g.d.LX=function(){var n=this.Z1();this.V2!==n&&(this.V2=n,g.XW(this.api.getRootNode(),"ytp-hide-info-bar",!n))}; g.d.NU=function(n){var q=n.isCued()||this.api.eT()&&this.api.getPresentingPlayerType()!==3;q!==this.isCued&&(this.isCued=q,this.WY&&this.wM(this.WY),this.WY=this.j(this.api.yT(),"touchstart",this.rUo,void 0,q));var w=this.XC,X=n.isPlaying()&&!g.Z(n,32)||this.api.Bg();SW(w,128,!X);w=this.XC;X=this.api.getPresentingPlayerType()===3;SW(w,256,X);w=this.api.getRootNode();g.Z(n,2)?X=[z_.ENDED]:(X=[],g.Z(n,8)?X.push(z_.PLAYING):g.Z(n,4)&&X.push(z_.PAUSED),g.Z(n,1)&&!g.Z(n,32)&&X.push(z_.BUFFERING),g.Z(n, 32)&&X.push(z_.SEEKING),g.Z(n,64)&&X.push(z_.UNSTARTED));g.Qv(this.Q8,X)||(g.we(w,this.Q8),this.Q8=X,g.nc(w,X));X=this.api.B();var P=g.Z(n,2);a:{var R=this.api.B();var c=R.controlsType;switch(c){case "2":case "0":R=!1;break a}R=c==="3"&&!g.Z(n,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:bO5(ov(this.api.fM())))||this.api.Y3()||g.Q2(R)&&this.api.getPresentingPlayerType()===2?!1:!0}g.XW(w,"ytp-hide-controls",!R);g.XW(w,"ytp-native-controls",X.controlsType==="3"&&!q&&!P&&!this.W2);g.Z(n, 128)&&!g.Q2(X)?(this.J$||(this.J$=new g.ZD(this.api),g.K(this,this.J$),g.Zp(this.api,this.J$.element,4)),this.J$.X(n.er),this.J$.show()):this.J$&&(this.J$.dispose(),this.J$=null)}; g.d.T7=function(){return this.api.Ml()&&this.api.Oe()?(this.api.hB(!1,!1),!0):this.api.Mi()?(g.YE(this.api,!0),!0):!1}; g.d.onMutedAutoplayChange=function(n){this.W2=n;this.Lf()}; g.d.AM=function(){return!1}; g.d.lP=function(){return!this.AM()&&(this.api.getPlayerSize().width=0&&q.left>=0&&q.bottom>q.top&&q.right>q.left?q:null;q=this.size;n=n.clone();q=q.clone();X&&(c=q,P=5,(P&65)==65&&(n.x=X.right)&&(P&=-2),(P&132)==132&&(n.y=X.bottom)&&(P&=-5),n.xX.right&&(c.width=Math.min(X.right-n.x,R+c.width-X.left),c.width=Math.max(c.width,0))),n.x+c.width>X.right&&P&1&&(n.x=Math.max(X.right-c.width,X.left)),n.yX.bottom&&(c.height=Math.min(X.bottom-n.y,R+c.height-X.top),c.height=Math.max(c.height,0))),n.y+c.height>X.bottom&&P&4&&(n.y=Math.max(X.bottom-c.height,X.top)));X=new g.bX(0,0,0,0);X.left=n.x;X.top=n.y;X.width= q.width;X.height=q.height;g.JU(this.element,new g.uV(X.left,X.top));g.Vs(this.W);this.W.j(XZ(this),"contextmenu",this.sHf);this.W.j(this.T,"fullscreentoggled",this.onFullscreenToggled);this.W.j(this.T,"pageTransition",this.MN)}; g.d.sHf=function(n){if(!n.defaultPrevented){var q=gt(n);g.gr(this.element,q)||this.hK();this.T.B().disableNativeContextMenu&&n.preventDefault()}}; g.d.onFullscreenToggled=function(){this.hK();Mrs(this)}; g.d.MN=function(){this.hK()};g.m(fU,g.Q);fU.prototype.onClick=function(){var n=this,q,w,X,P;return g.b(function(R){if(R.X==1)return q=n.api.B(),w=n.api.getVideoData(),X=n.api.getPlaylistId(),P=q.getVideoUrl(w.videoId,X,void 0,!0),g.l(R,hL0(n,P),2);R.N&&Dhs(n);n.api.logClick(n.element);g.yy(R)})}; fU.prototype.dl=function(){this.updateValue("icon",{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar link");this.visible=xhT(this);g.XW(this.element,"ytp-copylink-button-visible", this.visible);this.bL(this.visible);this.tooltip.DL();this.api.logVisibility(this.element,this.visible&&this.K)}; fU.prototype.jj=function(n){g.Q.prototype.jj.call(this,n);this.api.logVisibility(this.element,this.visible&&n)}; fU.prototype.Xf=function(){g.Q.prototype.Xf.call(this);g.qX(this.element,"ytp-copylink-button-visible")};g.m(l53,g.Q);g.d=l53.prototype;g.d.show=function(){g.Q.prototype.show.call(this);g.K9(this.X)}; g.d.hide=function(){this.W.stop();this.C=0;this.C5("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.qX(this.element,"ytp-chapter-seek");g.qX(this.element,"ytp-time-seeking");g.Q.prototype.hide.call(this)}; g.d.fA=function(n,q,w,X){this.C=n===this.G?this.C+X:X;this.G=n;var P=n===-1?this.L:this.V;P&&this.T.logClick(P);this.D?this.X.stop():g.uF(this.X);this.W.start();this.element.setAttribute("data-side",n===-1?"back":"forward");var R=3*this.T.yT().getPlayerSize().height;P=this.T.yT().getPlayerSize();P=P.width/3-3*P.height;this.N.style.width=R+"px";this.N.style.height=R+"px";n===1?(this.N.style.left="",this.N.style.right=P+"px"):n===-1&&(this.N.style.right="",this.N.style.left=P+"px");var c=R*2.5;R=c/ 2;var k=this.C5("ytp-doubletap-ripple");k.style.width=c+"px";k.style.height=c+"px";n===1?(n=this.T.yT().getPlayerSize().width-q+Math.abs(P),k.style.left="",k.style.right=n-R+"px"):n===-1&&(n=Math.abs(P)+q,k.style.right="",k.style.left=n-R+"px");k.style.top="calc((33% + "+Math.round(w)+"px) - "+R+"px)";if(w=this.C5("ytp-doubletap-ripple"))w.classList.remove("ytp-doubletap-ripple"),w.classList.add("ytp-doubletap-ripple");G6u(this,this.D?this.C:X)}; g.d.KX=function(n,q,w){if(w=w===void 0?null:w){var X=n===-1?this.L.visualElement:this.V.visualElement;w={seekData:w};var P=g.Uk();P&&g.SY(KC)(void 0,P,X,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",w,void 0)}this.C=n===this.G?this.C+q:q;this.G=n;X=this.T.yT().getPlayerSize();this.D?this.X.stop():g.uF(this.X);this.W.start();this.element.setAttribute("data-side",n===-1?"back":"forward");g.N4(this.element,"ytp-time-seeking");this.N.style.width="110px";this.N.style.height="110px";w=X.width*.1-15;n=== 1?this.qP?(this.N.style.right=w+"px",this.N.style.left=""):(this.N.style.right="",this.N.style.left=X.width*.8-30+"px"):n===-1&&(this.qP?(this.N.style.right="",this.N.style.left=w+"px"):(this.N.style.right="",this.N.style.left=X.width*.1-15+"px"));this.N.style.top=X.height*.5+15+"px";G6u(this,this.D?this.C:q)}; g.d.zg=function(n,q,w){w=w===void 0?null:w;g.uF(this.X);this.W.start();switch(n){case -1:n="back";break;case 1:n="forward";break;default:n=""}this.element.setAttribute("data-side",n);this.N.style.width="0";this.N.style.height="0";g.N4(this.element,"ytp-chapter-seek");this.updateValue("seekText",q);this.updateValue("seekTime","");q=this.C5("ytp-seek-icon");if(w){a:if(w){switch(w){case "PREMIUM_STANDALONE":w=Mus();break a;case "PREMIUM_STANDALONE_CAIRO":w=xHh();break a}w=void 0}else w=null;this.updateValue("seekIcon", w);q.style.display="inline-block"}else q.style.display="none"};g.m(Cy0,$c);g.d=Cy0.prototype;g.d.vD=function(n){this.n5||(this.n5=new lB(this.T),g.K(this,this.n5));var q,w;if((q=this.AK)==null?0:(w=q.menu)==null?0:w.menuRenderer)this.n5.open(this.AK.menu.menuRenderer,n.target),n.preventDefault()}; g.d.Y9=function(){return!!this.N}; g.d.Xs=function(){return!!this.N}; g.d.d3=function(n){n.target===this.overflowButton.element?n.preventDefault():(this.JU&&this.T.Uq("innertubeCommand",this.JU),this.J_(!1))}; g.d.WE=function(){this.J_(!0);var n,q;((n=this.N)==null?0:(q=n.bannerData)==null?0:q.dismissedStatusKey)&&this.ej.push(this.N.bannerData.dismissedStatusKey);this.hY()}; g.d.xi=function(){this.hY();HY(this)}; g.d.rJp=function(n){var q=this,w;if(n.id!==((w=this.N)==null?void 0:w.identifier)){this.hY();w=g.a(this.WW);for(var X=w.next();!X.done;X=w.next()){var P=X.value,R=void 0,c=void 0;if((X=(R=P)==null?void 0:(c=R.bannerData)==null?void 0:c.itemData)&&P.identifier===n.id){c=R=void 0;var k=((R=P)==null?void 0:(c=R.bannerData)==null?void 0:c.dismissedStatusKey)||"";if(this.ej.includes(k))return;this.N=P;this.banner.element.setAttribute("aria-label",X.accessibilityLabel||"");X.trackingParams&&(this.W=!0, this.T.setTrackingParams(this.badge.element,X.trackingParams));this.show();this.L.show();Fg(this);this.HW.bL(!X.stayInApp);J6x(this);oRO(this);i2(this);this.JU=g.u(X.onTapCommand,$9);if(P=g.u(X.menuOnTap,$9))this.AK=g.u(P,TDL);P=void 0;this.banner.update({thumbnail:(P=(X.thumbnailSources||[])[0])==null?void 0:P.url,title:X.productTitle,price:X.priceReplacementText?X.priceReplacementText:X.price,salesOriginalPrice:Yj0(this),priceDropReferencePrice:KO0(this),promotionText:A6y(this),priceA11yText:Sj3(this), affiliateDisclaimer:X.affiliateDisclaimer,vendor:ua3(this)});k=c=R=P=void 0;((P=X)==null?0:(R=P.hiddenProductOptions)==null?0:R.showDropCountdown)&&((c=X)==null?0:(k=c.hiddenProductOptions)==null?0:k.dropTimestampMs)&&(this.nM=new g.YF(function(){ZuO(q)},1E3),this.HW.hide(),this.countdownTimer.show(),ZuO(this)); this.T.Z("web_player_enable_featured_product_banner_exclusives_on_desktop")&&ERz(this)&&(this.YE=new g.YF(function(){buy(q)},1E3),buy(this))}}this.T.getRootNode()&&g.N4(this.T.getRootNode(),"ytp-featured-product-shown")}}; g.d.hY=function(){this.N&&(this.N=void 0,this.Nl(),this.T.getRootNode()&&g.qX(this.T.getRootNode(),"ytp-featured-product-shown"))}; g.d.onVideoDataChange=function(n,q){var w=this;n==="dataloaded"&&HY(this);var X,P,R;n=g.u((X=q.getWatchNextResponse())==null?void 0:(P=X.playerOverlays)==null?void 0:(R=P.playerOverlayRenderer)==null?void 0:R.productsInVideoOverlayRenderer,V9w);this.overflowButton.show();this.dismissButton.hide();var c=n==null?void 0:n.featuredProductsEntityKey;this.trendingOfferEntityKey=n==null?void 0:n.trendingOfferEntityKey;this.WW.length||(QTY(this,c),i2(this));var k;(k=this.tU)==null||k.call(this);this.tU=g.mB.subscribe(function(){QTY(w, c);i2(w)})}; g.d.Xf=function(){HY(this);J6x(this);oRO(this);$c.prototype.Xf.call(this)};g.m(qK6,g.Q);qK6.prototype.onClick=function(){this.T.logClick(this.element,this.X)};g.m(wZs,g.wL);g.d=wZs.prototype;g.d.show=function(){g.wL.prototype.show.call(this);this.T.publish("infopaneldetailvisibilitychange",!0);this.T.logVisibility(this.element,!0);XZs(this,!0)}; g.d.hide=function(){g.wL.prototype.hide.call(this);this.T.publish("infopaneldetailvisibilitychange",!1);this.T.logVisibility(this.element,!1);XZs(this,!1)}; g.d.getId=function(){return this.W}; g.d.Ue=function(){return this.itemData.length}; g.d.onVideoDataChange=function(n,q){if(q){var w,X,P,R;this.update({title:((w=q.ql)==null?void 0:(X=w.title)==null?void 0:X.content)||"",body:((P=q.ql)==null?void 0:(R=P.bodyText)==null?void 0:R.content)||""});var c;n=((c=q.ql)==null?void 0:c.trackingParams)||null;this.T.setTrackingParams(this.element,n);c=g.a(this.itemData);for(n=c.next();!n.done;n=c.next())n.value.dispose();this.itemData=[];var k;if((k=q.ql)==null?0:k.ctaButtons)for(q=g.a(q.ql.ctaButtons),k=q.next();!k.done;k=q.next())if(k=g.u(k.value, t9h))k=new qK6(this.T,k,this.N),k.YH&&(this.itemData.push(k),k.wl(this.items))}}; g.d.Xf=function(){this.hide();g.wL.prototype.Xf.call(this)};g.m(cly,g.Q);g.d=cly.prototype;g.d.onVideoDataChange=function(n,q){Rj3(this,q);this.jP&&k_O(this,this.jP)}; g.d.fR=function(n){var q=this.T.getVideoData();this.videoId!==q.videoId&&Rj3(this,q);k_O(this,n.state);this.jP=n.state}; g.d.tA=function(n){(this.C=n)?this.hide():this.N&&this.show()}; g.d.aF=function(){this.X||this.ZC();this.showControls=!0}; g.d.CR=function(){this.X||this.hK();this.showControls=!1}; g.d.ZC=function(){var n,q=(n=this.T)==null?void 0:n.getPlayerSize();n=q.width<380;var w;q=q.height<(((w=this.T)==null?0:w.isEmbedsShortsMode())?400:280);var X,P;(((X=this.T)==null?0:X.getPlayerStateObject().isCued())||((P=this.T)==null?0:g.Z(P.getPlayerStateObject(),1024)))&&n&&q||!this.N||this.C||(this.fade.show(),this.T.publish("infopanelpreviewvisibilitychange",!0),this.T.logVisibility(this.element,!0))}; g.d.hK=function(){this.N&&!this.C&&(this.fade.hide(),this.T.publish("infopanelpreviewvisibilitychange",!1),this.T.logVisibility(this.element,!1))}; g.d.ZLl=function(){this.X=!1;this.showControls||this.hK()};var vOi={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(vOi).reduce(function(n,q){n[vOi[q]]=q;return n},{}); var Ldz={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Ldz).reduce(function(n,q){n[Ldz[q]]=q;return n},{}); var M_t={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(M_t).reduce(function(n,q){n[M_t[q]]=q;return n},{});var xfD,DfD;xfD=[{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"}];DfD=[{option:0,text:UQ(0)},{option:.25,text:UQ(.25)},{option:.5,text:UQ(.5)},{option:.75,text:UQ(.75)},{option:1,text:UQ(1)}]; g.mC=[{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:xfD},{option:"fontSizeIncrement",text:"Tamanho da fonte",options:[{option:-2,text:UQ(.5)},{option:-1,text:UQ(.75)},{option:0,text:UQ(1)},{option:1, text:UQ(1.5)},{option:2,text:UQ(2)},{option:3,text:UQ(3)},{option:4,text:UQ(4)}]},{option:"background",text:"Cor de fundo",options:xfD},{option:"backgroundOpacity",text:"Opacidade de fundo",options:DfD},{option:"windowColor",text:"Cor da janela",options:xfD},{option:"windowOpacity",text:"Opacidade da janela",options:DfD},{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:UQ(.25)},{option:.5,text:UQ(.5)},{option:.75,text:UQ(.75)},{option:1,text:UQ(1)}]}];var hQz=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.m(OaO,g.Um);g.d=OaO.prototype; g.d.J6=function(n){n.repeat||(this.C.YO=!1);var q=!1,w=n.keyCode,X=gt(n),P=!n.altKey&&!n.ctrlKey&&!n.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||hQz.includes(w)),R=!1,c=!1,k=this.api.B();n.defaultPrevented?(P=!1,c=!0):k.bx&&!this.api.isMutedByEmbedsMutedAutoplay()&&(P=!1);if(w===9)q=!0;else{if(X)switch(w){case 32:case 13:if(X.tagName==="BUTTON"||X.tagName==="A"||X.tagName==="INPUT")q=!0,P=!1;else if(P){var r=X.getAttribute("role");!r||r!=="option"&&r!=="button"&&r.indexOf("menuitem")!==0|| (q=!0,X.click(),R=!0)}break;case 37:case 39:case 36:case 35:q=X.getAttribute("role")==="slider";break;case 38:case 40:r=X.getAttribute("role"),X=w===38?X.previousSibling:X.nextSibling,r==="slider"?q=!0:P&&(r==="option"?(X&&X.getAttribute("role")==="option"&&X.focus(),R=q=!0):r&&r.indexOf("menuitem")===0&&(X&&X.hasAttribute("role")&&X.getAttribute("role").indexOf("menuitem")===0&&X.focus(),R=q=!0))}if(P&&!R)switch(w){case 38:R=Math.min(this.api.getVolume()+5,100);Ih(this.zz,R,!1);this.api.setVolume(R); c=R=!0;break;case 40:R=Math.max(this.api.getVolume()-5,0);Ih(this.zz,R,!0);this.api.setVolume(R);c=R=!0;break;case 36:this.api.sT()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),c=R=!0);break;case 35:this.api.sT()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),c=R=!0)}}q&&dy(this,!0);(q||c)&&this.XC.BN();(R||P&&this.handleGlobalKeyDown(w,n.shiftKey,n.ctrlKey,n.altKey,n.metaKey,n.key,n.code,n.repeat))&&n.preventDefault();k.V&&(n={keyCode:n.keyCode, altKey:n.altKey,ctrlKey:n.ctrlKey,metaKey:n.metaKey,shiftKey:n.shiftKey,handled:n.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.l7("onKeyPress",n))}; g.d.t6=function(n){var q=n.keyCode;(!this.api.Z("web_player_spacebar_control_bugfix")||this.api.Z("web_player_spacebar_control_bugfix")&&!this.C.i8)&&this.handleGlobalKeyUp(q,n.shiftKey,n.ctrlKey,n.altKey,n.metaKey,n.key,n.code)&&n.preventDefault()}; g.d.handleGlobalKeyUp=function(n,q,w,X,P,R,c){this.api.publish("keyboardserviceglobalkeyup",{keyCode:n,shiftKey:q,ctrlKey:w,altKey:X,metaKey:P,key:R,code:c});q=!1;if(this.C.YO)return q;(R=g.Ba(this.api.fM()))&&(R=R.d5)&&R.xE&&(R.Hp(n),q=!0);switch(n){case 9:dy(this,!0);q=!0;break;case 32:if(this.api.Z("web_speedmaster_spacebar_control")&&(!this.api.Z("web_player_spacebar_control_bugfix")&&!this.C.i8||this.api.Z("web_player_spacebar_control_bugfix"))&&!this.api.B().bx){var k,r;n=(k=this.progressBar)== null?void 0:(r=k.X)==null?void 0:r.isEnabled;q=this.GP(n)}break;case 39:(kg?X:w)&&!P&&this.api.sT()&&this.api.Z("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),k=(k=this.api.getVideoData())?k.TT:[],r=jmY(k,this.api.getCurrentTime()*1E3),r!==-1&&this.N!=null&&(this.N.zg(1,k[r].title),this.api.seekTo(k[r].startTime/1E3,void 0,void 0,void 0,52),q=!0))}return q}; g.d.handleGlobalKeyDown=function(n,q,w,X,P,R,c,k){k||(this.C.YO=!1);var r=!1,e=this.api.B();if(e.bx&&!this.api.isMutedByEmbedsMutedAutoplay())return r;var f=g.Ba(this.api.fM());if(f&&(f=f.d5)&&f.xE)switch(n){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:r=f.fZ(n)}e.D||r||(r=R||String.fromCharCode(n).toLowerCase(),this.X+=r,"awesome".indexOf(this.X)===0||this.api.Z("web_player_rtr_ctrls")&&"bday".indexOf(this.X)===0?(r=!0,4===this.X.length&&this.X==="bday"&&this.api.Z("web_player_rtr_ctrls")&& (jG0(this.K),this.XC.BN()),7===this.X.length&&this.X==="awesome"&&Lpy(this.api.getRootNode(),"ytp-color-party")):(this.X=r,r="awesome".indexOf(this.X)===0||"bday".indexOf(this.X)===0));if(!r&&(!this.api.isMutedByEmbedsMutedAutoplay()||hQz.includes(n))){var O=this.api.getVideoData(),H,U;f=(H=this.progressBar)==null?void 0:(U=H.X)==null?void 0:U.isEnabled;H=O?O.TT:[];U=kg?X:w;switch(n){case 80:q&&!e.D0&&(cY(this.zz,DHO(),"Anterior"),this.api.previousVideo(),r=!0);break;case 78:q&&!e.D0&&(cY(this.zz, Hl(),"Pr\u00f3ximo"),this.api.nextVideo(),r=!0);break;case 74:this.api.sT()&&(this.api.startSeekCsiAction(),this.N?this.api.Z("enable_key_press_seek_logging")?(r=gy(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.N.KX(-1,10,r)):this.N.KX(-1,10):cY(this.zz,{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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),r=!0);break;case 76:this.api.sT()&&(this.api.startSeekCsiAction(),this.N?this.api.Z("enable_key_press_seek_logging")?(r=gy(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.N.KX(1,10,r)):this.N.KX(1,10):cY(this.zz,{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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),r=!0);break;case 37:this.api.sT()&&(this.api.startSeekCsiAction(),U?(U=sms(H,this.api.getCurrentTime()*1E3),U!==-1&&this.N!=null&&(this.N.zg(-1,H[U].title),this.api.seekTo(H[U].startTime/1E3,void 0,void 0,void 0,53),r=!0)):(this.N?this.api.Z("enable_key_press_seek_logging")?(r=gy(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.N.KX(-1,5,r)):this.N.KX(-1,5):cY(this.zz,{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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),r=!0));break;case 39:this.api.sT()&&(this.api.startSeekCsiAction(),U?this.api.Z("web_enable_keyboard_shortcut_for_timely_actions")||(U=jmY(H,this.api.getCurrentTime()*1E3),U!==-1&&this.N!=null&&(this.N.zg(1,H[U].title),this.api.seekTo(H[U].startTime/1E3,void 0,void 0,void 0,52),r=!0)):(this.N!=null?this.api.Z("enable_key_press_seek_logging")?(r=gy(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.N.KX(1,5,r)):this.N.KX(1, 5):cY(this.zz,{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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),r=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),Ih(this.zz,this.api.getVolume(),!1)):(this.api.mute(),Ih(this.zz,0,!0));r=!0;break;case 32:r=this.api.Z("web_speedmaster_spacebar_control")?!this.api.B().D0:this.GP(f);break;case 75:r=this.GP(f);break;case 190:q?e.enableSpeedOptions&&Has(this)&&(r=this.api.getPlaybackRate(),this.api.setPlaybackRate(r+.25,!0),r66(this.zz,!1),r=!0):this.api.sT()&&(this.step(1),r=!0);break;case 188:q? e.enableSpeedOptions&&Has(this)&&(r=this.api.getPlaybackRate(),this.api.setPlaybackRate(r-.25,!0),r66(this.zz,!0),r=!0):this.api.sT()&&(this.step(-1),r=!0);break;case 70:KIm(this.api)&&(this.api.toggleFullscreen().catch(function(){}),r=!0); break;case 27:f?(this.progressBar.nN(),r=!0):this.D()&&(r=!0)}if(e.controlsType!=="3")switch(n){case 67:g.Gd(this.api.fM())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),jTz(this.zz,!e||e&&!e.displayName),r=!0);break;case 79:yu(this,"textOpacity");break;case 87:yu(this,"windowOpacity");break;case 187:case 61:yu(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:yu(this,"fontSizeIncrement",!0,!0)}var t;q||w||X||(n>=48&&n<=57?t=n-48:n>=96&&n<=105&&(t=n-96));t!=null&&this.api.sT()&& (this.api.startSeekCsiAction(),e=this.api.getProgressState(),this.api.seekTo(t/10*(e.seekableEnd-e.seekableStart)+e.seekableStart,void 0,void 0,void 0,81),r=!0);r&&this.XC.BN()}this.C.C6=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:n,shiftKey:q,ctrlKey:w,altKey:X,metaKey:P,key:R,code:c,repeat:k},this.C);this.C.C6&&(r=!0,this.XC.BN());return r}; g.d.step=function(n){this.api.sT();if(this.api.getPlayerStateObject().isPaused()){var q=this.api.getVideoData().X;q&&(q=q.video)&&this.api.seekBy(n/(q.fps||30),void 0,void 0,n>0?77:78)}}; g.d.GP=function(n){if(!this.api.B().D0){var q;var w,X=(q=this.api.getVideoData())==null?void 0:(w=q.getPlayerResponse())==null?void 0:w.playabilityStatus;if(X){var P;q=((P=g.u(X.miniplayer,DEz))==null?void 0:P.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else q=!1;q&&this.api.Uq("onExpandMiniplayer");n?this.progressBar.fI():(n=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.zz.bF(n),n?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.d.Xf=function(){g.uF(this.W);g.Um.prototype.Xf.call(this)};g.m(ah,g.Q);ah.prototype.dl=function(){var n=this.T.B(),q=n.C||this.T.Z("web_player_hide_overflow_button_if_empty_menu")&&this.fb.isEmpty();n=g.Q2(n)&&g.Sd(this.T)&&g.Z(this.T.getPlayerStateObject(),128);var w=this.T.getPlayerSize();this.visible=this.T.lP()&&!n&&w.width>=240&&!this.T.getVideoData().bS&&!q&&!this.T.isEmbedsShortsMode();g.XW(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.T.DL();this.T.logVisibility(this.element,this.visible&&this.K)}; ah.prototype.jj=function(n){g.Q.prototype.jj.call(this,n);this.T.logVisibility(this.element,this.visible&&n)}; ah.prototype.Xf=function(){g.Q.prototype.Xf.call(this);g.qX(this.element,"ytp-overflow-button-visible")};g.m(U_s,g.wL);g.d=U_s.prototype;g.d.HD=function(n){n=gt(n);g.gr(this.element,n)&&(g.gr(this.N,n)||g.gr(this.closeButton,n)||PH(this))}; g.d.hK=function(){g.wL.prototype.hK.call(this);this.T.w_(this.element)}; g.d.show=function(){this.xE&&this.T.publish("OVERFLOW_PANEL_OPENED");g.wL.prototype.show.call(this);this.element.setAttribute("aria-modal","true");d_h(this,!0)}; g.d.hide=function(){g.wL.prototype.hide.call(this);this.element.removeAttribute("aria-modal");d_h(this,!1)}; g.d.onFullscreenToggled=function(n){!n&&this.hf()&&PH(this)}; g.d.isEmpty=function(){return this.actionButtons.length===0}; g.d.focus=function(){for(var n=g.a(this.actionButtons),q=n.next();!q.done;q=n.next())if(q=q.value,q.xE){q.focus();break}};g.m(gCO,g.Q);gCO.prototype.onClick=function(n){g.gL(n,this.api)&&this.api.playVideoAt(this.index)};g.m(m_O,g.wL);g.d=m_O.prototype;g.d.show=function(){g.wL.prototype.show.call(this);this.N.j(this.api,"videodatachange",this.T0);this.N.j(this.api,"onPlaylistUpdate",this.T0);this.T0()}; g.d.hide=function(){g.wL.prototype.hide.call(this);g.Vs(this.N);this.updatePlaylist(null)}; g.d.T0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.B().C&&(this.C5("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.wM(this.C),this.C=null))}; g.d.Qt=function(){var n=this.playlist,q=n.author,w=q?"por $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",X={CURRENT_POSITION:String(n.index+1),PLAYLIST_LENGTH:String(n.length)};q&&(X.AUTHOR=q);this.update({title:n.title,subtitle:g.NB(w,X),playlisturl:this.api.getVideoUrl(!0)});q=n.X;if(q===this.W)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[n.index];else{w=g.a(this.playlistData);for(X=w.next();!X.done;X=w.next())X.value.dispose(); w=n.length;this.playlistData=[];for(X=0;X=this.X&&!n.C&&!q.isAd()&&!this.api.isEmbedsShortsMode()}else n=!1;this.visible=n;this.bL(this.visible);g.XW(this.element,"ytp-search-button-visible",this.visible);g.XW(this.element,"ytp-show-search-title",!this.api.lP());this.api.logVisibility(this.element,this.visible&&this.K)}; Fy.prototype.jj=function(n){g.Q.prototype.jj.call(this,n);this.api.logVisibility(this.element,this.visible&&n)};g.m($3,g.Q); $3.prototype.trigger=function(n,q,w,X){this.show();if(this.W&&n!==this.W){var P=1;this.X&&(P=D_6(this));$_h(this,P,!1);x_s(this)}this.W=n;this.C=this.W===-1?this.V:this.L;n="";q?(this.G+=q,n=g.Up(this.G)):this.G=0;this.updateValue(this.W===-1?"durationBack":"durationForward",n);if(this.N==="hidden"||this.N==="fading-out")q=0,this.N==="fading-out"&&(q=D_6(this),Moh(this)),vCz(this,q),this.N!=="fading-out"&&Lmh(this,this.C.querySelector(".ytp-seek-overlay-arrow-persistent")),this.N="fading-in";else if(this.N=== "fading-in"||this.N==="lingering")q=this.C.querySelector(".ytp-seek-overlay-duration"),n=g.Jv(this.T.B().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,q.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+n+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),Moh(this),this.N==="lingering"&&(this.D.stop(),this.D.start());this.qP=(0,g.m$)();w&&hjO(this,w,X)}; $3.prototype.fA=function(n,q,w,X){this.trigger(n,X)}; $3.prototype.KX=function(n,q,w){this.trigger(n,q);w&&(n=n===-1?this.L.visualElement:this.V.visualElement,w={seekData:w},(q=g.Uk())&&g.SY(KC)(void 0,q,n,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",w,void 0))}; $3.prototype.zg=function(n,q,w){this.trigger(n,void 0,q,w)};g.m(vY,g.Q);vY.prototype.onClick=function(){var n=this,q=this.api.B(),w=this.api.getVideoData(this.api.getPresentingPlayerType()),X=this.api.getPlaylistId();q=this.api.Z("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):q.getVideoUrl(w.videoId,X,void 0,!0);if(navigator.share)try{var P=navigator.share({title:w.title,url:q});P instanceof Promise&&P.catch(function(R){G_x(n,R)})}catch(R){R instanceof Error&&G_x(this,R)}else this.N.T7(),PH(this.X,this.element,!1); this.api.logClick(this.element)}; vY.prototype.dl=function(){var n=this.api.B(),q=this.api.isEmbedsShortsMode();g.XW(this.element,"ytp-show-share-title",g.Q2(n)&&!q);this.N.AM()&&q?(n=(this.api.yT().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K$(this.element,"right",n+"px")):q&&g.K$(this.element,"right","0px");this.updateValue("icon",{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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=li0(this);g.XW(this.element,"ytp-share-button-visible",this.visible);this.bL(this.visible);this.tooltip.DL();this.api.logVisibility(this.element,li0(this)&&this.K)}; vY.prototype.jj=function(n){g.Q.prototype.jj.call(this,n);this.api.logVisibility(this.element,this.visible&&n)}; vY.prototype.Xf=function(){g.Q.prototype.Xf.call(this);g.qX(this.element,"ytp-share-button-visible")};g.m(ECs,g.wL);g.d=ECs.prototype;g.d.J7=function(n){n=gt(n);g.gr(this.D,n)||g.gr(this.closeButton,n)||PH(this)}; g.d.hK=function(){g.wL.prototype.hK.call(this);this.tooltip.w_(this.element);this.api.logVisibility(this.N,!1);for(var n=g.a(this.C),q=n.next();!q.done;q=n.next())q=q.value,this.api.hasVe(q.element)&&this.api.logVisibility(q.element,!1)}; g.d.show=function(){var n=this.xE;g.wL.prototype.show.call(this);this.dl();n||this.api.Uq("onSharePanelOpened")}; g.d.QZ=function(){this.xE&&this.dl()}; g.d.dl=function(){var n=this;g.N4(this.element,"ytp-share-panel-loading");g.qX(this.element,"ytp-share-panel-fail");var q=this.api.getVideoData(),w=this.api.getPlaylistId()&&this.W.checked;q.getSharePanelCommand&&vK(this.api.zx(),q.getSharePanelCommand,{includeListId:w}).then(function(X){n.zp()||(g.qX(n.element,"ytp-share-panel-loading"),Al0(n,X))}); q=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",q);this.updateValue("linkText",q);this.updateValue("shareLinkWithUrl",g.NB("Compartilhar o link $URL",{URL:q}));V3(this.N);this.api.logVisibility(this.N,!0)}; g.d.onFullscreenToggled=function(n){!n&&this.hf()&&PH(this)}; g.d.focus=function(){this.N.focus()}; g.d.Xf=function(){g.wL.prototype.Xf.call(this);oCu(this)};g.m(SKs,$c);g.d=SKs.prototype;g.d.Xf=function(){Jls(this);$c.prototype.Xf.call(this)}; g.d.d3=function(n){n.target!==this.dismissButton.element&&(this.J_(!1),this.T.Uq("innertubeCommand",this.onClickCommand))}; g.d.WE=function(){this.oH=!0;this.J_(!0);this.Nl()}; g.d.L_P=function(n){this.G=n;this.Nl()}; g.d.onVideoDataChange=function(n,q){if(n=!!q.videoId&&this.videoId!==q.videoId)this.videoId=q.videoId,this.oH=!1,this.vW=!0,this.V=this.PW=!1,Jls(this),Zax(this,!1),this.X=this.N=!1,M$(this),uHh(this);if(n||!q.videoId)this.qP=this.W=!1;var w,X;if(q==null?0:(w=q.getPlayerResponse())==null?0:(X=w.videoDetails)==null?0:X.isLiveContent)this.d$(!1);else{var P,R,c;q=g.u((P=q.getWatchNextResponse())==null?void 0:(R=P.playerOverlays)==null?void 0:(c=R.playerOverlayRenderer)==null?void 0:c.productsInVideoOverlayRenderer, V9w);this.G=this.enabled=!1;if(q){if(P=q==null?void 0:q.featuredProductsEntityKey){R=g.mB.getState().entities;var k;if((k=QM(R,"featuredProductsEntity",P))==null?0:k.productsData){this.d$(!1);return}}if(!q.text||!q.onClickCommand||!q.timing){this.d$(!1);return}this.enabled=!0;if(!this.W){var r;k=(r=q.badgeInteractionLogging)==null?void 0:r.trackingParams;(this.W=!!k)&&this.T.setTrackingParams(this.badge.element,k||null)}if(!this.qP){var e;if(this.qP=!((e=q.dismissButton)==null||!e.trackingParams)){var f; this.T.setTrackingParams(this.dismissButton.element,((f=q.dismissButton)==null?void 0:f.trackingParams)||null)}}q.isContentForward&&(r=q.productsData,Zax(this,!0),uHh(this),r=Qmh(this,r),e=[],r.length>0&&e.push(r[0]),r.length>1&&(f=new g.Q({J:"div",Y:"ytp-suggested-action-more-products-icon"}),g.K(this,f),e.push(f),e.push.apply(e,g.D(r.slice(1)))),this.D=new g.Q({J:"div",S:e,Y:"ytp-suggested-action-content-forward-container"}),g.K(this,this.D),this.Tp.element.append(this.D.element));this.text=g.kY(q.text); var O;if(r=(O=q.dismissButton)==null?void 0:O.a11yLabel)this.IH=g.kY(r);this.onClickCommand=q.onClickCommand;this.timing=q.timing;this.Zf()}o3T(this);Fg(this);this.Nl()}}; g.d.Y9=function(){return!this.G&&this.enabled&&!this.oH&&!this.T.lP()&&!this.Me&&(this.V||this.vW)}; g.d.d2=function(n){$c.prototype.d2.call(this,n);if(this.N||this.X)this.timing&&LU(this.timing.preview)&&(this.N=!1,M$(this),this.X=!1,M$(this),this.T.wg("shopping_overlay_preview_collapsed"),this.T.wg("shopping_overlay_preview_expanded"),n=x3(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),LU(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.T.wg("shopping_overlay_expanded"),n.end=this.timing.expanded.endSec*1E3),this.T.Zf([n])), this.PW=!0,Fg(this);M$(this)}; g.d.d$=function(n){(this.V=n)?(TL(this),Fg(this,!1)):(Jls(this),this.D0.start());this.Nl()}; g.d.Zf=function(n){var q=this.timing;n=(n===void 0?0:n)+this.T.getCurrentTime();var w=[],X=q.visible,P=q.preview;q=q.expanded;LU(X)&&(YKy(X,n),w.push(x3(X.startSec,X.endSec,"shopping_overlay_visible")));LU(P)&&(YKy(P,n),X=P.startSec+1,w.push(x3(P.startSec,X,"shopping_overlay_preview_collapsed")),w.push(x3(X,P.endSec,"shopping_overlay_preview_expanded")));LU(q)&&(YKy(q,n),w.push(x3(q.startSec,q.endSec,"shopping_overlay_expanded")));this.T.Zf(w)}; g.d.Nl=function(){$c.prototype.Nl.call(this);this.T.getRootNode()&&g.XW(this.T.getRootNode(),"ytp-shopping-pill-shown",this.Y9())};g.m(Nhm,g.Q); Nhm.prototype.dl=function(){var n=this.api.B();this.bL(g.Q2(n)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.xE);var q=this.api.getVideoData(),w=!1;this.api.getPresentingPlayerType()===2?w=!!q.videoId&&!!q.isListed&&!!q.author&&!!q.qe&&!!q.profilePicture:g.Q2(n)&&(w=!!q.videoId&&!!q.qe&&!!q.profilePicture&&!q.bS&&!n.C&&!(n.G&&this.api.getPlayerSize().width<200));var X=q.profilePicture;n=g.Q2(n)?q.expandedTitle:q.author;X=X===void 0? "":X;n=n===void 0?"":n;w?(this.X!==X&&(this.N.style.backgroundImage="url("+X+")",this.X=X),this.updateValue("channelLogoLabel",g.NB("Foto do canal $CHANNEL_NAME",{CHANNEL_NAME:n})),g.N4(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.qX(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.N,w&&this.K);this.api.logVisibility(this.channelName,w&&this.K);this.subscribeButton&&(this.subscribeButton.channelId=q.qY);this.updateValue("expandedTitle",q.expandedTitle)};g.m(DS,g.wL);DS.prototype.show=function(){g.wL.prototype.show.call(this);this.N.start()}; DS.prototype.hide=function(){g.wL.prototype.hide.call(this);this.N.stop()}; DS.prototype.FI=function(n,q){n==="dataloaded"&&((this.bI=q.bI,this.hJ=q.hJ,isNaN(this.bI)||isNaN(this.hJ))?this.C&&(this.T.wg("intro"),this.T.removeEventListener(g.Aq("intro"),this.G),this.T.removeEventListener(g.YS("intro"),this.D),this.T.removeEventListener("onShowControls",this.W),this.hide(),this.C=!1):(this.T.addEventListener(g.Aq("intro"),this.G),this.T.addEventListener(g.YS("intro"),this.D),this.T.addEventListener("onShowControls",this.W),n=new g.og(this.bI,this.hJ,{priority:9,namespace:"intro"}), this.T.Zf([n]),this.C=!0))};g.m(ha,g.Q);ha.prototype.onClick=function(){this.T.aG()}; ha.prototype.dl=function(){var n=!0;g.Q2(this.T.B())&&(n=n&&this.T.yT().getPlayerSize().width>=480);this.bL(n);n=this.updateValue;var q=this.T.Z("delhi_modern_web_player_icons"),w=q?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,U:{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"}}]};q=q?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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"}}]};n.call(this,"icon",this.T.xw()?w:q)};g.m(qEs,g.Q);qEs.prototype.Xf=function(){this.N=null;g.Q.prototype.Xf.call(this)};g.m(l2,g.Q);l2.prototype.onClick=function(){this.T.Uq("innertubeCommand",this.X)}; l2.prototype.L=function(){if(this.T.Z("delhi_modern_web_player")){var n=this.T.getPlayerSize();n.width&&(this.element.style.maxWidth=n.width*.25+"px")}}; l2.prototype.PW=function(n){n!==this.G&&(this.update({title:n,ariaLabel:n}),this.G=n);n?this.show():this.hide()}; l2.prototype.qP=function(){this.N.disabled=this.X==null;g.XW(this.N,"ytp-chapter-container-disabled",this.N.disabled);this.hU()};g.m(GR,l2);GR.prototype.onClickCommand=function(n){g.u(n,gY)&&this.hU()}; GR.prototype.updateVideoData=function(n,q){var w,X,P;n=g.u((w=q.getWatchNextResponse())==null?void 0:(X=w.playerOverlays)==null?void 0:(P=X.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,uE);w=g.u(n==null?void 0:n.playerBarActionButton,g.ZR);if(this.T.Z("web_player_updated_entrypoint")){this.V=lG(w==null?void 0:w.text);var R;X=(R=w==null?void 0:w.tooltip)!=null?R:"Ver cap\u00edtulo";this.D.setAttribute("title",X)}this.X=w==null?void 0:w.command;l2.prototype.qP.call(this)}; GR.prototype.hU=function(){var n=this.V,q=this.W.N,w,X=((w=this.T.getLoopRange())==null?void 0:w.type)==="clips";if(q.length>1&&!X){n=this.T.getProgressState().current*1E3;w=ta(q,n);n=q[w].title||"Cap\u00edtulos";if(w!==this.currentIndex||this.C)this.T.Uq("innertubeCommand",q[w].onActiveCommand),this.currentIndex=w;this.C=!1}else this.C=!0;l2.prototype.PW.call(this,n)};g.m(CU,g.R6);CU.prototype.X=function(){var n;(n=this.element.parentElement)==null||n.classList.contains("ytp-right-controls-left");(this.N=!this.N)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; CU.prototype.isExpanded=function(){return this.N};g.m(EQ,g.Q);EQ.prototype.C=function(n){g.Z(n.state,32)?X2x(this,this.api.Ei()):this.xE&&(g.Z(n.state,16)||g.Z(n.state,1))||this.fade.hide()}; EQ.prototype.Dm=function(){var n=this.api.getPlayerStateObject();(g.Z(n,32)||g.Z(n,16))&&Pws(this)}; EQ.prototype.W=function(){this.frameIndex=NaN;Pws(this)}; EQ.prototype.hide=function(){this.N&&X2x(this,null);g.Q.prototype.hide.call(this)};g.m(Rbs,g.Q);g.d=Rbs.prototype;g.d.onClick=function(){var n=this;if(this.T.B().qe||this.T.B().G){this.T.logClick(this.element);try{this.T.toggleFullscreen().catch(function(q){n.Zn(q)})}catch(q){this.Zn(q)}}else PH(this.message,this.element,!0)}; g.d.Zn=function(n){String(n).includes("fullscreen error")?g.TQ(n):g.pC(n);this.o5()}; g.d.o5=function(){this.disable();this.message.ZC(this.element,!0)}; g.d.K3=function(){fD()===this.T.getRootNode()?this.C.start():(this.C.stop(),this.message&&this.message.hide())}; g.d.Bv=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var n=window.screen.width*.9,q=window.screen.height*.9,w=Math.max(window.outerWidth,window.innerWidth),X=Math.max(window.outerHeight,window.innerHeight);if(w>X!==n>q){var P=w;w=X;X=P}n>w&&q>X&&this.o5()}}; g.d.disable=function(){var n=this;if(!this.message){var q=(ju(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Tela cheia indispon\u00edvel. $BEGIN_LINKSaiba mais$END_LINK":"Seu navegador n\u00e3o tem suporte para tela cheia. $BEGIN_LINKSaiba mais$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.wL(this.T,{J:"div",Jg:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:"0"},S:[q[0],{J:"a",U:{href:"https://support.google.com/youtube/answer/6276924", target:this.T.B().L},Ag:q[2]},q[4]]},100,!0);this.message.hide();g.K(this,this.message);this.message.subscribe("show",function(w){n.X.Lc(n.message,w)}); g.Zp(this.T,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.N)();this.N=null}}; g.d.dl=function(){var n=KIm(this.T),q=this.T.B().G&&this.T.getPlayerSize().width<250;this.bL(n&&!q);var w;((w=this.T.B())==null?0:w.Z("embeds_use_parent_visibility_in_ve_logging"))?this.T.logVisibility(this.element,this.xE&&this.K):this.T.logVisibility(this.element,this.xE)}; g.d.ST=function(n){if(n){var q=g.oo(this.T,"Sair da tela inteira","f");this.update({"data-title-no-tooltip":"Sair da tela inteira"});document.activeElement===this.element&&this.T.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(w){g.TQ(w)})}else q=g.oo(this.T,"Tela inteira","f"),this.update({"data-title-no-tooltip":"Tela inteira"}); n=ct0(this,n);q=this.message?null:q;this.update({title:q,icon:n});this.X.Qu().DL()}; g.d.Xf=function(){this.message||((0,this.N)(),this.N=null);g.Q.prototype.Xf.call(this)}; g.d.jj=function(n){g.Q.prototype.jj.call(this,n);var q;((q=this.T.B())==null?0:q.Z("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.xE&&n)};g.m(oh,g.Q);oh.prototype.onClick=function(){this.T.logClick(this.element);this.T.seekBy(this.N,!0);var n=this.N>0?1:-1,q=Math.abs(this.N),w=this.T.Wl().fm;w&&w.KX(n,q);this.X.isActive()?this.C=!0:(n=["ytp-jump-spin"],this.N<0&&n.push("backwards"),this.element.classList.add.apply(this.element.classList,g.D(n)),g.K9(this.X))};g.m(b2,l2);b2.prototype.onClickCommand=function(n){g.u(n,y_0)&&this.hU()}; b2.prototype.updateVideoData=function(){var n,q;this.X=(n=kIO(this))==null?void 0:(q=n.onTap)==null?void 0:q.innertubeCommand;l2.prototype.qP.call(this)}; b2.prototype.hU=function(){var n="",q=this.W.G,w,X=(w=kIO(this))==null?void 0:w.headerTitle;w=X?g.kY(X):"";var P;X=((P=this.T.getLoopRange())==null?void 0:P.type)==="clips";q.length>1&&!X&&(n=this.T.getProgressState().current*1E3,P=rlu(q,n),n=P!=null?q[P].title:w,P!=null&&P!==this.currentIndex&&(this.T.Uq("innertubeCommand",q[P].onActiveCommand),this.currentIndex=P));l2.prototype.PW.call(this,n)};g.m(Aa,g.Q);Aa.prototype.onClick=function(){this.T.Uq("onCollapseMiniplayer");this.T.logClick(this.element)}; Aa.prototype.dl=function(){this.visible=!this.T.isFullscreen();this.bL(this.visible);this.T.logVisibility(this.element,this.visible&&this.K)}; Aa.prototype.jj=function(n){g.Q.prototype.jj.call(this,n);this.T.logVisibility(this.element,this.visible&&n)};g.m(Y3,g.Q);Y3.prototype.init=function(){this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.D);this.updateValue("stepvalue",this.V);this.updateValue("slidervalue",this.N);rt3(this,this.N)}; Y3.prototype.C=function(){KU(this,Number(this.X.value));this.X.focus()}; Y3.prototype.G=function(n){if(!n.defaultPrevented){switch(n.code){case "ArrowDown":n=-this.V;break;case "ArrowUp":n=this.V;break;default:return}KU(this,Math.min(this.D,Math.max(Number((this.N+n).toFixed(2)),this.W)))}};g.m(Sw,Y3);Sw.prototype.onVolumeChange=function(n){if(this.L)this.L=!1;else{var q=n.volume;q===0||n.muted?KU(this,0):KU(this,q)}}; Sw.prototype.C=function(){Y3.prototype.C.call(this);this.qP(this.N)}; Sw.prototype.PW=function(n){var q=-n.deltaY;q=n.deltaMode===WheelEvent.DOM_DELTA_LINE||n.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Y1(this.N+q,0,100):g.Y1(this.N+g.Y1(q/10,-10,10),0,100);q===0?KU(this,0):KU(this,q);this.qP(q);n.preventDefault();n.stopPropagation()}; Sw.prototype.vW=function(n,q){this.L=!0;n===0||q?this.T.mute():(this.T.isMuted()&&this.T.unMute(),this.T.setVolume(n))};g.m(jru,g.Q);g.m(BY,g.Q);g.d=BY.prototype;g.d.HU=function(){if(!this.T.zn()){this.updateValue("dataTooltipOffsetY",-120);var n;(n=this.N)!=null&&u2(n,!0);var q;(q=this.N)!=null&&q.N.stop()}}; g.d.KZ=function(){var n;(n=this.N)!=null&&n.N.start()}; g.d.WU=function(n){this.visible=n.width>=300||this.n5;this.bL(this.visible);this.T.logVisibility(this.element,this.visible&&this.K)}; g.d.xV=function(){this.T.B().Tp?this.T.isMuted()?this.T.unMute():this.T.mute():PH(this.message,this.element,!0);this.T.logClick(this.element)}; g.d.py5=function(n){if(this.T.B().Tp&&this.N)if(n.target===this.C){var q;if(!this.T.zn()||((q=this.N)==null?0:q.isVisible))this.xV();else{var w;(w=this.N)!=null&&u2(w,!0)}}else{var X;(X=this.N)!=null&&u2(X,!0)}else this.xV()}; g.d.onVolumeChange=function(n){this.setVolume(n.volume,n.muted)}; g.d.setVolume=function(n,q){var w=this,X=q?0:n/100;n=X===0?1:n>50?1:0;if(this.L!==n){var P=this.V;isNaN(P)?i6Y(this,n):VKx(this.Tp,function(c){i6Y(w,P+(w.L-P)*c)},250); this.L=n}X=X===0?1:0;if(this.G!==X){var R=this.vW;isNaN(R)?H6O(this,X):VKx(this.WW,function(c){H6O(w,R+(w.G-R)*c)},250); this.G=X}ebx(this,q)}; g.d.jj=function(n){g.Q.prototype.jj.call(this,n);this.T.logVisibility(this.element,this.visible&&n)}; var feT=["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"],O6s=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.m(g.Qu,g.Q);g.d=g.Qu.prototype;g.d.onStateChange=function(n){this.eg(n.state);var q;((q=this.T.B())==null?0:q.Z("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.xE&&this.K)}; g.d.eg=function(n){var q=g.BD(this.T.getVideoData()),w=!1;n.isOrWillBePlaying()?n=q?4:2:g.Z(n,2)?(n=3,w=q):n=1;this.element.disabled=w;if(this.N!==n){q=null;switch(n){case 2:q=g.oo(this.T,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:q="Reiniciar";this.update({"data-title-no-tooltip":"Reiniciar"});break;case 1:q=g.oo(this.T,"Reproduzir","k");this.update({"data-title-no-tooltip":"Reproduzir"});break;case 4:q="Interromper reprodu\u00e7\u00e3o ao vivo",this.update({"data-title-no-tooltip":"Interromper reprodu\u00e7\u00e3o ao vivo"})}n=== 3?this.update({title:q,icon:U6s(this,n)}):(this.update({title:q}),(q=U6s(this,n))&&this.N&&this.N!==3?ToO(this.transition,this.element,q):this.updateValue("icon",q));this.tooltip.DL();this.N=n}}; g.d.onVideoDataChange=function(){g.XW(this.element,"ytp-play-button-playlist",g.Sd(this.T))}; g.d.GP=function(n){this.T.logClick(this.element);if(this.T.getPlayerStateObject().isOrWillBePlaying())this.T.pauseVideo();else{if(this.T.isMinimized()&&this.T.getPlayerStateObject().isCued()){var q={},w;if((w=this.T.getVideoData())==null?0:w.D)q.cttAuthInfo={token:this.T.getVideoData().D,videoId:this.T.getVideoData().videoId};V6("direct_playback",q);this.T.mL().timerName="direct_playback"}this.T.playVideo()}this.T.isMinimized()&&(n==null?void 0:n.type)==="click"&&this.element.blur()}; g.d.jj=function(n){g.Q.prototype.jj.call(this,n);var q;((q=this.T.B())==null?0:q.Z("embeds_use_parent_visibility_in_ve_logging"))&&this.T.logVisibility(this.element,this.xE&&n)};g.m(g.ZS,g.Q);g.d=g.ZS.prototype;g.d.onVideoDataChange=function(){g_Y(this);this.W&&(this.wM(this.W),this.W=null);this.videoData=this.T.getVideoData(1);if(this.playlist=this.T.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.W=this.j(this.T,"progresssync",this.t7);this.C=m66(this);d6x(this);this.z0(this.T.yT().getPlayerSize())}; g.d.z0=function(n){n=n===void 0?this.T.yT().getPlayerSize():n;var q,w=((q=this.T.getLoopRange())==null?void 0:q.type)==="clips";n=(g.Sd(this.T)||this.N&&g.JE(this.T)&&!this.T.Z("web_hide_next_button")||ytY(this))&&!w&&(this.N||n.width>=400);this.bL(n);this.T.logVisibility(this.element,n)}; g.d.onClick=function(n){this.T.logClick(this.element);var q=!0;this.G?q=g.gL(n,this.T):n.preventDefault();q&&(this.N&&this.T.getPresentingPlayerType()===5?this.T.publish("ytoprerollinternstitialnext"):this.N?(Td(this.T.mL()),this.T.publish("playlistnextbuttonclicked",this.element),this.T.nextVideo(!0)):this.C?this.T.seekTo(0):(Td(this.T.mL()),this.T.publish("playlistprevbuttonclicked",this.element),this.T.previousVideo(!0)))}; g.d.t7=function(){var n=m66(this);n!==this.C&&(this.C=n,d6x(this))}; g.d.Xf=function(){this.X&&(this.X(),this.X=null);g_Y(this);g.Q.prototype.Xf.call(this)};g.m(VP3,g.Q);g.d=VP3.prototype;g.d.l5=function(n){this.FB(n.pageX);this.D9(n.pageX+n.deltaX);p2y(this)}; g.d.FB=function(n){this.qP=n-this.n5}; g.d.D9=function(n){n-=this.n5;!isNaN(this.qP)&&this.thumbnails.length>0&&(this.L=n-this.qP,this.thumbnails.length>0&&this.L!==0&&(this.C=this.V+this.L,n=L2h(this,this.C),this.C<=this.N/2&&this.C>=v_m(this)?(this.api.seekTo(n,!1,void 0,void 0,25),g.K$(this.vW,"transform","translateX("+(this.C-this.N/2)+"px)"),aeY(this,n)):this.C=this.V))}; g.d.nR=function(){this.PW&&(this.PW.qA=!0);var n=(0,g.m$)()-this.Ff<300;if(Math.abs(this.L)<5&&!n){this.Ff=(0,g.m$)();n=this.qP+this.L;var q=this.N/2-n;this.FB(n);this.D9(n+q);p2y(this);this.api.logClick(this.D)}p2y(this)}; g.d.h7=function(){Ja(this,this.api.getCurrentTime())}; g.d.play=function(n){this.api.seekTo(L2h(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();n&&this.api.logClick(this.playButton)}; g.d.onExit=function(n){this.api.seekTo(this.D0,void 0,void 0,void 0,63);this.api.playVideo();n&&this.api.logClick(this.dismissButton)}; g.d.UD=function(n,q){this.n5=n;this.N=q;Ja(this,this.api.getCurrentTime())}; g.d.enable=function(){this.isEnabled||(this.isEnabled=!0,this.D0=this.api.getCurrentTime(),aeY(this,this.D0),g.XW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Tp=this.j(this.element,"wheel",this.l5),this.logVisibility(this.isEnabled))}; g.d.disable=function(){this.isEnabled=!1;this.hide();g.XW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Tp&&this.wM(this.Tp);this.logVisibility(this.isEnabled)}; g.d.reset=function(){this.disable();this.W=[];this.HW=!1}; g.d.logVisibility=function(n){this.api.logVisibility(this.element,n);this.api.logVisibility(this.D,n);this.api.logVisibility(this.dismissButton,n);this.api.logVisibility(this.playButton,n)}; g.d.Xf=function(){for(;this.X.length;){var n=void 0;(n=this.X.pop())==null||n.dispose()}g.Q.prototype.Xf.call(this)}; g.m(T3Y,g.Q);g.m(F20,g.Q);g.m(MP6,g.Q);g.m(zR,g.Q);zR.prototype.WQ=function(n){return n==="PLAY_PROGRESS"?this.V:n==="LOAD_PROGRESS"?this.G:n==="LIVE_BUFFER"?this.D:this.C};hby.prototype.update=function(n,q,w,X){w=w===void 0?0:w;this.width=q;this.W=w;this.N=q-w-(X===void 0?0:X);this.position=g.Y1(n,w,w+this.N);this.C=this.position-w;this.X=this.C/this.N};g.m(lez,g.Q);g.m(g.nm,g.R6);g.d=g.nm.prototype; g.d.J2=function(){var n=!1,q=this.api.getVideoData();if(!q)return n;this.api.wg("timedMarkerCueRange");E_3(this);for(var w=g.a(q.je),X=w.next();!X.done;X=w.next()){X=X.value;var P=void 0,R=(P=this.IH[X])==null?void 0:P.markerType,c=void 0;P=(c=this.IH[X])==null?void 0:c.markers;if(!P)break;if(R==="MARKER_TYPE_TIMESTAMPS"){n=g.a(P);for(R=n.next();!R.done;R=n.next()){c=R.value;R=new lez;var k=void 0;R.title=((k=c.title)==null?void 0:k.simpleText)||"";R.timeRangeStartMillis=Number(c.startMillis);R.N= Number(c.durationMillis);var r=k=void 0;R.onActiveCommand=(r=(k=c.onActive)==null?void 0:k.innertubeCommand)!=null?r:void 0;SE6(this,R)}uOu(this,this.G);n=this.G;R=this.u7;c=[];k=null;for(r=0;re&&(k.end=e);e=ej6(e,e+O);c.push(e);k=e;R[e.id]=n[r].onActiveCommand}}this.api.Zf(c);a:{n=g.a(P);for(P=n.next();!P.done;P=n.next())if(P.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){n= !1;break a}n=!0}n&&(this.TT=this.IH[X]);n=!0}else if(R==="MARKER_TYPE_HEATMAP"){X=this.IH[X];f=e=R=r=k=c=void 0;if(X&&X.markers){P=(R=(f=X.markersMetadata)==null?void 0:(e=f.heatmapMetadata)==null?void 0:e.minHeightDp)!=null?R:0;R=(c=(r=X.markersMetadata)==null?void 0:(k=r.heatmapMetadata)==null?void 0:k.maxHeightDp)!=null?c:60;c=this.N.length;k=null;for(r=0;r=f&&t<=O&&e.push(U)}R>0&&(this.PW.style.height=R+"px");f=this.W[r];O=e;U=P;var V=R,T=r===0;T=T===void 0?!1:T;x66(f,V);H=O;t=f.X;T=T===void 0?!1:T;var x=1E3/H.length,M=[];M.push({x:0,y:100});for(var h=0;h0&&(k=e[e.length-1])}g.qp(this)}R=void 0;P=[];if(X=(R=X.markersDecoration)==null?void 0:R.timedMarkerDecorations)for(X=g.a(X),R=X.next();!R.done;R=X.next())R=R.value,r=k=c=void 0,P.push({visibleTimeRangeStartMillis:(c=R.visibleTimeRangeStartMillis)!= null?c:-1,visibleTimeRangeEndMillis:(k=R.visibleTimeRangeEndMillis)!=null?k:-1,decorationTimeMillis:(r=R.decorationTimeMillis)!=null?r:NaN,label:R.label?g.kY(R.label):""});X=P;this.heatMarkersDecorations=X}}q.fg=this.G;g.XW(this.element,"ytp-timed-markers-enabled",n);return n}; g.d.UD=function(){g.qp(this);PB(this);uOu(this,this.G);if(this.X){var n=g.WO(this.element).x||0;this.X.UD(n,this.D)}}; g.d.kkq=function(){var n=this.api.getVideoData();n&&XVm(this,n)}; g.d.onClickCommand=function(n){if(n=g.u(n,gY)){var q=n.key;n.isVisible&&q&&Jty(this,q)}}; g.d.mUq=function(n){this.api.Uq("innertubeCommand",this.u7[n.id])}; g.d.hU=function(){PB(this);var n=this.api.getCurrentTime();(nthis.clipEnd)&&this.eC()}; g.d.Tt=function(n){if(!n.defaultPrevented){var q=!1;switch(n.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);q=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);q=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);q=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);q=!0;break;case 38:this.api.Z("enable_key_press_seek_logging")&&jK(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);q=!0;break;case 40:this.api.Z("enable_key_press_seek_logging")&&jK(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),q=!0}q&&n.preventDefault()}}; g.d.FI=function(n,q){this.updateVideoData(q,n==="newdata")}; g.d.Js=function(){this.FI("newdata",this.api.getVideoData())}; g.d.updateVideoData=function(n,q){q=q===void 0?!1:q;var w=!!n&&n.YH();w&&(Ha(n)||qBO(this)?this.yp=!1:this.yp=n.allowLiveDvr,g.XW(this.api.getRootNode(),"ytp-enable-live-buffer",!(n==null||!Ha(n))),XVm(this,n));H2x(this,this.api.sT());if(q){if(w){q=n.clipEnd;this.clipStart=n.clipStart;this.clipEnd=q;sa(this);for(Ii(this,this.qP,this.AK);this.W.length>0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.nM={};var X;(X=this.X)==null||X.reset();HB(this);g.XW(this.api.getRootNode(),"ytp-fine-scrubbing-exp", N$(this))}else this.eC();this.Ph()}if(n){var P;X=((P=this.tK)==null?void 0:P.type)==="clips";if(P=!n.isLivePlayback){P=this.api.getVideoData();q=g.BI(P);w=b60(P);var R;P=q!=null||w!=null&&w.length>0||((R=P.Kt)==null?void 0:R.length)>0}if(P&&!X){R=this.api.getVideoData();X=g.BI(R);P=!1;if(X==null?0:X.markersMap){P=this.api.getVideoData();var c;P.Jy=((c=X.visibleOnLoad)==null?void 0:c.key)||P.Jy;c=g.a(X.markersMap);for(X=c.next();!X.done;X=c.next())X=X.value,X.key&&X.value&&(this.nM[X.key]=X.value, X.value.onChapterRepeat&&(P.fu=X.value.onChapterRepeat));P.Jy!=null&&Jty(this,P.Jy);P=!0}var k;if(((k=R.Kt)==null?void 0:k.length)>0){k=g.mB.getState().entities;c=g.a(R.Kt);for(X=c.next();!X.done;X=c.next()){X=X.value;w=void 0;q=(w=QM(k,"macroMarkersListEntity",X))==null?void 0:w.markersList;var r=w=void 0;if(((w=q)==null?void 0:w.markerType)==="MARKER_TYPE_TIMESTAMPS"||((r=q)==null?void 0:r.markerType)==="MARKER_TYPE_HEATMAP")this.IH[X]=q}P=this.J2()||P}!P&&(k=b60(R))&&(YEy(this,k),R.TT=this.N,Ath(this)); Pcx(this,null);n.jz&&this.W.length===0&&(n=n.jz,k=n.key,n.isVisible&&k&&Jty(this,k))}else GIs(this),E_3(this)}PB(this)}; g.d.nB=function(n){this.V&&!g.Z(n.state,32)&&this.api.getPresentingPlayerType()!==3&&this.V.cancel();var q;((q=this.X)==null?0:q.isEnabled)&&g.Z(n.state,8)&&this.api.pauseVideo();n=this.api.getPresentingPlayerType()===2||!this.api.sT()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.XW(this.zG,"ytp-hide-scrubber-button",n)}; g.d.w0=function(n){var q=!!this.tK!==!!n,w=this.tK;this.tK=n;Pcx(this,w);(n==null?void 0:n.type)!=="clips"&&n||(n?(this.updateValue("clipstarticon",pzY()),this.updateValue("clipendicon",pzY()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",UHh()),this.updateValue("clipendicon",HDY()),this.updateValue("clipstarttitle","Assista o v\u00eddeo completo"),this.updateValue("clipendtitle","Assista o v\u00eddeo completo")),q&&(this.updateVideoData(this.api.getVideoData(), !0),g.qp(this)),sa(this));Ii(this,this.qP,this.AK)}; g.d.E4p=function(){this.api.publish("progressBarHoverStart")}; g.d.PSh=function(n,q,w){var X=g.WO(this.element),P=XT(this).N,R=w?w.getAttribute("data-tooltip"):void 0,c=w?w.getAttribute("data-position"):void 0,k=w?w.getAttribute("data-offset-y"):void 0;k=k?Number(k):0;c&&(n=Fu(this.C,Number(w.getAttribute("data-position")),0)*P+g.WO(this.progressBar).x);this.qe.x=n-X.x;this.qe.y=q-X.y;n=XT(this);w=ro(this,n);q=0;var r;if((r=this.api.getVideoData())==null?0:Ha(r))(r=this.api.getProgressState().seekableEnd)&&w>r&&(w=r,n.position=Fu(this.C,r)*XT(this).N),q=this.C.X; qBO(this)&&(q=this.C.X);r=R||g.Up(this.yp?w-this.C.N:w-q);q=n.position+this.x5;w-=this.api.Zj();var e;if((e=this.X)==null||!e.isEnabled)if(this.api.Ei()){if(this.N.length>1){e=kb(this,this.qe.x,!0);if(!this.tK)for(X=0;X1)for(X=0;X0)for(e=this.qe.x,X=g.a(this.G),P=X.next();!P.done;P=X.next())P=P.value,c=wo(this,P.timeRangeStartMillis/ (this.C.N*1E3),XT(this)),g.XW(P.element,"ytp-timed-marker-hover",c<=e&&c+6>=e);X=this.tooltip.scale;e=this.api.Z("delhi_modern_web_player")?67:45;k=(isNaN(k)?0:k)-e*X;this.api.Z("web_key_moments_markers")?this.TT?(e=rlu(this.G,w*1E3),e=e!=null?this.G[e].title:""):(e=ta(this.N,w*1E3),e=this.N[e].title):(e=ta(this.N,w*1E3),e=this.N[e].title);e||(k+=16*X);this.tooltip.scale===.6&&(g.iE(this.api.B())?(k=this.api.yT().getPlayerSize().height-225,X=this.api.Z("delhi_modern_web_player")?70:110,k=e?k+X:k+ X+16):k=e?110:126);X=ta(this.N,w*1E3);this.HW=R5y(this,w,X)?X:R5y(this,w,X+1)?X+1:-1;g.XW(this.api.getRootNode(),"ytp-progress-bar-snap",this.HW!==-1&&this.N.length>1);X=!1;P=g.a(this.heatMarkersDecorations);for(c=P.next();!c.done;c=P.next()){c=c.value;var f=w*1E3;f>=c.visibleTimeRangeStartMillis&&f<=c.visibleTimeRangeEndMillis&&(e=c.label,r=g.Up(c.decorationTimeMillis/1E3),X=!0)}this.k6!==X&&(this.k6=X,this.api.logVisibility(this.bx,this.k6));g.XW(this.api.getRootNode(),"ytp-progress-bar-decoration", X);X=160*this.tooltip.scale*2;P=e.length*(this.L?8.55:5.7);P=P<=X?P:X;c=P<160*this.tooltip.scale;X=3;!c&&P/2>n.position&&(X=1);!c&&P/2>this.D-n.position&&(X=2);this.api.B().G&&(k-=10);this.W.length&&this.W[0].YH&&(k-=14*(this.L?2:1),this.D0||(this.D0=!0,this.api.logVisibility(this.PW,this.D0)));var O;if(N$(this)&&(((O=this.X)==null?0:O.isEnabled)||this.je>0)){var H;k-=((H=this.X)==null?0:H.isEnabled)?fm(this):this.je}O=void 0;N$(this)&&!this.api.Z("web_player_hide_fine_scrubbing_edu")&&(O="Puxe para cima para uma busca precisa", this.n5||(this.n5=!0,this.api.logVisibility(this.KV,this.n5)));this.tooltip.CJ(q,w,r,!!R,k,e,X,O)}else this.tooltip.CJ(q,w,r,!!R,k);g.N4(this.api.getRootNode(),"ytp-progress-bar-hover");nQ6(this)}; g.d.q8H=function(){this.Ph();g.qX(this.api.getRootNode(),"ytp-progress-bar-hover");this.D0&&(this.D0=!1,this.api.logVisibility(this.PW,this.D0));this.n5&&(this.n5=!1,this.api.logVisibility(this.KV,this.n5));this.api.Z("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.d.NMe=function(n,q){var w=g.WO(this.element);this.KG=n-w.x;N$(this)&&this.X&&(this.X.HW?Ja(this.X,this.api.getCurrentTime()):$6Y(this.X),this.X.show(),g.XW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.X.isEnabled));this.KD&&(this.KD.dispose(),this.KD=null);this.Xa=q;this.TG=this.api.getCurrentTime();this.N.length>1&&this.HW!==-1?this.api.seekTo(this.N[this.HW].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(ro(this,XT(this)),!1,void 0,void 0,7);g.N4(this.element,"ytp-drag");(this.wq= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.d.xUT=function(){if(N$(this)&&this.X){var n=fm(this);this.je>=n*.5?(this.X.enable(),Ja(this.X,this.api.getCurrentTime()),i2Y(this,n)):HB(this)}if(g.Z(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var q;if((q=this.X)==null?0:q.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.N.length>1&&this.HW!==-1)this.api.Z("html5_enable_progress_bar_slide_seek_logging")&&jK(this,this.TG,this.N[this.HW].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.N[this.HW].startTime/1E3,void 0,void 0,void 0,7);else{n=ro(this,XT(this));this.api.Z("html5_enable_progress_bar_slide_seek_logging")&&jK(this,this.TG,n,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(n,void 0,void 0,void 0,7);q=g.a(this.heatMarkersDecorations);for(var w=q.next();!w.done;w=q.next())w=w.value,n*1E3>=w.visibleTimeRangeStartMillis&&n*1E3<=w.visibleTimeRangeEndMillis&& this.api.logClick(this.bx)}g.qX(this.element,"ytp-drag");this.WW&&(this.vW.src=this.WW);this.wq&&!g.Z(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.d.pbn=function(n,q){var w=this,X=XT(this),P=ro(this,X);this.api.yT().MQ||(X.position>this.KG+2?this.JU&&(this.vW.src=this.JU):X.position1);this.bL(n&&this.T.yT().getPlayerSize().width>=400);this.T.logVisibility(this.element,this.xE);var q=1;n&&this.isActive()&&(q=2);if(this.N!==q){this.N=q;n=this.T.Z("delhi_modern_web_player_icons");switch(q){case 1:this.updateValue("icon",n?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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"}}]}:{J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},S:[{J:"path",E8:!0,U:{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", n?{J:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},S:[{J:"path",U:{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.ODs())}g.XW(this.element,"ytp-remote-button-active",this.isActive())}}; Ua.prototype.X=function(){if(this.T.getOption("remote","quickCast"))this.T.setOption("remote","quickCast",!0);else{var n=this.aP,q=this.element;if(n.hf())n.hK();else{n.initialize();a:{var w=g.a(n.LV.items);for(var X=w.next();!X.done;X=w.next())if(X=X.value,X.priority===1){w=X;break a}w=null}w&&(w.open(),n.ZC(q));n.ZC(q)}}this.T.logClick(this.element)};g.m(tL,g.Q);tL.prototype.N=function(n){var q=this.T.B(),w=400;this.T.Z("web_player_small_hbp_settings_menu")&&q.D?w=300:q.G&&(w=200);n=this.X&&n.width>=w;this.bL(n);this.T.Z("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,n&&this.K):this.T.logVisibility(this.element,n)}; tL.prototype.C=function(){if(this.aP.xE)this.aP.hK();else{var n=g.Gd(this.T.fM());n&&!n.loaded&&(n.Bd("tracklist",{includeAsr:!0}).length||n.load());this.T.logClick(this.element);this.aP.ZC(this.element)}}; tL.prototype.updateBadge=function(){var n=this.T.isHdr(),q=this.T.getPresentingPlayerType(),w=q!==2&&q!==3,X=g.Q$(this.T),P=w&&!!g.Ba(this.T.fM());q=P&&X.displayMode===1;X=P&&X.displayMode===2;w=(P=q||X)||!w?null:this.T.getPlaybackQuality();g.XW(this.element,"ytp-hdr-quality-badge",n);g.XW(this.element,"ytp-hd-quality-badge",!n&&(w==="hd1080"||w==="hd1440"));g.XW(this.element,"ytp-4k-quality-badge",!n&&w==="hd2160");g.XW(this.element,"ytp-5k-quality-badge",!n&&w==="hd2880");g.XW(this.element,"ytp-8k-quality-badge", !n&&w==="highres");g.XW(this.element,"ytp-3d-badge-grey",!n&&P&&q);g.XW(this.element,"ytp-3d-badge",!n&&P&&X)};g.m(go,tk);go.prototype.isLoaded=function(){var n=g.YG(this.T.fM());return n!==void 0&&n.loaded}; go.prototype.dl=function(){g.YG(this.T.fM())!==void 0&&this.T.getPresentingPlayerType()!==3?this.N||(this.aP.nG(this),this.N=!0):this.N&&(this.aP.rq(this),this.N=!1);dL(this,this.isLoaded())}; go.prototype.onSelect=function(n){this.isLoaded();n?this.T.loadModule("annotations_module"):this.T.unloadModule("annotations_module");this.T.publish("annotationvisibility",n)}; go.prototype.Xf=function(){this.N&&this.aP.rq(this);tk.prototype.Xf.call(this)};g.m(mF,g.bB);mF.prototype.dl=function(){var n=this.T.getAvailableAudioTracks();n.length>1?(this.Hw(g.Hh(n,this.N)),this.tracks=g.zf(n,this.N,this),this.countLabel.s8(n.length?" ("+n.length+")":""),this.publish("size-change"),this.UF(this.N(this.T.getAudioTrack())),this.enable(!0)):this.enable(!1)}; mF.prototype.SV=function(n){g.bB.prototype.SV.call(this,n);this.T.setAudioTrack(this.tracks[n]);this.aP.SG()}; mF.prototype.N=function(n){return n.toString()};g.m(yP,tk); yP.prototype.X=function(){var n=this.T.getPresentingPlayerType();if(n!==2&&n!==3&&g.JE(this.T))this.N||(this.aP.nG(this),this.N=!0,this.C.push(this.j(this.T,"videodatachange",this.X)),this.C.push(this.j(this.T,"videoplayerreset",this.X)),this.C.push(this.j(this.T,"onPlaylistUpdate",this.X)),this.C.push(this.j(this.T,"autonavchange",this.W)),n=this.T.getVideoData(),this.W(n.autonavState),this.T.logVisibility(this.element,this.N));else if(this.N){this.aP.rq(this);this.N=!1;n=g.a(this.C);for(var q=n.next();!q.done;q= n.next())this.wM(q.value)}}; yP.prototype.W=function(n){dL(this,n!==1)}; yP.prototype.onSelect=function(n){this.T.Zb(n?2:1);this.N&&(this.T.logVisibility(this.element,this.N),this.T.logClick(this.element))}; yP.prototype.Xf=function(){this.N&&this.aP.rq(this);tk.prototype.Xf.call(this)};g.m(tLs,g.IV);tLs.prototype.onClick=function(n){n.preventDefault();var q,w;(q=g.L0(this.T))==null||(w=q.tf())==null||w.hK();var X,P;(X=g.L0(this.T))==null||(P=X.Kw())==null||P.ZC(n.target)};g.m(d56,g.bB);g.d=d56.prototype; g.d.iV=function(){var n=this.T.getPresentingPlayerType();if(n!==2&&n!==3){this.vW=this.T.d4();var q=this.T.getAvailableQualityLevels();if(this.N){this.W={};n=g.p0(this.T,"getAvailableQualityData",[]);n=g.a(n);for(var w=n.next();!w.done;w=n.next())w=w.value,this.W[w.qualityLabel]=w;n=Object.keys(this.W);q[q.length-1]==="auto"&&n.push("auto");this.WW=new Set(q)}else if(this.D){w=g.p0(this.T,"getAvailableQualityData",[]);n=[];w=g.a(w);for(var X=w.next();!X.done;X=w.next())X=X.value,this.L[X.quality]= X,X.quality&&n.push(X.quality);q[q.length-1]==="auto"&&n.push("auto")}else n=q;g.$Gm(this.T)&&this.T.KN()&&n.unshift("missing-qualities");q=this.T.app.Yh();w=q.getVideoData();if(!w.X||!w.X.video||w.X.video.qualityOrdinal<1080||w.kA)q=!1;else{X=/^qsa/.test(w.clientPlaybackNonce);var P="r";w.X.id.indexOf(";")>=0&&(X=/^[a-p]/.test(w.clientPlaybackNonce),P="x");X?(q.p5("iqss",{trigger:P},!0),q=!0):q=!1}q&&n.unshift("inline-survey");this.Hw(n);q=this.T.getVideoData().cotn?!0:!1;w=this.PW.ML();w=!g.iE(this.T.B())|| !(q===void 0?0:q)||!(w===void 0||w);q=this.X;w=w===void 0?!1:w;q.zr&&g.XW(q.C5("ytp-panel-footer"),"ytp-panel-hide-footer",w===void 0?!1:w);if(n.length){this.cU();this.enable(!0);return}}this.enable(!1)}; g.d.cU=function(){if(this.N){var n=this.T.getPreferredQuality();this.WW.has(n)&&(this.G=this.T.getPlaybackQuality(),this.qP=this.T.getPlaybackQualityLabel(),n==="auto"?(this.UF(n),this.s8(this.fq(n))):this.UF(this.qP))}else n=this.T.getPreferredQuality(),this.options[n]&&(this.G=this.T.getPlaybackQuality(),this.UF(n),n==="auto"&&this.s8(this.fq(n)))}; g.d.SV=function(n){if(n!=="missing-qualities"){g.bB.prototype.SV.call(this,n);var q=this.N?this.W[n]:this.L[n];var w=q==null?void 0:q.quality,X=q==null?void 0:q.formatId,P=q==null?void 0:q.paygatedQualityDetails;q=P==null?void 0:P.endpoint;if(P){var R;P=(R=this.options[n])==null?void 0:R.element;this.T.logClick(P)}if(this.N){var c,k;if((c=g.u(q,g.HoD))==null?0:(k=c.popup)==null?0:k.notificationActionRenderer)this.T.Uq("innertubeCommand",q);else if(q){this.T.Uq("innertubeCommand",q);return}X?this.T.setPlaybackQuality(w, X):this.T.setPlaybackQuality(w)}else{if(this.D){var r,e;if((r=g.u(q,g.HoD))==null?0:(e=r.popup)==null?0:e.notificationActionRenderer)this.T.Uq("innertubeCommand",q);else if(q){this.T.Uq("innertubeCommand",q);return}}this.T.setPlaybackQuality(n)}this.aP.hK();this.iV()}}; g.d.open=function(){for(var n=g.a(Object.values(this.options)),q=n.next();!q.done;q=n.next()){q=q.value;var w=void 0;this.T.hasVe((w=q)==null?void 0:w.element)&&(w=void 0,this.T.logVisibility((w=q)==null?void 0:w.element,!0))}g.bB.prototype.open.call(this);this.T.logClick(this.element)}; g.d.N4=function(n,q,w){var X=this;if(n==="missing-qualities")return new g.IV({J:"a",Jg:["ytp-menuitem"],U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.T.B().L,tabindex:"0",role:"menuitemradio"},S:[{J:"div",Jg:["ytp-menuitem-label"],Ag:"{{label}}"}]},q,this.fq(n));if(n!=="inline-survey"){var P,R=(P=this.N?this.W[n]:this.L[n])==null?void 0:P.paygatedQualityDetails;P=R==null?void 0:R.veType;R=R==null?void 0:R.trackingParams;q=g.bB.prototype.N4.call(this,n,q,w);R?(this.T.createServerVe(q.element, this,!0),this.T.setTrackingParams(q.element,R)):P&&this.T.createClientVe(q.element,this,P,!0);return q}n=[{J:"span",Ag:"Que tal?"}];w=g.a([!0,!1]);R=w.next();for(P={};!R.done;P={nT:void 0},R=w.next())P.nT=R.value,R=new g.Q({J:"span",Y:"ytp-menuitem-inline-survey-response",S:[P.nT?VuT():dHy()],U:{tabindex:"0",role:"button"}}),R.listen("click",function(c){return function(){var k=X.T.app.Yh();k.p5("iqsr",{tu:c.nT});k.getVideoData().kA=!0;X.aP.hK();X.iV()}}(P)),n.push(R); return new g.IV({J:"div",Y:"ytp-menuitem",U:{"aria-disabled":"true"},S:[{J:"div",Jg:["ytp-menuitem-label"],S:n}]},q)}; g.d.fq=function(n,q){q=q===void 0?!1:q;if(n==="missing-qualities")return{J:"div",Ag:"Faltam op\u00e7\u00f5es?"};if(n==="inline-survey")return"";var w=this.D||this.N?[y4u(this,n,q,!1)]:[m5y(this,n)];var X=this.T.getPreferredQuality();q||X!=="auto"||n!=="auto"||(w.push(" "),this.N?w.push(y4u(this,this.qP,q,!0,["ytp-menu-label-secondary"])):this.D?w.push(y4u(this,this.G,q,!0,["ytp-menu-label-secondary"])):w.push(m5y(this,this.G,["ytp-menu-label-secondary"])));return{J:"div",S:w}};g.m(ai,Y3);ai.prototype.C=function(){Y3.prototype.C.call(this);this.L&&aCy(this)}; ai.prototype.WW=function(){this.qP()}; ai.prototype.vW=function(){this.T.setPlaybackRate(this.N,!0)}; ai.prototype.G=function(n){Y3.prototype.G.call(this,n);this.qP();aCy(this);n.preventDefault()};g.m(VP,g.Q);g.d=VP.prototype;g.d.init=function(){this.Cv(this.N);this.updateValue("minvalue",this.X);this.updateValue("maxvalue",this.C)}; g.d.u5=function(n){if(!n.defaultPrevented){switch(n.keyCode){case 37:case 40:var q=-this.V;break;case 39:case 38:q=this.V;break;default:return}this.Cv(this.N+q);n.preventDefault()}}; g.d.zt=function(n){var q=this.N;q+=(n.deltaX||-n.deltaY)<0?-this.L:this.L;this.Cv(q);n.preventDefault()}; g.d.DP=function(n){n=(n-g.WO(this.W).x)/this.qP*this.range+this.X;this.Cv(n)}; g.d.Cv=function(n,q){q=q===void 0?"":q;n=g.Y1(n,this.X,this.C);q===""&&(q=n.toString());this.updateValue("valuenow",n);this.updateValue("valuetext",q);this.PW.style.left=(n-this.X)/this.range*(this.qP-this.HW)+"px";this.N=n}; g.d.focus=function(){this.Tp.focus()};g.m(pm,VP);pm.prototype.vW=function(){this.T.setPlaybackRate(this.N,!0)}; pm.prototype.Cv=function(n){VP.prototype.Cv.call(this,n,pVh(this,n).toString());this.D&&(VLh(this),this.WW())}; pm.prototype.updateValues=function(){var n=this.T.getPlaybackRate();pVh(this,this.N)!==n&&(this.Cv(n),VLh(this))};g.m(TCx,g.R6);TCx.prototype.focus=function(){this.N.focus()};g.m(F0h,vm);g.m($5x,g.bB);g.d=$5x.prototype;g.d.fq=function(n){return n==="1"?"Normal":n.toLocaleString()}; g.d.dl=function(){var n,q=(n=this.T.getVideoData())==null?void 0:n.M7();n=this.T.getPresentingPlayerType(q);this.enable(n!==2&&n!==3);MLT(this)}; g.d.Hw=function(n){g.bB.prototype.Hw.call(this,n);this.G&&this.G.X.focus()}; g.d.s5=function(n){g.bB.prototype.s5.call(this,n);n?(this.qP=this.j(this.T,"onPlaybackRateChange",this.onPlaybackRateChange),MLT(this),vQs(this,this.T.getPlaybackRate())):(this.wM(this.qP),this.qP=null)}; g.d.onPlaybackRateChange=function(n){var q=this.T.getPlaybackRate();!this.W&&this.L.includes(q)||L0O(this,q);vQs(this,n)}; g.d.N4=function(n,q,w){return n===this.N&&x5x(this.T)?g.bB.prototype.N4.call(this,n,q,w,{J:"div",Y:"ytp-speed-slider-menu-footer",S:[this.G]}):g.bB.prototype.N4.call(this,n,q,w)}; g.d.SV=function(n){g.bB.prototype.SV.call(this,n);n===this.N?this.T.setPlaybackRate(this.D,!0):this.T.setPlaybackRate(Number(n),!0);x5x(this.T)&&n===this.N||this.aP.SG()}; g.d.nC=function(n){var q=n===this.N;this.W=!1;q&&Tm(this.T)&&!x5x(this.T)?(n=new F0h(this.T),g.D3(this.aP,n)):g.bB.prototype.nC.call(this,n)};g.m(h5y,g.bB);g.d=h5y.prototype;g.d.UF=function(n){g.bB.prototype.UF.call(this,n)}; g.d.Ju=function(n){return n.option.toString()}; g.d.getOption=function(n){return this.settings[n]}; g.d.fq=function(n){return this.getOption(n).text||""}; g.d.SV=function(n){g.bB.prototype.SV.call(this,n);this.publish("settingChange",this.setting,this.settings[n].option)};g.m($b,g.LM);$b.prototype.JS=function(n){for(var q=g.a(Object.keys(n)),w=q.next();!w.done;w=q.next()){var X=w.value;if(w=this.AX[X]){var P=n[X].toString();X=!!n[X+"Override"];w.options[P]&&(w.UF(P),w.W.element.setAttribute("aria-checked",String(!X)),w.N.element.setAttribute("aria-checked",String(X)))}}}; $b.prototype.Z6=function(n,q){this.publish("settingChange",n,q)};g.m(vB,g.bB);vB.prototype.N=function(n){return n.languageCode}; vB.prototype.fq=function(n){return this.languages[n].languageName||""}; vB.prototype.SV=function(n){this.publish("select",n);this.T.logClick(this.element);g.hS(this.aP)};g.m(CcY,g.bB);g.d=CcY.prototype;g.d.Vk=function(n){return g.fV(n)?"__off__":n.displayName}; g.d.fq=function(n){return n==="__off__"?"Desativado":n==="__translate__"?"Traduzir automaticamente":n==="__contribute__"?"Adicionar legendas/CC":n==="__correction__"?"Sugerir corre\u00e7\u00f5es na legenda":(n==="__off__"?{}:this.tracks[n]).displayName}; g.d.SV=function(n){if(n==="__translate__")this.N.open();else if(n==="__contribute__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var q=g.zi(this.T.B(),this.T.getVideoData());g.CX(q)}else if(n==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();var w=EQh(this);Lm(this,w);g.bB.prototype.SV.call(this,this.Vk(w));var X,P;w=(q=this.T.getVideoData().getPlayerResponse())==null?void 0:(X=q.captions)==null?void 0:(P=X.playerCaptionsTracklistRenderer)== null?void 0:P.openTranscriptCommand;this.T.Uq("innertubeCommand",w);this.aP.SG();this.W&&this.T.logClick(this.W)}else{if(n==="__correction__"){this.T.pauseVideo();this.T.isFullscreen()&&this.T.toggleFullscreen();q=EQh(this);Lm(this,q);g.bB.prototype.SV.call(this,this.Vk(q));var R,c;q=(w=this.T.getVideoData().getPlayerResponse())==null?void 0:(R=w.captions)==null?void 0:(c=R.playerCaptionsTracklistRenderer)==null?void 0:c.openTranscriptCommand;this.T.Uq("innertubeCommand",q)}else this.T.logClick(this.element), Lm(this,n==="__off__"?{}:this.tracks[n]),g.bB.prototype.SV.call(this,n);this.aP.SG()}}; g.d.dl=function(){var n=this.T.getOptions();n=n&&n.indexOf("captions")!==-1;var q=this.T.getVideoData(),w=q&&q.xm,X,P=!((X=this.T.getVideoData())==null||!g.f0(X));X={};if(n||w){var R;if(n){var c=this.T.getOption("captions","track");X=this.T.getOption("captions","tracklist",{includeAsr:!0});var k=P?[]:this.T.getOption("captions","translationLanguages");this.tracks=g.zf(X,this.Vk,this);P=g.Hh(X,this.Vk);var r,e;EQh(this)&&((R=q.getPlayerResponse())==null?0:(r=R.captions)==null?0:(e=r.playerCaptionsTracklistRenderer)== null?0:e.openTranscriptCommand)&&P.push("__correction__");if(k.length&&!g.fV(c)){if((R=c.translationLanguage)&&R.languageName){var f=R.languageName;R=k.findIndex(function(O){return O.languageName===f}); Lzs(k,R)}lC3(this.N,k);P.push("__translate__")}R=this.Vk(c)}else this.tracks={},P=[],R="__off__";P.unshift("__off__");this.tracks.__off__={};w&&P.unshift("__contribute__");this.tracks[R]||(this.tracks[R]=c,P.push(R));this.Hw(P);this.UF(R);c&&c.translationLanguage?this.N.UF(this.N.N(c.translationLanguage)):cLs(this.N);n&&this.D.JS(this.T.getSubtitlesUserSettings());this.countLabel.s8(X&&X.length?" ("+X.length+")":"");this.publish("size-change");this.T.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.d.F8=function(n){var q=this.T.getOption("captions","track");q=g.HJ(q);q.translationLanguage=this.N.languages[n];Lm(this,q)}; g.d.Z6=function(n,q){if(n==="reset")this.T.resetSubtitlesUserSettings();else{var w={};w[n]=q;this.T.updateSubtitlesUserSettings(w)}GJs(this,!0);this.G.start();this.D.JS(this.T.getSubtitlesUserSettings())}; g.d.Y8h=function(n){n||g.uF(this.G)}; g.d.Xf=function(){g.uF(this.G);g.bB.prototype.Xf.call(this)}; g.d.open=function(){g.bB.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.T.createClientVe(this.W,this,167341),this.T.logVisibility(this.W,!0))};g.m(oQu,g.xc);g.d=oQu.prototype; g.d.initialize=function(){if(!this.isInitialized){var n=this.T.B();this.isInitialized=!0;try{this.V_=new d56(this.T,this)}catch(w){g.TQ(Error("QualityMenuItem creation failed"))}g.K(this,this.V_);var q=new CcY(this.T,this);g.K(this,q);n.C||(q=new go(this.T,this),g.K(this,q));n.enableSpeedOptions&&(q=new $5x(this.T,this),g.K(this,q));(g.Q2(n)||n.D)&&(n.X||n.Ff)&&(q=new tLs(this.T,this),g.K(this,q));n.aS&&!n.Z("web_player_move_autonav_toggle")&&(n=new yP(this.T,this),g.K(this,n));n=new mF(this.T,this); g.K(this,n);this.T.publish("settingsMenuInitialized");U50(this.settingsButton,this.LV.Ue())}}; g.d.nG=function(n){this.initialize();this.LV.nG(n);U50(this.settingsButton,this.LV.Ue())}; g.d.rq=function(n){this.xE&&this.LV.Ue()<=1&&this.hide();this.LV.rq(n);U50(this.settingsButton,this.LV.Ue())}; g.d.ZC=function(n){this.initialize();this.LV.Ue()>0&&g.xc.prototype.ZC.call(this,n)}; g.d.hK=function(){this.EO?this.EO=!1:g.xc.prototype.hK.call(this)}; g.d.show=function(){g.xc.prototype.show.call(this);g.N4(this.T.getRootNode(),"ytp-settings-shown")}; g.d.hide=function(){g.xc.prototype.hide.call(this);g.qX(this.T.getRootNode(),"ytp-settings-shown")}; g.d.d$=function(n){this.T.logVisibility(this.element,n);this.T.publish("settingsMenuVisibilityChanged",n)};g.m(YBs,g.Q);g.d=YBs.prototype;g.d.onClick=function(){if(Mp(this)&&(this.T.toggleSubtitles(),this.T.logClick(this.element),!this.isEnabled())){var n=!1,q=g.l4(g.hh(),65);g.iE(this.T.B())&&q!=null&&(n=!q);n&&this.T.B().Z("web_player_nitrate_promo_tooltip")&&this.T.publish("showpromotooltip",this.element)}}; g.d.Lc5=function(n){var q,w;(q=g.L0(this.T))==null||(w=q.tf())==null||w.ZC(n)}; g.d.isEnabled=function(){var n=this.T.getOption("captions","track");return!(!n||!n.displayName)}; g.d.dl=function(){var n=Mp(this),q=300;this.T.B().G&&(q=480);this.T.Z("delhi_modern_web_player_icons")&&this.updateValue("icon",A4s(this));if(this.T.B().D){this.updateValue("title",g.oo(this.T,"Legendas/legendas ocultas","c"));this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"});var w=n}else{if(n)(w=this.C5("ytp-subtitles-button-icon"))==null||w.setAttribute("fill-opacity","1"),this.updateValue("title",g.oo(this.T,"Legendas/legendas ocultas","c")),this.update({"data-title-no-tooltip":"Legendas/legendas ocultas"}); else{if(this.T.Z("delhi_modern_web_player_icons")){var X;(X=this.C5("ytp-subtitles-button-icon"))==null||X.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var P;(P=this.C5("ytp-subtitles-button-icon"))==null||P.setAttribute("fill-opacity","0.3")}this.updateValue("title","N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis");this.update({"data-title-no-tooltip":"N\u00e3o h\u00e1 legendas/closed captions dispon\u00edveis"})}w=!0}this.tooltip.DL();w=w&&this.T.yT().getPlayerSize().width>= q;this.bL(w);this.T.Z("embeds_use_parent_visibility_in_ve_logging")?this.T.logVisibility(this.element,w&&this.K):this.T.logVisibility(this.element,w);n?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.d.jj=function(n){g.Q.prototype.jj.call(this,n);this.T.B().Z("embeds_use_parent_visibility_in_ve_logging")&&this.T.logVisibility(this.element,this.xE&&n)};g.m(g.xb,g.Q);g.d=g.xb.prototype;g.d.canShowCountdown=function(){return!hL(this)&&!D_(this)}; g.d.hU=function(){var n=this.api.yT().getPlayerSize().width,q=this.L;this.api.B().G&&(q=400);q=n>=q&&(!D_(this)||!g.Z(this.api.getPlayerStateObject(),64));this.bL(q);g.XW(this.element,"ytp-time-display-allow-autohide",q&&n<400);n=this.api.getProgressState();if(q){var w=this.api.getPresentingPlayerType();q=this.api.getCurrentTime(w,!1);this.X&&(q-=n.airingStart);hL(this)&&(q-=this.tK.startTimeMs/1E3);this.canShowCountdown()&&this.C&&(q-=this.api.getDuration(w,!1));var X=g.Up(q);this.W!==X&&(this.updateValue("currenttime", X),this.W=X);w=hL(this)?(this.tK.endTimeMs-this.tK.startTimeMs)/1E3:this.api.getDuration(w,!1);X=g.Up(w);this.D!==X&&(this.updateValue("duration",X),this.D=X,q&&(q=g.NB("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.Up(q,!0),DURATION:g.Up(w,!0)}),this.updateValue("timeDisplayAriaLabel",q)))}K0x(this,n.isAtLiveHead);SBu(this,this.api.getLoopRange())}; g.d.onLoopRangeChange=function(n){var q=this.tK!==n;this.tK=n;q&&(this.hU(),uVx(this))}; g.d.Azi=function(){this.api.setLoopRange(null)}; g.d.Gpp=function(){this.C=!this.C;this.hU()}; g.d.onVideoDataChange=function(n,q,w){this.updateVideoData((this.api.B().Z("enable_topsoil_wta_for_halftime")||this.api.B().Z("enable_topsoil_wta_for_halftime_live_infra"))&&w===2?this.api.getVideoData(1):q);this.hU();uVx(this)}; g.d.updateVideoData=function(n){this.Uy=n.isLivePlayback&&!n.Ne;this.X=Ha(n);this.isPremiere=n.isPremiere;g.XW(this.element,"ytp-live",D_(this));this.api.Z("delhi_modern_web_player")&&this.C5("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.d.onClick=function(n){n.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.d.Xf=function(){this.N&&this.N();g.Q.prototype.Xf.call(this)};g.m(Q7u,g.Q);g.d=Q7u.prototype;g.d.K3=function(){var n=this.api.AM();this.C!==n&&(this.C=n,BCm(this,this.api.getVolume(),this.api.isMuted()))}; g.d.nQ=function(n){this.bL(n.width>=350)}; g.d.d1=function(n){if(!n.defaultPrevented){var q=n.keyCode,w=null;q===37?w=this.volume-5:q===39?w=this.volume+5:q===36?w=0:q===35&&(w=100);w!==null&&(w=g.Y1(w,0,100),w===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(w)),n.preventDefault())}}; g.d.Oh=function(n){var q=n.deltaX||-n.deltaY;n.deltaMode?this.api.setVolume(this.volume+(q<0?-10:10)):this.api.setVolume(this.volume+g.Y1(q/10,-10,10));n.preventDefault()}; g.d.VgP=function(){lM(this,this.N,!0,this.X,this.api.zn());this.L=this.volume;this.api.isMuted()&&this.api.unMute()}; g.d.eX=function(n){var q=this.C?78:52,w=this.C?18:12;n-=g.WO(this.V).x;this.api.setVolume(g.Y1((n-w/2)/(q-w),0,1)*100)}; g.d.iGT=function(){lM(this,this.N,!1,this.X,this.api.zn());this.volume===0&&(this.api.mute(),this.api.setVolume(this.L))}; g.d.onVolumeChange=function(n){BCm(this,n.volume,n.muted)}; g.d.Ye=function(){lM(this,this.N,this.isDragging,this.X,this.api.zn())}; g.d.Xf=function(){g.Q.prototype.Xf.call(this);g.qX(this.G,"ytp-volume-slider-active")};g.m(Gm,g.Q); Gm.prototype.onVideoDataChange=function(){var n=this.api.B();this.UD();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).bS;this.bL(this.visible);this.api.logVisibility(this.element,this.visible&&this.K);if(this.visible){var q=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",q)}n.C&&(this.N&&(this.wM(this.N),this.N=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.N4(this.element,"no-link")); q=this.api.B();n=this.api.getVideoData();var w="";q.C||(q=g.jN(q),q.indexOf("www.")===0&&(q=q.substring(4)),w=g.UJ(n)?"Assistir no YouTube Music":q==="youtube.com"?"Assistir no YouTube":g.NB("Assista em $WEBSITE",{WEBSITE:q}));this.updateValue("title",w)}; Gm.prototype.onClick=function(n){this.api.Z("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var q=this.api.B(),w=this.api.getVideoUrl(!g.t2(n),!1,!0,!0);if(g.Q2(q)){var X={};g.Q2(q)&&g.p0(this.api,"addEmbedsConversionTrackingParams",[X]);w=g.OV(w,X)}g.mh(w,this.api,n);this.api.Z("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; Gm.prototype.UD=function(){var n={J:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},S:[{J:"path",E8:!0,Y:"ytp-svg-fill",U:{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 "}}]}, q=28666,w=this.api.getVideoData();this.api.isEmbedsShortsMode()?n={J:"svg",U:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},S:[{J:"path",U:{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.UJ(w)&&(n={J:"svg",U:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},S:[{J:"path",U:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{J:"path",U:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{J:"path",U:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{J:"path",U:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{J:"path",U:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{J:"path",U:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{J:"path",U:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{J:"path",U:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{J:"path",U:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{J:"path",U:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{J:"path",U:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{J:"path",U:{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"}}]},q=216163);g.UJ(w)?g.N4(this.element,"ytp-youtube-music-button"):g.qX(this.element,"ytp-youtube-music-button");n.U=Object.assign({},n.U,{"aria-hidden":"true"});this.updateValue("logoSvg",n);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,q,!0)}; Gm.prototype.jj=function(n){g.Q.prototype.jj.call(this,n);this.api.logVisibility(this.element,this.visible&&n)};g.m(z5u,g.Um);g.d=z5u.prototype;g.d.Dm=function(){if(this.T.Z("web_player_max_seekable_on_ended")||!g.Z(this.T.getPlayerStateObject(),2))this.progressBar.hU(),this.Tp.hU()}; g.d.IR=function(){this.zf();this.XC.X?this.Dm():this.progressBar.Ph()}; g.d.KR=function(){this.Dm();this.L.start()}; g.d.zf=function(){var n;if(n=!this.T.B().X){n=this.progressBar;var q=2*g.ON()*n.D,w=n.C;n=(w.N-w.X)*1E3/n.api.getPlaybackRate()/q<300}n=n&&this.T.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;q=!n;this.XC.X||(n=q=!1);q?this.vW||(this.vW=this.j(this.T,"progresssync",this.Dm)):this.vW&&(this.wM(this.vW),this.vW=null);n?this.L.isActive()||this.L.start():this.L.stop()}; g.d.UD=function(){var n=this.T.AM(),q=this.T.yT().getPlayerSize(),w=this.T.yT().MQ,X=NCO(this),P=nP3(this),R=Math.max(q.width-X*2,100);if(this.AK!==q.width||this.qe!==n||this.T.Z("web_player_rtr_ctrls")&&this.x_!==w)this.AK=q.width,this.qe=n,this.x_=w,this.X.element.style.width=P+"px",this.X.element.style.left=X+"px",g.fC6(this.progressBar,X,P,n),this.T.Qu().lM=P;w=this.W;R=Math.min(570*(n?1.5:1),R);n=Math.min(413*(n?1.5:1),Math.round((q.height-q13(this))*.82));w.maxWidth=R;w.maxHeight=n;w.Rl();this.zf(); this.T.B().Z("html5_player_dynamic_bottom_gradient")&&n_y(this.Ne,q.height)}; g.d.onVideoDataChange=function(){var n=this.T.getVideoData();this.IH.style.background=n.bS?n.jL:"";this.PW&&Ie6(this.PW,n.showSeekingControls);this.qP&&Ie6(this.qP,n.showSeekingControls)}; g.d.WQ=function(){return this.X.element};g.m(wiu,$c);g.d=wiu.prototype;g.d.d3=function(n){n.target!==this.dismissButton.element&&(this.onClickCommand&&this.T.Uq("innertubeCommand",this.onClickCommand),this.WE())}; g.d.WE=function(){this.enabled=!1;this.L.hide()}; g.d.onVideoDataChange=function(n,q){n==="dataloaded"&&XiO(this);n=[];var w,X,P,R;if(q=(R=g.u((w=q.getWatchNextResponse())==null?void 0:(X=w.playerOverlays)==null?void 0:(P=X.playerOverlayRenderer)==null?void 0:P.suggestedActionsRenderer,S45))==null?void 0:R.suggestedActions)for(w=g.a(q),X=w.next();!X.done;X=w.next())(X=g.u(X.value,u9B))&&g.u(X.trigger,Krf)&&n.push(X);if(n.length!==0){w=[];n=g.a(n);for(X=n.next();!X.done;X=n.next())if(X=X.value,P=g.u(X.trigger,Krf))R=(R=X.title)?g.kY(R):"View Chapters", q=P.timeRangeStartMillis,P=P.timeRangeEndMillis,q!=null&&P!=null&&X.tapCommand&&(w.push(new g.og(q,P,{priority:9,namespace:"suggested_action_button_visible",id:R})),this.suggestedActions[R]=X.tapCommand);this.T.Zf(w)}}; g.d.Y9=function(){return this.enabled}; g.d.d$=function(){this.enabled?this.D0.start():TL(this);this.Nl()}; g.d.Xf=function(){XiO(this);$c.prototype.Xf.call(this)};var v2={},oi=(v2.CHANNEL_NAME="ytp-title-channel-name",v2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",v2.LINK="ytp-title-link",v2.SESSIONLINK="yt-uix-sessionlink",v2.SUBTEXT="ytp-title-subtext",v2.TEXT="ytp-title-text",v2.TITLE="ytp-title",v2);g.m(bM,g.Q);bM.prototype.onClick=function(n){this.api.logClick(this.element);var q=this.api.B(),w=this.api.getVideoUrl(!g.t2(n),!1,!0);g.Q2(q)&&(q={},g.p0(this.api,"addEmbedsConversionTrackingParams",[q]),w=g.OV(w,q));g.mh(w,this.api,n)}; bM.prototype.dl=function(){var n=this.api.getVideoData(),q=this.api.B();this.updateValue("title",n.title);var w={J:"a",Y:oi.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},Ag:"{{channelName}}"};this.api.B().C&&(w={J:"span",Y:oi.CHANNEL_NAME,Ag:"{{channelName}}",U:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",w);P6z(this);this.api.getPresentingPlayerType()===2&&(w=this.api.getVideoData(),w.videoId&&w.isListed&&w.author&&w.qe&&w.profilePicture?(this.updateValue("channelLink", w.qe),this.updateValue("channelName",w.author),this.updateValue("channelTitleFocusable","0")):P6z(this));w=q.externalFullscreen||!this.api.isFullscreen()&&q.Uu;g.XW(this.link,oi.FULLERSCREEN_LINK,w);q.PW||!n.videoId||w||n.bS||q.C?this.N&&(this.updateValue("url",null),this.wM(this.N),this.N=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.N||(this.N=this.j(this.link,"click",this.onClick)));q.C&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Q2(q)?n.expandedTitle: n.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.m(g.AL,g.Q);g.d=g.AL.prototype;g.d.setEnabled=function(n){if(this.type!=null)if(n)switch(this.type){case 3:case 2:I8y(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=n}; g.d.CJ=function(n,q,w,X,P,R,c,k){if(!this.WW||this.env.G){this.type===3&&this.Ph();this.type!==1&&(g.zK(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.X&&this.X.dispose(),(this.X=this.api.Ei())&&this.X.subscribe("l",this.kx,this));if(k){var r=g.qf(this.bg).height||141;this.HW.style.bottom=r+2+"px"}else this.HW.style.display="none";this.env.Z("delhi_modern_web_player")?(this.update({pillTimeStamp:w,pillTitle:R!=null?R:"",eduText:k!=null?k:""}),g.N4(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:w,title:R!=null?R:"",eduText:k!=null?k:""}),g.XW(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!R));this.api.isInline()&&g.N4(this.bottomText,"ytp-modern-tooltip-text");g.XW(this.element,"ytp-text-detail",!!X);w=-1;this.X&&(w=wY(this.X,243*this.scale),this.env.Z("web_l3_storyboard")&&this.X.levels.length===4&&(w=this.X.levels.length-1),w=Nzx(this.X,w,q));rpO(this,w);if(c)switch(q=g.qf(this.element).width,c){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=q+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=q/2+"px",this.title.style.textAlign="center"}k8s(this,!!X,n,P)}}; g.d.Jq=function(){this.type===1&&this.Ph()}; g.d.mj=function(n,q){if(this.type)if(this.type===3)this.Ph();else return;R_h(this,n,3,q)}; g.d.DL=function(){this.N&&!this.V&&this.N.hasAttribute("title")&&(this.C=this.N.getAttribute("title")||"",this.N.removeAttribute("title"),this.G&&I8y(this))}; g.d.kx=function(n,q){n<=this.W&&this.W<=q&&(n=this.W,this.W=NaN,rpO(this,n))}; g.d.kN=function(){zAu(this.X,this.W,243*this.scale)}; g.d.Ph=function(){switch(this.type){case 2:var n=this.N;n.removeEventListener("mouseout",this.L);n.addEventListener("mouseover",this.D);n.removeEventListener("blur",this.L);n.addEventListener("focus",this.D);j3x(this);break;case 3:j3x(this);break;case 1:this.X&&(this.X.unsubscribe("l",this.kx,this),this.X=null),this.api.removeEventListener("videoready",this.qP),this.PW.stop()}this.type=null;this.G&&this.fade.hide()}; g.d.w_=function(){if(this.N)for(var n=0;n=0;q--)if(this.vE[q]===n){this.vE.splice(q,1);break}SW(this.XC,64,this.vE.length>0)}; g.d.KA=function(){this.api.Ml()&&this.api.Oe();return!!this.s1||Uzs(this)||g.wy.prototype.KA.call(this)}; g.d.Lf=function(){var n=!this.KA(),q=n&&this.api.Ml()&&!g.Z(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().bS&&!this.api.B().C&&!this.api.isEmbedsShortsMode(),w=this.V9&&g.Sd(this.api)&&g.Z(this.api.getPlayerStateObject(),128);n||w?(this.nJ.show(),this.hC.show()):(this.nJ.hide(),this.hC.hide(),this.api.w_(this.tS.element));q?this.mz.ZC():this.mz.hK();this.FC&&W0m(this.FC,this.af5||!n);this.api.Z("web_player_hide_overflow_button_if_empty_menu")&&t13(this);g.wy.prototype.Lf.call(this)}; g.d.oe=function(n,q,w,X,P){n.style.left="";n.style.top="";n.style.bottom="";var R=g.qf(n),c=X||this.FC&&g.gr(this.FC.WQ(),q),k=X=null;w!=null&&c||(X=g.qf(q),k=g.NY(q,this.api.getRootNode()),w==null&&(w=k.x+X.width/2));w-=R.width/2;c?(q=this.FC,X=NCO(q),k=nP3(q),c=this.api.yT().getPlayerSize().height,w=g.Y1(w,X,X+k-R.width),R=c-q13(q)-R.height):g.gr(this.tS.element,q)?(q=this.api.yT().getPlayerSize().width,w=g.Y1(w,12,q-R.width-12),R=this.AM()?this.l6:this.nk,this.api.B().playerStyle==="gvn"&&(R+= 20),this.V9&&(R-=this.AM()?26:18)):(q=this.api.yT().getPlayerSize(),w=g.Y1(w,12,q.width-R.width-12),R=k.y>(q.height-X.height)/2?k.y-R.height-12:k.y+X.height+12);n.style.top=R+(P||0)+"px";n.style.left=w+"px"}; g.d.IR=function(n){n&&(this.api.w_(this.tS.element),this.FC&&this.api.w_(this.FC.WQ()));this.GW&&(g.XW(this.contextMenu.element,"ytp-autohide",n),g.XW(this.contextMenu.element,"ytp-autohide-active",!0));g.wy.prototype.IR.call(this,n)}; g.d.dF=function(){g.wy.prototype.dF.call(this);this.GW&&(g.XW(this.contextMenu.element,"ytp-autohide-active",!1),this.GW&&(this.contextMenu.hide(),this.fb&&this.fb.hide()))}; g.d.rd=function(n,q){var w=this.api.yT().getPlayerSize();w=new g.bX(0,0,w.width,w.height);if(n||this.XC.X&&!this.KA()){if(this.api.B().vr||q)n=this.AM()?this.l6:this.nk,w.top+=n,w.height-=n;this.FC&&(w.height-=q13(this.FC))}return w}; g.d.K3=function(n){var q=this.api.getRootNode();n?q.parentElement?(q.setAttribute("aria-label","Player de v\u00eddeo do YouTube em tela cheia"),this.api.B().externalFullscreen||(q.parentElement.insertBefore(this.Xl.element,q),q.parentElement.insertBefore(this.AF.element,q.nextSibling))):g.pC(Error("Player not in DOM.")):(q.setAttribute("aria-label","Player de v\u00eddeo do YouTube"),this.Xl.detach(),this.AF.detach());this.UD();this.LX()}; g.d.AM=function(){var n=this.api.B();return this.api.isFullscreen()&&!n.G||!1}; g.d.showControls=function(n){this.d8=!n;this.Lf()}; g.d.UD=function(){var n=this.AM();this.tooltip.scale=n?1.5:1;this.contextMenu&&g.XW(this.contextMenu.element,"ytp-big-mode",n);this.Lf();this.api.Z("web_player_hide_overflow_button_if_empty_menu")||t13(this);this.LX();var q=this.api.isEmbedsShortsMode();q&&n?(n=(this.api.yT().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K$(this.tS.element,"padding-left",n+"px"),g.K$(this.tS.element,"padding-right",n+"px")):q&&(g.K$(this.tS.element,"padding-left",""),g.K$(this.tS.element,"padding-right", ""));g.wy.prototype.UD.call(this)}; g.d.Z1=function(){if(Uzs(this)&&!g.Sd(this.api))return!1;var n=this.api.getVideoData();return!g.Q2(this.api.B())||this.api.getPresentingPlayerType()===2||!this.Tx||((n=this.Tx||n.Tx)?(n=n.embedPreview)?(n=n.thumbnailPreviewRenderer,n=n.videoDetails&&g.u(n.videoDetails,GzY)||null):n=null:n=null,n&&n.collapsedRenderer&&n.expandedRenderer)?g.wy.prototype.Z1.call(this):!1}; g.d.LX=function(){g.wy.prototype.LX.call(this);this.api.logVisibility(this.title.element,!!this.V2);this.Ie&&this.Ie.jj(!!this.V2);this.channelAvatar.jj(!!this.V2);this.overflowButton&&this.overflowButton.jj(this.lP()&&!!this.V2);this.shareButton&&this.shareButton.jj(!this.lP()&&!!this.V2);this.lJ&&this.lJ.jj(!this.lP()&&!!this.V2);this.searchButton&&this.searchButton.jj(!this.lP()&&!!this.V2);this.copyLinkButton&&this.copyLinkButton.jj(!this.lP()&&!!this.V2);if(!this.V2){this.api.w_(this.tS.element); for(var n=0;n5&&q.p5("glrs",{cmt:w});q.seekTo(0,{seekSource:58});q.p5("glrre",{cmt:w})}}; SK.prototype.Xf=function(){this.N=null;g.A.prototype.Xf.call(this)};g.m(g.uM,rd);g.d=g.uM.prototype;g.d.isView=function(){return!0}; g.d.E$=function(){var n=this.mediaElement.getCurrentTime();if(n1;KT(n.Uj(),X-.01)&&!P&&(QP(this,4),w.isActive=!1,w.j9=w.j9||w.isActive,(this.K===1?this.N:this.X).p5("sbh",{}),q.isActive=!0,q.j9=q.j9||q.isActive,this.K!==0&&(this.N.getVideoData().Wj=!0));n=this.W.X;if(this.W.N.isActive&&n.isActive&&(QP(this,5),this.K!==0)){n=this.X.IG();w=this.N.IG(); this.N.p5("sbs",{citag:w==null?void 0:w.itag,nitag:n==null?void 0:n.itag});this.X.p5("gitags",{pitag:w==null?void 0:w.itag,citag:n==null?void 0:n.itag});var R;(R=this.X)==null||R.Ti()}}}; g.d.TV=function(){this.I8()&&this.oY("player-reload-after-handoff")}; g.d.oY=function(n,q){q=q===void 0?{}:q;if(!this.zp()&&this.status.status!==6){var w=this.status.status>=4&&n!=="player-reload-after-handoff";this.status={status:Infinity,error:n};if(this.N&&this.X){var X=this.X.getVideoData().clientPlaybackNonce;this.N.Az(new g.kw("dai.transitionfailure",Object.assign(q,{cpn:X,transitionTimeMs:this.Lh,msg:n})));this.N.FZ(w)}this.Vy.reject(n);this.dispose()}}; g.d.I8=function(){return this.status.status>=4&&this.status.status<6}; g.d.Xf=function(){LSm(this);this.N.unsubscribe("newelementrequired",this.TV,this);if(this.C){var n=this.C.X;this.C.N.LG.unsubscribe("updateend",this.Vh,this);n.LG.unsubscribe("updateend",this.Vh,this)}g.A.prototype.Xf.call(this)}; g.d.Ta=function(n){g.k0(n,128)&&this.oY("player-error-event")};g.m(Z_,g.A);Z_.prototype.clearQueue=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;this.W&&this.W.reject("Queue cleared");this.app.B().Z("html5_gapless_fallback_on_qoe_restart_v2")||q&&this.X&&this.X.FZ(!1);JL(this,n)}; Z_.prototype.AS=function(){return!this.N}; Z_.prototype.I8=function(){var n;return((n=this.C)==null?void 0:n.I8())||!1}; Z_.prototype.Xf=function(){JL(this);g.A.prototype.Xf.call(this)};g.m(EPs,g.np);g.d=EPs.prototype;g.d.getVisibilityState=function(n,q,w,X,P,R,c,k){return n?4:YMs()?3:q?2:w?1:X?5:P?7:R?8:c?9:k?10:0}; g.d.ST=function(n){this.fullscreen!==n&&(this.fullscreen=n,this.d$())}; g.d.setMinimized=function(n){this.X!==n&&(this.X=n,this.d$())}; g.d.setInline=function(n){this.inline!==n&&(this.inline=n,this.d$())}; g.d.ZU=function(n){this.pictureInPicture!==n&&(this.pictureInPicture=n,this.d$())}; g.d.setSqueezeback=function(n){this.C!==n&&(this.C=n,this.d$())}; g.d.eb=function(n){this.W!==n&&(this.W=n,this.d$())}; g.d.xw=function(){return this.N}; g.d.vN=function(){return this.fullscreen!==0}; g.d.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.d.JF=function(){return this.fullscreen}; g.d.isMinimized=function(){return this.X}; g.d.isInline=function(){return this.inline}; g.d.isBackground=function(){return YMs()}; g.d.IX=function(){return this.pictureInPicture}; g.d.vV=function(){return!1}; g.d.Jk=function(){return this.C}; g.d.Ou=function(){return this.W}; g.d.d$=function(){this.publish("visibilitychange");var n=this.getVisibilityState(this.xw(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.IX(),this.vV(),this.Jk(),this.Ou());n!==this.D&&this.publish("visibilitystatechange");this.D=n}; g.d.Xf=function(){uzs(this.K);g.np.prototype.Xf.call(this)};g.m(g.zm,g.A);g.d=g.zm.prototype;g.d.Xf=function(){this.videoData=this.playerState=null;g.A.prototype.Xf.call(this)}; g.d.addCueRange=function(){}; g.d.yz=function(){}; g.d.O1=function(){}; g.d.PH=function(){return!1}; g.d.m6=function(){return!1}; g.d.fN=function(){}; g.d.n$=function(){}; g.d.w9=function(){return[]}; g.d.D7=function(){}; g.d.getAudioTrack=function(){return this.getVideoData().LO}; g.d.u9=function(){return null}; g.d.getAvailableAudioTracks=function(){return[]}; g.d.d4=function(){return[]}; g.d.TL=function(){return[]}; g.d.cO=function(){return""}; g.d.yJ=function(){return[]}; g.d.OP=function(){}; g.d.v_=function(){return 0}; g.d.getCurrentTime=function(){return 0}; g.d.eA=function(){}; g.d.IG=function(){}; g.d.RP=function(){return{}}; g.d.getDuration=function(){return 0}; g.d.Jx=function(){return 0}; g.d.Py=function(){return 0}; g.d.Un=function(){return!1}; g.d.TH=function(){return 0}; g.d.Jf=function(){return 0}; g.d.Q2=P0(7);g.d.zH=function(){return 0}; g.d.g4=function(){return!1}; g.d.kJ=function(){return 0}; g.d.Ii=function(){return null}; g.d.TY=function(){return null}; g.d.oi=function(){return 0}; g.d.dH=function(){return 0}; g.d.Lx=function(){return g.b(function(n){g.yy(n)})}; g.d.SL=P0(15);g.d.getPlaybackQuality=function(){return"auto"}; g.d.getPlaybackRate=function(){return 1}; g.d.getPlayerState=function(){this.playerState||(this.playerState=new g.OG);return this.playerState}; g.d.getPlayerType=function(){return 0}; g.d.getPlaylistSequenceForTime=function(){return null}; g.d.LD=function(){return function(){}}; g.d.Yd=function(){return""}; g.d.getPreferredQuality=function(){return"unknown"}; g.d.ud=function(){}; g.d.getProximaLatencyPreference=function(){return 0}; g.d.Xe=function(){return rY}; g.d.Ei=function(){return null}; g.d.getStoryboardFormat=function(){return null}; g.d.getStreamTimeOffset=function(){return 0}; g.d.mX=function(){return 0}; g.d.Zj=function(){return 0}; g.d.Vj=function(){return{DR:[],Lv:[],currentTime:0,RU:"",droppedVideoFrames:0,isGapless:!1,AS:!0,l3:0,CK:0,fK:0,wi:0,cz:0,T_:[],P3:[],Ea:null,playerState:this.getPlayerState(),C2:null,VF:"",totalVideoFrames:0}}; g.d.getUserAudio51Preference=function(){return 0}; g.d.getUserPlaybackQualityPreference=function(){return""}; g.d.getVideoData=function(){this.videoData||(this.videoData=new g.jF(this.NP),g.K(this,this.videoData));return this.videoData}; g.d.ys=function(){return null}; g.d.dG=function(){return null}; g.d.Fg=function(){}; g.d.getVideoLoadedFraction=function(){return 0}; g.d.Km=function(){}; g.d.handleError=function(){}; g.d.FZ=function(){}; g.d.J9=function(){}; g.d.Eo=P0(40);g.d.eT=function(){return!1}; g.d.hasSupportedAudio51Tracks=function(){return!1}; g.d.In=function(){return!1}; g.d.xw=function(){return!1}; g.d.isAtLiveHead=function(){return!1}; g.d.Vx=function(){return!0}; g.d.isGapless=function(){return!1}; g.d.isHdr=function(){return!1}; g.d.IE=function(){return!1}; g.d.R1=function(){return!1}; g.d.HV=function(){return!1}; g.d.isProximaLatencyEligible=function(){return!1}; g.d.AS=function(){return!0}; g.d.wr=function(){return!1}; g.d.LN=function(){return!1}; g.d.NF=function(){}; g.d.Wu=function(){}; g.d.Ti=function(){}; g.d.Cf=function(){}; g.d.FT=function(){}; g.d.KS=function(){}; g.d.ZZ=function(){}; g.d.iX=P0(50);g.d.Bh=P0(21);g.d.UR=function(){}; g.d.pauseVideo=function(){}; g.d.prefetchKeyPlay=function(){}; g.d.playVideo=function(){return g.b(function(n){return n.return()})}; g.d.cG=function(){}; g.d.gm=P0(27);g.d.Yw=P0(33);g.d.Hk=function(){}; g.d.p5=function(){}; g.d.j$=function(){}; g.d.uq=function(){}; g.d.rW=function(){}; g.d.Az=function(){}; g.d.Db=function(){}; g.d.uc=function(){}; g.d.tY=function(){}; g.d.DM=function(){}; g.d.Ft=function(){}; g.d.VK=function(){}; g.d.removeCueRange=function(){}; g.d.qa=function(){}; g.d.wg=function(){return[]}; g.d.dD=function(){}; g.d.Wh=function(){}; g.d.al=function(){}; g.d.ZM=function(){}; g.d.jC=function(){}; g.d.tD=function(){}; g.d.seekTo=function(){}; g.d.sendAbandonmentPing=function(){}; g.d.sendVideoStatsEngageEvent=function(){}; g.d.Kf=function(){}; g.d.setLoop=function(){}; g.d.Ll=function(){}; g.d.setMediaElement=function(){}; g.d.TJ=function(){}; g.d.setPlaybackRate=function(){}; g.d.pL=function(){}; g.d.G3=function(){}; g.d.GG=function(){}; g.d.setProximaLatencyPreference=function(){}; g.d.rB=function(){}; g.d.F2=function(){}; g.d.r5=function(){}; g.d.dB=function(){}; g.d.Pn=function(){}; g.d.setUserAudio51Preference=function(){}; g.d.Ux=function(){}; g.d.y5=function(){return!1}; g.d.aG=function(){}; g.d.Sq=function(){return!1}; g.d.K8=function(){}; g.d.GJ=function(){}; g.d.Qr=function(){}; g.d.stopVideo=function(){}; g.d.subscribe=function(){return NaN}; g.d.yd=function(){}; g.d.togglePictureInPicture=function(){}; g.d.Rb=function(){return 0}; g.d.unsubscribe=function(){return!1}; g.d.m9=function(){}; g.d.zR=function(){return!1}; g.d.yy=function(){}; g.d.KJ=function(){}; g.d.mM=function(){};g.m(nf,g.A);g.d=nf.prototype;g.d.get=function(n){WB(this);var q=this.data.find(function(w){return w.key===n}); return q?q.value:null}; g.d.set=function(n,q,w){this.remove(n,!0);WB(this);n={key:n,value:q,expire:Infinity};w&&isFinite(w)&&(w*=1E3,n.expire=(0,g.m$)()+w);for(this.data.push(n);this.data.length>this.C;)(w=this.data.shift())&&qA(this,w,!0);Np(this)}; g.d.remove=function(n,q){q=q===void 0?!1:q;var w=this.data.find(function(X){return X.key===n}); w&&(qA(this,w,q),g.vG(this.data,function(X){return X.key===n}),Np(this))}; g.d.removeAll=function(n){if(n=n===void 0?!1:n)for(var q=g.a(this.data),w=q.next();!w.done;w=q.next())qA(this,w.value,n);this.data=[];Np(this)}; g.d.Xf=function(){var n=this;g.A.prototype.Xf.call(this);this.data.forEach(function(q){qA(n,q,!0)}); this.data=[]};g.m(g.w9,g.A);g.d=g.w9.prototype;g.d.Xf=function(){for(var n=g.a(Object.values(this.C)),q=n.next();!q.done;q=n.next())q.value.dispose();oPy(this);this.N.dispose();g.A.prototype.Xf.call(this)}; g.d.cX=function(n){return n?n===1?this.V:this.X.getVideoData().enableServerStitchedDai&&n===2?this.X.getVideoData().TZ?this.C[2]||this.X:this.X:this.C[n]||null:this.X}; g.d.rg=function(n){var q=n.cpn;n=n.playerType;if(q)a:{n=g.a(Object.values(this.C));for(var w=n.next();!w.done;w=n.next())if(w=w.value,w.cO()===q){q=w;break a}q=this.D[q]||null}else q=n?this.cX(n):this.X;return q}; g.d.XF=function(){return this.V}; g.d.Ro=function(n){this.V=n}; g.d.Yh=function(){return this.X}; g.d.uA=function(n){this.X=n;XF(this)}; g.d.IC=P0(46);g.d.Tg=P0(48);g.m(Q3m,g.qb);g.d=Q3m.prototype;g.d.WS=function(){}; g.d.cO=function(){return this.videoData.clientPlaybackNonce}; g.d.getVideoData=function(){if(g.qb.prototype.getVideoData.call(this).Z("html5_huli_ssdai_use_playback_state")){if(!this.N.cpn){var n=in6(this.FR,g.qb.prototype.getCurrentTime.call(this))||g.qb.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==n.clientPlaybackNonce&&(this.p5("huli-sdai-err",{cpn:this.videoData.clientPlaybackNonce,ref:n.clientPlaybackNonce}),this.N.cpn=!0)}return this.videoData}return in6(this.FR,g.qb.prototype.getCurrentTime.call(this))||g.qb.prototype.getVideoData.call(this)}; g.d.getCurrentTime=function(n){var q=g.qb.prototype.getCurrentTime.call(this);if(g.qb.prototype.getVideoData.call(this).Z("html5_huli_ssdai_use_playback_state")){if(this.endTime===0?n||(q-=this.startTime):n&&(q=this.endTime-this.startTime),!this.N["time"+n]){var w=n?this.FR.s3||q:sHY(this.FR,q);q!==w&&(this.p5("huli-sdai-err",{time:q,ref:w,ct:n}),this.N["time"+n]=!0)}}else q=n?this.FR.s3||q:sHY(this.FR,q);return q}; g.d.getDuration=function(){if(g.qb.prototype.getVideoData.call(this).Z("html5_huli_ssdai_use_playback_state")){if(!this.N.duration){var n=fly(this.FR,g.qb.prototype.getCurrentTime.call(this));this.duration!==n&&(this.p5("huli-sdai-err",{dur:this.duration,ref:n}),this.N.duration=!0)}return this.duration}return fly(this.FR,g.qb.prototype.getCurrentTime.call(this))}; g.d.Rg=function(n){this.duration=n};g.RN.prototype.i9=function(n,q){if(q===1)return this.N.get(n);if(q===2)return this.C.get(n);if(q===3)return this.X.get(n)}; g.RN.prototype.yD=P0(58);g.RN.prototype.Sd=function(n,q,w,X){w={HH:X,U5:w};q?this.C.set(n,w):this.N.set(n,w)}; g.RN.prototype.clearAll=function(){this.N.clear();this.C.clear();this.X.clear()}; Jp3.prototype.clear=function(){this.N=[];this.C.clear();this.W.clear();this.X.clear()}; g.m(g.c6,g.A);g.d=g.c6.prototype;g.d.onCueRangeEnter=function(n){var q=n.getId();this.vQ({oncueEnter:1,cpn:q,start:n.start,end:n.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.v_()||0).toFixed(3)});var w=this.N.C.get(q);this.vQ({enterAdCueRange:1});var X=this.i7||this.DH().cpn,P;X=(P=this.N.C.get(X))!=null?P:this.DH();w&&(P=this.playback.getCurrentTime(),w={X7:X,q0:w,PJ:P},hMs(this,q,n.start/1E3,P),DSs(this,w))}; g.d.OM=function(n,q){if(n===this.playback.cO())P6(this.app.T1(),this.playback,!1);else{var w=this.HW.get(n);w?(w.endTime=0,w.startTime=q,P6(this.app.T1(),w,!0)):this.vQ({nop_s:n})}}; g.d.onCueRangeExit=function(n){for(var q=this.playback.getCurrentTime()*1E3,w=n.getId(),X=g.a(this.X.values()),P=X.next();!P.done;P=X.next())if(P=P.value,P.getId()!==w&&q>=P.start&&q<=P.end)return;if(w=this.N.C.get(w))q=this.playback.getCurrentTime(),w={X7:w,q0:this.DH(),PJ:q},hMs(this,this.playback.cO(),n.end/1E3,q),DSs(this,w)}; g.d.DH=function(){return{cpn:this.playback.cO(),durationMs:0,Pb:0,playerType:1,xH:0,videoData:this.playback.getVideoData(),errorCount:0,pO:""}}; g.d.seekTo=function(n,q,w,X){n=n===void 0?0:n;q=q===void 0?{}:q;w=w===void 0?!1:w;X=X===void 0?null:X;ff(this,this.i7);if(this.playback.getVideoData().M7()&&n<=this.s3)this.playback.pauseVideo(),this.s3=0,llx(this,n);else if(this.qP=!0,w)qCx(this,n,q);else{w=this.app.Yh();var P=w===this.WW?this.oH:null;s$(this,!1);this.Ne=n;this.RH=q;X!=null&&this.je.start(X);w&&(this.oH=P||w.getPlayerState(),w.Qr(q),this.WW=w)}}; g.d.Xf=function(){s$(this,!1);USY(this);tUY(this);g.A.prototype.Xf.call(this)}; g.d.Zh=function(n){this.AK=n;this.vQ({swebm:n})}; g.d.kS=function(n,q,w){if(w&&q){var X=this.K.get(n);if(X){X.locations||(X.locations=new Map);var P=Number(q.split(";")[0]);w=new g.Ei(w);this.vQ({hdlredir:1,itag:q,seg:n,hostport:bi(w)});X.locations.set(P,w)}}}; g.d.aJ=function(n,q,w,X,P,R){var c=X===3,k=mSs(this,n,q,X,w,R);if(!k){ea(this,q,c);var r=g.dSO(this,q)?"undec":"ncp";this.vQ({gvprp:r,mt:n,seg:q,tt:X,itag:w,ce:R});return null}c||this.K.set(q,k);R=k.pO;var e;X=((e=this.i9(q-1,X,P))==null?void 0:e.HH)||"";X===""&&this.vQ({eds:1});e=als(this,k.ssdaiAdsConfig);P=this.playback.getVideoData();var f;c=((f=P.X)==null?void 0:f.containerType)||0;f=P.XG[c];k=k.eK&&q>=k.eK?k.eK:void 0;f={iR:R?FsY(this,R):[],bk:e,HH:X,fJ:k,Ob:h_(f.split(";")[0]),ek:f.split(";")[1]|| ""};k={Ug:f};this.n5&&(n={gvprpro:"v",sq:q,mt:n.toFixed(3),itag:w,acpns:((r=f.iR)==null?void 0:r.join("_"))||"none",abid:R},this.vQ(n));return k}; g.d.R4=function(n){a:{if(!this.lU){var q=yCY(this,n);if(!(this.playback.getVideoData().M7()&&(q==null?0:q.E7)))break a}q=void 0}var w=q;if(!w)return this.vQ({gvprp:"ncp",mt:n}),null;q=w.pO;var X=als(this,w.ssdaiAdsConfig);w=w.eK&&w.So&&n>=w.So?w.eK:void 0;var P=this.playback.getVideoData(),R,c=((R=P.X)==null?void 0:R.containerType)||0;R=P.XG[c];R={iR:q?FsY(this,q):[],bk:X,fJ:w,Ob:h_(R.split(";")[0]),ek:R.split(";")[1]||""};var k;n={gvprpro:"v",mt:n.toFixed(3),acpns:((k=R.iR)==null?void 0:k.join("_"))|| "none",abid:q};this.vQ(n);return R}; g.d.dV=function(n,q,w,X,P,R){var c=Number(w.split(";")[0]),k=X===3;n=mSs(this,n,q,X,w,R);this.vQ({gdu:1,seg:q,itag:c,pb:""+!!n});if(!n)return ea(this,q,k),null;n.locations||(n.locations=new Map);if(!n.locations.has(c)){var r,e;R=(r=n.videoData.getPlayerResponse())==null?void 0:(e=r.streamingData)==null?void 0:e.adaptiveFormats;if(!R)return this.vQ({gdu:"noadpfmts",seg:q,itag:c}),ea(this,q,k),null;r=R.find(function(H){return H.itag===c}); if(!r||!r.url){var f=n.videoData.videoId;n=[];var O=g.a(R);for(X=O.next();!X.done;X=O.next())n.push(X.value.itag);this.vQ({gdu:"nofmt",seg:q,vid:f,itag:c,fullitag:w,itags:n.join(",")});ea(this,q,k);return null}n.locations.set(c,new g.Ei(r.url,!0))}R=n.locations.get(c);if(!R)return this.vQ({gdu:"nourl",seg:q,itag:c}),ea(this,q,k),null;R=new xM(R);this.AK&&(R.get("dvc")?this.vQ({dvc:R.get("dvc")||""}):R.set("dvc","webm"));(X=(O=this.i9(q-1,X,P))==null?void 0:O.HH)&&R.set("daistate",X);n.eK&&q>=n.eK&& R.set("skipsq",""+n.eK);(O=this.playback.getVideoData().clientPlaybackNonce)&&R.set("cpn",O);O=[];n.pO&&(O=FsY(this,n.pO),O.length>0&&R.set("acpns",O.join(",")));k||this.K.set(q,n);k=null;k=R.get("aids");X=R.kH();(X==null?void 0:X.length)>2048&&this.vQ({urltoolong:1,sq:q,itag:c,len:X.length});this.n5&&(X&&(R=n.cpn,P=n.pO,LsY(this,R,P),P&&!this.YE.has(P)&&(R=$Ss(this,R,P),r=v73(this,P),this.vQ({iofa:R}),this.vQ({noawnzd:r-R}),this.vQ({acpns:O.join("."),aids:(f=k)==null?void 0:f.replace(/,/g,".")}), this.YE.add(P))),this.vQ({gdu:"v",seg:q,itag:w,ast:n.Pb.toFixed(3),alen:n.durationMs.toFixed(3),acpn:n.cpn,avid:n.videoData.videoId}));return X}; g.d.O_=function(n,q,w){w=w===void 0?!1:w;var X=g7s(this,n,q);if(X){var P=void 0,R=X.pO;if(R){this.vQ({skipadonsq:q,sts:w,abid:R,acpn:X.cpn,avid:X.videoData.videoId});w=this.N.X.get(R);if(!w)return;w=g.a(w);for(R=w.next();!R.done;R=w.next())R=R.value,R.eK=q,R.So=n,R.Pb>X.Pb&&(P=R)}ff(this,this.i7);this.C=X.cpn;VUz(this);n=this.playback.getCurrentTime();pd6(this,X,P,n,n,!1,!0);xS3(this)}}; g.d.dS=function(){for(var n=g.a(this.N.N),q=n.next();!q.done;q=n.next())q=q.value,q.eK=NaN,q.So=NaN;VUz(this);this.vQ({rsac:"resetSkipAd",sac:this.C});this.Ff.delete(this.C);this.C=""}; g.d.i9=function(n,q,w){return this.PW.i9(n,q,w)}; g.d.yD=P0(57); g.d.Sd=function(n,q,w,X,P,R,c,k,r){X.length>0&&this.vQ({onssinfo:1,sq:n,start:q.toFixed(3),cpns:X.join(","),ds:P.join(","),isVideo:c?1:0});r&&this.PW.Sd(n,c,k,r);if(c){if(X.length&&P.length)for(this.Ff.has(X[0])&&this.vQ({skipfail:1,sq:n,acpn:X[0]}),n=q+this.mX(),w=0;w0&&(this.vH=0,this.i7="",this.api.publish("serverstitchedvideochange"));this.playback.n$(w,X);return!0}; g.d.d9=function(){this.vQ({rstdaist:1});this.PW.clearAll()}; g.d.JX=function(n){var q;if(n!==((q=this.D)==null?void 0:q.identifier))this.vQ({ignorenoad:n});else{this.IH.add(n);this.vQ({noadrcv:n});var w;((w=this.D)==null?void 0:w.identifier)===n&&kr(this)}}; g.d.wW=function(n){if(this.lU)return this.vQ({dai_disabled:n.event}),!1;if(this.playback.getVideoData().M7()&&(this.NP.Z("html5_lifa_no_gab_on_predict_start")&&n.event==="predictStart"||n.event==="continue"||n.event==="stop"))return!1;var q=ov(this.api.fM());if(q=q?q.wW(n):!1)this.W={WZ:n.identifier,Fj:n.startSecs};else if(this.W&&this.W.WZ===n.identifier&&n.startSecs>this.W.Fj+1){this.vQ({cueStChg:n.identifier,oldSt:this.W.Fj.toFixed(3),newSt:n.startSecs.toFixed(3),abid:this.W.ra});if(this.W.ra){var w= n.startSecs-this.W.Fj,X=this.N.X.get(this.W.ra);if(X){X=g.a(X);for(var P=X.next();!P.done;P=X.next())P=P.value,P.Pb>=0&&(P.Pb+=w*1E3,this.NP.Z("html5_ssdai_update_timeline_on_start_time_change")&&(P.xH+=w*1E3),this.vQ({newApEt:P.Pb,newApPrt:P.xH,acpn:P.cpn}))}}this.W.Fj=n.startSecs}return q}; g.d.mZ=function(n){return this.lU?!1:!!yCY(this,n)}; g.d.R$=function(n){var q=this;if(this.NP.Z("html5_lifa_ignore_multiple_skips")&&this.vW)return this.vQ({ufs_ad:this.C,ufs_cur:this.i7,ufs_cont:this.DH().cpn}),!1;ff(this,this.i7);this.playback.pauseVideo();var w=this.playback.getCurrentTime(),X=this.N.C.get(this.i7);if(!X)return this.vQ({skipFail:w}),!1;this.C=this.i7;this.qP=!1;MUs(this,X.pO);GAz(this,X,this.DH(),n);llx(this,w,{seekSource:89,zk:"lifa_skip"});this.vW||(this.vW=this.events.j(this.api,"progresssync",function(){pq(q.api.mL(),(0,g.m$)(), "ad_to_video");q.vW&&(q.events.wM(q.vW),q.vW=null)})); return!0}; g.d.vQ=function(n,q){((q===void 0?0:q)||this.n5||this.playback.getVideoData().M7())&&this.playback.p5("sdai",n)}; var RMT=0;g.m(E7s,g.A);g.d=E7s.prototype;g.d.onCueRangeEnter=function(n){if(this.N===this.app.Yh()){var q=this.K.get(n);q?SC3(this,q.target,q.Lh,n):this.Az("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:n.toString()})}else if(q=this.X.find(function(P){return P.wG.OF===n})){var w=q.wG,X=w.target; w=w.Lh;X?SC3(this,X,w,n):KsT(this,q.xH,w,n)}}; g.d.onQueuedVideoLoaded=function(){var n=this.G;U$(this);if(n){if(!H6(this,n)){var q=this.app.Yh();this.Az("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:q==null?void 0:q.getVideoData().clientPlaybackNonce,ccpn:""+n.playerVars.cpn})}this.app.Yh().addCueRange(n.wG.OF)}}; g.d.seekTo=function(n,q,w,X){n=n===void 0?0:n;q=q===void 0?{}:q;X=X===void 0?null:X;if(w===void 0?0:w)CoO(this,n,q);else{w=this.app.Yh()||null;var P=w===this.W?this.D:null;te(this,!1);this.qP=n;this.L=q;X!=null&&this.V.start(X);w&&(this.D=P||w.getPlayerState(),w.Qr(),this.W=w)}}; g.d.RX=function(n){g.k0(n,128)&&JCY(this)}; g.d.isManifestless=function(){return xI(this.N.getVideoData())}; g.d.Xf=function(){te(this,!1);Wsz(this);g.A.prototype.Xf.call(this)}; g.d.Az=function(n,q){this.N.Az(new g.kw(n,q))}; var o7Y=0;var NJO="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.m(d9,g.A);d9.prototype.IL=function(n){if(n)return this.X.get(n)}; d9.prototype.Xf=function(){this.N.removeAll();this.X.removeAll();g.A.prototype.Xf.call(this)};g.lQh=xm(function(){var n=window.AudioContext||window.webkitAudioContext;try{return new n}catch(q){return q.name}});g.m(Pnm,g.Q);g.d=Pnm.prototype;g.d.mQ=function(){g.nc(this.element,g.bs.apply(0,arguments))}; g.d.Wh=function(){this.ya&&(this.ya.removeEventListener("focus",this.Vc),g.dr(this.ya),this.ya=null)}; g.d.UX=function(){this.zp();var n=this.app.B();n.Hr||this.mQ("tag-pool-enabled");n.D&&this.mQ(g.ii.HOUSE_BRAND);n.playerStyle==="gvn"&&(this.mQ("ytp-gvn"),this.element.style.backgroundColor="transparent");n.ej&&(this.OX=g.Zu("yt-dom-content-change",this.resize,this));n.Z("html5_screen_orientation_resize")?window.screen&&window.screen.orientation?this.j(window.screen.orientation,"change",this.resize,this):this.j(window,"orientationchange",this.resize,this):this.j(window,"orientationchange",this.resize, this);this.j(window,"resize",this.resize,this)}; g.d.SC=function(n){g.NT(this.app.B());this.zW=!n;g9(this)}; g.d.resize=function(){if(this.ya){var n=this.qr();if(!n.isEmpty()){var q=!g.ZY(n,this.Pm.getSize()),w=rcu(this);q&&(this.Pm.width=n.width,this.Pm.height=n.height);n=this.app.B();(w||q||this.A0||n.ej)&&this.app.Oq.publish("resize",this.getPlayerSize())}}}; g.d.FI=function(n,q){this.updateVideoData(q)}; g.d.updateVideoData=function(n){if(this.ya){var q=this.app.B();bg&&(this.ya.setAttribute("x-webkit-airplay","allow"),n.title?this.ya.setAttribute("title",n.title):this.ya.removeAttribute("title"));this.ya.setAttribute("controlslist","nodownload");q.Cz&&n.videoId&&(this.ya.poster=n.EF("default.jpg"))}q=g.YI(n,"yt:bgcolor");this.pN.style.backgroundColor=q?q:"";this.tp=wt(g.YI(n,"yt:stretch"));this.nE=wt(g.YI(n,"yt:crop"),!0);g.XW(this.element,"ytp-dni",n.bS);this.resize()}; g.d.setGlobalCrop=function(n){this.Nz=wt(n,!0);this.resize()}; g.d.setCenterCrop=function(n){this.Qg=n;this.resize()}; g.d.ST=function(){}; g.d.getPlayerSize=function(){var n=this.app.B(),q=this.app.Oq.isFullscreen(),w=n.externalFullscreen&&g.Q2(n);if(q&&EU()&&!w)return new g.QB(window.outerWidth,window.outerHeight);w=!isNaN(this.p7.width)&&!isNaN(this.p7.height);var X=this.app.B().Z("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.B().Z("web_watch_enable_fs_squeezeback_panels");if(q&&!w&&X)return new g.QB(this.element.clientWidth,this.element.clientHeight);if(q||n.aj){if(window.matchMedia){n="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Hc&&this.Hc.media===n||(this.Hc=window.matchMedia(n));var P=this.Hc&&this.Hc.matches}if(P)return new g.QB(window.innerWidth,window.innerHeight)}else if(w)return this.p7.clone();return new g.QB(this.element.clientWidth,this.element.clientHeight)}; g.d.qr=function(){var n=this.app.B().Z("enable_desktop_player_underlay"),q=this.getPlayerSize(),w=g.Jv(this.app.B().experiments,"player_underlay_min_player_width");return n&&this.gA&&q.width>w?(n=g.Jv(this.app.B().experiments,"player_underlay_video_width_fraction"),new g.QB(Math.min(q.height*this.getVideoAspectRatio(),q.width*n),Math.min(q.height,q.width*n/this.getVideoAspectRatio()))):q}; g.d.getVideoAspectRatio=function(){return isNaN(this.tp)?cc0(this):this.tp}; g.d.getVideoContentRect=function(n){var q=this.qr();n=Iws(this,q,this.getVideoAspectRatio(),n);return new g.bX((q.width-n.width)/2,(q.height-n.height)/2,n.width,n.height)}; g.d.Yy=function(n){this.gA=n;this.resize()}; g.d.WV=function(){return this.fl}; g.d.onMutedAutoplayChange=function(){g9(this)}; g.d.setInternalSize=function(n){g.ZY(this.p7,n)||(this.p7=n,this.resize())}; g.d.Xf=function(){this.OX&&g.J8(this.OX);this.Wh();g.Q.prototype.Xf.call(this)};g.d=sGO.prototype;g.d.click=function(n,q){this.elements.has(n);this.N.has(n);var w=g.Uk();w&&n.visualElement&&g.zQ(w,n.visualElement,q)}; g.d.createClientVe=function(n,q,w,X){var P=this;X=X===void 0?!1:X;this.elements.has(n);this.elements.add(n);w=mgY(w);n.visualElement=w;var R=g.Uk(),c=g.HW();R&&c&&(g.OU("combine_ve_grafts")?KY(Am(),w,c):g.SY(g.Ek)(void 0,R,c,w));q.addOnDisposeCallback(function(){P.elements.has(n)&&P.destroyVe(n)}); X&&this.X.add(n)}; g.d.createServerVe=function(n,q,w){var X=this;w=w===void 0?!1:w;this.elements.has(n);this.elements.add(n);q.addOnDisposeCallback(function(){X.destroyVe(n)}); w&&this.X.add(n)}; g.d.destroyVe=function(n){this.elements.has(n);this.elements.delete(n);this.C.delete(n);this.N.delete(n);this.X.delete(n)}; g.d.EH=function(n,q){this.clientPlaybackNonce!==q&&(this.clientPlaybackNonce=q,Yf(Am(),n),eBO(this))}; g.d.setTrackingParams=function(n,q){this.elements.has(n);q&&(n.visualElement=g.Ok(q))}; g.d.bL=function(n,q,w){this.elements.has(n);q?this.N.add(n):this.N.delete(n);var X=g.Uk(),P=n.visualElement;this.X.has(n)?X&&P&&(q?g.Zx(X,[P]):g.JB(X,[P])):q&&!this.C.has(n)&&(X&&P&&g.QK(X,P,void 0,w),this.C.add(n))}; g.d.hasVe=function(n){return this.elements.has(n)};g.m(g.yg,g.A);g.yg.create=function(n,q,w,X){try{var P=typeof n==="string"?n:"player"+g.I5(n),R=L6[P];if(R){try{R.dispose()}catch(k){g.pC(k)}L6[P]=null}var c=new g.yg(n,q,w,X);c.addOnDisposeCallback(function(){L6[P]=null;c.CU&&c.CU()}); return L6[P]=c}catch(k){throw g.pC(k),(k&&k instanceof Error?k:Error(String(k))).stack;}}; g.d=g.yg.prototype;g.d.nO=function(){return this.visibility}; g.d.Ro=function(n){var q=this.XF();if(n!==q){n.getVideoData().autonavState=q.getVideoData().autonavState;q.m9(this.y8,this);var w=q.getPlaybackRate();q.dispose();this.Hb.Ro(n);n.setPlaybackRate(w);n.yd(this.y8,this);dvs(this)}}; g.d.zx=function(){this.ZQ||(this.ZQ=g.AZ(NV(),xrO()));return this.ZQ}; g.d.Wh=function(n){if(this.mediaElement){this.mu&&(this.events.wM(this.mu),this.mu=null);g.Vs(this.PE);this.Yh().Wh(!0,!1,n);this.template.Wh();try{this.Z("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.du()}catch(q){g.TQ(q)}this.mediaElement=null}}; g.d.uA=function(n,q,w){w=w===void 0?!1:w;if(n!==this.Yh()){this.logger.debug(function(){return"start set presenting player, type "+n.getPlayerType()+", vid "+n.getVideoData().videoId}); var X=null;w||(w=this.Yh(),X=w.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),E0(this.ix,3),Sa(this,"cuerangesremoved",w.yJ()),this.Pl&&!n.isGapless()&&w.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),w=n.y5()&&w.y5(),this.JK.Ul("iv_s"),FV3(this,w));n.getPlayerType()===1&&this.Ro(n);TS6(this,n);this.Hb.uA(n);this.mediaElement&&n.setMediaElement(this.mediaElement);n.yd(this.WR,this);n.LN()?nnm(this,"setPresenting",!1):(this.FI("newdata",n,n.getVideoData()), X&&!g.gd(X,n.getPlayerState())&&this.KY(new g.cn(n.getPlayerState(),X)),q=q&&n.getPlayerType()===1,n.R1()&&!q&&this.FI("dataloaded",n,n.getVideoData()),(q=(q=n.getVideoData().X)&&q.video)&&this.Oq.l7("onPlaybackQualityChange",q.quality),Sa(this,"cuerangesadded",n.yJ()),q=n.getPlayerState(),g.Z(q,2)?puy(this):g.Z(q,8)?n.playVideo():n.IE()&&n.pauseVideo(),q=this.XF(),n.getPlayerType()===2&&(n.getVideoData().vj=q.getVideoData().clientPlaybackNonce),n.getPlayerType()!==2||this.Ut()||(X=n.getVideoData(), q.cG(X.clientPlaybackNonce,X.TG||"",X.breakType||0,X.iS,X.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.d.Ol=function(){if(this.XF()!==this.Yh()){var n=this.Yh();this.logger.debug(function(){return"release presenting player, type "+n.getPlayerType()+", vid "+n.getVideoData().videoId}); this.uA(this.XF())}}; g.d.T1=function(){return this.Hb}; g.d.rg=function(n){return this.Hb.rg(n)}; g.d.cX=function(n){return this.Hb.cX(n)}; g.d.XF=function(){return this.Hb.XF()}; g.d.Yh=function(){return this.Hb.Yh()}; g.d.jy=P0(44);g.d.Jgq=function(){$r(this)||(this.logger.debug("application playback ready"),this.gD(5))}; g.d.YDW=function(){if(!$r(this)){this.logger.debug("playback ready");JcT(this);var n=this.Yh(),q=n.getPlayerState();n.IE()?this.pauseVideo():q.isOrWillBePlaying()&&this.playVideo()}}; g.d.canPlayType=function(n){return eS(n)}; g.d.B=function(){return this.NP}; g.d.getVideoData=function(){return this.Yh().getVideoData()}; g.d.e2=P0(11);g.d.q7=function(){return this.XF().getVideoData()}; g.d.getVideoLoadedFraction=function(n){return(n=this.rg({playerType:n}))?n.getVideoLoadedFraction():this.Hb.N.getVideoLoadedFraction()}; g.d.yT=function(){return this.template}; g.d.fM=function(){return this.ix}; g.d.mL=function(){return this.JK}; g.d.ub=function(n){var q=this.rg({playerType:1});q&&q.Kf(n)}; g.d.ZH=function(){var n=this.ix.ZH();this.Oq.publish("videoStatsPingCreated",n);return n}; g.d.getVolume=function(){return Math.round(this.Oq.getVolume())}; g.d.isMuted=function(){return this.Oq.isMuted()}; g.d.FD=function(){if(this.XF()===this.Yh()&&this.tK)return this.tK.postId}; g.d.oHW=function(){var n=this;this.Z("use_rta_for_player")||(g.jg(this.NP)?g.Vd(this.NP,g.Io(this.getVideoData())).then(function(q){ng(NV(),q);fHT(n.getVideoData(),n.NP,n.zx())}):fHT(this.getVideoData(),this.NP,this.zx()))}; g.d.Bm=function(n){this.Oq.publish("poTokenVideoBindingChange",n)}; g.d.uu=function(n){this.Oq.publish("d6de4videobindingchange",n)}; g.d.Tf=function(){this.a_&&this.a_.Tf()}; g.d.FW=function(n){this.a_=n}; g.d.MX=function(n){if(n===1){this.JK.tick("vr");var q=this.Yh();q.O1();kCs(this.JK,q.getVideoData(),Zrz(this));Cju(this.ix)}q=this.NP;if(mQ(q)&&q.V||g.qI(q)){var w;(((w=this.Yh().getVideoData())==null?0:w.enableServerStitchedDai)||!this.Ut())&&this.Oq.l7("onAdStateChange",n)}}; g.d.setLoopVideo=function(n){var q=this.Yh();q===this.XF()&&q.g4()!==n&&(q.setLoop(n),this.Oq.Uq("onLoopChange",n))}; g.d.getLoopVideo=function(){return this.Yh().g4()}; g.d.setLoopRange=function(n){var q=!1;!!this.tK!==!!n?q=!0:this.tK&&n&&(q=this.tK.startTimeMs!==n.startTimeMs||this.tK.endTimeMs!==n.endTimeMs||this.tK.postId!==n.postId||this.tK.type!==n.type);if(q){q=this.Yh();ap(q.getVideoData())&&q.p5("slr",{et:(n==null?void 0:n.endTimeMs)||-1});q=this.XF();q.wg("applooprange");if(n){var w=new g.og(n.startTimeMs,n.endTimeMs,{id:"looprange",namespace:"applooprange"});q.addCueRange(w)}else{this.q7().clipConfig=void 0;var X;((w=this.tK)==null?void 0:w.type)!=="repeatChapter"|| isNaN(Number((X=this.tK)==null?void 0:X.loopCount))||(w={loopCount:String(this.tK.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Xc("repeatChapterLoopEvent",w))}this.tK=n;this.Oq.Uq("onLoopRangeChange",n||void 0);this.XF()===this.Yh()&&(this.Io(),q.fN())}}; g.d.getLoopRange=function(){return this.tK}; g.d.Io=function(){var n="",q=this.XF();this.tK?q!==this.Yh()?n="pnea":lw0(this,q.getCurrentTime())&&(this.tK.loopCount=0,n="ilr"):n="nlr";var w=this.Yh();if(ap(w.getVideoData()))if(this.Z("html5_gapless_log_loop_range_info")){var X,P;w.p5("slrre",{rej:n,ct:q.getCurrentTime(),lst:(X=this.tK)==null?void 0:X.startTimeMs,let:(P=this.tK)==null?void 0:P.endTimeMs})}else w.p5("slrre",{});n||Cns(this)}; g.d.setPlaybackRate=function(n,q){if(!isNaN(n)){n=ycu(this,n);var w=this.XF();w.getPlaybackRate()!==n&&(w.setPlaybackRate(n),q&&!this.NP.W&&g.Fo("yt-player-playback-rate",n),this.Oq.l7("onPlaybackRateChange",n))}}; g.d.getCurrentTime=function(n,q){q=q===void 0?!0:q;var w=this.Hb.aX;if(w)return w.getCurrentTime();var X=n===2&&this.getVideoData().enableServerStitchedDai;w=null;X?w=this.Yh():w=this.rg({playerType:n});return w?X&&this.Vu?(n=this.Hb.G)?n.getCurrentTime(q):w.getCurrentTime():q?(q=FF(this,w),E$(this,q.getCurrentTime(),q)):w.getCurrentTime():this.Hb.N.getCurrentTime()}; g.d.Jf=function(){var n=this.rg({playerType:void 0});if(!n)return this.Hb.N.Jf();n=FF(this,n);return E$(this,n.Jf(),n)}; g.d.getDuration=function(n,q){q=q===void 0?!0:q;var w=this.Hb.aX;if(w)return w.getDuration();w=this.getVideoData();var X=n===2&&w.enableServerStitchedDai,P=null;X?P=this.Yh():P=this.rg({playerType:n});if(!P)return this.Hb.N.getDuration();if(w.hasProgressBarBoundaries()&&!X){var R,c=Number((R=w.progressBarStartPosition)==null?void 0:R.utcTimeMillis),k;R=Number((k=w.progressBarEndPosition)==null?void 0:k.utcTimeMillis);if(!isNaN(c)&&!isNaN(R))return(R-c)/1E3}if(ap(w)&&!w.isLivePlayback)return GC(this, n);if(q)return n=TC(this,P),E$(this,n.getDuration(),n);if(X&&this.Vu){if(this.Z("html5_huli_ssdai_use_playback_state"))return n=this.Hb,n=n.W===n.G?n.W:null,(n==null?void 0:n.getDuration())||0;var r;return((r=this.Hb.G)==null?void 0:r.getDuration())||0}return P.getDuration()}; g.d.Py=function(n){var q=this.rg({playerType:n});return q?this.Ut(q)?(q=TC(this,q),q.Py()-q.getCurrentTime()+this.getCurrentTime(n)):q.Py():this.Hb.N.Py()}; g.d.finishSegmentByCpn=function(){return[]}; g.d.UX=function(){this.template.UX();var n=this.Oq;n.state.element=this.template.element;var q=n.state.element,w;for(w in n.state.N)n.state.N.hasOwnProperty(w)&&(q[w]=n.state.N[w]);(n=oDT(this.template.element))&&this.events.j(this.template,n,this.onFullscreenChange)}; g.d.getDebugText=function(n){var q=this.XF().RP(n),w=this.Yh();if(w!==this.XF()){w=w.RP(n);for(var X=g.a(Object.keys(w)),P=X.next();!P.done;P=X.next())P=P.value,q["ad"+P]=w[P];if(n){w=q;X={};if(P=PO(document,"movie_player"))X.bounds=P.getBoundingClientRect(),X["class"]=P.className;P={};var R=g.km("video-ads");R?(XTu(R,P),P.html=R.outerHTML):P.missing=1;R={};var c=g.km("videoAdUiSkipContainer"),k=g.km("ytp-ad-skip-button-container"),r=g.km("ytp-skip-ad-button"),e=c||k||r;e?(XTu(e,R),R.ima=c?1:0,R.bulleit= k?1:0,R.component=r?1:0):R.missing=1;X=JSON.stringify({player:X,videoAds:P,skipButton:R});w.ad_skipBtnDbgInfo=X}}n&&this.mediaElement&&(q["0sz"]=""+(+J_(this.mediaElement.getSize())===0),q.op=this.mediaElement.Fl("opacity"),w=this.mediaElement.DT().y+this.mediaElement.getSize().height,q.yof=""+(+w<=0),q.dis=this.mediaElement.Fl("display"));n&&((n=(0,g.sy)())&&(q.gpu=n),(n=this.NP.playerStyle)&&(q.ps=n),this.NP.Ff&&(q.webview=1),(n=this.webPlayerContextConfig.jsUrl)&&(q.js=n));q.debug_playbackQuality= this.Oq.getPlaybackQuality(1);q.debug_date=(new Date).toString();q.origin=window.origin;q.timestamp=Date.now();delete q.uga;delete q.q;return JSON.stringify(q,null,2)}; g.d.getFeedbackProductData=function(){var n={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.B().experiments.experimentIds.join(", "),player_release:I[53]},q=this.getPlayerStateObject().er;q&&(n.player_error_code=q.errorCode,n.player_error_details=JSON.stringify(q.errorDetail));return n}; g.d.getPresentingPlayerType=function(n){if(this.appState===1)return 1;if($r(this))return 3;var q;return n&&((q=this.Vu)==null?0:OnO(q,this.getCurrentTime()))?2:this.Yh().getPlayerType()}; g.d.Y3=function(){return!1}; g.d.getPlayerStateObject=function(n){var q=this.Hb.aX;return q?q.getPlayerState():this.rg({playerType:n}).getPlayerState()}; g.d.getAppState=function(){return this.appState}; g.d.bMl=function(n){switch(n.type){case "loadedmetadata":this.YG.start();n=g.a(this.JB);for(var q=n.next();!q.done;q=n.next())q=q.value,QG0(this,q.id,q.VVf,q.iDi,void 0,!1);this.JB=[];break;case "loadstart":this.JK.Ul("gv");break;case "progress":case "timeupdate":uK(n.target.Qb())>=2&&this.JK.Ul("l2s");break;case "playing":g.d2&&this.YG.start();if(g.jg(this.NP))n=!1;else{q=g.Ba(this.fM());n=this.mediaElement.Fl("display")==="none"||J_(this.mediaElement.getSize())===0;var w=mY(this.template),X=this.Yh().getVideoData(), P=g.LX(this.NP);X=V8(X);q=!w||q||P||X||this.NP.RH;n=n&&!q}n&&(n=this.Yh(),n.NF(),this.getVideoData().KM||(this.getVideoData().KM=1,this.df(),n.playVideo()))}}; g.d.ZMT=function(n){this.Oq.pV("onLoadProgress",n)}; g.d.RBp=function(){this.Oq.publish("playbackstalledatstart")}; g.d.Vj5=function(n,q){this.Oq.publish("sabrCaptionsDataLoaded",n,q)}; g.d.ehP=function(n){this.Yh().F2(n)}; g.d.OGo=function(n){this.Yh().rB(n)}; g.d.yKH=function(n){n=FF(this,this.Yh());n=E$(this,n.getCurrentTime(),n);this.Oq.l7("onVideoProgress",n);this.NP.po&&KVy(this,this.visibility.IX())&&this.pauseVideo()}; g.d.uFh=function(){this.Oq.l7("onAutoplayBlocked");var n=this.Yh().getVideoData();n&&(n.JE=!0);this.Z("embeds_enable_autoplay_and_visibility_signals")&&g.Q2(this.NP)&&(n={autoplayBrowserPolicy:HM(),autoplayIntended:Ui(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.Xc("embedsAutoplayStatusChanged",n))}; g.d.sPh=function(){this.Oq.publish("progresssync")}; g.d.gEq=function(){this.Oq.pV("onPlaybackPauseAtStart")}; g.d.nhe=function(n){if(this.getPresentingPlayerType()===1){g.k0(n,1)&&!g.Z(n.state,64)&&this.q7().isLivePlayback&&this.XF().isAtLiveHead()&&this.Oq.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.k0(n,2)){if(this.tK&&this.tK.endTimeMs>=(this.getDuration()-1)*1E3){Cns(this);return}puy(this)}if(g.Z(n.state,128)){var q=n.state;this.cancelPlayback(5);q=q.er;JSON.stringify({errorData:q,debugInfo:this.getDebugText(!0)});this.Oq.l7("onError",p7u(q.errorCode));this.Oq.pV("onDetailedError",{errorCode:q.errorCode, errorDetail:q.errorDetail,message:q.errorMessage,messageKey:q.xU,cpn:q.cpn});(0,g.m$)()-this.NP.zG>6048E5&&this.Oq.pV("onReloadRequired")}q={};if(n.state.isPlaying()&&!n.state.isBuffering()&&!pk("pbresume","ad_to_video")&&pk("_start","ad_to_video")){var w=this.getVideoData();q.clientPlaybackNonce=w.clientPlaybackNonce;w.videoId&&(q.videoId=w.videoId);g.a1(q,"ad_to_video");y6("pbresume",void 0,"ad_to_video");Cju(this.ix)}this.Oq.publish("applicationplayerstatechange",n)}}; g.d.KY=function(n){this.Hb.aX||this.Oq.publish("presentingplayerstatechange",n)}; g.d.RX=function(n){pf(this,yE(n.state));g.Z(n.state,1024)&&this.Oq.isMutedByMutedAutoplay()&&(he(this,{muted:!1,volume:this.Oi.volume},!1),lj(this,!1))}; g.d.onPlayerRequestSent=function(n){this.Oq.Uq("onPlayerRequestSent",n)}; g.d.eW=function(n,q){n==="newdata"&&dvs(this);this.Oq.publish("applicationvideodatachange",n,q)}; g.d.Dep=function(n,q){this.Z("html5_afmt_change_update_volume")&&JcT(this);this.Oq.pV("onPlaybackAudioChange",this.Oq.getAudioTrack().Va.name);this.Oq.publish("internalaudioformatchange",this.Oq.getAudioTrack().Va.id,q)}; g.d.mee=function(n){var q=this.Yh().getVideoData();n===q&&this.Oq.l7("onPlaybackQualityChange",n.X.video.quality)}; g.d.p$=function(){var n=this.Hb.C[2]||null;n&&(n=n.getVideoData(),this.Yh().p5("ssdai",{cleanaply:1,acpn:n==null?void 0:n.clientPlaybackNonce,avid:n.videoId,isDai:this.q7().enableServerStitchedDai?1:0}),delete this.Hb.C[2])}; g.d.SDi=function(n,q){this.FI(n,this.Yh(),q)}; g.d.FI=function(n,q,w){this.logger.debug(function(){return"on video data change "+n+", player type "+q.getPlayerType()+", vid "+w.videoId}); this.NP.uL()&&q.p5("vdc",{type:n,vid:w.videoId||"",cpn:w.clientPlaybackNonce||""});q===this.XF()&&(this.NP.x5=w.oauthToken);q===this.XF()&&(this.getVideoData().enableServerStitchedDai&&!this.Vu?(this.XF().p5("sdai",{initSstm:1}),this.Vu=new g.c6(this.Oq,this.NP,this.XF(),this)):!this.getVideoData().enableServerStitchedDai&&this.Vu&&(this.Vu.dispose(),this.Vu=null));if(n==="newdata")this.logger.debug("new video data, destroy modules"),E0(this.ix,2),this.Oq.publish("videoplayerreset",q);else{if(!this.mediaElement)return; n==="dataloaded"&&(this.XF()===this.Yh()?(cI(w.aH,w.sb),Mtm(this)):v4s(this));q.getPlayerType()===1&&(this.NP.Tp&&wTs(this),this.getVideoData().isLivePlayback&&!this.NP.AQ&&this.oY("html5.unsupportedlive",2,"DEVICE_FALLBACK"),w.isLoaded()&&((hTz(w)||this.getVideoData().xp)&&this.Oq.publish("legacyadtrackingpingchange",this.getVideoData()),w.hasProgressBarBoundaries()&&o4z(this)));this.Oq.publish("videodatachange",n,w,q.getPlayerType())}this.Oq.l7("onVideoDataChange",{type:n,playertype:q.getPlayerType()}); this.Io();var X=w.Zd;X?this.sN.EH(X,w.clientPlaybackNonce):eBO(this.sN)}; g.d.hR=function(){Lf(this,null);this.Oq.pV("onPlaylistUpdate")}; g.d.AUh=function(n){delete this.Jr[n.getId()];this.XF().removeCueRange(n);a:{n=this.getVideoData();var q,w,X,P,R,c,k,r,e,f,O=((q=n.Tp)==null?void 0:(w=q.contents)==null?void 0:(X=w.singleColumnWatchNextResults)==null?void 0:(P=X.autoplay)==null?void 0:(R=P.autoplay)==null?void 0:R.sets)||((c=n.Tp)==null?void 0:(k=c.contents)==null?void 0:(r=k.twoColumnWatchNextResults)==null?void 0:(e=r.autoplay)==null?void 0:(f=e.autoplay)==null?void 0:f.sets);if(O)for(q=g.a(O),w=q.next();!w.done;w=q.next())if(w= w.value,P=X=void 0,w=w.autoplayVideo||((X=w.autoplayVideoRenderer)==null?void 0:(P=X.autoplayEndpointRenderer)==null?void 0:P.endpoint),X=g.u(w,g.tH),R=P=void 0,w!=null&&((P=X)==null?void 0:P.videoId)===n.videoId&&((R=X)==null?0:R.continuePlayback)){n=w;break a}n=null}(q=g.u(n,g.tH))&&this.Oq.Uq("onPlayVideo",{sessionData:{autonav:"1",itct:n==null?void 0:n.clickTrackingParams},videoId:q.videoId,watchEndpoint:q})}; g.d.gD=function(n){var q=this;n!==this.appState&&(this.logger.debug(function(){return"app state change "+q.appState+" -> "+n}),n===2&&this.getPresentingPlayerType()===1&&(pf(this,-1),pf(this,5)),this.appState=n,this.Oq.publish("appstatechange",n))}; g.d.oY=function(n,q,w,X,P){this.XF().pL(n,q,w,X,P)}; g.d.j3=P0(13);g.d.isAtLiveHead=function(n,q){q=q===void 0?!1:q;var w=this.rg({playerType:n});if(!w)return this.Hb.N.isAtLiveHead();n=TC(this,w);w=FF(this,w);return n!==w?n.isAtLiveHead(E$(this,w.getCurrentTime(),w),!0):n.isAtLiveHead(void 0,q)}; g.d.TH=function(){var n=this.rg({playerType:void 0});return n?TC(this,n).TH():this.Hb.N.TH()}; g.d.seekTo=function(n,q,w,X,P){q=q!==!1;if(X=this.rg({playerType:X}))this.appState===2&&xr(this),this.Ut(X)?oN(this)?this.Vu.seekTo(n,{seekSource:P},q,w):this.FR.seekTo(n,{seekSource:P},q,w):X.seekTo(n,{Il:!q,cY:w,zk:"application",seekSource:P})}; g.d.seekBy=function(n,q,w,X){this.seekTo(this.getCurrentTime()+n,q,w,X)}; g.d.Ijg=function(){this.Oq.l7("SEEK_COMPLETE")}; g.d.hBi=function(){this.Oq.Uq("onAbnormalityDetected")}; g.d.Bc0=function(n){this.Oq.Uq("onSnackbarMessage",n)}; g.d.oEg=function(n){var q=this.Yh(),w=q.getVideoData();if(this.appState===1||this.appState===2)w.startSeconds=n;this.appState===2?g.Z(q.getPlayerState(),512)||xr(this):this.Oq.l7("SEEK_TO",n)}; g.d.Tcg=function(){this.Oq.publish("airplayactivechange")}; g.d.zB5=function(){this.Oq.publish("airplayavailabilitychange")}; g.d.showAirplayPicker=function(){this.Yh().aG()}; g.d.rKl=function(){this.Oq.publish("beginseeking")}; g.d.OMT=function(){this.Oq.publish("endseeking")}; g.d.getStoryboardFormat=function(n){return(n=this.rg({playerType:n}))?TC(this,n).getStoryboardFormat():this.Hb.N.getStoryboardFormat()}; g.d.Ei=function(n){return(n=this.rg({playerType:n}))?TC(this,n).getVideoData().Ei():this.Hb.N.Ei()}; g.d.Ut=function(n){n=(n||this.Yh()).getVideoData();if(oN(this))n=n===this.Vu.playback.getVideoData();else a:{var q=this.FR;if(n===q.N.getVideoData()&&q.X.length)n=!0;else{q=g.a(q.X);for(var w=q.next();!w.done;w=q.next())if(n.dM===w.value.dM){n=!0;break a}n=!1}}return n}; g.d.ly=function(n,q,w,X,P,R,c,k){this.logger.debug(function(){return"Adding video to timeline id="+n.video_id+"\n lengthMs="+X+" enterTimeMs="+P}); var r="",e=oN(this);this.Yh().p5("appattl",{sstm:this.Vu?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:e});e?(w=Ily(this.Vu,n,q,w,X,P,R,c,k),r=(w==null?void 0:w.dM)||"",this.Z("html5_ssdai_new_decoration_logic")&&this.XF().r5(k||"",q,(w==null?void 0:w.clientPlaybackNonce)||"")):r=YC6(this.FR,n,w,X,P,R);this.logger.debug(function(){return"Video added to timeline id="+n.video_id+" timelinePlaybackId="+r}); return r}; g.d.sy=function(n,q,w,X,P,R,c,k){if(oN(this)){var r=Ily(this.Vu,n,q,w,X,P,R,c,k);this.logger.debug(function(){return"Remaining video added to timeline id="+n.video_id+" timelinePlaybackId="+r})}return""}; g.d.JX=function(n){this.Z("html5_ssdai_new_decoration_logic")&&this.XF().r5(n,"","");var q;(q=this.Vu)==null||q.JX(n)}; g.d.q4=function(n,q){n=n===void 0?-1:n;q=q===void 0?Infinity:q;oN(this)||Wsz(this.FR,n,q)}; g.d.rk=function(n,q,w){if(oN(this)){var X=this.Vu,P=X.N.W.get(n);P?(w===void 0&&(w=P.xH),Hnx(X,P,q,w)):X.O2("Invalid_timelinePlaybackId_"+n+"_specified")}else{X=this.FR;P=null;for(var R=g.a(X.X),c=R.next();!c.done;c=R.next())if(c=c.value,c.dM===n){P=c;break}P?(w===void 0&&(w=P.xH),zMu(X,P,q,w)):O$(X,"InvalidTimelinePlaybackId timelinePlaybackId="+n)}}; g.d.enqueueVideoByPlayerVars=function(n,q,w,X){w=w===void 0?Infinity:w;X=X===void 0?"":X;this.Ut();n=new g.jF(this.NP,n);X&&(n.dM=X);brh(this,n,q,w)}; g.d.queueNextVideo=function(n,q,w,X,P){w=w===void 0?NaN:w;n=this.preloadVideoByPlayerVars(n,q===void 0?1:q,w,X===void 0?"":X,P===void 0?"":P);q=this.Yh();n&&(this.Z("html5_check_queue_on_data_loaded")?this.B().supportsGaplessShorts()&&q.getVideoData().G&&(w=this.j8,X=this.Pl.K,w.W!==n&&(w.X=q,w.W=n,w.C=1,w.N=n.getVideoData(),w.K=X,w.N.isLoaded()?w.D():w.N.subscribe("dataloaded",w.D,w))):(w=a8u(q,n,this.Pl.K),w!=null?(q.p5("sgap",w),q.getVideoData().G&&q.FZ(!1)):(n=n.getVideoData(),q=this.j8,q.N!== n&&(q.N=n,q.C=1,n.isLoaded()?q.G():q.N.subscribe("dataloaded",q.G,q)))))}; g.d.ue=function(n,q,w,X){var P=this;w=w===void 0?0:w;X=X===void 0?0:X;TC(this,this.Yh()).Ll();h_s(this.Pl,n,q,w,X).then(function(){P.Oq.pV("onQueuedVideoLoaded")},function(){})}; g.d.AS=function(){return this.Pl.AS()}; g.d.VO=function(n){var q=this.Pl.N;return q?q.m6(n):!1}; g.d.clearQueue=function(n,q){n=n===void 0?!1:n;q=q===void 0?!1:q;this.logger.debug("Clearing queue");this.Pl.clearQueue(n,q)}; g.d.loadVideoByPlayerVars=function(n,q,w,X,P,R){q=q===void 0?1:q;var c=this.XF();if(q===2&&this.q7().enableServerStitchedDai&&c&&!c.In())return c.p5("lvonss",{vid:(n==null?void 0:n.videoId)||"",ptype:q}),!1;var k=!1;c=new g.jF(this.NP,n);c.JL=R;g.tK(this.NP)&&!c.Vb&&Td(this.JK);var r;R=this.JK;var e=(r=c.qP)!=null?r:"";R.timerName=e;this.JK.UT("pl_i");this.Z("web_player_early_cpn")&&c.clientPlaybackNonce&&this.JK.infoGel({clientPlaybackNonce:c.clientPlaybackNonce});rmh(c).supportsVp9Encoding===!1&& this.Yh().p5("noVp9enc",{});if(this.B().supportsGaplessShorts()){r=C63(this.Pl,c,q);if(r==null){pf(this,-1);var f;!this.Z("html5_shorts_gapless_reset_ad_module")||((f=this.Pl.N)==null?0:f.getVideoData().isAd())||bj(this);n=this.Pl;n.app.B().Z("html5_gapless_new_slr")?Cf(n.app,"gaplessshortslooprange"):n.app.setLoopRange(null);n.app.B().Z("html5_gapless_remove_videoplaytime100_cuerange")&&n.app.lF("videoplaytime100");n.app.getVideoData().Su=!0;var O;(O=n.N)==null||O.jC();var H;(H=n.N)==null||H.DM(); w={zk:"gapless_to_next_video",seekSource:60,o$:n.K.N};X=g.Jv(n.app.B().experiments,"html5_gapless_seek_offset");P=G8Y(n);if(n.K.N){var U;c=((U=n.C)==null?void 0:BB(U))||{};U=c.pw;c=c.lH;c!=null&&U!=null&&(P=c-U+.001)}var t;(t=n.app.Yh())==null||t.seekTo(P+X,w);if(!n.app.getPlayerStateObject(q).isPlaying()){var V;(V=n.app.Yh())==null||V.playVideo(!0)}var T;(T=n.app.Yh())==null||T.al();n.G();return!0}t=this.Z("html5_shorts_gapless_preload_fallback");V=this.Pl.N;t&&V&&!V.zp()&&(T=V.getVideoData(),this.Hb.K.set(Ae(q, T),V,3600));this.Pl.clearQueue(t);this.Yh().p5("sgap",{f:r})}if(P){for(;c.GY.length&&c.GY[0].isExpired();)c.GY.shift();t=c.GY.length-1;k=t>0&&P.X(c.GY[t])&&P.X(c.GY[t-1]);c.GY.push(P)}w||(n&&sN0(n)?(eN(this.NP)&&!this.Hl&&(n.fetch=0),Lf(this,n)):this.playlist&&Lf(this,null),n&&(this.Hl=WU(!1,n.external_list)));this.Oq.publish("loadvideo");t=this.N5(c,q,X);k&&this.oY("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+c.GY.join()).replace(/[;:,]/g,"_"));return t}; g.d.preloadVideoByPlayerVars=function(n,q,w,X,P){q=q===void 0?1:q;w=w===void 0?NaN:w;X=X===void 0?"":X;P=P===void 0?"":P;var R=YvO(q,n,P),c=this.Hb.K.get(R)||null;if(c)return this.logger.debug(function(){return"already preloaded "+R}),this.Z("html5_return_playback_if_already_preloaded")?c:null; n=new g.jF(this.NP,n);P&&(n.dM=P);return Ac0(this,n,q,w,X)}; g.d.setMinimized=function(n){this.visibility.setMinimized(n);(n=bfs(this.ix))&&(this.isMinimized()?n.load():n.unload());this.Oq.publish("minimized")}; g.d.setInline=function(n){this.visibility.setInline(n)}; g.d.setInlinePreview=function(n){this.visibility.setInline(n)}; g.d.ZU=function(n){Sv0(this,n)||this.visibility.ZU(n)}; g.d.setSqueezeback=function(n){this.visibility.setSqueezeback(n)}; g.d.dK=function(){var n,q=(n=this.mediaElement)==null?void 0:n.WQ();q&&(this.NP.jK&&F7(Va(function(){return document.exitFullscreen()}),function(){}),F7(Va(function(){return O8(q)}),function(){}))}; g.d.Kcf=function(){this.mediaElement.WQ();this.mediaElement.WQ().webkitPresentationMode==="picture-in-picture"?this.ZU(!0):this.ZU(!1)}; g.d.togglePictureInPicture=function(){this.Yh().togglePictureInPicture()}; g.d.N5=function(n,q,w){q=q===void 0?1:q;this.logger.debug(function(){return"start load video, id "+n.videoId+", type "+q}); pk("_start",this.JK.timerName)||g.SY(ik)(void 0,this.JK.timerName);var X=!1,P=hBz(this,q,n,!1);P?(X=!0,n.dispose()):(P=aN(this,q,n,!0,w),(this.Z("html5_onesie")||this.Z("html5_load_before_stop"))&&P.PH()&&P.K8(),this.YG.stop(),q===1&&q!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,q),this.uA(P));P===this.XF()&&(this.NP.x5=n.oauthToken);if(!P.PH())return!1;if(P===this.XF())return this.gD(1),w=xr(this),X&&this.Z("html5_player_preload_ad_fix")&&P.getPlayerType()===1&& P.R1()&&this.FI("dataloaded",P,P.getVideoData()),w;P.GJ();return!0}; g.d.cueVideoByPlayerVars=function(n,q){var w=this;q=q===void 0?1:q;var X=this.XF();if(this.q7().enableServerStitchedDai&&X&&!X.In()&&n&&Object.keys(n).length>0)X.p5("qvonss",{vid:(n==null?void 0:n.videoId)||"",ptype:q});else if(n&&sN0(n))if(this.Sm=!0,Lf(this,n),(n=g.FM(this.playlist))&&n.YH())Kf(this,n,q);else this.playlist.onReady(function(){MA(w)}); else{q||(q=this.getPresentingPlayerType());q===1&&this.hR();X=new g.jF(this.NP,n);var P=g.Q2(this.NP)&&!this.NP.PW&&q===1&&!X.isAd()&&!X.TG;this.Oq.publish("cuevideo");P?(this.Yh().getVideoData().loading=!0,tas(X,n?n:{}).then(function(R){Kf(w,R,q)}),X.dispose()):Kf(this,X,q)}}; g.d.q1=function(n,q,w,X,P,R,c){if(!n&&!w)throw Error("Playback source is invalid");if(JF(this.NP)||g.kS(this.NP))return q=q||{},q.lact=tP(),q.vis=this.Oq.getVisibilityState(),this.Oq.Uq("onPlayVideo",{videoId:n,watchEndpoint:R,sessionData:q,listId:w}),!1;rez(this.JK);this.JK.reset();n={video_id:n};X&&(n.autoplay="1");X&&(n.autonav="1");R&&(n.player_params=R.playerParams);c&&(n.oauth_token=c);w?(n.list=w,this.loadPlaylist(n)):this.loadVideoByPlayerVars(n,1);return!0}; g.d.cuePlaylist=function(n,q,w,X){this.Sm=!0;usz(this,n,q,w,X)}; g.d.loadPlaylist=function(n,q,w,X){this.Sm=!1;usz(this,n,q,w,X)}; g.d.f7=function(){return this.Oq.isMutedByMutedAutoplay()?!1:this.Hb.aX?!0:!(!this.playlist||!this.playlist.Om())}; g.d.nm=P0(5); g.d.nextVideo=function(n,q){var w=g.dY(this.XF().getVideoData());g.JE(this.Oq)&&w?this.q1(w.videoId,q?w.Ey:w.sessionData,w.playlistId,q,void 0,w.lf||void 0):this.Hl?this.Oq.pV("onPlaylistNext"):this.getPresentingPlayerType()===3?K0(this.ix).nextVideo():!this.playlist||eN(this.NP)&&!this.Oq.isFullscreen()||(this.playlist.Om(n)&&OfO(this.playlist,eX0(this.playlist)),this.playlist.loaded?(n=q&&this.NP.Z("html5_player_autonav_logging"),q&&this.Oq.publish("playlistautonextvideo"),this.N5(g.FM(this.playlist,void 0, q,n),1)):this.Sm=!1)}; g.d.previousVideo=function(n){this.Hl?this.Oq.pV("onPlaylistPrevious"):this.getPresentingPlayerType()===3?K0(this.ix).W$():!this.playlist||eN(this.NP)&&!this.Oq.isFullscreen()||(this.playlist.qM(n)&&OfO(this.playlist,f$x(this.playlist)),this.playlist.loaded?this.N5(g.FM(this.playlist),1):this.Sm=!1)}; g.d.playVideoAt=function(n){this.Hl?this.Oq.pV("onPlaylistIndex",n):this.playlist&&(this.playlist.loaded?this.N5(g.FM(this.playlist,n),1):this.Sm=!1,OfO(this.playlist,n))}; g.d.getPlaylist=function(){return this.playlist}; g.d.TQ=P0(19);g.d.lF=function(n){this.JB=g.Vr(this.JB,function(R){return R.id!==n}); for(var q=this.XF(),w=q.yJ(),X=0;X0&&(r=Math.floor(e/1E3))}r=q?q.lx:r;var f={AD_BLOCK:this.N++,AD_BREAK_LENGTH:r,AUTONAV_STATE:B6(this.player.B()),CA_TYPE:"image",CPN:k.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.TH()*1E3,LACT:tP(),LIVE_INDEX:q?this.C++:1,LIVE_TARGETING_CONTEXT:q&&q.context?q.context:"",MIDROLL_POS:R? Math.round(R.start/1E3):0,MIDROLL_POS_MS:R?Math.round(R.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.yT().qr().height,P_W:this.player.yT().qr().width,YT_REMOTE:P?P.join(","):""},O=Rd(PU);Object.keys(O).forEach(function(U){O[U]!=null&&(f[U.toUpperCase()]=O[U].toString())}); w!==""&&(f.BISCOTTI_ID=w);w={};wN(n)&&(w.sts="20279",(q=this.player.B().forcedExperiments)&&(w.forced_experiments=q));var H=NN(g.Vt(n,f),w);return H.split("?").length!==2?TH(Error("Invalid AdBreakInfo URL")):g.Vd(this.player.B(),k==null?void 0:k.oauthToken).then(function(U){if(U&&qg()){var t=NV();ng(t,U)}U=X.player.zx(t);t=Vps(X,H,f,k.isMdxPlayback,c);return g.Lk(U,t,"/youtubei/v1/player/ad_break").then(function(V){return V})})}; Qg.prototype.reset=function(){this.C=this.N=1};g.m(pTY,Qg); pTY.prototype.X=function(n,q,w){q=q===void 0?{}:q;var X=q.Mn;var P=q.OF;var R=q.cueProcessedMs;w=w===void 0?"":w;q=this.N;this.N++;var c=this.player.B().Z("h5_disable_macro_substitution_in_get_ad_break")?n:TO6(this,n,{Mn:X,OF:P,cueProcessedMs:R},w,q);if(c.split("?").length!==2)return Math.random()<.1&&g.TQ(Error("Invalid AdBreakInfo URL")),TH(Error("Invalid AdBreakInfo URL"));var k=this.player.getVideoData(1).isMdxPlayback,r=w;w=UuY.exec(c);w=w!=null&&w.length>=2?w[1]:"";n=tpT.test(c);var e=dus.exec(c); e=e!=null&&e.length>=2?e[1]:"";var f=gn0.exec(c);f=f!=null&&f.length>=2&&!Number.isNaN(Number(f[1]))?Number(f[1]):1;var O=mus.exec(c);O=O!=null&&O.length>=2?O[1]:"0";var H=RK(this.player.B().k5),U=g.S6(this.player.getVideoData(1).n5,!0);szz(this,U,c,r===""?"":r,this.player.B(),this.player.getVideoData(1));r={splay:!1,lactMilliseconds:String(tP()),playerHeightPixels:Math.trunc(this.player.yT().qr().height),playerWidthPixels:Math.trunc(this.player.yT().qr().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20279,autonavState:B6(this.player.B())};if(k){k={};var t=this.player.B().Xa;O5O(k,t?t.join(","):"")&&(r.mdxContext=k)}if(k=yiO.includes(H)?void 0:g.Mg("PREF")){t=k.split(RegExp("[:&]"));for(var V=0,T=t.length;V1&&x[1].toUpperCase()==="TRUE"){U.user.lockedSafetyMode=!0;break}}r.autoCaptionsDefaultOn=H5s(k)}c=aWx.exec(c);(c=c!=null&&c.length>=2?c[1]:"")&&e&&(U.user.credentialTransferTokens= [{token:c,scope:"VIDEO"}]);c={contentPlaybackContext:r};r=this.player.getVideoData(1).getGetAdBreakContext();k=this.player.getVideoData(1).clientPlaybackNonce;t=R!==void 0?Math.round(R).toString():void 0;V=(X==null?0:X.context)?X.context:void 0;T=0;R&&P&&!X&&(P=P.end-P.start,P>0&&(T=Math.floor(P/1E3)));X=(X=Math.trunc((X?X.lx:T)*1E3))?String(X):void 0;P=this.player.TH()*1E3;P=Number.isNaN(P)?0:Math.trunc(P);q={adBlock:q,params:w,breakIndex:f,breakPositionMs:O,clientPlaybackNonce:k,topLevelDomain:H, isProxyAdTagRequest:n,context:U,overridePlaybackContext:c,cueProcessedMs:t,videoId:e?e:void 0,liveTargetingParams:V,breakLengthMs:X,driftFromHeadMs:P?String(P):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:r?r:void 0};return FP0(this,q)};var CJw={EvH:"replaceUrlMacros",lkh:"onAboutThisAdPopupClosed",cxn:"executeCommand"};$uY.prototype.rH=function(){return"adPingingEndpoint"}; $uY.prototype.ZT=function(n,q,w){e46(this.hg.get(),n,q,w)};vnh.prototype.rH=function(){return"changeEngagementPanelVisibilityAction"}; vnh.prototype.ZT=function(n){this.T.Uq("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:n})};LP0.prototype.rH=function(){return"loggingUrls"}; LP0.prototype.ZT=function(n,q,w){n=g.a(n);for(var X=n.next();!X.done;X=n.next())X=X.value,e46(this.hg.get(),X.baseUrl,q,w,X.attributionSrcMode)};g.m(xus,g.A);g.m(Je,g.A);g.d=Je.prototype;g.d.addListener=function(n){this.listeners.push(n)}; g.d.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.d.Z3=function(n,q,w,X,P,R,c,k){if(n==="")R0("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(n!==this.N||w){this.N=n;this.cW.get().Z3(n,q,w,X,P,R,c,k);this.rl.get().Z3(n,q,w,X,P,R,c,k);var r;(r=this.Gz)==null||r.get().Z3(n,q,w,X,P,R,c,k);this.X.Z3(n,q,w,X,P,R,c,k);r=g.a(this.listeners);for(var e=r.next();!e.done;e=r.next())e.value.Z3(n,q,w,X,P,R,c,k)}else R0("Duplicate content video loaded signal")}; g.d.Ncn=function(){this.N&&this.Qd(this.N)}; g.d.Qd=function(n){this.N=void 0;for(var q=g.a(this.listeners),w=q.next();!w.done;w=q.next())w.value.Qd(n)};zC.prototype.ov=function(n,q,w,X,P){DuY(this);this.K=!q&&w===0;var R=this.T.getVideoData(1),c=this.T.getVideoData(2);R&&(this.contentCpn=R.clientPlaybackNonce,this.videoId=R.videoId,this.N=R.D);c&&(this.adCpn=c.clientPlaybackNonce,this.adVideoId=c.videoId,this.adFormat=c.adFormat);this.W=n;X<=0?(DuY(this),this.K=!q&&w===0):(this.actionType=this.K?q?"unknown_type":"video_to_ad":q?"ad_to_video":"ad_to_ad",this.videoStreamType=P?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.C=!0,pk("_start",this.actionType)&&Gqh(this)))}; zC.prototype.reset=function(){return new zC(this.T)};g.m(W6,g.A);W6.prototype.addCueRange=function(n,q,w,X,P,R,c,k,r){R=R===void 0?3:R;c=c===void 0?1:c;this.N.has(n)?R0("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:n}):(n=new C8T(n,q,w,X,R,k,r),this.N.set(n.id,{OF:n,listener:P,P1:c}),this.T.Zf([n],c))}; W6.prototype.removeCueRange=function(n){var q=this.N.get(n);q?(this.T.oW([q.OF],q.P1),this.N.delete(q.OF.id)):R0("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:n})}; W6.prototype.onCueRangeEnter=function(n){if(this.N.has(n.id))this.N.get(n.id).listener.onCueRangeEnter(n.id)}; W6.prototype.onCueRangeExit=function(n){if(this.N.has(n.id))this.N.get(n.id).listener.onCueRangeExit(n.id)}; g.m(C8T,g.og);NA.prototype.addPlayerResponseForAssociation=function(n){this.T.addPlayerResponseForAssociation(n)};nu.prototype.MX=function(n){this.T.MX(n)}; nu.prototype.T3=function(n){var q=g.bs.apply(1,arguments);n==="onAdStart"||n==="onAdEnd"?this.T.l7.apply(this.T,[n].concat(g.D(q))):this.T.Uq.apply(this.T,[n].concat(g.D(q)))};qh.prototype.fL=function(n){return n&&wQ(this)};var Ji0=null;g.m(Z5s,g.np);Z5s.prototype.d6=function(n){return this.N.hasOwnProperty(n)?this.N[n].d6():{}}; g.nj("ytads.bulleit.getVideoMetadata",function(n){return Xa().d6(n)}); g.nj("ytads.bulleit.triggerExternalActivityEvent",function(n,q,w){var X=Xa();w=Qzm(w);w!==null&&X.publish(w,{queryId:n,viewabilityString:q})});g.d=PF.prototype;g.d.sF=function(n,q){if(!this.N.has(n))return{};if(q==="seek"){q=!1;q=q===void 0?!1:q;var w=db(uA).Cn(n,{});w?EL(w):q&&(n=db(uA).n9(null,xo(),!1,n),n.e$=3,pEs([n]));return{}}q=WPs(q);if(q===null)return{};var X=this.T.dG();if(!X)return{};var P=this.T.getPresentingPlayerType(!0);if((w=this.T.getVideoData(P))==null||!w.isAd())return{};w={opt_adElement:X,opt_fullscreen:this.cW.get().isFullscreen()};return p86(q,n,w)}; g.d.NR=function(n,q,w,X,P){this.N.has(n)&&(X<=0||P<=0||db(uA).NR(n,q,w,X,P))}; g.d.FV=function(n){var q;(q=this.N.get(n.queryId))==null||q.FV()}; g.d.rY=function(n){var q;(q=this.N.get(n.queryId))==null||q.rY()}; g.d.O3=function(n){var q;(q=this.N.get(n.queryId))==null||q.O3()}; g.d.DO=function(n){var q;(q=this.N.get(n.queryId))==null||q.DO()}; g.d.u2=function(n){var q;(q=this.N.get(n.queryId))==null||q.u2()};Its.prototype.send=function(n,q,w,X){try{kw6(this,n,q,w,X===void 0?!1:X)}catch(P){}};g.m(rfs,Its);jDu.prototype.send=function(n,q,w,X){var P=!1;try{if(X==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||X==="ATTRIBUTION_SRC_MODE_XHR_OPTION")P=!0,n=sws(n);X=P;var R=g.cg(n);if(R[1]==="https")var c=n;else R[1]="https",c=RB("https",R[2],R[3],R[4],R[5],R[6],R[7]);var k=rQ3(c);R=[];var r=WAT(c)&&this.MP.get().T.B().experiments.BW("add_auth_headers_to_remarketing_google_dot_com_ping");if(wN(c)||r)R.push({headerType:"USER_AUTH"}),R.push({headerType:"PLUS_PAGE_ID"}),R.push({headerType:"VISITOR_ID"}),R.push({headerType:"EOM_VISITOR_ID"}), R.push({headerType:"AUTH_USER"}),R.push({headerType:"DATASYNC_ID"});this.N.send({baseUrl:c,scrubReferrer:k,headers:R},q,w,X)}catch(e){}};rQ.prototype.LD=function(){return this.T.LD(1)};g.m(jr,g.A);g.d=jr.prototype;g.d.hh=function(){return this.T.getVideoData(1).clientPlaybackNonce}; g.d.addListener=function(n){this.listeners.push(n)}; g.d.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.d.Z3=function(){this.Uw.clear();this.Ap=null;this.Uo.get().clear()}; g.d.Qd=function(){}; g.d.Pxi=function(n,q,w,X,P){q.videoId==="nPpU29QrbiU"&&this.T.p5("ads_ssm_vdc_s",{pt:w,dvt:n});h1(this.MP.get())&&n!=="dataloaded"||dRy(this,q,w);if(wQ(this.MP.get())&&n==="newdata"&&P!==void 0){n=this.hh();var R=q.clientPlaybackNonce,c={};Xw(this,"rte",(c.ec=R,c.xc=X==null?void 0:X.clientPlaybackNonce,c.tr=P,c.pt=w,c.ia=R!==n,c.ctp=wq(R),c));q=q.clientPlaybackNonce;X=X==null?void 0:X.clientPlaybackNonce;P=gX3(P);if(P!==1)if(X!==void 0)for(w=g.a(this.listeners),n=w.next();!n.done;n=w.next())n.value.Gq(X, q,P);else R0("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:q,transitionReason:String(P)});P=g.a(this.listeners);for(X=P.next();!X.done;X=P.next())X.value.ZI(q)}}; g.d.Qih=function(n,q){n!==void 0&&(this.Ap=n,q===void 0?R0("Expected ad video start time on SS video changed"):this.Uw.set(n,q));var w=this.T.getPresentingPlayerType(!0),X=this.T.getVideoData(w),P;n===void 0?P=null:P=this.Uo.get().N.get(n)||null;this.T.getVideoData(1).p5("ads_ssvc",{pt:w,cpn:X==null?void 0:X.clientPlaybackNonce,crtt:this.T.getCurrentTime(1,!1),atlh:this.T.isAtLiveHead(),adstt:q,pid:n,slid:P==null?void 0:P.layoutId});X?dRy(this,X,w):R0("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.T.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:n})}; g.d.UQ=function(n,q){var w=n.author,X=n.clientPlaybackNonce,P=n.isListed,R=n.dM,c=n.title,k=n.mK,r=n.IW,e=n.isMdxPlayback,f=n.E9,O=n.mdxEnvironment,H=n.isAutonav,U=n.Qy,t=n.Vb,V=n.eL,T=n.videoId||"",x=n.profilePicture||"",M=n.qY||"",h=n.FQ()||!1,E=n.M7()||!1;n=n.Gm||void 0;R=this.Uo.get().N.get(R)||{layoutId:null,slotId:null};var S=this.T.getVideoData(1),nO=S.T9();S=S.getPlayerResponse();q=1E3*this.T.getDuration(q);var J=1E3*this.T.getDuration(1),c0,ku,Is=(S==null?void 0:(c0=S.playerConfig)==null? void 0:(ku=c0.daiConfig)==null?void 0:ku.enableDai)||!1,e3,wx;c0=(S==null?void 0:(e3=S.playerConfig)==null?void 0:(wx=e3.daiConfig)==null?void 0:wx.enablePreroll)||!1;return Object.assign({},R,{videoId:T,author:w,clientPlaybackNonce:X,An:q,gp:J,daiEnabled:Is,A3:c0,isListed:P,T9:nO,profilePicture:x,title:c,qY:M,mK:k,IW:r,Gm:n,isMdxPlayback:e,E9:f,mdxEnvironment:O,isAutonav:H,Qy:U,Vb:t,eL:V,FQ:h,M7:E})}; g.d.Xf=function(){this.listeners.length=0;this.CN=null;g.A.prototype.Xf.call(this)};g.m(sj,g.A);g.d=sj.prototype;g.d.Z3=function(){var n=this;wQ(this.MP.get())||(this.N=Do(function(){n.T.zp()||n.T.GG("ad",1)}))}; g.d.Qd=function(){}; g.d.addListener=function(n){this.listeners.push(n)}; g.d.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.d.GX=function(){}; g.d.playVideo=function(){this.T.playVideo()}; g.d.pauseVideo=function(){this.T.pauseVideo()}; g.d.resumeVideo=function(n){this.Rn(n)&&this.T.playVideo()}; g.d.Rn=function(n){return this.T.getPlayerState(n)===2}; g.d.getCurrentTimeSec=function(n,q,w){var X=this.rl.get().Ap;if(n===2&&!q&&X!==null)return Oj(this,X);MB(this.MP.get(),"html5_ssap_use_cpn_to_get_time")||(w=void 0);return w!==void 0?this.T.getCurrentTime(n,q,w):this.T.getCurrentTime(n,q)}; g.d.getVolume=function(){return this.T.getVolume()}; g.d.isMuted=function(){return this.T.isMuted()}; g.d.getPresentingPlayerType=function(){return this.T.getPresentingPlayerType(!0)}; g.d.getPlayerState=function(n){return this.T.getPlayerState(n)}; g.d.getGetAdBreakContext=function(){return this.T.getGetAdBreakContext()}; g.d.isFullscreen=function(){return this.T.isFullscreen()}; g.d.isAtLiveHead=function(){return this.T.isAtLiveHead()}; g.d.Yy=function(n){this.T.Yy(n)}; g.d.Mgn=function(){var n=this.T.getPresentingPlayerType(!0),q=this.getCurrentTimeSec(n,!1);if(n===2){n=g.a(this.listeners);for(var w=n.next();!w.done;w=n.next())w.value.Di(q)}else if(n===1)for(n=g.a(this.Yc),w=n.next();!w.done;w=n.next())w.value.GX(q)}; g.d.jPH=function(n){for(var q=g.a(this.listeners),w=q.next();!w.done;w=q.next())w.value.zw(n,this.getPresentingPlayerType())}; g.d.onFullscreenToggled=function(n){for(var q=g.a(this.listeners),w=q.next();!w.done;w=q.next())w.value.onFullscreenToggled(n)}; g.d.onVolumeChange=function(){for(var n=g.a(this.listeners),q=n.next();!q.done;q=n.next())q.value.onVolumeChange()}; g.d.Hd=function(){for(var n=this.T.isMinimized(),q=g.a(this.listeners),w=q.next();!w.done;w=q.next())w.value.Hd(n)}; g.d.G1=function(n){for(var q=g.a(this.listeners),w=q.next();!w.done;w=q.next())w.value.G1(n)}; g.d.UD=function(){for(var n=this.T.yT().qr(),q=g.a(this.listeners),w=q.next();!w.done;w=q.next())w.value.Ui(n)}; g.d.Kd=function(n){for(var q=g.a(this.listeners),w=q.next();!w.done;w=q.next())w.value.Kd(n)}; g.d.ge=function(){for(var n=g.a(this.listeners),q=n.next();!q.done;q=n.next())q.value.ge()};g.m(V8z,g.A);g.m(Uj,g.A);Uj.prototype.Xf=function(){this.Lo.zp()||this.Lo.get().removeListener(this);g.A.prototype.Xf.call(this)};t6.prototype.fetch=function(n){var q=n.i6;return this.N.fetch(n.u4,{Mn:n.Mn===void 0?void 0:n.Mn,OF:q,cueProcessedMs:n.cueProcessedMs===void 0?0:n.cueProcessedMs}).then(function(w){return pvs(w,q)})};g.m(dQ,g.A);g.d=dQ.prototype;g.d.addListener=function(n){this.listeners.push(n)}; g.d.removeListener=function(n){this.listeners=this.listeners.filter(function(q){return q!==n})}; g.d.vn=function(n){TXh(this,n,1)}; g.d.onAdUxClicked=function(n,q){gQ(this,function(w){w.ET(n,q)})}; g.d.OW=function(n){gQ(this,function(q){q.P2(n)})}; g.d.Fk=function(n){gQ(this,function(q){q.qz(n)})}; g.d.a0q=function(n){gQ(this,function(q){q.wj(n)})};mO.prototype.reduce=function(n){switch(n.event){case "unknown":return}var q=n.identifier;var w=this.N[q];w?q=w:(w={iy:null,Wz:-Infinity},q=this.N[q]=w);w=n.startSecs+n.N/1E3;if(!(w=this.N.startSecs&&w.startSecs<=this.N.startSecs+this.N.lx)){var X=void 0;if(l3(this.MP.get())&&w.identifier!==((X=this.N)==null?void 0:X.identifier)){var P=X=void 0,R=void 0,c=void 0;fl(this.hg.get(),"ocud","ccpi."+w.identifier+";ccpe."+w.event+";ccps."+w.startSecs+";\n ccpd."+w.lx+";pcpi."+((X=this.N)==null?void 0:X.identifier)+ ";pcpe."+((P=this.N)==null?void 0:P.event)+";\n pcps."+((R=this.N)==null?void 0:R.startSecs)+";pcpd."+((c=this.N)==null?void 0:c.lx)+";")}X=void 0;w.identifier!==((X=this.N)==null?void 0:X.identifier)&&R0("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.N=w,vXy(this,w)}}; g.d.Xf=function(){this.X!=null&&(this.X.unsubscribe("cuepointupdated",this.gF,this),this.X=null);this.listeners.length=0;this.Vr.length=0;g.A.prototype.Xf.call(this)};g.d=VD.prototype;g.d.ly=function(n,q,w,X,P,R,c){return this.T.ly(n,q,w,X,P,R,c)}; g.d.q4=function(n,q){this.T.q4(n,q)}; g.d.rk=function(n,q,w){this.T.rk(n,q,w)}; g.d.JX=function(n){this.T.JX(n)}; g.d.sy=function(n,q,w,X,P,R,c){return this.T.sy(n,q,w,X,P,R,c)}; g.d.Sq=function(n){return this.T.Sq(n)}; g.d.finishSegmentByCpn=function(n,q,w){w=xRz(w);this.T.finishSegmentByCpn(n,q,w)};g.m(pu,g.A);g.m(h4y,g.A);g.m(ltT,g.A);g.m(Gw3,g.A);g.m(CWO,g.A);g.m(EXY,g.A);g.m(b7s,g.A);b7s.prototype.C=function(){return this.X};g.m(Afz,Cp); Afz.prototype.C=function(n){var q=n.content;if(q.componentType==="shopping-companion")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.Uq("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId,shoppingCompanionCarouselRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.N,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:this.N.Uq("updateKevlarOrC3Companion",{})}else if(q.componentType==="action-companion")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1); this.N.Uq("updateKevlarOrC3Companion",{contentVideoId:n&&n.videoId,actionCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.N,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.N.getVideoData(1),this.N.Uq("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.N.Uq("updateKevlarOrC3Companion",{})}else if(q.componentType==="image-companion")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.Uq("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,imageCompanionAdRenderer:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.N,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.N.getVideoData(1),this.N.Uq("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.N.Uq("updateKevlarOrC3Companion",{})}else if(q.componentType==="top-banner-image-text-icon-buttoned")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.Uq("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,topBannerImageTextIconButtonedLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.N,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q.renderer&&(q=this.N.getVideoData(1),this.N.Uq("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId})),this.N.Uq("updateKevlarOrC3Companion",{})}else if(q.componentType==="banner-image")switch(n.actionType){case 1:case 2:n=this.N.getVideoData(1);this.N.Uq("updateKevlarOrC3Companion", {contentVideoId:n&&n.videoId,bannerImageLayoutViewModel:q.renderer,layoutId:q.layoutId,macros:q.macros,onLayoutVisibleCallback:q.N,interactionLoggingClientData:q.interactionLoggingClientData});break;case 3:q=this.N.getVideoData(1),this.N.Uq("updateKevlarOrC3Companion",{contentVideoId:q&&q.videoId}),this.N.Uq("updateKevlarOrC3Companion",{})}else if(q.componentType==="ads-engagement-panel")switch(q=q.renderer,n.actionType){case 1:case 2:this.N.Uq("updateEngagementPanelAction",q.addAction);this.N.Uq("changeEngagementPanelVisibility", q.expandAction);break;case 3:this.N.Uq("changeEngagementPanelVisibility",q.hideAction),this.N.Uq("updateEngagementPanelAction",q.removeAction)}else if(q.componentType==="ads-engagement-panel-layout"){var w=q.renderer;switch(n.actionType){case 1:case 2:this.N.Uq("updateEngagementPanelAction",{action:LC(w.addAction),layoutId:q.layoutId,onLayoutVisibleCallback:q.N,interactionLoggingClientData:q.interactionLoggingClientData});this.N.Uq("changeEngagementPanelVisibility",LC(w.expandAction));break;case 3:this.N.Uq("changeEngagementPanelVisibility", LC(w.hideAction)),this.N.Uq("updateEngagementPanelAction",{action:LC(w.removeAction)})}}};g.m(Yos,um);g.d=Yos.prototype;g.d.init=function(n,q,w){um.prototype.init.call(this,n,q,w);g.K$(this.C,"stroke-dasharray","0 "+this.X);this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.D.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.W.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Q1(this);um.prototype.hide.call(this)}; g.d.show=function(){Bl(this);um.prototype.show.call(this)}; g.d.Vd=function(){this.hide()}; g.d.Um=function(){if(this.N){var n=this.N.getProgressState();n!=null&&n.current!=null&&g.K$(this.C,"stroke-dasharray",n.current/n.seekableEnd*this.X+" "+this.X)}};g.m(KTs,cl);g.d=KTs.prototype; g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);if(q.image&&q.image.thumbnail)if(q.headline)if(q.description)if(q.backgroundImage&&q.backgroundImage.thumbnail)if(q.actionButton&&g.u(q.actionButton,g.ZR))if(n=q.durationMilliseconds||0,typeof n!=="number"||n<=0)g.pC(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+n));else if(q.navigationEndpoint){var X=this.api.getVideoData(2);if(X!=null){var P=q.image.thumbnail.thumbnails;P!=null&& P.length>0&&g.LV(g.x1(P[0].url))&&(P[0].url=X.profilePicture,g.LV(g.x1(X.profilePicture))&&Ags("VideoPlayer",239976093,"Expected non-empty profile picture."));P=q.backgroundImage.thumbnail.thumbnails;P!=null&&P.length>0&&g.LV(g.x1(P[0].url))&&(P[0].url=X.EF());P=q.headline;P!=null&&g.LV(g.x1(P.text))&&(P.text=X.author)}this.L.init(WW("ad-image"),q.image,w);this.D.init(WW("ad-text"),q.headline,w);this.C.init(WW("ad-text"),q.description,w);this.Ff.init(WW("ad-image"),q.backgroundImage,w);X=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.D.element.classList.add("ytp-ad-action-interstitial-headline-light");this.C.element.classList.add("ytp-ad-action-interstitial-description-light");X.push("ytp-ad-action-interstitial-action-button-dark");this.api.B().X&&(X.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),X.push("ytp-ad-action-interstitial-action-button-dark"));this.api.B().Z("enable_unified_action_endcap_on_web")&& !this.api.B().X&&(X.push("ytp-ad-action-interstitial-action-button-unified"),this.je.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.RH.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.r$.classList.add("ytp-ad-action-interstitial-card-unified"),this.PW.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.HW.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.n5.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.D0.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new T3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,X);g.K(this,this.actionButton);this.actionButton.wl(this.je); this.actionButton.init(WW("button"),g.u(q.actionButton,g.ZR),w);lF(this.actionButton.element);X=Ef(this.actionButton.element);C9(this.actionButton.element,X+" This link opens in new tab");this.navigationEndpoint=q.navigationEndpoint;this.W.j(this.n5,"click",this.pI,this);this.W.j(this.PW,"click",this.pI,this);!this.api.B().Z("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.B().X||this.W.j(this.HW,"click",this.pI,this);this.N=this.s$?new i$(this.api,n):new Hn(n);g.K(this,this.N);if(q.skipButton){(n= g.u(q.skipButton,n1G))&&this.N&&(this.skipButton=new r_(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.N,this.AC),g.K(this,this.skipButton),this.skipButton.wl(this.element),this.skipButton.init(WW("skip-button"),n,w));if(w=q.adBadgeRenderer)if(w=g.u(w,NRL))n=new fX(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!0,!0),n.wl(this.D0),n.init(WW("simple-ad-badge"),w,this.macros),g.K(this,n);if(w=q.adInfoRenderer)if(w=g.u(w,Bs))n=new YY(this.api,this.layoutId,this.interactionLoggingClientData, this.QT,this.element,void 0,!0),n.wl(this.D0),n.init(WW("ad-info-hover-text-button"),w,this.macros),g.K(this,n)}else q.nonskippableOverlayRenderer&&(n=g.u(q.nonskippableOverlayRenderer,Qf))&&this.N&&(this.X=new z3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.N,!1),g.K(this,this.X),this.X.wl(this.element),this.X.init(WW("ad-preview"),n,w));q.countdownRenderer&&(q=q.countdownRenderer,g.u(q,q40)&&this.N&&(w=new Yos(this.api,this.layoutId,this.interactionLoggingClientData,this.QT, this.N),g.K(this,w),w.wl(this.element),w.init(WW("timed-pie-countdown"),g.u(q,q40),this.macros)));this.show();this.element.focus()}else g.pC(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.pC(Error("AdActionInterstitialRenderer has no button."));else g.pC(Error("AdActionInterstitialRenderer has no background AdImage."));else g.pC(Error("AdActionInterstitialRenderer has no description AdText."));else g.pC(Error("AdActionInterstitialRenderer has no headline AdText."));else g.pC(Error("AdActionInterstitialRenderer has no image."))}; g.d.clear=function(){g.Vs(this.W);this.hide()}; g.d.show=function(){Soz(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.X&&this.X.show();cl.prototype.show.call(this)}; g.d.hide=function(){Soz(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.X&&this.X.hide();cl.prototype.hide.call(this)}; g.d.pI=function(){this.navigationEndpoint&&(this.layoutId?this.QT.executeCommand(this.navigationEndpoint,this.layoutId):g.pC(Error("Missing layoutId for ad action interstitial.")))};var JfT={iconType:"CLOSE"},vF=new g.QB(320,63);g.m(Z73,cl);g.d=Z73.prototype; g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);this.W=q;this.L=g.Ml(this.W.onClickCommands||[]);this.D0=this.W.onErrorCommand||null;if(n=this.W.contentSupportedRenderer)n=this.W.contentSupportedRenderer,q=this.W.adInfoRenderer||null,g.u(n,JXD)?(this.D=g.km("ytp-ad-overlay-ad-info-button-container",this.C.element),z46(this,q),n=NXY(this,g.u(n,JXD))):g.u(n,zOt)?(this.D=g.km("ytp-ad-overlay-ad-info-button-container",this.X.element),z46(this,q),n=nuL(this,g.u(n,zOt))):g.u(n,WXh)?(this.D= g.km("ytp-ad-overlay-ad-info-button-container",this.N.element),z46(this,q),n=q6z(this,g.u(n,WXh))):(g.pC(Error("InvideoOverlayAdRenderer content could not be initialized.")),n=!1);n&&(this.show(),w0f(this,!0))}; g.d.clear=function(){w0f(this,!1);this.n5.reset();this.PW=0;this.C.hide();this.logVisibility(this.C.element,!1);this.X.hide();this.logVisibility(this.X.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.hide();this.dispose()}; g.d.S8P=function(){this.je&&(this.layoutId?this.QT.executeCommand(this.je,this.layoutId):g.pC(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.d.Uf=function(){a:{if(this.W&&this.W.closeButton&&this.W.closeButton.buttonRenderer){var n=this.W.closeButton.buttonRenderer;if(n.serviceEndpoint){n=[n.serviceEndpoint];break a}}n=[]}n=g.a(n);for(var q=n.next();!q.done;q=n.next())q=q.value,this.layoutId?this.QT.executeCommand(q,this.layoutId):g.pC(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.d.vhp=function(){this.Ff||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.d.P7=function(){this.Ff||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.P7("invideo-overlay")}; g.d.Cog=function(n){n.target===this.D&&g.km("ytp-ad-button",this.RH.element).click()};g.m(X0j,um);g.d=X0j.prototype;g.d.init=function(n,q,w){um.prototype.init.call(this,n,q,w);n=q.durationMs;this.C=n==null||n===0?0:n+this.N.getProgressState().current*1E3;if(q.text)var X=q.text.templatedAdText;else q.staticMessage&&(X=q.staticMessage);this.messageText.init(WW("ad-text"),X,w);this.messageText.wl(this.X.element);this.W.show(100);this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){PsG(this,!1);um.prototype.hide.call(this);this.X.hide();this.messageText.hide();Q1(this)}; g.d.show=function(){PsG(this,!0);um.prototype.show.call(this);Bl(this);this.X.show();this.messageText.show()}; g.d.Vd=function(){this.hide()}; g.d.Um=function(){if(this.N!=null){var n=this.N.getProgressState();n!=null&&n.current!=null&&(n=1E3*n.current,!this.PW&&n>=this.C?(this.W.hide(),this.PW=!0):this.messageText&&this.messageText.isTemplated()&&(n=Math.max(0,Math.ceil((this.C-n)/1E3)),n!==this.D&&(SV(this.messageText,{TIME_REMAINING:String(n)}),this.D=n)))}};g.m(RhG,cl);g.d=RhG.prototype; g.d.init=function(n,q,w){cl.prototype.init.call(this,n,q,{});q.image&&q.image.thumbnail?q.headline?q.description?q.actionButton&&g.u(q.actionButton,g.ZR)?(this.C.init(WW("ad-image"),q.image,w),this.X.init(WW("ad-text"),q.headline,w),this.W.init(WW("ad-text"),q.description,w),this.actionButton=new T3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,["ytp-ad-underlay-action-button"]),q.backgroundColor&&g.K$(this.element,"background-color",g.MF(q.backgroundColor)),g.K(this,this.actionButton), this.actionButton.wl(this.D),this.actionButton.init(WW("button"),g.u(q.actionButton,g.ZR),w),n=g.Jv(this.api.B().experiments,"player_underlay_video_width_fraction"),this.api.B().Z("place_shrunken_video_on_left_of_player")?(q=this.N,g.qX(q,"ytp-ad-underlay-left-container"),g.N4(q,"ytp-ad-underlay-right-container"),g.K$(this.N,"margin-left",Math.round((n+.02)*100)+"%")):(q=this.N,g.qX(q,"ytp-ad-underlay-right-container"),g.N4(q,"ytp-ad-underlay-left-container")),g.K$(this.N,"width",Math.round((1-n- .04)*100)+"%"),this.api.WV()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.L6.bind(this)),this.api.addEventListener("resize",this.mx.bind(this))):g.pC(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.pC(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.pC(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.pC(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.d.show=function(){cOt(!0);this.actionButton&&this.actionButton.show();cl.prototype.show.call(this)}; g.d.hide=function(){cOt(!1);this.actionButton&&this.actionButton.hide();cl.prototype.hide.call(this)}; g.d.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.L6.bind(this));this.api.removeEventListener("resize",this.mx.bind(this));this.hide()}; g.d.onClick=function(n){cl.prototype.onClick.call(this,n);this.actionButton&&g.gr(this.actionButton.element,n.target)&&this.api.pauseVideo()}; g.d.L6=function(n){n==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):n==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):n==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))}; g.d.mx=function(n){n.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):n.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.K$(this.X.element,"font-size",n.width/40+"px")};g.m(Lu,cl); Lu.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);q.toggledLoggingParams&&(this.toggledLoggingParams=q.toggledLoggingParams);q.answer&&g.u(q.answer,g.ZR)?(n=new T3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),n.wl(this.answer),n.init(WW("ytp-ad-survey-answer-button"),g.u(q.answer,g.ZR),w),n.show()):q.answer&&g.u(q.answer,FH)&&(this.N=new lm(this.api,this.layoutId,this.interactionLoggingClientData,this.QT, ["ytp-ad-survey-answer-toggle-button"]),this.N.wl(this.answer),g.K(this,this.N),this.N.init(WW("survey-answer-button"),g.u(q.answer,FH),w));this.show()}; Lu.prototype.Gg=function(n){this.layoutId?$S(this.QT,n,this.layoutId,this.macros):(n=new g.b4("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.pC(n))}; Lu.prototype.onClick=function(n){cl.prototype.onClick.call(this,n);if(this.api.B().Z("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Lu.prototype.clear=function(){this.hide()};g.m(Iml,cl);Iml.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);q.answer&&g.u(q.answer,FH)&&(this.button=new lm(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.wl(this.N),this.button.init(WW("survey-none-of-the-above-button"),g.u(q.answer,FH),w));this.show()};g.m(Mh,T3);Mh.prototype.init=function(n,q,w){T3.prototype.init.call(this,n,q,w);n=!1;q.text&&(q=g.kY(q.text),n=!g.LV(q));n||g.TQ(Error("No submit text was present in the renderer."))}; Mh.prototype.onClick=function(n){this.publish("l");T3.prototype.onClick.call(this,n)};g.m(xR,cl); xR.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);if(n=q.skipOrPreviewRenderer)g.u(n,Ue)?(n=g.u(n,Ue),w=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.W,!0),w.wl(this.skipOrPreview),w.init(WW("skip-button"),n,this.macros),g.K(this,w),this.N=w):g.u(n,Qf)&&(n=g.u(n,Qf),w=new z3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.W,!1),w.wl(this.skipOrPreview),w.init(WW("ad-preview"),n,this.macros),w.PW.show(100),w.show(),g.K(this,w), this.N=w);this.N==null&&(n=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(q)),g.pC(n));q.submitButton&&(n=q.submitButton,g.u(n,g.ZR)&&(n=g.u(n,g.ZR),w=new Mh(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),w.wl(this.submitButton),w.init(WW("survey-submit"),n,this.macros),g.K(this,w),this.X=w));if(n=q.adBadgeRenderer)n=g.u(n,NRL),w=new fX(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!0,!0,!0),w.wl(this.C),w.init(WW("simple-ad-badge"), n,this.macros),this.adBadge=w.element,g.K(this,w);if(n=q.adDurationRemaining)n=g.u(n,BRl),w=new d_(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.W,void 0,!0),w.wl(this.C),w.init(WW("ad-duration-remaining"),n,this.macros),g.K(this,w);(q=q.adInfoRenderer)&&g.u(q,Bs)&&(n=new YY(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.element,void 0,!0),g.K(this,n),this.adBadge!==void 0?this.C.insertBefore(n.element,this.adBadge.nextSibling):n.wl(this.C),n.init(WW("ad-info-hover-text-button"), g.u(q,Bs),this.macros));this.show()}; xR.prototype.clear=function(){this.hide()};g.m(D5,cl);D5.prototype.init=function(n,q,w){cl.prototype.init.call(this,n,q,w);ehl(this)}; D5.prototype.show=function(){this.C=Date.now();cl.prototype.show.call(this)}; D5.prototype.u0=function(){};g.m(fmz,D5);g.d=fmz.prototype;g.d.init=function(n,q,w){var X=this;D5.prototype.init.call(this,n,q,w);q.questionText&&kTf(this,q.questionText);q.answers&&q.answers.forEach(function(P,R){g.u(P,pa)&&rOh(X,g.u(P,pa),w,R)}); this.D=new Set(this.X.map(function(P){return P.N.N})); (n=q.noneOfTheAbove)&&(n=g.u(n,ZVw))&&OOj(this,n,w);q.surveyAdQuestionCommon&&ss5(this,q.surveyAdQuestionCommon);q.submitEndpoints&&(this.submitEndpoints=q.submitEndpoints);this.j(this.element,"change",this.onChange);this.show()}; g.d.u0=function(){iOL(this,!1);this.W.X.subscribe("l",this.BMW,this)}; g.d.onChange=function(n){n.target===this.noneOfTheAbove.button.N?HO0(this):this.D.has(n.target)&&(this.noneOfTheAbove.button.toggleButton(!1),iOL(this,!0))}; g.d.BMW=function(){var n=[],q=this.X.reduce(function(P,R,c){var k=R.toggledLoggingParams;R.N&&R.N.isToggled()&&k&&(P.push(k),n.push(c));return P},[]).join("&"),w=this.submitEndpoints.map(function(P){if(!P.loggingUrls)return P; P=g.Ul(P);P.loggingUrls=P.loggingUrls.map(function(R){R.baseUrl&&(R.baseUrl=iC(R.baseUrl,q));return R}); return P}); if(w){w=g.a(w);for(var X=w.next();!X.done;X=w.next())X=X.value,this.layoutId?$S(this.QT,X,this.layoutId,this.macros):g.pC(Error("Missing layoutId for multi_select_question."))}this.api.B().Z("supports_multi_step_on_desktop")&&this.PW(n)}; g.d.clear=function(){this.api.B().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.m(h6,D5);h6.prototype.init=function(n,q,w){var X=this;D5.prototype.init.call(this,n,q,w);q.questionText&&kTf(this,q.questionText);q.answers&&q.answers.forEach(function(P,R){g.u(P,pa)&&rOh(X,g.u(P,pa),w,R)}); q.surveyAdQuestionCommon?ss5(this,q.surveyAdQuestionCommon):wZ(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(q)));this.show()}; h6.prototype.clear=function(){this.api.B().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.m(ly,cl);ly.prototype.init=function(n,q,w){var X=this;cl.prototype.init.call(this,n,q,w);if(this.api.B().Z("supports_multi_step_on_desktop")){var P;this.conditioningRules=(P=q.conditioningRules)!=null?P:[];var R;this.X=(R=q.questions)!=null?R:[];var c;((c=q.questions)==null?0:c.length)&&gu5(this,0)}else(q.questions||[]).forEach(function(k){g.u(k,Ss)?t35(X,g.u(k,Ss),w):g.u(k,Kh)&&dsv(X,g.u(k,Kh),w)}); this.show()}; ly.prototype.clear=function(){this.api.B().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; ly.prototype.W=function(n){var q=this;if(this.api.B().Z("supports_multi_step_on_desktop")){var w;if((w=this.conditioningRules)==null?0:w.length){var X;if(n.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(P){return P.questionIndex===q.N})==null)g.pC(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(P){if(P.questionIndex===q.N)switch(P.condition){case "CONDITION_ALL_OF":var R;if((R=P.answerIndices)==null?0:R.every(function(k){return n.includes(k)}))X=P.nextQuestionIndex; break;case "CONDITION_ANY_OF":var c;if((c=P.answerIndices)==null?0:c.some(function(k){return n.includes(k)}))X=P.nextQuestionIndex; break;default:g.pC(Error("Expected specified condition in survey conditioning rules."))}}),X!=null)gu5(this,X); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.pC(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.m(G6,cl); G6.prototype.init=function(n,q,w){var X=this;cl.prototype.init.call(this,n,q,w);n=q.timeoutSeconds||0;if(typeof n!=="number"||n<0)g.pC(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+n));else if(q.timeoutCommands)if(q.text)if(q.ctaButton&&g.u(q.ctaButton,g.ZR))if(q.brandImage)if(q.backgroundImage&&g.u(q.backgroundImage,J$)&&g.u(q.backgroundImage,J$).landscape){this.layoutId||g.pC(Error("Missing layoutId for survey interstitial."));msG(this.interstitial,g.u(q.backgroundImage, J$).landscape);msG(this.logoImage,q.brandImage);g.mJ(this.text,g.kY(q.text));var P=["ytp-ad-survey-interstitial-action-button"];P.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new T3(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,P);g.K(this,this.actionButton);this.actionButton.wl(this.X);this.actionButton.init(WW("button"),g.u(q.ctaButton,g.ZR),w);this.actionButton.show();this.N=new i$(this.api,n*1E3);this.N.subscribe("g",function(){X.transition.hide()}); g.K(this,this.N);this.j(this.element,"click",function(R){var c=R.target===X.interstitial;R=X.actionButton.element.contains(R.target);if(c||R)if(X.transition.hide(),c)X.api.onAdUxClicked(X.componentType,X.layoutId)}); this.transition.show(100)}else g.pC(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.pC(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.pC(Error("SurveyTextInterstitialRenderer has no button."));else g.pC(Error("SurveyTextInterstitialRenderer has no text."));else g.pC(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; G6.prototype.clear=function(){this.hide()}; G6.prototype.show=function(){yOG(!0);cl.prototype.show.call(this)}; G6.prototype.hide=function(){yOG(!1);cl.prototype.hide.call(this)};g.m(Cu,um);g.d=Cu.prototype; g.d.init=function(n,q){um.prototype.init.call(this,n,q,{});if(q.durationMilliseconds){if(q.durationMilliseconds<0){g.pC(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+q.durationMilliseconds));return}this.X=q.durationMilliseconds}else this.X=this.N.j5();var w;if((w=q.previewText)==null||!w.text||g.LV(q.previewText.text))g.pC(Error("No text is returned for AdPreview."));else{this.D=q.previewText;q.previewText.isTemplated||g.mJ(this.C,q.previewText.text);var X; if(((X=this.api.getVideoData(1))==null?0:X.Pw)&&q.previewImage){var P,R;(n=((R=rs(((P=q.previewImage)==null?void 0:P.sources)||[],52,!1))==null?void 0:R.url)||"")&&n.length?(this.previewImage=new g.R6({J:"img",Y:"ytp-preview-ad__image",U:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",n),g.K(this,this.previewImage),this.previewImage.wl(this.element)):g.pC(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Q1(this);um.prototype.hide.call(this)}; g.d.show=function(){Bl(this);um.prototype.show.call(this)}; g.d.Vd=function(){this.hide()}; g.d.Um=function(){if(this.N){var n=this.N.getProgressState();if(n!=null&&n.current)if(n=1E3*n.current,n>=this.X)this.transition.hide();else{var q;if((q=this.D)==null?0:q.isTemplated)if(q=Math.max(0,Math.ceil((this.X-n)/1E3)),q!==this.W){var w,X;(n=(w=this.D)==null?void 0:(X=w.text)==null?void 0:X.replace("{TIME_REMAINING}",String(q)))&&g.mJ(this.C,n);this.W=q}}}};g.m(Ej,cl); Ej.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});var w,X;if((n=((X=rs(((w=q.image)==null?void 0:w.sources)||[],am0(q),!0))==null?void 0:X.url)||"")&&n.length){w=this.C5("ytp-ad-avatar");w.src=n;var P,R;if(X=(P=q.interaction)==null?void 0:(R=P.accessibility)==null?void 0:R.label)w.alt=X;switch(q.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(q.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.pC(Error("Failed to get imageUrl in AdAvatar."))}; Ej.prototype.clear=function(){this.hide()}; Ej.prototype.onClick=function(n){cl.prototype.onClick.call(this,n)};g.m(oT,cl); oT.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});var w;n=(w=q.label)==null?void 0:w.content;if((w=n!=null&&!g.LV(n))||q.iconImage){w&&(this.buttonText=new g.R6({J:"span",Y:"ytp-ad-button-vm__text",Ag:n}),g.K(this,this.buttonText),this.buttonText.wl(this.element));var X,P,R=((X=q.interaction)==null?0:(P=X.accessibility)==null?0:P.label)||w?n:"";R&&C9(this.element,R+" This link opens in new tab");lF(this.element);if(q.iconImage){X=void 0;if(q.iconImage){a:{P=q.iconImage;if(P.sources)for(P= g.a(P.sources),n=P.next();!n.done;n=P.next())if(n=n.value,R=void 0,(R=n.clientResource)==null?0:R.imageName){P=n;break a}P=void 0}if(P){var c;X={iconType:(c=P.clientResource)==null?void 0:c.imageName}}}c=pp(X,!1,this.X);c!=null&&(this.buttonIcon=new g.R6({J:"span",Y:"ytp-ad-button-vm__icon",S:[c]}),g.K(this,this.buttonIcon),q.iconLeading?(tU(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):w?(this.buttonIcon.wl(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.wl(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(q.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.Z("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.N?"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(q.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.TQ(Error("AdButton does not have label or an icon."))}; oT.prototype.clear=function(){this.hide()}; oT.prototype.onClick=function(n){cl.prototype.onClick.call(this,n)};g.m(V3v,um);g.d=V3v.prototype; g.d.init=function(n,q){um.prototype.init.call(this,n,q,{});this.api.B().Z("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.C5("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),tU(this.C5("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(n=g.u(q.avatar,Z5)){var w=q.headline;if(w){var X=q.description;if(X){var P=g.u(q.button,z6);P?(this.adAvatar.init(WW("ad-avatar"),n),this.headline.init(WW("ad-simple-attributed-string"),new ma(w)),this.description.init(WW("ad-simple-attributed-string"),new ma(X)),w.content&&w.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(WW("ad-button"),P),this.startMilliseconds=q.startMs||0,this.api.WV()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.NE.bind(this)),Bl(this)):g.pC(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.pC(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.pC(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.pC(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.d.Um=function(){if(this.N){var n=this.N.getProgressState();n&&n.current&&1E3*n.current>=this.startMilliseconds&&(Q1(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.d.Vd=function(){this.clear()}; g.d.onClick=function(n){this.api.pauseVideo();um.prototype.onClick.call(this,n)}; g.d.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.NE.bind(this))}; g.d.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();um.prototype.show.call(this)}; g.d.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();um.prototype.hide.call(this)}; g.d.NE=function(n){n==="hidden"?this.show():this.hide()};g.m(by,cl);g.d=by.prototype; g.d.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(!q.label||g.LV(q.label))g.pC(Error("No label is returned for SkipAdButton."));else if(g.mJ(this.W,q.label),n=pp({iconType:"SKIP_NEXT_NEW"}),n==null)g.pC(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.R6({J:"span",Y:"ytp-skip-ad-button__icon",S:[n]}),g.K(this,this.C),this.C.wl(this.element),this.api.B().experiments.BW("enable_skip_to_next_messaging")&&(q=g.x1(q.targetId)))this.X=!0,this.element.setAttribute("data-tooltip-target-id",q), this.element.setAttribute("data-tooltip-target-fixed","")}; g.d.onClick=function(n){n&&n.preventDefault();var q,w;Rv0(n,{contentCpn:(w=(q=this.api.getVideoData(1))==null?void 0:q.clientPlaybackNonce)!=null?w:""})===0?this.api.Uq("onAbnormalityDetected"):(cl.prototype.onClick.call(this,n),this.api.Uq("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.d.clear=function(){this.N.reset();this.hide()}; g.d.hide=function(){cl.prototype.hide.call(this)}; g.d.show=function(){this.N.start();cl.prototype.show.call(this);this.X&&this.api.B().experiments.BW("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.m(p0f,um);g.d=p0f.prototype; g.d.init=function(n,q){um.prototype.init.call(this,n,q,{});n=g.u(q.preskipState,kxh);var w;if((w=this.api.getVideoData())==null?0:w.isDaiEnabled()){if(!n){g.pC(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.X=new Cu(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.N);g.K(this,this.X);this.X.wl(this.element);var X;(X=this.X)==null||X.init(WW("preview-ad"),n);(w=this.X)!=null&&(w.transition.show(100),w.show())}(w=g.u(q.skippableState,jP5))?(q.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=q.skipOffsetMilliseconds:(g.TQ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.C.init(WW("skip-button"),w),this.show()):g.pC(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.d.show=function(){Bl(this);um.prototype.show.call(this)}; g.d.hide=function(){!this.isSkippable&&this.X?this.X.hide():this.C&&this.C.hide();Q1(this);um.prototype.hide.call(this)}; g.d.clear=function(){var n;(n=this.X)==null||n.clear();this.C&&this.C.clear();Q1(this);um.prototype.hide.call(this)}; g.d.Vd=function(){this.hide()}; g.d.Um=function(){if(1E3*this.N.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var n;(n=this.X)!=null&&n.transition.hide();(n=this.C)!=null&&(n.transition.show(),n.show())}};g.m(A6,cl); A6.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(q.label){var w;((w=q.label)==null?0:w.content)&&!g.LV(q.label.content)&&(this.linkText=new g.R6({J:"span",Y:"ytp-visit-advertiser-link__text",Ag:q.label.content}),g.K(this,this.linkText),this.linkText.wl(this.element));var X,P;if((X=q.interaction)==null?0:(P=X.accessibility)==null?0:P.label)C9(this.element,q.interaction.accessibility.label+" This link opens in new tab");else{var R;((R=q.label)==null?0:R.content)&&!g.LV(q.label.content)&&C9(this.element, q.label.content+" This link opens in new tab")}lF(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.pC(Error("No label found in VisitAdvertiserLink."))}; A6.prototype.onClick=function(n){cl.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType,this.layoutId)}; A6.prototype.clear=function(){this.hide()};g.m(YR,cl); YR.prototype.init=function(n,q,w,X){cl.prototype.init.call(this,n,q,{});if(q.skipOrPreview){w=q.skipOrPreview;n=g.u(w,sPi);w=g.u(w,kxh);if(n)this.O_=new p0f(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.X),g.K(this,this.O_),this.O_.wl(this.L),this.O_.init(WW("skip-ad"),n);else{var P;w&&((P=this.api.getVideoData())==null?0:P.isDaiEnabled())&&(this.W=new Cu(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.X,1),g.K(this,this.W),this.W.wl(this.L),this.W.init(WW("ad-preview"), w),P=this.W,P.transition.show(100),P.show())}if(P=g.u(q.skipOrPreview,sPi))var R=P.skipOffsetMilliseconds}q.playerAdCard&&(P=g.u(q.playerAdCard,r_v))&&(this.playerAdCard=new V3v(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.X),g.K(this,this.playerAdCard),this.playerAdCard.wl(this.HW),this.playerAdCard.init(WW("ad-avatar-lockup-card"),P));q.adBadgeRenderer&&((P=g.u(q.adBadgeRenderer,J6))?(this.C=new a0(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!0),g.K(this, this.C),this.C.wl(this.N),this.C.init(WW("ad-badge"),P)):g.pC(Error("AdBadgeViewModel is not found in player overlay layout.")));q.adPodIndex&&(P=g.u(q.adPodIndex,PVt))&&(this.adPodIndex=new VO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.adPodIndex),this.adPodIndex.wl(this.N),this.adPodIndex.init(WW("ad-pod-index"),P));q.adInfoRenderer&&((P=g.u(q.adInfoRenderer,Bs))?(this.adInfoButton=new YY(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.element, void 0,!0),g.K(this,this.adInfoButton),this.C!==void 0?this.N.insertBefore(this.adInfoButton.element,this.C.element.nextSibling):this.adInfoButton.wl(this.N),this.adInfoButton.init(WW("ad-info-hover-text-button"),P,this.macros)):g.TQ(Error("AdInfoRenderer is not found in player overlay layout.")));var c;P=(c=this.api.getVideoData())==null?void 0:c.isDaiEnabled();q.adDurationRemaining&&P&&(c=g.u(q.adDurationRemaining,BRl))&&(this.adDurationRemaining=new d_(this.api,this.layoutId,this.interactionLoggingClientData, this.QT,this.X,X.videoAdDurationSeconds,!0),g.K(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.N.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.wl(this.N),this.adDurationRemaining.init(WW("ad-duration-remaining"),c,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));q.visitAdvertiserLink&&(X=g.u(q.visitAdvertiserLink,fYh))&&(this.visitAdvertiserLink=new A6(this.api,this.layoutId, this.interactionLoggingClientData,this.QT),g.K(this,this.visitAdvertiserLink),this.visitAdvertiserLink.wl(this.N),this.visitAdvertiserLink.init(WW("visit-advertiser-link"),X));q.adDisclosureBanner&&(q=g.u(q.adDisclosureBanner,XwB))&&(this.adDisclosureBanner=new pX(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.adDisclosureBanner),this.adDisclosureBanner.wl(this.PW),this.adDisclosureBanner.init(WW("ad-disclosure-banner"),q));this.D=new $0(this.api,this.X,R,!0);g.K(this, this.D);g.Zp(this.api,this.D.element,4);this.show()}; YR.prototype.clear=function(){this.hide()};g.m(Txj,cl);g.d=Txj.prototype; g.d.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(q!=null&&q.title)if(n=q.title)if(this.headline.init(WW("ad-simple-attributed-string"),new ma(n)),n=g.u(q.moreInfoButton,z6)){if(this.moreInfoButton.init(WW("ad-button"),n),q.descriptions)q.descriptions.length>0&&(n=q.descriptions[0])&&(this.N=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.N),this.N.wl(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.N.init(WW("ad-simple-attributed-string"), new ma(n))),q.descriptions.length>1&&(q=q.descriptions[1])&&(this.X=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.X),this.X.wl(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.X.init(WW("ad-simple-attributed-string"),new ma(q)))}else g.pC(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.pC(Error("No headline found in AdGridCardText."));else g.pC(Error("No headline found in AdGridCardText."))}; g.d.onClick=function(n){cl.prototype.onClick.call(this,n);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.d.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var n;(n=this.N)==null||n.clear();var q;(q=this.X)==null||q.clear()}; g.d.hide=function(){this.headline.hide();this.moreInfoButton.hide();var n;(n=this.N)==null||n.hide();var q;(q=this.X)==null||q.hide();cl.prototype.hide.call(this)}; g.d.show=function(){cl.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var n;(n=this.N)==null||n.show();var q;(q=this.X)==null||q.show()};g.m(Ku,cl);Ku.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(q!=null&&q.gridCards)if(q.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.pC(Error("Only single column style is currently supported in AdGridCardCollection."));else for(n=g.a(q.gridCards),q=n.next();!q.done;q=n.next()){if(q=g.u(q.value,IYw)){var w=new Txj(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,w);w.wl(this.element);w.init(WW("ad-grid-card-text"),q);this.N.push(w)}}else g.pC(Error("No grid cards found in AdGridCardCollection."))}; Ku.prototype.show=function(){for(var n=g.a(this.N),q=n.next();!q.done;q=n.next())q.value.show();cl.prototype.show.call(this)}; Ku.prototype.clear=function(){this.hide();for(var n=g.a(this.N),q=n.next();!q.done;q=n.next())q.value.clear()}; Ku.prototype.hide=function(){for(var n=g.a(this.N),q=n.next();!q.done;q=n.next())q.value.hide();cl.prototype.hide.call(this)};g.m(Sr,um);g.d=Sr.prototype;g.d.init=function(n,q,w,X,P){P=P===void 0?0:P;um.prototype.init.call(this,n,q,w,X);this.playerProgressOffsetMs=P;Bl(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.nZ.bind(this));this.api.addEventListener("resize",this.EA.bind(this));this.api.WV()?(this.X=!0,this.api.Yy(!0),this.show()):this.hide()}; g.d.Um=function(){if(this.N){var n=this.N.getProgressState();n&&n.current&&!this.X&&1E3*n.current>=this.playerProgressOffsetMs&&(this.X=!0,this.api.Yy(!0),this.show())}}; g.d.Vd=function(){this.X&&this.api.Yy(!1);this.hide()}; g.d.clear=function(){this.api.Yy(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.nZ.bind(this));this.api.removeEventListener("resize",this.EA.bind(this));Q1(this);this.hide()}; g.d.hide=function(){Fz0(!1);um.prototype.hide.call(this)}; g.d.show=function(){Fz0(!0);um.prototype.show.call(this)};g.m($s5,Sr);g.d=$s5.prototype; g.d.init=function(n,q,w,X){if(q!=null&&q.adGridCardCollection)if(q!=null&&q.adButton){var P=Number(q.playerProgressOffsetMs||"0");isNaN(P)?Sr.prototype.init.call(this,n,q,w,X):Sr.prototype.init.call(this,n,q,w,X,P);n=q.headline;w=g.u(q.adAvatar,Z5);n&&w?(this.headline=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.headline),this.headline.wl(this.C5("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(WW("ad-simple-attributed-string"),new ma(n)), this.adAvatar=new Ej(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.adAvatar),this.adAvatar.wl(this.C5("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(WW("ad-avatar"),w)):this.W.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");n=g.u(q.adGridCardCollection,c_G);this.adGridCardCollection.init(WW("ad-grid-card-collection"),n);q=g.u(q.adButton,z6);this.adButton.init(WW("ad-button"),q); this.hide()}else g.pC(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.pC(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.d.onClick=function(n){(this.adButton&&g.gr(this.adButton.element,n.target)||this.adAvatar&&g.gr(this.adAvatar.element,n.target))&&this.api.pauseVideo();Sr.prototype.onClick.call(this,n);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.d.EA=function(){}; g.d.clear=function(){this.hide();var n;(n=this.headline)==null||n.clear();var q;(q=this.adAvatar)==null||q.clear();this.adGridCardCollection.clear();this.adButton.clear();Sr.prototype.clear.call(this)}; g.d.show=function(){var n;(n=this.headline)==null||n.show();var q;(q=this.adAvatar)==null||q.show();this.adGridCardCollection.show();this.adButton.show();Sr.prototype.show.call(this)}; g.d.hide=function(){var n;(n=this.headline)==null||n.hide();var q;(q=this.adAvatar)==null||q.hide();this.adGridCardCollection.hide();this.adButton.hide();Sr.prototype.hide.call(this)}; g.d.nZ=function(n){n==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):n==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):n==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))};g.m(uy,cl); uy.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(q.attributes===void 0)g.pC(Error("No attributes found in AdDetailsLineViewModel."));else if(q.style===void 0)g.pC(Error("No style found in AdDetailsLineViewModel."));else{n=g.a(q.attributes);for(var w=n.next();!w.done;w=n.next())if(w=w.value,w.text!==void 0){w=w.text;var X=q.style,P=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,P);P.wl(this.element);a:switch(X){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":X="ytp-ad-details-line__text--style-responsive"; break a;default:X="ytp-ad-details-line__text--style-standard"}P.element.classList.add(X);P.init(WW("ad-simple-attributed-string"),new ma(w));this.N.push(P)}this.show()}}; uy.prototype.show=function(){this.N.forEach(function(n){n.show()}); cl.prototype.show.call(this)}; uy.prototype.clear=function(){this.hide()}; uy.prototype.hide=function(){this.N.forEach(function(n){n.hide()}); cl.prototype.hide.call(this)};g.m(BF,cl);BF.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});var w,X;(n=((X=rs(((w=q.image)==null?void 0:w.sources)||[]))==null?void 0:X.url)||"")&&n.length?(w=this.C5("ytp-image-background-image"),g.K$(w,"backgroundImage","url("+n+")"),q.blurLevel!==void 0&&g.K$(w,"filter","blur("+q.blurLevel+"px)"),q.gradient!==void 0&&(q=new g.Q({J:"div",Jg:["ytp-image-background--gradient-vertical"]}),g.K(this,q),q.wl(this.element)),this.show()):g.pC(Error("Failed to get imageUrl in ImageBackground."))}; BF.prototype.clear=function(){this.hide()};g.m(vuG,um);g.d=vuG.prototype;g.d.init=function(n,q){um.prototype.init.call(this,n,q,{});g.K$(this.C,"stroke-dasharray","0 "+this.X);this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Q1(this);um.prototype.hide.call(this)}; g.d.show=function(){Bl(this);um.prototype.show.call(this)}; g.d.Vd=function(){this.hide()}; g.d.Um=function(){if(this.N){var n=this.N.getProgressState();n!=null&&n.current!=null&&g.K$(this.C,"stroke-dasharray",n.current/n.seekableEnd*this.X+" "+this.X)}};g.m(QD,cl); QD.prototype.init=function(n,q){cl.prototype.init.call(this,n,q,{});if(M3z(q)){this.adAvatar=new Ej(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.adAvatar);this.adAvatar.wl(this.C5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(WW("ad-avatar"),g.u(q.adAvatar,Z5));this.headline=new yO(this.api,this.layoutId,this.interactionLoggingClientData,this.QT);g.K(this,this.headline);this.headline.wl(this.C5("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(WW("ad-simple-attributed-string"),new ma(q.headline));if(n=g.u(q.adDetailsLine,wwD))this.detailsLine=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.detailsLine),this.detailsLine.wl(this.C5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(WW("ad-details-line"),n);this.adButton=new oT(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!0);g.K(this,this.adButton); this.adButton.wl(this.C5("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(WW("ad-button"),g.u(q.adButton,z6));this.adBadge=new a0(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,!0);g.K(this,this.adBadge);this.adBadge.wl(this.W);this.adBadge.init(WW("ad-badge"),g.u(q.adBadge,J6));this.adInfoButton=new YY(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.element,void 0,!0);g.K(this,this.adInfoButton);this.adInfoButton.wl(this.W); this.adInfoButton.init(WW("ad-info-hover-text-button"),g.u(q.adInfoRenderer,Bs),this.macros);if(n=g.u(q.skipAdButton,jP5))this.skipAdButton=new by(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.skipAdButton),this.skipAdButton.wl(this.element),this.skipAdButton.init(WW("skip-button"),n);this.X=new Hn(q.durationMilliseconds);g.K(this,this.X);if(n=g.u(q.countdownViewModel,e9j))this.N=new vuG(this.api,this.layoutId,this.interactionLoggingClientData,this.QT,this.X),g.K(this, this.N),this.N.wl(this.C5("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.N.init(WW("timed-pie-countdown"),n);if(q=g.u(q.imageBackground,R9j))this.imageBackground=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.QT),g.K(this,this.imageBackground),this.imageBackground.wl(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(WW("image-background"), q);this.show();this.element.focus()}}; QD.prototype.clear=function(){g.Vs(this.C);this.hide()}; QD.prototype.show=function(){Lzl(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();cl.prototype.show.call(this)}; QD.prototype.hide=function(){Lzl(!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.N&&this.N.hide();this.imageBackground&&this.imageBackground.hide();cl.prototype.hide.call(this)};g.m(WF,g.np);g.d=WF.prototype;g.d.j5=function(){return 1E3*this.api.getDuration(this.P1,!1)}; g.d.stop=function(){this.N&&this.Sg.wM(this.N)}; g.d.hU=function(){var n=this.api.getProgressState(this.P1);this.X={seekableStart:n.seekableStart,seekableEnd:n.seekableEnd,current:this.api.getCurrentTime(this.P1,!1)};this.publish("h")}; g.d.getProgressState=function(){return this.X}; g.d.Wa=function(n){g.k0(n,2)&&this.publish("g")};var EOh="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.m(Nh,Cp); Nh.prototype.C=function(n){var q=n.id,w=n.content,X=w.componentType;if(!EOh.includes(X))switch(n.actionType){case 1:n=this.api;var P=this.QT,R=w.layoutId,c=w.interactionLoggingClientData,k=w instanceof LI?w.s$:!1,r=w instanceof LI||w instanceof Op?w.AC:!1;c=c===void 0?{}:c;k=k===void 0?!1:k;r=r===void 0?!1:r;switch(X){case "invideo-overlay":n=new Z73(n,R,c,P);break;case "player-overlay":n=new vn(n,R,c,P,new WF(n),r);break;case "player-overlay-layout":n=new YR(n,R,c,P,new WF(n));break;case "survey":n= new ly(n,R,c,P);break;case "ad-action-interstitial":n=new KTs(n,R,c,P,k,r);break;case "video-interstitial-buttoned-centered":n=new QD(n,R,c,P);break;case "survey-interstitial":n=new G6(n,R,c,P);break;case "ad-message":n=new X0j(n,R,c,P,new WF(n,1));break;case "player-underlay":n=new RhG(n,R,c,P);break;case "display-underlay-text-grid-cards":n=new $s5(n,R,c,P,new WF(n));break;default:n=null}if(!n){g.TQ(Error("No UI component returned from ComponentFactory for type: "+X));break}g.jn(this.components, q)?g.TQ(Error("Ad UI component already registered: "+q)):this.components[q]=n;n.bind(w);w instanceof $t?this.X?this.X.append(n.C0):g.TQ(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(n.C0);break;case 2:q=xsh(this,n);if(q==null)break;q.bind(w);break;case 3:w=xsh(this,n),w!=null&&(g.wM(w),g.jn(this.components,q)?(w=this.components,q in w&&delete w[q]):g.TQ(Error("Ad UI component does not exist: "+q)))}}; Nh.prototype.Xf=function(){g.XP(Object.values(this.components));this.components={};Cp.prototype.Xf.call(this)};g.m(Dsv,g.Lq);g.d=Dsv.prototype;g.d.create=function(){try{hhf(this),this.load(),this.created=!0,hhf(this)}catch(n){R0(n instanceof Error?n:String(n))}}; g.d.load=function(){try{Cs5(this)}finally{wQ(Fa(this.N).lX)&&this.player.GG("ad",1)}}; g.d.destroy=function(){var n=this.player.getVideoData(1);this.N.N.dY.Qd(n&&n.clientPlaybackNonce||"");this.unload();this.created=!1}; g.d.unload=function(){g.Lq.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(q){R0(q instanceof Error?q:String(q))}if(this.X!=null){var n=this.X;this.X=null;n.dispose()}this.C.reset()}; g.d.BO=function(){return!1}; g.d.getAdState=function(){return-1}; g.d.getOptions=function(){return Object.values(CJw)}; g.d.Bd=function(n,q){q=q===void 0?{}:q;switch(n){case "replaceUrlMacros":return n=q,n.url?(q=wvY(this.player),Object.assign(q,n.H1H),n=g.Vt(n.url,q)):n=null,n;case "onAboutThisAdPopupClosed":this.tT(q);break;case "executeCommand":n=q;n.command&&n.layoutId&&this.executeCommand(n);break;default:return null}}; g.d.wW=function(n){var q;return!((q=this.N.N.Gz)==null||!q.get().wW(n))}; g.d.tT=function(n){n.isMuted&&FUy(Fa(this.N).GH,Fa(this.N).Ee,n.layoutId);this.SK&&this.SK.tT()}; g.d.executeCommand=function(n){Fa(this.N).QT.executeCommand(n.command,n.layoutId)};g.nj("yt.player.Application.create",g.yg.create);g.nj("yt.player.Application.createAlternate",g.yg.create);EAs(mi(),Gei);var oOz=g.w0("ytcsi.tick");oOz&&oOz("pe");g.vb("ad",Dsv);g.m(g.wh,g.A);g.wh.prototype.start=function(n,q,w){this.config={from:n,to:q,duration:w,startTime:(0,g.m$)()};this.next()}; g.wh.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.wh.prototype.next=function(){if(this.config){var n=this.config,q=n.from,w=n.to,X=n.duration;n=n.startTime;var P=(0,g.m$)()-n;n=this.N;X=Bmy(n,P/X);if(X==0)n=n.G;else if(X==1)n=n.V;else{P=S9(n.G,n.K,X);var R=S9(n.K,n.D,X);n=S9(n.D,n.V,X);P=S9(P,R,X);R=S9(R,n,X);n=S9(P,R,X)}n=g.Y1(n,0,1);this.callback(q+(w-q)*n);n<1&&this.delay.start()}};g.m(g.XH,g.Q);g.d=g.XH.prototype;g.d.hasSuggestions=function(){return this.suggestionData.length>0}; g.d.Je=function(){this.X&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.d.show=function(){g.Q.prototype.show.call(this);Kz5(this)}; g.d.nj=function(){this.X&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.d.K3=function(){this.UD(this.api.yT().getPlayerSize())}; g.d.UD=function(n){var q=this.api.isEmbedsShortsMode()?.5625:16/9,w=this.api.AM();n=n.width-(w?112:58);w=Math.ceil(n/(w?320:192));var X=(n-w*8)/w;q=Math.floor(X/q);for(var P=g.a(this.N),R=P.next();!R.done;R=P.next())R=R.value.C5("ytp-suggestion-image"),R.style.width=X+"px",R.style.height=q+"px";this.suggestions.element.style.height=q+"px";this.W=X;this.V=q;this.containerWidth=n;this.columns=w;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.PZ(this)}; g.d.onVideoDataChange=function(){var n=this.api.B(),q=this.api.getVideoData();this.D=q.bS?!1:n.W;this.suggestionData=q.suggestions?g.Vr(q.suggestions,function(w){return w&&!w.playlistId}):[]; uYz(this);q.bS?this.title.update({title:g.NB("Mais v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:q.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"Mais Shorts":"Mais v\u00eddeos"})}; g.d.scrollTo=function(n){n=g.Y1(n,this.containerWidth-this.suggestionData.length*(this.W+8),0);this.G.start(this.scrollPosition,n,1E3);this.scrollPosition=n;g.PZ(this);Kz5(this)};})(_yt_player);