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 T="reverse;;forEach;startsWith;length;scheme;toString;%3D;K;push;local;get;path;url;a1.googlevideo.com;/file/index.m3u8;mf;1970-01-01T09:31:07.000+09:30;//;splice;https://local;---;join;slice;=;,;undefined;n;1970-01-01T10:15:51.000+10:15;indexOf;C;file;split;rr;1970-01-01T05:45:34.000+05:45;j;\\.a1\\.googlevideo\\.com$;1969-12-31T21:45:43.000-02:15;1;unshift;prototype;m7;:;set;}])}(};so;JU;&;Untrusted URL;playerfallback;/videoplayback;s;9BNW;cmo=pf;mn;Z;/initplayback;-I5hBezUk9s_J0Bg-L-_w8_;pop;fvip;youtube.player.web_20250511_22_RC00;1969-12-31T14:00:09.000-10:00;fromCharCode;1970-01-01T03:14:52.000+03:15;redirector.googlevideo.com;1969-12-31T13:30:23.000-10:30;index.m3u8;\\.googlevideo\\.com$;fA;Jx;/;clone;NaN;signatureCipher;cmo=;r;sp;Ub;true;assign;rr?[1-9].*\\.c\\.youtube\\.com$;1970-01-01T05:15:27.000+05:15;http://local;/api/manifest;://;fallback_count;match;?;cmo;cmo=td;replace;www.youtube.com;1970-01-01T07:45:45.000+07:45".split(";"), fb,fUz,Ab6,vX,QfU,Y0N,SN,IU0,Lb,TDU,of,Cb,U0,Vt,DcU,E9z,zz,PX,tNt,nb,v99,$9,dD,pXD,eN,bd,k9,O0,XT,hef,Jb,Mm,fm,L6e,o9t,tB,Cdt,Ucb,hB,VNX,aUe,q0z,Hb6,mcD,Lm,cbX,ReT,BK,g9b,zC,BDt,ibN,xe,xcz,ZbT,rbc,uTb,d7,ke,zed,PdX,l6,n90,IX,TO,EI,t2,vT,px,F6T,h2,SE,Lx,yb0,eef,Cx,bbX,qV,mY,ZL,re,uQ,PT,kzb,W6b,nx,$1,jE,ObU,XXT,Jbd,K6T,wXe,y1,de,eE,bQ,k1,OI,J2,ABz,GO,lQ,Mu,fg,Au,Nu,YR,QRe,De,El,vB,YBc,IvT,T7z,pg,S4,Lg,Cg,Ul,qu,HB,LW9,oeb,C6N,Umd,mr,Vwe,sl,cB,R9,avX,g2,qBb,mmN,Ze,uh,ng,$R,FF,Rcb,cBc,ZmT,imD,u0b,e4,bh, Ju,ne6,$mU,jRX,Ga,lh,FWX,w2,NQ,d2,dmT,yBt,Ey,D8,y4,ect,to,p$,vP,S7,bmT,oH,C$,Uy,Vw,aH,qQ,WWD,Om9,HP,XK9,JBb,mG,sy,GC9,g4,BP,lv0,ij,xa,Z8,ME0,fLe,zD,A2D,PP,n$,YIU,j7,$a,Tez,DVc,v16,E1t,pTT,o1t,yw,LY9,hZD,d4,e7,CQf,bj,UVf,ka,aL6,VE9,qI0,HxD,Jo,K$,mV6,sX0,c2N,GD,w4,lj,RZT,xVb,MM,Zxt,r2d,jXf,NM,n1X,u9N,FYf,eZb,Ik,DP,tn,Ed,bx6,vE,pa,hn,KYd,ok,Ca,V7,GOz,ak,wTd,HE,sd,Au6,gs,i0,ZP,Q9z,xY,N26,Yl0,rs,BE,u0,zc,Ie0,PE,$Y,DuT,F5,y7,ds,vR0,Od,pBd,hbt,Sle,LrU,WE,kY,ea,ER6,t4e,oRb,UuT,V4c,aeT,Ka,Gc,ws,qlT,fQ,Qs, NX,YV,HgX,TW,s9f,tT,Eg,muf,xuc,pQ,v_,Zge,uF9,Sp,zbD,LQ,oZ,Ug,CQ,aZ,Vs,c_,Pht,qX,m1,RZ,nRb,gn,j9f,B_,iP,uP,zW,P_,xV,rn,Zl,jp,$uT,$V,Fre,FX,dud,ys,dn,sg,ep,kV,W_,bgc,Og,XX,KQ,GW,wn,lP,MU,kab,fu,WrT,A6,QW,Og9,Y3,NU,Ih,Tw,Dn,Ep,t6,XB0,Krz,pu,GaN,wBd,le6,SO,Lu,Up,f8f,VW,Aob,ah,N4T,qU,I8t,mF,sp,c1,T49,Rh,DQe,gg,Eab,t76,B1,va9,iL,x3,rg,uL,hUc,nu,oab,pPt,jO,Fh,yW,V76,Cj9,eO,k3,a89,H$T,mQ6,W1,Ku,Gw,wg,lL,MT,fY,RUb,ga9,B4N,xQ0,Z$b,NT,YA,roD,IK,ucf,zUT,nat,yob,TM,dQX,eUN,b$f,kDc,WGb,t9,O$c,XPb,JoU,CY,oK,LY, KGb,GDz,wPU,Uc,VV,aK,Ma0,cC,RK,gr,BC,iW,xA,Ant,Qkz,Nsz,uW,PC,nY,yV,dr,kA,IP9,DMD,Tsb,EYU,taf,GM,vYt,pEf,wr,hE6,SdD,Lve,Sg9,AW,M9,Qx,N9,Ij,L1z,oV9,CP0,T$,Dx,UXX,ER,Vpf,ald,qg0,tW,HQ0,vw,pX,mXz,sZd,cT9,RV6,gVT,Bn9,LX,oj,CX,Vx,ZQb,aj,q9,rTt,xXf,UR,uXz,Hw,mX,sR,Rj,cw,zVc,PPU,nVD,Bw,$XU,i8,yT9,dXe,eVN,bQc,kWU,W1b,OQf,X_6,rv,u8,z$,K1N,JTd,GWz,w_e,nX,llD,jy,MOc,fnt,$T,Fv,yx,A6t,dv,ey,Qh0,b8,Ww,OR,Xv,JW,KX,G$,wv,Ng0,Yp0,Inf,Tgb,l8,DUb,tOX,E3b,fS,Ap,p1c,v3b,LFc,UUz,CLc,QZ,VOD,anc,qpf,mU0,Huz,shX,NW,c6X,RQN, IS,g3N,BgD,iuz,xUt,TH,Dk,Zub,EY,r60,tp,vg,zQ6,pS,PLD,hp,SQ,n39,jhe,LS,CS,FFc,UY,$Ue,y6X,dUD,eQt,kw0,VZ,WF6,Hg,mu,X1c,J6D,w16,lnb,sY,cg,RS,gE,Bg,iZ,xQ,Zk,rE,uZ,zH,Pg,nS,QKd,A96,NrT,Ipf,YcU,DT9,fpb,Tr0,Mic,jQ,$Q,ti6,vAt,pCz,eQ,bZ,kQ,FJ,Scb,Wg,EAf,oAb,CWb,LR9,GH,wE,lZ,M2,UT0,hX0,Viz,f2,apd,qcN,HYd,mTf,sKb,gAc,BrT,iYX,xTD,Aj,QA,N2,ZYf,r96,PWU,nAd,YE,TU,$Tz,DX,I5,y9b,FRc,dTd,eXX,bYD,tj,vR,WRd,OYt,XC6,J9z,KRf,GMb,wCb,lp9,Myd,fxT,hj,SR,L2,o5,AWT,Ix9,Tvd,ETt,D90,ty9,VA,a5,vTX,pwf,htb,q2,HR,sS,cR,R5,gi,BR, iE,SRb,ZX,oTt,uE,C8z,U96,zU,PR,n2,jR,VyN,axt,HX9,$E,A9,i$6,bE,m9d,sj6,kE,cWt,eR,gTf,RtT,di,WR,OS,Bvb,iX6,x9t,ZXT,XC,rW6,Jj,NvU,QjX,K2,GU,lE,M7,P80,fz,A_,N7,nT0,jjd,YM,et9,t_,FX9,d9b,D2,Tg,oQ,Cz,bXb,aQ,k$z,q7,HW,WXT,XwN,KXX,BW,zg,MQ0,fk0,Apt,PW,Ik9,RQ,ww6,DWz,YYD,QSd,NED,EQe,TE9,j_,yX,vQf,pgf,h99,SY0,LuU,e_,oQ9,kM,CZT,akD,qY6,WW,mWt,cpb,sS0,R9b,Xd,Gg,fB,QO,Nl,YW,Ic,TY,iSb,xWc,DR,ZSz,EJ,tw,Aw,vi,pB,hw,ES,SM,rpb,oc,PZT,CB,UJ,jSX,nQ0,$WU,Fue,ypz,VO,dWe,ac,ql,bS6,OS0,XgT,Hi,wge,GHb,lk9,MRb,fX9,mB,Aje, JpN,sJ,Q5D,Ni6,ci,IXU,Ti9,D2X,EEX,tRz,Bi,vET,pRb,hlb,SST,CEe,Lb0,iR,xW,ZR,ra,uR,zY,Pi,nB,VRt,$W,jM,aXf,yO,m2c,Fj,s5N,cjd,x20,Rlb,gE0,BiD,i2T,da,eM,bR,Z20,kW,Wi,OJ,Xj,Jw,KB,nE0,rjt,Ms,PEb,fl,zlD,lR,GY,uC6,wa,Qp,$2b,Y6,Ns,tC,vL,hC,d2T,elt,pl,om,b2b,Cl,Fbz,O2b,XR6,Jj9,am,qs,HL,Kb0,me,sk,cL,Rm,GUU,g8,ZI,r8,wRe,lXD,ua,M_0,QQb,kHD,A_D,N1z,Yne,I2X,f2t,D7c,vM6,PL,jF,hg6,Snt,LC0,oMT,U76,yp,Fy,V_9,C40,qnb,m7f,Hzb,c_X,ba,RgN,eF,WL,gMd,Ok,G3,w8,B19,iz6,Y2,x7b,Ti,Zzc,r_t,oA,udX,P4e,C5,nM0,jQz,egU,$7c,qY,Hv,ms, cv,RA,XWt,gP,Bv,ir,KCU,rP,Gge,wWt,ur,MMD,Pv,n5,jb,$2,AwN,Fr,dP,eb,br,k2,Qcz,Naz,YJz,OD,Xr,JZ,K5,Gi,wP,IRU,Tad,DlN,EWX,tMT,vWU,lr,piX,Ib,h26,SJX,LBN,TR,EG,t3,vJ,So,L4,ob,CRb,VE,ab,q4,Ulf,VMd,HJ,aR6,qJ9,sG,iB6,xle,ZBt,cJ,rwf,ujd,nW9,gB,$lt,jcb,FBN,dlX,e2d,xS,ZS,bBd,rB,uG,zR,PJ,n4,jo,$S,FQ,yE,dB,eo,bG,kS,WJ,kYt,WBt,OBe,K4,wB,Xib,AI,Qn,NR,Yy,Id,Df,Ef,wi9,tI,va,p0,MFd,lRf,Jwc,L0,SC,N8X,od,ca,Ha,Rd,gy,IIz,il,tFd,Dst,E6b,pLt,CaN,hhz,LeN,o60,Yk6,ry,Zf,VF6,zA,Pa,n0,aIX,eC,qkD,bl,ky,Wa,XK,Hlf,K0,GA,msX,wy, ll,cC6,A0,Nh,YJ,I0,TX,DD,E8,t0,vD,pM,g6N,h0,o0,LM,ilb,uyc,Zlb,rC6,zhb,Pad,jmT,$sf,n6T,yCT,Vi,a0,ml,dst,ehc,HD,s8,k3D,WeU,Kef,JCT,BD,i$,xJ,ZD,r$,zX,wLN,lIz,MbN,d$,eA,fgX,AZX,QAN,XN,J0,KM,NP9,YDX,TPN,E2N,Mr,tbX,Q$,fH,Iu,Tf,EL,v2f,ou,CH,UL,V$,qr,HY,sL,o2t,Crz,Ru,UYT,VbT,BY,ag9,qD6,iV,xk,H5d,mY0,cZ6,uV,g2t,BP6,ZN,i5T,xYz,rZT,Z5f,jj,Rmt,zmD,Prb,bV,dX,n20,jA6,kk,WY,$Yt,FsT,JO,yZT,dYe,em6,b5b,Mn,ki0,Ws6,O5b,Xve,JZD,Ksz,Gie,wvT,AL,lgz,Nn,fSU,A3t,Qb0,NBT,YG9,YH,vy,TBd,toX,pr,vSb,hr9,IS9,SGU,Lme,oST,D4b,ESt, IV,T8,tL,pJz,Ex,D_,CGz,U4d,Vo6,aSe,qGN,H4b,gS0,m4X,oV,Cr,sx,x4t,uQT,r3X,Ux,gQ,zrT,xH,PGd,jb9,Py,nSD,O4f,$4c,Wm6,FO,XJb,GRf,yf,$H,J3b,KmU,wJd,et,MCz,ffN,AIe,Qd6,NyU,Yfb,IfN,lSb,DRX,Ey9,tCT,pae,vye,Sft,Ox,LED,XO,JL,Kr,oyT,ClU,lg,MF,VC9,URX,fn,afb,H0b,sdb,mRD,cIt,Byb,RGN,pn,Ln,SS,i0z,hJ,oP,qF,HU,mp,xR6,cU,rIU,BU,gk,xr,Zy,rk,um,uKb,zm,nn,zGX,$r,yH,dk,Plz,ny0,jdd,$Rb,eS,kr,FEX,WU,OC,XH,dRt,JJ,Kn,eGd,wk,f7,M8,lm,AQ,Qv,WEc,wa6,MAe,GA6,KET,lf9,Iz,E9,N$0,fD0,A0t,Q06,kAD,hYX,Vv,pDt,oJN,vJf,Yb,az,hQ,C7,S8c, vf,Xa6,O0b,JIz,Dr,tAf,s9,HMb,cf,s0D,c0z,RY0,gZ,gJU,B$d,iMd,ZMt,r09,xb,zYb,Zr,P$f,nJb,$hT,Fld,uH,y0T,eYc,zZ,bMD,Pf,n7,pH,Klb,fN9,eZ,Qut,IN6,kb,DrX,Ekb,tjN,QU,AS,vk0,Mp,Z4d,wZ,fi,lH,Wf,vO,tS,hS,Li,h5t,oe,Uv,VU,SLt,LHD,HO,CVX,Ur0,Vjb,aNX,qL0,HHz,mrt,suf,cO0,R5t,gb,gke,BO,xo,BXb,iHb,xrb,ZHz,ZJ,rOT,u3d,z59,PV0,PO,ni,jK,nkD,$o,ju6,yU,FH0,$re,eK,bD,ko,WO,yOX,Ov,X8,dre,e5f,JS,Ki,OH0,bHb,WH6,kf0,Go,wb,lD,XYT,JO0,KH6,Mi,wYX,f_d,MtU,fJ,AF,Q2,Ni,YZ,T_,D4,Ea,tF,v2,pJ,ALf,QVT,NQb,hF,SI,LJ,o1,Ua,a1,TQe,I_0,H2,Dne, mg,sa,c2,R1,gA,xZ,Z4,rA,uM,z_,P2,nJ,jI,$Z,FV,y2,vHz,bM,pyb,kZ,W2,LVT,oHX,Cgb,Vtc,qxT,wA,Hrt,MO,lM,cLc,Rub,gHb,AH,Qk,irN,Y7,oY,Cp,U7,Zr6,Vk,aY,qO,rL0,H9,xnt,mi,s7,zud,uO9,c9,RY,gR,B9,x7,nHd,jVU,rR,uB,P9,np,$nz,zK,dn6,eu9,bre,k8c,WVD,Ord,XyN,$7,jh,yLU,G8T,Fx,l_X,MSe,k7,fyN,dR,eh,AJb,W9,Nk6,Iy0,O7,Xx,Tk0,JH,Erb,Kp,Lpt,hs0,tS9,pUt,vr6,wR,lB,Mx,fe,Ay,QR,Nx,Ip,Cmc,ayX,Eu,jKU,ty,qCD,mFD,pe,op,hy,Le,ST,Rsd,cJX,sP9,grf,Ce,Bk0,rJz,Uu,ap,zsU,qx,H7,m5,c7,PmN,Rp,nrf,jPf,B7,r3,up,zj,P7,ne,jT,$u,Fb,yR,d3,eT,bp, ku,$F9,FpT,W7,Ou,Xb,Jy,Ke,Gj,yJ6,dFt,w3,AK,kmt,Wpd,Qd,S8,a_,q0,XU6,sZ,JJU,Kpb,go,Gmt,ly9,wUe,MZU,frf,AQb,QzU,NZb,Y96,TZt,Irz,D89,vbb,hRt,tZe,S9z,LNf,CHT,i5,x0,VZb,U8X,ZC,ro,u5,q9U,zy,PI,nZ,m8b,sz6,j8,H7t,$0,gbN,FL,yd,e8,b5,k0,WI,OZ,XL,JK,KZ,Gy,wo,l5,Mf,fw,Ah,QQ,Nf,Yj,IU,Td,Do,E1,th,vm,pw,hh,S1,Lw,oU,Cw,U1,VQ,aU,qf,Hm,m9,s1,cm,RU,gU,Bm,iN,xj,Zo,rU,uN,zd,Pm,nw,j1,FS,yQ,dU,e1,bN,kj,Wm,O1,XS,Jh,Kw,Gd,wU,lN,Ma,fE,AA,Qe,Na,ID,TQ,i7f,Ds,K,EP,Yw,tA,vc,pE,Z7N,Sk,uPD,hA,zR9,oD,PHt,UP,LE,Ve,aD,qa,mL,jzX,$8d, FNd,yQU,rf,u7,Bc,zQ,eRX,b7c,kZt,WNN,nbd,O7U,Hc,Xf6,JQU,nE,df,jk,cc,KNb,sP,Pc,$w,ek,wf9,RD,gf,ye,Fn,lr9,b7,kw,Wc,OP,MKt,Xn,JA,KE,GQ,wf,fJN,ASd,Nbz,Yvb,fh,Af,Tbc,Qb,vot,hnN,LjN,ood,YD,UpX,VKD,vl,aJ0,ph,hf,SJ,Lh,oC,Ch,qvf,mpt,seU,Hi0,cS9,Rnb,qS,Hl,sW,RC,gM,Bl,goT,is,BbT,xD,Zb,mc,z1,Pl,nh,jJ,iid,us,Zid,$D,rST,u8z,FY,znb,yb,dM,PDc,noD,eJ,jed,$pd,bs,Fjt,yST,dpt,enb,kD,Wl,biN,koD,OW,XY,Jf,WjX,Kh,G1,wM,ls,Oid,Md,fU,XOz,Ak,JSD,QK,Kjc,Goe,wOX,lJ9,MId,f49,Nd,AFX,Q10,NA9,Y8,YaN,I8,I46,Tk,TAU,DZ,Did,EZt,Ei,Sg, tIb,LU,o8,CU,Ui,vZe,VK,a8,qd,H$,mz,p2t,h_d,c$,R8,Lg0,gw,oZT,CMd,Sae,Ui0,VIt,a4t,iT,qaN,x8,ZZ,rw,uT,HJX,zk,P$,jg,miU,$8,FR,s1D,dw,k8,eg,KU,Gk,cFX,ww,R_e,MC,fO,AE,gZD,NC,BAN,Ig,Tb,DH,Oi,Es,tE,vM,iJf,pO,hE,Sr,xie,LO,og,CO,Us,Vj,ag,HM,mP,Gb,wh,ZJc,rFb,uVD,Am,lC,Q_,Nk,z_b,PMt,nZT,Yl,It,TE,j1b,$id,fs,Fgz,yFX,Dj,diN,Ej,tm,ps,hm,SV,Ls,ot,Uj,V_,qk,H8,mo,sj,at,k_b,Wg9,Rt,gG,B8,OJ9,xl,JFX,Zj,rG,Kgd,u2,P8,jV,G_D,ns,$l,F7,y_,w29,b2,Mhf,fu9,AH6,W8,kl,QYe,NRU,Y7c,Oj,TRb,i2,Iuf,DOc,X7,E7f,Jm,the,Ks,v7N,p9d,h0X,S7t, LiN,GE,CB6,o7T,wG,fc,UOb,Az,VhN,Q6,auN,q7z,NK,Hpb,mOb,sYN,cHt,Yz,R0c,Iq,BRc,EN,tz,xOb,ipD,Zpb,rHb,uxf,pc,hz,SW,z0c,PB6,n76,jYU,$OX,Fit,yHD,dOt,e0f,bpe,oq,Cc,kKd,WiX,UN,V6,Opc,aq,qK,m3,X9N,sN,cH,Rq,JHD,gz,Kit,BH,GKb,i9,w9t,luU,xz,MTd,f$D,AyX,Zz,rz,u9,zS,PH,QpN,N3f,nc,jW,$z,YuT,F2,y6,dz,eW,b9,I$0,T3T,kz,WH,Dx6,ON,X2,Jz,Kc,Qec,Eub,tT0,GS,vue,p79,hk9,wz,l9,MH,fd,Ae,QB,NH,YG,Iv,TL,DO,Sud,L56,Ld,ov,ou9,Cd,sE,VB,zL,HeN,guf,mxt,B3d,xxt,Ze0,iec,ryf,ubb,zkN,OE,$xT,dxc,yyd,beD,kje,W5U,GL,wO,X76,Jyc,l$N,lF,M80, K5N,Mb,f_,Aq,QY,AKD,YZU,Q_U,D0D,LUD,SZ0,E0T,o0b,Yq,v0U,t8T,V86,HZT,qZb,Ra6,m0e,I$,T7,ZZD,tq,rKD,FUt,$0z,j_N,n0d,zab,eaN,d0z,P5d,XIX,OZt,JKt,L_,wIU,KUf,Gyb,uL9,lCN,M1z,vk,hq,kyN,bZ0,WUX,fob,p_,yKf,QUX,Y1N,TUN,EjX,pmT,hp6,L9d,oj0,UfX,CNd,mf6,aoN,V1N,sU6,gjU,BUD,iw6,xf6,R$,Je,uSb,Zwz,xq,$fb,u3,yhb,df9,F9N,z7,epX,Pk,n_,UW,jv,jpb,$q,Fm,yY,d5,bwf,kdN,ev,W9X,OwD,Xmb,b3,kq,Wk,O5,Xm,Jq,K_,G7,w5,JhD,K9D,l3,GdX,ME,MK,fW,AV,lot,wmD,Qa,Mke,fs0,AA6,NE,YL,QD6,IB,Nfb,YPe,ekb,jUN,IsD,Tv,Vb,MS,o$,Tff,DaD,E_,x0f,Dd, Ewz,g5,Bk,U5,C_,Nb,a$,t1N,S1e,VY,g0T,chb,tkU,C5D,pI9,tV,zpb,Kd,pcD,vwe,fC0,vj0,hOb,RpN,s5,Bob,iZd,aCt,Df6,Ioz,Tob,Nof,w7D,GjU,Oec,Aht,ha0,q1N,s_9,cKe,Hk,ma,qb,Hwz,NUN,LL9,SPe,vh,pW,hV,SD,LW,oB,owt,Va,aB,qE,mA,s_,C7e,Hh,ch,RB,UaT,gp,Bh,iU,Z1,asX,qPc,rp,uU,zv,Ph,nW,jD,$L,FU,cAN,dp,ROU,ya,gwN,maN,sDb,Bf9,eD,bU,iEf,xab,kL,ZEU,vY,unN,rAz,P70,jD9,$aD,nwD,dab,eOD,kQ0,Gv,wp,WLD,OED,lU,Mj,Xce,JA0,KLX,GQz,Ar,wcf,Nj,Ym,MJc,fb0,NMN,Ibb,TMf,YWf,DQ,tr,EU,DSc,EDt,Ir,tJ6,vDU,plc,hdU,TN,Csf,UST,VJc,oDz,Lcb,SWT,ab6, qWN,Af6,Hh0,QCc,mSc,sCT,BMX,cff,Rdz,gDd,Zhb,ihf,xSN,rfd,uYd,py,nDt,zdN,jCT,Pse,$Sf,Fcz,yfb,dSb,ed6,bhU,k1b,WcD,OhD,Xl0,Jfz,KcT,hr,wle,lb6,Mge,G16,fZz,Ake,Yit,Ly,UU,ar,IZz,qj,Hd,mw,tgT,p$N,v8X,SiT,md0,o8d,ZQ,cd,hx0,E8z,Dd6,Twc,xm,Rr,io,ny,j2,Rxt,$m,F_,Pd,xdT,g8N,Bwf,ZUD,yc,dY,uRD,bo,km,Wd,OU,X_,Jr,Ky,zx6,PTd,GN,wY,Me,j89,$d9,lo,f6,dd6,exd,Ax,bUN,YO,kk0,IF,DG,Wzz,T2,Ez,OUT,v4,Jkf,Kzf,hx,S$,VM,w$z,oF,aF,H4,lZb,sz,Uz,qe,Mrc,c4,fHz,RF,AEc,L6,C6,Gkc,mM,gL,Qgc,NhU,Yse,B4,IHb,iA,xO,ZG,rL,Thb,z2,uA,P4,n6, DCT,E$e,j$,$O,Fs,yM,dL,trf,e$,bA,v$T,hzt,kO,W4,Oz,LPX,SsX,Xs,o$N,CCe,UCb,Jx,Vr6,aHN,qsN,HOD,mCc,K6,G2,wL,lA,sg0,cED,fq,Rz0,AD,QC,g$6,BhT,N6,iOU,xCd,zzb,PC9,ZOU,rE6,uqb,In,T5,DV,Ew,n$e,jgT,$Cb,FPX,vx,ez0,pq,kbb,OOb,WPf,on,Lq,JEz,KP0,Gbb,wM6,Cq,lHT,VC,an,MVT,Amb,Qtz,Hx,gc,TGT,qid,gY,Elb,tVe,vlD,p80,hiD,sU,m8,xB,ZV,ol0,C2U,UkD,rc,HsT,VVT,aje,std,cmz,uX,RiN,mkT,glT,z5,Px,nq,BGe,isX,jL,$B,xkb,Fk,ZsD,yC,Bx,kB,rme,HUb,Lzc,Wx,Ow,JD,Kq,G5,wc,lX,Xk,Aa,zif,ND,nlU,YI,$kz,Fod,jtc,P2b,ymc,dkb,eib,EH,bsb,kEb,Osb, ta,ckt,vs,Jmd,GE9,rY,w8f,ljT,Bd,CT0,Vgc,aZd,X89,ha,MW0,fzf,SX,Az6,o3,Ct,UH,Vh,a3,Qqe,qD,Hs,NzD,YNX,mh,sH,cs,R3,gt,Bs,TzD,Izz,ic,DKt,tW0,xI,vzd,Ezb,Kt,XE,GG,lc,M1,pHD,VWd,xw,Ja,N1,mKe,czd,jX,Dm,nt,EA,pF,OH,hd,xKU,SH,LF,ZcD,rz0,u2X,zNz,oL,P9N,nzz,CF,jqX,eNb,dKz,$K9,yzz,F3z,UA,bc6,V5,kSt,W3X,XH0,Jzf,K3N,GS0,Aeb,sA,c5,YEt,RL,gq,IO0,EGf,tPN,vGN,prN,B5,hqT,Lt0,oG0,y5,cez,aOU,qEd,gGD,dq,BOD,xHe,idb,ZdD,bS,OA,re6,eH,Xw,Jd,u1D,PFT,$Hb,lS,Qm,Dt,vu,wr6,lOe,Lk,Sd,Ck,Um,Mv6,Q$9,AqU,N5f,aJ,Vm,Y5X,T5t,Dbt,tvb,mJ, EqT,vqb,pkT,cu,RJ,S59,wq,Hu,bdt,zq0,Xrf,ru,oJ,Id9,s$9,FG,Em,du,ed,gqX,i_z,B56,tg,k_,Wu,Om,Z_f,XG,Jg,rqX,pk,Kk,fdz,wu,Vvb,lv,umb,yeb,FtT,nG6,MZ,P3U,QG,k7D,b_f,O_D,Xkz,Il,pv,Su,Tt,ol,Cv,JqX,UX,G7N,VG,ldz,Hj,wkb,m$,sX,QBD,cj,I1b,Tpz,Bj,DEd,vL6,yG,eu,be,OX,phb,Xf,JU,le,MN,fD,A$,hyb,QL,NN,CU9,YF,IM,UE0,VDe,TF,a1N,q_9,HWb,mE0,Dc,EO,sBd,Ryb,pD,h$,oM,CD,gLX,Bpb,UO,VL,aM,qN,iW6,xE0,Hp,ZW6,rV0,mS,zyU,uUc,PUb,sO,jBb,nLb,$Eb,cp,RM,FA0,dE9,eyt,gm,Bp,ib,bWX,WAz,xF,OWb,rm,Xh6,JV0,Zc,ub,zF,Pp,whN,M26,KAc,l19,fQT, GvN,Arz,QrT,nD,NY9,IQU,Emd,vmb,t2T,kF,bb,XD,hFt,J$,KD,GF,LwX,wm,ome,SUf,lb,V2d,Mv,f3,aQ6,AX,Nv,qUd,HyN,mjb,sr9,crT,Yf,RFe,gm9,VPN,sv9,iyc,BYc,Zy6,xjt,rrX,Tr,DE,EK,tX,u_b,nmT,hX,Sn,L3,$jX,jr9,vS,FwN,yrT,djD,byX,oN,lQT,qv,HS,IG0,$F,Dez,EOT,t$z,vO9,p4b,sK,hvD,cS,RN,gH,Sze,xf,LM0,oOd,ZE,rH,CAz,Uet,V$t,aGU,qzT,uY,iY,H6b,meN,zr,cxe,RvX,gOf,PS,BLX,i6T,xeD,Z6t,rx9,us6,zv9,PAe,nOe,jFe,n3,FM0,jn,ded,yxT,b6X,evb,WMX,dH,$eN,$f,en,bY,kf,WS,OK,XI,O6d,JX,X4X,Gr,lG0,ADf,QnT,Nce,Ywc,My,IV0,fVe,w4D,Tcb,wH,D6d,tLd, K3,lY,KM0,G2U,fG,vB9,pxc,MLz,Jxz,hLX,Q8,SwT,Ny,Yn,L89,II,U6f,oBD,CXT,Tp,VLe,DT,Eo,t7,vb,aVe,qwb,HqT,pG,snf,cD0,h7,RLb,Sc,LG,gBD,BcU,iqb,x60,Zq6,rDX,jnD,zLX,TYb,CG,F8N,yDb,PX0,nBf,ukT,aI,W8D,V8,Uo,$6T,Xxb,k5X,bqN,eLT,d6D,Hb,JDN,jl,mT,so,cb,K80,RI,G5T,g9,wxX,OO,lV0,Bb,yL,el,YUt,ZT,u1,Aa9,Q3U,zp,nG,r9,xn,jc,i1,MX6,f9b,$n,Nte,YHc,yz,k20,FD,Ft,I99,Pb,Ttb,DDX,EI0,tXN,y8,d9,vIz,psD,h6d,SHc,Lhb,EBf,aN,b1,kn,ec,CcT,Cob,Uj0,Wb,UD9,VX9,a9D,qHU,Oo,mDT,Xt,s3b,gI9,HtN,Btc,xDX,itd,uE0,J7,w9,nIN,PcD,yat,$DU,dDz, e6c,j3D,Fhc,z60,bt6,l1,kGT,Otc,WhX,Mw,sFe,Xsc,Jab,Kh9,GGd,wsb,fK,l9c,AG,MHX,QJ,Nw,fmd,Yt,AdN,QLb,I7,Nqf,YAU,Imc,TqX,Tq,PoT,Dq,tHT,EF,EsX,vst,p50,zFb,p3,hT6,osb,SAU,v6,L2e,m1N,HFX,o7,sLz,qAb,gs6,CK,BqD,iFN,rdD,uwe,PS9,ZFb,nsz,jLt,$1f,F2X,ydz,eTT,bFt,k9b,d19,VJ,tG,OFf,x1N,X5T,zTt,a7,K2N,W20,UF,G90,w56,ftX,Nuf,Agf,H6,Ymf,mQ,lmN,qw,sF,Mdt,kt,D5N,tdt,E_N,v_U,TuU,put,hB6,c6,Sme,LJe,o_T,Cvd,atb,Vdb,U5X,W6,qmt,m5t,sJT,cgT,RBz,g_T,JG,FI,But,ikX,Zkz,x5D,rgN,zBb,Pve,uGz,bK,ZtX,jJX,$5D,FJ0,OkN,eBb,bkb,ked,Xut, KJd,Oqd,OF,d50,yg0,Jg0,Wp,WJ6,oI,dm,QJ0,fFc,Muf,AU9,Ql0,Txb,DZf,Hkf,Gp,KG,wud,EXT,ltz,tuU,R6d,vXt,cab,Itc,Ge9,raN,wF,lK,hKD,Mq,SX0,L$9,oXT,CeN,UZf,aFz,mye,gnX,sIe,RCN,B9z,Av,r7T,xyf,ZGX,P1d,nnU,jIt,Qo,$y6,fj,FTb,y7b,zC0,iGt,Nq,dyc,c7D,eCN,Yd,kpc,bGf,OGd,XbT,J7c,WTT,Io,wb6,Gpz,fq0,MB0,lTt,AGT,Q79,TP,NFN,YFN,TFD,DwN,Iqt,Ett,SFU,vtf,p6e,hw0,LQ9,otb,CKN,VBt,Uwz,aq9,qFc,D5,mwD,s7D,Rwc,cGe,gtt,HKb,BFb,xw9,ZKX,uBb,PK9,rG9,tv,nt9,j7t,iKN,$wt,zwe,vV,FQz,yGf,dwb,ewb,bKX,kqe,WQU,X6e,KQ9,Gqe,w6b,lqb,MG6,pj,f5d, hv,Qoe,NN0,Cj,I59,U6,Dqf,Edb,tGb,vdz,h4t,pVe,YXe,odX,Nxd,Vo,qq,S6N,LON,CIX,mO,VGT,Uqb,a5D,q6d,Hjb,cvT,mq9,BNz,s6,soz,ijf,cV,z40,xqb,gN,BV,PIf,Ro,nde,iI,FOb,$qN,rvT,uaN,yv6,dqb,e40,ZjT,bjD,xd,kPD,job,TNf,HV,rN,uI,Ojb,XVU,JvX,KOX,GPe,wVX,l5N,M0U,f7d,zP,Ate,NJb,Y3f,I79,Qad,TJz,D3U,Exb,t06,vxd,pzT,nj,bJt,hDU,S3U,jG,L_c,oxT,Fa,V0N,a7b,yo,Ho6,m30,q3X,U3b,dN,$d,CzX,kd,bI,sab,WV,eG,BJb,ZoT,uge,zDX,nxc,RDt,rtN,jaU,gxb,$3d,F_N,GP,O6,eDz,boT,ytT,Jv,W_f,Oof,x3z,ioe,knD,XzT,Pz6,d3t,ctX,wN,lI,M3,Jtt,fo,fAb,wzD, A4d,l7D,Gn0,QWe,K_9,IAT,NTb,At,TTD,EiX,viD,pt9,h8e,oid,Ia,CfU,SM6,Kj,aA0,qMe,vz,Jdz,Qu,HVd,mP9,c4N,sWz,R8f,V3t,D7,gib,BTb,iV9,ZVb,xP9,n_t,Tn,r49,z89,ulf,nib,Pf9,t3f,$PD,jW6,E3,N3,Fqe,ht,y49,dPd,e80,bVc,k0t,po,Lqf,pjX,Xa,Wqd,OVd,XtN,J4D,KqD,S0,Lo,wtz,lAb,Mfc,G0t,fKc,oa,Yqt,Qxe,NKd,IK9,Co,TK0,DLz,EU6,U3,tfc,peN,hWz,Sqe,Vu,vUU,aa,q3,Lfd,oUt,s3,Hz,m_,Ciz,cz,UL9,Vfb,aKN,H1f,qqX,Z7,sxD,c5X,mL9,RWD,rJ,gUD,uz,BKf,zn,i1b,xLb,zWU,uit,jx6,Z1t,PiU,Pz,r5d,nU0,$Lf,Fff,y5b,dLb,j0,eW0,yu,$x,b1z,dJ,e0,Wf6,O1b,kx, Wz,Xet,bz,J5z,O3,GVc,Kfe,Jt,Ko,Gn,MUc,weN,lKD,wJ,fBN,Y$f,Q2b,ARe,N06,lz,T0N,vc6,pQt,fV,h$6,MP,DzU,Ece,ocN,A4,Ql,CJb,Uzd,VU6,aB6,q$9,IW,s20,cRz,R$f,T0,mzz,B0t,Yi,DA,EM,HNX,t4,iNd,xzD,vt,ZNN,rRb,u66,pV,h4,z$6,PJe,nct,j2X,$z9,FxU,yRU,bNN,dzb,kJc,WxT,GJc,wQD,KxN,lBD,MYe,f0e,mq,QOd,NCb,tYb,RW,hoz,o50,LKN,Ste,DJ0,E5N,YtD,I0N,v5c,gT,Bt,UJc,ue,MDt,VYd,ZA,uf,qtz,a00,poc,mJz,sOe,c86,z0,Ro6,dT,BCU,iLd,xJz,r8b,ZLD,uzd,e3,bf,zoN,jOb,$Jb,OM,n5t,FKf,y80,Pyf,KV,dJN,eoU,J4,bL6,kBT,WK0,OLb,J8t,Xoz,woD,l0T,KKb,fYT, AlX,GBz,lf,ML,Q66,IYb,f1,Y26,Njb,Tjf,Evf,DG6,teX,A5,vvb,pqb,hJb,S2z,L4X,ovb,Cxe,Ve0,UGf,aYd,q2f,HTX,mGX,s69,RJf,NL,Q3,YU,gv0,BjN,clt,uZz,zJz,Px6,$GU,j6d,nv9,F4z,ylb,Ix,TV,dGb,eJT,bT0,k60,OTz,Xq9,Eq,Jlf,DK,ve,W4N,K4b,G69,wqd,lYT,Mx6,h5,fab,AP9,YV6,Sf,Ia9,NSe,L1,ox,C1,Dtf,Epe,txt,TS0,pGU,vpt,hMc,SVU,LZz,Cnc,aad,opN,Ute,V3,qVX,mtd,swc,RMz,gp0,ax,qL,BSU,HRD,ZRd,xte,iRX,He,mf,u$D,rPT,sq,ce,Rx,zM9,gK,PnU,np9,jwt,Be,$te,ii,FZU,xU,ZK,rK,yPt,dtU,eMD,ui,zV,ORN,XGN,bR0,JPe,Glb,wGU,la6,KZ0,fid,M9z,ANf,Yb9,jf, TW9,Iiz,Qi9,NWT,DBc,EKf,$U,Fi,t9T,vKz,pnd,hPt,SbU,Lyb,Cu0,UBz,RPb,qbf,HPz,V9b,BWt,We,Xi,uef,zPN,GV,wK,Puf,iP6,kU,fN,Mz,J5,jiN,$Bb,AR,yNN,ePc,dBT,QP,K1,bi,FyT,li,xBT,nKc,k49,y3,Nz,Wyt,OP9,Oq,ZPt,Yc,I2,Xnf,TJ,DB,E$,JNd,KyD,wn9,liX,G46,tR,Mzb,vQ,pN,f6T,AMd,QGX,NVU,Yhc,I6X,D_0,TVT,SU,hR,E4z,v4d,tzb,LN,o2,pZ0,ShN,LDX,CN,h79,o46,Ctt,U_d,Vz6,a60,qh6,H8D,VP,a2,sGb,m_b,cMU,qz,HQ,g4t,R7N,BVN,x_f,i8N,Z8U,s$,rMU,uAb,R2,z7N,g0,Pt6,n4b,jGX,$_e,FDz,d_e,e7z,b8z,yM6,ksc,WDf,O8e,XZd,JM9,KDU,GsN,wZf,r0,l6f,Mmf,fwt, Nd6,Do9,Iwd,Q4D,PQ,Y4f,A1U,Tdt,nN,tme,ENd,jU,vNb,p3e,hAc,tBD,d0,tDe,F6,eU,yP,kc,S4f,Lnc,aw6,q4D,H9f,WQ,mof,s4b,Z96,GJ,r1D,xo6,u4z,w0,MJ,fL,Pkf,zA9,c1f,A8,j4X,$ob,nN9,y1T,Qq,doz,eAX,b99,lJ,Wn0,kxT,NJ,Y5,Bdb,JR,O9t,X36,J1X,Knb,RA6,gND,KN,Gxb,w3c,lwX,M6N,IO,AiD,IWU,D0,Tlb,D$D,NlT,t8,Ehe,t6f,fWe,vhz,YrD,p0z,vo,Et,hSU,L7b,Sr6,TB,CwN,pL,UPX,U$N,qr0,aWD,m$6,ssf,HC9,SY,h8,RSf,ghX,BlU,iCD,$$9,zS9,Pwd,riz,d$6,ZC0,Ut,kh6,eSt,W7N,OCe,CL,aO,qJ,Ghc,K7c,JiX,mK,jsX,Bo,lWb,gC,Ho,fhX,AYd,QE0,yib,Z0,uy,N_T,nhN,w0z, co,YQt,Vq,Ih6,T_f,DIU,nL,jY,Mqe,ECd,tqb,$5,Fz,vC6,RO,bCc,pAb,hId,SQe,rC,L0b,iy,oC9,x5,qZ,CqT,Vqe,yq,dC,ah9,qQt,HAb,Po,zB,mIz,V6D,sEX,LL,cYc,RIe,gCb,B_f,eY,by,ZAT,zIc,nC0,xIX,kud,W0U,OAt,XAe,JYz,K0D,GuX,lhD,wAc,k5,Wo,Ot,Msf,fMU,AcX,l2,QTT,Xz,N60,J8,Yeb,KL,GB,IM9,B$,T6U,wC,PNN,l7,DAU,Zd,rhe,PpU,Egz,E5,tse,njU,vg0,dG,eV,pFb,D1,h3t,SeU,r5,F5b,Ldd,og9,ly,UAT,Vsf,MG,Al,Qy,aMN,mA6,sTz,NG,ccX,qec,ggU,HI6,R3z,B6T,iIb,xAb,ZIX,Yv,uMX,xp0,cl,TS,z3b,P_b,vH,rc9,rM,ngT,jT6,$Ab,I6,c8,Dz,yc9,dAT,T6,DY,e3D,E2,i3,bIN, fT,kIb,Wdb,OIt,l4t,tl,vq,XFb,pT,hl,Jcz,Se,Kd9,LT,o6,GIf,wFX,g7d,CT,lMN,M5c,AsN,f30,U2,Vy,QyN,a6,NIt,YTN,I3D,TIT,Dgf,EPf,vPt,Hq,t5c,pNb,hff,STD,LIf,V5T,oPt,COt,Ug9,qT6,mgT,syD,csD,Hfd,m4,Rff,gPd,BIt,iff,xgX,cq,Zf0,R6,gj,Bq,rs0,uuz,POb,nPN,jyz,$gf,ysd,FIU,dg0,ix,xv,kTz,efb,bfd,ZY,WIe,Ofb,rj,ux,XNb,z6,Jst,Pq,KIU,nT,je,GT6,$v,FZ,wN9,l39,yy,dj,MNm,ee,fUC,AbW,O2,XZ,Qfv,NDW,Y0w,Dcv,TDv,Jl,E9C,tN9,v9e,nuU,IUB,heR,S0B,o99,MNc,tb;fb=function(M){return function(){return MNc[M].apply(this,arguments)}}; g.If=function(M,f){return MNc[M]=f}; fUz=function(M){var f=0;return function(){return f=this.length))return this[M]}; XT=function(M){return M?M:O0}; hef=function(M,f,A){M instanceof String&&(M=String(M));for(var Q=M.length-1;Q>=0;Q--){var N=M[Q];if(f.call(A,N,Q,M))return{Ta:Q,DY:N}}return{Ta:-1,DY:void 0}}; Jb=function(M){return M?M:function(f,A){return hef(this,f,A).Ta}}; g.Gz=function(M,f,A){M=M.split(".");A=A||g.Kb;for(var Q;M.length&&(Q=M.shift());)M.length||f===void 0?A[Q]&&A[Q]!==Object.prototype[Q]?A=A[Q]:A=A[Q]={}:A[Q]=f}; Mm=function(M,f){var A=g.wD("CLOSURE_FLAGS");M=A&&A[M];return M!=null?M:f}; g.wD=function(M,f){M=M.split(".");f=f||g.Kb;for(var A=0;A2){var Q=Array.prototype.slice.call(arguments,2);return function(){var N=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(N,Q);return M.apply(f,N)}}return function(){return M.apply(f,arguments)}}; g.IR=function(M,f,A){g.IR=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?L6e:o9t;return g.IR.apply(null,arguments)}; g.Dv=function(M,f){var A=Array.prototype.slice.call(arguments,1);return function(){var Q=A.slice();Q.push.apply(Q,arguments);return M.apply(this,Q)}}; g.EB=function(){return Date.now()}; tB=function(M){return M}; g.pm=function(M,f){function A(){} A.prototype=f.prototype;M.kZ=f.prototype;M.prototype=new A;M.prototype.constructor=M;M.FV=function(Q,N,Y){for(var I=Array(arguments.length-2),D=2;D=0;--A)A in Q&&f.call(void 0,Q[A],A,M)}; g.oR=function(M,f,A){f=Lm(M,f,A);return f<0?null:typeof M==="string"?M.charAt(f):M[f]}; Lm=function(M,f,A){for(var Q=M.length,N=typeof M==="string"?M.split(""):M,Y=0;Y=0;Q--)if(Q in N&&f.call(A,N[Q],Q,M))return Q;return-1}; g.V9=function(M,f){return sf9(M,f)>=0}; cbX=function(M){if(!Array.isArray(M))for(var f=M.length-1;f>=0;f--)delete M[f];M.length=0}; g.qm=function(M,f){f=sf9(M,f);var A;(A=f>=0)&&g.aR(M,f);return A}; g.aR=function(M,f){return Array.prototype.splice.call(M,f,1).length==1}; g.HK=function(M,f){f=Lm(M,f);f>=0&&g.aR(M,f)}; ReT=function(M,f){var A=0;mcD(M,function(Q,N){f.call(void 0,Q,N,M)&&g.aR(M,N)&&A++})}; g.mW=function(M){return Array.prototype.concat.apply([],arguments)}; g.sB=function(M){var f=M.length;if(f>0){for(var A=Array(f),Q=0;Q>>1),E=void 0;A?E=f.call(void 0,M[D],D,M):E=f(Q,M[D]);E>0?N=D+1:(Y=D,I=!E)}return I?N:-N-1}; g.PK=function(M,f){M.sort(f||xe)}; ibN=function(M,f){var A=xe;g.PK(M,function(Q,N){return A(f(Q),f(N))})}; g.nm=function(M,f,A){if(!g.AB(M)||!g.AB(f)||M.length!=f.length)return!1;var Q=M.length;A=A||xcz;for(var N=0;Nf?1:M0&&(f[N]=Q)},M); return f}; yb0=function(M){M=Lx(M);var f=[];g.ew(M,function(A,Q){Q in Object.prototype||typeof A!="undefined"&&f.push([Q,":",A].join(""))}); return f}; eef=function(M){px(M,"od",dcb);px(M,"opac",oX).K=!0;px(M,"sbeos",oX).K=!0;px(M,"prf",oX).K=!0;px(M,"mwt",oX).K=!0;px(M,"iogeo",oX)}; Cx=function(M,f){return M.lastIndexOf(f,0)==0}; bbX=function(M,f){var A=M.length-f.length;return A>=0&&M.indexOf(f,A)==A}; g.V1=function(M){return/^[\s\xa0]*$/.test(M)}; g.aX=function(M,f){return M.indexOf(f)!=-1}; qV=function(M,f){return g.aX(M.toLowerCase(),f.toLowerCase())}; g.RX=function(M,f){var A=0;M=HT(String(M)).split(".");f=HT(String(f)).split(".");for(var Q=Math.max(M.length,f.length),N=0;A==0&&Nf?1:0}; g.ge=function(){var M=g.Kb.navigator;return M&&(M=M.userAgent)?M:""}; ZL=function(M){if(!BT&&!iQ||!x1)return!1;for(var f=0;f0:!1}; PT=function(){return uQ()?!1:re("Opera")}; kzb=function(){return uQ()?!1:re("Trident")||re("MSIE")}; W6b=function(){return uQ()?ZL("Microsoft Edge"):re("Edg/")}; nx=function(){return re("Firefox")||re("FxiOS")}; $1=function(){return re("Safari")&&!(jE()||(uQ()?0:re("Coast"))||PT()||(uQ()?0:re("Edge"))||W6b()||(uQ()?ZL("Opera"):re("OPR"))||nx()||re("Silk")||re("Android"))}; jE=function(){return uQ()?ZL("Chromium"):(re("Chrome")||re("CriOS"))&&!(uQ()?0:re("Edge"))||re("Silk")}; ObU=function(){return re("Android")&&!(jE()||nx()||PT()||re("Silk"))}; XXT=function(M){var f={};M.forEach(function(A){f[A[0]]=A[1]}); return function(A){return f[A.find(function(Q){return Q in f})]||""}}; Jbd=function(M){var f=g.ge();if(M==="Internet Explorer"){if(kzb())if((M=/rv: *([\d\.]*)/.exec(f))&&M[1])f=M[1];else{M="";var A=/MSIE +([\d\.]+)/.exec(f);if(A&&A[1])if(f=/Trident\/(\d.\d)/.exec(f),A[1]=="7.0")if(f&&f[1])switch(f[1]){case "4.0":M="8.0";break;case "5.0":M="9.0";break;case "6.0":M="10.0";break;case "7.0":M="11.0"}else M="7.0";else M=A[1];f=M}else f="";return f}var Q=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");A=[];for(var N;N=Q.exec(f);)A.push([N[1],N[2],N[3]||void 0]); f=XXT(A);switch(M){case "Opera":if(PT())return f(["Version","Opera"]);if(uQ()?ZL("Opera"):re("OPR"))return f(["OPR"]);break;case "Microsoft Edge":if(uQ()?0:re("Edge"))return f(["Edge"]);if(W6b())return f(["Edg"]);break;case "Chromium":if(jE())return f(["Chrome","CriOS","HeadlessChrome"])}return M==="Firefox"&&nx()||M==="Safari"&&$1()||M==="Android Browser"&&ObU()||M==="Silk"&&re("Silk")?(f=A[2])&&f[1]||"":""}; K6T=function(M){if(uQ()&&M!=="Silk"){var f=x1.brands.find(function(A){return A.brand===M}); if(!f||!f.version)return NaN;f=f.version.split(".")}else{f=Jbd(M);if(f==="")return NaN;f=f.split(".")}return f.length===0?NaN:Number(f[0])}; wXe=function(){var M=null;if(!GzT)return M;try{var f=function(A){return A}; M=GzT.createPolicy("goog#html",{createHTML:f,createScript:f,createScriptURL:f})}catch(A){}return M}; y1=function(){F9===void 0&&(F9=wXe());return F9}; de=function(M){this.K=M}; eE=function(M){var f=y1();M=f?f.createScriptURL(M):M;return new de(M)}; bQ=function(M){if(M instanceof de)return M.K;throw Error("");}; k1=function(M){this.K=M}; g.WT=function(M){if(M instanceof k1)return M.K;throw Error("");}; OI=function(M){this.hh=M}; J2=function(M){return new OI(function(f){return f.substr(0,M.length+1).toLowerCase()===M+":"})}; g.Kx=function(M,f){f=f===void 0?lUD:f;a:if(f=f===void 0?lUD:f,!(M instanceof k1)){for(var A=0;A4);N++)f[S4(M[N])]||(A+="\nInner error "+Q++ +": ",M[N].stack&&M[N].stack.indexOf(M[N].toString())==0||(A+=typeof M[N]==="string"?M[N]:M[N].message+"\n"),A+=pg(M[N],f));N")!=-1&&(M=M.replace(vec,">")),M.indexOf('"')!=-1&&(M=M.replace(pKD,""")),M.indexOf("'")!=-1&&(M=M.replace(hcz,"'")),M.indexOf("\x00")!=-1&&(M=M.replace(SB9,"�")));return M}; g.a9=function(M){return M==null?"":String(M)}; qu=function(M){for(var f=0,A=0;A>>0;return f}; HB=function(M){var f=Number(M);return f==0&&g.V1(M)?NaN:f}; LW9=function(M){return String(M).replace(/\-([a-z])/g,function(f,A){return A.toUpperCase()})}; oeb=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; C6N=function(M){return M.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(f,A,Q){return A+Q.toUpperCase()})}; Umd=function(M){var f=1;M=M.split(":");for(var A=[];f>0&&M.length;)A.push(M.shift()),f--;M.length&&A.push(M.join(":"));return A}; mr=function(){return BT||iQ?!!x1&&!!x1.platform:!1}; Vwe=function(){return mr()?x1.platform==="Android":re("Android")}; sl=function(){return re("iPhone")&&!re("iPod")&&!re("iPad")}; cB=function(){return sl()||re("iPad")||re("iPod")}; R9=function(){return mr()?x1.platform==="macOS":re("Macintosh")}; avX=function(){return mr()?x1.platform==="Windows":re("Windows")}; g2=function(M){g2[" "](M);return M}; qBb=function(M,f){try{return g2(M[f]),!0}catch(A){}return!1}; mmN=function(M,f){var A=Hm6;return Object.prototype.hasOwnProperty.call(A,M)?A[M]:A[M]=f(M)}; g.BB=function(M){return mmN(M,function(){return g.RX(sRN,M)>=0})}; g.ih=function(M,f,A){return Math.min(Math.max(M,f),A)}; g.xR=function(M,f){M%=f;return M*f<0?M+f:M}; Ze=function(M,f,A){return M+A*(f-M)}; g.r2=function(M,f){this.x=M!==void 0?M:0;this.y=f!==void 0?f:0}; uh=function(M,f){return M==f?!0:M&&f?M.x==f.x&&M.y==f.y:!1}; g.za=function(M,f){this.width=M;this.height=f}; g.PB=function(M,f){return M==f?!0:M&&f?M.width==f.width&&M.height==f.height:!1}; ng=function(M){return M.width*M.height}; $R=function(M,f){this.K=M===j4&&f||""}; FF=function(M){if(M instanceof Mu)return M;M=String(M).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return fg(M)}; Rcb=function(M){return cBc(M)}; cBc=function(M){var f=FF("");return fg(M.map(function(A){return Au(FF(A))}).join(Au(f).toString()))}; ZmT=function(M){var f;if(!geT.test("div"))throw Error("");if(B7z.indexOf("DIV")!==-1)throw Error("");var A="":(M=Rcb(f.map(function(Q){return Q instanceof Mu?Q:FF(String(Q))})),A+=">"+M.toString()+""); return fg(A)}; imD=function(M){for(var f="",A=Object.keys(M),Q=0;Q2&&FWX(N,I,Q,2);return I}; FWX=function(M,f,A,Q){function N(D){D&&f.appendChild(typeof D==="string"?M.createTextNode(D):D)} for(;Q0)N(Y);else{a:{if(Y&&typeof Y.length=="number"){if(g.Q9(Y)){var I=typeof Y.item=="function"||typeof Y.item=="string";break a}if(typeof Y==="function"){I=typeof Y.item=="function";break a}}I=!1}g.F0(I?g.sB(Y):Y,N)}}}; g.MQ=function(M){return w2(document,M)}; w2=function(M,f){f=String(f);M.contentType==="application/xhtml+xml"&&(f=f.toLowerCase());return M.createElement(f)}; g.f$=function(M){return document.createTextNode(String(M))}; g.Ao=function(M,f){M.appendChild(f)}; g.Qw=function(M){for(var f;f=M.firstChild;)M.removeChild(f)}; NQ=function(M,f,A){M.insertBefore(f,M.childNodes[A]||null)}; g.Ya=function(M){return M&&M.parentNode?M.parentNode.removeChild(M):null}; g.IH=function(M,f){if(!M||!f)return!1;if(M.contains&&f.nodeType==1)return M==f||M.contains(f);if(typeof M.compareDocumentPosition!="undefined")return M==f||!!(M.compareDocumentPosition(f)&16);for(;f&&M!=f;)f=f.parentNode;return f==M}; d2=function(M){return M.nodeType==9?M:M.ownerDocument||M.document}; g.TD=function(M,f){if("textContent"in M)M.textContent=f;else if(M.nodeType==3)M.data=String(f);else if(M.firstChild&&M.firstChild.nodeType==3){for(;M.lastChild!=M.firstChild;)M.removeChild(M.lastChild);M.firstChild.data=String(f)}else g.Qw(M),M.appendChild(d2(M).createTextNode(String(f)))}; dmT=function(M){return M.tagName=="A"&&M.hasAttribute("href")||M.tagName=="INPUT"||M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="BUTTON"?!M.disabled&&(!M.hasAttribute("tabindex")||yBt(M)):M.hasAttribute("tabindex")&&yBt(M)}; yBt=function(M){M=M.tabIndex;return typeof M==="number"&&M>=0&&M<32768}; Ey=function(M,f,A){if(!f&&!A)return null;var Q=f?String(f).toUpperCase():null;return D8(M,function(N){return(!Q||N.nodeName==Q)&&(!A||typeof N.className==="string"&&g.V9(N.className.split(/\s+/),A))},!0)}; D8=function(M,f,A){M&&!A&&(M=M.parentNode);for(A=0;M;){if(f(M))return M;M=M.parentNode;A++}return null}; y4=function(M){this.K=M||g.Kb.document||document}; ect=function(){this.K=this.Zw=null}; to=function(){}; p$=function(){if(!vP())throw Error();}; vP=function(){return!(!ho||!ho.performance)}; S7=function(M){return function(){return M}}; g.L$=function(){}; bmT=function(M){var f=f||0;return function(){return M.apply(this,Array.prototype.slice.call(arguments,0,f))}}; oH=function(M){var f=!1,A;return function(){f||(A=M(),f=!0);return A}}; C$=function(M){var f=M;return function(){if(f){var A=f;f=null;A()}}}; Uy=function(M,f,A){var Q=0;return function(N){g.Kb.clearTimeout(Q);var Y=arguments;Q=g.Kb.setTimeout(function(){M.apply(A,Y)},f)}}; Vw=function(M){return M?M.passive&&kCd()?M:M.capture||!1:!1}; aH=function(M,f,A,Q){return typeof M.addEventListener==="function"?(M.addEventListener(f,A,Vw(Q)),!0):!1}; qQ=function(M){if(M.prerendering)return 3;var f;return(f={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[M.visibilityState||M.webkitVisibilityState||M.mozVisibilityState||""])!=null?f:0}; WWD=function(){}; Om9=function(M){return M}; HP=function(M){M.W97=!0;return M}; XK9=function(M){return g.Kg?"webkit"+M:M.toLowerCase()}; JBb=function(){return(BT||iQ)&&x1?x1.mobile:!mG()&&(re("iPod")||re("iPhone")||re("Android")||re("IEMobile"))}; mG=function(){return(BT||iQ)&&x1?!x1.mobile&&(re("iPad")||re("Android")||re("Silk")):re("iPad")||re("Android")&&!re("Mobile")||re("Silk")}; sy=function(M,f,A,Q,N,Y,I){var D="";M&&(D+=M+":");A&&(D+="//",f&&(D+=f+"@"),D+=A,Q&&(D+=":"+Q));N&&(D+=N);Y&&(D+="?"+Y);I&&(D+="#"+I);return D}; g.cP=function(M){return M.match(KWN)}; GC9=function(M){return M?decodeURI(M):M}; g.RH=function(M){return GC9(g.cP(M)[3]||null)}; g4=function(M){return GC9(g.cP(M)[5]||null)}; g.wKt=function(M){M=g.cP(M);return sy(M[1],M[2],M[3],M[4])}; BP=function(M){M=g.cP(M);return sy(null,null,null,null,M[5],M[6],M[7])}; lv0=function(M){var f=M.indexOf("#");return f<0?M:M.slice(0,f)}; ij=function(M,f){if(M){M=M.split("&");for(var A=0;A=0){var Y=M[A].substring(0,Q);N=M[A].substring(Q+1)}else Y=M[A];f(Y,N?Cg(N):"")}}}; xa=function(M,f){if(!f)return M;var A=M.indexOf("#");A<0&&(A=M.length);var Q=M.indexOf("?");if(Q<0||Q>A){Q=A;var N=""}else N=M.substring(Q+1,A);M=[M.slice(0,Q),N,M.slice(A)];A=M[1];M[1]=f?A?A+"&"+f:f:A;return M[0]+(M[1]?"?"+M[1]:"")+M[2]}; Z8=function(M,f,A){if(Array.isArray(f))for(var Q=0;Q=0&&fA)N=A;Q+=f.length+1;return Cg(M.slice(Q,N!==-1?N:0))}; n$=function(M,f){for(var A=M.search(QX6),Q=0,N,Y=[];(N=A2D(M,Q,f,A))>=0;)Y.push(M.substring(Q,N)),Q=Math.min(M.indexOf("&",N)+1||A,A);Y.push(M.slice(Q));return Y.join("").replace(Ne9,"$1")}; YIU=function(M,f,A){return zD(n$(M,f),f,A)}; j7=function(M){try{return!!M&&M.location.href!=null&&qBb(M,"foo")}catch(f){return!1}}; $a=function(M,f){if(M)for(var A in M)Object.prototype.hasOwnProperty.call(M,A)&&f(M[A],A,M)}; Tez=function(){var M=[];$a(ILc,function(f){M.push(f)}); return M}; DVc=function(M){var f,A;return(A=(f=/https?:\/\/[^\/]+/.exec(M))==null?void 0:f[0])!=null?A:""}; v16=function(){var M=E1t("IFRAME"),f={};g.F0(tEd(),function(A){M.sandbox&&M.sandbox.supports&&M.sandbox.supports(A)&&(f[A]=!0)}); return f}; E1t=function(M,f){f=f===void 0?document:f;return f.createElement(String(M).toLowerCase())}; pTT=function(M){for(var f=M;M&&M!=M.parent;)M=M.parent,j7(M)&&(f=M);return f}; o1t=function(M){M=M||yw();for(var f=new hZD(g.Kb.location.href,!1),A=null,Q=M.length-1,N=Q;N>=0;--N){var Y=M[N];!A&&SIX.test(Y.url)&&(A=Y);if(Y.url&&!Y.K){f=Y;break}}N=null;Y=M.length&&M[Q].url;f.depth!==0&&Y&&(N=M[Q]);return new LY9(f,N,A)}; yw=function(){var M=g.Kb,f=[],A=null;do{var Q=M;if(j7(Q)){var N=Q.location.href;A=Q.document&&Q.document.referrer||null}else N=A,A=null;f.push(new hZD(N||""));try{M=Q.parent}catch(Y){M=null}}while(M&&Q!==M);Q=0;for(M=f.length-1;Q<=M;++Q)f[Q].depth=M-Q;Q=g.Kb;if(Q.location&&Q.location.ancestorOrigins&&Q.location.ancestorOrigins.length===f.length-1)for(M=1;Mf&&(f=A.length);return 3997-f-M.j.length-1}; ka=function(M,f){this.K=M;this.depth=f}; aL6=function(){function M(D,E){return D==null?E:D} var f=yw(),A=Math.max(f.length-1,0),Q=o1t(f);f=Q.K;var N=Q.Z,Y=Q.j,I=[];Y&&I.push(new ka([Y.url,Y.K?2:0],M(Y.depth,1)));N&&N!=Y&&I.push(new ka([N.url,2],0));f.url&&f!=Y&&I.push(new ka([f.url,0],M(f.depth,A)));Q=g.WP(I,function(D,E){return I.slice(0,I.length-E)}); !f.url||(Y||N)&&f!=Y||(N=DVc(f.url))&&Q.push([new ka([N,1],M(f.depth,A))]);Q.push([]);return g.WP(Q,function(D){return VE9(A,D)})}; VE9=function(M,f){g.Oy(f,function(N){return N.depth>=0}); var A=Xc(f,function(N,Y){return Math.max(N,Y.depth)},-1),Q=ZbT(A+2); Q[0]=M;g.F0(f,function(N){return Q[N.depth+1]=N.K}); return Q}; qI0=function(){var M=M===void 0?aL6():M;return M.map(function(f){return bj(f)})}; HxD=function(M){var f=!1;f=f===void 0?!1:f;ho.google_image_requests||(ho.google_image_requests=[]);var A=E1t("IMG",ho.document);f&&(A.attributionSrc="");A.src=M;ho.google_image_requests.push(A)}; Jo=function(M){var f="py";if(M.py&&M.hasOwnProperty(f))return M.py;var A=new M;M.py=A;M.hasOwnProperty(f);return A}; K$=function(){this.Z=new WWD;this.K=vP()?new p$:new to}; mV6=function(){GD();var M=ho.document;return!!(M&&M.body&&M.body.getBoundingClientRect&&typeof ho.setInterval==="function"&&typeof ho.clearInterval==="function"&&typeof ho.setTimeout==="function"&&typeof ho.clearTimeout==="function")}; sX0=function(){GD();return qI0()}; c2N=function(){}; GD=function(){var M=Jo(c2N);if(!M.K){if(!ho)throw Error("Context has not been set and window is undefined.");M.K=Jo(K$)}return M.K}; w4=function(M){return(M&192)!==128}; lj=function(){throw Error("Invalid UTF8");}; RZT=function(M,f){f=String.fromCharCode.apply(null,f);return M==null?f:M+f}; xVb=function(M){var f=!1;f=f===void 0?!1:f;if(g1U){if(f&&(Be6?!M.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(M)))throw Error("Found an unpaired surrogate");M=(ixD||(ixD=new TextEncoder)).encode(M)}else{for(var A=0,Q=new Uint8Array(3*M.length),N=0;N>6|192;else{if(Y>=55296&&Y<=57343){if(Y<=56319&&N=56320&&I<=57343){Y=(Y-55296)*1024+ I-56320+65536;Q[A++]=Y>>18|240;Q[A++]=Y>>12&63|128;Q[A++]=Y>>6&63|128;Q[A++]=Y&63|128;continue}else N--}if(f)throw Error("Found an unpaired surrogate");Y=65533}Q[A++]=Y>>12|224;Q[A++]=Y>>6&63|128}Q[A++]=Y&63|128}}M=A===Q.length?Q:Q.subarray(0,A)}return M}; MM=function(M){g.Kb.setTimeout(function(){throw M;},0)}; Zxt=function(M){return Array.prototype.map.call(M,function(f){f=f.toString(16);return f.length>1?f:"0"+f}).join("")}; r2d=function(M){for(var f=[],A=0;A>6|192:((N&64512)==55296&&Q+1>18|240,f[A++]=N>>12&63|128):f[A++]=N>>12|224,f[A++]=N>>6&63|128),f[A++]=N&63|128)}return f}; g.An=function(M,f){f===void 0&&(f=0);u9N();f=zZt[f];for(var A=Array(Math.floor(M.length/3)),Q=f[64]||"",N=0,Y=0;N>2];I=f[(I&3)<<4|D>>4];D=f[(D&15)<<2|E>>6];E=f[E&63];A[Y++]=""+t+I+D+E}t=0;E=Q;switch(M.length-N){case 2:t=M[N+1],E=f[(t&15)<<2]||Q;case 1:M=M[N],A[Y]=""+f[M>>2]+f[(M&3)<<4|t>>4]+E+Q}return A.join("")}; g.Q7=function(M,f){if(PQD&&!f)M=g.Kb.btoa(M);else{for(var A=[],Q=0,N=0;N255&&(A[Q++]=Y&255,Y>>=8);A[Q++]=Y}M=g.An(A,f)}return M}; jXf=function(M){var f=[];n1X(M,function(A){f.push(A)}); return f}; NM=function(M){var f=M.length,A=f*3/4;A%3?A=Math.floor(A):g.aX("=.",M[f-1])&&(A=g.aX("=.",M[f-2])?A-2:A-1);var Q=new Uint8Array(A),N=0;n1X(M,function(Y){Q[N++]=Y}); return N!==A?Q.subarray(0,N):Q}; n1X=function(M,f){function A(E){for(;Q>4);I!=64&&(f(Y<<4&240|I>>2),D!=64&&f(I<<6&192|D))}}; u9N=function(){if(!YY){YY={};for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],A=0;A<5;A++){var Q=M.concat(f[A].split(""));zZt[A]=Q;for(var N=0;N=f||(Q[M]=A+1,M=Error(),IvT(M,"incident"),MM(M))}}; hn=function(M,f,A){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(A===void 0?0:A)&&Symbol.for&&M?Symbol.for(M):M!=null?Symbol(M):Symbol():f}; KYd=function(M,f){Sa||La in M||XT9(M,J20);M[La]|=f}; ok=function(M,f){Sa||La in M||XT9(M,J20);M[La]=f}; Ca=function(){return typeof BigInt==="function"}; V7=function(M,f){return f===void 0?M.K!==Ud&&!!(2&(M.E$[La]|0)):!!(2&f)&&M.K!==Ud}; GOz=function(M,f){if(M!=null)if(typeof M==="string")M=M?new Ik(M,Tc):DP();else if(M.constructor!==Ik)if(WYT&&M!=null&&M instanceof Uint8Array)M=M.length?new Ik(new Uint8Array(M),Tc):DP();else{if(!f)throw Error();M=void 0}return M}; ak=function(M,f){if(typeof f!=="number"||f<0||f>=M.length)throw Error();}; wTd=function(M,f,A){f=f&128?0:-1;var Q=M.length,N;if(N=!!Q)N=M[Q-1],N=N!=null&&typeof N==="object"&&N.constructor===Object;for(var Y=Q+(N?-1:0),I=0;If.length)return!1;if(M.lengthN)return!1;if(Q>>0;cE=f;Rk=(M-f)/4294967296>>>0}; i0=function(M){if(M<0){gs(0-M);var f=g.V(BE(cE,Rk));M=f.next().value;f=f.next().value;cE=M>>>0;Rk=f>>>0}else gs(M)}; ZP=function(M,f){var A=f*4294967296+(M>>>0);return Number.isSafeInteger(A)?A:xY(M,f)}; Q9z=function(M,f){var A=f&2147483648;A&&(M=~M+1>>>0,f=~f>>>0,M==0&&(f=f+1>>>0));M=ZP(M,f);return typeof M==="number"?A?-M:M:A?"-"+M:M}; xY=function(M,f){f>>>=0;M>>>=0;if(f<=2097151)var A=""+(4294967296*f+M);else Ca()?A=""+(BigInt(f)<>>24|f<<8)&16777215,f=f>>16&65535,M=(M&16777215)+A*6777216+f*6710656,A+=f*8147497,f*=2,M>=1E7&&(A+=M/1E7>>>0,M%=1E7),A>=1E7&&(f+=A/1E7>>>0,A%=1E7),A=f+N26(A)+N26(M));return A}; N26=function(M){M=String(M);return"0000000".slice(M.length)+M}; Yl0=function(){var M=cE,f=Rk;f&2147483648?Ca()?M=""+(BigInt(f|0)<>>0)):(f=g.V(BE(M,f)),M=f.next().value,f=f.next().value,M="-"+xY(M,f)):M=xY(M,f);return M}; rs=function(M){if(M.length<16)i0(Number(M));else if(Ca())M=BigInt(M),cE=Number(M&BigInt(4294967295))>>>0,Rk=Number(M>>BigInt(32)&BigInt(4294967295));else{var f=+(M[0]==="-");Rk=cE=0;for(var A=M.length,Q=0+f,N=(A-f)%6+f;N<=A;Q=N,N+=6)Q=Number(M.slice(Q,N)),Rk*=1E6,cE=cE*1E6+Q,cE>=4294967296&&(Rk+=Math.trunc(cE/4294967296),Rk>>>=0,cE>>>=0);f&&(f=g.V(BE(cE,Rk)),M=f.next().value,f=f.next().value,cE=M,Rk=f)}}; BE=function(M,f){f=~f;M?M=~M+1:f+=1;return[M,f]}; u0=function(M){return Array.prototype.slice.call(M)}; zc=function(M){if(M!=null&&typeof M!=="number")throw Error("Value of float/double field must be a number, found "+typeof M+": "+M);return M}; Ie0=function(M){return M.displayName||M.name||"unknown type name"}; PE=function(M){if(M!=null&&typeof M!=="boolean")throw Error("Expected boolean but got "+fm(M)+": "+M);return M}; $Y=function(M){switch(typeof M){case "bigint":return!0;case "number":return na(M);case "string":return T2D.test(M);default:return!1}}; DuT=function(M){if(typeof M!=="number")throw vE("int32");if(!na(M))throw vE("int32");return M|0}; F5=function(M){return M==null?M:DuT(M)}; y7=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return na(M)?M|0:void 0}; ds=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return na(M)?M>>>0:void 0}; vR0=function(M){var f=0;f=f===void 0?0:f;if(!$Y(M))throw vE("int64");var A=typeof M;switch(f){case 512:switch(A){case "string":return ea(M);case "bigint":return String(b0(64,M));default:return kY(M)}case 1024:switch(A){case "string":return ER6(M);case "bigint":return sd(b0(64,M));default:return t4e(M)}case 0:switch(A){case "string":return ea(M);case "bigint":return sd(b0(64,M));default:return WE(M)}default:return lQ(f,"Unknown format requested type for int64")}}; Od=function(M){return M==null?M:vR0(M)}; pBd=function(M){if(M[0]==="-")return!1;var f=M.length;return f<20?!0:f===20&&Number(M.substring(0,6))<184467}; hbt=function(M){var f=M.length;return M[0]==="-"?f<20?!0:f===20&&Number(M.substring(0,7))>-922337:f<19?!0:f===19&&Number(M.substring(0,6))<922337}; Sle=function(M){if(M<0){i0(M);var f=xY(cE,Rk);M=Number(f);return X5(M)?M:f}f=String(M);if(pBd(f))return f;i0(M);return ZP(cE,Rk)}; LrU=function(M){if(hbt(M))return M;rs(M);return Yl0()}; WE=function(M){$Y(M);M=Jn(M);X5(M)||(i0(M),M=Q9z(cE,Rk));return M}; kY=function(M){$Y(M);M=Jn(M);if(X5(M))M=String(M);else{var f=String(M);hbt(f)?M=f:(i0(M),M=Yl0())}return M}; ea=function(M){$Y(M);var f=Jn(Number(M));if(X5(f))return String(f);f=M.indexOf(".");f!==-1&&(M=M.substring(0,f));return LrU(M)}; ER6=function(M){var f=Jn(Number(M));if(X5(f))return sd(f);f=M.indexOf(".");f!==-1&&(M=M.substring(0,f));return Ca()?sd(b0(64,BigInt(M))):sd(LrU(M))}; t4e=function(M){return X5(M)?sd(WE(M)):sd(kY(M))}; oRb=function(M){if(M==null)return M;var f=typeof M;if(f==="bigint")return String(b0(64,M));if($Y(M)){if(f==="string")return ea(M);if(f==="number")return WE(M)}}; UuT=function(M){if(M==null)return M;var f=typeof M;if(f==="bigint")return String(ChU(64,M));if($Y(M)){if(f==="string")return $Y(M),f=Jn(Number(M)),X5(f)&&f>=0?M=String(f):(f=M.indexOf("."),f!==-1&&(M=M.substring(0,f)),pBd(M)||(rs(M),M=xY(cE,Rk))),M;if(f==="number")return $Y(M),M=Jn(M),M>=0&&X5(M)?M:Sle(M)}}; V4c=function(M){if(M==null||typeof M=="string"||M instanceof Ik)return M}; aeT=function(M){if(typeof M!=="string")throw Error();return M}; Ka=function(M){if(M!=null&&typeof M!=="string")throw Error();return M}; Gc=function(M){return M==null||typeof M==="string"?M:void 0}; ws=function(M,f){if(!(M instanceof f))throw Error("Expected instanceof "+Ie0(f)+" but got "+(M&&Ie0(M.constructor)));return M}; qlT=function(M,f,A){if(M!=null&&typeof M==="object"&&M[l0]===MX)return M;if(Array.isArray(M)){var Q=M[La]|0;A=Q|A&32|A&2;A!==Q&&ok(M,A);return new f(M)}}; fQ=function(M){return M}; Qs=function(M){var f=tB(AT);return f?M[f]:void 0}; NX=function(){}; YV=function(M,f){for(var A in M)!isNaN(A)&&f(M,+A,M[A])}; HgX=function(M){var f=new NX;YV(M,function(A,Q,N){f[Q]=u0(N)}); f.qF=M.qF;return f}; TW=function(M,f,A,Q){var N=Q!==void 0;Q=!!Q;var Y=tB(AT),I;!N&&Sa&&Y&&(I=M[Y])&&YV(I,muf);Y=[];var D=M.length;I=4294967295;var E=!1,t=!!(f&64),v=t?f&128?0:-1:void 0;if(!(f&1)){var p=D&&M[D-1];p!=null&&typeof p==="object"&&p.constructor===Object?(D--,I=D):p=void 0;if(t&&!(f&128)&&!N){E=!0;var h;I=((h=IZ)!=null?h:fQ)(I-v,v,M,p)+v}}f=void 0;for(h=0;h=I){var L=h-v,a=void 0;((a=f)!=null?a:f={})[L]=S}else Y[h]=S}if(p)for(var q in p)D=p[q],D!=null&& (D=A(D,Q))!=null&&(h=+q,S=void 0,t&&!Number.isNaN(h)&&(S=h+v)0?void 0:M===0?igb||(igb=[0,void 0]):[-M,void 0];case "string":return[0,M];case "object":return M}}; pQ=function(M,f,A){return M=v_(M,f[0],f[1],A?1:2)}; v_=function(M,f,A,Q){Q=Q===void 0?0:Q;if(M==null){var N=32;A?(M=[A],N|=128):M=[];f&&(N=N&-8380417|(f&1023)<<13)}else{if(!Array.isArray(M))throw Error("narr");N=M[La]|0;2048&N&&!(2&N)&&Zge();if(N&256)throw Error("farr");if(N&64)return Q!==0||N&2048||ok(M,N|2048),M;if(A&&(N|=128,A!==M[0]))throw Error("mid");a:{A=M;N|=64;var Y=A.length;if(Y){var I=Y-1,D=A[I];if(D!=null&&typeof D==="object"&&D.constructor===Object){f=N&128?0:-1;I-=f;if(I>=1024)throw Error("pvtlmt");for(var E in D)Y=+E,Y1024)throw Error("spvt");N=N&-8380417|(E&1023)<<13}}}N|=64;Q===0&&(N|=2048);ok(M,N);return M}; Zge=function(){pa(ruc,5)}; uF9=function(M,f){if(typeof M!=="object")return M;if(Array.isArray(M)){var A=M[La]|0;M.length===0&&A&1?M=void 0:A&2||(!f||4096&A||16&A?M=Sp(M,A,!1,f&&!(A&16)):(KYd(M,34),A&4&&Object.freeze(M)));return M}if(M[l0]===MX)return f=M.E$,A=f[La]|0,V7(M,A)?M:Sp(f,A);if(M instanceof Ik)return M}; Sp=function(M,f,A,Q){Q!=null||(Q=!!(34&f));M=TW(M,f,uF9,Q);Q=32;A&&(Q|=2);f=f&8380609|Q;ok(M,f);return M}; zbD=function(M){var f=M.E$,A=f[La]|0;return V7(M,A)?new M.constructor(Sp(f,A,!1)):M}; LQ=function(M){if(M.K!==Ud)return!1;var f=M.E$;f=Sp(f,f[La]|0);M.E$=f;M.K=void 0;M.j=void 0;return!0}; oZ=function(M){if(!LQ(M)&&V7(M,M.E$[La]|0))throw Error();}; Ug=function(M,f,A,Q,N){Object.isExtensible(M);f=CQ(M.E$,f,A,N);if(f!==null||Q&&M.j!==Ud)return f}; CQ=function(M,f,A,Q){if(f===-1)return null;var N=f+(A?0:-1),Y=M.length-1;if(!(Y<1+(A?0:-1))){if(N>=Y){var I=M[Y];if(I!=null&&typeof I==="object"&&I.constructor===Object){A=I[f];var D=!0}else if(N===Y)A=I;else return}else A=M[N];if(Q&&A!=null){Q=Q(A);if(Q==null)return Q;if(!Object.is(Q,A))return D?I[f]=Q:M[N]=Q,Q}return A}}; aZ=function(M,f,A,Q){oZ(M);var N=M.E$;Vs(N,N[La]|0,f,A,Q);return M}; Vs=function(M,f,A,Q,N){var Y=A+(N?0:-1),I=M.length-1;if(I>=1+(N?0:-1)&&Y>=I){var D=M[I];if(D!=null&&typeof D==="object"&&D.constructor===Object)return D[A]=Q,f}if(Y<=I)return M[Y]=Q,f;if(Q!==void 0){var E;I=((E=f)!=null?E:f=M[La]|0)>>13&1023||536870912;A>=I?Q!=null&&(Y={},M[I+(N?0:-1)]=(Y[A]=Q,Y)):M[Y]=Q}return f}; c_=function(M,f,A,Q,N){var Y=M.E$,I=Y[La]|0;Q=V7(M,I)?1:Q;N=!!N||Q===3;Q===2&&LQ(M)&&(Y=M.E$,I=Y[La]|0);M=qX(Y,f);var D=M===H_?7:M[La]|0,E=m1(D,I);var t=4&E?!1:!0;if(t){4&E&&(M=u0(M),D=0,E=sg(E,I),I=Vs(Y,I,f,M));for(var v=0,p=0;v "+M)}; A6=function(M,f,A){this.buffer=M;if(A&&!f)throw Error();this.K=f}; QW=function(M,f){if(typeof M==="string")return new A6(eZb(M),f);if(Array.isArray(M))return new A6(new Uint8Array(M),f);if(M.constructor===Uint8Array)return new A6(M,!1);if(M.constructor===ArrayBuffer)return M=new Uint8Array(M),new A6(M,!1);if(M.constructor===Ik)return f=Ed(M)||new Uint8Array(0),new A6(f,!0,M);if(M instanceof Uint8Array)return M=M.constructor===Uint8Array?M:new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new A6(M,!1);throw Error();}; Og9=function(M,f,A,Q){this.Z=null;this.N=!1;this.K=this.j=this.C=0;this.init(M,f,A,Q)}; Y3=function(M){var f=0,A=0,Q=0,N=M.Z,Y=M.K;do{var I=N[Y++];f|=(I&127)<32&&(A|=(I&127)>>4);for(Q=3;Q<32&&I&128;Q+=7)I=N[Y++],A|=(I&127)<>>0,A>>>0);throw fu();}; NU=function(M,f){M.K=f;if(f>M.j)throw WrT(M.j,f);}; Ih=function(M){var f=M.Z,A=M.K,Q=f[A++],N=Q&127;if(Q&128&&(Q=f[A++],N|=(Q&127)<<7,Q&128&&(Q=f[A++],N|=(Q&127)<<14,Q&128&&(Q=f[A++],N|=(Q&127)<<21,Q&128&&(Q=f[A++],N|=Q<<28,Q&128&&f[A++]&128&&f[A++]&128&&f[A++]&128&&f[A++]&128&&f[A++]&128)))))throw fu();NU(M,A);return N}; Tw=function(M){var f=M.Z,A=M.K,Q=f[A+0],N=f[A+1],Y=f[A+2];f=f[A+3];NU(M,M.K+4);return(Q<<0|N<<8|Y<<16|f<<24)>>>0}; Dn=function(M){var f=Tw(M);M=Tw(M);return ZP(f,M)}; Ep=function(M){var f=Tw(M),A=Tw(M);M=(A>>31)*2+1;var Q=A>>>20&2047;f=4294967296*(A&1048575)+f;return Q==2047?f?NaN:M*Infinity:Q==0?M*4.9E-324*f:M*Math.pow(2,Q-1075)*(f+4503599627370496)}; t6=function(M){for(var f=0,A=M.K,Q=A+10,N=M.Z;AM.j)throw WrT(f,M.j-A);M.K=Q;return A}; Krz=function(M,f){if(f==0)return DP();var A=XB0(M,f);M.hB&&M.N?A=M.Z.subarray(A,A+f):(M=M.Z,f=A+f,A=A===f?new Uint8Array(0):Jud?M.slice(A,f):new Uint8Array(M.subarray(A,f)));return A.length==0?DP():new Ik(A,Tc)}; pu=function(M,f,A,Q){if(v1.length){var N=v1.pop();N.init(M,f,A,Q);M=N}else M=new Og9(M,f,A,Q);this.K=M;this.j=this.K.K;this.Z=this.C=-1;GaN(this,Q)}; GaN=function(M,f){f=f===void 0?{}:f;M.C$=f.C$===void 0?!1:f.C$}; wBd=function(M,f,A,Q){if(h6.length){var N=h6.pop();GaN(N,Q);N.K.init(M,f,A,Q);return N}return new pu(M,f,A,Q)}; le6=function(M){var f=M.K;if(f.K==f.j)return!1;M.j=M.K.K;var A=Ih(M.K)>>>0;f=A>>>3;A&=7;if(!(A>=0&&A<=5))throw kab(A,M.j);if(f<1)throw Error("Invalid field number: "+f+" (at position "+M.j+")");M.C=f;M.Z=A;return!0}; SO=function(M){switch(M.Z){case 0:M.Z!=0?SO(M):t6(M.K);break;case 1:M=M.K;NU(M,M.K+8);break;case 2:if(M.Z!=2)SO(M);else{var f=Ih(M.K)>>>0;M=M.K;NU(M,M.K+f)}break;case 5:M=M.K;NU(M,M.K+4);break;case 3:f=M.C;do{if(!le6(M))throw Error("Unmatched start-group tag: stream EOF");if(M.Z==4){if(M.C!=f)throw Error("Unmatched end-group tag");break}SO(M)}while(1);break;default:throw kab(M.Z,M.j);}}; Lu=function(M,f,A){var Q=M.K.j,N=Ih(M.K)>>>0,Y=M.K.K+N,I=Y-Q;I<=0&&(M.K.j=Y,A(f,M,void 0,void 0,void 0),I=Y-M.K.K);if(I)throw Error("Message parsing ended unexpectedly. Expected to read "+(N+" bytes, instead read "+(N-I)+" bytes, either the data ended unexpectedly or the message misreported its own length"));M.K.K=Y;M.K.j=Q}; Up=function(M){var f=Ih(M.K)>>>0;M=M.K;var A=XB0(M,f);M=M.Z;if(M7b){var Q=M,N;(N=oh)||(N=oh=new TextDecoder("utf-8",{fatal:!0}));f=A+f;Q=A===0&&f===Q.length?Q:Q.subarray(A,f);try{var Y=N.decode(Q)}catch(t){if(Cu===void 0){try{N.decode(new Uint8Array([128]))}catch(v){}try{N.decode(new Uint8Array([97])),Cu=!0}catch(v){Cu=!1}}!Cu&&(oh=void 0);throw t;}}else{Y=A;f=Y+f;A=[];for(var I=null,D,E;Y=f?lj():(E=M[Y++],D<194||w4(E)?(Y--,lj()):A.push((D&31)<<6|E&63)):D<240? Y>=f-1?lj():(E=M[Y++],w4(E)||D===224&&E<160||D===237&&E>=160||w4(N=M[Y++])?(Y--,lj()):A.push((D&15)<<12|(E&63)<<6|N&63)):D<=244?Y>=f-2?lj():(E=M[Y++],w4(E)||(D<<28)+(E-144)>>30!==0||w4(N=M[Y++])||w4(Q=M[Y++])?(Y--,lj()):(D=(D&7)<<18|(E&63)<<12|(N&63)<<6|Q&63,D-=65536,A.push((D>>10&1023)+55296,(D&1023)+56320))):lj(),A.length>=8192&&(I=RZT(I,A),A.length=0);Y=RZT(I,A)}return Y}; f8f=function(M){var f=Ih(M.K)>>>0;return Krz(M.K,f)}; VW=function(M,f,A){this.E$=v_(M,f,A)}; Aob=function(M,f){if(f==null||f=="")return new M;f=JSON.parse(f);if(!Array.isArray(f))throw Error("dnarr");KYd(f,32);return new M(f)}; ah=function(M,f){this.Z=M>>>0;this.K=f>>>0}; N4T=function(M){if(!M)return QHT||(QHT=new ah(0,0));if(!/^\d+$/.test(M))return null;rs(M);return new ah(cE,Rk)}; qU=function(M,f){this.Z=M>>>0;this.K=f>>>0}; I8t=function(M){if(!M)return Yyc||(Yyc=new qU(0,0));if(!/^-?\d+$/.test(M))return null;rs(M);return new qU(cE,Rk)}; mF=function(){this.K=[]}; sp=function(M,f,A){for(;A>0||f>127;)M.K.push(f&127|128),f=(f>>>7|A<<25)>>>0,A>>>=7;M.K.push(f)}; c1=function(M,f){for(;f>127;)M.K.push(f&127|128),f>>>=7;M.K.push(f)}; T49=function(M,f){if(f>=0)c1(M,f);else{for(var A=0;A<9;A++)M.K.push(f&127|128),f>>=7;M.K.push(1)}}; Rh=function(M,f){M.K.push(f>>>0&255);M.K.push(f>>>8&255);M.K.push(f>>>16&255);M.K.push(f>>>24&255)}; DQe=function(){this.j=[];this.Z=0;this.K=new mF}; gg=function(M,f){f.length!==0&&(M.j.push(f),M.Z+=f.length)}; Eab=function(M,f){B1(M,f,2);f=M.K.end();gg(M,f);f.push(M.Z);return f}; t76=function(M,f){var A=f.pop();for(A=M.Z+M.K.length()-A;A>127;)f.push(A&127|128),A>>>=7,M.Z++;f.push(A);M.Z++}; B1=function(M,f,A){c1(M.K,f*8+A)}; va9=function(M,f,A){if(A!=null){switch(typeof A){case "string":N4T(A)}B1(M,f,1);switch(typeof A){case "number":M=M.K;gs(A);Rh(M,cE);Rh(M,Rk);break;case "bigint":A=BigInt.asUintN(64,A);A=new ah(Number(A&BigInt(4294967295)),Number(A>>BigInt(32)));M=M.K;f=A.K;Rh(M,A.Z);Rh(M,f);break;default:A=N4T(A),M=M.K,f=A.K,Rh(M,A.Z),Rh(M,f)}}}; iL=function(M,f,A){B1(M,f,2);c1(M.K,A.length);gg(M,M.K.end());gg(M,A)}; x3=function(){function M(){throw Error();} Object.setPrototypeOf(M,M.prototype);return M}; rg=function(M,f,A){this.Z1=M;this.Ia=f;M=tB(Zn);this.K=!!M&&A===M||!1}; uL=function(M,f){var A=A===void 0?Zn:A;return new rg(M,f,A)}; hUc=function(M,f,A,Q,N){f=pPt(f,Q);f!=null&&(A=Eab(M,A),N(f,M),t76(M,A))}; nu=function(M,f,A,Q){var N=Q[M];if(N)return N;N={};N.z6=Q;N.aR=g.F(xuc(Q[0]));var Y=Q[1],I=1;Y&&Y.constructor===Object&&(N.extensions=Y,Y=Q[++I],typeof Y==="function"&&(N.yx=!0,zw!=null||(zw=Y),P1!=null||(P1=Q[I+1]),Y=Q[I+=2]));for(var D={};Y&&Array.isArray(Y)&&Y.length&&typeof Y[0]==="number"&&Y[0]>0;){for(var E=0;E>BigInt(32)));sp(M.K,A.Z,A.K);break;default:A=I8t(f),sp(M.K,A.Z,A.K)}}}; fY=function(M,f,A){f=y7(f);f!=null&&f!=null&&(B1(M,A,0),T49(M.K,f))}; RUb=function(M,f,A){f=f==null||typeof f==="boolean"?f:typeof f==="number"?!!f:void 0;f!=null&&(B1(M,A,0),M.K.K.push(f?1:0))}; ga9=function(M,f,A){f=Gc(f);f!=null&&iL(M,A,xVb(f))}; B4N=function(M,f,A,Q,N){f=pPt(f,Q);f!=null&&(A=Eab(M,A),N(f,M),t76(M,A))}; xQ0=function(){var M=A9;this.K=i$6;this.isRepeated=0;this.Z=$V;this.defaultValue=void 0;this.j=M.messageId!=null?qM:void 0}; Z$b=function(M){return function(){var f=new DQe;H$T(this.E$,f,nu(bL,eO,k3,M));gg(f,f.K.end());for(var A=new Uint8Array(f.Z),Q=f.j,N=Q.length,Y=0,I=0;I-1)return f.apply(null,g.c(A));try{return M.K=M.j.K.now(),f.apply(null,g.c(A))}finally{M.C+=M.j.K.now()-M.K,M.K=-1,M.Z+=1}}}; ucf=function(M,f){this.Z=M;this.j=f;this.K=new roD(M)}; zUT=function(){this.K={}}; nat=function(){var M=TM().flags,f=PjN;M=M.K[f.key];if(f.valueType==="proto"){try{var A=JSON.parse(M);if(Array.isArray(A))return A}catch(Q){}return f.defaultValue}return typeof M===typeof f.defaultValue?M:f.defaultValue}; yob=function(){this.j=void 0;this.Z=this.G=0;this.N=-1;this.jc=new vT;px(this.jc,"mv",jHb).K=!0;px(this.jc,"omid",oX);px(this.jc,"epoh",oX).K=!0;px(this.jc,"epph",oX).K=!0;px(this.jc,"umt",oX).K=!0;px(this.jc,"phel",oX).K=!0;px(this.jc,"phell",oX).K=!0;px(this.jc,"oseid",$Qd).K=!0;var M=this.jc;M.K.sloi||(M.K.sloi=new EI);M.K.sloi.K=!0;px(this.jc,"mm",Dp);px(this.jc,"ovms",FGd).K=!0;px(this.jc,"xdi",oX).K=!0;px(this.jc,"amp",oX).K=!0;px(this.jc,"prf",oX).K=!0;px(this.jc,"gtx",oX).K=!0;px(this.jc, "mvp_lv",oX).K=!0;px(this.jc,"ssmol",oX).K=!0;px(this.jc,"fmd",oX).K=!0;px(this.jc,"gen204simple",oX);this.K=new ucf(GD(),this.jc);this.C=!1;this.flags=new zUT}; TM=function(){return Jo(yob)}; dQX=function(M,f,A,Q){if(Math.random()<(Q||M.K))try{if(A instanceof d4)var N=A;else N=new d4,$a(A,function(I,D){var E=N,t=E.C++;I=e7(D,I);E.K.push(t);E.Z[t]=I}); var Y=N.mf(M.Z,"pagead2.googlesyndication.com","/pagead/gen_204?id="+f+"&");Y&&(GD(),HxD(Y))}catch(I){}}; eUN=function(M,f,A){A=A===void 0?{}:A;this.error=M;this.meta=A;this.context=f.context;this.msg=f.message||"";this.id=f.id||"jserror"}; b$f=function(){var M=M===void 0?g.Kb:M;return(M=M.performance)&&M.now&&M.timing?Math.floor(M.now()+M.timing.navigationStart):g.EB()}; kDc=function(){var M=M===void 0?g.Kb:M;return(M=M.performance)&&M.now?M.now():null}; WGb=function(M,f,A){this.label=M;this.type=f;this.value=A;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; t9=function(){var M=window;this.events=[];this.Z=M||g.Kb;var f=null;M&&(M.google_js_reporting_queue=M.google_js_reporting_queue||[],this.events=M.google_js_reporting_queue,f=M.google_measure_js_timing);this.K=Ec()||(f!=null?f:Math.random()<1)}; O$c=function(M){M&&vC&&Ec()&&(vC.clearMarks("goog_"+M.label+"_"+M.uniqueId+"_start"),vC.clearMarks("goog_"+M.label+"_"+M.uniqueId+"_end"))}; XPb=function(){var M=pY;this.K=h9;this.Ww="jserror";this.j6=!0;this.Zl=null;this.Z=this.WE;this.V7=M===void 0?null:M}; JoU=function(M,f,A){var Q=Si;return IK(TM().K.K,function(){try{if(Q.V7&&Q.V7.K){var N=Q.V7.start(M.toString(),3);var Y=f();Q.V7.end(N)}else Y=f()}catch(D){var I=Q.j6;try{O$c(N),I=Q.Z(M,new LY(oK(D)),void 0,A)}catch(E){Q.WE(217,E)}if(!I)throw D;}return Y})()}; CY=function(M,f,A,Q){return IK(TM().K.K,function(){var N=g.jN.apply(0,arguments);return JoU(M,function(){return f.apply(A,N)},Q)})}; oK=function(M){var f=M.toString();M.name&&f.indexOf(M.name)==-1&&(f+=": "+M.name);M.message&&f.indexOf(M.message)==-1&&(f+=": "+M.message);if(M.stack)a:{M=M.stack;var A=f;try{M.indexOf(A)==-1&&(M=A+"\n"+M);for(var Q;M!=Q;)Q=M,M=M.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");f=M.replace(/\n */g,"\n");break a}catch(N){f=A;break a}f=void 0}return f}; LY=function(M){eUN.call(this,Error(M),{message:M})}; KGb=function(){ho&&typeof ho.google_measure_js_timing!="undefined"&&(ho.google_measure_js_timing||pY.disable())}; GDz=function(M){Si.Zl=function(f){g.F0(M,function(A){A(f)})}}; wPU=function(M,f){return JoU(M,f)}; Uc=function(M,f){return CY(M,f)}; VV=function(M,f,A,Q){Si.WE(M,f,A,Q)}; aK=function(){return Date.now()-l8b}; Ma0=function(){var M=TM().j,f=qT>=0?aK()-qT:-1,A=HC?aK()-mR:-1,Q=sc>=0?aK()-sc:-1;if(M==947190542)return 100;if(M==79463069)return 200;M=[2E3,4E3];var N=[250,500,1E3];VV(637,Error(),.001);var Y=f;A!=-1&&A1500&&Q<4E3?500:I}; cC=function(M,f,A,Q){this.top=M;this.right=f;this.bottom=A;this.left=Q}; RK=function(M){return M.right-M.left}; gr=function(M,f){return M==f?!0:M&&f?M.top==f.top&&M.right==f.right&&M.bottom==f.bottom&&M.left==f.left:!1}; BC=function(M,f,A){f instanceof g.r2?(M.left+=f.x,M.right+=f.x,M.top+=f.y,M.bottom+=f.y):(M.left+=f,M.right+=f,typeof A==="number"&&(M.top+=A,M.bottom+=A));return M}; iW=function(M,f,A){var Q=new cC(0,0,0,0);this.time=M;this.volume=null;this.j=f;this.K=Q;this.Z=A}; xA=function(M,f,A,Q,N,Y,I,D){this.C=M;this.W=f;this.j=A;this.G=Q;this.K=N;this.N=Y;this.Z=I;this.X=D}; Ant=function(M){var f=M!==M.top,A=M.top===pTT(M),Q=-1,N=0;if(f&&A&&M.top.mraid){Q=3;var Y=M.top.mraid}else Q=(Y=M.mraid)?f?A?2:1:0:-1;Y&&(Y.IS_GMA_SDK||(N=2),zed(fPe,function(I){return typeof Y[I]==="function"})||(N=1)); return{Em:Y,compatibility:N,Iyr:Q}}; Qkz=function(){var M=window.document;return M&&typeof M.elementFromPoint==="function"}; Nsz=function(M,f,A){if(M&&f!==null&&f!=f.top){if(!f.top)return new g.za(-12245933,-12245933);f=f.top}try{return(A===void 0?0:A)?(new g.za(f.innerWidth,f.innerHeight)).round():ne6(f||window).round()}catch(Q){return new g.za(-12245933,-12245933)}}; uW=function(M,f,A){try{if(M){if(!f.top)return new cC(-12245933,-12245933,-12245933,-12245933);f=f.top}var Q=Nsz(M,f,A),N=Q.height,Y=Q.width;if(Y===-12245933)return new cC(Y,Y,Y,Y);var I=e4(f.document);var D=$mU(I.K);var E=D.x,t=D.y;return new cC(t,E+Y,t+N,E)}catch(v){return new cC(-12245933,-12245933,-12245933,-12245933)}}; g.zM=function(M,f,A,Q){this.left=M;this.top=f;this.width=A;this.height=Q}; PC=function(M,f){return M==f?!0:M&&f?M.left==f.left&&M.width==f.width&&M.top==f.top&&M.height==f.height:!1}; g.ji=function(M,f,A){if(typeof f==="string")(f=nY(M,f))&&(M.style[f]=A);else for(var Q in f){A=M;var N=f[Q],Y=nY(A,Q);Y&&(A.style[Y]=N)}}; nY=function(M,f){var A=Yd0[f];if(!A){var Q=LW9(f);A=Q;M.style[Q]===void 0&&(Q=(g.Kg?"Webkit":$A?"Moz":null)+C6N(Q),M.style[Q]!==void 0&&(A=Q));Yd0[f]=A}return A}; g.Fo=function(M,f){var A=M.style[LW9(f)];return typeof A!=="undefined"?A:M.style[nY(M,f)]||""}; yV=function(M,f){var A=d2(M);return A.defaultView&&A.defaultView.getComputedStyle&&(M=A.defaultView.getComputedStyle(M,null))?M[f]||M.getPropertyValue(f)||"":""}; dr=function(M,f){return yV(M,f)||(M.currentStyle?M.currentStyle[f]:null)||M.style&&M.style[f]}; g.bW=function(M,f,A){if(f instanceof g.r2){var Q=f.x;f=f.y}else Q=f,f=A;M.style.left=g.ei(Q,!1);M.style.top=g.ei(f,!1)}; kA=function(M){try{return M.getBoundingClientRect()}catch(f){return{left:0,top:0,right:0,bottom:0}}}; IP9=function(M){var f=d2(M),A=dr(M,"position"),Q=A=="fixed"||A=="absolute";for(M=M.parentNode;M&&M!=f;M=M.parentNode)if(M.nodeType==11&&M.host&&(M=M.host),A=dr(M,"position"),Q=Q&&A=="static"&&M!=f.documentElement&&M!=f.body,!Q&&(M.scrollWidth>M.clientWidth||M.scrollHeight>M.clientHeight||A=="fixed"||A=="absolute"||A=="relative"))return M;return null}; g.WC=function(M){var f=d2(M),A=new g.r2(0,0);if(M==(f?d2(f):document).documentElement)return A;M=kA(M);f=e4(f);f=$mU(f.K);A.x=M.left+f.x;A.y=M.top+f.y;return A}; DMD=function(M,f){var A=new g.r2(0,0),Q=Ga(d2(M));if(!qBb(Q,"parent"))return A;do{var N=Q==f?g.WC(M):Tsb(M);A.x+=N.x;A.y+=N.y}while(Q&&Q!=f&&Q!=Q.parent&&(M=Q.frameElement)&&(Q=Q.parent));return A}; g.Oc=function(M,f){M=EYU(M);f=EYU(f);return new g.r2(M.x-f.x,M.y-f.y)}; Tsb=function(M){M=kA(M);return new g.r2(M.left,M.top)}; EYU=function(M){if(M.nodeType==1)return Tsb(M);M=M.changedTouches?M.changedTouches[0]:M;return new g.r2(M.clientX,M.clientY)}; g.Xo=function(M,f,A){if(f instanceof g.za)A=f.height,f=f.width;else if(A==void 0)throw Error("missing height argument");M.style.width=g.ei(f,!0);M.style.height=g.ei(A,!0)}; g.ei=function(M,f){typeof M=="number"&&(M=(f?Math.round(M):M)+"px");return M}; g.J9=function(M){var f=taf;if(dr(M,"display")!="none")return f(M);var A=M.style,Q=A.display,N=A.visibility,Y=A.position;A.visibility="hidden";A.position="absolute";A.display="inline";M=f(M);A.display=Q;A.position=Y;A.visibility=N;return M}; taf=function(M){var f=M.offsetWidth,A=M.offsetHeight,Q=g.Kg&&!f&&!A;return(f===void 0||Q)&&M.getBoundingClientRect?(M=kA(M),new g.za(M.right-M.left,M.bottom-M.top)):new g.za(f,A)}; g.KY=function(M,f){M.style.display=f?"":"none"}; GM=function(M,f){f=Math.pow(10,f);return Math.floor(M*f)/f}; vYt=function(M){return new cC(M.top,M.right,M.bottom,M.left)}; pEf=function(M){var f=M.top||0,A=M.left||0;return new cC(f,A+(M.width||0),f+(M.height||0),A)}; wr=function(M){return M!=null&&M>=0&&M<=1}; hE6=function(){var M=g.ge();return M?lW("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(f){return qV(M,f)})||qV(M,"OMI/")&&!qV(M,"XiaoMi/")?!0:qV(M,"Presto")&&qV(M,"Linux")&&!qV(M,"X11")&&!qV(M,"Android")&&!qV(M,"Mobi"):!1}; SdD=function(){this.j=!j7(ho.top);this.isMobileDevice=mG()||JBb();var M=yw();this.domain=M.length>0&&M[M.length-1]!=null&&M[M.length-1].url!=null?g.RH(M[M.length-1].url)||"":"";this.K=new cC(0,0,0,0);this.C=new g.za(0,0);this.N=new g.za(0,0);this.W=new cC(0,0,0,0);this.frameOffset=new g.r2(0,0);this.G=0;this.X=!1;this.Z=!(!ho||!Ant(ho).Em);this.update(ho)}; Lve=function(M,f){f&&f.screen&&(M.C=new g.za(f.screen.width,f.screen.height))}; Sg9=function(M,f){a:{var A=M.K?new g.za(RK(M.K),M.K.getHeight()):new g.za(0,0);f=f===void 0?ho:f;f!==null&&f!=f.top&&(f=f.top);var Q=0,N=0;try{var Y=f.document,I=Y.body,D=Y.documentElement;if(Y.compatMode=="CSS1Compat"&&D.scrollHeight)Q=D.scrollHeight!=A.height?D.scrollHeight:D.offsetHeight,N=D.scrollWidth!=A.width?D.scrollWidth:D.offsetWidth;else{var E=D.scrollHeight,t=D.scrollWidth,v=D.offsetHeight,p=D.offsetWidth;D.clientHeight!=v&&(E=I.scrollHeight,t=I.scrollWidth,v=I.offsetHeight,p=I.offsetWidth); E>A.height?E>v?(Q=E,N=t):(Q=v,N=p):E0||M.X)return!0;M=GD().Z.isVisible();var f=qQ(fX)===0;return M||f}; M9=function(){return Jo(SdD)}; Qx=function(M){this.j=M;this.Z=0;this.K=null}; N9=function(M,f,A){this.j=M;this.nJ=A===void 0?"na":A;this.N=[];this.isInitialized=!1;this.C=new iW(-1,!0,this);this.K=this;this.X=f;this.Er=this.B=!1;this.z0="uk";this.P7=!1;this.G=!0}; Ij=function(M,f){g.V9(M.N,f)||(M.N.push(f),f.wh(M.K),f.Jk(M.C),f.Vr()&&(M.B=!0))}; L1z=function(M){M=M.K;M.kA();M.uJ();var f=M9();f.W=uW(!1,M.j,f.isMobileDevice);Sg9(M9(),M.j);M.C.K=M.yV()}; oV9=function(M){M.B=M.N.length?lW(M.N,function(f){return f.Vr()}):!1}; CP0=function(M){var f=g.sB(M.N);g.F0(f,function(A){A.Jk(M.C)})}; T$=function(M){var f=g.sB(M.N);g.F0(f,function(A){A.wh(M.K)}); M.K!=M||CP0(M)}; Dx=function(M,f,A,Q){this.element=M;this.K=new cC(0,0,0,0);this.j=null;this.G=new cC(0,0,0,0);this.Z=f;this.jc=A;this.P7=Q;this.jk=!1;this.timestamp=-1;this.B=new xA(f.C,this.element,this.K,new cC(0,0,0,0),0,0,aK(),0);this.N=void 0}; UXX=function(M,f){return M.N?new cC(Math.max(f.top+M.N.top,f.top),Math.min(f.left+M.N.right,f.right),Math.min(f.top+M.N.bottom,f.bottom),Math.max(f.left+M.N.left,f.left)):f.clone()}; ER=function(M){this.N=!1;this.K=M;this.C=function(){}}; Vpf=function(M,f,A){this.j=A===void 0?0:A;this.Z=M;this.K=f==null?"":f}; ald=function(M){switch(Math.trunc(M.j)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; qg0=function(M,f){return M.jf.j?!1:M.Zf.Z?!1:typeof M.Ktypeof f.K?!1:M.K0?Q[A]-Q[A-1]:Q[A]})}; Hw=function(){this.Z=new oj;this.nJ=this.fJ=0;this.YO=new LX;this.KJ=this.W=-1;this.l8=1E3;this.b8=new oj([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.z0=this.jk=-1}; mX=function(M,f){return ZQb(M.Z,f===void 0?!0:f)}; sR=function(M,f,A,Q){var N=N===void 0?!1:N;A=CY(Q,A);aH(M,f,A,{capture:N})}; Rj=function(M,f){f=cw(f);return f===0?0:cw(M)/f}; cw=function(M){return Math.max(M.bottom-M.top,0)*Math.max(M.right-M.left,0)}; zVc=function(M,f){if(!M||!f)return!1;for(var A=0;M!==null&&A++<100;){if(M===f)return!0;try{if(M=M.parentElement||M){var Q=d2(M),N=Q&&Ga(Q),Y=N&&N.frameElement;Y&&(M=Y)}}catch(I){break}}return!1}; PPU=function(M,f,A){if(!M||!f)return!1;f=BC(M.clone(),-f.left,-f.top);M=(f.left+f.right)/2;f=(f.top+f.bottom)/2;j7(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Qkz())return!1;M=window.document.elementFromPoint(M,f);if(!M)return!1;f=(f=(f=d2(A))&&f.defaultView&&f.defaultView.frameElement)&&zVc(f,M);var Q=M===A;M=!Q&&M&&D8(M,function(N){return N===A}); return!(f||Q||M)}; nVD=function(M,f,A,Q){return M9().j?!1:RK(M)<=0||M.getHeight()<=0?!0:A&&Q?wPU(208,function(){return PPU(M,f,A)}):!1}; Bw=function(M,f,A){g.y.call(this);this.position=jZt.clone();this.Pl=this.I4();this.q0=-2;this.timeCreated=Date.now();this.mu=-1;this.iX=f;this.Ds=null;this.jz=!1;this.vl=null;this.opacity=-1;this.requestSource=A;this.vZN=!1;this.Oi=function(){}; this.aT=function(){}; this.CS=new ect;this.CS.Zw=M;this.CS.K=M;this.aX=!1;this.t6={lH:null,hJ:null};this.Tu=!0;this.Ug=null;this.DN=this.R$=!1;TM().G++;this.P2=this.Iy();this.AD=-1;this.vu=null;this.hasCompleted=this.N6=!1;this.jc=new vT;eef(this.jc);$XU(this);this.requestSource==1?h2(this.jc,"od",1):h2(this.jc,"od",0)}; $XU=function(M){M=M.CS.Zw;var f;if(f=M&&M.getAttribute)f=/-[a-z]/.test("googleAvInapp")?!1:F10&&M.dataset?"googleAvInapp"in M.dataset:M.hasAttribute?M.hasAttribute("data-"+oeb()):!!M.getAttribute("data-"+oeb());f&&(M9().Z=!0)}; i8=function(M,f){f!=M.DN&&(M.DN=f,M=M9(),f?M.G++:M.G>0&&M.G--)}; yT9=function(M,f){if(M.vu){if(f.getName()===M.vu.getName())return;M.vu.dispose();M.vu=null}f=f.create(M.CS.K,M.jc,M.Vr());if(f=f!=null&&f.observe()?f:null)M.vu=f}; dXe=function(M,f,A){if(!M.Ds||M.iX==-1||f.Z===-1||M.Ds.Z===-1)return 0;M=f.Z-M.Ds.Z;return M>A?0:M}; eVN=function(M,f,A){if(M.vu){M.vu.IX();var Q=M.vu.B,N=Q.C,Y=N.K;if(Q.G!=null){var I=Q.j;M.vl=new g.r2(I.left-Y.left,I.top-Y.top)}Y=M.A9()?Math.max(Q.K,Q.N):Q.K;I={};N.volume!==null&&(I.volume=N.volume);N=M.j_(Q);M.Ds=Q;M.Nu(Y,f,A,!1,I,N,Q.X)}}; bQc=function(M){if(M.jz&&M.Ug){var f=SE(M.jc,"od")==1,A=M9().K,Q=M.Ug,N=M.vu?M.vu.getName():"ns",Y=M.vl,I=new g.za(RK(A),A.getHeight());A=M.A9();M={Sw3:N,vl:Y,II0:I,A9:A,q3:M.P2.q3,dQ7:f};if(f=Q.Z){f.IX();N=f.B;Y=N.C.K;var D=I=null;N.G!=null&&Y&&(I=N.j,I=new g.r2(I.left-Y.left,I.top-Y.top),D=new g.za(Y.right-Y.left,Y.bottom-Y.top));N=A?Math.max(N.K,N.N):N.K;A={Sw3:f.getName(),vl:I,II0:D,A9:A,dQ7:!1,q3:N}}else A=null;A&&Bn9(Q,M,A)}}; kWU=function(M,f,A){f&&(M.Oi=f);A&&(M.aT=A)}; g.xT=function(){}; g.Zx=function(M){return{value:M,done:!1}}; W1b=function(){this.C=this.K=this.j=this.Z=this.N=0}; OQf=function(M){var f={};var A=g.EB()-M.N;f=(f.ptlt=A,f);(A=M.Z)&&(f.pnk=A);(A=M.j)&&(f.pnc=A);(A=M.C)&&(f.pnmm=A);(M=M.K)&&(f.pns=M);return f}; X_6=function(){d7.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; rv=function(M){return wr(M.volume)&&M.volume>0}; u8=function(M,f,A,Q){A=A===void 0?!0:A;Q=Q===void 0?function(){return!0}:Q; return function(N){var Y=N[M];if(Array.isArray(Y)&&Q(N))return JTd(Y,f,A)}}; z$=function(M,f){return function(A){return f(A)?A[M]:void 0}}; K1N=function(M){return function(f){for(var A=0;A0?Y[N-1]+1:0,Q+1).reduce(function(I,D){return I+D},0)})}; GWz=function(){this.Z=this.K=""}; w_e=function(){}; nX=function(M,f){var A={};if(M!==void 0)if(f!=null)for(var Q in f){var N=f[Q];Q in Object.prototype||N!=null&&(A[Q]=typeof N==="function"?N(M):M[N])}else g.Y1(A,M);return pX(vw(new tW,A))}; llD=function(){var M={};this.Z=(M.vs=[1,0],M.vw=[0,1],M.am=[2,2],M.a=[4,4],M.f=[8,8],M.bm=[16,16],M.b=[32,32],M.avw=[0,64],M.avs=[64,0],M.pv=[256,256],M.gdr=[0,512],M.p=[0,1024],M.r=[0,2048],M.m=[0,4096],M.um=[0,8192],M.ef=[0,16384],M.s=[0,32768],M.pmx=[0,16777216],M.mut=[33554432,33554432],M.umutb=[67108864,67108864],M.tvoff=[134217728,134217728],M);this.K={};for(var f in this.Z)this.Z[f][1]>0&&(this.K[f]=0);this.j=0}; jy=function(M,f){var A=M.Z[f],Q=A[1];M.j+=A[0];Q>0&&M.K[f]==0&&(M.K[f]=1)}; MOc=function(M){var f=g.Km(M.Z),A=0,Q;for(Q in M.K)g.V9(f,Q)&&M.K[Q]==1&&(A+=M.Z[Q][1],M.K[Q]=2);return A}; fnt=function(M){var f=0,A;for(A in M.K){var Q=M.K[A];if(Q==1||Q==2)f+=M.Z[A][1]}return f}; $T=function(){this.K=this.Z=0}; Fv=function(){Hw.call(this);this.j=new LX;this.ox=this.B=this.P7=0;this.X=-1;this.xO=new LX;this.N=new LX;this.K=new oj;this.G=this.C=-1;this.Er=new LX;this.l8=2E3;this.g_=new $T;this.w_=new $T;this.Ji=new $T}; yx=function(M,f,A){var Q=M.ox;HC||A||M.X==-1||(Q+=f-M.X);return Q}; A6t=function(){this.j=!1}; dv=function(M,f){this.j=!1;this.C=M;this.B=f;this.N=0}; ey=function(M,f){dv.call(this,M,f);this.W=[]}; Qh0=function(){}; b8=function(){}; Ww=function(M,f,A,Q){Dx.call(this,M,f,A,Q)}; OR=function(M,f,A){Dx.call(this,null,M,f,A);this.X=M.isActive();this.W=0}; Xv=function(M){return[M.top,M.left,M.bottom,M.right]}; JW=function(M,f,A,Q,N,Y){Y=Y===void 0?new b8:Y;Bw.call(this,f,A,Q);this.FY=N;this.kB=0;this.yD={};this.lM=new llD;this.jt={};this.HU="";this.Ji=null;this.Z9=!1;this.K=[];this.Du=Y.Z();this.G=Y.j();this.C=null;this.j=-1;this.nJ=this.B=void 0;this.KJ=this.Er=0;this.z0=-1;this.l8=this.w_=!1;this.P7=this.X=this.Z=this.El=this.Qw=0;new oj;this.g_=this.ox=0;this.YO=-1;this.Vm=0;this.W=g.L$;this.jk=[this.I4()];this.wq=2;this.pu={};this.pu.pause="p";this.pu.resume="r";this.pu.skip="s";this.pu.mute="m";this.pu.unmute= "um";this.pu.exitfullscreen="ef";this.N=null;this.b8=this.xO=!1;this.zt=Math.floor(Date.now()/1E3-1704067200);this.fJ=0}; KX=function(M){M.hasCompleted=!0;M.Vm!=0&&(M.Vm=3)}; G$=function(M){return M===void 0?M:Number(M)?GM(M,3):0}; wv=function(M,f){return M.jk[f!=null&&fMath.max(1E4,M.j/3)?0:f);var A=M.W(M)||{};A=A.currentTime!==void 0?A.currentTime:M.Er;var Q=A-M.Er,N=0;Q>=0?(M.KJ+=f,M.g_+=Math.max(f-Q,0),N=Math.min(Q,M.KJ)):M.ox+=Math.abs(Q);Q!=0&&(M.KJ=0);M.YO==-1&&Q>0&&(M.YO=sc>=0?aK()-sc:-1);M.Er=A;return N}; Inf=function(M,f){lW(M.G,function(A){return A.C==f.C})||M.G.push(f)}; Tgb=function(M){var f=Vx(M.q4().K,1);return l8(M,f)}; l8=function(M,f,A){return f>=15E3?!0:M.w_?(A===void 0?0:A)?!0:M.j>0?f>=M.j/2:M.z0>0?f>=M.z0:!1:!1}; DUb=function(M){var f=GM(M.P2.q3,2),A=M.lM.j,Q=M.P2,N=wv(M),Y=G$(N.C),I=G$(N.G),D=G$(Q.volume),E=GM(N.W,2),t=GM(N.KJ,2),v=GM(Q.q3,2),p=GM(N.jk,2),h=GM(N.z0,2);Q=GM(Q.l5,2);var S=M.Nt().clone().round();M=M.vu&&M.vu.j?(M.vu?M.vu.j:null).clone().round():null;N=mX(N,!1);return{Zy$:f,K5:A,AO:Y,tO:I,Vs:D,f7:E,jy:t,q3:v,g4:p,Hl:h,l5:Q,position:S,LQ:M,n7:N}}; tOX=function(M,f){E3b(M.K,f,function(){return{Zy$:0,K5:void 0,AO:-1,tO:-1,Vs:-1,f7:-1,jy:-1,q3:-1,g4:-1,Hl:-1,l5:-1,position:void 0,LQ:void 0,n7:[]}}); M.K[f]=DUb(M)}; E3b=function(M,f,A){for(var Q=M.length;Q0?1:0;p.atos= CX(t.K);p.ssb=CX(t.b8,!1);p.amtos=ZQb(t.K,!1);p.uac=M.Qw;p.vpt=t.j.K;v=="nio"&&(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=l8(M,t.j.K,!0)?1:0;p.efpf=M.wq;if(v=="gsv"||v=="nis")v=M.vu,v.W>0&&(p.nnut=v.W);p.tcm=Ng0(M);p.nmt=M.ox;p.bt=M.g_;p.pst=M.YO;p.vpaid=M.B;p.dur=M.j;p.vmtime=M.Er;p.is=M.lM.j;M.K.length>=1&&(p.i0=M.K[0].K5,p.a0=[M.K[0].Vs],p.c0=[M.K[0].q3],p.ss0=[M.K[0].l5],v=M.K[0].position,Y=M.K[0].LQ,p.p0=v?Xv(v):void 0,v&&Y&&!gr(Y,v)&&(p.cp0=Xv(Y)));M.K.length>=2&&(p.i1=M.K[1].K5,p.a1=Ap(M.K[1].AO, M.K[1].Vs,M.K[1].tO),p.c1=Ap(M.K[1].f7,M.K[1].q3,M.K[1].jy),p.ss1=Ap(M.K[1].g4,M.K[1].l5,M.K[1].Hl),v=M.K[1].position,Y=M.K[1].LQ,p.p1=v?Xv(v):void 0,v&&Y&&!gr(Y,v)&&(p.cp1=Xv(Y)),p.mtos1=M.K[1].n7);M.K.length>=3&&(p.i2=M.K[2].K5,p.a2=Ap(M.K[2].AO,M.K[2].Vs,M.K[2].tO),p.c2=Ap(M.K[2].f7,M.K[2].q3,M.K[2].jy),p.ss2=Ap(M.K[2].g4,M.K[2].l5,M.K[2].Hl),v=M.K[2].position,Y=M.K[2].LQ,p.p2=v?Xv(v):void 0,v&&Y&&!gr(Y,v)&&(p.cp2=Xv(Y)),p.mtos2=M.K[2].n7);M.K.length>=4&&(p.i3=M.K[3].K5,p.a3=Ap(M.K[3].AO,M.K[3].Vs, M.K[3].tO),p.c3=Ap(M.K[3].f7,M.K[3].q3,M.K[3].jy),p.ss3=Ap(M.K[3].g4,M.K[3].l5,M.K[3].Hl),v=M.K[3].position,Y=M.K[3].LQ,p.p3=v?Xv(v):void 0,v&&Y&&!gr(Y,v)&&(p.cp3=Xv(Y)),p.mtos3=M.K[3].n7);p.cs=fnt(M.lM);f&&(p.ic=MOc(M.lM),p.dvpt=t.j.Z,p.dvs=q9(t.Z,.5),p.dfvs=q9(t.Z,1),p.davs=q9(t.K,.5),p.dafvs=q9(t.K,1),A&&(t.j.Z=0,rTt(t.Z),rTt(t.K)),M.L6()&&(p.dtos=t.P7,p.dav=t.B,p.dtoss=M.kB+1,A&&(t.P7=0,t.B=0,M.kB++)),p.dat=t.N.Z,p.dft=t.Er.Z,A&&(t.N.Z=0,t.Er.Z=0));p.ps=[D.N.width,D.N.height];p.bs=[RK(D.K),D.K.getHeight()]; p.scs=[D.C.width,D.C.height];p.dom=D.domain;M.El&&(p.vds=M.El);if(M.G.length>0||M.Du)f=g.sB(M.G),M.Du&&f.push(M.Du),p.pings=g.WP(f,function(h){return h.toString()}); f=g.WP(g.Pw(M.G,function(h){return h.G()}),function(h){return h.getId()}); g9b(f);p.ces=f;M.Z&&(p.vmer=M.Z);M.X&&(p.vmmk=M.X);M.P7&&(p.vmiec=M.P7);p.avms=M.vu?M.vu.getName():"ns";M.vu&&g.Y1(p,M.vu.oX());Q?(p.c=GM(M.P2.q3,2),p.ss=GM(M.P2.l5,2)):p.tth=aK()-Spt;p.mc=GM(t.KJ,2);p.nc=GM(t.W,2);p.mv=G$(t.G);p.nv=G$(t.C);p.lte=GM(M.q0,2);Q=wv(M,N);mX(t);p.qmtos=mX(Q);p.qnc=GM(Q.W,2);p.qmv=G$(Q.G);p.qnv=G$(Q.C);p.qas=Q.C>0?1:0;p.qi=M.HU;p.avms||(p.avms="geo");p.psm=t.g_.K;p.psv=t.g_.getValue();p.psfv=t.w_.getValue();p.psa=t.Ji.getValue();E=yb0(E.jc);E.length&&(p.veid=E);M.N&&g.Y1(p, OQf(M.N));p.avas=M.lV();p.vs=M.oU();p.co=LFc(M);p.tm=t.fJ;p.tu=t.nJ;return p}; v3b=function(M,f){if(g.V9(o3z,f))return!0;var A=M.yD[f];return A!==void 0?(M.yD[f]=!0,!A):!1}; LFc=function(M){var f=M.fJ.toString(10).padStart(2,"0");f=""+M.zt+f;M.fJ<99&&M.fJ++;return f}; UUz=function(){this.K={};var M=Ga();QZ(this,M,document);var f=CLc();try{if("1"==f){for(var A=M.parent;A!=M.top;A=A.parent)QZ(this,A,A.document);QZ(this,M.top,M.top.document)}}catch(Q){}}; CLc=function(){var M=document.documentElement;try{if(!j7(Ga().top))return"2";var f=[],A=Ga(M.ownerDocument);for(M=A;M!=A.top;M=M.parent)if(M.frameElement)f.push(M.frameElement);else break;return f&&f.length!=0?"1":"0"}catch(Q){return"2"}}; QZ=function(M,f,A){sR(A,"mousedown",function(){return VOD(M)},301); sR(f,"scroll",function(){return anc(M)},302); sR(A,"touchmove",function(){return qpf(M)},303); sR(A,"mousemove",function(){return Huz(M)},304); sR(A,"keydown",function(){return mU0(M)},305)}; VOD=function(M){g.ew(M.K,function(f){f.j>1E5||++f.j})}; anc=function(M){g.ew(M.K,function(f){f.K>1E5||++f.K})}; qpf=function(M){g.ew(M.K,function(f){f.K>1E5||++f.K})}; mU0=function(M){g.ew(M.K,function(f){f.Z>1E5||++f.Z})}; Huz=function(M){g.ew(M.K,function(f){f.C>1E5||++f.C})}; shX=function(){this.K=[];this.Z=[]}; NW=function(M,f){return g.oR(M.K,function(A){return A.HU==f})}; c6X=function(M,f){return f?g.oR(M.K,function(A){return A.CS.Zw==f}):null}; RQN=function(M,f){return g.oR(M.Z,function(A){return A.Ft()==2&&A.HU==f})}; IS=function(){var M=YQ;return M.K.length==0?M.Z:M.Z.length==0?M.K:g.mW(M.Z,M.K)}; g3N=function(M,f){M=f.Ft()==1?M.K:M.Z;var A=Lm(M,function(Q){return Q==f}); return A!=-1?(M.splice(A,1),f.vu&&f.vu.unobserve(),f.dispose(),!0):!1}; BgD=function(M){var f=YQ;if(g3N(f,M)){switch(M.Ft()){case 0:var A=function(){return null}; case 2:A=function(){return RQN(f,M.HU)}; break;case 1:A=function(){return NW(f,M.HU)}}for(var Q=A();Q;Q=A())g3N(f,Q)}}; iuz=function(M){var f=YQ;M=g.Pw(M,function(A){return!c6X(f,A.CS.Zw)}); f.K.push.apply(f.K,g.c(M))}; xUt=function(M){var f=[];g.F0(M,function(A){lW(YQ.K,function(Q){return Q.CS.Zw===A.CS.Zw&&Q.HU===A.HU})||(YQ.K.push(A),f.push(A))})}; TH=function(){this.K=this.Z=null}; Dk=function(M){return M.K!=null}; Zub=function(M,f){function A(Q,N){f(Q,N)} if(M.Z==null)return!1;M.K=g.oR(M.Z,function(Q){return Q!=null&&Q.je()}); M.K&&(M.K.init(A)?L1z(M.K.K):f(M.K.K.cC(),M.K));return M.K!=null}; EY=function(M){M=r60(M);ER.call(this,M.length?M[M.length-1]:new N9(ho,0));this.j=M;this.Z=null}; r60=function(M){if(!M.length)return[];M=(0,g.Pw)(M,function(A){return A!=null&&A.lO()}); for(var f=1;fA.time?f:A},M[0])}; hp=function(M){M=M===void 0?ho:M;ER.call(this,new N9(M,2))}; SQ=function(){var M=n39();N9.call(this,ho.top,M,"geo")}; n39=function(){TM();var M=M9();return M.j||M.Z?0:2}; jhe=function(){}; LS=function(){this.done=!1;this.K={Lq:0,Af:0,NMk:0,mF:0,xo:-1,T6:0,X4:0,hm:0,zkk:0};this.N=null;this.G=!1;this.j=null;this.W=0;this.Z=new Qx(this)}; CS=function(){var M=oS;M.G||(M.G=!0,$Ue(M,function(){return M.C.apply(M,g.c(g.jN.apply(0,arguments)))}),M.C())}; FFc=function(){Jo(jhe);var M=Jo(TH);Dk(M)&&M.K.K?L1z(M.K.K):M9().update(ho)}; UY=function(M,f,A){if(!M.done&&(M.Z.cancel(),f.length!=0)){M.j=null;try{FFc();var Q=aK();TM().N=Q;if(Dk(Jo(TH)))for(var N=0;N=0?aK()-qT:-1,D=aK();N.K.xo==-1&&(I=D);var E=M9(),t=TM(),v=Lx(t.jc),p=IS();try{if(p.length>0){var h=E.K;h&&(v.bs=[RK(h),h.getHeight()]);var S=E.N;S&&(v.ps=[S.width,S.height]);ho.screen&&(v.scs=[ho.screen.width,ho.screen.height])}else v.url=encodeURIComponent(ho.location.href.substring(0,512)),Y.referrer&&(v.referrer=encodeURIComponent(Y.referrer.substring(0,512))); v.tt=I;v.pt=qT;v.bin=t.Z;ho.google_osd_load_pub_page_exp!==void 0&&(v.olpp=ho.google_osd_load_pub_page_exp);v.deb=[1,N.K.Lq,N.K.Af,N.K.mF,N.K.xo,0,N.Z.Z,N.K.T6,N.K.X4,N.K.hm,N.K.zkk,-1].join(";");v.tvt=dUD(N,D);E.Z&&(v.inapp=1);if(ho!==null&&ho!=ho.top){p.length>0&&(v.iframe_loc=encodeURIComponent(ho.location.href.substring(0,512)));var L=E.W;v.is=[RK(L),L.getHeight()]}}catch(a){v.error=1}oS.j=v}h=g.Q1(oS.j);S=TM().K;SE(S.j,"prf")==1?(L=new YA,N=S.K,Y=0,N.K>-1&&(Y=N.j.K.now()-N.K),L=B_(L,1,zc(N.C+ Y),0),N=S.K,L=B_(L,5,F5(N.K>-1?N.Z+1:N.Z),0),L=B_(L,2,Od(S.Z.K.j()),"0"),L=B_(L,3,Od(S.Z.K.Z()),"0"),S=B_(L,4,Od(S.Z.K.K()),"0"),L={},S=(L.pf=g.An(S.Z()),L)):S={};g.Y1(h,S);g.Y1(f,Q,A,h,M())}])}; kw0=function(){var M=but||ho;if(!M)return"";var f=[];if(!M.location||!M.location.href)return"";f.push("url="+encodeURIComponent(M.location.href.substring(0,512)));M.document&&M.document.referrer&&f.push("referrer="+encodeURIComponent(M.document.referrer.substring(0,512)));return f.join("&")}; VZ=function(){var M="youtube.player.web_20250511_22_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250511_22_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250511_22_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250511_22_RC00".match(/_(\d{8})_\d+_RC\d+$/),f;if(((f=M)==null?void 0:f.length)==2)return M[1];M="youtube.player.web_20250511_22_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var A;return((A=M)==null?void 0:A.length)==3?"20"+M[1]+M[2]:null}; WF6=function(){return"av.default_js".includes("ima_html5_sdk")?{w6:"ima",Y9:null}:"av.default_js".includes("ima_native_sdk")?{w6:"nima",Y9:null}:"av.default_js".includes("admob-native-video-javascript")?{w6:"an",Y9:null}:"youtube.player.web_20250511_22_RC00".includes("cast_js_sdk")?{w6:"cast",Y9:VZ()}:"youtube.player.web_20250511_22_RC00".includes("youtube.player.web")?{w6:"yw",Y9:VZ()}:"youtube.player.web_20250511_22_RC00".includes("outstream_web_client")?{w6:"out",Y9:VZ()}:"youtube.player.web_20250511_22_RC00".includes("drx_rewarded_web")? {w6:"r",Y9:VZ()}:"youtube.player.web_20250511_22_RC00".includes("gam_native_web_video")?{w6:"n",Y9:VZ()}:"youtube.player.web_20250511_22_RC00".includes("admob_interstitial_video")?{w6:"int",Y9:VZ()}:{w6:"j",Y9:null}}; Hg=function(M,f){var A={sv:"966"};aS!==null&&(A.v=aS);A.cb=OuD;A.nas=YQ.K.length;A.msg=M;f!==void 0&&(M=X1c(f))&&(A.e=qW[M]);return A}; mu=function(M){return Cx(M,"custom_metric_viewable")}; X1c=function(M){var f=mu(M)?"custom_metric_viewable":M.toLowerCase();return l6(MW,function(A){return A==f})}; J6D=function(){this.K=void 0;this.Z=!1;this.j=0;this.C=-1;this.N="tos"}; w16=function(M){try{var f=M.split(",");return f.length>g.Km(KFD).length?null:Xc(f,function(A,Q){Q=Q.toLowerCase().split("=");if(Q.length!=2||GwN[Q[0]]===void 0||!GwN[Q[0]](Q[1]))throw Error("Entry ("+Q[0]+", "+Q[1]+") is invalid.");A[Q[0]]=Q[1];return A},{})}catch(A){return null}}; lnb=function(M,f){if(M.K==void 0)return 0;switch(M.N){case "mtos":return M.Z?aj(f.K,M.K):aj(f.Z,M.K);case "tos":return M.Z?Vx(f.K,M.K):Vx(f.Z,M.K)}return 0}; sY=function(M,f,A,Q){dv.call(this,f,Q);this.W=M;this.X=A}; cg=function(){}; RS=function(M){dv.call(this,"fully_viewable_audible_half_duration_impression",M)}; gE=function(M){this.K=M}; Bg=function(M,f){dv.call(this,M,f)}; iZ=function(M){ey.call(this,"measurable_impression",M)}; xQ=function(){gE.apply(this,arguments)}; Zk=function(M,f,A){OR.call(this,M,f,A)}; rE=function(M){M=M===void 0?ho:M;ER.call(this,new N9(M,2))}; uZ=function(M,f,A){OR.call(this,M,f,A)}; zH=function(M){M=M===void 0?ho:M;ER.call(this,new N9(M,2))}; Pg=function(){N9.call(this,ho,2,"mraid");this.g_=0;this.KJ=this.jk=!1;this.W=null;this.Z=Ant(this.j);this.C.K=new cC(0,0,0,0);this.fJ=!1}; nS=function(M,f,A){M.M8("addEventListener",f,A)}; QKd=function(M){TM().C=!!M.M8("isViewable");nS(M,"viewableChange",Mic);M.M8("getState")==="loading"?nS(M,"ready",fpb):A96(M)}; A96=function(M){typeof M.Z.Em.AFMA_LIDAR==="string"?(M.jk=!0,NrT(M)):(M.Z.compatibility=3,M.W="nc",M.sJ("w"))}; NrT=function(M){M.KJ=!1;var f=SE(TM().jc,"rmmt")==1,A=!!M.M8("isViewable");(f?!A:1)&&GD().setTimeout(Uc(524,function(){M.KJ||(YcU(M),VV(540,Error()),M.W="mt",M.sJ("w"))}),500); Ipf(M);nS(M,M.Z.Em.AFMA_LIDAR,Tr0)}; Ipf=function(M){var f=SE(TM().jc,"sneio")==1,A=M.Z.Em.AFMA_LIDAR_EXP_1!==void 0,Q=M.Z.Em.AFMA_LIDAR_EXP_2!==void 0;(f=f&&Q)&&(M.Z.Em.AFMA_LIDAR_EXP_2=!0);A&&(M.Z.Em.AFMA_LIDAR_EXP_1=!f)}; YcU=function(M){M.M8("removeEventListener",M.Z.Em.AFMA_LIDAR,Tr0);M.jk=!1}; DT9=function(M,f){if(M.M8("getState")==="loading")return new g.za(-1,-1);f=M.M8(f);if(!f)return new g.za(-1,-1);M=parseInt(f.width,10);f=parseInt(f.height,10);return isNaN(M)||isNaN(f)?new g.za(-1,-1):new g.za(M,f)}; fpb=function(){try{var M=Jo(Pg);M.M8("removeEventListener","ready",fpb);A96(M)}catch(f){VV(541,f)}}; Tr0=function(M,f){try{var A=Jo(Pg);A.KJ=!0;var Q=M?new cC(M.y,M.x+M.width,M.y+M.height,M.x):new cC(0,0,0,0);var N=aK(),Y=AW();var I=new iW(N,Y,A);I.K=Q;I.volume=f;A.Jk(I)}catch(D){VV(542,D)}}; Mic=function(M){var f=TM(),A=Jo(Pg);M&&!f.C&&(f.C=!0,A.fJ=!0,A.W&&A.sJ("w",!0))}; jQ=function(){this.isInitialized=!1;this.K=this.Z=null;var M={};this.W=(M.start=this.HZ,M.firstquartile=this.I$,M.midpoint=this.kK,M.thirdquartile=this.CY,M.complete=this.EF,M.error=this.KY,M.pause=this.bB,M.resume=this.P0,M.skip=this.iq,M.viewable_impression=this.DE,M.mute=this.Bi,M.unmute=this.Bi,M.fullscreen=this.uq,M.exitfullscreen=this.Z8,M.fully_viewable_audible_half_duration_impression=this.DE,M.measurable_impression=this.DE,M.abandon=this.bB,M.engagedview=this.DE,M.impression=this.DE,M.creativeview= this.DE,M.progress=this.Bi,M.custom_metric_viewable=this.DE,M.bufferstart=this.bB,M.bufferfinish=this.P0,M.audio_measurable=this.DE,M.audio_audible=this.DE,M);M={};this.X=(M.overlay_resize=this.jI,M.abandon=this.w1,M.close=this.w1,M.collapse=this.w1,M.overlay_unmeasurable_impression=function(f){return fS(f,"overlay_unmeasurable_impression",AW())},M.overlay_viewable_immediate_impression=function(f){return fS(f,"overlay_viewable_immediate_impression",AW())},M.overlay_unviewable_impression=function(f){return fS(f, "overlay_unviewable_impression",AW())},M.overlay_viewable_end_of_session_impression=function(f){return fS(f,"overlay_viewable_end_of_session_impression",AW())},M); TM().Z=3;EAf(this);this.j=null}; $Q=function(M,f,A,Q){M=M.Yw(null,Q,!0,f);M.C=A;iuz([M]);return M}; ti6=function(M,f,A){uTb(f);var Q=M.K;g.F0(f,function(N){var Y=g.WP(N.criteria,function(I){var D=w16(I);if(D==null)I=null;else if(I=new J6D,D.visible!=null&&(I.K=D.visible/100),D.audible!=null&&(I.Z=D.audible==1),D.time!=null){var E=D.timetype=="mtos"?"mtos":"tos",t=bbX(D.time,"%")?"%":"ms";D=parseInt(D.time,10);t=="%"&&(D/=100);I.setTime(D,t,E)}return I}); lW(Y,function(I){return I==null})||Inf(A,new sY(N.id,N.event,Y,Q))})}; vAt=function(){var M=[],f=TM();M.push(Jo(SQ));SE(f.jc,"mvp_lv")&&M.push(Jo(Pg));f=[new rE,new zH];f.push(new EY(M));f.push(new hp(ho));return f}; pCz=function(M){if(!M.isInitialized){M.isInitialized=!0;try{var f=aK(),A=TM(),Q=M9();qT=f;A.j=79463069;M.Z!=="o"&&(but=pTT(ho));if(mV6()){oS.K.Af=0;oS.K.xo=aK()-f;var N=vAt(),Y=Jo(TH);Y.Z=N;Zub(Y,function(){FJ()})?oS.done||(y6X(),Ij(Y.K.K,M),CS()):Q.j?FJ():CS()}else yZ=!0}catch(I){throw YQ.reset(),I; }}}; eQ=function(M){oS.Z.cancel();dE=M;oS.done=!0}; bZ=function(M){if(M.Z)return M.Z;var f=Jo(TH).K;if(f)switch(f.getName()){case "nis":M.Z="n";break;case "gsv":M.Z="m"}M.Z||(M.Z="h");return M.Z}; kQ=function(M,f,A){if(M.K==null)return f.El|=4,!1;M=hX0(M.K,A,f);f.El|=M;return M==0}; FJ=function(){var M=[new hp(ho)],f=Jo(TH);f.Z=M;Zub(f,function(){eQ("i")})?oS.done||(y6X(),CS()):eQ("i")}; Scb=function(M,f){if(!M.Z9){var A=fS(M,"start",AW());A=M.FY.K(A).K;var Q={id:"lidarv"};Q.r=f;Q.sv="966";aS!==null&&(Q.v=aS);ij(A,function(N,Y){return Q[N]=N=="mtos"||N=="tos"?Y:encodeURIComponent(Y)}); f=kw0();ij(f,function(N,Y){return Q[N]=encodeURIComponent(Y)}); f="//pagead2.googlesyndication.com/pagead/gen_204?"+pX(vw(new tW,Q));RV6(f);M.Z9=!0}}; Wg=function(M,f,A){UY(oS,[M],!AW());tOX(M,A);A!=4&&E3b(M.jk,A,M.I4);return fS(M,f,AW())}; EAf=function(M){eQt(function(){var f=LR9();M.Z!=null&&(f.sdk=M.Z);var A=Jo(TH);Dk(A)&&(f.avms=A.K.getName());return f})}; oAb=function(M,f,A,Q){var N=c6X(YQ,A);N!==null&&N.HU!==f&&(M.g3(N),N=null);N||(f=M.Yw(A,aK(),!1,f),YQ.Z.length==0&&(TM().j=79463069),xUt([f]),N=f,N.C=bZ(M),Q&&(N.Ji=Q));return N}; CWb=function(M,f){var A=M[f];A!==void 0&&A>0&&(M[f]=Math.floor(A*1E3))}; LR9=function(){var M=M9(),f={},A={},Q={};return Object.assign({},(f.sv="966",f),aS!==null&&(A.v=aS,A),(Q["if"]=M.j?"1":"0",Q.nas=String(YQ.K.length),Q))}; GH=function(M){dv.call(this,"audio_audible",M)}; wE=function(M){ey.call(this,"audio_measurable",M)}; lZ=function(){gE.apply(this,arguments)}; M2=function(){}; UT0=function(M){this.K=M}; hX0=function(M,f,A){M=M.Z();if(typeof M==="function"){var Q={};var N={};Q=Object.assign({},aS!==null&&(Q.v=aS,Q),(N.sv="966",N.cb=OuD,N.e=Viz(f),N));N=fS(A,f,AW());g.Y1(Q,N);A.jt[f]=N;Q=A.Ft()==2?cT9(Q).join("&"):A.FY.K(Q).K;try{return M(A.HU,Q,f),0}catch(Y){return 2}}else return 1}; Viz=function(M){var f=mu(M)?"custom_metric_viewable":M;M=l6(MW,function(A){return A==f}); return qW[M]}; f2=function(){jQ.call(this);this.G=null;this.N=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; apd=function(M,f,A){A=A.opt_configurable_tracking_events;M.K!=null&&Array.isArray(A)&&ti6(M,A,f)}; qcN=function(M,f,A){var Q=NW(YQ,f);Q||(Q=A.opt_nativeTime||-1,Q=$Q(M,f,bZ(M),Q),A.opt_osdId&&(Q.Ji=A.opt_osdId));return Q}; HYd=function(M,f,A){var Q=NW(YQ,f);Q||(Q=$Q(M,f,"n",A.opt_nativeTime||-1));return Q}; mTf=function(M,f){var A=NW(YQ,f);A||(A=$Q(M,f,"h",-1));return A}; sKb=function(M){TM();switch(bZ(M)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; gAc=function(M,f,A,Q){A=A===void 0?{}:A;var N={};g.Y1(N,{opt_adElement:void 0,opt_fullscreen:void 0},A);var Y=M.pG(f,A);A=Y?Y.FY:M.s_();if(N.opt_bounds)return A.K(Hg("ol",Q));if(Q!==void 0)if(X1c(Q)!==void 0)if(yZ)M=Hg("ue",Q);else if(pCz(M),dE=="i")M=Hg("i",Q),M["if"]=0;else if(f=M.pG(f,N)){b:{dE=="i"&&(f.aX=!0);Y=N.opt_fullscreen;Y!==void 0&&i8(f,!!Y);var I;if(Y=!M9().Z)(Y=qV(g.ge(),"CrKey")&&!(qV(g.ge(),"CrKey")&&qV(g.ge(),"SmartSpeaker"))||qV(g.ge(),"PlayStation")||qV(g.ge(),"Roku")||hE6()||qV(g.ge(), "Xbox"))||(Y=g.ge(),Y=qV(Y,"AppleTV")||qV(Y,"Apple TV")||qV(Y,"CFNetwork")||qV(Y,"tvOS")),Y||(Y=g.ge(),Y=qV(Y,"sdk_google_atv_x86")||qV(Y,"Android TV")),Y=!Y;Y&&(GD(),Y=qQ(fX)===0);if(I=Y){switch(f.Ft()){case 1:Scb(f,"pv");break;case 2:M.pz(f)}eQ("pv")}Y=Q.toLowerCase();if(I=!I)I=SE(TM().jc,"ssmol")&&Y==="loaded"?!1:g.V9(c9e,Y);if(I&&f.Vm==0){dE!="i"&&(oS.done=!1);I=N!==void 0?N.opt_nativeTime:void 0;sc=I=typeof I==="number"?I:aK();f.jz=!0;var D=AW();f.Vm=1;f.yD={};f.yD.start=!1;f.yD.firstquartile= !1;f.yD.midpoint=!1;f.yD.thirdquartile=!1;f.yD.complete=!1;f.yD.resume=!1;f.yD.pause=!1;f.yD.skip=!1;f.yD.mute=!1;f.yD.unmute=!1;f.yD.viewable_impression=!1;f.yD.measurable_impression=!1;f.yD.fully_viewable_audible_half_duration_impression=!1;f.yD.fullscreen=!1;f.yD.exitfullscreen=!1;f.kB=0;D||(f.q4().X=I);UY(oS,[f],!D)}(I=f.pu[Y])&&jy(f.lM,I);SE(TM().jc,"fmd")||g.V9(RXD,Y)&&f.Du&&f.Du.Z(f,null);switch(f.Ft()){case 1:var E=mu(Y)?M.W.custom_metric_viewable:M.W[Y];break;case 2:E=M.X[Y]}if(E&&(Q=E.call(M, f,N,Q),SE(TM().jc,"fmd")&&g.V9(RXD,Y)&&f.Du&&f.Du.Z(f,null),Q!==void 0)){N=Hg(void 0,Y);g.Y1(N,Q);Q=N;break b}Q=void 0}f.Vm==3&&M.g3(f);M=Q}else M=Hg("nf",Q);else M=void 0;else yZ?M=Hg("ue"):Y?(M=Hg(),g.Y1(M,p1c(Y,!0,!1,!1))):M=Hg("nf");return typeof M==="string"?A.K():A.K(M)}; BrT=function(M,f){f&&(M.C=f)}; iYX=function(M){var f={};return f.viewability=M.K,f.googleViewability=M.Z,f}; xTD=function(M,f,A){A=A===void 0?{}:A;M=gAc(Jo(f2),f,A,M);return iYX(M)}; Aj=function(M,f){return(M=(new RegExp("[^#]*[?&]"+f+"=([^&#]*)")).exec(M))?M[1]:null}; QA=function(M){var f=g.jN.apply(1,arguments).filter(Boolean).join("&");if(!f)return M;var A=M.match(/[?&]adurl=/);return A?M.slice(0,A.index+1)+f+"&"+M.slice(A.index+1):M+(M.indexOf("?")<0?"?":"&")+f}; N2=function(M,f){return f?"&"+M+"="+encodeURIComponent(f):""}; ZYf=function(M){var f=M.url;M=M.jXx;this.K=f;this.j=M;this.Z=(new Date).getTime()-17040672E5}; r96=function(M){M=M.j;if(!M)return"";var f=N2("uap",M.platform)+N2("uapv",M.platformVersion)+N2("uafv",M.uaFullVersion)+N2("uaa",M.architecture)+N2("uam",M.model)+N2("uab",M.bitness);M.fullVersionList&&(f+="&uafvl="+encodeURIComponent(M.fullVersionList.map(function(A){return encodeURIComponent(A.brand)+";"+encodeURIComponent(A.version)}).join("|"))); M.wow64!=null&&(f+="&uaw="+Number(M.wow64));return f.slice(1)}; PWU=function(M,f,A,Q,N){var Y=window;var I=I===void 0?!1:I;var D;A?D=(I===void 0?0:I)?"//ep1.adtrafficquality.google/bg/"+Ul(A)+".js":"//pagead2.googlesyndication.com/bg/"+Ul(A)+".js":D="";I=I===void 0?!1:I;A=Y.document;var E={};f&&(E._scs_=f);E._bgu_=D;E._bgp_=Q;E._li_="v_h.3.0.0.0";N&&(E._upb_=N);(f=Y.GoogleTyFxhY)&&typeof f.push=="function"||(f=Y.GoogleTyFxhY=[]);f.push(E);f=e4(A).createElement("SCRIPT");f.type="text/javascript";f.async=!0;M=(I===void 0?0:I)?u0b(uoX,Ul(M)+".js"):u0b(zXT,Ul(M)+ ".js");g.tu(f,M);(Y=(Y.GoogleTyFxhYEET||{})[f.src])?Y():A.getElementsByTagName("head")[0].appendChild(f)}; nAd=function(){try{var M,f;return!!((M=window)==null?0:(f=M.top)==null?0:f.location.href)&&!1}catch(A){return!0}}; YE=function(M,f,A){A=A===void 0?Error():A;var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.code=M;f+=":";A instanceof Error?(this.message=f+A.message,this.stack=A.stack||""):(this.message=f+String(A),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; TU=function(){var M=jKU();M=M===void 0?"bevasrsg":M;return new Promise(function(f){var A=window===window.top?window:nAd()?window:window.top,Q=A[M],N;((N=Q)==null?0:N.bevasrs)?f(new I5(Q.bevasrs)):(Q||(Q={},Q=(Q.nqfbel=[],Q),A[M]=Q),Q.nqfbel.push(function(Y){f(new I5(Y))}))})}; $Tz=function(M){var f={c:M.gU,e:M.Sd,mc:M.gx,me:M.yg};M.ZF&&(f.co={c:M.ZF.f0,a:M.ZF.GM,s:M.ZF.tD});return f}; DX=function(M){g.y.call(this);this.wpc=M}; I5=function(M){g.y.call(this);var f=this;this.aI=M;this.j="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.Z=void 0;this.iG=this.aI.p;this.C=this.zm.bind(this);this.addOnDisposeCallback(function(){return void FRc(f)})}; y9b=function(M){var f;return g.n(function(A){if(A.Z==1){if(!M.aI.wpc)throw new YE(30,"NWA");return M.K?A.return(M.K):g.r(A,M.aI.wpc(),2)}f=A.K;M.K=new DX(f);return A.return(M.K)})}; FRc=function(M){M.Z!==void 0&&(M.j.forEach(function(f){var A;(A=M.Z)==null||A.removeEventListener(f,M.C)}),M.Z=void 0)}; dTd=function(M){var f=f===void 0?49:f;var A=[];FX(M,ES,6).forEach(function(Q){kV(Q,2)<=f&&A.push(kV(Q,1))}); return A}; eXX=function(M){var f=f===void 0?49:f;var A=[];FX(M,ES,6).forEach(function(Q){kV(Q,2)>f&&A.push(kV(Q,1))}); return A}; bYD=function(M){M.then(function(){},function(){})}; tj=function(){g.y.apply(this,arguments);this.C=1;this[kMe]=this.dispose}; vR=function(M){return{fieldType:2,fieldName:M}}; g.p2=function(M){return{fieldType:3,fieldName:M}}; WRd=function(M){this.K=M;M.K0("/client_streamz/bg/frs",g.p2("mk"))}; OYt=function(M){this.K=M;M.K0("/client_streamz/bg/wrl",g.p2("mn"),vR("ac"),vR("sc"),g.p2("rk"),g.p2("mk"))}; XC6=function(M){this.K=M;M.jT("/client_streamz/bg/ec",g.p2("en"),g.p2("mk"))}; J9z=function(M){this.K=M;M.K0("/client_streamz/bg/el",g.p2("en"),g.p2("mk"))}; KRf=function(M){this.K=M;M.jT("/client_streamz/bg/cec",vR("ec"),g.p2("mk"))}; GMb=function(M){this.K=M;M.jT("/client_streamz/bg/po/csc",vR("cs"),g.p2("mk"))}; wCb=function(M){this.K=M;M.jT("/client_streamz/bg/po/ctav",g.p2("av"),g.p2("mk"))}; lp9=function(M){this.K=M;M.jT("/client_streamz/bg/po/cwsc",g.p2("su"),g.p2("mk"))}; Myd=function(M){this.E$=v_(M)}; fxT=function(M,f){return j9f(M,f,DuT)}; hj=function(M){this.E$=v_(M)}; SR=function(M){this.E$=v_(M)}; L2=function(M){this.E$=v_(M)}; o5=function(M){this.E$=v_(M)}; AWT=function(M){this.E$=v_(M)}; g.YR0=function(M){var f=new o5;f=wn(f,1,M.Z);var A=QjX(M);f=j9f(f,A,aeT);A=[];for(var Q=[],N=g.V(M.K.keys()),Y=N.next();!Y.done;Y=N.next())Q.push(Y.value.split(","));for(N=0;N>>31)&4294967295;p=N[0];var L=N[1],a=N[2],q=N[3],m=N[4];for(S=0;S<80;S++){if(S<40)if(S<20){var R=q^L&(a^q);var u=1518500249}else R=L^a^q,u=1859775393;else S<60?(R=L&a|q&(L|a),u=2400959708):(R=L^a^q,u=3395469782);R=((p<<5|p>>>27)&4294967295)+R+m+u+h[S]&4294967295;m=q;q=a;a=(L<<30|L>>>2)&4294967295;L=p;p=R}N[0]=N[0]+p&4294967295;N[1]=N[1]+L&4294967295;N[2]= N[2]+a&4294967295;N[3]=N[3]+q&4294967295;N[4]=N[4]+m&4294967295} function A(p,h){if(typeof p==="string"){p=unescape(encodeURIComponent(p));for(var S=[],L=0,a=p.length;L=56;S--)Y[S]=h&255,h>>>=8;f(Y);for(S=h=0;S<5;S++)for(var L=24;L>=0;L-=8)p[h++]=N[S]>>L&255;return p} for(var N=[],Y=[],I=[],D=[128],E=1;E<64;++E)D[E]=0;var t,v;M();return{reset:M,update:A,digest:Q,Ii:function(){for(var p=Q(),h="",S=0;S1)));I=I.next)N||(Y=I);N&&(A.K==0&&Q==1?Apt(A,f):(Y?(Q=Y,Q.next==A.C&&(A.C=Q),Q.next=Q.next.next):QSd(A),NED(A,N,3,f)))}M.j=null}else RQ(M,3,f)}; PW=function(M,f){M.Z||M.K!=2&&M.K!=3||YYD(M);M.C?M.C.next=f:M.Z=f;M.C=f}; Ik9=function(M,f,A,Q){var N=BW(null,null,null);N.K=new g.g1(function(Y,I){N.j=f?function(D){try{var E=f.call(Q,D);Y(E)}catch(t){I(t)}}:Y; N.Z=A?function(D){try{var E=A.call(Q,D);E===void 0&&D instanceof j_?I(D):Y(E)}catch(t){I(t)}}:I}); N.K.j=M;PW(M,N);return N.K}; RQ=function(M,f,A){M.K==0&&(M===A&&(f=3,A=new TypeError("Promise cannot resolve to itself")),M.K=1,ww6(A,M.Tfx,M.hkO,M)||(M.W=A,M.K=f,M.j=null,YYD(M),f!=3||A instanceof j_||TE9(M,A)))}; ww6=function(M,f,A,Q){if(M instanceof g.g1)return fk0(M,f,A,Q),!0;if(M)try{var N=!!M.$goog_Thenable}catch(I){N=!1}else N=!1;if(N)return M.then(f,A,Q),!0;if(g.Q9(M))try{var Y=M.then;if(typeof Y==="function")return DWz(M,Y,f,A,Q),!0}catch(I){return A.call(Q,I),!0}return!1}; DWz=function(M,f,A,Q,N){function Y(E){D||(D=!0,Q.call(N,E))} function I(E){D||(D=!0,A.call(N,E))} var D=!1;try{f.call(M,I,Y)}catch(E){Y(E)}}; YYD=function(M){M.G||(M.G=!0,g.cW(M.qJ,M))}; QSd=function(M){var f=null;M.Z&&(f=M.Z,M.Z=f.next,f.next=null);M.Z||(M.C=null);return f}; NED=function(M,f,A,Q){if(A==3&&f.Z&&!f.C)for(;M&&M.N;M=M.j)M.N=!1;if(f.K)f.K.j=null,EQe(f,A,Q);else try{f.C?f.j.call(f.context):EQe(f,A,Q)}catch(N){tQb.call(null,N)}bXb(G$t,f)}; EQe=function(M,f,A){f==2?M.j.call(M.context,A):M.Z&&M.Z.call(M.context,A)}; TE9=function(M,f){M.N=!0;g.cW(function(){M.N&&tQb.call(null,f)})}; j_=function(M){hB.call(this,M)}; g.$M=function(M,f){g.Lz.call(this);this.du=M||1;this.Rj=f||g.Kb;this.XX=(0,g.IR)(this.Gbi,this);this.O9=g.EB()}; g.Fd=function(M,f,A){if(typeof M==="function")A&&(M=(0,g.IR)(M,A));else if(M&&typeof M.handleEvent=="function")M=(0,g.IR)(M.handleEvent,M);else throw Error("Invalid listener argument");return Number(f)>2147483647?-1:g.Kb.setTimeout(M,f||0)}; yX=function(M,f){var A=null;return(new g.g1(function(Q,N){A=g.Fd(function(){Q(f)},M); A==-1&&N(Error("Failed to schedule timer."))})).BU(function(Q){g.Kb.clearTimeout(A); throw Q;})}; g.d1=function(M){g.y.call(this);this.W=M;this.C=0;this.j=100;this.N=!1;this.Z=new Map;this.G=new Set;this.flushInterval=3E4;this.K=new g.$M(this.flushInterval);this.K.listen("tick",this.Aw,!1,this);g.d(this,this.K)}; vQf=function(M){M.K.enabled||M.K.start();M.C++;M.C>=M.j&&M.Aw()}; pgf=function(M,f){return M.G.has(f)?void 0:M.Z.get(f)}; h99=function(M){for(var f=0;f2?M.K.statusText:""}catch(A){f=""}M.C=f+" ["+M.getStatus()+"]";sS0(M)}}finally{Xd(M)}}}; Xd=function(M,f){if(M.K){M.G&&(clearTimeout(M.G),M.G=null);var A=M.K;M.K=null;f||M.dispatchEvent("ready");try{A.onreadystatechange=null}catch(Q){}}}; Gg=function(M){var f=M.getStatus();a:switch(f){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var A=!0;break a;default:A=!1}if(!A){if(f=f===0)M=g.cP(String(M.X))[1]||null,!M&&g.Kb.self&&g.Kb.self.location&&(M=g.Kb.self.location.protocol.slice(0,-1)),f=!gQ0.test(M?M.toLowerCase():"");A=f}return A}; g.Kz=function(M){return M.K?M.K.readyState:0}; g.w1=function(M){try{return M.K?M.K.responseText:""}catch(f){return""}}; g.l4=function(M){try{if(!M.K)return null;if("response"in M.K)return M.K.response;switch(M.P7){case "":case "text":return M.K.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in M.K)return M.K.mozResponseArrayBuffer}return null}catch(f){return null}}; g.BEz=function(M){var f={};M=(M.K&&g.Kz(M)>=2?M.K.getAllResponseHeaders()||"":"").split("\r\n");for(var A=0;A>1,f),ci(M,M.length>>1)]}; Ti9=function(M){var f=g.V(IXU(M,Rc));M=f.next().value;f=f.next().value;return M.toString(16)+f.toString(16)}; D2X=function(M,f){var A=IXU(f);M=new Uint32Array(M.buffer);f=M[0];var Q=g.V(A);A=Q.next().value;Q=Q.next().value;for(var N=1;N>>8|I<<24,I+=Y|0,I^=D+38293,Y=Y<<3|Y>>>29,Y^=I,E=E>>>8|E<<24,E+=D|0,E^=t+38293,D=D<<3|D>>>29,D^=E;Y=[Y,I];M[N]^=Y[0];N+1=A?(globalThis.sessionStorage.removeItem(M),["e"]):["a",new Uint8Array(Q.buffer,f+4)]}; Bi=function(M,f,A){A=A===void 0?[]:A;this.maxItems=M;this.K=f===void 0?0:f;this.Z=A}; vET=function(M){var f=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!f)return new Bi(M);var A=f.split(",");if(A.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Bi(M);f=A.slice(1);f.length===1&&f[0]===""&&(f=[]);A=Number(A[0]);return isNaN(A)||A<0||A>f.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Bi(M)):new Bi(M,A,f)}; pRb=function(M,f){this.logger=f;try{var A=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Q){A=!1}A&&(this.index=vET(M))}; hlb=function(M,f,A,Q,N){var Y=M.index?YW(M.logger,function(){return EEX(M.index,Ti9(f),A,Q,N)},"W"):"u"; M.logger.K7(Y)}; SST=function(M,f,A){var Q=g.V(M.index?YW(M.logger,function(){return tRz(Ti9(f),A)},"R"):["u"]),N=Q.next().value; Q=Q.next().value;M.logger.Qj(N);return Q}; CEe=function(M){function f(){A-=Q;A-=N;A^=N>>>13;Q-=N;Q-=A;Q^=A<<8;N-=A;N-=Q;N^=Q>>>13;A-=Q;A-=N;A^=N>>>12;Q-=N;Q-=A;Q^=A<<16;N-=A;N-=Q;N^=Q>>>5;A-=Q;A-=N;A^=N>>>3;Q-=N;Q-=A;Q^=A<<10;N-=A;N-=Q;N^=Q>>>15} M=Lb0(M);for(var A=2654435769,Q=2654435769,N=314159265,Y=M.length,I=Y,D=0;I>=12;I-=12,D+=12)A+=iR(M,D),Q+=iR(M,D+4),N+=iR(M,D+8),f();N+=Y;switch(I){case 11:N+=M[D+10]<<24;case 10:N+=M[D+9]<<16;case 9:N+=M[D+8]<<8;case 8:Q+=M[D+7]<<24;case 7:Q+=M[D+6]<<16;case 6:Q+=M[D+5]<<8;case 5:Q+=M[D+4];case 4:A+=M[D+3]<<24;case 3:A+=M[D+2]<<16;case 2:A+=M[D+1]<<8;case 1:A+=M[D+0]}f();return oEb.toString(N)}; Lb0=function(M){for(var f=[],A=0;A>7,M.error.code]);Q.set(A,4);return Q}; $W=function(M,f,A){xW.call(this,M);this.C=f;this.clientState=A;this.K="S";this.Z="q"}; jM=function(M){return globalThis.TextEncoder?(new TextEncoder).encode(M):g.fa(M)}; aXf=function(M,f,A){return M instanceof ql?OS0(M,A,f,1):M.NK(A)}; yO=function(M){g.y.call(this);var f=this;this.j=new g.LB;this.C=0;this.Z=void 0;this.state=2;this.aI=M.aI;this.Pb=M.Pb;this.WI=Object.assign({},qS0,M.WI||{});this.logger=M.aI.zC();var A;this.onError=(A=M.onError)!=null?A:function(){}; this.A_=M.A_||!1;if(H2D(M)){var Q=this.aI;this.N=function(){return wge(Q).catch(function(I){I=f.reportError(new YE(f.K?20:32,"TRG:Disposed",I));f.Z=I;var D;(D=f.K)==null||D.dispose();f.K=void 0;f.j.reject(I)})}; lk9(Q,function(){return void Fj(f)}); Q.X===2&&Fj(this)}else this.N=M.jG7,Fj(this);var N=this.logger.share();N.Pq("o");var Y=new QO(N,"o");this.j.promise.then(function(){Y.done();N.zF();N.dispose()},function(){return void N.dispose()}); this.addOnDisposeCallback(function(){f.K?(f.K.dispose(),f.K=void 0):f.Z?f.logger.zF():(f.Z=f.reportError(new YE(32,"TNP:Disposed")),f.logger.zF(),f.j.reject(f.Z))}); g.d(this,this.logger)}; m2c=function(M,f){if(!(f instanceof YE))if(f instanceof e_){var A=Error(f.toString());A.stack=f.stack;f=new YE(11,"EBH:Error",A)}else f=new YE(12,"BSO:Unknown",f);return M.reportError(f)}; Fj=function(M){var f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a;return g.n(function(q){switch(q.Z){case 1:f=void 0;M.C++;A=new g.LB;M.aI instanceof Hi&&M.aI.C.push(A.promise);if(!M.A_){q.CJ(2);break}Q=new g.LB;setTimeout(function(){return void Q.resolve()}); return g.r(q,Q.promise,2);case 2:return N=M.logger.share(),g.HX(q,4,5),M.state=5,Y={},I=[],g.r(q,sJ(M.aI.snapshot({gU:Y,Cv:I}),M.WI.kbJ,function(){return Promise.reject(new YE(15,"MDA:Timeout"))}),7); case 7:D=q.K;if(M.ek())throw new YE(M.K?20:32,"MDA:Disposed");E=I[0];M.state=6;return g.r(q,sJ(aXf(M.Pb,N,D),M.WI.Y_,function(){return Promise.reject(new YE(10,"BWB:Timeout"))}),8); case 8:t=q.K;if(M.ek())throw new YE(M.K?20:32,"BWB:Disposed");M.state=7;f=YW(N,function(){var R=s5N(M,t,A,E);R.j.promise.then(function(){return void M.N()}); return R},"i"); case 5:g.ZU(q);N.dispose();g.ud(q,6);break;case 4:v=g.id(q);(p=f)==null||p.dispose();if(!M.Z){h=m2c(M,v);A.resolve();var m;if(m=M.aI instanceof Hi&&M.C<2)a:if(v instanceof YE)m=v.code!==32&&v.code!==20&&v.code!==10;else{if(v instanceof e_)switch(v.code){case 2:case 13:case 14:case 4:break;default:m=!1;break a}m=!0}if(m)return S=(1+Math.random()*.25)*(M.K?6E4:1E3),L=setTimeout(function(){return void M.N()},S),M.addOnDisposeCallback(function(){return void clearTimeout(L)}),q.return(); M.Z=h}N.qm(M.K?13:14);M.j.reject(M.Z);return q.return();case 6:M.state=8,M.C=0,(a=M.K)==null||a.dispose(),M.K=f,M.j.resolve(),g.qc(q)}})}; s5N=function(M,f,A,Q){var N=W_(f,2)*1E3;if(N<=0)throw new YE(31,"TTM:Invalid");if(Og(f,4))return new Pi(M.logger,Og(f,4),N);if(!W_(f,3))return new zY(M.logger,tn(gn(f,1)),N);if(!Q)throw new YE(4,"PMD:Undefined");Q=Q(tn(gn(f,1)));if(!(Q instanceof Function))throw new YE(16,"APF:Failed");M.G=Math.floor((Date.now()+N)/1E3);M=new uR(M.logger,Q,W_(f,3),N);M.addOnDisposeCallback(function(){return void A.resolve()}); return M}; cjd=function(M,f){f=f instanceof YE?f:new YE(5,"TVD:error",f);return M.reportError(f)}; x20=function(M,f,A){try{if(M.ek())throw new YE(21,"BNT:disposed");if(!M.K&&M.Z)throw M.Z;var Q,N;return(N=(Q=Rlb(M,f,A))!=null?Q:gE0(M,f,A))!=null?N:BiD(M,f,A)}catch(Y){if(!f.yg)throw cjd(M,Y);return i2T(M,A,Y)}}; Rlb=function(M,f,A){var Q;return(Q=M.K)==null?void 0:ra(Q,function(){return da(M,f)},A,function(N){var Y; if(M.K instanceof uR&&((Y=f.ZF)==null?0:Y.tD))try{var I;(I=M.cache)==null||hlb(I,da(M,f),N,f.ZF.f0,M.G-120)}catch(D){M.reportError(new YE(24,"ELX:write",D))}})}; gE0=function(M,f,A){var Q;if((Q=f.ZF)!=null&&Q.GM)try{var N,Y=(N=M.cache)==null?void 0:SST(N,da(M,f),f.ZF.f0);return Y?A?YW(M.logger,function(){return g.An(Y,2)},"a"):Y:void 0}catch(I){M.reportError(new YE(23,"RXO:read",I))}}; BiD=function(M,f,A){var Q={stack:[],error:void 0,hasError:!1};try{if(!f.gx)throw new YE(29,"SDF:notready");return ra(Cdt(Q,new $W(M.logger,0,M.state)),function(){return da(M,f)},A)}catch(N){Q.error=N,Q.hasError=!0}finally{Ucb(Q)}}; i2T=function(M,f,A){var Q={stack:[],error:void 0,hasError:!1};try{var N=cjd(M,A);return ra(Cdt(Q,new nB(M.logger,N)),function(){return[]},f)}catch(Y){Q.error=Y,Q.hasError=!0}finally{Ucb(Q)}}; da=function(M,f){return f.Sd?f.Sd:f.gU?YW(M.logger,function(){return f.Sd=jM(f.gU)},"c"):[]}; eM=function(){var M=0,f;return function(A){f||(f=new Ic);var Q=new $W(f,M,1),N=ra(Q,function(){return jM(A)},!0); Q.dispose();M++;return N}}; bR=function(M){this.E$=v_(M)}; Z20=function(M,f,A){this.uo=M;this.po=f;this.metadata=A}; kW=function(M,f){f=f===void 0?{}:f;this.nxu=M;this.metadata=f;this.status=null}; Wi=function(M,f,A,Q,N){this.name=M;this.methodType="unary";this.requestType=f;this.responseType=A;this.K=Q;this.Z=N}; OJ=function(M){this.E$=v_(M)}; Xj=function(M){this.E$=v_(M)}; Jw=function(M){this.E$=v_(M)}; KB=function(M,f){this.W=M.nON;this.X=f;this.K=M.xhr;this.j=[];this.N=[];this.G=[];this.C=[];this.Z=[];this.W&&rjt(this)}; nE0=function(M,f){var A=new uC6;g.IQ(M.K,"complete",function(){if(Gg(M.K)){var Q=g.w1(M.K);if(f&&M.K.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Q=atob(Q)}try{var N=M.X(Q)}catch(D){GY(M,wa(new e_(13,"Error when deserializing response data; error: "+D+(", response: "+Q)),A));return}Q=SY0(M.K.getStatus());lR(M,Ms(M));Q==0?zlD(M,N):GY(M,wa(new e_(Q,"Xhr succeeded but the status code is not 200"),A))}else{Q=g.w1(M.K);N=Ms(M);if(Q){var Y=PEb(M, Q);Q=Y.code;var I=Y.details;Y=Y.metadata}else Q=2,I="Rpc failed due to xhr error. uri: "+String(M.K.X)+", error code: "+M.K.Z+", error: "+M.K.getLastError(),Y=N;lR(M,N);GY(M,wa(new e_(Q,I,Y),A))}})}; rjt=function(M){M.W.dM("data",function(f){if("1"in f){var A=f["1"];try{var Q=M.X(A)}catch(N){GY(M,new e_(13,"Error when deserializing response data; error: "+N+(", response: "+A)))}Q&&zlD(M,Q)}if("2"in f)for(f=PEb(M,f["2"]),A=0;A-1&&M.splice(f,1)}; zlD=function(M,f){for(var A=0;A>4&15).toString(16)+(M&15).toString(16)}; elt=function(M){return M.replace(/%25([0-9a-fA-F]{2})/g,"%$1")}; pl=function(M,f){this.Z=this.K=null;this.j=M||null;this.C=!!f}; om=function(M){M.K||(M.K=new Map,M.Z=0,M.j&&ij(M.j,function(f,A){M.add(Cg(f),A)}))}; b2b=function(M,f){om(M);f=Cl(M,f);return M.K.has(f)}; g.kUb=function(M,f,A){M.remove(f);A.length>0&&(M.j=null,M.K.set(Cl(M,f),g.sB(A)),M.Z=M.Z+A.length)}; Cl=function(M,f){f=String(f);M.C&&(f=f.toLowerCase());return f}; Fbz=function(M,f){f&&!M.C&&(om(M),M.j=null,M.K.forEach(function(A,Q){var N=Q.toLowerCase();Q!=N&&(this.remove(Q),g.kUb(this,N,A))},M)); M.C=f}; g.Wbe=function(M){var f="";g.ew(M,function(A,Q){f+=Q;f+=":";f+=A;f+="\r\n"}); return f}; g.Uk=function(M,f,A){if(g.MV(A))return M;A=g.Wbe(A);if(typeof M==="string")return zD(M,g.o9(f),A);g.SF(M,f,A);return M}; g.Vp=function(M){g.y.call(this);this.Z=M;this.K={}}; O2b=function(M,f,A,Q,N,Y){if(Array.isArray(A))for(var I=0;I=0)return!0;try{var f=new g.Im(M)}catch(A){return g.oR(EMe,function(Q){return M.search(Q)>0})!=null}return f.G.match(t_T)?!0:g.oR(EMe,function(A){return M.match(A)!=null})!=null}; g.z3=function(M,f){return M.replace(pWe,function(A,Q){try{var N=g.fx(f,Q);if(N==null||N.toString()==null)return A;N=N.toString();if(N==""||!g.V1(g.a9(N)))return encodeURIComponent(N).replace(/%2C/g,",")}catch(Y){}return A})}; PL=function(M,f){return Object.is(M,f)}; jF=function(M){var f=nl;nl=M;return f}; hg6=function(M){if(M.Nm!==void 0){var f=$6;$6=!0;try{for(var A=g.V(M.Nm),Q=A.next();!Q.done;Q=A.next()){var N=Q.value;N.f6||(M=void 0,N.f6=!0,hg6(N),(M=N.kQ)==null||M.call(N,N))}}finally{$6=f}}}; Snt=function(){var M;return((M=nl)==null?void 0:M.IW)!==!1}; LC0=function(M){M&&(M.GB=0);return jF(M)}; oMT=function(M,f){jF(f);if(M&&M.UJ!==void 0&&M.mJ!==void 0&&M.oS!==void 0){if(Fy(M))for(f=M.GB;fM.GB;)M.UJ.pop(),M.oS.pop(),M.mJ.pop()}}; U76=function(M,f,A){C40(M);if(M.Nm.length===0&&M.UJ!==void 0)for(var Q=0;Q0}; V_9=function(M){M.UJ!=null||(M.UJ=[]);M.mJ!=null||(M.mJ=[]);M.oS!=null||(M.oS=[])}; C40=function(M){M.Nm!=null||(M.Nm=[]);M.Qz!=null||(M.Qz=[])}; qnb=function(M){function f(){if($6)throw Error("");if(nl!==null){var Q=nl.GB++;V_9(nl);Q0?" "+f:f))}}; g.vv=function(M,f){if(M.classList)Array.prototype.forEach.call(f,function(N){g.tZ(M,N)}); else{var A={};Array.prototype.forEach.call(Ti(M),function(N){A[N]=!0}); Array.prototype.forEach.call(f,function(N){A[N]=!0}); f="";for(var Q in A)f+=f.length>0?" "+Q:Q;g.Dg(M,f)}}; g.p5=function(M,f){M.classList?M.classList.remove(f):g.ED(M,f)&&g.Dg(M,Array.prototype.filter.call(Ti(M),function(A){return A!=f}).join(" "))}; g.hZ=function(M,f){M.classList?Array.prototype.forEach.call(f,function(A){g.p5(M,A)}):g.Dg(M,Array.prototype.filter.call(Ti(M),function(A){return!g.V9(f,A)}).join(" "))}; g.Sb=function(M,f,A){A?g.tZ(M,f):g.p5(M,f)}; Zzc=function(M,f){var A=!g.ED(M,f);g.Sb(M,f,A)}; g.L5=function(){g.Lz.call(this);this.K=0;this.endTime=this.startTime=null}; r_t=function(M,f){Array.isArray(f)||(f=[f]);f=f.map(function(A){return typeof A==="string"?A:A.property+" "+A.duration+"s "+A.timing+" "+A.delay+"s"}); g.ji(M,"transition",f.join(","))}; oA=function(M,f,A,Q,N){g.L5.call(this);this.Z=M;this.N=f;this.G=A;this.C=Q;this.W=Array.isArray(N)?N:[N]}; udX=function(M,f,A,Q){return new oA(M,f,{opacity:A},{opacity:Q},{property:"opacity",duration:f,timing:"ease-in",delay:0})}; P4e=function(M){M=HT(M);if(M=="")return null;var f=String(M.slice(0,4)).toLowerCase();if(("url("1||M&&M.split(")"),null;if(M.indexOf("(")>0){if(/"|'/.test(M))return null;f=/([\-\w]+)\(/g;for(var A;A=f.exec(M);)if(!(A[1].toLowerCase()in zg9))return null}return M}; C5=function(M,f){M=g.Kb[M];return M&&M.prototype?(f=Object.getOwnPropertyDescriptor(M.prototype,f))&&f.get||null:null}; nM0=function(M){var f=g.Kb.CSSStyleDeclaration;return f&&f.prototype&&f.prototype[M]||null}; jQz=function(M,f,A,Q){if(M)return M.apply(f,Q);if(g.UD&&document.documentMode<10){if(!f[A].call)throw Error("IE Clobbering detected");}else if(typeof f[A]!="function")throw Error("Clobbering detected");return f[A].apply(f,Q)}; egU=function(M){if(!M)return"";var f=document.createElement("div").style;$7c(M).forEach(function(A){var Q=g.Kg&&A in FCc?A:A.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Cx(Q,"--")||Cx(Q,"var")||(A=jQz(y_D,M,M.getPropertyValue?"getPropertyValue":"getAttribute",[A])||"",A=P4e(A),A!=null&&jQz(d7d,f,f.setProperty?"setProperty":"setAttribute",[Q,A]))}); return f.cssText||""}; $7c=function(M){g.AB(M)?M=g.sB(M):(M=g.Km(M),g.qm(M,"cssText"));return M}; g.aA=function(M){var f,A=f=0,Q=!1;M=M.split(bzb);for(var N=0;N.4?-1:1;return(f==0?null:f)==-1?"rtl":"ltr"}; g.sD=function(M){if(M instanceof qY||M instanceof Hv||M instanceof ms)return M;if(typeof M.next=="function")return new qY(function(){return M}); if(typeof M[Symbol.iterator]=="function")return new qY(function(){return M[Symbol.iterator]()}); if(typeof M.uL=="function")return new qY(function(){return M.uL()}); throw Error("Not an iterator or iterable.");}; qY=function(M){this.Z=M}; Hv=function(M){this.Z=M}; ms=function(M){qY.call(this,function(){return M}); this.j=M}; cv=function(M,f,A,Q,N,Y,I,D){this.K=M;this.W=f;this.j=A;this.N=Q;this.C=N;this.G=Y;this.Z=I;this.X=D}; RA=function(M,f){if(f==0)return M.K;if(f==1)return M.Z;var A=Ze(M.K,M.j,f),Q=Ze(M.j,M.C,f);M=Ze(M.C,M.Z,f);A=Ze(A,Q,f);Q=Ze(Q,M,f);return Ze(A,Q,f)}; XWt=function(M,f){var A=(f-M.K)/(M.Z-M.K);if(A<=0)return 0;if(A>=1)return 1;for(var Q=0,N=1,Y=0,I=0;I<8;I++){Y=RA(M,A);var D=(RA(M,A+1E-6)-Y)/1E-6;if(Math.abs(Y-f)<1E-6)return A;if(Math.abs(D)<1E-6)break;else Y1E-6&&I<8;I++)Y=0}; g.x2=function(M){g.y.call(this);this.G=1;this.j=[];this.C=0;this.K=[];this.Z={};this.W=!!M}; KCU=function(M,f,A){g.cW(function(){M.apply(f,A)})}; g.Zg=function(M){this.K=M}; rP=function(M){this.K=M}; Gge=function(M){this.data=M}; wWt=function(M){return M===void 0||M instanceof Gge?M:new Gge(M)}; ur=function(M){this.K=M}; g.l2t=function(M){var f=M.creation;M=M.expiration;return!!M&&Mg.EB()}; g.zi=function(M){this.K=M}; MMD=function(){}; Pv=function(){}; n5=function(M){this.K=M;this.Z=null}; jb=function(M){if(M.K==null)throw Error("Storage mechanism: Storage unavailable");var f;(fR9?M.isAvailable():(f=M.Z)!=null?f:M.isAvailable())||MM(Error("Storage mechanism: Storage unavailable"))}; $2=function(){var M=null;try{M=g.Kb.localStorage||null}catch(f){}n5.call(this,M)}; AwN=function(){var M=null;try{M=g.Kb.sessionStorage||null}catch(f){}n5.call(this,M)}; Fr=function(M,f){this.Z=M;this.K=f+"::"}; g.yI=function(M){var f=new $2;return f.isAvailable()?M?new Fr(f,M):f:null}; dP=function(M,f){this.K=M;this.Z=f}; eb=function(M){this.K=[];if(M)a:{if(M instanceof eb){var f=M.Ou();M=M.yM();if(this.K.length<=0){for(var A=this.K,Q=0;Q>>6:(Y<65536?D[A++]=224|Y>>>12:(D[A++]=240|Y>>>18,D[A++]=128|Y>>>12&63),D[A++]=128|Y>>> 6&63),D[A++]=128|Y&63);return D}; OD=function(M){for(var f=M.length;--f>=0;)M[f]=0}; Xr=function(M,f,A,Q,N){this.Kl=M;this.WW=f;this.Ri=A;this.pP=Q;this.u38=N;this.b_=M&&M.length}; JZ=function(M,f){this.Gf=M;this.m4=0;this.B5=f}; K5=function(M,f){M.y4[M.pending++]=f&255;M.y4[M.pending++]=f>>>8&255}; Gi=function(M,f,A){M.VD>16-A?(M.m2|=f<>16-M.VD,M.VD+=A-16):(M.m2|=f<>>=1,A<<=1;while(--f>0);return A>>>1}; Tad=function(M,f,A){var Q=Array(16),N=0,Y;for(Y=1;Y<=15;Y++)Q[Y]=N=N+A[Y-1]<<1;for(A=0;A<=f;A++)N=M[A*2+1],N!==0&&(M[A*2]=IRU(Q[N]++,N))}; DlN=function(M){var f;for(f=0;f<286;f++)M.pS[f*2]=0;for(f=0;f<30;f++)M.Hb[f*2]=0;for(f=0;f<19;f++)M.DX[f*2]=0;M.pS[512]=1;M.t5=M.Xr=0;M.ND=M.matches=0}; EWX=function(M){M.VD>8?K5(M,M.m2):M.VD>0&&(M.y4[M.pending++]=M.m2);M.m2=0;M.VD=0}; tMT=function(M,f,A){EWX(M);K5(M,A);K5(M,~A);Wv.Y5(M.y4,M.window,f,A,M.pending);M.pending+=A}; vWU=function(M,f,A,Q){var N=f*2,Y=A*2;return M[N]>>7)];wP(M,I,A);D=N4[I];D!==0&&(N-=YS[I],Gi(M,N,D))}}while(Q>1;I>=1;I--)lr(M,A,I);E=Y;do I=M.V4[1],M.V4[1]=M.V4[M.wz--],lr(M,A,1),Q=M.V4[1],M.V4[--M.Jt]=I,M.V4[--M.Jt]=Q,A[E*2]=A[I*2]+A[Q*2],M.depth[E]=(M.depth[I]>=M.depth[Q]?M.depth[I]:M.depth[Q])+1,A[I*2+1]=A[Q*2+1]=E,M.V4[1]=E++,lr(M,A,1);while(M.wz>= 2);M.V4[--M.Jt]=M.V4[1];I=f.Gf;E=f.m4;Q=f.B5.Kl;N=f.B5.b_;Y=f.B5.WW;var t=f.B5.Ri,v=f.B5.u38,p,h=0;for(p=0;p<=15;p++)M.zJ[p]=0;I[M.V4[M.Jt]*2+1]=0;for(f=M.Jt+1;f<573;f++){var S=M.V4[f];p=I[I[S*2+1]*2+1]+1;p>v&&(p=v,h++);I[S*2+1]=p;if(!(S>E)){M.zJ[p]++;var L=0;S>=t&&(L=Y[S-t]);var a=I[S*2];M.t5+=a*(p+L);N&&(M.Xr+=a*(Q[S*2+1]+L))}}if(h!==0){do{for(p=v-1;M.zJ[p]===0;)p--;M.zJ[p]--;M.zJ[p+1]+=2;M.zJ[v]--;h-=2}while(h>0);for(p=v;p!==0;p--)for(S=M.zJ[p];S!==0;)Q=M.V4[--f],Q>E||(I[Q*2+1]!==p&&(M.t5+=(p- I[Q*2+1])*I[Q*2],I[Q*2+1]=p),S--)}Tad(A,D,M.zJ)}; h26=function(M,f,A){var Q,N=-1,Y=f[1],I=0,D=7,E=4;Y===0&&(D=138,E=3);f[(A+1)*2+1]=65535;for(Q=0;Q<=A;Q++){var t=Y;Y=f[(Q+1)*2+1];++I>>=1)if(f&1&&M.pS[A*2]!==0)return 0;if(M.pS[18]!==0||M.pS[20]!==0||M.pS[26]!==0)return 1;for(A=32;A<256;A++)if(M.pS[A*2]!==0)return 1;return 0}; TR=function(M,f,A){M.y4[M.dF+M.ND*2]=f>>>8&255;M.y4[M.dF+M.ND*2+1]=f&255;M.y4[M.Ui+M.ND]=A&255;M.ND++;f===0?M.pS[A*2]++:(M.matches++,f--,M.pS[(M4[A]+256+1)*2]++,M.Hb[(f<256?QE[f]:QE[256+(f>>>7)])*2]++);return M.ND===M.Wk-1}; EG=function(M,f){M.msg=DS[f];return f}; t3=function(M){for(var f=M.length;--f>=0;)M[f]=0}; vJ=function(M){var f=M.state,A=f.pending;A>M.bl&&(A=M.bl);A!==0&&(Wv.Y5(M.output,f.y4,f.y8,A,M.Rv),M.Rv+=A,f.y8+=A,M.N2+=A,M.bl-=A,f.pending-=A,f.pending===0&&(f.y8=0))}; So=function(M,f){var A=M.zH>=0?M.zH:-1,Q=M.Ck-M.zH,N=0;if(M.level>0){M.Yz.tq===2&&(M.Yz.tq=LBN(M));Ib(M,M.bA);Ib(M,M.AA);h26(M,M.pS,M.bA.m4);h26(M,M.Hb,M.AA.m4);Ib(M,M.Jf);for(N=18;N>=3&&M.DX[oW9[N]*2+1]===0;N--);M.t5+=3*(N+1)+5+5+4;var Y=M.t5+3+7>>>3;var I=M.Xr+3+7>>>3;I<=Y&&(Y=I)}else Y=I=Q+5;if(Q+4<=Y&&A!==-1)Gi(M,f?1:0,3),tMT(M,A,Q);else if(M.strategy===4||I===Y)Gi(M,2+(f?1:0),3),piX(M,p4,h3);else{Gi(M,4+(f?1:0),3);A=M.bA.m4+1;Q=M.AA.m4+1;N+=1;Gi(M,A-257,5);Gi(M,Q-1,5);Gi(M,N-4,4);for(Y=0;Y>>8&255;M.y4[M.pending++]=f&255}; CRb=function(M,f){var A=M.uh,Q=M.Ck,N=M.TH,Y=M.Vg,I=M.Ck>M.A$-262?M.Ck-(M.A$-262):0,D=M.window,E=M.CH,t=M.cq,v=M.Ck+258,p=D[Q+N-1],h=D[Q+N];M.TH>=M.GL&&(A>>=2);Y>M.JP&&(Y=M.JP);do{var S=f;if(D[S+N]===h&&D[S+N-1]===p&&D[S]===D[Q]&&D[++S]===D[Q+1]){Q+=2;for(S++;D[++Q]===D[++S]&&D[++Q]===D[++S]&&D[++Q]===D[++S]&&D[++Q]===D[++S]&&D[++Q]===D[++S]&&D[++Q]===D[++S]&&D[++Q]===D[++S]&&D[++Q]===D[++S]&&QN){M.n2=f;N=S;if(S>=Y)break;p=D[Q+N-1];h=D[Q+N]}}}while((f=t[f&E])>I&&--A!== 0);return N<=M.JP?N:M.JP}; VE=function(M){var f=M.A$,A;do{var Q=M.zX-M.JP-M.Ck;if(M.Ck>=f+(f-262)){Wv.Y5(M.window,M.window,f,f,0);M.n2-=f;M.Ck-=f;M.zH-=f;var N=A=M.o4;do{var Y=M.head[--N];M.head[N]=Y>=f?Y-f:0}while(--A);N=A=f;do Y=M.cq[--N],M.cq[N]=Y>=f?Y-f:0;while(--A);Q+=f}if(M.Yz.cU===0)break;N=M.Yz;A=M.window;Y=M.Ck+M.JP;var I=N.cU;I>Q&&(I=Q);I===0?A=0:(N.cU-=I,Wv.Y5(A,N.input,N.fT,I,Y),N.state.wrap===1?N.zU=C4(N.zU,A,I,Y):N.state.wrap===2&&(N.zU=UG(N.zU,A,I,Y)),N.fT+=I,N.i$+=I,A=I);M.JP+=A;if(M.JP+M.XH>=3)for(Q=M.Ck-M.XH, M.TU=M.window[Q],M.TU=(M.TU<=3&&(M.TU=(M.TU<=3)if(A=TR(M,M.Ck-M.n2,M.tX-3),M.JP-=M.tX,M.tX<=M.RM&&M.JP>=3){M.tX--;do M.Ck++,M.TU=(M.TU<=3&&(M.TU=(M.TU<4096)&&(M.tX=2));if(M.TH>=3&&M.tX<=M.TH){Q=M.Ck+M.JP-3;A=TR(M,M.Ck-1-M.lC,M.TH-3);M.JP-=M.TH-1;M.TH-=2;do++M.Ck<=Q&&(M.TU=(M.TU<=3&&M.Ck>0&&(Q=M.Ck-1,A=Y[Q],A===Y[++Q]&&A===Y[++Q]&&A===Y[++Q])){for(N=M.Ck+258;A===Y[++Q]&&A===Y[++Q]&&A===Y[++Q]&&A===Y[++Q]&&A===Y[++Q]&&A===Y[++Q]&&A===Y[++Q]&&A===Y[++Q]&&QM.JP&&(M.tX=M.JP)}M.tX>=3?(A=TR(M,1,M.tX-3),M.JP-=M.tX,M.Ck+=M.tX,M.tX=0):(A=TR(M,0,M.window[M.Ck]),M.JP--,M.Ck++);if(A&&(So(M,!1),M.Yz.bl===0))return 1}M.XH=0;return f=== 4?(So(M,!0),M.Yz.bl===0?3:4):M.ND&&(So(M,!1),M.Yz.bl===0)?1:2}; VMd=function(M,f){for(var A;;){if(M.JP===0&&(VE(M),M.JP===0)){if(f===0)return 1;break}M.tX=0;A=TR(M,0,M.window[M.Ck]);M.JP--;M.Ck++;if(A&&(So(M,!1),M.Yz.bl===0))return 1}M.XH=0;return f===4?(So(M,!0),M.Yz.bl===0?3:4):M.ND&&(So(M,!1),M.Yz.bl===0)?1:2}; HJ=function(M,f,A,Q,N){this.Wr=M;this.tkB=f;this.yiJ=A;this.IBu=Q;this.func=N}; aR6=function(){this.Yz=null;this.status=0;this.y4=null;this.wrap=this.pending=this.y8=this.Wz=0;this.il=null;this.TG=0;this.method=8;this.S5=-1;this.CH=this.sy=this.A$=0;this.window=null;this.zX=0;this.head=this.cq=null;this.Vg=this.GL=this.strategy=this.level=this.RM=this.uh=this.TH=this.JP=this.n2=this.Ck=this.jF=this.lC=this.tX=this.zH=this.O2=this.Wh=this.J0=this.o4=this.TU=0;this.pS=new Wv.sI(1146);this.Hb=new Wv.sI(122);this.DX=new Wv.sI(78);t3(this.pS);t3(this.Hb);t3(this.DX);this.Jf=this.AA= this.bA=null;this.zJ=new Wv.sI(16);this.V4=new Wv.sI(573);t3(this.V4);this.Jt=this.wz=0;this.depth=new Wv.sI(573);t3(this.depth);this.VD=this.m2=this.XH=this.matches=this.Xr=this.t5=this.dF=this.ND=this.Wk=this.Ui=0}; qJ9=function(M,f){if(!M||!M.state||f>5||f<0)return M?EG(M,-2):-2;var A=M.state;if(!M.output||!M.input&&M.cU!==0||A.status===666&&f!==4)return EG(M,M.bl===0?-5:-2);A.Yz=M;var Q=A.S5;A.S5=f;if(A.status===42)if(A.wrap===2)M.zU=0,L4(A,31),L4(A,139),L4(A,8),A.il?(L4(A,(A.il.text?1:0)+(A.il.hk?2:0)+(A.il.extra?4:0)+(A.il.name?8:0)+(A.il.comment?16:0)),L4(A,A.il.time&255),L4(A,A.il.time>>8&255),L4(A,A.il.time>>16&255),L4(A,A.il.time>>24&255),L4(A,A.level===9?2:A.strategy>=2||A.level<2?4:0),L4(A,A.il.os& 255),A.il.extra&&A.il.extra.length&&(L4(A,A.il.extra.length&255),L4(A,A.il.extra.length>>8&255)),A.il.hk&&(M.zU=UG(M.zU,A.y4,A.pending,0)),A.TG=0,A.status=69):(L4(A,0),L4(A,0),L4(A,0),L4(A,0),L4(A,0),L4(A,A.level===9?2:A.strategy>=2||A.level<2?4:0),L4(A,3),A.status=113);else{var N=8+(A.sy-8<<4)<<8;N|=(A.strategy>=2||A.level<2?0:A.level<6?1:A.level===6?2:3)<<6;A.Ck!==0&&(N|=32);A.status=113;ob(A,N+(31-N%31));A.Ck!==0&&(ob(A,M.zU>>>16),ob(A,M.zU&65535));M.zU=1}if(A.status===69)if(A.il.extra){for(N= A.pending;A.TG<(A.il.extra.length&65535)&&(A.pending!==A.Wz||(A.il.hk&&A.pending>N&&(M.zU=UG(M.zU,A.y4,A.pending-N,N)),vJ(M),N=A.pending,A.pending!==A.Wz));)L4(A,A.il.extra[A.TG]&255),A.TG++;A.il.hk&&A.pending>N&&(M.zU=UG(M.zU,A.y4,A.pending-N,N));A.TG===A.il.extra.length&&(A.TG=0,A.status=73)}else A.status=73;if(A.status===73)if(A.il.name){N=A.pending;do{if(A.pending===A.Wz&&(A.il.hk&&A.pending>N&&(M.zU=UG(M.zU,A.y4,A.pending-N,N)),vJ(M),N=A.pending,A.pending===A.Wz)){var Y=1;break}Y=A.TGN&&(M.zU=UG(M.zU,A.y4,A.pending-N,N));Y===0&&(A.TG=0,A.status=91)}else A.status=91;if(A.status===91)if(A.il.comment){N=A.pending;do{if(A.pending===A.Wz&&(A.il.hk&&A.pending>N&&(M.zU=UG(M.zU,A.y4,A.pending-N,N)),vJ(M),N=A.pending,A.pending===A.Wz)){Y=1;break}Y=A.TGN&&(M.zU=UG(M.zU,A.y4,A.pending-N,N));Y===0&&(A.status=103)}else A.status= 103;A.status===103&&(A.il.hk?(A.pending+2>A.Wz&&vJ(M),A.pending+2<=A.Wz&&(L4(A,M.zU&255),L4(A,M.zU>>8&255),M.zU=0,A.status=113)):A.status=113);if(A.pending!==0){if(vJ(M),M.bl===0)return A.S5=-1,0}else if(M.cU===0&&(f<<1)-(f>4?9:0)<=(Q<<1)-(Q>4?9:0)&&f!==4)return EG(M,-5);if(A.status===666&&M.cU!==0)return EG(M,-5);if(M.cU!==0||A.JP!==0||f!==0&&A.status!==666){Q=A.strategy===2?VMd(A,f):A.strategy===3?Ulf(A,f):mm[A.level].func(A,f);if(Q===3||Q===4)A.status=666;if(Q===1||Q===3)return M.bl===0&&(A.S5= -1),0;if(Q===2&&(f===1?(Gi(A,2,3),wP(A,256,p4),A.VD===16?(K5(A,A.m2),A.m2=0,A.VD=0):A.VD>=8&&(A.y4[A.pending++]=A.m2&255,A.m2>>=8,A.VD-=8)):f!==5&&(Gi(A,0,3),tMT(A,0,0),f===3&&(t3(A.head),A.JP===0&&(A.Ck=0,A.zH=0,A.XH=0))),vJ(M),M.bl===0))return A.S5=-1,0}if(f!==4)return 0;if(A.wrap<=0)return 1;A.wrap===2?(L4(A,M.zU&255),L4(A,M.zU>>8&255),L4(A,M.zU>>16&255),L4(A,M.zU>>24&255),L4(A,M.i$&255),L4(A,M.i$>>8&255),L4(A,M.i$>>16&255),L4(A,M.i$>>24&255)):(ob(A,M.zU>>>16),ob(A,M.zU&65535));vJ(M);A.wrap>0&& (A.wrap=-A.wrap);return A.pending!==0?0:1}; sG=function(M){if(!(this instanceof sG))return new sG(M);M=this.options=Wv.assign({level:-1,method:8,chunkSize:16384,Pt:15,C80:8,strategy:0,to:""},M||{});M.raw&&M.Pt>0?M.Pt=-M.Pt:M.OL&&M.Pt>0&&M.Pt<16&&(M.Pt+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Yz=new HB0;this.Yz.bl=0;var f=this.Yz;var A=M.level,Q=M.method,N=M.Pt,Y=M.C80,I=M.strategy;if(f){var D=1;A===-1&&(A=6);N<0?(D=0,N=-N):N>15&&(D=2,N-=16);if(Y<1||Y>9||Q!==8||N<8||N>15||A<0||A>9||I<0||I>4)f=EG(f,-2);else{N===8&&(N=9); var E=new aR6;f.state=E;E.Yz=f;E.wrap=D;E.il=null;E.sy=N;E.A$=1<>=7;Y<30;Y++)for(YS[Y]=I<<7,N=0;N<1<=t.A$&&(f===0&&(t3(t.head),t.Ck=0,t.zH=0,t.XH=0),A=new Wv.AL(t.A$),Wv.Y5(A,Y,I-t.A$,t.A$,0),Y=A,I=t.A$);A=M.cU;Q=M.fT;N=M.input;M.cU=I;M.fT=0;M.input=Y;for(VE(t);t.JP>=3;){Y=t.Ck;I=t.JP-2;do t.TU=(t.TU<=-7||((0,A[24])((0,A[47])((0,A[77])(A[75],A[74]),A[73],((0,A[24])((0,A[18])(A[38], A[44]),A[11],A[44],(0,A[58])(),A[55]),A[18])(A[13],A[75]),A[77],(0,A[11])(A[28],(0,A[33])(),A[55]),A[16],A[32]),A[11],A[28],(0,A[5])(),A[55]),null))&&(0,A[63])(A[65],((0,A[43])(A[27],A[40]),A[61])((0,A[42])(A[58],A[64]),A[29],A[70],A[68]),(0,A[16])((0,A[49])(A[68],A[8]),A[10],A[73],A[67]),(0,A[45])(A[32],A[27]),A[67])}catch(Q){(0,A[29])((0,A[49])(A[53],A[32]),A[10],A[61],A[20])}try{A[24]!==-4&&(A[19]<=-7&&((0,A[3])(A[20],(0,A[50])(),A[47]),1)||(0,A[10])(A[new Date(T[37])/1E3],A[36])),(0,A[23])(A[66]), (0,A[3])(A[20],(0,A[60])(),A[47])>>>(0,A[3])(A[36],(0,A[77])(),A[47])}catch(Q){}try{A[79]!==-1&&(A[48]!==-6&&((0,A[49])(A[38],A[8]),T[78])||(0,A[3])(A[new Date(T[17])/1E3],(0,A[25])(),A[47])),A[39]!==2&&(A[73]==-1&&((0,A[49])(A[2],A[8]),[])||(0,A[57])(A[32])),A[75]!==5&&(A[64]<=-8&&((0,A[69])(A[65],A[47]),{})||(0,A[69])(A[25],A[5])),A[72]>=9&&((0,A[6])(A[19],A[36]),T[26])||(0,A[28])(A[43]),A[45]!=new Date(T[63])/1E3&&((0,A[16])(A[30],A[57]),(0,A[35])(A[22])),A[57]<=7&&(0,A[29])(((0,A[29])((0,A[35])(A[26]), A[31],A[33],A[41]),A[70])(A[20],A[15]),A[31],A[39],A[41])}catch(Q){(0,A[10])(A[53],A[28]),(0,A[24])(A[41],(0,A[18])(),A[68]),((0,A[10])(A[57],A[16]),A[37])((0,A[70])(A[19],A[15]),A[78],A[8])-(0,A[24])(A[8],(0,A[46])(),A[68])}finally{A[64]>=7?(((0,A[24])(A[57],(0,A[18])(),A[68]),A[24])(A[8],(0,A[18])(),A[68]),A[56])(A[55],A[29]):(0,A[50])((0,A[50])((0,A[31])(A[11],A[15]),A[35],A[52]),A[56],A[34],A[64]),A[73]===-9?(0,A[44])(A[65]):(0,A[78])(A[27])}try{A[32]<=-7&&(0,A[50])((0,A[74])((0,A[68])(A[62], A[78]),A[1],A[45]),(0,A[27])(A[34],A[78]),A[43],(0,A[68])(A[22],A[new Date(T[92])/1E3]),A[9],(0,A[27])(A[64],A[45]),A[45],A[37]),(0,A[7])((0,A[68])(A[78],A[62]),A[27],A[49],A[52]),(0,A[61])(A[14],(0,A[3])(),A[25])}catch(Q){A[70]<2&&(A[40]!=6?(((((0,A[74])((((0,A[27])(A[71],A[66]),A[new Date(T[81])/1E3])(A[41],A[52]),A[68])(A[67],A[78]),A[9],A[14],A[20]),(0,A[68])(A[42],A[10]),A[28])(A[12],(0,A[50])(),A[72]),A[60])(A[53],A[45]),A[70])(A[57],A[58]),A[2])(A[19]):(((((((0,A[23])(A[67],A[76]),A[25])((0,A[25])((0,A[51])(A[67], (0,A[4])(),A[7]),A[31],A[18]),A[5],A[53],A[67]),A[51])(A[new Date(T[34])/1E3],(0,A[74])(),A[7]),A[19])(A[8],A[67]),A[19])(A[15],A[60]),A[5])(A[32],A[46]),A[9])(A[60],A[27]))}}catch(Q){return T[57]+M}return f[T[22]](T[1])}; g.iG=function(M){this.name=M}; e2d=function(M){this.E$=v_(M)}; xS=function(M){this.E$=v_(M)}; ZS=function(M){this.E$=v_(M)}; bBd=function(M){this.E$=v_(M)}; rB=function(M){this.E$=v_(M)}; uG=function(M){this.E$=v_(M)}; zR=function(M){this.E$=v_(M)}; PJ=function(M){this.E$=v_(M)}; n4=function(M){this.E$=v_(M)}; jo=function(M){this.E$=v_(M)}; $S=function(M){this.E$=v_(M)}; FQ=function(M){this.E$=v_(M)}; yE=function(M){this.E$=v_(M)}; dB=function(M){this.E$=v_(M)}; eo=function(M){this.E$=v_(M)}; bG=function(M){this.E$=v_(M,500)}; kS=function(M){this.E$=v_(M)}; WJ=function(M){this.E$=v_(M)}; kYt=function(M){this.E$=v_(M)}; WBt=function(){return g.wD("yt.ads.biscotti.lastId_")||""}; OBe=function(M){g.Gz("yt.ads.biscotti.lastId_",M)}; K4=function(){var M=arguments,f=J3;M.length>1?f[M[0]]=M[1]:M.length===1&&Object.assign(f,M[0])}; g.GR=function(M,f){return M in J3?J3[M]:f}; wB=function(M){var f=J3.EXPERIMENT_FLAGS;return f?f[M]:void 0}; Xib=function(M){lG.forEach(function(f){return f(M)})}; g.f0=function(M){return M&&window.yterr?function(){try{return M.apply(this,arguments)}catch(f){g.MR(f)}}:M}; g.MR=function(M){var f=g.wD("yt.logging.errors.log");f?f(M,"ERROR",void 0,void 0,void 0,void 0,void 0):(f=g.GR("ERRORS",[]),f.push([M,"ERROR",void 0,void 0,void 0,void 0,void 0]),K4("ERRORS",f));Xib(M)}; AI=function(M,f,A,Q,N){var Y=g.wD("yt.logging.errors.log");Y?Y(M,"WARNING",f,A,Q,void 0,N):(Y=g.GR("ERRORS",[]),Y.push([M,"WARNING",f,A,Q,void 0,N]),K4("ERRORS",Y))}; Qn=function(M,f){f=M.split(f);for(var A={},Q=0,N=f.length;Q1?M[1]:M[0])):{}}; Df=function(M,f){return wi9(M,f||{},!0)}; Ef=function(M,f){return wi9(M,f||{},!1)}; wi9=function(M,f,A){var Q=M.split("#",2);M=Q[0];Q=Q.length>1?"#"+Q[1]:"";var N=M.split("?",2);M=N[0];N=Yy(N[1]||"");for(var Y in f)if(A||!g.GC(N,Y))N[Y]=f[Y];return g.uj(M,N)+Q}; tI=function(M){if(!f)var f=window.location.href;var A=g.cP(M)[1]||null,Q=g.RH(M);A&&Q?(M=g.cP(M),f=g.cP(f),M=M[3]==f[3]&&M[1]==f[1]&&M[4]==f[4]):M=Q?g.RH(f)===Q&&(Number(g.cP(f)[4]||null)||null)===(Number(g.cP(M)[4]||null)||null):!0;return M}; va=function(M){M||(M=document.location.href);M=g.cP(M)[1]||null;return M!==null&&M==="https"}; p0=function(M){M=lRf(M);return M===null?!1:M[0]==="com"&&M[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; MFd=function(M){M=lRf(M);return M===null?!1:M[1]==="google"?!0:M[2]==="google"?M[0]==="au"&&M[1]==="com"?!0:M[0]==="uk"&&M[1]==="co"?!0:!1:!1}; lRf=function(M){M=g.RH(M);return M!==null?M.split(".").reverse():null}; Jwc=function(M){return M&&M.match(fIb)?M:Cg(M)}; L0=function(M){var f=hI;M=M===void 0?WBt():M;var A=Object,Q=A.assign,N=SC(f);var Y=f.K;try{var I=Y.screenX;var D=Y.screenY}catch(m){}try{var E=Y.outerWidth;var t=Y.outerHeight}catch(m){}try{var v=Y.innerWidth;var p=Y.innerHeight}catch(m){}try{var h=Y.screenLeft;var S=Y.screenTop}catch(m){}try{v=Y.innerWidth,p=Y.innerHeight}catch(m){}try{var L=Y.screen.availWidth;var a=Y.screen.availTop}catch(m){}Y=[h,S,I,D,L,a,E,t,v,p];I=Nsz(!1,f.K.top);D={};var q=q===void 0?g.Kb:q;E=new WL;"SVGElement"in q&&"createElementNS"in q.document&&E.set(0);t=v16();t["allow-top-navigation-by-user-activation"]&&E.set(1);t["allow-popups-to-escape-sandbox"]&&E.set(2);q.crypto&&q.crypto.subtle&&E.set(3);"TextDecoder"in q&&"TextEncoder"in q&&E.set(4);q=gMd(E);f=(D.bc=q,D.bih=I.height,D.biw=I.width,D.brdim=Y.join(),D.vis=qQ(f.Z),D.wgl=!!ho.WebGLRenderingContext,D);A=Q.call(A,N,f);A.ca_type="image";M&&(A.bid=M);return A}; SC=function(M){var f={};f.dt=ACN;f.flash="0";a:{try{var A=M.K.top.location.href}catch(v){M=2;break a}M=A?A===M.Z.location.href?0:1:2}f=(f.frm=M,f);try{f.u_tz=-(new Date).getTimezoneOffset();var Q=Q===void 0?ho:Q;try{var N=Q.history.length}catch(v){N=0}f.u_his=N;var Y;f.u_h=(Y=ho.screen)==null?void 0:Y.height;var I;f.u_w=(I=ho.screen)==null?void 0:I.width;var D;f.u_ah=(D=ho.screen)==null?void 0:D.availHeight;var E;f.u_aw=(E=ho.screen)==null?void 0:E.availWidth;var t;f.u_cd=(t=ho.screen)==null?void 0: t.colorDepth}catch(v){}return f}; N8X=function(){if(!Qme)return null;var M=Qme();return"open"in M?M:null}; g.C0=function(M){switch(od(M)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; od=function(M){return M&&"status"in M?M.status:-1}; g.Uf=function(M,f){typeof M==="function"&&(M=g.f0(M));return window.setTimeout(M,f)}; g.Vn=function(M,f){typeof M==="function"&&(M=g.f0(M));return window.setInterval(M,f)}; g.ad=function(M){window.clearTimeout(M)}; g.qR=function(M){window.clearInterval(M)}; g.mE=function(M){M=Ha(M);return typeof M==="string"&&M==="false"?!1:!!M}; g.sf=function(M,f){M=Ha(M);return M===void 0&&f!==void 0?f:Number(M||0)}; ca=function(){return g.GR("EXPERIMENTS_TOKEN","")}; Ha=function(M){return g.GR("EXPERIMENT_FLAGS",{})[M]}; Rd=function(){for(var M=[],f=g.GR("EXPERIMENTS_FORCED_FLAGS",{}),A=g.V(Object.keys(f)),Q=A.next();!Q.done;Q=A.next())Q=Q.value,M.push({key:Q,value:String(f[Q])});A=g.GR("EXPERIMENT_FLAGS",{});Q=g.V(Object.keys(A));for(var N=Q.next();!N.done;N=Q.next())N=N.value,N.startsWith("force_")&&f[N]===void 0&&M.push({key:N,value:String(A[N])});return M}; gy=function(M,f,A,Q,N,Y,I,D){function E(){(t&&"readyState"in t?t.readyState:0)===4&&f&&g.f0(f)(t)} A=A===void 0?"GET":A;Q=Q===void 0?"":Q;D=D===void 0?!1:D;var t=N8X();if(!t)return null;"onloadend"in t?t.addEventListener("loadend",E,!1):t.onreadystatechange=E;g.mE("debug_forward_web_query_parameters")&&(M=Yk6(M));t.open(A,M,!0);Y&&(t.responseType=Y);I&&(t.withCredentials=!0);A=A==="POST"&&(window.FormData===void 0||!(Q instanceof FormData));if(N=IIz(M,N))for(var v in N)t.setRequestHeader(v,N[v]),"content-type"===v.toLowerCase()&&(A=!1);A&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(D&&"setAttributionReporting"in XMLHttpRequest.prototype){M={eventSourceEligible:!0,triggerEligible:!1};try{t.setAttributionReporting(M)}catch(p){AI(p)}}t.send(Q);return t}; IIz=function(M,f){f=f===void 0?{}:f;var A=tI(M),Q=g.GR("INNERTUBE_CLIENT_NAME"),N=g.mE("web_ajax_ignore_global_headers_if_set"),Y;for(Y in T8T){var I=g.GR(T8T[Y]),D=Y==="X-Goog-AuthUser"||Y==="X-Goog-PageId";Y!=="X-Goog-Visitor-Id"||I||(I=g.GR("VISITOR_DATA"));var E;if(!(E=!I)){if(!(E=A||(g.RH(M)?!1:!0))){E=M;var t;if(t=g.mE("add_auth_headers_to_remarketing_google_dot_com_ping")&&Y==="Authorization"&&(Q==="TVHTML5"||Q==="TVHTML5_UNPLUGGED"||Q==="TVHTML5_SIMPLY")&&MFd(E))E=g4(E)||"",E=E.split("/"), E="/"+(E.length>1?E[1]:""),t=E==="/pagead";E=t?!0:!1}E=!E}E||N&&f[Y]!==void 0||Q==="TVHTML5_UNPLUGGED"&&D||(f[Y]=I)}"X-Goog-EOM-Visitor-Id"in f&&"X-Goog-Visitor-Id"in f&&delete f["X-Goog-Visitor-Id"];if(A||!g.RH(M))f["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(A||!g.RH(M)){try{var v=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(p){}v&&(f["X-YouTube-Time-Zone"]=v)}document.location.hostname.endsWith("youtubeeducation.com")||!A&&g.RH(M)||(f["X-YouTube-Ad-Signals"]= NR(L0()));return f}; il=function(M,f){f.method="POST";f.postParams||(f.postParams={});return g.Ba(M,f)}; tFd=function(M,f){if(window.fetch&&f.format!=="XML"){var A={method:f.method||"GET",credentials:"same-origin"};f.headers&&(A.headers=f.headers);f.priority&&(A.priority=f.priority);M=Dst(M,f);var Q=E6b(M,f);Q&&(A.body=Q);f.withCredentials&&(A.credentials="include");var N=f.context||g.Kb,Y=!1,I;fetch(M,A).then(function(D){if(!Y){Y=!0;I&&g.ad(I);var E=D.ok,t=function(v){v=v||{};E?f.onSuccess&&f.onSuccess.call(N,v,D):f.onError&&f.onError.call(N,v,D);f.onFinish&&f.onFinish.call(N,v,D)}; (f.format||"JSON")==="JSON"&&(E||D.status>=400&&D.status<500)?D.json().then(t,function(){t(null)}):t(null)}}).catch(function(){f.onError&&f.onError.call(N,{},{})}); M=f.timeout||0;f.onFetchTimeout&&M>0&&(I=g.Uf(function(){Y||(Y=!0,g.ad(I),f.onFetchTimeout.call(f.context||g.Kb))},M))}else g.Ba(M,f)}; g.Ba=function(M,f){var A=f.format||"JSON";M=Dst(M,f);var Q=E6b(M,f),N=!1,Y=v66(M,function(E){if(!N){N=!0;D&&g.ad(D);var t=g.C0(E),v=null,p=400<=E.status&&E.status<500,h=500<=E.status&&E.status<600;if(t||p||h)v=pLt(M,A,E,f.convertToSafeHtml);t&&(t=hhz(A,E,v));v=v||{};p=f.context||g.Kb;t?f.onSuccess&&f.onSuccess.call(p,E,v):f.onError&&f.onError.call(p,E,v);f.onFinish&&f.onFinish.call(p,E,v)}},f.method,Q,f.headers,f.responseType,f.withCredentials); Q=f.timeout||0;if(f.onTimeout&&Q>0){var I=f.onTimeout;var D=g.Uf(function(){N||(N=!0,Y.abort(),g.ad(D),I.call(f.context||g.Kb,Y))},Q)}return Y}; Dst=function(M,f){f.includeDomain&&(M=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+M);var A=g.GR("XSRF_FIELD_NAME");if(f=f.urlParams)f[A]&&delete f[A],M=Df(M,f);return M}; E6b=function(M,f){var A=g.GR("XSRF_FIELD_NAME"),Q=g.GR("XSRF_TOKEN"),N=f.postBody||"",Y=f.postParams,I=g.GR("XSRF_FIELD_NAME"),D;f.headers&&(D=f.headers["Content-Type"]);f.excludeXsrf||g.RH(M)&&!f.withCredentials&&g.RH(M)!==document.location.hostname||f.method!=="POST"||D&&D!=="application/x-www-form-urlencoded"||f.postParams&&f.postParams[I]||(Y||(Y={}),Y[A]=Q);(g.mE("ajax_parse_query_data_only_when_filled")&&Y&&Object.keys(Y).length>0||Y)&&typeof N==="string"&&(N=Yy(N),g.Y1(N,Y),N=f.postBodyFormat&& f.postBodyFormat==="JSON"?JSON.stringify(N):g.r4(N));Y=N||Y&&!g.MV(Y);!Skb&&Y&&f.method!=="POST"&&(Skb=!0,g.MR(Error("AJAX request with postData should use POST")));return N}; pLt=function(M,f,A,Q){var N=null;switch(f){case "JSON":try{var Y=A.responseText}catch(I){throw Q=Error("Error reading responseText"),Q.params=M,AI(Q),I;}M=A.getResponseHeader("Content-Type")||"";Y&&M.indexOf("json")>=0&&(Y.substring(0,5)===")]}'\n"&&(Y=Y.substring(5)),N=JSON.parse(Y));break;case "XML":if(M=(M=A.responseXML)?LeN(M):null)N={},g.F0(M.getElementsByTagName("*"),function(I){N[I.tagName]=o60(I)})}Q&&CaN(N); return N}; CaN=function(M){if(g.Q9(M))for(var f in M)f==="html_content"||bbX(f,"_html")?M[f]=fg(M[f]):CaN(M[f])}; hhz=function(M,f,A){if(f&&f.status===204)return!0;switch(M){case "JSON":return!!A;case "XML":return Number(A&&A.return_code)===0;case "RAW":return!0;default:return!!A}}; LeN=function(M){return M?(M=("responseXML"in M?M.responseXML:M).getElementsByTagName("root"))&&M.length>0?M[0]:null:null}; o60=function(M){var f="";g.F0(M.childNodes,function(A){f+=A.nodeValue}); return f}; Yk6=function(M){var f=window.location.search,A=g.RH(M);g.mE("debug_handle_relative_url_for_query_forward_killswitch")||!A&&tI(M)&&(A=document.location.hostname);var Q=g4(M);Q=(A=A&&(A.endsWith("youtube.com")||A.endsWith("youtube-nocookie.com")))&&Q&&Q.startsWith("/api/");if(!A||Q)return M;var N=Yy(f),Y={};g.F0(Us6,function(I){N[I]&&(Y[I]=N[I])}); return Ef(M,Y)}; ry=function(M,f){var A=g.Q1(f),Q;return(new g.g1(function(N,Y){A.onSuccess=function(I){g.C0(I)?N(new VF6(I)):Y(new Zf("Request failed, status="+od(I),"net.badstatus",I))}; A.onError=function(I){Y(new Zf("Unknown request error","net.unknown",I))}; A.onTimeout=function(I){Y(new Zf("Request timed out","net.timeout",I))}; Q=g.Ba(M,A)})).BU(function(N){if(N instanceof j_){var Y; (Y=Q)==null||Y.abort()}return zg(N)})}; g.ul=function(M,f,A,Q){function N(D,E,t){return D.BU(function(v){if(E<=0||od(v.xhr)===403)return zg(new Zf("Request retried too many times","net.retryexhausted",v.xhr,v));v=Math.pow(2,A-E+1)*t;var p=I>0?Math.min(I,v):v;return Y(t).then(function(){return N(ry(M,f),E-1,p)})})} function Y(D){return new g.g1(function(E){setTimeout(E,D)})} var I=I===void 0?-1:I;return N(ry(M,f),A-1,Q)}; Zf=function(M,f,A){hB.call(this,M+", errorCode="+f);this.errorCode=f;this.xhr=A;this.name="PromiseAjaxError"}; VF6=function(M){this.xhr=M}; zA=function(M){this.K=M===void 0?null:M;this.Z=0;this.j=null}; Pa=function(M){var f=new zA;M=M===void 0?null:M;f.Z=2;f.j=M===void 0?null:M;return f}; n0=function(M){var f=new zA;M=M===void 0?null:M;f.Z=1;f.j=M===void 0?null:M;return f}; g.FK=function(M,f,A,Q,N){jC||$y.set(""+M,f,{JS:A,path:"/",domain:Q===void 0?"youtube.com":Q,secure:N===void 0?!1:N})}; g.yn=function(M,f){if(!jC)return $y.get(""+M,f)}; g.dy=function(M,f,A){jC||$y.remove(""+M,f===void 0?"/":f,A===void 0?"youtube.com":A)}; aIX=function(){if(g.mE("embeds_web_enable_cookie_detection_fix")){if(!g.Kb.navigator.cookieEnabled)return!1}else if(!$y.isEnabled())return!1;if(!$y.isEmpty())return!0;g.mE("embeds_web_enable_cookie_detection_fix")?$y.set("TESTCOOKIESENABLED","1",{JS:60,RPi:"none",secure:!0}):$y.set("TESTCOOKIESENABLED","1",{JS:60});if($y.get("TESTCOOKIESENABLED")!=="1")return!1;$y.remove("TESTCOOKIESENABLED");return!0}; g.b=function(M,f){if(M)return M[f.name]}; eC=function(M){var f=g.GR("INNERTUBE_HOST_OVERRIDE");f&&(M=String(f)+String(BP(M)));return M}; qkD=function(M){var f={};g.mE("json_condensed_response")&&(f.prettyPrint="false");return M=Ef(M,f)}; bl=function(M,f){var A=A===void 0?{}:A;M={method:f===void 0?"POST":f,mode:tI(M)?"same-origin":"cors",credentials:tI(M)?"same-origin":"include"};f={};for(var Q=g.V(Object.keys(A)),N=Q.next();!N.done;N=Q.next())N=N.value,A[N]&&(f[N]=A[N]);Object.keys(f).length>0&&(M.headers=f);return M}; ky=function(){var M=/Chrome\/(\d+)/.exec(g.ge());return M?parseFloat(M[1]):NaN}; Wa=function(){var M=/\sCobalt\/(\S+)\s/.exec(g.ge());if(!M)return NaN;var f=[];M=g.V(M[1].split("."));for(var A=M.next();!A.done;A=M.next())A=parseInt(A.value,10),A>=0&&f.push(A);return parseFloat(f.join("."))}; XK=function(){return g.Of("android")&&g.Of("chrome")&&!(g.Of("trident/")||g.Of("edge/"))&&!g.Of("cobalt")}; Hlf=function(){return g.Of("armv7")||g.Of("aarch64")||g.Of("android")}; g.JI=function(){return g.Of("cobalt")}; K0=function(){return g.Of("cobalt")&&g.Of("appletv")}; GA=function(){return g.Of("(ps3; leanback shell)")||g.Of("ps3")&&g.JI()}; msX=function(){return g.Of("(ps4; leanback shell)")||g.Of("ps4")&&g.JI()}; g.smd=function(){return g.JI()&&(g.Of("ps4 vr")||g.Of("ps4 pro vr"))}; wy=function(){var M=/WebKit\/([0-9]+)/.exec(g.ge());return!!(M&&parseInt(M[1],10)>=600)}; ll=function(){var M=/WebKit\/([0-9]+)/.exec(g.ge());return!!(M&&parseInt(M[1],10)>=602)}; cC6=function(){return g.Of("iemobile")||g.Of("windows phone")&&g.Of("edge")}; A0=function(){return(Mh||fM)&&g.Of("applewebkit")&&!g.Of("version")&&(!g.Of("safari")||g.Of("gsa/"))}; Nh=function(){return g.Qi&&g.Of("version/")}; YJ=function(){return g.Of("smart-tv")&&g.Of("samsung")}; g.Of=function(M){var f=g.ge();return f?f.toLowerCase().indexOf(M)>=0:!1}; I0=function(){return vTX()||A0()||Nh()?!0:g.GR("EOM_VISITOR_DATA")?!1:!0}; TX=function(M,f){return f===void 0||f===null?M:f==="1"||f===!0||f===1||f==="True"?!0:!1}; DD=function(M,f,A){for(var Q in A)if(A[Q]==f)return A[Q];return M}; E8=function(M,f){return f===void 0||f===null?M:Number(f)}; t0=function(M,f){return f===void 0||f===null?M:f.toString()}; vD=function(M,f){if(f){if(M==="fullwidth")return Infinity;if(M==="fullheight")return 0}return M&&(f=M.match(Rhe))&&(M=Number(f[2]),f=Number(f[1]),!isNaN(M)&&!isNaN(f)&&M>0)?f/M:NaN}; pM=function(M){var f=M.docid||M.video_id||M.videoId||M.id;if(f)return f;f=M.raw_player_response;f||(M=M.player_response)&&(f=JSON.parse(M));return f&&f.videoDetails&&f.videoDetails.videoId||null}; g6N=function(M){return h0(M,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.SA=function(M){return M==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||M==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; h0=function(M,f){f=(f===void 0?0:f)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(f="EMBEDDED_PLAYER_MODE_PFL");var A=M.raw_embedded_player_response;if(!A&&(M=M.embedded_player_response))try{A=JSON.parse(M)}catch(Q){return f}return A?DD(f,A.embeddedPlayerMode,B8c):f}; o0=function(M){hB.call(this,M.message||M.description||M.name);this.isMissing=M instanceof LM;this.isTimeout=M instanceof Zf&&M.errorCode=="net.timeout";this.isCanceled=M instanceof j_}; LM=function(){hB.call(this,"Biscotti ID is missing from server")}; ilb=function(){if(g.mE("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!I0())return Error("User has not consented - not fetching biscotti id.");var M=g.GR("PLAYER_VARS",{});if(g.fx(M,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(g6N(M))return Error("Biscotti id fetching has been disabled for pfl.")}; uyc=function(){var M=ilb();if(M!==void 0)return zg(M);CM||(CM=ry("//googleads.g.doubleclick.net/pagead/id",xsT).then(Zlb).BU(function(f){return rC6(2,f)})); return CM}; Zlb=function(M){M=M.xhr.responseText;if(!Cx(M,")]}'"))throw new LM;M=JSON.parse(M.substr(4));if((M.type||1)>1)throw new LM;M=M.id;OBe(M);CM=n0(M);zhb(18E5,2);return M}; rC6=function(M,f){f=new o0(f);OBe("");CM=Pa(f);M>0&&zhb(12E4,M-1);throw f;}; zhb=function(M,f){g.Uf(function(){ry("//googleads.g.doubleclick.net/pagead/id",xsT).then(Zlb,function(A){return rC6(f,A)}).BU(g.L$)},M)}; Pad=function(){try{var M=g.wD("yt.ads.biscotti.getId_");return M?M():uyc()}catch(f){return zg(f)}}; jmT=function(M){M&&(M.dataset?M.dataset[n6T()]="true":YBc(M))}; $sf=function(M){return M?M.dataset?M.dataset[n6T()]:M.getAttribute("data-loaded"):null}; n6T=function(){return Fed.loaded||(Fed.loaded="loaded".replace(/\-([a-z])/g,function(M,f){return f.toUpperCase()}))}; yCT=function(){var M=document;if("visibilityState"in M)return M.visibilityState;var f=U8+"VisibilityState";if(f in M)return M[f]}; Vi=function(M,f){var A;lW(M,function(Q){A=f[Q];return!!A}); return A}; a0=function(M){if(M.requestFullscreen)M=M.requestFullscreen(void 0);else if(M.webkitRequestFullscreen)M=M.webkitRequestFullscreen();else if(M.mozRequestFullScreen)M=M.mozRequestFullScreen();else if(M.msRequestFullscreen)M=M.msRequestFullscreen();else if(M.webkitEnterFullscreen)M=M.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return M instanceof Promise?M:Promise.resolve()}; ml=function(M){var f;g.qh()?HD()==M&&(f=document):f=M;return f&&(M=Vi(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],f))?(f=M.call(f),f instanceof Promise?f:Promise.resolve()):Promise.resolve()}; dst=function(M){return g.oR(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(f){return"on"+f.toLowerCase()in M})}; ehc=function(){var M=document;return g.oR(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(f){return"on"+f.toLowerCase()in M})}; g.qh=function(){return!!Vi(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; HD=function(M){M=M===void 0?!1:M;var f=Vi(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(M)for(;f&&f.shadowRoot;)f=f.shadowRoot.fullscreenElement;return f?f:null}; s8=function(M){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(M=M||window.event){this.event=M;for(var f in M)f in blX||(this[f]=M[f]);this.scale=M.scale;this.rotation=M.rotation;var A=M.target||M.srcElement;A&&A.nodeType==3&&(A=A.parentNode);this.target=A;var Q=M.relatedTarget; if(Q)try{Q=Q.nodeName?Q:null}catch(N){Q=null}else this.type=="mouseover"?Q=M.fromElement:this.type=="mouseout"&&(Q=M.toElement);this.relatedTarget=Q;this.clientX=M.clientX!=void 0?M.clientX:M.pageX;this.clientY=M.clientY!=void 0?M.clientY:M.pageY;this.keyCode=M.keyCode?M.keyCode:M.which;this.charCode=M.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=M.altKey;this.ctrlKey=M.ctrlKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.K=M.pageX;this.Z=M.pageY}}catch(N){}}; k3D=function(M){if(document.body&&document.documentElement){var f=document.body.scrollTop+document.documentElement.scrollTop;M.K=M.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);M.Z=M.clientY+f}}; WeU=function(M,f,A,Q){Q=Q===void 0?{}:Q;M.addEventListener&&(f!="mouseenter"||"onmouseenter"in document?f!="mouseleave"||"onmouseenter"in document?f=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(f="MozMousePixelScroll"):f="mouseout":f="mouseover");return l6(cD,function(N){var Y=typeof N[4]==="boolean"&&N[4]==!!Q,I=g.Q9(N[4])&&g.Q9(Q)&&g.A2(N[4],Q);return!!N.length&&N[0]==M&&N[1]==f&&N[2]==A&&(Y||I)})}; g.R0=function(M,f,A,Q){Q=Q===void 0?{}:Q;if(!M||!M.addEventListener&&!M.attachEvent)return"";var N=WeU(M,f,A,Q);if(N)return N;N=++Ole.count+"";var Y=!(f!="mouseenter"&&f!="mouseleave"||!M.addEventListener||"onmouseenter"in document);var I=Y?function(D){D=new s8(D);if(!D8(D.relatedTarget,function(E){return E==M},!0))return D.currentTarget=M,D.type=f,A.call(M,D)}:function(D){D=new s8(D); D.currentTarget=M;return A.call(M,D)}; I=g.f0(I);M.addEventListener?(f=="mouseenter"&&Y?f="mouseover":f=="mouseleave"&&Y?f="mouseout":f=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(f="MozMousePixelScroll"),XL6()||typeof Q==="boolean"?M.addEventListener(f,I,Q):M.addEventListener(f,I,!!Q.capture)):M.attachEvent("on"+f,I);cD[N]=[M,f,A,I,Q];return N}; Kef=function(M){return JCT(M,function(f){return g.ED(f,"ytp-ad-has-logging-urls")})}; JCT=function(M,f){var A=document.body||document;return g.R0(A,"click",function(Q){var N=D8(Q.target,function(Y){return Y===A||f(Y)},!0); N&&N!==A&&!N.disabled&&(Q.currentTarget=N,M.call(N,Q))})}; g.g$=function(M){M&&(typeof M=="string"&&(M=[M]),g.F0(M,function(f){if(f in cD){var A=cD[f],Q=A[0],N=A[1],Y=A[3];A=A[4];Q.removeEventListener?XL6()||typeof A==="boolean"?Q.removeEventListener(N,Y,A):Q.removeEventListener(N,Y,!!A.capture):Q.detachEvent&&Q.detachEvent("on"+N,Y);delete cD[f]}}))}; BD=function(M){for(var f in cD)cD[f][0]==M&&g.g$(f)}; i$=function(M){M=M||window.event;var f;M.composedPath&&typeof M.composedPath==="function"?f=M.composedPath():f=M.path;f&&f.length?M=f[0]:(M=M||window.event,M=M.target||M.srcElement,M.nodeType==3&&(M=M.parentNode));return M}; xJ=function(M){this.W=M;this.K=null;this.C=0;this.G=null;this.N=0;this.Z=[];for(M=0;M<4;M++)this.Z.push(0);this.j=0;this.KJ=g.R0(window,"mousemove",(0,g.IR)(this.B,this));this.X=g.Vn((0,g.IR)(this.Er,this),25)}; ZD=function(M){g.y.call(this);this.W=[];this.Z9=M||this}; r$=function(M,f,A,Q){for(var N=0;N0?A:0;A=Q?Date.now()+Q*1E3:0;if((Q=Q?(0,g.PD)():nM())&&window.JSON){typeof f!=="string"&&(f=JSON.stringify(f,void 0));try{Q.set(M,f,A)}catch(N){Q.remove(M)}}}; g.$J=function(M){var f=nM(),A=(0,g.PD)();if(!f&&!A||!window.JSON)return null;try{var Q=f.get(M)}catch(N){}if(typeof Q!=="string")try{Q=A.get(M)}catch(N){}if(typeof Q!=="string")return null;try{Q=JSON.parse(Q,void 0)}catch(N){}return Q}; lIz=function(){var M=(0,g.PD)();if(M&&(M=M.Z("yt-player-quality")))return M.creation}; g.FN=function(M){try{var f=nM(),A=(0,g.PD)();f&&f.remove(M);A&&A.remove(M)}catch(Q){}}; g.yi=function(){return g.$J("yt-remote-session-screen-id")}; MbN=function(M){var f=this;this.Z=void 0;this.K=!1;M.addEventListener("beforeinstallprompt",function(A){A.preventDefault();f.Z=A}); M.addEventListener("appinstalled",function(){f.K=!0},{once:!0})}; d$=function(){if(!g.Kb.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Kb.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Kb.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Kb.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Kb.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(M){return"WEB_DISPLAY_MODE_UNKNOWN"}}; eA=function(){this.H1=!0}; fgX=function(){eA.instance||(eA.instance=new eA);return eA.instance}; AZX=function(M){switch(M){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}}; QAN=function(){this.K=g.GR("ALT_PREF_COOKIE_NAME","PREF");this.Z=g.GR("ALT_PREF_COOKIE_DOMAIN","youtube.com");var M=g.yn(this.K);M&&this.parse(M)}; g.kJ=function(){b$||(b$=new QAN);return b$}; g.WD=function(M,f){return!!((NP9("f"+(Math.floor(f/31)+1))||0)&1<0;)switch(M=Sj.shift(),M.type){case "ERROR":tO.qm(M.payload);break;case "EVENT":tO.logEvent(M.eventType,M.payload)}}; ou=function(M){LH||(tO?tO.qm(M):(Sj.push({type:"ERROR",payload:M}),Sj.length>10&&Sj.shift()))}; CH=function(M,f){LH||(tO?tO.logEvent(M,f):(Sj.push({type:"EVENT",eventType:M,payload:f}),Sj.length>10&&Sj.shift()))}; UL=function(M){if(M.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; V$=function(M){return M.substr(0,M.indexOf(":"))||M}; g.au=function(M,f,A,Q,N){f=f===void 0?{}:f;A=A===void 0?pvc[M]:A;Q=Q===void 0?hm6[M]:Q;N=N===void 0?SD6[M]:N;g.GX.call(this,A,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:M},f));this.type=M;this.message=A;this.level=Q;this.K=N;Object.setPrototypeOf(this,g.au.prototype)}; qr=function(M,f){g.au.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:f,foundObjectStores:M},pvc.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,qr.prototype)}; HY=function(M,f){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.index=M;this.objectStore=f;Object.setPrototypeOf(this,HY.prototype)}; sL=function(M,f,A,Q){f=V$(f);var N=M instanceof Error?M:Error("Unexpected error: "+M);if(N instanceof g.au)return N;M={objectStoreNames:A,dbName:f,dbVersion:Q};if(N.name==="QuotaExceededError")return new g.au("QUOTA_EXCEEDED",M);if(g.mH&&N.name==="UnknownError")return new g.au("QUOTA_MAYBE_EXCEEDED",M);if(N instanceof HY)return new g.au("MISSING_INDEX",Object.assign({},M,{objectStore:N.objectStore,index:N.index}));if(N.name==="InvalidStateError"&&LsT.some(function(Y){return N.message.includes(Y)}))return new g.au("EXECUTE_TRANSACTION_ON_CLOSED_DB", M); if(N.name==="AbortError")return new g.au("UNKNOWN_ABORT",M,N.message);N.args=[Object.assign({},M,{name:"IdbError",j3:N.name})];N.level="WARNING";return N}; g.cY=function(M,f,A){var Q=EL();return new g.au("IDB_NOT_SUPPORTED",{context:{caller:M,publicName:f,version:A,hasSucceededOnce:Q==null?void 0:Q.hasSucceededOnce}})}; o2t=function(M){if(!M)throw Error();throw M;}; Crz=function(M){return M}; Ru=function(M){this.K=M}; g.gX=function(M){function f(N){if(Q.state.status==="PENDING"){Q.state={status:"REJECTED",reason:N};N=g.V(Q.Z);for(var Y=N.next();!Y.done;Y=N.next())Y=Y.value,Y()}} function A(N){if(Q.state.status==="PENDING"){Q.state={status:"FULFILLED",value:N};N=g.V(Q.K);for(var Y=N.next();!Y.done;Y=N.next())Y=Y.value,Y()}} var Q=this;this.state={status:"PENDING"};this.K=[];this.Z=[];M=M.K;try{M(A,f)}catch(N){f(N)}}; UYT=function(M,f,A,Q,N){try{if(M.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var Y=A(M.state.value);Y instanceof g.gX?BY(M,f,Y,Q,N):Q(Y)}catch(I){N(I)}}; VbT=function(M,f,A,Q,N){try{if(M.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var Y=A(M.state.reason);Y instanceof g.gX?BY(M,f,Y,Q,N):Q(Y)}catch(I){N(I)}}; BY=function(M,f,A,Q,N){f===A?N(new TypeError("Circular promise chain detected.")):A.then(function(Y){Y instanceof g.gX?BY(M,f,Y,Q,N):Q(Y)},function(Y){N(Y)})}; ag9=function(M,f,A){function Q(){A(M.error);Y()} function N(){f(M.result);Y()} function Y(){try{M.removeEventListener("success",N),M.removeEventListener("error",Q)}catch(I){}} M.addEventListener("success",N);M.addEventListener("error",Q)}; qD6=function(M){return new Promise(function(f,A){ag9(M,f,A)})}; iV=function(M){return new g.gX(new Ru(function(f,A){ag9(M,f,A)}))}; xk=function(M,f){return new g.gX(new Ru(function(A,Q){function N(){var Y=M?f(M):null;Y?Y.then(function(I){M=I;N()},Q):A()} N()}))}; H5d=function(M,f){this.request=M;this.cursor=f}; mY0=function(M){return iV(M).then(function(f){return f?new H5d(M,f):null})}; g.sAU=function(M){M.cursor.continue(void 0);return mY0(M.request)}; cZ6=function(M,f){this.K=M;this.options=f;this.transactionCount=0;this.j=Math.round((0,g.W)());this.Z=!1}; g.rX=function(M,f,A){M=M.K.createObjectStore(f,A);return new ZN(M)}; uV=function(M,f){M.K.objectStoreNames.contains(f)&&M.K.deleteObjectStore(f)}; g.nH=function(M,f,A){return g.zf(M,[f],{mode:"readwrite",gq:!0},function(Q){return g.PY(Q.objectStore(f),A)})}; g.zf=function(M,f,A,Q){var N,Y,I,D,E,t,v,p,h,S,L,a;return g.n(function(q){switch(q.Z){case 1:var m={mode:"readonly",gq:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof A==="string"?m.mode=A:Object.assign(m,A);N=m;M.transactionCount++;Y=N.gq?3:1;I=0;case 2:if(D){q.CJ(4);break}I++;E=Math.round((0,g.W)());g.HX(q,5);t=M.K.transaction(f,N.mode);m=new jj(t);m=Rmt(m,Q);return g.r(q,m,7);case 7:return v=q.K,p=Math.round((0,g.W)()),g2t(M,E,p,I,void 0,f.join(),N),q.return(v);case 5:h=g.id(q);S=Math.round((0,g.W)()); L=sL(h,M.K.name,f.join(),M.K.version);if((a=L instanceof g.au&&!L.K)||I>=Y)g2t(M,E,S,I,L,f.join(),N),D=L;q.CJ(2);break;case 4:return q.return(Promise.reject(D))}})}; g2t=function(M,f,A,Q,N,Y,I){f=A-f;N?(N instanceof g.au&&(N.type==="QUOTA_EXCEEDED"||N.type==="QUOTA_MAYBE_EXCEEDED")&&CH("QUOTA_EXCEEDED",{dbName:V$(M.K.name),objectStoreNames:Y,transactionCount:M.transactionCount,transactionMode:I.mode}),N instanceof g.au&&N.type==="UNKNOWN_ABORT"&&(A-=M.j,A<0&&A>=2147483648&&(A=0),CH("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:Y,transactionDuration:f,transactionCount:M.transactionCount,dbDuration:A}),M.Z=!0),BP6(M,!1,Q,Y,f,I.tag),ou(N)):BP6(M,!0,Q,Y,f, I.tag)}; BP6=function(M,f,A,Q,N,Y){CH("TRANSACTION_ENDED",{objectStoreNames:Q,connectionHasUnknownAbortedTransaction:M.Z,duration:N,isSuccessful:f,tryCount:A,tag:Y===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":Y})}; ZN=function(M){this.K=M}; g.$k=function(M,f,A){M.K.createIndex(f,A,{unique:!1})}; i5T=function(M,f){return g.F3(M,{query:f},function(A){return A.delete().then(function(){return g.y$(A)})}).then(function(){})}; xYz=function(M,f,A){var Q=[];return g.F3(M,{query:f},function(N){if(!(A!==void 0&&Q.length>=A))return Q.push(N.getValue()),g.y$(N)}).then(function(){return Q})}; rZT=function(M){return"getAllKeys"in IDBObjectStore.prototype?iV(M.K.getAllKeys(void 0,void 0)):Z5f(M)}; Z5f=function(M){var f=[];return g.urt(M,{query:void 0},function(A){f.push(A.cursor.primaryKey);return g.sAU(A)}).then(function(){return f})}; g.PY=function(M,f,A){return iV(M.K.put(f,A))}; g.F3=function(M,f,A){M=M.K.openCursor(f.query,f.direction);return dX(M).then(function(Q){return xk(Q,A)})}; g.urt=function(M,f,A){var Q=f.query;f=f.direction;M="openKeyCursor"in IDBObjectStore.prototype?M.K.openKeyCursor(Q,f):M.K.openCursor(Q,f);return mY0(M).then(function(N){return xk(N,A)})}; jj=function(M){var f=this;this.K=M;this.j=new Map;this.Z=!1;this.done=new Promise(function(A,Q){f.K.addEventListener("complete",function(){A()}); f.K.addEventListener("error",function(N){N.currentTarget===N.target&&Q(f.K.error)}); f.K.addEventListener("abort",function(){var N=f.K.error;if(N)Q(N);else if(!f.Z){N=g.au;for(var Y=f.K.objectStoreNames,I=[],D=0;D=A))return Q.push(N.getValue()),g.y$(N)}).then(function(){return Q})}; g.ej=function(M,f,A){M=M.K.openCursor(f.query===void 0?null:f.query,f.direction===void 0?"next":f.direction);return dX(M).then(function(Q){return xk(Q,A)})}; bV=function(M,f){this.request=M;this.cursor=f}; dX=function(M){return iV(M).then(function(f){return f?new bV(M,f):null})}; g.y$=function(M){M.cursor.continue(void 0);return dX(M.request)}; n20=function(M,f,A){return new Promise(function(Q,N){function Y(){h||(h=new cZ6(I.result,{closed:p}));return h} var I=f!==void 0?self.indexedDB.open(M,f):self.indexedDB.open(M);var D=A.blocked,E=A.blocking,t=A.caJ,v=A.upgrade,p=A.closed,h;I.addEventListener("upgradeneeded",function(S){try{if(S.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(I.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");S.dataLoss&&S.dataLoss!=="none"&&CH("IDB_DATA_CORRUPTED",{reason:S.dataLossMessage||"unknown reason",dbName:V$(M)});var L=Y(),a=new jj(I.transaction); v&&v(L,function(q){return S.oldVersion=q},a); a.done.catch(function(q){N(q)})}catch(q){N(q)}}); I.addEventListener("success",function(){var S=I.result;E&&S.addEventListener("versionchange",function(){E(Y())}); S.addEventListener("close",function(){CH("IDB_UNEXPECTEDLY_CLOSED",{dbName:V$(M),dbVersion:S.version});t&&t()}); Q(Y())}); I.addEventListener("error",function(){N(I.error)}); D&&I.addEventListener("blocked",function(){D()})})}; jA6=function(M,f,A){A=A===void 0?{}:A;return n20(M,f,A)}; kk=function(M,f){f=f===void 0?{}:f;var A,Q,N,Y;return g.n(function(I){if(I.Z==1)return g.HX(I,2),A=self.indexedDB.deleteDatabase(M),Q=f,(N=Q.blocked)&&A.addEventListener("blocked",function(){N()}),g.r(I,qD6(A),4); if(I.Z!=2)return g.Rf(I,0);Y=g.id(I);throw sL(Y,M,"",-1);})}; WY=function(M,f){this.name=M;this.options=f;this.j=!0;this.N=this.C=0}; $Yt=function(M,f){return new g.au("INCOMPATIBLE_DB_VERSION",{dbName:M.name,oldVersion:M.options.version,newVersion:f})}; g.OL=function(M,f){if(!f)throw g.cY("openWithToken",V$(M.name));return M.open()}; FsT=function(M,f){var A;return g.n(function(Q){if(Q.Z==1)return g.r(Q,g.OL(X3,f),2);A=Q.K;return Q.return(g.zf(A,["databases"],{gq:!0,mode:"readwrite"},function(N){var Y=N.objectStore("databases");return Y.get(M.actualName).then(function(I){if(I?M.actualName!==I.actualName||M.publicName!==I.publicName||M.userIdentifier!==I.userIdentifier:1)return g.PY(Y,M).then(function(){})})}))})}; JO=function(M,f){var A;return g.n(function(Q){if(Q.Z==1)return M?g.r(Q,g.OL(X3,f),2):Q.return();A=Q.K;return Q.return(A.delete("databases",M))})}; yZT=function(M,f){var A,Q;return g.n(function(N){return N.Z==1?(A=[],g.r(N,g.OL(X3,f),2)):N.Z!=3?(Q=N.K,g.r(N,g.zf(Q,["databases"],{gq:!0,mode:"readonly"},function(Y){A.length=0;return g.F3(Y.objectStore("databases"),{},function(I){M(I.getValue())&&A.push(I.getValue());return g.y$(I)})}),3)):N.return(A)})}; dYe=function(M,f){return yZT(function(A){return A.publicName===M&&A.userIdentifier!==void 0},f)}; em6=function(){var M,f,A,Q;return g.n(function(N){switch(N.Z){case 1:M=EL();if((f=M)==null?0:f.hasSucceededOnce)return N.return(!0);if(KH&&wy()&&!ll()||g.Gf)return N.return(!1);try{if(A=self,!(A.indexedDB&&A.IDBIndex&&A.IDBKeyRange&&A.IDBObjectStore))return N.return(!1)}catch(Y){return N.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return N.return(!1);g.HX(N,2);Q={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.r(N,FsT(Q,wX),4);case 4:return g.r(N,JO("yt-idb-test-do-not-use",wX),5);case 5:return N.return(!0);case 2:return g.id(N),N.return(!1)}})}; b5b=function(){if(lV!==void 0)return lV;LH=!0;return lV=em6().then(function(M){LH=!1;var f;if((f=DN())!=null&&f.K){var A;f={hasSucceededOnce:((A=EL())==null?void 0:A.hasSucceededOnce)||M};var Q;(Q=DN())==null||Q.set("LAST_RESULT_ENTRY_KEY",f,2592E3,!0)}return M})}; Mn=function(){return g.wD("ytglobal.idbToken_")||void 0}; g.fr=function(){var M=Mn();return M?Promise.resolve(M):b5b().then(function(f){(f=f?wX:void 0)&&g.Gz("ytglobal.idbToken_",f);return f})}; ki0=function(M){if(!g.l$())throw M=new g.au("AUTH_INVALID",{dbName:M}),ou(M),M;var f=g.w$();return{actualName:M+":"+f,publicName:M,userIdentifier:f}}; Ws6=function(M,f,A,Q){var N,Y,I,D,E,t;return g.n(function(v){switch(v.Z){case 1:return Y=(N=Error().stack)!=null?N:"",g.r(v,g.fr(),2);case 2:I=v.K;if(!I)throw D=g.cY("openDbImpl",M,f),g.mE("ytidb_async_stack_killswitch")||(D.stack=D.stack+"\n"+Y.substring(Y.indexOf("\n")+1)),ou(D),D;UL(M);E=A?{actualName:M,publicName:M,userIdentifier:void 0}:ki0(M);g.HX(v,3);return g.r(v,FsT(E,I),5);case 5:return g.r(v,jA6(E.actualName,f,Q),6);case 6:return v.return(v.K);case 3:return t=g.id(v),g.HX(v,7),g.r(v,JO(E.actualName, I),9);case 9:g.Rf(v,8);break;case 7:g.id(v);case 8:throw t;}})}; O5b=function(M,f,A){A=A===void 0?{}:A;return Ws6(M,f,!1,A)}; Xve=function(M,f,A){A=A===void 0?{}:A;return Ws6(M,f,!0,A)}; JZD=function(M,f){f=f===void 0?{}:f;var A,Q;return g.n(function(N){if(N.Z==1)return g.r(N,g.fr(),2);if(N.Z!=3){A=N.K;if(!A)return N.return();UL(M);Q=ki0(M);return g.r(N,kk(Q.actualName,f),3)}return g.r(N,JO(Q.actualName,A),0)})}; Ksz=function(M,f,A){M=M.map(function(Q){return g.n(function(N){return N.Z==1?g.r(N,kk(Q.actualName,f),2):g.r(N,JO(Q.actualName,A),0)})}); return Promise.all(M).then(function(){})}; Gie=function(M){var f=f===void 0?{}:f;var A,Q;return g.n(function(N){if(N.Z==1)return g.r(N,g.fr(),2);if(N.Z!=3){A=N.K;if(!A)return N.return();UL(M);return g.r(N,dYe(M,A),3)}Q=N.K;return g.r(N,Ksz(Q,f,A),0)})}; wvT=function(M,f){f=f===void 0?{}:f;var A;return g.n(function(Q){if(Q.Z==1)return g.r(Q,g.fr(),2);if(Q.Z!=3){A=Q.K;if(!A)return Q.return();UL(M);return g.r(Q,kk(M,f),3)}return g.r(Q,JO(M,A),0)})}; AL=function(M,f){WY.call(this,M,f);this.options=f;UL(M)}; lgz=function(M,f){var A;return function(){A||(A=new AL(M,f));return A}}; g.Qf=function(M,f){return lgz(M,f)}; Nn=function(M){return g.OL(Moe(),M)}; fSU=function(M,f,A,Q){var N,Y,I;return g.n(function(D){switch(D.Z){case 1:return N={config:M,hashData:f,timestamp:Q!==void 0?Q:(0,g.W)()},g.r(D,Nn(A),2);case 2:return Y=D.K,g.r(D,Y.clear("hotConfigStore"),3);case 3:return g.r(D,g.nH(Y,"hotConfigStore",N),4);case 4:return I=D.K,D.return(I)}})}; A3t=function(M,f,A,Q,N){var Y,I,D;return g.n(function(E){switch(E.Z){case 1:return Y={config:M,hashData:f,configData:A,timestamp:N!==void 0?N:(0,g.W)()},g.r(E,Nn(Q),2);case 2:return I=E.K,g.r(E,I.clear("coldConfigStore"),3);case 3:return g.r(E,g.nH(I,"coldConfigStore",Y),4);case 4:return D=E.K,E.return(D)}})}; Qb0=function(M){var f,A;return g.n(function(Q){return Q.Z==1?g.r(Q,Nn(M),2):Q.Z!=3?(f=Q.K,A=void 0,g.r(Q,g.zf(f,["coldConfigStore"],{mode:"readwrite",gq:!0},function(N){return g.ej(N.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(Y){A=Y.getValue()})}),3)):Q.return(A)})}; NBT=function(M){var f,A;return g.n(function(Q){return Q.Z==1?g.r(Q,Nn(M),2):Q.Z!=3?(f=Q.K,A=void 0,g.r(Q,g.zf(f,["hotConfigStore"],{mode:"readwrite",gq:!0},function(N){return g.ej(N.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(Y){A=Y.getValue()})}),3)):Q.return(A)})}; YG9=function(){return g.n(function(M){return g.r(M,Gie("ytGcfConfig"),0)})}; YH=function(){g.y.call(this);this.Z=[];this.K=[];var M=g.wD("yt.gcf.config.hotUpdateCallbacks");M?(this.Z=[].concat(g.c(M)),this.K=M):(this.K=[],g.Gz("yt.gcf.config.hotUpdateCallbacks",this.K))}; vy=function(){var M=this;this.N=!1;this.j=this.C=0;this.G=new YH;this.Ed={Nz_:function(){M.N=!0}, c8$:function(){return M.K}, XeY:function(f){IV(M,f)}, gM:function(f){M.gM(f)}, O__:function(f){T8(M,f)}, x_:function(){return M.coldHashData}, Ib:function(){return M.hotHashData}, hi_:function(){return M.Z}, OFx:function(){return D_()}, wq8:function(){return Ex()}, v87:function(){return g.wD("yt.gcf.config.coldHashData")}, YIB:function(){return g.wD("yt.gcf.config.hotHashData")}, ufN:function(){IS9(M)}, mz0:function(){M.gM(void 0);tL(M);delete vy.instance}, YWx:function(f){M.j=f}, qIr:function(){return M.j}}}; TBd=function(){if(!vy.instance){var M=new vy;vy.instance=M}return vy.instance}; toX=function(M){var f;g.n(function(A){if(A.Z==1)return g.mE("start_client_gcf")||g.mE("delete_gcf_config_db")?g.mE("start_client_gcf")?g.r(A,g.fr(),3):A.CJ(2):A.return();A.Z!=2&&((f=A.K)&&g.l$()&&!g.mE("delete_gcf_config_db")?(M.N=!0,IS9(M)):(D4b(M),ESt(M)));return g.mE("delete_gcf_config_db")?g.r(A,YG9(),0):A.CJ(0)})}; pr=function(){var M;return(M=Ex())!=null?M:g.GR("RAW_HOT_CONFIG_GROUP")}; vSb=function(M){var f,A,Q,N,Y,I;return g.n(function(D){switch(D.Z){case 1:if(M.Z)return D.return(Ex());if(!M.N)return f=g.cY("getHotConfig IDB not initialized"),AI(f),D.return(Promise.reject(f));A=Mn();Q=g.GR("TIME_CREATED_MS");if(!A){N=g.cY("getHotConfig token error");AI(N);D.CJ(2);break}return g.r(D,NBT(A),3);case 3:if((Y=D.K)&&Y.timestamp>Q)return IV(M,Y.config),M.gM(Y.hashData),D.return(Ex());case 2:ESt(M);if(!(A&&M.Z&&M.hotHashData)){D.CJ(4);break}return g.r(D,fSU(M.Z,M.hotHashData,A,Q),4);case 4:return M.Z? D.return(Ex()):(I=new g.GX("Config not available in ytConfig"),AI(I),D.return(Promise.reject(I)))}})}; hr9=function(M){var f,A,Q,N,Y,I;return g.n(function(D){switch(D.Z){case 1:if(M.K)return D.return(D_());if(!M.N)return f=g.cY("getColdConfig IDB not initialized"),AI(f),D.return(Promise.reject(f));A=Mn();Q=g.GR("TIME_CREATED_MS");if(!A){N=g.cY("getColdConfig");AI(N);D.CJ(2);break}return g.r(D,Qb0(A),3);case 3:if((Y=D.K)&&Y.timestamp>Q)return T8(M,Y.config),pJz(M,Y.configData),tL(M,Y.hashData),D.return(D_());case 2:D4b(M);if(!(A&&M.K&&M.coldHashData&&M.configData)){D.CJ(4);break}return g.r(D,A3t(M.K, M.coldHashData,M.configData,A,Q),4);case 4:return M.K?D.return(D_()):(I=new g.GX("Config not available in ytConfig"),AI(I),D.return(Promise.reject(I)))}})}; IS9=function(M){if(!M.Z||!M.K){if(!Mn()){var f=g.cY("scheduleGetConfigs");AI(f)}M.C||(M.C=g.k6.aY(function(){return g.n(function(A){switch(A.Z){case 1:return g.HX(A,2),g.r(A,vSb(M),4);case 4:g.Rf(A,3);break;case 2:g.id(A);case 3:return g.HX(A,5),g.r(A,hr9(M),7);case 7:g.Rf(A,6);break;case 5:g.id(A);case 6:M.C&&(M.C=0),g.qc(A)}})},100))}}; SGU=function(M,f,A){var Q,N,Y;return g.n(function(I){switch(I.Z){case 1:if(!g.mE("start_client_gcf")){I.CJ(0);break}A&&IV(M,A);M.gM(f);Q=Mn();if(!Q){I.CJ(3);break}if(A){I.CJ(4);break}return g.r(I,NBT(Q),5);case 5:N=I.K,A=(Y=N)==null?void 0:Y.config;case 4:return g.r(I,fSU(A,f,Q),3);case 3:if(A)for(var D=A,E=g.V(M.G.K),t=E.next();!t.done;t=E.next())t=t.value,t(D);g.qc(I)}})}; Lme=function(M,f,A){var Q,N,Y,I;return g.n(function(D){if(D.Z==1){if(!g.mE("start_client_gcf"))return D.CJ(0);tL(M,f);return(Q=Mn())?A?D.CJ(4):g.r(D,Qb0(Q),5):D.CJ(0)}D.Z!=4&&(N=D.K,A=(Y=N)==null?void 0:Y.config);if(!A)return D.CJ(0);I=A.configData;return g.r(D,A3t(A,f,I,Q),0)})}; oST=function(){var M=TBd(),f=(0,g.W)()-M.j;if(!(M.j!==0&&f0&&(f.request={internalExperimentFlags:A});U4d(M,void 0,f);Vo6(void 0,f);aSe(void 0,f);qGN(M,void 0,f);H4b(void 0,f);g.mE("start_client_gcf")&&m4X(void 0,f);g.GR("DELEGATED_SESSION_ID")&& !g.mE("pageid_as_header_web")&&(f.user={onBehalfOfUser:g.GR("DELEGATED_SESSION_ID")});!g.mE("fill_delegate_context_in_gel_killswitch")&&(M=g.GR("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(f.user=Object.assign({},f.user,{serializedDelegationContext:M}));M=g.GR("INNERTUBE_CONTEXT");var Q;if(g.mE("enable_persistent_device_token")&&(M==null?0:(Q=M.client)==null?0:Q.rolloutToken)){var N;f.client.rolloutToken=M==null?void 0:(N=M.client)==null?void 0:N.rolloutToken}Q=Object;N=Q.assign;M=f.client; A={};for(var Y=g.V(Object.entries(Yy(g.GR("DEVICE","")))),I=Y.next();!I.done;I=Y.next()){var D=g.V(I.value);I=D.next().value;D=D.next().value;I==="cbrand"?A.deviceMake=D:I==="cmodel"?A.deviceModel=D:I==="cbr"?A.browserName=D:I==="cbrver"?A.browserVersion=D:I==="cos"?A.osName=D:I==="cosver"?A.osVersion=D:I==="cplatform"&&(A.platform=D)}f.client=N.call(Q,M,A);return f}; U4d=function(M,f,A){M=M.Bm;if(M==="WEB"||M==="MWEB"||M===1||M===2)if(f){A=$V(f,ZS,96)||new ZS;var Q=d$();Q=Object.keys(sbD).indexOf(Q);Q=Q===-1?null:Q;Q!==null&&MU(A,3,Q);ys(f,ZS,96,A)}else A&&(A.client.mainAppWebInfo=(Q=A.client.mainAppWebInfo)!=null?Q:{},A.client.mainAppWebInfo.webDisplayMode=d$())}; Vo6=function(M,f){var A=g.wD("yt.embedded_player.embed_url");A&&(M?(f=$V(M,n4,7)||new n4,wn(f,4,A),ys(M,n4,7,f)):f&&(f.thirdParty={embedUrl:A}))}; aSe=function(M,f){var A;if(g.mE("web_log_memory_total_kbytes")&&((A=g.Kb.navigator)==null?0:A.deviceMemory)){var Q;A=(Q=g.Kb.navigator)==null?void 0:Q.deviceMemory;M?aZ(M,95,Od(A*1E6)):f&&(f.client.memoryTotalKbytes=""+A*1E6)}}; qGN=function(M,f,A){if(M.appInstallData)if(f){var Q;A=(Q=$V(f,xS,62))!=null?Q:new xS;wn(A,6,M.appInstallData);ys(f,xS,62,A)}else A&&(A.client.configInfo=A.client.configInfo||{},A.client.configInfo.appInstallData=M.appInstallData)}; H4b=function(M,f){var A=TPN();A&&(M?MU(M,61,c3T[A]):f&&(f.client.connectionType=A));g.mE("web_log_effective_connection_type")&&(A=E2N())&&(M?MU(M,94,Rrb[A]):f&&(f.client.effectiveConnectionType=A))}; gS0=function(M,f,A){A=A===void 0?{}:A;var Q={};g.GR("EOM_VISITOR_DATA")?Q={"X-Goog-EOM-Visitor-Id":g.GR("EOM_VISITOR_DATA")}:Q={"X-Goog-Visitor-Id":A.visitorData||g.GR("VISITOR_DATA","")};if(f&&f.includes("www.youtube-nocookie.com"))return Q;f=A.qy||g.GR("AUTHORIZATION");f||(M?f="Bearer "+g.wD("gapi.auth.getToken")().access_token:(M=fgX().oK(Lr),g.mE("pageid_as_header_web")||delete M["X-Goog-PageId"],Q=Object.assign({},Q,M)));f&&(Q.Authorization=f);return Q}; m4X=function(M,f){var A=oST();if(A){var Q=A.coldConfigData,N=A.coldHashData;A=A.hotHashData;if(M){var Y;f=(Y=$V(M,xS,62))!=null?Y:new xS;Q=wn(f,1,Q);wn(Q,3,N).gM(A);ys(M,xS,62,f)}else f&&(f.client.configInfo=f.client.configInfo||{},Q&&(f.client.configInfo.coldConfigData=Q),N&&(f.client.configInfo.coldHashData=N),A&&(f.client.configInfo.hotHashData=A))}}; oV=function(M,f){this.version=M;this.args=f}; Cr=function(M,f){this.topic=M;this.K=f}; sx=function(M,f){var A=Ux();A&&A.publish.call(A,M.toString(),M,f)}; x4t=function(M){var f=BBb,A=Ux();if(!A)return 0;var Q=A.subscribe(f.toString(),function(N,Y){var I=g.wD("ytPubsub2Pubsub2SkipSubKey");I&&I==Q||(I=function(){if(cy[Q])try{if(Y&&f instanceof Cr&&f!=N)try{var D=f.K,E=Y;if(!E.args||!E.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!D.Ht){var t=new D;D.Ht=t.version}var v=D.Ht}catch(p){}if(!v||E.version!=v)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{Y=Reflect.construct(D, g.sB(E.args))}catch(p){throw p.message="yt.pubsub2.Data.deserialize(): "+p.message,p;}}catch(p){throw p.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+f.toString()+": "+p.message,p;}M.call(window,Y)}catch(p){g.MR(p)}},i4N[f.toString()]?g.Yk()?g.k6.aY(I):g.Uf(I,0):I())}); cy[Q]=!0;RV[f.toString()]||(RV[f.toString()]=[]);RV[f.toString()].push(Q);return Q}; uQT=function(){var M=Z4d,f=x4t(function(A){M.apply(void 0,arguments);r3X(f)}); return f}; r3X=function(M){var f=Ux();f&&(typeof M==="number"&&(M=[M]),g.F0(M,function(A){f.unsubscribeByKey(A);delete cy[A]}))}; Ux=function(){return g.wD("ytPubsub2Pubsub2Instance")}; gQ=function(M,f,A){A=A===void 0?{sampleRate:.1}:A;Math.random()Fm6||I=b4b&&(jt++,g.mE("abandon_compression_after_N_slow_zips")?nr===g.sf("compression_disable_point")&&jt>kR6&&(ug=!1):ug=!1);Wm6(f);Q.headers||(Q.headers={});Q.headers["Content-Encoding"]="gzip";Q.postBody=M;Q.postParams=void 0;N(A,Q)}; O4f=function(M){var f=f===void 0?!1:f;var A=A===void 0?!1:A;var Q=(0,g.W)(),N={startTime:Q,ticks:{},infos:{}},Y=f?g.wD("yt.logging.gzipForFetch",!1):!0;if(ug&&Y){if(!M.body)return M;try{var I=A?M.body:typeof M.body==="string"?M.body:JSON.stringify(M.body);Y=I;if(!A&&typeof I==="string"){var D=$4c(I);if(D!=null&&(D>Fm6||D=b4b)if(jt++,g.mE("abandon_compression_after_N_slow_zips")||g.mE("abandon_compression_after_N_slow_zips_lr")){f=jt/nr;var t=kR6/g.sf("compression_disable_point");nr>0&&nr%g.sf("compression_disable_point")===0&&f>=t&&(ug=!1)}else ug=!1;Wm6(N)}}M.headers=Object.assign({},{"Content-Encoding":"gzip"},M.headers||{});M.body=Y;return M}catch(v){return AI(v),M}}else return M}; $4c=function(M){try{return(new Blob(M.split(""))).size}catch(f){return AI(f),null}}; Wm6=function(M){g.mE("gel_compression_csi_killswitch")||!g.mE("log_gel_compression_latency")&&!g.mE("log_gel_compression_latency_lr")||gQ("gel_compression",M,{sampleRate:.1})}; FO=function(M){var f=this;this.Bc=this.K=!1;this.potentialEsfErrorCounter=this.Z=0;this.handleError=function(){}; this.YH=function(){}; this.now=Date.now;this.Z$=!1;this.Ed={wek:function(v){f.Dk=v}, kh$:function(){f.Fr()}, nt:function(){f.n0()}, dn:function(v){return g.n(function(p){return g.r(p,f.dn(v),0)})}, aP:function(v,p){return f.aP(v,p)}, DW:function(){f.DW()}}; var A;this.zl=(A=M.zl)!=null?A:100;var Q;this.AV=(Q=M.AV)!=null?Q:1;var N;this.Zr=(N=M.Zr)!=null?N:2592E6;var Y;this.D7=(Y=M.D7)!=null?Y:12E4;var I;this.SB=(I=M.SB)!=null?I:5E3;var D;this.Dk=(D=M.Dk)!=null?D:void 0;this.ow=!!M.ow;var E;this.kL=(E=M.kL)!=null?E:.1;var t;this.nC=(t=M.nC)!=null?t:10;M.handleError&&(this.handleError=M.handleError);M.YH&&(this.YH=M.YH);M.Z$&&(this.Z$=M.Z$);M.Bc&&(this.Bc=M.Bc);this.X3=M.X3;this.BN=M.BN;this.hg=M.hg;this.UC=M.UC;this.sendFn=M.sendFn;this.XY=M.XY;this.FI= M.FI;$H(this)&&(!this.X3||this.X3("networkless_logging"))&&XJb(this)}; XJb=function(M){$H(M)&&!M.Z$&&(M.K=!0,M.ow&&Math.random()<=M.kL&&M.hg.Nd(M.Dk),M.DW(),M.UC.Ag()&&M.Fr(),M.UC.listen(M.XY,M.Fr.bind(M)),M.UC.listen(M.FI,M.n0.bind(M)))}; GRf=function(M,f){if(!$H(M))throw Error("IndexedDB is not supported: updateRequestHandlers");var A=f.options.onError?f.options.onError:function(){}; f.options.onError=function(N,Y){var I,D,E,t;return g.n(function(v){switch(v.Z){case 1:I=J3b(Y);(D=KmU(Y))&&M.X3&&M.X3("web_enable_error_204")&&M.handleError(Error("Request failed due to compression"),f.url,Y);if(!(M.X3&&M.X3("nwl_consider_error_code")&&I||M.X3&&!M.X3("nwl_consider_error_code")&&M.potentialEsfErrorCounter<=M.nC)){v.CJ(2);break}if(!M.UC.KR){v.CJ(3);break}return g.r(v,M.UC.KR(),3);case 3:if(M.UC.Ag()){v.CJ(2);break}A(N,Y);if(!M.X3||!M.X3("nwl_consider_error_code")||((E=f)==null?void 0: E.id)===void 0){v.CJ(6);break}return g.r(v,M.hg.nz(f.id,M.Dk,!1),6);case 6:return v.return();case 2:if(M.X3&&M.X3("nwl_consider_error_code")&&!I&&M.potentialEsfErrorCounter>M.nC)return v.return();M.potentialEsfErrorCounter++;if(((t=f)==null?void 0:t.id)===void 0){v.CJ(8);break}return f.sendCount=400&&M<=599?!1:!0}; KmU=function(M){var f;M=M==null?void 0:(f=M.error)==null?void 0:f.code;return!(M!==400&&M!==415)}; wJd=function(){if(dQ)return dQ();var M={};dQ=g.Qf("LogsDatabaseV2",{Qt:(M.LogsRequestsStore={zG:2},M),shared:!1,upgrade:function(f,A,Q){A(2)&&g.rX(f,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});A(3);A(5)&&(Q=Q.objectStore("LogsRequestsStore"),Q.K.indexNames.contains("newRequest")&&Q.K.deleteIndex("newRequest"),g.$k(Q,"newRequestV2",["status","interface","timestamp"]));A(7)&&uV(f,"sapisid");A(9)&&uV(f,"SWHealthLog")}, version:9});return dQ()}; et=function(M){return g.OL(wJd(),M)}; MCz=function(M,f){var A,Q,N,Y;return g.n(function(I){if(I.Z==1)return A={startTime:(0,g.W)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.r(I,et(f),2);if(I.Z!=3)return Q=I.K,N=Object.assign({},M,{options:JSON.parse(JSON.stringify(M.options)),interface:g.GR("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.r(I,g.nH(Q,"LogsRequestsStore",N),3);Y=I.K;A.ticks.tc=(0,g.W)();lSb(A);return I.return(Y)})}; ffN=function(M,f){var A,Q,N,Y,I,D,E,t;return g.n(function(v){if(v.Z==1)return A={startTime:(0,g.W)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.r(v,et(f),2);if(v.Z!=3)return Q=v.K,N=g.GR("INNERTUBE_CONTEXT_CLIENT_NAME",0),Y=[M,N,0],I=[M,N,(0,g.W)()],D=IDBKeyRange.bound(Y,I),E="prev",g.mE("use_fifo_for_networkless")&&(E="next"),t=void 0,g.r(v,g.zf(Q,["LogsRequestsStore"],{mode:"readwrite",gq:!0},function(p){return g.ej(p.objectStore("LogsRequestsStore").index("newRequestV2"), {query:D,direction:E},function(h){h.getValue()&&(t=h.getValue(),M==="NEW"&&(t.status="QUEUED",h.update(t)))})}),3); A.ticks.tc=(0,g.W)();lSb(A);return v.return(t)})}; AIe=function(M,f){var A;return g.n(function(Q){if(Q.Z==1)return g.r(Q,et(f),2);A=Q.K;return Q.return(g.zf(A,["LogsRequestsStore"],{mode:"readwrite",gq:!0},function(N){var Y=N.objectStore("LogsRequestsStore");return Y.get(M).then(function(I){if(I)return I.status="QUEUED",g.PY(Y,I).then(function(){return I})})}))})}; Qd6=function(M,f,A,Q){A=A===void 0?!0:A;var N;return g.n(function(Y){if(Y.Z==1)return g.r(Y,et(f),2);N=Y.K;return Y.return(g.zf(N,["LogsRequestsStore"],{mode:"readwrite",gq:!0},function(I){var D=I.objectStore("LogsRequestsStore");return D.get(M).then(function(E){return E?(E.status="NEW",A&&(E.sendCount+=1),Q!==void 0&&(E.options.compress=Q),g.PY(D,E).then(function(){return E})):g.gX.resolve(void 0)})}))})}; NyU=function(M,f){var A;return g.n(function(Q){if(Q.Z==1)return g.r(Q,et(f),2);A=Q.K;return Q.return(A.delete("LogsRequestsStore",M))})}; Yfb=function(M){var f,A;return g.n(function(Q){if(Q.Z==1)return g.r(Q,et(M),2);f=Q.K;A=(0,g.W)()-2592E6;return g.r(Q,g.zf(f,["LogsRequestsStore"],{mode:"readwrite",gq:!0},function(N){return g.F3(N.objectStore("LogsRequestsStore"),{},function(Y){if(Y.getValue().timestamp<=A)return Y.delete().then(function(){return g.y$(Y)})})}),0)})}; IfN=function(){g.n(function(M){return g.r(M,Gie("LogsDatabaseV2"),0)})}; lSb=function(M){g.mE("nwl_csi_killswitch")||gQ("networkless_performance",M,{sampleRate:1})}; DRX=function(M){return g.OL(Ty0(),M)}; Ey9=function(M){var f,A;g.n(function(Q){if(Q.Z==1)return g.r(Q,DRX(M),2);f=Q.K;A=(0,g.W)()-2592E6;return g.r(Q,g.zf(f,["SWHealthLog"],{mode:"readwrite",gq:!0},function(N){return g.F3(N.objectStore("SWHealthLog"),{},function(Y){if(Y.getValue().timestamp<=A)return Y.delete().then(function(){return g.y$(Y)})})}),0)})}; tCT=function(M){var f;return g.n(function(A){if(A.Z==1)return g.r(A,DRX(M),2);f=A.K;return g.r(A,f.clear("SWHealthLog"),0)})}; g.bg=function(M,f,A,Q,N,Y,I){N=N===void 0?"":N;Y=Y===void 0?!1:Y;I=I===void 0?!1:I;if(M)if(A&&!g.JI())AI(new g.GX("Legacy referrer-scrubbed ping detected")),M&&vye(M,void 0,{scrubReferrer:!0});else if(N)gy(M,f,"POST",N,Q);else if(g.GR("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Q||I)gy(M,f,"GET","",Q,void 0,Y,I);else{b:{try{c:{var D=new ZYf({url:M});if(Aj(D.K,"dsh")==="1")var E=null;else{var t=Aj(D.K,"ae");if(t==="1"){var v=Aj(D.K,"adurl");if(v)try{E={version:3,tv:decodeURIComponent(v),j0:QA(D.K,"act=1", "ri=1",r96(D))};break c}catch(S){}}E=t==="2"?{version:4,tv:QA(D.K,"dct=1","suid="+D.Z,""),j0:QA(D.K,"act=1","ri=1","suid="+D.Z)}:null}}if(E){var p=g4(M);var h=!(!p||!p.endsWith("/aclk")||PP(M,"ri")!=="1");break b}}catch(S){}h=!1}h?pae(M)?(f&&f(),A=!0):A=!1:A=!1;A||vye(M,f)}}; pae=function(M,f){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(M,f===void 0?"":f))return!0}catch(A){}return!1}; vye=function(M,f,A){A=A===void 0?{}:A;var Q=new Image,N=""+hG0++;kH[N]=Q;Q.onload=Q.onerror=function(){f&&kH[N]&&f();delete kH[N]}; A.scrubReferrer&&(Q.referrerPolicy="no-referrer");Q.src=M}; Sft=function(M){var f;return((f=document.featurePolicy)==null?0:f.allowedFeatures().includes("attribution-reporting"))?M+"&nis=6":M+"&nis=5"}; Ox=function(){Wy||(Wy=new Tf("yt.offline"));return Wy}; LED=function(M){if(g.mE("offline_error_handling")){var f=Ox().get("errors",!0)||{};f[M.message]={name:M.name,stack:M.stack};M.level&&(f[M.message].level=M.level);Ox().set("errors",f,2592E3,!0)}}; XO=function(){this.K=new Map;this.Z=!1}; JL=function(){if(!XO.instance){var M=g.wD("yt.networkRequestMonitor.instance")||new XO;g.Gz("yt.networkRequestMonitor.instance",M);XO.instance=M}return XO.instance}; Kr=function(){g.Lz.call(this);var M=this;this.Z=!1;this.K=RgN();this.K.listen("networkstatus-online",function(){if(M.Z&&g.mE("offline_error_handling")){var f=Ox().get("errors",!0);if(f){for(var A in f)if(f[A]){var Q=new g.GX(A,"sent via offline_errors");Q.name=f[A].name;Q.stack=f[A].stack;Q.level=f[A].level;g.MR(Q)}Ox().set("errors",{},2592E3,!0)}}})}; oyT=function(){if(!Kr.instance){var M=g.wD("yt.networkStatusManager.instance")||new Kr;g.Gz("yt.networkStatusManager.instance",M);Kr.instance=M}return Kr.instance}; g.G8=function(M){M=M===void 0?{}:M;g.Lz.call(this);var f=this;this.K=this.C=0;this.Z=oyT();var A=g.wD("yt.networkStatusManager.instance.listen").bind(this.Z);A&&(M.rateLimit?(this.rateLimit=M.rateLimit,A("networkstatus-online",function(){ClU(f,"publicytnetworkstatus-online")}),A("networkstatus-offline",function(){ClU(f,"publicytnetworkstatus-offline")})):(A("networkstatus-online",function(){f.dispatchEvent("publicytnetworkstatus-online")}),A("networkstatus-offline",function(){f.dispatchEvent("publicytnetworkstatus-offline")})))}; ClU=function(M,f){M.rateLimit?M.K?(g.k6.i5(M.C),M.C=g.k6.aY(function(){M.j!==f&&(M.dispatchEvent(f),M.j=f,M.K=(0,g.W)())},M.rateLimit-((0,g.W)()-M.K))):(M.dispatchEvent(f),M.j=f,M.K=(0,g.W)()):M.dispatchEvent(f)}; lg=function(){var M=FO.call;wQ||(wQ=new g.G8({L98:!0,FKx:!0}));M.call(FO,this,{hg:{Nd:Yfb,ZN:NyU,i_:ffN,EO3:AIe,nz:Qd6,set:MCz},UC:wQ,handleError:function(f,A,Q){var N,Y=Q==null?void 0:(N=Q.error)==null?void 0:N.code;if(Y===400||Y===415){var I;f=new g.GX(f.message,A,Q==null?void 0:(I=Q.error)==null?void 0:I.code);AI(f,void 0,void 0,void 0,!0)}else g.MR(f)}, YH:AI,sendFn:URX,now:g.W,St:LED,BN:g.Nr(),XY:"publicytnetworkstatus-online",FI:"publicytnetworkstatus-offline",ow:!0,kL:.1,nC:g.sf("potential_esf_error_limit",10),X3:g.mE,Z$:!(g.l$()&&g.RH(document.location.toString())!=="www.youtube-nocookie.com")});this.j=new g.LB;g.mE("networkless_immediately_drop_all_requests")&&IfN();wvT("LogsDatabaseV2")}; MF=function(){var M=g.wD("yt.networklessRequestController.instance");M||(M=new lg,g.Gz("yt.networklessRequestController.instance",M),g.mE("networkless_logging")&&g.fr().then(function(f){M.Dk=f;XJb(M);M.j.resolve();M.ow&&Math.random()<=M.kL&&M.Dk&&Ey9(M.Dk);g.mE("networkless_immediately_drop_sw_health_store")&&VC9(M)})); return M}; VC9=function(M){var f;g.n(function(A){if(!M.Dk)throw f=g.cY("clearSWHealthLogsDb"),f;return A.return(tCT(M.Dk).catch(function(Q){M.handleError(Q)}))})}; URX=function(M,f,A,Q){Q=Q===void 0?!1:Q;f=g.mE("web_fp_via_jspb")?Object.assign({},f):f;g.mE("use_cfr_monitor")&&afb(M,f);if(g.mE("use_request_time_ms_header"))f.headers&&tI(M)&&(f.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.W)())));else{var N;if((N=f.postParams)==null?0:N.requestTimeMs)f.postParams.requestTimeMs=Math.round((0,g.W)())}A&&Object.keys(f).length===0?g.bg(M):f.compress?f.postBody?(typeof f.postBody!=="string"&&(f.postBody=JSON.stringify(f.postBody)),Py(M,f.postBody, f,g.Ba,Q)):Py(M,JSON.stringify(f.postParams),f,il,Q):g.Ba(M,f)}; fn=function(M,f){g.mE("use_event_time_ms_header")&&tI(M)&&(f.headers||(f.headers={}),f.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.W)())));return f}; afb=function(M,f){var A=f.onError?f.onError:function(){}; f.onError=function(N,Y){JL().requestComplete(M,!1);A(N,Y)}; var Q=f.onSuccess?f.onSuccess:function(){}; f.onSuccess=function(N,Y){JL().requestComplete(M,!0);Q(N,Y)}}; g.AJ=function(M){this.config_=null;M?this.config_=M:CGz()&&(this.config_=g.hL())}; g.QH=function(M,f,A,Q){function N(t){try{if((t===void 0?0:t)&&Q.retry&&!Q.networklessOptions.bypassNetworkless)Y.method="POST",Q.networklessOptions.writeThenSend?MF().writeThenSend(E,Y):MF().sendAndWrite(E,Y);else if(Q.compress){var v=!Q.networklessOptions.writeThenSend;if(Y.postBody){var p=Y.postBody;typeof p!=="string"&&(p=JSON.stringify(Y.postBody));Py(E,p,Y,g.Ba,v)}else Py(E,JSON.stringify(Y.postParams),Y,il,v)}else g.mE("web_all_payloads_via_jspb")?g.Ba(E,Y):il(E,Y)}catch(h){if(h.name==="InvalidAccessError")AI(Error("An extension is blocking network request.")); else throw h;}} !g.GR("VISITOR_DATA")&&f!=="visitor_id"&&Math.random()<.01&&AI(new g.GX("Missing VISITOR_DATA when sending innertube request.",f,A,Q));if(!M.isReady())throw M=new g.GX("innertube xhrclient not ready",f,A,Q),g.MR(M),M;var Y={headers:Q.headers||{},method:"POST",postParams:A,postBody:Q.postBody,postBodyFormat:Q.postBodyFormat||"JSON",onTimeout:function(){Q.onTimeout()}, onFetchTimeout:Q.onTimeout,onSuccess:function(t,v){if(Q.onSuccess)Q.onSuccess(v)}, onFetchSuccess:function(t){if(Q.onSuccess)Q.onSuccess(t)}, onError:function(t,v){if(Q.onError)Q.onError(v)}, onFetchError:function(t){if(Q.onError)Q.onError(t)}, timeout:Q.timeout,withCredentials:!0,compress:Q.compress};Y.headers["Content-Type"]||(Y.headers["Content-Type"]="application/json");A="";var I=M.config_.Ce;I&&(A=I);I=M.config_.Ps||!1;var D=gS0(I,A,Q);Object.assign(Y.headers,D);Y.headers.Authorization&&!A&&I&&(Y.headers["x-origin"]=window.location.origin);var E=Df(""+A+("/youtubei/"+M.config_.innertubeApiVersion+"/"+f),{alt:"json"});g.wD("ytNetworklessLoggingInitializationOptions")&&qf6.isNwlInitialized?b5b().then(function(t){N(t)}):N(!1)}; g.Dy=function(M,f,A){var Q=g.NF();if(Q&&f){var N=Q.subscribe(M,function(){function Y(){Yr[N]&&f.apply&&typeof f.apply=="function"&&f.apply(A||window,I)} var I=arguments;try{g.IP[M]?Y():g.Uf(Y,0)}catch(D){g.MR(D)}},A); Yr[N]=!0;Tm[M]||(Tm[M]=[]);Tm[M].push(N);return N}return 0}; H0b=function(M){var f=g.Dy("LOGGED_IN",function(A){M.apply(void 0,arguments);g.EC(f)})}; g.EC=function(M){var f=g.NF();f&&(typeof M==="number"?M=[M]:typeof M==="string"&&(M=[parseInt(M,10)]),g.F0(M,function(A){f.unsubscribeByKey(A);delete Yr[A]}))}; g.tJ=function(M,f){var A=g.NF();return A?A.publish.apply(A,arguments):!1}; sdb=function(M){var f=g.NF();if(f)if(f.clear(M),M)mRD(M);else for(var A in Tm)mRD(A)}; g.NF=function(){return g.Kb.ytPubsubPubsubInstance}; mRD=function(M){Tm[M]&&(M=Tm[M],g.F0(M,function(f){Yr[f]&&delete Yr[f]}),M.length=0)}; g.vU=function(M,f,A){cIt(M,f,A===void 0?null:A)}; cIt=function(M,f,A){A=A===void 0?null:A;var Q=RGN(M),N=document.getElementById(Q),Y=N&&$sf(N),I=N&&!Y;Y?f&&f():(f&&(Y=g.Dy(Q,f),f=""+g.Ye(f),gyU[f]=Y),I||(N=Byb(M,Q,function(){$sf(N)||(jmT(N),g.tJ(Q),g.Uf(function(){sdb(Q)},0))},A)))}; Byb=function(M,f,A,Q){Q=Q===void 0?null:Q;var N=g.MQ("SCRIPT");N.id=f;N.onload=function(){A&&setTimeout(A,0)}; N.onreadystatechange=function(){switch(N.readyState){case "loaded":case "complete":N.onload()}}; Q&&N.setAttribute("nonce",Q);g.tu(N,g.BJ(M));M=document.getElementsByTagName("head")[0]||document.body;M.insertBefore(N,M.firstChild);return N}; RGN=function(M){var f=document.createElement("a");g.we(f,M);M=f.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+qu(M)}; pn=function(M,f){if(M===f)M=!0;else if(Array.isArray(M)&&Array.isArray(f))M=g.nm(M,f,pn);else if(g.Q9(M)&&g.Q9(f))a:if(g.Km(M).length!=g.Km(f).length)M=!1;else{for(var A in M)if(!pn(M[A],f[A])){M=!1;break a}M=!0}else M=!1;return M}; Ln=function(M){var f=g.jN.apply(1,arguments);if(!hJ(M)||f.some(function(Q){return!hJ(Q)}))throw Error("Only objects may be merged."); f=g.V(f);for(var A=f.next();!A.done;A=f.next())SS(M,A.value)}; SS=function(M,f){for(var A in f)if(hJ(f[A])){if(A in M&&!hJ(M[A]))throw Error("Cannot merge an object into a non-object.");A in M||(M[A]={});SS(M[A],f[A])}else if(oP(f[A])){if(A in M&&!oP(M[A]))throw Error("Cannot merge an array into a non-array.");A in M||(M[A]=[]);i0z(M[A],f[A])}else M[A]=f[A];return M}; i0z=function(M,f){f=g.V(f);for(var A=f.next();!A.done;A=f.next())A=A.value,hJ(A)?M.push(SS({},A)):oP(A)?M.push(i0z([],A)):M.push(A);return M}; hJ=function(M){return typeof M==="object"&&!Array.isArray(M)}; oP=function(M){return typeof M==="object"&&Array.isArray(M)}; qF=function(M){g.y.call(this);this.Z=M}; HU=function(M){qF.call(this,!0);this.K=M}; mp=function(M,f){g.y.call(this);var A=this;this.j=[];this.W=!1;this.Z=0;this.N=this.G=this.C=!1;this.Er=null;var Q=(0,g.IR)(M,f);this.K=new g.MY(function(){return Q(A.Er)},300); g.d(this,this.K);this.B=this.X=Infinity}; xR6=function(M,f){if(!f)return!1;for(var A=0;A-1)throw Error("Deps cycle for: "+f);if(M.Z.has(f))return M.Z.get(f);if(!M.K.has(f)){if(Q)return;throw Error("No provider for: "+f);}Q=M.K.get(f);A.push(f);if(Q.F_!==void 0)var N=Q.F_;else if(Q.Qn3)N=Q[PU]?zGX(M,Q[PU],A):[],N=Q.Qn3.apply(Q,g.c(N));else if(Q.Lw){N=Q.Lw;var Y=N[PU]?zGX(M,N[PU],A):[];N=new (Function.prototype.bind.apply(N,[null].concat(g.c(Y))))}else throw Error("Could not resolve providers for: "+f);A.pop();Q.sGi||M.Z.set(f,N); return N}; zGX=function(M,f,A){return f?f.map(function(Q){return Q instanceof rk?nn(M,Q.key,A,!0):nn(M,Q,A)}):[]}; $r=function(){jS||(jS=new uKb);return jS}; yH=function(){var M,f;return"h5vcc"in FH&&((M=FH.h5vcc.traceEvent)==null?0:M.traceBegin)&&((f=FH.h5vcc.traceEvent)==null?0:f.traceEnd)?1:"performance"in FH&&FH.performance.mark&&FH.performance.measure?2:0}; dk=function(M){var f=yH();switch(f){case 1:FH.h5vcc.traceEvent.traceBegin("YTLR",M);break;case 2:FH.performance.mark(M+"-start");break;case 0:break;default:lQ(f,"unknown trace type")}}; Plz=function(M){var f=yH();switch(f){case 1:FH.h5vcc.traceEvent.traceEnd("YTLR",M);break;case 2:f=M+"-start";var A=M+"-end";FH.performance.mark(A);FH.performance.measure(M,f,A);break;case 0:break;default:lQ(f,"unknown trace type")}}; ny0=function(M){var f,A;(A=(f=window).onerror)==null||A.call(f,M.message,"",0,0,M)}; jdd=function(M){var f=this;var A=A===void 0?0:A;var Q=Q===void 0?g.Nr():Q;this.j=A;this.scheduler=Q;this.Z=new g.LB;this.K=M;for(M={NI:0};M.NI=1E3?N():Q>=M?p7||(p7=hQ(function(){N();p7=void 0},0)):Y-D>=10&&(fD0(f,A.tier),I.C=Y)}; KET=function(M,f){if(M.endpoint==="log_event"){g.mE("more_accurate_gel_parser")&&Qv().storePayload({isJspb:!1},M.payload);Yb(M);var A=Iz(M),Q=new Map;Q.set(A,[M.payload]);var N=O0b(M.payload)||"";f&&(tQ=new f);return new g.g1(function(Y,I){tQ&&tQ.isReady()?A0t(Q,tQ,Y,I,{bypassNetworkless:!0},!0,Dr(N)):Y()})}}; lf9=function(M,f,A){if(f.endpoint==="log_event"){Yb(void 0,f);var Q=Iz(f,!0),N=new Map;N.set(Q,[tT(f.payload)]);A&&(tQ=new A);return new g.g1(function(Y){tQ&&tQ.isReady()?Q06(N,tQ,Y,{bypassNetworkless:!0},!0,Dr(M)):Y()})}}; Iz=function(M,f){var A="";if(M.dangerousLogToVisitorSession)A="visitorOnlyApprovedKey";else if(M.cttAuthInfo){if(f===void 0?0:f){f=M.cttAuthInfo.token;A=M.cttAuthInfo;var Q=new WJ;A.videoId?Q.setVideoId(A.videoId):A.playlistId&&uP(Q,2,SZ,Ka(A.playlistId));L7[f]=Q}else f=M.cttAuthInfo,A={},f.videoId?A.videoId=f.videoId:f.playlistId&&(A.playlistId=f.playlistId),oz[M.cttAuthInfo.token]=A;A=M.cttAuthInfo.token}return A}; E9=function(M,f,A){M=M===void 0?{}:M;f=f===void 0?!1:f;new g.g1(function(Q,N){var Y=vf(f,A),I=Y.j;Y.j=!1;C7(Y.Z);C7(Y.K);Y.K=0;tQ&&tQ.isReady()?A===void 0&&g.mE("enable_web_tiered_gel")?N$0(Q,N,M,f,300,I):N$0(Q,N,M,f,A,I):(fD0(f,A),Q())})}; N$0=function(M,f,A,Q,N,Y){var I=tQ;A=A===void 0?{}:A;Q=Q===void 0?!1:Q;N=N===void 0?200:N;Y=Y===void 0?!1:Y;var D=new Map,E=new Map,t={isJspb:Q,cttAuthInfo:void 0,tier:N},v={isJspb:Q,cttAuthInfo:void 0};if(Q){f=g.V(Object.keys(TZ));for(N=f.next();!N.done;N=f.next())N=N.value,E=g.mE("enable_web_tiered_gel")?Qv().smartExtractMatchingEntries({keys:[t,v],sizeLimit:1E3}):Qv().extractMatchingEntries({isJspb:!0,cttAuthInfo:N}),E.length>0&&D.set(N,E),(g.mE("web_fp_via_jspb_and_json")&&A.writeThenSend||!g.mE("web_fp_via_jspb_and_json"))&& delete TZ[N];Q06(D,I,M,A,!1,Y)}else{D=g.V(Object.keys(TZ));for(t=D.next();!t.done;t=D.next())t=t.value,v=g.mE("enable_web_tiered_gel")?Qv().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:t,tier:N},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):Qv().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),v.length>0&&E.set(t,v),(g.mE("web_fp_via_jspb_and_json")&&A.writeThenSend||!g.mE("web_fp_via_jspb_and_json"))&&delete TZ[t];A0t(E,I,M,f,A,!1,Y)}}; fD0=function(M,f){function A(){E9({writeThenSend:!0},M,f)} M=M===void 0?!1:M;f=f===void 0?200:f;var Q=vf(M,f),N=Q===Y89||Q===IDT?5E3:T$z;g.mE("web_gel_timeout_cap")&&!Q.K&&(N=hQ(function(){A()},N),Q.K=N); C7(Q.Z);N=g.GR("LOGGING_BATCH_TIMEOUT",g.sf("web_gel_debounce_ms",1E4));g.mE("shorten_initial_gel_batch_timeout")&&U9&&(N=Dhd);N=hQ(function(){g.sf("gel_min_batch_size")>0?Qv().getSequenceCount({cttAuthInfo:void 0,isJspb:M,tier:f})>=EJe&&A():A()},N); Q.Z=N}; A0t=function(M,f,A,Q,N,Y,I){N=N===void 0?{}:N;var D=Math.round((0,g.W)()),E=M.size,t=tAf(I);M=g.V(M);var v=M.next();for(I={};!v.done;I={aM:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,vJ:void 0,Ic:void 0},v=M.next()){var p=g.V(v.value);v=p.next().value;p=p.next().value;I.batchRequest=g.NV({context:g.St(f.config_||g.hL())});if(!g.AB(p)&&!g.mE("throw_err_when_logevent_malformed_killswitch")){Q();break}I.batchRequest.events=p;(p=oz[v])&&vJf(I.batchRequest,v,p);delete oz[v];I.dangerousLogToVisitorSession= v==="visitorOnlyApprovedKey";pDt(I.batchRequest,D,I.dangerousLogToVisitorSession);hYX(N);I.vJ=function(h){g.mE("start_client_gcf")&&g.k6.aY(function(){return g.n(function(S){return g.r(S,S8c(h),0)})}); E--;E||A()}; I.aM=0;I.Ic=function(h){return function(){h.aM++;if(N.bypassNetworkless&&h.aM===1)try{g.QH(f,t,h.batchRequest,Vv({writeThenSend:!0},h.dangerousLogToVisitorSession,h.vJ,h.Ic,Y)),U9=!1}catch(S){g.MR(S),Q()}E--;E||A()}}(I); try{g.QH(f,t,I.batchRequest,Vv(N,I.dangerousLogToVisitorSession,I.vJ,I.Ic,Y)),U9=!1}catch(h){g.MR(h),Q()}}}; Q06=function(M,f,A,Q,N,Y){Q=Q===void 0?{}:Q;var I=Math.round((0,g.W)()),D={value:M.size},E=new Map([].concat(g.c(M)));E=g.V(E);for(var t=E.next();!t.done;t=E.next()){var v=g.V(t.value).next().value,p=M.get(v);t=new kYt;var h=f.config_||g.hL(),S=new FQ,L=new rB;wn(L,1,h.QH);wn(L,2,h.sZ);MU(L,16,h.Hs);wn(L,17,h.innertubeContextClientVersion);if(h.wE){var a=h.wE,q=new xS;a.coldConfigData&&wn(q,1,a.coldConfigData);a.appInstallData&&wn(q,6,a.appInstallData);a.coldHashData&&wn(q,3,a.coldHashData);a.hotHashData&& q.gM(a.hotHashData);ys(L,xS,62,q)}(a=g.Kb.devicePixelRatio)&&a!=1&&aZ(L,65,zc(a));a=ca();a!==""&&wn(L,54,a);a=Rd();if(a.length>0){q=new PJ;for(var m=0;m65535&&(M=1);K4("BATCH_CLIENT_COUNTER",M);return M}; vJf=function(M,f,A){if(A.videoId)var Q="VIDEO";else if(A.playlistId)Q="PLAYLIST";else return;M.credentialTransferTokenTargetId=A;M.context=M.context||{};M.context.user=M.context.user||{};M.context.user.credentialTransferTokens=[{token:f,scope:Q}]}; Yb=function(M,f){var A=g.wD("yt.logging.transport.enableScrapingForTest"),Q=Ha("il_payload_scraping");Q=(Q!==void 0?String(Q):"")==="enable_il_payload_scraping";if(!A)if(Q)Hf=[],g.Gz("yt.logging.transport.enableScrapingForTest",!0),g.Gz("yt.logging.transport.scrapedPayloadsForTesting",Hf),g.Gz("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Gz("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.Gz("yt.logging.transport.scrapeClientEvent",!0);else return;A=g.wD("yt.logging.transport.scrapedPayloadsForTesting");Q=g.wD("yt.logging.transport.payloadToScrape");f&&(f=f.payload,(f=g.wD("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(f)())&&A.push(f));f=g.wD("yt.logging.transport.scrapeClientEvent");if(Q&&Q.length>=1)for(var N=0;N0&&P$f(M,f,Y)}else P$f(M,f)}; P$f=function(M,f,A){M=nJb(M);f=f?g.r4(f):"";A=A||5;I0()&&g.FK(M,f,A)}; nJb=function(M){for(var f=g.V(j0d),A=f.next();!A.done;A=f.next())M=n$(M,A.value);return"ST-"+qu(M).toString(36)}; $hT=function(M){if(M.name==="JavaException")return!0;M=M.stack;return M.includes("chrome://")||M.includes("chrome-extension://")||M.includes("moz-extension://")}; Fld=function(){this.p6=[];this.Bh=[]}; uH=function(){if(!rZ){var M=rZ=new Fld;M.Bh.length=0;M.p6.length=0;y0T(M,dhX)}return rZ}; y0T=function(M,f){f.Bh&&M.Bh.push.apply(M.Bh,f.Bh);f.p6&&M.p6.push.apply(M.p6,f.p6)}; eYc=function(M){function f(){return M.charCodeAt(Q++)} var A=M.length,Q=0;do{var N=zZ(f);if(N===Infinity)break;var Y=N>>3;switch(N&7){case 0:N=zZ(f);if(Y===2)return N;break;case 1:if(Y===2)return;Q+=8;break;case 2:N=zZ(f);if(Y===2)return M.substr(Q,N);Q+=N;break;case 5:if(Y===2)return;Q+=4;break;default:return}}while(Q500));Q++);Q=N}else if(typeof M==="object")for(N in M){if(M[N]){var Y=N;var I=M[N],D=f,E=A;Y=typeof I!=="string"||Y!=="clickTrackingParams"&&Y!=="trackingParams"?0:(I=eYc(atob(I.replace(/-/g,"+").replace(/_/g,"/"))))?Pf(Y+".ve",I,D,E):0;Q+=Y;Q+=Pf(N,M[N],f,A);if(Q>500)break}}else A[f]=n7(M),Q+=A[f].length;else A[f]=n7(M),Q+=A[f].length;return Q}; Pf=function(M,f,A,Q){A+="."+M;M=n7(f);Q[A]=M;return A.length+M.length}; n7=function(M){try{return(typeof M==="string"?M:String(JSON.stringify(M))).substr(0,500)}catch(f){return"unable to serialize "+typeof M+" ("+f.message+")"}}; pH=function(M){g.jZ(M)}; g.$b=function(M){g.jZ(M,"WARNING")}; g.jZ=function(M,f){var A=A===void 0?{}:A;A.name=g.GR("INNERTUBE_CONTEXT_CLIENT_NAME",1);A.version=g.GR("INNERTUBE_CONTEXT_CLIENT_VERSION");f=f===void 0?"ERROR":f;var Q=!1;f=f===void 0?"ERROR":f;Q=Q===void 0?!1:Q;if(M){M.hasOwnProperty("level")&&M.level&&(f=M.level);if(g.mE("console_log_js_exceptions")){var N=[];N.push("Name: "+M.name);N.push("Message: "+M.message);M.hasOwnProperty("params")&&N.push("Error Params: "+JSON.stringify(M.params));M.hasOwnProperty("args")&&N.push("Error args: "+JSON.stringify(M.args)); N.push("File name: "+M.fileName);N.push("Stacktrace: "+M.stack);window.console.log(N.join("\n"),M)}if(!(kXX>=5)){N=[];for(var Y=g.V(Wlb),I=Y.next();!I.done;I=Y.next()){I=I.value;try{I()&&N.push(I())}catch(a){}}N=[].concat(g.c(OMt),g.c(N));var D=T7z(M);Y=D.message||"Unknown Error";I=D.name||"UnknownError";var E=D.stack||M.Z||"Not available";if(E.startsWith(I+": "+Y)){var t=E.split("\n");t.shift();E=t.join("\n")}t=D.lineNumber||"Not available";D=D.fileName||"Not available";var v=0;if(M.hasOwnProperty("args")&& M.args&&M.args.length)for(var p=0;p=500);p++);else if(M.hasOwnProperty("params")&&M.params){var h=M.params;if(typeof M.params==="object")for(p in h){if(h[p]){var S="params."+p,L=n7(h[p]);A[S]=L;v+=S.length+L.length;if(v>500)break}}else A.params=n7(h)}if(N.length)for(p=0;p=500);p++);navigator.vendor&&!A.hasOwnProperty("vendor")&&(A["device.vendor"]=navigator.vendor);A={message:Y,name:I,lineNumber:t, fileName:D,stack:E,params:A,sampleWeight:1};p=Number(M.columnNumber);isNaN(p)||(A.lineNumber=A.lineNumber+":"+p);if(M.level==="IGNORED")M=0;else a:{M=uH();p=g.V(M.Bh);for(N=p.next();!N.done;N=p.next())if(N=N.value,A.message&&A.message.match(N.xV)){M=N.weight;break a}M=g.V(M.p6);for(p=M.next();!p.done;p=M.next())if(p=p.value,p.callback(A)){M=p.weight;break a}M=1}A.sampleWeight=M;M=g.V(XDc);for(p=M.next();!p.done;p=M.next())if(p=p.value,p.pC[A.name])for(Y=g.V(p.pC[A.name]),N=Y.next();!N.done;N=Y.next())if(I= N.value,N=A.message.match(I.aq)){A.params["params.error.original"]=N[0];Y=I.groups;I={};for(t=0;t1E3&&g.$b(new g.GX("IL Attach cache exceeded limit"))}D= wZ(A,f);O9.has(D)?lH(A,f):JQ.set(D,!0)}}Q=Q.filter(function(v){v.csn!==f?(v.csn=f,v=!0):v=!1;return v}); A={csn:f,parentVe:A.getAsJson(),childVes:g.WP(Q,function(v){return v.getAsJson()})}; f==="UNDEFINED_CSN"?Mp("visualElementAttached",Y,A):M?s9("visualElementAttached",A,M,Y):g.hO("visualElementAttached",A,Y)}; Ekb=function(M,f,A,Q,N){fi(A,f);Q=Wf({cttAuthInfo:xb(f)||void 0},f);A={csn:f,ve:A.getAsJson(),eventType:1};N&&(A.clientData=N);f==="UNDEFINED_CSN"?Mp("visualElementShown",Q,A):M?s9("visualElementShown",A,M,Q):g.hO("visualElementShown",A,Q)}; tjN=function(M,f,A,Q){var N=(Q=Q===void 0?!1:Q)?16:8;Q=Wf({cttAuthInfo:xb(f)||void 0,endOfSequence:Q},f);A={csn:f,ve:A.getAsJson(),eventType:N};f==="UNDEFINED_CSN"?Mp("visualElementHidden",Q,A):M?s9("visualElementHidden",A,M,Q):g.hO("visualElementHidden",A,Q)}; QU=function(M,f,A,Q,N){AS(M,f,A,void 0,Q,N)}; AS=function(M,f,A,Q,N){fi(A,f);Q=Q||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var Y=Wf({cttAuthInfo:xb(f)||void 0},f);A={csn:f,ve:A.getAsJson(),gestureType:Q};N&&(A.clientData=N);f==="UNDEFINED_CSN"?Mp("visualElementGestured",Y,A):M?s9("visualElementGestured",A,M,Y):g.hO("visualElementGestured",A,Y)}; vk0=function(){var M=cU(16);for(var f=[],A=0;A0&&A.push(g.MQ("BR"));A.push(g.f$(Y))}):A.push(g.f$(Q))}return A}; oe=function(M,f,A,Q){if(A==="child"){g.Qw(f);var N;Q===void 0?N=void 0:N=!Array.isArray(Q)||Q&&typeof Q.S==="string"?[Q]:Q;A=h5t(M,N);A=g.V(A);for(M=A.next();!M.done;M=A.next())f.appendChild(M.value)}else A==="style"?g.ji(f,"cssText",Q?Q:""):Q===null||Q===void 0?f.removeAttribute(A):(M=Q.toString(),A==="href"&&(M=g.WT(g.Kx(M))),f.setAttribute(A,M))}; g.O=function(M){g.SK.call(this,M);this.B7=!0;this.N=!1;this.listeners=[]}; g.Ci=function(M){g.O.call(this,M);this.Ji=new g.pi;g.d(this,this.Ji)}; Uv=function(M,f,A,Q,N,Y,I){I=I===void 0?null:I;g.Ci.call(this,f);this.api=M;this.macros={};this.componentType=A;this.W=this.X=null;this.xO=I;this.layoutId=Q;this.interactionLoggingClientData=N;this.Or=Y;this.YO=null;this.Vc=new HU(this.element);g.d(this,this.Vc);this.b8=this.J(this.element,"click",this.onClick);this.P7=[];this.jk=new mp(this.onClick,this);g.d(this,this.jk);this.Qw=!1;this.g_=this.Er=null}; VU=function(M,f){M=M===void 0?null:M;f=f===void 0?null:f;if(M==null)return g.$b(Error("Got null or undefined adText object")),"";var A=g.a9(M.text);if(!M.isTemplated)return A;if(f==null)return g.$b(Error("Missing required parameters for a templated message")),A;M=g.V(Object.entries(f));for(f=M.next();!f.done;f=M.next()){var Q=g.V(f.value);f=Q.next().value;Q=Q.next().value;A=A.replace("{"+f+"}",Q)}return A}; SLt=function(M){M=M===void 0?null:M;return M!=null&&(M=M.thumbnail,M!=null&&M.thumbnails!=null&&M.thumbnails.length!=0&&M.thumbnails[0].url!=null)?g.a9(M.thumbnails[0].url):""}; LHD=function(M){M=M===void 0?null:M;return M!=null&&(M=M.thumbnail,M!=null&&M.thumbnails!=null&&M.thumbnails.length!=0&&M.thumbnails[0].width!=null&&M.thumbnails[0].height!=null)?new g.za(M.thumbnails[0].width||0,M.thumbnails[0].height||0):new g.za(0,0)}; g.ae=function(M){if(M.simpleText)return M.simpleText;if(M.runs){var f=[];M=g.V(M.runs);for(var A=M.next();!A.done;A=M.next())A=A.value,A.text&&f.push(A.text);return f.join("")}return""}; g.qp=function(M){if(M.simpleText)return M=document.createTextNode(M.simpleText),M;var f=[];if(M.runs)for(var A=0;A1){for(var f=[M[0]],A=1;A0&&(this.K=new g.MY(this.V6,f,this),g.d(this,this.K));this.N=new g.MY(this.V6,A,this);g.d(this,this.N);this.X=udX(this.Z,N,1,Q);g.d(this,this.X);this.W=udX(this.Z,0,Q,1);g.d(this,this.W);this.C=new ZD;g.d(this,this.C)}; pJ=function(M,f,A){this.Z=M;this.isAsync=f;this.K=A}; ALf=function(M){switch(M){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:lQ(M,"unknown result type")}}; QVT=function(M,f){var A=1;M.isTrusted===!1&&(A=0);K4("ISDSTAT",A);hF(A,"i.s_",{triggerContext:"sk",metadata:f});return A}; NQb=function(M,f){var A=[];f?f.isTrusted===!0?A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):f.isTrusted===!1?A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):A.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");hF(0,"a.s_",{metadata:M,states:A});K4("ASDSTAT",0)}; hF=function(M,f,A){f=YxD[f];var Q,N,Y={detected:M===0,source:""+f.Z+((Q=A.triggerContext)!=null?Q:"")+((N=A.Bf)!=null?N:""),detectionStates:A.states,durationMs:A.xg};A.metadata&&(Y.contentCpn=A.metadata.contentCpn,Y.adCpn=A.metadata.adCpn);g.hO("biscottiBasedDetection",Y);f.K!==void 0&&(A=Number(g.GR("CATSTAT",0)),f.K!==void 0?(f=f.K,M=ALf(M),M=A&~(3<0}; a1=function(M,f,A,Q,N,Y){Q2.call(this,M,{S:"div",Y:"ytp-ad-skip-button-slot"},"skip-button",f,A,Q,N);var I=this;this.KJ=null;this.z0=!1;this.ox=Y;this.G=this.api.T().experiments.X3("enable_modern_skip_button_on_web");this.w_=!1;this.C=new g.Ci({S:"span",Ai:["ytp-ad-skip-button-container"]});this.G&&this.C.element.classList.add("ytp-ad-skip-button-container-detached");g.d(this,this.C);this.C.pJ(this.element);this.Z=this.j=null;this.l8=new g.I1(this.C,500,!1,100,function(){return I.hide()}); g.d(this,this.l8);this.fJ=new v2(this.C.element,15E3,5E3,.5,.5,this.G);g.d(this,this.fJ);this.hide()}; TQe=function(M){M=M.KJ&&M.KJ.adRendererCommands;return(M&&M.clickCommand&&g.b(M.clickCommand,g.qi)&&g.b(M.clickCommand,g.qi).commands||[]).some(function(f){return f.adLifecycleCommand?I_0(f.adLifecycleCommand):!1})}; I_0=function(M){return M.action==="END_LINEAR_AD"||M.action==="END_LINEAR_AD_PLACEMENT"}; H2=function(M,f,A,Q,N,Y){Q2.call(this,M,{S:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",f,A,Q,N);this.KJ=Y;this.C=!1;this.G=0;this.j=this.Z=null;this.hide()}; Dne=function(M,f){M.C||(M.C=!0,M.Z&&(f?M.Z.KJ.hide():M.Z.hide()),f?(M=M.j,M.l8.show(),M.show()):M.j.show())}; mg=function(M,f,A,Q){jK.call(this,M,f,A,Q,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; sa=function(M,f,A,Q,N,Y,I){Y=Y===void 0?!1:Y;I=I===void 0?!1:I;Uv.call(this,M,{S:"span",Y:"ytp-ad-simple-ad-badge"},"simple-ad-badge",f,A,Q);this.j=N;this.K=this.H7("ytp-ad-simple-ad-badge");(this.Z=Y)&&this.K.classList.add("ytp-ad-simple-ad-badge--clean-player");I&&this.K.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; c2=function(M,f,A,Q,N){N=N===void 0?!1:N;vO.call(this,"player-overlay",M,{},f,Q);this.videoAdDurationSeconds=A;this.interactionLoggingClientData=Q;this.pR=N}; R1=function(M,f){g.pi.call(this);this.api=M;this.durationMs=f;this.K=null;this.DK=new ZD(this);g.d(this,this.DK);this.Z=EHT;this.DK.J(this.api,"presentingplayerstatechange",this.HH);this.K=this.DK.J(this.api,"onAdPlaybackProgress",this.z_)}; gA=function(M){g.pi.call(this);this.K=!1;this.zQ=0;this.DK=new ZD(this);g.d(this,this.DK);this.durationMs=M;this.M3=new g.$M(100);g.d(this,this.M3);this.DK.J(this.M3,"tick",this.z_);this.Z={seekableStart:0,seekableEnd:M/1E3,current:0};this.start()}; g.B2=function(M,f){var A=Math.abs(Math.floor(M)),Q=Math.floor(A/86400),N=Math.floor(A%86400/3600),Y=Math.floor(A%3600/60);A=Math.floor(A%60);if(f){f="";Q>0&&(f+=" "+Q+" Days");if(Q>0||N>0)f+=" "+N+" Hours";f+=" "+Y+" Minutes";f+=" "+A+" Seconds";Q=f.trim()}else{f="";Q>0&&(f+=Q+":",N<10&&(f+="0"));if(Q>0||N>0)f+=N+":",Y<10&&(f+="0");f+=Y+":";A<10&&(f+="0");Q=f+A}return M>=0?Q:"-"+Q}; g.iM=function(M){return(!("button"in M)||typeof M.button!=="number"||M.button===0)&&!("shiftKey"in M&&M.shiftKey)&&!("altKey"in M&&M.altKey)&&!("metaKey"in M&&M.metaKey)&&!("ctrlKey"in M&&M.ctrlKey)}; xZ=function(M,f,A,Q,N,Y,I){Q2.call(this,M,{S:"span",Y:I?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",f,A,Q,N);this.videoAdDurationSeconds=Y;this.Z=null;I&&this.api.T().Z&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),KH&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Z4=function(M,f,A,Q){fJ.call(this,M,f,A,Q,"ytp-video-ad-top-bar-title","ad-title")}; rA=function(M){this.content=M.content;if(M.commandRuns){M=g.V(M.commandRuns);for(var f=M.next();!f.done;f=M.next())f=f.value,this.loggingDirectives=g.b(f,tt0),f.onTap&&(this.interaction={onTap:f.onTap})}}; uM=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",f,A,Q);this.hide()}; z_=function(M,f,A,Q,N){Uv.call(this,M,{S:"span",Y:N?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",f,A,Q);this.Z=N;this.adBadgeText=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);this.adBadgeText.pJ(this.element);g.d(this,this.adBadgeText);N?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),KH&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; P2=function(M,f,A,Q){Uv.call(this,M,{S:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",f,A,Q);this.api.T().Z&&(this.element.classList.add("ytp-ad-pod-index--mweb"),KH&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; nJ=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",f,A,Q);this.hide()}; jI=function(M,f){this.Z=M;this.K=f}; $Z=function(M,f,A){if(!M.getLength())return A!=null?A:Infinity;M=(f-M.Z)/M.getLength();return g.ih(M,0,1)}; FV=function(M,f,A,Q){Q=Q===void 0?!1:Q;g.Ci.call(this,{S:"div",Y:"ytp-ad-persistent-progress-bar-container",L:[{S:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=M;this.Z=f;this.j=A;Q&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.d(this,this.Z);this.progressBar=this.H7("ytp-ad-persistent-progress-bar");this.K=-1;this.J(M,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; y2=function(M,f,A,Q,N,Y){Uv.call(this,M,{S:"div",Y:"ytp-ad-player-overlay",L:[{S:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{S:"div",Y:"ytp-ad-player-overlay-instream-info"},{S:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{S:"div",Y:"ytp-ad-player-overlay-progress-bar"},{S:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{S:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",f,A,Q);this.B=Y;this.G=this.H7("ytp-ad-player-overlay-flyout-cta");this.G.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.K=this.H7("ytp-ad-player-overlay-instream-info");this.C=null;vHz(this)&&(M=lh("div"),g.tZ(M,"ytp-ad-player-overlay-top-bar-gradients"),f=this.K,f.parentNode&&f.parentNode.insertBefore(M,f),(f=this.api.getVideoData(2))&&f.isListed&&f.title&&(A=new Z4(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),A.pJ(M),A.init(tS("ad-title"),{text:f.title},this.macros),g.d(this,A)),this.C=M);this.j=null;this.nJ=this.H7("ytp-ad-player-overlay-skip-or-preview");this.fJ=this.H7("ytp-ad-player-overlay-progress-bar"); this.z0=this.H7("ytp-ad-player-overlay-instream-user-sentiment");this.KJ=this.H7("ytp-ad-player-overlay-ad-disclosure-banner");this.Z=N;g.d(this,this.Z);this.hide()}; vHz=function(M){M=M.api.T();return g.dA(M)&&M.Z}; g.eI=function(M){M&=16777215;var f=[(M&16711680)>>16,(M&65280)>>8,M&255];M=f[0];var A=f[1];f=f[2];M=Number(M);A=Number(A);f=Number(f);if(M!=(M&255)||A!=(A&255)||f!=(f&255))throw Error('"('+M+","+A+","+f+'") is not a valid RGB color');A=M<<16|A<<8|f;return M<16?"#"+(16777216|A).toString(16).slice(1):"#"+A.toString(16)}; bM=function(M){this.K=new ur(M)}; pyb=function(){var M=!1;try{M=!!window.sessionStorage.getItem("session_logininfo")}catch(f){M=!0}return(g.GR("INNERTUBE_CLIENT_NAME")==="WEB"||g.GR("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&M}; kZ=function(){var M=M===void 0?!0:M;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");K4("LOGIN_INFO","");M&&window.sessionStorage.setItem("from_switch_account","1");M=!0;M=M===void 0?!1:M;var f,A=hu0;A||(A=document.querySelector("#persist_identity"));if(f=A){var Q=f.src?(new URL(f.src)).origin:"*";if(M){var N;(N=f.contentWindow)==null||N.postMessage({action:"clear"},Q)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var Y=window.sessionStorage.getItem("session_logininfo");if(Y){var I;(I=f.contentWindow)==null||I.postMessage({loginInfo:Y},Q)}}}}catch(D){}}; W2=function(M){if(M)if(M.startsWith("https://accounts.google.com/AddSession"))kZ();else if(M.startsWith("https://accounts.google.com/ServiceLogin"))kZ();else{var f;if(f=M.startsWith("https://myaccount.google.com"))f=g.Ll(M).Z.endsWith("/youtubeoptions");f&&kZ()}if(g.GR("LOGGED_IN",!0)&&pyb()){f=g.GR("VALID_SESSION_TEMPDATA_DOMAINS",[]);var A=g.RH(window.location.href);A&&f.push(A);A=g.RH(M);g.V9(f,A)||!A&&Cx(M,"/")?(f=BP(M),(f=lv0(f))?(f=nJb(f),f=(f=g.yn(f)||null)?Yy(f):{}):f=null):f=null;f==null&& (f={});A=f;var Q=void 0;pyb()?(Q||(Q=g.GR("LOGIN_INFO")),Q?(A.session_logininfo=Q,A=!0):A=!1):A=!1;A&&Zr(M,f)}}; g.Sxc=function(M){var f=f===void 0?{}:f;var A=A===void 0?"":A;var Q=Q===void 0?window:Q;M=g.uj(M,f);W2(M);A=g.Kx(M+A);Q=Q.location;A=GO(A);A!==void 0&&(Q.href=A)}; g.Oa=function(M,f,A){f=f===void 0?{}:f;A=A===void 0?!1:A;var Q=g.GR("EVENT_ID");Q&&(f.ei||(f.ei=Q));f&&Zr(M,f);A||(W2(M),g.Sxc(M))}; g.XV=function(M,f,A,Q,N){N=N===void 0?!1:N;A&&Zr(M,A);A=g.Kx(M);var Y=g.WT(A);M!=Y&&AI(Error("Unsafe window.open URL: "+M));M=Y;f=f||qu(M).toString(36);try{if(N)return N=M,N=Sft(N),W2(N),g.Q4(window,N,f,"attributionsrc")}catch(I){g.MR(I)}W2(M);return g.Q4(window,A,f,Q)}; LVT=function(M){JF=M}; oHX=function(M){KJ=M}; Cgb=function(M){G_=M}; Vtc=function(){UnT=G_=KJ=JF=null}; qxT=function(){var M=M===void 0?window.location.href:M;if(g.mE("kevlar_disable_theme_param"))return null;var f=g4(M);if(g.mE("enable_dark_theme_only_on_shorts")&&f!=null&&f.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var A=g.TA(M).theme;return a_t.get(A)||null}catch(Q){}return null}; wA=function(){this.K={};if(this.Z=aIX()){var M=g.yn("CONSISTENCY");M&&Hrt(this,{encryptedTokenJarContents:M})}}; Hrt=function(M,f){if(f.encryptedTokenJarContents&&(M.K[f.encryptedTokenJarContents]=f,typeof f.expirationSeconds==="string")){var A=Number(f.expirationSeconds);setTimeout(function(){delete M.K[f.encryptedTokenJarContents]},A*1E3); M.Z&&g.FK("CONSISTENCY",f.encryptedTokenJarContents,A,void 0,!0)}}; MO=function(){this.Z=-1;var M=g.GR("LOCATION_PLAYABILITY_TOKEN");g.GR("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=lM(this))&&(M=this.localStorage.get("yt-location-playability-token"));M&&(this.locationPlayabilityToken=M,this.K=void 0)}; lM=function(M){return M.localStorage===void 0?new Tf("yt-client-location"):M.localStorage}; g.fp=function(M,f,A){f=f===void 0?!1:f;A=A===void 0?!1:A;var Q=g.GR("INNERTUBE_CONTEXT");if(!Q)return g.jZ(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};Q=g.NV(Q);g.mE("web_no_tracking_params_in_shell_killswitch")||delete Q.clickTracking;Q.client||(Q.client={});var N=Q.client;N.clientName==="MWEB"&&N.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(N.clientFormFactor=g.GR("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");N.screenWidthPoints=window.innerWidth;N.screenHeightPoints= window.innerHeight;N.screenPixelDensity=Math.round(window.devicePixelRatio||1);N.screenDensityFloat=window.devicePixelRatio||1;N.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var Y=Y===void 0?!1:Y;g.kJ();var I="USER_INTERFACE_THEME_LIGHT";g.WD(0,165)?I="USER_INTERFACE_THEME_DARK":g.WD(0,174)?I="USER_INTERFACE_THEME_LIGHT":!g.mE("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (I="USER_INTERFACE_THEME_DARK");Y=Y?I:qxT()||I;N.userInterfaceTheme=Y;if(!f){if(Y=TPN())N.connectionType=Y;g.mE("web_log_effective_connection_type")&&(Y=E2N())&&(Q.client.effectiveConnectionType=Y)}var D;if(g.mE("web_log_memory_total_kbytes")&&((D=g.Kb.navigator)==null?0:D.deviceMemory)){var E;D=(E=g.Kb.navigator)==null?void 0:E.deviceMemory;Q.client.memoryTotalKbytes=""+D*1E6}g.mE("web_gcf_hashes_innertube")&&(Y=oST())&&(E=Y.coldConfigData,D=Y.coldHashData,Y=Y.hotHashData,Q.client.configInfo=Q.client.configInfo|| {},E&&(Q.client.configInfo.coldConfigData=E),D&&(Q.client.configInfo.coldHashData=D),Y&&(Q.client.configInfo.hotHashData=Y));E=g.TA(g.Kb.location.href);!g.mE("web_populate_internal_geo_killswitch")&&E.internalcountrycode&&(N.internalGeo=E.internalcountrycode);N.clientName==="MWEB"||N.clientName==="WEB"?(N.mainAppWebInfo={graftUrl:g.Kb.location.href},g.mE("kevlar_woffle")&&MbN.instance&&(E=MbN.instance,N.mainAppWebInfo.pwaInstallabilityStatus=!E.K&&E.Z?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),N.mainAppWebInfo.webDisplayMode=d$(),N.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):N.clientName==="TVHTML5"&&(!g.mE("web_lr_app_quality_killswitch")&&(E=g.GR("LIVING_ROOM_APP_QUALITY"))&&(N.tvAppInfo=Object.assign(N.tvAppInfo||{},{appQuality:E})),E=g.GR("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(N.tvAppInfo=Object.assign(N.tvAppInfo||{},{certificationScope:E}));if(!g.mE("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var t=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(z){}t=void 0}t&&(N.timeZone=t)}(t=ca())?N.experimentsToken=t:delete N.experimentsToken;t=Rd();wA.instance||(wA.instance=new wA);Q.request=Object.assign({},Q.request,{internalExperimentFlags:t,consistencyTokenJars:g.X0(wA.instance.K)});!g.mE("web_prequest_context_killswitch")&&(t=g.GR("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Q.request.externalPrequestContext=t);N=g.kJ();t=g.WD(0,58);N=N.get("gsml","");Q.user=Object.assign({}, Q.user);t&&(Q.user.enableSafetyMode=t);N&&(Q.user.lockedSafetyMode=!0);g.mE("warm_op_csn_cleanup")?A&&(f=g.iH())&&(Q.clientScreenNonce=f):!f&&(f=g.iH())&&(Q.clientScreenNonce=f);M&&(Q.clickTracking={clickTrackingParams:M});if(M=g.wD("yt.mdx.remote.remoteClient_"))Q.remoteClient=M;MO.getInstance().setLocationOnInnerTubeContext(Q);try{var v=L0(),p=v.bid;delete v.bid;Q.adSignalsInfo={params:[],bid:p};for(var h=g.V(Object.entries(v)),S=h.next();!S.done;S=h.next()){var L=g.V(S.value),a=L.next().value, q=L.next().value;v=a;p=q;M=void 0;(M=Q.adSignalsInfo.params)==null||M.push({key:v,value:""+p})}var m,R;if(((m=Q.client)==null?void 0:m.clientName)==="TVHTML5"||((R=Q.client)==null?void 0:R.clientName)==="TVHTML5_UNPLUGGED"){var u=g.GR("INNERTUBE_CONTEXT");u.adSignalsInfo&&(Q.adSignalsInfo.advertisingId=u.adSignalsInfo.advertisingId,Q.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Q.adSignalsInfo.limitAdTracking=u.adSignalsInfo.limitAdTracking)}}catch(z){g.jZ(z)}return Q}; cLc=function(M,f){if(!M)return!1;var A,Q=(A=g.b(M,mnT))==null?void 0:A.signal;if(Q&&f.Ze)return!!f.Ze[Q];var N;if((A=(N=g.b(M,sVX))==null?void 0:N.request)&&f.L0)return!!f.L0[A];for(var Y in M)if(f.Jz[Y])return!0;return!1}; Rub=function(M){var f={"Content-Type":"application/json"};g.GR("EOM_VISITOR_DATA")?f["X-Goog-EOM-Visitor-Id"]=g.GR("EOM_VISITOR_DATA"):g.GR("VISITOR_DATA")&&(f["X-Goog-Visitor-Id"]=g.GR("VISITOR_DATA"));f["X-Youtube-Bootstrap-Logged-In"]=g.GR("LOGGED_IN",!1);g.GR("DEBUG_SETTINGS_METADATA")&&(f["X-Debug-Settings-Metadata"]=g.GR("DEBUG_SETTINGS_METADATA"));M!=="cors"&&((M=g.GR("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(f["X-Youtube-Client-Name"]=M),(M=g.GR("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(f["X-Youtube-Client-Version"]= M),(M=g.GR("CHROME_CONNECTED_HEADER"))&&(f["X-Youtube-Chrome-Connected"]=M),(M=g.GR("DOMAIN_ADMIN_STATE"))&&(f["X-Youtube-Domain-Admin-State"]=M),g.GR("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(M=g.GR("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(f["X-YouTube-Lava-Device-Context"]=M));return f}; gHb=function(){this.K={}}; AH=function(){this.mappings=new gHb}; Qk=function(M){return function(){return new M}}; irN=function(M){var f=f===void 0?"UNKNOWN_INTERFACE":f;if(M.length===1)return M[0];var A=BQ0[f];if(A){A=new RegExp(A);for(var Q=g.V(M),N=Q.next();!N.done;N=Q.next())if(N=N.value,A.exec(N))return N}var Y=[];Object.entries(BQ0).forEach(function(I){var D=g.V(I);I=D.next().value;D=D.next().value;f!==I&&Y.push(D)}); A=new RegExp(Y.join("|"));M.sort(function(I,D){return I.length-D.length}); Q=g.V(M);for(N=Q.next();!N.done;N=Q.next())if(N=N.value,!A.exec(N))return N;return M[0]}; g.NO=function(M){return"/youtubei/v1/"+irN(M)}; Y7=function(){}; oY=function(){}; Cp=function(){}; U7=function(M){return g.wD("ytcsi."+(M||"")+"data_")||xnt(M)}; Zr6=function(){var M=U7();M.info||(M.info={});return M.info}; Vk=function(M){M=U7(M);M.metadata||(M.metadata={});return M.metadata}; aY=function(M){M=U7(M);M.tick||(M.tick={});return M.tick}; qO=function(M){M=U7(M);if(M.gel){var f=M.gel;f.gelInfos||(f.gelInfos={});f.gelTicks||(f.gelTicks={})}else M.gel={gelTicks:{},gelInfos:{}};return M.gel}; rL0=function(M){M=qO(M);M.gelInfos||(M.gelInfos={});return M.gelInfos}; H9=function(M){var f=U7(M).nonce;f||(f=g.RP(16),U7(M).nonce=f);return f}; xnt=function(M){var f={tick:{},info:{}};g.Gz("ytcsi."+(M||"")+"data_",f);return f}; mi=function(){var M=g.wD("ytcsi.debug");M||(M=[],g.Gz("ytcsi.debug",M),g.Gz("ytcsi.reference",{}));return M}; s7=function(M){M=M||"";var f=uO9();if(f[M])return f[M];var A=mi(),Q={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};A.push(Q);return f[M]=Q}; zud=function(M){M=M||"";var f=uO9();f[M]&&delete f[M];var A=mi(),Q={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};A.push(Q);f[M]=Q}; uO9=function(){var M=g.wD("ytcsi.reference");if(M)return M;mi();return g.wD("ytcsi.reference")}; c9=function(M){return Pgd[M]||"LATENCY_ACTION_UNKNOWN"}; RY=function(M,f){oV.call(this,1,arguments);this.M3=f}; gR=function(){this.K=0}; B9=function(){gR.instance||(gR.instance=new gR);return gR.instance}; x7=function(M,f){iB[f]=iB[f]||{count:0};var A=iB[f];A.count++;A.time=(0,g.W)();M.K||(M.K=g.AO(0,function(){var Q=(0,g.W)(),N;for(N in iB)iB[N]&&Q-iB[N].time>6E4&&delete iB[N];M&&(M.K=0)},5E3)); return A.count>5?(A.count===6&&Math.random()*1E5<1&&(A=new g.GX("CSI data exceeded logging limit with key",f.split("_")),f.indexOf("plev")>=0||g.$b(A)),!0):!1}; nHd=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; jVU=function(){var M;if(g.mE("csi_use_performance_navigation_timing")||g.mE("csi_use_performance_navigation_timing_tvhtml5")){var f,A,Q,N=Zu==null?void 0:(M=Zu.getEntriesByType)==null?void 0:(f=M.call(Zu,"navigation"))==null?void 0:(A=f[0])==null?void 0:(Q=A.toJSON)==null?void 0:Q.call(A);N?(N.requestStart=rR(N.requestStart),N.responseEnd=rR(N.responseEnd),N.redirectStart=rR(N.redirectStart),N.redirectEnd=rR(N.redirectEnd),N.domainLookupEnd=rR(N.domainLookupEnd),N.connectStart=rR(N.connectStart), N.connectEnd=rR(N.connectEnd),N.responseStart=rR(N.responseStart),N.secureConnectionStart=rR(N.secureConnectionStart),N.domainLookupStart=rR(N.domainLookupStart),N.isPerformanceNavigationTiming=!0,M=N):M=Zu.timing}else M=g.mE("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Zu.timing)):Zu.timing;return M}; rR=function(M){return Math.round(uB()+M)}; uB=function(){return(g.mE("csi_use_time_origin")||g.mE("csi_use_time_origin_tvhtml5"))&&Zu.timeOrigin?Math.floor(Zu.timeOrigin):Zu.timing.navigationStart}; P9=function(M,f){zK("_start",M,f)}; np=function(M,f){if(!g.mE("web_csi_action_sampling_enabled")||!U7(f).actionDisabled){var A=s7(f||"");Ln(A.info,M);M.loadType&&(A=M.loadType,Vk(f).loadType=A);Ln(rL0(f),M);A=H9(f);f=U7(f).cttAuthInfo;B9().info(M,A,f)}}; $nz=function(){var M,f,A,Q;return((Q=$r().resolve(um(vy))==null?void 0:(M=pr())==null?void 0:(f=M.loggingHotConfig)==null?void 0:(A=f.csiConfig)==null?void 0:A.debugTicks)!=null?Q:[]).map(function(N){return Object.values(N)[0]})}; zK=function(M,f,A){if(!g.mE("web_csi_action_sampling_enabled")||!U7(A).actionDisabled){var Q=H9(A),N;if(N=g.mE("web_csi_debug_sample_enabled")&&Q){($r().resolve(um(vy))==null?0:pr())&&!FVN&&(FVN=!0,zK("gcfl",(0,g.W)(),A));var Y,I,D;N=($r().resolve(um(vy))==null?void 0:(Y=pr())==null?void 0:(I=Y.loggingHotConfig)==null?void 0:(D=I.csiConfig)==null?void 0:D.debugSampleWeight)||0;if(Y=N!==0)b:{Y=$nz();if(Y.length>0)for(I=0;IA.duration?Q:A},{duration:0}))&&f.startTime>0&&f.responseEnd>0&&(zK("wffs",rR(f.startTime)),zK("wffe",rR(f.responseEnd)))}; Ord=function(M,f,A){Zu&&Zu.measure&&(M.startsWith("measure_")||(M="measure_"+M),A?Zu.measure(M,f,A):f?Zu.measure(M,f):Zu.measure(M))}; XyN=function(M){var f=jh("aft",M);if(f)return f;f=g.GR((M||"")+"TIMING_AFT_KEYS",["ol"]);for(var A=f.length,Q=0;Q0&&np(f);f={isNavigation:!0,actionType:c9(g.GR("TIMING_ACTION"))};var A=g.GR("PREVIOUS_ACTION");A&&(f.previousAction=c9(A));if(A=g.GR("CLIENT_PROTOCOL"))f.httpProtocol=A;if(A=g.GR("CLIENT_TRANSPORT"))f.transportProtocol=A;(A=g.iH())&&A!=="UNDEFINED_CSN"&&(f.clientScreenNonce=A);A=eu9();if(A===1||A===-1)f.isVisible= !0;A=Vk().loadType==="cold";var Q=Zr6();A||(A=Q.yt_lt==="cold");if(A){f.loadType="cold";A=Zr6();Q=jVU();var N=uB(),Y=g.GR("CSI_START_TIMESTAMP_MILLIS",0);Y>0&&!g.mE("embeds_web_enable_csi_start_override_killswitch")&&(N=Y);N&&(zK("srt",Q.responseStart),A.prerender!==1&&P9(N));A=G8T();A>0&&zK("fpt",A);A=jVU();A.isPerformanceNavigationTiming&&np({performanceNavigationTiming:!0},void 0);zK("nreqs",A.requestStart,void 0);zK("nress",A.responseStart,void 0);zK("nrese",A.responseEnd,void 0);A.redirectEnd- A.redirectStart>0&&(zK("nrs",A.redirectStart,void 0),zK("nre",A.redirectEnd,void 0));A.domainLookupEnd-A.domainLookupStart>0&&(zK("ndnss",A.domainLookupStart,void 0),zK("ndnse",A.domainLookupEnd,void 0));A.connectEnd-A.connectStart>0&&(zK("ntcps",A.connectStart,void 0),zK("ntcpe",A.connectEnd,void 0));A.secureConnectionStart>=uB()&&A.connectEnd-A.secureConnectionStart>0&&(zK("nstcps",A.secureConnectionStart,void 0),zK("ntcpe",A.connectEnd,void 0));Zu&&"getEntriesByType"in Zu&&WVD();A=[];if(document.querySelector&& Zu&&Zu.getEntriesByName)for(var I in yk)yk.hasOwnProperty(I)&&(Q=yk[I],k8c(I,Q)&&A.push(Q));if(A.length>0)for(f.resourceInfo=[],I=g.V(A),A=I.next();!A.done;A=I.next())f.resourceInfo.push({resourceCache:A.value})}np(f);f=qO();f.preLoggedGelInfos||(f.preLoggedGelInfos=[]);I=f.preLoggedGelInfos;f=rL0();A=void 0;for(Q=0;Q-1&&(delete m6["@type"],X=m6);a&&M.Z.has(a)&&M.Z.delete(a);((WX=f.config)==null?0:WX.cXx)&&eh(f.config.cXx);if(X||(g7=M.j)==null||!g7.o9Y(f.input,f.Zt)){x9.CJ(15);break}return g.r(x9,M.j.hDB(f.input,f.Zt),16);case 16:X=x9.K;case 15:return Lpt(M,X,f),((vK=f.config)==null?0:vK.KGJ)&&eh(f.config.KGJ),Q(),x9.return(X|| void 0)}})}; tS9=function(M,f){a:{M=M.Aq;var A,Q=(A=g.b(f,mnT))==null?void 0:A.signal;if(Q&&M.Ze&&(A=M.Ze[Q])){var N=A();break a}var Y;if((A=(Y=g.b(f,sVX))==null?void 0:Y.request)&&M.L0&&(Y=M.L0[A])){N=Y();break a}for(N in f)if(M.Jz[N]&&(f=M.Jz[N])){N=f();break a}N=void 0}if(N!==void 0)return Promise.resolve(N)}; pUt=function(M,f,A){var Q,N,Y,I,D,E,t;return g.n(function(v){if(v.Z==1){Y=((Q=f)==null?void 0:(N=Q.LH)==null?void 0:N.identity)||Lr;E=(I=f)==null?void 0:(D=I.LH)==null?void 0:D.sessionIndex;var p=g.u4(M.K.oK(Y,{sessionIndex:E}));return g.r(v,p,2)}t=v.K;return v.return(Promise.resolve(Object.assign({},Rub(A),t)))})}; vr6=function(M,f,A){var Q,N=(f==null?void 0:(Q=f.LH)==null?void 0:Q.identity)||Lr,Y;f=f==null?void 0:(Y=f.LH)==null?void 0:Y.sessionIndex;M=M.K.oK(N,{sessionIndex:f});return Object.assign({},Rub(A),M)}; wR=function(){}; lB=function(){}; Mx=function(M){this.G=M}; fe=function(){}; Ay=function(){}; QR=function(){}; Nx=function(){}; g.Yu=function(M,f){var A=g.jN.apply(2,arguments);M=M===void 0?0:M;g.GX.call(this,f,A);this.errorType=M;Object.setPrototypeOf(this,this.constructor.prototype)}; Ip=function(M,f,A,Q){this.K=M;this.Z=f;this.j=A;this.C=Q}; Cmc=function(M,f,A){if(M.K){var Q=g4(n$(f,"key"))||"/UNKNOWN_PATH";M.K.start(Q)}Q=A;g.mE("wug_networking_gzip_request")&&(Q=O4f(A));var N;return new ((N=M.C)!=null?N:window.Request)(f,Q)}; g.D$=function(M,f){if(!Tj){var A=$r();zm(A,{dW:UFT,Lw:Ip});var Q={Jz:{feedbackEndpoint:Qk(fe),modifyChannelNotificationPreferenceEndpoint:Qk(Ay),playlistEditEndpoint:Qk(QR),shareEntityEndpoint:Qk(Mx),subscribeEndpoint:Qk(wR),unsubscribeEndpoint:Qk(lB),webPlayerShareEntityServiceEndpoint:Qk(Nx)}},N=MO.getInstance(),Y={};N&&(Y.client_location=N);M===void 0&&(M=fgX());f===void 0&&(f=A.resolve(UFT));Erb(Q,f,M,Y);zm(A,{dW:VST,F_:JH.instance});Tj=A.resolve(VST)}return Tj}; ayX=function(M){var f=new hw;if(M.interpreterJavascript){var A=nW9(M.interpreterJavascript);A=De(A).toString();var Q=new vi;wn(Q,6,A);ys(f,vi,1,Q,qM)}else M.interpreterUrl&&(A=gB(M.interpreterUrl),A=bQ(A).toString(),Q=new pB,wn(Q,4,A),ys(f,pB,2,Q,qM));M.interpreterHash&&lP(f,3,M.interpreterHash,qM);M.program&&lP(f,4,M.program,qM);M.globalName&&lP(f,5,M.globalName,qM);M.clientExperimentsStateBlob&&lP(f,7,M.clientExperimentsStateBlob,qM);return f}; Eu=function(M){var f={};M=M.split("&");M=g.V(M);for(var A=M.next();!A.done;A=M.next())A=A.value.split("="),A.length===2&&(f[A[0]]=A[1]);return f}; jKU=function(){if(g.mE("bg_st_hr"))return"havuokmhhs-0";var M,f=((M=performance)==null?void 0:M.timeOrigin)||0;return"havuokmhhs-"+Math.floor(f)}; ty=function(M){this.K=M}; qCD=function(){return new Promise(function(M){var f=window.top;f.ntpevasrs!==void 0?M(new ty(f.ntpevasrs)):(f.ntpqfbel===void 0&&(f.ntpqfbel=[]),f.ntpqfbel.push(function(A){M(new ty(A))}))})}; mFD=function(){if(I0()){var M=g.GR("PLAYER_VARS",{});if(g.fx(M,"privembed",!1)!="1"&&!g6N(M)){var f=function(){v7=!0;"google_ad_status"in window?K4("DCLKSTAT",1):K4("DCLKSTAT",2)}; try{g.vU("//static.doubleclick.net/instream/ad_status.js",f)}catch(A){}HnD.push(g.k6.aY(function(){if(!(v7||"google_ad_status"in window)){try{if(f){var A=""+g.Ye(f),Q=gyU[A];Q&&g.EC(Q)}}catch(N){}v7=!0;K4("DCLKSTAT",3)}},5E3))}}}; pe=function(){var M=Number(g.GR("DCLKSTAT",0));return isNaN(M)?0:M}; op=function(M,f,A){var Q=this;this.network=M;this.options=f;this.Z=A;this.K=null;if(f.H1x){var N=new g.LB;this.K=N.promise;g.Kb.ytAtRC&&fH(function(){var Y,I;return g.n(function(D){if(D.Z==1){if(!g.Kb.ytAtRC)return D.return();Y=hy(null);return g.r(D,ST(Q,Y),2)}I=D.K;g.Kb.ytAtRC&&g.Kb.ytAtRC(JSON.stringify(I));g.qc(D)})},2); qCD().then(function(Y){var I,D,E,t;return g.n(function(v){if(v.Z==1)return Y.bindInnertubeChallengeFetcher(function(p){return ST(Q,hy(p))}),g.r(v,TU(),2); I=v.K;D=Y.getLatestChallengeResponse();E=D.challenge;if(!E)throw Error("BGE_MACIL");t={challenge:E,Pz:Eu(E),aI:I,bgChallenge:new hw};N.resolve(t);Y.registerChallengeFetchedCallback(function(p){p=p.challenge;if(!p)throw Error("BGE_MACR");p={challenge:p,Pz:Eu(p),aI:I,bgChallenge:new hw};Q.K=Promise.resolve(p)}); g.qc(v)})})}else f.preload&&sP9(this,new Promise(function(Y){g.AO(0,function(){Y(Le(Q))},0)}))}; hy=function(M){var f={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};M&&(f.interpreterHash=M);return f}; Le=function(M,f){f=f===void 0?0:f;var A,Q,N,Y,I,D,E,t,v,p,h,S;return g.n(function(L){switch(L.Z){case 1:A=hy(UJ().K);if(g.mE("att_fet_ks"))return g.HX(L,7),g.r(L,ST(M,A),9);g.HX(L,4);return g.r(L,cJX(M,A),6);case 6:I=L.K;N=I.V$Y;Y=I.RZ3;Q=I;g.Rf(L,3);break;case 4:return g.id(L),g.$b(Error("Failed to fetch attestation challenge after "+(f+" attempts; not retrying for 24h."))),Ce(M,864E5),L.return({challenge:"",Pz:{},aI:void 0,bgChallenge:void 0});case 9:Q=L.K;if(!Q)throw Error("Fetching Attestation challenge returned falsy"); if(!Q.challenge)throw Error("Missing Attestation challenge");N=Q.challenge;Y=Eu(N);if("c1a"in Y&&(!Q.bgChallenge||!Q.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Rf(L,3);break;case 7:D=g.id(L);g.$b(D);f++;if(f>=5)return g.$b(Error("Failed to fetch attestation challenge after "+(f+" attempts; not retrying for 24h."))),Ce(M,864E5),L.return({challenge:"",Pz:{},aI:void 0,bgChallenge:void 0});E=1E3*Math.pow(2,f-1)+Math.random()*1E3;return L.return(new Promise(function(a){g.AO(0, function(){a(Le(M,f))},E)})); case 3:t=Number(Y.t)||7200;Ce(M,t*1E3);v=void 0;if(!("c1a"in Y&&Q.bgChallenge)){L.CJ(10);break}p=ayX(Q.bgChallenge);g.HX(L,11);return g.r(L,jSX(UJ(),p),13);case 13:g.Rf(L,12);break;case 11:return h=g.id(L),g.$b(h),L.return({challenge:N,Pz:Y,aI:v,bgChallenge:p});case 12:return g.HX(L,14),v=new oc({challenge:p,GZ:{KK:"aGIf"}}),g.r(L,v.iG,16);case 16:g.Rf(L,10);break;case 14:S=g.id(L),g.$b(S),v=void 0;case 10:return L.return({challenge:N,Pz:Y,aI:v,bgChallenge:p})}})}; ST=function(M,f){var A;return g.n(function(Q){A=M.Z;if(!A||A.Ag())return Q.return(ST(M.network,f));Xx("att_pna",void 0,"attestation_challenge_fetch");return Q.return(new Promise(function(N){A.RR("publicytnetworkstatus-online",function(){ST(M.network,f).then(N)})}))})}; Rsd=function(M){if(!M)throw Error("Fetching Attestation challenge returned falsy");if(!M.challenge)throw Error("Missing Attestation challenge");var f=M.challenge,A=Eu(f);if("c1a"in A&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},M,{V$Y:f,RZ3:A})}; cJX=function(M,f){var A,Q,N,Y,I;return g.n(function(D){switch(D.Z){case 1:A=void 0,Q=0,N={};case 2:if(!(Q<5)){D.CJ(4);break}if(!(Q>0)){D.CJ(5);break}N.Yc=1E3*Math.pow(2,Q-1)+Math.random()*1E3;return g.r(D,new Promise(function(E){return function(t){g.AO(0,function(){t(void 0)},E.Yc)}}(N)),5); case 5:return g.HX(D,7),g.r(D,ST(M,f),9);case 9:return Y=D.K,D.return(Rsd(Y));case 7:A=I=g.id(D),I instanceof Error&&g.$b(I);case 8:Q++;N={Yc:void 0};D.CJ(2);break;case 4:throw A;}})}; sP9=function(M,f){M.K=f}; grf=function(M){var f,A,Q;return g.n(function(N){if(N.Z==1)return g.r(N,Promise.race([M.K,null]),2);f=N.K;var Y=Le(M);M.K=Y;(A=f)==null||(Q=A.aI)==null||Q.dispose();g.qc(N)})}; Ce=function(M,f){function A(){var N;return g.n(function(Y){N=Q-Date.now();return N<1E3?g.r(Y,grf(M),0):(fH(A,0,Math.min(N,6E4)),Y.CJ(0))})} var Q=Date.now()+f;A()}; Bk0=function(M,f){return new Promise(function(A){g.AO(0,function(){A(f())},M)})}; g.in0=function(M,f){var A;return g.n(function(Q){var N=g.wD("yt.aba.att");return(A=N?N:op.instance!==void 0?op.instance.j.bind(op.instance):null)?Q.return(A("ENGAGEMENT_TYPE_PLAYBACK",M,f)):Q.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.xFd=function(){var M;return(M=(M=g.wD("yt.aba.att2"))?M:op.instance!==void 0?op.instance.C.bind(op.instance):null)?M():Promise.resolve(!1)}; rJz=function(M,f){var A=g.wD("ytDebugData.callbacks");A||(A={},g.Gz("ytDebugData.callbacks",A));if(g.mE("web_dd_iu")||Znc.includes(M))A[M]=f}; Uu=function(){var M=uHe;var f=f===void 0?[]:f;var A=A===void 0?[]:A;f=xle.apply(null,[ZBt.apply(null,g.c(f))].concat(g.c(A)));this.store=ujd(M,void 0,f)}; g.VR=function(M,f,A){for(var Q=Object.assign({},M),N=g.V(Object.keys(f)),Y=N.next();!Y.done;Y=N.next()){Y=Y.value;var I=M[Y],D=f[Y];if(D===void 0)delete Q[Y];else if(I===void 0)Q[Y]=D;else if(Array.isArray(D)&&Array.isArray(I))Q[Y]=A?[].concat(g.c(I),g.c(D)):D;else if(!Array.isArray(D)&&g.Q9(D)&&!Array.isArray(I)&&g.Q9(I))Q[Y]=g.VR(I,D,A);else if(typeof D===typeof I)Q[Y]=D;else return f=new g.GX("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:Y,H_k:I,updateValue:D}),g.jZ(f), M}return Q}; ap=function(M){var f=this;M=M===void 0?[]:M;this.jP=[];this.jE=this.yd=0;this.UD=void 0;this.totalLength=0;M.forEach(function(A){f.append(A)})}; zsU=function(M,f){return M.jP.length===0?!1:(M=M.jP[M.jP.length-1])&&M.buffer===f.buffer&&M.byteOffset+M.length===f.byteOffset}; qx=function(M,f){f=g.V(f.jP);for(var A=f.next();!A.done;A=f.next())M.append(A.value)}; H7=function(M,f,A){return M.split(f).xr.split(A).Gc}; m5=function(M){M.UD=void 0;M.yd=0;M.jE=0}; c7=function(M,f,A){M.isFocused(f);return f-M.jE+A<=M.jP[M.yd].length}; PmN=function(M){if(!M.UD){var f=M.jP[M.yd];M.UD=new DataView(f.buffer,f.byteOffset,f.length)}return M.UD}; Rp=function(M,f,A){M=M.Vd(f===void 0?0:f,A===void 0?-1:A);f=new Uint8Array(M.length);try{f.set(M)}catch(Q){for(A=0;A>10;Y=56320|Y&1023}ip[N++]=Y}}Y=String.fromCharCode.apply(String,ip); N<1024&&(Y=Y.substring(0,N));A.push(Y)}return A.join("")}; r3=function(M,f){var A;if((A=Z$)==null?0:A.encodeInto)return f=Z$.encodeInto(M,f),f.read>6|192:((N&64512)===55296&&Q+1>18|240,f[A++]=N>>12&63|128):f[A++]=N>>12|224,f[A++]=N>>6&63|128),f[A++]=N&63|128)}return A}; up=function(M){if(Z$)return Z$.encode(M);var f=new Uint8Array(Math.ceil(M.length*1.2)),A=r3(M,f);f.lengthA&&(f=f.subarray(0,A));return f}; zj=function(M){this.K=M;this.pos=0;this.Z=-1}; P7=function(M){var f=M.K.getUint8(M.pos);++M.pos;if(f<128)return f;for(var A=f&127,Q=1;f>=128;)f=M.K.getUint8(M.pos),++M.pos,Q*=128,A+=(f&127)*Q;return A}; ne=function(M,f){var A=M.Z;for(M.Z=-1;M.K.oD(M.pos,1);){A<0&&(A=P7(M));var Q=A>>3,N=A&7;if(Q===f)return!0;if(Q>f){M.Z=A;break}A=-1;switch(N){case 0:P7(M);break;case 1:M.pos+=8;break;case 2:Q=P7(M);M.pos+=Q;break;case 5:M.pos+=4}}return!1}; jT=function(M,f){if(ne(M,f))return P7(M)}; $u=function(M,f){if(ne(M,f))return!!P7(M)}; Fb=function(M,f){if(ne(M,f)){f=P7(M);var A=M.K.Vd(M.pos,f);M.pos+=f;return A}}; yR=function(M,f){if(M=Fb(M,f))return g.xu(M)}; d3=function(M,f,A){if(M=Fb(M,f))return A(new zj(new ap([M])))}; eT=function(M,f){for(var A=[];ne(M,f);)A.push(P7(M));return A.length?A:void 0}; bp=function(M,f,A){for(var Q=[],N;N=Fb(M,f);)Q.push(A(new zj(new ap([N]))));return Q.length?Q:void 0}; ku=function(M,f){M=M instanceof Uint8Array?new ap([M]):M;return f(new zj(M))}; $F9=function(M,f,A){if(f&&A&&A.buffer===f.exports.memory.buffer){var Q=f.realloc(A.byteOffset,M);if(Q)return new Uint8Array(f.exports.memory.buffer,Q,M)}M=f?new Uint8Array(f.exports.memory.buffer,f.malloc(M),M):new Uint8Array(M);A&&M.set(A);return M}; FpT=function(M,f){this.j=f;this.pos=0;this.Z=[];this.K=$F9(M===void 0?4096:M,f);this.view=new DataView(this.K.buffer,this.K.byteOffset,this.K.byteLength)}; W7=function(M,f){f=M.pos+f;if(!(M.K.length>=f)){for(var A=M.K.length*2;A268435455){W7(M,4);for(var A=f&1073741823,Q=0;Q<4;Q++)M.view.setUint8(M.pos,A&127|128),A>>=7,M.pos+=1;f=Math.floor(f/268435456)}for(W7(M,4);f>127;)M.view.setUint8(M.pos,f&127|128),f>>=7,M.pos+=1;M.view.setUint8(M.pos,f);M.pos+=1}; Xb=function(M,f,A){A!==void 0&&(Ou(M,f*8),Ou(M,A))}; Jy=function(M,f,A){A!==void 0&&Xb(M,f,A?1:0)}; Ke=function(M,f,A){A!==void 0&&(Ou(M,f*8+2),f=A.length,Ou(M,f),W7(M,f),M.K.set(A,M.pos),M.pos+=f)}; Gj=function(M,f,A){A!==void 0&&(yJ6(M,f,Math.ceil(Math.log2(A.length*4+2)/7)),W7(M,A.length*1.2),f=r3(A,M.K.subarray(M.pos)),M.pos+f>M.K.length&&(W7(M,f),f=r3(A,M.K.subarray(M.pos))),M.pos+=f,dFt(M))}; yJ6=function(M,f,A){A=A===void 0?2:A;Ou(M,f*8+2);M.Z.push(M.pos);M.Z.push(A);M.pos+=A}; dFt=function(M){for(var f=M.Z.pop(),A=M.Z.pop(),Q=M.pos-A-f;f--;){var N=f?128:0;M.view.setUint8(A++,Q&127|N);Q>>=7}}; w3=function(M,f,A,Q,N){A&&(yJ6(M,f,N===void 0?3:N),Q(M,A),dFt(M))}; g.lp=function(M,f,A){A=new FpT(4096,A);f(A,M);return new Uint8Array(A.K.buffer,A.K.byteOffset,A.pos)}; g.M0=function(M){var f=new zj(new ap([NM(decodeURIComponent(M))]));M=yR(f,2);f=jT(f,4);var A=est[f];if(typeof A==="undefined")throw M=new g.GX("Failed to recognize field number",{name:"EntityKeyHelperError",jZY:f}),g.jZ(M),M;return{yX:f,entityType:A,entityId:M}}; g.fZ=function(M,f){var A=A===void 0?0:A;var Q=new FpT;Ke(Q,2,up(M));M=bn9[f];if(typeof M==="undefined")throw A=new g.GX("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:f}),g.jZ(A),A;Xb(Q,4,M);Xb(Q,5,1);f=new Uint8Array(Q.K.buffer,Q.K.byteOffset,Q.pos);return encodeURIComponent(g.An(f,A))}; AK=function(M,f,A,Q){if(Q===void 0)return Q=Object.assign({},M[f]||{}),A=(delete Q[A],Q),Q={},Object.assign({},M,(Q[f]=A,Q));var N={},Y={};return Object.assign({},M,(Y[f]=Object.assign({},M[f],(N[A]=Q,N)),Y))}; kmt=function(M,f,A,Q,N){var Y=M[f];if(Y==null||!Y[A])return M;Q=g.VR(Y[A],Q,N==="REPEATED_FIELDS_MERGE_OPTION_APPEND");N={};Y={};return Object.assign({},M,(Y[f]=Object.assign({},M[f],(N[A]=Q,N)),Y))}; Wpd=function(M,f){M=M===void 0?{}:M;switch(f.type){case "ENTITY_LOADED":return f.payload.reduce(function(Q,N){var Y,I=(Y=N.options)==null?void 0:Y.persistenceOption;if(I&&I!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&I!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Q;if(!N.entityKey)return g.jZ(Error("Missing entity key")),Q;if(N.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!N.payload)return N=new g.GX("REPLACE entity mutation is missing a payload",{entityKey:N.entityKey}),g.jZ(N),Q;var D=g.OB(N.payload); return AK(Q,D,N.entityKey,N.payload[D])}if(N.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{N=N.entityKey;try{var E=g.M0(N).entityType;D=AK(Q,E,N);break a}catch(p){if(p instanceof Error){N=new g.GX("Failed to deserialize entity key",{entityKey:N,originalMessage:p.message});g.jZ(N);D=Q;break a}throw p;}D=void 0}return D}if(N.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!N.payload)return N=new g.GX("UPDATE entity mutation is missing a payload",{entityKey:N.entityKey}),g.jZ(N),Q;D=g.OB(N.payload);var t,v;return kmt(Q, D,N.entityKey,N.payload[D],(t=N.fieldMask)==null?void 0:(v=t.mergeOptions)==null?void 0:v.repeatedFieldsMergeOption)}return Q},M); case "REPLACE_ENTITY":var A=f.payload;return AK(M,A.entityType,A.key,A.eY);case "REPLACE_ENTITIES":return Object.keys(f.payload).reduce(function(Q,N){var Y=f.payload[N];return Object.keys(Y).reduce(function(I,D){return AK(I,N,D,Y[D])},Q)},M); case "UPDATE_ENTITY":return A=f.payload,kmt(M,A.entityType,A.key,A.eY,A.xjY);default:return M}}; Qd=function(M,f,A){return M[f]?M[f][A]||null:null}; S8=function(M){return window.Int32Array?new Int32Array(M):Array(M)}; a_=function(M){g.y.call(this);this.counter=[0,0,0,0];this.Z=new Uint8Array(16);this.K=16;if(!Onb){var f,A=new Uint8Array(256),Q=new Uint8Array(256);var N=1;for(f=0;f<256;f++)A[N]=f,Q[f]=N,N^=N<<1^(N>>7&&283);LZ=new Uint8Array(256);o_=S8(256);CZ=S8(256);UZ=S8(256);Vd=S8(256);for(var Y=0;Y<256;Y++){N=Y?Q[255^A[Y]]:0;N^=N<<1^N<<2^N<<3^N<<4;N=N&255^N>>>8^99;LZ[Y]=N;f=N<<1^(N>>7&&283);var I=f^N;o_[Y]=f<<24|N<<16|N<<8|I;CZ[Y]=I<<24|o_[Y]>>>8;UZ[Y]=N<<24|CZ[Y]>>>8;Vd[Y]=N<<24|UZ[Y]>>>8}Onb=!0}N=S8(44);for(A= 0;A<4;A++)N[A]=M[4*A]<<24|M[4*A+1]<<16|M[4*A+2]<<8|M[4*A+3];for(Q=1;A<44;A++)M=N[A-1],A%4||(M=(LZ[M>>16&255]^Q)<<24|LZ[M>>8&255]<<16|LZ[M&255]<<8|LZ[M>>>24],Q=Q<<1^(Q>>7&&283)),N[A]=N[A-4]^M;this.key=N}; q0=function(M,f){for(var A=0;A<4;A++)M.counter[A]=f[A*4]<<24|f[A*4+1]<<16|f[A*4+2]<<8|f[A*4+3];M.K=16}; XU6=function(M){for(var f=M.key,A=M.counter[0]^f[0],Q=M.counter[1]^f[1],N=M.counter[2]^f[2],Y=M.counter[3]^f[3],I=3;I>=0&&!(M.counter[I]=-~M.counter[I]);I--);for(var D,E,t=4;t<40;)I=o_[A>>>24]^CZ[Q>>16&255]^UZ[N>>8&255]^Vd[Y&255]^f[t++],D=o_[Q>>>24]^CZ[N>>16&255]^UZ[Y>>8&255]^Vd[A&255]^f[t++],E=o_[N>>>24]^CZ[Y>>16&255]^UZ[A>>8&255]^Vd[Q&255]^f[t++],Y=o_[Y>>>24]^CZ[A>>16&255]^UZ[Q>>8&255]^Vd[N&255]^f[t++],A=I,Q=D,N=E;M=M.Z;I=f[40];M[0]=LZ[A>>>24]^I>>>24;M[1]=LZ[Q>>16&255]^I>>16&255;M[2]=LZ[N>>8&255]^ I>>8&255;M[3]=LZ[Y&255]^I&255;I=f[41];M[4]=LZ[Q>>>24]^I>>>24;M[5]=LZ[N>>16&255]^I>>16&255;M[6]=LZ[Y>>8&255]^I>>8&255;M[7]=LZ[A&255]^I&255;I=f[42];M[8]=LZ[N>>>24]^I>>>24;M[9]=LZ[Y>>16&255]^I>>16&255;M[10]=LZ[A>>8&255]^I>>8&255;M[11]=LZ[Q&255]^I&255;I=f[43];M[12]=LZ[Y>>>24]^I>>>24;M[13]=LZ[A>>16&255]^I>>16&255;M[14]=LZ[Q>>8&255]^I>>8&255;M[15]=LZ[N&255]^I&255}; sZ=function(){if(!HI&&!g.Gf){if(mU)return mU;var M;mU=(M=window.crypto)==null?void 0:M.subtle;var f,A,Q;if(((f=mU)==null?0:f.importKey)&&((A=mU)==null?0:A.sign)&&((Q=mU)==null?0:Q.encrypt))return mU;mU=void 0}}; g.cI=function(M){this.Z=M}; JJU=function(M,f,A,Q){var N,Y;return g.n(function(I){switch(I.Z){case 1:if(M.j){I.CJ(2);break}return g.r(I,Q.importKey("raw",M.Z,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:M.j=I.K;case 2:return N={name:"AES-CTR",counter:A,length:128},g.r(I,Q.encrypt(N,M.j,f),4);case 4:return Y=I.K,I.return(new Uint8Array(Y))}})}; Kpb=function(M,f,A){M.K||(M.K=new a_(M.Z));q0(M.K,A);return M.K.encrypt(f)}; g.R_=function(M){this.Z=M}; go=function(M){this.N=new Uint8Array(64);this.j=new Uint8Array(64);this.C=0;this.G=new Uint8Array(64);this.Z=0;this.N.set(M);this.j.set(M);for(M=0;M<64;M++)this.N[M]^=92,this.j[M]^=54;this.reset()}; Gmt=function(M,f,A){for(var Q=M.W,N=M.K[0],Y=M.K[1],I=M.K[2],D=M.K[3],E=M.K[4],t=M.K[5],v=M.K[6],p=M.K[7],h,S,L,a=0;a<64;)a<16?(Q[a]=L=f[A]<<24|f[A+1]<<16|f[A+2]<<8|f[A+3],A+=4):(h=Q[a-2],S=Q[a-15],L=Q[a-7]+Q[a-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),Q[a]=L),h=p+BI[a]+L+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&t^~E&v),S=((N>>>2|N<<30)^(N>>>13|N<<19)^(N>>>22|N<<10))+(N&Y^N&I^Y&I),p=h+S,D+=h,a++,a<16?(Q[a]=L=f[A]<<24|f[A+1]<<16|f[A+2]<<8|f[A+3],A+=4):(h= Q[a-2],S=Q[a-15],L=Q[a-7]+Q[a-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),Q[a]=L),h=v+BI[a]+L+((D>>>6|D<<26)^(D>>>11|D<<21)^(D>>>25|D<<7))+(D&E^~D&t),S=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&N^p&Y^N&Y),v=h+S,I+=h,a++,a<16?(Q[a]=L=f[A]<<24|f[A+1]<<16|f[A+2]<<8|f[A+3],A+=4):(h=Q[a-2],S=Q[a-15],L=Q[a-7]+Q[a-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),Q[a]=L),h=t+BI[a]+L+((I>>>6|I<<26)^(I>>>11|I<<21)^(I>>>25|I<<7))+(I&D^ ~I&E),S=((v>>>2|v<<30)^(v>>>13|v<<19)^(v>>>22|v<<10))+(v&p^v&N^p&N),t=h+S,Y+=h,a++,a<16?(Q[a]=L=f[A]<<24|f[A+1]<<16|f[A+2]<<8|f[A+3],A+=4):(h=Q[a-2],S=Q[a-15],L=Q[a-7]+Q[a-16]+((h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10)+((S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3),Q[a]=L),h=E+BI[a]+L+((Y>>>6|Y<<26)^(Y>>>11|Y<<21)^(Y>>>25|Y<<7))+(Y&I^~Y&D),S=((t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10))+(t&v^t&p^v&p),L=p,p=D,D=L,L=v,v=I,I=L,L=t,t=Y,Y=L,E=N+h,N=h+S,a++;M.K[0]=N+M.K[0]|0;M.K[1]=Y+M.K[1]|0;M.K[2]=I+M.K[2]|0;M.K[3]= D+M.K[3]|0;M.K[4]=E+M.K[4]|0;M.K[5]=t+M.K[5]|0;M.K[6]=v+M.K[6]|0;M.K[7]=p+M.K[7]|0}; ly9=function(M){var f=new Uint8Array(32),A=64-M.Z;M.Z>55&&(A+=64);var Q=new Uint8Array(A);Q[0]=128;for(var N=M.C*8,Y=1;Y<9;Y++){var I=N%256;Q[A-Y]=I;N=(N-I)/256}M.update(Q);for(A=0;A<8;A++)f[A*4]=M.K[A]>>>24,f[A*4+1]=M.K[A]>>>16&255,f[A*4+2]=M.K[A]>>>8&255,f[A*4+3]=M.K[A]&255;wUe(M);return f}; wUe=function(M){M.K=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];M.W=[];M.W.length=64;M.C=0;M.Z=0}; MZU=function(M){this.K=M}; frf=function(M,f,A){M=new go(M.K);M.update(f);M.update(A);f=ly9(M);M.update(M.N);M.update(f);f=ly9(M);M.reset();return f}; AQb=function(M){this.Z=M}; QzU=function(M,f,A,Q){var N,Y,I;return g.n(function(D){switch(D.Z){case 1:if(M.K){D.CJ(2);break}return g.r(D,Q.importKey("raw",M.Z,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:M.K=D.K;case 2:return N=new Uint8Array(f.length+A.length),N.set(f),N.set(A,f.length),Y={name:"HMAC",hash:"SHA-256"},g.r(D,Q.sign(Y,M.K,N),4);case 4:return I=D.K,D.return(new Uint8Array(I))}})}; NZb=function(M,f,A){M.j||(M.j=new MZU(M.Z));return frf(M.j,f,A)}; Y96=function(M,f,A){var Q,N;return g.n(function(Y){if(Y.Z==1){Q=sZ();if(!Q)return Y.return(NZb(M,f,A));g.HX(Y,3);return g.r(Y,QzU(M,f,A,Q),5)}if(Y.Z!=3)return Y.return(Y.K);N=g.id(Y);g.$b(N);HI=!0;return Y.return(NZb(M,f,A))})}; TZt=function(M){for(var f="",A=0;A=1?M[M.length-1]:null;for(var Q=g.V(M),N=Q.next();!N.done;N=Q.next())if(N=N.value,N.width&&N.height&&(A&&N.width>=f||!A&&N.height>=f))return N;for(f=M.length-1;f>=0;f--)if(A&&M[f].width||!A&&M[f].height)return M[f];return M[0]}; x0=function(){this.state=1;this.aI=null;this.qY=void 0}; VZb=function(M,f,A,Q,N,Y){var I=I===void 0?"trayride":I;A?(M.Rt(2),g.vU(A,function(){if(window[I])U8X(M,Q,I,N);else{M.Rt(3);var D=RGN(A),E=document.getElementById(D);E&&(sdb(D),E.parentNode.removeChild(E));g.$b(new g.GX("BL:ULB",""+A))}},Y)):f?(Y=g.MQ("SCRIPT"),f instanceof YR?(Y.textContent=De(f),El(Y)):Y.textContent=f,Y.nonce=Nu(document),document.head.appendChild(Y),document.head.removeChild(Y),window[I]?U8X(M,Q,I,N):(M.Rt(4),g.$b(new g.GX("BL:ULBJ")))):g.$b(new g.GX("BL:ULV"))}; U8X=function(M,f,A,Q){M.Rt(5);var N=!!M.qY&&ard.includes(g.RH(M.qY)||"");try{var Y=new oc({program:f,globalName:A,GZ:{disable:!g.mE("att_web_record_metrics")||!g.mE("att_skip_metrics_for_cookieless_domains_ks")&&N,KK:"aGIf"}});Y.iG.then(function(){M.Rt(6);Q&&Q(f)}); M.sV(Y)}catch(I){M.Rt(7),I instanceof Error&&g.$b(I)}}; ZC=function(){var M=g.wD("yt.abuse.playerAttLoader");return M&&["bgvma","bgvmb","bgvmc"].every(function(f){return f in M})?M:null}; ro=function(){x0.apply(this,arguments)}; u5=function(){}; q9U=function(M,f,A){for(var Q=!1,N=g.V(M.J8.entries()),Y=N.next();!Y.done;Y=N.next())Y=g.V(Y.value).next().value,Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.W7==="core"&&(Q=!0);if(Q){a:if(!A){M=g.V(M.J8.entries());for(A=M.next();!A.done;A=M.next())if(Q=g.V(A.value),A=Q.next().value,Q=Q.next().value,A.slotType==="SLOT_TYPE_IN_PLAYER"&&A.W7==="core"){A=Q.layoutId;break a}A=void 0}A?f.Ve(A):o1("No triggering layout ID available when attempting to mute.")}}; zy=function(M,f){this.vB=M;this.KZ=f}; PI=function(){}; nZ=function(){}; m8b=function(M){g.y.call(this);var f=this;this.w2=M;this.K=new Map;j8(this,"commandExecutorCommand",function(A,Q,N){H7t(f,A.commands,Q,N)}); j8(this,"clickTrackingParams",function(){})}; sz6=function(M,f){j8(M,f.GJ(),function(A,Q,N){f.Mt(A,Q,N)})}; j8=function(M,f,A){M.ek();M.K.get(f)&&g.jZ(Error("Extension name "+f+" already registered"));M.K.set(f,A)}; H7t=function(M,f,A,Q){f=f===void 0?[]:f;M.ek();var N=[],Y=[];f=g.V(f);for(var I=f.next();!I.done;I=f.next())I=I.value,g.b(I,cQT)||g.b(I,RRD)?N.push(I):Y.push(I);N=g.V(N);for(f=N.next();!f.done;f=N.next())$0(M,f.value,A,Q);Y=g.V(Y);for(N=Y.next();!N.done;N=Y.next())$0(M,N.value,A,Q)}; $0=function(M,f,A,Q){M.ek();f.loggingUrls&&gbN(M,"loggingUrls",f.loggingUrls,A,Q);f=g.V(Object.entries(f));for(var N=f.next();!N.done;N=f.next()){var Y=g.V(N.value);N=Y.next().value;Y=Y.next().value;N==="openPopupAction"?M.w2.get().q8("innertubeCommand",{openPopupAction:Y}):N==="confirmDialogEndpoint"?M.w2.get().q8("innertubeCommand",{confirmDialogEndpoint:Y}):BZT.hasOwnProperty(N)||gbN(M,N,Y,A,Q)}}; gbN=function(M,f,A,Q,N){if((M=M.K.get(f))&&typeof M==="function")try{M(A,Q,N)}catch(Y){g.jZ(Y)}else f=new g.GX("Unhandled field",f),g.$b(f)}; FL=function(M,f,A){this.I9=M;this.K=f;this.yY=A;zm($r(),{dW:obd,Lw:LNf})}; yd=function(M){this.value=M}; e8=function(M){this.value=M}; b5=function(M){this.value=M}; k0=function(M){this.value=M}; WI=function(M){this.value=M}; OZ=function(M){this.value=M}; XL=function(M){this.value=M}; JK=function(){yd.apply(this,arguments)}; KZ=function(M){this.value=M}; Gy=function(M){this.value=M}; wo=function(M){this.value=M}; l5=function(M){this.value=M}; Mf=function(M){this.value=M}; fw=function(M){this.value=M}; Ah=function(M){this.value=M}; QQ=function(M){this.value=M}; Nf=function(M){this.value=M}; Yj=function(M){this.value=M}; IU=function(){yd.apply(this,arguments)}; Td=function(M){this.value=M}; Do=function(M){this.value=M}; E1=function(M){this.value=M}; th=function(M){this.value=M}; vm=function(M){this.value=M}; pw=function(M){this.value=M}; hh=function(M){this.value=M}; S1=function(M){this.value=M}; Lw=function(M){this.value=M}; oU=function(M){this.value=M}; Cw=function(M){this.value=M}; U1=function(M){this.value=M}; VQ=function(M){this.value=M}; aU=function(M){this.value=M}; qf=function(M){this.value=M}; Hm=function(M){this.value=M}; m9=function(M){this.value=M}; s1=function(M){this.value=M}; cm=function(M){this.value=M}; RU=function(M){this.value=M}; gU=function(M){this.value=M}; Bm=function(M){this.value=M}; iN=function(M){this.value=M}; xj=function(M){this.value=M}; Zo=function(M){this.value=M}; rU=function(M){this.value=M}; uN=function(M){this.value=M}; zd=function(M){this.value=M}; Pm=function(M){this.value=M}; nw=function(M){this.value=M}; j1=function(M){this.value=M}; FS=function(M){this.value=M}; yQ=function(M){this.value=M}; dU=function(M){this.value=M}; e1=function(M){this.value=M}; bN=function(M){this.value=M}; kj=function(M){this.value=M}; Wm=function(M){this.value=M}; O1=function(){yd.apply(this,arguments)}; XS=function(M){this.value=M}; Jh=function(){yd.apply(this,arguments)}; Kw=function(){yd.apply(this,arguments)}; Gd=function(){yd.apply(this,arguments)}; wU=function(){yd.apply(this,arguments)}; lN=function(){yd.apply(this,arguments)}; Ma=function(M){this.value=M}; fE=function(M){this.value=M}; AA=function(M){this.value=M}; Qe=function(M){this.value=M}; Na=function(M){this.value=M}; ID=function(M,f,A){if(A&&!A.includes(M.layoutType))return!1;f=g.V(f);for(A=f.next();!A.done;A=f.next())if(!Yw(M.clientMetadata,A.value))return!1;return!0}; TQ=function(){return""}; i7f=function(M,f){switch(M){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 f(M),8}}; Ds=function(M,f,A,Q){Q=Q===void 0?!1:Q;hB.call(this,M);this.PB=A;this.aO=Q;this.args=[];f&&this.args.push(f)}; K=function(M,f,A,Q){Q=Q===void 0?!1:Q;hB.call(this,M);this.PB=A;this.aO=Q;this.args=[];f&&this.args.push(f)}; EP=function(M){var f=new Map;M.forEach(function(A){f.set(A.K(),A)}); this.K=f}; Yw=function(M,f){return M.K.has(f)}; tA=function(M,f){M=M.K.get(f);if(M!==void 0)return M.get()}; vc=function(M){return Array.from(M.K.keys())}; pE=function(M,f,A){if(A&&A!==M.slotType)return!1;f=g.V(f);for(A=f.next();!A.done;A=f.next())if(!Yw(M.clientMetadata,A.value))return!1;return!0}; Z7N=function(M){var f;return((f=x8t.get(M))==null?void 0:f.tL)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Sk=function(M,f){var A={type:f.slotType,controlFlowManagerLayer:rQN.get(f.W7)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};f.slotEntryTrigger&&(A.entryTriggerType=f.slotEntryTrigger.triggerType);f.slotPhysicalPosition!==1&&(A.slotPhysicalPosition=f.slotPhysicalPosition);if(M){A.debugData={slotId:f.slotId};if(M=f.slotEntryTrigger)A.debugData.slotEntryTriggerData=hA(M);M=f.slotFulfillmentTriggers;A.debugData.fulfillmentTriggerData=[];M=g.V(M);for(var Q=M.next();!Q.done;Q=M.next())A.debugData.fulfillmentTriggerData.push(hA(Q.value)); f=f.slotExpirationTriggers;A.debugData.expirationTriggerData=[];f=g.V(f);for(M=f.next();!M.done;M=f.next())A.debugData.expirationTriggerData.push(hA(M.value))}return A}; uPD=function(M,f){var A={type:f.layoutType,controlFlowManagerLayer:rQN.get(f.W7)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};M&&(A.debugData={layoutId:f.layoutId});return A}; hA=function(M,f){var A={type:M.triggerType};f!=null&&(A.category=f);M.triggeringSlotId!=null&&(A.triggerSourceData||(A.triggerSourceData={}),A.triggerSourceData.associatedSlotId=M.triggeringSlotId);M.triggeringLayoutId!=null&&(A.triggerSourceData||(A.triggerSourceData={}),A.triggerSourceData.associatedLayoutId=M.triggeringLayoutId);return A}; zR9=function(M,f,A,Q){f={opportunityType:f};M&&(Q||A)&&(Q=g.WP(Q||[],function(N){return Sk(M,N)}),f.debugData=Object.assign({},A&&A.length>0?{associatedSlotId:A}:{},Q.length>0?{slots:Q}:{})); return f}; oD=function(M,f){return function(A){return PHt(LE(M),f.slotId,f.slotType,f.slotPhysicalPosition,f.W7,f.slotEntryTrigger,f.slotFulfillmentTriggers,f.slotExpirationTriggers,A.layoutId,A.layoutType,A.W7)}}; PHt=function(M,f,A,Q,N,Y,I,D,E,t,v){return{adClientDataEntry:{slotData:Sk(M,{slotId:f,slotType:A,slotPhysicalPosition:Q,W7:N,slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:D,clientMetadata:new EP([])}),layoutData:uPD(M,{layoutId:E,layoutType:t,W7:v,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],Kk:new Map,clientMetadata:new EP([]),ex:{}})}}}; UP=function(M){this.kO=M;M=Math.random();var f=this.kO.get();f=g.CE(f.U.T().experiments,"html5_debug_data_log_probability");f=Number.isFinite(f)&&f>=0&&f<=1?f:0;this.K=M1){g.$b(new g.GX("Exit already started",{current:M.currentState}));var A=!1}else A=!0;if(!A)return!1;M.currentState=2;M.K=f;return!0}; mz=function(M){if(M.currentState!==2)return!1;M.currentState=3;return!0}; p2t=function(M,f){var A=new Map;M=g.V(M);for(var Q=M.next();!Q.done;Q=M.next()){Q=Q.value;if(Q.layoutType==="LAYOUT_TYPE_MEDIA")var N="v";else Q.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(N=tA(Q.clientMetadata,"metadata_type_linked_in_player_layout_type"),N=N==="LAYOUT_TYPE_ENDCAP"||N==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":N==="LAYOUT_TYPE_SURVEY"?"s":N==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):N="u";A.set(Q.layoutId,N);if(N==="u"){var Y={};N=f;Q=(Y.c=Q.layoutId,Y);N.U.ZB("uct",Q)}}M= f.fh();si={contentCpn:M,TD:A};Q={};A=(Q.ct=A.size,Q.c=M,Q);f.U.ZB("acc",A)}; h_d=function(){si={contentCpn:"",TD:new Map}}; c$=function(M){var f;return(f=si.TD.get(M))!=null?f:"u"}; R8=function(M,f,A){M.U.ZB(f,A);Sae(M)}; Lg0=function(M){var f=M.layoutId,A=M.rz;if(M.Dh){var Q={};R8(M.I9,"slso",(Q.ec=f,Q.is=A,Q.ctp=c$(f),Q))}}; gw=function(M){var f=M.layoutId,A=M.rz;if(M.Dh){var Q={};R8(M.I9,"slse",(Q.ec=f,Q.is=A,Q.ctp=c$(f),Q))}}; oZT=function(M){var f=M.layoutId,A=M.rz,Q=M.I9;M.Dh&&(M={},R8(Q,"sleo",(M.xc=f,M.is=A,M.ctp=c$(f),M)),Sae(Q))}; CMd=function(M){var f=M.cpn,A=M.I9;M=M.rz;var Q=A.fh(),N={};R8(A,"ce",(N.ec=f,N.ia=f!==Q,N.r=si.TD.has(f),N.is=M,N.ctp=c$(f),N))}; Sae=function(M){if(M.fh()!==si.contentCpn){var f={};f=(f.c=si.contentCpn,f);M.U.ZB("ccm",f)}}; Ui0=function(M){var f=M.cpn,A=M.I9;M=M.rz;var Q=A.fh(),N={};R8(A,"cx",(N.xc=f,N.ia=f!==Q,N.r=si.TD.has(f),N.is=M,N.ctp=c$(f),N))}; VIt=function(M){this.params=M;this.K=new Set}; a4t=function(M,f,A){if(!M.K.has(f)){M.K.add(f);var Q={};M.params.B2.F3(f,Object.assign({},A,(Q.p_ac=M.params.adCpn,Q.p_isv=M.params.WZ&&M.params.Tj,Q)))}}; iT=function(M,f,A){if(B$(M.params.B2.kO.get(),!0)){var Q=A.flush,N={};a4t(M,f,(N.cts=A.currentTimeSec,N.f=Q,N))}}; qaN=function(M,f){this.I9=M;this.kO=f}; x8=function(M){var f=[];if(M){M=g.V(Object.entries(M));for(var A=M.next();!A.done;A=M.next()){var Q=g.V(A.value);A=Q.next().value;Q=Q.next().value;Q!==void 0&&(Q=typeof Q==="boolean"?""+ +Q:(""+Q).replace(/[:,=]/g,"_"),f.push(A+"."+Q))}}return f.join(";")}; ZZ=function(M,f,A){f=f===void 0?{}:f;this.errorCode=M;this.details=f;this.severity=A===void 0?0:A}; rw=function(M){return M===1||M===2}; uT=function(M,f){f=f===void 0?0:f;if(M instanceof ZZ)return M;M=M&&M instanceof Error?M:Error(""+M);rw(f)?g.jZ(M):g.$b(M);return new ZZ(f===1?"player.fatalexception":"player.exception",{name:""+M.name,message:""+M.message},f)}; HJX=function(M,f){function A(){var Q=g.jN.apply(0,arguments);M.removeEventListener("playing",A);f.apply(null,g.c(Q))} M.addEventListener("playing",A)}; zk=function(){var M=g.wD("yt.player.utils.videoElement_");M||(M=g.MQ("VIDEO"),g.Gz("yt.player.utils.videoElement_",M));return M}; P$=function(M){var f=zk();return!!(f&&f.canPlayType&&f.canPlayType(M))}; jg=function(M){if(/opus/.test(M)&&g.nU&&!ir("38")&&!g.JI())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(M);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(M);if(/webm/.test(M)&&!msX())return!1;M==='audio/mp4; codecs="mp4a.40.2"'&&(M='video/mp4; codecs="avc1.4d401f"');return!!P$(M)}; miU=function(M){try{var f=jg('video/mp4; codecs="avc1.42001E"')||jg('video/webm; codecs="vp9"');return(jg('audio/mp4; codecs="mp4a.40.2"')||jg('audio/webm; codecs="opus"'))&&(f||!M)||P$('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(A){return"html5.missingapi"}}; $8=function(){var M=zk();return!(!M.webkitSupportsPresentationMode||typeof M.webkitSetPresentationMode!=="function")}; FR=function(){var M=zk();try{var f=M.muted;M.muted=!f;return M.muted!==f}catch(A){}return!1}; s1D=function(){var M;return((M=navigator.connection)==null?void 0:M.type)||""}; g.yK=function(){ZD.apply(this,arguments)}; dw=function(M,f,A,Q,N,Y,I,D){this.sampleRate=M===void 0?0:M;this.numChannels=f===void 0?0:f;this.spatialAudioType=A===void 0?"SPATIAL_AUDIO_TYPE_NONE":A;this.K=Q===void 0?!1:Q;this.j=N;this.C=Y;this.audioQuality=I===void 0?"AUDIO_QUALITY_UNKNOWN":I;this.Z=D===void 0?!1:D}; k8=function(M,f,A,Q,N,Y,I,D,E){this.width=M;this.height=f;this.quality=Y||eg(M,f);this.qualityOrdinal=g.bT[this.quality];this.fps=A||0;this.stereoLayout=!N||Q!=null&&Q!=="UNKNOWN"&&Q!=="RECTANGULAR"?0:N;this.projectionType=Q?Q==="EQUIRECTANGULAR"&&N===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":Q:"UNKNOWN";(M=I)||(M=g.bT[this.quality],M===0?M="Auto":(f=this.fps,A=this.projectionType,M=M.toString()+(A==="EQUIRECTANGULAR"||A==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||A==="MESH"?"s":"p")+(f>55?"60":f>49?"50": f>39?"48":"")));this.qualityLabel=M;this.K=D||"";this.primaries=E||""}; eg=function(M,f){var A=Math.max(M,f);M=Math.min(M,f);f=W$[0];for(var Q=0;Q=Math.floor(Y*16/9)*1.3||M>=Y*1.3)return f;f=N}return"tiny"}; KU=function(M,f,A){A=A===void 0?{}:A;this.id=M;this.mimeType=f;A.DB>0||(A.DB=16E3);Object.assign(this,A);M=g.V(this.id.split(";"));this.itag=M.next().value;this.K=M.next().value;this.containerType=Oi(f);this.LJ=Jk[this.itag]||""}; Gk=function(M){return M.LJ==="9"||M.LJ==="("||M.LJ==="9h"||M.LJ==="(h"}; cFX=function(M){return M.LJ==="H"||M.LJ==="h"}; ww=function(M){return M.LJ==="9h"||M.LJ==="(h"}; R_e=function(M){return!!M.e$&&!!M.e$.fairplay&&(M.LJ==="("||M.LJ==="(h"||M.LJ==="A"||M.LJ==="MEAC3")||lT&&!!M.e$&&M.LJ==="1e"}; MC=function(M){return M.LJ==="1"||M.LJ==="1h"||lT&&M.LJ==="1e"}; fO=function(M){return M.LJ==="mac3"||M.LJ==="meac3"||M.LJ==="m"||M.LJ==="i"}; AE=function(M){return M.LJ==="MAC3"||M.LJ==="MEAC3"||M.LJ==="M"||M.LJ==="I"}; g.Qj=function(M){return M.containerType===1}; gZD=function(M){return M.LJ==="("||M.LJ==="(h"||M.LJ==="H"||lT&&M.LJ==="1e"}; NC=function(M){return M.mimeType==="application/x-mpegURL"}; g.Y$=function(M,f){return{itag:+M.itag,lmt:f?0:M.lastModified,xtags:M.K||""}}; BAN=function(M){var f=navigator.mediaCapabilities;if(f==null||!f.decodingInfo||M.LJ==="f")return Promise.resolve();var A={type:M.audio&&M.video?"file":"media-source"};M.video&&(A.video={contentType:M.mimeType,width:M.video.width||640,height:M.video.height||360,bitrate:M.DB*8||1E6,framerate:M.video.fps||30});M.audio&&(A.audio={contentType:M.mimeType,channels:""+(M.audio.numChannels||2),bitrate:M.DB*8||128E3,samplerate:M.audio.sampleRate||44100});return f.decodingInfo(A).then(function(Q){M.Z=Q})}; Ig=function(M){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(M)}; Tb=function(M){return/(vp9|vp09|vp8|avc1|av01)/.test(M)}; DH=function(M){return M.includes("vtt")||M.includes("text/mp4")}; Oi=function(M){return M.indexOf("/mp4")>=0?1:M.indexOf("/webm")>=0?2:M.indexOf("/x-flv")>=0?3:M.indexOf("/vtt")>=0?4:0}; Es=function(M,f,A,Q,N,Y){var I=new dw;f in g.bT||(f="small");f==="light"&&(f="tiny");Q&&N?(N=Number(N),Q=Number(Q)):(N=g.bT[f],Q=Math.round(N*16/9));Y=new k8(Q,N,0,null,void 0,f,Y);M=unescape(M.replace(/"/g,'"'));return new KU(A,M,{audio:I,video:Y})}; tE=function(M){var f="id="+M.id;M.video&&(f+=", res="+M.video.qualityLabel);var A,Q;return f+", byterate=("+((A=M.FJ)==null?void 0:A.toFixed(0))+", "+((Q=M.DB)==null?void 0:Q.toFixed(0))+")"}; vM=function(M,f){return{start:function(A){return M[A]}, end:function(A){return f[A]}, length:M.length}}; iJf=function(M,f,A){for(var Q=[],N=[],Y=0;Y=f)return A}catch(Q){}return-1}; Sr=function(M,f){return hE(M,f)>=0}; xie=function(M,f){if(!M)return NaN;f=hE(M,f);return f>=0?M.start(f):NaN}; LO=function(M,f){if(!M)return NaN;f=hE(M,f);return f>=0?M.end(f):NaN}; og=function(M){return M&&M.length?M.end(M.length-1):NaN}; CO=function(M){return og(M)>0}; Us=function(M,f){M=LO(M,f);return M>=0?M-f:0}; Vj=function(M,f,A){for(var Q=[],N=[],Y=0;YA||(Q.push(Math.max(f,M.start(Y))-f),N.push(Math.min(A,M.end(Y))-f));return vM(Q,N)}; ag=function(M,f,A,Q){g.pi.call(this);var N=this;this.QJ=M;this.start=f;this.end=A;this.isActive=Q;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.YW={error:function(){!N.ek()&&N.isActive&&N.publish("error",N)}, updateend:function(){!N.ek()&&N.isActive&&N.publish("updateend",N)}}; this.QJ.LI(this.YW);this.FE=this.isActive}; HM=function(M,f,A,Q,N,Y){g.pi.call(this);var I=this;this.yw=M;this.NQ=f;this.id=A;this.containerType=Q;this.LJ=N;this.Tj=Y;this.yH=this.e9=this.df=null;this.iV=!1;this.appendWindowStart=this.timestampOffset=0;this.U_=vM([],[]);this.Yj=!1;this.UG=[];this.Pi=qC?[]:void 0;this.DK=function(E){return I.publish(E.type,I)}; var D;if((D=this.yw)==null?0:D.addEventListener)this.yw.addEventListener("updateend",this.DK),this.yw.addEventListener("error",this.DK)}; mP=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Gb=function(M,f){this.HX=M;this.K=f===void 0?!1:f;this.Z=!1}; wh=function(M,f,A){A=A===void 0?!1:A;g.y.call(this);this.mediaElement=M;this.VY=f;this.isView=A;this.G=0;this.C=!1;this.N=!0;this.B=0;this.callback=null;this.X=!1;this.VY||(this.NQ=g.F(this.mediaElement.iI()));this.events=new g.yK(this);g.d(this,this.events);this.j=new Gb(this.VY?window.URL.createObjectURL(this.VY):this.NQ.webkitMediaSourceURL,!0);M=this.VY||this.NQ;r$(this.events,M,["sourceopen","webkitsourceopen"],this.jIY);r$(this.events,M,["sourceclose","webkitsourceclose"],this.kUi);this.W={updateend:this.CX}}; ZJc=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; rFb=function(M,f){lC(M)?g.cW(function(){f(M)}):M.callback=f}; uVD=function(M,f,A){if(Mk){var Q;fs(M.mediaElement,{l:"mswssb",sr:(Q=M.mediaElement.d_)==null?void 0:Q.PU()},!1);f.LI(M.W,M);A.LI(M.W,M)}M.K=f;M.Z=A;g.d(M,f);g.d(M,A)}; Am=function(M){return!!M.K||!!M.Z}; lC=function(M){try{return Q_(M)==="open"}catch(f){return!1}}; Q_=function(M){if(M.VY)return M.VY.readyState;switch(M.NQ.webkitSourceState){case M.NQ.SOURCE_OPEN:return"open";case M.NQ.SOURCE_ENDED:return"ended";default:return"closed"}}; Nk=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; z_b=function(M){lC(M)&&(M.VY?M.VY.endOfStream():M.NQ.webkitSourceEndOfStream(M.NQ.EOS_NO_ERROR))}; PMt=function(M,f,A,Q){if(!M.K||!M.Z)return null;var N=M.K.isView()?M.K.QJ:M.K,Y=M.Z.isView()?M.Z.QJ:M.Z,I=new wh(M.mediaElement,M.VY,!0);I.j=M.j;uVD(I,new ag(N,f,A,Q),new ag(Y,f,A,Q));lC(M)||M.K.CZ(M.K.vX());return I}; nZT=function(M){var f;(f=M.K)==null||f.Lu();var A;(A=M.Z)==null||A.Lu();M.N=!1}; Yl=function(){var M=this;this.Cz=this.xb=aUe;this.promise=new g.g1(function(f,A){M.xb=f;M.Cz=A})}; It=function(){g.y.call(this);this.R4=!1;this.HX=null;this.W=this.G=!1;this.C=new g.Lz;this.d_=null;g.d(this,this.C)}; TE=function(M){M=M.Rf();return M.length<1?NaN:M.end(M.length-1)}; j1b=function(M){!M.Z&&ZJc()&&(M.j?M.j.then(function(){return j1b(M)}):M.t3()||(M.Z=M.ev()))}; $id=function(M){M.Z&&(M.Z.dispose(),M.Z=void 0)}; fs=function(M,f,A){var Q;((Q=M.d_)==null?0:Q.cX())&&M.d_.ZB("rms",f,A===void 0?!1:A)}; Fgz=function(M,f,A){M.isPaused()||M.getCurrentTime()>f||A>10||(M.play(),g.Uf(function(){Fgz(M,M.getCurrentTime(),A+1)},500))}; yFX=function(M,f){M.HX&&M.HX.equals(f)||(M.HX&&M.HX.dispose(),M.HX=f)}; Dj=function(M){return Us(M.a9(),M.getCurrentTime())}; diN=function(M,f){if(M.uS()===0||M.hasError())return!1;var A=M.getCurrentTime()>0;return f>=0&&(M=M.Rf(),M.length||!A)?Sr(M,f):A}; Ej=function(M){M.t3()&&(M.d_&&M.d_.d9("rs_s"),KH&&M.getCurrentTime()>0&&M.seekTo(0),M.Tm(),M.load(),yFX(M,null));delete M.j}; tm=function(M){switch(M.Jg()){case 2:return"progressive.net.retryexhausted";case 3:return M=M.HP(),(M==null?0:M.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||e_0&&(M==null?0:M.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.v8=function(M,f,A){this.MQ=f===void 0?null:f;this.seekSource=A===void 0?null:A;this.state=M||64}; ps=function(M,f,A){A=A===void 0?!1:A;return bJt(M,f.getCurrentTime(),(0,g.W)(),Dj(f),A)}; hm=function(M,f,A,Q){if(!(f===M.state&&A===M.MQ&&Q===M.seekSource||f!==void 0&&(f&128&&!A||f&2&&f&16))){var N;if(N=f)N=f||M.state,N=!!(N&16||N&32);M=new g.v8(f,A,N?Q?Q:M.seekSource:null)}return M}; SV=function(M,f,A){return hm(M,M.state|f,null,A===void 0?null:A)}; Ls=function(M,f){return hm(M,M.state&~f,null,null)}; ot=function(M,f,A,Q){return hm(M,(M.state|f)&~A,null,Q===void 0?null:Q)}; g.J=function(M,f){return!!(M.state&f)}; g.Cs=function(M,f){return f.state===M.state&&f.MQ===M.MQ}; Uj=function(M){return M.isPlaying()&&!g.J(M,16)&&!g.J(M,32)}; V_=function(M){return g.J(M,128)?-1:g.J(M,2)?0:g.J(M,2048)?3:g.J(M,64)?-1:g.J(M,1)&&!g.J(M,32)?3:g.J(M,8)?1:g.J(M,4)?2:-1}; qk=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q){g.y.call(this);var m=this;this.S4=M;this.slot=f;this.layout=A;this.yY=Q;this.tP=N;this.m$=Y;this.Sk=I;this.kC=D;this.AP=E;this.wD=t;this.position=p;this.G=h;this.kO=S;this.x4=L;this.lD=a;this.context=q;this.FW=!0;this.N=!1;this.hP="not_rendering";this.Z=!1;this.j=new VK;M=tA(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Mu=new xD(A.Kk,this.yY,M,A.layoutId);var R;M=((R=at(this))==null?void 0:R.progressCommands)||[];this.C=new enb(E, M,A.layoutId,function(){return m.Ga()}); this.K=new VIt({adCpn:this.layout.layoutId,B2:q.B2,WZ:this.x4,Tj:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; H8=function(M){return{layoutId:M.NG(),rz:M.x4,I9:M.m$.get(),Dh:M.Py()}}; mo=function(M,f){return f.layoutId!==M.layout.layoutId?(M.S4.KW(M.slot,f,new Ds("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+M.layout.layoutId+("and LayoutType: "+M.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; sj=function(M){M.hP="rendering_start_requested";M.wD(-1)}; at=function(M){return tA(M.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; k_b=function(M){o1("Received layout exit signal when not in layout exit flow.",M.slot,M.layout)}; Wg9=function(M){var f;return((f=c8(M.m$.get(),2))==null?void 0:f.clientPlaybackNonce)||""}; Rt=function(M,f){switch(f){case "normal":M.RE("complete");break;case "skipped":M.RE("skip");break;case "abandoned":nh(M.Mu,"impression")&&M.RE("abandon")}}; gG=function(M,f){M.N||(f=new g.CJ(f.state,new g.v8),M.N=!0);return f}; B8=function(M,f){LU(f)?M.wD(1):g.V2(f,4)&&!g.V2(f,2)&&M.Oe();Ua(f,4)<0&&!(Ua(f,2)<0)&&M.v1()}; OJ9=function(M){M.position===0&&(M.kC.get(),M=tA(M.layout.clientMetadata,"metadata_type_ad_placement_config").kind,M={adBreakType:i2(M)},eh("ad_bl"),g.bB(M))}; xl=function(M,f){z1(M.Mu,f,!M.Z)}; JFX=function(M){var f;return(((f=at(M))==null?void 0:f.progressCommands)||[]).findIndex(function(A){return!!g.b(A==null?void 0:A.command,X2D)})!==-1}; Zj=function(M,f){var A=tA(M.clientMetadata,"metadata_type_eligible_for_ssap");return A===void 0?(o1("Expected SSAP eligibility in PlayerBytes factory",M),!1):f.Py(A)}; rG=function(M,f){if(!l7(f.get(),"html5_ssap_pass_transition_reason"))return 3;switch(M){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return o1("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return o1("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:M}),3;default:lQ(M,"unknown layoutExitReason")}}; Kgd=function(M){o1("getExitReason: unexpected reason",void 0,void 0,{reason:M})}; u2=function(M,f){if(l7(f.get(),"html5_ssap_pass_transition_reason"))switch(M){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return Kgd(M),"abandoned";case 3:case 1:return Kgd(M),"error";default:lQ(M,"unexpected transition reason")}else switch(M){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return o1("getExitReason: unexpected reason",void 0,void 0,{reason:M}),"error";default:lQ(M,"unexpected transition reason")}}; g.zE=function(M,f,A){W9(M,A)||Xx(M,f,A);W9(M,"video_to_ad")||Xx(M,f,"video_to_ad");W9(M,"ad_to_video")||Xx(M,f,"ad_to_video");W9(M,"ad_to_ad")||Xx(M,f,"ad_to_ad")}; P8=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m){qk.call(this,M,f,A,Q,N,Y,I,D,t,v,p,h,S,L,a,q,m);var R=this;this.w2=E;this.KF=p;this.Tc=!0;this.GW=this.zQ=0;this.PG=C$(function(){Lg0(H8(R));R.S4.XC(R.slot,R.layout)}); this.aQ=C$(function(){oZT(H8(R));R.hP!=="rendering_stop_requested"&&R.KF(R);R.layoutExitReason?R.S4.It(R.slot,R.layout,R.layoutExitReason):k_b(R)}); this.M3=new g.$M(200);this.M3.listen("tick",function(){R.z_()}); g.d(this,this.M3)}; jV=function(M){M.GW=Date.now();ns(M,M.zQ);M.M3.start()}; G_D=function(M){M.zQ=M.Ga();M.HV(M.zQ/1E3,!0);ns(M,M.zQ)}; ns=function(M,f){f={current:f/1E3,duration:M.Ga()/1E3};M.w2.get().q8("onAdPlaybackProgress",f)}; $l=function(M){P8.call(this,M.S4,M.slot,M.cP,M.yY,M.tP,M.m$,M.Sk,M.kC,M.w2,M.AP,M.wD,M.KF,M.lL,M.vI,M.kO,M.x4,M.lD,M.context)}; F7=function(M){P8.call(this,M.S4,M.slot,M.cP,M.yY,M.tP,M.m$,M.Sk,M.kC,M.w2,M.AP,M.wD,M.KF,M.lL,M.vI,M.kO,M.x4,M.lD,M.context)}; y_=function(){F7.apply(this,arguments)}; w29=function(M){return Zj(M.slot,M.kO.get())?new y_(M):new $l(M)}; b2=function(M){qk.call(this,M.callback,M.slot,M.cP,M.yY,M.tP,M.m$,M.Sk,M.kC,M.AP,M.wD,M.KF,M.lL,M.vI,M.kO,M.x4,M.lD,M.context);var f=this;this.adCpn="";this.Nf=this.UT=0;this.PG=C$(function(){Lg0(H8(f));f.S4.XC(f.slot,f.layout)}); this.aQ=C$(function(){oZT(H8(f));f.hP!=="rendering_stop_requested"&&f.KF(f);f.layoutExitReason?f.S4.It(f.slot,f.layout,f.layoutExitReason):k_b(f)}); this.Lx=M.Lx;this.Kd=M.Kd;this.Ud=M.Ud;this.w2=M.w2;this.WP=M.WP;this.KF=M.KF;if(!this.Py()){l7(this.kO.get(),"html5_disable_media_load_timeout")||(this.p7=new g.MY(function(){f.RH("load_timeout",new Ds("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); M=dG(this.kO.get());var A=eV(this.kO.get());M&&A&&(this.ov=new g.MY(function(){var Q=tA(f.layout.clientMetadata,"metadata_type_preload_player_vars");Q&&f.Kd.get().U.preloadVideoByPlayerVars(Q,2,300)}))}}; Mhf=function(M,f){var A=tA(f.clientMetadata,"metadata_type_ad_video_id"),Q=tA(f.clientMetadata,"metadata_type_legacy_info_card_vast_extension");A&&Q&&M.WP.get().U.T().fJ.add(A,{tA:Q});(f=tA(f.clientMetadata,"metadata_type_sodar_extension_data"))&&fJN(M.Lx.get(),f);l4t(M.Sk.get(),!1)}; fu9=function(M){l4t(M.Sk.get(),!0);var f;((f=M.shrunkenPlayerBytesConfig)==null?0:f.shouldRequestShrunkenPlayerBytes)&&M.Sk.get().wR(!1)}; AH6=function(M){return new kl(M)}; W8=function(){b2.apply(this,arguments)}; kl=function(){W8.apply(this,arguments)}; QYe=function(M){return w29(Object.assign({},M,{S4:M.callback,wD:function(){}}))}; NRU=function(M){return new b2(Object.assign({},M,{wD:function(f){M.w2.get().q8("onAdIntroStateChange",f)}}))}; Y7c=function(M){function f(A){M.w2.get().V8(A)} return Zj(M.slot,M.kO.get())?AH6(Object.assign({},M,{wD:f})):new b2(Object.assign({},M,{wD:f}))}; Oj=function(M){for(var f=M.cP,A=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],Q=g.V(Zb()),N=Q.next();!N.done;N=Q.next())A.push(N.value);if(Md(f,{Eq:A,ll:["LAYOUT_TYPE_MEDIA_BREAK"]}))return QYe(M);f=M.cP;A=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];Q=g.V(Zb());for(N=Q.next();!N.done;N=Q.next())A.push(N.value);if(Md(f,{Eq:A,ll:["LAYOUT_TYPE_MEDIA"]}))return Yw(M.cP.clientMetadata,"metadata_type_ad_intro")?NRU(M):Y7c(M)}; TRb=function(M){var f=g.F(tA(M.clientMetadata,"metadata_type_ad_placement_config")).kind,A=tA(M.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:M.layoutId,adType:Iuf(A),adBreakType:i2(f)}}; i2=function(M){switch(M){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"}}; Iuf=function(M){switch(M){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; DOc=function(M){try{return new X7(M.We,M.slot,M.layout,M.f3,M.Hy,M.m$,M.s$,M.Kd,M.rq,M.Sk,M.AaO,M)}catch(f){}}; X7=function(M,f,A,Q,N,Y,I,D,E,t,v,p){g.y.call(this);this.We=M;this.slot=f;this.layout=A;this.f3=Q;this.Hy=N;this.m$=Y;this.s$=I;this.Kd=D;this.rq=E;this.Sk=t;this.params=p;this.FW=!0;M=Oj(v);if(!M)throw Error("Invalid params for sublayout");this.Wv=M}; E7f=function(){this.K=1;this.Z=new VK}; Jm=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S){g.y.call(this);this.callback=M;this.m$=f;this.s$=A;this.Kd=Q;this.Sk=N;this.nW=Y;this.kC=I;this.pZ=D;this.slot=E;this.layout=t;this.f3=v;this.XV=p;this.rq=h;this.kO=S;this.FW=!0;this.Wb=!1;this.bD=[];this.oQ=-1;this.K9=!1;this.jw=new E7f}; the=function(M){var f;return(f=M.layout.rD)!=null?f:tA(M.layout.clientMetadata,"metadata_type_sub_layouts")}; Ks=function(M){return{I9:M.m$.get(),rz:!1,Dh:M.Py()}}; v7N=function(M,f,A){if(M.Ae()===M.bD.length-1){var Q,N;o1("Unexpected skip requested during the last sublayout",(Q=M.xx())==null?void 0:Q.Vw(),(N=M.xx())==null?void 0:N.Rx(),{requestingSlot:f,requestingLayout:A})}}; p9d=function(M,f,A){return A.layoutId!==GE(M,f,A)?(o1("onSkipRequested for a PlayerBytes layout that is not currently active",M.Vw(),M.Rx()),!1):!0}; h0X=function(M){M.Ae()===M.bD.length-1&&o1("Unexpected skip with target requested during the last sublayout")}; S7t=function(M,f,A){return A.renderingContent===void 0&&A.layoutId!==GE(M,f,A)?(o1("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",M.Vw(),M.Rx(),{requestingSlot:f,requestingLayout:A}),!1):!0}; LiN=function(M,f,A,Q){var N=tA(f.Rx().clientMetadata,"metadata_type_ad_pod_skip_target");if(N&&N>0&&N0)){o1("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",M.slot,M.layout,{indexToPlay:f,layoutId:M.layout.layoutId});break a}M.oQ=f;f=M.xx();if(M.Ae()>0&&!M.Py()){var A=M.kC.get();A.Z=!1;var Q={};A.K&&A.videoId&&(Q.cttAuthInfo={token:A.K,videoId:A.videoId});k7("ad_to_ad",Q)}M.S6(f)}}; fc=function(M){Jm.call(this,M.We,M.m$,M.s$,M.Kd,M.Sk,M.nW,M.kC,M.pZ,M.slot,M.layout,M.f3,M.XV,M.rq,M.kO)}; UOb=function(M){(M=M.xx())&&M.vC()}; Az=function(M){Jm.call(this,M.We,M.m$,M.s$,M.Kd,M.Sk,M.nW,M.kC,M.pZ,M.slot,M.layout,M.f3,M.XV,M.rq,M.kO);this.AX=void 0}; VhN=function(M,f){M.hF()&&!mz(M.jw.Z)||M.callback.It(M.slot,M.layout,f)}; Q6=function(M){return l7(M.kO.get(),"html5_ssap_pass_transition_reason")}; auN=function(M,f,A){a8(f.VS())<2&&(A=u2(A,M.kO),f.b7(f.Rx(),A));A=qd(f.VS());M.l1(M.slot,f.Rx(),A)}; q7z=function(M,f){if(M.jw.Z.currentState<2){var A=u2(f,M.kO);A==="error"?M.callback.KW(M.slot,M.layout,new Ds("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:f},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):MK(M.XV,M.layout,A)}}; NK=function(M,f,A){a8(f.VS())>=2||(f.b7(f.Rx(),A),mz(f.VS())&&(u7(M.pZ,M.slot,f.Rx(),A),M.AX=void 0))}; Hpb=function(M,f){M.jw.K===2&&f!==M.fh()&&o1("onClipEntered: unknown cpn",M.slot,M.layout,{cpn:f})}; mOb=function(M,f){var A=M.xx();if(A){var Q=A.Rx().layoutId,N=M.Ae()+1;M.hF()?NK(M,A,f):A.b7(A.Rx(),f);N>=0&&NN&&I.MS(v,N-Q);return v}; rHb=function(M,f,A){var Q=tA(f.clientMetadata,"metadata_type_sodar_extension_data");if(Q)try{fJN(A,Q)}catch(N){o1("Unexpected error when loading Sodar",M,f,{error:N})}}; uxf=function(M,f,A,Q,N,Y,I){pc(M,f,new g.CJ(A,new g.v8),Q,N,I,!1,Y)}; pc=function(M,f,A,Q,N,Y,I,D){I=I===void 0?!0:I;LU(A)&&o8(N,0,null)&&(!nh(M,"impression")&&D&&D(),M.RE("impression"));nh(M,"impression")&&(g.V2(A,4)&&!g.V2(A,2)&&M.FH("pause"),Ua(A,4)<0&&!(Ua(A,2)<0)&&M.FH("resume"),g.V2(A,16)&&N>=.5&&M.FH("seek"),I&&g.V2(A,2)&&hz(M,A.state,f,Q,N,Y))}; hz=function(M,f,A,Q,N,Y,I,D){nh(M,"impression")&&(Y?(Y=N-Q,Y=Y>=-1&&Y<=2):Y=Math.abs(Q-N)<=1,SW(M,f,Y?Q:N,A,Q,I,D&&Y),Y&&M.RE("complete"))}; SW=function(M,f,A,Q,N,Y,I){Pl(M,A*1E3,I);N<=0||A<=0||(f==null?0:g.J(f,16))||(f==null?0:g.J(f,32))||(o8(A,N*.25,Q)&&(Y&&!nh(M,"first_quartile")&&Y("first"),M.RE("first_quartile")),o8(A,N*.5,Q)&&(Y&&!nh(M,"midpoint")&&Y("second"),M.RE("midpoint")),o8(A,N*.75,Q)&&(Y&&!nh(M,"third_quartile")&&Y("third"),M.RE("third_quartile")))}; z0c=function(M,f){nh(M,"impression")&&M.FH(f?"fullscreen":"end_fullscreen")}; PB6=function(M){nh(M,"impression")&&M.FH("clickthrough")}; n76=function(M){M.FH("active_view_measurable")}; jYU=function(M){nh(M,"impression")&&!nh(M,"seek")&&M.FH("active_view_fully_viewable_audible_half_duration")}; $OX=function(M){nh(M,"impression")&&!nh(M,"seek")&&M.FH("active_view_viewable")}; Fit=function(M){nh(M,"impression")&&!nh(M,"seek")&&M.FH("audio_audible")}; yHD=function(M){nh(M,"impression")&&!nh(M,"seek")&&M.FH("audio_measurable")}; dOt=function(M,f,A,Q,N,Y,I,D,E,t,v,p){this.callback=M;this.slot=f;this.layout=A;this.s$=Q;this.Mu=N;this.Sk=Y;this.h8=I;this.tP=D;this.Lx=E;this.kO=t;this.yY=v;this.m$=p;this.Tc=!0;this.Jd=this.hP=null;this.adCpn=void 0;this.K=!1}; e0f=function(M,f,A){var Q;vH(M.yY.get(),"ads_qua","cpn."+tA(M.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Q=c8(M.m$.get(),2))==null?void 0:Q.clientPlaybackNonce)+";qt."+f+";clr."+A)}; bpe=function(M,f){var A,Q;vH(M.yY.get(),"ads_imp","cpn."+tA(M.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((A=c8(M.m$.get(),2))==null?void 0:A.clientPlaybackNonce)+";clr."+f+";skp."+!!g.b((Q=tA(M.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:Q.skipOrPreviewRenderer,Lc))}; oq=function(M){return{enterMs:tA(M.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:tA(M.clientMetadata,"metadata_type_layout_exit_ms")}}; Cc=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S){Iq.call(this,M,f,A,Q,N,I,D,E,t,p);this.h8=Y;this.Lx=v;this.tP=h;this.kO=S;this.Jd=this.hP=null}; kKd=function(M,f){var A;vH(M.yY.get(),"ads_imp","acpn."+((A=c8(M.m$.get(),2))==null?void 0:A.clientPlaybackNonce)+";clr."+f)}; WiX=function(M,f,A){var Q;vH(M.yY.get(),"ads_qua","cpn."+tA(M.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Q=c8(M.m$.get(),2))==null?void 0:Q.clientPlaybackNonce)+";qt."+f+";clr."+A)}; UN=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m,R,u,z,e){this.rq=M;this.f3=f;this.XV=A;this.m$=Q;this.s$=N;this.Sk=Y;this.nW=I;this.yY=D;this.h8=E;this.Xn=t;this.tP=v;this.Lx=p;this.Kd=h;this.Ud=S;this.kC=L;this.w2=a;this.AP=q;this.WP=m;this.kO=R;this.K=u;this.context=z;this.lD=e}; V6=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m,R){this.rq=M;this.f3=f;this.XV=A;this.yY=Q;this.tP=N;this.Lx=Y;this.Kd=I;this.m$=D;this.Sk=E;this.nW=t;this.Ud=v;this.kC=p;this.w2=h;this.AP=S;this.WP=L;this.kO=a;this.s$=q;this.context=m;this.lD=R}; Opc=function(M,f,A,Q){vO.call(this,"survey-interstitial",M,f,A,Q)}; aq=function(M,f,A,Q,N){Hl.call(this,A,M,f,Q);this.yY=N;M=tA(f.clientMetadata,"metadata_type_ad_placement_config");this.Mu=new xD(f.Kk,N,M,f.layoutId)}; qK=function(M){return Math.round(M.width)+"x"+Math.round(M.height)}; m3=function(M,f,A){A=A===void 0?HH:A;A.widthM.width*M.height*.2)return{KN:3,hw:501,errorMessage:"ad("+qK(A)+") to container("+qK(M)+") ratio exceeds limit."};if(A.height>M.height/3-f)return{KN:3,hw:501,errorMessage:"ad("+qK(A)+") covers container("+qK(M)+") center."}}; X9N=function(M,f){var A=g.F(tA(M.clientMetadata,"metadata_type_ad_placement_config"));return new xD(M.Kk,f,A,M.layoutId)}; sN=function(M){return g.F(tA(M.clientMetadata,"metadata_type_invideo_overlay_ad_renderer"))}; cH=function(M,f,A,Q){vO.call(this,"invideo-overlay",M,f,A,Q);this.interactionLoggingClientData=Q}; Rq=function(M,f,A,Q,N,Y,I,D,E,t,v,p){Hl.call(this,Y,M,f,N);this.yY=A;this.C=I;this.Sk=D;this.AP=E;this.kO=t;this.G=v;this.N=p;this.Mu=X9N(f,A)}; JHD=function(){var M=["metadata_type_invideo_overlay_ad_renderer"];Zb().forEach(function(f){M.push(f)}); return{Eq:M,ll:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; gz=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h){Hl.call(this,Y,M,f,N);this.yY=A;this.C=I;this.X=D;this.Sk=E;this.AP=t;this.kO=v;this.G=p;this.N=h;this.Mu=X9N(f,A)}; Kit=function(){for(var M=["metadata_type_invideo_overlay_ad_renderer"],f=g.V(Zb()),A=f.next();!A.done;A=f.next())M.push(A.value);return{Eq:M,ll:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; BH=function(M){this.Sk=M;this.K=!1}; GKb=function(M,f,A){vO.call(this,"survey",M,{},f,A)}; i9=function(M,f,A,Q,N,Y,I){Hl.call(this,A,M,f,Q);this.C=N;this.Sk=Y;this.kO=I}; w9t=function(M,f,A,Q,N,Y,I,D,E,t){this.FC=M;this.Sk=f;this.yY=A;this.C=Q;this.tP=N;this.Z=Y;this.j=I;this.AP=D;this.kO=E;this.K=t}; luU=function(M,f,A,Q,N,Y,I,D,E,t){this.FC=M;this.Sk=f;this.yY=A;this.C=Q;this.tP=N;this.Z=Y;this.j=I;this.AP=D;this.kO=E;this.K=t}; xz=function(M,f,A,Q,N,Y,I,D,E,t){I8.call(this,M,f,A,Q,N,Y,I,E);this.HN=D;this.m$=t}; MTd=function(){var M=I46();M.Eq.push("metadata_type_ad_info_ad_metadata");return M}; f$D=function(M,f,A,Q,N,Y,I){this.FC=M;this.Sk=f;this.yY=A;this.Z=Q;this.HN=N;this.K=Y;this.m$=I}; AyX=function(M,f,A,Q,N,Y,I,D){this.FC=M;this.Sk=f;this.yY=A;this.Z=Q;this.HN=N;this.K=Y;this.kO=I;this.m$=D}; Zz=function(M,f){this.slotId=f;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=M(this.triggerType)}; rz=function(M,f){this.adPodIndex=M;this.K=f.length;this.adBreakLengthSeconds=f.reduce(function(Q,N){return Q+N},0); var A=0;for(M+=1;M0}; Ld=function(M){return!!(M.cZ&&M.slot&&M.layout)}; ov=function(M){var f,A=(f=M.config)==null?void 0:f.adPlacementConfig;M=M.renderer;return!(!A||A.kind==null||!M)}; ou9=function(M){if(!DO(M.adLayoutMetadata))return!1;M=M.renderingContent;return g.b(M,pU)||g.b(M,hk)||g.b(M,tk)||g.b(M,v$)?!0:!1}; Cd=function(M){return M.playerVars!==void 0&&M.pings!==void 0&&M.externalVideoId!==void 0}; sE=function(M){if(!DO(M.adLayoutMetadata))return!1;M=M.renderingContent;var f=g.b(M,UE);return f?VB(f):(f=g.b(M,av))?Cd(f):(f=g.b(M,qH))?f.playerVars!==void 0:(f=g.b(M,pU))?f.durationMilliseconds!==void 0:g.b(M,Hr)||g.b(M,mt)?!0:!1}; VB=function(M){M=(M.sequentialLayouts||[]).map(function(f){return g.b(f,cr)}); return M.length>0&&M.every(sE)}; zL=function(M){return DO(M.adLayoutMetadata)?(M=g.b(M.renderingContent,uF))&&M.pings?!0:!1:!1}; HeN=function(M){if(!DO(M.adLayoutMetadata))return!1;if(g.b(M.renderingContent,Cpe)||g.b(M.renderingContent,Uxt))return!0;var f=g.b(M.renderingContent,Pr);return g.b(M.renderingContent,nd)||g.b(f==null?void 0:f.sidePanel,VTf)||g.b(f==null?void 0:f.sidePanel,a$c)||g.b(f==null?void 0:f.sidePanel,qut)?!0:!1}; guf=function(M){var f;(f=!M)||(f=M.adSlotMetadata,f=!((f==null?void 0:f.slotId)!==void 0&&(f==null?void 0:f.slotType)!==void 0));if(f||!(mxt(M)||M.slotEntryTrigger&&M.slotFulfillmentTriggers&&M.slotExpirationTriggers))return!1;var A;M=(A=M.fulfillmentContent)==null?void 0:A.fulfilledLayout;return(A=g.b(M,cr))?sE(A):(A=g.b(M,jP))?HeN(A):(A=g.b(M,spN))?ou9(A):(A=g.b(M,cyX))?Sud(A):(A=g.b(M,RkX))?DO(A.adLayoutMetadata)?g.b(A.renderingContent,EE)?!0:!1:!1:(M=g.b(M,$G))?zL(M):!1}; mxt=function(M){var f;M=g.b((f=M.fulfillmentContent)==null?void 0:f.fulfilledLayout,jP);var A;return M&&((A=M.adLayoutMetadata)==null?void 0:A.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&M.layoutExitNormalTriggers===void 0}; B3d=function(M){var f;return(M==null?void 0:(f=M.adSlotMetadata)==null?void 0:f.slotType)==="SLOT_TYPE_IN_PLAYER"}; xxt=function(M,f){var A;if((A=M.questions)==null||!A.length||!M.playbackCommands||(f===void 0||!f)&&M.questions.length!==1)return!1;M=g.V(M.questions);for(f=M.next();!f.done;f=M.next()){f=f.value;var Q=A=void 0,N=((A=g.b(f,F1))==null?void 0:A.surveyAdQuestionCommon)||((Q=g.b(f,yB))==null?void 0:Q.surveyAdQuestionCommon);if(!iec(N))return!1}return!0}; Ze0=function(M){M=((M==null?void 0:M.playerOverlay)||{}).instreamSurveyAdRenderer;var f;if(M)if(M.playbackCommands&&M.questions&&M.questions.length===1){var A,Q=((f=g.b(M.questions[0],F1))==null?void 0:f.surveyAdQuestionCommon)||((A=g.b(M.questions[0],yB))==null?void 0:A.surveyAdQuestionCommon);f=iec(Q)}else f=!1;else f=!1;return f}; iec=function(M){if(!M)return!1;M=g.b(M.instreamAdPlayerOverlay,dO);var f=g.b(M==null?void 0:M.skipOrPreviewRenderer,Lc),A=g.b(M==null?void 0:M.adInfoRenderer,eP);return(g.b(M==null?void 0:M.skipOrPreviewRenderer,bF)||f)&&A?!0:!1}; ryf=function(M){return M.linearAds!=null&&DO(M.adLayoutMetadata)}; ubb=function(M){return M.linearAd!=null&&M.adVideoStart!=null}; zkN=function(M){if(isNaN(Number(M.timeoutSeconds))||!M.text||!M.ctaButton||!g.b(M.ctaButton,g.kG)||!M.brandImage)return!1;var f;return M.backgroundImage&&g.b(M.backgroundImage,Wr)&&((f=g.b(M.backgroundImage,Wr))==null?0:f.landscape)?!0:!1}; OE=function(M,f,A,Q,N,Y,I,D){g.y.call(this);this.kO=M;this.K=f;this.Z=Q;this.m$=N;this.C=Y;this.j=I;this.Kd=D}; $xT=function(M,f,A){var Q,N=((Q=A.adSlots)!=null?Q:[]).map(function(D){return g.b(D,X1)}); if(A.LD)if(tA(f.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))UW(M.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},f.slotId); else{if(PpU(M.kO.get())){var Y=A.r9.filter(function(D){var E;return((E=D.renderer)==null?void 0:E.clientForecastingAdRenderer)!=null}); Y.length!==0?nuU(M.j,Y,N,f.slotId,A.ssdaiAdsConfig):UW(M.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},f.slotId)}else UW(M.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},f.slotId); jpb(M.C,f)}else{var I;Q={C_:Math.round(((Y=tA(f.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:Y.C_)||0),He:(I=tA(f.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:I.He};nuU(M.j,A.r9,N,f.slotId,A.ssdaiAdsConfig,Q)}}; dxc=function(M,f,A,Q,N,Y,I){var D=c8(M.m$.get(),1);if(F5b(M.kO.get())){var E=Je(M.Z.get(),A,Q,N,D.clientPlaybackNonce,D.xI,D.daiEnabled,D,Y,I);yyd(M,E);UW(M.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return E},f)}else UW(M.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Je(M.Z.get(),A,Q,N,D.clientPlaybackNonce,D.xI,D.daiEnabled,D,Y,I)},f)}; yyd=function(M,f){f=g.V(f);for(var A=f.next();!A.done;A=f.next()){var Q=A.value;if(Q.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q.fulfilledLayout)if(A=void 0,Q.fulfilledLayout.renderingContent)A=tA(Q.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(Q.fulfilledLayout.rD){Q=g.V(Q.fulfilledLayout.rD);for(var N=Q.next();!N.done&&(N=N.value,!N.renderingContent||!(A=tA(N.clientMetadata,"metadata_type_player_vars")));N=Q.next());}}else A=void 0;if(A){M.Kd.get().U.preloadVideoByPlayerVars(A, 2,300);break}}}; beD=function(M,f,A,Q,N,Y,I){f=ekb(f,Y,Number(Q.prefetchMilliseconds)||0,I);M=f instanceof K?f:Kd(M,Q,N,f,A);return M instanceof K?M:[M]}; kje=function(M,f,A,Q,N){var Y=Vb(M.Z.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Q=[new dU({getAdBreakUrl:Q.getAdBreakUrl,C_:0,He:0}),new AA(!0)];M=f.pauseDurationMs?f.lactThresholdMs?{slotId:Y,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new QB(M.K,Y),slotFulfillmentTriggers:[new N3f(M.K)],slotExpirationTriggers:[new Kc(M.K,N),new MH(M.K,Y)],W7:"core",clientMetadata:new EP(Q),adSlotLoggingData:A}:new K("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new K("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return M instanceof K?M:[M]}; W5U=function(M){var f,A;return((f=M.renderer)==null?void 0:(A=f.adBreakServiceRenderer)==null?void 0:A.getAdBreakUrl)!==void 0}; GL=function(M,f,A){if(M.beforeContentVideoIdStartedTrigger)M=M.beforeContentVideoIdStartedTrigger?new u9(TQ,f,M.id):new K("Not able to create BeforeContentVideoIdStartedTrigger");else{if(M.layoutIdExitedTrigger){var Q;f=(Q=M.layoutIdExitedTrigger)!=null&&Q.triggeringLayoutId?new F2(TQ,M.layoutIdExitedTrigger.triggeringLayoutId,M.id):new K("Not able to create LayoutIdExitedTrigger")}else{if(M.layoutExitedForReasonTrigger){var N,Y;((N=M.layoutExitedForReasonTrigger)==null?0:N.triggeringLayoutId)&&((Y= M.layoutExitedForReasonTrigger)==null?0:Y.layoutExitReason)?(f=YuT(M.layoutExitedForReasonTrigger.layoutExitReason),M=f instanceof K?f:new $z(TQ,M.layoutExitedForReasonTrigger.triggeringLayoutId,[f],M.id)):M=new K("Not able to create LayoutIdExitedForReasonTrigger")}else{if(M.onLayoutSelfExitRequestedTrigger){var I;f=(I=M.onLayoutSelfExitRequestedTrigger)!=null&&I.triggeringLayoutId?new Jz(TQ,M.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,M.id):new K("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(M.onNewPlaybackAfterContentVideoIdTrigger)M= M.onNewPlaybackAfterContentVideoIdTrigger?new Kc(TQ,f,M.id):new K("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(M.skipRequestedTrigger){var D;f=(D=M.skipRequestedTrigger)!=null&&D.triggeringLayoutId?new wz(TQ,M.skipRequestedTrigger.triggeringLayoutId,M.id):new K("Not able to create SkipRequestedTrigger")}else if(M.slotIdEnteredTrigger){var E;f=(E=M.slotIdEnteredTrigger)!=null&&E.triggeringSlotId?new l9(TQ,M.slotIdEnteredTrigger.triggeringSlotId,M.id):new K("Not able to create SlotIdEnteredTrigger")}else if(M.slotIdExitedTrigger){var t; f=(t=M.slotIdExitedTrigger)!=null&&t.triggeringSlotId?new MH(TQ,M.slotIdExitedTrigger.triggeringSlotId,M.id):new K("Not able to create SkipRequestedTrigger")}else if(M.surveySubmittedTrigger){var v;f=(v=M.surveySubmittedTrigger)!=null&&v.triggeringLayoutId?new YG(TQ,M.surveySubmittedTrigger.triggeringLayoutId,M.id):new K("Not able to create SurveySubmittedTrigger")}else{if(M.mediaResumedTrigger)M=M.mediaResumedTrigger&&M.id?new I$0(M.id):new K("Not able to create MediaResumedTrigger");else{if(M.closeRequestedTrigger){var p; f=(p=M.closeRequestedTrigger)!=null&&p.triggeringLayoutId?new zS(TQ,M.closeRequestedTrigger.triggeringLayoutId,M.id):new K("Not able to create CloseRequestedTrigger")}else if(M.slotIdScheduledTrigger){var h;f=(h=M.slotIdScheduledTrigger)!=null&&h.triggeringSlotId?new QB(TQ,M.slotIdScheduledTrigger.triggeringSlotId,M.id):new K("Not able to create SlotIdScheduledTrigger")}else{if(M.mediaTimeRangeTrigger){var S;Q=Number((S=M.mediaTimeRangeTrigger)==null?void 0:S.offsetStartMilliseconds);var L;I=Number((L= M.mediaTimeRangeTrigger)==null?void 0:L.offsetEndMilliseconds);isFinite(Q)&&isFinite(I)?(L=I,L===-1&&(L=A),A=Q>L?new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Q,offsetEndMs:L},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",L===A&&Q-500<=L):new gP(Q,L),M=A instanceof K?A:new kz(TQ,f,A,!1,M.id)):M=new K("Not able to create MediaTimeRangeTrigger")}else if(M.contentVideoIdEndedTrigger)M=M.contentVideoIdEndedTrigger?new PH(TQ,f,!1,M.id):new K("Not able to create ContentVideoIdEndedTrigger"); else{if(M.layoutIdEnteredTrigger){var a;f=(a=M.layoutIdEnteredTrigger)!=null&&a.triggeringLayoutId?new jW(TQ,M.layoutIdEnteredTrigger.triggeringLayoutId,M.id):new K("Not able to create LayoutIdEnteredTrigger")}else if(M.timeRelativeToLayoutEnterTrigger){var q;f=(q=M.timeRelativeToLayoutEnterTrigger)!=null&&q.triggeringLayoutId?new Iv(TQ,Number(M.timeRelativeToLayoutEnterTrigger.durationMs),M.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,M.id):new K("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(M.onDifferentLayoutIdEnteredTrigger){var m; f=(m=M.onDifferentLayoutIdEnteredTrigger)!=null&&m.triggeringLayoutId&&M.onDifferentLayoutIdEnteredTrigger.slotType&&M.onDifferentLayoutIdEnteredTrigger.layoutType?new ON(TQ,M.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,M.onDifferentLayoutIdEnteredTrigger.slotType,M.onDifferentLayoutIdEnteredTrigger.layoutType,M.id):new K("Not able to create CloseRequestedTrigger")}else{if(M.liveStreamBreakStartedTrigger)M=M.liveStreamBreakStartedTrigger&&M.id?new b9(TQ,M.id):new K("Not able to create LiveStreamBreakStartedTrigger"); else if(M.liveStreamBreakEndedTrigger)M=M.liveStreamBreakEndedTrigger&&M.id?new y6(TQ,M.id):new K("Not able to create LiveStreamBreakEndedTrigger");else{if(M.liveStreamBreakScheduledDurationMatchedTrigger){var R;f=(R=M.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&R.breakDurationMs?new dz(Number(M.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,M.id):new K("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(M.liveStreamBreakScheduledDurationNotMatchedTrigger){var u; f=(u=M.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&u.breakDurationMs?new eW(Number(M.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,M.id):new K("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(M.newSlotScheduledWithBreakDurationTrigger){var z;f=(z=M.newSlotScheduledWithBreakDurationTrigger)!=null&&z.breakDurationMs?new WH(Number(M.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,M.id):new K("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else f= M.prefetchCacheExpiredTrigger?new GS(TQ,M.id):new K("Not able to convert an AdsControlflowTrigger.");M=f}f=M}M=f}f=M}M=f}f=M}M=f}f=M}M=f}f=M}M=f}return M}; wO=function(M,f){f.K>=2&&(M.slot_pos=f.adPodIndex);M.autoplay="1"}; X76=function(M,f,A,Q,N,Y,I,D){return f===null?new K("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:f,ActionCompanionAdRenderer:Q}):[Oec(M,f,I,Y,function(E){var t=E.slotId;E=D(E);var v=Q.adLayoutLoggingData,p=new EP([new e8(Q),new fw(N)]);t=MS(A.Z.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",t);var h={layoutId:t,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",W7:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Kk:new Map, layoutExitNormalTriggers:[new Kc(A.K,I)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:p,ex:E(h),adLayoutLoggingData:v}})]}; Jyc=function(M,f,A,Q,N,Y,I,D){return f===null?new K("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:f,TopBannerImageTextIconButtonedLayoutViewModel:Q}):[Oec(M,f,I,Y,function(E){var t=E.slotId;E=D(E);var v=Q.adLayoutLoggingData,p=new EP([new b5(Q),new fw(N)]);t=MS(A.Z.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",t);var h={layoutId:t,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",W7:"core"};return{layoutId:t,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Kk:new Map,layoutExitNormalTriggers:[new Kc(A.K,I)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:p,ex:E(h),adLayoutLoggingData:v}})]}; l$N=function(M,f,A,Q,N,Y){if(!Y)for(f=g.V(f),Y=f.next();!Y.done;Y=f.next())Y=Y.value,lF(M,Y.renderer,Y.config.adPlacementConfig.kind);M=Array.from(M.values()).filter(function(v){return K5N(v)}); f=[];Y=g.V(M);for(var I=Y.next(),D={};!I.done;D={d7:void 0},I=Y.next()){D.d7=I.value;I=g.V(D.d7.QI);for(var E=I.next(),t={};!E.done;t={C8:void 0},E=I.next())t.C8=E.value,E=function(v,p){return function(h){return v.C8.Bd(h,p.d7.instreamVideoAdRenderer.elementId,v.C8.BF)}}(t,D),t.C8.isContentVideoCompanion?f.push(GjU(A,Q,N,D.d7.instreamVideoAdRenderer.elementId,t.C8.associatedCompositePlayerBytesLayoutId,t.C8.adSlotLoggingData,E)):M.length>1?f.push(w7D(A,Q,N,D.d7.instreamVideoAdRenderer.elementId,t.C8.adSlotLoggingData, function(v,p){return function(h){return v.C8.Bd(h,p.d7.instreamVideoAdRenderer.elementId,v.C8.BF,v.C8.associatedCompositePlayerBytesLayoutId)}}(t,D))):f.push(w7D(A,Q,N,D.d7.instreamVideoAdRenderer.elementId,t.C8.adSlotLoggingData,E))}return f}; lF=function(M,f,A){if(f=M80(f)){f=g.V(f);for(var Q=f.next();!Q.done;Q=f.next())if((Q=Q.value)&&Q.externalVideoId){var N=Mb(M,Q.externalVideoId);N.instreamVideoAdRenderer||(N.instreamVideoAdRenderer=Q,N.Zc=A)}else o1("InstreamVideoAdRenderer without externalVideoId")}}; M80=function(M){var f=[],A=M.sandwichedLinearAdRenderer&&M.sandwichedLinearAdRenderer.linearAd&&g.b(M.sandwichedLinearAdRenderer.linearAd,av);if(A)return f.push(A),f;if(M.instreamVideoAdRenderer)return f.push(M.instreamVideoAdRenderer),f;if(M.linearAdSequenceRenderer&&M.linearAdSequenceRenderer.linearAds){M=g.V(M.linearAdSequenceRenderer.linearAds);for(A=M.next();!A.done;A=M.next())A=A.value,g.b(A,av)&&f.push(g.b(A,av));return f}return null}; K5N=function(M){if(M.instreamVideoAdRenderer===void 0)return o1("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var f=g.V(M.QI),A=f.next();!A.done;A=f.next()){A=A.value;if(A.Bd===void 0)return!1;if(A.BF===void 0)return o1("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(M.Zc===void 0||A.X6===void 0||M.Zc!==A.X6&&A.X6!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(M.instreamVideoAdRenderer.elementId===void 0)return o1("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:M.Zc,"matching APSR kind":A.X6}),!1}return!0}; Mb=function(M,f){M.has(f)||M.set(f,{instreamVideoAdRenderer:void 0,Zc:void 0,adVideoId:f,QI:[]});return g.F(M.get(f))}; f_=function(M,f,A,Q,N,Y,I,D,E){N?Mb(M,N).QI.push({AIN:f,X6:A,isContentVideoCompanion:Q,BF:I,associatedCompositePlayerBytesLayoutId:Y,adSlotLoggingData:D,Bd:E}):o1("Companion AdPlacementSupportedRenderer without adVideoId")}; Aq=function(M){var f=0;M=g.V(M.questions);for(var A=M.next();!A.done;A=M.next())if(A=A.value,A=g.b(A,F1)||g.b(A,yB)){var Q=void 0;f+=((Q=A.surveyAdQuestionCommon)==null?void 0:Q.durationMilliseconds)||0}return f}; QY=function(M){var f,A,Q,N,Y=((A=g.b((f=M.questions)==null?void 0:f[0],F1))==null?void 0:A.surveyAdQuestionCommon)||((N=g.b((Q=M.questions)==null?void 0:Q[0],yB))==null?void 0:N.surveyAdQuestionCommon),I;f=[].concat(g.c(((I=M.playbackCommands)==null?void 0:I.instreamAdCompleteCommands)||[]),g.c((Y==null?void 0:Y.timeoutCommands)||[]));var D,E,t,v,p,h,S,L,a,q,m,R,u,z,e,G,X,Qt,Y9,Mc;return{impressionCommands:(D=M.playbackCommands)==null?void 0:D.impressionCommands,errorCommands:(E=M.playbackCommands)== null?void 0:E.errorCommands,muteCommands:(t=M.playbackCommands)==null?void 0:t.muteCommands,unmuteCommands:(v=M.playbackCommands)==null?void 0:v.unmuteCommands,pauseCommands:(p=M.playbackCommands)==null?void 0:p.pauseCommands,rewindCommands:(h=M.playbackCommands)==null?void 0:h.rewindCommands,resumeCommands:(S=M.playbackCommands)==null?void 0:S.resumeCommands,skipCommands:(L=M.playbackCommands)==null?void 0:L.skipCommands,progressCommands:(a=M.playbackCommands)==null?void 0:a.progressCommands,V4u:(q= M.playbackCommands)==null?void 0:q.clickthroughCommands,fullscreenCommands:(m=M.playbackCommands)==null?void 0:m.fullscreenCommands,activeViewViewableCommands:(R=M.playbackCommands)==null?void 0:R.activeViewViewableCommands,activeViewMeasurableCommands:(u=M.playbackCommands)==null?void 0:u.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(z=M.playbackCommands)==null?void 0:z.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(e=M.playbackCommands)== null?void 0:(G=e.activeViewTracking)==null?void 0:G.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(X=M.playbackCommands)==null?void 0:(Qt=X.activeViewTracking)==null?void 0:Qt.activeViewAudioMeasurableCommands,endFullscreenCommands:(Y9=M.playbackCommands)==null?void 0:Y9.endFullscreenCommands,abandonCommands:(Mc=M.playbackCommands)==null?void 0:Mc.abandonCommands,completeCommands:f}}; AKD=function(M,f,A,Q,N,Y,I){return function(D,E){return fC0(M,E.slotId,D,Y,function(t,v){var p=E.layoutId;t=I(t);return Nb(f,p,v,N,t,"LAYOUT_TYPE_SURVEY",[new Cw(A),Q],A.adLayoutLoggingData)})}}; YZU=function(M,f,A,Q,N,Y,I){if(!Q_U(M))return new K("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:M});var D=M.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Nof(Y,f,A,Q,function(E){var t=E.slotId;E=I(E);t=MS(N.Z.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",t);var v={layoutId:t,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",W7:"core"},p=new F2(N.K,Q);return{layoutId:t,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Kk:new Map,layoutExitNormalTriggers:[p], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:new EP([new U1(D)]),ex:E(v)}})]}; Q_U=function(M){M=g.b(M==null?void 0:M.additionalPlayerOverlay,ICT);if(!M)return!1;var f=M.slidingMessages;return M.title&&f&&f.length!==0?!0:!1}; D0D=function(M,f,A,Q,N){var Y;if((Y=M.playerOverlay)==null||!Y.instreamSurveyAdRenderer)return function(){return[]}; if(!Ze0(M))return function(){return new K("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:M})}; var I=M.playerOverlay.instreamSurveyAdRenderer,D=Aq(I);return D<=0?function(){return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:I})}:function(E,t){var v=Tob(E,A,Q,function(p){var h=p.slotId; p=t(p);var S=QY(I);h=MS(N.Z.get(),"LAYOUT_TYPE_SURVEY",h);var L={layoutId:h,layoutType:"LAYOUT_TYPE_SURVEY",W7:"core"},a=new F2(N.K,Q),q=new wz(N.K,h),m=new YG(N.K,h),R=new tT0(N.K);return{layoutId:h,layoutType:"LAYOUT_TYPE_SURVEY",Kk:new Map,layoutExitNormalTriggers:[a,R],layoutExitSkipTriggers:[q],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[m],g2:[],W7:"core",clientMetadata:new EP([new oU(I),new fw(f),new kj(D/1E3),new Jh(S)]),ex:p(L),adLayoutLoggingData:I.adLayoutLoggingData}}); E=YZU(M,A,v.slotId,Q,N,E,t);return E instanceof K?E:[v].concat(g.c(E))}}; LUD=function(M,f,A,Q,N,Y,I){I=I===void 0?!1:I;var D=[];try{var E=[];if(A.renderer.linearAdSequenceRenderer)var t=function(a){a=E0T(a.slotId,A,f,N(a),Q,Y,I);E=a.ekJ;return a.dH}; else if(A.renderer.instreamVideoAdRenderer)t=function(a){var q=a.slotId;a=N(a);var m=I,R=A.config.adPlacementConfig,u=t8T(R),z=u.RW,e=u.YQ;u=A.renderer.instreamVideoAdRenderer;var G;if(u==null?0:(G=u.playerOverlay)==null?0:G.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var X=Yq(u,m);G=Math.min(z+X.videoLengthSeconds*1E3,e);m=new rz(0,[X.videoLengthSeconds]);e=X.videoLengthSeconds;var Qt=X.playerVars,Y9=X.instreamAdPlayerOverlayRenderer,Mc=X.playerOverlayLayoutRenderer, E0=X.adVideoId,w=v0U(A),m6=X.Kk;X=X.sW;var BX=u==null?void 0:u.adLayoutLoggingData;u=u==null?void 0:u.sodarExtensionData;q=MS(f.Z.get(),"LAYOUT_TYPE_MEDIA",q);var WX={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",W7:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",Kk:m6,layoutExitNormalTriggers:[new y6(f.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:new EP([new Td(Q),new Bm(e),new iN(Qt),new rU(z),new uN(G),Y9&&new Do(Y9), Mc&&new E1(Mc),new fw(R),new IU(E0),new Ah(m),new FS(w),u&&new Zo(u),new s1({current:null}),new Pm({}),new wU(X)].filter(pI9)),ex:a(WX),adLayoutLoggingData:BX}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var v=ha0(M,Q,A.adSlotLoggingData,t);D.push(v);for(var p=g.V(E),h=p.next();!h.done;h=p.next()){var S=h.value,L=S(M,N);if(L instanceof K)return L;D.push.apply(D,g.c(L))}}catch(a){return new K(a,{errorMessage:a.message,AdPlacementRenderer:A,numberOfSurveyRenderers:SZ0(A)})}return D}; SZ0=function(M){M=(M.renderer.linearAdSequenceRenderer||{}).linearAds;return M!=null&&M.length?M.filter(function(f){var A,Q;return((A=g.b(f,av))==null?void 0:(Q=A.playerOverlay)==null?void 0:Q.instreamSurveyAdRenderer)!=null}).length:0}; E0T=function(M,f,A,Q,N,Y,I){var D=f.config.adPlacementConfig,E=t8T(D),t=E.RW,v=E.YQ;E=(f.renderer.linearAdSequenceRenderer||{}).linearAds;if(E==null||!E.length)throw new TypeError("Expected linear ads");var p=[],h={yh:t,lL:0,fyk:p};E=E.map(function(L){return o0b(M,L,h,A,Q,D,N,v,I)}).map(function(L,a){a=new rz(a,p); return L(a)}); var S=E.map(function(L){return L.EH}); return{dH:C5D(A,M,t,S,D,v0U(f),Q,v,Y),ekJ:E.map(function(L){return L.gZ_})}}; o0b=function(M,f,A,Q,N,Y,I,D,E){var t=Yq(g.b(f,av),E),v=A.yh,p=A.lL,h=Math.min(v+t.videoLengthSeconds*1E3,D);A.yh=h;A.lL++;A.fyk.push(t.videoLengthSeconds);var S,L,a=(S=g.b(f,av))==null?void 0:(L=S.playerOverlay)==null?void 0:L.instreamSurveyAdRenderer;if(t.adVideoId==="nPpU29QrbiU"&&a==null)throw new TypeError("Survey slate media has no survey overlay");return function(q){wO(t.playerVars,q);var m,R,u=t.videoLengthSeconds,z=t.playerVars,e=t.Kk,G=t.sW,X=t.instreamAdPlayerOverlayRenderer,Qt=t.playerOverlayLayoutRenderer, Y9=t.adVideoId,Mc=(m=g.b(f,av))==null?void 0:m.adLayoutLoggingData;m=(R=g.b(f,av))==null?void 0:R.sodarExtensionData;R=MS(Q.Z.get(),"LAYOUT_TYPE_MEDIA",M);var E0={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",W7:"adapter"};q={layoutId:R,layoutType:"LAYOUT_TYPE_MEDIA",Kk:e,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"adapter",clientMetadata:new EP([new Td(I),new Bm(u),new iN(z),new rU(v),new uN(h),new zd(p),new s1({current:null}), X&&new Do(X),Qt&&new E1(Qt),new fw(Y),new IU(Y9),new Ah(q),m&&new Zo(m),a&&new Gd(a),new Pm({}),new wU(G)].filter(pI9)),ex:N(E0),adLayoutLoggingData:Mc};u=D0D(g.b(f,av),Y,I,q.layoutId,Q);return{EH:q,gZ_:u}}}; Yq=function(M,f){if(!M)throw new TypeError("Expected instream video ad renderer");if(!M.playerVars)throw new TypeError("Expected player vars in url encoded string");var A=Yy(M.playerVars),Q=Number(A.length_seconds);if(isNaN(Q))throw new TypeError("Expected valid length seconds in player vars");var N=Number(M.trimmedMaxNonSkippableAdDurationMs);Q=isNaN(N)?Q:Math.min(Q,N/1E3);N=M.playerOverlay||{};N=N.instreamAdPlayerOverlayRenderer===void 0?null:N.instreamAdPlayerOverlayRenderer;var Y=M.playerOverlay|| {};Y=Y.playerOverlayLayoutRenderer===void 0?null:Y.playerOverlayLayoutRenderer;var I=A.video_id;I||(I=(I=M.externalVideoId)?I:void 0);if(!I)throw new TypeError("Expected valid video id in IVAR");if(f&&Q===0){var D;f=(D=U0X[I])!=null?D:Q}else f=Q;return{playerVars:A,videoLengthSeconds:f,instreamAdPlayerOverlayRenderer:N,playerOverlayLayoutRenderer:Y,adVideoId:I,Kk:M.pings?is(M.pings):new Map,sW:Bl(M.pings)}}; v0U=function(M){M=Number(M.driftRecoveryMs);return isNaN(M)||M<=0?null:M}; t8T=function(M){var f=M.adTimeOffset||{};M=f.offsetEndMilliseconds;f=Number(f.offsetStartMilliseconds);if(isNaN(f))throw new TypeError("Expected valid start offset");M=Number(M);if(isNaN(M))throw new TypeError("Expected valid end offset");return{RW:f,YQ:M}}; V86=function(M){var f,A=(f=tA(M.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:f.current;if(!A)return null;f=tA(M.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Q=M.layoutId,N=tA(M.clientMetadata,"metadata_type_content_cpn"),Y=tA(M.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),I=tA(M.clientMetadata,"metadata_type_player_underlay_renderer"),D=tA(M.clientMetadata,"metadata_type_ad_placement_config"),E=tA(M.clientMetadata,"metadata_type_video_length_seconds"); var t=Yw(M.clientMetadata,"metadata_type_layout_enter_ms")&&Yw(M.clientMetadata,"metadata_type_layout_exit_ms")?(tA(M.clientMetadata,"metadata_type_layout_exit_ms")-tA(M.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{lX:Q,contentCpn:N,sP:A,dJ:f,instreamAdPlayerOverlayRenderer:Y,instreamAdPlayerUnderlayRenderer:I,adPlacementConfig:D,videoLengthSeconds:E,zB:t,inPlayerLayoutId:tA(M.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:tA(M.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; HZT=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L){Q=Vb(Q,"SLOT_TYPE_PLAYER_BYTES");M=aCt(N,M,I,A,Q,E,t);if(M instanceof K)return M;var a;t=(a=tA(M.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:a.layoutId;if(!t)return new K("Invalid adNotify layout");f=qZb(t,N,Y,A,D,f,E,v,p,h,S,L,I);return f instanceof K?f:[M].concat(g.c(f))}; qZb=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h){A=m0e(f,A,Q,Y,I,D,E,t,v,p,h);if(A instanceof K)return A;M=s_9(f,M,I,N,A);return M instanceof K?M:[].concat(g.c(M.o5),[M.vp])}; Ra6=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S){f=m0e(M,f,A,N,Y,D,E,t,v,p,h,S);if(f instanceof K)return f;M=cKe(M,A,Y,I,Q,D.U$,f);return M instanceof K?M:M.o5.concat(M.vp)}; m0e=function(M,f,A,Q,N,Y,I,D,E,t,v,p){var h=I$(Q,A,t);return h instanceof Ds?new K(h):t.U.T().experiments.X3("html5_refactor_in_player_slot_generation")?function(S){var L=new rz(0,[h.qp]);S=g0T(f,h.layoutId,h.g6,A,T7(h.playerVars,h.KD,Y,E,L),h.qp,N,L,I(S),D.get(h.g6.externalVideoId),p);L=[];if(h.g6.playerOverlay.instreamAdPlayerOverlayRenderer){var a=V86(S);if(!a)return o1("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,S),{layout:S,o5:[]}; L=[Bob(M,a.contentCpn,a.lX,function(m){return Dd(f,m.slotId,"core",a,oD(v,m))},a.inPlayerSlotId)].concat(g.c(L)); if(a.instreamAdPlayerUnderlayRenderer&&E5(t)){var q=a.instreamAdPlayerUnderlayRenderer;L=[iZd(M,a.contentCpn,a.lX,function(m){return x0f(f,m.slotId,q,a.adPlacementConfig,a.lX,oD(v,m))})].concat(g.c(L))}}return{layout:S, o5:L}}:function(S){var L=new rz(0,[h.qp]); return{layout:g0T(f,h.layoutId,h.g6,A,T7(h.playerVars,h.KD,Y,E,L),h.qp,N,L,I(S),D.get(h.g6.externalVideoId),p),o5:[]}}}; I$=function(M,f,A){if(!M.playerVars)return new Ds("No playerVars available in InstreamVideoAdRenderer.");var Q,N;if(M.elementId==null||M.playerVars==null||M.playerOverlay==null||((Q=M.playerOverlay)==null?void 0:Q.instreamAdPlayerOverlayRenderer)==null&&((N=M.playerOverlay)==null?void 0:N.playerOverlayLayoutRenderer)==null||M.pings==null||M.externalVideoId==null)return new Ds("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:M});Q=Yy(M.playerVars);N=Number(Q.length_seconds); isNaN(N)&&(N=0,o1("Expected valid length seconds in player vars but got NaN"));if(A.Py(f.kind==="AD_PLACEMENT_KIND_START")){if(M.layoutId===void 0)return new Ds("Expected server generated layout ID in instreamVideoAdRenderer");f=M.layoutId}else f=M.elementId;return{layoutId:f,g6:M,playerVars:Q,KD:M.playerVars,qp:N}}; T7=function(M,f,A,Q,N){M.iv_load_policy=Q;f=Yy(f);if(f.cta_conversion_urls)try{M.cta_conversion_urls=JSON.parse(f.cta_conversion_urls)}catch(Y){o1(Y)}A.CK&&(M.ctrl=A.CK);A.T9&&(M.ytr=A.T9);A.rV&&(M.ytrcc=A.rV);A.isMdxPlayback&&(M.mdx="1");M.vvt&&(M.vss_credentials_token=M.vvt,A.DH&&(M.vss_credentials_token_type=A.DH),A.mdxEnvironment&&(M.mdx_environment=A.mdxEnvironment));wO(M,N);return M}; ZZD=function(M){var f=new Map;M=g.V(M);for(var A=M.next();!A.done;A=M.next())(A=A.value.renderer.remoteSlotsRenderer)&&A.hostElementId&&f.set(A.hostElementId,A);return f}; tq=function(M){return M.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; rKD=function(M){return M!=null}; FUt=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S){for(var L=[],a=g.V(M),q=a.next();!q.done;q=a.next())if(q=q.value,!mxt(q)&&!B3d(q)){var m=tq(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger,R=E.Py(m),u=uL9(q,t,Q,A.xI,R);if(u instanceof K)return u;var z=void 0,e={slotId:q.adSlotMetadata.slotId,slotType:q.adSlotMetadata.slotType,slotPhysicalPosition:(z=q.adSlotMetadata.slotPhysicalPosition)!=null?z:1,W7:"core",slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers, slotExpirationTriggers:u.slotExpirationTriggers},G=g.b(q.fulfillmentContent.fulfilledLayout,cr);if(G){if(!sE(G))return new K("Invalid PlayerBytesAdLayoutRenderer");z=p&&!(tq(q)&&q.slotEntryTrigger.beforeContentVideoIdStartedTrigger);u=u.slotFulfillmentTriggers.some(function(X){return X instanceof dz}); R=z?zab(e,q.adSlotMetadata.triggerEvent,G,A,Q,Y,t,M,R,h,u,S):P5d(e,q.adSlotMetadata.triggerEvent,G,f,A,Q,N,Y,I,D,E,t,M,v,R,q.adSlotMetadata.triggeringSourceLayoutId);if(R instanceof K)return R;u=[];tq(q)&&u.push(new Qe({Ff:tq(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));z&&u.push(new Pm({}));A.U$&&u.push(new Kw({}));u.push(new fE(m));q=Object.assign({},e,{clientMetadata:new EP(u),fulfilledLayout:R.layout,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});L.push.apply(L,g.c(R.o5)); L.push(q)}else if(m=g.b(q.fulfillmentContent.fulfilledLayout,jP)){if(!HeN(m))return new K("Invalid PlayerUnderlayAdLayoutRenderer");m=n0d(m,Q,A.xI,Y,e,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(m instanceof K)return m;q=Object.assign({},e,{clientMetadata:new EP([]),fulfilledLayout:m,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});L.push(q)}else if(m=g.b(q.fulfillmentContent.fulfilledLayout,cyX)){if(!Sud(m))return new K("Invalid AboveFeedAdLayoutRenderer");m= j_N(m,Q,A.xI,Y,e,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(m instanceof K)return m;q=Object.assign({},e,{clientMetadata:new EP([]),fulfilledLayout:m,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});L.push(q)}else if(m=g.b(q.fulfillmentContent.fulfilledLayout,RkX)){if(!DO(m.adLayoutMetadata)||!g.b(m.renderingContent,EE))return new K("Invalid BelowPlayerAdLayoutRenderer");m=j_N(m,Q,A.xI,Y,e,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId); if(m instanceof K)return m;q=Object.assign({},e,{clientMetadata:new EP([]),fulfilledLayout:m,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});L.push(q)}else if(m=g.b(q.fulfillmentContent.fulfilledLayout,$G)){if(!zL(m))return new K("Invalid PlayerBytesSequenceItemAdLayoutRenderer");m=$0z(m,Q,A.xI,Y,e,q.adSlotMetadata.triggerEvent);if(m instanceof K)return m;q=Object.assign({},e,{clientMetadata:new EP([]),fulfilledLayout:m,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});L.push(q)}else return new K("Unable to retrieve a client slot ["+ e.slotType+"] from a given AdSlotRenderer")}return L}; $0z=function(M,f,A,Q,N,Y){var I={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,W7:"core"};f=vk(M,f,A);return f instanceof K?f:(A=g.b(M.renderingContent,uF))&&A.pings?Object.assign({},I,{renderingContent:M.renderingContent,Kk:is(A.pings)},f,{ex:oD(Q,N)(I),clientMetadata:new EP([new fw(p_(Y))]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}):new K("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; j_N=function(M,f,A,Q,N,Y,I){var D={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,W7:"core"};f=vk(M,f,A);if(f instanceof K)return f;A=[];A.push(new fw(p_(Y)));Y==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&I!==void 0&&A.push(new VQ(I));return Object.assign({},D,{renderingContent:M.renderingContent,Kk:new Map([["impression",yKf(M)]])},f,{ex:oD(Q,N)(D),clientMetadata:new EP(A),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData})}; n0d=function(M,f,A,Q,N,Y,I){if(M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(I=g.b(M.renderingContent,Pr))if(I=g.b(I.sidePanel,a$c)){var D={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,W7:"core"};f=vk(M,f,A);M=f instanceof K?f:Object.assign({},D,{renderingContent:M.renderingContent,Kk:new Map([["impression",I.impressionPings||[]],["resume",I.resumePings||[]]])},f,{ex:oD(Q,N)(D),clientMetadata:new EP([new fw(p_(Y))]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData})}else M= new K("DismissablePanelTextPortraitImageRenderer is missing");else M=new K("SqueezebackPlayerSidePanelRenderer is missing");else M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.b(M.renderingContent,Cpe)?(I={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,W7:"core"},f=vk(M,f,A),M=f instanceof K?f:Object.assign({},I,{renderingContent:M.renderingContent,Kk:new Map},f,{ex:oD(Q,N)(I),clientMetadata:new EP([new fw(p_(Y))]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData})): M=new K("CounterfactualRenderer is missing"):M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?M=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?M=new K("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.b(M.renderingContent,nd)?(Y={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType, W7:"core"},f=vk(M,f,A),M=f instanceof K?f:I?Object.assign({},Y,{renderingContent:M.renderingContent,Kk:new Map},f,{ex:oD(Q,N)(Y),clientMetadata:new EP([new VQ(I)]),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}):new K("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):M=new K("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):M.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.b(M.renderingContent,Uxt)? (Y={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,W7:"core"},f=vk(M,f,A),M=f instanceof K?f:Object.assign({},Y,{renderingContent:M.renderingContent,Kk:new Map([])},f,{ex:oD(Q,N)(Y),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new EP([])})):M=new K("AdsEngagementPanelSectionListViewModel is missing"):M=new K("LayoutType ["+M.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return M}; zab=function(M,f,A,Q,N,Y,I,D,E,t,v,p){if((p==null?void 0:p.C_)===void 0||(p==null?void 0:p.He)===void 0)return new K("Cached ad break range from cue point is missing");var h=vk(A,N,Q.xI);if(h instanceof K)return h;h={layoutExitMuteTriggers:[],layoutExitNormalTriggers:h.layoutExitNormalTriggers,layoutExitSkipTriggers:[],g2:[],layoutExitUserInputSubmittedTriggers:[]};if(g.b(A.renderingContent,av))return M=d0z(M,f,A,h,N,Y,D,E,Q.xI,I,p.C_,p.He),M instanceof K?M:M.wb===void 0?new K("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:M.layout,o5:[M.wb]};var S=g.b(A.renderingContent,UE);if(S){if(!DO(A.adLayoutMetadata))return new K("Invalid ad layout metadata");if(!VB(S))return new K("Invalid sequential layout");S=S.sequentialLayouts.map(function(L){return L.playerBytesAdLayoutRenderer}); M=eaN(M,f,A,h,S,N,Q,Y,I,E,D,t,p.C_,p.He,v);return M instanceof K?M:{layout:M.X0,o5:M.o5}}return new K("Not able to convert a sequential layout")}; eaN=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L){var a=bZ0(N,h,S);if(a instanceof K)return a;var q=[],m=[];a=g.V(a);for(var R=a.next();!R.done;R=a.next()){var u=R.value;R=M;var z=N[u.lL],e=u,G=f;u=Y;var X=I,Qt=D,Y9=E,Mc=t,E0=v,w=hq(z);if(w instanceof K)R=w;else{var m6={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,W7:"adapter"};e=kyN(G,z,e,u);e instanceof K?R=e:(R=Object.assign({},m6,Sv,{Kk:w,renderingContent:z.renderingContent,clientMetadata:new EP(e),ex:oD(Qt,R)(m6),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}), R=(z=L_(E0,R,u,X.xI,Qt,Y9,Mc,void 0,!0))?z instanceof K?z:{layout:R,wb:z}:new K("Expecting associatedInPlayerSlot"))}if(R instanceof K)return R;q.push(R.layout);m.push(R.wb)}N={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,W7:"core"};f=[new FS(Number(A.driftRecoveryMs)),new rU(h),new uN(S),new fw(p_(f)),new Ma(p),new Pm({})];L&&f.push(new Na({}));return{X0:Object.assign({},N,Q,{rD:q,Kk:new Map,clientMetadata:new EP(f),ex:oD(D,M)(N)}),o5:m}}; d0z=function(M,f,A,Q,N,Y,I,D,E,t,v,p){if(!sE(A))return new K("Invalid PlayerBytesAdLayoutRenderer");var h=hq(A);if(h instanceof K)return h;var S={layoutId:A.adLayoutMetadata.layoutId,layoutType:A.adLayoutMetadata.layoutType,W7:"core"},L=g.b(A.renderingContent,av);if(!L)return new K("Invalid rendering content for DAI media layout");L=Yq(L,!1);v={Uj:L,lL:0,yh:v,jg:Math.min(v+L.videoLengthSeconds*1E3,p),Np:new rz(0,[L.videoLengthSeconds])};var a;p=(a=Number(A.driftRecoveryMs))!=null?a:void 0;f=kyN(f, A,v,N,p);if(f instanceof K)return f;M=Object.assign({},S,Q,{Kk:h,renderingContent:A.renderingContent,clientMetadata:new EP(f),ex:oD(Y,M)(S),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData});return(N=L_(I,M,N,E,Y,t,D,void 0,!0))?N instanceof K?N:{layout:M,wb:N}:new K("Expecting associatedInPlayerSlot")}; P5d=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a){var q=vk(A,Y,N.xI);if(q instanceof K)return q;if(g.b(A.renderingContent,av)){E=WUX([A],N,E);if(E instanceof K)return E;if(E.length!==1)return new K("Only expected one media layout.");M=OZt(M,f,A,q,E[0],void 0,"core",Q,Y,I,D,t,h,S,L,N.xI,p,void 0,a);return M instanceof K?M:{layout:M.layout,o5:M.wb?[M.wb]:[]}}var m=g.b(A.renderingContent,UE);if(m){if(!DO(A.adLayoutMetadata))return new K("Invalid ad layout metadata");if(!VB(m))return new K("Invalid sequential layout"); m=m.sequentialLayouts.map(function(R){return R.playerBytesAdLayoutRenderer}); M=XIX(M,f,A.adLayoutMetadata,q,m,Q,Y,N,E,I,D,t,v,p,L,h,S,a);return M instanceof K?M:{layout:M.X0,o5:M.o5}}return new K("Not able to convert a sequential layout")}; XIX=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m){var R=new Yj({current:null}),u=WUX(N,D,E);if(u instanceof K)return u;E=[];for(var z=[],e=void 0,G=0;G0&&(G.push(m),G.push(new Nf(e.adPodSkipTarget)));(Y=t.get(e.externalVideoId))&&G.push(new bN(Y));Y=G}else Y=new K("Invalid vod media renderer")}if(Y instanceof K)return Y;M=Object.assign({},I,Q,{Kk:u,renderingContent:A.renderingContent,clientMetadata:new EP(Y),ex:oD(v,M)(I),adLayoutLoggingData:A.adLayoutMetadata.adLayoutLoggingData});A=g.b(A.renderingContent,av);if(!A||!Cd(A))return new K("Invalid meida renderer");p=Mb(p,A.externalVideoId);p.instreamVideoAdRenderer=A;p.Zc="AD_PLACEMENT_KIND_START";return S?(E=L_(h,M,E,a,v,q,L,m,!1),E instanceof K?E:Gyb(M.layoutId,h)&&E?{layout:Object.assign({},M,{clientMetadata:new EP(Y.concat(new pw(E)))})}:{layout:M,wb:E}): {layout:M}}; JKt=function(M,f,A,Q,N){if(!sE(f))return new K("Invalid PlayerBytesAdLayoutRenderer");var Y=g.b(f.renderingContent,pU);if(!Y||Y.durationMilliseconds===void 0)return new K("Invalid endcap renderer");var I={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,W7:"adapter"};Q=[new Wm(Y.durationMilliseconds),new Jh({impressionCommands:void 0,abandonCommands:Y.abandonCommands?[{commandExecutorCommand:Y.abandonCommands}]:void 0,completeCommands:Y.completionCommands}),new fw(Q), new qf("LAYOUT_TYPE_ENDCAP")];if(N){Q.push(new QQ(N.Np.adPodIndex-1));Q.push(new zd(N.Np.adPodIndex));var D;Q.push(new Nf((D=N.adPodSkipTarget)!=null?D:-1))}return Object.assign({},I,Sv,{renderingContent:f.renderingContent,clientMetadata:new EP(Q),Kk:Y.skipPings?new Map([["skip",Y.skipPings]]):new Map,ex:oD(A,M)(I),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData})}; L_=function(M,f,A,Q,N,Y,I,D,E){M=M.filter(function(v){return v.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&v.adSlotMetadata.triggeringSourceLayoutId===f.layoutId}); if(M.length!==0){if(M.length!==1)return new K("Invalid InPlayer slot association for the given PlayerBytes layout");M=M[0];I=uL9(M,Y,A,Q,I);if(I instanceof K)return I;var t;Y={slotId:M.adSlotMetadata.slotId,slotType:M.adSlotMetadata.slotType,slotPhysicalPosition:(t=M.adSlotMetadata.slotPhysicalPosition)!=null?t:1,W7:"core",slotEntryTrigger:I.slotEntryTrigger,slotFulfillmentTriggers:I.slotFulfillmentTriggers,slotExpirationTriggers:I.slotExpirationTriggers};t=g.b(M.fulfillmentContent.fulfilledLayout, spN);if(!t||!ou9(t))return new K("Invalid InPlayerAdLayoutRenderer");I={layoutId:t.adLayoutMetadata.layoutId,layoutType:t.adLayoutMetadata.layoutType,W7:"core"};A=vk(t,A,Q);if(A instanceof K)return A;Q=[];E&&Q.push(new Pm({}));if(t.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")Q.push.apply(Q,g.c(wIU(M.adSlotMetadata.triggerEvent,f)));else if(t.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")Q.push(new fw(p_(M.adSlotMetadata.triggerEvent))),D&&Q.push(D);else return new K("Not able to parse an SDF InPlayer layout"); N=Object.assign({},I,A,{renderingContent:t.renderingContent,Kk:new Map,ex:oD(N,Y)(I),clientMetadata:new EP(Q),adLayoutLoggingData:t.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},Y,{fulfilledLayout:N,clientMetadata:new EP([])})}}; wIU=function(M,f){var A=[];A.push(new fw(p_(M)));A.push(new VQ(f.layoutId));(M=tA(f.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&A.push(new s1(M));(M=tA(f.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&A.push(new Yj(M));(M=tA(f.clientMetadata,"metadata_type_remote_slots_data"))&&A.push(new bN(M));(M=tA(f.clientMetadata,"metadata_type_ad_next_params"))&&A.push(new OZ(M));(M=tA(f.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&A.push(new XL(M));(M= tA(f.clientMetadata,"metadata_type_ad_pod_info"))&&A.push(new Ah(M));(f=tA(f.clientMetadata,"metadata_type_ad_video_id"))&&A.push(new IU(f));return A}; KUf=function(M,f,A,Q,N,Y){function I(t){return o$(f,t)} var D=Q.VW.inPlayerSlotId,E={layoutId:Q.VW.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",W7:"core"};A={slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:new jW(I,M),slotFulfillmentTriggers:[new l9(I,D)],slotExpirationTriggers:[new MH(I,D),new Kc(I,A)]};M=Object.assign({},E,{layoutExitNormalTriggers:[new F2(I,M)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],Kk:new Map,clientMetadata:new EP([new S1(Q.VW), new fw(Q.adPlacementConfig),N]),ex:oD(Y,A)(E),adLayoutLoggingData:Q.VW.adLayoutLoggingData});return Object.assign({},A,{clientMetadata:new EP([new yQ(M)])})}; Gyb=function(M,f){f=g.V(f);for(var A=f.next();!A.done;A=f.next())if(A=A.value,A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var Q=g.b(A.fulfillmentContent.fulfilledLayout,jP);if(Q&&(Q=g.b(Q.renderingContent,Pr))&&Q.associatedPlayerBytesLayoutId===M)return A}}; uL9=function(M,f,A,Q,N){var Y=lCN(GL(M.slotEntryTrigger,A,Q),N,M,f);if(Y instanceof K)return Y;for(var I=[],D=g.V(M.slotFulfillmentTriggers),E=D.next();!E.done;E=D.next()){E=GL(E.value,A,Q);if(E instanceof K)return E;I.push(E)}I=M1z(I,N,M,f);f=[];M=g.V(M.slotExpirationTriggers);for(N=M.next();!N.done;N=M.next()){N=GL(N.value,A,Q);if(N instanceof K)return N;f.push(N)}return{slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:f}}; lCN=function(M,f,A,Q){return f&&A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&M instanceof u9?new Zz(function(N){return o$(Q,N)},A.adSlotMetadata.slotId):M}; M1z=function(M,f,A,Q){return f&&A.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?M.map(function(N){return N instanceof l9?new QB(function(Y){return o$(Q,Y)},A.adSlotMetadata.slotId):N}):M}; vk=function(M,f,A){for(var Q=[],N=g.V(M.layoutExitNormalTriggers||[]),Y=N.next();!Y.done;Y=N.next()){Y=GL(Y.value,f,A);if(Y instanceof K)return Y;Q.push(Y)}N=[];Y=g.V(M.layoutExitSkipTriggers||[]);for(var I=Y.next();!I.done;I=Y.next()){I=GL(I.value,f,A);if(I instanceof K)return I;N.push(I)}Y=[];I=g.V(M.layoutExitMuteTriggers||[]);for(var D=I.next();!D.done;D=I.next()){D=GL(D.value,f,A);if(D instanceof K)return D;Y.push(D)}I=[];M=g.V(M.layoutExitUserInputSubmittedTriggers||[]);for(D=M.next();!D.done;D= M.next()){D=GL(D.value,f,A);if(D instanceof K)return D;I.push(D)}return{layoutExitNormalTriggers:Q,layoutExitSkipTriggers:N,layoutExitMuteTriggers:Y,layoutExitUserInputSubmittedTriggers:I,g2:[]}}; hq=function(M){var f=g.b(M.renderingContent,av);if(f==null?0:f.pings)return is(f.pings);M=g.b(M.renderingContent,pU);return(M==null?0:M.skipPings)?new Map([["skip",M.skipPings]]):new Map}; kyN=function(M,f,A,Q,N){f=g.b(f.renderingContent,av);if(!f)return new K("Invalid rendering content for DAI media layout");M=[new Td(Q),new Bm(A.Uj.videoLengthSeconds),new iN(A.Uj.playerVars),new rU(A.yh),new uN(A.jg),new zd(A.lL),new fw(p_(M)),new IU(A.Uj.adVideoId),new Ah(A.Np),f.sodarExtensionData&&new Zo(f.sodarExtensionData),new s1({current:null}),new Pm({}),new wU(Bl(f.pings))].filter(rKD);N!==void 0&&M.push(new FS(N));return M}; bZ0=function(M,f,A){M=M.map(function(E){return Yq(g.b(E.renderingContent,av),!1)}); var Q=M.map(function(E){return E.videoLengthSeconds}),N=Q.map(function(E,t){return new rz(t,Q)}),Y=f,I=A,D=[]; M.forEach(function(E,t){I=Math.min(Y+E.videoLengthSeconds*1E3,A);wO(E.playerVars,N[t]);D.push({Uj:E,yh:Y,jg:I,lL:t,Np:N[t]});Y=I}); return D}; WUX=function(M,f,A){for(var Q=[],N=g.V(M),Y=N.next();!Y.done;Y=N.next())if(Y=g.b(Y.value.renderingContent,av)){if(!Cd(Y))return new K("Invalid vod media renderer");Q.push(fob(Y))}N=Q.map(function(p){return p.qp}); Y=[];for(var I=0,D=0;D0?Mc:-1;else if(m6=g.b(w,pU)){w=pmT(M,f,A, m6,Y,a,D,X,Mc);if(w instanceof K){S=w;break a}w=w(h);q.push(w.cP);m=[].concat(g.c(w.pI),g.c(m));R=[].concat(g.c(w.H_),g.c(R));w.wb&&(Y9=[w.wb].concat(g.c(Y9)))}else if(m6=g.b(w,Hr)){if(S===void 0){S=new K("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:m6});break a}w=L9d(M,f,A,Y,m6,G,D,S,a,l7(v,"supports_multi_step_on_desktop"));if(w instanceof K){S=w;break a}w=w(h);q.push(w.cP);w.wb&&Y9.push(w.wb);m=[].concat(g.c(w.pI),g.c(m));R=[].concat(g.c(w.H_), g.c(R));u=[].concat(g.c(w.BV),g.c(u));z=[].concat(g.c(w.x5),g.c(z));e=[G].concat(g.c(e))}else if(w=g.b(w,mt)){w=oj0(M,f,A,Y,w,G,D,a);if(w instanceof K){S=w;break a}w=w(h);q.push(w.cP);w.wb&&Y9.push(w.wb);R=[].concat(g.c(w.H_),g.c(R))}else{S=new K("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}S={rD:q,layoutExitSkipTriggers:m,layoutExitUserInputSubmittedTriggers:u,g2:z,layoutExitMuteTriggers:R,Fv:e,o5:Y9}}}else a:if(a=sU6(Q,A,v),a instanceof K)S=a;else{q=0;m=[];R=[];u=[];z=[];e= [];G=[];X=new cm({current:null});Qt=new Yj({current:null});Y9=!1;E0=[];Mc=-1;L=g.V(Q);for(w=L.next();!w.done;w=L.next())if(w=w.value,g.b(w,qH)){w=hp6(f,A,g.b(w,qH),D);if(w instanceof K){S=w;break a}w=w(h);m.push(w.cP);R=[].concat(g.c(w.pI),g.c(R));u=[].concat(g.c(w.H_),g.c(u));w.wb&&(E0=[w.wb].concat(g.c(E0)))}else if(g.b(w,av)){Mc=I$(g.b(w,av),A,v);if(Mc instanceof Ds){S=new K(Mc);break a}w=new rz(q,a);w=chb(f,Mc.layoutId,Mc.g6,A,T7(Mc.playerVars,Mc.KD,I,t,w),Mc.qp,Y,w,D(h),Qt,E.get(Mc.g6.externalVideoId), void 0,p);q++;m.push(w.cP);R=[].concat(g.c(w.pI),g.c(R));u=[].concat(g.c(w.H_),g.c(u));Y9||(G.push(Qt),Y9=!0);Mc=(Mc=Mc.g6.adPodSkipTarget)&&Mc>0?Mc:-1}else if(g.b(w,pU)){w=pmT(M,f,A,g.b(w,pU),Y,q,D,Qt,Mc);if(w instanceof K){S=w;break a}w=w(h);m.push(w.cP);R=[].concat(g.c(w.pI),g.c(R));u=[].concat(g.c(w.H_),g.c(u));w.wb&&(E0=[w.wb].concat(g.c(E0)))}else if(g.b(w,Hr)){if(S===void 0){S=new K("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.b(w, Hr)});break a}w=L9d(M,f,A,Y,g.b(w,Hr),X,D,S,q,l7(v,"supports_multi_step_on_desktop"));if(w instanceof K){S=w;break a}w=w(h);m.push(w.cP);w.wb&&E0.push(w.wb);R=[].concat(g.c(w.pI),g.c(R));u=[].concat(g.c(w.H_),g.c(u));z=[].concat(g.c(w.BV),g.c(z));e=[].concat(g.c(w.x5),g.c(e));G=[X].concat(g.c(G))}else if(g.b(w,mt)){w=oj0(M,f,A,Y,g.b(w,mt),X,D,q);if(w instanceof K){S=w;break a}w=w(h);m.push(w.cP);w.wb&&E0.push(w.wb);u=[].concat(g.c(w.H_),g.c(u))}else{S=new K("Unsupported linearAd found in LinearAdSequenceRenderer."); break a}S={rD:m,layoutExitSkipTriggers:R,layoutExitUserInputSubmittedTriggers:z,g2:e,layoutExitMuteTriggers:u,Fv:G,o5:E0}}S instanceof K?h=S:(e=h.slotId,a=S.rD,q=S.layoutExitSkipTriggers,m=S.layoutExitMuteTriggers,R=S.layoutExitUserInputSubmittedTriggers,u=S.Fv,h=D(h),z=N?N.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",e=N?N.layoutId:MS(f.Z.get(),z,e),G={layoutId:e,layoutType:z,W7:"core"},h={layout:{layoutId:e,layoutType:z,Kk:new Map,layoutExitNormalTriggers:[new Jz(f.K,e)],layoutExitSkipTriggers:q, layoutExitMuteTriggers:m,layoutExitUserInputSubmittedTriggers:R,g2:[],W7:"core",clientMetadata:new EP([new RU(a)].concat(g.c(u))),ex:h(G)},o5:S.o5});return h}}; sU6=function(M,f,A){var Q=[];M=g.V(M);for(var N=M.next();!N.done;N=M.next())if(N=N.value,g.b(N,av)){N=I$(g.b(N,av),f,A);if(N instanceof Ds)return new K(N);Q.push(N.qp)}return Q}; gjU=function(M,f,A,Q,N,Y,I,D){if(!xxt(A,D===void 0?!1:D))return new K("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:A});var E=Aq(A);if(E<=0)return new K("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:A});var t=new cm({current:null}),v=AKD(M,f,A,t,Q,Y,I);return RpN(M,Q,Y,E,N,function(p,h){var S=p.slotId,L=QY(A);p=I(p);var a,q=(a=a$(f,Q,A.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?a: MS(f.Z.get(),"LAYOUT_TYPE_MEDIA_BREAK",S);S={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",W7:"core"};a=v(q,h);var m=tA(a.clientMetadata,"metadata_type_fulfilled_layout");m||o1("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");L=[new fw(Q),new Wm(E),new Jh(L),t];m&&L.push(new qf(m.layoutType));return{iJx:{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Kk:new Map,layoutExitNormalTriggers:[new Jz(f.K,q)],layoutExitSkipTriggers:[new wz(f.K, h.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new YG(f.K,h.layoutId)],g2:[],W7:"core",clientMetadata:new EP(L),ex:p(S)},fY:a}})}; BUD=function(M){if(!ubb(M))return!1;var f=g.b(M.adVideoStart,ck);return f?g.b(M.linearAd,av)&&Ld(f)?!0:(o1("Invalid Sandwich with notify"),!1):!1}; iw6=function(M){if(M.linearAds==null)return!1;M=g.b(M.adStart,ck);return M?Ld(M)?!0:(o1("Invalid LASR with notify"),!1):!1}; xf6=function(M){if(!ryf(M))return!1;M=g.b(M.adStart,ck);return M?Ld(M)?!0:(o1("Invalid LASR with notify"),!1):!1}; R$=function(M,f,A,Q,N,Y,I,D,E,t){this.C=M;this.Z=f;this.K=A;this.kO=Q;this.QU=N;this.j=Y;this.Sk=I;this.P_=D;this.lU=E;this.loadPolicy=t===void 0?1:t}; Je=function(M,f,A,Q,N,Y,I,D,E,t){var v=[];if(f.length===0&&Q.length===0&&A.length===0)return v;f=f.filter(ov);var p=A.filter(guf),h=Q.filter(ov),S=new Map,L=ZZD(f),a=A.some(function(BX){var WX;return(BX==null?void 0:(WX=BX.adSlotMetadata)==null?void 0:WX.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),q=A.some(function(BX){var WX; return(BX==null?void 0:(WX=BX.adSlotMetadata)==null?void 0:WX.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),m=A.some(function(BX){var WX; return(BX==null?void 0:(WX=BX.adSlotMetadata)==null?void 0:WX.slotType)==="SLOT_TYPE_IN_PLAYER"}),R=A.some(function(BX){var WX,g7; return(BX==null?void 0:(WX=BX.adSlotMetadata)==null?void 0:WX.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(BX==null?void 0:(g7=BX.adSlotMetadata)==null?void 0:g7.slotType)==="SLOT_TYPE_ABOVE_FEED"}); A=A.some(function(BX){var WX;return(BX==null?void 0:(WX=BX.adSlotMetadata)==null?void 0:WX.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(a||q||m||R||A)t=FUt(p,f,D,N,L,M.QU.get(),M.loadPolicy,S,M.kO.get(),M.C.get(),m,I,E,t),t instanceof K?o1(t,void 0,void 0,{contentCpn:N}):v.push.apply(v,g.c(t));t=g.V(f);for(A=t.next();!A.done;A=t.next())A=A.value,q=Zwz(M,S,A,N,Y,I,a,D,L,E,p),q instanceof K?o1(q,void 0,void 0,{renderer:A.renderer,config:A.config.adPlacementConfig,kind:A.config.adPlacementConfig.kind,contentCpn:N,daiEnabled:I}):v.push.apply(v,g.c(q));rhe(M.kO.get())||(Y=uSb(M,h,N,D,L,S),v.push.apply(v,g.c(Y)));if(M.j===null||I&&!D.f4){var u, z,e;M=D.U$&&f.length===1&&((u=f[0].config)==null?void 0:(z=u.adPlacementConfig)==null?void 0:z.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((e=f[0].renderer)==null?void 0:e.adBreakServiceRenderer);if(!v.length&&!M){var G,X,Qt,Y9;o1("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":f.length,contentCpn:N,"first APR kind":(G=f[0])==null?void 0:(X=G.config)==null?void 0:(Qt=X.adPlacementConfig)==null?void 0:Qt.kind,renderer:(Y9=f[0])==null?void 0: Y9.renderer})}return v}u=Q.filter(ov);v.push.apply(v,g.c(l$N(S,u,M.Z.get(),M.j,N,a)));if(!v.length){var Mc,E0,w,m6;o1("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":f.length,contentCpn:N,daiEnabled:I.toString(),"first APR kind":(Mc=f[0])==null?void 0:(E0=Mc.config)==null?void 0:(w=E0.adPlacementConfig)==null?void 0:w.kind,renderer:(m6=f[0])==null?void 0:m6.renderer})}return v}; uSb=function(M,f,A,Q,N,Y){function I(h){return oD(M.QU.get(),h)} var D=[];f=g.V(f);for(var E=f.next();!E.done;E=f.next()){E=E.value;var t=E.renderer,v=t.sandwichedLinearAdRenderer,p=t.linearAdSequenceRenderer;v&&BUD(v)?(o1("Found AdNotify with SandwichedLinearAdRenderer"),p=g.b(v.adVideoStart,ck),v=g.b(v.linearAd,av),lF(Y,t,E.config.adPlacementConfig.kind),t=void 0,p=qZb((t=p)==null?void 0:t.layout.layoutId,M.Z.get(),M.K.get(),E.config.adPlacementConfig,E.adSlotLoggingData,v,A,Q,I,N,M.loadPolicy,M.kO.get(),M.QU.get()),p instanceof K?o1(p):D.push.apply(D,g.c(p))): p&&(!p.adLayoutMetadata&&iw6(p)||p.adLayoutMetadata&&xf6(p))&&(o1("Found AdNotify with LinearAdSequenceRenderer"),lF(Y,t,E.config.adPlacementConfig.kind),t=void 0,v=CNd((t=g.b(p.adStart,ck))==null?void 0:t.layout.layoutId,M.Z.get(),M.K.get(),E.config.adPlacementConfig,E.adSlotLoggingData,p.linearAds,DO(p.adLayoutMetadata)?p.adLayoutMetadata:void 0,A,Q,I,N,M.loadPolicy,M.kO.get()),v instanceof K?o1(v):D.push.apply(D,g.c(v)))}return D}; Zwz=function(M,f,A,Q,N,Y,I,D,E,t,v){function p(m){return oD(M.QU.get(),m)} var h=A.renderer,S=A.config.adPlacementConfig,L=S.kind,a=A.adSlotLoggingData,q=D.f4&&L==="AD_PLACEMENT_KIND_START";q=Y&&!q;if(h.adsEngagementPanelRenderer!=null)return f_(f,A.elementId,L,h.adsEngagementPanelRenderer.isContentVideoEngagementPanel,h.adsEngagementPanelRenderer.adVideoId,h.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,S,a,function(m,R,u,z){var e=M.K.get(),G=m.slotId,X=h.adsEngagementPanelRenderer;m=oD(M.QU.get(),m);return g5(e,G,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new k0(X),R,u,X.impressionPings,m,h.adsEngagementPanelRenderer.adLayoutLoggingData,z)}),[]; if(h.adsEngagementPanelLayoutViewModel)return f_(f,A.elementId,L,h.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,h.adsEngagementPanelLayoutViewModel.adVideoId,h.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,S,a,function(m,R,u,z){var e=M.K.get(),G=m.slotId,X=h.adsEngagementPanelLayoutViewModel;m=oD(M.QU.get(),m);return Bk(e,G,"LAYOUT_TYPE_PANEL",new WI(X),R,u,m,h.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,z)}),[]; if(h.actionCompanionAdRenderer!=null){if(h.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return X76(M.Z.get(),M.j,M.K.get(),h.actionCompanionAdRenderer,S,a,Q,p);f_(f,A.elementId,L,h.actionCompanionAdRenderer.isContentVideoCompanion,h.actionCompanionAdRenderer.adVideoId,h.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,S,a,function(m,R,u,z){var e=M.K.get(),G=m.slotId,X=h.actionCompanionAdRenderer;m=oD(M.QU.get(),m);return g5(e,G,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new e8(X),R,u,X.impressionPings,m,h.actionCompanionAdRenderer.adLayoutLoggingData,z)})}else if(h.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(h.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Jyc(M.Z.get(),M.j,M.K.get(),h.topBannerImageTextIconButtonedLayoutViewModel,S,a,Q,p); f_(f,A.elementId,L,h.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,h.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,h.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,S,a,function(m,R,u,z){var e=M.K.get(),G=m.slotId,X=h.topBannerImageTextIconButtonedLayoutViewModel;m=oD(M.QU.get(),m);return Bk(e,G,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new b5(X),R,u,m,h.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,z)})}else if(h.imageCompanionAdRenderer)f_(f, A.elementId,L,h.imageCompanionAdRenderer.isContentVideoCompanion,h.imageCompanionAdRenderer.adVideoId,h.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,S,a,function(m,R,u,z){var e=M.K.get(),G=m.slotId,X=h.imageCompanionAdRenderer; m=oD(M.QU.get(),m);return g5(e,G,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new KZ(X),R,u,X.impressionPings,m,h.imageCompanionAdRenderer.adLayoutLoggingData,z)}); else if(h.bannerImageLayoutViewModel)f_(f,A.elementId,L,h.bannerImageLayoutViewModel.isContentVideoCompanion,h.bannerImageLayoutViewModel.adVideoId,h.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,S,a,function(m,R,u,z){var e=M.K.get(),G=m.slotId,X=h.bannerImageLayoutViewModel;m=oD(M.QU.get(),m);return Bk(e,G,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new Gy(X),R,u,m,h.bannerImageLayoutViewModel.adLayoutLoggingData,z)}); else if(h.shoppingCompanionCarouselRenderer)f_(f,A.elementId,L,h.shoppingCompanionCarouselRenderer.isContentVideoCompanion,h.shoppingCompanionCarouselRenderer.adVideoId,h.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,S,a,function(m,R,u,z){var e=M.K.get(),G=m.slotId,X=h.shoppingCompanionCarouselRenderer;m=oD(M.QU.get(),m);return g5(e,G,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new wo(X),R,u,X.impressionPings,m,h.shoppingCompanionCarouselRenderer.adLayoutLoggingData,z)}); else if(h.adBreakServiceRenderer){if(!W5U(A))return[];if(L==="AD_PLACEMENT_KIND_PAUSE")return kje(M.Z.get(),S,a,A.renderer.adBreakServiceRenderer,Q);if(L!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&L!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return beD(M.Z.get(),S,a,A.renderer.adBreakServiceRenderer,Q,N,Y);D.U$||o1("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:L,adPlacementConfig:S,daiEnabledForContentVideo:String(Y),isServedFromLiveInfra:String(D.U$),clientPlaybackNonce:D.clientPlaybackNonce}); if(L==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!M.Sk)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!M.lU)return new K("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");M.lU.kD({adPlacementRenderer:A,contentCpn:Q,xI:N});N=i3(M.Sk.get());return zpb(M.Z.get(),A.renderer.adBreakServiceRenderer,S,N,Q,a,Y)}if(!M.P_)return new K("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); M.P_.kD({adPlacementRenderer:A,contentCpn:Q,xI:N})}else{if(h.clientForecastingAdRenderer)return Y1N(M.Z.get(),M.K.get(),S,a,h.clientForecastingAdRenderer,Q,N,p);if(h.invideoOverlayAdRenderer)return EjX(M.Z.get(),M.K.get(),S,a,h.invideoOverlayAdRenderer,Q,N,p);if(h.instreamAdPlayerOverlayRenderer)return TUN(M.Z.get(),M.K.get(),S,a,h.instreamAdPlayerOverlayRenderer,Q,p);if((h.linearAdSequenceRenderer||h.instreamVideoAdRenderer)&&q)return LUD(M.Z.get(),M.K.get(),A,Q,p,t,PNN(M.kO.get()));if(h.linearAdSequenceRenderer&& !q){if(I)return[];lF(f,h,L);if(h.linearAdSequenceRenderer.adLayoutMetadata){if(!ryf(h.linearAdSequenceRenderer))return new K("Received invalid LinearAdSequenceRenderer.")}else if(h.linearAdSequenceRenderer.linearAds==null)return new K("Received invalid LinearAdSequenceRenderer.");if(g.b(h.linearAdSequenceRenderer.adStart,ck)){o1("Found AdNotify in LinearAdSequenceRenderer");A=g.b(h.linearAdSequenceRenderer.adStart,ck);if(!L56(A))return new K("Invalid AdMessageRenderer.");Y=h.linearAdSequenceRenderer.linearAds; return UfX(M.C.get(),M.Z.get(),M.K.get(),M.QU.get(),S,a,A,DO(h.linearAdSequenceRenderer.adLayoutMetadata)?h.linearAdSequenceRenderer.adLayoutMetadata:void 0,Y,Q,N,D,p,E,M.loadPolicy,M.kO.get())}return mf6(M.Z.get(),M.K.get(),S,a,h.linearAdSequenceRenderer.linearAds,DO(h.linearAdSequenceRenderer.adLayoutMetadata)?h.linearAdSequenceRenderer.adLayoutMetadata:void 0,Q,N,D,p,E,M.loadPolicy,M.kO.get(),v)}if(!h.remoteSlotsRenderer||Y){if(h.instreamVideoAdRenderer&&!q){if(I)return[];lF(f,h,L);return Ra6(M.Z.get(), M.K.get(),S,a,h.instreamVideoAdRenderer,Q,N,D,p,E,M.loadPolicy,M.kO.get(),M.QU.get(),v)}if(h.instreamSurveyAdRenderer)return gjU(M.Z.get(),M.K.get(),h.instreamSurveyAdRenderer,S,a,Q,p,l7(M.kO.get(),"supports_multi_step_on_desktop"));if(h.sandwichedLinearAdRenderer!=null)return ubb(h.sandwichedLinearAdRenderer)?g.b(h.sandwichedLinearAdRenderer.adVideoStart,ck)?(o1("Found AdNotify in SandwichedLinearAdRenderer"),A=g.b(h.sandwichedLinearAdRenderer.adVideoStart,ck),L56(A)?(Y=g.b(h.sandwichedLinearAdRenderer.linearAd, av))?HZT(A,Y,S,M.C.get(),M.Z.get(),M.K.get(),M.QU.get(),a,Q,N,D,p,E,M.loadPolicy,M.kO.get()):new K("Missing IVAR from Sandwich"):new K("Invalid AdMessageRenderer.")):mf6(M.Z.get(),M.K.get(),S,a,[h.sandwichedLinearAdRenderer.adVideoStart,h.sandwichedLinearAdRenderer.linearAd],void 0,Q,N,D,p,E,M.loadPolicy,M.kO.get()):new K("Received invalid SandwichedLinearAdRenderer.");if(h.videoAdTrackingRenderer!=null)return QUX(M.Z.get(),M.K.get(),h.videoAdTrackingRenderer,S,a,Q,N,D.E3,p)}}return[]}; xq=function(M,f,A,Q,N,Y,I,D){g.y.call(this);var E=this;this.Z=M;this.j=f;this.Xn=Q;this.Sk=N;this.kO=Y;this.yY=I;this.s$=D;this.K=null;A.get().addListener(this);this.addOnDisposeCallback(function(){A.ek()||A.get().removeListener(E)}); Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.ek()||Q.get().removeListener(E)})}; $fb=function(M,f,A){var Q=i3(M.Sk.get());njU(M.kO.get())&&vH(M.yY.get(),"sdai","onopp.1;evt."+A.event+";start."+A.startSecs.toFixed(3)+";d."+A.UR.toFixed(3));UW(M.Z.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var N=M.j.get(),Y=f.adPlacementRenderer.renderer.adBreakServiceRenderer,I=f.contentCpn,D=f.adPlacementRenderer.adSlotLoggingData,E=Zd(M.kO.get()),t=M.yY;if(N.kO.get().U.T().experiments.X3("enable_smearing_expansion_dai")){var v=N.kO.get();v=g.CE(v.U.T().experiments,"max_prefetch_window_sec_for_livestream_optimization"); E=N.kO.get();var p=g.CE(E.U.T().experiments,"min_prefetch_offset_sec_for_livestream_optimization");E={Y7:jUN(A),Ef:!1,cueProcessedMs:Q*1E3};var h=A.startSecs+A.UR;if(Q===0)E.o8=new gP(0,h*1E3);else{p=A.startSecs-p;var S=p-Q;E.o8=S<=0?new gP(p*1E3,h*1E3):new gP(Math.floor(Q+Math.random()*Math.min(S,v))*1E3,h*1E3)}v=E}else v={Y7:jUN(A),Ef:!1},h=A.startSecs+A.UR,A.startSecs<=Q?E=new gP((A.startSecs-4)*1E3,h*1E3):(p=Math.max(0,A.startSecs-Q-10),E=new gP(Math.floor(Q+Math.random()*(E?Q===0?0:Math.min(p, 5):p))*1E3,h*1E3)),v.o8=E;Y=Kd(N,Y,I,v,D,[new gU(A)]);r5(N.kO.get())&&vH(t.get(),"abrsm","cpi."+A.identifier+";cps."+A.startSecs+";cpd."+A.UR+";cts."+Q+";rbf."+v.o8.start);t.get().U.W5(A.startSecs-Q,v.o8.start/1E3-Q);return[Y]})}; u3=function(M){var f,A=(f=tA(M.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:f.current;if(!A)return null;f=tA(M.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Q=M.layoutId,N=tA(M.clientMetadata,"metadata_type_content_cpn"),Y=tA(M.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),I=tA(M.clientMetadata,"metadata_type_player_overlay_layout_renderer"),D=tA(M.clientMetadata,"metadata_type_player_underlay_renderer"),E=tA(M.clientMetadata, "metadata_type_ad_placement_config"),t=tA(M.clientMetadata,"metadata_type_video_length_seconds");var v=Yw(M.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?tA(M.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Yw(M.clientMetadata,"metadata_type_layout_enter_ms")&&Yw(M.clientMetadata,"metadata_type_layout_exit_ms")?(tA(M.clientMetadata,"metadata_type_layout_exit_ms")-tA(M.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{lX:Q,contentCpn:N,sP:A,dJ:f,instreamAdPlayerOverlayRenderer:Y, playerOverlayLayoutRenderer:I,instreamAdPlayerUnderlayRenderer:D,adPlacementConfig:E,videoLengthSeconds:t,zB:v,inPlayerLayoutId:tA(M.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:tA(M.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; yhb=function(M,f){return F9N(M,f)}; df9=function(M,f){f=F9N(M,f);if(!f)return null;var A;f.zB=(A=tA(M.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:A.adBreakRemainingLengthSeconds;return f}; F9N=function(M,f){var A,Q=(A=tA(M.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:A.current;if(!Q)return null;A=Q10(M,f);return{FB:AFX(M,f),adPlacementConfig:tA(M.clientMetadata,"metadata_type_ad_placement_config"),s0:A,contentCpn:tA(M.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:tA(M.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:tA(M.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:tA(M.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,zB:void 0,sP:Q,lX:M.layoutId,videoLengthSeconds:tA(M.clientMetadata,"metadata_type_video_length_seconds")}}; z7=function(M,f,A,Q,N,Y,I,D,E){g.y.call(this);this.C=M;this.G=f;this.N=A;this.j=Q;this.K=N;this.Z=Y;this.QU=I;this.kO=D;this.m$=E;this.FW=!0}; epX=function(M,f,A){return iZd(M.K.get(),f.contentCpn,f.lX,function(Q){return x0f(M.Z.get(),Q.slotId,A,f.adPlacementConfig,f.lX,oD(M.QU.get(),Q))})}; Pk=function(M,f,A,Q,N,Y,I,D){g.y.call(this);this.Z=M;this.K=f;this.j=A;this.kO=Q;this.C=N;this.m$=Y;this.Sk=I;this.kC=D}; n_=function(M){g.y.call(this);this.K=M}; UW=function(M,f,A,Q){M.K().Ow(f,Q);A=A();M=M.K();M.nk.pg("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",f,Q,A);f=g.V(A);for(A=f.next();!A.done;A=f.next())a:{Q=M;A=A.value;Q.nk.Io("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",A);Q.nk.Io("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",A);try{var N=Q.K;if(g.V1(A.slotId))throw new K("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(cc(N,A))throw new K("Duplicate registration for slot.",{slotId:A.slotId,slotEntryTriggerType:A.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!N.qQ.yA.has(A.slotType))throw new K("No fulfillment adapter factory registered for slot of type: "+A.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!N.qQ.F2.has(A.slotType))throw new K("No SlotAdapterFactory registered for slot of type: "+A.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ek(N,"TRIGGER_CATEGORY_SLOT_ENTRY",A.slotEntryTrigger?[A.slotEntryTrigger]:[]);ek(N,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", A.slotFulfillmentTriggers);ek(N,"TRIGGER_CATEGORY_SLOT_EXPIRATION",A.slotExpirationTriggers);var Y=Q.K,I=A.slotType+"_"+A.slotPhysicalPosition,D=jk(Y,I);if(cc(Y,A))throw new K("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");D.set(A.slotId,new JQU(A));Y.K.set(I,D)}catch(Qt){Qt instanceof K&&Qt.PB?(Q.nk.Ih("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Qt.PB,A),o1(Qt,A,void 0,void 0,Qt.aO)):(Q.nk.Ih("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", A),o1(Qt,A));break a}g.F(cc(Q.K,A)).G=!0;try{var E=Q.K,t=g.F(cc(E,A)),v=A.slotEntryTrigger,p=E.qQ.Fy.get(v.triggerType);p&&(p.JT("TRIGGER_CATEGORY_SLOT_ENTRY",v,A,null),t.jk.set(v.triggerId,p));for(var h=g.V(A.slotFulfillmentTriggers),S=h.next();!S.done;S=h.next()){var L=S.value,a=E.qQ.Fy.get(L.triggerType);a&&(a.JT("TRIGGER_CATEGORY_SLOT_FULFILLMENT",L,A,null),t.Er.set(L.triggerId,a))}for(var q=g.V(A.slotExpirationTriggers),m=q.next();!m.done;m=q.next()){var R=m.value,u=E.qQ.Fy.get(R.triggerType); u&&(u.JT("TRIGGER_CATEGORY_SLOT_EXPIRATION",R,A,null),t.B.set(R.triggerId,u))}var z=E.qQ.yA.get(A.slotType).get().build(E.j,A);t.W=z;var e=E.qQ.F2.get(A.slotType).get().build(E.N,A);e.init();t.Z=e}catch(Qt){Qt instanceof K&&Qt.PB?(Q.nk.Ih("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Qt.PB,A),o1(Qt,A,void 0,void 0,Qt.aO)):(Q.nk.Ih("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",A),o1(Qt,A));Hc(Q,A,!0);break a}Q.nk.Io("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",A); Q.K.YZ(A);for(var G=g.V(Q.Z),X=G.next();!X.done;X=G.next())X.value.YZ(A);Bc(Q,A)}}; jv=function(M,f,A,Q,N){g.y.call(this);var Y=this;this.Z=M;this.j=f;this.Ud=A;this.context=N;this.K=new Map;Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.ek()||Q.get().removeListener(Y)})}; jpb=function(M,f){var A=0x8000000000000;var Q=0;for(var N=g.V(f.slotFulfillmentTriggers),Y=N.next();!Y.done;Y=N.next())Y=Y.value,Y instanceof kz?(A=Math.min(A,Y.K.start),Q=Math.max(Q,Y.K.end)):o1("Found unexpected fulfillment trigger for throttled slot.",f,null,{fulfillmentTrigger:Y});Q=new gP(A,Q);A="throttledadcuerange:"+f.slotId;M.K.set(A,f);M.Ud.get().addCueRange(A,Q.start,Q.end,!1,M);B$(M.context.kO.get())&&(f=Q.start,Q=Q.end,N={},M.context.B2.F3("tcrr",(N.cid=A,N.sm=f,N.em=Q,N)))}; $q=function(){g.y.apply(this,arguments);this.FW=!0;this.J8=new Map;this.K=new Map}; Fm=function(M){return M.J8}; yY=function(M,f){M=g.V(M.J8.values());for(var A=M.next();!A.done;A=M.next())if(A.value.layoutId===f)return!0;return!1}; d5=function(M,f){M=g.V(M.K.values());for(var A=M.next();!A.done;A=M.next()){A=g.V(A.value);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.layoutId===f)return Q}o1("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.V1(f)),layoutId:f})}; bwf=function(){this.K=new Map}; kdN=function(M,f){this.callback=M;this.slot=f}; ev=function(){}; W9X=function(M,f,A){this.callback=M;this.slot=f;this.Sk=A}; OwD=function(M,f,A){this.callback=M;this.slot=f;this.Sk=A;this.Z=!1;this.K=0}; Xmb=function(M,f,A){this.callback=M;this.slot=f;this.Sk=A}; b3=function(M){this.Sk=M}; kq=function(M){g.y.call(this);this.Vn=M;this.Sx=new Map}; Wk=function(M,f){for(var A=[],Q=g.V(M.Sx.values()),N=Q.next();!N.done;N=Q.next()){N=N.value;var Y=N.trigger;Y instanceof YG&&Y.triggeringLayoutId===f&&A.push(N)}A.length?zQ(M.Vn(),A):o1("Survey is submitted but no registered triggers can be activated.")}; O5=function(M,f,A){kq.call(this,M);var Q=this;this.kO=A;f.get().addListener(this);this.addOnDisposeCallback(function(){f.ek()||f.get().removeListener(Q)})}; Xm=function(M){g.y.call(this);this.K=M;this.FW=!0;this.Sx=new Map;this.N=new Set;this.j=new Set;this.C=new Set;this.G=new Set;this.Z=new Set}; Jq=function(M){g.y.call(this);this.K=M;this.Sx=new Map}; K_=function(M,f){for(var A=[],Q=g.V(M.Sx.values()),N=Q.next();!N.done;N=Q.next())N=N.value,N.trigger.K===f.layoutId&&A.push(N);A.length&&zQ(M.K(),A)}; G7=function(M,f,A){g.y.call(this);var Q=this;this.K=M;this.context=A;this.Sx=new Map;f.get().addListener(this);this.addOnDisposeCallback(function(){f.ek()||f.get().removeListener(Q)})}; w5=function(M,f,A,Q,N){g.y.call(this);var Y=this;this.Z=M;this.Ud=f;this.Sk=A;this.m$=Q;this.context=N;this.FW=!0;this.Sx=new Map;this.K=new Set;A.get().addListener(this);this.addOnDisposeCallback(function(){A.ek()||A.get().removeListener(Y)})}; JhD=function(M,f,A,Q,N,Y,I,D,E,t){if(c8(M.m$.get(),1).clientPlaybackNonce!==E)throw new K("Cannot register CueRange-based trigger for different content CPN",{trigger:A});M.Sx.set(A.triggerId,{vD:new TL(f,A,Q,N),cueRangeId:Y});M.Ud.get().addCueRange(Y,I,D,t,M);B$(M.context.kO.get())&&(E={},M.context.B2.F3("crr",(E.ca=f,E.tt=A.triggerType,E.st=Q.slotType,E.lt=N==null?void 0:N.layoutType,E.cid=Y,E.sm=I,E.em=D,E)))}; K9D=function(M,f){M=g.V(M.Sx.entries());for(var A=M.next();!A.done;A=M.next()){var Q=g.V(A.value);A=Q.next().value;Q=Q.next().value;if(f===Q.cueRangeId)return A}return""}; l3=function(M,f){g.y.call(this);var A=this;this.C=M;this.Z=new Map;this.j=new Map;this.K=null;f.get().addListener(this);this.addOnDisposeCallback(function(){f.ek()||f.get().removeListener(A)}); var Q;this.K=((Q=Dz(f.get()))==null?void 0:Q.slotId)||null}; GdX=function(M,f){var A=[];M=g.V(M.values());for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,Q.slot.slotId===f&&A.push(Q);return A}; ME=function(M){g.y.call(this);this.K=M;this.FW=!0;this.Sx=new Map}; MK=function(M,f,A){f=f.layoutId;for(var Q=[],N=g.V(M.Sx.values()),Y=N.next();!Y.done;Y=N.next())if(Y=Y.value,Y.trigger instanceof Jz){var I;if(I=Y.trigger.layoutId===f){I=A;var D=d8b.get(Y.category);I=D?D===I:!1}I&&Q.push(Y)}Q.length&&zQ(M.K(),Q)}; fW=function(M){g.y.call(this);this.K=M;this.FW=!0;this.Sx=new Map}; AV=function(M,f,A,Q,N){g.y.call(this);var Y=this;this.C=M;this.Xn=f;this.Sk=A;this.yY=Q;this.K=null;this.FW=!0;this.Sx=new Map;f.get().addListener(this);this.addOnDisposeCallback(function(){f.ek()||f.get().removeListener(Y)}); N.get().addListener(this);this.addOnDisposeCallback(function(){N.ek()||N.get().removeListener(Y)})}; lot=function(M){M.K&&(M.Z&&(M.Z.stop(),M.Z.start()),wmD(M,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; wmD=function(M,f){for(var A=[],Q=g.V(M.Sx.values()),N=Q.next();!N.done;N=Q.next())N=N.value,N.trigger.triggerType===f&&A.push(N);A.length>0&&zQ(M.C(),A)}; Qa=function(M,f,A,Q,N){for(var Y=[],I=g.V(M.Sx.values()),D=I.next();!D.done;D=I.next()){var E=D=D.value,t=E.trigger;E=E.slot;if(t.triggerType===f){if(t instanceof dz||t instanceof eW||t instanceof WH){if(N&&t.breakDurationMs!==A)continue;if(!N&&t.breakDurationMs===A)continue;if(Q.has(E.slotId))continue}Y.push(D)}}Y.length>0&&zQ(M.C(),Y)}; Mke=function(M,f){f=(f.UR+1)*1E3;var A=void 0;M=g.V(M.Sx.values());for(var Q=M.next();!Q.done;Q=M.next()){var N=Q.value;Q=N.trigger;N=N.slot;Q instanceof dz&&Q.breakDurationMs<=f&&(!A||Q.breakDurationMs>A.trigger.breakDurationMs)&&(A={slot:N,trigger:Q})}return A}; fs0=function(M){M=M.adPlacementRenderer.config.adPlacementConfig;if(!M.prefetchModeConfig||!M.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;M=Number(M.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(M)||M<=0?0:Math.floor(Math.random()*M)}; AA6=function(M){M=M.adPlacementRenderer.config.adPlacementConfig;if(M.prefetchModeConfig&&M.prefetchModeConfig.cacheFetchRefreshDurationMs&&(M=Number(M.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(M)||M<=0)))return M}; NE=function(M){M.K=null;M.Sx.clear();M.Z&&M.Z.stop();M.j&&M.j.stop()}; YL=function(M){g.y.call(this);this.j=M;this.FW=!0;this.Sx=new Map;this.K=new Map;this.Z=new Map}; QD6=function(M,f){var A=[];if(f=M.K.get(f.layoutId)){f=g.V(f);for(var Q=f.next();!Q.done;Q=f.next())(Q=M.Z.get(Q.value.triggerId))&&A.push(Q)}return A}; IB=function(M){g.y.call(this);this.K=M;this.Sx=new Map}; Nfb=function(M,f){for(var A=[],Q=g.V(M.Sx.values()),N=Q.next();!N.done;N=Q.next())N=N.value,N.trigger instanceof Zz&&N.trigger.slotId===f&&A.push(N);A.length>=1&&zQ(M.K(),A)}; YPe=function(M,f){var A={slotId:Vb(f,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],W7:"surface",clientMetadata:new EP([])},Q=Object,N=Q.assign;f=MS(f,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",A.slotId);f={layoutId:f,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Kk:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"surface", clientMetadata:new EP([]),ex:PHt(!1,A.slotId,A.slotType,A.slotPhysicalPosition,A.W7,A.slotEntryTrigger,A.slotFulfillmentTriggers,A.slotExpirationTriggers,f,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return N.call(Q,{},M,{cZ:!0,slot:A,layout:f})}; ekb=function(M,f,A,Q){var N=M.kind;Q=Q?!1:!M.hideCueRangeMarker;switch(N){case "AD_PLACEMENT_KIND_START":return Q={Y7:new gP(-0x8000000000000,-0x8000000000000),Ef:Q},A!=null&&(Q.o8=new gP(-0x8000000000000,-0x8000000000000)),Q;case "AD_PLACEMENT_KIND_END":return Q={Y7:new gP(0x7ffffffffffff,0x8000000000000),Ef:Q},A!=null&&(Q.o8=new gP(Math.max(0,f-A),0x8000000000000)),Q;case "AD_PLACEMENT_KIND_MILLISECONDS":N=M.adTimeOffset;N.offsetStartMilliseconds||o1("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); N.offsetEndMilliseconds||o1("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");M=Number(N.offsetStartMilliseconds);N=Number(N.offsetEndMilliseconds);N===-1&&(N=f);if(Number.isNaN(M)||Number.isNaN(N)||M>N)return new K("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:M,offsetEndMs:N},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",N===f&&M-500<=N);Q={Y7:new gP(M,N),Ef:Q};if(A!=null){M=Math.max(0,M-A);if(M===N)return Q;Q.o8=new gP(M,N)}return Q; default:return new K("AdPlacementKind not supported in convertToRange.",{kind:N,adPlacementConfig:M})}}; jUN=function(M){var f=M.startSecs*1E3;return new gP(f,f+M.UR*1E3)}; IsD=function(M){if(!M||!M.adPlacements&&!M.adSlots)return!1;for(var f=g.V(M.adPlacements||[]),A=f.next();!A.done;A=f.next())if(A=A.value)if(A=A.adPlacementRenderer,A!=null&&(A.config&&A.config.adPlacementConfig&&A.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;M=g.V(M.adSlots||[]);for(f=M.next();!f.done;f=M.next()){var Q=A=void 0;if(((A=g.b(f.value,X1))==null?void 0:(Q=A.adSlotMetadata)==null?void 0:Q.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Tv=function(M){this.kO=M;this.Z=new Map;this.K=new Map;this.j=new Map}; Vb=function(M,f){if(D1(M.kO.get())){var A=M.Z.get(f)||0;A++;M.Z.set(f,A);return f+"_"+A}return g.RP(16)}; MS=function(M,f,A){if(D1(M.kO.get())){var Q=M.K.get(f)||0;Q++;M.K.set(f,Q);return A+"_"+f+"_"+Q}return g.RP(16)}; o$=function(M,f){if(D1(M.kO.get())){var A=M.j.get(f)||0;A++;M.j.set(f,A);return f+"_"+A}return g.RP(16)}; Tff=function(M){var f=[new VQ(M.lX),new m9(M.sP),new fw(M.adPlacementConfig),new Bm(M.videoLengthSeconds),new kj(M.zB)];M.instreamAdPlayerOverlayRenderer&&f.push(new Do(M.instreamAdPlayerOverlayRenderer));M.playerOverlayLayoutRenderer&&f.push(new E1(M.playerOverlayLayoutRenderer));M.dJ&&f.push(new Yj(M.dJ));return f}; DaD=function(M,f,A,Q,N,Y){M=A.inPlayerLayoutId?A.inPlayerLayoutId:MS(Y,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",M);var I,D,E=A.instreamAdPlayerOverlayRenderer?(I=A.instreamAdPlayerOverlayRenderer)==null?void 0:I.adLayoutLoggingData:(D=A.playerOverlayLayoutRenderer)==null?void 0:D.adLayoutLoggingData;I={layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",W7:f};return{layoutId:M,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Kk:new Map,layoutExitNormalTriggers:[new F2(function(t){return o$(Y, t)},A.lX)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:f,clientMetadata:Q,ex:N(I),adLayoutLoggingData:E}}; E_=function(M,f){var A=this;this.Z=M;this.kO=f;this.K=function(Q){return o$(A.Z.get(),Q)}}; x0f=function(M,f,A,Q,N,Y){A=new EP([new th(A),new fw(Q)]);f=MS(M.Z.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",f);Q={layoutId:f,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",W7:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Kk:new Map,layoutExitNormalTriggers:[new F2(function(I){return o$(M.Z.get(),I)},N)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:A,ex:Y(Q),adLayoutLoggingData:void 0}}; Dd=function(M,f,A,Q,N){var Y=Tff(Q);return DaD(f,A,Q,new EP(Y),N,M.Z.get())}; Ewz=function(M,f,A,Q,N){var Y=Tff(Q);Y.push(new l5(Q.FB));Y.push(new Mf(Q.s0));return DaD(f,A,Q,new EP(Y),N,M.Z.get())}; g5=function(M,f,A,Q,N,Y,I,D,E,t){f=MS(M.Z.get(),A,f);var v={layoutId:f,layoutType:A,W7:"core"},p=new Map;I&&p.set("impression",I);I=[new ON(M.K,N,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];t&&I.push(new $z(M.K,t,["normal"]));return{layoutId:f,layoutType:A,Kk:p,layoutExitNormalTriggers:I,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:new EP([Q,new fw(Y),new VQ(N)]),ex:D(v),adLayoutLoggingData:E}}; Bk=function(M,f,A,Q,N,Y,I,D,E){f=MS(M.Z.get(),A,f);var t={layoutId:f,layoutType:A,W7:"core"},v=[new ON(M.K,N,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];E&&v.push(new $z(M.K,E,["normal"]));return{layoutId:f,layoutType:A,Kk:new Map,layoutExitNormalTriggers:v,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:new EP([Q,new fw(Y),new VQ(N)]),ex:I(t),adLayoutLoggingData:D}}; U5=function(M,f,A){var Q=[];Q.push(new X2(M.K,A));f&&Q.push(f);return Q}; C_=function(M,f,A,Q,N,Y,I){var D={layoutId:f,layoutType:A,W7:"core"};return{layoutId:f,layoutType:A,Kk:new Map,layoutExitNormalTriggers:I,layoutExitSkipTriggers:[new zS(M.K,f)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:new EP([new JK(Q),new fw(N)]),ex:Y(D),adLayoutLoggingData:Q.adLayoutLoggingData}}; Nb=function(M,f,A,Q,N,Y,I,D){var E={layoutId:f,layoutType:Y,W7:"core"};return{layoutId:f,layoutType:Y,Kk:new Map,layoutExitNormalTriggers:[new F2(M.K,A)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:new EP([new fw(Q)].concat(g.c(I))),ex:N(E),adLayoutLoggingData:D}}; a$=function(M,f,A,Q){if(M.kO.get().Py(f.kind==="AD_PLACEMENT_KIND_START"))if(A===void 0)o1("Expected SSAP layout ID in renderer",void 0,void 0,{caller:Q});else return A}; t1N=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h){M=VY(M,f,A,N,Y,I,D,E,p,a$(M,A,Q.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),h);f=M.Fv;A=new aU(M.iz);Q=M.layoutExitSkipTriggers;t>0&&(f.push(A),f.push(new Nf(t)),Q=[]);f.push(new QQ(v));return{cP:{layoutId:M.layoutId,layoutType:M.layoutType,Kk:M.Kk,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:M.W7,clientMetadata:new EP(f),ex:M.ex,adLayoutLoggingData:M.adLayoutLoggingData}, pI:Q,H_:M.layoutExitMuteTriggers,BV:M.layoutExitUserInputSubmittedTriggers,x5:M.g2,wb:M.wb}}; S1e=function(M,f,A,Q,N,Y,I,D,E,t){f=VY(M,f,A,Q,Y,new Map,I,function(v){return D(v,E)},void 0,a$(M,A,N.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); M=new YG(M.K,f.iz);A=new aU(f.iz);t=new QQ(t);return{cP:{layoutId:f.layoutId,layoutType:f.layoutType,Kk:f.Kk,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:f.W7,clientMetadata:new EP([].concat(g.c(f.Fv),[A,t])),ex:f.ex,adLayoutLoggingData:f.adLayoutLoggingData},pI:f.layoutExitSkipTriggers,H_:f.layoutExitMuteTriggers,BV:[].concat(g.c(f.layoutExitUserInputSubmittedTriggers),[M]),x5:f.g2,wb:f.wb}}; VY=function(M,f,A,Q,N,Y,I,D,E,t,v){f=t!=null?t:MS(M.Z.get(),"LAYOUT_TYPE_MEDIA_BREAK",f);t={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",W7:"adapter"};D=D(f);var p=tA(D.clientMetadata,"metadata_type_fulfilled_layout");p||o1("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var h=p?p.layoutId:"";A=[new fw(A),new Wm(Q),new Jh(N)];p&&A.push(new qf(p.layoutType));v&&A.push(new zd(v));return{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", Kk:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new wz(M.K,h)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"adapter",Fv:A,ex:I(t),adLayoutLoggingData:E,wb:D,iz:h}}; g0T=function(M,f,A,Q,N,Y,I,D,E,t,v){M=tkU(M,f,"core",A,Q,N,Y,I,D,E,t,void 0,v);return{layoutId:M.layoutId,layoutType:M.layoutType,Kk:M.Kk,layoutExitNormalTriggers:M.layoutExitNormalTriggers,layoutExitSkipTriggers:M.layoutExitSkipTriggers,layoutExitMuteTriggers:M.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:M.layoutExitUserInputSubmittedTriggers,g2:M.g2,W7:M.W7,clientMetadata:new EP(M.QF),ex:M.ex,adLayoutLoggingData:M.adLayoutLoggingData}}; chb=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h){f=tkU(M,f,"adapter",A,Q,N,Y,I,D,E,v,p,h);Q=f.layoutExitSkipTriggers;N=f.QF;A.adPodSkipTarget&&A.adPodSkipTarget>0&&(N.push(t),N.push(new Nf(A.adPodSkipTarget)),Q=[]);N.push(new QQ(D.adPodIndex));A.isCritical&&(Q=[new $z(M.K,f.layoutId,["error"])].concat(g.c(Q)));return{cP:{layoutId:f.layoutId,layoutType:f.layoutType,Kk:f.Kk,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:f.W7,clientMetadata:new EP(N), ex:f.ex,adLayoutLoggingData:f.adLayoutLoggingData},pI:Q,H_:f.layoutExitMuteTriggers,BV:f.layoutExitUserInputSubmittedTriggers,x5:f.g2}}; tkU=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h){var S={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",W7:A};N=[new fw(N),new Ah(E),new IU(Q.externalVideoId),new Td(D),new Jh({impressionCommands:Q.impressionCommands,abandonCommands:Q.onAbandonCommands,completeCommands:Q.completeCommands,progressCommands:Q.adVideoProgressCommands}),new iN(Y),new s1({current:null}),new Bm(I)];(Y=Q.playerOverlay.instreamAdPlayerOverlayRenderer)&&N.push(new Do(Y));(I=Q.playerOverlay.playerOverlayLayoutRenderer)&&N.push(new E1(I)); p&&N.push(new xj(p));(p=Q.playerUnderlay)&&N.push(new th(p));D=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER");p=(p=Y?Y.elementId:I==null?void 0:I.layoutId)?p:MS(M.Z.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",D);N.push(new aU(p));N.push(new Hm(D));N.push(new zd(E.adPodIndex));Q.adNextParams&&N.push(new OZ(Q.adNextParams));Q.shrunkenPlayerBytesConfig&&N.push(new hh(Q.shrunkenPlayerBytesConfig));Q.clickthroughEndpoint&&N.push(new XL(Q.clickthroughEndpoint));Q.legacyInfoCardVastExtension&&N.push(new O1(Q.legacyInfoCardVastExtension)); Q.sodarExtensionData&&N.push(new Zo(Q.sodarExtensionData));v&&N.push(new bN(v));N.push(new wU(Bl(Q.pings)));E=is(Q.pings);if(h){a:{h=g.V(h);for(v=h.next();!v.done;v=h.next())if(v=v.value,v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(Y=g.b(v.fulfillmentContent.fulfilledLayout,jP))&&(Y=g.b(Y.renderingContent,Pr))&&Y.associatedPlayerBytesLayoutId===f){h=v;break a}h=void 0}h&&N.push(new vm(h))}return{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA",Kk:E,layoutExitNormalTriggers:[new Jz(M.K,f)],layoutExitSkipTriggers:Q.skipOffsetMilliseconds? [new wz(M.K,p)]:[],layoutExitMuteTriggers:[new wz(M.K,p)],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:A,QF:N,ex:t(S),adLayoutLoggingData:Q.adLayoutLoggingData}}; C5D=function(M,f,A,Q,N,Y,I,D,E){Q.every(function(v){return ID(v,[],["LAYOUT_TYPE_MEDIA"])})||o1("Unexpect subLayout type for DAI composite layout"); f=MS(M.Z.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",f);var t={layoutId:f,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",W7:"core"};return{layoutId:f,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Kk:new Map,layoutExitNormalTriggers:[new y6(M.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],g2:[],W7:"core",clientMetadata:new EP([new rU(A),new uN(D),new RU(Q),new fw(N),new FS(Y),new Pm({}),new Ma(E)]),ex:I(t)}}; pI9=function(M){return M!=null}; tV=function(M,f,A){var Q=this;this.Z=M;this.j=f;this.kO=A;this.K=function(N){return o$(Q.Z.get(),N)}}; zpb=function(M,f,A,Q,N,Y,I){if(!A.prefetchModeConfig)return new K("AdPlacementConfig for Live Prefetch is missing prefetch_config");A=A.prefetchModeConfig;Q*=1E3;var D=[];if(!A.breakLengthMs)return new K("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var E=g.V(A.breakLengthMs),t=E.next();!t.done;t=E.next())if(t=t.value,Number(t)>0){var v=Q+Number(A.startTimeOffsetMs),p=v+Number(A.cacheFetchSmearingDurationMs);t={Y7:new gP(p,p+Number(t)),Ef:!1,o8:new gP(Math.floor(v+Math.random()* Number(A.cacheFetchSmearingDurationMs)),p),cueProcessedMs:Q?Q:v};v=[];v.push(new Na({}));p=[];p.push(new GS(M.K));p.push(new QpN(M.K));I&&v.push(new Pm({}));D.push(Kd(M,f,N,t,Y,v,p))}return D}; Kd=function(M,f,A,Q,N,Y,I){Y=Y===void 0?[]:Y;var D=Vb(M.Z.get(),"SLOT_TYPE_AD_BREAK_REQUEST");I||(I=[],Q.o8&&Q.o8.start!==Q.Y7.start&&I.push(new kz(M.K,A,new gP(Q.o8.start,Q.Y7.start),!1)),I.push(new kz(M.K,A,new gP(Q.Y7.start,Q.Y7.end),Q.Ef)));Q={getAdBreakUrl:f.getAdBreakUrl,C_:Q.Y7.start,He:Q.Y7.end,cueProcessedMs:Q.cueProcessedMs};f=new Ae(M.K,D);Y=[new dU(Q)].concat(g.c(Y));return{slotId:D,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:I, slotExpirationTriggers:[new Kc(M.K,A),new MH(M.K,D),new fd(M.K,D)],W7:"core",clientMetadata:new EP(Y),adSlotLoggingData:N}}; pcD=function(M,f,A){var Q=[];A=g.V(A);for(var N=A.next();!N.done;N=A.next())Q.push(vwe(M,f,N.value));return Q}; vwe=function(M,f,A){return A.triggeringSlotId!=null&&A.triggeringSlotId===M?A.clone(f):A}; fC0=function(M,f,A,Q,N){return hOb(M,f,A,Q,N)}; vj0=function(M,f,A,Q){var N=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER");return hOb(M,N,f,A,Q)}; hOb=function(M,f,A,Q,N){var Y=new jW(M.K,A),I=[new l9(M.K,f)];M=[new MH(M.K,f),new Kc(M.K,Q)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(N({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:M},A))]),adSlotLoggingData:void 0}}; RpN=function(M,f,A,Q,N,Y){var I=Vb(M.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),D=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER"),E=MS(M.Z.get(),"LAYOUT_TYPE_SURVEY",D);Q=vh(M,f,A,Q);var t=[new l9(M.K,I)];A=[new MH(M.K,I),new Kc(M.K,A),new zS(M.K,E)];if(Q instanceof K)return Q;D=Y({slotId:I,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:t,slotExpirationTriggers:A},{slotId:D,layoutId:E});Y=D.iJx;D=D.fY;return[{slotId:I,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Hk(M,f,I,Q),slotFulfillmentTriggers:ma(M,f,I,t),slotExpirationTriggers:A,W7:"core",clientMetadata:new EP([new yQ(Y),new fE(s5(f)),new Qe({Ff:M.Ff(f)})]),adSlotLoggingData:N},D]}; s5=function(M){return M.kind==="AD_PLACEMENT_KIND_START"}; Bob=function(M,f,A,Q,N){N=N?N:Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER");A=new jW(M.K,A);var Y=[new l9(M.K,N)];M=[new Kc(M.K,f),new MH(M.K,N)];return{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:Y,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(Q({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:A,slotFulfillmentTriggers:Y,slotExpirationTriggers:M}))])}}; iZd=function(M,f,A,Q){var N=Vb(M.Z.get(),"SLOT_TYPE_PLAYER_UNDERLAY");A=new jW(M.K,A);var Y=[new l9(M.K,N)];M=[new Kc(M.K,f),new MH(M.K,N)];return{slotId:N,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:Y,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(Q({slotId:N,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:A,slotFulfillmentTriggers:Y,slotExpirationTriggers:M}))])}}; aCt=function(M,f,A,Q,N,Y,I){var D=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER"),E=MS(M.Z.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",D);Q=SPe(M,Q,Y,I,E);if(Q instanceof K)return Q;I=[new l9(M.K,D)];N=[new Kc(M.K,Y),new l9(M.K,N),new NH(M.K,N)];A=oD(A,{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:I,slotExpirationTriggers:N});M=M.j.get();Y={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",W7:"core"};f={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Kk:new Map,layoutExitNormalTriggers:[new vue(M.K,E,f.durationMs)],layoutExitSkipTriggers:[new hk9(M.K,E,f.durationMs)],g2:[new p79(M.K,E)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],W7:"core",clientMetadata:new EP([new XS(f)]),ex:A(Y)};return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:I,slotExpirationTriggers:N,clientMetadata:new EP([new yQ(f)])}}; Df6=function(M,f,A,Q,N,Y){f=vh(M,f,A,Q);if(f instanceof K)return f;var I=f instanceof kz?new Dx6(M.K,A,f.K):null;Q=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER");var D=[new l9(M.K,Q)];M=[new Kc(M.K,A),new MH(M.K,Q)];Y=Y({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:f,slotFulfillmentTriggers:D,slotExpirationTriggers:M},I);return Y instanceof Ds?new K(Y):{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:D,slotExpirationTriggers:M, W7:"core",clientMetadata:new EP([new yQ(Y)]),adSlotLoggingData:N}}; Ioz=function(M,f,A,Q){var N=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER"),Y=new u9(M.K,f),I=[new QB(M.K,N)];M=[new Kc(M.K,f),new MH(M.K,N)];return{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(Q({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:M}))]),adSlotLoggingData:A}}; Tob=function(M,f,A,Q){var N=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER");A=new jW(M.K,A);var Y=[new l9(M.K,N)],I=[new MH(M.K,N),new Kc(M.K,f)];Y={slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:A,slotFulfillmentTriggers:Y,slotExpirationTriggers:I};return{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:[new l9(M.K,N)],slotExpirationTriggers:[new Kc(M.K,f),new MH(M.K,N)],W7:"core",clientMetadata:new EP([new yQ(Q(Y))])}}; Nof=function(M,f,A,Q,N){var Y=Vb(M.Z.get(),"SLOT_TYPE_IN_PLAYER");A=new nc(M.K,Q,A);Q=[new l9(M.K,Y)];M=[new Kc(M.K,f)];return{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:Q,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(N({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:A,slotFulfillmentTriggers:Q,slotExpirationTriggers:M}))])}}; w7D=function(M,f,A,Q,N,Y){var I=Vb(M.Z.get(),f);return pW(M,I,f,new jW(M.K,Q),[new Kc(M.K,A),new MH(M.K,I),new $z(M.K,Q,["error"])],N,Y)}; GjU=function(M,f,A,Q,N,Y,I){var D=Vb(M.Z.get(),f);return pW(M,D,f,new $z(M.K,N,["normal"]),[new Kc(M.K,A),new MH(M.K,D),new $z(M.K,Q,["error"])],Y,I)}; Oec=function(M,f,A,Q,N){var Y=Vb(M.Z.get(),f);return pW(M,Y,f,new u9(M.K,A),[new Kc(M.K,A),new MH(M.K,Y)],Q,N)}; Aht=function(M,f,A,Q,N){A=A?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var Y=Vb(M.Z.get(),A);f=new u9(M.K,f);var I=[new l9(M.K,Y)];M=[new MH(M.K,Y)];return{slotId:Y,slotType:A,slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:I,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(N({slotId:Y,slotType:A,slotPhysicalPosition:1,W7:"core",slotEntryTrigger:f,slotFulfillmentTriggers:I,slotExpirationTriggers:M}))]),adSlotLoggingData:Q}}; ha0=function(M,f,A,Q){var N=Vb(M.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),Y=new b9(M.K),I=[new QB(M.K,N)];M=[new Kc(M.K,f)];return{slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(Q({slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:I,slotExpirationTriggers:M})),new Pm({})]),adSlotLoggingData:A}}; q1N=function(M,f){return rhe(M.kO.get())?new $z(M.K,f,["normal","error","skipped"]):new $z(M.K,f,["normal"])}; s_9=function(M,f,A,Q,N){f=q1N(M,f);M=qb(M,f,A);N=N({slotId:M.slotId,slotType:M.slotType,slotPhysicalPosition:M.slotPhysicalPosition,slotEntryTrigger:M.slotEntryTrigger,slotFulfillmentTriggers:M.slotFulfillmentTriggers,slotExpirationTriggers:M.slotExpirationTriggers,W7:M.W7});return N instanceof K?N:{vp:Object.assign({},M,{clientMetadata:new EP([new yQ(N.layout)]),adSlotLoggingData:Q}),o5:N.o5}}; cKe=function(M,f,A,Q,N,Y,I){A=Hwz(M,f,A,Q);if(A instanceof K)return A;I=I({slotId:A.slotId,slotType:A.slotType,slotPhysicalPosition:A.slotPhysicalPosition,slotEntryTrigger:A.slotEntryTrigger,slotFulfillmentTriggers:A.slotFulfillmentTriggers,slotExpirationTriggers:A.slotExpirationTriggers,W7:A.W7});if(I instanceof K)return I;Q=[new fE(s5(f)),new yQ(I.layout),new Qe({Ff:M.Ff(f)})];Y&&Q.push(new Kw({}));return{vp:{slotId:A.slotId,slotType:A.slotType,slotPhysicalPosition:A.slotPhysicalPosition,slotEntryTrigger:Hk(M, f,A.slotId,A.slotEntryTrigger),slotFulfillmentTriggers:ma(M,f,A.slotId,A.slotFulfillmentTriggers),slotExpirationTriggers:A.slotExpirationTriggers,W7:A.W7,clientMetadata:new EP(Q),adSlotLoggingData:N},o5:I.o5}}; Hk=function(M,f,A,Q){return M.kO.get().Py(s5(f))?new Zz(M.K,A):Q}; ma=function(M,f,A,Q){return M.kO.get().Py(s5(f))?[new QB(M.K,A)]:Q}; qb=function(M,f,A){var Q=Vb(M.Z.get(),"SLOT_TYPE_PLAYER_BYTES"),N=[new l9(M.K,Q)];M=[new MH(M.K,Q),new Kc(M.K,A)];return{slotId:Q,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:N,slotExpirationTriggers:M,W7:"core"}}; Hwz=function(M,f,A,Q){f=vh(M,f,A,Q);return f instanceof K?f:qb(M,f,A)}; NUN=function(M,f,A,Q,N,Y){var I=Vb(M.Z.get(),"SLOT_TYPE_FORECASTING");f=vh(M,f,A,Q);if(f instanceof K)return f;Q=[new l9(M.K,I)];M=[new MH(M.K,I),new Kc(M.K,A)];return{slotId:I,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:Q,slotExpirationTriggers:M,W7:"core",clientMetadata:new EP([new yQ(Y({slotId:I,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,W7:"core",slotEntryTrigger:f,slotFulfillmentTriggers:Q,slotExpirationTriggers:M}))]),adSlotLoggingData:N}}; LL9=function(M,f,A,Q,N){var Y=!f.hideCueRangeMarker;switch(f.kind){case "AD_PLACEMENT_KIND_START":return new u9(M.K,A);case "AD_PLACEMENT_KIND_MILLISECONDS":return M=ekb(f,Q),M instanceof K?M:N(M.Y7,Y);case "AD_PLACEMENT_KIND_END":return new PH(M.K,A,Y);default:return new K("Cannot construct entry trigger",{kind:f.kind})}}; SPe=function(M,f,A,Q,N){return LL9(M,f,A,Q,function(Y,I){return new T3T(M.K,A,Y,I,N)})}; vh=function(M,f,A,Q){return LL9(M,f,A,Q,function(N,Y){return new kz(M.K,A,N,Y)})}; pW=function(M,f,A,Q,N,Y,I){M=[new QB(M.K,f)];return{slotId:f,slotType:A,slotPhysicalPosition:1,slotEntryTrigger:Q,slotFulfillmentTriggers:M,slotExpirationTriggers:N,W7:"core",clientMetadata:new EP([new yQ(I({slotId:f,slotType:A,slotPhysicalPosition:1,W7:"core",slotEntryTrigger:Q,slotFulfillmentTriggers:M,slotExpirationTriggers:N}))]),adSlotLoggingData:Y}}; hV=function(M,f){g.y.call(this);this.kO=M;this.K=f;this.eventCount=0}; SD=function(M,f,A,Q){hV.call(this,M,f);this.kO=M;this.m$=A;this.context=Q}; LW=function(){this.K=new Map}; oB=function(M){this.Mj="pending";this.hO=[];this.dS=[];try{M(this.L4.bind(this),this.reject.bind(this))}catch(f){this.reject(f)}}; owt=function(){var M,f;return{TV:new oB(function(A,Q){M=A;f=Q}), resolve:M,reject:f}}; Va=function(M){return CW(M)?M:U_(M)?new oB(function(f,A){M.then(f,A)}):new oB(function(f){f(M)})}; aB=function(M){return new oB(function(f,A){A(M)})}; qE=function(M){try{return Va(M())}catch(f){return aB(f)}}; mA=function(M,f,A){var Q=owt(),N=Q.TV,Y=Q.resolve,I=Q.reject;M.hO.push(function(D){if(f)try{var E=f(D);Y(E)}catch(t){I(t)}else Y(D)}); M.dS.push(function(D){if(A)try{var E=A(D);Y(E)}catch(t){I(t)}else I(D)}); Hh(M);return N}; s_=function(M,f){return mA(M,void 0,f)}; C7e=function(M,f){mA(M,function(A){return mA(Va(f()),function(){return A})},function(A){return mA(Va(f()),function(){return aB(A)})})}; Hh=function(M){if(M.Mj==="fulfilled"){var f=M.hO;M.hO=[];M.dS=[];f=g.V(f);for(var A=f.next();!A.done;A=f.next())A=A.value,A(M.result)}else if(M.Mj==="rejected")for(f=M.dS,M.hO=[],M.dS=[],f=g.V(f),A=f.next();!A.done;A=f.next())A=A.value,A(M.error)}; ch=function(M){return function(){return UaT(M.apply(this,g.jN.apply(0,arguments)))}}; RB=function(M){return Va(M).wait()}; UaT=function(M){return qE(function(){return gp(M,M.next())})}; gp=function(M,f){return f.done?Va(f.value):s_(mA(f.value.TV,function(A){return gp(M,M.next(A))}),function(A){return gp(M,M.throw(A))})}; Bh=function(M,f){if(M.length===0)return Va(NaN);var A=owt(),Q=A.TV,N=A.resolve,Y=M.length;M=g.V(M.entries());var I=M.next();for(A={};!I.done;A={Fo:void 0},I=M.next()){var D=g.V(I.value);I=D.next().value;D=D.next().value;A.Fo=I;C7e(D,function(E){return function(){Q.Mj==="pending"&&(Vk0(f)&&f(E.Fo)&&Q.Mj==="pending"?N(E.Fo):(--Y,Y===0&&N(NaN)))}}(A))}return Q}; iU=function(M){return M.map(function(f){return Va(f)})}; Z1=function(M){var f=M.hours||0;var A=M.minutes||0,Q=M.seconds||0;f=Q+A*60+f*3600+(M.days||0)*86400+(M.weeks||0)*604800+(M.months||0)*2629800+(M.years||0)*31557600;f<=0?f={hours:0,minutes:0,seconds:0}:(M=f,f=Math.floor(M/3600),M%=3600,A=Math.floor(M/60),Q=Math.floor(M%60),f={hours:f,minutes:A,seconds:Q});var N=f.hours===void 0?0:f.hours;A=f.minutes===void 0?0:f.minutes;M=f.seconds===void 0?0:f.seconds;Q=N>0;f=[];if(Q){N=(new Intl.NumberFormat("en-u-nu-latn")).format(N);var Y=["fr"],I="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(" "); N="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(xL)?N.replace(",","\u00a0"):Y.includes(xL)?N.replace(",","\u202f"):I.includes(xL)?N.replace(",","."):N;f.push(N)}Q=Q===void 0?!1:Q;A=(["af","be","lt"].includes(xL)||Q)&&A<10?asX().format(A):(new Intl.NumberFormat("en-u-nu-latn")).format(A);f.push(A);A=asX().format(M);f.push(A);A=":";"da fi id si sr sr-Latn".split(" ").includes(xL)&&(A=".");return f.join(A)}; asX=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; qPc=function(M,f){var A,Q;M=((A=M.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Q=A.videoAuthorizationToken)==null?void 0:Q.credentialTransferTokens)||[];for(A=0;Af;M=A}else M=!1;return M}; g.XU=function(M,f){return M.qY+"timedtext_video?ref=player&v="+f.videoId}; g.FLN=function(M){var f=this;this.videoData=M;M={};this.K=(M.c1a=function(){var A=[];if(g.Wh.isInitialized()){var Q="";f.videoData&&f.videoData.Ph&&(Q=f.videoData.Ph+("&r1b="+f.videoData.clientPlaybackNonce));var N={};Q=(N.atr_challenge=Q,N);Xx("bg_v",void 0,"player_att");(Q=$aD(Q))?(Xx("bg_s",void 0,"player_att"),A.push("r1a="+Q)):(Xx("bg_e",void 0,"player_att"),A.push("r1c=2"))}else Xx("bg_e",void 0,"player_att"),window.trayride||window.botguard?A.push("r1c=1"):A.push("r1c=4");A.push("r1d="+g.Wh.getState()); return A.join("&")},M.c6a=function(A){return"r6a="+(Number(A.c)^pe())},M.c6b=function(A){return"r6b="+(Number(A.c)^Number(g.GR("CATSTAT",0)))},M); this.videoData&&this.videoData.Ph?this.Pz=Yy(this.videoData.Ph):this.Pz={}}; g.yAU=function(M){if(M.videoData&&M.videoData.Ph){for(var f=[M.videoData.Ph],A=g.V(Object.keys(M.K)),Q=A.next();!Q.done;Q=A.next())Q=Q.value,M.Pz[Q]&&M.K[Q]&&(Q=M.K[Q](M.Pz))&&f.push(Q);return f.join("&")}return null}; g.JV=function(M,f){jD9(M,{ix_:g.CE(f.experiments,"bg_vm_reinit_threshold"),cspNonce:f.cspNonce,qY:f.qY||""})}; dab=function(){var M=XMLHttpRequest.prototype.fetch;return!!M&&M.length===3}; eOD=function(M){M=M[T[32]](T[1]);KW[T[77]](M,58);KW[T[41]](M,37);KW[T[77]](M,44);KW[T[45]](M,3);KW[T[41]](M,9);KW[T[45]](M,2);return M[T[22]](T[1])}; kQ0=function(M){bEU=2592E3*(M||1)}; Gv=function(M){M=M===void 0?bEU:M;if(M>0&&!(lIz()>(0,g.W)()-M*1E3))return 0;M=g.$J("yt-player-quality");if(typeof M==="string"){if(M=g.bT[M],M>0)return M}else if(M instanceof Object)return M.quality;return 0}; wp=function(){var M=g.$J("yt-player-proxima-pref");return M==null?null:M}; WLD=function(){var M=g.$J("yt-player-quality");if(M instanceof Object&&M.quality&&M.previousQuality){if(M.quality>M.previousQuality)return 1;if(M.quality0&&f[0]?M.getAutoplayPolicy(f[0]):M.getAutoplayPolicy("mediaelement");if(lsb[A])return lsb[A]}}catch(Q){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Ym=function(M){return M.Uw||M.rL||M.mutedAutoplay}; MJc=function(M,f){return Ym(M)?f!==1&&f!==2&&f!==0?"AUTOPLAY_STATUS_UNAVAILABLE":M.Nx?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; fb0=function(M,f,A){var Q=f.T();M.thirdParty||(M.thirdParty={});Q.ancestorOrigins&&(M.thirdParty.embeddedPlayerContext=Object.assign({},M.thirdParty.embeddedPlayerContext,{ancestorOrigins:Q.ancestorOrigins}));Q.V("embeds_enable_autoplay_and_visibility_signals")&&(Q.d5!=null&&(M.thirdParty.embeddedPlayerContext=Object.assign({},M.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(Q.d5)})),Q.E6&&(M.thirdParty.embeddedPlayerContext=Object.assign({},M.thirdParty.embeddedPlayerContext,{visibilityFractionSource:Q.E6})), M.thirdParty.embeddedPlayerContext=Object.assign({},M.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:Nj(),autoplayIntended:Ym(f),autoplayStatus:MJc(f,A)}))}; NMN=function(M,f){w3(M,2,f.Sh,Ir,3);w3(M,3,f.dN,Af6,3);Ke(M,4,f.onesieUstreamerConfig);Ke(M,9,f.yb);w3(M,10,f.Ty,TN,3);w3(M,15,f.reloadPlaybackParams,QCc,3)}; Ibb=function(M,f){w3(M,1,f.formatId,DQ,3);Xb(M,2,f.startTimeMs);Xb(M,3,f.durationMs);Xb(M,4,f.F7);Xb(M,5,f.iM);w3(M,9,f.eBJ,YWf,3);w3(M,11,f.pek,EU,1);w3(M,12,f.ac,EU,1)}; TMf=function(M,f){Gj(M,1,f.videoId);Xb(M,2,f.lmt)}; YWf=function(M,f){if(f.fE)for(var A=0;A>31));Xb(M,16,f.Ju);Xb(M,17,f.detailedNetworkType);Xb(M,18,f.Wj);Xb(M,19,f.Ru);Xb(M,21,f.CM8);Xb(M,23,f.Pj);Xb(M,28,f.dG);Xb(M,29,f.qwJ);Xb(M,34,f.visibility);A=f.playbackRate;if(A!==void 0){var Q=new ArrayBuffer(4);(new Float32Array(Q))[0]=A;A=(new Uint32Array(Q))[0];if(A!==void 0)for(Ou(M,285),W7(M,4),Q=0;Q<4;)M.view.setUint8(M.pos,A&255),A>>=8,M.pos+=1,Q+=1}Xb(M,36,f.zi); w3(M,38,f.mediaCapabilities,tJ6,3);Xb(M,39,f.Nfi);Xb(M,40,f.Cn);Xb(M,44,f.playerState);Jy(M,46,f.ix);Xb(M,48,f.Q9);Xb(M,50,f.s1);Xb(M,51,f.k5);Xb(M,54,f.qT);if(f.b3)for(A=0;A>31));Gj(M,2,f.message)}; VJc=function(M,f){Xb(M,1,f.clientState);w3(M,2,f.dzi,Csf,1)}; oDz=function(M,f){Ke(M,1,f.Jh_);w3(M,2,f.M$7,UST,3);w3(M,3,f.coldStartInfo,VJc,3)}; Lcb=function(M,f){Xb(M,1,f.type);Ke(M,2,f.value)}; SWT=function(M,f){Gj(M,1,f.hl);Gj(M,12,f.deviceMake);Gj(M,13,f.deviceModel);Xb(M,16,f.clientName);Gj(M,17,f.clientVersion);Gj(M,18,f.osName);Gj(M,19,f.osVersion)}; ab6=function(M,f){Gj(M,1,f.name);Gj(M,2,f.value)}; qWN=function(M,f){Gj(M,1,f.url);if(f.lc)for(var A=0;A1&&(this.N=M[1]==="2")}; Ly=function(M,f,A,Q,N){this.Z=M;this.K=f;this.j=A;this.reason=Q;this.DB=N===void 0?0:N}; g.or=function(M,f,A,Q){return new Ly(g.bT[M]||0,g.bT[f]||0,A,Q)}; UU=function(M){if(Cy&&M.DB)return!1;var f=g.bT.auto;return M.Z===f&&M.K===f}; ar=function(M){return Vc[M.K||M.Z]||"auto"}; IZz=function(M,f){f=g.bT[f];return M.Z<=f&&(!M.K||M.K>=f)}; qj=function(M){return"["+M.Z+"-"+M.K+", override: "+(M.j+", reason: "+M.reason+"]")}; Hd=function(M,f,A){this.videoInfos=M;this.K=f;this.audioTracks=[];if(this.K){M=new Set;A==null||A({ainfolen:this.K.length});f=g.V(this.K);for(var Q=f.next();!Q.done;Q=f.next())if(Q=Q.value,!Q.qV||M.has(Q.qV.id)){var N=void 0,Y=void 0,I=void 0;(I=A)==null||I({atkerr:!!Q.qV,itag:Q.itag,xtag:Q.K,lang:((N=Q.qV)==null?void 0:N.name)||"",langid:((Y=Q.qV)==null?void 0:Y.id)||""})}else N=new g.S2(Q.id,Q.qV),M.add(Q.qV.id),this.audioTracks.push(N);A==null||A({atklen:this.audioTracks.length})}}; mw=function(){g.y.apply(this,arguments);this.K=null}; tgT=function(M,f,A,Q,N,Y,I){if(M.K)return M.K;var D={},E=new Set,t={};if(sU(Q)){for(var v in Q.K)Q.K.hasOwnProperty(v)&&(M=Q.K[v],t[M.info.LJ]=[M.info]);return t}v=Twc(f,Q,D);Y&&N({aftsrt:cd(v)});for(var p={},h=g.V(Object.keys(v)),S=h.next();!S.done;S=h.next()){S=S.value;for(var L=g.V(v[S]),a=L.next();!a.done;a=L.next()){a=a.value;var q=a.itag,m=void 0,R=S+"_"+(((m=a.video)==null?void 0:m.fps)||0);p.hasOwnProperty(R)?p[R]===!0?t[S].push(a):D[q]=p[R]:(m=Rr(f,a,A,Q.isLive,E),m!==!0?(I.add(S),D[q]=m, m==="disablevp9hfr"&&(p[R]="disablevp9hfr")):(t[S]=t[S]||[],t[S].push(a),p[R]=!0))}}Y&&N({bfflt:cd(t)});for(var u in t)t.hasOwnProperty(u)&&(Q=u,t[Q]&&t[Q][0].Tj()&&(t[Q]=t[Q],t[Q]=Dd6(f,t[Q],D),t[Q]=E8z(t[Q],D)));Y&&Object.keys(D).length>0&&N({rjr:x8(D)});f=g.V(E.values());for(Q=f.next();!Q.done;Q=f.next())(Q=A.C.get(Q.value))&&--Q.pc;Y&&N({aftflt:cd(t)});M.K=g.b6(t,function(z){return!!z.length}); return M.K}; p$N=function(M,f,A,Q,N,Y,I,D){D=D===void 0?!1:D;if(f.y7&&I&&I.length>1&&!(f.nK>0||f.X)){for(var E=f.Z||!!N,t=E&&f.wq?Y:void 0,v=Twc(f,Q),p=[],h=[],S={},L=0;L0&&h&&N&&(v=[I,A],q=N.concat(h).filter(function(m){return m})); if(q.length&&!f.k9){io(q,v);if(E){E=[];f=g.V(q);for(Q=f.next();!Q.done;Q=f.next())E.push(Q.value.itag);Y({hbdfmt:E.join(".")})}return n0(new Hd(q,M,t))}q=HUb(f);q=g.oR(q,D);if(!q){if(p[I])return Y=p[I],io(Y),n0(new Hd(Y,M,t));E&&Y({novideo:1});return Pa()}f.xp&&(q==="1"||q==="1h")&&p[A]&&(I=xm(p[q]),v=xm(p[A]),v>I?q=A:v===I&&md0(p[A])&&(q=A));q==="9"&&p.h&&xm(p.h)>xm(p["9"])&&(q="h");f.xO&&Q.isLive&&q==="("&&p.H&&xm(p["("])<1440&&(q="H");E&&Y({vfmly:ZQ(q)});f=p[q];if(!f.length)return E&&Y({novfmly:ZQ(q)}), Pa();io(f);return n0(new Hd(f,M,t))}; SiT=function(M,f){var A=!(!M.m&&!M.M),Q=!(!M.mac3&&!M.MAC3),N=!(!M.meac3&&!M.MEAC3);M=!(!M.i&&!M.I);f.Uq=M;return A||Q||N||M}; md0=function(M){M=g.V(M);for(var f=M.next();!f.done;f=M.next())if(f=f.value,f.itag&&s8D.has(f.itag))return!0;return!1}; o8d=function(M){M=g.V(M);for(var f=M.next();!f.done;f=M.next())if(f.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; ZQ=function(M){switch(M){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return M}}; cd=function(M){var f=[],A;for(A in M)if(M.hasOwnProperty(A)){var Q=A;f.push(ZQ(Q));Q=g.V(M[Q]);for(var N=Q.next();!N.done;N=Q.next())f.push(N.value.itag)}return f.join(".")}; hx0=function(M,f,A,Q,N,Y){var I={},D={};g.ew(f,function(E,t){E=E.filter(function(v){var p=v.itag;if(!v.e$)return D[p]="noenc",!1;if(Y.Z9&&v.LJ==="(h"&&Y.b8)return D[p]="lichdr",!1;if(!M.N&&v.LJ==="1e")return D[p]="noav1enc",!1;if(v.LJ==="("||v.LJ==="(h"){if(M.j&&A&&A.flavor==="widevine"){var h=v.mimeType+"; experimental=allowed";(h=!!v.e$[A.flavor]&&!!A.K[h])||(D[p]=v.e$[A.flavor]?"unspt":"noflv");return h}if(!rY(M,uo.CRYPTOBLOCKFORMAT)&&!M.z0||M.jk)return D[p]=M.jk?"disvp":"vpsub",!1}return A&&v.e$[A.flavor]&& A.K[v.mimeType]?!0:(D[p]=A?v.e$[A.flavor]?"unspt":"noflv":"nosys",!1)}); E.length&&(I[t]=E)}); Q&&Object.entries(D).length&&N({rjr:x8(D)});return I}; E8z=function(M,f){var A=Xc(M,function(Q,N){return N.video.fps>32?Math.min(Q,N.video.width):Q},Infinity); A32||Q.video.widthM.G)return"max"+M.G;if(M.w_&&f.LJ==="h"&&f.video&&f.video.qualityOrdinal>1080)return"blkhigh264";if(f.LJ==="(h"&&!A.W)return"enchdr";if((Q===void 0?0:Q)&&AE(f)&&!M.g_)return"blk51live";if((f.LJ==="MAC3"||f.LJ==="mac3")&&!M.C)return"blkac3";if((f.LJ==="MEAC3"||f.LJ==="meac3")&&!M.N)return"blkeac3";if(f.LJ==="M"||f.LJ==="m")return"blkaac51"; if((f.LJ==="so"||f.LJ==="sa")&&!M.Er)return"blkamb";if(!M.Z9&&R_e(f)&&(!A.N||f.LJ!=="1e"))return"cbc";if(!A.N&&R_e(f)&&f.LJ==="1e")return"cbcav1";if((f.LJ==="i"||f.LJ==="I")&&!M.zt)return"blkiamf";var Y;if(M.Qw&&((Y=f.audio)==null?void 0:Y.Z)===!0)return"blkvbcabr";var I,D;if(M.ox&&(f.LJ==="1"||f.LJ==="1h"||A.N&&f.LJ==="1e")&&((I=f.video)==null?0:I.qualityOrdinal)&&((D=f.video)==null?void 0:D.qualityOrdinal)>M.ox)return"av1cap";if((Q=A.C.get(f.LJ))&&Q.pc>0)return N.add(f.LJ),"byerr";var E;if((E=f.video)== null?0:E.fps>32){if(!A.P7&&!rY(A,uo.FRAMERATE))return"capHfr";if(M.Ji&&f.video.qualityOrdinal>=4320)return"blk8khfr";if(Gk(f)&&M.Fk&&f.e$&&f.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(M.DB&&f.DB>M.DB)return"ratecap";M=ckt(A,f);return M!==!0?M:!0}; io=function(M,f){f=f===void 0?[]:f;g.PK(M,function(A,Q){var N=Q.DB-A.DB;if(!A.Tj()||!Q.Tj())return N;var Y=Q.video.height*Q.video.width-A.video.height*A.video.width;!Y&&f&&f.length>0&&(A=f.indexOf(A.LJ)+1,Q=f.indexOf(Q.LJ)+1,Y=A===0||Q===0?Q||-1:A-Q);Y||(Y=N);return Y})}; g.zN=function(M,f){this[T[55]]=M;this[T[30]]=f===void 0?!1:f;this[T[35]]=this[T[12]]=this[T[5]]=T[1];this[T[8]]={};this[T[13]]=T[1]}; ny=function(M){Pd(M);return M[T[35]]}; j2=function(M){return M[T[55]]?M[T[55]][T[3]](T[10]):M[T[5]]===T[10]}; Rxt=function(M){Pd(M);return g.WK(M[T[8]],function(f){return f!==null})}; $m=function(M){Pd(M);var f=decodeURIComponent(M[T[11]](T[54])||T[1])[T[32]](T[25]);return M[T[12]]===T[50]&&f[T[4]]>1&&!!f[1]}; F_=function(M,f){f=f===void 0?!1:f;Pd(M);if(M[T[12]]!==T[50]){var A=M[T[71]]();A[T[43]](T[49],T[38]);return A}var Q=M[T[16]]();A=new g.Im(Q);var N=M[T[11]](T[59]),Y=decodeURIComponent(M[T[11]](T[54])||T[1])[T[32]](T[25]);if(N&&Y&&Y[T[4]]>1&&Y[1])return Q=A.K,M=Q[T[90]](/^[^.]*/,T[1]),g.DI(A,(Q[T[29]](T[33])===0?T[33]:T[75])+N+T[21]+Y[1]+M),A=new g.zN(A[T[6]]()),A[T[43]](T[85],T[38]),A;if(f)return A=M[T[71]](),A[T[43]](T[85],T[38]),A;N=A.K[T[86]](T[36]);A.K[T[86]](T[67])?(g.DI(A,T[64]),Q=A[T[6]]()): A.K[T[86]](T[80])?(g.DI(A,T[91]),Q=A[T[6]]()):(A=ood(Q),Qb(A)&&(Q=A));A=new g.zN(Q);A[T[43]](T[53],T[38]);N&&A[T[43]](T[89],T[14]);return A}; Pd=function(M){if(M[T[55]]){if(!(Qb(M[T[55]])||M[T[55]][T[3]](T[10])||M[T[55]][T[3]](T[20])||M[T[55]][T[3]](T[82])))throw new g.GX(T[48],M[T[55]]);var f=g.Ll(M[T[55]]);M[T[5]]=f.N;M[T[35]]=f.K+(f.j!=null?T[42]+f.j:T[1]);var A=f.Z;if(A[T[3]](T[50]))M[T[12]]=T[50],A=A[T[23]](14);else if(A[T[3]](T[56]))M[T[12]]=T[56],A=A[T[23]](13);else if(A[T[3]](T[83])){var Q=A[T[29]](T[70],12),N=A[T[29]](T[70],Q+1);Q>0&&N>0?(M[T[12]]=A[T[23]](0,N),A=A[T[23]](N+1)):(M[T[12]]=A,A=T[1])}else M[T[12]]=A,A=T[1];Q=M[T[8]]; M[T[8]]=g8N(A);Object[T[79]](M[T[8]],Bwf(f.C.toString()));Object[T[79]](M[T[8]],Q);M[T[8]][T[31]]===T[66]&&(delete M[T[8]][T[31]],M[T[12]]+=T[15]);M[T[55]]=T[1];M[T[13]]=T[1];M[T[30]]&&(Pd(M),f=M[T[8]][T[27]]||null)&&(f=iUb[0](f),M[T[43]](T[27],f))}}; xdT=function(M){Pd(M);var f=M[T[5]]+(M[T[5]]?T[84]:T[18])+M[T[35]]+M[T[12]];if(Rxt(M)){var A=[];g.ew(M[T[8]],function(Q,N){Q!==null&&A[T[9]](N+T[24]+Q)}); f+=T[87]+A[T[22]](T[47])}return f}; g8N=function(M){M=M[T[32]](T[70]);var f=0;M[0]||f++;for(var A={};f0?ZUD(f,Q[T[23]](0,N),Q[T[23]](N+1)):Q&&(f[Q]=T[1])}return f}; ZUD=function(M,f,A){if(f===T[88]){var Q;(Q=A[T[29]](T[24]))>=0?(f=T[74]+A[T[23]](0,Q),A=A[T[23]](Q+1)):(Q=A[T[29]](T[7]))>=0&&(f=T[74]+A[T[23]](0,Q),A=A[T[23]](Q+3))}M[f]=A}; yc=function(M){var f=g.b(M,rkt)||M[T[73]];M={Jx:!1,JU:T[1],fA:T[1],s:T[1]};if(!f)return M;f=Yy(f);M[T[69]]=!0;M[T[46]]=f[T[13]];M[T[68]]=f[T[76]];M[T[51]]=f[T[51]];return M}; dY=function(M,f,A,Q,N,Y,I,D,E){this.Ur=M;this.startTime=f;this.duration=A;this.ingestionTime=Q;this.sourceURL=N;this.uU=E;this.endTime=f+A;this.K=I||0;this.range=Y||null;this.pending=D||!1;this.uU=E||null}; g.e2=function(){this.segments=[];this.K=null;this.Z=!0;this.j=""}; uRD=function(M,f){if(f>M.YC())M.segments=[];else{var A=Lm(M.segments,function(Q){return Q.Ur>=f},M); A>0&&M.segments.splice(0,A)}}; bo=function(M,f,A,Q,N){N=N===void 0?!1:N;this.data=M;this.offset=f;this.size=A;this.type=Q;this.K=(this.Z=N)?0:8;this.dataOffset=this.offset+this.K}; km=function(M){var f=M.data.getUint8(M.offset+M.K);M.K+=1;return f}; Wd=function(M){var f=M.data.getUint16(M.offset+M.K);M.K+=2;return f}; OU=function(M){var f=M.data.getInt32(M.offset+M.K);M.K+=4;return f}; X_=function(M){var f=M.data.getUint32(M.offset+M.K);M.K+=4;return f}; Jr=function(M){var f=M.data;var A=M.offset+M.K;f=f.getUint32(A)*4294967296+f.getUint32(A+4);M.K+=8;return f}; Ky=function(M,f){f=f===void 0?NaN:f;if(isNaN(f))var A=M.size;else for(A=M.K;A1?Math.ceil(N*f):Math.floor(N*f))}M.skip(1);A=km(M)<<16|Wd(M);if(A&256){Q=A&1;N=A&4;var Y=A&512,I=A&1024,D=A&2048;A=X_(M);Q&&M.skip(4);N&&M.skip(4);Q=(Y?4:0)+(I?4:0)+(D?4:0);for(N=0;N1?Math.ceil(I*f):Math.floor(I*f)),M.skip(Q)}}}; YO=function(M){M=new DataView(M.buffer,M.byteOffset,M.byteLength);return(M=g.QM(M,0,1836476516))?g.Ne(M):NaN}; kk0=function(M){var f=g.QM(M,0,1937011556);if(!f)return null;f=IF(M,f.dataOffset+8,1635148593)||IF(M,f.dataOffset+8,1635135537);if(!f)return null;var A=IF(M,f.dataOffset+78,1936995172),Q=IF(M,f.dataOffset+78,1937126244);if(!Q)return null;f=null;if(A)switch(A.skip(4),km(A)){default:f=0;break;case 1:f=2;break;case 2:f=1;break;case 3:f=255}var N=A=null,Y=null;if(Q=IF(M,Q.dataOffset,1886547818)){var I=IF(M,Q.dataOffset,1886546020),D=IF(M,Q.dataOffset,2037673328);if(!D&&(D=IF(M,Q.dataOffset,1836279920), !D))return null;I&&(I.skip(4),A=OU(I)/65536,Y=OU(I)/65536,N=OU(I)/65536);M=zx6(D);M=new DataView(M.buffer,M.byteOffset+8,M.byteLength-8);return new exd(f,A,Y,N,M)}return null}; IF=function(M,f,A){for(;T2(M,f);){var Q=DG(M,f);if(Q.type===A)return Q;f+=Q.size}return null}; g.QM=function(M,f,A){for(;T2(M,f);){var Q=DG(M,f);if(Q.type===A)return Q;f=Ez(Q.type)?f+8:f+Q.size}return null}; g.tx=function(M){if(M.data.getUint8(M.dataOffset)){var f=M.data;M=M.dataOffset+4;f=f.getUint32(M)*4294967296+f.getUint32(M+4)}else f=M.data.getUint32(M.dataOffset+4);return f}; DG=function(M,f){var A=M.getUint32(f),Q=M.getUint32(f+4);return new bo(M,f,A,Q)}; g.Ne=function(M){var f=M.data.getUint8(M.dataOffset)?20:12;return M.data.getUint32(M.dataOffset+f)}; Wzz=function(M){M=new bo(M.data,M.offset,M.size,M.type,M.Z);var f=km(M);M.skip(7);var A=X_(M);if(f===0){f=X_(M);var Q=X_(M)}else f=Jr(M),Q=Jr(M);M.skip(2);for(var N=Wd(M),Y=[],I=[],D=0;D122)return!1}return!0}; Ez=function(M){return M===1701082227||M===1836019558||M===1836019574||M===1835297121||M===1835626086||M===1937007212||M===1953653094||M===1953653099||M===1836475768}; OUT=function(M){M.skip(4);return{WGi:Ky(M,0),value:Ky(M,0),timescale:X_(M),y5J:X_(M),s_O:X_(M),id:X_(M),P4:Ky(M),offset:M.offset}}; g.X$9=function(M){var f=IF(M,0,1701671783);if(!f)return null;var A=OUT(f),Q=A.WGi;A=Ax(A.P4);if(M=IF(M,f.offset+f.size,1701671783))if(M=OUT(M),M=Ax(M.P4),A&&M){f=g.V(Object.keys(M));for(var N=f.next();!N.done;N=f.next())N=N.value,A[N]=M[N]}return A?new Me(A,Q):null}; v4=function(M,f){for(var A=IF(M,0,f);A;){var Q=A;Q.type=1936419184;Q.data.setUint32(Q.offset+4,1936419184);A=IF(M,A.offset+A.size,f)}}; g.p6=function(M,f){for(var A=0,Q=[];T2(M,A);){var N=DG(M,A);N.type===f&&Q.push(N);A=Ez(N.type)?A+8:A+N.size}return Q}; Jkf=function(M,f){var A=g.QM(M,0,1937011556),Q=g.QM(M,0,1953654136);if(!A||!Q||M.getUint32(A.offset+12)>=2)return null;var N=new DataView(f.buffer,f.byteOffset,f.length),Y=g.QM(N,0,1937011556);if(!Y)return null;f=N.getUint32(Y.dataOffset+8);Q=N.getUint32(Y.dataOffset+12);if(Q!==1701733217&&Q!==1701733238)return null;Q=new PTd(M.byteLength+f);GN(Q,M,0,A.offset+12);Q.data.setInt32(Q.offset,2);Q.offset+=4;GN(Q,M,A.offset+16,A.size-16);GN(Q,N,N.byteOffset+Y.dataOffset+8,f);GN(Q,M,A.offset+A.size,M.byteLength- (A.offset+A.size));A=g.V([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(N=A.next();!N.done;N=A.next())N=g.F(g.QM(M,0,N.value)),Q.data.setUint32(N.offset,N.size+f);M=g.QM(Q.data,0,1953654136);Q.data.setUint32(M.offset+16,2);return Q.data}; Kzf=function(M){var f=g.QM(M,0,1937011556);if(!f)return null;var A=M.getUint32(f.dataOffset+12);if(A!==1701733217&&A!==1701733238)return null;f=IF(M,f.offset+24+(A===1701733217?28:78),1936289382);if(!f)return null;A=IF(M,f.offset+8,1935894637);if(!A||M.getUint32(A.offset+12)!==1667392371)return null;f=IF(M,f.offset+8,1935894633);if(!f)return null;f=IF(M,f.offset+8,1952804451);if(!f)return null;A=new Uint8Array(16);for(var Q=0;Q<16;Q++)A[Q]=M.getInt8(f.offset+16+Q);return A}; hx=function(M,f){this.K=M;this.pos=0;this.start=f||0}; S$=function(M){return M.pos>=M.K.byteLength}; VM=function(M,f,A){var Q=new hx(A);if(!L6(Q,M))return!1;Q=oF(Q);if(!C6(Q,f))return!1;for(M=0;f;)f>>>=8,M++;f=Q.start+Q.pos;var N=Uz(Q,!0);Q=M+(Q.start+Q.pos-f)+N;Q=Q>9?Gkc(Q-9,8):Gkc(Q-2,1);M=f-M;A.setUint8(M++,236);for(f=0;fA;N++)A=A*256+sz(M),Q*=128;return f?A-Q:A}; qe=function(M){var f=Uz(M,!0);M.pos+=f}; Mrc=function(M){if(!C6(M,440786851,!0))return null;var f=M.pos;Uz(M,!1);var A=Uz(M,!0)+M.pos-f;M.pos=f+A;if(!C6(M,408125543,!1))return null;Uz(M,!0);if(!C6(M,357149030,!0))return null;var Q=M.pos;Uz(M,!1);var N=Uz(M,!0)+M.pos-Q;M.pos=Q+N;if(!C6(M,374648427,!0))return null;var Y=M.pos;Uz(M,!1);var I=Uz(M,!0)+M.pos-Y,D=new Uint8Array(A+12+N+I),E=new DataView(D.buffer);D.set(new Uint8Array(M.K.buffer,M.K.byteOffset+f,A));E.setUint32(A,408125543);E.setUint32(A+4,33554431);E.setUint32(A+8,4294967295); D.set(new Uint8Array(M.K.buffer,M.K.byteOffset+Q,N),A+12);D.set(new Uint8Array(M.K.buffer,M.K.byteOffset+Y,I),A+12+N);return D}; c4=function(M){var f=M.pos;M.pos=0;var A=1E6;L6(M,[408125543,357149030,2807729])&&(A=aF(M));M.pos=f;return A}; fHz=function(M,f){var A=M.pos;M.pos=0;if(M.K.getUint8(M.pos)!==160&&!RF(M)||!C6(M,160))return M.pos=A,NaN;Uz(M,!0);var Q=M.pos;if(!C6(M,161))return M.pos=A,NaN;Uz(M,!0);sz(M);var N=sz(M)<<8|sz(M);M.pos=Q;if(!C6(M,155))return M.pos=A,NaN;Q=aF(M);M.pos=A;return(N+Q)*f/1E9}; RF=function(M){if(!AEc(M)||!C6(M,524531317))return!1;Uz(M,!0);return!0}; AEc=function(M){if(M.FP()){if(!C6(M,408125543))return!1;Uz(M,!0)}return!0}; L6=function(M,f){for(var A=0;A0){var Q=Bwf(f.substring(A+1));g.ew(Q,function(N,Y){this.set(Y,N)},M); f=f.substring(0,A)}f=g8N(f);g.ew(f,function(N,Y){this.set(Y,N)},M)}; NhU=function(M){return M.FV}; Yse=function(M){var f=M.FV.mf(),A=[];g.ew(M.K,function(N,Y){A.push(Y+"="+N)}); if(!A.length)return f;var Q=A.join("&");M=Rxt(M.FV)?"&":"?";return f+M+Q}; B4=function(M,f){var A=new g.zN(f);(f=A.get("req_id"))&&M.set("req_id",f);g.ew(M.K,function(Q,N){A["set"](N,null)}); return A}; IHb=function(){this.C=this.j=this.K=this.timedOut=this.started=this.N=this.Z=0}; iA=function(M){M.N=(0,g.W)();M.started=0;M.timedOut=0;M.K=0}; xO=function(M,f){var A=M.started+M.K*4;f&&(A+=M.j);A=Math.max(0,A-3);return Math.pow(1.6,A)}; ZG=function(M,f){M[f]||(M[f]=new IHb);return M[f]}; rL=function(M){this.B=this.W=this.N=this.j=0;this.X=this.G=!1;this.K=M;this.Z=M.clone()}; Thb=function(M,f,A){if(j2(M.K))return!1;var Q=ZG(A,ny(M.K));if(Q.timedOut<1&&Q.K<1)return!1;Q=Q.timedOut+Q.K;M=uA(M,f);A=ZG(A,ny(M));return A.timedOut+A.K+01?f=f.Sy:(A=ZG(A,P4(M,M.Qm(f,A),f)),f=Math.max(M.N,A.timedOut)+f.bP*(M.j-M.N)+.25*M.W,f=f>3?1E3*Math.pow(1.6,f-3):0);return f===0?!0:M.B+f<(0,g.W)()}; DCT=function(M,f,A){M.K.set(f,A);M.Z.set(f,A);M.C&&M.C.set(f,A)}; E$e=function(M,f,A,Q,N){++M.j;f&&++M.N;ny(A.FV).startsWith("redirector.")&&(M.K=M.Z.clone(),delete M.C,Q.wT&&delete N[ny(M.K)])}; j$=function(M){return M?(M.itag||"")+";"+(M.lmt||0)+";"+(M.xtags||""):""}; $O=function(M,f,A,Q){this.initRange=A;this.indexRange=Q;this.K=null;this.j=!1;this.G=0;this.C=this.tW=this.Z=null;this.info=f;this.HX=new rL(M)}; Fs=function(M,f){this.start=M;this.end=f;this.length=f-M+1}; yM=function(M){M=M.split("-");var f=Number(M[0]),A=Number(M[1]);if(!isNaN(f)&&!isNaN(A)&&M.length===2&&(M=new Fs(f,A),!isNaN(M.start)&&!isNaN(M.end)&&!isNaN(M.length)&&M.length>0))return M}; dL=function(M,f){return new Fs(M,M+f-1)}; trf=function(M){return M.end==null?{start:String(M.start)}:{start:String(M.start),end:String(M.end)}}; e$=function(M){if(!M)return new Fs(0,0);var f=Number(M.start);M=Number(M.end);if(!isNaN(f)&&!isNaN(M)&&(f=new Fs(f,M),f.length>0))return f}; bA=function(M,f,A,Q,N,Y,I,D,E,t,v,p){Q=Q===void 0?"":Q;this.type=M;this.K=f;this.range=A;this.source=Q;this.LK=v;this.clipId=p===void 0?"":p;this.B=[];this.X="";this.Ur=-1;this.Er=this.KJ=0;this.X=Q;this.Ur=N>=0?N:-1;this.startTime=Y||0;this.duration=I||0;this.Z=D||0;this.j=E>=0?E:this.range?this.range.length:NaN;this.N=this.range?this.Z+this.j===this.range.length:t===void 0?!!this.j:t;this.range?(this.C=this.startTime+this.duration*this.Z/this.range.length,this.W=this.duration*this.j/this.range.length, this.G=this.C+this.W):v$T(this)}; v$T=function(M){pMd?(M.C=M.startTime+Math.min(M.duration*M.Z/M.K.info.DB,M.duration),M.W=Math.min(M.duration,M.duration*M.j/M.K.info.DB),M.G=Math.min(M.C+M.W,M.startTime+M.duration)):(M.C=M.startTime,M.W=M.duration,M.G=M.C+M.W)}; hzt=function(M,f,A){var Q=!(!f||f.K!==M.K||f.type!==M.type||f.Ur!==M.Ur);return A?Q&&!!f&&(M.range&&f.range?f.range.end===M.range.end:f.range===M.range)&&f.Z+f.j===M.Z+M.j:Q}; kO=function(M){return M.type===1||M.type===2}; W4=function(M){return M.type===3||M.type===6}; Oz=function(M,f){return M.K===f.K?M.range&&f.range?M.range.start+M.Z+M.j===f.range.start+f.Z:M.Ur===f.Ur?M.Z+M.j===f.Z:M.Ur+1===f.Ur&&f.Z===0&&M.N:!1}; LPX=function(M,f){return M.Ur!==f.Ur&&f.Ur!==M.Ur+1||M.type!==f.type?!1:Oz(M,f)?!0:Math.abs(M.C-f.C)<=1E-6&&M.Ur===f.Ur?!1:SsX(M,f)}; SsX=function(M,f){return Oz(M,f)||Math.abs(M.G-f.C)<=1E-6||M.Ur+1===f.Ur&&f.Z===0&&M.N?!0:!1}; Xs=function(M){return M.Ur+(M.N?1:0)}; o$N=function(M){M.length===1||g.Oy(M,function(A){return!!A.range}); for(var f=1;f=f.range.start+f.Z&&M.range.start+M.Z+M.j<=f.range.start+f.Z+f.j:M.Ur===f.Ur&&M.Z>=f.Z&&(M.Z+M.j<=f.Z+f.j||f.N)}; mCc=function(M,f){return M.K!==f.K?!1:M.type===4&&f.type===3&&M.K.eP()?(M=M.K.CD(M),lW(M,function(A){return mCc(A,f)})):M.Ur===f.Ur&&!!f.j&&f.Z+f.j>M.Z&&f.Z+f.j<=M.Z+M.j}; K6=function(M,f){var A=f.Ur;M.X="updateWithSegmentInfo";M.Ur=A;if(M.startTime!==f.startTime||M.duration!==f.duration)M.startTime=f.startTime+M.KJ,M.duration=f.duration,v$T(M)}; G2=function(M,f){var A=this;this.r_=M;this.C=this.K=null;this.N=this.zP=NaN;this.Qm=this.requestId=null;this.Ed={Iux:function(){return A.range}}; this.HX=M[0].K.HX;this.Z=f||"";this.r_[0].range&&this.r_[0].j>0&&(CCe(M)?(this.range=o$N(M),this.j=this.range.length):(this.range=this.r_[this.r_.length-1].range,this.j=UCb(M)))}; wL=function(M){return!kO(M.r_[M.r_.length-1])}; lA=function(M){return M.r_[M.r_.length-1].type===4}; g.M6=function(M,f,A){A=M.Qm===null?M.HX.Qm(f,A,M.r_[0].type):M.Qm;if(M.K){f=A?F_(M.K,f.Zh):M.K;var Q=new gL(f);Q.get("alr")||Q.set("alr","yes");M.Z&&Qgc(Q,M.Z)}else/http[s]?:\/\//.test(M.Z)?Q=new gL(new g.zN(M.Z)):(Q=z2(M.HX,A,f),M.Z&&Qgc(Q,M.Z));(f=M.range)?Q.set("range",f.toString()):M.r_[0].K.Xw()&&M.r_.length===1&&M.r_[0].Z&&Q.set("range",M.r_[0].Z+"-");M.requestId&&Q.set("req_id",M.requestId);isNaN(M.zP)||Q.set("headm",M.zP.toString());isNaN(M.N)||Q.set("mffa",M.N+"ms");M.urlParams&&g.ew(M.urlParams, function(N,Y){Q.set(Y,N)}); return Q}; sg0=function(M){if(M.range)return M.j;M=M.r_[0];return Math.round(M.W*M.K.info.DB)}; cED=function(M,f){return Math.max(0,M.r_[0].C-f)}; fq=function(M,f,A,Q,N,Y){Y=Y===void 0?0:Y;$O.call(this,M,f,Q,void 0);this.N=A;this.DQ=Y;this.index=N||new g.e2}; Rz0=function(M,f,A,Q,N){this.Ur=M;this.startSecs=f;this.UR=A;this.K=Q||NaN;this.Z=N||NaN}; AD=function(M,f,A){for(;M;M=M.parentNode)if(M.attributes&&(!A||M.nodeName===A)){var Q=M.getAttribute(f);if(Q)return Q}return""}; QC=function(M,f){for(;M;M=M.parentNode){var A=M.getElementsByTagName(f);if(A.length>0)return A[0]}return null}; g$6=function(M){if(!M)return 0;var f=M.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return f?(Number(f[2])|0)*3600+(Number(f[4])|0)*60+(Number(f[6])|0):Number(M)|0}; BhT=function(M){return M.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?M+"Z":M}; N6=function(){this.K=[];this.Z=null;this.G=0;this.j=[];this.N=!1;this.W="";this.C=-1}; iOU=function(M){var f=M.j;M.j=[];return f}; xCd=function(){this.C=[];this.K=null;this.Z={};this.j={}}; zzb=function(M,f){var A=[];f=Array.from(f.getElementsByTagName("SegmentTimeline"));f=g.V(f);for(var Q=f.next();!Q.done;Q=f.next()){Q=Q.value;var N=Q.parentNode.parentNode,Y=null;N.nodeName==="Period"?Y=ZOU(M):N.nodeName==="AdaptationSet"?(N=N.getAttribute("id")||N.getAttribute("mimetype")||"",Y=rE6(M,N)):N.nodeName==="Representation"&&(N=N.getAttribute("id")||"",Y=uqb(M,N));if(Y==null)return;Y.update(Q);g.RR(A,iOU(Y))}g.RR(M.C,A);ibN(M.C,function(I){return I.startSecs*1E3+I.K})}; PC9=function(M){M.K&&(M.K.K=[]);g.ew(M.Z,function(f){f.K=[]}); g.ew(M.j,function(f){f.K=[]})}; ZOU=function(M){M.K||(M.K=new N6);return M.K}; rE6=function(M,f){M.Z[f]||(M.Z[f]=new N6);return M.Z[f]}; uqb=function(M,f){M.j[f]||(M.j[f]=new N6);return M.j[f]}; In=function(M){var f=M===void 0?{}:M;M=f.DQ===void 0?0:f.DQ;var A=f.p8===void 0?!1:f.p8;var Q=f.U2===void 0?0:f.U2;var N=f.iU===void 0?0:f.iU;var Y=f.z7===void 0?Infinity:f.z7;var I=f.cY===void 0?0:f.cY;var D=f.oI===void 0?!1:f.oI;f=f.XE===void 0?!1:f.XE;g.e2.call(this);this.mx=this.dR=-1;this.mR=M;this.U2=Q;this.p8=A;this.iU=N;this.z7=Y;this.cY=I;((this.oI=D)||isFinite(Y)&&this.z7>0)&&A&&YB&&(this.Z=!1,this.j="postLive");this.XE=f}; T5=function(M,f){return zC(M.segments,function(A){return f-A.Ur})}; DV=function(M,f,A){A=A===void 0?{}:A;fq.call(this,M,f,"",void 0,void 0,A.DQ||0);this.index=new In(A)}; Ew=function(M,f,A){$O.call(this,M,f);this.N=A;M=this.index=new g.e2;M.Z=!1;M.j="d"}; n$e=function(M,f,A){var Q=M.index.iA(f),N=M.index.getStartTime(f),Y=M.index.getDuration(f);A?Y=A=0:A=M.info.DB*Y;return new G2([new bA(3,M,void 0,"otfCreateRequestInfoForSegment",f,N,Y,0,A)],Q)}; jgT=function(M,f){if(!M.index.isLoaded()){var A=[],Q=f.C;f=f.N.split(",").filter(function(v){return v.length>0}); for(var N=0,Y=0,I=0,D=/^(\d+)/,E=/r=(\d+)/,t=0;t0&&(N.K=Math.min(N.K+I,10),N.Z=Y);N.K>0?(N.K--,N=!0):N=!1;if(N)typeof Q==="function"&&(Q=Q()),console.log("plyr."+f,Q);else{var D;Q=((D=bOf.get(f))!=null?D:0)+1;bOf.set(f,Q);Q%100===1&&console.warn("plyr","plyr."+f+" is chatty, dropping logs.")}}}; ez0=function(){this.K=10;this.Z=Date.now()}; pq=function(M,f){this.info=M;this.K=f;this.Z=null;this.C=this.j=-1;this.timestampOffset=0;this.isLocked=this.G=!1;this.N=this.info.K.C2()&&!this.info.Z}; kbb=function(M,f){M.K.getLength();f=Math.min(f,M.info.j);var A=M.K.split(f),Q=A.xr;A=new pq(new bA(M.info.type,M.info.K,M.info.range,M.info.X,M.info.Ur,M.info.startTime,M.info.duration,M.info.Z,f,!1,M.info.LK,M.info.clipId),A.Gc);A.C=M.C;A.j=M.j;f=new pq(new bA(M.info.type,M.info.K,M.info.range,M.info.X,M.info.Ur,M.info.startTime,M.info.duration,M.info.Z+f,M.info.j-f,M.info.N,M.info.LK,M.info.clipId),Q);f.C=M.C;f.j=M.j;return[A,f]}; g.hD=function(M,f,A,Q){A=A===void 0?!1:A;Q=Q===void 0?0:Q;if(M.isLocked||f.isLocked||!Oz(M.info,f.info)||M.info.N)return null;if(Q){if(M.K.getLength()+f.K.getLength()>Q)return null}else if(A&&(A=M.K,Q=f.K,A=!(Q.jP.length?zsU(A,Q.jP[0]):1)),A)return null;A=new bA(M.info.type,M.info.K,M.info.range,M.info.X,M.info.Ur,M.info.startTime,M.info.duration,M.info.Z,M.info.j,M.info.N,M.info.LK,M.info.clipId);Q=f.info;A.j+=Q.j;A.range&&(A.W+=Q.W);A.G=Q.G;A.N=Q.N;Q=new ap;qx(Q,M.K);qx(Q,f.K);A=new pq(A,Q);A.Z!= null&&f.Z!=null&&(new g.tD("dash")).K(414627957,"merged slice emsg overridden; prev: "+A.Z.Th()+" next: "+f.Z.Th());A.Z=f.Z||M.Z;A.j=M.j!==-1?M.j:f.j;A.C=M.C!==-1?M.C:f.C;return A}; g.SL=function(M){g.Qj(M.info.K.info)||M.info.K.info.I5();if(M.j!==-1)return M.j;if(M.Z&&$d9(M.Z))return M.j=$d9(M.Z),M.j;if(g.Qj(M.info.K.info)){var f=M.Za();for(var A=M.info.K.K,Q=NaN,N=NaN,Y=0;T2(f,Y);){var I=DG(f,Y);I.type===1936286840?N=I.data.getUint32(I.dataOffset+8):I.type===1836476516?N=g.Ne(I):I.type===1952867444&&isNaN(Q)&&(Q=g.tx(I));Y=Ez(I.type)?Y+8:Y+I.size}!N&&A&&(N=YO(A));f=Q/N}else f=new hx(M.Za()),A=M.N?f:new hx(new DataView(M.info.K.K.buffer)),Q=c4(A),A=f.pos,f.pos=0,RF(f)?C6(f, 231)?(Q=aF(f)*Q/1E9,f.pos=A,f=Q):(f.pos=A,f=NaN):(f.pos=A,f=NaN);M.j=f||M.info.C;return M.j}; OOb=function(M,f){M.timestampOffset>0&&(f-=M.timestampOffset);var A=g.SL(M)+f;WPf(M,A);M.timestampOffset=f}; WPf=function(M,f){g.Qj(M.info.K.info)||M.info.K.info.I5();M.j=f;if(g.Qj(M.info.K.info)){var A=M.Za();M=M.info.K.K;for(var Q=NaN,N=NaN,Y=0;T2(A,Y);){var I=DG(A,Y);isNaN(Q)&&(I.type===1936286840?Q=I.data.getUint32(I.dataOffset+8):I.type===1836476516&&(Q=g.Ne(I)));if(I.type===1952867444){!Q&&M&&(Q=YO(M));var D=g.tx(I);isNaN(N)&&(N=Math.round(f*Q)-D);var E=I;D+=N;if(E.data.getUint8(E.dataOffset)){var t=E.data;E=E.dataOffset+4;t.setUint32(E,Math.floor(D/4294967296));t.setUint32(E+4,D&4294967295)}else E.data.setUint32(E.dataOffset+ 4,D)}Y=Ez(I.type)?Y+8:Y+I.size}return!0}A=new hx(M.Za());M=M.N?A:new hx(new DataView(M.info.K.K.buffer));Q=c4(M);M=A.pos;A.pos=0;if(RF(A)&&C6(A,231))if(N=Uz(A,!0),f=Math.floor(f*1E9/Q),Math.ceil(Math.log(f)/Math.log(2)/8)>N)f=!1;else{for(Q=N-1;Q>=0;Q--)A.K.setUint8(A.pos+Q,f&255),f>>>=8;A.pos=M;f=!0}else f=!1;return f}; on=function(M,f){f=f===void 0?!1:f;var A=Lq(M);M=f?0:M.info.W;return A||M}; Lq=function(M){g.Qj(M.info.K.info)||M.info.K.info.I5();if(M.Z&&M.info.type===6)return M.Z.DQ;if(g.Qj(M.info.K.info)){var f=M.Za();var A=0;f=g.p6(f,1936286840);f=g.V(f);for(var Q=f.next();!Q.done;Q=f.next())Q=Wzz(Q.value),A+=Q.gj[0]/Q.timescale;A=A||NaN;if(!(A>=0))a:{A=M.Za();f=M.info.K.K;for(var N=Q=0,Y=0;T2(A,Q);){var I=DG(A,Q);if(I.type===1836476516)N=g.Ne(I);else if(I.type===1836019558){!N&&f&&(N=YO(f));if(!N){A=NaN;break a}var D=g.F(IF(I.data,I.dataOffset,1953653094)),E=D;D=N;var t=g.F(IF(E.data, E.dataOffset,1952868452));E=g.F(IF(E.data,E.dataOffset,1953658222));var v=OU(t);OU(t);v&2&&OU(t);t=v&8?OU(t):0;var p=OU(E),h=p&1;v=p&4;var S=p&256,L=p&512,a=p&1024;p&=2048;var q=X_(E);h&&OU(E);v&&OU(E);for(var m=h=0;m2048?"":f.indexOf("https://")===0?f:""}; Hx=function(M,f,A){f.match(YjX);return M(f,A).then(function(Q){var N=g.NG0(Q.xhr);return N?Hx(M,N,A):Q.xhr})}; gc=function(M,f,A){M=M===void 0?"":M;f=f===void 0?null:f;A=A===void 0?!1:A;g.pi.call(this);var Q=this;this.sourceUrl=M;this.isLivePlayback=A;this.ox=this.duration=0;this.isPremiere=this.oI=this.C=this.isLiveHeadPlayable=this.isLive=this.Z=!1;this.z7=this.iU=0;this.isOtf=this.U$=!1;this.fJ=(0,g.W)();this.Er=Infinity;this.K={};this.j=new Map;this.state=this.R9=0;this.timeline=null;this.isManifestless=!1;this.P7=[];this.G=null;this.z0=0;this.N="";this.g_=NaN;this.jk=this.Z9=this.timestampOffset=this.W= 0;this.B_=this.jQ=NaN;this.wq=0;this.nJ=this.B=!1;this.YO=[];this.Ji={};this.KJ=NaN;this.Ed={Up7:function(D){m8(Q,D)}}; var N;this.w_=(N=f)==null?void 0:N.X3("html5_use_network_error_code_enums");Ijb=!!f&&f.X3("html5_modern_vp9_mime_type");var Y;cx=!((Y=f)==null||!Y.X3("html5_enable_flush_during_seek"))&&g.JI();var I;Rn=!((I=f)==null||!I.X3("html5_enable_reset_audio_decoder"))&&g.JI()}; TGT=function(M){return g.WK(M.K,function(f){return!!f.info.video&&f.info.video.qualityOrdinal>=2160})}; qid=function(M){return g.WK(M.K,function(f){return!!f.info.video&&f.info.video.isHdr()})}; gY=function(M){return g.WK(M.K,function(f){return!!f.info.e$})}; g.DkX=function(M){return g.WK(M.K,function(f){return DH(f.info.mimeType)})}; Elb=function(M){return g.WK(M.K,function(f){return f.info.video?f.info.video.projectionType==="EQUIRECTANGULAR":!1})}; tVe=function(M){return g.WK(M.K,function(f){return f.info.video?f.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; vlD=function(M){return g.WK(M.K,function(f){return f.info.video?f.info.video.projectionType==="MESH":!1})}; p80=function(M){return g.WK(M.K,function(f){return f.info.video?f.info.video.stereoLayout===1:!1})}; hiD=function(M){return zed(M.K,function(f){return f.info.video?f.Do():!0})}; sU=function(M){return g.WK(M.K,function(f){return j2(f.HX.K)})}; m8=function(M,f){M.K[f.info.id]=f;M.j.set(j$(g.Y$(f.info,M.U$)),f)}; xB=function(M,f,A){A=A===void 0?0:A;var Q=M.mimeType||"",N=M.itag;var Y=M.xtags;N=N?N.toString():"";Y&&(N+=";"+Y);Y=N;if(Tb(Q)){var I=M.width||640;N=M.height||360;var D=M.fps,E=M.qualityLabel,t=M.colorInfo,v=M.projectionType,p;M.stereoLayout&&(p=SjN[M.stereoLayout]);var h=Amb(M)||void 0;if(t==null?0:t.primaries)var S=Lo6[t.primaries]||void 0;I=new k8(I,N,D,v,p,void 0,E,h,S);Q=Bx(Q,I,Jk[M.itag||""]);cx&&(Q+="; enableflushduringseek=true");Rn&&(Q+="; enableresetaudiodecoder=true")}var L;if(Ig(Q)){var a= M.audioSampleRate;p=M.audioTrack;a=new dw(a?+a:void 0,M.audioChannels,M.spatialAudioType,M.isDrc,M.loudnessDb,M.trackAbsoluteLoudnessLkfs,M.audioQuality||"AUDIO_QUALITY_UNKNOWN",M.isVb);p&&(S=p.displayName,N=p.id,p=p.audioIsDefault,S&&(L=new g.q6(S,N||"",!!p)))}var q;M.captionTrack&&(E=M.captionTrack,p=E.displayName,S=E.vssId,N=E.languageCode,D=E.kind,E=E.id,p&&S&&N&&(q=new MVT(p,S,N,D,M.xtags,E)));p=Number(M.bitrate)/8;S=Number(M.contentLength);N=Number(M.lastModified);E=M.drmFamilies;D=M.type;A= A&&S?S/A:0;M=Number(M.approxDurationMs);if(f&&E){var m={};E=g.V(E);for(t=E.next();!t.done;t=E.next())(t=iX[t.value])&&(m[t]=f[t])}return new KU(Y,Q,{audio:a,video:I,qV:L,e$:m,DB:p,FJ:A,contentLength:S,lastModified:N,captionTrack:q,streamType:D,approxDurationMs:M})}; ZV=function(M,f,A){A=A===void 0?0:A;var Q=M.type;var N=M.itag;var Y=M.xtags;Y&&(N=M.itag+";"+Y);if(Tb(Q)){var I=(M.size||"640x360").split("x");I=new k8(+I[0],+I[1],+M.fps,M.projection_type,+M.stereo_layout,void 0,M.quality_label,M.eotf,M.primaries);Q=Bx(Q,I,Jk[M.itag]);cx&&(Q+="; enableflushduringseek=true");Rn&&(Q+="; enableresetaudiodecoder=true")}var D;if(Ig(Q)){var E=new dw(+M.audio_sample_rate||void 0,+M.audio_channels||0,M.spatial_audio_type,!!M.drc);M.name&&(D=new g.q6(M.name,M.audio_track_id, M.isDefault==="1"))}var t;M.caption_display_name&&M.caption_vss_id&&M.caption_language_code&&(t=new MVT(M.caption_display_name,M.caption_vss_id,M.caption_language_code,M.caption_kind,M.xtags,M.caption_id));Y=Number(M.bitrate)/8;var v=Number(M.clen),p=Number(M.lmt);A=A&&v?v/A:0;if(f&&M.drm_families){var h={};for(var S=g.V(M.drm_families.split(",")),L=S.next();!L.done;L=S.next())L=L.value,h[L]=f[L]}return new KU(N,Q,{audio:E,video:I,qV:D,e$:h,DB:Y,FJ:A,contentLength:v,lastModified:p,captionTrack:t, streamType:M.stream_type,approxDurationMs:Number(M.approx_duration_ms)})}; ol0=function(M){return lW(M,function(f){return"FORMAT_STREAM_TYPE_OTF"===f.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; C2U=function(M){return lW(M,function(f){return"FORMAT_STREAM_TYPE_OTF"===f.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; UkD=function(M,f){return M.timeline?BK(M.timeline.C,f):M.P7.length?BK(M.P7,f):[]}; rc=function(M,f,A){f=f===void 0?"":f;A=A===void 0?"":A;M=new g.zN(M,!0);M.set("alr","yes");A&&(A=eOD(decodeURIComponent(A)),M[T[43]](f,encodeURIComponent(A)));return M}; HsT=function(M,f){var A=AD(f,"id");A=A.replace(":",";");var Q=AD(f,"mimeType"),N=AD(f,"codecs");Q=N?Q+'; codecs="'+N+'"':Q;N=Number(AD(f,"bandwidth"))/8;var Y=Number(QC(f,"BaseURL").getAttribute(M.N+":contentLength")),I=M.duration&&Y?Y/M.duration:0;if(Tb(Q)){var D=Number(AD(f,"width"));var E=Number(AD(f,"height")),t=Number(AD(f,"frameRate")),v=VVT(AD(f,M.N+":projectionType"));a:switch(AD(f,M.N+":stereoLayout")){case "layout_left_right":var p=1;break a;case "layout_top_bottom":p=2;break a;default:p= 0}D=new k8(D,E,t,v,p)}if(Ig(Q)){var h=Number(AD(f,"audioSamplingRate"));var S=Number(AD(f.getElementsByTagName("AudioChannelConfiguration")[0],"value"));E=aje(AD(f,M.N+":spatialAudioType"));h=new dw(h,S,E);a:{S=AD(f,"lang")||"und";if(E=QC(f,"Role"))if(v=AD(E,"value")||"",g.GC(qjT,v)){E=S+"."+qjT[v];t=v==="main";M=AD(f,M.N+":langName")||S+" - "+v;S=new g.q6(M,E,t);break a}S=void 0}}if(f=QC(f,"ContentProtection"))if(f.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var L={};for(f= f.firstChild;f!=null;f=f.nextSibling)f instanceof Element&&/SystemURL/.test(f.nodeName)&&(M=f.getAttribute("type"),E=f.textContent,M&&E&&(L[M]=E.trim()))}else L=void 0;return new KU(A,Q,{audio:h,video:D,qV:S,e$:L,DB:N,FJ:I,contentLength:Y})}; VVT=function(M){switch(M){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"}}; aje=function(M){switch(M){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"}}; std=function(M,f){f=f===void 0?"":f;M.state=1;M.fJ=(0,g.W)();return Qtz(f||M.sourceUrl).then(function(A){if(!M.ek()){M.R9=A.status;A=A.responseText;var Q=new DOMParser;A=Lg(Q,$lt(A),"text/xml").getElementsByTagName("MPD")[0];M.Er=g$6(AD(A,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(A.attributes){Q=g.V(A.attributes);for(var N=Q.next();!N.done;N=Q.next())if(N=N.value,N.value==="http://youtube.com/yt/2012/10/10"){Q=N.name.split(":")[1];break b}}Q=""}M.N=Q;M.isLive=M.Er=M.Er}; RiN=function(M){M.G&&M.G.stop()}; mkT=function(M){var f=M.Er;isFinite(f)&&(uX(M)?M.refresh():(f=Math.max(0,M.fJ+f-(0,g.W)()),M.G||(M.G=new g.MY(M.refresh,f,M),g.d(M,M.G)),M.G.start(f)))}; glT=function(M){M=M.K;for(var f in M){var A=M[f].index;if(A.isLoaded())return A.YC()+1}return 0}; z5=function(M){return M.Z9?M.Z9-(M.W||M.timestampOffset):0}; Px=function(M){return M.jk?M.jk-(M.W||M.timestampOffset):0}; nq=function(M){if(!isNaN(M.g_))return M.g_;var f=M.K,A;for(A in f){var Q=f[A].index;if(Q.isLoaded()&&!DH(f[A].info.mimeType)){f=0;for(A=Q.WN();A<=Q.YC();A++)f+=Q.getDuration(A);f/=Q.qG();f=Math.round(f/.5)*.5;Q.qG()>10&&(M.g_=f);return f}if(M.isLive&&(Q=f[A],Q.DQ))return Q.DQ}return NaN}; BGe=function(M,f){M=n90(M.K,function(Q){return Q.index.isLoaded()}); if(!M)return NaN;M=M.index;var A=M.IY(f);return M.getStartTime(A)===f?f:A=0&&N.segments.splice(Y,1)}}}; xkb=function(M){for(var f in M.K)DH(M.K[f].info.mimeType)||uRD(M.K[f].index,Infinity)}; Fk=function(M,f,A){for(var Q in M.K){var N=M.K[Q].index,Y=f,I=A;N.p8&&(Y&&(N.dR=Math.max(N.dR,Y)),I&&(N.mx=Math.max(N.mx||0,I)))}A&&(M.KJ=A/1E3)}; ZsD=function(M){M.jk=0;M.Z9=0;M.wq=0}; yC=function(M){return M.nJ&&M.isManifestless?M.isLiveHeadPlayable:M.isLive}; Bx=function(M,f,A){dc===null&&(dc=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(Ijb&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return dc||A!=="9"&&A!=="("?dc||A!=="9h"&&A!=="(h"||(M='video/webm; codecs="vp9.2"'):M='video/webm; codecs="vp9"',M;if(!dc&&!eL||M!=='video/webm; codecs="vp9"'&&M!=='video/webm; codecs="vp9.2"')return M; A="00";var Q="08",N="01",Y="01",I="01";M==='video/webm; codecs="vp9.2"'&&(A="02",Q="10",f.primaries==="bt2020"&&(I=N="09"),f.K==="smpte2084"&&(Y="16"),f.K==="arib-std-b67"&&(Y="18"));return'video/webm; codecs="'+["vp09",A,"51",Q,"01",N,Y,I,"00"].join(".")+'"'}; kB=function(M,f,A){M=""+M+(f>49?"p60":f>32?"p48":"");f=lU()[M];if(f!=null&&f>0)return f;f=bX.get(M);if(f!=null&&f>0)return f;A=A==null?void 0:A.get(M);return A!=null&&A>0?A:8192}; rme=function(M){this.i8=M;this.MV=this.k9=this.z0=this.N=this.C=this.YO=this.nJ=this.Er=!1;this.W=this.G=0;this.w_=!1;this.KJ=!0;this.Ji=!1;this.nK=0;this.lP=this.jk=!1;this.xp=!0;this.fJ=this.g_=!1;this.K={};this.Qw=this.Yp=this.disableAv1=this.b8=this.Uq=this.l8=this.xO=this.Z=this.X=!1;this.T_=this.i8.V("html5_disable_aac_preference");this.oE=Infinity;this.P7=0;this.wq=this.i8.cX();this.Z9=this.i8.experiments.X3("html5_enable_vp9_fairplay");this.gb=this.i8.V("html5_force_av1_for_testing");this.ox= g.CE(this.i8.experiments,"html5_av1_ordinal_cap");this.Fk=this.i8.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.y7=this.i8.V("html5_account_onesie_format_selection_during_format_filter");this.DB=g.CE(this.i8.experiments,"html5_max_byterate");this.zt=this.i8.V("html5_enable_iamf_audio");this.N5=this.i8.experiments.X3("html5_allow_capability_merge");this.d2=this.i8.V("html5_enable_encrypted_av1")}; HUb=function(M){if(M.nJ)return["f"];if(g.Of("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var f=["9h","9","h","8"];M.d2&&f.push("1e");f=f.concat(["(h","(","H","*"]);M.jk&&(f.unshift("1"),f.unshift("1h"));M.k9&&f.unshift("h");M.B&&(f=(u7b[M.B]||[M.B]).concat(f));return f}; Lzc=function(M){var f=["o","a","A"];M.P7===1&&(M.C&&(f=["mac3","MAC3"].concat(f)),M.N&&(f=["meac3","MEAC3"].concat(f)),M.zt&&(f=["i","I"].concat(f)));M.Er&&(f=["so","sa"].concat(f));!M.MV||M.z0||M.j||M.T_||f.unshift("a");M.j&&(f=(u7b[M.j]||[M.j]).concat(f));return f}; Wx=function(M,f,A,Q){f=f===void 0?{}:f;if(Q===void 0?0:Q)return f.disabled=1,0;if(rY(M.N,uo.AV1_CODECS)&&rY(M.N,uo.HEIGHT)&&rY(M.N,uo.BITRATE))return f.isCapabilityUsable=1,8192;try{var N=GQz();if(N)return f.localPref=N}catch(D){}Q=1080;N=navigator.hardwareConcurrency;N<=2&&(Q=480);f.coreCount=N;if(N=g.CE(M.experiments,"html5_default_av1_threshold"))Q=f["default"]=N;!M.V("html5_disable_av1_arm_check")&&Hlf()&&(f.isArm=1,Q=240);if(M=M.N.KJ)f.mcap=M,Q=Math.max(Q,M);if(A){var Y,I;if(M=(Y=A.videoInfos.find(function(D){return MC(D)}))== null?void 0:(I=Y.Z)==null?void 0:I.powerEfficient)Q=8192,f.isEfficient=1; A=A.videoInfos[0].video;Y=Math.min(kB("1",A.fps),kB("1",30));f.perfCap=Y;Q=Math.min(Q,Y);A.isHdr()&&!M&&(f.hdr=1,Q*=.75)}else A=kB("1",30),f.perfCap30=A,Q=Math.min(Q,A),A=kB("1",60),f.perfCap60=A,Q=Math.min(Q,A);return f.av1Threshold=Q}; Ow=function(M,f,A,Q){this.flavor=M;this.keySystem=f;this.Z=A;this.experiments=Q;this.K={};this.ox=this.keySystemAccess=null;this.qv=this.Vu=-1;this.ZM=null;this.j=!!Q&&Q.X3("edge_nonprefixed_eme");Q&&Q.X3("html5_enable_vp9_fairplay")}; JD=function(M){return M.j?!1:!M.keySystemAccess&&!!Xk()&&M.keySystem==="com.microsoft.playready"}; Kq=function(M){return M.keySystem==="com.microsoft.playready"}; G5=function(M){return!M.keySystemAccess&&!!Xk()&&M.keySystem==="com.apple.fps.1_0"}; wc=function(M){return M.keySystem==="com.youtube.fairplay"}; lX=function(M){return M.keySystem==="com.youtube.fairplay.sbdl"}; g.MD=function(M){return M.flavor==="fairplay"}; Xk=function(){var M=window,f=M.MSMediaKeys;wy()&&!f&&(f=M.WebKitMediaKeys);return f&&f.isTypeSupported?f:null}; Aa=function(M){return navigator.requestMediaKeySystemAccess?g.nU&&!g.JI()?ir("45"):g.Gf||g.UD?M.X3("edge_nonprefixed_eme"):g.ft?ir("47"):g.mH&&M.X3("html5_enable_safari_fairplay")?!1:!0:!1}; zif=function(M,f,A,Q){var N=K0(),Y=(A=N||A&&wy())?["com.youtube.fairplay"]:["com.widevine.alpha"];f&&Y.unshift("com.youtube.widevine.l3");N&&Q&&Y.unshift("com.youtube.fairplay.sbdl");return A?Y:M?[].concat(g.c(Y),g.c(Qh.playready)):[].concat(g.c(Qh.playready),g.c(Y))}; ND=function(M,f,A,Q,N){Q=Q===void 0?!1:Q;g.y.call(this);this.i8=f;this.useCobaltWidevine=Q;this.ZB=N;this.Z=[];this.j={};this.K={};this.callback=null;this.N=!1;this.C=[];this.initialize(M,!A)}; nlU=function(M,f){M.callback=f;M.C=[];Aa(M.i8.experiments)?YI(M):P2b(M)}; YI=function(M){if(!M.ek())if(M.Z.length===0)M.callback(M.C);else{var f=M.Z[0],A=M.j[f],Q=jtc(M,A);if(I3&&I3.keySystem===f&&I3.ePu===JSON.stringify(Q))M.ZB("remksa",{re:!0}),$kz(M,A,I3.keySystemAccess);else{var N,Y;M.ZB("remksa",{re:!1,ok:(Y=(N=I3)==null?void 0:N.keySystem)!=null?Y:""});I3=void 0;navigator.requestMediaKeySystemAccess(f,Q).then(uU(function(I){$kz(M,A,I,Q)}),uU(function(){M.N=!M.N&&M.j[M.Z[0]].flavor==="widevine"; M.N||M.Z.shift();YI(M)}))}}}; $kz=function(M,f,A,Q){if(!M.ek()){Q&&(I3={keySystem:f.keySystem,keySystemAccess:A,ePu:JSON.stringify(Q)});f.keySystemAccess=A;if(Kq(f)){A=zk();Q=g.V(Object.keys(M.K[f.flavor]));for(var N=Q.next();!N.done;N=Q.next())N=N.value,f.K[N]=!!A.canPlayType(N)}else{A=f.keySystemAccess.getConfiguration();if(A.audioCapabilities)for(Q=g.V(A.audioCapabilities),N=Q.next();!N.done;N=Q.next())Fod(M,f,N.value);if(A.videoCapabilities)for(A=g.V(A.videoCapabilities),Q=A.next();!Q.done;Q=A.next())Fod(M,f,Q.value)}M.C.push(f); M.useCobaltWidevine||M.V("html5_enable_vp9_fairplay")&&lX(f)?(M.Z.shift(),YI(M)):M.callback(M.C)}}; Fod=function(M,f,A){M.V("log_robustness_for_drm")?f.K[A.contentType]=A.robustness||!0:f.K[A.contentType]=!0}; jtc=function(M,f){var A={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(M.V("html5_enable_vp9_fairplay")&&wc(f))return A.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),A.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[A];Kq(f)&&(A.initDataTypes=["keyids","cenc"]);for(var Q=g.V(Object.keys(M.K[f.flavor])),N=Q.next();!N.done;N=Q.next()){N=N.value;var Y=N.indexOf("audio/")===0,I=Y?A.audioCapabilities:A.videoCapabilities;f.flavor!== "widevine"||M.N?I.push({contentType:N}):Y?I.push({contentType:N,robustness:"SW_SECURE_CRYPTO"}):(g.nU&&g.Of("windows nt")&&!M.V("html5_drm_enable_moho")||I.push({contentType:N,robustness:"HW_SECURE_ALL"}),Y=N,M.i8.N.j&&N.includes("vp09")&&(Y=N+"; experimental=allowed"),I.push({contentType:Y,robustness:"SW_SECURE_DECODE"}),g.TG(M.i8)==="MWEB"&&(Nh()||XK())&&(M.ZB("swcrypto",{}),I.push({contentType:N,robustness:"SW_SECURE_CRYPTO"})))}return[A]}; P2b=function(M){if(Xk()&&(g.mH||Mh))M.C.push(new Ow("fairplay","com.apple.fps.1_0","",M.i8.experiments));else{var f=ymc(),A=g.oR(M.Z,function(Q){var N=M.j[Q],Y=!1,I=!1,D;for(D in M.K[N.flavor])f(D,Q)&&(N.K[D]=!0,Y=Y||D.indexOf("audio/")===0,I=I||D.indexOf("video/")===0);return Y&&I}); A&&M.C.push(M.j[A]);M.Z=[]}M.callback(M.C)}; ymc=function(){var M=Xk();if(M){var f=M.isTypeSupported;return function(Q,N){return f(N,Q)}}var A=zk(); return A&&(A.addKey||A.webkitAddKey)?function(Q,N){return!!A.canPlayType(Q,N)}:function(){return!1}}; dkb=function(M){this.experiments=M;this.K=2048;this.C=0;this.KJ=(this.W=this.V("html5_streaming_resilience"))?.5:.25;var f=f===void 0?0:f;this.j=g.CE(this.experiments,"html5_media_time_weight_prop")||f;this.Er=g.CE(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.B=(this.N=this.experiments.X3("html5_consider_end_stall"))&&D9;this.Z=this.experiments.X3("html5_measure_max_progress_handling");this.X=this.V("html5_treat_requests_pre_elbow_as_metadata");this.G=this.V("html5_media_time_weight")|| !!this.j;this.V("html5_sabr_live_audio_early_return_fix")&&D9&&(this.K=65536)}; eib=function(M,f){this.K=void 0;this.experimentIds=M?M.split(","):[];this.flags=Qn(f||"","&");M={};f=g.V(this.experimentIds);for(var A=f.next();!A.done;A=f.next())M[A.value]=!0;this.experiments=M}; g.CE=function(M,f){M=M.flags[f];JSON.stringify(M);return Number(M)||0}; EH=function(M,f){return(M=M.flags[f])?M.toString():""}; bsb=function(M){if(M=M.flags.html5_web_po_experiment_ids)if(M=M.replace(/\[ *(.*?) *\]/,"$1"))return M.split(",").map(Number);return[]}; kEb=function(M){if(M.K)return M.K;if(M.experimentIds.length<=1)return M.K=M.experimentIds,M.K;var f=[].concat(g.c(M.experimentIds)).map(function(Q){return Number(Q)}); f.sort();for(var A=f.length-1;A>0;--A)f[A]-=f[A-1];M.K=f.map(function(Q){return Q.toString()}); M.K.unshift("v1");return M.K}; Osb=function(M){return WoT.then(M)}; ta=function(M,f,A){this.experiments=M;this.P7=f;this.z0=A===void 0?!1:A;this.B=!!g.wD("cast.receiver.platform.canDisplayType");this.X={};this.Er=!1;this.C=new Map;this.W=!0;this.Z=this.j=!1;this.K=new Map;this.KJ=0;this.jk=this.experiments.X3("html5_disable_vp9_encrypted");this.N=this.experiments.X3("html5_enable_encrypted_av1");M=g.wD("cast.receiver.platform.getValue");if(f=!this.B&&M)f=M("max-video-resolution-vpx");this.G=f||null;X89(this);this.j=!!(K0()&&Wa()>=21)}; ckt=function(M,f,A){A=A===void 0?1:A;var Q=f.itag;if(Q==="0")return!0;var N=f.mimeType;if(f.LJ==="1e"&&!M.N)return"dav1enc";if(MC(f)&&M.Er)return"dav1";if(f.video&&(f.video.isHdr()||f.video.primaries==="bt2020")&&!(rY(M,uo.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(Q==="338"&&!(g.nU?ir(53):g.ft&&ir(64)))return"dopus";var Y=A;Y=Y===void 0?1: Y;A={};f.video&&(f.video.width&&(A[uo.WIDTH.name]=f.video.width),f.video.height&&(A[uo.HEIGHT.name]=f.video.height),f.video.fps&&(A[uo.FRAMERATE.name]=f.video.fps*Y),f.video.K&&(A[uo.EOTF.name]=f.video.K),f.DB&&(A[uo.BITRATE.name]=f.DB*8*Y),f.LJ==="("&&(A[uo.CRYPTOBLOCKFORMAT.name]="subsample"),f.video.projectionType==="EQUIRECTANGULAR"||f.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||f.video.projectionType==="MESH")&&(A[uo.DECODETOTEXTURE.name]="true");f.audio&&f.audio.numChannels&& (A[uo.CHANNELS.name]=f.audio.numChannels);M.j&&Gk(f)&&(A[uo.EXPERIMENTAL.name]="allowed");Y=g.V(Object.keys(uo));for(var I=Y.next();!I.done;I=Y.next()){I=uo[I.value];var D;if(D=A[I.name])if(D=!(I===uo.EOTF&&f.mimeType.indexOf("vp09.02")>0)){D=I;var E=f;D=!(M.experiments.X3("html5_ignore_h264_framerate_cap")&&D===uo.FRAMERATE&&cFX(E))}if(D)if(rY(M,I))if(M.G){if(M.G[I.name] 1080&&f.e$&&(N+="; hdcp=2.2");return Q==="227"?"hqcenc":Q!=="585"&&Q!=="588"&&Q!=="583"&&Q!=="586"&&Q!=="584"&&Q!=="587"&&Q!=="591"&&Q!=="592"||M.experiments.X3("html5_enable_new_hvc_enc")?K0()&&Wa()>=21&&g.Of("appletv5")&&(Q==="410"||Q==="845")?!0:M.isTypeSupported(N)?!0:"tpus":"newhvc"}; vs=function(){var M=XK()&&!ir(29),f=g.Of("google tv")&&g.Of("chrome")&&!ir(30);return M||f?!1:ZJc()}; Jmd=function(M,f,A){var Q=480;f=g.V(f);for(var N=f.next();!N.done;N=f.next()){N=N.value;var Y=N.video.qualityOrdinal;Y<=1080&&Y>Q&&ckt(M,N,A)===!0&&(Q=Y)}return Q}; g.pt=function(M,f){f=f===void 0?!1:f;return vs()&&M.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!f&&M.canPlayType(zk(),"application/x-mpegURL")?!0:!1}; GE9=function(M){KoN(function(){for(var f=g.V(Object.keys(uo)),A=f.next();!A.done;A=f.next())rY(M,uo[A.value])})}; rY=function(M,f){f.name in M.X||(M.X[f.name]=w8f(M,f));return M.X[f.name]}; w8f=function(M,f){if(M.G)return!!M.G[f.name];if(f===uo.BITRATE&&M.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!M.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(f===uo.AV1_CODECS)return M.isTypeSupported("video/mp4; codecs="+f.valid)&&!M.isTypeSupported("video/mp4; codecs="+f.a8);if(f.video){var A='video/webm; codecs="vp9"';M.isTypeSupported(A)||(A='video/mp4; codecs="avc1.4d401e"')}else A='audio/webm; codecs="opus"', M.isTypeSupported(A)||(A='audio/mp4; codecs="mp4a.40.2"');return M.isTypeSupported(A+"; "+f.name+"="+f.valid)&&!M.isTypeSupported(A+"; "+f.name+"="+f.a8)}; ljT=function(M,f){var A=0;M.C.has(f)&&(A=g.F(M.C.get(f)).OH);M.C.set(f,{OH:A+1,pc:Math.pow(2,A+1)});M.Z=!0}; Bd=function(M){for(var f=[],A=g.V(M.K.keys()),Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var N=M.K.get(Q);f.push(Q+"_"+N.maxWidth+"_"+N.maxHeight)}return f.join(".")}; CT0=function(M,f){for(var A=new Map,Q=g.V(M.K.keys()),N=Q.next();!N.done;N=Q.next()){N=N.value;var Y=N.split("_")[0];f.has(Y)||A.set(N,M.K.get(N))}M.K=A}; Vgc=function(M,f,A){var Q,N=((Q=A.video)==null?void 0:Q.fps)||0;Q=f+"_"+N;var Y=!!A.audio,I={itag:A.itag,LJ:f,gf:Y};if(Y)I.numChannels=A.audio.numChannels;else{var D=A.video;I.maxWidth=D==null?void 0:D.width;I.maxHeight=D==null?void 0:D.height;I.maxFramerate=N;rY(M,uo.BITRATE)&&(I.maxBitrateBps=A.DB*8);I.kG=D==null?void 0:D.isHdr()}D=M.K.get(Q);D?Y||(A=Math.max(D.maxWidth||0,D.maxHeight||0)>Math.max(I.maxWidth||0,I.maxHeight||0)?D:I,f={itag:A.itag,LJ:f,gf:Y,maxWidth:Math.max(D.maxWidth||0,I.maxWidth|| 0),maxHeight:Math.max(D.maxHeight||0,I.maxHeight||0),maxFramerate:N,kG:A.kG},rY(M,uo.BITRATE)&&(f.maxBitrateBps=A.maxBitrateBps),M.K.set(Q,f)):M.K.set(Q,I)}; aZd=function(M,f,A){var Q,N=((Q=A.video)==null?void 0:Q.fps)||0;Q=f+"_"+N;var Y=!!A.audio,I=M.K.get(Q);a:{var D=M.K.get(Q),E=!!A.audio;if(D){if(E){var t=!1;break a}var v;if(!E&&((t=A.video)==null?0:t.height)&&D.maxHeight&&D.maxHeight>=((v=A.video)==null?void 0:v.height)){t=!1;break a}}t=!0}t&&(t=A.itag,f=I?I:{itag:t,LJ:f,gf:Y},Y?f.numChannels=A.audio.numChannels:(Y=A.video,f.maxWidth=Y==null?void 0:Y.width,f.maxHeight=Y==null?void 0:Y.height,f.maxFramerate=N,rY(M,uo.BITRATE)&&(f.maxBitrateBps=A.DB* 8),f.kG=Y==null?void 0:Y.isHdr()),M.K.set(Q,f))}; X89=function(M){var f;(f=navigator.mediaCapabilities)!=null&&f.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(A){A.smooth&&A.powerEfficient&&(M.KJ=2160)})}; ha=function(){g.pi.call(this);this.items={}}; MW0=function(M,f,A){this.encryptedClientKey=f;this.N=A;this.K=new Uint8Array(M.buffer,0,16);this.j=new Uint8Array(M.buffer,16)}; fzf=function(M){M.Z||(M.Z=new g.cI(M.K));return M.Z}; SX=function(M){try{return NM(M)}catch(f){return null}}; Az6=function(M,f){if(!f&&M)try{f=JSON.parse(M)}catch(N){}if(f){M=f.clientKey?SX(f.clientKey):null;var A=f.encryptedClientKey?SX(f.encryptedClientKey):null,Q=f.keyExpiresInSeconds?Number(f.keyExpiresInSeconds)*1E3+(0,g.W)():null;M&&A&&Q&&(this.K=new MW0(M,A,Q));f.onesieUstreamerConfig&&(this.onesieUstreamerConfig=SX(f.onesieUstreamerConfig)||void 0);this.baseUrl=f.baseUrl}}; o3=function(){this.data=new Uint8Array(2048);this.pos=0;Lt||(Lt=up("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; Ct=function(M,f){M.add(f==null||isNaN(f)?0:f+1)}; UH=function(M){this.K=this.Z=0;this.alpha=Math.exp(Math.log(.5)/M)}; Vh=function(M){this.Z=M===void 0?15:M;this.values=new Float64Array(176);this.K=new Float64Array(11);this.j=new Float64Array(16)}; a3=function(M,f,A,Q){A=A===void 0?.5:A;Q=Q===void 0?0:Q;this.resolution=f;this.Z=0;this.j=!1;this.f6=!0;this.K=Math.round(M*this.resolution);this.values=Array(this.K);for(M=0;M0)f=M.byterate,this.Er=!0;else{var Q; A=(((Q=navigator.connection)==null?void 0:Q.downlink)||0)*64*1024;A>0&&(f=A,this.Er=!0)}this.j.Li(this.policy.G,f);M.delay>0&&this.X.Li(1,Math.min(M.delay,2));M.stall>0&&this.W.Li(1,M.stall);M.init>0&&(this.fJ=Math.min(M.init,this.fJ));M.interruptions&&(this.C=this.C.concat(M.interruptions),this.C.length>16&&this.C.pop());this.KJ=(0,g.W)();this.policy.W>0&&(this.nJ=new g.MY(this.YO,this.policy.W,this),g.d(this,this.nJ),this.nJ.start())}; Hs=function(M,f,A,Q){M.j.Li(Q===void 0?f:Q,A/f);M.G=(0,g.W)()}; NzD=function(M){M.N||(M.N=(0,g.W)());M.policy.B&&(M.G=(0,g.W)())}; YNX=function(M,f){if(M.N){var A=f-M.N;if(A<6E4){if(A>1E3){var Q=M.interruptions;Q.push(Math.ceil(A));Q.sort(function(N,Y){return Y-N}); Q.length>16&&Q.pop()}M.P7+=A}}M.N=f}; mh=function(M,f,A,Q,N,Y){Y=Y===void 0?!1:Y;M.g_.Li(f,A/f);M.G=(0,g.W)();N||M.B.Li(1,f-Q);Y||(M.N=0);M.KJ>-1&&(0,g.W)()-M.KJ>3E4&&Izz(M)}; sH=function(M,f,A){f=Math.max(f,M.Z.K);M.W.Li(1,A/f)}; cs=function(M){M=M.X.LW()+M.z0.LW()||0;M=isNaN(M)?.5:M;return M=Math.min(M,5)}; R3=function(M,f,A){isNaN(A)||(M.jk+=A);isNaN(f)||(M.ox+=f)}; gt=function(M){M=M.j.LW();return M>0?M:1}; Bs=function(M,f,A){f=f===void 0?!1:f;A=A===void 0?1048576:A;var Q=gt(M);Q=1/((M.W.LW()||0)*M.policy.Er+1/Q);var N=M.g_.LW();N=N>0?N:1;var Y=Math.max(Q,N);M.policy.N>0&&N=4E3}; DKt=function(M){this.experiments=M;this.K=17;this.j=13E4;this.G=.5;this.C=this.Z=!1;this.KJ=this.V("html5_use_histogram_for_bandwidth");this.N=g.CE(this.experiments,"html5_auxiliary_estimate_weight");this.Er=g.CE(this.experiments,"html5_stall_factor")||1;this.W=g.CE(this.experiments,"html5_check_for_idle_network_interval_ms");this.X=this.experiments.X3("html5_trigger_loader_when_idle_network");this.B=this.experiments.X3("html5_sabr_fetch_on_idle_network_preloaded_players")}; tW0=function(M,f){M=M===void 0?{}:M;f=f===void 0?{}:f;g.y.call(this);var A=this;this.values=M;this.Rs=f;this.Z={};this.j=this.K=0;this.C=new g.MY(function(){Ezb(A)},1E4); g.d(this,this.C)}; xI=function(M,f){vzd(M,f);return M.values[f]&&M.Rs[f]?M.values[f]/Math.pow(2,M.K/M.Rs[f]):0}; vzd=function(M,f){M.values[f]||(f=OED(),M.values=f.values||{},M.Rs=f.halfLives||{},M.Z=f.values?Object.assign({},f.values):{})}; Ezb=function(M){var f=OED();if(f.values){f=f.values;for(var A={},Q=g.V(Object.keys(M.values)),N=Q.next();!N.done;N=Q.next())N=N.value,f[N]&&M.Z[N]&&(M.values[N]+=f[N]-M.Z[N]),A[N]=xI(M,N);M.Z=A}f=M.Rs;A={};A.values=M.Z;A.halfLives=f;g.jA("yt-player-memory",A,2592E3)}; Kt=function(M,f,A,Q,N){g.y.call(this);this.webPlayerContextConfig=f;this.ZM=Q;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.SA=this.Z9=this.SO=this.Ki=this.userDisplayName=this.userDisplayImage=this.wL="";this.K={};this.wq={};this.controlsType="0";this.xp=NaN;this.b8=!1;this.vy=(0,g.W)();this.zt=0;this.Ch=this.mK=!1;this.I8=!0;this.preferGapless=this.Kh=this.OR=this.j=this.Wy=!1;this.oo=[];this.Yx=!1;this.jQ=0;M=M?g.Q1(M):{};f&&f.csiPageType&&(this.csiPageType=f.csiPageType);f&&f.csiServiceName&& (this.csiServiceName=f.csiServiceName);f&&f.preferGapless&&(this.preferGapless=f.preferGapless);this.experiments=new eib(f?f.serializedExperimentIds:M.fexp,f?f.serializedExperimentFlags:M.fflags);this.forcedExperiments=f?f.serializedForcedExperimentIds:t0("",M.forced_experiments)||void 0;this.cspNonce=(f==null?0:f.cspNonce)?f.cspNonce:t0("",M.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var Y=document.location.toString()}catch(Qt){Y=""}this.VU=Y;this.ancestorOrigins=(Q=window.location.ancestorOrigins)? Array.from(Q):[];this.C=TX(!1,f?f.isEmbed:M.is_embed);if(f&&f.device){if(Q=f.device,Q.androidOsExperience&&(this.K.caoe=""+Q.androidOsExperience),Q.androidPlayServicesVersion&&(this.K.capsv=""+Q.androidPlayServicesVersion),Q.brand&&(this.K.cbrand=Q.brand),Q.browser&&(this.K.cbr=Q.browser),Q.browserVersion&&(this.K.cbrver=Q.browserVersion),Q.cobaltReleaseVehicle&&(this.K.ccrv=""+Q.cobaltReleaseVehicle),this.K.c=Q.interfaceName||"WEB",this.K.cver=Q.interfaceVersion||"html5",Q.interfaceTheme&&(this.K.ctheme= Q.interfaceTheme),this.K.cplayer=Q.interfacePlayerType||"UNIPLAYER",Q.model&&(this.K.cmodel=Q.model),Q.network&&(this.K.cnetwork=Q.network),Q.os&&(this.K.cos=Q.os),Q.osVersion&&(this.K.cosver=Q.osVersion),Q.platform&&(this.K.cplatform=Q.platform),Y=EH(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),Y==="all"||Y==="once")Q.chipset&&(this.wq.cchip=Q.chipset),Q.cobaltAppVersion&&(this.wq.ccappver=Q.cobaltAppVersion),Q.firmwareVersion&&(this.wq.cfrmver=Q.firmwareVersion),Q.deviceYear&&(this.wq.crqyear= Q.deviceYear)}else this.K.c=M.c||"web",this.K.cver=M.cver||"html5",this.K.cplayer="UNIPLAYER";this.loaderUrl=f?this.C||pHD(this)&&f.loaderUrl?f.loaderUrl||"":this.VU:this.C||pHD(this)&&M.loaderUrl?t0("",M.loaderUrl):this.VU;this.C&&g.Gz("yt.embedded_player.embed_url",this.loaderUrl);this.X=Af(this.loaderUrl,hNb);Q=this.loaderUrl;var I=I===void 0?!1:I;this.rR=fh(Af(Q,SNd),Q,I,"Trusted Ad Domain URL");this.MV=TX(!1,M.privembed);this.protocol=this.VU.indexOf("http:")===0?"http":"https";this.qY=Tbc((f? f.customBaseYoutubeUrl:M.BASE_YT_URL)||"")||Tbc(this.VU)||this.protocol+"://www.youtube.com/";I=f?f.eventLabel:M.el;Q="detailpage";I==="adunit"?Q=this.C?"embedded":"detailpage":I==="embedded"||this.X?Q=DD(Q,I,L3d):I&&(Q="embedded");this.z0=Q;rIU();I=null;Q=f?f.playerStyle:M.ps;Y=g.V9(oze,Q);!Q||Y&&!this.X||(I=Q);this.playerStyle=I;this.G=g.V9(oze,this.playerStyle);this.houseBrandUserStatus=f==null?void 0:f.houseBrandUserStatus;this.KJ=this.G&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.oZ=!this.KJ;this.ox=TX(!1,M.disableplaybackui);this.disablePaidContentOverlay=TX(!1,f==null?void 0:f.disablePaidContentOverlay);this.disableSeek=TX(!1,f==null?void 0:f.disableSeek);this.enableSpeedOptions=(f==null?void 0:f.enableSpeedOptions)||(zk().defaultPlaybackRate?Z9||g.Qi||rt?g.ft&&ir("20")||g.nU&&ir("4")||g.uc&&ir("11")||ll():!(g.uc&&!g.Of("chrome")||Z9||g.Of("android")||g.Of("silk")):!1);this.G$=TX(!1,M.enable_faster_speeds);var D;this.supportsVarispeedExtendedFeatures=(D=f==null?void 0: f.supportsVarispeedExtendedFeatures)!=null?D:!1;this.Z=TX(this.playerStyle==="blazer",M.is_html5_mobile_device||f&&f.isMobileDevice);this.YO=A0()||Nh();this.eC=this.V("mweb_allow_background_playback")?!1:this.Z&&!this.G;this.g_=FR();this.Q3=g.zG;var E;this.tC=!!(f==null?0:(E=f.embedsHostFlags)==null?0:E.optOutApiDeprecation);var t;this.Qr=!!(f==null?0:(t=f.embedsHostFlags)==null?0:t.allowPfpImaIntegration);this.jC=this.V("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var v;f?f.hideInfo!== void 0&&(v=!f.hideInfo):v=M.showinfo;this.K8=g.Ps(this)&&!this.tC||TX(!nt(this)&&!jX(this)&&!this.G,v);this.dU=f?!!f.mobileIphoneSupportsInlinePlayback:TX(!1,M.playsinline);D=this.Z&&$I&&FE!=null&&FE>0&&FE<=2.3;E=f?f.useNativeControls:M.use_native_controls;this.W=g.Ps(this)&&this.Z;t=this.Z&&!this.W;E=g.yh(this)||!D&&TX(t,E)?"3":"1";this.disableOrganicUi=!(f==null||!f.disableOrganicUi);t=f?f.controlsType:M.controls;this.controlsType=this.disableOrganicUi||t==="0"||t===0?"0":E;this.Z_=this.Z;this.color= DD("red",f?f.progressBarColor:M.color,C9d);this.h5=this.controlsType==="3";this.Yp=!this.C;this.Zh=(E=!this.Yp&&!jX(this)&&!this.KJ&&!this.G&&!nt(this))&&!this.h5&&this.controlsType==="1";this.T_=g.dt(this)&&E&&this.controlsType==="0"&&!this.Zh&&!(f==null?0:f.embedsEnableEmc3ds);this.Is=this.Bq=D;this.y7=(this.controlsType==="3"||this.Z||TX(!1,M.use_media_volume))&&!this.W;this.tY=Mh&&!g.BB(601)?!1:!0;this.Hq=this.C||!1;this.d2=jX(this)?"":(this.loaderUrl||M.post_message_origin||"").substring(0,128); this.widgetReferrer=t0("",f?f.widgetReferrer:M.widget_referrer);var p;f?f.disableCastApi&&(p=!1):p=M.enablecastapi;p=!this.X||TX(!0,p);D=!0;f&&f.disableMdxCast&&(D=!1);this.lr=this.V("enable_cast_for_web_unplugged")&&g.eX(this)&&D||g.dA(this)&&D||p&&D&&this.controlsType==="1"&&!this.Z&&(jX(this)||g.dt(this)||g.bc(this));this.Zu=!!window.document.pictureInPictureEnabled||$8();p=f?!!f.supportsAutoplayOverride:TX(!1,M.autoplayoverride);this.WK=!(this.Z&&!g.Ps(this))&&!g.Of("nintendo wiiu")||p;this.OC= (f?!!f.enableMutedAutoplay:TX(!1,M.mutedautoplay))&&!1;p=(jX(this)||nt(this))&&this.playerStyle==="blazer";this.ri=f?!!f.disableFullscreen:!TX(!0,M.fs);D=g.SA(g.kI(this))&&g.Ps(this);this.Qw=!this.ri&&(p||g.qh())&&!D;this.rM=this.V("html5_picture_in_picture_logging_onresize");var h;this.x8=(h=g.CE(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?h:.33;this.Bz=this.V("html5_picture_in_picture_blocking_onresize");this.s5=this.V("html5_picture_in_picture_blocking_ontimeupdate"); this.lK=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.QS=this.V("html5_picture_in_picture_blocking_standard_api");h=XK()&&ir(58)&&!Nh();p=KH||typeof MediaSource==="undefined";this.QK=this.V("uniplayer_block_pip")&&(h||p)||this.Bz||this.s5||this.QS;h=g.Ps(this)&&!this.tC;var S;f?f.disableRelatedVideos!==void 0&&(S=!f.disableRelatedVideos):S=M.rel;this.N5=h||TX(!this.G,S);this.K6=TX(!1,f?f.enableContentOwnerRelatedVideos:M.co_rel);this.B=Nh()&&FE>0&&FE<=4.4?"_top":"_blank";this.o9= g.bc(this);this.KS=TX(this.playerStyle==="blazer",f?f.enableCsiLogging:M.enablecsi);switch(this.playerStyle){case "blogger":S="bl";break;case "gmail":S="gm";break;case "gac":S="ga";break;case "ads-preview":S="ap";break;case "books":S="gb";break;case "docs":case "flix":S="gd";break;case "duo":S="gu";break;case "google-live":S="gl";break;case "google-one":S="go";break;case "play":S="gp";break;case "chat":S="hc";break;case "hangouts-meet":S="hm";break;case "photos-edu":case "picasaweb":S="pw";break; default:S="yt"}this.Er=S;this.jk=t0("",f?f.authorizedUserIndex:M.authuser);this.oE=g.Ps(this)&&(this.MV||!aIX()||this.YO);var L;f?f.disableWatchLater!==void 0&&(L=!f.disableWatchLater):L=M.showwatchlater;this.Uq=((S=!this.oE)||!!this.jk&&S)&&TX(!this.KJ,this.X?L:void 0);this.qX=f?f.isMobileDevice||!!f.disableKeyboardControls:TX(!1,M.disablekb);this.loop=TX(!1,M.loop);this.pageId=t0("",f?f.initialDelegatedSessionId:M.pageid);this.E2=TX(!0,M.canplaylive);this.l8=TX(!1,M.livemonitor);this.disableSharing= TX(this.G,f?f.disableSharing:M.ss);(L=f&&this.V("fill_video_container_size_override_from_wpcc")?f.videoContainerOverride:M.video_container_override)?(S=L.split("x"),S.length!==2?L=null:(L=Number(S[0]),S=Number(S[1]),L=isNaN(L)||isNaN(S)||L*S<=0?null:new g.za(L,S))):L=null;this.u2=L;this.mute=f?!!f.startMuted:TX(!1,M.mute);this.storeUserVolume=!this.mute&&TX(this.controlsType!=="0",f?f.storeUserVolume:M.store_user_volume);L=f?f.annotationsLoadPolicy:M.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:DD(void 0,L,Ws);this.captionsLanguagePreference=f?f.captionsLanguagePreference||"":t0("",M.cc_lang_pref);L=DD(2,f?f.captionsLanguageLoadPolicy:M.cc_load_policy,Ws);this.controlsType==="3"&&L===2&&(L=3);this.B_=L;this.gb=f?f.hl||"en_US":t0("en_US",M.hl);this.region=f?f.contentRegion||"US":t0("US",M.cr);this.hostLanguage=f?f.hostLanguage||"en":t0("en",M.host_language);this.o_=!this.MV&&Math.random()=480;this.schedule=new qD(p,new dkb(this.experiments),N);g.d(this,this.schedule);var a;this.enableSafetyMode=(a=f==null?void 0:f.initialEnableSafetyMode)!=null? a:TX(!1,M.enable_safety_mode);N=this.ox?!1:jX(this)&&this.playerStyle!=="blazer";var q;f?f.disableAutonav!=null&&(q=!f.disableAutonav):q=M.allow_autonav;this.zj=TX(N,!this.KJ&&q);this.sendVisitorIdHeader=f?!!f.sendVisitorIdHeader:TX(!1,M.send_visitor_id_header);var m;this.playerStyle==="docs"&&(f?m=f.disableNativeContextMenu:m=M.disable_native_context_menu);this.disableNativeContextMenu=TX(!1,m);this.k8=xw(this)&&this.V("enable_skip_intro_button");this.embedConfig=t0("",f?f.serializedEmbedConfig: M.embed_config);this.P7=h0(M,g.Ps(this));this.j=this.P7==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(f==null||!f.embedsErrorLinks);this.ao=TX(!1,M.full_window);var R;this.w_=!((R=this.webPlayerContextConfig)==null?0:R.chromeless);var u;this.livingRoomAppMode=DD("LIVING_ROOM_APP_MODE_UNSPECIFIED",M.living_room_app_mode||(f==null?void 0:(u=f.device)==null?void 0:u.livingRoomAppMode),azf);var z;q=E8(NaN,f==null?void 0:(z=f.device)==null?void 0:z.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground= f?!!f.transparentBackground:TX(!1,M.transparent_background);this.showMiniplayerButton=f?!!f.showMiniplayerButton:TX(!1,M.show_miniplayer_button);var e;g.Ps(this)&&!(f==null?0:(e=f.embedsHostFlags)==null?0:e.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=f?!!f.externalFullscreen:TX(!1,M.external_fullscreen);this.showMiniplayerUiWhenMinimized=f?!!f.showMiniplayerUiWhenMinimized:TX(!1,M.use_miniplayer_ui);var G;this.I8=(G=M.show_loop_video_toggle)!=null?G:!0;this.XA=Math.random()< 1E-4;this.D_=M.onesie_hot_config||(f==null?0:f.onesieHotConfig)?new Az6(M.onesie_hot_config,f==null?void 0:f.onesieHotConfig):void 0;this.isTectonic=f?!!f.isTectonic:!!M.isTectonic;this.playerCanaryState=A;this.playerCanaryStage=f==null?void 0:f.canaryStage;this.R5=new tW0;g.d(this,this.R5);this.datasyncId=(f==null?void 0:f.datasyncId)||g.GR("DATASYNC_ID");this.Fi=g.GR("LOGGED_IN",!1);this.H2=(f==null?void 0:f.allowWoffleManagement)||!1;this.xP=Infinity;this.Ev=NaN;this.livingRoomPoTokenId=f==null? void 0:f.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.OR=!0:this.OR=Math.random()*100=0&&M0&&M.XA&&(Q.sort(),g.$b(new g.GX("Player client parameters changed after startup",Q)));M.userAge=E8(M.userAge,f.user_age);M.wL=t0(M.wL,f.user_display_email);M.userDisplayImage=t0(M.userDisplayImage,f.user_display_image);g.NS(M.userDisplayImage)||(M.userDisplayImage= "");M.userDisplayName=t0(M.userDisplayName,f.user_display_name);M.Ki=t0(M.Ki,f.user_gender);M.csiPageType=t0(M.csiPageType,f.csi_page_type);M.csiServiceName=t0(M.csiServiceName,f.csi_service_name);M.KS=TX(M.KS,f.enablecsi);M.pageId=t0(M.pageId,f.pageid);if(A=f.enabled_engage_types)M.enabledEngageTypes=new Set(A.split(","));f.living_room_session_po_token&&(M.Uw=f.living_room_session_po_token.toString())}; GG=function(M,f){return!M.G&&XK()&&ir(55)&&M.controlsType==="3"&&!f}; g.wt=function(M){M=OH(M.qY);return M==="www.youtube-nocookie.com"?"www.youtube.com":M}; lc=function(M,f,A){return M.protocol+"://i1.ytimg.com/vi/"+f+"/"+(A||"hqdefault.jpg")}; M1=function(M){return jX(M)&&!g.eX(M)}; g.yh=function(M){return M.V("html5_local_playsinline")?Mh&&!g.BB(602)&&!("playsInline"in zk()):Mh&&!M.dU||g.Of("nintendo wiiu")?!0:!1}; g.TG=function(M){return M.K.c}; g.Zs=function(M){return/^TVHTML5/.test(g.TG(M))}; g.fF=function(M){return g.TG(M)==="TVHTML5"}; pHD=function(M){return g.TG(M)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; VWd=function(M){return M.K.cmodel==="CHROMECAST ULTRA/STEAK"||M.K.cmodel==="CHROMECAST/STEAK"}; g.Ad=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; xw=function(M){return/web/i.test(g.TG(M))}; g.Q5=function(M){return g.TG(M).toUpperCase()==="WEB"}; Ja=function(M){return g.TG(M)==="WEB_KIDS"}; g.eX=function(M){return g.TG(M)==="WEB_UNPLUGGED"}; N1=function(M){return g.TG(M)==="TVHTML5_UNPLUGGED"}; g.i7=function(M){return g.eX(M)||g.TG(M)==="TV_UNPLUGGED_CAST"||N1(M)}; g.dA=function(M){return g.TG(M)==="WEB_REMIX"}; g.Ys=function(M){return g.TG(M)==="WEB_EMBEDDED_PLAYER"}; g.T9=function(M){return(M.deviceIsAudioOnly||!g.nU||KH||M.controlsType==="3"?!1:g.Qi?M.C&&g.BB(51):!0)||(M.deviceIsAudioOnly||!g.ft||KH||M.controlsType==="3"?!1:g.Qi?M.C&&g.BB(48):g.BB(38))||(M.deviceIsAudioOnly||!g.uc||KH||M.controlsType==="3"?!1:g.Qi?M.C&&g.BB(37):g.BB(27))||!M.deviceIsAudioOnly&&g.IL&&!cC6()&&g.BB(11)||!M.deviceIsAudioOnly&&g.mH&&g.BB("604.4")}; mKe=function(M){if(g.dt(M)&&$I)return!1;if(g.ft){if(!g.BB(47)||!g.BB(52)&&g.BB(51))return!1}else if(g.mH)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; czd=function(M,f){return M.enabledEngageTypes.has(f.toString())||sqN.includes(f)}; jX=function(M){return M.z0==="detailpage"}; g.dt=function(M){return M.z0==="embedded"}; Dm=function(M){return M.z0==="leanback"}; nt=function(M){return M.z0==="adunit"||M.playerStyle==="gvn"}; g.bc=function(M){return M.z0==="profilepage"}; g.Ps=function(M){return M.C&&g.dt(M)&&!nt(M)&&!M.G}; EA=function(M){if(!M.userDisplayImage)return"";var f=M.userDisplayImage.split("/");if(f.length===5)return M=f[f.length-1].split("="),M[1]="s20-c",f[f.length-1]=M.join("="),f.join("/");if(f.length===8)return f.splice(7,0,"s20-c"),f.join("/");if(f.length===9)return f[7]+="-s20-c",f.join("/");g.$b(new g.GX("Profile image not a FIFE URL.",M.userDisplayImage));return M.userDisplayImage}; g.td=function(M){var f=g.wt(M);RNz.includes(f)&&(f="www.youtube.com");return M.protocol+"://"+f}; g.v5=function(M,f){f=f===void 0?"":f;if(M.ZM){var A=new Yl,Q,N=M.ZM();N.signedOut?Q="":N.token?Q=N.token:N.pendingResult.then(function(Y){N.signedOut?A.resolve(""):A.resolve(Y.token)},function(Y){g.$b(new g.GX("b189348328_oauth_callback_failed",{error:Y})); A.resolve(f)}); return Q!==void 0?n0(Q):new zA(A)}return n0(f)}; pF=function(M,f){f=f===void 0?"":f;return M.Fi?Va(!0):s_(mA(Va(g.v5(M,f)),function(A){return Va(!!A)}),function(){return Va(!1)})}; OH=function(M){var f=g.F(g.RH(M));return(M=Number(g.cP(M)[4]||null)||null)?f+":"+M:f}; hd=function(M,f){f=f===void 0?!1:f;var A=Jk[M],Q=gze[A],N=Bzb[M];if(!N||!Q)return null;f=new k8(f?N.height:N.width,f?N.width:N.height,N.fps);Q=Bx(Q,f,A);return new KU(M,Q,{video:f,DB:N.bitrate/8})}; xKU=function(M){var f=gze[Jk[M]],A=icD[M];return A&&f?new KU(M,f,{audio:new dw(A.audioSampleRate,A.numChannels)}):null}; SH=function(M){this.K=M}; LF=function(M,f,A,Q){if(A)return Pa();A={};var N=zk();f=g.V(f);for(var Y=f.next();!Y.done;Y=f.next())if(Y=Y.value,M.canPlayType(N,Y.getInfo().mimeType)||Q){var I=Y.K.video.quality;if(!A[I]||A[I].getInfo().I5())A[I]=Y}M=[];A.auto&&M.push(A.auto);Q=g.V(W$);for(N=Q.next();!N.done;N=Q.next())(N=A[N.value])&&M.push(N);return M.length?n0(M):Pa()}; ZcD=function(M){this.itag=M.itag;this.url=M.url;this.codecs=M.codecs;this.width=M.width;this.height=M.height;this.fps=M.fps;this.bitrate=M.bitrate;var f;this.Z=((f=M.audioItag)==null?void 0:f.split(","))||[];this.Kr=M.Kr;this.e$=M.e$||"";this.qV=M.qV;this.audioChannels=M.audioChannels;this.K=""}; rz0=function(M,f,A,Q){f=f===void 0?!1:f;A=A===void 0?!0:A;Q=Q===void 0?{}:Q;var N={};M=g.V(M);for(var Y=M.next();!Y.done;Y=M.next()){Y=Y.value;if(f&&MediaSource&&MediaSource.isTypeSupported){var I=Y.type;Y.audio_channels&&(I=I+"; channels="+Y.audio_channels);if(!MediaSource.isTypeSupported(I)){Q[Y.itag]="tpus";continue}}if(A||!Y.drm_families||Y.eotf!=="smpte2084"&&Y.eotf!=="arib-std-b67"){I=void 0;var D={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},E=Y.type.match(/codecs="([^"]*)"/); E=E?E[1]:"";Y.audio_track_id&&(I=new g.q6(Y.name,Y.audio_track_id,!!Y.is_default));var t=Y.eotf;Y=new ZcD({itag:Y.itag,url:Y.url,codecs:E,width:Number(Y.width),height:Number(Y.height),fps:Number(Y.fps),bitrate:Number(Y.bitrate),audioItag:Y.audio_itag,Kr:t?D[t]:void 0,e$:Y.drm_families,qV:I,audioChannels:Number(Y.audio_channels)});N[Y.itag]=N[Y.itag]||[];N[Y.itag].push(Y)}else Q[Y.itag]="enchdr"}return N}; u2X=function(M,f,A,Q,N){this.j=M;this.Z=f;this.N=A;this.cpn=Q;this.G=N;this.C=0;this.K=""}; zNz=function(M,f){M.j.some(function(A){var Q;return((Q=A.qV)==null?void 0:Q.getId())===f}); M.K=f}; oL=function(M,f,A){M.cpn&&(f=g.uj(f,{cpn:M.cpn}));A&&(f=g.uj(f,{paired:A}));return f}; P9N=function(M,f){M=M.itag.toString();f!==null&&(M+=f.itag.toString());return M}; nzz=function(M){for(var f=[],A=[],Q=g.V(M.Z),N=Q.next();!N.done;N=Q.next())N=N.value,N.bitrate<=M.C?f.push(N):A.push(N);f.sort(function(Y,I){return I.bitrate-Y.bitrate}); A.sort(function(Y,I){return Y.bitrate-I.bitrate}); M.Z=f.concat(A)}; CF=function(M,f,A){this.K=M;this.Z=f;this.expiration=A;this.HX=null}; jqX=function(M,f){if(!(KH||wy()||K0()))return null;M=rz0(f,M.V("html5_filter_fmp4_in_hls"));if(!M)return null;f=[];for(var A={},Q=g.V(Object.keys(M)),N=Q.next();!N.done;N=Q.next()){N=g.V(M[N.value]);for(var Y=N.next();!Y.done;Y=N.next()){var I=Y.value;I.qV&&(Y=I.qV.getId(),A[Y]||(I=new g.S2(Y,I.qV),A[Y]=I,f.push(I)))}}return f.length>0?f:null}; eNb=function(M,f,A,Q,N,Y,I){if(!(KH||wy()||K0()))return Pa();var D={},E=$K9(A),t=rz0(A,M.V("html5_filter_fmp4_in_hls"),M.N.W,D);if(!t)return I({noplst:1}),Pa();F3z(t);A={};var v=(A.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",A),p;A=[];var h=[],S=[],L=null,a="";Q=Q&&Q.match(/hls_timedtext_playlist/)?new ZcD({itag:"0",url:Q,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,qV:new g.q6("English","en",!1)}):null;for(var q=g.V(Object.keys(t)),m=q.next();!m.done;m=q.next())if(m=m.value,!M.V("html5_disable_drm_hfr_1080")|| m!=="383"&&m!=="373"){m=g.V(t[m]);for(var R=m.next();!R.done;R=m.next())if(R=R.value,R.width){for(var u=g.V(R.Z),z=u.next();!z.done;z=u.next())if(z=z.value,t[z]){R.K=z;break}R.K||(R.K=yzz(t,R));if(u=t[R.K])if(A.push(R),R.e$==="fairplay"&&(p=v),z="",R.Kr==="PQ"?z="smpte2084":R.Kr==="HLG"&&(z="arib-std-b67"),z&&(a=z),S.push(dKz(u,[R],Q,Y,R.itag,R.width,R.height,R.fps,E,void 0,void 0,p,z)),!L||R.width*R.height*R.fps>L.width*L.height*L.fps)L=R}else h.push(R)}else D[m]="disdrmhfr";S.reduce(function(e, G){return G.getInfo().isEncrypted()&&e},!0)&&(p=v); N=Math.max(N,0);v=L||{};t=v.fps===void 0?0:v.fps;L=v.width===void 0?0:v.width;v=v.height===void 0?0:v.height;q=M.V("html5_native_audio_track_switching");S.push(dKz(h,A,Q,Y,"93",L,v,t,E,"auto",N,p,a,q));Object.entries(D).length&&I(D);return LF(M.N,S,GG(M,f),!1)}; dKz=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S){for(var L=0,a="",q=g.V(M),m=q.next();!m.done;m=q.next())m=m.value,a||(a=m.itag),m.audioChannels&&m.audioChannels>L&&(L=m.audioChannels,a=m.itag);N=new KU(N,"application/x-mpegURL",{audio:new dw(0,L),video:new k8(Y,I,D,null,void 0,t,void 0,h),e$:p,oH:a});M=new u2X(M,f,A?[A]:[],Q,!!S);M.C=v?v:1369843;return new CF(N,M,E)}; $K9=function(M){M=g.V(M);for(var f=M.next();!f.done;f=M.next())if(f=f.value,f.url&&(f=f.url.split("expire/"),!(f.length<=1)))return+f[1].split("/")[0];return NaN}; yzz=function(M,f){for(var A=g.V(Object.keys(M)),Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var N=M[Q][0];if(!N.width&&N.e$===f.e$&&!N.audioChannels)return Q}return""}; F3z=function(M){for(var f=new Set,A=g.V(Object.values(M)),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.length&&(Q=Q[0],Q.height&&Q.codecs.startsWith("vp09")&&f.add(Q.height));A=[];if(f.size){Q=g.V(Object.keys(M));for(var N=Q.next();!N.done;N=Q.next())if(N=N.value,M[N].length){var Y=M[N][0];Y.height&&f.has(Y.height)&&!Y.codecs.startsWith("vp09")&&A.push(N)}}f=g.V(A);for(A=f.next();!A.done;A=f.next())delete M[A.value]}; UA=function(M,f){this.K=M;this.Z=f}; bc6=function(M,f,A,Q){var N=[];A=g.V(A);for(var Y=A.next();!Y.done;Y=A.next()){var I=Y.value;if(I.url){Y=new g.zN(I.url,!0);if(I.s){var D=Y,E=I.sp,t=eOD(decodeURIComponent(I.s));D[T[43]](E,encodeURIComponent(t))}D=g.V(Object.keys(Q));for(E=D.next();!E.done;E=D.next())E=E.value,Y.set(E,Q[E]);I=Es(I.type,I.quality,I.itag,I.width,I.height);N.push(new UA(I,Y))}}return LF(M.N,N,GG(M,f),!1)}; V5=function(M,f){this.K=M;this.Z=f}; kSt=function(M,f,A){var Q=[];A=g.V(A);for(var N=A.next();!N.done;N=A.next())if((N=N.value)&&N.url){var Y=Es(N.type,"medium","0");Q.push(new V5(Y,N.url))}return LF(M.N,Q,GG(M,f),!1)}; W3X=function(M,f){var A=[],Q=Es(f.type,"auto",f.itag);A.push(new V5(Q,f.url));return LF(M.N,A,!1,!0)}; XH0=function(M){return M&&Ocz[M]?Ocz[M]:null}; Jzf=function(M){switch(M){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":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 M;default:return"sabr.config"}}; K3N=function(M){if(M=M.commonConfig)this.url=M.url,this.urlQueryOverride=M.urlQueryOverride,M.ustreamerConfig&&(this.yb=SX(M.ustreamerConfig)||void 0)}; GS0=function(M,f){var A;if(f=f==null?void 0:(A=f.watchEndpointSupportedOnesieConfig)==null?void 0:A.html5PlaybackOnesieConfig)M.M9=new K3N(f)}; g.aL=function(M){M=M===void 0?{}:M;this.languageCode=M.languageCode||"";this.languageName=M.languageName||null;this.kind=M.kind||"";this.name=M.name===void 0?null:M.name;this.displayName=M.displayName||null;this.id=M.id||null;this.K=M.is_servable||!1;this.isTranslateable=M.is_translateable||!1;this.url=M.url||null;this.vssId=M.vss_id||"";this.isDefault=M.is_default||!1;this.translationLanguage=M.translationLanguage||null;this.xtags=M.xtags||"";this.captionId=M.captionId||""}; g.H5=function(M){var f={languageCode:M.languageCode,languageName:M.languageName,displayName:g.q1(M),kind:M.kind,name:M.name,id:M.id,is_servable:M.K,is_default:M.isDefault,is_translateable:M.isTranslateable,vss_id:M.vssId};M.xtags&&(f.xtags=M.xtags);M.captionId&&(f.captionId=M.captionId);M.translationLanguage&&(f.translationLanguage=M.translationLanguage);return f}; g.m2=function(M){return M.translationLanguage?M.translationLanguage.languageCode:M.languageCode}; g.wHf=function(M){var f=M.vssId;M.translationLanguage&&f&&(f="t"+f+"."+g.m2(M));return f}; g.q1=function(M){var f=[];if(M.displayName)f.push(M.displayName);else{var A=M.languageName||"";f.push(A);M.kind==="asr"&&A.indexOf("(")===-1&&f.push(" (Automatic Captions)");M.name&&f.push(" - "+M.name)}M.translationLanguage&&f.push(" >> "+M.translationLanguage.languageName);return f.join("")}; Aeb=function(M,f,A,Q){M||(M=f&&lzz.hasOwnProperty(f)&&MP0.hasOwnProperty(f)?MP0[f]+"_"+lzz[f]:void 0);f=M;if(!f)return null;M=f.match(fO9);if(!M||M.length!==5)return null;if(M=f.match(fO9)){var N=Number(M[3]),Y=[7,8,10,5,6];M=!(Number(M[1])===1&&N===8)&&Y.indexOf(N)>=0}else M=!1;return A||Q||M?f:null}; sA=function(M,f){for(var A={},Q=g.V(Object.keys(Qvb)),N=Q.next();!N.done;N=Q.next()){N=N.value;var Y=f?f+N:N;Y=M[Y+"_webp"]||M[Y];g.NS(Y)&&(A[Qvb[N]]=Y)}return A}; c5=function(M){var f={};if(!M||!M.thumbnails)return f;M=M.thumbnails.filter(function(D){return!!D.url}); M.sort(function(D,E){return D.width-E.width||D.height-E.height}); for(var A=g.V(Object.keys(NO9)),Q=A.next();!Q.done;Q=A.next()){var N=Number(Q.value);Q=NO9[N];for(var Y=g.V(M),I=Y.next();!I.done;I=Y.next())if(I=I.value,I.width>=N){N=YEt(I.url);g.NS(N)&&(f[Q]=N);break}}(M=M.pop())&&M.width>=1280&&(M=YEt(M.url),g.NS(M)&&(f["maxresdefault.jpg"]=M));return f}; YEt=function(M){return M.startsWith("//")?"https:"+M:M}; RL=function(M){return M&&M.baseUrl||""}; gq=function(M){M=g.TA(M);for(var f=g.V(Object.keys(M)),A=f.next();!A.done;A=f.next()){A=A.value;var Q=M[A];M[A]=Array.isArray(Q)?Q[0]:Q}return M}; IO0=function(M,f){M.botguardData=f.playerAttestationRenderer.botguardData;f=f.playerAttestationRenderer.challenge;f!=null&&(M.Ph=f)}; EGf=function(M,f){f=g.V(f);for(var A=f.next();!A.done;A=f.next()){A=A.value;var Q=A.interstitials.map(function(I){var D=g.b(I,TO0);if(D)return{is_yto_interstitial:!0,raw_player_response:D};if(I=g.b(I,DHb))return Object.assign({is_yto_interstitial:!0},Yy(I))}); Q=g.V(Q);for(var N=Q.next();!N.done;N=Q.next())switch(N=N.value,A.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":M.interstitials=M.interstitials.concat({time:0,playerVars:N,e4:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":M.interstitials=M.interstitials.concat({time:0x7ffffffffffff,playerVars:N,e4:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var Y=Number(A.podConfig.timeToInsertAtMillis);M.interstitials=M.interstitials.concat({time:Y,playerVars:N, e4:Y===0?5:7})}}}; tPN=function(M,f){if(f=f.find(function(A){return!(!A||!A.tooltipRenderer)}))M.tooltipRenderer=f.tooltipRenderer}; vGN=function(M,f){f.subscribeCommand&&(M.subscribeCommand=f.subscribeCommand);f.unsubscribeCommand&&(M.unsubscribeCommand=f.unsubscribeCommand);f.addToWatchLaterCommand&&(M.addToWatchLaterCommand=f.addToWatchLaterCommand);f.removeFromWatchLaterCommand&&(M.removeFromWatchLaterCommand=f.removeFromWatchLaterCommand);f.getSharePanelCommand&&(M.getSharePanelCommand=f.getSharePanelCommand)}; prN=function(M,f){f!=null?(M.Xt=f,M.XR=!0):(M.Xt="",M.XR=!1)}; B5=function(M,f){this.type=M||"";this.id=f||""}; g.iS=function(M){return new B5(M.substring(0,2),M.substring(2))}; g.xs=function(M,f){this.i8=M;this.author="";this.PM=null;this.playlistLength=0;this.K=this.sessionData=null;this.X={};this.title="";if(f){this.author=f.author||f.playlist_author||"";this.title=f.playlist_title||"";if(M=f.session_data)this.sessionData=Qn(M,"&");var A;this.K=((A=f.thumbnail_ids)==null?void 0:A.split(",")[0])||null;this.X=sA(f,"playlist_");this.videoId=f.video_id||void 0;if(A=f.list)switch(f.listType){case "user_uploads":this.playlistId=(new B5("UU","PLAYER_"+A)).toString();break;default:if(M= f.playlist_length)this.playlistLength=Number(M)||0;this.playlistId=g.iS(A).toString();if(f=f.video)this.videoId=(f[0]||null).video_id||void 0}else f.playlist&&(this.playlistLength=f.playlist.toString().split(",").length)}}; g.Zm=function(M,f){this.i8=M;this.EK=this.author="";this.PM=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Bb=this.lengthText="";this.sessionData=null;this.X={};this.title="";if(f){this.ariaLabel=f.aria_label||void 0;this.author=f.author||"";this.EK=f.EK||"";if(M=f.endscreen_autoplay_session_data)this.PM=Qn(M,"&");this.iY=f.iY;this.isLivePlayback=f.live_playback==="1";this.isUpcoming=!!f.isUpcoming;if(M=f.length_seconds)this.lengthSeconds=typeof M==="string"?Number(M):M;this.lengthText= f.lengthText||"";this.Bb=f.Bb||"";this.publishedTimeText=f.publishedTimeText||void 0;if(M=f.session_data)this.sessionData=Qn(M,"&");this.shortViewCount=f.short_view_count_text||void 0;this.X=sA(f);this.title=f.title||"";this.videoId=f.docid||f.video_id||f.videoId||f.id||void 0;this.watchUrl=f.watchUrl||void 0}}; hqT=function(M){var f,A,Q=(f=M.getWatchNextResponse())==null?void 0:(A=f.contents)==null?void 0:A.twoColumnWatchNextResults,N,Y,I,D,E;M=(N=M.getWatchNextResponse())==null?void 0:(Y=N.playerOverlays)==null?void 0:(I=Y.playerOverlayRenderer)==null?void 0:(D=I.endScreen)==null?void 0:(E=D.watchNextEndScreenRenderer)==null?void 0:E.results;if(!M){var t,v;M=Q==null?void 0:(t=Q.endScreen)==null?void 0:(v=t.endScreen)==null?void 0:v.results}return M}; g.uS=function(M){var f,A,Q;M=g.b((f=M.getWatchNextResponse())==null?void 0:(A=f.playerOverlays)==null?void 0:(Q=A.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,rq);return g.b(M==null?void 0:M.playerBar,SE0)}; Lt0=function(M){this.K=M.playback_progress_0s_url;this.j=M.playback_progress_2s_url;this.Z=M.playback_progress_10s_url}; oG0=function(){if(z9===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(f){}a:{try{var M=!!self.localStorage}catch(f){M=!1}if(M&&(M=g.yI(g.w$()+"::yt-player"))){z9=new bM(M);break a}z9=void 0}}return z9}; g.P5=function(){var M=oG0();if(!M)return{};try{var f=M.get("yt-player-lv");return JSON.parse(f||"{}")}catch(A){return{}}}; g.CFX=function(M){var f=oG0();f&&(M=JSON.stringify(M),f.set("yt-player-lv",M))}; g.nF=function(M){return g.P5()[M]||0}; g.jH=function(M,f){var A=g.P5();f!==A[M]&&(f!==0?A[M]=f:delete A[M],g.CFX(A))}; g.$s=function(M){return g.n(function(f){return f.return(g.OL(UHe(),M))})}; y5=function(M,f,A,Q,N,Y,I,D){var E,t,v,p,h,S;return g.n(function(L){switch(L.Z){case 1:return E=g.nF(M),E===4?L.return(4):g.r(L,g.fr(),2);case 2:t=L.K;if(!t)throw g.cY("wiac");if(!D||I===void 0){L.CJ(3);break}return g.r(L,VPN(D,I),4);case 4:I=L.K;case 3:return v=A.lastModified||"0",g.r(L,g.$s(t),5);case 5:return p=L.K,g.HX(L,6),Fw++,g.r(L,g.zf(p,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",gq:!0},function(a){if(Y!==void 0&&I!==void 0){var q=""+M+"|"+f.id+"|"+v+"|"+String(Y).padStart(10, "0");q=g.PY(a.objectStore("media"),I,q)}else q=g.gX.resolve(void 0);var m=aOU(M,f.Tj()),R=aOU(M,!f.Tj()),u={fmts:qEd(Q),format:A||{}};m=g.PY(a.objectStore("index"),u,m);var z=Q.downloadedEndTime===-1;u=z?a.objectStore("index").get(R):g.gX.resolve(void 0);var e={fmts:"music",format:{}};a=z&&N&&!f.Tj()?g.PY(a.objectStore("index"),e,R):g.gX.resolve(void 0);return g.gX.all([a,u,q,m]).then(function(G){G=g.V(G);G.next();G=G.next().value;Fw--;var X=g.nF(M);if(X!==4&&z&&N||G!==void 0&&g.Hdd(G.fmts))X=1,g.jH(M, X);return X})}),8); case 8:return L.return(L.K);case 6:h=g.id(L);Fw--;S=g.nF(M);if(S===4)return L.return(S);g.jH(M,4);throw h;}})}; g.mHU=function(M){var f,A;return g.n(function(Q){if(Q.Z==1)return g.r(Q,g.fr(),2);if(Q.Z!=3){f=Q.K;if(!f)throw g.cY("ri");return g.r(Q,g.$s(f),3)}A=Q.K;return Q.return(g.zf(A,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(N){var Y=IDBKeyRange.bound(M+"|",M+"~");return N.objectStore("index").getAll(Y).then(function(I){return I.map(function(D){return D?D.format:{}})})}))})}; cez=function(M,f,A,Q,N){var Y,I,D;return g.n(function(E){if(E.Z==1)return g.r(E,g.fr(),2);if(E.Z!=3){Y=E.K;if(!Y)throw g.cY("rc");return g.r(E,g.$s(Y),3)}I=E.K;D=g.zf(I,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(t){var v=""+M+"|"+f+"|"+A+"|"+String(Q).padStart(10,"0");return t.objectStore("media").get(v)}); return N?E.return(D.then(function(t){if(t===void 0)throw Error("No data from indexDb");return sv9(N,t)}).catch(function(t){throw new g.GX("Error while reading chunk: "+t.name+", "+t.message); })):E.return(D)})}; g.Hdd=function(M){return M?M==="music"?!0:M.includes("dlt=-1")||!M.includes("dlt="):!1}; aOU=function(M,f){return""+M+"|"+(f?"v":"a")}; qEd=function(M){var f={};return NR((f.dlt=M.downloadedEndTime.toString(),f.mket=M.maxKnownEndTime.toString(),f.avbr=M.averageByteRate.toString(),f))}; gGD=function(M){var f={},A={};M=g.V(M);for(var Q=M.next();!Q.done;Q=M.next()){var N=Q.value,Y=N.split("|");N.match(g.Rq9)?(Q=Number(Y.pop()),isNaN(Q)?A[N]="?":(Y=Y.join("|"),(N=f[Y])?(Y=N[N.length-1],Q===Y.end+1?Y.end=Q:N.push({start:Q,end:Q})):f[Y]=[{start:Q,end:Q}])):A[N]="?"}M=g.V(Object.keys(f));for(Q=M.next();!Q.done;Q=M.next())Q=Q.value,A[Q]=f[Q].map(function(I){return I.start+"-"+I.end}).join(","); return A}; dq=function(M){g.pi.call(this);this.K=null;this.j=new br;this.K=null;this.G=new Set;this.crossOrigin=M||""}; BOD=function(M,f,A){for(A=eH(M,A);A>=0;){var Q=M.levels[A];if(Q.isLoaded(bS(Q,f))&&(Q=g.ks(Q,f)))return Q;A--}return g.ks(M.levels[0],f)}; xHe=function(M,f,A){A=eH(M,A);for(var Q,N;A>=0;A--)if(Q=M.levels[A],N=bS(Q,f),!Q.isLoaded(N)){Q=M;var Y=A,I=Y+"-"+N;Q.G.has(I)||(Q.G.add(I),Q.j.enqueue(Y,{rP:Y,mC:N}))}idb(M)}; idb=function(M){if(!M.K&&!M.j.isEmpty()){var f=g.F(M.j.remove());M.K=ZdD(M,f)}}; ZdD=function(M,f){var A=document.createElement("img");M.crossOrigin&&(A.crossOrigin=M.crossOrigin);A.src=M.levels[f.rP].mf(f.mC);A.onload=function(){var Q=f.rP,N=f.mC;M.K!==null&&(M.K.onload=null,M.K=null);Q=M.levels[Q];Q.loaded.add(N);idb(M);var Y=Q.columns*Q.rows;N*=Y;Q=Math.min(N+Y-1,Q.Dz()-1);N=[N,Q];M.publish("l",N[0],N[1])}; return A}; g.W5=function(M,f,A,Q){this.level=M;this.C=f;this.loaded=new Set;this.level=M;this.C=f;M=A.split("#");this.width=Math.floor(Number(M[0]));this.height=Math.floor(Number(M[1]));this.frameCount=Math.floor(Number(M[2]));this.columns=Math.floor(Number(M[3]));this.rows=Math.floor(Number(M[4]));this.K=Math.floor(Number(M[5]));this.j=M[6];this.signature=M[7];this.videoLength=Q}; bS=function(M,f){return Math.floor(f/(M.columns*M.rows))}; g.ks=function(M,f){f>=M.WF()&&M.mS();var A=bS(M,f),Q=M.columns*M.rows,N=f%Q;f=N%M.columns;N=Math.floor(N/M.columns);var Y=M.mS()+1-Q*A;if(Y1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; re6=function(M,f,A){return(M=M.levels[f])?M.AB(A):-1}; eH=function(M,f){var A=M.C.get(f);if(A)return A;A=M.levels.length;for(var Q=0;Q=f)return M.C.set(f,Q),Q;M.C.set(f,A-1);return A-1}; Xw=function(M,f,A,Q){A=A.split("#");A=[A[1],A[2],0,A[3],A[4],-1,A[0],""].join("#");g.W5.call(this,M,f,A,0);this.Z=null;this.N=Q?2:0}; Jd=function(M,f,A,Q){OA.call(this,M,0,void 0,f,!(Q===void 0||!Q));for(M=0;M(A!=null?A:50)&&(A=dHt.shift())&&fk.delete(A),A=N),N!==A&&M.Z4("ssei","dcpn_"+N+"_"+A+"_"+M.clientPlaybackNonce),A)}; lS=function(M,f){var A=f.raw_watch_next_response;if(!A){var Q=f.watch_next_response;Q&&(A=JSON.parse(Q))}if(A){M.z0=A;var N=M.z0.playerCueRangeSet;N&&g.Ag(M,N);var Y=M.z0.playerOverlays;if(Y){var I=Y.playerOverlayRenderer;if(I){var D=I.autonavToggle;D&&(M.autoplaySwitchButtonRenderer=g.b(D,eqU),M.V("web_player_autonav_use_server_provided_state")&&Qm(M)&&(M.autonavState=M.autoplaySwitchButtonRenderer.enabled?2:1));var E=I.videoDetails;if(E){var t=E.embeddedPlayerOverlayVideoDetailsRenderer;var v=E.playerOverlayVideoDetailsRenderer; v&&(v.title&&(f.title=g.ae(v.title)),v.subtitle&&(f.subtitle=g.ae(v.subtitle)))}g.dt(M.i8)&&(M.Uq=!!I.addToMenu);bdt(M,I.shareButton);I.startPosition&&I.endPosition&&(M.progressBarStartPosition=I.startPosition,M.progressBarEndPosition=I.endPosition);var p=I.gatedActionsOverlayRenderer;p&&(M.Iu=g.b(p,kLf));var h,S,L,a=g.b((h=M.getWatchNextResponse())==null?void 0:(S=h.playerOverlays)==null?void 0:(L=S.playerOverlayRenderer)==null?void 0:L.infoPanel,WtD);if(a){M.zD=Number(a==null?void 0:a.durationMs)|| NaN;if(a==null?0:a.infoPanelOverviewViewModel)M.SO=a==null?void 0:a.infoPanelOverviewViewModel;if(a==null?0:a.infoPanelDetailsViewModel)M.Ev=a==null?void 0:a.infoPanelDetailsViewModel}M.showSeekingControls=!!I.showSeekingControls}}var q,m,R=(q=M.getWatchNextResponse())==null?void 0:(m=q.contents)==null?void 0:m.twoColumnWatchNextResults;if(R){var u=R.desktopOverlay&&g.b(R.desktopOverlay,OdU);u&&(u.suppressShareButton&&(M.showShareButton=!1),u.suppressWatchLaterButton&&(M.Uq=!1))}t&&Xrf(M,f,t);var z= E8(0,f.autoplay_count),e=g.F(M.getWatchNextResponse()),G,X=(G=e.contents)==null?void 0:G.twoColumnWatchNextResults,Qt,Y9,Mc,E0=(Qt=e.playerOverlays)==null?void 0:(Y9=Qt.playerOverlayRenderer)==null?void 0:(Mc=Y9.autoplay)==null?void 0:Mc.playerOverlayAutoplayRenderer,w=hqT(M),m6,BX=(m6=e.contents)==null?void 0:m6.singleColumnWatchNextResults;if(BX){var WX;if(((WX=BX.autoplay)==null?0:WX.autoplay)&&!BX.playlist){var g7=BX.autoplay.autoplay.sets,vK={},x9=new g.Zm(M.T()),gD=null,TC;if(g7){for(var H= g.V(g7),DU=H.next();!DU.done;DU=H.next()){var JB=DU.value.autoplayVideoRenderer;if(JB&&JB.compactVideoRenderer){gD=JB.compactVideoRenderer;break}}if(TC=g7[0].autoplayVideo){var sI=TC.clickTrackingParams;sI&&(vK.itct=sI);vK.autonav="1";vK.playnext=String(z)}}else vK.feature="related-auto";var Zv=g.b(TC,g.N5);if(gD){x9.videoId=gD.videoId;var UB=gD.shortBylineText;UB&&(x9.author=g.ae(UB));var FT=gD.title;FT&&(x9.title=g.ae(FT))}else Zv!=null&&Zv.videoId&&(x9.videoId=Zv.videoId);x9.PM=vK;M.suggestions= [];M.K6=x9}}if(w){for(var jw=[],r7=g.V(w),B=r7.next();!B.done;B=r7.next()){var x=B.value,Z=void 0,P=null;if(x.endScreenVideoRenderer){var k=x.endScreenVideoRenderer,cX=k.title;P=new g.Zm(M.T());P.videoId=k.videoId;P.lengthSeconds=k.lengthInSeconds||0;var Ab=k.publishedTimeText;Ab&&(P.publishedTimeText=g.ae(Ab));var af=k.shortBylineText;af&&(P.author=g.ae(af));var Nc=k.shortViewCountText;Nc&&(P.shortViewCount=g.ae(Nc));if(cX){P.title=g.ae(cX);var rD=cX.accessibility;if(rD){var ld=rD.accessibilityData; ld&&ld.label&&(P.ariaLabel=ld.label)}}var cK=k.navigationEndpoint;if(cK){Z=cK.clickTrackingParams;var cT=g.b(cK,g.N5),zO=g.b(cK,g.db);cT?P.iY=cT:zO!=null&&(P.watchUrl=zO.url)}var Op=k.thumbnailOverlays;if(Op)for(var X9=g.V(Op),Xh=X9.next();!Xh.done;Xh=X9.next()){var H1=Xh.value.thumbnailOverlayTimeStatusRenderer;if(H1)if(H1.style==="LIVE"){P.isLivePlayback=!0;break}else if(H1.style==="UPCOMING"){P.isUpcoming=!0;break}}P.X=c5(k.thumbnail)}else if(x.endScreenPlaylistRenderer){var hT=x.endScreenPlaylistRenderer, Zp=hT.navigationEndpoint;if(!Zp)continue;var V4=g.b(Zp,g.N5);if(!V4)continue;var rr=V4.videoId;P=new g.xs(M.T());P.playlistId=hT.playlistId;P.playlistLength=Number(hT.videoCount)||0;P.K=rr||null;P.videoId=rr;var OY=hT.title;OY&&(P.title=g.ae(OY));var XJ=hT.shortBylineText;XJ&&(P.author=g.ae(XJ));Z=Zp.clickTrackingParams;P.X=c5(hT.thumbnail)}P&&(Z&&(P.sessionData={itct:Z}),jw.push(P))}M.suggestions=jw}if(E0){M.tp=!!E0.preferImmediateRedirect;M.N5=M.N5||!!E0.webShowNewAutonavCountdown;M.d5=M.d5||!!E0.webShowBigThumbnailEndscreen; if(M.N5||M.d5){var gv=X||null,I9=new g.Zm(M.T());I9.videoId=E0.videoId;var J6=E0.videoTitle;if(J6){I9.title=g.ae(J6);var DL=J6.accessibility;if(DL){var BL=DL.accessibilityData;BL&&BL.label&&(I9.ariaLabel=BL.label)}}var OG=E0.byline;OG&&(I9.author=g.ae(OG));var UI=E0.publishedTimeText;UI&&(I9.publishedTimeText=g.ae(UI));var cM=E0.shortViewCountText;cM&&(I9.shortViewCount=g.ae(cM));var Rg=E0.thumbnailOverlays;if(Rg)for(var gh=g.V(Rg),IY=gh.next();!IY.done;IY=gh.next()){var pz=IY.value.thumbnailOverlayTimeStatusRenderer; if(pz)if(pz.style==="LIVE"){I9.isLivePlayback=!0;break}else if(pz.style==="UPCOMING"){I9.isUpcoming=!0;break}else if(pz.style==="DEFAULT"&&pz.text){I9.lengthText=g.ae(pz.text);var BM=pz.text.accessibility;if(BM){var TK=BM.accessibilityData;TK&&TK.label&&(I9.Bb=TK.label||"")}break}}I9.X=c5(E0.background);var iC=E0.nextButton;if(iC){var x$=iC.buttonRenderer;if(x$){var ZH=x$.navigationEndpoint;if(ZH){var rh=g.b(ZH,g.N5);rh&&(I9.iY=rh)}}}if(E0.topBadges){var uC=E0.topBadges[0];if(uC){var zb=g.b(uC,JeU); zb&&zb.style==="BADGE_STYLE_TYPE_PREMIUM"&&(I9.EZY=!0)}}var DF=E0.alternativeTitle;DF&&(I9.EK=g.ae(DF));var ia={autonav:"1",playnext:String(z)};I9.playlistId&&(ia.autoplay="1");if(gv){var EX,bP,Du,PM,E7=(EX=gv.autoplay)==null?void 0:(bP=EX.autoplay)==null?void 0:(Du=bP.sets)==null?void 0:(PM=Du[0])==null?void 0:PM.autoplayVideo;if(E7){var nO=E7.clickTrackingParams;nO&&(ia.itct=nO);var tH=g.b(E7,g.N5);tH&&(I9.Wn=tH)}}else if(E0){var jr,$$,Fq,yj=(jr=E0.nextButton)==null?void 0:($$=jr.buttonRenderer)== null?void 0:(Fq=$$.navigationEndpoint)==null?void 0:Fq.clickTrackingParams;yj&&(ia.itct=yj)}ia.itct||(ia.feature="related-auto");I9.PM=ia;M.suggestions||(M.suggestions=[]);M.K6=I9}E0.countDownSecs!=null&&(M.qx=E0.countDownSecs*1E3);E0.countDownSecsForFullscreen!=null&&(M.AZ=E0.countDownSecsForFullscreen>=0?E0.countDownSecsForFullscreen*1E3:-1);M.V("web_autonav_color_transition")&&E0.watchToWatchTransitionRenderer&&(M.watchToWatchTransitionRenderer=g.b(E0.watchToWatchTransitionRenderer,Ktd))}var v9= hqT(M);if(v9){var Vf,dh,pp,hH=v9==null?void 0:(Vf=v9[0])==null?void 0:(dh=Vf.endScreenVideoRenderer)==null?void 0:(pp=dh.navigationEndpoint)==null?void 0:pp.clickTrackingParams,er=g.Y_(M);hH&&er&&(er.sessionData={itct:hH})}M.z0.currentVideoThumbnail&&(M.X=c5(M.z0.currentVideoThumbnail));var tU,bC,k$,vj,WM,aV=(tU=M.z0)==null?void 0:(bC=tU.contents)==null?void 0:(k$=bC.twoColumnWatchNextResults)==null?void 0:(vj=k$.results)==null?void 0:(WM=vj.results)==null?void 0:WM.contents;if(aV&&aV[1]){var Os, Xq,x6,Fc,Jp=(Os=aV[1].videoSecondaryInfoRenderer)==null?void 0:(Xq=Os.owner)==null?void 0:(x6=Xq.videoOwnerRenderer)==null?void 0:(Fc=x6.thumbnail)==null?void 0:Fc.thumbnails;Jp&&Jp.length&&(M.profilePicture=Jp[Jp.length-1].url)}var JE=pM(f),Sh,qn=(Sh=M.getWatchNextResponse())==null?void 0:Sh.onResponseReceivedEndpoints;if(qn)for(var Hy=g.V(qn),Lp=Hy.next();!Lp.done;Lp=Hy.next()){var KS=Lp.value;g.b(KS,IJ)&&(M.d0=g.b(KS,IJ));var mV=g.b(KS,GLb),KO=void 0;if((KO=mV)==null?0:KO.entityKeys)M.vt=mV.entityKeys|| [],mV.visibleOnLoadKeys&&(M.visibleOnLoadKeys=mV.visibleOnLoadKeys)}if(M.V("web_key_moments_markers")){var hU=g.Te.getState().entities,S_=g.fZ("visibility_override","markersVisibilityOverrideEntity");var XQ=Qd(hU,"markersVisibilityOverrideEntity",S_);M.w_=(XQ==null?void 0:XQ.videoId)===(M.videoId||JE)&&(XQ==null?0:XQ.visibilityOverrideMarkersKey)?XQ.visibilityOverrideMarkersKey:M.visibleOnLoadKeys;M.visibleOnLoadKeys=[].concat(g.c(M.w_))}}}; Qm=function(M){var f;return((f=M.autoplaySwitchButtonRenderer)==null?void 0:f.enabled)!==void 0}; Dt=function(M){return!!(M.j&&M.j.videoInfos&&M.j.videoInfos.length)}; g.hg=function(M){var f=M.W;M.V("html5_gapless_unlimit_format_selection")&&Em(M)&&(f=!1);var A=!!M.K&&M.K.U$,Q=M.i8,N=M.tJ(),Y=tg(M),I=M.YO,D=f,E=M.isOtf();f=M.lP();var t=M.l8,v=M.getUserAudio51Preference(),p=vu(M),h=new rme(Q);if(Q.cX()||Q.V("html5_logging_format_selection"))h.Z=!0;h.nJ=Y;h.YO=I&&Q.X;h.P7=v;g.Of("windows nt 5.1")&&!g.ft&&(h.k9=!0);if(Y=N)Y=g.T9(Q)?mKe(Q):!1;Y&&(h.Er=!0);D&&(h.k9=!0,h.MV=!0);E&&!Q.V("html5_otf_prefer_vp9")&&(h.k9=!0);Q.playerStyle==="picasaweb"&&(E&&(h.k9=!1),h.KJ= !1);t&&(h.k9=!0);rY(Q.N,uo.CHANNELS)&&(Q.V("html5_enable_ac3")&&(h.C=!0),Q.V("html5_enable_eac3")&&(h.N=!0),Q.V("html5_enable_ac3_gapless")&&(h.z0=!0));Q.V("html5_block_8k_hfr")&&(h.Ji=!0);h.G=g.CE(Q.experiments,"html5_max_selectable_quality_ordinal");h.W=g.CE(Q.experiments,"html5_min_selectable_quality_ordinal");rt&&(h.oE=480);if(A||N)h.KJ=!1;h.w_=!1;h.disableAv1=p;A=Wx(Q,h.K,void 0,h.disableAv1);A>0&&A<2160&&(mP()||Q.V("html5_format_hybridization"))&&(h.K.supportsChangeType=+mP(),h.nK=A);A>=2160&& (h.jk=!0);GQz()&&(h.K.serveVp9OverAv1IfHigherRes=0,h.xp=!1);h.lP=f;h.fJ=g.Gf||YJ()&&!f?!1:!0;h.X=Q.V("html5_format_hybridization");h.xO=Q.V("html5_disable_encrypted_vp9_live_non_2k_4k");pk(M)&&(h.Yp=M.V("html5_prefer_language_over_codec"));K0()&&M.playerResponse&&M.playerResponse.playerConfig&&M.playerResponse.playerConfig.webPlayerConfig&&M.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(h.C=!0,h.N=!0);M.W&&M.isAd()&&(M.rM&&(h.B=M.rM),M.lK&&(h.j=M.lK));h.g_=M.isLivePlayback&& M.TP()&&M.i8.V("html5_drm_live_audio_51");h.b8=M.Z3;h.Qw=!pk(M);return M.zj=h}; vu=function(M){return M.i8.V("html5_disable_av1")||M.V("html5_gapless_shorts_disable_av1")&&Em(M)?!0:!1}; wr6=function(M){eh("drm_pb_s",void 0,M.B);M.ox||M.K&&gY(M.K);var f={};M.K&&(f=tgT(M.mq,g.hg(M),M.i8.N,M.K,function(A){return M.publish("ctmp","fmtflt",A)},!0,new Set)); f=new ND(f,M.i8,M.jm,M.useCobaltWidevine?K0()?Sd(M):!1:!1,function(A,Q){M.ZB(A,Q)}); g.d(M,f);M.Eu=!1;M.loading=!0;nlU(f,function(A){eh("drm_pb_f",void 0,M.B);for(var Q=g.V(A),N=Q.next();!N.done;N=Q.next())switch(N=N.value,N.flavor){case "fairplay":N.ox=M.ox;N.Vu=M.Vu;N.qv=M.qv;break;case "widevine":N.ZM=M.ZM}M.tY=A;if(M.tY.length>0&&(M.N=M.tY[0],M.i8.cX())){A={};Q=g.V(Object.entries(M.N.K));for(N=Q.next();!N.done;N=Q.next()){var Y=g.V(N.value);N=Y.next().value;Y=Y.next().value;var I="unk";(N=N.match(/(.*)codecs="(.*)"/))&&(I=N[2]);A[I]=Y}M.ZB("drmProbe",A)}M.wY()})}; lOe=function(M,f){if(f.length===0||Lk(M))return null;M.i8.N.j&&(eL=!0);var A=M.e$;var Q=M.lengthSeconds,N=M.isLivePlayback,Y=M.oI,I=M.i8,D=C2U(f);if(N||Y){I=I.experiments;Q=new gc("",I,!0);Q.Z=!Y;Q.U$=!0;Q.isManifestless=!0;Q.isLive=!Y;Q.oI=Y;f=g.V(f);for(N=f.next();!N.done;N=f.next()){var E=N.value;N=xB(E,A);D=yc(E);D=rc(D.JU||E.url||"",D.fA,D.s);var t=D.get("id");t&&t.includes("%7E")&&(Q.B=!0);var v=void 0;t=(v=I)==null?void 0:v.X3("html5_max_known_end_time_rebase");v=Number(E.targetDurationSec|| 5);E=Number(E.maxDvrDurationSec||14400);var p=Number(D.get("mindsq")||D.get("min_sq")||"0"),h=Number(D.get("maxdsq")||D.get("max_sq")||"0")||Infinity;Q.iU=Q.iU||p;Q.z7=Q.z7||h;var S=!DH(N.mimeType);D&&m8(Q,new DV(D,N,{DQ:v,p8:S,U2:E,iU:p,z7:h,cY:300,oI:Y,XE:t}))}A=Q}else if(D==="FORMAT_STREAM_TYPE_OTF"){Q=Q===void 0?0:Q;Y=new gc("",I.experiments,!1);Y.duration=Q||0;I=g.V(f);for(Q=I.next();!Q.done;Q=I.next())Q=Q.value,f=xB(Q,A,Y.duration),N=yc(Q),(N=rc(N.JU||Q.url||"",N.fA,N.s))&&(f.streamType==="FORMAT_STREAM_TYPE_OTF"? m8(Y,new Ew(N,f,"sq/0")):m8(Y,new an(N,f,e$(Q.initRange),e$(Q.indexRange))));Y.isOtf=!0;A=Y}else{Q=Q===void 0?0:Q;Y=new gc("",I.experiments,!1);Y.duration=Q||0;I=g.V(f);for(Q=I.next();!Q.done;Q=I.next())D=Q.value,Q=xB(D,A,Y.duration),f=e$(D.initRange),N=e$(D.indexRange),t=yc(D),(D=rc(t.JU||D.url||"",t.fA,t.s))&&m8(Y,new an(D,Q,f,N));A=Y}Y=M.isLivePlayback&&!M.oI&&!M.Er&&!M.isPremiere;M.V("html5_live_head_playable")&&(!oJ(M)&&Y&&M.ZB("missingLiveHeadPlayable",{}),M.i8.Er==="yt"&&(A.nJ=!0));return A}; Lk=function(M){return K0()?!Sd(M):wy()?!(!M.ox||!M.V("html5_enable_safari_fairplay")&&vs()):!1}; Sd=function(M){return M.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.Ag=function(M,f){f=g.V(f);for(var A=f.next();!A.done;A=f.next())if(A=A.value,A.cueRangeSetIdentifier){var Q=void 0;M.QG.set(A.cueRangeSetIdentifier,(Q=A.playerCueRanges)!=null?Q:[])}}; Ck=function(M){return!(!M.K||!M.K.isManifestless)}; Um=function(M){return M.oE?M.isLowLatencyLiveStream&&M.K!=null&&nq(M.K)>=5:M.isLowLatencyLiveStream&&M.K!=void 0&&nq(M.K)>=5}; Mv6=function(M){return K0()&&Sd(M)?!1:Lk(M)&&(g.i7(M.i8)?!M.isLivePlayback:M.hlsvp)||!vs()||M.EQ?!0:!1}; Q$9=function(M){M.loading=!0;M.OC=!1;if(fdz(M))g.mHU(M.videoId).then(function(Q){AqU(M,Q)}).then(function(){M.wY()}); else{Qb(M.MV)||g.$b(new g.GX("DASH MPD Origin invalid: ",M.MV));var f=M.MV,A=g.CE(M.i8.experiments,"dash_manifest_version")||4;f=g.uj(f,{mpd_version:A});M.isLowLatencyLiveStream&&M.latencyClass!=="NORMAL"||(f=g.uj(f,{pacing:0}));cmz(f,M.i8.experiments,M.isLivePlayback).then(function(Q){M.ek()||(Vm(M,Q,!0),eh("mrc",void 0,M.B),M.wY())},function(Q){M.ek()||(M.loading=!1,M.publish("dataloaderror",new ZZ("manifest.net.retryexhausted",{backend:"manifest", rc:Q.status},1)))}); eh("mrs",void 0,M.B)}}; AqU=function(M,f){var A=f.map(function(E){return E.itag}),Q; if((Q=M.playerResponse)!=null&&Q.streamingData){Q=[];if(M.V("html5_offline_always_use_local_formats")){A=0;for(var N=g.V(f),Y=N.next();!Y.done;Y=N.next()){Y=Y.value;var I=Object.assign({},Y);I.signatureCipher="";Q.push(I);I=g.V(M.playerResponse.streamingData.adaptiveFormats);for(var D=I.next();!D.done;D=I.next())if(D=D.value,Y.itag===D.itag&&Y.xtags===D.xtags){A+=1;break}}Av&&(v=S.getInfo().audio.numChannels)}v>2&&M.ZB("hlschl",{mn:v});var q;((q=M.zj)==null?0:q.Z)&&M.ZB("hlsfmtaf",{itags:p.join(".")});var m;if(M.V("html5_enable_vp9_fairplay")&&((m=M.N)==null?0:lX(m)))for(M.ZB("drm",{sbdlfbk:1}),v=g.V(M.tY),p=v.next();!p.done;p=v.next())if(p=p.value,wc(p)){M.N=p;break}mJ(M,t)})}return Pa()}; Dbt=function(M){if(M.isExternallyHostedPodcast&&M.Wy){var f=Hu(M.Wy);if(!f[0])return Pa();M.IkO=f[0];return W3X(M.i8,f[0]).then(function(A){mJ(M,A)})}return M.Kh&&M.J9?kSt(M.i8,M.isAd(),M.Kh).then(function(A){mJ(M,A)}):Pa()}; tvb=function(M){if(M.isExternallyHostedPodcast)return Pa();var f=Hu(M.Wy,M.CQ);if(M.hlsvp){var A=u1D(M.hlsvp,M.clientPlaybackNonce,M.xp);f.push(A)}return bc6(M.i8,M.isAd(),f,EqT(M)).then(function(Q){mJ(M,Q)})}; mJ=function(M,f){M.y7=f;M.uQ(new Hd(g.WP(M.y7,function(A){return A.getInfo()})))}; EqT=function(M){var f={cpn:M.clientPlaybackNonce,c:M.i8.K.c,cver:M.i8.K.cver};M.w9&&(f.ptk=M.w9,f.oid=M.EO,f.ptchn=M.fv,f.pltype=M.KB,M.Nv&&(f.m=M.Nv));return f}; g.sm=function(M){return Lk(M)&&M.ox?(M={},M.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",M):M.Z&&M.Z.e$||null}; vqb=function(M){var f=cu(M);return f&&f.text?g.ae(f.text):M.paidContentOverlayText}; pkT=function(M){var f=cu(M);return f&&f.durationMs?HB(f.durationMs):M.paidContentOverlayDurationMs}; cu=function(M){var f,A,Q;return M.playerResponse&&M.playerResponse.paidContentOverlay&&M.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.b((f=M.z0)==null?void 0:(A=f.playerOverlays)==null?void 0:(Q=A.playerOverlayRenderer)==null?void 0:Q.playerDisclosure,hjb)||null}; RJ=function(M){var f="";if(M.ys)return M.ys;M.isLivePlayback&&(f=M.allowLiveDvr?"dvr":M.isPremiere?"lp":M.Er?"window":"live");M.oI&&(f="post");return f}; g.gu=function(M,f){return typeof M.keywords[f]!=="string"?null:M.keywords[f]}; S59=function(M){return!!M.XJ||!!M.GO||!!M.Mv||!!M.Jn||M.Ne}; g.Bu=function(M){return!!(M.MV||M.Wy||M.Kh||M.hlsvp||M.m3())}; wq=function(M){if(M.V("html5_onesie")&&M.errorCode)return!1;var f=g.V9(M.KJ,"ypc");M.ypcPreview&&(f=!1);return M.hh()&&!M.loading&&(g.Bu(M)||g.V9(M.KJ,"heartbeat")||f)}; Hu=function(M,f){M=Id(M);var A={};if(f){f=g.V(f.split(","));for(var Q=f.next();!Q.done;Q=f.next())(Q=Q.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(A[Q[1]]={width:Q[2],height:Q[3]})}f=g.V(M);for(Q=f.next();!Q.done;Q=f.next()){Q=Q.value;var N=A[Q.itag];N&&(Q.width=N.width,Q.height=N.height)}return M}; bdt=function(M,f){M.showShareButton=!!f;var A,Q,N=((A=g.b(f,g.kG))==null?void 0:A.navigationEndpoint)||((Q=g.b(f,g.kG))==null?void 0:Q.command);N&&(M.G$=!!g.b(N,Lad))}; zq0=function(M,f){var A=f.raw_embedded_player_response;if(!A){var Q=f.embedded_player_response;Q&&(A=JSON.parse(Q))}A&&(M.Y$=A);if(M.Y$){M.embeddedPlayerConfig=M.Y$.embeddedPlayerConfig||null;if(A=M.Y$.videoFlags)A.playableInEmbed&&(M.allowEmbed=!0),A.isPrivate&&(M.isPrivate=!0),A.userDisplayName&&(f.user_display_name=A.userDisplayName),A.userDisplayImage&&(f.user_display_image=A.userDisplayImage);if(A=M.Y$.embedPreview){A=A.thumbnailPreviewRenderer;prN(M,A.controlBgHtml);if(Q=A.defaultThumbnail)M.X= c5(Q);M.V("embeds_web_enable_search_button")&&A.searchButton&&(Q=g.b(A.searchButton,g.kG))&&(M.OF=g.b(Q.navigationEndpoint,g.iv));(Q=g.b(A==null?void 0:A.videoDetails,oqU))&&Xrf(M,f,Q);Q=g.b(A==null?void 0:A.videoDetails,C3D);M.Uq=!!A.addToWatchLaterButton;bdt(M,A.shareButton);if(Q==null?0:Q.musicVideoType)M.musicVideoType=Q.musicVideoType;var N,Y,I,D,E;if(Q=g.b((N=M.getEmbeddedPlayerResponse())==null?void 0:(Y=N.embedPreview)==null?void 0:(I=Y.thumbnailPreviewRenderer)==null?void 0:(D=I.playButton)== null?void 0:(E=D.buttonRenderer)==null?void 0:E.navigationEndpoint,g.N5))GS0(M,Q),M.videoId=Q.videoId||M.videoId;A.videoDurationSeconds&&(M.lengthSeconds=HB(A.videoDurationSeconds));A.webPlayerActionsPorting&&vGN(M,A.webPlayerActionsPorting);if(N=g.b(A==null?void 0:A.playlist,Ub6)){M.Bz=!0;Y=[];I=Number(N.currentIndex);if(N.contents)for(D=0,E=N.contents.length;D0:M.vy?!1:M.i8.WK||M.i8.OC||!g.Ps(M.i8)?!0:!1:(M.vy?0:M.Uw)&&g.Ps(M.i8)?!0:!1;M.V("html5_log_detailpage_autoplay")&&FG(M)==="detailpage"&&M.ZB("autoplay_info",{autoplay:M.rL,autonav:M.isAutonav,wasDompaused:M.vy,result:f});return f}; g.bv=function(M){return M.oauthToken||M.i8.SA}; i_z=function(M){if(M.V("html5_stateful_audio_normalization")){var f=1,A=g.CE(M.i8.experiments,"html5_default_ad_gain");A&&M.isAd()&&(f=A);var Q,N;A=(N=(Q=M.C)==null?void 0:Q.audio.C)!=null?N:M.eK;if(A==null||isNaN(A))M=B56(M);else{Q=(0,g.W)();M.K8=2;N=Q-M.i8.Ev<=M.maxStatefulTimeThresholdSec*1E3;M.applyStatefulNormalization&&N?M.K8=4:N||(M.i8.xP=Infinity,M.i8.Ev=NaN);N=(M.K8===4?g.ih(M.i8.xP,M.minimumLoudnessTargetLkfs,M.loudnessTargetLkfs):M.loudnessTargetLkfs)-A;if(M.K8!==4){var Y,I,D,E,t=((Y=M.playerResponse)== null?void 0:(I=Y.playerConfig)==null?void 0:(D=I.audioConfig)==null?void 0:(E=D.loudnessNormalizationConfig)==null?void 0:E.statelessLoudnessAdjustmentGain)||0;N+=t}N=Math.min(N,0);M.preserveStatefulLoudnessTarget&&(M.i8.xP=A+N,M.i8.Ev=Q);M=Math.min(1,Math.pow(10,N/20))||f}}else M=B56(M);return M}; B56=function(M){var f=1,A=g.CE(M.i8.experiments,"html5_default_ad_gain");A&&M.isAd()&&(f=A);if(M.i8.experiments.X3("html5_audio_gain_null_coalescing")){var Q,N;A=(N=(Q=M.C)==null?void 0:Q.audio.j)!=null?N:M.R5}else{var Y;A=((Y=M.C)==null?void 0:Y.audio.j)||M.R5}isNaN(A)||(M.K8=1);return Math.min(1,Math.pow(10,-A/20))||f}; tg=function(M){var f=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],A=g.TG(M.i8)==="TVHTML5_SIMPLY"&&M.i8.K.ctheme==="MUSIC";M.OR||!g.dA(M.i8)&&!A||!f.includes(M.musicVideoType)&&!M.isExternallyHostedPodcast||(M.OR=!0);if(f=g.JI())f=/Starboard\/([0-9]+)/.exec(g.ge()),f=(f?parseInt(f[1],10):NaN)<10;A=M.i8;A=(g.TG(A)==="TVHTML5_CAST"||g.TG(A)==="TVHTML5"&&(A.K.cver.startsWith("6.20130725")||A.K.cver.startsWith("6.20130726")))&&M.i8.K.ctheme==="MUSIC";var Q;if(Q=!M.OR)A||(A=M.i8,A= g.TG(A)==="TVHTML5"&&A.K.cver.startsWith("7")),Q=A;Q&&!f&&(f=M.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",A=(M.V("cast_prefer_audio_only_for_atv_and_uploads")||M.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&M.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",f||A||M.isExternallyHostedPodcast)&&(M.OR=!0);return M.i8.deviceIsAudioOnly||M.OR&&M.i8.X}; k_=function(M){var f,A,Q;return((f=M.playerResponse)==null?void 0:(A=f.playerConfig)==null?void 0:(Q=A.compositeVideoConfig)==null?void 0:Q.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.xbt=function(M){return M.V("html5_enable_sabr_live_captions")&&M.U$()&&pk(M)||k_(M)}; Wu=function(M){var f,A,Q;return!!((f=M.playerResponse)==null?0:(A=f.playerConfig)==null?0:(Q=A.mediaCommonConfig)==null?0:Q.splitScreenEligible)}; Om=function(M){var f;return!((f=M.playerResponse)==null||!f.compositePlayabilityStatus)}; Z_f=function(M){return isNaN(M)?0:Math.max((Date.now()-M)/1E3-30,0)}; XG=function(M){return!(!M.oO||!M.i8.X)&&M.m3()}; Jg=function(M){return M.Gq&&M.enableServerStitchedDai}; rqX=function(M){return M.h$&&!M.SA}; pk=function(M){var f=M.V("html5_enable_sabr_on_drive")&&M.i8.Er==="gd";if(M.UY)return M.h$&&M.ZB("fds",{fds:!0},!0),!1;if(M.i8.Er!=="yt"&&!f)return M.h$&&M.ZB("dsvn",{ns:M.i8.Er},!0),!1;if(M.cotn||!M.K||M.K.isOtf||M.B6&&!M.V("html5_enable_sabr_csdai"))return!1;if(M.V("html5_use_sabr_requests_for_debugging"))return!0;M.h$&&M.ZB("esfw",{usbc:M.h$,hsu:!!M.SA},!0);if(M.h$&&M.SA)return!0;if(M.V("html5_remove_client_sabr_determination"))return!1;var A=!M.K.U$&&!M.TP();f=A&&D9&&M.V("html5_enable_sabr_vod_streaming_xhr"); A=A&&!D9&&M.V("html5_enable_sabr_vod_non_streaming_xhr");var Q=Kk(M),N=M.V("html5_enable_sabr_drm_vod_streaming_xhr")&&D9&&M.TP()&&!M.K.U$&&(M.drmProduct==="1"?!1:!0);(f=f||A||Q||N)&&!M.SA&&M.ZB("sabr",{loc:"m"},!0);return f&&!!M.SA}; Kk=function(M){var f;if(!(f=D9&&M.U$()&&M.TP()&&(M.drmProduct==="1"?!1:!0)&&M.V("html5_sabr_live_drm_streaming_xhr"))){f=M.U$()&&!M.TP()&&D9;var A=M.U$()&&M.latencyClass!=="ULTRALOW"&&!M.isLowLatencyLiveStream&&M.V("html5_sabr_live_normal_latency_streaming_xhr"),Q=M.isLowLatencyLiveStream&&M.V("html5_sabr_live_low_latency_streaming_xhr"),N=M.latencyClass==="ULTRALOW"&&M.V("html5_sabr_live_ultra_low_latency_streaming_xhr");f=f&&(A||Q||N)}A=f;f=M.enableServerStitchedDai&&A&&M.V("html5_enable_sabr_ssdai_streaming_xhr"); A=!M.enableServerStitchedDai&&A;Q=M.U$()&&!D9&&M.V("html5_enable_sabr_live_non_streaming_xhr");M=D9&&(M.G_()||Wu(M)&&M.V("html5_enable_sabr_for_lifa_eligible_streams"));return f||A||Q||M}; fdz=function(M){var f;if(f=!!M.cotn)f=M.videoId,f=!!f&&g.nF(f)===1;return f&&!M.oO}; g.Ge=function(M){if(!M.K||!M.Z||!M.C)return!1;var f=M.K.K,A=!!f[M.Z.id]&&j2(f[M.Z.id].HX.K);f=!!f[M.C.id]&&j2(f[M.C.id].HX.K);return(M.Z.itag==="0"||A)&&f}; wu=function(M){return M.Yt?["OK","LIVE_STREAM_OFFLINE"].includes(M.Yt.status):!0}; Vvb=function(M){return(M=M.QS)&&M.showError?M.showError:!1}; lv=function(M,f){return M.V(f)?!0:(M.fflags||"").includes(f+"=true")}; umb=function(M){return M.V("html5_heartbeat_iff_heartbeat_params_filled")}; yeb=function(M,f){f.inlineMetricEnabled&&(M.inlineMetricEnabled=!0);f.playback_progress_0s_url&&(M.Jn=new Lt0(f));if(f=f.video_masthead_ad_quartile_urls)M.GO=f.quartile_0_url,M.CB=f.quartile_25_url,M.Px=f.quartile_50_url,M.zE=f.quartile_75_url,M.Hx=f.quartile_100_url,M.Mv=f.quartile_0_urls,M.RS=f.quartile_25_urls,M.w$=f.quartile_50_urls,M.xJ=f.quartile_75_urls,M.Q8=f.quartile_100_urls}; FtT=function(M){var f={};M=g.V(M);for(var A=M.next();!A.done;A=M.next()){A=A.value;var Q=A.split("=");Q.length===2?f[Q[0]]=Q[1]:f[A]=!0}return f}; nG6=function(M){if(M){if(LjN(M))return M;M=ood(M);if(LjN(M,!0))return M}return""}; g.zjU=function(M){return M.captionsLanguagePreference||M.i8.captionsLanguagePreference||g.gu(M,"yt:cc_default_lang")||M.i8.gb}; MZ=function(M){return!(!M.isLivePlayback||!M.hasProgressBarBoundaries())}; g.Y_=function(M){var f;return M.K6||((f=M.suggestions)==null?void 0:f[0])||null}; g.fv=function(M){return M.XR&&(M.V("embeds_enable_pfp_always_unbranded")||M.i8.Qr)}; g.AU=function(M){var f,A;return!!((f=M.embeddedPlayerConfig)==null?0:(A=f.embeddedPlayerFlags)==null?0:A.enableMusicUx)}; P3U=function(M){return M.W||M.V("web_player_media_session_infinity")&&M.isLivePlayback}; QG=function(M){return M.i8.C&&M.isPrivate}; g.YX=function(M){var f=M.T(),A=g.NZ(f),Q=f.d2;(f.V("embeds_web_enable_iframe_api_send_full_embed_url")||f.V("embeds_web_enable_rcat_validation_in_havs")||f.V("embeds_enable_autoplay_and_visibility_signals"))&&g.dt(f)&&(Q&&(A.thirdParty=Object.assign({},A.thirdParty,{embedUrl:Q})),fb0(A,M));if(Q=M.fJ)A.clickTracking={clickTrackingParams:Q};else if(f.V("html5_log_missing_itct")){var N;Q=new g.GX("Missing ITCT in InnerTubeContext",{isAd:M.isAd(),wQ_:(N=f.getWebPlayerContextConfig())==null?void 0:N.contextId}); g.jZ(Q)}N=A.client||{};Q="EMBED";var Y=FG(M);Y==="leanback"?Q="WATCH":f.V("gvi_channel_client_screen")&&Y==="profilepage"?Q="CHANNEL":M.l8?Q="LIVE_MONITOR":Y==="detailpage"?Q="WATCH_FULL_SCREEN":Y==="adunit"?Q="ADUNIT":Y==="sponsorshipsoffer"&&(Q="UNKNOWN");N.clientScreen=Q;if(f=M.kidsAppInfo)N.kidsAppInfo=JSON.parse(f);(Q=M.gV)&&!f&&(N.kidsAppInfo={contentSettings:{ageUpMode:nqe[Q]}});if(f=M.Vy)N.unpluggedAppInfo={enableFilterMode:!0};(Q=M.unpluggedFilterModeType)&&!f&&(N.unpluggedAppInfo={filterModeType:j$d[Q]}); if(f=M.Fk)N.unpluggedLocationInfo=f;A.client=N;N=A.request||{};M.Ki&&(N.isPrefetch=!0);if(f=M.mdxEnvironment)N.mdxEnvironment=f;if(f=M.mdxControlMode)N.mdxControlMode=$bX[f];A.request=N;N=A.user||{};if(f=M.P7)N.credentialTransferTokens=[{token:f,scope:"VIDEO"}];if(f=M.d2)N.delegatePurchases={oauthToken:f},N.kidsParent={oauthToken:f};A.user=N;if(N=M.contextParams)A.activePlayers=[{playerContextParams:N}];if(M=M.clientScreenNonce)A.clientScreenNonce=M;return A}; g.NZ=function(M){var f=g.fp(),A=f.client||{};if(M.forcedExperiments){var Q=M.forcedExperiments.split(","),N=[];Q=g.V(Q);for(var Y=Q.next();!Y.done;Y=Q.next())N.push(Number(Y.value));A.experimentIds=N}if(N=M.homeGroupInfo)A.homeGroupInfo=JSON.parse(N);if(N=M.getPlayerType())A.playerType=N;if(N=M.K.ctheme)A.theme=N;if(N=M.livingRoomAppMode)A.tvAppInfo=Object.assign({},A.tvAppInfo,{livingRoomAppMode:N});N=M.deviceYear;M.V("html5_propagate_device_year")&&N&&(A.tvAppInfo=Object.assign({},A.tvAppInfo,{deviceYear:N})); if(N=M.livingRoomPoTokenId)A.tvAppInfo=Object.assign({},A.tvAppInfo,{livingRoomPoTokenId:N});f.client=A;A=f.user||{};M.enableSafetyMode&&(A=Object.assign({},A,{enableSafetyMode:!0}));M.pageId&&(A=Object.assign({},A,{onBehalfOfUser:M.pageId}));f.user=A;A=M.d2;M.V("embeds_web_enable_iframe_api_send_full_embed_url")||M.V("embeds_web_enable_rcat_validation_in_havs")||M.V("embeds_enable_autoplay_and_visibility_signals")||!A||(f.thirdParty={embedUrl:A});return f}; k7D=function(M,f,A){var Q=M.videoId,N=g.YX(M),Y=M.T(),I={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(xr()),referer:document.location.toString(),signatureTimestamp:20220};g.kJ();M.isAutonav&&(I.autonav=!0);g.WD(0,141)&&(I.autonavState=g.WD(0,140)?"STATE_OFF":"STATE_ON");I.autoCaptionsDefaultOn=g.WD(0,66);gqX(M)&&(I.autoplay=!0);Y.X&&M.cycToken&&(I.cycToken=M.cycToken);Y.enablePrivacyFilter&&(I.enablePrivacyFilter=!0);M.isFling&&(I.fling=!0);var D=M.forceAdsUrl;if(D){var E={},t=[];D= D.split(",");D=g.V(D);for(var v=D.next();!v.done;v=D.next()){v=v.value;var p=v.split("|");p.length!==3||v.includes("=")||(p[0]="breaktype="+p[0],p[1]="offset="+p[1],p[2]="url="+p[2]);v={adtype:"video_ad"};p=g.V(p);for(var h=p.next();!h.done;h=p.next()){var S=g.V(h.value.split("="));h=S.next().value;S=Y0N(S);v[h]=S.join("=")}p=v.url;h=v.presetad;S=v.viralresponseurl;var L=Number(v.campaignid);if(v.adtype==="in_display_ad")p&&(E.url=p),h&&(E.presetAd=h),S&&(E.viralAdResponseUrl=S),L&&(E.viralCampaignId= String(L));else if(v.adtype==="video_ad"){var a={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(v.offset)||0)}};if(v=Fae[v.breaktype])a.breakType=v;p&&(a.url=p);h&&(a.presetAd=h);S&&(a.viralAdResponseUrl=S);L&&(a.viralCampaignId=String(L));t.push(a)}}I.forceAdParameters={videoAds:t,inDisplayAd:E}}M.isInlinePlaybackNoAd&&(I.isInlinePlaybackNoAd=!0);M.isLivingRoomDeeplink&&(I.isLivingRoomDeeplink=!0);E=M.PW;if(E!=null){E={startWalltime:String(E)};if(t=M.Wt)E.manifestDuration=String(t||14400); I.liveContext=E}if(M.mutedAutoplay){I.mutedAutoplay=!0;E=Y.getWebPlayerContextConfig();var q,m;(E==null?0:(q=E.embedsHostFlags)==null?0:q.allowMutedAutoplayDurationMode)&&(E==null?0:(m=E.embedsHostFlags)==null?0:m.allowMutedAutoplayDurationMode.includes(yqU[M.mutedAutoplayDurationMode]))&&(I.mutedAutoplayDurationMode=yqU[M.mutedAutoplayDurationMode])}if(M.vy?0:M.Uw)I.splay=!0;q=M.vnd;q===5&&(I.vnd=q);q={};if(m=M.isMdxPlayback)q.triggeredByMdx=m;if(m=M.rV)q.skippableAdsSupported=m.split(",").includes("ska"); if(t=M.T9){m=M.BI;E=[];t=g.V(Ake(t));for(D=t.next();!D.done;D=t.next()){D=D.value;v=D.platform;D={applicationState:D.dP?"INACTIVE":"ACTIVE",clientFormFactor:db6[v]||"UNKNOWN_FORM_FACTOR",clientName:Nwt[D.FO]||"UNKNOWN_INTERFACE",clientVersion:D.deviceVersion||"",platform:ej0[v]||"UNKNOWN_PLATFORM"};v={};if(m){p=void 0;try{p=JSON.parse(m)}catch(R){g.$b(R)}p&&(v={params:[{key:"ms",value:p.ms}]},p.advertising_id&&(v.advertisingId=p.advertising_id),p.limit_ad_tracking!==void 0&&p.limit_ad_tracking!== null&&(v.limitAdTracking=p.limit_ad_tracking),D.osName=p.os_name,D.userAgent=p.user_agent,D.windowHeightPoints=p.window_height_points,D.windowWidthPoints=p.window_width_points)}E.push({adSignalsInfo:v,remoteClient:D})}q.remoteContexts=E}m=M.sourceContainerPlaylistId;E=M.serializedMdxMetadata;if(m||E)t={},m&&(t.mdxPlaybackContainerInfo={sourceContainerPlaylistId:m}),E&&(t.serializedMdxMetadata=E),q.mdxPlaybackSourceContext=t;I.mdxContext=q;q=f.width;q>0&&(I.playerWidthPixels=Math.round(q));if(f=f.height)I.playerHeightPixels= Math.round(f);A!==0&&(I.vis=A);if(A=Y.widgetReferrer)I.widgetReferrer=A.substring(0,128);g.Ps(Y)&&I&&(I.ancestorOrigins=Y.ancestorOrigins);M.defaultActiveSourceVideoId&&(I.compositeVideoContext={defaultActiveSourceVideoId:M.defaultActiveSourceVideoId});if(Y=Y.getWebPlayerContextConfig())I.encryptedHostFlags=Y.encryptedHostFlags;Q={videoId:Q,context:N,playbackContext:{contentPlaybackContext:I}};M.reloadPlaybackParams&&(Q.playbackContext.reloadPlaybackContext={reloadPlaybackParams:M.reloadPlaybackParams}); M.contentCheckOk&&(Q.contentCheckOk=!0);if(N=M.clientPlaybackNonce)Q.cpn=N;if(N=M.playerParams)Q.params=N;if(N=M.playlistId)Q.playlistId=N;M.racyCheckOk&&(Q.racyCheckOk=!0);N=M.T();if(I=N.embedConfig)Q.serializedThirdPartyEmbedConfig=I;Q.captionParams={};I=g.WD(g.kJ(),65);M.deviceCaptionsOn!=null?Q.captionParams.deviceCaptionsOn=M.deviceCaptionsOn:g.Q5(N)&&(Q.captionParams.deviceCaptionsOn=I!=null?!I:!1);M.vc&&(Q.captionParams.deviceCaptionsLangPref=M.vc);M.WA.length?Q.captionParams.viewerSelectedCaptionLangs= M.WA:g.Q5(N)&&(I=g.fy(),I==null?0:I.length)&&(Q.captionParams.viewerSelectedCaptionLangs=I);I=M.fetchType==="onesie"&&M.V("html5_onesie_attach_po_token");Y=M.fetchType!=="onesie"&&M.V("html5_non_onesie_attach_po_token");if(I||Y)I=M.T(),I.Uw&&(Q.serviceIntegrityDimensions={},Q.serviceIntegrityDimensions.poToken=I.Uw);N.V("fetch_att_independently")&&(Q.attestationRequest={omitBotguardData:!0});Q.playbackContext||(Q.playbackContext={});Q.playbackContext.devicePlaybackCapabilities=b_f(M);Q.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&M.ZB("noVp9",{});return Q}; b_f=function(M){var f=!(M==null?0:M.lP())&&(M==null?void 0:M.U$())&&YJ(),A;if(!(A=M==null)){A=g.hg(M);M=M.T().N;var Q=hd("243");A=!(Q&&Rr(A,Q,M,!0)===!0)}return{supportsVp9Encoding:!(A||f),supportXhr:D9}}; O_D=function(M,f){var A,Q,N;return g.n(function(Y){if(Y.Z==1)return A={context:g.NZ(M.T()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:M.videoId,cpn:M.clientPlaybackNonce}}]},Q=g.NO(Wa0),g.r(Y,g.GK(f,A,Q),2);N=Y.K;return Y.return(N)})}; Xkz=function(M,f,A){var Q=g.CE(f.experiments,"bg_vm_reinit_threshold");(!O_||(0,g.W)()-O_>Q)&&O_D(M,A).then(function(N){N&&(N=N.botguardData)&&g.JV(N,f)},function(N){M.ek()||(N=uT(N),M.ZB("attf",N.details))})}; Il=function(M,f){g.y.call(this);this.app=M;this.state=f}; pv=function(M,f,A){M.state.K.hasOwnProperty(f)||Tt(M,f,A);M.state.W[f]=function(){return A.apply(M,g.jN.apply(0,arguments))}; M.state.G.add(f)}; Su=function(M,f,A){M.state.K.hasOwnProperty(f)||Tt(M,f,A);M.app.T().X&&(M.state.X[f]=function(){return A.apply(M,g.jN.apply(0,arguments))},M.state.G.add(f))}; Tt=function(M,f,A){M.state.K[f]=function(){return A.apply(M,g.jN.apply(0,arguments))}}; g.Lv=function(M,f,A){return M.state.K[f].apply(M.state.K,g.c(A))}; ol=function(){g.x2.call(this);this.N=new Map}; Cv=function(){g.y.apply(this,arguments);this.element=null;this.G=new Set;this.W={};this.X={};this.K={};this.B=new Set;this.j=new ol;this.Z=new ol;this.C=new ol;this.N=new ol}; JqX=function(M,f,A){typeof M==="string"&&(M={mediaContentUrl:M,startSeconds:f,suggestedQuality:A});a:{if((f=M.mediaContentUrl)&&(f=/\/([ve]|embed)\/([^#?]+)/.exec(f))&&f[2]){f=f[2];break a}f=null}M.videoId=f;return UX(M)}; UX=function(M,f,A){if(typeof M==="string")return{videoId:M,startSeconds:f,suggestedQuality:A};f={};A=g.V(Ka9);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,M[Q]&&(f[Q]=M[Q]);return f}; G7N=function(M,f,A,Q){if(g.Q9(M)&&!Array.isArray(M)){f="playlist list listType index startSeconds suggestedQuality".split(" ");A={};for(Q=0;Q32&&Q.push("hfr");f.isHdr()&&Q.push("hdr");f.primaries==="bt2020"&&Q.push("wcg");A.video_quality_features=Q}}if(M=M.getPlaylistId())A.list=M;return A}; m$=function(){VG.apply(this,arguments)}; sX=function(M,f){var A={};if(M.app.T().KJ){M=g.V(f16);for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,f.hasOwnProperty(Q)&&(A[Q]=f[Q]);if(f=A.qoe_cat)M="",typeof f==="string"&&f.length>0&&(M=f.split(",").filter(function(N){return AVz.includes(N)}).join(",")),A.qoe_cat=M; QBD(A)}else for(M=g.V(Npt),Q=M.next();!Q.done;Q=M.next())Q=Q.value,f.hasOwnProperty(Q)&&(A[Q]=f[Q]);return A}; QBD=function(M){var f=M.raw_player_response;if(!f){var A=M.player_response;A&&(f=JSON.parse(A))}delete M.player_response;delete M.raw_player_response;if(f){M.raw_player_response={streamingData:f.streamingData,playerConfig:f.playerConfig};var Q;if((Q=f.playbackTracking)==null?0:Q.qoeUrl)M.raw_player_response=Object.assign({},M.raw_player_response,{playbackTracking:{qoeUrl:f.playbackTracking.qoeUrl}});var N;if((N=f.videoDetails)==null?0:N.videoId)M.raw_player_response=Object.assign({},M.raw_player_response, {videoDetails:{videoId:f.videoDetails.videoId}})}}; cj=function(M,f,A){var Q=M.app.VJ(A);if(!Q)return 0;M=Q-M.app.getCurrentTime(A);return f-M}; I1b=function(M){var f=f===void 0?5:f;return M?Y_D[M]||f:f}; g.Rl=function(){m$.apply(this,arguments)}; Tpz=function(M){Tt(M,"getInternalApiInterface",M.getInternalApiInterface);Tt(M,"addEventListener",M.Eb);Tt(M,"removeEventListener",M.PUi);Tt(M,"cueVideoByPlayerVars",M.xY);Tt(M,"loadVideoByPlayerVars",M.Fd);Tt(M,"preloadVideoByPlayerVars",M.D3B);Tt(M,"getAdState",M.getAdState);Tt(M,"sendAbandonmentPing",M.sendAbandonmentPing);Tt(M,"setLoopRange",M.setLoopRange);Tt(M,"getLoopRange",M.getLoopRange);Tt(M,"setAutonavState",M.setAutonavState);Tt(M,"seekTo",M.wy3);Tt(M,"seekBy",M.Ox0);Tt(M,"seekToLiveHead", M.seekToLiveHead);Tt(M,"requestSeekToWallTimeSeconds",M.requestSeekToWallTimeSeconds);Tt(M,"seekToStreamTime",M.seekToStreamTime);Tt(M,"startSeekCsiAction",M.startSeekCsiAction);Tt(M,"getStreamTimeOffset",M.getStreamTimeOffset);Tt(M,"getVideoData",M.yv);Tt(M,"setInlinePreview",M.setInlinePreview);Tt(M,"getAppState",M.getAppState);Tt(M,"updateLastActiveTime",M.updateLastActiveTime);Tt(M,"setBlackout",M.setBlackout);Tt(M,"setUserEngagement",M.setUserEngagement);Tt(M,"updateSubtitlesUserSettings",M.updateSubtitlesUserSettings); Tt(M,"getPresentingPlayerType",M.uc);Tt(M,"canPlayType",M.canPlayType);Tt(M,"updatePlaylist",M.updatePlaylist);Tt(M,"updateVideoData",M.updateVideoData);Tt(M,"updateEnvironmentData",M.updateEnvironmentData);Tt(M,"sendVideoStatsEngageEvent",M.Xyk);Tt(M,"productsInVideoVisibilityUpdated",M.productsInVideoVisibilityUpdated);Tt(M,"setSafetyMode",M.setSafetyMode);Tt(M,"isAtLiveHead",function(f){return M.isAtLiveHead(void 0,f)}); Tt(M,"getVideoAspectRatio",M.getVideoAspectRatio);Tt(M,"getPreferredQuality",M.getPreferredQuality);Tt(M,"getPlaybackQualityLabel",M.getPlaybackQualityLabel);Tt(M,"setPlaybackQualityRange",M.FG8);Tt(M,"onAdUxClicked",M.onAdUxClicked);Tt(M,"getFeedbackProductData",M.getFeedbackProductData);Tt(M,"getStoryboardFrame",M.getStoryboardFrame);Tt(M,"getStoryboardFrameIndex",M.getStoryboardFrameIndex);Tt(M,"getStoryboardLevel",M.getStoryboardLevel);Tt(M,"getNumberOfStoryboardLevels",M.getNumberOfStoryboardLevels); Tt(M,"getCaptionWindowContainerId",M.getCaptionWindowContainerId);Tt(M,"getAvailableQualityLabels",M.getAvailableQualityLabels);Tt(M,"addCueRange",M.addCueRange);Tt(M,"addUtcCueRange",M.addUtcCueRange);Tt(M,"showAirplayPicker",M.showAirplayPicker);Tt(M,"dispatchReduxAction",M.dispatchReduxAction);Tt(M,"getPlayerResponse",M.iZ);Tt(M,"getWatchNextResponse",M.q1);Tt(M,"getHeartbeatResponse",M.Zx);Tt(M,"getCurrentTime",M.BW);Tt(M,"getDuration",M.Bw);Tt(M,"getPlayerState",M.getPlayerState);Tt(M,"getPlayerStateObject", M.Hr);Tt(M,"getVideoLoadedFraction",M.getVideoLoadedFraction);Tt(M,"getProgressState",M.getProgressState);Tt(M,"getVolume",M.getVolume);Tt(M,"setVolume",M.CR);Tt(M,"isMuted",M.isMuted);Tt(M,"mute",M.m_);Tt(M,"unMute",M.TC);Tt(M,"loadModule",M.loadModule);Tt(M,"unloadModule",M.unloadModule);Tt(M,"getOption",M.Ca);Tt(M,"getOptions",M.getOptions);Tt(M,"setOption",M.setOption);Tt(M,"loadVideoById",M.DR);Tt(M,"loadVideoByUrl",M.x6);Tt(M,"playVideo",M.xD);Tt(M,"loadPlaylist",M.loadPlaylist);Tt(M,"nextVideo", M.nextVideo);Tt(M,"previousVideo",M.previousVideo);Tt(M,"playVideoAt",M.playVideoAt);Tt(M,"getDebugText",M.getDebugText);Tt(M,"getWebPlayerContextConfig",M.getWebPlayerContextConfig);Tt(M,"notifyShortsAdSwipeEvent",M.notifyShortsAdSwipeEvent);Tt(M,"getVideoContentRect",M.getVideoContentRect);Tt(M,"setSqueezeback",M.setSqueezeback);Tt(M,"toggleSubtitlesOn",M.toggleSubtitlesOn);Tt(M,"isSubtitlesOn",M.isSubtitlesOn);Tt(M,"reportPlaybackIssue",M.reportPlaybackIssue);Tt(M,"setAutonav",M.setAutonav);Tt(M, "isNotServable",M.isNotServable);Tt(M,"channelSubscribed",M.channelSubscribed);Tt(M,"channelUnsubscribed",M.channelUnsubscribed);Tt(M,"togglePictureInPicture",M.togglePictureInPicture);Tt(M,"supportsGaplessAudio",M.supportsGaplessAudio);Tt(M,"supportsGaplessShorts",M.supportsGaplessShorts);Tt(M,"enqueueVideoByPlayerVars",function(f){return void M.enqueueVideoByPlayerVars(f)}); Tt(M,"clearQueue",M.clearQueue);Tt(M,"getAudioTrack",M.rH);Tt(M,"setAudioTrack",M.Toi);Tt(M,"getAvailableAudioTracks",M.bx);Tt(M,"getMaxPlaybackQuality",M.getMaxPlaybackQuality);Tt(M,"getUserPlaybackQualityPreference",M.getUserPlaybackQualityPreference);Tt(M,"getSubtitlesUserSettings",M.getSubtitlesUserSettings);Tt(M,"resetSubtitlesUserSettings",M.resetSubtitlesUserSettings);Tt(M,"setMinimized",M.setMinimized);Tt(M,"setOverlayVisibility",M.setOverlayVisibility);Tt(M,"confirmYpcRental",M.confirmYpcRental); Tt(M,"queueNextVideo",M.queueNextVideo);Tt(M,"handleExternalCall",M.handleExternalCall);Tt(M,"logApiCall",M.logApiCall);Tt(M,"isExternalMethodAvailable",M.isExternalMethodAvailable);Tt(M,"setScreenLayer",M.setScreenLayer);Tt(M,"getCurrentPlaylistSequence",M.getCurrentPlaylistSequence);Tt(M,"getPlaylistSequenceForTime",M.getPlaylistSequenceForTime);Tt(M,"shouldSendVisibilityState",M.shouldSendVisibilityState);Tt(M,"syncVolume",M.syncVolume);Tt(M,"highlightSettingsMenuItem",M.highlightSettingsMenuItem); Tt(M,"openSettingsMenuItem",M.openSettingsMenuItem);Tt(M,"getEmbeddedPlayerResponse",M.getEmbeddedPlayerResponse);Tt(M,"getVisibilityState",M.getVisibilityState);Tt(M,"isMutedByMutedAutoplay",M.isMutedByMutedAutoplay);Tt(M,"isMutedByEmbedsMutedAutoplay",M.isMutedByEmbedsMutedAutoplay);Tt(M,"setGlobalCrop",M.setGlobalCrop);Tt(M,"setInternalSize",M.setInternalSize);Tt(M,"setFauxFullscreen",M.setFauxFullscreen);Tt(M,"setAppFullscreen",M.setAppFullscreen)}; Bj=function(M,f,A){M=g.gx(M.Wu(),f);return A?(A.addOnDisposeCallback(M),null):M}; g.ie=function(M,f,A){return M.app.T().qX?f:g.aC("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:f,SHORTCUT:A})}; DEd=function(M){M.Wu().element.setAttribute("aria-live","polite")}; g.xX=function(M,f){g.Rl.call(this,M,f);Tpz(this);Su(this,"addEventListener",this.Z5);Su(this,"removeEventListener",this.pyJ);Su(this,"cueVideoByPlayerVars",this.Bj);Su(this,"loadVideoByPlayerVars",this.D8);Su(this,"preloadVideoByPlayerVars",this.x30);Su(this,"loadVideoById",this.DR);Su(this,"loadVideoByUrl",this.x6);Su(this,"playVideo",this.xD);Su(this,"loadPlaylist",this.loadPlaylist);Su(this,"nextVideo",this.nextVideo);Su(this,"previousVideo",this.previousVideo);Su(this,"playVideoAt",this.playVideoAt); Su(this,"getVideoData",this.cR);Su(this,"seekBy",this.vx8);Su(this,"seekTo",this.MOu);Su(this,"showControls",this.showControls);Su(this,"hideControls",this.hideControls);Su(this,"cancelPlayback",this.cancelPlayback);Su(this,"getProgressState",this.getProgressState);Su(this,"isInline",this.isInline);Su(this,"setInline",this.setInline);Su(this,"setLoopVideo",this.setLoopVideo);Su(this,"getLoopVideo",this.getLoopVideo);Su(this,"getVideoContentRect",this.getVideoContentRect);Su(this,"getVideoStats",this.G5); Su(this,"getCurrentTime",this.Qv);Su(this,"getDuration",this.Bw);Su(this,"getPlayerState",this.Pr);Su(this,"getVideoLoadedFraction",this.mp);Su(this,"mute",this.m_);Su(this,"unMute",this.TC);Su(this,"setVolume",this.CR);Su(this,"loadModule",this.loadModule);Su(this,"unloadModule",this.unloadModule);Su(this,"getOption",this.Ca);Su(this,"getOptions",this.getOptions);Su(this,"setOption",this.setOption);Su(this,"addCueRange",this.addCueRange);Su(this,"getDebugText",this.getDebugText);Su(this,"getStoryboardFormat", this.getStoryboardFormat);Su(this,"toggleFullscreen",this.toggleFullscreen);Su(this,"isFullscreen",this.isFullscreen);Su(this,"getPlayerSize",this.getPlayerSize);Su(this,"toggleSubtitles",this.toggleSubtitles);this.app.T().V("embeds_enable_move_set_center_crop_to_public")||Su(this,"setCenterCrop",this.setCenterCrop);Su(this,"setFauxFullscreen",this.setFauxFullscreen);Su(this,"setSizeStyle",this.setSizeStyle);Su(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Su(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); ldz(this)}; g.ZF=function(M){M=M.kp();var f=M.Bu.get("endscreen");return f&&f.rA()?!0:M.CA()}; g.rx=function(M,f){M.getPresentingPlayerType()===3?M.publish("mdxautoplaycancel"):M.T0("onAutonavCancelled",f)}; g.zt=function(M){var f=ue(M.kp());return M.app.GQ&&!M.isFullscreen()||M.getPresentingPlayerType()===3&&f&&f.VK()&&f.BQ()||!!M.getPlaylist()}; g.Pj=function(M,f){g.Lv(M,"addEmbedsConversionTrackingParams",[f])}; g.ju=function(M){return(M=g.nv(M.kp()))?M.HT():{}}; g.ELT=function(M){M=(M=M.getVideoData())&&M.Z;return!!M&&!(!M.audio||!M.video)&&M.mimeType!=="application/x-mpegURL"}; g.$X=function(M,f,A){M=M.ax().element;var Q=zC(M.children,function(N){N=Number(N.getAttribute("data-layer"));return A-N||1}); Q<0&&(Q=-(Q+1));NQ(M,f,Q);f.setAttribute("data-layer",String(A))}; g.Ff=function(M){var f=M.T();if(!f.zj)return!1;var A=M.getVideoData();if(!A||M.getPresentingPlayerType()===3)return!1;var Q=(!A.isLiveDefaultBroadcast||f.V("allow_poltergust_autoplay"))&&!MZ(A);Q=A.isLivePlayback&&(!f.V("allow_live_autoplay")||!Q);var N=A.isLivePlayback&&f.V("allow_live_autoplay_on_mweb");M=M.getPlaylist();M=!!M&&M.VK();var Y=A.z0&&A.z0.playerOverlays||null;Y=!!(Y&&Y.playerOverlayRenderer&&Y.playerOverlayRenderer.autoplay);Y=A.XR&&Y;return!A.ypcPreview&&(!Q||N)&&!g.V9(A.KJ,"ypc")&& !M&&(!g.Ps(f)||Y)}; vL6=function(M,f){M=tDe(M.app.yK().C);M=g.V(M);for(var A=M.next();!A.done;A=M.next()){A=A.value;var Q=A.getAvailableAudioTracks(),N=null;Q=g.V(Q);for(var Y=Q.next();!Y.done;Y=Q.next())if(Y=Y.value,Y.getLanguageInfo().getId()===f){N=Y;break}N&&A.PV(N,!0)}}; yG=function(){eA.apply(this,arguments);this.requestHeaders={}}; eu=function(){dx||(dx=new yG);return dx}; be=function(M,f){f?M.requestHeaders.Authorization="Bearer "+f:delete M.requestHeaders.Authorization}; g.kX=function(M){g.y.call(this);var f=this;this.d_=M;this.Ed={ye:function(){return f.d_}}}; g.Wj=function(M,f,A,Q){Q=Q===void 0?!1:Q;g.Ci.call(this,f);var N=this;this.U=M;this.jk=Q;this.X=new g.yK(this);this.fade=new g.I1(this,A,!0,void 0,void 0,function(){N.lm()}); g.d(this,this.X);g.d(this,this.fade)}; OX=function(M){var f=M.U.getRootNode();return M.U.V("web_watch_pip")||M.U.V("web_shorts_pip")?d2(f):document}; phb=function(M){M.Z&&(document.activeElement&&g.IH(M.element,document.activeElement)&&M.Z.focus(),M.Z.setAttribute("aria-expanded","false"),M.Z=void 0);g.u$(M.X);M.B=void 0}; Xf=function(M,f,A){M.eE()?M.fk():M.q5(f,A)}; JU=function(M,f,A,Q){Q=new g.O({S:"div",Ai:["ytp-linked-account-popup-button"],Ix:Q,D:{role:"button",tabindex:"0"}});f=new g.O({S:"div",Y:"ytp-linked-account-popup",D:{role:"dialog","aria-modal":"true",tabindex:"-1"},L:[{S:"div",Y:"ytp-linked-account-popup-title",Ix:f},{S:"div",Y:"ytp-linked-account-popup-description",Ix:A},{S:"div",Y:"ytp-linked-account-popup-buttons",L:[Q]}]});g.Wj.call(this,M,{S:"div",Y:"ytp-linked-account-popup-container",L:[f]},100);var N=this;this.dialog=f;g.d(this,this.dialog); Q.listen("click",function(){N.fk()}); g.d(this,Q);g.$X(this.U,this.element,4);this.hide()}; g.Gt=function(M,f,A,Q){g.Ci.call(this,M);this.priority=f;A&&g.Kv(this,A);Q&&this.Xk(Q)}; g.wx=function(M,f,A,Q){M=M===void 0?{}:M;f=f===void 0?[]:f;A=A===void 0?!1:A;Q=Q===void 0?!1:Q;f.push("ytp-menuitem");var N=M;"role"in N||(N.role="menuitem");A||(N=M,"tabindex"in N||(N.tabindex="0"));M={S:A?"a":"div",Ai:f,D:M,L:[{S:"div",Y:"ytp-menuitem-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-menuitem-label",Ix:"{{label}}"},{S:"div",Y:"ytp-menuitem-content",Ix:"{{content}}"}]};Q&&M.L.push({S:"div",Y:"ytp-menuitem-secondary-icon",Ix:"{{secondaryIcon}}"});return M}; g.Kv=function(M,f){M.updateValue("label",f)}; le=function(M){g.Gt.call(this,g.wx({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var f=this;this.U=M;this.Z=this.K=!1;this.uI=M.cB();M.createServerVe(this.element,this,!0);this.J(this.U,"settingsMenuVisibilityChanged",function(A){f.Gt(A)}); this.J(this.U,"videodatachange",this.C);this.listen("click",this.onClick);this.C()}; MN=function(M){return M?g.ae(M):""}; fD=function(M){g.y.call(this);this.api=M}; A$=function(M){fD.call(this,M);var f=this;Tt(M,"setAccountLinkState",function(A){f.setAccountLinkState(A)}); Tt(M,"updateAccountLinkingConfig",function(A){f.updateAccountLinkingConfig(A)}); M.addEventListener("videodatachange",function(A,Q){f.onVideoDataChange(Q)}); M.addEventListener("settingsMenuInitialized",function(){f.menuItem=new le(f.api);g.d(f,f.menuItem)})}; hyb=function(M){this.api=M;this.K={}}; QL=function(M,f,A,Q){f in M.K||(A=new g.T1(A,Q,{id:f,priority:2,namespace:"appad"}),M.api.L3([A],1),M.K[f]=A)}; NN=function(M){fD.call(this,M);var f=this;this.events=new g.yK(this);g.d(this,this.events);this.K=new hyb(this.api);this.events.J(this.api,"legacyadtrackingpingreset",function(){f.K.K={}}); this.events.J(this.api,"legacyadtrackingpingchange",function(A){var Q=f.K;QL(Q,"part2viewed",1,0x8000000000000);QL(Q,"engagedview",Math.max(1,A.xO*1E3),0x8000000000000);if(!A.isLivePlayback){var N=A.lengthSeconds*1E3;Em(A)&&Q.api.V("html5_shorts_gapless_ads_duration_fix")&&(N=Q.api.getProgressState().seekableEnd*1E3-A.ZA);QL(Q,"videoplaytime25",N*.25,N);QL(Q,"videoplaytime50",N*.5,N);QL(Q,"videoplaytime75",N*.75,N);QL(Q,"videoplaytime100",N,0x8000000000000);QL(Q,"conversionview",N,0x8000000000000); QL(Q,"videoplaybackstart",1,N);QL(Q,"videoplayback2s",2E3,N);QL(Q,"videoplayback10s",1E4,N)}}); this.events.J(this.api,g.EW("appad"),this.Z);this.events.J(this.api,g.tf("appad"),this.Z)}; CU9=function(M,f,A){if(!(A in f))return!1;f=f[A];Array.isArray(f)||(f=[f]);f=g.V(f);for(A=f.next();!A.done;A=f.next()){A=A.value;var Q={CPN:M.api.getVideoData().clientPlaybackNonce};A=g.z3(A,Q);Q=void 0;Q=Q===void 0?!1:Q;(Q=fh(Af(A,S_X),A,Q,"Active View 3rd Party Integration URL"))||(Q=void 0,Q=Q===void 0?!1:Q,Q=fh(Af(A,LAX),A,Q,"Google/YouTube Brand Lift URL"));Q||(Q=void 0,Q=Q===void 0?!1:Q,Q=fh(Af(A,oLf),A,Q,"Nielsen OCR URL"));g.bg(A,void 0,Q)}return!0}; YF=function(M,f){UE0(M,f).then(function(A){g.bg(f,void 0,void 0,A)})}; IM=function(M,f){f.forEach(function(A){YF(M,A)})}; UE0=function(M,f){return g.Zs(M.api.T())&&p0(f)&&va(f)?g.v5(M.api.T(),g.bv(M.api.getVideoData())).then(function(A){var Q;A&&(Q={Authorization:"Bearer "+A});return Q},void 0):n0()}; VDe=function(M){fD.call(this,M);this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"videoready",function(f){if(M.getPresentingPlayerType()===1){var A,Q,N={playerDebugData:{pmlSignal:!!((A=f.getPlayerResponse())==null?0:(Q=A.adPlacements)==null?0:Q.some(function(Y){var I;return Y==null?void 0:(I=Y.adPlacementRenderer)==null?void 0:I.renderer})), contentCpn:f.clientPlaybackNonce}};g.hO("adsClientStateChange",N)}})}; TF=function(M){g.O.call(this,{S:"button",Ai:["ytp-button","ytp-autonav-toggle"],D:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},L:[{S:"div",Y:"ytp-autonav-toggle-button-container",L:[{S:"div",Y:"ytp-autonav-toggle-button",D:{"aria-checked":"true"}}]}]});this.U=M;this.Z=[];this.K=!1;this.isChecked=!0;M.createClientVe(this.element,this,113681);this.J(M,"presentingplayerstatechange",this.x0);this.listen("click",this.onClick);this.U.T().V("web_player_autonav_toggle_always_listen")&& a1N(this);Bj(M,this.element,this);this.x0()}; a1N=function(M){M.Z.push(M.J(M.U,"videodatachange",M.x0));M.Z.push(M.J(M.U,"videoplayerreset",M.x0));M.Z.push(M.J(M.U,"onPlaylistUpdate",M.x0));M.Z.push(M.J(M.U,"autonavchange",M.yC))}; q_9=function(M){M.isChecked=M.isChecked;M.H7("ytp-autonav-toggle-button").setAttribute("aria-checked",String(M.isChecked));var f=M.isChecked?"Autoplay is on":"Autoplay is off";M.updateValue("title",f);M.updateValue("label",f);M.U.EJ()}; HWb=function(M){return M.U.T().V("web_player_autonav_use_server_provided_state")&&Qm(g.F(M.K3()))}; mE0=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"standardControlsInitialized",function(){var A=new TF(M);g.d(f,A);M.ww(A,"RIGHT_CONTROLS_LEFT")})}; Dc=function(M,f){g.Gt.call(this,g.wx({role:"menuitemcheckbox","aria-checked":"false"}),f,M,{S:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; EO=function(M,f){M.checked=f;M.element.setAttribute("aria-checked",String(M.checked))}; sBd=function(M){var f=!M.T().ri&&M.getPresentingPlayerType()!==3;return M.isFullscreen()||f}; g.t$=function(M,f,A,Q){var N=M.currentTarget;if((A===void 0||!A)&&g.iM(M))return M.preventDefault(),!0;f.pauseVideo();M=g.F(N.getAttribute("href"));g.Oa(M,Q,!0);return!1}; g.vp=function(M,f,A){if(M1(f.T())&&f.getPresentingPlayerType()!==2){if(g.iM(A))return f.isFullscreen()&&!f.T().externalFullscreen&&f.toggleFullscreen(),A.preventDefault(),!0}else{var Q=g.iM(A);Q&&f.pauseVideo();g.Oa(M,void 0,!0);Q&&(g.XV(M),A.preventDefault())}return!1}; Ryb=function(){var M=cVD.includes("en")?{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,D:{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"}}]}:{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,D:{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"}}]};M.Y="ytp-subtitles-button-icon";return M}; pD=function(){return{S:"div",Y:"ytp-spinner-container",L:[{S:"div",Y:"ytp-spinner-rotator",L:[{S:"div",Y:"ytp-spinner-left",L:[{S:"div",Y:"ytp-spinner-circle"}]},{S:"div",Y:"ytp-spinner-right",L:[{S:"div",Y:"ytp-spinner-circle"}]}]}]}}; h$=function(M){if(document.createRange){var f=document.createRange();f&&(f.selectNodeContents(M),M=window.getSelection())&&(M.removeAllRanges(),M.addRange(f))}}; oM=function(M){var f=M.V("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Dc.call(this,f,g.Sl.MR);var A=this;this.U=M;this.K=!1;this.Z=new g.MY(function(){g.p5(A.element,"ytp-menuitem-highlighted")},0); this.uI=M.cB();this.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.j,this);this.listen(LD,this.C);g.d(this,this.Z)}; CD=function(M){fD.call(this,M);var f=this;this.K=!1;M.addEventListener("settingsMenuInitialized",function(){gLX(f)}); M.addEventListener("highlightSettingsMenu",function(A){gLX(f);var Q=f.menuItem;A==="menu_item_cinematic_lighting"&&(g.tZ(Q.element,"ytp-menuitem-highlighted"),g.tZ(Q.element,"ytp-menuitem-highlight-transition-enabled"),Q.Z.start())}); Tt(M,"updateCinematicSettings",function(A){f.updateCinematicSettings(A)})}; gLX=function(M){M.menuItem||(M.menuItem=new oM(M.api),g.d(M,M.menuItem),M.menuItem.Nu(M.K))}; Bpb=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"applicationvideodatachange",function(A,Q){Q=Q.clipConfig;A==="dataloaded"&&Q&&Q.startTimeMs!=null&&Q.endTimeMs!=null&&f.api.setLoopRange({startTimeMs:Math.floor(Number(Q.startTimeMs)),endTimeMs:Math.floor(Number(Q.endTimeMs)),postId:Q.postId,type:"clips"})})}; UO=function(M){fD.call(this,M);this.events=new g.yK(M);g.d(this,this.events);Tt(M,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Tt(M,"setCreatorEndscreenHideButton",this.K.bind(this))}; VL=function(M,f,A,Q){Dc.call(this,"Stable Volume",g.Sl.Gx);g.tZ(this.element,"ytp-drc-menu-item");this.uI=M.cB();this.j=f;this.K=A;this.hasDrcAudioTrack=Q;M.addEventListener("videodatachange",this.Z.bind(this));M.V("mta_drc_mutual_exclusion_removal")&&this.J(M,"onPlaybackAudioChange",this.Z);M=this.K()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", fill:"white"}}]});this.subscribe("select",this.C,this);EO(this,M);this.uI.Sc(this)}; aM=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);M.V("html5_show_drc_toggle")&&M.addEventListener("settingsMenuInitialized",function(){f.menuItem||(f.menuItem=new VL(f.api,f.setDrcUserPreference.bind(f),f.getDrcUserPreference.bind(f),f.Z.bind(f)),g.d(f,f.menuItem))}); Tt(this.api,"setDrcUserPreference",function(Q){f.setDrcUserPreference(Q)}); Tt(this.api,"getDrcUserPreference",function(){return f.getDrcUserPreference()}); Tt(this.api,"hasDrcAudioTrack",function(){return f.Z()}); var A;this.K=(A=g.$J("yt-player-drc-pref"))!=null?A:1;this.updateEnvironmentData()}; qN=function(M){fD.call(this,M);var f=this;this.K={};this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"videodatachange",function(){f.onVideoDataChange()}); this.events.J(M,g.EW("embargo"),function(A){f.api.Mm(!0);var Q,N=(Q=f.K[A.id])!=null?Q:[];Q=g.V(N);for(N=Q.next();!N.done;N=Q.next()){var Y=N.value;f.api.hideControls();f.api.Cx("auth",2,"This video isn't available in your current playback area",x8({embargoed:1,id:A.id,idx:A.Z,start:A.start}));N=void 0;(Y=(N=Y.embargo)==null?void 0:N.onTrigger)&&f.api.T0("innertubeCommand",Y)}})}; iW6=function(M,f){var A;return(A=f.onEnter)==null?void 0:A.some(M.Z)}; xE0=function(M,f){f=g.V(f);for(var A=f.next();!A.done;A=f.next()){A=A.value;var Q=void 0,N=Number((Q=A.playbackPosition)==null?void 0:Q.utcTimeMillis)/1E3,Y=void 0;Q=N+Number((Y=A.duration)==null?void 0:Y.seconds);Y="embargo_"+N;M.api.addUtcCueRange(Y,N,Q,"embargo",!1);A.onEnter&&(M.K[Y]=A.onEnter.filter(M.Z))}}; Hp=function(M){fD.call(this,M);var f=this;this.K=[];this.events=new g.yK(M);g.d(this,this.events);Tt(M,"addEmbedsConversionTrackingParams",function(A){f.api.T().jC&&f.addEmbedsConversionTrackingParams(A)}); this.events.J(M,"veClickLogged",function(A){f.api.hasVe(A)&&(A=A.visualElement.getAsJspb(),A=kV(A,2),f.K.push(A))})}; ZW6=function(M){fD.call(this,M);Tt(M,"isEmbedsShortsMode",function(){return M.isEmbedsShortsMode()})}; rV0=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"initialvideodatacreated",function(A){FU($L(),16623);f.K=g.iH();var Q=M.T().WK&&!A.vy;if(ed(A)&&Q){FU($L(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(A.getWatchNextResponse()){var N,Y=(N=A.getWatchNextResponse())==null?void 0:N.trackingParams;Y&&dp(Y)}if(A.getPlayerResponse()){var I;(A=(I=A.getPlayerResponse())==null?void 0:I.trackingParams)&&dp(A)}}else FU($L(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),A.getEmbeddedPlayerResponse()&&(I=(Y=A.getEmbeddedPlayerResponse())==null?void 0:Y.trackingParams)&&dp(I)}); this.events.J(M,"loadvideo",function(){FU($L(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:f.K})}); this.events.J(M,"cuevideo",function(){FU($L(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:f.K})}); this.events.J(M,"largeplaybuttonclicked",function(A){FU($L(),27240,A.visualElement)}); this.events.J(M,"playlistnextbuttonclicked",function(A){FU($L(),27240,A.visualElement)}); this.events.J(M,"playlistprevbuttonclicked",function(A){FU($L(),27240,A.visualElement)}); this.events.J(M,"playlistautonextvideo",function(){FU($L(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; mS=function(M,f){g.y.call(this);var A=this;this.K=null;this.j=f;f=[];for(var Q=0;Q<=100;Q++)f.push(Q/100);f={threshold:f,trackVisibility:!0,delay:1E3};(this.Z=window.IntersectionObserver?new IntersectionObserver(function(N){N=N[N.length-1];typeof N.isVisible==="undefined"?document.visibilityState==="visible"&&N.isIntersecting&&N.intersectionRatio>0?A.K=N.intersectionRatio:document.visibilityState==="hidden"?A.K=0:A.K=null:A.K=N.isVisible?N.intersectionRatio:0;typeof A.j==="function"&&A.j(A.K)},f): null)&&this.Z.observe(M)}; zyU=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"applicationInitialized",function(){uUc(f)})}; uUc=function(M){var f=M.api.getRootNode(),A,Q=M.api.getWebPlayerContextConfig().embedsEnableEmc3ds?VNX((A=f.parentElement)==null?void 0:A.parentElement)||f:f;M.K=new mS(Q,function(N){N!=null&&(M.api.T().d5=N,M.api.T().E6="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.d(M,M.K);M.events.J(M.api,"videoStatsPingCreated",function(N){var Y=M.K;Y=Y.K==null?null:Math.round(Y.K*100)/100;N.inview=Y!=null?Y:void 0;Y=M.api.getPlayerSize();if(Y.height>0&&Y.width>0){Y=[Math.round(Y.width),Math.round(Y.height)];var I=g.Ad();I>1&&Y.push(I);Y=Y.join(":")}else Y=void 0;N.size=Y})}; PUb=function(M){var f;return((f=((M==null?void 0:M.messageRenderers)||[]).find(function(A){return!!A.timeCounterRenderer}))==null?void 0:f.timeCounterRenderer)||null}; sO=function(M){g.O.call(this,{S:"div",Ai:["ytp-player-content","ytp-iv-player-content"],L:[{S:"div",Y:"ytp-free-preview-countdown-timer",L:[{S:"span",Ix:"{{label}}"},{S:"span",Y:"ytp-free-preview-countdown-timer-separator",Ix:"\u2022"},{S:"span",Ix:"{{duration}}"}]}]});this.api=M;this.K=null;this.j=this.Z=0;this.J(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; jBb=function(M,f){M.K||(M.Z=f,M.j=(0,g.W)(),M.K=new g.la(function(){nLb(M)},null),nLb(M))}; nLb=function(M){var f=Math,A=f.round,Q=Math.min((0,g.W)()-M.j,M.Z);f=A.call(f,(M.Z-Q)/1E3);M.updateValue("duration",Z1({seconds:f}));f<=0&&M.K?M.stopTimer():M.K&&M.K.start()}; $Eb=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"basechromeinitialized",function(){f.K=new sO(M);g.d(f,f.K);g.$X(M,f.K.element,4);f.K.hide()})}; cp=function(M){g.O.call(this,{S:"button",Ai:["ytp-fullerscreen-edu-button","ytp-button"],L:[{S:"div",Ai:["ytp-fullerscreen-edu-text"],Ix:"Scroll for details"},{S:"div",Ai:["ytp-fullerscreen-edu-chevron"],L:[{S:"svg",D:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{S:"path",D:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],D:{"data-priority":"2"}});this.G0=M;this.fade=new g.I1(this,250,void 0,100);this.Z=this.K=!1;M.createClientVe(this.element,this,61214);g.d(this, this.fade);this.J(M,"fullscreentoggled",this.Nu);this.J(M,"presentingplayerstatechange",this.Nu);this.listen("click",this.onClick);this.Nu()}; RM=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);Tt(this.api,"updateFullerscreenEduButtonSubtleModeState",function(Q){f.updateFullerscreenEduButtonSubtleModeState(Q)}); Tt(this.api,"updateFullerscreenEduButtonVisibility",function(Q){f.updateFullerscreenEduButtonVisibility(Q)}); var A=M.T();M.V("external_fullscreen_with_edu")&&A.externalFullscreen&&M1(A)&&A.controlsType==="1"&&this.events.J(M,"standardControlsInitialized",function(){f.K=new cp(M);g.d(f,f.K);M.ww(f.K)})}; FA0=function(M){g.O.call(this,{S:"div",Y:"ytp-gated-actions-overlay",L:[{S:"div",Y:"ytp-gated-actions-overlay-background",L:[{S:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{S:"button",Ai:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],D:{"aria-label":"Close"},L:[g.Re()]},{S:"div",Y:"ytp-gated-actions-overlay-bar",L:[{S:"div",Y:"ytp-gated-actions-overlay-text-container",L:[{S:"div",Y:"ytp-gated-actions-overlay-title",Ix:"{{title}}"},{S:"div",Y:"ytp-gated-actions-overlay-subtitle", Ix:"{{subtitle}}"}]},{S:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var f=this;this.api=M;this.background=this.H7("ytp-gated-actions-overlay-background");this.Z=this.H7("ytp-gated-actions-overlay-button-container");this.K=[];this.J(this.H7("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){f.api.T0("onCloseMiniplayer")}); this.hide()}; dE9=function(M,f){var A=0;A=0;for(var Q={};A N&&(N=D.width,Y="url("+D.url+")")}A.background.style.backgroundImage=Y;dE9(A,Q.actionButtons||[]);A.show()}else A.hide()}); g.$X(this.api,this.K.element,4)}; gm=function(M){fD.call(this,M);var f=this;Su(this.api,"getSphericalProperties",function(){return f.getSphericalProperties()}); Su(this.api,"setSphericalProperties",function(){f.setSphericalProperties.apply(f,g.c(g.jN.apply(0,arguments)))}); pv(this.api,"getSphericalProperties",function(){return f.api.getPresentingPlayerType()===2?{}:f.getSphericalProperties()}); pv(this.api,"setSphericalProperties",function(){var A=g.jN.apply(0,arguments);f.api.getPresentingPlayerType()!==2&&f.setSphericalProperties.apply(f,g.c(A))})}; Bp=function(M){fD.call(this,M);Tt(M,"createClientVe",this.createClientVe.bind(this));Tt(M,"createServerVe",this.createServerVe.bind(this));Tt(M,"destroyVe",this.destroyVe.bind(this));Tt(M,"hasVe",this.hasVe.bind(this));Tt(M,"logClick",this.logClick.bind(this));Tt(M,"logVisibility",this.logVisibility.bind(this));Tt(M,"setTrackingParams",this.setTrackingParams.bind(this))}; ib=function(M,f,A,Q){function N(I){var D=!(I.status!==204&&I.status!==200&&!I.response),E;I={succ:""+ +D,rc:I.status,lb:((E=I.response)==null?void 0:E.byteLength)||0,rt:((0,g.W)()-Y).toFixed(),shost:g.RH(M),trigger:f};bWX(I,M);A&&A(I);Q&&!D&&Q(new ZZ("pathprobe.net",I))} var Y=(0,g.W)();g.Ba(M,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:N,onTimeout:N})}; bWX=function(M,f){var A;((A=window.performance)==null?0:A.getEntriesByName)&&(f=performance.getEntriesByName(f))&&f.length&&(f=f[0],M.pedns=(f.domainLookupEnd-f.startTime).toFixed(),M.pecon=(f.connectEnd-f.domainLookupEnd).toFixed(),M.perqs=(f.requestStart-f.connectEnd).toFixed(),kve&&(M.perqsa=f.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; WAz=function(M){kve=M}; xF=function(M,f){this.u7=M;this.policy=f;this.playbackRate=1}; OWb=function(M,f){var A=Math.min(2.5,cs(M.u7));M=Zc(M);return f-A*M}; rm=function(M,f,A,Q,N){N=N===void 0?!1:N;if(M.policy.oZ)return Math.ceil(M.policy.oZ*f);M.policy.Bz&&(Q=Math.abs(Q));Q/=M.playbackRate;var Y=1/Bs(M.u7);A=Math.max(.9*(Q-3),cs(M.u7)+M.u7.Z.K*Y)/Y*.8/(f+A);A=Math.min(A,Q);M.policy.ri>0&&N&&(A=Math.max(A,M.policy.ri));return Xh6(M,A,f)}; Xh6=function(M,f,A){return Math.ceil(Math.max(Math.max(M.policy.Ev,M.policy.Tq*A),Math.min(Math.min(M.policy.nJ,31*A),Math.ceil(f*A))))||M.policy.Ev}; JV0=function(M,f,A){A=rm(M,f.K.info.DB,A.K.info.DB,0);var Q=cs(M.u7)+A/Bs(M.u7);return Math.max(Q,Q+M.policy.IQ-A/f.K.info.DB)}; Zc=function(M){return Bs(M.u7,!M.policy.ao,M.policy.XJ)}; ub=function(M){return Zc(M)/M.playbackRate}; zF=function(M,f,A){var Q=M.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],N=M.policy.playbackStartPolicy.startMinReadaheadPolicy||[];M=Infinity;f=g.V(f&&Q.length>0?Q:N);for(Q=f.next();!Q.done;Q=f.next())Q=Q.value,N=Q.minReadaheadMs||0,A<(Q.minBandwidthBytesPerSec||0)||M>N&&(M=N);return M0&&(this.Z=A.pH)}; whN=function(M,f,A,Q,N){if(!Q.info.N){if(A.length===0)A.push(Q);else{var Y;(M=(Y=A.pop())==null?void 0:g.hD(Y,Q))?A.push(M):A.push(Q)}return N}var I;(A=(I=A.pop())==null?void 0:g.hD(I,Q))||(A=Q);if(M.policy.MV&&A.info.Z)return M.logger&&M.logger({incompleteSegment:A.info.ZK()}),N;Q=M.Yv(A);N=Q.Ur;Q={clipId:Q.clipId,formatId:Q.formatId,startTimeMs:Q.startTimeMs,durationMs:Q.HW,F7:N,iM:N};N=KAc(f,Q.startTimeMs);if(Y=A=N>=0?f[N]:null){Y=Q;var D=N;I=A.startTimeMs+A.durationMs;var E=Y.startTimeMs+Y.durationMs; if(Y.startTimeMs-I>M.Z)Y=!1;else if(GvN(M,A.formatId,Y.formatId))A.durationMs=Math.max(I,E)-A.startTimeMs,A.iM=Math.max(A.iM,Y.iM),Y=!0;else if(Math.abs(A.startTimeMs-Y.startTimeMs)<=M.Z)if(A.durationMs>Y.durationMs+M.Z){var t=A.formatId,v=A.F7;D=A.iM;A.formatId=Y.formatId;A.durationMs=Y.durationMs;A.F7=Y.F7;A.iM=Y.iM;Y.formatId=t;Y.startTimeMs=E;Y.durationMs=I-E;Y.F7=v;Y.iM=D;Y=!1}else A.formatId=Y.formatId,Y=!0;else I>Y.startTimeMs&&(M.policy.zD&&I>E&&(f.splice(D+1,0,{formatId:A.formatId,startTimeMs:E, durationMs:I-E,F7:Y.iM+1,iM:A.iM}),M.logger&&M.logger({splitOldStart:(t=A.startTimeMs)==null?void 0:t.toFixed(3),splitOldEnd:I==null?void 0:I.toFixed(3),splitNewStart:(v=Y.startTimeMs)==null?void 0:v.toFixed(3),splitNewEnd:E==null?void 0:E.toFixed(3)})),A.durationMs=Y.startTimeMs-A.startTimeMs,A.iM=Y.F7-1),Y=!1}Y?Q=A:(N+=1,f.splice(N,0,Q));t=0;for(v=N+1;v=E+A.Z?A=!0:D+A.Z=0?M:-M-2}; l19=function(M,f){if(M.yw){var A=M.yw.Da();if(A.length!==0){if(M.j&&f){var Q=M.j,N=Q.info.C;!Sr(A,N)&&Q.info.W>0&&(0,g.W)()-M.G<5E3&&(M.logger&&M.logger({dend:Q.info.ZK()}),A=iJf(A,N,N+.01))}M.policy.ZM&&M.logger&&M.logger({cbri:""+M.K});Q=[];for(var Y=N=0;N=I){var v=Object.assign({},M.BX[Y]),p=M.c7.j.get(j$(M.BX[Y].formatId)),h=Math.max(E,I);I=p.index.IY(h+M.Z/ 1E3);E=p.index.getStartTime(I);var S=I+ +(Math.abs(E-h)>M.Z/1E3);h=S+M.C;S=p.index.getStartTime(S)*1E3;Y!==M.K||f?(v.F7=h,v.startTimeMs=S):(M.logger&&M.logger({pEvict:"1",og:v.startTimeMs,adj:E*1E3}),v.F7=I+M.C,v.startTimeMs=E*1E3);I=void 0;E=((I=M.j)==null?void 0:I.info.duration)||11;Y===M.K&&DM.Z/1E3);I=E+M.C;p=p.index.xB(E)*1E3;v.iM=I;v.durationMs=p-v.startTimeMs;v.F7<=v.iM&&Q.push(v)}t=0&&yL(M.audioTrack,M.K)>=0&&Y?((M.videoTrack.N||M.audioTrack.N)&&M.loader.ZB("iterativeSeeking",{status:"done",count:M.seekCount}),M.videoTrack.N=!1,M.audioTrack.N=!1):Q&&g.cW(function(){if(M.Z||!M.policy.b8)bb(M);else{var I=f.startTime,D=f.duration;if(!M.policy.N){var E=A?M.videoTrack.N:M.audioTrack.N,t=M.videoTrack.G!==-1&&M.audioTrack.G!==-1,v=M.K>=I&&M.K432E3&&ZsD(M.c7);M.j&&(N=M.j,M.j=0);g.cW(function(){M.policy.N||kF(M,N,102)}); M.loader.ZB("initManifestlessSync",{st:N,ost:N+M.loader.vX(),a:M.audioTrack.G,v:M.videoTrack.G});M.C&&(M.C.resolve(N+.1),M.C=null);M.policy.N&&kF(M,N,102)}}}; XD=function(M,f){var A=this;this.jx=M;this.requestNumber=++pd0;this.K=this.now();this.X=this.B=NaN;this.W=this.K;this.j=this.oE=this.N=0;this.G=this.K;this.l8=this.KJ=this.g_=this.xp=this.MV=this.P7=this.Z=this.C=0;this.Er=this.isActive=!1;this.zt=this.b8=0;this.Ed={Y2$:function(){return A.Uu}}; this.u7=f.u7;this.snapshot=TzD(this.u7);this.policy=this.u7.Z;this.JI=!!f.JI;this.v5=f.v5;this.M_=f.M_||0;this.mR=f.mR||0;f.GV&&(this.z0=new o3);var Q;this.Uu=(Q=f.Uu)!=null?Q:!1;this.JI||NzD(this.u7)}; hFt=function(M){M.g_=Math.max(M.g_,M.N-M.MV);M.KJ=Math.max(M.KJ,M.W-M.xp);M.P7=0}; J$=function(M,f,A){YNX(M.u7,f);M.z0&&(M.z0.add(Math.ceil(f)-Math.ceil(M.W)),M.z0.add(Math.max(0,Math.ceil(A/1024)-Math.ceil(M.N/1024))));var Q=f-M.W,N=A-M.N;M.oE=N;M.l8=Math.max(M.l8,N/(Q+.01)*1E3);M.W=f;M.N=A;M.P7&&A>M.P7&&hFt(M)}; KD=function(M,f){M.url=f;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; GF=function(M,f){XD.call(this,M,f);this.Qw=this.wq=!1;this.fJ=this.jk=Infinity;this.nJ=NaN;this.Z9=!1;this.w_=NaN;this.Yp=this.ox=this.YO=0;this.HC=f.HC||1;this.Tg=f.Tg||this.HC;this.Yr=f.Yr;this.Ur=f.Ur;this.zP=f.zP;SUf(this);this.S8(this.K);this.xO=(this.w_-this.K)/1E3}; LwX=function(M){var f=M.ox||M.YO;return f?M.snapshot.delay+Math.min(M.mR,(M.X-M.B)/1E3)+f:M.xO}; wm=function(M,f,A){if(!M.JI){f=Math.max(f,.01);var Q=M.M_?Math.max(f,A/M.M_):f,N=M.u7.Z.j;N&&(Q=f,M.M_&&(Q=Math.max(f,A/M.M_*N)));Hs(M.u7,f,A,Q)}}; ome=function(M){return(M.G-M.K)/1E3}; SUf=function(M){M.nJ=M.K+M.snapshot.delay*1E3;M.Z9=!1}; lb=function(M,f){if(M.Yr&&M.Ur!==void 0&&M.zP!==void 0){var A=Math,Q=A.min,N=M.jk;var Y=M.Yr;var I=M.K;if(Cob(Y,M.Ur))Y=f;else{var D=0;Y.SU&&(D=.2);Y=I+(Y.mR+D)*1E3}M.jk=Q.call(A,N,Y);A=Math;Q=A.min;N=M.fJ;Y=M.Yr;I=M.K;D=Uj0(Y,M.Ur,M.zP);D!==2&&(f=D?f:I+Y.mR*1E3,Y.SU&&(f+=Y.mR*1E3));M.fJ=Q.call(A,N,f);M.jk<=M.K?SUf(M):(M.nJ=M.jk,M.Z9=!0)}}; V2d=function(M,f){if(M.oD(f,1)){var A=M.getUint8(f);A=A<128?1:A<192?2:A<224?3:A<240?4:5}else A=0;if(A<1||!M.oD(f,A))return[-1,f];if(A===1)M=M.getUint8(f++);else if(A===2)A=M.getUint8(f++),M=M.getUint8(f++),M=(A&63)+64*M;else if(A===3){A=M.getUint8(f++);var Q=M.getUint8(f++);M=M.getUint8(f++);M=(A&31)+32*(Q+256*M)}else if(A===4){A=M.getUint8(f++);Q=M.getUint8(f++);var N=M.getUint8(f++);M=M.getUint8(f++);M=(A&15)+16*(Q+256*(N+256*M))}else A=f+1,M.focus(A),c7(M,A,4)?M=PmN(M).getUint32(A-M.jE,!0):(Q= M.getUint8(A+2)+256*M.getUint8(A+3),M=M.getUint8(A)+256*(M.getUint8(A+1)+256*Q)),f+=5;return[M,f]}; Mv=function(M){this.jx=M;this.K=new ap}; f3=function(M,f){this.info=M;this.callback=f;this.state=1;this.lN=this.Mg=!1;this.SP=null}; aQ6=function(M){return g.Oy(M.info.r_,function(f){return f.type===3})}; AX=function(M,f,A,Q){var N=this;Q=Q===void 0?{}:Q;this.policy=f;this.jx=A;this.status=0;this.K=new ap;this.Z=0;this.ek=this.C=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Q.method||"GET",M);if(Q.headers)for(M=Q.headers,f=g.V(Object.keys(M)),A=f.next();!A.done;A=f.next())A=A.value,this.xhr.setRequestHeader(A,M[A]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return N.Yi()}; this.xhr.onload=function(){return N.onDone()}; this.xhr.onerror=function(){return N.onError()}; this.xhr.fetch(function(Y){N.K.append(Y);N.Z+=Y.length;Y=(0,g.W)();N.jx.IG(Y,N.Z)},function(){},Q.body||null)}; Nv=function(){this.Z=this.f8=0;this.K=Array.from({length:Qz.length}).fill(0)}; qUd=function(){}; HyN=function(){this.startTimeMs=(0,g.W)();this.K=!1}; mjb=function(){this.K=new qUd}; sr9=function(M,f,A,Q){Q=Q===void 0?1:Q;A>=0&&(f in M.K||(M.K[f]=new Nv),M.K[f].r5(A,Q))}; crT=function(M,f,A,Q,N){var Y=(0,g.W)(),I=N?N(f):void 0,D;N=(D=I==null?void 0:I.f8)!=null?D:1;if(N!==0){var E;D=(E=I==null?void 0:I.profile)!=null?E:A;sr9(M,D,Y-Q,N)}return f}; Yf=function(M,f,A,Q,N){if(f&&typeof f==="object"){var Y=function(I){return crT(M,I,A,Q,N)}; if(U_(f))return f.then(Y);if(CW(f))return mA(f,Y)}return crT(M,f,A,Q,N)}; RFe=function(){}; gm9=function(M,f){this.Z=(new TextEncoder).encode(M);this.K=(new TextEncoder).encode(f)}; VPN=function(M,f){var A,Q,N;return g.n(function(Y){if(Y.Z==1){if(!f)return Y.return(f);A=IN.M7();Q=new g.cI(M.Z);return g.r(Y,Q.encrypt(f,M.K),2)}N=Y.K;IN.PC("woe",A,Math.ceil(f.byteLength/16));return Y.return(N)})}; sv9=function(M,f){var A,Q,N;return g.n(function(Y){if(Y.Z==1){if(!f)return Y.return(f);A=IN.M7();Q=new g.cI(M.Z);return g.r(Y,Q.decrypt(f,M.K),2)}N=Y.K;IN.PC("wod",A,Math.ceil(f.byteLength/16));return Y.return(N)})}; iyc=function(M,f){var A=this;this.K=M;this.jx=f;this.loaded=this.status=0;this.error="";M=yM(this.K.get("range")||"");if(!M)throw Error("bad range");this.range=M;this.Z=new ap;BYc(this).then(function(){A.jx.I_()},function(Q){A.error=""+Q||"unknown_err"; A.jx.I_()})}; BYc=function(M){var f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a;return g.n(function(q){if(q.Z==1){M.status=200;f=M.K.get("docid");A=Cg(M.K.get("fmtid")||"");Q=M.K.get("lmt")||"0";N=+(M.K.get("csz")||0);if(!f||!A||!N)throw Error("Invalid local URL");M.K.get("ck")&&M.K.get("civ")&&(Y=new gm9(M.K.get("ck"),M.K.get("civ")));I=M.range;D=Math.floor(I.start/N);E=Math.floor(I.end/N);t=D}if(q.Z!=5)return t<=E?g.r(q,cez(f,A,Q,t,Y),5):q.CJ(0);v=q.K;if(v===void 0)throw Error("invariant: data is undefined");p=t*N;h=(t+1)*N; S=Math.max(0,I.start-p);L=Math.min(I.end+1,h)-(S+p);a=new Uint8Array(v.buffer,S,L);M.Z.append(a);M.loaded+=L;M.loaded=400?(M.lastError="net.badstatus",!0):(N===void 0?0:N)?(M.lastError="ump.spsrejectfailure",!0):A||Q!==void 0&&Q?!1:(M.lastError=f===204?"net.nocontent":"net.connect",!0)}; L3=function(M,f){if(M.policy.Z3)return!1;var A=f.getResponseHeader("content-type"),Q=f.Na();M=!Q||Q<=M.policy.E2;return(!f.sA()||!A||A.indexOf("text/plain")!==-1)&&M}; $jX=function(M,f){var A="";f=f.Aj();f.getLength()<=M.policy.E2&&(A=jr9(M,f.Vd()));return A}; jr9=function(M,f){var A=B7(f);return Qb(A)?(M.logger.debug(function(){return"Redirecting to "+A}),A):""}; vS=function(M){return ZG(M.j,ny(M.C3.FV))}; FwN=function(M){var f=M.timing.C6();f.shost=ny(M.C3.FV);return f}; yrT=function(M,f){return(M==null?void 0:M.maxWidth)>(f==null?void 0:f.maxWidth)||(M==null?void 0:M.maxHeight)>(f==null?void 0:f.maxHeight)}; djD=function(M,f){for(var A=g.V(f.keys()),Q=A.next();!Q.done;Q=A.next())if(Q=f.get(Q.value),Q.length!==0){g.PK(Q,function(D,E){return E.maxFramerate-D.maxFramerate}); for(var N=[Q[0]],Y=0,I=1;IM.K||A.push(Q)}return A}; oN=function(M,f,A){var Q=kNt[M]||[];A.V("html5_shorts_onesie_mismatched_fix")&&(Q=WwU[M]||[]);f.push.apply(f,g.c(Q));A.V("html5_early_media_for_drm")&&f.push.apply(f,g.c(OyX[M]||[]))}; lQT=function(M,f){var A=g.hg(M),Q=M.T(),N=Q.N;Q=Q.V("html5_shorts_onesie_mismatched_fix");var Y=M.E3();if(Q){if(!N.Z){if(Y&&C3)return C3;if(UK)return UK}}else if(UK&&!N.Z)return UK;var I=[],D=[],E={},t=Vz.concat(Xd9);Q&&(t=Vz.concat(Jr0));M.V("html5_early_media_for_drm")&&(t=t.concat(Kw0),M.V("allow_vp9_1080p_mq_enc")&&t.push(GNT));var v=[].concat(g.c(wdU));M.V("html5_iamf_audio_onesie_fmt")&&v.push(["773"]);t=g.V(t);for(var p=t.next();!p.done;p=t.next()){var h=!1;p=g.V(p.value);for(var S=p.next();!S.done;S= p.next()){S=S.value;var L=hd(S,Y&&Q);if(L&&L.video&&!(MC(L)&&!A.jk&&L.video.qualityOrdinal>A.nK)){var a=g.CE(M.T().experiments,"html5_drm_byterate_soft_cap");a>0&&gZD(L)&&L.DB>a||(h?(I.push(S),oN(S,I,M)):(L=Rr(A,L,N),L===!0?(h=!0,I.push(S),oN(S,I,M)):E[S]=L))}}}v=g.V(v);for(t=v.next();!t.done;t=v.next())for(t=g.V(t.value),h=t.next();!h.done;h=t.next())if(h=h.value,(p=xKU(h))&&p.audio&&(M.V("html5_onesie_51_audio")||!fO(p)&&!AE(p)))if(p=Rr(A,p,N),p===!0){D.push(h);oN(h,D,M);break}else E[h]=p;if(M.V("html5_block_onesie_hqa_fmt_by_default")&& !M.V("html5_enable_audio_quality_setting"))for(M=g.V(["141","774"]),v=M.next();!v.done;v=M.next())v=v.value,D.includes(v)&&(g.qm(D,v),E[v]="blkhqa");A.Z&&f("orfmts",E);if(Q)return N.Z&&(N.Z=!1,C3=UK=void 0),Y?C3={video:I,audio:D}:UK={video:I,audio:D};UK={video:I,audio:D};N.Z=!1;return UK}; g.AxN=function(M,f,A){var Q=A.N,N=[],Y=[],I=A.V("html5_shorts_onesie_mismatched_fix");M=M.E3();var D=Vz.concat(Xd9);I&&(D=Vz.concat(Jr0));A.V("html5_early_media_for_drm")&&(D=D.concat(Kw0),A.V("allow_vp9_1080p_mq_enc")&&D.push(GNT));var E=[].concat(g.c(wdU));A.V("html5_iamf_audio_onesie_fmt")&&E.push(["773"]);D=g.V(D);for(var t=D.next();!t.done;t=D.next()){t=g.V(t.value);for(var v=t.next();!v.done;v=t.next()){v=v.value;var p=hd(v,M&&I);if(p&&p.video){var h=g.CE(A.experiments,"html5_drm_byterate_soft_cap"); if(!(h>0&&gZD(p)&&p.DB>h)&&Rr(f,p,Q)===!0){N.push({videoCodec:M$X[Jk[v]],maxWidth:p.video.width,maxHeight:p.video.height,maxFramerate:p.video.fps});break}}}}I=g.V(E);for(M=I.next();!M.done;M=I.next())for(M=g.V(M.value),E=M.next();!E.done;E=M.next())if(E=E.value,(D=xKU(E))&&D.audio&&(A.V("html5_onesie_51_audio")||!fO(D)&&!AE(D))&&Rr(f,D,Q)===!0){Y.push({audioCodec:fG6[Jk[E]],numChannels:D.audio.numChannels});break}return{videoFormatCapabilities:N,audioFormatCapabilities:Y}}; qv=function(M){var f={},A=M.d_,Q=M.i8,N=A.getVideoData(),Y=Gv(0),I=A.getPlayerSize(),D=A.getVisibilityState();if(Q.V("html5_enable_audio_quality_setting")){var E=g.CE(Q.experiments,"html5_default_audio_quality_setting_lr"),t;f.Hj=(t=QF0[E])!=null?t:0}Y&&(f.Ju=Y,f.lastManualDirection=WLD(),Y=lIz()||0,Y>0&&(Y=(Q.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.W)())-Y,Q.V("html5_use_date_now_for_local_storage")?Y>0&&(f.timeSinceLastManualFormatSelectionMs=Y):f.timeSinceLastManualFormatSelectionMs= Y));Y=Q.V("html5_use_streamer_bandwidth_for_low_latency_live")&&N.isLowLatencyLiveStream;if(Q.schedule.Er&&!Y){var v;Y=Q.V("html5_disable_bandwidth_cofactors_for_sabr_live")?!((v=M.II)==null||!v.ao):!1;f.Pj=Bs(Q.schedule,!Y)}Y=g.Ad();E=g.bT.medium;t=Math.floor(E*16/9);v=N.E3()?E:t;E=N.E3()?t:E;t=I.width*Y;I=I.height*Y;Q.V("html5_sabr_use_container_size")&&(I=A.r3(),t=I.width,I=I.height);f.Wj=Math.max(t,v);f.Ru=Math.max(I,E);f.visibility=D;f.Nfi=xr();f.zi=A.g5()*1E3;D=M.d_.MK();var p,h,S,L,a,q;f.tO7= {defaultPolicy:(D==null?void 0:(p=D.gB)==null?void 0:p.K)||0,smooth:(D==null?void 0:(h=D.Lc)==null?void 0:h.K)||0,visibility:(D==null?void 0:(S=D.iE)==null?void 0:S.K)||0,gH:(D==null?void 0:(L=D.VF)==null?void 0:L.K)||0,performance:(D==null?void 0:(a=D.Vl)==null?void 0:a.K)||0,speed:(D==null?void 0:(q=D.Dr)==null?void 0:q.K)||0};var m;f.CM8=(D==null?void 0:(m=D.ZP)==null?void 0:m.K)||0;f.b3=M.b3&&M.b3.length>0?M.b3:[1,2];M.sabrLicenseConstraint&&(f.sabrLicenseConstraint=M.sabrLicenseConstraint);if(Q.V("html5_onesie_media_capabilities")|| Q.V("html5_enable_server_format_filter"))f.Cn=3;Q.V("html5_onesie_audio_only_playback")&&tg(N)&&(f.Cn=1);var R;((R=M.II)==null?0:R.N5)&&M.o$&&(f.Cn=f.Cn===void 0?7:f.Cn|4);p=N.zj?N.zj:g.hg(N);Q.V("html5_onesie_media_capabilities")&&(f.mediaCapabilities=g.AxN(N,p,Q));var u;if((u=M.II)==null?0:aN(u)){S=Q.N;u=[];h=[];L=new Map;a=Array.from(S.K.values());a=g.V(a);for(q=a.next();!q.done;q=a.next())m=q.value,m.gf?h.push({audioCodec:fG6[m.LJ],numChannels:m.numChannels,spatialCapabilityBitmask:NLb[m.LJ]}): (R=M$X[m.LJ],q={videoCodec:R,maxWidth:m.maxWidth||0,maxHeight:m.maxHeight||0,maxFramerate:m.maxFramerate||0,is10BitSupported:m.kG||!1},m.maxBitrateBps&&(q.maxBitrateBps=m.maxBitrateBps,D=hd(m.itag),I=void 0,((I=D)==null?0:I.video)&&Rr(p,D,S)===!0&&(D=D.DB*8,D>q.maxBitrateBps&&(q.maxBitrateBps=D))),m=R+"_"+m.kG,R=L.get(m)||[],R.push(q),L.set(m,R));u=djD(u,L);S={};Q.V("html5_ssff_denylist_opus_low")&&(S={itagDenylist:[249,350]});f.mediaCapabilities={videoFormatCapabilities:u,audioFormatCapabilities:h, hdrModeBitmask:3,perPlaybackAttributes:S}}var z;if((z=M.II)==null?0:z.K){f.k9=p.k9;var e;f.nK=(e=M.II)==null?void 0:e.nK}Q.Yx&&(f.ix=Q.Yx);f.dG=M.QN;f.XQ=M.XQ;f.TO=M.TO;f.Q9=M.Q9;M.x3&&(f.qwJ=(0,g.W)()-M.x3);M.isPrefetch&&Q.V("html5_report_prefetch_requests")&&(f.isPrefetch=!0);D9||(f.Sr$=!0);z=cs(Q.schedule)*1E3;z>0&&(f.Md=z);var G;((G=M.II)==null?0:G.Jn)&&M.A2&&M.A20?X:Q.schedule.interruptions[0]||0);var Qt;if((Qt=M.II)==null?0:Qt.Qw)f.QQ=M.QQ;if(N.ao||Q.xO)f.audioTrackId=N.ao||Q.xO;if(Om(N)&&!f.audioTrackId){var Y9;a:{var Mc,E0,w;Qt=(Mc=N.playerResponse)==null?void 0:(E0=Mc.playerConfig)==null?void 0:(w=E0.compositeVideoConfig)==null?void 0:w.sourceConfigs;var m6,BX;Mc=(Y9= N.playerResponse)==null?void 0:(m6=Y9.playerConfig)==null?void 0:(BX=m6.compositeVideoConfig)==null?void 0:BX.defaultActiveSourceVideoId;if(Qt&&Mc)for(Y9=g.V(Qt),m6=Y9.next();!m6.done;m6=Y9.next())if(m6=m6.value,m6.videoId===Mc&&m6.audioTracks)for(m6=g.V(m6.audioTracks),BX=m6.next();!BX.done;BX=m6.next())if(BX=BX.value,BX.isDefaultForSource){Y9=BX.id||"";break a}Y9=""}f.audioTrackId=Y9;N==null||N.ZB("misstrkchg",{"default":f.audioTrackId})}var WX;if((WX=M.II)==null?0:WX.UY)if(M=s1D())f.detailedNetworkType= Yzc[M]||Yzc.other;Q.V("html5_enable_voice_boost")&&(f.tVN=Q.jQ);return f}; HS=function(M,f,A,Q,N,Y,I){var D={};f&&(D.L2=f);if(!M)return D;D.playbackCookie=A==null?void 0:A.playbackCookie;N&&(D.qC=N);D.xu=[];D.Bp=[];if(I==null?0:I.size)for(f=g.V(I.values()),A=f.next();!A.done;A=f.next())D.Bp.push(A.value);if(M.sabrContextUpdates.size>0)for(f=g.V(M.sabrContextUpdates.values()),A=f.next();!A.done;A=f.next())IG0(D,A.value,Q);pk(M)&&Y&&IG0(D,Y,Q);M.PA&&(D.ZW$=M.PA);Q=M.T().K;D.clientInfo={clientName:TL0[Q.c.toUpperCase()]||0};Q.cbrand&&(D.clientInfo.deviceMake=Q.cbrand);Q.cmodel&& (D.clientInfo.deviceModel=Q.cmodel);Q.cver&&(D.clientInfo.clientVersion=Q.cver);Q.cos&&(D.clientInfo.osName=Q.cos);Q.cosver&&(D.clientInfo.osVersion=Q.cosver);Q=M.T();Q.V("html5_sabr_enable_server_xtag_selection")&&Q.gb&&(D.clientInfo.hl=Q.gb);M.yb&&(D.yb=M.yb);return D}; IG0=function(M,f,A){var Q=f.type||0;(A==null?0:A.has(Q))?M.Bp.push(f):M.xu.push(Q)}; $F=function(M,f,A,Q,N,Y){var I=Y===void 0?{}:Y;var D=I.nO===void 0?[]:I.nO;var E=I.g$===void 0?!1:I.g$;var t=I.Bt===void 0?0:I.Bt;var v=I.poToken===void 0?"":I.poToken;var p=I.Oc===void 0?void 0:I.Oc;var h=I.WO===void 0?"":I.WO;var S=I.Vi===void 0?0:I.Vi;var L=I.G7===void 0?new Uint8Array(0):I.G7;var a=I.o3===void 0?!1:I.o3;Y=I.z8===void 0?0:I.z8;I=I.L2===void 0?void 0:I.L2;f3.call(this,f,N);var q=this;this.policy=M;this.logger=new g.tD("dash/request");this.De=this.R9=0;this.Nn=!1;this.mx=this.dR= null;this.rr=!1;this.G7=this.Vi=null;this.Xq=this.XS=!1;this.QW=null;this.z8=this.f1=0;this.le=!1;this.Ed={Rt:function(R){q.Rt(R)}, kJu:function(){return q.SP}, li7:function(R){q.SP=R}, hsr:function(R){q.R9=R}, TMx:function(R){q.Pv.lastError=R}, nj:function(){return q.xhr}}; this.timing=new GF(this,A);this.g$=E;this.Vi=S;this.G7=L;this.C3=g.M6(this.info,this.policy,Q);this.C3.set("rn",this.JY().toString());this.C3.set("rbuf",(t*1E3).toFixed().toString());this.g$&&this.C3.set("smb","1");this.policy.QS&&v&&this.C3.set("pot",v);h&&this.C3.set("bbs",h);this.policy.useUmp&&!j2(this.C3.FV)&&(this.s6=new Mv(this),this.C3.set("ump","1"),this.C3.set("srfvp","1"));if(M=this.policy.FK?this.policy.uV&&!isNaN(this.info.zP)&&this.info.zP>this.policy.o2?!1:!0:!1)f=null,this.policy.BI&& this.policy.z9?f=[1]:a&&(f=[]),f!=null&&(this.policy.OM&&f.push(2),this.C3.set("defsel",f.join(",")));this.Pv=new tX(this,this.policy,this.C3,this.info.HX,this.timing,this.logger,Q,p);this.nO=D||null;this.lN=Dez(this);u_b(this.Pv);Q=void 0;if(this.policy.d0||this.s6||this.policy.g_)Q={method:"POST"},D=(0,g.mk)([120,0]),p={},this.policy.UQ&&I&&(I=HS(void 0,I),p.Ty=I),this.policy.GT&&this.G7&&(p.videoPlaybackUstreamerConfig=this.G7),this.policy.g_&&(I=this.info.C)&&Object.assign(p,I),Object.keys(p).length> 0?Q.body=g.lp(p,g.vd):Q.body=D;if(this.Vi&&this.G7){this.C3.set("iwts","1");Q={method:"POST"};I={Q9:this.Vi*1E3};var m;D=(m=this.info.C)==null?void 0:m.MD;m=g.lp({Sh:I,MD:D||void 0,videoPlaybackUstreamerConfig:this.G7},g.vd);Q.body=m}try{this.xhr=Tr(this.C3,this.policy.W,this.timing,M,Q),this.Pv.Z.start(),Y&&(this.ib=new g.MY(this.jo,Y,this),this.ib.start(Y+(this.timing.u7.X.LW()||0)*1E3)),this.policy.O1&&KD(this.timing,this.mf()),this.logger.debug(function(){return"Sent, itag="+q.C3.get("itag")+ " seg="+q.info.r_[0].Ur+" range="+q.C3.get("range")+" time="+Math.round(q.info.r_[0].C)+"-"+Math.round(g.Sw(q.info.r_).G)+" rtp="+(q.timing.jG()-Date.now()).toFixed(0)}),g.cW(function(){})}catch(R){EOT(this,R,!0)}}; Dez=function(M){if(!(lA(M.info)&&M.info.Uu()&&M.policy.R5&&M.nO)||M.info.HX.j>=2||Gv()>0||!KLX())return!1;var f=M.C3.get("aitags");if(!f)return!1;f=Cg(f).split(",");for(var A=[],Q=g.V(M.nO),N=Q.next();!N.done;N=Q.next())N=N.value,g.V9(f,N)&&A.push(N);if(!A.length)return!1;M.C3.set("altitags",g.o9(A.join(",")));return!0}; EOT=function(M,f,A){A=A===void 0?!1:A;g.jZ(f);M.Pv.lastError="player.exception";M.errorMessage=f.name+"_"+f.message;A?g.cW(function(){hX(M.Pv)}):hX(M.Pv)}; t$z=function(M,f){M.timing.Er=!0;M.xhr.sA()&&M.timing.Rr();if(M.policy.d2){var A;(A=M.ib)==null||A.stop()}EK(M.SP,f,!1)}; vO9=function(M,f){M.info=f;if(M.SP){var A=M.SP;f=f.r_;(f.length!==A.r_.length||f.length0){f=g.V(f.r_);for(var A=f.next();!A.done;A=f.next()){var Q=void 0;M+=((Q=A.value.range)==null?void 0:Q.length)||0}return M}if(f.hS.length>0)for(A=g.V(f.hS),Q=A.next();!Q.done;Q=A.next())M+=Q.value.UW||0;return M+f.uv}; ZE=function(M,f){if(BS){var A=0;M=M.mL.get(f);if(M==null||!M.vU)return 0;M=g.V(M.vU.values());for(f=M.next();!f.done;f=M.next())A+=f.value.data.getLength();return A}return((A=M.mL.get(f))==null?void 0:A.a5.getLength())||0}; rH=function(M,f){M=M.mL.get(f);if(BS){if(M==null||!M.mB)return!1;f=M.vU.size>0;return M.Pp.length>0||f}return!(M==null||!M.mB)&&!(M==null||!M.a5.getLength())}; CAz=function(M,f){var A=M.mL.get(f),Q=oOd(M,f),N=!Q&&!!A.bytesReceived;if(BS){var Y;if((Y=M.c7)==null?0:Y.U$){M=g.V(A.vU.values());for(f=M.next();!f.done;f=M.next())if(!f.value.J6)return!1;return N}}else if(Y=M.ON(f),N&&M.K&&Y!==void 0)return Y;return(N||A.bytesReceived===Q)&&A.TY+ZE(M,f)===A.bytesReceived}; Uet=function(M,f,A){M.mL.set(f,{a5:new ap,TY:0,bytesReceived:0,uv:0,IJ:!1,xZ:!1,ON:!1,gf:A,Ye:[],r_:[],hS:[],mB:!1,vU:new Map,Ss:new Map,Pp:[]});M.logger.debug(function(){return"[initStream] formatId: "+f})}; V$t=function(M,f,A,Q){A.r_.push.apply(A.r_,g.c(Q));if(BS){A.Ss.has(f)||A.Ss.set(f,[]);var N;(N=A.Ss.get(f)).push.apply(N,g.c(Q))}else if(A.SP)for(M=g.V(Q),f=M.next();!f.done;f=M.next())A.SP.r_.push(f.value);else{A.SP=new DE(M.II,[].concat(g.c(A.r_)));var Y;((Y=M.II)==null?0:Y.Z_)&&g.d(M,A.SP)}}; aGU=function(M,f,A){var Q,N=(Q=M.c7)==null?void 0:Q.j.get(f);if(!N)return[];if(A.FP){var Y;return((Y=N.UN(0,A.clipId))==null?void 0:Y.r_)||[]}if(N.Gv()){var I=A.startMs,D=A.durationMs,E=1E3,t;if(((t=M.II)==null?0:t.K)&&A.timeRange){var v;I=(v=A.timeRange.startTicks)!=null?v:-1;var p;D=(p=A.timeRange.uT)!=null?p:-1;var h;E=(h=A.timeRange.timescale)!=null?h:-1}if(A.SJ<0||A.HQ<0||D<0||I<0||A.UW<0||E<0)return xf(M,f),[];M=dL(A.SJ,A.UW);f=A.Ox||0;return[new bA(3,N,M,"makeSliceInfosMediaBytes",A.HQ-1,I/ E,D/E,f,M.length-f,void 0,A.LK,A.clipId)]}if(A.HQ<0)return xf(M,f),[];var S;return((S=M.c7)==null?0:S.U$)?(f=N.DQ,t=f*N.info.DB,v=((I=M.II)==null?0:I.MV)?A.Ox:void 0,((E=M.II)==null?0:E.tZ)&&A.timeRange&&!v&&(D=A.timeRange.startTicks/A.timeRange.timescale),[new bA(3,N,void 0,"makeSliceInfosMediaBytes",A.HQ,D,f,v,t,!0,A.LK,A.clipId)]):[]}; qzT=function(M,f,A){M.c7=f;M.II=A;f=g.V(M.mL);for(A=f.next();!A.done;A=f.next()){var Q=g.V(A.value);A=Q.next().value;Q=Q.next().value;for(var N=g.V(Q.Ye),Y=N.next();!Y.done;Y=N.next()){Y=Y.value;var I=aGU(M,A,Y);V$t(M,Y.rU,Q,I)}}}; uY=function(M,f,A,Q){M.logger.debug(function(){return"[addStreamData] formatId: "+A+",headerId: "+f+" bytes: "+Q.getLength()}); (M=M.mL.get(A))&&!M.xZ&&(BS?(M.vU.has(f)||M.vU.set(f,{data:new ap,sM:0,J6:!1}),qx(M.vU.get(f).data,Q)):qx(M.a5,Q),M.bytesReceived+=Q.getLength(),M.IJ=!0)}; iY=function(M,f){M.logger.debug(function(){return"[closeStream] formatId: "+f}); var A=M.mL.get(f);A&&!A.xZ&&(A.xZ=!0,A.wf&&A.wf(),H6b(M)&&M.C.W4())}; H6b=function(M){M=g.V(M.mL.values());for(var f=M.next();!f.done;f=M.next())if(!f.value.xZ)return!1;return!0}; meN=function(M){BS=M}; zr=function(M,f,A,Q,N,Y,I){g.y.call(this);this.policy=M;this.info=f;this.c7=A;this.jx=N;this.logger=new g.tD("sabr");this.s6=new Mv(this);this.eB=new RN(this);this.Ew=new gH(this);this.state=1;this.gI=!1;this.fz=0;this.clipId="";this.Lh=-1;this.I7=0;this.Zq=-1;this.le=this.oA=!1;this.FD=0;this.qB=!1;this.policy.eN?this.Bv=new sK(this,Y):this.Bv=new GF(this,Y);this.C3=this.policy.Qw?f.dO:g.F(sFe(f,this.policy,Q));this.C3.set("rn",""+this.JY());this.C3.set("alr","yes");qzT(this.Ew,A,M);this.Pv=new tX(this, this.policy,this.C3,f.HX,this.Bv,this.logger,Q,I,this.policy.enableServerDrivenRequestCancellation);u_b(this.Pv);var D;if((D=this.policy)==null?0:D.Z_)g.d(this,this.Ew),g.d(this,this.Pv);M=f.Z;f={method:"POST",body:M};M&&(this.I7=M.length);try{this.xhr=Tr(this.C3,this.policy.W,this.Bv,D9,f),this.policy.O1&&KD(this.Bv,this.mf()),this.Pv.Z.start()}catch(E){g.$b(E)}}; cxe=function(M){M.policy.CM&&M.sE&&!M.qB?M.qB=!0:M.Bv.Rr()}; RvX=function(M,f){var A=-1,Q=-1,N=-1,Y;if((Y=M.Al)==null?0:Y.items)for(M=g.V(M.Al.items),Y=M.next();!Y.done;Y=M.next())Y=Y.value,f=D,E=M.c7.isManifestless&&M.policy.Wt,I){var t;if(((t=M.K)==null?void 0:t.uU.event)==="predictStart"&&M.K.UrM.G&&(M.G=NaN,M.W=NaN);M.K&&M.K.Ur===f?evb(M,f,A,M.K,N):M.Z===1&&$f(M,5,"noad")}; b6X=function(M,f,A,Q,N){Q.Th?$f(M,4,"cue"):(M.G=f,M.W=A,M.ZB("sdai",{joinad:M.Z,sg:M.G,st:M.W.toFixed(3)}),M.B=Date.now(),$f(M,2,M.Z===3?"staftpred":"join"),N.gE(Q.uU))}; evb=function(M,f,A,Q,N){if(N&&Q){var Y=Q.uU,I=N.Sl(Y);Y.event==="predictStart"&&(M.KJ=f);M.ZB("sdai",{onqevt:Y.event,sq:f,mt:A,gab:I,cst:Y.startSecs,cueid:M.policy.R2&&(I||Y.event==="start")?Y.identifier:void 0},!0);if(I)if(Y.event!=="predictStart")Y.event==="start"&&M.KJ===f-1&&M.ZB("sdai",{gabonstart:f}),b6X(M,f,A,Q,N);else if(M.policy.vy)$f(M,3,"predict");else{var D=f+Math.max(Math.ceil(-Y.K/5E3),1);I=Math.floor(A-Y.K/1E3);M.policy.j?M.N=I:M.C=D;M.ZB("sdai",{onpred:A,estsq:D,estmt:I.toFixed(3)}); FI(M.loader,I,I,D);M.B=Date.now();$f(M,3,"predict");N.gE(Q.uU)}else M.Z===1?((D=M.j)==null?0:D.Pg(A))?(FI(M.loader,A,A,f),$f(M,4,"sk2head")):$f(M,5,"nogab"):Y.event==="predictStart"?M.policy.j&&M.N>0?(A=Math.floor(A-Y.K/1E3),M.N!==A&&M.ZB("sdai",{updateSt:A,old:M.N}),M.N=A):M.C>0&&(A=f+Math.max(Math.ceil(-Y.K/5E3),1),M.C!==A&&(M.ZB("sdai",{updateSt:A,old:M.C}),M.C=A)):M.policy.vy&&M.Z===3&&b6X(M,f,A,Q,N);var E,t;if(M.G_&&Y.event==="start"&&((E=M.K)==null?void 0:E.uU.event)!=="predictStart"&&((t=M.K)== null?void 0:t.Ur)===f-1){var v;M.ZB("sdai",{ovlpst:(v=M.K)==null?void 0:v.uU.event,sq:f})}}else M.ZB("sdai",{nulldec:1,sq:f,mt:A.toFixed(3),evt:(Q==null?void 0:(Y=Q.uU)==null?void 0:Y.event)||"none"})}; WMX=function(M,f,A){if(M.policy.Qr&&M.policy.j)return!(M.Z===1||M.Z===2||!M.policy.vy&&M.Z===3&&A>=M.C);if(M.Z===1||M.Z===2)return!1;if(M.Z!==0&&f===M.audioTrack){if(M.policy.j)return k20(M.videoTrack,A)||k20(M.videoTrack,A+1);M=yz(M.videoTrack);if(A>(M?M.Ur:-1))return!1}return!0}; dH=function(M,f,A){return(A<0||A===M.G)&&!isNaN(M.W)?M.W:f}; $eN=function(M,f){if(M.K){var A=M.K.uU.UR-(f.startTime+M.X-M.K.uU.startSecs);A<=0||(A=new wY(M.K.uU.startSecs-(isNaN(M.X)?0:M.X),A,M.K.uU.context,M.K.uU.identifier,"stop",M.K.uU.K+f.duration*1E3),M.ZB("cuepointdiscontinuity",{segNum:f.Ur}),jn(M,A,f.Ur))}}; $f=function(M,f,A){M.Z!==f&&(M.ZB("sdai",{setsst:f,old:M.Z,r:A}),M.Z=f)}; en=function(M,f,A,Q){(Q===void 0?0:Q)?$f(M,1,"seek"):f>0&&Math.abs(f-A)>=5&&M.Z===4&&$f(M,5,"sk2t")}; bY=function(M,f,A){this.audio=M;this.video=f;this.reason=A}; kf=function(M,f,A){this.K=M;this.reason=f;this.token=A;this.videoId=void 0}; WS=function(M,f,A){g.y.call(this);this.policy=M;this.C=f;this.ZB=A;this.j=new Map;this.N=0;this.G=!1;this.K="";this.Z=!1}; OK=function(M,f,A){if(A===void 0?0:A)M.G=!0;++M.N;A=6E4*Math.pow(2,M.N);A=(0,g.W)()+A;M.j.set(f.info.id,A)}; XI=function(M){for(var f=g.V(M.j.entries()),A=f.next();!A.done;A=f.next()){var Q=g.V(A.value);A=Q.next().value;Q=Q.next().value;Q<(0,g.W)()&&M.j.delete(A)}return M.j}; O6d=function(M){return M.G&&XI(M).size>0}; JX=function(M,f){M.K!==f&&(M.K=f,M.Z=!0)}; X4X=function(M,f){var A;f&&(A=g.oR(M.C.K,function(N){return N.id===f})); if(!A&&(A=g.oR(M.C.K,function(N){var Y;return!((Y=N.qV)==null||!Y.isDefault)}),f)){var Q; M.ZB("iaf",{id:f,sid:(Q=A)==null?void 0:Q.id})}return A}; Gr=function(M,f,A,Q,N,Y){var I=this;Y=Y===void 0?[]:Y;this.loader=M;this.jk=f;this.policy=A;this.c7=Q;this.G=N;this.l8=Y;this.logger=new g.tD("dash/abr");this.K=KF;this.j=this.W=null;this.B=-1;this.fJ=!1;this.nextVideo=this.Z=null;this.C=[];this.ox=new Set;this.g_={};this.w_=new UH(1);this.X=0;this.YO=this.KJ=this.Er=!1;this.P7=0;this.Ji=!1;this.z0=new Set;this.nJ=!1;this.Ed={mA:function(){K3(I)}}; this.N=new WS(this.policy,N,function(D,E){I.loader.ZB(D,E)})}; lG0=function(M,f,A){wH(M,f);f=X4X(M.N,A);A||f||(f=Jxz(M));f=f||M.G.K[0];M.Z=M.c7.K[f.id];K3(M);M.W=M.Z;KM0(M);G2U(M);M.j=M.nextVideo;M.W=M.Z;return w4D(M)}; ADf=function(M,f){if(MLz(M,f))return null;if(f.reason==="m"&&f.isLocked())return M.logger.debug(function(){return"User sets constraint to: "+qj(f)}),wH(M,f),M.X=M.C.length-1,K3(M),lY(M),M.KJ=M.KJ||M.j!==M.nextVideo,M.j=M.nextVideo,new bY(M.Z,M.j,f.reason); f.reason==="r"&&(M.B=-1);wH(M,f);lY(M);if(f.reason==="r"&&M.nextVideo===M.j)return new bY(M.Z,M.nextVideo,f.reason);fVe(M);return null}; QnT=function(M,f,A){M.Z=M.c7.K[f];M.W=M.Z;return new bY(M.W,M.j,A?"t":"m")}; Nce=function(M,f){if(f.info.video){if(M.j!==f)return M.j=f,w4D(M)}else M.YO=M.W!==f,M.W=f;return null}; Ywc=function(M,f){if(f.K.info.video&&f.N){var A=(f.Z+f.j)/f.duration,Q=f.K.info.DB;A&&Q&&(M.w_.Li(1,A/Q),M.policy.Z&&A/Q>1.5&&M.loader.ZB("overshoot",{sq:f.Ur,br:A,max:Q}))}}; My=function(M,f,A){OK(M.N,f,A===void 0?!1:A);M.B=-1;wH(M,M.K)}; IV0=function(M,f){return new bY(M.W,M.j,f||M.K.reason)}; fVe=function(M){if(M.j&&M.nextVideo&&fG(M,M.j.info)M.policy.nK,D=N<=M.policy.nK?MC(Q):Gk(Q);if(!Y||I||D)A[N]=Q}return A}; wH=function(M,f){M.K=f;var A=M.G.videoInfos;if(!M.K.isLocked()){var Q=(0,g.W)();A=g.Pw(A,function(D){if(D.DB>this.policy.DB)return!1;var E=this.c7.K[D.id];return XI(this.N).get(D.id)>Q?!1:E.HX.j>4||E.G>4?(this.logger.debug(function(){return"Remove "+tE(D)+"; 4 load failures"}),!1):this.z0.has(+D.itag)?!1:!0},M); O6d(M.N)&&(A=g.Pw(A,function(D){return D.video.width<=854&&D.video.height<=480}))}A.length||(A=M.G.videoInfos); var N=A;M.policy.rR&&(N=D6d(M,N,f));N=g.Pw(N,f.C,f);if(M.K.isLocked()&&M.N.K){var Y=g.oR(A,function(D){return D.id===M.N.K}); Y?N=[Y]:JX(M.N,"")}M.policy.rR||(N=D6d(M,N,f));N.length||(N=[A[0]]);N.sort(function(D,E){return fG(M,D)-fG(M,E)}); f={};for(A=1;Af.zs.video.width?(g.aR(N,A),A--):fG(M,f.LN)*M.policy.X>fG(M,f.zs)&&(g.aR(N,A-1),A--);var I=N[N.length-1];M.Ji=!!M.j&&!!M.j.info&&M.j.info.LJ!==I.LJ;M.logger.debug(function(){return"Constraint: "+qj(M.K)+", "+N.length+" fmts selectable, max selectable fmt: "+tE(I)}); M.C=N;M.ox.clear();f=!1;for(A=0;A=1080&&(f=!0);EBf(M.policy,I,M.c7.U$)}; D6d=function(M,f,A){var Q=A.reason==="m"||A.reason==="s";M.policy.cM&&A7&&g.mH&&(!Q||A.K<1080)&&(f=f.filter(function(t){return t.video&&(!t.Z||t.Z.powerEfficient)})); if(f.length>0)if(mP()){var N=Tcb(M,f);f=f.filter(function(t){return!!t&&!!t.video&&t.LJ===N[t.video.qualityOrdinal].LJ})}else{var Y,I,D=(Y=f[0])==null?void 0:(I=Y.video)==null?void 0:I.qualityOrdinal; if(D){A=f.filter(function(t){return!!t&&!!t.video&&t.video.qualityOrdinal===D}); var E=Tcb(M,A)[D].LJ;f=f.filter(function(t){return!!t&&!!t.video&&t.LJ===E})}}return f}; tLd=function(M,f){for(var A=0;A+1Q}; K3=function(M){if(!M.Z||!M.policy.C&&!M.Z.info.qV){var f=M.G.K;M.Z&&(f=f.filter(function(Q){return Q.audio.K===M.Z.info.audio.K}),f.length||(f=M.G.K)); M.Z=M.c7.K[f[0].id];if(f.length>1&&!M.policy.YO){if(!M.policy.G$){var A=g.oR(f,function(Q){return Q.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); A&&(M.Z=M.c7.K[A.id])}A=!1;if(A=M.policy.y7?!0:M.K.isLocked()?M.K.K<240:tLd(M,M.Z))M.Z=M.c7.K[g.Sw(f).id]}}}; lY=function(M){if(!M.nextVideo||!M.policy.C)if(M.K.isLocked())M.nextVideo=M.K.K<=360?M.c7.K[M.C[0].id]:M.c7.K[g.Sw(M.C).id],M.logger.debug(function(){return"Select max fmt: "+tE(M.nextVideo.info)}); else{for(var f=Math.min(M.X,M.C.length-1),A=ub(M.jk),Q=fG(M,M.Z.info),N=A/M.policy.Er-Q;f>0&&!(fG(M,M.C[f])<=N);f--);for(var Y=A/M.policy.X-Q;f=Y);f++);M.nextVideo=M.c7.K[M.C[f].id];M.X!==f&&M.logger.info(function(){return"Adapt to: "+tE(M.nextVideo.info)+", bandwidth: "+A.toFixed(0)+", bandwidth to downgrade: "+N.toFixed(0)+", bandwidth to upgrade: "+Y.toFixed(0)+", constraint: "+qj(M.K)}); M.X=f}}; KM0=function(M){var f=M.policy.Er,A=ub(M.jk),Q=A/f-fG(M,M.Z.info);f=g.Cm(M.C,function(N){return fG(this,N)Y?N=0:Q[I]>M.buffered[I]&&(I===Y-1?N=2:I===Y-2&&Q[I+1]>M.buffered[I+1]&&(N=3))}M.K.add(f<<3|(A&&4)|N);f=Math.ceil(M.track.g5()*1E3);M.K.add(f-M.N);M.N=f;if(N===1)for(M.K.add(Y),I=f=0;I=2&&M.K.add(Q[Y- 1]-M.buffered[Y-1]);A&&M.K.add(A);M.buffered=Q}; Yn=function(M,f,A){var Q=this;this.policy=M;this.K=f;this.P7=A;this.C=this.Z=0;this.df=null;this.Er=new Set;this.B=[];this.indexRange=this.initRange=null;this.X=new Yl;this.KJ=this.jk=!1;this.Ed={EV0:function(){return Q.j}, n8O:function(){return Q.chunkSize}, SI7:function(){return Q.W}, pqJ:function(){return Q.G}}; (f=L89(this))?(this.chunkSize=f.csz,this.j=Math.floor(f.clen/f.csz),this.W=f.ck,this.G=f.civ):(this.chunkSize=M.CQ,this.j=0,this.W=g.RP(16),this.G=g.RP(16));this.N=new Uint8Array(this.chunkSize);this.W&&this.G&&(this.crypto=new gm9(this.W,this.G))}; L89=function(M){if(M.policy.o9&&M.policy.SN)for(var f=g.V(M.policy.o9),A=f.next(),Q={};!A.done;Q={YU:void 0,dk:void 0},A=f.next())if(A=g.TA(A.value),Q.YU=+A.clen,Q.dk=+A.csz,Q.YU>0&&Q.dk>0&&M.policy.C===A.docid&&M.K.info.id===A.fmtid&&M.K.info.lastModified===+A.lmt)return M={},M.clen=Q.YU,M.csz=Q.dk,M.ck=A.ck,M.civ=A.civ,M}; II=function(M){return!!M.df&&M.df.WU()}; U6f=function(M,f){if(!II(M)&&!M.ek()){if(!(M.jk||(M.jk=!0,M.j>0))){var A=Tp(M);A=y5(M.policy.C,M.K.info,DT(M),A,M.policy.w_);Eo(M,A)}if(f.info.type===1){if(M.df){t7(M,Error("Woffle: Expect INIT slices to always start us off"));return}M.initRange=dL(0,f.K.getLength())}else if(f.info.type===2)M.df&&M.df.type===1||t7(M,Error("Woffle: Index before init")),M.indexRange=dL(M.initRange.end+1,f.K.getLength());else if(f.info.type===3){if(!M.df){t7(M,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(M.df.type===3&&!Oz(M.df,f.info)&&(M.B=[],f.info.Ur!==Xs(M.df)||f.info.Z!==0))return;if(f.info.N){A=g.V(M.B);for(var Q=A.next();!Q.done;Q=A.next())oBD(M,Q.value);M.B=[]}else{M.B.push(f);M.df=f.info;return}}else{t7(M,Error("Woffle: Unexpected slice type"));return}M.df=f.info;oBD(M,f);CXT(M)}}; oBD=function(M,f){var A=0,Q=f.K.Vd();if(M.C=Q.length)return;if(A<0)throw Error("Missing data");M.C=M.j;M.Z=0}for(N={};A0){var I=Q.getUint32(A+28);Y+=I*16+4}var D=Q.getUint32(A+Y-4);try{var E=m60(f.subarray(A+Y,A+Y+D));if(E!==null){var t=E;break a}}catch(v){}}A+=N}t=null;break a}catch(v){t=null;break a}t=void 0}if(t!=null)for(f=ds(Ug(t,7,void 0,JT)),f==null||M.I5||(M.cryptoPeriodIndex=f),f=ds(Ug(t,10,void 0,JT)),f!=null&&f>0&& !M.I5&&(M.K=f),t=c_(t,2,nRb,void 0===yub?2:4),t=g.V(t),Q=t.next();!Q.done;Q=t.next())f=M.j,A=f.push,Q=tn(Q.value),Q=g.An(Q,4),A.call(f,Q)}; cD0=function(M){return isNaN(M.cryptoPeriodIndex)?g.An(M.initData):""+M.cryptoPeriodIndex}; h7=function(M,f,A){var Q=A===void 0?{}:A;A=Q.videoDuration===void 0?0:Q.videoDuration;var N=Q.GA===void 0?void 0:Q.GA;Q=Q.V1===void 0?!1:Q.V1;this.videoId=M;this.status=f;this.videoDuration=A;this.GA=N;this.V1=Q}; RLb=function(M,f,A,Q,N){this.videoId=M;this.Oa=f;this.Z=A;this.bytesDownloaded=Q;this.K=N}; Sc=function(M){this.K=M;this.offset=0}; LG=function(M){if(M.offset>=M.K.getLength())throw Error();return M.K.getUint8(M.offset++)}; gBD=function(M,f){f=f===void 0?!1:f;var A=LG(M);if(A===1){f=-1;for(A=0;A<7;A++){var Q=LG(M);f===-1&&Q!==255&&(f=0);f>-1&&(f=f*256+Q)}return f}Q=128;for(var N=0;N<6&&Q>A;N++)A=A*256+LG(M),Q*=128;return f?A:A-Q}; BcU=function(M){try{var f=gBD(M,!0),A=gBD(M,!1);return{id:f,size:A}}catch(Q){return{id:-1,size:-1}}}; iqb=function(M){for(var f=new Sc(M),A=-1,Q=0,N=0;!Q||!N;){var Y=BcU(f),I=Y.id;Y=Y.size;if(I<0)return;if(I===176){if(Y!==2)return;Q=f.eT()}else if(I===186){if(Y!==2)return;N=f.eT()}I===374648427?A=f.eT()+Y:I!==408125543&&I!==174&&I!==224&&f.skip(Y)}f=Rp(M,0,A);A=new DataView(f.buffer);A.setUint16(Q,3840);A.setUint16(N,2160);Q=new ap([f]);qx(Q,M);return Q}; x60=function(M,f,A){var Q=this;this.loader=M;this.policy=f;this.G=A;this.logger=new g.tD("dash");this.Z=[];this.K=null;this.jk=-1;this.B=0;this.z0=NaN;this.Er=0;this.j=NaN;this.X=this.fJ=0;this.Ji=-1;this.g_=this.N=this.C=this.P7=null;this.w_=this.YO=NaN;this.W=this.KJ=this.ox=this.l8=null;this.b8=!1;this.nJ=this.timestampOffset=0;this.Ed={zL:function(){return Q.Z}}; if(this.policy.C){var N=this.G,Y=this.policy.C;this.policy.w_&&M.ZB("atv",{ap:this.policy.w_});this.W=new Yn(this.policy,N,function(I,D,E){oI(M,new h7(Q.policy.C,2,{GA:new RLb(Y,I,N.info,D,E)}))}); this.W.X.promise.then(function(I){Q.W=null;I===1?oI(M,new h7(Q.policy.C,I)):Q.loader.ZB("offlineerr",{status:I.toString()})},function(I){var D=(I.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); I instanceof vb&&!I.K?(Q.logger.info(function(){return"Assertion failed: "+D}),Q.loader.ZB("offlinenwerr",{em:D}),CG(Q),oI(M,new h7(Q.policy.C,4))):(Q.logger.info(function(){return"Failed to write to disk: "+D}),Q.loader.ZB("dldbwerr",{em:D}),CG(Q),oI(M,new h7(Q.policy.C,4,{V1:!0})))})}}; Zq6=function(M){return M.Z.length?M.Z[0]:null}; rDX=function(M,f){return M.Z.some(function(A){return A.info.Ur===f})}; jnD=function(M,f,A,Q){Q=Q===void 0?0:Q;if(M.N){var N=M.N.Z+M.N.j;if(A.info.Z>0)if(A.info.Ur===M.N.Ur&&A.info.Z=0&&M.N.Ur>=0&&!Oz(M.N,A.info))throw new g.GX("improper_continuation",M.N.ZK(),A.info.ZK());LPX(M.N,A.info)||Uo(M,"d")}else if(A.info.Z>0)throw new g.GX("continuation_of_null",A.info.ZK());M.N=A.info;M.G=A.info.K;if(A.info.Z===0){if(M.K)if(!M.loader.isOffline()||M.policy.D_)M.loader.ZB("slice_not_fully_processed", {buffered:M.K.info.ZK(),push:A.info.ZK()});else throw new g.GX("slice_not_fully_processed",M.K.info.ZK(),A.info.ZK());V8(M);M.fJ=Q}else{if(M.fJ&&Q&&M.fJ!==Q)throw M=new g.GX("lmt_mismatch",A.info.Ur,M.fJ,Q),M.level="WARNING",M;!A.info.K.Gv()&&M.C&&(Q=A.info,N=M.C.Lh,Q.X="updateWithEmsg",Q.Ur=N)}if(M.K){Q=g.hD(M.K,A);if(!Q)throw new g.GX("failed_to_merge",M.K.info.ZK(),A.info.ZK());M.K=Q}else M.K=A;a:{A=g.Qj(M.K.info.K.info);if(M.K.info.type!==3){if(!M.K.info.N)break a;M.K.info.type===6?ukT(M,f,M.K): zLX(M,M.K);M.K=null}for(;M.K;){Q=M.K.K.getLength();if(M.jk<=0&&M.B===0){var Y=M.K.K,I=-1;N=-1;if(A){for(var D=0;D+80))break;if(p!==408125543)if(p===524531317)D=!0,v>=0&&(N=Y.eT()+v,E=!0);else{if(D&&(p===160||p===163)&&(I<0&&(I=t),E))break;p===163&&(I=Math.max(0,I),N=Y.eT()+v);if(p===160){I<0&&(N=I=Y.eT()+ v);break}Y.skip(v)}}I<0&&(N=-1)}if(I<0)break;M.jk=I;M.B=N-I}if(M.jk>Q)break;M.jk?(Q=PX0(M,M.jk),Q.N&&nBf(M,Q),ukT(M,f,Q),aI(M,Q),M.jk=0):M.B&&(Q=PX0(M,M.B<0?Infinity:M.B),M.B-=Q.K.getLength(),aI(M,Q))}}M.K&&M.K.info.N&&(aI(M,M.K),M.K=null)}; zLX=function(M,f){!f.info.K.Gv()&&f.info.Z===0&&(g.Qj(f.info.K.info)||f.info.K.info.I5())&&Gbb(f);if(f.info.type===1)try{nBf(M,f),$6T(M,f)}catch(N){g.jZ(N);var A=Jx(f.info);A.hms="1";M.loader.handleError("fmt.unparseable",A||{},1)}A=f.info.K;A.qg(f);M.W&&U6f(M.W,f);if(A.eP()&&M.policy.K)a:{M=M.loader.c7;f=f.info.clipId;A=g.Y$(A.info,M.U$);if(f){var Q=j$({itag:A.itag,lmt:M.U$?0:A.lmt||0,xtags:A.xtags});if(M.Ji[Q])break a;M.Ji[Q]=f}M.YO.push(A)}}; TYb=function(M,f,A){if(M.Z.length!==0&&(A||M.Z.some(function(Y){return Y.info.C=Hb(I)+D):f=M.getDuration()>=I.getDuration(),f=!f;f&&d6D(A)&&(f=M.P7,qy?(D=JEz(A),I=1/D,D=Hb(M,D),f=Hb(f)+I-D):f=f.getDuration()- M.getDuration(),f=1+f/A.info.duration,bUN(A.Za(),f))}else{I=!1;M.C||(Gbb(A),A.Z&&(M.C=A.Z,I=!0,Y=A.info,Q=A.Z.Lh,Y.X="updateWithEmsg",Y.Ur=Q,Y=A.Z,Y.WU&&(Q=M.G.index,Q.Z=!Y.WU,Q.j="emsg"),Y=A.info.K.info,Q=A.Za(),g.Qj(Y)?v4(Q,1701671783):Y.I5()&&VM([408125543],307544935,Q)));a:if((Y=on(A,M.policy.zt))&&KP0(A))D=eLT(M,A),M.X+=D,Y-=D,M.Er+=Y,M.j=M.policy.KS?M.j+Y:NaN;else{if(M.policy.CT){if(Q=E=M.loader.AY(g.SL(A),1),M.j>=0&&A.info.type!==6){if(M.policy.KS&&isNaN(M.YO)){g.$b(new g.GX("Missing duration while processing previous chunk", A.info.ZK()));M.loader.isOffline()&&!M.policy.D_||bqN(M,A,Q);Uo(M,"m");break a}var t=E-M.j,v=t-M.X,p=A.info.Ur,h=M.g_?M.g_.Ur:-1,S=M.w_,L=M.YO,a=M.policy.Bq&&t>M.policy.Bq,q=Math.abs(v)>10,m=Math.abs(M.j-Q)<1E-7;if(Math.abs(v)>1E-4){M.nJ+=1;var R=(N=M.C)==null?void 0:f6(N);N={audio:""+ +M.gf(),sq:p.toFixed(),sliceStart:E,lastSq:h.toFixed(),lastSliceStart:S,lastSliceDuration:L,totalDrift:(t*1E3).toFixed(),segDrift:(v*1E3).toFixed(),skipRewrite:""+ +(a||q)};if(R==null?0:R.length)N.adCpn=R[0];M.loader.handleError("qoe.avsync", N);M.Ji=p}a||q||m||(Q=M.j);N=eLT(M,A,E);Y-=N;M.X=t+N;M.policy.Z&&(v&&!m||N)&&(t=(D=M.C)==null?void 0:f6(D),M.loader.ZB("discontinuityRewrite",{adCpn:(t==null?0:t.length)?t.join("."):"",itag:A.info.K.info.itag,sq:A.info.Ur,originalStartTime:E,rewrittenStartTime:Q,startTimeAdjustment:Q-E,segDrift:(v*1E3).toFixed(),originalDuration:Y+N,rewrittenDuration:Y,durationAdjustment:N}))}}else Q=isNaN(M.j)?A.info.startTime:M.j;bqN(M,A,Q)&&(M.Er+=Y,M.j=Q+Y,M.policy.x8&&M.nJ>=M.policy.x8&&(M.nJ=0,M.loader.j4({resetForRewrites:"count"})))}M.g_= A.info;M.YO=Lq(A);A.j>=0&&(M.w_=A.j);if(I&&M.C){I=k5X(M,!0);K6(A.info,I);M.K&&K6(M.K.info,I);f=g.V(f);for(D=f.next();!D.done;D=f.next())D=D.value,N=void 0,M.policy.N&&D.Ur!==((N=M.C)==null?void 0:N.Lh)||K6(D,I);(A.info.N||M.K&&M.K.info.N)&&A.info.type!==6||(M.KJ=I,M.policy.j?(f=W8D(M.C),M.loader.DC(M.G,I,f)):(f=M.loader,f.c7.isManifestless&&Oqd(f,I,null,!!M.G.info.video)),M.policy.Uw||Xxb(M))}}$6T(M,A);M.timestampOffset&&OOb(A,M.timestampOffset)}; aI=function(M,f){if(f.info.N){M.l8=f.info;if(M.C){var A=M.C,Q=k5X(M,!1);A=W8D(A);M.loader.DC(M.G,Q,A);M.KJ||M.policy.Uw||Xxb(M);M.KJ=null}V8(M)}M.W&&U6f(M.W,f);if(Q=M.u4())if(Q=g.hD(Q,f,M.policy.AZ,M.policy.VU)){M.Z.pop();M.Z.push(Q);return}M.Z.push(f)}; W8D=function(M){if(M.Th()){var f=M.data["Stitched-Video-Id"]?M.data["Stitched-Video-Id"].split(",").slice(0,-1):[],A=f6(M),Q=[];if(M.data["Stitched-Video-Duration-Us"])for(var N=g.V(M.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),Y=N.next();!Y.done;Y=N.next())Q.push((Number(Y.value)||0)/1E6);N=[];if(M.data["Stitched-Video-Start-Frame-Index"]){Y=g.V(M.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var I=Y.next();!I.done;I=Y.next())N.push(Number(I.value)||0)}N=[]; if(M.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(Y=g.V(M.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),I=Y.next();!I.done;I=Y.next())N.push((Number(I.value)||0)/1E6);M=new HqT(f,A,Q,N,g.FzD(M),g.ykD(M))}else M=null;return M}; V8=function(M){M.K=null;M.jk=-1;M.B=0;M.C=null;M.z0=NaN;M.Er=0;M.KJ=null}; Uo=function(M,f){f={rst4disc:f,cd:M.X.toFixed(3),sq:M.g_?M.g_.Ur:-1};M.j=NaN;M.X=0;M.Ji=-1;M.g_=null;M.w_=NaN;M.YO=NaN;M.ox=null;M.loader.ZB("mdstm",f)}; $6T=function(M,f){if(M.isDrm()){if(f.info.K.info.I5()){var A=new hx(f.Za());if(L6(A,[408125543,374648427,174,28032,25152,20533,18402])){var Q=Uz(A,!0);A=Q!==16?null:mM(A,Q)}else A=null;Q="webm"}else f.info.B=aVe(f.Za()),A=qwb(f.info.B),Q="cenc";A&&A.length&&(A=new pG(A,Q),M.policy.yG&&g.Qj(f.info.K.info)&&(Q=Kzf(f.Za()))&&(A.Z=Q),A.I5=f.info.K.info.I5(),f.Z&&f.Z.cryptoPeriodIndex&&(A.cryptoPeriodIndex=f.Z.cryptoPeriodIndex),f.Z&&f.Z.Z&&(A.K=f.Z.Z),M.loader.qZ(A))}}; Xxb=function(M){var f=M.C,A=j89(f);A&&(A.startSecs+=M.z0,M.loader.gK(M.G,A,f.Lh,f.Th()))}; k5X=function(M,f){var A,Q=M.C;if(A=j89(Q))A.startSecs+=M.z0;return new dY(Q.Lh,M.z0,f?Q.DQ:M.Er,Q.ingestionTime,"sq/"+Q.Lh,void 0,void 0,f,A)}; bqN=function(M,f,A){if(!WPf(f,A))return f=Jx(f.info),f.smst="1",M.loader.handleError("fmt.unparseable",f||{},1),!1;isNaN(M.z0)&&(M.z0=A);return!0}; eLT=function(M,f,A){var Q=0;if(f.info.K.info.I5()&&!KP0(f))return 0;if(M.P7&&!M.gf()){var N=0;A&&g.Qj(f.info.K.info)?N=A-M.j:f.info.K.info.I5()&&(N=M.X);var Y=f.info.Ur;A=on(f,M.policy.zt);var I=M.P7;var D=I.Ji;I=I.X;var E=Math.abs(I-N)>.02;if((Y===D||Y>D&&Y>M.Ji)&&E){Q=Math.max(.95,Math.min(1.05,(A-(I-N))/A));if(g.Qj(f.info.K.info))bUN(f.Za(),Q);else if(f.info.K.info.I5()&&(Y=N-I,!g.Qj(f.info.K.info)&&(f.info.K.info.I5(),Q=new hx(f.Za()),D=f.N?Q:new hx(new DataView(f.info.K.K.buffer)),on(f,!0)))){var t= Y*1E3,v=c4(D);D=Q.pos;Q.pos=0;if(Q.K.getUint8(Q.pos)===160||RF(Q))if(C6(Q,160))if(Uz(Q,!0),C6(Q,155)){if(Y=Q.pos,E=Uz(Q,!0),Q.pos=Y,t=t*1E9/v,v=aF(Q),t=v+Math.max(-v*.7,Math.min(v,t)),t=Math.sign(t)*Math.floor(Math.abs(t)),!(Math.ceil(Math.log(t)/Math.log(2)/8)>E)){Q.pos=Y+1;for(Y=E-1;Y>=0;Y--)Q.K.setUint8(Q.pos+Y,t&255),t>>>=8;Q.pos=D}}else Q.pos=D;else Q.pos=D;else Q.pos=D}Q=on(f,M.policy.zt);Q=A-Q}Q&&f.info.K.info.I5()&&M.loader.ZB("webmDurationAdjustment",{durationAdjustment:Q,videoDrift:N+Q, audioDrift:I})}return Q}; d6D=function(M){return M.info.K.Gv()&&M.info.Ur===M.info.K.index.YC()}; Hb=function(M,f){f=(f=f===void 0?0:f)?Math.round(M.timestampOffset*f)/f:M.timestampOffset;M.G.C&&f&&(f+=M.G.C.K);return f+M.getDuration()}; JDN=function(M,f){f<0||(M.Z.forEach(function(A){OOb(A,f)}),M.timestampOffset=f)}; jl=function(M,f,A,Q,N){f3.call(this,A,N);var Y=this;this.policy=M;this.formatId=f;this.Ew=Q;this.lastError=null;this.wf=function(){Y.ek()||(Y.Ew.mL.has(Y.formatId)?(Y.isComplete()||Y.K.start(),rH(Y.Ew,Y.formatId)&&Y.WY(2),Y.Ew.xZ(Y.formatId)&&(CAz(Y.Ew,Y.formatId)?Y.Rt(4):(Y.lastError="net.closed",Y.Rt(5)))):(Y.lastError="player.exception",Y.Rt(5)))}; this.K=new g.MY(function(){Y.isComplete()||(Y.lastError="net.timeout",Y.Rt(5))},1E3); this.K.start();Sze(this.Ew,this.formatId,this.wf);g.cW(this.wf)}; mT=function(M,f,A,Q){g.y.call(this);var N=this;this.loader=M;this.policy=f;this.K=A;this.timing=Q;this.logger=new g.tD("dash");this.j=[];this.P7=[];this.Z=this.yw=null;this.ox=!1;this.fJ=this.nJ=0;this.G=-1;this.jk=!1;this.z0=-1;this.g_=null;this.KJ=NaN;this.Er=[];this.Ed={Kj:function(){return N.C}, Qs$:function(){return N.j}, g8k:function(){return N.X}}; this.C=new x60(M,f,A);this.policy.K&&(this.X=new Pp(this.C,this.loader.getManifest(),this.policy,function(Y){N.policy.h5&&N.ZB("buftl",Y)})); this.policy.Z9&&(this.B=new Q8(this));this.DB=A.info.DB;this.W=this.policy.KJ?!1:A.Zp();this.isManifestless=A.Zp();this.N=this.W;g.d(this,this.g_)}; so=function(M,f,A){A=A===void 0?!1:A;f&&qy&&JDN(M.C,f.g1());if(!A){var Q;(Q=M.X)==null||QrT(Q)}M.yw=f;(f=M.X)!=null&&(f.yw=M.yw)}; cb=function(M){var f=M.yw&&M.yw.dE();if(M.policy.Ch){if((M=M.X)==null)M=void 0;else{var A;M=(A=M.j)==null?void 0:A.info}return M||null}return f}; K80=function(M){for(var f={},A=0;A4&&M.P7.shift()}; G5T=function(M,f){if(f.O5()){var A=f.F8();A=g.V(A);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,M.policy.Z&&f instanceof jl&&M.ZB("omblss",{s:Q.info.ZK()}),g9(M,f.info.r_,Q,f.Sa())}}; g9=function(M,f,A,Q){Q=Q===void 0?0:Q;isNaN(M.KJ)||(M.ZB("aswm",{sq:f[0].Ur,id:f[0].K.info.itag,xtag:f[0].K.info.K,ep:Date.now()-M.KJ}),M.KJ=NaN);switch(A.info.type){case 1:case 2:wxX(M,A);break;case 4:var N=A.info.K,Y=N.Uk(A),I;((I=M.Z)==null?0:I.type===4)&&HOD(A.info,M.Z)&&(M.Z=N.CD(M.Z).pop());A=g.V(Y);for(N=A.next();!N.done;N=A.next())g9(M,f,N.value,Q);break;case 3:A.info.K.info.video?(N=M.timing,N.z0||(N.z0=(0,g.W)(),g.zE("fvb_r",N.z0,N.K))):(N=M.timing,N.G||(N.G=(0,g.W)(),g.zE("fab_r",N.G,N.K))); jnD(M.C,f,A,Q);M.policy.K&&lV0(M);break;case 6:jnD(M.C,f,A,Q),M.Z=A.info}}; wxX=function(M,f){if(f.info.type===1)if(f.info.K.info.video){var A=M.timing;A.fJ||(A.fJ=(0,g.W)(),g.zE("vis_r",A.fJ,A.K))}else A=M.timing,A.X||(A.X=(0,g.W)(),g.zE("ais_r",A.X,A.K));zLX(M.C,f);M=M.loader;M.videoTrack.K.eP()&&M.audioTrack.K.eP()&&M.policy.K&&!M.c7.U$&&(f=M.audioTrack.getDuration(),A=M.videoTrack.getDuration(),Math.abs(f-A)>1&&M.ZB("trBug",{af:""+g.Y$(M.audioTrack.K.info,!1),vf:""+g.Y$(M.videoTrack.K.info,!1),a:""+f,v:""+A}))}; OO=function(M){return Zq6(M.C)}; lV0=function(M){M.j.length?M.Z=g.Sw(g.Sw(M.j).info.r_):M.C.Z.length?M.Z=M.C.u4().info:M.Z=cb(M)}; Bb=function(M,f){var A={BX:[],X8:[]},Q;if((M=M.X)==null)M=void 0;else{Arz(M,M.BX,"og");l19(M,f);Arz(M,M.BX,"trim");var N=fQT(M);f=N.BX;N=N.Rh;for(var Y=[],I=0;I0){var h=hE(p,E);h>=0&&(v=(p.end(h)-E+.1)*1E3)}Y.push({formatId:g.Y$(D.info.K.info,M.c7.U$), LK:D.info.LK,sequenceNumber:D.info.Ur+M.C,Xm:t,h4:D.info.j,OB:v})}M={BX:f,X8:Y}}return(Q=M)!=null?Q:A}; yL=function(M,f,A){A=A===void 0?!1:A;if(M.yw){var Q=M.yw.Da(),N=LO(Q,f),Y=NaN,I=cb(M);I&&(Y=LO(Q,I.K.index.getStartTime(I.Ur)));if(N===Y&&M.Z&&M.Z.j&&MX6(i1(M),0))return f}M=f9b(M,f,A);return M>=0?M:NaN}; el=function(M,f,A){M.K.eP();var Q=f9b(M,f);if(Q>=0)return Q;var N;(N=M.X)==null||M26(N,f,A);A=Math;Q=A.min;N=M.C;if(N.W)if(N=N.W,N.df&&N.df.type===3)N=N.df.startTime;else if(N.j>0){var Y=N.K.index;Y=g.u6(Y.offsets.subarray(0,Y.count),N.j*N.chunkSize);N=N.K.index.getStartTime(Y>=0?Y:Math.max(0,-Y-2))}else N=0;else N=Infinity;f=Q.call(A,f,N);M.Z=M.policy.KJ?null:M.K.RX(f).r_[0];xn(M)&&(M.yw&&M.yw.abort(),M.policy.xt&&(A=M.X)!=null&&(A.j=void 0));M.fJ=0;return M.Z?M.Z.startTime:f}; YUt=function(M){M.W=!0;M.N=!0;M.G=-1;el(M,Infinity)}; ZT=function(M){for(var f=0,A=g.V(M.j),Q=A.next();!Q.done;Q=A.next())f+=sg0(Q.value.info);return f+=F8N(M.C)}; u1=function(M,f){f=f===void 0?!1:f;var A=M.loader.getCurrentTime(),Q=M.C.u4(),N=(Q==null?void 0:Q.info.G)||0;M.policy.zj&&(Q==null?0:Q.info.K.Zp())&&!Q.info.N&&(N=Q.info.C);if(!M.yw)return M.policy.K&&f&&!isNaN(A)&&Q?N-A:0;var Y=cb(M);if(Y&&r9(Y))return Y.G;var I=M.yw.Da(!0);if(f&&Q)return Y=0,M.policy.K&&(Y=Us(I,N+.02)),Y+N-A;N=Us(I,A);M.policy.qc&&Y&&(f=hE(I,A),I=hE(I,Y.C-.02),f===I&&(A=Y.G-A,M.policy.Z&&A>N+.02&&M.ZB("abh",{bh:N,bhtls:A}),N=Math.max(N,A)));return N}; Aa9=function(M){var f=cb(M);return f?f.G-M.loader.getCurrentTime():0}; Q3U=function(M,f){if(M.j.length){if(M.j[0].info.r_[0].startTime<=f)return;FD(M)}for(var A=M.C,Q=A.Z.length-1;Q>=0;Q--)A.Z[Q].info.startTime>f&&A.Z.pop();lV0(M);M.Z&&f=0;I--){var D=N.Z[I];D.info.Ur>=f&&(N.Z.pop(),N.j-=on(D,N.policy.zt),Y=D.info)}Y&&(N.N=N.Z.length>0?N.Z[N.Z.length-1].info:N.ox,N.Z.length!==0||N.N||Uo(N,"r"));N.loader.ZB("mdstm",{rollbk:1,itag:Y?Y.K.info.itag:"",popped:Y?Y.Ur:-1,sq:f,lastslc:N.N?N.N.Ur:-1,lastfraget:N.j.toFixed(3)});if(M.policy.K)return M.Z=null,!0;Q>A?el(M,Q):M.Z=M.K.Di(f-1,!1).r_[0]}catch(E){return f=uT(E),f.details.reason="rollbkerr", M.loader.handleError(f.errorCode,f.details,f.severity),!1}return!0}; nG=function(M,f){var A;for(A=0;A0?A||f.Ur>=M.z0:A}; jc=function(M){var f;return xn(M)||r9((f=M.C.u4())==null?void 0:f.info)}; i1=function(M){var f=[],A=cb(M);A&&f.push(A);f=g.mW(f,M.C.b4());A=g.V(M.j);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;for(var N=g.V(Q.info.r_),Y=N.next(),I={};!Y.done;I={r8:void 0},Y=N.next())I.r8=Y.value,Q.Mg&&(f=g.Pw(f,function(D){return function(E){return!HOD(E,D.r8)}}(I))),(W4(I.r8)||I.r8.type===4)&&f.push(I.r8)}M.Z&&!hzt(M.Z,g.Sw(f),M.Z.K.Gv())&&f.push(M.Z); return f}; MX6=function(M,f){if(!M.length)return!1;for(f+=1;f=f){f=Y;break a}}f=N}return f<0?NaN:MX6(M,A?f:0)?M[f].startTime:NaN}; $n=function(M){return!(!M.Z||M.Z.K===M.K)}; Nte=function(M){return $n(M)&&M.K.eP()&&M.Z.K.info.DBf&&M.G1080&&!M.Gq&&(M.fJ=36700160,M.l8=5242880,M.nJ=Math.max(4194304,M.nJ),M.Gq=!0);f.video.qualityOrdinal>2160&&!M.Nv&&(M.fJ=104857600,M.DB=13107200,M.Nv=!0);g.CE(M.i8.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?f.isEncrypted()&&g.JI()&&g.Of("samsung")&&(g.Of("kant")||g.Of("muse"))&&(M.DB=g.CE(M.i8.experiments,"html5_samsung_kant_limit_max_bitrate")):f.isEncrypted()&&g.JI()&&g.Of("kant")&&(M.DB=1310720);M.mK!==0&&f.isEncrypted()&& (M.DB=M.mK);M.o_!==0&&f.isEncrypted()&&A&&(M.DB=M.o_);f.DB&&(M.XJ=Math.max(M.Ev,Math.min(M.nJ,5*f.DB)))}; aN=function(M){return M.K&&M.jC}; b1=function(M){return M.K&&M.oo&&M.playbackStartPolicy}; kn=function(M,f,A,Q){M.oo&&(M.playbackStartPolicy=f,M.Nx=A,M.Gz=Q)}; ec=function(M,f,A){A=A===void 0?0:A;return g.CE(M.i8.experiments,f)||A}; CcT=function(M){var f=M===void 0?{}:M;M=f.z9;var A=f.SU;var Q=f.mR;var N=f.YC;f=f.SD;this.z9=M;this.SU=A;this.mR=Q;this.YC=N;this.SD=f}; Cob=function(M,f){if(f<0)return!0;var A=M.YC();return f0)return 2;if(f<0)return 1;A=M.YC();return f(0,g.W)()?0:1}; Oo=function(M,f,A,Q,N,Y,I,D,E,t,v,p,h,S){S=S===void 0?null:S;g.y.call(this);var L=this;this.loader=M;this.policy=f;this.videoTrack=A;this.audioTrack=Q;this.C=N;this.K=Y;this.timing=I;this.N=D;this.schedule=E;this.c7=t;this.j=v;this.Er=p;this.o3=h;this.G7=S;this.KJ=!1;this.WO="";this.Yr=null;this.zP=NaN;this.jk=!1;this.Z=null;this.Vi=this.B=NaN;this.z8=this.G=0;this.logger=new g.tD("dash");this.Ed={HE:function(a,q){return L.HE(a,q)}}; this.policy.zq>0&&(this.WO=g.RP(this.policy.zq));this.policy.Ki&&(this.X=new Wb(this.loader,this.policy,this.schedule),g.d(this,this.X))}; mDT=function(M,f,A){var Q=f.Z?f.Z.K.HX:f.K.HX;var N=M.C,Y;(Y=!M.policy.RV)||(Y=ny(Q.K)===ny(Q.Z));Y?Q=!1:(N=ZG(N,ny(Q.Z)),Y=6E4*Math.pow(N.C,1.6),(0,g.W)()=N.C?(N.ZB("sdai",{haltrq:Y+1,est:N.C}),Q=!1):Q=N.Z!==2;if(!Q||!n6(f.Z?f.Z.K.HX:f.K.HX,M.policy,M.C,M.loader.W8())||M.loader.isSuspended&&(!ic(M.schedule)||M.loader.yW))return!1;if(M.policy.C&&Fw>=5)return g.f5(M.loader.e5),!1;if(M.c7.isManifestless){if(f.j.length>0&&f.Z&&f.Z.Ur===-1||f.j.length>=M.policy.rM||!M.policy.mV&&f.j.length>0&&!M.policy.W.SU)return!1;if(f.W)return!M.c7.isLive|| !isNaN(M.zP)}if(EI0(f))return M.logger.debug("Pending request with server-selectable format found"),!1;if(!f.Z){if(!f.K.eP())return!1;el(f,M.loader.getCurrentTime())}if(OO(f)&&(f.u4()!==OO(f)||M.loader.isSuspended))return!1;N=(Q=M.policy.yy)&&!f.j.length&&u1(f,!0)=M.policy.Q3)return!1;Q=f.Z;if(!Q)return!0;Q.type===4&&Q.K.eP()&&(f.Z=g.Sw(Q.K.CD(Q)),Q= f.Z);if(!Q.WU()&&!Q.K.FA(Q))return!1;Y=M.c7.oI||M.c7.C;if(M.c7.isManifestless&&Y){Y=f.K.index.YC();var I=A.K.index.YC();Y=Math.min(Y,I);if(f.K.index.xL()>0&&Y>0&&Q.Ur>=Y)return f.z0=Y,A.z0=Y,!1}if(Q.K.info.audio&&Q.type===4||Q.WU())return!1;Y=!f.N&&!A.N;if(N=!N)N=Q.G,N=!!(A.Z&&!r9(A.Z)&&A.Z.Gs3b(M,f)?(s3b(M,f),!1):(M=f.yw)&&M.isLocked()?!1:!0}; s3b=function(M,f){var A=M.K;A=A.K?A.K.uU:null;if(M.policy.P7&&A)return A.startSecs+A.UR+15;f=dm(M.loader,f);M.policy.xO>0&&(A=((0,g.W)()-M.loader.cE)/1E3,f=Math.min(f,M.policy.xO+M.policy.H2*A));f=M.loader.getCurrentTime()+f;return M.policy.qv&&(A=cab(M.loader)+M.policy.qv,A=0||f.HX.tH("defrag")==="1"||f.HX.tH("otf")==="1"){f=null;break a}N=dL(0,4096)}N=new G2([new bA(5,Q.K,N,"createProbeRequestInfo"+Q.X,Q.Ur)],f.Z);N.Qm=A;N.K=f.K;f=N}f&&HtN(M,f)}}; HtN=function(M,f){M.loader.qs(f);var A=sg0(f),Q=M.loader.uA();A={u7:M.schedule,HC:A,Tg:OWb(M.N,A),Uu:kO(f.r_[0]),JI:j2(f.HX.K),GV:M.policy.Z,v5:function(I,D){M.loader.w8(I,D)}}; if(M.schedule.Z.G){var N,Y;A.M_=(((N=M.videoTrack.K)==null?void 0:N.info.DB)||0)+(((Y=M.audioTrack.K)==null?void 0:Y.info.DB)||0)}M.Yr&&(A.Ur=f.r_[0].Ur,A.zP=f.zP,A.Yr=M.Yr);Q={Bt:cED(f,M.loader.getCurrentTime()),nO:M.policy.R5&&lA(f)&&f.r_[0].K.info.video?pxc(M.j):void 0,g$:M.policy.P7,poToken:M.loader.ME(),Oc:M.loader.V2(),WO:M.WO,Vi:isNaN(M.Vi)?null:M.Vi,G7:M.G7,o3:M.o3,z8:M.z8,L2:Q};return new $F(M.policy,f,A,M.C,function(I,D){try{a:{var E=I.info.r_[0].K,t=E.info.video?M.videoTrack:M.audioTrack; if(!(I.state>=2)||I.isComplete()||I.Nj()||!(!M.loader.VY||M.loader.isSuspended||u1(t)>3)){var v=a9D(I,M.policy,M.C);v===1&&(M.jk=!0);gI9(M,I,v);if(I.isComplete()||I.ek()&&D<3){if(M.policy.Z){var p=I.timing.C6();p.rst=I.state;p.strm=I.xhr.sA();p.cncl=I.xhr&&I.Pv.C?1:0;M.loader.ZB("rqs",p)}I.Nn&&M.loader.ZB("sbwe3",{},!0)}if(!M.ek()&&I.state>=2){nOe(M.timing,I,E);var h=M.loader;M.Vi&&I.QW&&h&&(M.Vi=NaN,M.loader.Ba(I.QW),M.loader.Xj(),M.loader.ZB("cabrUtcSeek",{mediaTimeSeconds:I.QW}));I.pD&&M.Vi&&I.pD&& !I.pD.action&&(M.loader.Ir(M.Vi),M.Vi=NaN,M.loader.ZB("cabrUtcSeekFallback",{targetUtcTimeSeconds:M.Vi}));I.XK&&M.loader.nf(I.XK);M.policy.d2&&(M.z8=I.z8);if(I.state===3){nG(t,I);lA(I.info)&&J7(M,t,E,!0);if(M.Z){var S=I.info.er();S&&M.Z.Uv(I.info.r_[0].Ur,E.info.id,S)}M.loader.Ah()}else if(I.isComplete()&&I.info.r_[0].type===5){if(I.state!==4)I.O6()&&M.loader.handleError(I.Jg(),I.l4());else{var L=(I.info.r_[0].K.info.video?M.videoTrack:M.audioTrack).j[0]||null;L&&L instanceof $F&&L.Nj()&&L.KH()}I.dispose()}else{I.O6()|| Btc(M,I);var a;((a=I.f2)==null?0:a.itagDenylist)&&M.loader.r4(I.f2.itagDenylist);if(I.state===4)itd(M,I),M.K&&ded(M.K,I.info,M.Z);else if(M.policy.FK&&I.O5()&&!I.isComplete()&&!itd(M,I)&&!I.O6())break a;I.O6()&&(xDX(M,I),isNaN(M.Vi)||(M.loader.Ir(M.Vi),M.Vi=NaN));M.policy.wq&&!I.isComplete()?ZtX(M.loader):M.loader.Ah();var q=qHU(I,M.policy,M.C);gI9(M,I,q)}}}}}catch(m){D=M.KJ?1:0,M.KJ=!0,I=rw(D),D=uT(m,D),M.loader.handleError(D.errorCode,D.details,D.severity),I||M.loader.RY()}},Q)}; Btc=function(M,f){if(f.lN&&f.state>=2&&f.state!==3){var A=f.xhr.getResponseHeader("X-Response-Itag");if(A){M.logger.debug(function(){return"Applying streamer-selected format "+A}); var Q=vB9(M.j,A),N=f.info.j;N&&(N-=Q.Zg(),Q.j=!0,f.info.r_[0].K.j=!1,vO9(f,Q.UN(N)),KG(M.loader,M.videoTrack,Q),tXN(M.videoTrack,Q),M.loader.YD(Q.info.video.quality),(N=f.Sa())&&Q.info.lastModified&&Q.info.lastModified!==+N&&nG(M.videoTrack,f))}else f.lN=!1}}; xDX=function(M,f){var A=f.info.r_[0].K,Q=f.Jg();if(j2(A.HX.K)){var N=g.Q7(f.HP(),3);M.loader.ZB("dldbrerr",{em:N||"none"})}N=f.info.r_[0].Ur;var Y=dH(M.K,f.info.r_[0].C,N);Q==="net.badstatus"&&(M.G+=1);if(f.canRetry()&&raN(M.loader)){if(!(f.info.HX.j>=M.policy.Xe&&M.Z&&f.info.isDecorated()&&Q==="net.badstatus"&&M.Z.uY(Y,N))){N=(A.info.video&&A.HX.j>1||f.R9===410||f.R9===500||f.R9===503)&&!(XI(M.j.N).size>0)&&!j2(A.HX.K);Y=f.l4();var I=A.info.video?M.videoTrack:M.audioTrack;N&&(Y.stun="1");M.loader.handleError(Q, Y);M.ek()||(N&&(M.logger.debug(function(){return"Stunning format "+A.info.id}),My(M.j,A)),nG(I,f),M.loader.Ah())}}else I=1,M.Z&&f.info.isDecorated()&&Q==="net.badstatus"&&M.Z.uY(Y,N)&&(I=0),M.c7.isLive&&f.Jg()==="net.badstatus"&&M.G<=M.policy.lr*2?(xkb(M.c7),M.c7.oI||M.c7.isPremiere?Wp(M.loader,0,{Cd:"badStatusWorkaround"}):M.c7.C?Wp(M.loader,M.c7.jk,{Cd:"badStatusWorkaround", AY:!0}):Gp(M.loader)):M.loader.handleError(Q,f.l4(),I)}; itd=function(M,f){if(M.policy.useUmp&&f.ek())return!1;try{var A=f.info.r_[0].K,Q=A.info.video?M.videoTrack:M.audioTrack;if(M.c7.isManifestless&&Q){M.G=0;Q.W&&(f.ek(),f.isComplete()||f.O5(),Q.W=!1);f.hq()&&M.loader.hU.Li(1,f.hq());var N=f.xL(),Y=f.Ka();Fk(M.c7,N,Y)}if(f.info.Uu()&&!wL(f.info))for(var I=g.V(f.F8()),D=I.next();!D.done;D=I.next())wxX(Q,D.value);for(M.loader.getCurrentTime();Q.j.length&&Q.j[0].state===4;){var E=Q.j.shift();G5T(Q,E);Q.nJ=E.Db()}Q.j.length&&G5T(Q,Q.j[0]);var t=!!OO(Q);t&& f instanceof jl&&(A.info.gf()?i6T(M.timing):BLX(M.timing));return t}catch(v){f=f.l4();f.origin="hrhs";a:{M=M.loader;A=v;if(A instanceof Error){f.msg||(f.msg=""+A.message);f.name||(f.name=""+A.name);if(A instanceof g.GX&&A.args)for(Q=g.V(Object.entries(A.args)),N=Q.next();!N.done;N=Q.next())Y=g.V(N.value),N=Y.next().value,Y=Y.next().value,f["arg"+N]=""+Y;g.$b(A);if(A.level==="WARNING"){M.d_.j4(f);break a}}M.handleError("fmt.unplayable",f,1)}return!1}}; uE0=function(M){var f=M.videoTrack.K.index;M.Yr=new CcT({z9:M.policy.z9,SU:M.policy.W.SU,mR:f.aK(),YC:function(){return f.YC()}, SD:function(){return f.SD()}})}; J7=function(M,f,A,Q){if(!(A.eP()||A.C2()||A.j||!n6(A.HX,M.policy,M.C,M.loader.W8())||A.info.LJ==="f"||M.policy.K)){if(Q){Q=M.N;var N=A.info;Q=Xh6(Q,N.video?Q.policy.S7:Q.policy.dU,N.DB)}else Q=0;Q=A.UN(Q);M=HtN(M,Q);wL(Q)&&RI(f,M);A.j=!0}}; w9=function(M,f,A,Q,N,Y,I,D){g.y.call(this);var E=this;this.loader=M;this.II=f;this.videoTrack=A;this.audioTrack=Q;this.c7=N;this.B=Y;this.isAudioOnly=I;this.G=D;this.Z=KF;this.jk=!1;this.logger=new g.tD("sabr");this.X=this.KJ=this.Er=!1;this.videoInfos=this.W=this.B.videoInfos;this.j=this.P7=this.B.K;this.K=new WS(f,Y,function(t,v){E.loader.ZB(t,v)}); this.II.d5||z60(this);this.isAudioOnly&&PcD(this,this.c7.K["0"])}; nIN=function(M,f){var A=[];f=g.V(f);for(var Q=f.next();!Q.done;Q=f.next())A.push(g.Y$(Q.value,M.c7.U$));return A}; PcD=function(M,f,A){f!==M.C&&(M.C&&(M.jk=!0),M.C=f,M.TB(f,M.videoTrack,A))}; yat=function(M,f){M.logger.debug("setConstraint: "+qj(f));aN(M.II)&&(M.KJ=f.reason==="m"||f.reason==="l"?!0:!1);f.reason==="m"?f.isLocked()&&j3D(M,f.K):$DU(M,f)?Fhc(M,f.Z,f.K):M.videoInfos=M.W;M.Z=f}; $DU=function(M,f){return M.II.gV&&f.reason==="b"||M.II.BT&&f.reason==="l"||M.II.Wc?!1:M.II.zK?!0:f.reason==="l"||f.reason==="b"||f.reason==="o"}; dDz=function(M,f){return f.isLocked()&&M.K.Z||M.Z===void 0?!1:f.equals(M.Z)}; e6c=function(M,f){var A,Q=(A=M.C)==null?void 0:A.info.video.qualityOrdinal;return M.jk?!0:M.C?f!==Q?!0:!M.K.Z||M.II.RZ&&M.K.K===M.C.info.itag?!1:!0:!1}; j3D=function(M,f){var A=M.K.K;if(A){M.videoInfos=M.W;var Q=g.oR(M.videoInfos,function(N){return N.id===A}); Q&&Q.video.qualityOrdinal===f?M.videoInfos=[Q]:(Q=M.videoInfos.map(function(N){return N.id}),M.loader.ZB("sabrpf",{pfid:""+A, vfids:""+Q.join(".")}),Fhc(M,f,f),JX(M.K,""))}else Fhc(M,f,f)}; Fhc=function(M,f,A){M.videoInfos=M.W;M.videoInfos=g.Pw(M.videoInfos,function(Q){return Q.video.qualityOrdinal>=f&&Q.video.qualityOrdinal<=A})}; z60=function(M){var f=X4X(M.K,M.G);f&&(M.j=[f])}; bt6=function(M,f,A){if(M.II.d5){if(M.G){var Q=g.Pw(M.j,function(N){return N.id===M.G}); return l1(Q,A).includes(f)}Q=g.Pw(M.j,function(N){var Y;return!((Y=N.qV)==null||!Y.isDefault)}); if(Q.length>0)return l1(Q,A).includes(f)}return l1(M.j,A).includes(f)}; l1=function(M,f){return M.map(function(A){return j$(g.Y$(A,f))})}; kGT=function(M){var f;if((f=M.Z)==null?0:f.isLocked())return M.videoInfos;var A=XI(M.K);f=g.Pw(M.videoInfos,function(Q){return Q.DB>M.II.DB?!1:!A.has(Q.id)}); O6d(M.K)&&(f=g.Pw(f,function(Q){return Q.video.width<=854&&Q.video.height<=480})); return f}; Otc=function(M,f,A){var Q=M.c7,N=M.d_.getVideoData(),Y=M.Qh,I=qv({i8:N.T(),d_:M.d_,QN:M.QN,II:M.II,x3:M.x3,A2:M.A2,s1:M.s1,k5:M.k5,qT:M.qT,isPrefetch:M.isPrefetch,dB:M.dB,sabrLicenseConstraint:N.sabrLicenseConstraint,Q9:M.Q9,QQ:M.QQ,XQ:M.XQ,TO:M.TO,o$:!!Y,b3:N.b3}),D=HS(N,M.L2,M.nextRequestPolicy,M.gi,M.qC,M.UV,M.rQ);A&&f&&(A=D.Bp?D.Bp.map(function(p){return p.type}):[],f("sabr",{stmctxt:A.join("_"), unsntctxt:D.xu?D.xu.join("_"):""}));f=M.BO;A=M.d$;if(A===void 0&&f===void 0){var E;A=WhX(Q.U$,(E=M.Am)==null?void 0:E.video);var t;f=WhX(Q.U$,(t=M.Am)==null?void 0:t.audio)}if(N.G7)var v=N.G7;N={Sh:I,X8:M.X8,BO:f,d$:A,Qh:Y,videoPlaybackUstreamerConfig:v,Ty:D};M.MD&&(N.MD=M.MD);N.BX=M.BX;N.s7=Q.YO;return N}; WhX=function(M,f){return f?[g.Y$(f.info,M)]:[]}; Mw=function(M,f,A){var Q=this;this.requestType=M;this.HX=f;this.jx=A;this.Z=null;this.Ed={whk:function(){var N;return(N=Q.data)==null?void 0:N.isPrefetch}, qC:function(){var N;return(N=Q.data)==null?void 0:N.qC}}}; sFe=function(M,f,A){f=z2(M.HX,Xsc(M,f,A),f);M.TJ()&&f.set("probe","1");return f}; Xsc=function(M,f,A){M.Qm===void 0&&(M.Qm=M.HX.Qm(f,A));return M.Qm}; Jab=function(M){var f,A;return((f=M.K)==null?void 0:(A=f.Sh)==null?void 0:A.dG)||0}; Kh9=function(M){var f,A;return!!((f=M.K)==null?0:(A=f.Sh)==null?0:A.Q9)}; GGd=function(M){var f={},A=[],Q=[];if(!M.data)return f;for(var N=0;N0;E--)A.push(D)}A.length!==I?f.error=!0:(Y=A.slice(-Y),A.length=N,m1N(f,A,Y));break;case 1:m1N(f,pK,CSt);break;case 0:sLz(f, f.K&7);A=o7(f,16);N=o7(f,16);(A^N)!==65535&&(f.error=!0);f.output.set(f.data.subarray(f.Z,f.Z+A),f.j);f.Z+=A;f.j+=A;break;default:f.error=!0}M.j>M.output.length&&(M.output=new Uint8Array(M.j*2),M.j=0,M.Z=0,M.C=!1,M.K=0,M.register=0)}M.output.length!==M.j&&(M.output=M.output.subarray(0,M.j));return M.error?new Uint8Array(0):M.output}; m1N=function(M,f,A){f=qAb(f);A=qAb(A);for(var Q=M.data,N=M.output,Y=M.j,I=M.register,D=M.K,E=M.Z;;){if(D<15){if(E>Q.length){M.error=!0;break}I|=(Q[E+1]<<8)+Q[E]<>=7;t<0;)t=f[(I&1)-t],I>>=1;else I>>=t&15;D-=t&15;t>>=4;if(t<256)N[Y++]=t;else if(M.register=I,M.K=D,M.Z=E,t>256){I=SB[t];I+=o7(M,hG[t]);E=HFX(M,A);D=LK[E];D+=o7(M,U1c[E]);if(RTT&&IA.length&&(M.error=!0);M.register|=(A[Q+1]<<8)+A[Q]<=0)return sLz(M,A&15),A>>4;for(sLz(M,7);A<0;)A=f[o7(M,1)-A];return A>>4}; o7=function(M,f){for(;M.K=M.data.length)return M.error=!0,0;M.register|=M.data[M.Z++]<>=f;M.K-=f;return A}; sLz=function(M,f){M.K-=f;M.register>>=f}; qAb=function(M){for(var f=[],A=g.V(M),Q=A.next();!Q.done;Q=A.next())Q=Q.value,f[Q]||(f[Q]=0),f[Q]++;var N=f[0]=0;A=[];var Y=0;Q=0;for(var I=1;I7&&(Y+=f[I]);for(N=1;N>E&1;D=Y<<4|I;if(I<=7)for(E=1<<7-I;E--;)Q[E<>=7;I--;){Q[E]||(Q[E]=-f,f+=2);var t=N&1;N>>=1;E=t-Q[E]}Q[E]=D}}return Q}; gs6=function(M){var f,A,Q,N,Y,I,D;return g.n(function(E){switch(E.Z){case 1:if(!("DecompressionStream"in window))return E.return(g.cdd(new g.VHd(M)));f=new DecompressionStream("gzip");A=f.writable.getWriter();A.write(M);A.close();Q=f.readable.getReader();N=new ap([]);case 2:return g.r(E,Q.read(),5);case 5:Y=E.K;I=Y.value;if(D=Y.done){E.CJ(4);break}N.append(I);E.CJ(2);break;case 4:return E.return(N.Vd())}})}; CK=function(M,f){this.K=M;this.Z=f}; BqD=function(M){return s_(s_(qE(function(){return mA(M.Z,function(f){return M.t4(M.K,f)})}),function(){return M.Il(M.K)}),function(){return M.ZR(M.K)})}; iFN=function(M,f){return BqD(new CK(M,f))}; rdD=function(M){cS.call(this,"onesie");this.bI=M;this.K={};this.j=!0;this.C=null;this.queue=new osb(this);this.N={};this.G=ch(function(f,A){var Q=this;return function Y(){var I,D,E,t,v,p,h,S,L,a,q,m,R,u,z,e,G,X,Qt,Y9;return nb(Y,function(Mc){switch(Mc.Z){case 1:g.s0(Mc,2);Q.bI.xn();I=function(E0){return function(w){throw{name:E0,message:w};}}; D=f.Vd();g.HX(Mc,4,5);if(!A){Mc.CJ(7);break}return Vt(Mc,$9(s_(x1N(Q.bI,D,Q.iv),I("DecryptError")).wait()),8);case 8:E=Mc.K;case 7:if(!Q.bI.enableCompression){Mc.CJ(9);break}return Vt(Mc,$9(s_(iFN((p=E)!=null?p:D,Q.bI.T().Fk),I("DecompressError")).wait()),10);case 10:t=Mc.K;case 9:v=ku((S=(h=t)!=null?h:E)!=null?S:D,Hh0);case 5:g.ZU(Mc,0,2);if(a=(L=Q.bI.T())==null?void 0:L.nJ)((q=E)==null?void 0:q.buffer)===a.exports.memory.buffer&&a.free(E.byteOffset),((m=t)==null?void 0:m.buffer)===a.exports.memory.buffer&& a.free(t.byteOffset);g.ud(Mc,6);break;case 4:throw u=R=g.id(Mc),new ZZ("onesie.response.parse",{name:(X=u.name)!=null?X:"unknown",message:(Qt=u.message)!=null?Qt:"unknown",wasm:((z=Q.bI.T())==null?0:z.nJ)?((e=Q.bI.T())==null?0:(G=e.nJ)==null?0:G.K)?"1js":"1":"0",enc:Q.j,gz:Q.bI.enableCompression,webcrypto:!!sZ()});case 6:return ZFb(v),Y9=g.xu(v.body),Mc.return(Y9);case 2:g.ZU(Mc),g.ud(Mc,0)}})}()})}; uwe=function(M){var f=M.queue;f.K.length&&f.K[0].isEncrypted&&!f.Z&&(f.K.length=0);f=g.V(Object.keys(M.K));for(var A=f.next();!A.done;A=f.next()){A=A.value;var Q=M.K[A];if(!Q.Xh){var N=M.queue;N.K.push({videoId:Q.videoId,formatId:A,isEncrypted:!1});N.Z||v6(N)}}}; PS9=function(M,f){var A=f.getLength(),Q=!1;switch(M.C){case 0:M.bI.V("html5_future_onesie_ump_handler_on_player_response")?s_(mA(M.G(f,M.j),function(N){zTt(M.bI,N)}),function(N){M.bI.sJ(N)}):M.xn(f,M.j).then(function(N){zTt(M.bI,N)},function(N){M.bI.sJ(N)}); break;case 2:M.M5("ormk");f=f.Vd();M.bI.V("html5_future_onesie_ump_handler_on_media_decryption_key")?M.queue.j(f,M.bI.T().Fk):M.queue.decrypt(f);break;default:Q=!0}M.bI.cz&&M.bI.ZB("ombup","id.11;pt."+M.C+";len."+A+(Q?";ignored.1":""));M.C=null}; ZFb=function(M){if(M.yl!==1)throw new ZZ("onesie.response.badproxystatus",{st:M.yl,webcrypto:!!sZ(),textencoder:!!g.Kb.TextEncoder});if(M.httpStatus!==200)throw new ZZ("onesie.response.badstatus",{st:M.httpStatus});}; nsz=function(M){return new Promise(function(f){setTimeout(f,M)})}; jLt=function(M,f){var A=M.T();A=M.Ki&&A.V("html5_onesie_preload_use_content_owner");var Q=M.M9,N=EH(f.QY.experiments,"debug_bandaid_hostname");if(N)f=Dq(f,N);else if((A===void 0?0:A)&&(Q==null?0:Q.url)&&!f.Z){var Y=ny(new g.zN(Q.url));f=Dq(f,Y)}else f=(Y=f.K.get(0))==null?void 0:Y.location.clone();if(f&&M.videoId){Y=SX(M.videoId);M=[];if(Y)for(Y=g.V(Y),A=Y.next();!A.done;A=Y.next())M.push(A.value.toString(16).padStart(2,"0"));f.set("id",M.join(""));return f}}; $1f=function(M,f,A){A=A===void 0?0:A;var Q,N;return g.n(function(Y){if(Y.Z==1)return Q=[],Q.push(f.load()),A>0&&Q.push(nsz(A)),g.r(Y,Promise.race(Q),2);N=jLt(M,f);return Y.return(N)})}; F2X=function(M,f,A,Q){Q=Q===void 0?!1:Q;M.set("cpn",f.clientPlaybackNonce);M.set("opr","1");var N=f.T();M.set("por","1");sZ()||M.set("onem","1");f.startSeconds>0&&M.set("osts",""+f.startSeconds);Q||(N.V("html5_onesie_disable_partial_segments")&&M.set("oses","1"),f=N.V("html5_gapless_onesie_no_media_bytes")&&Em(f)&&f.Ki,A&&!f?(f=A.audio,M.set("pvi",A.video.join(",")),N.V("html5_onesie_disable_audio_bytes")||M.set("pai",f.join(",")),D9||M.set("osh","1")):(M.set("oad","0"),M.set("ovd","0"),M.set("oaad", "0"),M.set("oavd","0")))}; ydz=function(M,f,A,Q,N){N=N===void 0?!1:N;var Y="https://youtubei.googleapis.com/youtubei/"+f.b5.innertubeApiVersion+"/player",I=[{name:"Content-Type",value:"application/json"}];Q&&I.push({name:"Authorization",value:"Bearer "+Q});I.push({name:"User-Agent",value:g.ge()});g.GR("EOM_VISITOR_DATA")?I.push({name:"X-Goog-EOM-Visitor-Id",value:g.GR("EOM_VISITOR_DATA")}):(A=A.visitorData||g.GR("VISITOR_DATA"))&&I.push({name:"X-Goog-Visitor-Id",value:A});(A=g.GR("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&I.push({name:"X-YouTube-Lava-Device-Context", value:A});(f=EH(f.experiments,"debug_sherlog_username"))&&I.push({name:"X-Youtube-Sherlog-Username",value:f});M=up(JSON.stringify(M));return{url:Y,lc:I,postBody:M,ZxY:N,wW:N}}; eTT=function(M,f,A,Q,N,Y){var I=g.lp(M,qWN,M.wW?void 0:A.nJ),D={encryptedClientKey:f.K.encryptedClientKey,Gu:!0,NB:!0,p$:d19(A,!!M.wW),ZD:A.experiments.X3("html5_use_jsonformatter_to_parse_player_response")};if(M.wW)D.lyO=I;else{if(A.nJ){M=Nqf(f).Z(I,f.iv);var E;D.qh=(E=A.nJ.yj(M))!=null?E:M}else D.qh=f.encrypt(I);E=D.qh;(0,g.W)();E=frf(new MZU(f.K.j),E,f.iv);D.Fh=E;D.iv=f.iv}f=Q.getVideoData();A=qv({i8:A,d_:Q,QN:f.startSeconds*1E3});N={dN:D,Sh:A,onesieUstreamerConfig:N,yb:Y,Ty:HS(f)};f.reloadPlaybackParams&& (N.reloadPlaybackParams=f.reloadPlaybackParams);return N}; bFt=function(M,f,A){var Q,N,Y;return g.n(function(I){if(I.Z==1)return Q=g.lp(f,qWN),g.r(I,YAU(A,Q),2);if(I.Z!=3)return N=I.K,g.r(I,Imc(A,N),3);Y=I.K;return I.return({qh:N,encryptedClientKey:A.K.encryptedClientKey,iv:A.iv,Fh:Y,Gu:!0,NB:!0,p$:d19(M,!!f.wW),ZD:M.experiments.X3("html5_use_jsonformatter_to_parse_player_response")})})}; k9b=function(M,f,A,Q,N,Y){var I,D,E,t;return g.n(function(v){if(v.Z==1)return g.r(v,bFt(A,M,f),2);I=v.K;D=Q.getVideoData();E=qv({i8:A,d_:Q,QN:D.startSeconds*1E3});t={dN:I,Sh:E,onesieUstreamerConfig:N,yb:Y,Ty:HS(D)};D.reloadPlaybackParams&&(t.reloadPlaybackParams=D.reloadPlaybackParams);return v.return(t)})}; d19=function(M,f){M=Bs(M.schedule,!0);f=f||!!sZ()&&M>1572864;return"DecompressionStream"in window||!f}; VJ=function(M,f){g.y.call(this);var A=this;this.d_=M;this.playerRequest=f;this.logger=new g.tD("onesie");this.xhr=null;this.state=1;this.T8=new Yl;this.l_=!1;this.playerResponse="";this.s6=new Mv(this);this.jU=new rdD(this);this.N8="";this.XZ=this.A4=!1;this.Jc="";this.enableCompression=this.vE=this.EU=!1;this.nA=[];this.Lh=-1;this.QY=this.d_.T();this.videoData=this.d_.getVideoData();this.cz=this.QY.cX();this.Ea=this.QY.D_;this.TZ=new I7(this.Ea.K,this.QY.Fk,wsb(this.QY));this.Jw=this.QY.V("html5_onesie_check_timeout"); this.qH=new g.MY(this.G6,500,this);this.fO=new g.MY(this.OZ,1E4,this);this.tj=new g.MY(function(){if(!A.isComplete()){var Q=UF(A);A.sJ(new ZZ("net.timeout",Q))}},1E3); this.eX=new g.MY(this.k0Y,2E3,this);this.X9=this.d_.V2();this.LO=this.V("html5_onesie_wait_for_media_availability");g.d(this.videoData,this);g.d(this,this.qH);g.d(this,this.fO);g.d(this,this.eX);g.d(this,this.TZ);M=vs();D9&&M&&(this.zb=new Map);this.aW=new Map;this.Nw=new Map;this.tV=new Map;this.Wg=new Map}; tG=function(M,f){var A;return(A=M.zb)==null?void 0:A.get(f)}; OFf=function(M,f,A){var Q;return g.n(function(N){if(N.Z==1)return M.M5("oprd_s"),W20(M)?g.r(N,TqX(M.TZ,f,A),3):(Q=M.TZ.decrypt(f,A),N.CJ(2));N.Z!=2&&(Q=N.K);M.M5("oprd_c");return N.return(Q)})}; x1N=function(M,f,A){M.M5("oprd_s");f=Nqf(M.TZ).encrypt(f,A);mA(f,function(){M.M5("oprd_c")}); return f}; X5T=function(M){return M.V("html5_onesie_host_probing")||M.cz?D9:!1}; zTt=function(M,f){M.M5("oprr");M.playerResponse=f;M.vE||(M.LO=!1);a7(M)}; a7=function(M){if(!M.playerResponse)return!1;if(M.EU)return!0;var f=M.videoData.V("html5_onesie_audio_only_playback")&&tg(M.videoData);if(M.zb&&M.LO){if(!M.zb.has(M.N8))return!1;var A=M.zb.get(M.N8),Q;if(Q=A){Q=!1;for(var N=g.V(A.mL.keys()),Y=N.next();!Y.done;Y=N.next())if(Y=A.mL.get(Y.value))for(var I=g.V(Y.hS),D=I.next();!D.done;D=I.next())D.value.UW>0&&(Y.gf?Q=!0:f=!0);Q=!(f&&Q)}if(Q)return!1}M.M5("ofr");M.T8.resolve(M.playerResponse);if(!M.Jw){var E;(E=M.tj)==null||E.start();M.fO.start()}return M.EU= !0}; K2N=function(M){if(M.zb&&!M.V("html5_onesie_media_capabilities")){M.M5("ogsf_s");var f=lQT(M.d_.getVideoData(),function(Q,N){M.ZB(Q,N)}),A=Jdz(M.d_); f.video=byX(A,f.video);M.M5("ogsf_c");if(f.video.length)return f;M.ZB("ombspf","l."+A.Z+";u."+A.K+";o."+A.j+";r."+A.reason)}}; W20=function(M,f){return M.V("html5_onesie_sync_request_encryption")||(f==null?0:f.wW)||g.Ys(M.QY)&&M.V("html5_embed_onesie_use_sync_encryption")?!1:!!sZ()}; UF=function(M){if(!M.Bv)return{};var f=M.Bv.C6(),A;f.d=(A=M.Bv.z0)==null?void 0:A.Ky();f.shost=M.dO;f.ty="o";return f}; G90=function(M,f){var A,Q;(Q=(M=(A=M.zb)==null?void 0:A.get(f))==null)||(f=M.j?!1:M.j=!0,Q=!f);return!Q}; w56=function(M,f,A,Q,N,Y,I,D,E,t,v){g.y.call(this);var p=this;this.d_=M;this.loader=f;this.policy=A;this.audioTrack=Q;this.videoTrack=N;this.c7=Y;this.u7=I;this.Ji=D;this.j=E;this.timing=t;this.Er=v;this.K=[];this.N={};this.ox=this.YO=!1;this.gi=new Set;this.C=this.nJ=this.B=this.qT=0;this.X=null;this.jk={BX:[],X8:[]};this.P7={BX:[],X8:[]};this.W=null;this.G=[];this.Ed={uu0:function(){return p.K}, G83:function(){return p.N}, qmY:function(){p.K.length=0}, lt0:function(){return p.gi}, J8Y:function(){return p.B}, J50:function(h){p.B=h}, r58:function(h){p.C=h}, v0:function(h){p.W=h}, lj:function(h){p.G=h}}; this.videoData=this.d_.getVideoData();this.policy.Ki&&(this.g_=new Wb(this.loader,this.policy,this.u7),g.d(this,this.g_))}; ftX=function(M,f){f=f===void 0?!1:f;if(lmN(M)){M.policy.G&&M.loader.ZB("sabrcrq",{create:1});var A=new Mw(0,M.c7.X,M);M.policy.OR>0&&M.C++;f=Mdt(M,A,f);M.K.push(f);var Q;(Q=M.g_)==null||UD9(Q,M.c7.X)}}; Nuf=function(M,f){var A=Agf(M);if(M.policy.Yx){var Q=M.jk;var N=M.P7}else Q=qw(M,M.audioTrack),N=qw(M,M.videoTrack);var Y=[].concat(g.c(Q.BX),g.c(N.BX));H6(M)&&Y.push.apply(Y,g.c(M.G));var I=[].concat(g.c(Q.X8),g.c(N.X8)),D=M.loader.uA(),E,t,v=M.d_,p=M.c7,h=M.Z,S=M.gi,L=M.policy,a=M.loader.cE,q=cab(M.loader)*1E3,m=(E=M.z0)==null?void 0:E.s1;E=(t=M.z0)==null?void 0:t.k5;var R;t=Number((R=M.j.C)==null?void 0:R.info.itag)||0;var u;R=Number((u=M.j.N)==null?void 0:u.info.itag)||0;f={d_:v,c7:p,BX:Y,X8:I, QN:A,nextRequestPolicy:h,gi:S,II:L,x3:a,A2:q,s1:m,k5:E,qT:M.qT,isPrefetch:f||M.loader.isSuspended,Xd:t,M6:R,L2:D,rQ:M.d_.rk()};A=M.loader.ME();Y=SX(A);A&&(f.qC=Y);if(A=M.d_.g7())f.Q9=A*1E3;var z;A=M.j;Y=A.Er;if(((z=A.II)==null?0:aN(z))&&!Y)for(z=g.V(A.j),I=z.next();!I.done;I=z.next())if(I.value.qV){Y=!0;break}z=aN(A.II)&&!Y?[]:nIN(A,A.j);f.BO=z;z=M.j;aN(z.II)&&!z.KJ?z=[]:(A=kGT(z),A.length===0&&(A=z.W),z=nIN(z,A));f.d$=z;f.Qh=H6(M)?[M.W]:void 0;M.policy.vc&&(f.XQ=QJ0(M.loader,M.audioTrack),f.TO=QJ0(M.loader, M.videoTrack));if(M.policy.j){z=M.loader.getCurrentTime();Q=mQ(M,Q.BX,z);N=mQ(M,N.BX,z);N=Math.min(Q,N);H6(M)&&M.policy.LM&&(Q=mQ(M,M.G,z),M.d_.cX()&&Q0&&M.K[0].ej()&&(f.UV=M.K[0].zn());return f}; Agf=function(M){var f,A=M.policy.N&&((f=M.loader)==null?void 0:f.Pk());f=M.loader.getCurrentTime()||0;f=Ymf(M,f);var Q=M.loader.vX()||0;f+=Q;Q=ru(M.videoData)||g.Zt(M.videoData);var N=0;A?(Q&&(N=Number.MAX_SAFE_INTEGER),M.videoData.Er&&(N=Math.ceil(M.videoData.jk*1E3))):N=Math.ceil(f*1E3);return Math.min(Number.MAX_SAFE_INTEGER,N)}; H6=function(M){return M.policy.N5&&!!M.W}; Ymf=function(M,f){if(M.loader.isSeeking())return f;var A=M.d_.j$();if(!A)return f;A=A.a9();if(A.length===0||Sr(A,f))return f;if(!y8(M.videoTrack,f)&&!y8(M.audioTrack,f))return M.loader.ZB("sundrn",{b:0,lt:f}),f;for(var Q=f,N=Infinity,Y=0;Yf)){var I=f-A.end(Y);I=20)?(M.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),f):Q}; mQ=function(M,f,A){M=M.loader.vX()||0;return sF(f,(A+M)*1E3)/1E3+A}; lmN=function(M){if(M.policy.OR>0){var f=Math.floor((0,g.W)()/1E4);if(f===M.nJ){if(M.C>=M.policy.OR){if(M.C===M.policy.OR){var A={reason:"toomanyrequests"};A.limit=M.C;M.loader.handleError("player.exception",A);M.C+=1}return!1}}else M.nJ=f,M.C=0}if(M.loader.isSuspended&&M.loader.yW)return!1;if(M.KJ&&(0,g.W)()0&&(!M.policy.B||M.K.length!==1||!M.K[0].ej()))return!1;var Q;if((Q=M.c7.X)==null||!n6(Q,M.policy,M.N,M.loader.W8())||jc(M.audioTrack)&&jc(M.videoTrack))return!1; if(c6(M,M.audioTrack)&&c6(M,M.videoTrack))return M.policy.Z&&M.loader.ZB("sabrHeap",{a:""+ZT(M.audioTrack),v:""+ZT(M.videoTrack)}),!1;if(f=M.policy.j){f=!1;if(M.Er.Z===2)f=!0;else if(M.Er.Z===3){Agf(M);M.loader.vX();var N=Bb(M.audioTrack,M.loader.isSeeking()).BX;Q=Bb(M.videoTrack,M.loader.isSeeking()).BX;var Y=M.loader.getCurrentTime()||0;N=mQ(M,N,Y);Q=mQ(M,Q,Y);Q=Math.min(N,Q);Y=M.Er;Q>=Y.N?(Y.ZB("sdai",{haltrq:Q,est:Y.N}),Q=!0):Q=!1;Q&&(f=!0)}f&&M.policy.G&&M.loader.ZB("sabrcrq",{waitad:1})}if(f)return!1; M.policy.Yx&&(M.jk=qw(M,M.audioTrack),M.P7=qw(M,M.videoTrack));if(!M.Z)return M.policy.G&&M.loader.ZB("sabrcrq",{nopolicy:1}),!0;if(M.d_.g7())return M.policy.G&&M.loader.ZB("sabrcrq",{utc:1}),!0;if(M.j.X)return M.policy.G&&M.loader.ZB("sabrcrq",{audio:1}),!0;if(!M.Z.targetAudioReadaheadMs||!M.Z.targetVideoReadaheadMs)return M.policy.G&&M.loader.ZB("sabrcrq",{noreadahead:1}),!0;if(M.policy.N&&M.loader.Pk())return M.policy.G&&M.loader.ZB("sabrcrq",{seekToHead:1}),!0;f=Math.min(dm(M.loader,M.audioTrack)* 1E3,M.Z.targetAudioReadaheadMs);Q=Math.min(dm(M.loader,M.videoTrack)*1E3,M.Z.targetVideoReadaheadMs);var I=Math.min(f,Q);Y=u1(M.audioTrack,!0)*1E3;N=u1(M.videoTrack,!0)*1E3;var D=M.d_.getCurrentTime()*1E3;if(M.policy.Yx){var E=sF(M.jk.BX,D);var t=sF(M.P7.BX,D)}else E=Y,t=N;var v=Ef||Q>=0&&N.F7>Q+1)break;A=Math.max(A,N.startTimeMs+N.durationMs);Q=Math.max(Q,N.iM)}return Math.max(0,A-f)}; Mdt=function(M,f,A){var Q={u7:M.u7,v5:function(E,t){M.d_.w8(E,t)}, Uu:M.policy.jQ,GV:M.policy.Z};M.u7.Z.G&&(Q.M_=(M.videoTrack.K.info.DB||0)+(M.audioTrack.K.info.DB||0));M.policy.B_&&(Q.mR=M.audioTrack.K.index.aK(),Q.Uu=!1);var N=Xsc(f,M.policy,M.N)?2:1;N!==M.B&&(M.B=N,TuU(M));A=Nuf(M,A);if(M.policy.B&&M.policy.Z&&A.gi){for(var Y=N="",I=g.V(A.gi),D=I.next();!D.done;D=I.next())D=D.value,M.videoData.sabrContextUpdates.has(D)||M.policy.B&&A.UV&&A.UV.type===D?N+="_"+D:Y+="_"+D;M.loader.ZB("sabrbldrqs",{ctxts:N,misctxts:Y})}!f.setData(A,M.policy,M.N)&&M.policy.B&&M.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);Q=new zr(M.policy,f,M.c7,M.N,M,Q,M.loader.V2());PS(M.timing);M.policy.G&&M.loader.ZB("sabrcrq",{rn:Q.JY(),probe:f.TJ()});return Q}; kt=function(M,f){if(f.ek()||M.ek())M.policy.u2||(M.policy.N?bK(M.loader):M.loader.Ah());else{if(M.policy.Z&&f.isComplete()&&f instanceof zr){var A=M.loader,Q=A.ZB,N,Y,I=Object.assign(f.Bv.C6(),{rst:f.state,strm:f.xhr.sA(),d:(N=f.Bv.z0)==null?void 0:N.Ky(),cncl:f.xhr&&f.Pv.C?1:0,rqb:f.I7,cwt:f.FD,swt:(Y=f.sE)==null?void 0:Y.Qf});N=Object.assign(GGd(f.info),I);Q.call(A,"rqs",N)}if(f.isComplete()&&f.TJ()&&f instanceof zr)M.policy.oE?f.ol()?(f.dispose(),M.K.length===0?M.loader.Ah():(M=M.K[0],M instanceof zr&&M.Nj()&&M.KH())):f.O6()&&M.loader.handleError(f.Jg(),f.l4()):(f.dispose(),M.loader.Ah());else{if(f.mW())f instanceof zr&&nOe(M.timing,f),TuU(M),D5N(M);else if(f.O6())A=M.d_.g7(),f instanceof zr&&Kh9(f.info)&&A&&M.loader.Ir(A),f instanceof VJ?M.K.pop():(A=1,f.canRetry()&&raN(M.loader)&&(E_N(M,f),A=0),M.loader.handleError(f.Jg(),f.l4(),A));else{if(M.loader.isSuspended&&!f.isComplete())return;D5N(M)}f.ek()||f instanceof VJ||(f.isComplete()?A=qHU(f,M.policy,M.N):(A=a9D(f,M.policy,M.N),A===1&&(M.YO= !0)),A!==0&&(Q=new Mw(1,f.info.HX),Q.Qm=A===2,Mdt(M,Q)));M.policy.wq&&!f.isComplete()?ZtX(M.loader):M.loader.Ah()}}}; D5N=function(M){for(;M.K.length&&M.K[0].La(M.MX());){var f=M.K.shift();tdt(M,f)}M.K.length&&tdt(M,M.K[0])}; tdt=function(M,f){M.policy.lK&&f instanceof zr&&(M.fJ=f);var A=new Set(f.c8(M.MX()));A=g.V(A);for(var Q=A.next();!Q.done;Q=A.next()){var N=Q.value;if(!(Q=!(f instanceof VJ))){Q=M.j;var Y=Q.c7.U$,I=l1(Q.videoInfos,Y);Y=bt6(Q,N,Y);var D=I.includes(N);!Q.II.PA||Y||D||Q.loader.ZB("sabrcpf",{fid:""+N,vfids:""+I.join("."),said:Q.G||""});Q=Y||I.includes(N)}if(Q&&(Q=f.b4(N,M.MX()),I=M.policy.N5&&DH(Q[0].K.info.mimeType),(!(!I&&M.policy.EQ&&Q.length>0&&(Q[0].K.info.gf()?u1(M.audioTrack):u1(M.videoTrack))> 3)||f.isComplete())&&f.O5(N,M.MX())))for(N=f.F8(N,M.MX()),N=g.V(N),Y=N.next();!Y.done;Y=N.next())if(Y=Y.value,M.policy.Z&&f instanceof VJ&&M.loader.ZB("omblss",{s:Y.info.ZK()}),I)D=M.timing,D.Er||(D.Er=(0,g.W)(),g.zE("fcb_r",D.Er,D.K)),D=M,D.videoData.U$()&&D.W&&j$(D.W)===j$(g.Y$(Y.info.K.info,D.c7.U$))&&D.d_.publish("sabrCaptionsDataLoaded",Y,D.lj.bind(D));else{D=Y.info.K.info.gf();var E=Y.info.K;if(D){var t=void 0;var v=M.j,p=(t=f.Cj(M.MX()))==null?void 0:t.token;v.X&&E!==v.N?t=!0:(v.X=!1,E!==v.N&& (v.N=E,v.TB(E,v.audioTrack,p)),t=!1);if(t)continue}else t=void 0,PcD(M.j,E,(t=f.Cj(M.MX()))==null?void 0:t.token);t=D?M.audioTrack:M.videoTrack;f instanceof VJ&&(t.W=!1,f instanceof VJ&&(D?i6T(M.timing):BLX(M.timing)));try{g9(t,Q,Y)}catch(h){Y=uT(h),M.loader.handleError(Y.errorCode,Y.details,Y.severity),t.RY(),M.S1(!1,"pushSlice"),bK(M.loader)}}}}; E_N=function(M,f){M.policy.B?M.K.splice(M.K.indexOf(f)).forEach(function(A){A.dispose()}):(M.K.pop(),f==null||f.dispose())}; v_U=function(M,f,A){for(var Q=[],N=0;N0)for(var f=g.V(M.videoData.sabrContextUpdates.keys()),A=f.next();!A.done;A=f.next()){A=A.value;var Q=void 0;((Q=M.videoData.sabrContextUpdates.get(A))==null?0:Q.sendByDefault)&&M.gi.add(A)}if(M.policy.B&&M.K.length)for(f=g.V(M.K),A=f.next();!A.done;A=f.next())(A=A.value.zn())&&A.type&&A.sendByDefault&&M.gi.add(A.type)}; put=function(M){M.policy.Yp&&(M.z0=void 0,M.qT=0)}; hB6=function(M,f){if(f.O6()||f.ek()){var A=M.loader,Q=A.ZB,N=f.state;M=M.MX();var Y,I;if((f=(Y=f.zb)==null?void 0:Y.get(M))==null)f=void 0;else{Y=0;M=f.c8();for(var D=0;D=M.policy.Cu,I=!1;if(Y){var D=0;!isNaN(f)&&f>M.N&&(D=f-M.N,M.N=f);D/N=M.policy.Kh&&!M.j;if(!Y&&!A&&U5X(M,f))return NaN;A&&(M.j=!0);a:{Q=I;A=(0,g.W)()/1E3-(M.De.LW()||0)-M.W.K-M.policy.xp;Y=M.Z.startTime;A=Y+A;if(Q){if(isNaN(f)){W6(M,NaN,"n",f);Y=NaN;break a}Q=f-M.policy.E6;Q=Y.C&&Q<=Y.G){Q=!0;break a}Q=!1}Q=!Q}if(Q)return M.ZB("ostmf",{ct:M.getCurrentTime(),a:f.K.info.gf()}),!1;(M=M.KJ)!=null&&(M.mL.get(A).mB=!0);return!0}; cgT=function(M){if(!M.c7.U$)return!0;var f=M.d_.getVideoData();if(M.d_.b2())return M.ZB("ombpa",{}),!1;var A,Q;if(M.policy.PD&&!!((A=M.B)==null?0:(Q=A.Le)==null?0:Q.Lf8)!==M.c7.oI)return M.ZB("ombplmm",{}),!1;A=f.Qw||f.liveUtcStartSeconds||f.T_;if(M.c7.oI&&A)return M.ZB("ombplst",{}),!1;if(M.c7.B)return M.ZB("ombab",{}),!1;A=Date.now();return yC(M.c7)&&!isNaN(M.jk)&&A-M.jk>M.policy.UM*1E3?(M.ZB("ombttl",{}),!1):M.c7.iU&&M.c7.C||!M.policy.J9&&M.c7.isPremiere||!(aJ(f)===0||M.policy.K&&f.V("html5_enable_onesie_media_for_sabr_proxima_optin"))|| f.V("html5_disable_onesie_media_for_mosaic")&&Om(f)||f.G_()&&!f.V("html5_enable_onesie_media_for_lifa")&&f.isDaiEnabled()&&f.enableServerStitchedDai||f.V("html5_disable_onesie_media_for_lifa_eligible")&&Wu(f)?!1:!0}; RBz=function(M,f){var A=f.K,Q=M.c7.U$;if(cgT(M))if(M.KJ&&M.KJ.mL.has(j$(g.Y$(A.info,Q)))){if(Q=j$(g.Y$(A.info,Q)),sJT(M,f)){var N=new G2(M.KJ.b4(Q)),Y=function(I){try{if(I.O6())M.handleError(I.Jg(),I.l4()),nG(f,I),lA(I.info)&&J7(M.N,f,A,!0),M.Ah();else if(itd(M.N,I)){var D;(D=M.j)==null||ded(D,I.info,M.Er);M.Ah()}}catch(E){I=uT(E),M.handleError(I.errorCode,I.details,I.severity),M.RY()}}; A.j=!0;wL(N)&&(RI(f,new jl(M.policy,Q,N,M.KJ,Y)),PS(M.timing))}}else M.ZB("ombfmt",{})}; g_T=function(M,f){f=f||M.videoTrack&&M.videoTrack.Z&&M.videoTrack.Z.startTime||M.getCurrentTime();var A=KG,Q=M.videoTrack,N=M.K;f=N.nextVideo&&N.nextVideo.index.IY(f)||0;N.P7!==f&&(N.g_={},N.P7=f,wH(N,N.K));f=!N.K.isLocked()&&N.B>-1&&(0,g.W)()-N.Bf.K&&f.reason==="b";Q||N||A?(M.d_.j4({reattachOnConstraint:Q?"u":N?"drm":"perf",lo:f.Z,up:f.K}),M.policy.RZ||(M.C.K.Z=!1)):(M.policy.RZ&&(M.C.K.Z=!1),bK(M))}}else if(!MLz(M.K,f)&&M.videoTrack){M.logger.debug(function(){return"Setting constraint: r="+f.reason+" u="+f.K}); A=M.K.K;uGz(M,ADf(M.K,f));g_T(M);Q=f.isLocked()&&f.reason==="m"&&M.K.KJ;N=M.policy.wL&&f.reason==="l"&&$n(M.videoTrack);A=A.K>f.K&&f.reason==="b";var Y=M.K.Ji&&!mP();Q||N||A||Y?M.d_.j4({reattachOnConstraint:Q?"u":N?"drm":Y?"codec":"perf"}):bK(M)}}; Pve=function(M,f,A){if((!M.VY||lC(M.VY)&&!M.policy.I8)&&!M.rf.isSeeking()&&(M.policy.K||$n(f)&&f.K.eP()&&M.K.Er)){var Q=M.getCurrentTime()+JV0(M.X,f,A);M.logger.debug(function(){return"Clearing back to "+Q.toFixed(3)}); Q3U(f,Q)}}; uGz=function(M,f){f&&(M.logger.debug(function(){return"Logging new format: "+tE(f.video.info)}),n_t(M.d_,new kf(f.video,f.reason))); if(M.K.YO){var A=IV0(M.K,"a");M.d_.NZ(new kf(A.audio,A.reason))}}; bK=function(M){g.f5(M.Z9)}; ZtX=function(M){M.policy.wq&&M.policy.FK&&Math.min(Aa9(M.videoTrack),Aa9(M.audioTrack))*1E3>M.policy.gT?g.f5(M.Qw):M.Ah()}; jJX=function(M,f){var A=(0,g.W)()-f,Q=u1(M.audioTrack,!0)*1E3,N=u1(M.videoTrack,!0)*1E3;M.logger.debug(function(){return"Appends paused for "+A}); if(M.policy.Z&&(M.ZB("apdpe",{dur:A.toFixed(),abuf:Q.toFixed(),vbuf:N.toFixed()}),b1(M.policy))){var Y=ub(M.X);M.ZB("sdps",{ct:f,ah:Q.toFixed(),vh:N.toFixed(),mr:zF(M.X,M.hR,Y),bw:Y.toFixed(),js:M.isSeeking(),re:+M.hR,ps:(M.policy.Nx||"").toString(),rn:(M.policy.Gz||"").toString()})}}; $5D=function(M){if(EI0(M.videoTrack))return M.logger.debug("Pausing appends for server-selectable format"),"ssf";if(M.policy.ox&&d9(M.videoTrack)&&d9(M.audioTrack))return"updateEnd";if(jc(M.audioTrack)||jc(M.videoTrack)&&M.videoTrack.K.info.LJ!=="f")return"";if(M.rf.isSeeking()){var f=M.X;var A=M.videoTrack;var Q=M.audioTrack;if(f.policy.K){var N=f.policy.Fi;b1(f.policy)&&(N=zF(f,!1,ub(f)));f=N;A=u1(Q,!0)>=f&&u1(A,!0)>=f}else A.j.length||Q.j.length?(N=A.K.info.DB+Q.K.info.DB,N=10*(1-ub(f)/N),f=Math.max(N, f.policy.Fi),A=u1(Q,!0)>=f&&u1(A,!0)>=f):A=!0;if(!A)return"abr";A=M.videoTrack;if(A.j.length>0&&A.C.Z.length===1&&Zq6(A.C).info.W360);Q=b1(M.policy)&&M.policy.kN;if(!M.hR||!Q&&A)return"";A=M.policy.b5;b1(M.policy)&&(A=zF(M.X,M.hR,ub(M.X)));A=YHc(M.videoTrack,M.getCurrentTime(),A)||YHc(M.audioTrack,M.getCurrentTime(), A);return b1(M.policy)?A?"mbnm":"":(M.videoTrack.j.length>0||M.audioTrack.j.length>0||Xt(M.N,M.videoTrack,M.audioTrack)||Xt(M.N,M.audioTrack,M.videoTrack))&&A?"nord":""}; FJ0=function(M){if(M.W){var f=M.W.Ah(M.audioTrack,og(M.VY.Z.Da()));f&&M.d_.seekTo(f,{RD:!0,Cd:"pollSubsegmentReadahead",AY:!0})}}; OkN=function(M,f,A){if(M.policy.ox&&d9(f))return!1;if(A.Z0())return!0;if(!A.Zz())return!1;var Q=OO(f);if(!Q||Q.info.type===6)return!1;var N;if(M.policy.vt||((N=M.j)==null?0:WMX(N,f,Q.info.Ur)))M.g_=0;else return M.rf.isSeeking()&&bK(M),M.g_=M.g_||(0,g.W)(),!1;if(!OF(M,f,A,Q.info))return!1;if(M.c7.Z&&Q.info.Z===0){if(N=yg0(f,A,Q)){var Y=cb(f);M.ZB("initchg",{it:Q.info.K.info.id,sr:!!Y&&Y.K===Q.info.K,ty:Q.info.type,seg:Q.info.Ur})}Y=g.Qj(Q.info.K.info);M.policy.Fk&&Y&&!N&&wM6(Q)}Y=M.W&&!!M.W.C&&f.K.info.audio; N=M.c7.isManifestless||Q.N;if(!(M.c7.Z&&Q.info.Z!==0||N&&!Y)&&d50(M,f,A,Q))return!0;if(Y)return!1;Y=dm(M,f);Y=M.getCurrentTime()+Y;if(Q.info.C>Y)return M.policy.K&&eBb(M,f),M.policy.Yt&&TYb(f.C,Y,!1),!1;bkb(M,f);var I;M.policy.SO&&A===((I=M.VY)==null?void 0:I.K)&&M.w_&&(A.fG()===0?(M.w_=!1,M.policy.SO=!1):M.l8=A.fG());if(!ked(M,A,Q,f))return!1;M.policy.ox&&Q.info.WU()?(M.d_.T().cX()&&M.ZB("eosl",{ls:Q.info.ZK()}),Q.isLocked=!0):(f.qz(Q),Ywc(M.K,Q.info),M.logger.debug(function(){return"Appended "+ Q.info.ZK()+", buffered: "+pO(A.Da())})); N&&WJ6(M,Q.info.K.tW);return!0}; eBb=function(M,f){f===M.videoTrack?M.fJ=M.fJ||(0,g.W)():M.z0=M.z0||(0,g.W)()}; bkb=function(M,f){f===M.videoTrack?M.fJ=0:M.z0=0}; ked=function(M,f,A,Q){var N=M.policy.Z9?(0,g.W)():0,Y=A.N&&A.info.K.K||void 0,I=A.K;A.N&&(I=Xut(M,A,I)||I);var D=I.Vd();I=M.policy.Z9?(0,g.W)():0;f=Jg0(M,f,D,A.info,Y);(Q=Q.B)!=null&&(Y=A.info,N=I-N,I=(0,g.W)()-I,!Q.Z||LPX(Q.Z,Y)&&Q.Z.Ur===Y.Ur||Q.flush(),Q.C+=N,Q.j+=I,N=1,!Q.Z&&Y.Z&&(N=2),Ny(Q,N,f),I=Math.ceil(Y.Z/1024),N===2&&Q.K.add(I),Q.K.add(Math.ceil((Y.Z+Y.j)/1024)-I),Q.Z=Y);M.P7=0;if(f===0)return M.nJ&&(M.logger.debug("Retry succeed, back to normal append logic."),M.nJ=!1,M.xO=!1),M.b8=0, !0;if(f===2||f===5)return KJd(M,"checked",f,A.info),!1;if(f===1){if(!M.nJ)return M.logger.debug("QuotaExceeded, retrying."),M.nJ=!0,!1;if(!M.xO)return M.xO=!0,M.d_.seekTo(M.getCurrentTime(),{Cd:"quotaExceeded",AY:!0}),!1;A.info.Tj()?(N=M.policy,N.fJ=Math.floor(N.fJ*.8),N.jk=Math.floor(N.jk*.8)):(N=M.policy,N.l8=Math.floor(N.l8*.8),N.jk=Math.floor(N.jk*.8));M.policy.K?OK(M.C.K,A.info.K,!1):My(M.K,A.info.K)}M.d_.j4({reattachOnAppend:f});return!1}; Xut=function(M,f,A){var Q;if(Q=M.policy.J2&&M.VY&&!M.VY.X&&!M.d_.Nh())f=f.info.K.info,Q=f.I5()&&Gk(f)&&f.video&&f.video.width<3840&&f.video.width>f.video.height;if(Q&&(M.VY.X=!0,jg('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return A=iqb(A),M.policy.Z&&M.ZB("sp4k",{s:!!A}),A}; KJd=function(M,f,A,Q){var N="fmt.unplayable",Y=1;A===5||A===3?(N="fmt.unparseable",M.policy.K?!Q.K.info.video||XI(M.C.K).size>0||OK(M.C.K,Q.K,!1):!Q.K.info.video||XI(M.K.N).size>0||My(M.K,Q.K)):A===2&&(M.b8<15?(M.b8++,N="html5.invalidstate",Y=0):N="fmt.unplayable");Q=Jx(Q);var I;Q.mrs=(I=M.VY)==null?void 0:Q_(I);Q.origin=f;Q.reason=A;M.handleError(N,Q,Y)}; Oqd=function(M,f,A,Q,N){var Y=M.c7;var I=M.policy.K,D=!1,E=-1,t;for(t in Y.K){var v=DH(Y.K[t].info.mimeType)||Y.K[t].info.Tj();if(Q===v)if(v=Y.K[t].index,v.l2(f.Ur)){D=v;var p=f,h=D.GG(p.Ur);h&&h.startTime!==p.startTime?(D.segments=[],D.Su(p),D=!0):D=!1;D?E=f.Ur:!f.pending&&I&&(p=v.getDuration(f.Ur),p!==f.duration&&(Y.publish("clienttemp","mfldurUpdate",{itag:Y.K[t].info.itag,seg:f.Ur,od:p,nd:f.duration},!1),v.Su(f),D=!0))}else v.Su(f),D=!0}E>=0&&(I={},Y.publish("clienttemp","resetMflIndex",(I[Q? "v":"a"]=E,I),!1));Y=D;vmb(M.rf,f,Q,Y);M.j.DC(f,A,Q,N);if(M.policy.qX&&A){var S;(S=M.MV)!=null&&S.j.set(f.Ur,A)}f.Ur===M.c7.iU&&Y&&Px(M.c7)&&f.startTime>Px(M.c7)&&(M.c7.jk=f.startTime+(isNaN(M.timestampOffset)?0:M.timestampOffset),M.rf.isSeeking()&&M.rf.K 5)return M.P7=0,M.d_.j4({initSegStuck:1,as:Q.info.ZK()}),!0}else M.P7=0,M.wq=Q;M.policy.Cr&&(A.abort(),(I=f.B)!=null&&(Ny(I,4),I.flush()));N=Jg0(M,A,Y,E,N);var t;(t=f.B)==null||SwT(t,N,E);if(N!==0)return Ge9(M,N,Q),!0;Q.info.Tj()?rx9(M.timing):us6(M.timing);M.logger.debug(function(){return"Appended init for "+Q.info.K.info.id}); WJ6(M,Q.info.K.tW);return A.md()}; yg0=function(M,f,A){if(f.pM()==null){M=cb(M);if(!(f=!M||M.K!==A.info.K)){a:if(M=M.B,A=A.info.B,M.length!==A.length)A=!1;else{for(f=0;f1)return 6;I.g_=new g.MY(function(){var D=OO(I);M.ek()||D==null||!D.isLocked?M.d_.T().cX()&&M.ZB("eosl",{delayA:D==null?void 0:D.info.ZK()}):wud(I)?(M.d_.T().cX()&&M.ZB("eosl",{dunlock:D==null?void 0:D.info.ZK()}),ltz(M,I===M.audioTrack)):(M.ZB("nue",{ls:D.info.ZK()}),D.info.Er+=1,M.VY&&M.Dp())},1E4,M); M.d_.T().cX()&&M.ZB("eosl",{delayS:Q.ZK()});I.g_.start()}M.policy.k0&&(Q==null?void 0:Q.K)instanceof fq&&Q.WU()&&M.ZB("poseos",{itag:Q.K.info.itag,seg:Q.Ur,lseg:Q.K.index.YC(),es:Q.K.index.j});f.appendBuffer(A,Q,N)}catch(D){if(D instanceof DOMException){if(D.code===11)return 2;if(D.code===12)return 5;if(D.code===22||D.message.indexOf("Not enough storage")===0)return f=Object.assign({name:"QuotaExceededError",buffered:pO(f.Da()).replace(/,/g,"_"),vheap:ZT(M.videoTrack),aheap:ZT(M.audioTrack),message:g.Q7(D.message, 3),track:M.VY?f===M.VY.Z?"v":"a":"u"},qmt(M.policy.pQ)),M.handleError("player.exception",f),1;g.jZ(D)}return 4}return M.VY.xZ()?3:0}; Wp=function(M,f,A){M.d_.seekTo(f,A)}; WJ6=function(M,f){f&&M.d_.qZ(new pG(f.key,f.type))}; oI=function(M,f){M.d_.L7(f)}; dm=function(M,f){if(M.nJ&&!M.hR)return 3;if(M.isSuspended)return 1;var A;if((A=M.VY)==null?0:A.VY&&A.VY.streaming===!1)return 4;A=(f.K.info.audio?M.policy.l8:M.policy.fJ)/(f.DB*M.policy.Eu);if(M.policy.Zu>0&&M.VY&&lC(M.VY)&&(f=f.K.info.video?M.VY.Z:M.VY.K)&&!f.md()){f=f.Da();var Q=hE(f,M.getCurrentTime());Q>=0&&(f=M.getCurrentTime()-f.start(Q),A+=Math.max(0,Math.min(f-M.policy.Zu,M.policy.WA)))}M.policy.jk>0&&(A=Math.min(A,M.policy.jk));return A}; QJ0=function(M,f){return(dm(M,f)+M.policy.oV)*f.DB}; fFc=function(M){M.Ji&&!M.isSuspended&&ic(M.schedule)&&(Muf(M,M.Ji),M.Ji="")}; Muf=function(M,f){ib(f,"cms",function(A){M.policy.Z&&M.ZB("pathprobe",A)},function(A){M.d_.handleError(A)})}; AU9=function(M,f){if(M.VY&&M.VY.C&&!M.VY.xZ()&&(f.Bt=u1(M.videoTrack),f.Z=u1(M.audioTrack),M.policy.Z)){var A=ZT(M.videoTrack),Q=ZT(M.audioTrack),N=pO(M.VY.Z.Da(),"_",5),Y=pO(M.VY.K.Da(),"_",5);Object.assign(f.K,{lvq:A,laq:Q,lvb:N,lab:Y})}f.bandwidthEstimate=Zc(M.X);var I;(I=M.audioTrack.B)==null||I.flush();var D;(D=M.videoTrack.B)==null||D.flush();M.logger.debug(function(){return x8(f.K)})}; Ql0=function(M,f){M.Er=f;M.j&&(M.j.j=f);M.Er.QL(M.videoTrack.K.info.I5());M.N.Z=M.Er;M.policy.j&&(M.Z.X=M.Er)}; Txb=function(M,f){if(M.VY&&M.VY.Z){if(M.policy.GO){var A=psD(M.audioTrack);if(A&&A.gf()){var Q=M.d_;if(Q.qL&&(Q.qL.K=A,A=Q.O$(Q.qL.videoId),A.qoe)){A=A.qoe;Q=Q.qL;var N=g.KK(A.provider);Nxd(A,N,Q)}}}M.policy.Q8&&(A=psD(M.videoTrack))&&A.Tj()&&(Q=M.d_,Q.r$&&(Q.r$.K=A,A=Q.O$(Q.r$.videoId),A.qoe&&YXe(A.qoe,Q.r$)));f-=isNaN(M.timestampOffset)?0:M.timestampOffset;M.getCurrentTime()!==f&&M.resume();M.rf.isSeeking()&&M.VY&&!M.VY.xZ()&&(Q=M.getCurrentTime()<=f&&f=0&&Y1?D.Z[0]=f&&Hkf(M,Q.startTime,!1)}); return A&&A.startTimeM.getCurrentTime())return A.start/1E3;return Infinity}; Itc=function(M){if(M.d_.getVideoData().isLivePlayback)return!1;var f=M.d_.j$();if(!f)return!1;f=f.getDuration();if(M.VY&&M.VY.K&&M.VY.Z){var A=M.getCurrentTime(),Q=M.VY.K.Da();M=M.VY.Z.Da();Q=Q?LO(Q,A):A;A=M?LO(M,A):A;A=Math.min(Q,A);f=isNaN(A)?!1:A>=f-.01}else f=!1;return f}; Ge9=function(M,f,A){M.policy.AS&&Em(M.d_.getVideoData())?(M.d_.iH()||KJd(M,"sepInit",f,A.info),pjX(M.d_,"sie")):KJd(M,"sepInit",f,A.info)}; raN=function(M){return M.d_.W8()0){var N=Q.K.shift();SX0(Q,N.info)}Q.K.length>0&&(N=Q.K[0].time-(0,g.W)(),Q.Z.start(Math.max(0,N)))}},0); g.d(this,this.Z);f.subscribe("widevine_set_need_key_info",this.N,this)}; SX0=function(M,f){a:{var A=f.cryptoPeriodIndex;if(isNaN(A)&&M.j.size>0)A=!0;else{for(var Q=g.V(M.j.values()),N=Q.next();!N.done;N=Q.next())if(N.value.cryptoPeriodIndex===A){A=!0;break a}A=!1}}M.publish("log_qoe",{wvagt:"reqnews",canskip:A});A||M.publish("rotated_need_key_info_ready",f)}; L$9=function(){var M={};var f=M.url;var A=M.interval;M=M.retries;this.url=f;this.interval=A;this.retries=M}; oXT=function(M,f){this.statusCode=M;this.message=f;this.Z=this.heartbeatParams=this.errorMessage=null;this.K={};this.nextFairplayKeyId=null}; CeN=function(M,f,A){A=A===void 0?"":A;g.y.call(this);this.message=M;this.requestNumber=f;this.M3=A;this.onError=this.onSuccess=null;this.K=new g.FC(5E3,2E4,.2)}; UZf=function(M,f,A){M.onSuccess=f;M.onError=A}; aFz=function(M,f,A,Q){var N={timeout:3E4,onSuccess:function(Y){if(!M.ek()){eh("drm_net_r",void 0,M.M3);var I=Y.status==="LICENSE_STATUS_OK"?0:9999,D=null;if(Y.license)try{D=NM(Y.license)}catch(L){g.jZ(L)}if(I!==0||D){D=new oXT(I,D);I!==0&&Y.reason&&(D.errorMessage=Y.reason);if(Y.authorizedFormats){I={};for(var E=[],t={},v=g.V(Y.authorizedFormats),p=v.next();!p.done;p=v.next())if(p=p.value,p.trackType&&p.keyId){var h=Vuz[p.trackType];if(h){h==="HD"&&Y.isHd720&&(h="HD720");p.isHdr&&(h+="HDR");I[h]|| (E.push(h),I[h]=!0);var S=null;try{S=NM(p.keyId)}catch(L){g.jZ(L)}S&&(t[g.An(S,4)]=h)}}D.Z=E;D.K=t}Y.nextFairplayKeyId&&(D.nextFairplayKeyId=Y.nextFairplayKeyId);Y.sabrLicenseConstraint&&(D.sabrLicenseConstraint=NM(Y.sabrLicenseConstraint));Y=D}else Y=null;if(Y)M.onSuccess(Y,M.requestNumber);else M.onError(M,"drm.net","t.p;p.i")}}, onError:function(Y){if(!M.ek())if(Y&&Y.error)Y=Y.error,M.onError(M,"drm.net.badstatus","t.r;p.i;c."+Y.code+";s."+Y.status,Y.code);else M.onError(M,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){M.onError(M,"drm.net","rt.req."+M.requestNumber)}}; Q&&(N.qy="Bearer "+Q);g.QH(A,"player/get_drm_license",f,N)}; mye=function(M,f,A,Q){g.pi.call(this);this.videoData=M;this.QY=f;this.X=A;this.sessionId=Q;this.N={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Er=this.KJ=!1;this.j=null;this.jk=[];this.C=[];this.b3=[];this.W=!1;this.K={};this.status="";this.G=NaN;this.Z=M.N;this.cryptoPeriodIndex=A.cryptoPeriodIndex;M={};Object.assign(M,this.QY.K);M.cpn=this.videoData.clientPlaybackNonce;this.videoData.P7&&(M.vvt=this.videoData.P7,this.videoData.mdxEnvironment&&(M.mdx_environment=this.videoData.mdxEnvironment)); this.QY.jk&&(M.authuser=this.QY.jk);this.QY.pageId&&(M.pageid=this.QY.pageId);isNaN(this.cryptoPeriodIndex)||(M.cpi=this.cryptoPeriodIndex.toString());var N=(N=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.ge()))?N[1]:"";N==="ATV"&&(M.cdt=N);this.N=M;this.N.session_id=Q;this.B=!0;this.Z.flavor==="widevine"&&(this.N.hdr="1");this.Z.flavor==="playready"&&(f=Number(EH(f.experiments,"playready_first_play_expiration")),!isNaN(f)&&f>=0&&(this.N.mfpe=""+f),this.B=!1);f="";g.MD(this.Z)?lX(this.Z)?(Q=A.Z)&&(f="https://www.youtube.com/api/drm/fps?ek="+ Zxt(Q)):(f=A.initData.subarray(4),f=new Uint16Array(f.buffer,f.byteOffset,f.byteLength/2),f=String.fromCharCode.apply(null,f).replace("skd://","https://")):f=this.Z.Z;this.baseUrl=f;this.fairplayKeyId=PP(this.baseUrl,"ek")||"";if(f=PP(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(f);this.jk=A.I5?[g.An(A.initData,4)]:A.j;fj(this,{sessioninit:A.cryptoPeriodIndex});this.status="in"}; gnX=function(M,f){fj(M,{createkeysession:1});M.status="gr";eh("drm_gk_s",void 0,M.videoData.B);M.url=sIe(M);try{M.j=f.createSession(M.X,function(A){fj(M,{m:A})})}catch(A){f="t.g"; A instanceof DOMException&&(f+=";c."+A.code);M.publish("licenseerror","drm.unavailable",1,f,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}M.j&&(c7D(M.j,function(A,Q){RCN(M,A,Q)},function(A,Q,N){if(!M.ek()){Q=void 0; var Y=1;g.MD(M.Z)&&g.eX(M.QY)&&M.QY.V("html5_enable_safari_fairplay")&&N===1212433232&&(Q="ERROR_HDCP",Y=M.QY.V("html5_safari_fairplay_ignore_hdcp")?0:Y);M.error("drm.keyerror",Y,A,Q)}},function(){M.ek()||(fj(M,{onkyadd:1}),M.Er||(M.publish("sessionready"),M.Er=!0))},function(A){M.SC(A)}),g.d(M,M.j))}; sIe=function(M){var f=M.baseUrl;hnN(f)||M.error("drm.net",2,"t.x");if(!PP(f,"fexp")){var A=["23898307","23914062","23916106","23883098"].filter(function(N){return M.QY.experiments.experiments[N]}); A.length>0&&(M.N.fexp=A.join())}A=g.V(Object.keys(M.N));for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,f=YIU(f,Q,M.N[Q]);return f}; RCN=function(M,f,A){if(!M.ek())if(f){fj(M,{onkmtyp:A});M.status="km";switch(A){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":B9z(M,f);return;default:M.publish("ctmp","message_type",{t:A,l:f.byteLength})}M.KJ||(eh("drm_gk_f",void 0,M.videoData.B),M.KJ=!0,M.publish("newsession",M));if(Kq(M.Z)&&(f=iGt(f),!f))return;f=new CeN(f,++M.requestNumber,M.videoData.B);UZf(f,function(Q){xyf(M,Q)},function(Q,N,Y){if(!M.ek()){var I=0; Q.K.Z>=3&&(I=1,N="drm.net.retryexhausted");fj(M,{onlcsrqerr:N,info:Y});M.error(N,I,Y);M.shouldRetry(rw(I),Q)&&ZGX(M,Q)}}); g.d(M,f);r7T(M,f)}else M.error("drm.unavailable",1,"km.empty")}; B9z=function(M,f){fj(M,{sdpvrq:1});M.G=Date.now();if(M.Z.flavor!=="widevine")M.error("drm.provision",1,"e.flavor;f."+M.Z.flavor+";l."+f.byteLength);else{var A={cpn:M.videoData.clientPlaybackNonce};Object.assign(A,M.QY.K);A=g.uj("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",A);f={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, f)}),responseType:"arraybuffer"};g.ul(A,f,3,500).then(uU(function(Q){Q=Q.xhr;if(!M.ek()){Q=new Uint8Array(Q.response);var N=String.fromCharCode.apply(null,Q);try{var Y=JSON.parse(N)}catch(I){}Y&&Y.signedResponse?(M.publish("ctmp","drminfo",{provisioning:1}),Y=(Date.now()-M.G)/1E3,M.G=NaN,M.publish("ctmp","provs",{et:Y.toFixed(3)}),M.j&&M.j.update(Q)):(Y=Y&&Y.error&&Y.error.message,Q="e.parse",Y&&(Q+=";m."+Y),M.error("drm.provision",1,Q))}}),uU(function(Q){M.ek()||M.error("drm.provision",1,"e."+Q.errorCode+ ";c."+(Q.xhr&&Q.xhr.status))}))}}; Av=function(M){var f;if(f=M.B&&M.j!=null)M=M.j,f=!(!M.K||!M.K.keyStatuses);return f}; r7T=function(M,f){M.status="km";eh("drm_net_s",void 0,M.videoData.B);var A=new g.AJ(M.QY.b5),Q={context:g.St(A.config_||g.hL())};Q.drmSystem=ut9[M.Z.flavor];Q.videoId=M.videoData.videoId;Q.cpn=M.videoData.clientPlaybackNonce;Q.sessionId=M.sessionId;Q.licenseRequest=g.An(f.message);Q.drmParams=M.videoData.drmParams;isNaN(M.cryptoPeriodIndex)||(Q.isKeyRotated=!0,Q.cryptoPeriodIndex=M.cryptoPeriodIndex);var N,Y,I=!!((N=M.videoData.Z)==null?0:(Y=N.video)==null?0:Y.isHdr());Q.drmVideoFeature=I?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(Q.context&&Q.context.client){if(N=M.QY.K)Q.context.client.deviceMake=N.cbrand,Q.context.client.deviceModel=N.cmodel,Q.context.client.browserName=N.cbr,Q.context.client.browserVersion=N.cbrver,Q.context.client.osName=N.cos,Q.context.client.osVersion=N.cosver;Q.context.user=Q.context.user||{};Q.context.request=Q.context.request||{};M.videoData.P7&&(Q.context.user.credentialTransferTokens=[{token:M.videoData.P7,scope:"VIDEO"}]);Q.context.request.mdxEnvironment=M.videoData.mdxEnvironment|| Q.context.request.mdxEnvironment;M.videoData.d2&&(Q.context.user.kidsParent={oauthToken:M.videoData.d2});g.MD(M.Z)&&(Q.fairplayKeyId=g.An(r2d(M.fairplayKeyId)));g.v5(M.QY,g.bv(M.videoData)).then(function(D){aFz(f,Q,A,D);M.status="rs"})}else M.error("drm.net",2,"t.r;ic.0")}; xyf=function(M,f){if(!M.ek())if(fj(M,{onlcsrsp:1}),M.status="rr",f.statusCode!==0)M.error("drm.auth",1,"t.f;c."+f.statusCode,f.errorMessage||void 0);else{eh("drm_kr_s",void 0,M.videoData.B);if(f.heartbeatParams&&f.heartbeatParams.url&&M.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var A=M.Z.Z.match(/(.*)youtube.com/g);A&&(f.heartbeatParams.url=A[0]+f.heartbeatParams.url)}f.heartbeatParams&&M.publish("newlicense",f.heartbeatParams);f.Z&&(M.C=f.Z,M.videoData.HD||M.publish("newlicense", new L$9),M.videoData.HD=!0,M.W=lW(M.C,function(Q){return Q.includes("HDR")})); f.K&&(M.QY.V("html5_enable_vp9_fairplay")&&lX(M.Z)?(A=g.An(r2d(M.fairplayKeyId),4),M.K[A]={type:f.K[A],status:"unknown"}):M.K=ke(f.K,function(Q){return{type:Q,status:"unknown"}})); wc(M.Z)&&(f.message=jPf(g.An(f.message)));M.j&&(fj(M,{updtks:1}),M.status="ku",M.j.update(f.message).then(function(){eh("drm_kr_f",void 0,M.videoData.B);Av(M)||(fj(M,{ksApiUnsup:1}),M.publish("keystatuseschange",M))},function(Q){Q="msuf.req."+M.requestNumber+";msg."+g.Q7(Q.message,3); M.error("drm.keyerror",1,Q)})); g.MD(M.Z)&&M.publish("fairplay_next_need_key_info",M.baseUrl,f.nextFairplayKeyId);M.QY.V("html5_enable_vp9_fairplay")&&lX(M.Z)&&M.publish("qualitychange",zC0(M.C));f.sabrLicenseConstraint&&M.publish("sabrlicenseconstraint",f.sabrLicenseConstraint)}}; ZGX=function(M,f){var A=f.K.getValue();A=new g.MY(function(){r7T(M,f)},A); g.d(M,A);A.start();g.yA(f.K);fj(M,{rtyrq:1})}; P1d=function(M,f){for(var A=[],Q=g.V(Object.keys(M.K)),N=Q.next();!N.done;N=Q.next())N=N.value,A.push(N+"_"+M.K[N].type+"_"+M.K[N].status);return A.join(f)}; nnU=function(M){var f={};f[M.status]=Av(M)?P1d(M,"."):M.C.join(".");return f}; jIt=function(M){switch(M.replace("HDR","").replace("720","")){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; Qo=function(M,f){for(var A in M.K)if(M.K[A].status==="usable"&&M.K[A].type===f)return!0;return!1}; $y6=function(M,f){for(var A in M.K)if(M.K[A].type===f)return M.K[A].status}; fj=function(M,f){var A=A===void 0?!1:A;x8(f);(A||M.QY.cX())&&M.publish("ctmp","drmlog",f)}; FTb=function(M){if(M.QY.V("html5_authorized_drm_track_types")&&!Av(M)){for(var f={},A=[],Q=g.V(M.C),N=Q.next();!N.done;N=Q.next())N=jIt(N.value),f[N]||(A.push(N),f[N]=!0);M.b3=A}return M.b3}; y7b=function(M){var f=M[0];M[0]=M[3];M[3]=f;f=M[1];M[1]=M[2];M[2]=f;f=M[4];M[4]=M[5];M[5]=f;f=M[6];M[6]=M[7];M[7]=f}; zC0=function(M){return g.V9(M,"UHD2")||g.V9(M,"UHD2HDR")?"highres":g.V9(M,"UHD1")||g.V9(M,"UHD1HDR")?"hd2160":g.V9(M,"HD")||g.V9(M,"HDHDR")?"hd1080":g.V9(M,"HD720")||g.V9(M,"HD720HDR")?"hd720":"large"}; iGt=function(M){for(var f="",A=0;A'.charCodeAt(Q);M=M.j.createSession("video/mp4",f,A);return new Nq(null,null,null,null,M)}; J7c=function(M,f){var A=M.G[f.sessionId];!A&&M.C&&(A=M.C,M.C=null,A.sessionId=f.sessionId,M.G[f.sessionId]=A);return A}; WTT=function(M,f){var A=M.subarray(4);A=new Uint16Array(A.buffer,A.byteOffset,A.byteLength/2);A=g.F(String.fromCharCode.apply(null,A).match(/ek=([0-9a-f]+)/))[1];for(var Q="",N=0;N19.2999?(M=A.Vu,A=A.qv,A>=M&&(A=M* .75),f=(M-A)*.5,A=new lK(f,M,M-f-A,this)):A=null;break a;case "widevine":A=new Mq(f,this,M);break a;default:A=null}if(this.N=A)g.d(this,this.N),this.N.subscribe("rotated_need_key_info_ready",this.nE,this),this.N.subscribe("log_qoe",this.U3,this);Aa(this.QY.experiments);this.U3({cks:this.K.getInfo()})}; Gpz=function(M){var f=kpc(M.C);f?f.then(uU(function(){lTt(M)}),uU(function(A){if(!M.ek()){g.jZ(A); var Q="t.a";A instanceof DOMException&&(Q+=";n."+A.name+";m."+A.message);M.publish("licenseerror","drm.unavailable",1,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(M.U3({mdkrdy:1}),M.B=!0); M.Er&&(f=kpc(M.Er))}; fq0=function(M,f,A){M.nJ=!0;A=new pG(f,A);M.QY.V("html5_eme_loader_sync")&&(M.G.get(f)||M.G.set(f,A));MB0(M,A)}; MB0=function(M,f){if(!M.ek()){M.U3({onInitData:1});if(M.QY.V("html5_eme_loader_sync")&&M.videoData.j&&M.videoData.j.K){var A=M.W.get(f.initData);f=M.G.get(f.initData);if(!A||!f)return;f=A;A=f.initData;M.G.remove(A);M.W.remove(A)}M.U3({initd:f.initData.length,ct:f.contentType});if(M.K.flavor==="widevine")if(M.z0&&!M.videoData.isLivePlayback)TP(M);else{if(!(M.QY.V("vp9_drm_live")&&M.videoData.isLivePlayback&&f.I5)){M.z0=!0;A=f.cryptoPeriodIndex;var Q=f.K;snf(f);f.I5||(Q&&f.K!==Q?M.publish("ctmp","cpsmm", {emsg:Q,pssh:f.K}):A&&f.cryptoPeriodIndex!==A&&M.publish("ctmp","cpimm",{emsg:A,pssh:f.cryptoPeriodIndex}));M.publish("widevine_set_need_key_info",f)}}else M.nE(f)}}; lTt=function(M){if(!M.ek())if(M.QY.V("html5_drm_set_server_cert")||lX(M.K)){var f=M.C.setServerCertificate();f?f.then(uU(function(A){M.QY.cX()&&M.publish("ctmp","ssc",{success:A})}),uU(function(A){M.publish("ctmp","ssce",{n:A.name, m:A.message})})).then(uU(function(){AGT(M)})):AGT(M)}else AGT(M)}; AGT=function(M){M.ek()||(M.B=!0,M.U3({onmdkrdy:1}),TP(M))}; Q79=function(M){return M.K.flavor==="widevine"&&M.videoData.V("html5_drm_cpi_license_key")}; TP=function(M){if(M.nJ&&M.B&&!M.P7){for(;M.j.length;){var f=M.j[0],A=Q79(M)?cD0(f):g.An(f.initData);if(lX(M.K)&&!f.Z)M.j.shift();else{if(M.Z.get(A))if(M.K.flavor!=="fairplay"||lX(M.K)){M.j.shift();continue}else M.Z.delete(A);snf(f);break}}M.j.length&&M.createSession(M.j[0])}}; NFN=function(M){var f;if(f=g.JI()){var A;f=!((A=M.C.Z)==null||!A.getMetrics)}f&&(f=M.C.getMetrics())&&(f=g.xu(f),M.publish("ctmp","drm",{metrics:f}))}; YFN=function(){var M=yCT();return!(!M||M==="visible")}; TFD=function(M){var f=Iqt();f&&document.addEventListener(f,M,!1)}; DwN=function(M){var f=Iqt();f&&document.removeEventListener(f,M,!1)}; Iqt=function(){if(document.visibilityState)var M="visibilitychange";else{if(!document[U8+"VisibilityState"])return"";M=U8+"visibilitychange"}return M}; Ett=function(M){g.y.call(this);var f=this;this.d_=M;this.n5=0;this.G=this.Z=this.N=!1;this.C=0;this.i8=this.d_.T();this.videoData=this.d_.getVideoData();this.j=g.CE(this.i8.experiments,"html5_delayed_retry_count");this.K=new g.MY(function(){f.d_.bM()},g.CE(this.i8.experiments,"html5_delayed_retry_delay_ms")); g.d(this,this.K)}; SFU=function(M,f,A){var Q=M.videoData.Z,N=M.videoData.C;Em(M.d_.getVideoData())&&M.i8.V("html5_gapless_fallback_on_qoe_restart")&&pjX(M.d_,"pe");if((f==="progressive.net.retryexhausted"||f==="fmt.unplayable"||f==="fmt.decode")&&!M.d_.TQ.N&&Q&&Q.itag==="22")return M.d_.TQ.N=!0,M.xC("qoe.restart",{reason:"fmt.unplayable.22"}),M.d_.aZ(),!0;var Y=!1;if(M.videoData.isExternallyHostedPodcast){if(Y=M.videoData.IkO)A.mimeType=Y.type,M.ZB("3pp",{url:Y.url});A.ns="3pp";M.d_.Cx(f,1,"VIDEO_UNAVAILABLE",x8((new ZZ(f, A,1)).details));return!0}var I=M.n5+3E4<(0,g.W)()||M.K.isActive();if(M.i8.V("html5_empty_src")&&M.videoData.isAd()&&f==="fmt.unplayable"&&/Empty src/.test(""+A.msg))return A.origin="emptysrc",M.xC("auth",A),!0;I||tBD(M.d_.N_())||(A.nonfg="paused",I=!0,M.d_.pauseVideo());(f==="fmt.decode"||f==="fmt.unplayable")&&(N==null?0:fO(N)||AE(N))&&(ljT(M.i8.N,N.LJ),A.acfallexp=N.LJ,Y=I=!0);!I&&M.j>0&&(M.K.start(),I=!0,A.delayed="1",--M.j);N=M.d_.loader;!I&&((Q==null?0:MC(Q))||(Q==null?0:Gk(Q)))&&(ljT(M.i8.N, Q.LJ),Y=I=!0,A.cfallexp=Q.LJ);if(!I)return vtf(M,A);I=!1;M.N?M.n5=(0,g.W)():I=M.N=!0;var D=M.videoData;if(D.Ji){D=D.Ji.sB();var E=Date.now()/1E3+1800;D=D6048E5&&Uwz(M,"signature");return!1}; Uwz=function(M,f){try{f={detail:"pr."+f},g.fF(M.i8)&&M.i8.V("html5_reload_by_kabuki_app")?M.d_.Cx("qoe.restart",1,void 0,x8(f),"7"):(M.xC("qoe.restart",f),window.location.reload())}catch(A){}}; aq9=function(M,f){var A=M.i8.N;A.W=!1;A.Z=!0;M.xC("qoe.restart",{e:f===void 0?"fmt.noneavailable":f,detail:"hdr"});M.d_.bM(!0)}; qFc=function(M,f,A,Q,N,Y){this.videoData=M;this.K=f;this.reason=A;this.Z=Q;this.token=N;this.videoId=Y}; D5=function(M,f,A){this.QY=M;this.Of=f;this.d_=A;this.X=this.G=this.K=this.C=this.W=this.Z=0;this.N=!1;this.B=g.CE(this.QY.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.j=new Map}; mwD=function(M,f,A){!M.QY.V("html5_tv_ignore_capable_constraint")&&g.Zs(M.QY)&&(A=A.compose(HKb(M,f)));return A}; s7D=function(M){if(M.d_.N_().isInline())return KF;var f;M.V("html5_exponential_memory_for_sticky")?f=xI(M.QY.R5,"sticky-lifetime")<.5?"auto":Vc[Gv()]:f=Vc[Gv()];return g.or("auto",f,!1,"s")}; Rwc=function(M,f){var A,Q=cGe(M,(A=f.K)==null?void 0:A.videoInfos);A=M.d_.getPlaybackRate();return A>1&&Q?(M=Jmd(M.QY.N,f.K.videoInfos,A),new Ly(0,M,!0,"o")):new Ly(0,0,!1,"o")}; cGe=function(M,f){return f&&g.Zs(M.QY)?f.some(function(A){return A.video.fps>32}):!1}; gtt=function(M,f){if(M.V("html5_disable_ustreamer_constraint_for_sabr")&&pk(f.videoData))return KF;var A=M.d_.Fm();M.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&A&&A.DU>0&&UU(f.videoData.GT)&&(M=A.DU,f.videoData.GT=new Ly(0,M,!1,"u"));return f.videoData.GT}; HKb=function(M,f){if(g.Zs(M.QY)&&rY(M.QY.N,uo.HEIGHT))var A=f.K.videoInfos[0].video.qualityOrdinal;else{var Q=M.r3(!!f.K.K);tg(f.videoData)||XG(f.videoData);f=f.K.videoInfos;if(f.length){var N=g.CE(M.QY.experiments,"html5_override_oversend_fraction")||.85,Y=f[0].video;Y.projectionType!=="MESH"&&Y.projectionType!=="EQUIRECTANGULAR"&&Y.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||$I||(N=.45);M=g.CE(M.QY.experiments,"html5_viewport_undersend_maximum");for(Y=0;Y0&&(A=Math.min(A,Q));if(Q=g.CE(M.QY.experiments,"html5_max_vertical_resolution")){M=4320;for(N=0;NQ&&(M=Math.min(M,Y.video.qualityOrdinal));if(M<4320){for(N=Q=0;N32){N=!0;break a}}N=!1}N&&(A=Math.min(A,Q));(Q=g.CE(M.QY.experiments,"html5_live_quality_cap"))&&f.videoData.isLivePlayback&&(A=Math.min(A,Q));A=iKN(M,f,A);M=g.CE(M.QY.experiments,"html5_byterate_soft_cap");return new Ly(0,A===4320?0:A,!1,"d",M)}; ZKX=function(M){var f,A,Q,N;return g.n(function(Y){switch(Y.Z){case 1:return M.K.K&&typeof((f=navigator.mediaCapabilities)==null?void 0:f.decodingInfo)==="function"?g.r(Y,Promise.resolve(),2):Y.return(Promise.resolve());case 2:A=g.V(M.K.videoInfos),Q=A.next();case 3:if(Q.done){Y.CJ(0);break}N=Q.value;return g.r(Y,BAN(N),4);case 4:Q=A.next(),Y.CJ(3)}})}; uBb=function(M,f){if(!f.videoData.Z||M.V("html5_disable_performance_downgrade"))return!1;Date.now()-M.W>6E4&&(M.Z=0);M.Z++;M.W=Date.now();if(M.Z!==4)return!1;rG9(M,f.videoData.Z);return!0}; PK9=function(M,f,A,Q){if(!f||!A||!f.videoData.Z)return!1;var N=g.CE(M.QY.experiments,"html5_df_downgrade_thresh"),Y=M.V("html5_log_media_perf_info");if(!((0,g.W)()-M.C<5E3?0:Y||N>0))return!1;var I=((0,g.W)()-M.C)/1E3;M.C=(0,g.W)();A=A.getVideoPlaybackQuality();if(!A)return!1;var D=A.droppedVideoFrames-M.G,E=A.totalVideoFrames-M.X;M.G=A.droppedVideoFrames;M.X=A.totalVideoFrames;var t=A.displayCompositedVideoFrames===0?0:A.displayCompositedVideoFrames||-1;Y&&M.QY.cX()&&M.d_.ZB("ddf",{dr:A.droppedVideoFrames, de:A.totalVideoFrames,comp:t});if(Q)return M.K=0,!1;if((E-D)/I>M.B||!N||g.Zs(M.QY))return!1;M.K=(E>60?D/E:0)>N?M.K+1:0;if(M.K!==3)return!1;rG9(M,f.videoData.Z);M.d_.ZB("dfd",Object.assign({dr:A.droppedVideoFrames,de:A.totalVideoFrames},zwe()));return!0}; rG9=function(M,f){var A=f.LJ,Q=f.video.fps,N=f.video.qualityOrdinal-1,Y=M.j;f=""+A+(Q>49?"p60":Q>32?"p48":"");A=kB(A,Q,Y);N>0&&(A=Math.min(A,N));if(!E6.has(f)&&Mj().includes(f)){var I=A;A=lU();+A[f]>0&&(I=Math.min(+A[f],I));A[f]!==I&&(A[f]=I,g.jA("yt-player-performance-cap",A,2592E3))}else if(E6.has(f)||Y==null){a:{I=I===void 0?!0:I;Q=Mj().slice();if(I){if(Q.includes(f))break a;Q.push(f)}else{if(!Q.includes(f))break a;Q.splice(Q.indexOf(f),1)}g.jA("yt-player-performance-cap-active-set",Q,2592E3)}bX.set(f, A)}else E6.add(f),Y==null||Y.set(f,A);M.d_.Um()}; tv=function(M,f){if(!f.K.K)return M.N?new Ly(0,360,!1,"b"):KF;for(var A=!1,Q=!1,N=g.V(f.K.videoInfos),Y=N.next();!Y.done;Y=N.next())MC(Y.value)?A=!0:Q=!0;A=A&&Q;Q=0;N=g.CE(M.QY.experiments,"html5_performance_cap_floor");N=M.QY.Z?240:N;f=g.V(f.K.videoInfos);for(Y=f.next();!Y.done;Y=f.next()){var I=Y.value;if(!A||!MC(I))if(Y=kB(I.LJ,I.video.fps,M.j),I=I.video.qualityOrdinal,Math.max(Y,N)>=I){Q=I;break}}return new Ly(0,Q,!1,"b")}; nt9=function(M,f){var A=M.d_.N_();return A.isInline()&&!f.Nc?new Ly(0,480,!1,"v"):pk(f)?KF:A.isBackground()&&xr()/1E3>60&&!g.Zs(M.QY)?new Ly(0,360,!1,"v"):KF}; j7t=function(M,f,A){if(M.QY.experiments.X3("html5_disable_client_autonav_cap_for_onesie")&&f.fetchType==="onesie"||g.Zs(M.QY)&&(Gv(-1)>=1080||f.osid))return KF;var Q=g.CE(M.QY.experiments,"html5_autonav_quality_cap"),N=g.CE(M.QY.experiments,"html5_autonav_cap_idle_secs");return Q&&f.isAutonav&&xr()/1E3>N?(A&&(Q=iKN(M,A,Q)),new Ly(0,Q,!1,"e")):KF}; iKN=function(M,f,A){if(M.V("html5_optimality_defaults_chooses_next_higher")&&A)for(M=f.K.videoInfos,f=1;f=0||(M.provider.d_.getVisibilityState()===3?M.N=!0:(M.K=g.KK(M.provider),M.delay.start()))}; yGf=function(M){if(!(M.Z<0)){var f=g.KK(M.provider),A=f-M.C;M.C=f;M.playerState.state===8?M.playTimeSecs+=A:M.playerState.isBuffering()&&!g.J(M.playerState,16)&&(M.rebufferTimeSecs+=A)}}; dwb=function(M){var f;switch((f=M.QY.playerCanaryStage)==null?void 0:f.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"}}; ewb=function(M){return window.PressureObserver&&new window.PressureObserver(M)}; bKX=function(M){M=M===void 0?ewb:M;g.y.call(this);var f=this;try{this.j=M(function(Q){f.Z=Q.at(-1)}); var A;this.C=(A=this.j)==null?void 0:A.observe("cpu",{sampleInterval:2E3}).catch(function(Q){Q instanceof DOMException&&(f.K=Q)})}catch(Q){Q instanceof DOMException&&(this.K=Q)}}; kqe=function(M){var f={},A=window.h5vcc;f.hwConcurrency=navigator.hardwareConcurrency;M.K&&(f.cpe=M.K.message);M.Z&&(f.cpt=M.Z.time,f.cps=M.Z.state);if(A==null?0:A.cVal)f.cb2s=A.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),f.cb5s=A.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),f.cb30s=A.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return f}; WQU=function(M){var f;g.n(function(A){switch(A.Z){case 1:return g.HX(A,2),g.r(A,M.C,4);case 4:g.Rf(A,3);break;case 2:g.id(A);case 3:(f=M.j)==null||f.disconnect(),g.qc(A)}})}; X6e=function(M,f){f?OKb.test(M):(M=g.TA(M),Object.keys(M).includes("cpn"))}; KQ9=function(M,f,A,Q,N,Y,I){var D={format:"RAW"},E={};if(tI(M)&&va()){if(I){var t;((t=JGd.uaChPolyfill)==null?void 0:t.state.type)!==2?I=null:(I=JGd.uaChPolyfill.state.data.values,I={"Synth-Sec-CH-UA-Arch":I.architecture,"Synth-Sec-CH-UA-Model":I.model,"Synth-Sec-CH-UA-Platform":I.platform,"Synth-Sec-CH-UA-Platform-Version":I.platformVersion,"Synth-Sec-CH-UA-Full-Version":I.uaFullVersion});E=Object.assign(E,I);D.withCredentials=!0}(I=g.GR("EOM_VISITOR_DATA"))?E["X-Goog-EOM-Visitor-Id"]=I:Q?E["X-Goog-Visitor-Id"]= Q:g.GR("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=g.GR("VISITOR_DATA"));A&&(E["X-Goog-PageId"]=A);(Q=f.jk)&&!N1(f)&&(E["X-Goog-AuthUser"]=Q);N&&(E.Authorization="Bearer "+N);f.V("enable_datasync_id_header_in_web_vss_pings")&&f.Fi&&f.datasyncId&&(E["X-YouTube-DataSync-Id"]=f.datasyncId);I||E["X-Goog-Visitor-Id"]||N||A||Q?D.withCredentials=!0:f.V("html5_send_cpn_with_options")&&OKb.test(M)&&(D.withCredentials=!0)}Object.keys(E).length>0&&(D.headers=E);Y&&(D.onFinish=Y);return Object.keys(D).length>1? D:null}; Gqe=function(M,f,A,Q,N,Y,I,D){va()&&A.token&&(M=Df(M,{ctt:A.token,cttype:A.o1,mdx_environment:A.mdxEnvironment}));Q.V("net_pings_low_priority")&&(f||(f={}),f.priority="low");Y||D&&Q.V("nwl_skip_retry")?(f==null?f={}:X6e(M,Q.V("html5_assert_cpn_with_regex")),I?MF().sendAndWrite(M,f):MF().sendThenWrite(M,f,D)):f?(X6e(M,Q.V("html5_assert_cpn_with_regex")),tFd(M,f)):g.bg(M,N)}; w6b=function(M){for(var f=[],A=0;A0&&A>0&&!M.Z&&M.j<1E7)try{M.C=M.N({sampleInterval:f,maxBufferSize:A});var Q;(Q=M.C)==null||Q.addEventListener("samplebufferfull",function(){return g.n(function(N){if(N.Z==1)return g.r(N,M.stop(),2);f5d(M);g.qc(N)})})}catch(N){M.Z=MG6(N.message)}}; hv=function(M,f){var A,Q;return!!((A=window.h5vcc)==null?0:(Q=A.settings)==null?0:Q.set(M,f))}; Qoe=function(){var M,f,A,Q=(M=window.h5vcc)==null?void 0:(f=M.settings)==null?void 0:(A=f.getPersistentSettingAsString)==null?void 0:A.call(f,"cpu_usage_tracker_intervals");if(Q!=null){var N;M=(N=JSON.parse(Q))!=null?N:[];N=M.filter(function(t){return t.type==="total"}).map(function(t){return t.seconds}); f=g.V(Avt);for(A=f.next();!A.done;A=f.next())A=A.value,N.indexOf(A)===-1&&M.push({type:"total",seconds:A});var Y,I;(Y=window.h5vcc)==null||(I=Y.settings)==null||I.set("cpu_usage_tracker_intervals_enabled",1);var D,E;(D=window.h5vcc)==null||(E=D.settings)==null||E.set("cpu_usage_tracker_intervals",JSON.stringify(M))}}; NN0=function(){var M=window.H5vccPlatformService,f="";if(M&&M.has("dev.cobalt.coat.clientloginfo")&&(M=M.open("dev.cobalt.coat.clientloginfo",function(){}))){var A=M.send(new ArrayBuffer(0)); A&&(f=String.fromCharCode.apply(String,g.c(new Uint8Array(A))));M.close()}return f}; g.oo=function(M){g.y.call(this);var f=this;this.provider=M;this.logger=new g.tD("qoe");this.K=new Map;this.sequenceNumber=1;this.jk=NaN;this.Oq="N";this.X=this.sU=this.BY=this.KJ=this.Z=0;this.Yp=this.fJ=this.G=this.ox="";this.xp=this.nJ=NaN;this.MV=0;this.y7=-1;this.d2=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Qw=this.isEmbargoed=this.z0=this.isOffline=this.isBuffering=!1;this.Uq=[];this.B=null;this.xO=this.C=this.b8=this.W=!1;this.j=-1;this.Ji=!1;this.N5=new g.MY(this.FN,750,this);this.vV= this.adCpn=this.Er=this.contentCpn="";this.adFormat=void 0;this.Fk=0;this.l8=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.T_=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Z9=!1;this.oE=NaN;this.g_=0;this.zt=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.wq=!1;this.Ed={v6:function(Q){f.v6(Q)}, atJ:function(){return f.N}, fh:function(){return f.contentCpn}, o88:function(){return f.Er}, reportStats:function(){f.reportStats()}, eiJ:function(){return f.K.get("cat")||[]}, tH:function(Q){return f.K.get(Q)||[]}, ARN:function(){return f.K}, eD0:function(){return 0}, CX3:function(){return{adCpn:f.adCpn,vV:f.vV,adFormat:f.adFormat}}}; this.P7=this.provider.QY.V("html5_qoe_relaxed_reporting");var A=g.CE(this.provider.QY.experiments,"html5_qoe_proto_mock_length");A&&!SG.length&&(SG=w6b(A));g.d(this,this.N5);try{navigator.getBattery().then(function(Q){f.B=Q})}catch(Q){}g.Lj(this,0,"vps",["N"]); M.QY.cX()&&(this.g_=(0,g.W)(),this.oE=g.Vn(function(){var Q=(0,g.W)(),N=Q-f.g_;N>500&&f.ZB("vmlock",{diff:N.toFixed()});f.g_=Q},250)); this.provider.videoData.CK&&(this.remoteControlMode=Y69[this.provider.videoData.CK]||0);this.provider.videoData.T9&&(A=Yit(this.provider.videoData.T9),A==null?0:A.length)&&(this.remoteConnectedDevices=A);if(M.QY.cX()||M.V("html5_log_cpu_info"))this.w_=new bKX,g.d(this,this.w_);A=g.CE(M.QY.experiments,"html5_js_self_profiler_sample_interval_ms");M=g.CE(M.QY.experiments,"html5_js_self_profiler_max_samples");A>0&&M>0&&(this.YO=new pj(A,M),g.d(this,this.YO))}; Cj=function(M,f,A){var Q=M.K.get(f);Q?Q.push(A):M.K.set(f,[A])}; g.Lj=function(M,f,A,Q){Cj(M,A,f.toFixed(3)+":"+Q.join(":"))}; I59=function(M,f){var A=M.adCpn||M.provider.videoData.clientPlaybackNonce,Q=M.provider.getCurrentTime(A);g.Lj(M,f,"cmt",[Q.toFixed(3)]);Q=M.provider.By(A);if(M.N&&Q*1E3>M.N.qw+100&&M.N){var N=M.N;A=N.isAd;Q=Q*1E3-N.qw;M.zZ=f*1E3-N.qR_-Q-N.CUO;N=(0,g.W)()-Q;f=M.zZ;Q=M.provider.videoData;var Y=Q.isAd();if(A||Y){Y=(A?"ad":"video")+"_to_"+(Y?"ad":"video");var I={};Q.G&&(I.cttAuthInfo={token:Q.G,videoId:Q.videoId});I.startTime=N-f;k7(Y,I);g.bB({targetVideoId:Q.videoId,targetCpn:Q.clientPlaybackNonce}, Y);eh("pbs",N,Y)}else N=M.provider.d_.ZX(),N.G!==Q.clientPlaybackNonce?(N.N=Q.clientPlaybackNonce,N.Z=f):Q.E3()||g.$b(new g.GX("CSI timing logged before gllat",{cpn:Q.clientPlaybackNonce}));M.ZB("gllat",{l:M.zZ.toFixed(),prev_ad:+A});delete M.N}}; U6=function(M,f){f=f===void 0?NaN:f;f=f>=0?f:g.KK(M.provider);var A=M.provider.d_.lT(),Q=A.wM-(M.nJ||0);Q>0&&g.Lj(M,f,"bwm",[Q,(A.E1-(M.xp||0)).toFixed(3)]);isNaN(M.nJ)&&A.wM&&M.isOffline&&M.v6(!1);M.nJ=A.wM;M.xp=A.E1;isNaN(A.bandwidthEstimate)||g.Lj(M,f,"bwe",[A.bandwidthEstimate.toFixed(0)]);M.provider.QY.cX()&&Object.keys(A.K).length!==0&&M.ZB("bwinfo",A.K);if(M.provider.QY.cX()||M.provider.QY.V("html5_log_meminfo"))Q=qmt(M.provider.QY.V("html5_enable_chrobalt_memory_apis")),Object.values(Q).some(function(Y){return Y!== void 0})&&M.ZB("meminfo",Q); if(M.provider.QY.cX()||M.provider.QY.V("html5_log_cpu_info")){var N;(Q=(N=M.w_)==null?void 0:kqe(N))&&Object.values(Q).some(function(Y){return Y!=null})&&M.ZB("cpuinfo",Q)}M.YO&&M.ZB("jsprof",M.YO.flush()); M.B&&g.Lj(M,f,"bat",[M.B.level,M.B.charging?"1":"0"]);N=M.provider.d_.getVisibilityState();M.y7!==N&&(g.Lj(M,f,"vis",[N]),M.y7=N);I59(M,f);(N=TNf(M.provider))&&N!==M.MV&&(g.Lj(M,f,"conn",[N]),M.MV=N);Dqf(M,f,A)}; Dqf=function(M,f,A){if(!isNaN(A.Bt)){var Q=A.Bt;A.Z96E3&&(new g.MY(M.reportStats,0,M)).start()}}; vdz=function(M){M.provider.videoData.Ki&&Vo(M,"prefetch");M.provider.videoData.zt&&M.ZB("reload",{r:M.provider.videoData.reloadReason,ct:M.provider.videoData.zt});M.provider.videoData.l8&&Vo(M,"monitor");M.provider.videoData.isLivePlayback&&Vo(M,"live");D9&&Vo(M,"streaming");M.provider.videoData.CK&&M.ZB("ctrl",{mode:M.provider.videoData.CK},!0);if(M.provider.videoData.T9){var f=M.provider.videoData.T9.replace(/,/g,"_");M.ZB("ytp",{type:f},!0)}M.provider.videoData.ET&&(f=M.provider.videoData.ET.replace(/,/g, "."),M.ZB("ytrexp",{ids:f},!0));var A=M.provider.videoData;f=M.provider.QY.V("enable_white_noise")||M.provider.QY.V("enable_webgl_noop");A=g.q5(A)||g.uv(A)||g.ze(A)||g.Pu(A);(f||A)&&(f=(0,g.ao)())&&M.K.set("gpu",[f]);XG(M.provider.videoData)&&g.Lj(M,g.KK(M.provider),"dt",["1"]);M.provider.QY.cX()&&(f=(0,g.W)()-M.provider.QY.vy,M.ZB("playerage",{secs:Math.pow(1.6,Math.round(Math.log(f/1E3)/Math.log(1.6))).toFixed()}));M.C=!0;M.jk=g.Vn(function(){M.reportStats()},1E4)}; h4t=function(M,f,A){var Q=g.KK(M.provider);pVe(M,Q,f,0,A);U6(M,Q);tGb(M)}; pVe=function(M,f,A,Q,N){var Y=M.provider.QY.K.cbrver;M.provider.QY.K.cbr==="Chrome"&&/^96[.]/.test(Y)&&A==="net.badstatus"&&/rc\.500/.test(N)&&S6N(M,3);M.provider.QY.V("html5_use_ump")&&/b248180278/.test(N)&&S6N(M,4);Y=M.provider.getCurrentTime(M.adCpn||M.provider.videoData.clientPlaybackNonce);Q=Q===1?"fatal":"";A=[A,Q,Y.toFixed(3)];Q&&(N+=";a6s."+pe());N&&A.push(LON(N));g.Lj(M,f,"error",A);M.C=!0}; YXe=function(M,f){var A=g.KK(M.provider);if(!M.provider.QY.experiments.X3("html5_refactor_sabr_video_format_selection_logging")||f.K.id!==M.ox){var Q=[f.K.id,f.Z,M.ox,f.reason];f.token&&Q.push(f.token);g.Lj(M,A,"vfs",Q);M.ox=f.K.id;Q=M.provider.d_.getPlayerSize();if(Q.width>0&&Q.height>0){Q=[Math.round(Q.width),Math.round(Q.height)];var N=g.Ad();N>1&&Q.push(N);g.Lj(M,A,"view",Q)}M.b8||(M.provider.QY.cX()&&Vo(M,"rqs2"),M.provider.videoData.K&&sU(M.provider.videoData.K)&&M.K.set("preload",["1"]));M.b8= !0;M.C=!0}f.reason==="m"&&++M.Fk===100&&S6N(M,2);g.Lj(M,A,"vps",[M.Oq]);M.P7||M.reportStats(A)}; odX=function(M){M.j>=0||(M.provider.QY.Wy||M.provider.d_.getVisibilityState()!==3?M.j=g.KK(M.provider):M.Ji=!0)}; Nxd=function(M,f,A){if(M.provider.QY.experiments.X3("html5_refactor_sabr_audio_format_selection_logging")){f=A.K;var Q=[f.audio&&f.video?f.oH?f.oH:"":f.id];f.qV&&f.qV.id&&Q.push(f.qV.id);f=Q.join(";");f!==M.G&&(Q=[f,M.G,A.reason],A.token&&Q.push(A.token),g.Lj(M,g.KK(M.provider),"afs",Q),M.G=f)}else A.K.id!==M.G&&(Q=[A.K.id,M.G,A.reason],A.token&&Q.push(A.token),g.Lj(M,f,"afs",Q),M.G=A.K.id)}; Vo=function(M,f){Cj(M,"cat",f)}; qq=function(M,f,A,Q,N,Y){var I=g.KK(M.provider);A!==1&&A!==3&&A!==5||g.Lj(M,I,"vps",[M.Oq]);Cj(M,"xvt","t."+I.toFixed(3)+";m."+Y.toFixed(3)+";g."+f+";tt."+A+";np.0;c."+Q+";d."+N)}; S6N=function(M,f){M.xO||(Cj(M,"fcnz",""+f),M.xO=!0)}; LON=function(M){/[^a-zA-Z0-9;.!_-]/.test(M)&&(M=M.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return M}; CIX=function(M){this.provider=M;this.W=!1;this.K=0;this.C=-1;this.iX=NaN;this.j=0;this.segments=[];this.G=this.N=0;this.previouslyEnded=!1;this.B=this.provider.d_.getVolume();this.X=this.provider.d_.isMuted()?1:0;this.Z=HV(this.provider)}; mO=function(M){M.Z.startTime=M.j;M.Z.endTime=M.K;var f=!1;M.segments.length&&g.Sw(M.segments).isEmpty()?(M.segments[M.segments.length-1].previouslyEnded&&(M.Z.previouslyEnded=!0),M.segments[M.segments.length-1]=M.Z,f=!0):M.segments.length&&M.Z.isEmpty()||(M.segments.push(M.Z),f=!0);f?M.Z.endTime===0&&(M.previouslyEnded=!1):M.Z.previouslyEnded&&(M.previouslyEnded=!0);M.N+=M.K-M.j;M.Z=HV(M.provider);M.Z.previouslyEnded=M.previouslyEnded;M.previouslyEnded=!1;M.j=M.K}; VGT=function(M){Uqb(M);M.G=g.Vn(function(){M.update()},100); M.iX=g.KK(M.provider);M.Z=HV(M.provider)}; Uqb=function(M){g.qR(M.G);M.G=NaN}; a5D=function(M,f,A){A-=M.iX;return f===M.K&&A>.5}; q6d=function(M,f,A,Q){this.QY=f;this.Yp=A;this.segments=[];this.experimentIds=[];this.Ji=this.oE=this.isFinal=this.delayThresholdMet=this.zt=this.y7=this.autoplay=this.autonav=!1;this.MV="yt";this.G=[];this.W=this.B=null;this.sendVisitorIdHeader=this.w_=!1;this.X=this.pageId="";this.N=A==="watchtime";this.j=A==="playback";this.P7=A==="atr";this.Wy=A==="engage";this.sendVisitorIdHeader=!1;this.uri=this.P7?"/api/stats/"+A:"//"+f.kN+"/api/stats/"+A;Q&&(this.oE=Q.fs,Q.rtn&&(this.W=Q.rtn),this.N?(this.playerState= Q.state,Q.rti>0&&(this.B=Q.rti)):(this.OR=Q.mos,this.o9=Q.volume,Q.at&&(this.adType=Q.at)),Q.autonav&&(this.autonav=Q.autonav),Q.inview!=null&&(this.d2=Q.inview),Q.size&&(this.xp=Q.size),Q.playerwidth&&(this.qX=Q.playerwidth),Q.playerheight&&(this.SO=Q.playerheight));this.Fk=g.Q1(f.K);this.X=EH(f.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.X==="all"||this.X==="once")this.wq=g.Q1(f.wq);this.R5=f.d2;this.experimentIds=kEb(f.experiments);this.YO=f.gb;this.MV=f.Er;this.region=f.region; this.userAge=f.userAge;this.b8=f.Ki;this.Uq=xr();this.sendVisitorIdHeader=f.sendVisitorIdHeader;this.z0=f.V("vss_pings_using_networkless")||f.V("kevlar_woffle");this.vy=f.V("vss_final_ping_send_and_write");this.g_=f.V("vss_use_send_and_write");this.pageId=f.pageId;this.Yx=f.V("vss_playback_use_send_and_write");f.livingRoomAppMode&&(this.livingRoomAppMode=f.livingRoomAppMode);this.VU=f.C&&f.V("embeds_append_synth_ch_headers");g.Ps(f)&&(this.nJ=f.P7);g.SA(g.kI(f))&&this.G.push(1);this.accessToken=g.bv(M); M.Zh[this.Yp]?this.C=M.Zh[this.Yp]:M.Zh.playback&&(this.C=M.Zh.playback);this.adFormat=M.adFormat;this.adQueryId=M.adQueryId;this.autoplay=gqX(M);this.j&&(this.y7=M.Wq&&FG(M)==="adunit"?!0:!1);this.autonav=M.isAutonav||this.autonav;this.contentVideoId=du(M);this.clientPlaybackNonce=M.clientPlaybackNonce;this.zt=M.XR;M.G&&(this.KJ=M.G,this.Z9=M.DH);M.mdxEnvironment&&(this.mdxEnvironment=M.mdxEnvironment);this.K=M.Yp;this.xO=M.xO;M.Z&&(this.T_=M.Z.itag,M.C&&M.C.itag!==this.T_&&(this.Qw=M.C.itag));M.K&& sU(M.K)&&(this.offlineDownloadUserChoice="1");this.eventLabel=FG(M);this.Ji=M.vy?!1:M.Uw;this.gb=M.tZ;if(f=RJ(M))this.Uw=f;this.zj=M.uO;this.partnerId=M.partnerId;this.eventId=M.eventId;this.playlistId=M.Hn||M.playlistId;this.Tq=M.Tq;this.CK=M.CK;this.T9=M.T9;this.o_=M.o_;this.subscribed=M.subscribed;this.videoId=M.videoId;this.videoMetadata=M.videoMetadata;this.visitorData=M.visitorData;this.osid=M.osid;this.AS=M.AS;this.referrer=M.referrer;this.kN=M.dl||M.kN;this.l8=M.S7;this.xt=M.xt;this.userGenderAge= M.userGenderAge;this.x8=M.x8;this.embedsRct=M.embedsRct;this.embedsRctn=M.embedsRctn;g.Ps(this.QY)&&M.mutedAutoplay&&(M.mutedAutoplayDurationMode===2&&M.limitedPlaybackDurationInSeconds===0&&M.endSeconds===0?this.G.push(7):this.G.push(2));M.isEmbedsShortsMode(new g.za(this.qX,this.SO),!!this.playlistId)&&this.G.push(3);g.AU(M)&&this.G.push(4);this.ox=M.UM;M.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=M.compositeLiveIngestionOffsetToken)}; Hjb=function(M,f){var A=M.sendVisitorIdHeader?M.visitorData:void 0;return g.v5(M.QY,M.accessToken).then(function(Q){return KQ9(M.uri,M.QY,M.pageId,A,Q,f,M.VU)})}; cvT=function(M,f){return function(){M.QY.V("html5_simplify_pings")?(M.K=M.fJ,M.N5=f(),M.Uq=0,M.send()):Hjb(M).then(function(A){var Q=mq9(M);Q.cmt=Q.len;Q.lact="0";var N=f().toFixed(3);Q.rt=Number(N).toString();Q=g.uj(M.uri,Q);M.QY.V("vss_through_gel_double")&&soz(Q);M.z0?(A==null&&(A={}),M.g_?MF().sendAndWrite(Q,A):MF().sendThenWrite(Q,A)):A?g.Ba(Q,A):g.bg(Q)})}}; mq9=function(M){var f={ns:M.MV,el:M.eventLabel,cpn:M.clientPlaybackNonce,ver:2,cmt:M.Z(M.K),fmt:M.T_,fs:M.oE?"1":"0",rt:M.Z(M.N5),adformat:M.adFormat,content_v:M.contentVideoId,euri:M.R5,lact:M.Uq,live:M.Uw,cl:(757544469).toString(),mos:M.OR,state:M.playerState,volume:M.o9};M.subscribed&&(f.subscribed="1");Object.assign(f,M.Fk);M.X==="all"?Object.assign(f,M.wq):M.X==="once"&&M.j&&Object.assign(f,M.wq);M.autoplay&&(f.autoplay="1");M.y7&&(f.sautoplay="1");M.zt&&(f.dni="1");!M.N&&M.nJ&&(f.epm=R4c[M.nJ]); M.isFinal&&(f["final"]="1");M.Ji&&(f.splay="1");M.xO&&(f.delay=M.xO);M.YO&&(f.hl=M.YO);M.region&&(f.cr=M.region);M.userGenderAge&&(f.uga=M.userGenderAge);M.userAge!==void 0&&M.b8&&(f.uga=M.b8+M.userAge);M.fJ!==void 0&&(f.len=M.Z(M.fJ));!M.N&&M.experimentIds.length>0&&(f.fexp=M.experimentIds.toString());M.W!==null&&(f.rtn=M.Z(M.W));M.kN&&(f.feature=M.kN);M.CK&&(f.ctrl=M.CK);M.T9&&(f.ytr=M.T9);M.Qw&&(f.afmt=M.Qw);M.offlineDownloadUserChoice&&(f.ODUC=M.offlineDownloadUserChoice);M.Er&&(f.lio=M.Z(M.Er)); M.N?(f.idpj=M.gb,f.ldpj=M.zj,M.delayThresholdMet&&(f.dtm="1"),M.B!=null&&(f.rti=M.Z(M.B)),M.x8&&(f.ald=M.x8),M.compositeLiveIngestionOffsetToken&&(f.clio=M.compositeLiveIngestionOffsetToken)):M.adType!==void 0&&(f.at=M.adType);M.xp&&(M.j||M.N)&&(f.size=M.xp);M.j&&M.G.length&&(f.pbstyle=M.G.join(","));M.d2!=null&&(M.j||M.N)&&(f.inview=M.Z(M.d2));M.N&&(f.volume=s6(M,g.WP(M.segments,function(Q){return Q.volume})),f.st=s6(M,g.WP(M.segments,function(Q){return Q.startTime})),f.et=s6(M,g.WP(M.segments,function(Q){return Q.endTime})), lW(M.segments,function(Q){return Q.playbackRate!==1})&&(f.rate=s6(M,g.WP(M.segments,function(Q){return Q.playbackRate}))),lW(M.segments,function(Q){return Q.K!=="-"})&&(f.als=g.WP(M.segments,function(Q){return Q.K}).join(",")),lW(M.segments,function(Q){return Q.previouslyEnded})&&(f.pe=g.WP(M.segments,function(Q){return""+ +Q.previouslyEnded}).join(","))); f.muted=s6(M,g.WP(M.segments,function(Q){return Q.muted?1:0})); lW(M.segments,function(Q){return Q.visibilityState!==0})&&(f.vis=s6(M,g.WP(M.segments,function(Q){return Q.visibilityState}))); lW(M.segments,function(Q){return Q.connectionType!==0})&&(f.conn=s6(M,g.WP(M.segments,function(Q){return Q.connectionType}))); lW(M.segments,function(Q){return Q.Z!==0})&&(f.blo=s6(M,g.WP(M.segments,function(Q){return Q.Z}))); lW(M.segments,function(Q){return!!Q.j})&&(f.blo=g.WP(M.segments,function(Q){return Q.j}).join(",")); lW(M.segments,function(Q){return!!Q.compositeLiveStatusToken})&&(f.cbs=g.WP(M.segments,function(Q){return Q.compositeLiveStatusToken}).join(",")); lW(M.segments,function(Q){return Q.C!=="-"})&&(f.cc=g.WP(M.segments,function(Q){return Q.C}).join(",")); lW(M.segments,function(Q){return Q.clipId!=="-"})&&(f.clipid=g.WP(M.segments,function(Q){return Q.clipId}).join(",")); if(lW(M.segments,function(Q){return!!Q.audioId})){var A="au"; M.j&&(A="au_d");f[A]=g.WP(M.segments,function(Q){return Q.audioId}).join(",")}va()&&M.KJ&&(f.ctt=M.KJ,f.cttype=M.Z9,f.mdx_environment=M.mdxEnvironment); M.Wy&&(f.etype=M.jk!==void 0?M.jk:0);M.l8&&(f.uoo=M.l8);M.livingRoomAppMode&&M.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(f.clram=gdb[M.livingRoomAppMode]||M.livingRoomAppMode);M.C?BNz(M,f):(f.docid=M.videoId,f.referrer=M.referrer,f.ei=M.eventId,f.of=M.AS,f.osid=M.osid,f.vm=M.videoMetadata,M.adQueryId&&(f.aqi=M.adQueryId),M.autonav&&(f.autonav="1"),M.playlistId&&(f.list=M.playlistId),M.o_&&(f.ssrt="1"),M.xt&&(f.upt=M.xt));M.j&&(M.embedsRct&&(f.rct=M.embedsRct),M.embedsRctn&&(f.rctn= M.embedsRctn),M.compositeLiveIngestionOffsetToken&&(f.clio=M.compositeLiveIngestionOffsetToken));M.ox&&(f.host_cpn=M.ox);return f}; BNz=function(M,f){if(f&&M.C){var A=new Set(["q","feature","mos"]),Q=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),N=new Set(["aqi","autonav","list","ssrt","upt"]);M.C.ns==="3pp"&&(f.ns="3pp");for(var Y=g.V(Object.keys(M.C)),I=Y.next();!I.done;I=Y.next())I=I.value,Q.has(I)||A.has(I)||N.has(I)&&!M.C[I]||(f[I]=M.C[I])}}; s6=function(M,f){return g.WP(f,M.Z).join(",")}; soz=function(M){M.indexOf("watchtime")!==-1&&g.hO("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:M}})}; ijf=function(M,f){M.attestationResponse&&Hjb(M).then(function(A){A=A||{};A.method="POST";A.postParams={atr:M.attestationResponse};M.z0?M.g_?MF().sendAndWrite(f,A):MF().sendThenWrite(f,A):g.Ba(f,A)})}; cV=function(M){g.y.call(this);this.provider=M;this.G="paused";this.N=NaN;this.W=[10,10,10,40];this.B=this.X=0;this.KJ=this.P7=this.jk=this.Er=this.j=!1;this.Z=this.C=NaN;this.logger=new g.tD("vss");this.K=new CIX(M)}; z40=function(M){if(!M.j){M.provider.videoData.Fp===16623&&g.$b(Error("Playback for EmbedPage"));var f=Ro(M,"playback");M.W=xqb(M);VGT(M.K);f.W=gN(M);M.Z>0&&(f.K-=M.Z);f.send();if(M.provider.videoData.w9){f=M.provider.QY;var A=M.provider.videoData,Q={html5:"1",video_id:A.videoId,cpn:A.clientPlaybackNonce,ei:A.eventId,ptk:A.w9,oid:A.EO,ptchn:A.fv,pltype:A.KB,content_v:du(A)};A.Nv&&Object.assign(Q,{m:A.Nv});f=g.uj(f.qY+"ptracking",Q);ZjT(M,f)}M.provider.videoData.xO||(rvT(M),uaN(M));M.j=!0;M=M.K;M.K= M.By();M.iX=g.KK(M.provider);!(M.j===0&&M.K<5)&&M.K-M.j>2&&(M.j=M.K);M.W=!0}}; xqb=function(M){var f=M.provider.videoData.tZ,A=M.provider.videoData.uO,Q=[10+f,10,10,40+A-f,40],N,Y=(N=M.provider.videoData.getPlayerResponse())==null?void 0:N.playbackTracking,I=Y==null?void 0:Y.videostatsScheduledFlushWalltimeSeconds;N=Y==null?void 0:Y.videostatsDefaultFlushIntervalSeconds;if(!(I&&I.length>0&&N))return M.logger.info("Missing valid scheduled pings config "+I+" "+N),Q;f=[I[0]+f].concat(g.c(I.slice(1).map(function(D,E){return D-I[E]})),[N+A-f, N]);return f.some(function(D){return D<0})?(M.logger.K(347111855,"Neg vss scheduled pings "+I+" "+N),Q):f}; gN=function(M,f){f=f===void 0?NaN:f;var A=g.KK(M.provider);f=isNaN(f)?A:f;f=Math.ceil(f);var Q=M.W[M.X];M.X+11E3;!(Y.length>1)&&Y[0].isEmpty()||D||(I.W=gN(M,N));I.send();M.B++}},(N-A)*1E3); return M.C=N}; BV=function(M){g.ad(M.N);M.N=NaN}; PIf=function(M){M.K.update();M=M.K;M.segments.length&&M.K===M.j||mO(M);var f=M.segments;M.segments=[];return f}; Ro=function(M,f){var A=job(M.provider);Object.assign(A,{state:M.G});f=new q6d(M.provider.videoData,M.provider.QY,f,A);f.K=M.provider.d_.By();A=M.provider.videoData.clientPlaybackNonce;f.K=M.provider.d_.L$(A);M.provider.videoData.isLivePlayback||(f.fJ=M.provider.d_.getDuration(A));M.provider.videoData.K&&(A=M.provider.videoData.K.VJ(f.K))&&(f.Er=A-f.K,M.provider.QY.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&k_(M.provider.videoData)&&(f.K+=M.provider.d_.vX(),f.Er-=M.provider.d_.vX()));f.N5=g.KK(M.provider); f.segments=[HV(M.provider)];return f}; nde=function(M,f){var A=Ro(M,"watchtime");$qN(M)&&(A.delayThresholdMet=!0,M.jk=!0);if(M.Z>0){for(var Q=g.V(f),N=Q.next();!N.done;N=Q.next())N=N.value,N.startTime-=M.Z,N.endTime-=M.Z;A.K-=M.Z}else A.K=M.K.K;A.segments=f;return A}; iI=function(M,f){var A=FOb(M,!isNaN(M.C));f&&(M.C=NaN);return A}; FOb=function(M,f){var A=nde(M,PIf(M));!isNaN(M.C)&&f&&(A.B=M.C);return A}; $qN=function(M){var f;if(f=M.provider.videoData.isLoaded()&&M.provider.videoData.xO&&M.j&&!M.jk)f=M.K,f=f.N+f.By()-f.j>=M.provider.videoData.xO;return!!f}; rvT=function(M){M.provider.videoData.youtubeRemarketingUrl&&!M.P7&&(ZjT(M,M.provider.videoData.youtubeRemarketingUrl),M.P7=!0)}; uaN=function(M){M.provider.videoData.googleRemarketingUrl&&!M.KJ&&(ZjT(M,M.provider.videoData.googleRemarketingUrl),M.KJ=!0)}; yv6=function(M){if(!M.ek()&&M.j){M.G="paused";var f=iI(M);f.isFinal=!0;f.send();M.dispose()}}; dqb=function(M,f){if(!M.ek())if(g.J(f.state,2)||g.J(f.state,512)){if(M.G="paused",g.V2(f,2)||g.V2(f,512))g.V2(f,2)&&(M.K.previouslyEnded=!0),M.j&&(BV(M),iI(M).send(),M.C=NaN)}else if(g.J(f.state,8)){M.G="playing";var A=M.j&&isNaN(M.N)?gN(M):NaN;if(!isNaN(A)&&(Ua(f,64)<0||Ua(f,512)<0)){var Q=FOb(M,!1);Q.W=A;Q.send()}g.V2(f,16)&&f.state.seekSource===58&&(M.K.previouslyEnded=!0)}else M.G="paused"}; e40=function(M,f,A){if(!M.Er){A||(A=Ro(M,"atr"));A.attestationResponse=f;try{A.send()}catch(Q){if(Q.message!=="Unknown Error")throw Q;}M.Er=!0}}; ZjT=function(M,f){var A=M.provider.QY;g.v5(M.provider.QY,g.bv(M.provider.videoData)).then(function(Q){var N=M.provider.QY.pageId,Y=M.provider.QY.sendVisitorIdHeader?M.provider.videoData.visitorData:void 0,I=M.provider.QY.V("vss_pings_using_networkless")||M.provider.QY.V("kevlar_woffle"),D=M.provider.QY.V("allow_skip_networkless");Q=KQ9(f,A,N,Y,Q);Gqe(f,Q,{token:M.provider.videoData.G,o1:M.provider.videoData.DH,mdxEnvironment:M.provider.videoData.mdxEnvironment},A,void 0,I&&!D,!1,!0)})}; bjD=function(){this.endTime=this.startTime=-1;this.C="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.Z=0;this.compositeLiveStatusToken=this.j=void 0;this.volume=this.connectionType=0;this.muted=!1;this.K=this.clipId="-";this.previouslyEnded=!1}; xd=function(M,f,A){this.videoData=M;this.QY=f;this.d_=A;this.K=void 0}; g.KK=function(M){return kPD(M)()}; kPD=function(M){if(!M.K){var f=g.Dv(function(Q){var N=(0,g.W)();Q&&N<=631152E6&&(M.d_.ZB("ytnerror",{issue:28799967,value:""+N}),N=(new Date).getTime()+2);return N},M.QY.V("html5_validate_yt_now")),A=f(); M.K=function(){return Math.round(f()-A)/1E3}; M.d_.q9()}return M.K}; job=function(M){var f=M.d_.qj()||{};f.fs=M.d_.IZ();f.volume=M.d_.getVolume();f.muted=M.d_.isMuted()?1:0;f.mos=f.muted;f.clipid=M.d_.fU();var A;f.playerheight=((A=M.d_.getPlayerSize())==null?void 0:A.height)||0;var Q;f.playerwidth=((Q=M.d_.getPlayerSize())==null?void 0:Q.width)||0;M=M.videoData;A={};M.Z&&(A.fmt=M.Z.itag,M.C&&(M.oE?M.C.itag!==M.Z.itag:M.C.itag!=M.Z.itag)&&(A.afmt=M.C.itag));A.ei=M.eventId;A.list=M.playlistId;A.cpn=M.clientPlaybackNonce;M.videoId&&(A.v=M.videoId);M.b5&&(A.infringe=1); (M.vy?0:M.Uw)&&(A.splay=1);(Q=RJ(M))&&(A.live=Q);M.Wq&&(A.sautoplay=1);M.rL&&(A.autoplay=1);M.Tq&&(A.sdetail=M.Tq);M.partnerId&&(A.partnerid=M.partnerId);M.osid&&(A.osid=M.osid);M.R2&&(A.cc=g.wHf(M.R2));return Object.assign(f,A)}; TNf=function(M){var f=s1D();if(f)return WOe[f]||WOe.other;if(g.Zs(M.QY)){M=navigator.userAgent;if(/[Ww]ireless[)]/.test(M))return 3;if(/[Ww]ired[)]/.test(M))return 30}return 0}; HV=function(M){var f=new bjD,A;f.C=((A=job(M).cc)==null?void 0:A.toString())||"-";f.playbackRate=M.d_.getPlaybackRate();A=M.d_.getVisibilityState();A!==0&&(f.visibilityState=A);M.QY.b8&&(f.Z=1);f.j=M.videoData.XA;f.compositeLiveStatusToken=M.videoData.compositeLiveStatusToken;A=M.d_.getAudioTrack();A.qV&&A.qV.id&&A.qV.id!=="und"&&(f.audioId=A.qV.id);f.connectionType=TNf(M);f.volume=M.d_.getVolume();f.muted=M.d_.isMuted();f.clipId=M.d_.fU()||"-";f.K=M.videoData.fg||"-";return f}; g.Z5=function(M,f){g.y.call(this);var A=this;this.provider=M;this.j=new Map;this.Oq=new g.v8;this.Ed={K9_:function(){return A.qoe}, gV3:function(){return A.K}, MC0:function(){return A.Z}}; this.provider.videoData.hh()&&!this.provider.videoData.Kh&&(this.K=new cV(this.provider),this.K.Z=0,g.d(this,this.K),this.qoe=new g.oo(this.provider,f),g.d(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.OJ=this.provider.videoData.clientPlaybackNonce)&&this.j.set(this.OJ,this.K));if(M.QY.playerCanaryState==="canary"||M.QY.playerCanaryState==="holdback")this.Z=new vV(this.provider),g.d(this,this.Z)}; rN=function(M){return g.KK(M.provider)}; uI=function(M){M.Z&&FQz(M.Z);M.qoe&&odX(M.qoe)}; Ojb=function(M){if(M.qoe){M=M.qoe;for(var f=M.provider.videoData,A=M.provider.QY,Q=g.V(A.oo),N=Q.next();!N.done;N=Q.next())Vo(M,N.value);if(M.provider.V("html5_enable_qoe_cat_list"))for(Q=g.V(f.u2),N=Q.next();!N.done;N=Q.next())Vo(M,N.value);else f.oo&&Vo(M,M.provider.videoData.oo);f.U$()&&(Q=f.K,Ck(f)&&Vo(M,"manifestless"),Q&&nq(Q)&&Vo(M,"live-segment-"+nq(Q).toFixed(1)));pk(f)?Vo(M,"sabr"):M.lR(aJ(f));if(Wu(f)||f.G_())f.G_()&&Vo(M,"ssa"),Vo(M,"lifa");k_(f)&&Vo(M,"cdm");f.gatewayExperimentGroup&& (Q=f.gatewayExperimentGroup,Q==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?Q="spkadtrt":Q==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(Q="spkadctrl"),Vo(M,Q));A.Er!=="yt"&&M.K.set("len",[f.lengthSeconds.toFixed(2)]);f.cotn&&!XG(f)&&M.v6(!0);A.cX()&&(f=NN0())&&M.ZB("cblt",{m:f});if(A.V("html5_log_screen_diagonal")){A=M.ZB;var Y;f=((Y=window.H5vccScreen)==null?0:Y.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;A.call(M,"cbltdiag",{v:f})}}}; XVU=function(M){M.K&&z40(M.K);if(M.Z){M=M.Z;var f=g.KK(M.provider);M.K<0&&(M.K=f,M.delay.start());M.Z=f;M.C=f}}; JvX=function(M,f){M.K&&(M=M.K,f===58?M.K.update():M.j&&(BV(M),iI(M).send(),M.C=NaN))}; KOX=function(M,f){if(g.V2(f,1024)||g.V2(f,512)||g.V2(f,4)){if(M.Z){var A=M.Z;A.Z>=0||(A.K=-1,A.delay.stop())}M.qoe&&(A=M.qoe,A.W||(A.j=-1))}if(M.provider.videoData.enableServerStitchedDai&&M.OJ){var Q;(Q=M.j.get(M.OJ))==null||dqb(Q,f)}else M.K&&dqb(M.K,f);if(M.qoe){Q=M.qoe;A=f.state;var N=g.KK(Q.provider),Y=Q.getPlayerState(A),I=A.seekSource||void 0;if(Y!==Q.Oq){Q.P7||N= 10&&Q.playTimeSecs<=180&&(Q.K.set("qoealert",["1"]),Q.Qw=!0)),Y!=="B"||Q.Oq!=="PL"&&Q.Oq!=="PB"||(Q.isBuffering=!0),Q.Z=N);Q.Oq==="PL"&&(Y==="B"||Y==="S")||Q.provider.QY.cX()?U6(Q,N):(Q.Z9||Y!=="PL"||(Q.Z9=!0,Dqf(Q,N,Q.provider.d_.lT())),I59(Q,N));Y==="PL"&&g.f5(Q.N5);var D=[Y];Y==="S"&&I&&D.push("ss."+I);g.Lj(Q,N,"vps",D);Q.Oq=Y;Q.KJ=N;Q.Z=N;Q.C=!0}Y=A.MQ;g.J(A,128)&&Y&&(Y.RP=Y.RP||"",pVe(Q,N,Y.errorCode,Y.vG,Y.RP));(g.J(A,2)||g.J(A,128))&&Q.reportStats(N);A.isPlaying()&&!Q.W&&(Q.j>=0&&Q.K.set("user_intent", [Q.j.toString()]),Q.W=!0);tGb(Q)}M.Z&&(M=M.Z,yGf(M),M.playerState=f.state,M.Z>=0&&g.V2(f,16)&&M.seekCount++,f.state.isError()&&M.send())}; GPe=function(M){M.Z&&M.Z.send();if(M.qoe){var f=M.qoe;if(f.C){f.Oq==="PL"&&(f.Oq="N");var A=g.KK(f.provider);g.Lj(f,A,"vps",[f.Oq]);f.W||(f.j>=0&&f.K.set("user_intent",[f.j.toString()]),f.W=!0);f.provider.QY.cX()&&f.ZB("finalized",{});f.z0=!0;f.reportStats(A)}}if(M.provider.videoData.enableServerStitchedDai)for(f=g.V(M.j.values()),A=f.next();!A.done;A=f.next())yv6(A.value);else M.K&&yv6(M.K);M.dispose()}; wVX=function(M,f){M.K&&e40(M.K,f)}; l5N=function(M){if(!M.K)return null;var f=Ro(M.K,"atr");return function(A){M.K&&e40(M.K,A,f)}}; M0U=function(M,f,A,Q){A.adFormat=A.VU;var N=f.d_;f=new cV(new xd(A,f.QY,{getDuration:function(){return A.lengthSeconds}, getCurrentTime:function(){return N.getCurrentTime()}, By:function(){return N.By()}, L$:function(){return N.L$()}, e_:function(){return N.e_()}, lT:function(){return N.lT()}, getPlayerSize:function(){return N.getPlayerSize()}, getAudioTrack:function(){return A.getAudioTrack()}, getPlaybackRate:function(){return N.getPlaybackRate()}, FG:function(){return N.FG()}, getVisibilityState:function(){return N.getVisibilityState()}, ZX:function(){return N.ZX()}, qj:function(){return N.qj()}, getVolume:function(){return N.getVolume()}, isMuted:function(){return N.isMuted()}, IZ:function(){return N.IZ()}, fU:function(){return N.fU()}, getProximaLatencyPreference:function(){return N.getProximaLatencyPreference()}, q9:function(){N.q9()}, ZB:function(Y,I){N.ZB(Y,I)}, Jq:function(){return N.Jq()}, vX:function(){return N.vX()}})); f.Z=Q;g.d(M,f);return f}; f7d=function(){this.Bt=0;this.j=this.E1=this.wM=this.Z=NaN;this.K={};this.bandwidthEstimate=NaN}; zP=function(M,f,A){g.y.call(this);var Q=this;this.QY=M;this.d_=f;this.Z=A;this.K=new Map;this.OJ="";this.Ed={Ou:function(){return Array.from(Q.K.keys())}}}; Ate=function(){this.K=g.Db;this.array=[]}; NJb=function(M,f,A){var Q=[];for(f=Qad(M,f);fA)break}return Q}; Y3f=function(M,f){var A=[];M=g.V(M.array);for(var Q=M.next();!Q.done&&!(Q=Q.value,Q.contains(f)&&A.push(Q),Q.start>f);Q=M.next());return A}; I79=function(M){return M.array.slice(Qad(M,0x7ffffffffffff),M.array.length)}; Qad=function(M,f){M=zC(M.array,function(A){return f-A.start||1}); return M<0?-(M+1):M}; TJz=function(M,f){var A=NaN;M=g.V(M.array);for(var Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,Q.contains(f)&&(isNaN(A)||Q.endf&&(isNaN(A)||Q.startM.mediaTime+M.N&&f1)M.C=!0;if((N===void 0?0:N)||isNaN(M.Z))M.Z=f;if(M.K)f!==M.mediaTime&&(M.K=!1);else if(f>0&&M.mediaTime===f){N=1500;if(M.QY.V("html5_buffer_underrun_transition_fix")){N=g.CE(M.QY.experiments,"html5_min_playback_advance_for_steady_state_secs");var Y=g.CE(M.QY.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");N=N>0&&Y>0&&Math.abs(f-M.Z)(Q||!M.C?N:400)}M.mediaTime=f;M.j=A;return!1}; hDU=function(M,f){this.videoData=M;this.K=f}; S3U=function(M,f,A){return f.Dm(A).then(function(){return n0(new hDU(f,f.j))},function(Q){Q instanceof Error&&g.$b(Q); var N=P$('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Y=jg('audio/mp4; codecs="mp4a.40.2"'),I=N||Y,D=f.isLivePlayback&&!g.pt(M.N,!0);Q="fmt.noneavailable";D?Q="html5.unsupportedlive":I||(Q="html5.missingapi");I=D||!I?2:1;N={buildRej:"1",a:f.m3(),d:!!f.MV,drm:f.TP(),f18:f.Wy.indexOf("itag=18")>=0,c18:N};f.K&&(f.TP()?(N.f142=!!f.K.K["142"],N.f149=!!f.K.K["149"],N.f279=!!f.K.K["279"]):(N.f133=!!f.K.K["133"],N.f140=!!f.K.K["140"],N.f242=!!f.K.K["242"]),N.cAAC=Y,N.cAVC=jg('video/mp4; codecs="avc1.42001E"'), N.cVP9=jg('video/webm; codecs="vp9"'));f.N&&(N.drmsys=f.N.keySystem,Y=0,f.N.K&&(Y=Object.keys(f.N.K).length),N.drmst=Y);return new ZZ(Q,N,I)})}; jG=function(M){this.data=window.Float32Array?new Float32Array(M):Array(M);this.Z=this.K=M-1}; L_c=function(M){return M.data[M.K]||0}; oxT=function(M){this.N=M;this.j=this.Z=0;this.C=new jG(50)}; Fa=function(M,f,A){g.pi.call(this);this.videoData=M;this.experiments=f;this.N=A;this.Z=[];this.JL=0;this.j=!0;this.C=!1;this.G=0;A=new CzX;M.latencyClass==="ULTRALOW"&&(A.G=!1);M.l8?A.j=3:g.Zt(M)&&(A.j=2);M.latencyClass==="NORMAL"&&(A.N=!0);A.Er=f.X3("html5_refactor_decouple_liveness");g.CE(f,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.CE(f,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||M.latencyClass!=="LOW"&&M.latencyClass!=="ULTRALOW"||(A.N=!0);var Q=g.CE(f, "html5_liveness_drift_proxima_override");if(aJ(M)!==0&&Q){A.K=Q;var N;((N=M.K)==null?0:TGT(N))&&A.K--}pk(M)&&f.X3("html5_sabr_parse_live_metadata_playback_boundaries")&&(A.KJ=!0);if(g.Of("trident/")||g.Of("edge/"))N=g.CE(f,"html5_platform_minimum_readahead_seconds")||3,A.C=Math.max(A.C,N);g.CE(f,"html5_minimum_readahead_seconds")&&(A.C=g.CE(f,"html5_minimum_readahead_seconds"));g.CE(f,"html5_maximum_readahead_seconds")&&(A.B=g.CE(f,"html5_maximum_readahead_seconds"));f.X3("html5_force_adaptive_readahead")&& (A.G=!0);if(N=g.CE(f,"html5_liveness_drift_chunk_override"))A.K=N;Um(M)&&(A.K=(A.K+1)/5,M.latencyClass==="LOW"&&(A.K*=2));if(M.latencyClass==="ULTRALOW"||M.latencyClass==="LOW")A.X=g.CE(f,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,A.W=g.CE(f,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=A;this.W=this.policy.j!==1;this.K=$d(this,U3b(this,isNaN(M.liveChunkReadahead)?3:M.liveChunkReadahead,M))}; V0N=function(M,f){if(f)return f=M.videoData,f=U3b(M,isNaN(f.liveChunkReadahead)?3:f.liveChunkReadahead,f),$d(M,f);if(M.Z.length){if(Math.min.apply(null,M.Z)>1)return $d(M,M.K-1);if(M.policy.G)return $d(M,M.K+1)}return M.K}; a7b=function(M,f){if(!M.Z.length)return!1;var A=M.K;M.K=V0N(M,f===void 0?!1:f);if(f=A!==M.K)M.Z=[],M.JL=0;return f}; yo=function(M,f){return f>=M.N4()-q3X(M)}; Ho6=function(M,f,A){f=yo(M,f);A||f?f&&(M.j=!0):M.j=!1;M.W=M.policy.j===2||M.policy.j===3&&M.j}; m30=function(M,f){f=yo(M,f);M.C!==f&&M.publish("livestatusshift",f);M.C=f}; q3X=function(M){var f=M.policy.K;M.C||(f=Math.max(f-1,0));return f*dN(M)}; U3b=function(M,f,A){A.l8&&f--;Um(A)&&(f=1);if(aJ(A)!==0&&(M=g.CE(M.experiments,"html5_live_chunk_readahead_proxima_override"))){f=M;var Q;((Q=A.K)==null?0:TGT(Q))&&f++}return f}; dN=function(M){return M.videoData.K?nq(M.videoData.K)||5:5}; $d=function(M,f){f=Math.max(Math.max(1,Math.ceil(M.policy.C/dN(M))),f);return Math.min(Math.min(8,Math.floor(M.policy.B/dN(M))),f)}; CzX=function(){this.C=0;this.B=Infinity;this.G=!0;this.Z=this.K=2;this.j=1;this.N=!1;this.W=10;this.KJ=!1;this.X=1;this.Er=!1}; kd=function(M){g.y.call(this);this.d_=M;this.K=0;this.Z=null;this.G=this.C=0;this.j={};this.QY=this.d_.T();this.N=new g.MY(this.Ah,1E3,this);this.w_=new eG({delayMs:g.CE(this.QY.experiments,"html5_seek_timeout_delay_ms")});this.P7=new eG({delayMs:g.CE(this.QY.experiments,"html5_long_rebuffer_threshold_ms")});this.l8=bI(this,"html5_seek_set_cmt");this.fJ=bI(this,"html5_seek_jiggle_cmt");this.ox=bI(this,"html5_seek_new_elem");this.Z9=bI(this,"html5_unreported_seek_reseek");this.KJ=bI(this,"html5_long_rebuffer_jiggle_cmt"); this.jk=new eG({delayMs:2E4});this.nJ=bI(this,"html5_seek_new_elem_shorts");this.Ji=bI(this,"html5_seek_new_media_source_shorts_reuse");this.YO=bI(this,"html5_seek_new_media_element_shorts_reuse");this.g_=bI(this,"html5_reseek_after_time_jump");this.X=bI(this,"html5_gapless_handoff_close_end_long_rebuffer");this.B=bI(this,"html5_gapless_slow_seek");this.Er=bI(this,"html5_gapless_slow_start");this.W=bI(this,"html5_ads_preroll_lock_timeout");this.b8=new eG({delayMs:g.CE(this.QY.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,E7:!this.QY.V("html5_report_slow_ads_as_error")});this.xO=new eG({delayMs:g.CE(this.QY.experiments,"html5_skip_slow_ad_delay_ms")||5E3,E7:!this.QY.V("html5_skip_slow_buffering_ad")});this.Qw=new eG({delayMs:g.CE(this.QY.experiments,"html5_slow_start_timeout_delay_ms")});this.z0=bI(this,"html5_slow_start_no_media_source");g.d(this,this.N)}; bI=function(M,f){var A=g.CE(M.QY.experiments,f+"_delay_ms");M=M.QY.V(f+"_cfl");return new eG({delayMs:A,E7:M})}; sab=function(M,f){M.K=f}; WV=function(M,f,A,Q,N,Y,I,D){f.test(A)?(M.xC(N,f,I),f.E7||Y()):(f.lz&&f.Z&&!f.C?(A=(0,g.W)(),Q?f.K||(f.K=A):f.K=0,Y=!Q&&A-f.Z>f.lz,A=f.K&&A-f.K>f.zk||Y?f.C=!0:!1):A=!1,A&&(D=Object.assign({},M.lI(f),D),D.wn=I,D.we=N,D.wsuc=Q,M.d_.ZB("workaroundReport",D),Q&&(f.reset(),M.j[N]=!1)))}; eG=function(M){var f=M===void 0?{}:M;M=f.delayMs===void 0?0:f.delayMs;var A=f.zk===void 0?1E3:f.zk;var Q=f.lz===void 0?3E4:f.lz;f=f.E7===void 0?!1:f.E7;this.K=this.Z=this.j=this.startTimestamp=0;this.C=!1;this.N=Math.ceil(M/1E3);this.zk=A;this.lz=Q;this.E7=f}; BJb=function(M){g.y.call(this);var f=this;this.d_=M;this.W=this.K=this.loader=this.mediaElement=this.playbackData=null;this.j=0;this.N=this.Er=this.C=null;this.KJ=!1;this.Qw=0;this.B=!1;this.timestampOffset=0;this.jk=!0;this.ox=0;this.Ji=this.zt=!1;this.G=0;this.l8=!1;this.P7=0;this.QY=this.d_.T();this.videoData=this.d_.getVideoData();this.policy=new ctX;this.X=new kd(this.d_);this.b8=this.nJ=this.fJ=this.Z=NaN;this.g_=new g.MY(function(){RDt(f,!1)},2E3); this.Z9=new g.MY(function(){O6(f)}); this.YO=new g.MY(function(){f.KJ=!0;gxb(f,{})}); this.xO=NaN;this.z0=new g.MY(function(){var A=f.QY.R5;A.K+=1E4/36E5;A.K-A.j>1/6&&(Ezb(A),A.j=A.K);f.z0.start()},1E4); g.d(this,this.X);g.d(this,this.g_);g.d(this,this.YO);g.d(this,this.Z9);g.d(this,this.z0)}; ZoT=function(M,f){M.playbackData=f;M.videoData.isLivePlayback&&(M.W=new oxT(function(){a:{if(M.playbackData&&M.playbackData.K.K){if(Ck(M.videoData)&&M.loader){var A=M.loader.hU.LW()||0;break a}if(M.videoData.K){A=M.videoData.K.z0;break a}}A=0}return A}),M.K=new Fa(M.videoData,M.QY.experiments,function(){return M.S$(!0)})); Xa(M.d_)?(f=ioe(M),f.Fq?(pk(M.videoData)&&M.p_(f.Fq,f.startSeconds),M.j=f.startSeconds):f.startSeconds>0&&M.seekTo(f.startSeconds,{Cd:"seektimeline_startPlayback",seekSource:15}),M.jk=!1):x3z(M)||(M.j=M.j||M.videoData.startSeconds||0)}; uge=function(M,f){(M.loader=f)?rtN(M,!0):Jv(M)}; zDX=function(M,f){g.f5(M.X.N);M.V("html5_exponential_memory_for_sticky")&&(f.state.isPlaying()?g.f5(M.z0):M.z0.stop());if(M.mediaElement)if(f.oldState.state===8&&Uj(f.state)&&f.state.isBuffering()){f=M.mediaElement.getCurrentTime();var A=M.mediaElement.a9();var Q=M.V("manifestless_post_live_ufph")||M.V("manifestless_post_live")?hE(A,Math.max(f-3.5,0)):hE(A,f-3.5);Q>=0&&f>A.end(Q)-1.1&&Q+10?(Kj(M.d_,M.getCurrentTime()+M.videoData.limitedPlaybackDurationInSeconds),M.Ji=!0):M.videoData.isLivePlayback&&M.videoData.endSeconds>0&&(Kj(M.d_,M.getCurrentTime()+M.videoData.endSeconds),M.Ji=!0))}; nxc=function(M,f){var A=M.getCurrentTime(),Q=M.isAtLiveHead(A);if(M.W&&Q){var N=M.W;if(N.K&&!(A>=N.Z&&A50&&N.Z.shift())),N=M.K,Ho6(N,A,f===void 0?!0:f),m30(N,A),f&&RDt(M,!0));Q!==M.zt&&(f=M.getCurrentTime()-M.b8<=500,A=M.Qw>=1E3,f||A||(f=M.d_.O$(),f.qoe&&(f=f.qoe,A=g.KK(f.provider), g.Lj(f,A,"lh",[Q?"1":"0"])),M.zt=Q,M.Qw++,M.b8=M.getCurrentTime()))}; RDt=function(M,f){if(M.K){var A=M.K;var Q=M.getCurrentTime(),N=A.N4();var Y=A.policy.Z;A.C||(Y=Math.max(Y-1,0));Y*=dN(A);Q>=N-Y||!A.uX()?A=Q0&&TE(M.mediaElement)>0&&(M.Z=GP(M,M.Z,!1)),!M.mediaElement||!eDz(M))M.Z9.start(750);else if(!isNaN(M.Z)&&isFinite(M.Z)){var f=M.nJ-(M.Z-M.timestampOffset);if(!(f===0||Math.abs(f)<.005))if(f=M.mediaElement.getCurrentTime()-M.Z,Math.abs(f)<=M.ox||Math.abs(f)<.005)boT(M);else{if(M.videoData.tU)M.videoData.tU=!1;else if(!oJ(M.videoData)&&M.Z>=M.S$()-.1){M.Z=M.S$();M.C.resolve(M.S$()); M.d_.JF();return}try{var A=M.Z-M.timestampOffset;M.mediaElement.seekTo(A);M.X.K=A;M.nJ=A;M.j=M.Z;M.B=!1}catch(Q){}}}}; eDz=function(M){if(!M.mediaElement||M.mediaElement.uS()===0||M.mediaElement.hasError())return!1;var f=M.mediaElement.getCurrentTime()>0;if(!(M.videoData.j&&M.videoData.j.K||M.videoData.isLivePlayback)&&M.videoData.TP())return f;if(M.Z>=0){var A=M.mediaElement.Rf();if(A.length||!f)return Sr(A,M.Z-M.timestampOffset)}return f}; boT=function(M){M.C&&(M.C.resolve(M.mediaElement.getCurrentTime()),M.X.Z=null)}; ytT=function(M,f){M.N&&(M.N.resolve(f),M.d_.Rc(),M.QY.cX()||d3t(M))&&(f=M.lI(),f["native"]=""+ +M.B,f.otgt=""+(M.Z+M.timestampOffset),M.d_.ZB("seekEnd",f));Jv(M)}; Jv=function(M){M.Z=NaN;M.nJ=NaN;M.C=null;M.Er=null;M.N=null;M.KJ=!1;M.B=!1;M.ox=0;M.g_.stop();M.YO.stop()}; W_f=function(M,f){var A=M.mediaElement,Q=f.type;switch(Q){case "seeking":var N=A.getCurrentTime()+M.timestampOffset;if(!M.C||M.B&&N!==M.Z){M.C=new Yl;M.C.then(function(I){ytT(M,I)},function(){Jv(M)}); if(M.videoData.isAd()){var Y;NQb({adCpn:M.videoData.clientPlaybackNonce,contentCpn:(Y=M.videoData.UM)!=null?Y:""},f.K)}M.nJ=N;sab(M.X,A.getCurrentTime());M.seekTo(N,{seekSource:104,Cd:"seektimeline_mediaElementEvent"});M.B=!0}break;case "seeked":boT(M);break;case "loadedmetadata":Xa(M.d_)||knD(M);O6(M);break;case "progress":O6(M);break;case "pause":M.G=M.getCurrentTime()}M.G&&((Q==="play"||Q==="playing"||Q==="timeupdate"||Q==="progress")&&M.getCurrentTime()-M.G>10&&(M.V("html5_enable_new_media_element_puase_jump")? (M.d_.xC(new ZZ("qoe.restart",{reason:"pauseJump"})),M.d_.bM(),M.seekTo(M.G,{Cd:"pauseJumpNewElement"})):M.seekTo(M.G,{Cd:"pauseJump"})),Q!=="pause"&&Q!=="play"&&Q!=="playing"&&Q!=="progress"&&(M.G=0))}; Oof=function(M){return(ru(M.videoData)||!!M.videoData.liveUtcStartSeconds)&&(!!M.videoData.liveUtcStartSeconds||x3z(M))&&!!M.videoData.K}; x3z=function(M){return!!M.videoData.startSeconds&&isFinite(M.videoData.startSeconds)&&M.videoData.startSeconds>1E9}; ioe=function(M){var f=0,A=NaN,Q="";if(!M.jk)return{startSeconds:f,Fq:A,source:Q};M.videoData.Er?f=M.videoData.jk:oJ(M.videoData)&&(f=Infinity);if(g.Zt(M.videoData))return{startSeconds:f,Fq:A,source:Q};M.videoData.startSeconds?(Q="ss",f=M.videoData.startSeconds):M.videoData.T_&&(Q="stss",f=M.videoData.T_);M.videoData.liveUtcStartSeconds&&(A=M.videoData.liveUtcStartSeconds);if(isFinite(f)&&(f>M.S$()||f M.S$()||A 0?(Q.onesie="0",M.handleError(new ZZ("html5.missingapi",Q)),!1):!0}; A4d=function(M){var f=eu();be(f,M);return g.D$(f,iEf())}; l7D=function(M,f){var A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m,R,u,z,e,G,X,Qt,Y9,Mc,E0;return g.n(function(w){if(w.Z==1)return f.fetchType="onesie",A=k7D(f,M.getPlayerSize(),M.getVisibilityState()),Q=new VJ(M,A),g.r(w,Q.fetch(),2);N=w.K;Y={player_response:N};f.loading=!1;I=M.fd.ub;if(Q.zb){D=g.V(Q.zb.entries());for(E=D.next();!E.done;E=D.next())t=E.value,v=g.V(t),p=v.next().value,h=v.next().value,S=p,L=h,I.K.set(S,L,180),S===f.videoId&&(a=L.c8(),f.cM=a);I.Pb=Q}q=g.V(Q.aW.entries());for(m=q.next();!m.done;m= q.next())R=m.value,u=g.V(R),z=u.next().value,e=u.next().value,G=z,X=e,I.Z.set(G,X,180);g.M5(f,Y,!0);if(f.loading||wq(f))return w.return(Promise.resolve());I.K.removeAll();I.Z.removeAll();f.cM=[];Qt={};Y9="onesie.response";Mc=0;f.errorCode?(Y9="auth",Qt.ec=f.errorCode,Qt.ed=f.errorDetail,Qt.es=f.cN||"",Mc=2):(Qt.successButUnplayable="1",Qt.disposed=""+ +f.ek(),Qt.afmts=""+ +/adaptiveFormats/.test(N),Qt.cpn=f.clientPlaybackNonce);E0=new ZZ(Y9,Qt,Mc);return w.return(Promise.reject(E0))})}; Gn0=function(M,f){var A,Q,N,Y,I,D,E,t,v,p,h;return g.n(function(S){switch(S.Z){case 1:A=f.isAd(),Q=!A,N=A?1:3,Y=0;case 2:if(!(Y0)){S.CJ(5);break}return g.r(S,yX(5E3),6);case 6:I=new g.GX("Retrying OnePlatform request",{attempt:Y}),g.$b(I);case 5:return g.HX(S,7),g.r(S,QWe(M,f),9);case 9:return S.return();case 7:D=g.id(S);E=uT(D);t=E.errorCode;v=M.T();p=v.V("html5_use_network_error_code_enums")?401:"401";Q&&t==="manifest.net.badstatus"&&E.details.rc===p&&(Q=!1,Y===N-1&&(N+= 1));if(Y===N-1)return h=NTb(A,E.details),h.details.backend="op",h.details.originec=t,S.return(Promise.reject(h));if(t==="auth"||t==="manifest.net.retryexhausted")return S.return(Promise.reject(E));M.handleError(E);if(rw(E.severity)){S.CJ(4);break}case 3:Y++;S.CJ(2);break;case 4:return S.return(Promise.reject(NTb(A,{backend:"op"})))}})}; QWe=function(M,f){function A(Y9){Y9.readyState===2&&M.M5("ps_c")} var Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m,R,u,z,e,G,X,Qt;return g.n(function(Y9){switch(Y9.Z){case 1:f.fetchType="gp";Q=M.T();N=g.v5(Q,g.bv(f));if(!N.K){Y=N.getValue();Y9.CJ(2);break}return g.r(Y9,N.K,3);case 3:Y=Y9.K;case 2:return I=Y,D=A4d(I),E=k7D(f,M.getPlayerSize(),M.getVisibilityState()),t=g.NO(YMd),v=g.bv(f),p=(0,g.W)(),h=!1,S="empty",L=0,M.M5("psns"),a={Yi:A},g.r(Y9,g.GK(D,E,t,void 0,a),4);case 4:q=Y9.K;M.M5("psnr");if(f.ek())return Y9.return();q?"error"in q&&q.error?(h=!0,S="esf:"+q.error.message, L=q.error.code):q.errorMetadata&&(h=!0,S="its",L=q.errorMetadata.status):h=!0;if(h)return m=0,R=((0,g.W)()-p).toFixed(),u={},u=Q.V("html5_use_network_error_code_enums")?{backend:"op",rc:L,rt:R,reason:S,has_kpt:f.d2?"1":"0",has_mdx_env:f.mdxEnvironment?"1":"0",has_omit_key_flag:g.GR("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Q.pageId?"1":"0",has_token:v?"1":"0",has_vvt:f.P7?"1":"0",is_mdx:f.isMdxPlayback?"1":"0",mdx_ctrl:f.CK||"",token_eq:v===g.bv(f)?"1":"0"}:{backend:"op", rc:""+L,rt:R,reason:S,has_kpt:f.d2?"1":"0",has_mdx_env:f.mdxEnvironment?"1":"0",has_omit_key_flag:g.GR("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Q.pageId?"1":"0",has_token:v?"1":"0",has_vvt:f.P7?"1":"0",is_mdx:f.isMdxPlayback?"1":"0",mdx_ctrl:f.CK||"",token_eq:v===g.bv(f)?"1":"0"},z="manifest.net.connect",L===429?(z="auth",m=2):L>200&&(z="manifest.net.badstatus",L===400&&(m=2)),Y9.return(Promise.reject(new ZZ(z,u,m)));f.loading=!1;g.M5(f,{raw_player_response:q},!0); e=q;g.dt(f.T())&&e&&e.trackingParams&&dp(e.trackingParams);if(f.errorCode)return G={ec:f.errorCode,ed:f.errorDetail,es:f.cN||""},Y9.return(Promise.reject(new ZZ("auth",G,2)));if(!f.loading&&!wq(f))return X=f.isAd()?"auth":"manifest.net.retryexhausted",Qt=f.isAd()?2:1,Y9.return(Promise.reject(new ZZ(X,{successButUnplayable:"1",hasMedia:g.Bu(f)?"1":"0"},Qt)));g.qc(Y9)}})}; K_9=function(M,f,A){function Q(L){L=uT(L);if(rw(L.severity))return Promise.reject(L);M.handleError(L);return!1} function N(){return!0} var Y,I,D,E,t,v,p,h,S;return g.n(function(L){switch(L.Z){case 1:var a=M.T();M.getPlayerSize();M.getVisibilityState();M.isFullscreen();if(f.partnerId===38&&a.playerStyle==="books")a=f.videoId.indexOf(":"),a=g.uj("//play.google.com/books/volumes/"+f.videoId.slice(0,a)+"/content/media",{aid:f.videoId.slice(a+1),sig:f.MJ});else if(f.partnerId===30&&a.playerStyle==="docs")a=g.uj("https://docs.google.com/get_video_info",{docid:f.videoId,authuser:f.JG,authkey:f.ZZ,eurl:a.d2});else if(f.partnerId===33&&a.playerStyle=== "google-live")a=g.uj("//google-liveplayer.appspot.com/get_video_info",{key:f.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+a.Er);Y=a;D=(I=f.isAd())?1:3;E=0;case 2:if(!(E0)){L.CJ(5);break}return g.r(L,yX(5E3),6);case 6:v={playerretry:E,playerretrysrc:A},I||(v.recover="embedded"),t=Ef(Y,v);case 5:return g.r(L,IAT(f,t).then(N,Q),7);case 7:if(p=L.K)return L.return();E++;L.CJ(2);break;case 4:h=I?"auth":"manifest.net.retryexhausted";S=I?2:1;if(!I&&Math.random()< 1E-4)try{g.$b(new g.GX("b/152131571",btoa(Y)))}catch(q){}return L.return(Promise.reject(new ZZ(h,{backend:"gvi"},S)))}})}; IAT=function(M,f){function A(q){return Q(q.xhr)} function Q(q){if(!M.ek()){q=q?q.status:-1;var m=0,R=((0,g.W)()-v).toFixed();R=N.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:q,rt:R}:{backend:"gvi",rc:""+q,rt:R};var u="manifest.net.connect";q===429?(u="auth",m=2):q>200&&(u="manifest.net.badstatus",q===400&&(m=2));return Promise.reject(new ZZ(u,R,m))}} var N,Y,I,D,E,t,v,p,h,S,L,a;return g.n(function(q){if(q.Z==1){M.fetchType="gvi";N=M.T();var m={};M.BI&&(m.ytrext=M.BI);(D=g.MV(m)?void 0:m)?(Y={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:D},I=Ef(f,{action_display_post:1})):(Y={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},I=f);E={};N.sendVisitorIdHeader&&M.visitorData&&(E["X-Goog-Visitor-Id"]=M.visitorData);(t=EH(N.experiments,"debug_sherlog_username"))&&(E["X-Youtube-Sherlog-Username"]=t);Object.keys(E).length> 0&&(Y.headers=E);v=(0,g.W)();return g.r(q,Hx(ry,I,Y).then(void 0,A),2)}p=q.K;if(!p||!p.responseText)return q.return(Q(p));M.loading=!1;h=Yy(p.responseText);g.M5(M,h,!0);if(M.errorCode)return S={ec:M.errorCode,ed:M.errorDetail,es:M.cN||""},q.return(Promise.reject(new ZZ("auth",S,2)));if(!M.loading&&!wq(M))return L=M.isAd()?"auth":"manifest.net.retryexhausted",a=M.isAd()?2:1,q.return(Promise.reject(new ZZ(L,{successButUnplayable:"1"},a)));g.qc(q)})}; NTb=function(M,f){return new ZZ(M?"auth":"manifest.net.retryexhausted",f,M?2:1)}; At=function(M,f,A){A=A===void 0?!1:A;var Q,N,Y,I;g.n(function(D){if(D.Z==1){Q=M.T();if(A&&(!g.Ys(Q)||FG(f)!=="embedded")||f.jN||FG(f)!=="adunit"&&(g.Zs(Q)||Ja(Q)||g.dA(Q)||g.eX(Q)||g.TG(Q)==="WEB_CREATOR"))return D.return();N=g.v5(Q,g.bv(f));return N.K?g.r(D,N.K,3):(Y=N.getValue(),D.CJ(2))}D.Z!=2&&(Y=D.K);I=Y;return D.return(TTD(M,f,I))})}; TTD=function(M,f,A){var Q,N,Y,I,D;return g.n(function(E){if(E.Z==1){g.HX(E,2);Q=A4d(A);var t=f.T();g.kJ();var v={context:g.YX(f),videoId:f.videoId,racyCheckOk:f.racyCheckOk,contentCheckOk:f.contentCheckOk,autonavState:"STATE_NONE"};FG(f)==="adunit"&&(v.isAdPlayback=!0);t.embedConfig&&(v.serializedThirdPartyEmbedConfig=t.embedConfig);t.K6&&(v.showContentOwnerOnly=!0);f.kc&&(v.showShortsOnly=!0);g.WD(0,141)&&(v.autonavState=g.WD(0,140)?"STATE_OFF":"STATE_ON");if(g.Q5(t)){var p=g.WD(0,65);p=p!=null? !p:!1;var h=!!g.$J("yt-player-sticky-caption");v.captionsRequested=p&&h}var S;if(t=(S=t.getWebPlayerContextConfig())==null?void 0:S.encryptedHostFlags)v.playbackContext={encryptedHostFlags:t};N=v;Y=g.NO(DPU);M.M5("wn_s");return g.r(E,g.GK(Q,N,Y),4)}if(E.Z!=2)return I=E.K,M.M5("wn_r"),!I||"error"in I&&I.error||(D=I,g.dt(f.T())&&D.trackingParams&&dp(D.trackingParams),g.M5(f,{raw_watch_next_response:I},!1)),g.Rf(E,0);g.id(E);g.qc(E)})}; EiX=function(M){M.M5("vir");M.M5("ps_s");Xx("vir",void 0,"video_to_ad");var f=fAb(M);f.then(function(){M.M5("virc");Xx("virc",void 0,"video_to_ad");M.M5("ps_r");Xx("ps_r",void 0,"video_to_ad")},function(){M.M5("virc"); Xx("virc",void 0,"video_to_ad")}); return f}; g.Yx=function(M,f,A,Q,N,Y,I,D,E,t){E=E===void 0?new g.G9(M):E;t=t===void 0?!0:t;g.pi.call(this);var v=this;this.QY=M;this.playerType=f;this.pk=A;this.Of=Q;this.getVisibilityState=Y;this.visibility=I;this.fd=D;this.videoData=E;this.e0=t;this.logger=new g.tD("VideoPlayer");this.Fn=null;this.rY=new Io;this.eh=null;this.Ms=!0;this.VY=this.loader=null;this.yr=[];this.j1=new fo;this.hX=this.g8=null;this.iK=new fo;this.fC=null;this.aU=this.by=!1;this.UE=NaN;this.WS=!1;this.playerState=new g.v8;this.e3=[]; this.lG=new g.yK;this.ph=new Ett(this);this.mediaElement=null;this.KT=new g.MY(this.eR7,15E3,this);this.wG=this.qP=!1;this.MZ=NaN;this.Lg=!1;this.jj=0;this.tS=!1;this.FZ=NaN;this.AE=new wN(new Map([["bufferhealth",function(){return Pz6(v.Ad)}], ["bandwidth",function(){return v.X1()}], ["networkactivity",function(){return v.QY.schedule.jk}], ["livelatency",function(){return v.isAtLiveHead()&&v.isPlaying()?t3f(v):NaN}], ["rawlivelatency",function(){return t3f(v)}]])); this.n5=0;this.loop=!1;this.playbackRate=1;this.qf=0;this.Ad=new BJb(this);this.OT=!1;this.gS=[];this.eS=this.vS=0;this.NF=this.DP=!1;this.E1=this.wM=0;this.D1=new g.MY(this.vr,0,this);this.Od=null;this.cik=[this.lG,this.D1,this.KT,this.AE];this.r$=this.qL=null;this.Zy=function(){var p=v.O$();p.provider.QY.Wy||p.provider.d_.getVisibilityState()===3||(p.provider.QY.Wy=!0);p.kd();if(p.Z){var h=p.Z;h.N&&h.K<0&&h.provider.d_.getVisibilityState()!==3&&FQz(h)}p.qoe&&(p=p.qoe,p.Ji&&p.j<0&&p.provider.QY.Wy&& odX(p),p.C&&U6(p));v.loader&&Qu(v);v.QY.eC&&!v.videoData.backgroundable&&v.mediaElement&&!v.Dy()&&(v.isBackground()&&v.mediaElement.Pc()?(v.ZB("bgmobile",{suspend:1}),v.Xi(!0,!0)):v.isBackground()||N3(v)&&v.ZB("bgmobile",{resume:1}))}; this.Ed={SC:function(p){v.SC(p)}, M10:function(p){v.Fn=p}, bFY:function(){return v.t2}, t7:function(){return v.uR}, ev:function(){return v.VY}, A8k:function(){return v.Hd}, ft7:function(){return v.C0}, uAJ:function(){}, T:function(){return v.QY}, j$:function(){return v.mediaElement}, kFr:function(p){v.gm(p)}, zD7:function(){return v.Of}}; this.logger.debug(function(){return"creating, type "+f}); this.OQ=new pzT(this.QY);this.TQ=new D5(this.QY,this.Of,this);this.W2=new g.PV(this,function(p,h){p!==g.EW("endcr")||g.J(v.playerState,32)||v.JF();N(p,h,v.playerType)}); g.d(this,this.W2);g.d(this,this.Ad);viD(this,E);this.videoData.subscribe("dataupdated",this.yhi,this);this.videoData.subscribe("dataloaded",this.VI,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ZB,this);this.videoData.subscribe("ctmpstr",this.Z4,this);this.C4();TFD(this.Zy);this.visibility.subscribe("visibilitystatechange",this.Zy);this.Hd=new g.MY(this.E8,g.CE(this.QY.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.C0= new g.MY(this.E8,g.CE(this.QY.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.uC=new g.NY(this.cd8,350,this);g.d(this,this.uC)}; viD=function(M,f){if(M.playerType===2||M.QY.rR)f.J9=!0;var A=Aeb(f.VU,f.LM,M.QY.C,M.QY.X);A&&(f.adFormat=A);M.playerType===2&&(f.rL=!0);if(M.isFullscreen()||M.QY.C)A=g.$J("yt-player-autonavstate"),f.autonavState=A||(M.QY.C?2:M.videoData.autonavState);f.endSeconds&&f.endSeconds>f.startSeconds&&Kj(M,f.endSeconds)}; pt9=function(M){GPe(M.t2);g.hW(M.t2);if(M.uR){for(var f=M.uR,A=g.V(f.K.values()),Q=A.next();!Q.done;Q=A.next())GPe(Q.value);f.K.clear();g.hW(M.uR)}}; h8e=function(M){var f=M.videoData;EiX(M).then(void 0,function(A){M.videoData!==f||f.ek()||(A=uT(A),A.errorCode==="auth"&&M.videoData.errorDetail?M.Cx(A.errorCode,2,unescape(M.videoData.errorReason),x8(A.details),M.videoData.errorDetail,M.videoData.cN||void 0):M.handleError(A))})}; oid=function(M){if(!g.J(M.playerState,128))if(M.videoData.isLoaded(),M.logger.debug("finished loading playback data"),M.yr=g.sB(M.videoData.KJ),g.Bu(M.videoData)){M.pk.tick("bpd_s");Ia(M).then(function(){M.pk.tick("bpd_c");if(!M.ek()){M.by&&(M.Q7(SV(SV(M.playerState,512),1)),N3(M));var Q=M.videoData;Q.endSeconds&&Q.endSeconds>Q.startSeconds&&Kj(M,Q.endSeconds);M.j1.finished=!0;Tn(M,"dataloaded");M.iK.DF()&&SM6(M);$wt(M.TQ,M.hX)}}); M.V("html5_log_media_perf_info")&&M.ZB("loudness",{v:M.videoData.R5.toFixed(3)},!0);var f,A=(f=M.mediaElement)==null?void 0:f.iI();if(A&&"disablePictureInPicture"in A&&M.QY.QS)try{A.disablePictureInPicture=M.QY.QK&&!M.videoData.backgroundable}catch(Q){g.$b(Q)}Lqf(M)}else Tn(M,"dataloaded")}; Ia=function(M){D7(M);M.hX=null;var f=S3U(M.QY,M.videoData,M.Dy());M.g8=f;M.g8.then(function(A){CfU(M,A)},function(A){M.ek()||(A=uT(A),M.visibility.isBackground()?(E3(M,"vp_none_avail"),M.g8=null,M.j1.reset()):(M.j1.finished=!0,M.Cx(A.errorCode,A.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",x8(A.details))))}); return f}; CfU=function(M,f){if(!M.ek()&&!f.videoData.ek()){M.logger.debug("finished building playback data");M.hX=f;ZoT(M.Ad,M.hX);if(M.videoData.isLivePlayback){var A=UPX(M.fd.ub,M.videoData.videoId)||M.loader&&!isNaN(M.loader.jk);A=M.V("html5_onesie_live")&&A;Xa(M)||M.videoData.Qw>0&&!Ck(M.videoData)||A||M.seekTo(M.S$(),{Cd:"videoplayer_playbackData",seekSource:18})}if(M.videoData.j.K){if(rqX(M.videoData)){M.V("html5_sabr_report_missing_url_as_error_terminal")?M.Cx("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", x8({missabrurl:1})):M.handleError(new ZZ("fmt.missing",{missabrurl:"1"},2));return}M.loader?g.$b(Error("Duplicated Loader")):(A=g.CE(M.QY.experiments,"html5_onesie_defer_content_loader_ms"))&&M.b2()&&UPX(M.fd.ub,M.videoData.Rb)?g.Uf(function(){M.ek()||M.loader||V3t(M)},A):V3t(M)}else!M.videoData.j.K&&XG(M.videoData)&&M.L7(new h7(M.videoData.videoId||"",4)); M.LF();ZKX(f).then(function(){var Q={};M.Um(Q);M.QY.cX()&&M.V("html5_log_media_perf_info")&&M.ZB("av1Info",Q);Qu(M)})}}; SM6=function(M){M.ek();M.logger.debug("try finish readying playback");if(M.iK.finished)M.logger.debug("already finished readying");else if(M.j1.finished)if(g.J(M.playerState,128))M.logger.debug("cannot finish readying because of error");else if(M.yr.length)M.logger.debug(function(){return"cannot finish readying because of pending preroll: "+M.yr}); else if(M.W2.started||Exb(M.W2),M.Rk())M.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{M.loader&&(M.aU=jFe(M.loader.timing));M.iK.finished||(M.iK.finished=!0);var f=M.V("html5_onesie_live")&&M.loader&&!isNaN(M.loader.jk);!M.videoData.isLivePlayback||M.videoData.Qw>0&&!Ck(M.videoData)||f||Xa(M)||(M.logger.debug("seek to head for live"),M.seekTo(Infinity,{Cd:"videoplayer_readying",seekSource:18}),M.isBackground()&&(M.wG=!0));Ojb(M.O$());M.logger.debug("finished readying playback"); M.publish("playbackready");W9("pl_c",M.pk.timerName)||(M.pk.tick("pl_c"),Xx("pl_c",void 0,"video_to_ad"));W9("pbr",M.pk.timerName)||(M.pk.tick("pbr"),Xx("pbr",void 0,"video_to_ad"))}else M.logger.debug("playback data not loaded")}; Kj=function(M,f){M.eh&&aA0(M);M.eh=new g.T1(f*1E3,0x7ffffffffffff);M.eh.namespace="endcr";M.addCueRange(M.eh)}; aA0=function(M){M.removeCueRange(M.eh);M.eh=null}; qMe=function(M,f,A,Q,N){var Y=M.O$(N),I=M.videoData;I.Z=A;var D=g.tt(M);A=new qFc(I,A,f,D?D.itag:"",Q);M.QY.experiments.X3("html5_refactor_sabr_video_format_selection_logging")?(A.videoId=N,M.r$=A):Y.qoe&&YXe(Y.qoe,A);N=M.TQ;N.Z=0;N.K=0;M.publish("internalvideoformatchange",I,f==="m")}; g.tt=function(M){var f=vz(M);return UU(f)||!M.hX?null:g.oR(M.hX.K.videoInfos,function(A){return f.C(A)})}; vz=function(M){if(M.hX){var f=M.TQ;var A=M.hX;M=M.A6();var Q=s7D(f);if(UU(Q)){if(Q=HKb(f,A).compose(BFb(f,A)).compose(xw9(f,A)).compose(nt9(f,A.videoData)).compose(j7t(f,A.videoData,A)).compose(tv(f,A)).compose(Rwc(f,A)),UU(M)||f.V("html5_apply_pbr_cap_for_drm"))Q=Q.compose(gtt(f,A))}else f.V("html5_perf_cap_override_sticky")&&(Q=Q.compose(tv(f,A))),f.V("html5_ustreamer_cap_override_sticky")&&(Q=Q.compose(gtt(f,A)));Q=Q.compose(Rwc(f,A));f=A.videoData.CM.compose(Q).compose(A.videoData.RV).compose(M)}else f= KF;return f}; Jdz=function(M){var f=M.TQ;M=M.videoData;var A=nt9(f,M);f.V("html5_disable_client_autonav_cap_for_onesie")||A.compose(j7t(f,M));return A}; Qu=function(M){if(M.videoData.j&&M.videoData.j.K){var f=vz(M);M.loader&&zBb(M.loader,f)}}; HVd=function(M){var f;return!!(M.V("html5_native_audio_track_switching")&&g.mH&&((f=M.videoData.Z)==null?0:NC(f)))}; mP9=function(M){if(!HVd(M))return!1;var f;M=(f=M.mediaElement)==null?void 0:f.audioTracks();return!!(M&&M.length>1)}; c4N=function(M){var f=sWz(M);if(f)return Om9(M.videoData.getAvailableAudioTracks().find(function(A){return A.qV.getName()===f}))}; sWz=function(M){var f;if(M=(f=M.mediaElement)==null?void 0:f.audioTracks())for(f=0;f0&&(f.o9=Q.h5));f.wL=Q.D_;f.nK=Wx(A,{},Q.j||void 0,vu(Q));f.w_=tg(Q)&&g.dA(A);pk(Q)&&(f.T_=!0,A.V("html5_sabr_report_partial_segment_estimated_duration")&&(f.Mv=!0),f.K=!0,f.k8=A.V("html5_sabr_enable_live_clock_offset"), f.kN=A.V("html5_disable_client_resume_policy_for_sabr"),f.u$=A.V("html5_trigger_loader_when_idle_network"),f.mq=A.V("html5_sabr_parse_live_metadata_playback_boundaries"),f.oO=A.V("html5_enable_platform_backpressure_with_sabr"),f.tY=A.V("html5_consume_onesie_next_request_policy_for_sabr"),f.Jn=A.V("html5_sabr_report_next_ad_break_time"),f.h5=A.V("html5_log_high_res_buffer_timeline")&&A.cX(),f.Yt=A.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),f.Ch=A.V("html5_gapless_sabr_btl_last_slice")&& Em(Q),f.xt=A.V("html5_reset_last_appended_slice_on_seek")&&Em(Q),Ck(Q)?(f.w9=!0,f.nQ=A.V("html5_estimate_partial_segment_duration"),f.jQ=A.V("html5_disable_variability_tracker_for_live"),f.Ji=A.V("html5_sabr_use_accurate_slice_info_params"),A.V("html5_simplified_backup_timeout_sabr_live")&&(f.QK=!0,f.Wy=f.XA)):f.oE=A.V("html5_probe_request_on_sabr_request_progress"),f.Vu=A.V("html5_serve_start_seconds_seek_for_post_live_sabr"),f.gb=A.V("html5_flush_index_on_updated_timestamp_offset"),f.B=pk(Q),f.zj= A.V("html5_ignore_partial_segment_from_live_readahead"),A.V("html5_include_partial_segment_for_jumbo_ll")&&Um(Q)&&(f.zj=!1),f.uO=A.V("html5_use_buffer_health_for_readahead"),f.k0=A.V("html5_use_non_active_broadcast_for_post_live"),f.z0=A.V("html5_use_centralized_player_time"),f.mw=A.V("html5_consume_onesie_sabr_seek"),f.KJ=A.V("html5_enable_sabr_seek_loader_refactor"),f.tZ=A.V("html5_update_segment_start_time_from_media_header"),Q.enableServerStitchedDai&&(f.j=!0,f.Fw=A.V("html5_reset_server_stitch_state_for_non_sabr_seek"), f.vt=A.V("html5_remove_ssdai_append_pause")&&!Q.G_(),f.qX=A.V("html5_ssdai_log_ssevt_in_loader")),f.Hq=A.cX()||Q.G_());f.N=f.K&&A.V("html5_sabr_live");f.N5=g.xbt(Q);rY(A.N,uo.BITRATE)&&(f.DB=NaN);if(D=g.CE(A.experiments,"html5_request_size_max_kb"))f.nJ=D*1024;A.N.j?f.h$="; "+uo.EXPERIMENTAL.name+"=allowed":A.V("html5_enable_cobalt_tunnel_mode")&&(f.h$="; tunnelmode=true");D=Q.serverPlaybackStartConfig;(D==null?0:D.enable)&&(D==null?0:D.playbackStartPolicy)&&(f.oo=!0,kn(f,D.playbackStartPolicy,2)); D=R8f(M);M.rY.removeAll();a:{A=M.fd.ub;if(Q=M.videoData.videoId)if(N=A.K.get(Q)){A.K.remove(Q);A=N;break a}A=void 0}M.loader=new g.XB(M,M.QY.schedule,f,M.videoData.K,M.videoData.j,vz(M),D,M.videoData.enableServerStitchedDai,A,M.videoData.B);f=M.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&M.videoData.isLivePlayback&&M.b2()?!0:M.by&&g.Zs(M.QY)&&M.videoData.isLivePlayback;M.loader.initialize(M.getCurrentTime(),vz(M),f);M.videoData.probeUrl&&(M.loader.Ji=M.videoData.probeUrl);if(M.yr.length|| M.by)M.videoData.cotn||po(M,!1);uge(M.Ad,M.loader);M.Od&&(Ql0(M.loader,new g.Gq(M.Od)),M.ZB("sdai",{sdl:1}));g.Ge(M.videoData)&&(M=M.loader,M.policy.lr=M.policy.fg)}; D7=function(M){M.loader&&(M.loader.dispose(),M.loader=null,uge(M.Ad,null));M.PU()?gib(M):M.G8()}; gib=function(M){if(M.VY)if(M.logger.debug("release media source"),M.If(),M.VY.N)try{M.QY.cX()&&M.ZB("rms",{l:"vprms",sr:M.PU(),rs:Q_(M.VY)});M.VY.clear();var f;(f=M.mediaElement)!=null&&(f.Z=M.VY);M.VY=null}catch(A){f=new g.GX("Error while clearing Media Source in VideoPlayer: "+A.name+", "+A.message),f=uT(f),M.handleError(f),M.G8()}else M.G8()}; BTb=function(M,f){f=f===void 0?!1:f;if(M.VY)return M.VY.j;M.logger.debug("update media source");a:{f=f===void 0?!1:f;try{g.JI()&&M.videoData.tJ()&&$id(M.mediaElement);var A=M.mediaElement.ev(M.hI(),M.a6())}catch(N){if(SFU(M.ph,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",N);M.Cx("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}M.Uf(A,!1,!1,f)}var Q;return((Q=M.ev())==null?void 0:Q.j)||null}; iV9=function(M,f){f=f===void 0?!1:f;if(M.loader){M.videoData.enableServerStitchedDai&&vXt(M.loader);var A=M.getCurrentTime()-M.vX();M.loader.seek(A,{B8:f}).BU(function(){})}else V3t(M)}; ZVb=function(M,f,A,Q){A=A===void 0?!1:A;Q=Q===void 0?!1:Q;if(M.VY&&(!f||M.VY===f)){M.logger.debug("media source opened");var N=M.getDuration();!N&&Ck(M.videoData)&&(N=25200);if(M.VY.isView){var Y=N;M.logger.debug(function(){return"Set media source duration to "+Y+", video duration "+N}); Y>M.VY.getDuration()&&xP9(M,Y)}else xP9(M,N);Zkz(M.loader,M.VY,A,Q);M.publish("mediasourceattached")}}; xP9=function(M,f){if(M.VY){M.VY.Xy(f);var A;(A=M.loader)!=null&&A.policy.z0&&(A.G=f)}}; n_t=function(M,f){qMe(M,f.reason,f.K.info,f.token,f.videoId)}; Tn=function(M,f){M.publish("internalvideodatachange",f===void 0?"dataupdated":f,M.videoData)}; r49=function(M){for(var f=g.V("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),A=f.next();!A.done;A=f.next())M.lG.J(M.mediaElement,A.value,M.gm,M);M.QY.Eu&&M.mediaElement.yu()&&(M.lG.J(M.mediaElement,"webkitplaybacktargetavailabilitychanged",M.qrr,M),M.lG.J(M.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",M.Vkr,M))}; z89=function(M){g.qR(M.UE);ulf(M)||(M.UE=g.Vn(function(){return ulf(M)},100))}; ulf=function(M){var f=M.mediaElement;f&&M.qP&&!M.videoData.g_&&!W9("vfp",M.pk.timerName)&&f.uS()>=2&&!f.isEnded()&&CO(f.a9())&&M.pk.tick("vfp");return(f=M.mediaElement)&&!M.videoData.g_&&f.getDuration()>0&&(f.isPaused()&&f.uS()>=2&&CO(f.a9())&&(W9("pbp",M.pk.timerName)||M.pk.tick("pbp"),!M.videoData.KS||M.WS||f.isSeeking()||(M.WS=!0,M.publish("onPlaybackPauseAtStart"))),f=f.getCurrentTime(),nj(M.OQ,f))?(M.Bk(),!0):!1}; nib=function(M){M.O$().wf();if(oJ(M.videoData)&&Date.now()>M.qf+6283){if(!(!M.isAtLiveHead()||M.videoData.K&&uX(M.videoData.K))){var f=M.O$();if(f.qoe){f=f.qoe;var A=f.provider.d_.lT(),Q=g.KK(f.provider);Dqf(f,Q,A);A=A.j;isNaN(A)||g.Lj(f,Q,"e2el",[A.toFixed(3)])}}M.V("html5_alc_live_log_rawlat")?(f=M.videoData,f=g.i7(f.T())?!0:g.fF(f.T())?f.drmProduct==="6":!1):f=g.i7(M.QY);f&&M.ZB("rawlat",{l:M3(M.AE,"rawlivelatency").toFixed(3)});M.qf=Date.now()}M.videoData.Z&&NC(M.videoData.Z)&&(f=M.wC())&&f.videoHeight!== M.eS&&(M.eS=f.videoHeight,qMe(M,"a",Pf9(M,M.videoData.Ji)))}; Pf9=function(M,f){if(f.K.video.quality==="auto"&&NC(f.getInfo())&&M.videoData.y7)for(var A=g.V(M.videoData.y7),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.getHeight()===M.eS&&Q.K.video.quality!=="auto")return Q.getInfo();return f.getInfo()}; t3f=function(M){if(!oJ(M.videoData))return NaN;var f=0;M.loader&&M.videoData.K&&(f=Ck(M.videoData)?M.loader.hU.LW()||0:M.videoData.K.z0);return(0,g.W)()/1E3-M.VJ()-f}; $PD=function(M){M.mediaElement&&M.mediaElement.Dy()&&(M.FZ=(0,g.W)());M.QY.Q3?g.Uf(function(){jW6(M)},0):jW6(M)}; jW6=function(M){var f;if((f=M.VY)==null||!f.oh()){if(M.mediaElement)try{M.fC=M.mediaElement.playVideo()}catch(Q){E3(M,"err."+Q)}if(M.fC){var A=M.fC;A.then(void 0,function(Q){M.logger.debug(function(){return"playMediaElement failed: "+Q}); if(!g.J(M.playerState,4)&&!g.J(M.playerState,256)&&M.fC===A)if(Q&&Q.name==="AbortError"&&Q.message&&Q.message.includes("load"))M.logger.debug(function(){return"ignore play media element failure: "+Q.message}); else{var N="promise";Q&&Q.name&&(N+=";m."+Q.name);E3(M,N);M.OT=!0;M.videoData.vy=!0}})}}}; E3=function(M,f){g.J(M.playerState,128)||(M.Q7(ot(M.playerState,1028,9)),M.ZB("dompaused",{r:f}),M.publish("onAutoplayBlocked"))}; N3=function(M,f){f=f===void 0?!1:f;if(!M.mediaElement||!M.videoData.j)return!1;var A=f;A=A===void 0?!1:A;var Q=null;var N;if((N=M.videoData.j)==null?0:N.K){Q=BTb(M,A);var Y;(Y=M.loader)==null||Y.resume()}else D7(M),M.videoData.Ji&&(Q=M.videoData.Ji.DG());N=M.mediaElement.Pc();A=!1;N&&N.equals(Q)||(Fqe(M,Q),A=!0);g.J(M.playerState,2)||(Q=M.Ad,f=f===void 0?!1:f,Q.N||!(Q.j>0)||Q.mediaElement&&Q.mediaElement.getCurrentTime()>0||(f={Cd:"seektimeline_resumeTime",B8:f},Q.videoData.g_||(f.seekSource=15), Q.seekTo(Q.j,f)));a:{f=A;if(pk(M.videoData)){if(!M.videoData.TP())break a}else if(!g.sm(M.videoData))break a;if(M.mediaElement)if((Q=M.videoData.N)&&M.mediaElement.yu()){N=g.F(M.mediaElement.iI());if(M.Fn)if(N!==M.Fn.element)ht(M);else if(f&&Q.flavor==="fairplay"&&!K0())ht(M);else break a;if(M.V("html5_report_error_for_unsupported_tvos_widevine")&&K0()&&Q.flavor==="widevine")M.Cx("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{M.Fn=new wb6(N,M.videoData,M.QY); M.Fn.subscribe("licenseerror",M.aH,M);M.Fn.subscribe("qualitychange",M.gpr,M);M.Fn.subscribe("heartbeatparams",M.PJ,M);M.Fn.subscribe("keystatuseschange",M.SC,M);M.Fn.subscribe("ctmp",M.ZB,M);f=g.V(M.rY.keys);for(Q=f.next();!Q.done;Q=f.next())Q=M.rY.get(Q.value),M.Fn.qZ(Q);M.V("html5_eme_loader_sync")||M.rY.removeAll()}}else M.Cx("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return A}; Fqe=function(M,f){M.pk.tick("vta");Xx("vta",void 0,"video_to_ad");M.getCurrentTime()>0&&jaU(M.Ad,M.getCurrentTime());M.mediaElement.activate(f);M.VY&&Iu(4);!M.videoData.g_&&M.playerState.isOrWillBePlaying()&&M.KT.start();if(HVd(M)){var A;if(f=(A=M.mediaElement)==null?void 0:A.audioTracks())f.onchange=function(){M.publish("internalaudioformatchange",M.videoData,!0)}}}; ht=function(M){M.Fn&&(M.Fn.dispose(),M.Fn=null)}; y49=function(M){var f=f===void 0?!1:f;M.logger.debug("reattachVideoSource");M.mediaElement&&(M.VY?(ht(M),M.G8(),BTb(M,f)):(M.videoData.Ji&&M.videoData.Ji.Jl(),M.mediaElement.stopVideo()),M.playVideo())}; dPd=function(M,f){M.QY.V("html5_log_rebuffer_reason")&&(f={r:f,lact:xr()},M.mediaElement&&(f.bh=Dj(M.mediaElement)),M.ZB("bufreason",f))}; e80=function(M,f){if(M.QY.cX()&&M.mediaElement){var A=M.mediaElement.lI();A.omt=(M.mediaElement.getCurrentTime()+M.vX()).toFixed(3);A.ps=M.playerState.state.toString(16);A.rt=(rN(M.O$())*1E3).toFixed();A.e=f;M.gS[M.vS++%5]=A}try{if(f==="timeupdate"||f==="progress")return}catch(Q){}M.logger.debug(function(){return"video element event "+f})}; bVc=function(M){if(M.QY.cX()){M.gS.sort(function(Q,N){return+Q.rt-+N.rt}); for(var f=g.V(M.gS),A=f.next();!A.done;A=f.next())A=A.value,M.ZB("vpe",Object.assign({t:A.rt},A));M.gS=[];M.vS=0}}; k0t=function(M){if(g.Of("cobalt")&&g.Of("nintendo switch")){var f=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;M.ZB("nxdock",{d:f})}}; po=function(M,f){var A;(A=M.loader)==null||JG(A,f)}; Lqf=function(M){lv(M.videoData,"html5_set_debugging_opt_in")&&(M=g.kJ(),g.WD(0,183)||(XN(183,!0),M.save()))}; pjX=function(M,f){M.fd.Ci()||(M.ZB("sgap",{f:f}),M.fd.clearQueue(!1,f==="pe"))}; Xa=function(M){return M.V("html5_disable_video_player_initiated_seeks")&&pk(M.videoData)}; Wqd=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);Tt(this.api,"isLifaAdPlaying",function(){return f.api.isLifaAdPlaying()}); this.events.J(M,"serverstitchedvideochange",function(){var A;(A=f.api.getVideoData())!=null&&A.G_()&&(f.api.isLifaAdPlaying()?(f.playbackRate=f.api.getPlaybackRate(),f.api.setPlaybackRate(1)):f.api.setPlaybackRate(f.playbackRate))}); this.playbackRate=1}; OVd=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);Tt(this.api,"seekToChapterWithAnimation",function(A){f.seekToChapterWithAnimation(A)}); Tt(this.api,"seekToTimeWithAnimation",function(A,Q){f.seekToTimeWithAnimation(A,Q)}); Tt(this.api,"renderChapterSeekingAnimation",function(A,Q,N){f.api.renderChapterSeekingAnimation(A,Q,N)}); Tt(this.api,"setMacroMarkers",function(A){f.setMacroMarkers(M,A)}); Tt(this.api,"changeMarkerVisibility",function(A,Q,N){f.changeMarkerVisibility(A,Q,N)}); Tt(this.api,"isSameMarkerTypeVisible",function(A){return f.isSameMarkerTypeVisible(A)})}; XtN=function(M,f,A){var Q=M.api.getCurrentTime()*1E30&&N>0&&(A.width+=N,g.ji(f.element,"width",A.width+"px")));M.size=A}}; g.iz=function(M,f){var A=M.K[M.K.length-1];A!==f&&(M.K.push(f),aKN(M,A,f))}; g.xx=function(M){if(!(M.K.length<=1)){var f=M.K.pop(),A=M.K[0];M.K=[A];aKN(M,f,A,!0)}}; aKN=function(M,f,A,Q){qqX(M);f&&(f.unsubscribe("size-change",M.Qy,M),f.unsubscribe("back",M.ir,M));A.subscribe("size-change",M.Qy,M);A.subscribe("back",M.ir,M);if(M.B7){g.tZ(A.element,Q?"ytp-panel-animate-back":"ytp-panel-animate-forward");A.pJ(M.element);A.focus();M.element.scrollLeft=0;M.element.scrollTop=0;var N=M.size;Vfb(M);g.Xo(M.element,N);M.G=new g.MY(function(){H1f(M,f,A,Q)},20,M); M.G.start()}else A.pJ(M.element),f&&f.detach()}; H1f=function(M,f,A,Q){M.G.dispose();M.G=null;g.tZ(M.element,"ytp-popup-animating");Q?(g.tZ(f.element,"ytp-panel-animate-forward"),g.p5(A.element,"ytp-panel-animate-back")):(g.tZ(f.element,"ytp-panel-animate-back"),g.p5(A.element,"ytp-panel-animate-forward"));g.Xo(M.element,M.size);M.W=new g.MY(function(){g.p5(M.element,"ytp-popup-animating");f.detach();g.hZ(f.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);M.W.dispose();M.W=null},250,M); M.W.start()}; qqX=function(M){M.G&&g.AZ(M.G);M.W&&g.AZ(M.W)}; Z7=function(M){g.Bz.call(this,M,"ytp-shopping-product-menu");this.ER=new g.Ra(this.U);g.d(this,this.ER);this.hide();g.iz(this,this.ER);g.$X(this.U,this.element,4)}; sxD=function(M,f,A){var Q,N=f==null?void 0:(Q=f.text)==null?void 0:Q.simpleText;N&&(A=mL9(M,A,N,f==null?void 0:f.icon,f==null?void 0:f.secondaryIcon),f.navigationEndpoint&&A.listen("click",function(){M.U.T0("innertubeCommand",f.navigationEndpoint);M.hide()},M))}; c5X=function(M,f,A){var Q,N=f==null?void 0:(Q=f.text)==null?void 0:Q.simpleText;N&&mL9(M,A,N,f==null?void 0:f.icon).listen("click",function(){var Y;(f==null?void 0:(Y=f.icon)==null?void 0:Y.iconType)==="HIDE"?M.U.publish("featuredproductdismissed"):f.serviceEndpoint&&M.U.T0("innertubeCommand",f.serviceEndpoint);M.hide()},M)}; mL9=function(M,f,A,Q,N){f=new g.Gt(g.wx({},[],!1,!!N),f,A);N&&f.updateValue("secondaryIcon",RWD(N));f.setIcon(RWD(Q));g.d(M,f);M.ER.Sc(f,!0);return f}; RWD=function(M){if(!M)return null;switch(M.iconType){case "ACCOUNT_CIRCLE":return{S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{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{S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{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 mrt();case "HIDE":return{S:"svg",D:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"g",L:[{S:"path",D:{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 xo()}}; rJ=function(M){s3.call(this,M,!1,!0);this.isCounterfactual=this.Z=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.O({S:"button",Ai:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.O({S:"img",Y:"ytp-suggested-action-badge-img",D:{src:"{{url}}"}}); this.thumbnailImage.hide();g.d(this,this.thumbnailImage);this.thumbnailIcon=new g.O({S:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.d(this,this.thumbnailIcon);this.banner=new g.O({S:"a",Y:"ytp-suggested-action-container",L:[this.thumbnailImage,this.thumbnailIcon,{S:"div",Y:"ytp-suggested-action-details",L:[{S:"text",Y:"ytp-suggested-action-title",Ix:"{{title}}"},{S:"text",Y:"ytp-suggested-action-subtitle",Ix:"{{subtitle}}"},{S:"text",Y:"ytp-suggested-action-metadata-text", Ix:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.d(this,this.banner);this.banner.pJ(this.j.element);this.J(this.U,"videodatachange",this.onVideoDataChange);this.J(this.U,g.EW("suggested_action_view_model"),this.ik7);this.J(this.U,g.tf("suggested_action_view_model"),this.CI7);this.J(this.overflowButton.element,"click",this.gg);this.J(M,"featuredproductdismissed",this.z1);this.U.createServerVe(this.banner.element,this.banner,!0)}; gUD=function(M){M.isInitialized&&(M.enabled=M.isVisible,M.KJ=M.isVisible,m_(M),M.s3(),M.thumbnailImage.aE(M.isVisible),M.shouldHideDismissButton||M.dismissButton.aE(M.isVisible),M.shouldShowOverflowButton&&M.overflowButton.aE(M.isVisible))}; uz=function(){rJ.apply(this,arguments)}; BKf=function(M){fD.call(this,M);this.K=new uz(this.api);g.d(this,this.K);g.$X(this.api,this.K.element,4)}; zn=function(M){fD.call(this,M);var f=this;this.Z="";this.K=!0;this.j=this.api.V("html5_enable_audio_track_stickiness_phase_two");var A=new g.yK(M);g.d(this,A);A.J(M,"internalaudioformatchange",function(Q,N){i1b(f,Q,N)}); A.J(M,"videoplayerreset",function(){xLb(f)}); A.J(M,"videodatachange",function(Q,N){f.onVideoDataChange(Q,N)})}; i1b=function(M,f,A){if(A){var Q="";if(Z1t(M,f)){Q=f;M.j||(M.Z=f);if(A=M.api.getVideoData(void 0,!0))A.ao=f;M.api.T().xO=f}if(M.j&&Q&&r5d(M,Q)){vL6(M.api,M.Z||Q);var N;mA(pF(M.api.T(),(N=M.api.getVideoData())==null?void 0:g.bv(N)),function(Y){uit(M,Q,Y)})}}}; xLb=function(M){if(M.Z)zWU(M);else{var f;if(M.j&&((f=Ar())==null?0:f.size)){var A;mA(pF(M.api.T(),(A=M.api.getVideoData())==null?void 0:g.bv(A)),function(Q){if((Q=PiU(Q))&&r5d(M,Q)){var N=M.api.getVideoData(void 0,!0);N&&(N.ao=Q);M.api.T().xO=Q}})}}}; zWU=function(M){var f=M.api.getVideoData(void 0,!0);f&&(f.ao=M.Z)}; uit=function(M,f,A){PiU(A)!==f&&(nU0([{settingItemId:Pz(A),settingOptionValue:{stringValue:f}}]),mA(M.YI(),function(Q){hRt(Q,Pz(A),{stringValue:f})}))}; jx6=function(M,f){s_(mA(mA(M.YI(),function(A){return vbb(A,[Pz(f)])}),function(A){if(A){A=g.V(A); for(var Q=A.next();!Q.done;Q=A.next()){var N=Q.value;Q=N.key;N=N.value;Q&&N&&(nU0([{settingItemId:Q,settingOptionValue:N}]),xLb(M))}}}),function(){M.K=!0})}; Z1t=function(M,f){M=M.api.getAvailableAudioTracks();M=g.V(M);for(var A=M.next();!A.done;A=M.next())if(A=A.value,A.getLanguageInfo().getId()===f)return A;return null}; PiU=function(M){M=Pz(M);var f=Ar();M=f?f.get(M):void 0;return M&&M.stringValue?M.stringValue:""}; Pz=function(M){var f=(484).toString();M&&(f=(483).toString());return f}; r5d=function(M,f){var A;return f.split(".")[0]!==""&&((A=M.api.getVideoData())==null?void 0:!Om(A))}; nU0=function(M){var f=Ar();f||(f=new Map);M=g.V(M);for(var A=M.next();!A.done;A=M.next())A=A.value,f.set(A.settingItemId,A.settingOptionValue);f=JSON.stringify(Object.fromEntries(f));g.jA("yt-player-user-settings",f,2592E3)}; g.no=function(M,f,A,Q,N,Y,I){g.Gt.call(this,g.wx({"aria-haspopup":"true"}),f,M);this.uI=Q;this.X=!1;this.j=null;this.options={};this.Z=new g.Ra(A,void 0,M,N,Y,I);g.d(this,this.Z);this.listen("keydown",this.eH);this.listen("click",this.open)}; $Lf=function(M){if(M.j){var f=M.options[M.j];f.element.getAttribute("aria-checked");f.element.setAttribute("aria-checked","false");M.j=null}}; Fff=function(M,f){g.no.call(this,"Sleep timer",g.Sl.SLEEP_TIMER,M,f);this.U=M;this.B={};this.G=this.ma("Off");this.W=this.K="";M.V("web_settings_menu_icons")&&this.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{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.C=new g.O({S:"div",Ai:["ytp-menuitem-label-wrapper"],L:[{S:"div",Ix:"End of video"},{S:"div",Ai:["ytp-menuitem-sublabel"],Ix:"{{content}}"}]});g.d(this,this.C);this.listen("click",this.onClick);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"presentingplayerstatechange",this.Nu);this.J(M,"settingsMenuVisibilityChanged",this.KfN);M.createClientVe(this.element,this,218889);this.Nu();this.U.T0("onSleepTimerFeatureAvailable")}; y5b=function(M){var f="Off 10 15 20 30 45 60".split(" "),A;((A=M.U.getVideoData())==null?0:A.isLivePlayback)||f.push("End of video");A=M.U.getPlaylist();var Q;A&&((Q=A.listId)==null?void 0:Q.type)!=="RD"&&f.push("End of playlist");M.HB(g.WP(f,M.ma));M.B=g.y9(f,M.ma,M);f=M.ma("End of video");M.options[f]&&g.Kv(M.options[f],M.C)}; dLb=function(M,f){var A=M.B[f],Q=A==="End of video"||A==="End of playlist";A==="Off"&&(M.K="");M.U.getPlayerState()!==0&&M.U.getPlayerState()!==5||!Q?(M.G=f,g.no.prototype.jV.call(M,f),M.QD(f),M.U.T0("onSleepTimerSettingsChanged",A)):M.U.T0("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; j0=function(M){fD.call(this,M);var f=this;M.addEventListener("settingsMenuInitialized",function(){f.menuItem||(f.menuItem=new Fff(f.api,f.api.cB()),g.d(f,f.menuItem))}); M.addEventListener("openSettingsMenuItem",function(A){if(A==="menu_item_sleep_timer"){if(!f.menuItem){var Q;(Q=f.api.cB())==null||Q.q5()}f.menuItem.open()}}); Tt(M,"resetSleepTimerMenuSettings",function(){f.resetSleepTimerMenuSettings()}); Tt(M,"setSleepTimerTimeLeft",function(A){f.setSleepTimerTimeLeft(A)}); Tt(M,"setVideoTimeLeft",function(A){f.setVideoTimeLeft(A)})}; eW0=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"onSnackbarMessage",function(A){switch(A){case 1:A=f.api.getPlayerStateObject(),A.isBuffering()&&g.J(A,8)&&g.J(A,16)&&f.api.T0("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},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.Fg=function(M,f,A,Q,N){f=f===void 0?!1:f;Q=Q===void 0?!1:Q;N=N===void 0?!1:N;g.pi.call(this);this.B=N;this.W=!1;this.C=new ZD(this);this.N=this.G=null;this.j=this.Z=!1;g.d(this,this.C);this.target=M;this.K=f;this.X=A||M;this.W=Q;f&&(g.Kg&&this.target.setAttribute("draggable","true"),N||(this.target.style.touchAction="none"));$x(this)}; yu=function(M){g.u$(M.C,!M.K)}; $x=function(M){M.N=null;M.G=null;M.J(dJ("over"),M.pT);M.J("touchstart",M.w0);M.K&&M.J(dJ("down"),M.fBk)}; b1z=function(M,f){for(var A=0;AN.start&&A>=5;a+=m}h=a.substr(0,4)+" "+a.substr(4,4)+" "+a.substr(8,4)+" "+(a.substr(12,4)+" "+a.substr(16,4))}else h="";I={video_id_and_cpn:String(f.videoId)+" / "+h,codecs:"",dims_and_frames:"",bandwidth_kbps:I.toFixed(0)+" Kbps",buffer_health_seconds:E.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:t?"":"display:none",drm:t,debug_info:A,extra_debug_info:"",bandwidth_style:p,network_activity_style:p,network_activity_bytes:D.toFixed(0)+" KB",shader_info:v,shader_info_style:v?"":"display:none",playback_categories:""};D=Q.clientWidth+"x"+Q.clientHeight+(N>1?"*"+N.toFixed(2):"");E="-";Y.totalVideoFrames&&(E=(Y.droppedVideoFrames||0)+" dropped of "+Y.totalVideoFrames);I.dims_and_frames=D+" / "+E;M=M.getVolume();D=i_z(f);var u;if((u=f.C)==null?0:u.audio.Z)u= "VB";else{var z;u=((z=f.C)==null?0:z.audio.K)?"DRC":Math.round(M*D)+"%"}z=Math.round(M)+"% / "+u;u=f.R5.toFixed(1);isFinite(Number(u))&&(z+=" (content loudness "+u+"dB)");I.volume=z;I.resolution=Q.videoWidth+"x"+Q.videoHeight;if(Q=f.Z){if(z=Q.video)u=z.fps,u>1&&(I.resolution+="@"+u),(u=Y.cS)&&u.video&&(I.resolution+=" / "+u.video.width+"x"+u.video.height,u.video.fps>1&&(I.resolution+="@"+u.video.fps)),I.codecs=Kfe(Q),!f.C||Q.audio&&Q.video?Q.oH&&(I.codecs+=" / "+Q.oH+"A"):I.codecs+=" / "+Kfe(f.C), z.K||z.primaries?(u=z.K||"unknown",u==="smpte2084"?u+=" (PQ)":u==="arib-std-b67"&&(u+=" (HLG)"),I.color=u+" / "+(z.primaries||"unknown"),I.color_style=""):I.color_style="display:none";if(Q.debugInfo)for(I.fmt_debug_info="",Q=g.V(Q.debugInfo),z=Q.next();!z.done;z=Q.next())z=z.value,I.fmt_debug_info+=z.label+":"+z.text+" ";I.fmt_debug_info_style=I.fmt_debug_info&&I.fmt_debug_info.length>0?"":"display:none"}Q=f.isLivePlayback;z=f.oI;I.live_mode_style=Q||z?"":"display:none";I.live_latency_style=Q?"": "display:none";if(z)I.live_mode="Post-Live"+(Ck(f)?" Manifestless":"");else if(Q){z=Y.J4;I.live_latency_secs=z.toFixed(2)+"s";Q=Ck(f)?"Manifestless, ":"";f.Er&&(Q+="Windowed, ");u="Uncertain";if(z>=0&&z<120)if(f.latencyClass&&f.latencyClass!=="UNKNOWN")switch(f.latencyClass){case "NORMAL":u="Optimized for Normal Latency";break;case "LOW":u="Optimized for Low Latency";break;case "ULTRALOW":u="Optimized for Ultra Low Latency";break;default:u="Unknown Latency Setting"}else u=f.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";Q+=u;(z=Y.Yf)&&(Q+=", seq "+z.sequence);I.live_mode=Q}!Y.isGapless||Em(f)&&Y.Ci||(I.playback_categories+="Gapless ");I.playback_categories_style=I.playback_categories?"":"display:none";I.bandwidth_samples=Y.My;I.network_activity_samples=Y.oL;I.live_latency_samples=Y.al;I.buffer_health_samples=Y.JL;Y=g.Ge(f);if(f.cotn||Y)I.cotn_and_local_media=(f.cotn?f.cotn:"null")+" / "+Y;I.cotn_and_local_media_style=I.cotn_and_local_media?"":"display:none"; lv(f,"web_player_release_debug")?(I.release_name=T[60],I.release_style=""):I.release_style="display:none";I.debug_info&&S.length>0&&I.debug_info.length+S.length<=60?I.debug_info+=" "+S:I.extra_debug_info=S;I.extra_debug_info_style=I.extra_debug_info&&I.extra_debug_info.length>0?"":"display:none";return I}; Kfe=function(M){var f=/codecs="([^"]*)"/.exec(M.mimeType);return f&&f[1]?f[1]+" ("+M.itag+")":M.itag}; Jt=function(M,f,A,Q,N){g.O.call(this,{S:"div",Y:"ytp-horizonchart"});this.W=f;this.sampleCount=A;this.C=Q;this.G=N;this.index=0;this.heightPx=-1;this.j=this.Z=null;this.K=Math.round(M/A);this.element.style.width=this.K*this.sampleCount+"px";this.element.style.height=this.W+"em"}; Ko=function(M,f){if(M.heightPx===-1){var A=null;try{A=g.F(g.MQ("CANVAS")),M.Z=A.getContext("2d")}catch(D){}if(M.Z){var Q=M.K*M.sampleCount;M.j=A;M.j.width=Q;M.j.style.width=Q+"px";M.element.appendChild(M.j)}else for(M.sampleCount=Math.floor(M.sampleCount/4),M.K*=4,A=0;A1?2:1,M.j.height=M.heightPx*A, M.j.style.height=M.heightPx+"px",M.Z.scale(1,A)));f=g.V(f);for(Q=f.next();!Q.done;Q=f.next()){A=M;var N=M.index,Y=Q.value;for(Q=0;Q+20&&g.Qw(f.j.element);Q.classList.add("ytp-timely-actions-overlay");f.j.element.appendChild(Q)}); g.d(this,this.j);g.$X(this.api,this.j.element,4)}; pQt=function(M){M.timelyActions&&(M.C=M.timelyActions.reduce(function(f,A){if(A.cueRangeId===void 0)return f;f[A.cueRangeId]=0;return f},{}))}; fV=function(M,f){if(M.timelyActions){M=g.V(M.timelyActions);for(var A=M.next();!A.done;A=M.next())if(A=A.value,A.cueRangeId===f)return A}}; h$6=function(M,f){if((M=fV(M,f))&&M.onCueRangeExit)return eZ(M.onCueRangeExit)}; MP=function(M){if(M.K!==void 0){var f=(f=fV(M,M.K))&&f.onCueRangeEnter?eZ(f.onCueRangeEnter):void 0;var A=fV(M,M.K);a:if(A&&A.additionalTrigger){var Q=g.V(A.additionalTrigger);for(var N=Q.next();!N.done;N=Q.next())if(N=N.value,N.type){var Y=void 0,I=void 0;if((Y=M.KJ[N.type])==null?0:Y((I=N.args)!=null?I:{})){Q=!0;break a}}Q=!1}else Q=!0;f&&Q&&(M.api.T0("innertubeCommand",f),M.setTimeout(A),M.C[M.K]!==void 0&&M.C[M.K]++,M.X=!0)}}; DzU=function(M,f){return M.Z===void 0?!1:f.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(f.seekLengthMilliseconds)===5E3?M.Z===72:f.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(f.seekLengthMilliseconds)===1E4?M.Z===74:f.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(f.seekLengthMilliseconds)===5E3?M.Z===71:f.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(f.seekLengthMilliseconds)===1E4?M.Z===73:!1}; Ece=function(M){if(M=M.getWatchNextResponse()){var f,A;M=(f=M.playerOverlays)==null?void 0:(A=f.playerOverlayRenderer)==null?void 0:A.timelyActionsOverlayViewModel;f=g.b(M,S$T);if(f!=null&&f.timelyActions)return f==null?void 0:f.timelyActions.map(function(Q){return g.b(Q,Lxc)}).filter(function(Q){return!!Q})}}; ocN=function(M){fD.call(this,M);var f=this;pv(this.api,"getPlaybackRate",function(){return f.api.getPlaybackRate()}); pv(this.api,"setPlaybackRate",function(A){typeof A==="number"&&f.api.setPlaybackRate(A)})}; A4=function(M,f,A,Q){Dc.call(this,"VOICE_BOOST",g.Sl.Mo);this.K=!1;this.U=M;this.uI=M.cB();this.C=f;this.j=A;this.hasVoiceBoostAudioTrack=Q;this.J(M,"videodatachange",this.Z);this.setIcon(xrb());this.subscribe("select",this.G,this);this.Z()}; Ql=function(M){fD.call(this,M);var f=this;this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"settingsMenuInitialized",function(){CJb(f)}); Tt(this.api,"getVoiceBoostUserPreference",function(){return f.getVoiceBoostUserPreference()}); Tt(this.api,"setVoiceBoostUserPreference",function(Q){f.setVoiceBoostUserPreference(Q)}); Tt(this.api,"hasVoiceBoostAudioTrack",function(){return f.hasVoiceBoostAudioTrack()}); var A;this.K=(A=wcf())!=null?A:0;this.updateEnvironmentData()}; CJb=function(M){M.menuItem||(M.menuItem=new A4(M.api,function(f){M.setVoiceBoostUserPreference(f)},function(){return M.getVoiceBoostUserPreference()},function(){return M.hasVoiceBoostAudioTrack()}),g.d(M,M.menuItem))}; Uzd=function(M){M=M.mf();if(!M)return!1;M=g.TA(M).exp||"";return M.includes("xpv")||M.includes("xpe")}; VU6=function(M){M=g.V(g.NP(M,!0));for(var f=M.next();!f.done;f=M.next())if(Uzd(f.value))return!0;return!1}; aB6=function(M,f){M=g.V(g.NP(M,!0));for(var A=M.next();!A.done;A=M.next())if(A=A.value,Uzd(A)){var Q={potc:"1",pot:f};A.url&&(A.url=Df(A.url,Q))}}; q$9=function(M){return g.n(function(f){if(f.Z==1)return g.HX(f,2),g.r(f,M,4);if(f.Z!=2)return g.Rf(f,0);g.id(f);g.qc(f)})}; IW=function(M){fD.call(this,M);var f=this;this.useLivingRoomPoToken=!1;this.N=new g.LB;this.K=!1;this.pk=null;this.X=!1;this.C=null;this.G=!1;var A=M.T().getWebPlayerContextConfig();this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"spsumpreject",function(Q,N,Y){f.G=N;Q&&f.X&&!f.C&&(f.V("html5_generate_content_po_token")&&Y?f.sf(Y):f.V("html5_generate_session_po_token")&&HNX(f));f.C||f.api.ZB("stp",{s:+f.X,b:+f.G})}); this.events.J(M,"poTokenVideoBindingChange",function(Q){f.sf(Q)}); this.useLivingRoomPoToken=!(A==null||!A.useLivingRoomPoToken);M.addEventListener("csiinitialized",function(){f.pk=M.ZX();var Q=(f.V("html5_generate_session_po_token")||f.V("html5_generate_content_po_token"))&&!f.useLivingRoomPoToken;try{if(f.V("html5_use_shared_owl_instance"))mzz(f);else if(Q){f.pk.In("pot_isc");var N=g.CE(f.api.T().experiments,"html5_webpo_kaios_defer_timeout_ms");N?(f.j=eM(),g.Uf(function(){Yi(f)},N)):f.V("html5_webpo_idle_priority_job")?(f.j=eM(),g.AO(g.Nr(),function(){Yi(f)})): Yi(f)}}catch(Y){Y instanceof Error&&g.$b(Y)}}); M.addEventListener("trackListLoaded",this.T7.bind(this));M.DO(this)}; s20=function(M){var f=EH(M.experiments,"html5_web_po_request_key");return f?f:g.Zs(M)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; cRz=function(M){var f=new D7c,A={},Q=(A["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",A);return new ql(f,M,function(){return Q})}; R$f=function(M){return new Hi(M)}; T0=function(M,f){M.V("html5_webpo_bge_ctmp")&&M.api.ZB(f,{hwpo:!!M.Z,hwpor:M.K})}; mzz=function(M){var f,A;g.n(function(Q){if(Q.Z==1)return T0(M,"swpo_i"),M.j=eM(),DA(M),g.r(Q,TU(),2);if(Q.Z!=3)return f=Q.K,T0(M,"swpo_co"),g.r(Q,y9b(f),3);A=Q.K;M.V("html5_web_po_token_disable_caching")||A.xU(150);M.Z=A;T0(M,"swpo_cc");q$9(A.V0()).then(function(){M.K=!0;M.N.resolve();T0(M,"swpo_re")}); g.Uf(function(){Yi(M);T0(M,"swpo_si")},0); g.qc(Q)})}; B0t=function(M){var f=M.api.T(),A=cRz(s20(f)),Q=A.NK.bind(A);A.NK=function(D){var E;return g.n(function(t){if(t.Z==1)return g.r(t,Q(D),2);E=t.K;M.api.ZB("itr",{});return t.return(E)})}; try{var N=R$f({Pb:A,WI:{maxAttempts:5},GZ:{KK:"CLEn",disable:f.experiments.X3("html5_web_po_disable_remote_logging")||gcb.includes(g.RH(f.qY)||""),VX:bsb(f.experiments),p7O:M.V("wpo_dis_lfdms")?0:1E3},Hkx:g.$b});var Y=new yO({aI:N,Pb:A,onError:g.$b});q$9(Y.V0()).then(function(){M.K=!0;M.N.resolve()}); M.V("html5_web_po_token_disable_caching")||Y.xU(150);g.d(M,N);g.d(M,Y);M.Z=Y}catch(D){g.$b(D);var I;(I=N)==null||I.dispose()}}; Yi=function(M){var f=M.api.T();M.pk.In("pot_ist");M.Z||B0t(M);M.V("html5_bandaid_attach_content_po_token")||(M.V("html5_generate_session_po_token")&&(DA(M),HNX(M)),f=g.CE(f.experiments,"html5_session_po_token_interval_time_ms")||0,f>0&&(M.W=g.Vn(function(){DA(M)},f)),M.X=!0)}; DA=function(M){var f,A,Q,N;g.n(function(Y){if(!M.V("html5_generate_session_po_token")||M.useLivingRoomPoToken)return Y.return();f=M.api.T();A=g.GR("EOM_VISITOR_DATA")||g.GR("VISITOR_DATA");Q=f.Fi?f.datasyncId:A;N=EH(f.experiments,"html5_mock_content_binding_for_session_token")||f.livingRoomPoTokenId||Q;f.Uw=EM(M,N);g.qc(Y)})}; EM=function(M,f){if(!M.Z){if(M.j)try{return M.j(f)}catch(Y){g.$b(Y)}return""}try{M.pk.In(M.K?"pot_cms":"pot_csms");var A={gx:!0,yg:!0,gU:f};M.V("html5_web_po_token_disable_caching")||(A.ZF={f0:f,GM:!0,tD:!0});var Q=M.Z.L5(A);M.pk.In(M.K?"pot_cmf":"pot_csmf");if(M.K){var N;(N=M.C)==null||N.resolve();M.C=null;M.G&&(M.G=!1,M.api.app.v7().iR(!1))}return Q}catch(Y){return g.$b(Y),""}}; HNX=function(M){M.Z&&(M.C=new Yl,M.N.promise.then(function(){M.pk.In("pot_if");DA(M)}))}; t4=function(M){fD.call(this,M);var f=this,A=new g.yK(M);g.d(this,A);A.J(M,"fullscreentoggled",function(Q){iNd(f,Q)}); Tt(this.api,"setFullscreenQuickActions",function(Q){f.setFullscreenQuickActions(Q)}); Tt(this.api,"setPlayerOverlayVideoDetailsRenderer",function(Q){f.setPlayerOverlayVideoDetailsRenderer(Q)})}; iNd=function(M,f){M.K&&g.KY(M.K,f);M.playerOverlayVideoDetailsRenderer&&g.KY(M.playerOverlayVideoDetailsRenderer,f)}; xzD=function(M){fD.call(this,M);var f=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.yK(M);g.d(this,this.events);this.events.J(M,"heartbeatRequest",function(A){if(f.freePreviewUsageDetails.length||f.freePreviewWatchedDuration!==null)A.heartbeatRequestParams||(A.heartbeatRequestParams={}),A.heartbeatRequestParams.unpluggedParams||(A.heartbeatRequestParams.unpluggedParams={}),f.freePreviewUsageDetails.length>0?A.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= f.freePreviewUsageDetails:A.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+f.freePreviewWatchedDuration}}); Tt(M,"setFreePreviewWatchedDuration",function(A){f.freePreviewWatchedDuration=A}); Tt(M,"setFreePreviewUsageDetails",function(A){f.freePreviewUsageDetails=A})}; vt=function(M){g.y.call(this);this.features=[];var f=this.K,A=new Bp(M),Q=new A$(M),N=new Co(M),Y=new IW(M);var I=g.i7(M.T())?void 0:new qN(M);var D=new oa(M),E=new MUc(M),t=new ocN(M),v=new gm(M);var p=g.i7(M.T())?new xzD(M):void 0;var h=M.V("html5_enable_ssap")?new J5z(M):void 0;var S=M.V("web_cinematic_watch_settings")&&(S=M.T().getWebPlayerContextConfig())!=null&&S.cinematicSettingsAvailable?new CD(M):void 0;var L=new RM(M);var a=M.V("enable_courses_player_overlay_purchase")?new eyt(M):void 0; var q=g.Q5(M.T())?new $Eb(M):void 0;var m=new Hp(M);var R=M.T().C?new rV0(M):void 0;var u=g.Ps(M.T())?new ZW6(M):void 0;var z=M.V("web_player_move_autonav_toggle")&&M.T().zj?new mE0(M):void 0;var e=g.Q5(M.T())?new OVd(M):void 0;var G=M.V("web_enable_speedmaster")&&g.Q5(M.T())?new kx(M):void 0;var X=M.T().ao?void 0:new T0N(M);var Qt=M.V("report_pml_debug_signal")?new VDe(M):void 0;var Y9=new IK9(M),Mc=new q3(M);var E0=g.dA(M.T())?new oUt(M):void 0;var w=navigator.mediaSession&&window.MediaMetadata&& M.T().Mp?new S0(M):void 0;var m6=M.V("html5_enable_drc")&&!M.T().G?new aM(M):void 0;var BX=new NN(M);var WX=g.Q5(M.T())?new BKf(M):void 0;var g7=M.V("html5_enable_d6de4")?new U3(M):void 0;var vK=g.Q5(M.T())&&M.V("web_sleep_timer")?new j0(M):void 0;var x9=g.Ps(M.T())?new zyU(M):void 0;var gD=new zn(M),TC=new Bpb(M),H=new Wqd(M);var DU=M.V("enable_sabr_snackbar_message")?new eW0(M):void 0;var JB=M.V("web_enable_timely_actions")?new vc6(M):void 0;var sI=new UO(M);var Zv=g.Q5(M.T())?new t4(M):void 0; M=M.V("html5_enable_voice_boost")?new Ql(M):void 0;f.call(this,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m,R,u,z,e,G,X,Qt,Y9,Mc,E0,void 0,w,m6,BX,void 0,WX,g7,vK,x9,void 0,gD,TC,H,void 0,DU,JB,sI,Zv,M)}; ZNN=function(){this.Z=this.K=NaN}; rRb=function(M,f){this.QY=M;this.timerName="";this.j=!1;this.Z=NaN;this.C=new ZNN;this.K=f||null;this.j=!1}; u66=function(M,f,A){var Q=g.dt(f.i8)&&!f.i8.G;if(f.i8.KS&&(jX(f.i8)||f.i8.z0==="shortspage"||Dm(f.i8)||Q)&&!M.j){M.j=!0;M.G=f.clientPlaybackNonce;g.GR("TIMING_ACTION")||K4("TIMING_ACTION",M.QY.csiPageType);M.QY.csiServiceName&&K4("CSI_SERVICE_NAME",M.QY.csiServiceName);if(M.K){Q=M.K.ZX();for(var N=g.V(Object.keys(Q)),Y=N.next();!Y.done;Y=N.next())Y=Y.value,eh(Y,Q[Y],M.timerName);Q=g.f0(bre)(M.K.SK);g.bB(Q,M.timerName);Q=M.K;Q.Z={};Q.SK={}}g.bB({playerInfo:{visibilityState:g.f0(eu9)()},playerType:"LATENCY_PLAYER_HTML5"}, M.timerName);M.N!==f.clientPlaybackNonce||Number.isNaN(M.Z)||(W9("_start",M.timerName)?A=g.f0(jh)("_start",M.timerName)+M.Z:g.$b(new g.GX("attempted to log gapless pbs before CSI timeline started",{cpn:f.clientPlaybackNonce})));A&&!W9("pbs",M.timerName)&&pV(M,A)}}; pV=function(M,f,A){eh("pbs",f!=null?f:(0,g.W)(),A!=null?A:M.timerName)}; h4=function(M){MSe();l_X();M.timerName=""}; z$6=function(M){if(M.K){var f=M.K;f.Z={};f.SK={}}M.j=!1;M.N=void 0;M.Z=NaN}; PJe=function(M,f){g.pi.call(this);this.i8=M;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.K=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.X={};this.Z=0;if(M=f.session_data)this.sessionData=Qn(M,"&");this.index=Math.max(0,Number(f.index)||0);this.loop=!!f.loop;this.startSeconds=Number(f.startSeconds)||0;this.title=f.playlist_title||"";this.description=f.playlist_description||"";this.author= f.author||f.playlist_author||"";f.video_id&&(this.items[this.index]=f);if(M=f.api)typeof M==="string"&&M.length===16?f.list="PL"+M:f.playlist=M;if(M=f.list)switch(f.listType){case "user_uploads":this.listId=new B5("UU","PLAYER_"+M);break;default:var A=f.playlist_length;A&&(this.length=Number(A)||0);this.listId=g.iS(M);if(M=f.video)this.items=M.slice(0),this.loaded=!0}else if(f.playlist){M=f.playlist.toString().split(",");this.index>0&&(this.items=[]);M=g.V(M);for(A=M.next();!A.done;A=M.next())(A= A.value)&&this.items.push({video_id:A});this.length=this.items.length;if(M=f.video)this.items=M.slice(0),this.loaded=!0}this.setShuffle(!!f.shuffle);if(M=f.suggestedQuality)this.quality=M;this.X=sA(f,"playlist_");this.j=(f=f.thumbnail_ids)?f.split(","):[]}; nct=function(M){return!!(M.playlist||M.list||M.api)}; j2X=function(M){var f=M.index+1;return f>=M.length?0:f}; $z9=function(M){var f=M.index-1;return f<0?M.length-1:f}; g.S3=function(M,f,A,Q){f=f!==void 0?f:M.index;f=M.items&&f in M.items?M.items[M.order[f]]:null;var N=null;f&&(A&&(f.autoplay="1"),Q&&(f.autonav="1"),N=new g.G9(M.i8,f),g.d(M,N),N.Bz=!0,N.startSeconds=M.startSeconds||N.clipStart||0,M.listId&&(N.playlistId=M.listId.toString()));return N}; FxU=function(M,f){M.index=g.ih(f,0,M.length-1);M.startSeconds=0}; yRU=function(M,f){if(f.video&&f.video.length){M.title=f.title||"";M.description=f.description;M.views=f.views;M.likes=f.likes;M.dislikes=f.dislikes;M.author=f.author||"";var A=f.loop;A&&(M.loop=A);A=g.S3(M);M.items=[];for(var Q=g.V(f.video),N=Q.next();!N.done;N=Q.next())if(N=N.value)N.video_id=N.encrypted_id,M.items.push(N);M.length=M.items.length;(f=f.index)?M.index=f:M.findIndex(A);M.setShuffle(!1);M.loaded=!0;M.Z++;M.K&&M.K()}}; bNN=function(M,f){var A,Q,N,Y,I,D,E;return g.n(function(t){if(t.Z==1){A=g.D$();var v=M.T(),p={context:g.YX(M),playbackContext:{contentPlaybackContext:{ancestorOrigins:v.ancestorOrigins}}},h=v.getWebPlayerContextConfig();if(h==null?0:h.encryptedHostFlags)p.playbackContext.contentPlaybackContext.encryptedHostFlags=h.encryptedHostFlags;if(h==null?0:h.hideInfo)p.playerParams={showinfo:!1};v=v.embedConfig;h=f.docid||f.video_id||f.videoId||f.id;if(!h){h=f.raw_embedded_player_response;if(!h){var S=f.embedded_player_response; S&&(h=JSON.parse(S))}if(h){var L,a,q,m,R,u;h=((u=g.b((L=h)==null?void 0:(a=L.embedPreview)==null?void 0:(q=a.thumbnailPreviewRenderer)==null?void 0:(m=q.playButton)==null?void 0:(R=m.buttonRenderer)==null?void 0:R.navigationEndpoint,g.N5))==null?void 0:u.videoId)||null}else h=null}L=(L=h)?L:void 0;a=M.playlistId?M.playlistId:f.list;q=f.listType;if(a){var z;q==="user_uploads"?z={username:a}:z={playlistId:a};dzb(v,L,f,z);p.playlistRequest=z}else f.playlist?(z={templistVideoIds:f.playlist.toString().split(",")}, dzb(v,L,f,z),p.playlistRequest=z):L&&(z={videoId:L},v&&(z.serializedThirdPartyEmbedConfig=v),p.singleVideoRequest=z);Q=p;N=g.NO(e$d);g.HX(t,2);return g.r(t,g.GK(A,Q,N),4)}if(t.Z!=2)return Y=t.K,I=M.T(),f.raw_embedded_player_response=Y,I.P7=h0(f,g.Ps(I)),I.j=I.P7==="EMBEDDED_PLAYER_MODE_PFL",Y&&(D=Y,D.trackingParams&&dp(D.trackingParams)),t.return(new g.G9(I,f));E=g.id(t);E instanceof Error||(E=Error("b259802748"));g.jZ(E);return t.return(M)})}; dzb=function(M,f,A,Q){A.index&&(Q.playlistIndex=String(Number(A.index)+1));Q.videoId=f?f:"";M&&(Q.serializedThirdPartyEmbedConfig=M)}; g.oW=function(M,f){LV.get(M);LV.set(M,f)}; g.CV=function(M){g.pi.call(this);this.loaded=!1;this.player=M}; kJc=function(){this.Z=[];this.K=[]}; g.NP=function(M,f){return f?M.K.concat(M.Z):M.K}; g.UM=function(M,f){switch(f.kind){case "asr":WxT(f,M.Z);break;default:WxT(f,M.K)}}; WxT=function(M,f){g.oR(f,function(A){return M.equals(A)})||f.push(M)}; g.Vl=function(M){g.y.call(this);this.G0=M;this.Z=new kJc;this.C=null;this.N=[];this.X=[]}; g.aW=function(M,f,A){g.Vl.call(this,M);this.videoData=f;this.audioTrack=A;this.K=null;this.j=!1;this.N=f.zq;this.X=f.mj;this.j=g.ym(f)}; g.ONN=function(M,f){var A;return M.T().V("safari_live_drm_captions_fix")&&((A=M.getVideoData())==null?0:A.TP())?!1:g.i7(M.T())&&!f.isManifestless}; g.qP=function(M,f){return DH(M.info.mimeType)?f?M.info.itag===f:!0:!1}; g.XQd=function(M,f){if(M.K!=null&&g.ONN(f,M.K)&&M.K.K.rawcc!=null)return!0;if(!M.U$())return!1;f=!!M.K&&M.K.isManifestless&&Object.values(M.K.K).some(function(A){return g.qP(A,"386")}); M=!!M.K&&!M.K.isManifestless&&g.DkX(M.K);return f||M}; g.Ht=function(M,f,A,Q,N,Y){g.Vl.call(this,M);this.videoId=A;this.E9=N;this.eventId=Y;this.G={};this.K=null;M=Q||g.TA(f).hl||"";M=M.split("_").join("-");this.j=Df(f,{hl:M})}; GJc=function(M,f){var A=JRU;return A.C?mA(KxN(A,f),ch(function(Q){return function Y(){return nb(Y,function(I){if(I.Z==1){g.s0(I,2);try{return I.return(new WebAssembly.Instance(Q,M))}catch(D){}return Vt(I,RB(WebAssembly.instantiate(Q,M)),4)}if(I.Z!=2)return I.return(I.K);g.ZU(I);return g.ud(I,0)})}()})):aB("wasm.ps.ns")}; wQD=function(M,f){M.K||(M.K=mA(qE(function(){return fetch(f)}),function(A){return A.arrayBuffer()}),s_(M.K,function(A){M.K=void 0; throw"wasm.ps.f: "+A;}))}; KxN=function(M,f){if(M.Z)return M.Z;M.Z=M.N(f);s_(M.Z,function(A){M.Z=void 0;throw"wasm.ps.c: "+A;}); return M.Z}; lBD=function(){}; MYe=function(){var M=this;this.proc_exit=function(){}; this.fd_write=function(f,A,Q){if(!M.exports)return 1;f=new Uint32Array(M.exports.memory.buffer,A,Q*2);A=[];for(var N=0;N=11;M=M.api.T().W&&Pt;return!(!f&&!M)}; OM=function(M,f){return!M.api.isInline()&&!jOb(M,i$(f))&&g.iM(f)}; n5t=function(M){M.Gb.Y1();if(M.O8&&M.F0)M.F0=!1;else if(!M.api.T().ox&&!M.y3()){var f=M.api.getPlayerStateObject();g.J(f,2)&&g.ZF(M.api)||M.zw(f);!M.api.T().Qw||f.isCued()||g.J(f,1024)?M.OW():M.V$.isActive()?(M.Tn(),M.V$.stop()):M.V$.start()}}; FKf=function(M,f){var A;if((A=M.api.getVideoData())==null?0:A.mutedAutoplay){var Q,N;if((Q=f.target)==null?0:(N=Q.className)==null?0:N.includes("ytp-info-panel"))return!1}return g.iM(f)&&M.api.isMutedByMutedAutoplay()?(M.api.unMute(),M.api.getPresentingPlayerType()===2&&M.api.playVideo(),f=M.api.getPlayerStateObject(),!g.J(f,4)||g.J(f,8)||g.J(f,2)||M.OW(),!0):!1}; y80=function(M,f,A){M.api.isFullscreen()?A<1-f&&M.api.toggleFullscreen():A>1+f&&M.api.toggleFullscreen()}; Pyf=function(M){var f=XK()&&ky()>=67&&!M.api.T().W;M=M.api.T().disableOrganicUi;return!g.Of("tizen")&&!rt&&!f&&!M}; g.Xl=function(M){g.O.call(this,{S:"div",L:[{S:"div",Y:"ytp-bezel-text-wrapper",L:[{S:"div",Y:"ytp-bezel-text",Ix:"{{title}}"}]},{S:"div",Y:"ytp-bezel",D:{role:"status","aria-label":"{{label}}"},L:[{S:"div",Y:"ytp-bezel-icon",Ix:"{{icon}}"}]}]});this.U=M;this.Z=new g.MY(this.show,10,this);M=this.U.V("delhi_modern_web_player")?1E3:500;this.K=new g.MY(this.hide,M,this);g.d(this,this.Z);g.d(this,this.K);this.hide()}; KV=function(M,f,A){if(f<=0){A=PO();f="muted";var Q=0}else A=A?{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,D:{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"}}]}:{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,D:{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"}}]},Q=Math.floor(f),f=Q+"volume";J4(M,A,f,Q+"%")}; dJN=function(M,f){f=f?{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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"}}]}:HHz();var A=M.U.getPlaybackRate(),Q=g.aC("Speed is $RATE",{RATE:String(A)});J4(M,f,Q,A+"x")}; eoU=function(M,f){f=f?"Subtitles/closed captions on":"Subtitles/closed captions off";J4(M,Ryb(),f)}; J4=function(M,f,A,Q){Q=Q===void 0?"":Q;M.updateValue("label",A===void 0?"":A);M.updateValue("icon",f);g.QI(M.K);M.Z.start();M.updateValue("title",Q);g.Sb(M.element,"ytp-bezel-text-hide",!Q)}; bL6=function(M,f){g.O.call(this,{S:"button",Ai:["ytp-button","ytp-cards-button"],D:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Ps(M.T()))},L:[{S:"span",Y:"ytp-cards-button-icon-default",L:[{S:"div",Y:"ytp-cards-button-icon",L:[M.T().V("player_new_info_card_format")?cO0():{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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"}}]}]}, {S:"div",Y:"ytp-cards-button-title",Ix:"Info"}]},{S:"span",Y:"ytp-cards-button-icon-shopping",L:[{S:"div",Y:"ytp-cards-button-icon",L:[{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",Y:"ytp-svg-shadow",D:{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"}},{S:"path",Y:"ytp-svg-fill",D:{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"}},{S:"path",Y:"ytp-svg-shadow-fill",D:{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"}}]}]},{S:"div", Y:"ytp-cards-button-title",Ix:"Shopping"}]}]});this.U=M;this.Z=f;this.K=null;this.fade=new g.I1(this,250,!0,100);g.d(this,this.fade);g.Sb(this.Z,"ytp-show-cards-title",g.Ps(M.T()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.uG(!0)}; kBT=function(M,f){g.O.call(this,{S:"div",Y:"ytp-cards-teaser",L:[{S:"div",Y:"ytp-cards-teaser-box"},{S:"div",Y:"ytp-cards-teaser-text",L:M.T().V("player_new_info_card_format")?[{S:"button",Y:"ytp-cards-teaser-info-icon",D:{"aria-label":"Show cards","aria-haspopup":"true"},L:[cO0()]},{S:"span",Y:"ytp-cards-teaser-label",Ix:"{{text}}"},{S:"button",Y:"ytp-cards-teaser-close-button",D:{"aria-label":"Close"},L:[g.Re()]}]:[{S:"span",Y:"ytp-cards-teaser-label",Ix:"{{text}}"}]}]});var A=this;this.U=M;this.HK= f;this.fade=new g.I1(this,250,!1,250);this.K=null;this.W=new g.MY(this.Vx0,300,this);this.G=new g.MY(this.q$O,2E3,this);this.C=[];this.Z=null;this.X=new g.MY(function(){A.element.style.margin="0"},250); this.onClickCommand=this.j=null;g.d(this,this.fade);g.d(this,this.W);g.d(this,this.G);g.d(this,this.X);M.T().V("player_new_info_card_format")?(g.tZ(M.getRootNode(),"ytp-cards-teaser-dismissible"),this.J(this.H7("ytp-cards-teaser-close-button"),"click",this.NO),this.J(this.H7("ytp-cards-teaser-info-icon"),"click",this.e6),this.J(this.H7("ytp-cards-teaser-label"),"click",this.e6)):this.listen("click",this.e6);this.J(f.element,"mouseover",this.W3);this.J(f.element,"mouseout",this.Rz);this.J(M,"cardsteasershow", this.ClB);this.J(M,"cardsteaserhide",this.fk);this.J(M,"cardstatechange",this.Ll);this.J(M,"presentingplayerstatechange",this.Ll);this.J(M,"appresize",this.YX);this.J(M,"onShowControls",this.YX);this.J(M,"onHideControls",this.Vo);this.listen("mouseenter",this.qO)}; WK0=function(M){g.O.call(this,{S:"button",Ai:[G0.BUTTON,G0.TITLE_NOTIFICATIONS],D:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},L:[{S:"div",Y:G0.TITLE_NOTIFICATIONS_ON,D:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},L:[g.iD()]},{S:"div",Y:G0.TITLE_NOTIFICATIONS_OFF,D:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},L:[{S:"svg",D:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{S:"path",D:{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=M;this.K=!1;M.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; OLb=function(M,f){M.K=f;M.element.classList.toggle(G0.NOTIFICATIONS_ENABLED,M.K);var A=M.api.getVideoData();A?(f=f?A.o2:A.cA)?(M=M.api.YI())?Kp(M,f):g.jZ(Error("No innertube service available when updating notification preferences.")):g.jZ(Error("No update preferences command available.")):g.jZ(Error("No video data when updating notification preferences."))}; J8t=function(M,f,A){var Q=Q===void 0?800:Q;var N=N===void 0?600:N;var Y=document.location.protocol;M=fLe(Y+"//"+M+"/signin?context=popup","feature",f,"next",Y+"//"+location.hostname+"/post_login");Xoz(M,A,Q,N)}; Xoz=function(M,f,A,Q){A=A===void 0?800:A;Q=Q===void 0?600:Q;if(M=g.Q4(window,M,"loginPopup","width="+A+",height="+Q+",resizable=yes,scrollbars=yes"))H0b(function(){f()}),M.moveTo((screen.width-A)/2,(screen.height-Q)/2)}; g.wT=function(M,f,A,Q,N,Y,I,D,E,t,v,p){M=M.charAt(0)+M.substring(1).toLowerCase();A=A.charAt(0)+A.substring(1).toLowerCase();if(f==="0"||f==="-1")f=null;if(Q==="0"||Q==="-1")Q=null;var h=v.T(),S=h.userDisplayName&&g.dt(h);g.O.call(this,{S:"div",Ai:["ytp-button","ytp-sb"],L:[{S:"div",Y:"ytp-sb-subscribe",D:S?{title:g.aC("Subscribe as $USER_NAME",{USER_NAME:h.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":EA(h),"data-tooltip-opaque":String(g.Ps(h)),tabindex:"0",role:"button"}: {"aria-label":"Subscribe to channel"},L:[{S:"div",Y:"ytp-sb-text",L:[{S:"div",Y:"ytp-sb-icon"},M]},f?{S:"div",Y:"ytp-sb-count",Ix:f}:""]},{S:"div",Y:"ytp-sb-unsubscribe",D:S?{title:g.aC("Subscribed as $USER_NAME",{USER_NAME:h.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":EA(h),"data-tooltip-opaque":String(g.Ps(h)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},L:[{S:"div",Y:"ytp-sb-text",L:[{S:"div",Y:"ytp-sb-icon"},A]},Q?{S:"div",Y:"ytp-sb-count", Ix:Q}:""]}],D:{"aria-live":"polite"}});var L=this;this.channelId=I;this.U=v;this.j=p;var a=this.H7("ytp-sb-subscribe"),q=this.H7("ytp-sb-unsubscribe");Y&&g.tZ(this.element,"ytp-sb-classic");if(N){D?this.K():this.Z();var m=function(){if(h.jk){var u=L.channelId;if(E||t){var z={c:u};var e;g.Wh.isInitialized()&&(e=$aD(z));z=e||"";if(e=v.getVideoData())if(e=e.subscribeCommand){var G=v.YI();G?(Kp(G,e,{botguardResponse:z,feature:E}),v.T0("SUBSCRIBE",u)):g.jZ(Error("No innertube service available when updating subscriptions."))}else g.jZ(Error("No subscribe command in videoData.")); else g.jZ(Error("No video data available when updating subscription."))}q.focus();q.removeAttribute("aria-hidden");a.setAttribute("aria-hidden","true")}else J8t(g.wt(L.U.T()),"sb_button",L.C)},R=function(){var u=L.channelId; if(E||t){var z=g.F(v.getVideoData());Kp(g.F(v.YI()),z.unsubscribeCommand,{feature:E});v.T0("UNSUBSCRIBE",u)}a.focus();a.removeAttribute("aria-hidden");q.setAttribute("aria-hidden","true")}; this.J(a,"click",m);this.J(q,"click",R);this.J(a,"keypress",function(u){u.keyCode===13&&m(u)}); this.J(q,"keypress",function(u){u.keyCode===13&&R(u)}); this.J(v,"SUBSCRIBE",this.K);this.J(v,"UNSUBSCRIBE",this.Z);this.j&&S&&(DEd(v),Bj(v,a,this),Bj(v,q,this))}else g.tZ(a,"ytp-sb-disabled"),g.tZ(q,"ytp-sb-disabled")}; woD=function(M){g.O.call(this,{S:"div",Y:"ytp-title-channel",L:[{S:"div",Y:"ytp-title-beacon"},{S:"a",Y:"ytp-title-channel-logo",D:{href:"{{channelLink}}",target:M.T().B,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{S:"div",Y:"ytp-title-expanded-overlay",D:{"aria-hidden":"{{flyoutUnfocusable}}"},L:[{S:"div",Y:"ytp-title-expanded-heading",L:[{S:"div",Y:"ytp-title-expanded-title",L:[{S:"a",Ix:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:M.T().B,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{S:"div",Y:"ytp-title-expanded-subtitle",Ix:"{{expandedSubtitle}}",D:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var f=this;this.api=M;this.channel=this.H7("ytp-title-channel");this.Z=this.H7("ytp-title-channel-logo");this.channelName=this.H7("ytp-title-expanded-title");this.G=this.H7("ytp-title-expanded-overlay");this.j=this.K=this.subscribeButton=null;this.C=!1;M.createClientVe(this.Z,this,36925);M.createClientVe(this.channelName,this, 37220);g.Ps(this.api.T())&&KKb(this);this.J(M,"videodatachange",this.Nu);this.J(M,"videoplayerreset",this.Nu);this.J(this.channelName,"click",function(A){f.api.logClick(f.channelName);g.Q4(window,GBz(f));A.preventDefault()}); this.J(this.Z,"click",this.bJY);this.Nu()}; l0T=function(M){if(!M.api.T().oE){var f=g.F(M.api.getVideoData()),A=new g.wT("Subscribe",null,"Subscribed",null,!0,!1,f.QM,f.subscribed,"channel_avatar",null,M.api,!0);M.api.createServerVe(A.element,M);var Q;M.api.setTrackingParams(A.element,((Q=f.subscribeButtonRenderer)==null?void 0:Q.trackingParams)||null);M.J(A.element,"click",function(){M.api.logClick(A.element)}); M.subscribeButton=A;g.d(M,M.subscribeButton);M.subscribeButton.pJ(M.G);M.subscribeButton.hide();var N=new WK0(M.api);M.K=N;g.d(M,N);N.pJ(M.G);N.hide();M.J(M.api,"SUBSCRIBE",function(){f.E6&&(N.show(),M.api.logVisibility(N.element,!0))}); M.J(M.api,"UNSUBSCRIBE",function(){f.E6&&(N.hide(),M.api.logVisibility(N.element,!1),OLb(N,!1))})}}; KKb=function(M){var f=M.api.T();l0T(M);M.updateValue("flyoutUnfocusable","true");M.updateValue("channelTitleFocusable","-1");M.updateValue("shouldHideExpandedTitleForA11y","true");M.updateValue("shouldHideExpandedSubtitleForA11y","true");f.Z||f.YO||(M.J(M.channel,"mouseenter",M.o6),M.J(M.channel,"mouseleave",M.MH),M.J(M.channel,"focusin",M.o6),M.J(M.channel,"focusout",function(A){M.channel.contains(A.relatedTarget)||M.MH()})); M.j=new g.MY(function(){M.isExpanded()&&(M.api.logVisibility(M.channelName,!1),M.subscribeButton&&(M.subscribeButton.hide(),M.api.logVisibility(M.subscribeButton.element,!1)),M.K&&(M.K.hide(),M.api.logVisibility(M.K.element,!1)),M.channel.classList.remove("ytp-title-expanded"),M.channel.classList.add("ytp-title-show-collapsed"))},500); g.d(M,M.j);M.J(M.channel,MeN,function(){fYT(M)}); M.J(M.api,"onHideControls",M.yc);M.J(M.api,"appresize",M.yc);M.J(M.api,"fullscreentoggled",M.yc)}; fYT=function(M){M.channel.classList.remove("ytp-title-show-collapsed");M.channel.classList.remove("ytp-title-show-expanded")}; AlX=function(M){var f=M.api.getPlayerSize();return g.Ps(M.api.T())&&f.width>=524}; GBz=function(M){var f=M.api.T(),A=g.F(M.api.getVideoData()),Q=g.td(f)+A.b8;g.AU(A)&&(Q="https://music.youtube.com"+A.b8);if(!g.Ps(f))return Q;f={};g.Lv(M.api,"addEmbedsConversionTrackingParams",[f]);return g.uj(Q,f)}; lf=function(M){var f=g.wx({"aria-haspopup":"true"});g.Gt.call(this,f,M);this.listen("keydown",this.K)}; ML=function(M,f){M.element.setAttribute("aria-haspopup",String(f))}; Q66=function(M,f){g.O.call(this,{S:"div",Y:"ytp-user-info-panel",D:{"aria-label":"User info"},L:M.T().jk&&!M.V("embeds_web_always_enable_signed_out_state")?[{S:"div",Y:"ytp-user-info-panel-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-user-info-panel-content",L:[{S:"div",Y:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable}}",role:"text"},Ix:"{{watchingAsUsername}}"},{S:"div",Y:"ytp-user-info-panel-info",D:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Ix:"{{watchingAsEmail}}"}]}]:[{S:"div",Y:"ytp-user-info-panel-icon", Ix:"{{icon}}"},{S:"div",Y:"ytp-user-info-panel-content",L:[{S:"div",L:[{S:"text",D:{tabIndex:"{{userInfoFocusable}}"},Ix:"Signed out"}]},{S:"div",Y:"ytp-user-info-panel-login",L:[{S:"a",D:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Ix:M.T().oE?"":"Sign in on YouTube"}]}]}]});this.G0=M;this.K=f;M.T().jk||M.T().oE||this.J(this.H7("ytp-user-info-panel-login"),"click",this.Rg);this.closeButton=new g.O({S:"button",Ai:["ytp-collapse","ytp-button"],D:{title:"Close"},L:[g.zo()]});this.closeButton.pJ(this.element); g.d(this,this.closeButton);this.J(window,"blur",this.hide);this.J(document,"click",this.Va);this.Nu()}; IYb=function(M,f,A){g.Ra.call(this,M);this.uI=f;this.N3=A;this.getVideoUrl=new lf(6);this.XP=new lf(5);this.qE=new lf(4);this.lI=new lf(3);this.TA=new g.Gt(g.wx({href:"{{href}}",target:this.U.T().B},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.Gt(g.wx(),1,"Stats for nerds");this.dh=new g.Ci({S:"div",Ai:["ytp-copytext","ytp-no-contextmenu"],D:{draggable:"false",tabindex:"1"},Ix:"{{text}}"});this.im=new cz(this.U,this.dh);this.Tw=this.ly=null;g.Ps(this.U.T())&&(this.closeButton= new g.O({S:"button",Ai:["ytp-collapse","ytp-button"],D:{title:"Close"},L:[g.zo()]}),g.d(this,this.closeButton),this.closeButton.pJ(this.element),this.closeButton.listen("click",this.Ob,this));g.Ps(this.U.T())&&(this.DM=new g.Gt(g.wx(),8,"Account"),g.d(this,this.DM),this.Sc(this.DM,!0),this.DM.listen("click",this.Z3i,this),M.createClientVe(this.DM.element,this.DM,137682));this.U.T().I8&&(this.w5=new Dc("Loop",7),g.d(this,this.w5),this.Sc(this.w5,!0),this.w5.listen("click",this.npO,this),M.createClientVe(this.w5.element, this.w5,28661));g.d(this,this.getVideoUrl);this.Sc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.S$3,this);M.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.d(this,this.XP);this.Sc(this.XP,!0);this.XP.listen("click",this.APO,this);M.createClientVe(this.XP.element,this.XP,28660);g.d(this,this.qE);this.Sc(this.qE,!0);this.qE.listen("click",this.pX_,this);M.createClientVe(this.qE.element,this.qE,28658);g.d(this,this.lI);this.Sc(this.lI,!0);this.lI.listen("click",this.zRO, this);g.d(this,this.TA);this.Sc(this.TA,!0);this.TA.listen("click",this.wv3,this);g.d(this,this.showVideoInfo);this.Sc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.IaO,this);g.d(this,this.dh);this.dh.listen("click",this.sx_,this);g.d(this,this.im);f=document.queryCommandSupported&&document.queryCommandSupported("copy");K6T("Chromium")>=43&&(f=!0);K6T("Firefox")<=40&&(f=!1);f&&(this.ly=new g.O({S:"textarea",Y:"ytp-html5-clipboard",D:{readonly:"",tabindex:"-1"}}),g.d(this,this.ly), this.ly.pJ(this.element));var Q;(Q=this.DM)==null||Q.setIcon(iHb());var N;(N=this.w5)==null||N.setIcon({S:"svg",D:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.lI.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{"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.TA.setIcon(mrt());this.showVideoInfo.setIcon(suf());this.J(M,"onLoopChange",this.onLoopChange);this.J(M,"videodatachange",this.onVideoDataChange);Njb(this);Y26(this,g.F(this.U.getVideoData()))}; f1=function(M,f){var A=!1;if(M.ly){var Q=M.ly.element;Q.value=f;Q.select();try{A=document.execCommand("copy")}catch(N){}}A?M.uI.fk():(M.dh.Xk(f,"text"),g.iz(M.uI,M.im),h$(M.dh.element),M.ly&&(M.ly=null,Njb(M)));return A}; Y26=function(M,f){var A=M.U.T(),Q=M.U.getPresentingPlayerType()===2,N=!Q||f.isListed;N=!A.KJ&&!!f.videoId&&N;A.playerStyle!=="play"?A="https://support.google.com/youtube/?p=report_playback":(A={contact_type:"playbackissue",html5:1,ei:f.eventId,v:f.videoId,p:"movies_playback"},f.Z&&(A.fmt=f.Z.itag),f.clientPlaybackNonce&&(A.cpn=f.clientPlaybackNonce),f.partnerId&&(A.partnerid=f.partnerId),A=g.uj("//support.google.com/googleplay/",A));M.qE.aE(N&&f.allowEmbed);M.getVideoUrl.aE(N);M.XP.aE(N&&!f.isLivePlayback); M.TA.Xk(A,"href");var Y;(Y=M.w5)==null||Y.aE(!f.isLivePlayback&&!Q);var I;(I=M.DM)==null||I.aE(!Q)}; Njb=function(M){var f=!!M.ly;g.Kv(M.lI,f?"Copy debug info":"Get debug info");ML(M.lI,!f);g.Kv(M.qE,f?"Copy embed code":"Get embed code");ML(M.qE,!f);g.Kv(M.getVideoUrl,f?"Copy video URL":"Get video URL");ML(M.getVideoUrl,!f);g.Kv(M.XP,f?"Copy video URL at current time":"Get video URL at current time");ML(M.XP,!f);M.qE.setIcon(f?aNX():null);M.getVideoUrl.setIcon(f?gb():null);M.XP.setIcon(f?gb():null)}; Tjf=function(M){return g.Ps(M.U.T())?M.DM:M.w5}; Evf=function(M,f){g.Bz.call(this,M);this.N3=f;this.C=new g.yK(this);this.Er=new g.MY(this.fai,1E3,this);this.KJ=this.j=null;g.d(this,this.C);g.d(this,this.Er);f=this.U.T();M.createClientVe(this.element,this,28656);g.tZ(this.element,"ytp-contextmenu");this.U.T().experiments.X3("delhi_modern_web_player")&&g.Q5(f)&&g.tZ(this.element,"ytp-delhi-modern-contextmenu");DG6(this);this.hide()}; DG6=function(M){g.u$(M.C);var f=M.U.T();f.playerStyle==="gvn"||f.Z||f.YO||(f=M.U.ax(),M.C.J(f,"contextmenu",M.xuu),M.C.J(f,"touchstart",M.onTouchStart,null,!0),M.C.J(f,"touchmove",M.fm,null,!0),M.C.J(f,"touchend",M.fm,null,!0))}; teX=function(M){M.U.isFullscreen()?g.$X(M.U,M.element,10):M.pJ(OX(M).body)}; A5=function(M,f,A){A=A===void 0?240:A;g.O.call(this,{S:"button",Ai:["ytp-button","ytp-copylink-button"],D:{title:"{{title-attr}}","data-tooltip-opaque":String(g.Ps(M.T()))},L:[{S:"div",Y:"ytp-copylink-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-copylink-title",Ix:"Copy link",D:{"aria-hidden":"true"}}]});this.api=M;this.K=f;this.Z=A;this.visible=!1;this.tooltip=this.K.Wu();f=M.T();this.tooltip.element.setAttribute("aria-live","polite");g.Sb(this.element,"ytp-show-copylink-title",g.Ps(f));M.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.J(M,"videodatachange",this.Nu);this.J(M,"videoplayerreset",this.Nu);this.J(M,"appresize",this.Nu);this.Nu();this.addOnDisposeCallback(g.gx(this.tooltip,this.element))}; vvb=function(M){var f=M.api.T(),A=g.F(M.api.getVideoData()),Q=M.api.ax().getPlayerSize().width;f=f.j;return!!A.videoId&&Q>=M.Z&&A.G$&&!g.fv(A)&&!M.api.isEmbedsShortsMode()&&!f}; pqb=function(M){M.updateValue("icon",HO());if(M.api.T().Z)M.tooltip.pA(M.element,"Link copied to clipboard");else{M.updateValue("title-attr","Link copied to clipboard");M.tooltip.EJ();M.tooltip.pA(M.element);var f=M.listen("mouseleave",function(){M.Hv(f);M.Nu();M.tooltip.CI()})}}; hJb=function(M,f){return g.n(function(A){if(A.Z==1)return g.HX(A,2),g.r(A,navigator.clipboard.writeText(f),4);if(A.Z!=2)return A.return(!0);g.id(A);var Q=A.return,N=!1,Y=g.MQ("TEXTAREA");Y.value=f;Y.setAttribute("readonly","");var I=M.api.getRootNode();I.appendChild(Y);if(KH){var D=window.getSelection();D.removeAllRanges();var E=g.F(document.createRange());E.selectNodeContents(Y);D.addRange(E);Y.setSelectionRange(0,f.length)}else Y.select();try{N=document.execCommand("copy")}catch(t){}I.removeChild(Y); return Q.call(A,N)})}; S2z=function(M){g.O.call(this,{S:"div",Y:"ytp-doubletap-ui-legacy",L:[{S:"div",Y:"ytp-doubletap-fast-forward-ve"},{S:"div",Y:"ytp-doubletap-rewind-ve"},{S:"div",Y:"ytp-doubletap-static-circle",L:[{S:"div",Y:"ytp-doubletap-ripple"}]},{S:"div",Y:"ytp-doubletap-overlay-a11y"},{S:"div",Y:"ytp-doubletap-seek-info-container",L:[{S:"div",Y:"ytp-doubletap-arrows-container",L:[{S:"span",Y:"ytp-doubletap-base-arrow"},{S:"span",Y:"ytp-doubletap-base-arrow"},{S:"span",Y:"ytp-doubletap-base-arrow"}]},{S:"div", Y:"ytp-doubletap-tooltip",L:[{S:"div",Y:"ytp-seek-icon-text-container",L:[{S:"div",Y:"ytp-seek-icon",Ix:"{{seekIcon}}"},{S:"div",Y:"ytp-chapter-seek-text-legacy",Ix:"{{seekText}}"}]},{S:"div",Y:"ytp-doubletap-tooltip-label",Ix:"{{seekTime}}"}]}]}]});this.U=M;this.C=new g.MY(this.show,10,this);this.Z=new g.MY(this.hide,700,this);this.W=this.j=0;this.Er=this.G=!1;this.K=this.H7("ytp-doubletap-static-circle");g.d(this,this.C);g.d(this,this.Z);this.hide();this.X=this.H7("ytp-doubletap-fast-forward-ve"); this.B=this.H7("ytp-doubletap-rewind-ve");this.U.createClientVe(this.X,this,28240);this.U.createClientVe(this.B,this,28239);this.U.logVisibility(this.X,!0);this.U.logVisibility(this.B,!0);this.G=M.V("web_show_cumulative_seek_time");this.Er=M.V("web_center_static_circles")}; L4X=function(M,f){f=g.aC("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:f.toString()});M.updateValue("seekTime",f)}; ovb=function(M){s3.call(this,M,!1,!0);this.P7=[];this.oE=[];this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.z0=new g.O({S:"div",Y:"ytp-featured-product-open-in-new"});g.d(this,this.z0);this.countdownTimer=new g.O({S:"text",Y:"ytp-featured-product-countdown",Ix:"{{content}}"});this.countdownTimer.hide();g.d(this,this.countdownTimer);this.Z=new g.O({S:"div",Y:"ytp-featured-product-trending",L:[{S:"div",Y:"ytp-featured-product-trending-icon"},{S:"text",Y:"ytp-featured-product-trending-text", Ix:"{{trendingOffer}}"}]});this.Z.hide();g.d(this,this.Z);this.overflowButton=new g.O({S:"button",Ai:["ytp-featured-product-overflow-icon","ytp-button"],D:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.W=new g.O({S:"text",Y:"ytp-featured-product-exclusive-countdown",Ix:"{{content}}",D:{id:"exclusiveCountdown","aria-hidden":"true"}});this.W.hide();g.d(this,this.W);this.G=new g.O({S:"div",Y:"ytp-featured-product-exclusive-container",D:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, L:[{S:"div",Y:"ytp-featured-product-exclusive-badge-container",L:[{S:"div",Y:"ytp-featured-product-exclusive-badge",L:[{S:"text",Y:"ytp-featured-product-exclusive-badge-text",Ix:"{{exclusive}}",D:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.W]});this.G.hide();g.d(this,this.G);this.banner=new g.O({S:"a",Y:"ytp-featured-product-container",L:[{S:"div",Y:"ytp-featured-product-thumbnail",L:[{S:"img",D:{src:"{{thumbnail}}"}},this.z0]},{S:"div",Y:"ytp-featured-product-details",L:[{S:"text",Y:"ytp-featured-product-title", Ix:"{{title}}"},this.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",Y:"ytp-featured-product-price-container",D:{"aria-label":"{{priceA11yText}}"},L:[{S:"text",Y:"ytp-featured-product-price-when-promotion-text-enabled",Ix:"{{price}}",D:{"aria-hidden":"true"}},{S:"text",Y:"ytp-featured-product-promotion-text",Ix:"{{promotionText}}",D:{"aria-hidden":"true"}}]}:{S:"div",D:{"aria-label":"{{priceA11yText}}"},L:[{S:"text",Y:"ytp-featured-product-price",Ix:"{{price}}", D:{"aria-hidden":"true"}},{S:"text",Y:"ytp-featured-product-sales-original-price",Ix:"{{salesOriginalPrice}}",D:{"aria-hidden":"true"}},{S:"text",Y:"ytp-featured-product-price-drop-reference-price",Ix:"{{priceDropReferencePrice}}",D:{"aria-hidden":"true"}}]},this.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",Y:"ytp-featured-product-when-promotion-text-enabled",L:[{S:"text",Y:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Ix:"{{affiliateDisclaimer}}"}, this.Z,{S:"text",Y:"ytp-featured-product-vendor-when-promotion-text-enabled",Ix:"{{vendor}}"}]}:{S:"div",L:[{S:"text",Y:"ytp-featured-product-affiliate-disclaimer",Ix:"{{affiliateDisclaimer}}"},this.U.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.G:null,this.Z,{S:"text",Y:"ytp-featured-product-vendor",Ix:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.d(this,this.banner);this.banner.pJ(this.j.element);this.J(this.U,g.EW("featured_product"),this.rXx);this.J(this.U, g.tf("featured_product"),this.MC);this.J(this.U,"videodatachange",this.onVideoDataChange);this.J(this.overflowButton.element,"click",this.OS);this.J(M,"featuredproductdismissed",this.z1)}; Cxe=function(M){var f,A;M=(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:A.itemData;var Q,N,Y;return(M==null||!M.affiliateDisclaimer)&&(M==null?0:(Q=M.exclusivesData)==null?0:Q.exclusiveOfferLabelText)&&(M==null?0:(N=M.exclusivesData)==null?0:N.expirationTimestampMs)&&(M==null?0:(Y=M.exclusivesData)==null?0:Y.exclusiveOfferCountdownText)?!0:!1}; Ve0=function(M){var f,A,Q,N,Y=(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:(Q=A.itemData)==null?void 0:(N=Q.exclusivesData)==null?void 0:N.expirationTimestampMs;f=(Number(Y)-Date.now())/1E3;if(f>0){if(f<604800){var I,D,E,t;A=(I=M.K)==null?void 0:(D=I.bannerData)==null?void 0:(E=D.itemData)==null?void 0:(t=E.exclusivesData)==null?void 0:t.exclusiveOfferCountdownText;if(A!==void 0)for(I=Date.now(),D=g.V(A),E=D.next();!E.done;E=D.next())if(E=E.value,E!==void 0&&E.text!==void 0&&(t=Number(E.textDisplayStartTimestampMs), !isNaN(t)&&I>=t)){E.insertCountdown?(f=E.text.replace(/\$0/,String(Z1({seconds:f}))),M.W.Xk(f)):M.W.Xk(E.text);M.W.show();break}}var v,p,h,S;M.G.update({exclusive:(v=M.K)==null?void 0:(p=v.bannerData)==null?void 0:(h=p.itemData)==null?void 0:(S=h.exclusivesData)==null?void 0:S.exclusiveOfferLabelText});M.G.show();Q3(M);var L;(L=M.Yp)==null||L.start()}else UGf(M)}; UGf=function(M){var f;(f=M.Yp)==null||f.stop();M.W.hide();M.G.hide();NL(M)}; aYd=function(M){var f,A,Q=(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:A.itemData;return M.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(Q==null||!Q.priceReplacementText)&&(Q==null?0:Q.promotionText)?Q==null?void 0:Q.promotionText.content:null}; q2f=function(M){var f,A,Q=(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:A.itemData,N,Y;if(!(Q!=null&&Q.priceReplacementText||M.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(Q==null?0:(N=Q.dealsData)==null?0:(Y=N.sales)==null?0:Y.originalPrice)){var I,D;return Q==null?void 0:(I=Q.dealsData)==null?void 0:(D=I.sales)==null?void 0:D.originalPrice}return null}; HTX=function(M){var f,A,Q=(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:A.itemData,N,Y,I,D;if(!((Q==null?0:Q.priceReplacementText)||M.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(Q==null?0:(N=Q.dealsData)==null?0:(Y=N.sales)==null?0:Y.originalPrice))&&(Q==null?0:(I=Q.dealsData)==null?0:(D=I.priceDrop)==null?0:D.referencePrice)){var E,t;return Q==null?void 0:(E=Q.dealsData)==null?void 0:(t=E.priceDrop)==null?void 0:t.referencePrice}return null}; mGX=function(M){var f,A,Q=(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:A.itemData;if(Q==null?0:Q.priceReplacementText)return Q==null?void 0:Q.priceReplacementText;if((Q==null?0:Q.promotionText)&&M.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var N;return(Q==null?void 0:Q.price)+" "+(Q==null?void 0:(N=Q.promotionText)==null?void 0:N.content)}var Y,I;if(Q==null?0:(Y=Q.dealsData)==null?0:(I=Y.sales)==null?0:I.originalPrice){var D,E;return Q==null?void 0:(D=Q.dealsData)== null?void 0:(E=D.sales)==null?void 0:E.salesPriceAccessibilityLabel}var t,v;if(Q==null?0:(t=Q.dealsData)==null?0:(v=t.priceDrop)==null?0:v.referencePrice){var p,h;return(Q==null?void 0:Q.price)+" "+(Q==null?void 0:(p=Q.dealsData)==null?void 0:(h=p.priceDrop)==null?void 0:h.referencePrice)}return Q==null?void 0:Q.price}; s69=function(M){if(M.U.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var f,A,Q;return M.Z.B7?null:(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:(Q=A.itemData)==null?void 0:Q.vendorName}var N,Y,I,D,E,t;return M.Z.B7||M.G.B7||((N=M.K)==null?0:(Y=N.bannerData)==null?0:(I=Y.itemData)==null?0:I.affiliateDisclaimer)?null:(D=M.K)==null?void 0:(E=D.bannerData)==null?void 0:(t=E.itemData)==null?void 0:t.vendorName}; RJf=function(M,f){YU(M);if(f){var A=g.Te.getState().entities;A=Qd(A,"featuredProductsEntity",f);if(A!=null&&A.productsData){f=[];A=g.V(A.productsData);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var N=void 0;if((N=Q)!=null&&N.identifier&&Q.featuredSegments){M.P7.push(Q);var Y=void 0;N=g.V((Y=Q)==null?void 0:Y.featuredSegments);for(Y=N.next();!Y.done;Y=N.next()){var I=Y.value;Y=clt(I.startTimeSec);Y!==void 0&&(I=clt(I.endTimeSec),f.push(new g.T1(Y*1E3,I===void 0?0x7ffffffffffff:I*1E3,{id:Q.identifier, namespace:"featured_product"})))}}}M.U.L3(f)}}}; NL=function(M){if(M.trendingOfferEntityKey){var f=g.Te.getState().entities;if(f=Qd(f,"trendingOfferEntity",M.trendingOfferEntityKey)){var A,Q,N;f.encodedSkuId!==((A=M.K)==null?void 0:(Q=A.bannerData)==null?void 0:(N=Q.itemData)==null?void 0:N.encodedOfferSkuId)?Q3(M):(M.Z.update({trendingOffer:f.shortLabel+" \u2022 "+f.countLabel}),M.Z.show(),M.banner.update({vendor:s69(M)}))}else Q3(M)}else Q3(M)}; Q3=function(M){M.Z.hide();M.banner.update({vendor:s69(M)})}; YU=function(M){M.P7=[];M.MC();M.U.GU("featured_product")}; gv0=function(M){var f,A,Q,N,Y=(f=M.K)==null?void 0:(A=f.bannerData)==null?void 0:(Q=A.itemData)==null?void 0:(N=Q.hiddenProductOptions)==null?void 0:N.dropTimestampMs;f=(Number(Y)-Date.now())/1E3;M.countdownTimer.Xk(Z1({seconds:f}));if(f>0){var I;(I=M.zt)==null||I.start()}}; BjN=function(M){var f;(f=M.zt)==null||f.stop();M.countdownTimer.hide()}; clt=function(M){if(M!==void 0&&M.trim()!==""&&(M=Math.trunc(Number(M.trim())),!(isNaN(M)||M<0)))return M}; uZz=function(M,f,A){g.O.call(this,{S:"div",Ai:["ytp-info-panel-action-item"],L:[{S:"div",Y:"ytp-info-panel-action-item-disclaimer",Ix:"{{disclaimer}}"},{S:"a",Ai:["ytp-info-panel-action-item-button","ytp-button"],D:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},L:[{S:"div",Y:"ytp-info-panel-action-item-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-info-panel-action-item-label",Ix:"{{label}}"}]}]});this.U=M;this.K=A;this.disclaimer=this.H7("ytp-info-panel-action-item-disclaimer");this.button= this.H7("ytp-info-panel-action-item-button");this.hh=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);M="";A=g.b(f==null?void 0:f.onTap,yv);var Q=g.b(A,g.db);this.hh=!1;Q?(M=Q.url||"",M.startsWith("//")&&(M="https:"+M),this.hh=!0,g.we(this.button,g.Kx(M))):(Q=g.b(A,iTd))&&!this.K?((M=Q.phoneNumbers)&&M.length>0?(M="sms:"+M[0],Q.messageText&&(M+="?&body="+encodeURI(Q.messageText))):M="",this.hh=!0,g.we(this.button,g.Kx(M,[xGt]))):(A=g.b(A,ZTN))&&!this.K&&(M=A.phoneNumber? "tel:"+A.phoneNumber:"",this.hh=!0,g.we(this.button,g.Kx(M,[rl9])));var N;if(A=(N=f.disclaimerText)==null?void 0:N.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var Y;this.update({label:(Y=f.bodyText)==null?void 0:Y.content,icon:xo(),disclaimer:A})}else{this.disclaimer.style.display="none";var I;this.update({label:(I=f.bodyText)==null?void 0:I.content,icon:xo()})}this.U.setTrackingParams(this.element,f.trackingParams||null);this.hh&&(this.Z={externalLinkData:{url:M}})}; zJz=function(M,f){var A=hS();g.Wj.call(this,M,{S:"div",Y:"ytp-info-panel-detail-skrim",L:[{S:"div",Y:"ytp-info-panel-detail",D:{role:"dialog",id:A},L:[{S:"div",Y:"ytp-info-panel-detail-header",L:[{S:"div",Y:"ytp-info-panel-detail-title",Ix:"{{title}}"},{S:"button",Ai:["ytp-info-panel-detail-close","ytp-button"],D:{"aria-label":"Close"},L:[g.Re()]}]},{S:"div",Y:"ytp-info-panel-detail-body",Ix:"{{body}}"},{S:"div",Y:"ytp-info-panel-detail-items"}]}]},250);this.K=f;this.items=this.H7("ytp-info-panel-detail-items"); this.j=new g.yK(this);this.itemData=[];this.C=A;this.J(this.H7("ytp-info-panel-detail-close"),"click",this.fk);this.J(this.H7("ytp-info-panel-detail-skrim"),"click",this.fk);this.J(this.H7("ytp-info-panel-detail"),"click",function(Q){Q.stopPropagation()}); g.d(this,this.j);this.U.createServerVe(this.element,this,!0);this.J(M,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",M.getVideoData());this.hide()}; Px6=function(M,f){M=g.V(M.itemData);for(var A=M.next();!A.done;A=M.next())A=A.value,A.U.logVisibility(A.element,f)}; $GU=function(M,f){g.O.call(this,{S:"div",Y:"ytp-info-panel-preview",D:{"aria-live":"assertive","aria-atomic":"true","aria-owns":f.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.Ps(M.T()))},L:[{S:"div",Y:"ytp-info-panel-preview-text",Ix:"{{text}}"},{S:"div",Y:"ytp-info-panel-preview-chevron",Ix:"{{chevron}}"}]});var A=this;this.U=M;this.Oq=this.K=this.videoId=null;this.j=this.showControls=this.Z=!1;this.J(this.element,"click",function(){M.logClick(A.element);M.y3();Xf(f)}); this.fade=new g.I1(this,250,!1,100);g.d(this,this.fade);this.U.createServerVe(this.element,this,!0);this.J(M,"videodatachange",this.onVideoDataChange);this.J(M,"presentingplayerstatechange",this.YM);this.J(this.U,"paidcontentoverlayvisibilitychange",this.Tp);this.J(this.U,"infopaneldetailvisibilitychange",this.Tp);var Q=M.getVideoData()||{};nv9(Q)&&j6d(this,Q);this.J(M,"onShowControls",this.wg);this.J(M,"onHideControls",this.vH)}; j6d=function(M,f){if(!f.Yx||!M.U.Rk()){var A=f.zD||1E4,Q=nv9(f);M.K?f.videoId&&f.videoId!==M.videoId&&(g.QI(M.K),M.videoId=f.videoId,Q?(F4z(M,A,f),M.q5()):(M.fk(),M.K.dispose(),M.K=null)):Q&&(f.videoId&&(M.videoId=f.videoId),F4z(M,A,f),M.q5())}}; nv9=function(M){var f,A,Q,N;return!!((f=M.SO)==null?0:(A=f.title)==null?0:A.content)||!!((Q=M.SO)==null?0:(N=Q.bodyText)==null?0:N.content)}; F4z=function(M,f,A){M.K&&M.K.dispose();M.K=new g.MY(M.xXx,f,M);g.d(M,M.K);var Q;f=((Q=A.SO)==null?void 0:Q.trackingParams)||null;M.U.setTrackingParams(M.element,f);var N;var Y,I;if(A==null?0:(Y=A.SO)==null?0:(I=Y.title)==null?0:I.content){var D;Q=(N=A.SO)==null?void 0:(D=N.title)==null?void 0:D.content;var E,t;if((E=A.SO)==null?0:(t=E.bodyText)==null?0:t.content)Q+=" \u2022 ";N=Q}else N="";var v,p;A=((v=A.SO)==null?void 0:(p=v.bodyText)==null?void 0:p.content)||"";M.update({text:N+A,chevron:g.cO()})}; ylb=function(M,f){M.K&&(g.J(f,8)?(M.Z=!0,M.q5(),M.K.start()):(g.J(f,2)||g.J(f,64))&&M.videoId&&(M.videoId=null))}; Ix=function(M){var f=null;try{f=M.toLocaleString("en",{style:"percent"})}catch(A){f=M.toLocaleString(void 0,{style:"percent"})}return f}; TV=function(M,f){var A=0;M=g.V(M);for(var Q=M.next();!(Q.done||Q.value.startTime>f);Q=M.next())A++;return A===0?A:A-1}; dGb=function(M,f){for(var A=0,Q=g.V(M),N=Q.next();!N.done;N=Q.next()){N=N.value;if(f=N.timeRangeStartMillis&&f0?f[0]:null;var A=g.XF("ytp-chrome-bottom"),Q=g.XF("ytp-ad-module");M.C=!(A==null||!A.contains(f));M.X=!(Q==null||!Q.contains(f));M.B=!(f==null||!f.hasAttribute("data-tooltip-target-fixed"));return f}; YV6=function(M,f,A){if(!M.G){if(f){M.tooltipRenderer=f;f=M.tooltipRenderer.text;var Q=!1,N;(f==null?0:(N=f.runs)==null?0:N.length)&&f.runs[0].text&&(M.update({title:f.runs[0].text.toString()}),Q=!0);g.KY(M.title,Q);f=M.tooltipRenderer.detailsText;N=!1;var Y;if((f==null?0:(Y=f.runs)==null?0:Y.length)&&f.runs[0].text){Q=f.runs[0].text.toString();Y=Q.indexOf("$TARGET_ICON");if(Y>-1)if(M.tooltipRenderer.targetId){f=[];Q=Q.split("$TARGET_ICON");var I=new g.SK({S:"span",Y:"ytp-promotooltip-details-icon", L:[Qwc[M.tooltipRenderer.targetId]]});g.d(M,I);for(var D=[],E=g.V(Q),t=E.next();!t.done;t=E.next())t=new g.SK({S:"span",Y:"ytp-promotooltip-details-component",Ix:t.value}),g.d(M,t),D.push(t);Q.length===2?(f.push(D[0].element),f.push(I.element),f.push(D[1].element)):Q.length===1&&(Y===0?(f.push(I.element),f.push(D[0].element)):(f.push(D[0].element),f.push(I.element)));Y=f.length?f:null}else Y=null;else Y=Q;if(Y){if(typeof Y!=="string")for(g.Qw(M.details),N=g.V(Y),Y=N.next();!Y.done;Y=N.next())M.details.appendChild(Y.value); else M.update({details:Y});N=!0}}g.KY(M.details,N);N=M.tooltipRenderer.acceptButton;Y=!1;var v,p,h;((v=g.b(N,g.kG))==null?0:(p=v.text)==null?0:(h=p.runs)==null?0:h.length)&&g.b(N,g.kG).text.runs[0].text&&(M.update({acceptButtonText:g.b(N,g.kG).text.runs[0].text.toString()}),Y=!0);g.KY(M.acceptButton,Y);v=M.tooltipRenderer.dismissButton;p=!1;var S,L,a;((S=g.b(v,g.kG))==null?0:(L=S.text)==null?0:(a=L.runs)==null?0:a.length)&&g.b(v,g.kG).text.runs[0].text&&(M.update({dismissButtonText:g.b(v,g.kG).text.runs[0].text.toString()}), p=!0);g.KY(M.dismissButton,p)}A&&(M.j=A);M.K=AP9(M);M.W=!1;M.U.T().V("web_player_hide_nitrate_promo_tooltip")||M.aE(!0);NSe(M);M.B7&&!M.Er&&(M.Er=!0,M.Ed.Eg(0));M.Z&&M.U.logVisibility(M.element,M.B7)}}; Sf=function(M){M.aE(!1);M.Z&&M.U.logVisibility(M.element,M.B7)}; Ia9=function(M){var f,A,Q,N=((f=g.b(M.acceptButton,g.kG))==null?void 0:(A=f.text)==null?void 0:(Q=A.runs)==null?void 0:Q.length)&&!!g.b(M.acceptButton,g.kG).text.runs[0].text,Y,I,D;f=((Y=g.b(M.dismissButton,g.kG))==null?void 0:(I=Y.text)==null?void 0:(D=I.runs)==null?void 0:D.length)&&!!g.b(M.dismissButton,g.kG).text.runs[0].text;return N||f}; NSe=function(M){var f;if(!(f=!M.K)){f=M.K;var A=window.getComputedStyle(f);f=A.display==="none"||A.visibility==="hidden"||f.getAttribute("aria-hidden")==="true"}if(f||M.U.isMinimized())M.aE(!1);else if(f=g.J9(M.K),f.width&&f.height){M.U.ws(M.element,M.K);var Q=M.U.ax().getPlayerSize().height;A=g.J9(M.H7("ytp-promotooltip-container")).height;M.C?M.element.style.top=Q-A-f.height-12+"px":M.B||(Q=M.U.GH().height-A-f.height-12,M.element.style.top=Q+"px");Q=M.H7("ytp-promotooltip-pointer");var N=g.Oc(M.K, M.U.getRootNode()),Y=Number(M.element.style.left.replace(/[^\d\.]/g,""));M=M.U.isFullscreen()?18:12;Q.style.left=N.x-Y+f.width/2-M+"px";Q.style.top=A+"px"}else M.aE(!1)}; L1=function(M){g.O.call(this,{S:"button",Ai:["ytp-replay-button","ytp-button"],D:{title:"Replay"},L:[g.rb()]});this.U=M;this.J(M,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Rt(M.getPlayerStateObject());Bj(this.U,this.element,this)}; ox=function(M,f){f=f===void 0?240:f;g.O.call(this,{S:"button",Ai:["ytp-button","ytp-search-button"],D:{title:"Search","data-tooltip-opaque":String(g.Ps(M.T()))},L:[{S:"div",Y:"ytp-search-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-search-title",Ix:"Search"}]});this.api=M;this.Z=f;this.visible=!1;this.updateValue("icon",{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{S:"path",Y:"ytp-svg-fill",D:{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"}}]}); M.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.K();this.J(M,"appresize",this.K);this.J(M,"videodatachange",this.K);Bj(M,this.element,this)}; C1=function(M){g.O.call(this,{S:"div",Y:"ytp-seek-overlay",L:[{S:"div",Ai:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],L:[{S:"div",Ai:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{S:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"32"},L:[{S:"path",D:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{S:"div",Y:"ytp-seek-overlay-duration",Ix:"{{durationBack}}"}]},{S:"div",Ai:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], L:[{S:"div",Y:"ytp-seek-overlay-duration",Ix:"{{durationForward}}"},{S:"div",Ai:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{S:"svg",D:{viewBox:"0 0 22 32",width:"22",height:"32"},L:[{S:"path",D:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{S:"div",Y:"ytp-seek-overlay-message",L:[{S:"div",Y:"ytp-seek-overlay-message-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-seek-overlay-message-text",Ix:"{{text}}"}]}]});var f=this;this.U=M;this.W=0;this.K="hidden"; this.Er=0;this.X=this.H7("ytp-seek-overlay-animation-back");this.B=this.H7("ytp-seek-overlay-animation-forward");this.KJ=this.H7("ytp-seek-overlay-message");this.G=new g.MY(function(){TS0(f)},g.CE(this.U.T().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.d(this,this.G);this.U.createClientVe(this.B,this,28240);this.U.createClientVe(this.X,this,28239);this.U.logVisibility(this.B,!0);this.U.logVisibility(this.X,!0);this.hide()}; Dtf=function(M,f){M.Z=M.j.animate([{offset:0,opacity:f,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});M.Z.addEventListener("finish",function(){M.Z=void 0;M.G.start();M.K="lingering"})}; Epe=function(M,f,A){A=A===void 0?!1:A;var Q=[],N={offset:0,transform:"translateX("+(M.C===-1?30:-30)+"px)"};A&&(N.opacity="0");Q.push(N);A&&Q.push({offset:.5,opacity:"1"});Q.push({offset:1,transform:"translateX(0)"});A=f.animate(Q,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});f.querySelector("path").animate([{offset:0,d:M.C===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:M.C===-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 A}; txt=function(M){if((0,g.W)()-M.Er>=(g.CE(M.U.T().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var f=M.j.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);f.classList.add("ytp-seek-overlay-arrow-additional");f.classList.remove("ytp-seek-overlay-arrow-persistent");M.j.appendChild(f);Epe(M,f,!0).addEventListener("finish",function(){f.remove()})}}; TS0=function(M,f,A){A=A===void 0?!0:A;M.Z=M.j.animate([{offset:0,opacity:f===void 0?1:f},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});A&&(M.Z.addEventListener("finish",function(){M.Z=void 0;vpt(M);M.hide()}),M.K="fading-out")}; pGU=function(M){var f=Number(getComputedStyle(M.j).opacity);M.Z.cancel();M.Z=void 0;return f}; vpt=function(M){M.W=0;M.K="hidden";M.C=void 0;M.j=void 0;M.Er=0;M.G.stop();M.Z=void 0}; hMc=function(M,f,A){M.updateValue("text",f);if(A){a:{switch(A){case "PREMIUM_STANDALONE":f=rOT();break a;case "PREMIUM_STANDALONE_CAIRO":f=u3d();break a}f=void 0}M.updateValue("icon",f)}f=g.V(M.KJ.getAnimations());for(A=f.next();!A.done;A=f.next())A.value.cancel();M.KJ.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){M.updateValue("text","");M.updateValue("icon","")})}; g.Uq=function(M,f,A,Q){Q=Q===void 0?240:Q;g.O.call(this,{S:"button",Ai:["ytp-button","ytp-share-button"],D:{title:"Share","aria-haspopup":"true","aria-owns":A.element.id,"data-tooltip-opaque":String(g.Ps(M.T()))},L:[{S:"div",Y:"ytp-share-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-share-title",Ix:"Share"}]});this.api=M;this.K=f;this.j=A;this.C=Q;this.Z=this.visible=!1;this.tooltip=this.K.Wu();M.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.J(M,"videodatachange",this.Nu); this.J(M,"videoplayerreset",this.Nu);this.J(M,"appresize",this.Nu);this.J(M,"presentingplayerstatechange",this.Nu);this.Nu();this.addOnDisposeCallback(g.gx(this.tooltip,this.element))}; SVU=function(M){var f=M.api.T(),A=g.F(M.api.getVideoData()),Q=g.Ps(f)&&g.zt(M.api)&&g.J(M.api.getPlayerStateObject(),128);f=f.j||f.disableSharing&&M.api.getPresentingPlayerType()!==2||!A.showShareButton||A.G$||Q||g.fv(A)||M.Z;Q=M.api.ax().getPlayerSize().width;return!!A.videoId&&Q>=M.C&&!f}; LZz=function(M,f){f.name!=="InvalidStateError"&&f.name!=="AbortError"&&(f.name==="NotAllowedError"?(M.K.y3(),Xf(M.j,M.element,!1)):g.jZ(f))}; Cnc=function(M,f){var A=hS(),Q=M.T();A={S:"div",Y:"ytp-share-panel",D:{id:hS(),role:"dialog","aria-labelledby":A},L:[{S:"div",Y:"ytp-share-panel-inner-content",L:[{S:"div",Y:"ytp-share-panel-title",D:{id:A},Ix:"Share"},{S:"a",Ai:["ytp-share-panel-link","ytp-no-contextmenu"],D:{href:"{{link}}",target:Q.B,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Ix:"{{linkText}}"},{S:"label",Y:"ytp-share-panel-include-playlist",L:[{S:"input",Y:"ytp-share-panel-include-playlist-checkbox",D:{type:"checkbox", checked:"true"}},"Include playlist"]},{S:"div",Y:"ytp-share-panel-loading-spinner",L:[pD()]},{S:"div",Y:"ytp-share-panel-service-buttons",Ix:"{{buttons}}"},{S:"div",Y:"ytp-share-panel-error",Ix:"An error occurred while retrieving sharing information. Please try again later."}]},{S:"button",Ai:["ytp-share-panel-close","ytp-button"],D:{title:"Close"},L:[g.Re()]}]};g.Wj.call(this,M,A,250);var N=this;this.moreButton=null;this.api=M;this.tooltip=f.Wu();this.j=[];this.G=this.H7("ytp-share-panel-inner-content"); this.closeButton=this.H7("ytp-share-panel-close");this.J(this.closeButton,"click",this.fk);this.addOnDisposeCallback(g.gx(this.tooltip,this.closeButton));this.C=this.H7("ytp-share-panel-include-playlist-checkbox");this.J(this.C,"click",this.Nu);this.K=this.H7("ytp-share-panel-link");this.addOnDisposeCallback(g.gx(this.tooltip,this.K));this.api.createClientVe(this.K,this,164503);this.J(this.K,"click",function(Y){Y.preventDefault();N.api.logClick(N.K);var I=N.api.getVideoUrl(!0,!0,!1,!1);I=opN(N,I); g.vp(I,N.api,Y)&&N.api.T0("SHARE_CLICKED")}); this.listen("click",this.hM);this.J(M,"videoplayerreset",this.hide);this.J(M,"fullscreentoggled",this.onFullscreenToggled);this.J(M,"onLoopRangeChange",this.du8);this.hide()}; aad=function(M,f){Ute(M);for(var A=f.links||f.shareTargets,Q=0,N={},Y=0;Y0&&!G&&!z?(u.length===2&&(u=["noreferrer"]),g.Q4(S,a,h,u[0]),S=Naz()):(q=R.join(","),cB()&&S.navigator&&S.navigator.standalone&&h&&h!="_self"?(q=g.MQ("A"),g.we(q,a),q.target=h,m&&(q.rel="noreferrer"),((L=L.attributionsrc)||L==="")&&q.setAttribute("attributionsrc",L),L=document.createEvent("MouseEvent"), L.initMouseEvent("click",!0,!0,S,1),q.dispatchEvent(L),S=Naz()):m?(S=g.Q4(S,"",h,q),L=g.WT(a),S&&(S.opener=null,L===""&&(L="javascript:''"),L='',L=fg(L),(a=S.document)&&a.write&&(a.write(Au(L)),a.close()))):((S=g.Q4(S,a,h,q))&&L.noopener&&(S.opener=null),S&&L.noreferrer&&(S.opener=null)));S&&(S.opener||(S.opener=window),S.focus());p.preventDefault()}}}(N)); N.JC.addOnDisposeCallback(g.gx(M.tooltip,N.JC.element));D==="Facebook"?M.api.createClientVe(N.JC.element,N.JC,164504):D==="Twitter"&&M.api.createClientVe(N.JC.element,N.JC,164505);M.J(N.JC.element,"click",function(v){return function(){M.api.logClick(v.JC.element)}}(N)); M.api.logVisibility(N.JC.element,!0);M.j.push(N.JC);Q++}}var E=f.more||f.moreLink,t=new g.O({S:"a",Ai:["ytp-share-panel-service-button","ytp-button"],L:[{S:"span",Y:"ytp-share-panel-service-button-more",L:[{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{S:"rect",D:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{S:"path",D:{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"}}]}]}],D:{href:E,target:"_blank",title:"More"}});t.listen("click",function(v){var p=E;M.api.logClick(M.moreButton.element);p=opN(M,p);g.vp(p,M.api,v)&&M.api.T0("SHARE_CLICKED")}); t.addOnDisposeCallback(g.gx(M.tooltip,t.element));M.api.createClientVe(t.element,t,164506);M.J(t.element,"click",function(){M.api.logClick(t.element)}); M.api.logVisibility(t.element,!0);M.j.push(t);M.moreButton=t;M.updateValue("buttons",M.j)}; opN=function(M,f){var A={};g.Ps(M.api.T())&&(g.Lv(M.api,"addEmbedsConversionTrackingParams",[A]),f=g.uj(f,A));return f}; Ute=function(M){for(var f=g.V(M.j),A=f.next();!A.done;A=f.next())A=A.value,A.detach(),g.hW(A);M.j=[]}; V3=function(M){return M===void 0||M.startSec===void 0||M.endSec===void 0?!1:!0}; qVX=function(M,f){M.startSec+=f;M.endSec+=f}; mtd=function(M){s3.call(this,M);this.Z=this.K=this.isContentForward=this.W=!1;HRD(this);this.J(this.U,"changeProductsInVideoVisibility",this.Adk);this.J(this.U,"videodatachange",this.onVideoDataChange)}; swc=function(M){M.G&&M.g_.element.removeChild(M.G.element);M.G=void 0}; RMz=function(M,f){return f.map(function(A){var Q,N;if((A=(Q=g.b(A,cPz))==null?void 0:(N=Q.thumbnail)==null?void 0:N.thumbnails)&&A.length!==0)return A[0].url}).filter(function(A){return A!==void 0}).map(function(A){A=new g.O({S:"img", Y:"ytp-suggested-action-product-thumbnail",D:{alt:"",src:A}});g.d(M,A);return A})}; gp0=function(M,f){M.isContentForward=f;g.Sb(M.badge.element,"ytp-suggested-action-badge-content-forward",f)}; ax=function(M){var f=M.isContentForward&&!M.Sf();g.Sb(M.badge.element,"ytp-suggested-action-badge-preview-collapsed",f&&M.K);g.Sb(M.badge.element,"ytp-suggested-action-badge-preview-expanded",f&&M.Z)}; qL=function(M,f,A){return new g.T1(M*1E3,f*1E3,{priority:9,namespace:A})}; BSU=function(M){M.U.GU("shopping_overlay_visible");M.U.GU("shopping_overlay_preview_collapsed");M.U.GU("shopping_overlay_preview_expanded");M.U.GU("shopping_overlay_expanded")}; HRD=function(M){M.J(M.U,g.EW("shopping_overlay_visible"),function(){M.Zy(!0)}); M.J(M.U,g.tf("shopping_overlay_visible"),function(){M.Zy(!1)}); M.J(M.U,g.EW("shopping_overlay_expanded"),function(){M.KJ=!0;m_(M)}); M.J(M.U,g.tf("shopping_overlay_expanded"),function(){M.KJ=!1;m_(M)}); M.J(M.U,g.EW("shopping_overlay_preview_collapsed"),function(){M.K=!0;ax(M)}); M.J(M.U,g.tf("shopping_overlay_preview_collapsed"),function(){M.K=!1;ax(M)}); M.J(M.U,g.EW("shopping_overlay_preview_expanded"),function(){M.Z=!0;ax(M)}); M.J(M.U,g.tf("shopping_overlay_preview_expanded"),function(){M.Z=!1;ax(M)})}; ZRd=function(M){g.O.call(this,{S:"div",Y:"ytp-shorts-title-channel",L:[{S:"a",Y:"ytp-shorts-title-channel-logo",D:{href:"{{channelLink}}",target:M.T().B,"aria-label":"{{channelLogoLabel}}"}},{S:"div",Y:"ytp-shorts-title-expanded-heading",L:[{S:"div",Y:"ytp-shorts-title-expanded-title",L:[{S:"a",Ix:"{{expandedTitle}}",D:{href:"{{channelTitleLink}}",target:M.T().B,tabIndex:"0"}}]}]}]});var f=this;this.api=M;this.K=this.H7("ytp-shorts-title-channel-logo");this.channelName=this.H7("ytp-shorts-title-expanded-title"); this.subscribeButton=null;M.createClientVe(this.K,this,36925);this.J(this.K,"click",function(A){f.api.logClick(f.K);g.Q4(window,iRX(f));A.preventDefault()}); M.createClientVe(this.channelName,this,37220);this.J(this.channelName,"click",function(A){f.api.logClick(f.channelName);g.Q4(window,iRX(f));A.preventDefault()}); xte(this);this.J(M,"videodatachange",this.Nu);this.J(M,"videoplayerreset",this.Nu);this.Nu()}; xte=function(M){if(!M.api.T().oE){var f=g.F(M.api.getVideoData()),A=new g.wT("Subscribe",null,"Subscribed",null,!0,!1,f.QM,f.subscribed,"channel_avatar",null,M.api,!0);M.api.createServerVe(A.element,M);var Q;M.api.setTrackingParams(A.element,((Q=f.subscribeButtonRenderer)==null?void 0:Q.trackingParams)||null);M.J(A.element,"click",function(){M.api.logClick(A.element)}); M.subscribeButton=A;g.d(M,M.subscribeButton);M.subscribeButton.pJ(M.element)}}; iRX=function(M){var f=M.api.T(),A=g.F(M.api.getVideoData());A=g.td(f)+A.b8;if(!g.Ps(f))return A;f={};g.Lv(M.api,"addEmbedsConversionTrackingParams",[f]);return g.uj(A,f)}; He=function(M){g.Wj.call(this,M,{S:"button",Ai:["ytp-skip-intro-button","ytp-popup","ytp-button"],L:[{S:"div",Y:"ytp-skip-intro-button-text",Ix:"Skip Intro"}]},100);var f=this;this.j=!1;this.K=new g.MY(function(){f.hide()},5E3); this.qX=this.wL=NaN;g.d(this,this.K);this.W=function(){f.show()}; this.G=function(){f.hide()}; this.C=function(){var A=f.U.getCurrentTime();A>f.wL/1E3&&A0?{S:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{S:"path",Ai:["ytp-circle-arrow","ytp-svg-fill"],D:{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"}}, {S:"text",Ai:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"7.05",y:"15.05"}}]}:{S:"svg",D:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{S:"path",Ai:["ytp-circle-arrow","ytp-svg-fill"],D:{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"}}, {S:"text",Ai:["ytp-jump-button-text","ytp-svg-fill"],D:{x:"6.5",y:"15"}}]}]});var A=this;this.U=M;this.K=f;this.Z=new g.MY(function(){A.j?(A.j=!1,A.Z.start()):A.element.classList.remove("ytp-jump-spin","backwards")},250); this.j=!1;(f=f>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var Q=g.aC(f?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.K).toString()});this.update({title:Q,"data-title-no-tooltip":Q,"aria-keyshortcuts":f?"\u2192":"\u2190"});this.C=this.element.querySelector(".ytp-jump-button-text");this.C.textContent=Math.abs(this.K).toString();this.listen("click",this.onClick,this);Bj(M,this.element, this)}; $te=function(M,f){f?M.element.classList.add("ytp-jump-button-enabled"):M.element.classList.remove("ytp-jump-button-enabled");M.U.logVisibility(M.element,f);M.U.EJ()}; ii=function(M,f){sq.call(this,M,f,"timedMarkerCueRange","View key moments");this.J(M,g.tf("timedMarkerCueRange"),this.z_);this.J(M,"updatemarkervisibility",this.updateVideoData)}; FZU=function(M){var f,A=(f=M.U.getVideoData())==null?void 0:f.w_;if(A)for(M=M.C.YO,A=g.V(A),f=A.next();!f.done;f=A.next())if(f=M[f.value]){var Q=void 0,N=void 0,Y=void 0;if(((Q=f.onTap)==null?void 0:(N=Q.innertubeCommand)==null?void 0:(Y=N.changeEngagementPanelVisibilityAction)==null?void 0:Y.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return f}}; xU=function(M){var f=M.V("web_enable_pip_on_miniplayer");g.O.call(this,{S:"button",Ai:["ytp-miniplayer-button","ytp-button"],D:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},L:[f?{S:"svg",D:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},L:[{S:"g",D:{transform:"translate(96, -96) scale(0.8)"},L:[{S:"path",D9:!0,D:{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"}}]}]}: ZHz()]});this.U=M;this.visible=!1;this.listen("click",this.onClick);this.J(M,"fullscreentoggled",this.Nu);this.updateValue("title",g.ie(M,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});Bj(M,this.element,this);M.createClientVe(this.element,this,62946);this.Nu()}; ZK=function(M,f,A,Q,N,Y){Y=Y===void 0?!1:Y;var I={S:"div",Ai:["ytp-input-slider-section"],L:[{S:"input",Y:"ytp-input-slider",D:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};N&&I.L.unshift(N);Y&&I.Ai.push("ytp-vertical-slider");g.O.call(this,I);this.j=M;this.C=f;this.G=A;this.initialValue=Q;this.header=N;this.Z=this.H7("ytp-input-slider");this.K=Q?Q:M;this.init();this.J(this.Z,"input",this.tN);this.J(this.Z,"keydown", this.NU)}; rK=function(M,f){M.K=f;M.updateValue("slidervalue",M.K);M.Z.valueAsNumber=M.K;yPt(M,f)}; yPt=function(M,f){M.Z.style.setProperty("--yt-slider-shape-gradient-percent",(f-M.j)/(M.C-M.j)*100+"%")}; dtU=function(M){var f=M.isMuted()?0:M.getVolume();ZK.call(this,0,100,1,f,void 0,!0);this.U=M;this.X=Uy(this.rg,10,this);this.W=!1;this.J(M,"onVolumeChange",this.onVolumeChange);this.J(this.element,"keydown",this.NU);this.J(this.element,"wheel",this.l0)}; eMD=function(M,f){g.O.call(this,{S:"div",D:{tabindex:"0",title:"Volume"},Ai:["ytp-volume-popover"]});var A=this;this.isVisible=!1;this.tooltip=f.Wu();this.Z=new dtU(M);g.d(this,this.Z);this.Z.pJ(this.element);this.K=new g.MY(function(){ui(A,!1)},300); this.listen("mouseenter",function(){A.K.stop()}); this.listen("mouseleave",function(){A.K.start()}); this.listen("focus",function(){A.K.stop()}); this.J(this.Z.Z,"focus",function(){A.K.stop()}); this.listen("blur",function(){A.K.start()}); this.addOnDisposeCallback(g.gx(f.Wu(),this.element,-120));g.d(this,this.K)}; ui=function(M,f){M.element.classList.toggle("ytp-volume-popover-hovering",f);M.isVisible=f}; zV=function(M,f,A){A=A===void 0?!1:A;g.O.call(this,{S:"button",Ai:["ytp-mute-button","ytp-button"],D:M.T().g_?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},L:[{S:"div",Y:"ytp-volume-icon",Ix:"{{icon}}"}]});var Q=this;this.U=M;this.fJ=A;this.Z=null;this.W=this.KJ=this.X=this.P7=NaN;this.z0=this.B=null;this.G=[];this.C=[];this.visible=!1;this.j=this.K=this.Er=null;M.V("delhi_modern_web_player")&& this.update({"data-priority":4});A=this.U.T();this.updateValue("icon",PO());this.tooltip=f.Wu();this.j=g.XF("ytp-volume-icon",this.element);this.Z=new g.SK({S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"defs",L:[{S:"clipPath",D:{id:"ytp-svg-volume-animation-mask"},L:[{S:"path",D:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{S:"path",D:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{S:"path",Y:"ytp-svg-volume-animation-mover",D:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]}, {S:"clipPath",D:{id:"ytp-svg-volume-animation-slash-mask"},L:[{S:"path",Y:"ytp-svg-volume-animation-mover",D:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{S:"path",D9:!0,Ai:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],D:{"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"}},{S:"path",D9:!0,Ai:["ytp-svg-fill","ytp-svg-volume-animation-hider"], D:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.d(this,this.Z);this.B=this.Z.H7("ytp-svg-volume-animation-speaker");this.z0=g.F(this.B.getAttribute("d"));this.G=g.WB("ytp-svg-volume-animation-mover",this.Z.element);this.C=g.WB("ytp-svg-volume-animation-hider",this.Z.element);this.g_=new wJ;g.d(this,this.g_);this.jk=new wJ;g.d(this,this.jk);this.J(M,"appresize",this.Ok);this.J(M,"onVolumeChange",this.onVolumeChange);M.V("delhi_modern_web_player")? this.listen("click",this.nz0):this.listen("click",this.cJ);A.g_?M.V("delhi_modern_web_player")?(this.K=new eMD(M,f),this.K.pJ(this.element),g.d(this,this.K),this.J(this.j,"mouseover",function(){if(!Q.U.c_()){var N;(N=Q.K)!=null&&ui(N,!0);var Y;(Y=Q.K)!=null&&Y.K.stop()}}),this.J(this.j,"mouseout",function(){var N; (N=Q.K)!=null&&N.K.start()}),this.addOnDisposeCallback(g.gx(f.Wu(),this.element,-120))):this.addOnDisposeCallback(g.gx(f.Wu(),this.element)):bR0(this); this.message=null;M.createClientVe(this.element,this,28662);this.Ok(M.ax().getPlayerSize());this.setVolume(M.getVolume(),M.isMuted())}; ORN=function(M,f){M.P7=f;var A=M.z0;f&&(A+=N06(klz,WZe,f));M.B.setAttribute("d",A)}; XGN=function(M,f){M.KJ=f;for(var A=20*f,Q=0;Q=3&&M.U.getPresentingPlayerType()!==2}; la6=function(M){var f=ue(M.U.kp());return f?M.K?f.VK():f.BQ():!1}; KZ0=function(M){var f={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},A=M.playlist!=null&&M.playlist.VK();A=g.zt(M.U)&&(!M.K||A);var Q=M.K&&g.Ff(M.U),N=la6(M),Y=M.K&&M.U.getPresentingPlayerType()===5,I=g.ie(M.U,"Next","SHIFT+n"),D=g.ie(M.U,"Previous","SHIFT+p");if(Y)f.title="Start video";else if(M.j)f.title="Replay";else if(A){var E=null;M.playlist&&(E=g.S3(M.playlist,M.K?j2X(M.playlist):$z9(M.playlist)));if(E){if(E.videoId){var t=M.playlist.listId; f.url=M.U.T().getVideoUrl(E.videoId,t?t.toString():void 0)}f.text=E.title;f.duration=E.lengthText?E.lengthText:E.lengthSeconds?g.B2(E.lengthSeconds):null;f.preview=E.PK("mqdefault.jpg")}M.K?(f.title=I,f["data-title-no-tooltip"]="Next",f["aria-keyshortcuts"]="SHIFT+n"):(f.title=D,f["data-title-no-tooltip"]="Previous",f["aria-keyshortcuts"]="SHIFT+p")}else if(Q){if(D=(E=M.videoData)==null?void 0:g.Y_(E))f.url=D.Rq(),f.text=D.title,f.duration=D.lengthText?D.lengthText:D.lengthSeconds?g.B2(D.lengthSeconds): null,f.preview=D.PK("mqdefault.jpg");f.title=I;f["data-title-no-tooltip"]="Next";f["aria-keyshortcuts"]="SHIFT+n"}f.disabled=!Q&&!A&&!N&&!Y;M.update(f);M.W=!!f.url;Q||A||M.j||N||Y?M.Z||(M.Z=g.gx(M.tooltip,M.element),M.G=M.listen("click",M.onClick,M)):M.Z&&(M.Z(),M.Z=null,M.Hv(M.G),M.G=null);M.tooltip.EJ();g.Sb(M.element,"ytp-playlist-ui",M.K&&(A||M.U.V("web_hide_next_button")))}; fid=function(M,f){g.O.call(this,{S:"div",Y:"ytp-fine-scrubbing",L:[{S:"div",Y:"ytp-fine-scrubbing-draggable",L:[{S:"div",Y:"ytp-fine-scrubbing-thumbnails",D:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{S:"div",D:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{S:"div",Y:"ytp-fine-scrubbing-seek-time",D:{"aria-hidden":"true"}, Ix:"{{seekTime}}"},{S:"div",Y:"ytp-fine-scrubbing-play",L:[ZJ()],D:{title:"Play from this position",role:"button"}},{S:"div",Y:"ytp-fine-scrubbing-dismiss",L:[g.Re()],D:{title:"Exit precise seeking",role:"button"}}]});var A=this;this.api=M;this.G=this.H7("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.H7("ytp-fine-scrubbing-dismiss");this.jk=this.H7("ytp-fine-scrubbing-draggable");this.playButton=this.H7("ytp-fine-scrubbing-play");this.thumbnails=[];this.Z=[];this.fJ=this.K=0;this.g_=void 0; this.Er=NaN;this.nJ=this.B=this.j=this.X=0;this.C=[];this.interval=this.frameCount=0;this.W=160;this.scale=1;this.ox=0;this.isEnabled=this.z0=!1;M9z(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.gx(f,this.dismissButton));this.addOnDisposeCallback(g.gx(f,this.playButton));this.P7=new g.Fg(this.jk,!0);this.P7.subscribe("dragstart",this.Td,this);this.P7.subscribe("dragmove",this.Xs,this);this.P7.subscribe("dragend",this.LX,this);this.J(M,"SEEK_COMPLETE",this.F$);M.V("web_fix_fine_scrubbing_false_play")&& this.J(M,"rootnodemousedown",function(Q){A.KJ=Q}); this.G.addEventListener("keydown",function(){}); g.d(this,this.P7);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; M9z=function(M,f){var A=g.B2(f),Q=g.aC("Seek to $PROGRESS",{PROGRESS:g.B2(f,!0)});M.update({ariamin:0,ariamax:Math.floor(M.api.getDuration()),arianow:Math.floor(f),arianowtext:Q,seekTime:A})}; ANf=function(M){M.Er=NaN;M.B=0;M.X=M.j}; Yb9=function(M){var f=M.api.u3();if(f){var A=90*M.scale,Q=eH(f,160*M.scale);if(f=f.levels[Q]){M.W=f.width;if(!M.C.length){Q=[];for(var N=bS(f,f.mS()),Y=f.columns*f.rows,I=f.frameCount,D=0;D<=N;D++)for(var E=IM.C.length;)Q= void 0,(Q=M.thumbnails.pop())==null||Q.dispose();for(;M.thumbnails.lengthA.length;)Q=void 0,(Q=M.Z.pop())==null||Q.dispose(); for(;M.Z.length-A?-f/A*M.interval*.5:-(f+A/2)/A*M.interval}; Iiz=function(M){return-((M.G.offsetWidth||(M.frameCount-1)*M.W*M.scale)-M.K/2)}; Qi9=function(){g.O.call(this,{S:"div",Y:"ytp-fine-scrubbing-thumbnail"})}; NWT=function(){g.O.call(this,{S:"div",Y:"ytp-fine-scrubbing-chapter-title",L:[{S:"div",Y:"ytp-fine-scrubbing-chapter-title-content",Ix:"{{chapterTitle}}"}]})}; DBc=function(M){g.O.call(this,{S:"div",Y:"ytp-heat-map-chapter",L:[{S:"svg",Y:"ytp-heat-map-svg",D:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},L:[{S:"defs",L:[{S:"clipPath",D:{id:"{{id}}"},L:[{S:"path",Y:"ytp-heat-map-path",D:{d:"",fill:"white"}}]},{S:"linearGradient",D:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},L:[{S:"stop",D:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{S:"stop",D:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{S:"rect",Y:"ytp-heat-map-graph",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",Y:"ytp-heat-map-hover",D:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",Y:"ytp-heat-map-play",D:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{S:"path",Y:"ytp-modern-heat-map",D:{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=M;this.X=this.H7("ytp-heat-map-svg");this.G=this.H7("ytp-heat-map-path");this.C=this.H7("ytp-heat-map-graph");this.W=this.H7("ytp-heat-map-play");this.K=this.H7("ytp-heat-map-hover");this.j=this.H7("ytp-modern-heat-map");this.hh=!1;this.Z=60;M=""+g.Ye(this);this.update({id:M});M="url(#"+M+")";this.C.setAttribute("clip-path",M);this.W.setAttribute("clip-path",M);this.K.setAttribute("clip-path", M)}; EKf=function(M,f){f>0&&(M.Z=f,M.X.style.height=M.Z+"px")}; $U=function(){g.O.call(this,{S:"div",Y:"ytp-chapter-hover-container",L:[{S:"div",Y:"ytp-progress-bar-padding"},{S:"div",Y:"ytp-progress-list",L:[{S:"div",Ai:["ytp-play-progress","ytp-swatch-background-color"]},{S:"div",Y:"ytp-progress-linear-live-buffer"},{S:"div",Y:"ytp-load-progress"},{S:"div",Y:"ytp-hover-progress"},{S:"div",Y:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.Z=this.H7("ytp-progress-list");this.G=this.H7("ytp-progress-linear-live-buffer"); this.C=this.H7("ytp-ad-progress-list");this.W=this.H7("ytp-load-progress");this.X=this.H7("ytp-play-progress");this.j=this.H7("ytp-hover-progress");this.K=this.H7("ytp-chapter-hover-container")}; Fi=function(M,f){g.ji(M.K,"width",f)}; t9T=function(M,f){g.ji(M.K,"margin-right",f+"px")}; vKz=function(){this.Z=this.position=this.j=this.K=this.C=this.width=NaN}; pnd=function(){g.O.call(this,{S:"div",Y:"ytp-timed-marker"});this.K=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.dK=function(M,f){g.Ci.call(this,{S:"div",Y:"ytp-progress-bar-container",D:{"aria-disabled":"true"},L:[{S:"div",Ai:["ytp-heat-map-container"],L:[{S:"div",Y:"ytp-heat-map-edu"}]},{S:"div",Ai:["ytp-progress-bar"],D:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{S:"div",Y:"ytp-chapters-container"},{S:"div",Y:"ytp-timed-markers-container"},{S:"div",Y:"ytp-clip-start-exclude"}, {S:"div",Y:"ytp-clip-end-exclude"},{S:"div",Y:"ytp-scrubber-container",L:[{S:"div",Ai:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{S:"div",Y:"ytp-scrubber-pull-indicator"},{S:"img",Ai:["ytp-decorated-scrubber-button"]}]}]}]},{S:"div",Ai:["ytp-fine-scrubbing-container"],L:[{S:"div",Y:"ytp-fine-scrubbing-edu"}]},{S:"div",Y:"ytp-bound-time-left",Ix:"{{boundTimeLeft}}"},{S:"div",Y:"ytp-bound-time-right",Ix:"{{boundTimeRight}}"},{S:"div",Y:"ytp-clip-start",D:{title:"{{clipstarttitle}}"},Ix:"{{clipstarticon}}"}, {S:"div",Y:"ytp-clip-end",D:{title:"{{clipendtitle}}"},Ix:"{{clipendicon}}"}]});this.api=M;this.o9=!1;this.R5=this.oo=this.w_=this.G=this.H2=0;this.Wy=null;this.VU=!1;this.ox={};this.MV={};this.clipEnd=Infinity;this.oE=this.H7("ytp-clip-end");this.Uq=new g.Fg(this.oE,!0);this.N5=this.H7("ytp-clip-end-exclude");this.T_=this.H7("ytp-clip-start-exclude");this.clipStart=0;this.Yp=this.H7("ytp-clip-start");this.Fk=new g.Fg(this.Yp,!0);this.Er=this.Qw=0;this.progressBar=this.H7("ytp-progress-bar");this.zt= {};this.YO={};this.l8=this.H7("ytp-chapters-container");this.Ki=this.H7("ytp-timed-markers-container");this.K=[];this.W=[];this.Yx={};this.WK=null;this.z0=-1;this.Z9=this.g_=0;this.SO=this.X=null;this.OR=this.H7("ytp-scrubber-button");this.jk=this.H7("ytp-decorated-scrubber-button");this.SA=this.H7("ytp-scrubber-container");this.xO=new g.r2;this.y7=0;this.OC=new vKz;this.j=new jI(0,0);this.PX=null;this.B=this.Uw=!1;this.wL=null;this.KJ=this.H7("ytp-heat-map-container");this.zj=this.H7("ytp-heat-map-edu"); this.C=[];this.heatMarkersDecorations=[];this.b8=this.H7("ytp-fine-scrubbing-container");this.gb=this.H7("ytp-fine-scrubbing-edu");this.Z=void 0;this.fJ=this.qX=this.nJ=!1;this.tooltip=f.Wu();this.addOnDisposeCallback(g.gx(this.tooltip,this.oE));g.d(this,this.Uq);this.Uq.subscribe("hoverstart",this.Mw,this);this.Uq.subscribe("hoverend",this.YF,this);this.J(this.oE,"click",this.Xz);this.addOnDisposeCallback(g.gx(this.tooltip,this.Yp));g.d(this,this.Fk);this.Fk.subscribe("hoverstart",this.Mw,this); this.Fk.subscribe("hoverend",this.YF,this);this.J(this.Yp,"click",this.Xz);hPt(this);this.J(M,"resize",this.Tt);this.J(M,"presentingplayerstatechange",this.Lb);this.J(M,"videodatachange",this.q_);this.J(M,"videoplayerreset",this.rd);this.J(M,"cuerangesadded",this.D$_);this.J(M,"cuerangesremoved",this.SRJ);this.J(M,"onLoopRangeChange",this.v3);this.J(M,"innertubeCommand",this.onClickCommand);this.J(M,"onRetroModeChanged",this.Jd0);this.J(M,g.EW("timedMarkerCueRange"),this.puY);this.J(M,"updatemarkervisibility", this.FS);this.J(M,"serverstitchedvideochange",this.x$7);this.updateVideoData(M.getVideoData(),!0);this.v3(M.getLoopRange());y3(this)&&!this.Z&&(this.Z=new fid(this.api,this.tooltip),M=g.WC(this.element).x||0,this.Z.Tt(M,this.G),this.Z.pJ(this.b8),g.d(this,this.Z),this.J(this.Z.dismissButton,"click",this.zT),this.J(this.Z.playButton,"click",this.qK),this.J(this.Z.element,"dblclick",this.qK));this.api.createClientVe(this.KJ,this,139609,!0);this.api.createClientVe(this.zj,this,140127,!0);this.api.createClientVe(this.gb, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; hPt=function(M){if(M.K.length===0){var f=new $U;M.K.push(f);g.d(M,f);f.pJ(M.l8,0)}for(;M.K.length>1;)M.K.pop().dispose();Fi(M.K[0],"100%");M.K[0].startTime=0;M.K[0].title=""}; SbU=function(M){var f=f===void 0?NaN:f;var A=new DBc(M.api);M.C.push(A);g.d(M,A);A.pJ(M.KJ);f>=0&&(A.element.style.width=f+"px")}; Lyb=function(M){for(;M.W.length;)M.W.pop().dispose()}; Cu0=function(M){var f,A,Q,N,Y;return(Y=g.b((N=g.b((f=M.getWatchNextResponse())==null?void 0:(A=f.playerOverlays)==null?void 0:(Q=A.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,rq))==null?void 0:N.playerBar,oKc))==null?void 0:Y.chapters}; UBz=function(M){for(var f=M.K,A=[],Q=0;Q=I&&a<=v&&Y.push(h)}E>0&&(M.KJ.style.height=E+"px");I=M.C[Q];v=Y;h=N;L=E;a=Q===0;a=a===void 0?!1:a;EKf(I,L);p=v;S=I.Z;a=a===void 0?!1:a;var q=1E3/p.length,m=[];m.push({x:0,y:100});for(var R=0;R0&&(A=Y[Y.length-1])}g.ef(M);D=[];f=g.V(f.heatMarkersDecorations||[]);for(N=f.next();!N.done;N=f.next())if(N=g.b(N.value,cNz))E=N.label,Q=A=t=void 0,D.push({visibleTimeRangeStartMillis:(t=N.visibleTimeRangeStartMillis)!=null?t:-1,visibleTimeRangeEndMillis:(A=N.visibleTimeRangeEndMillis)!=null?A:-1,decorationTimeMillis:(Q=N.decorationTimeMillis)!=null?Q:NaN,label:E?g.ae(E):""});M.heatMarkersDecorations=D}}; qbf=function(M,f){M.W.push(f);g.d(M,f);f.pJ(M.Ki,M.Ki.children.length)}; HPz=function(M,f){f=g.V(f);for(var A=f.next();!A.done;A=f.next()){A=A.value;var Q=bi(M,A.timeRangeStartMillis/(M.j.K*1E3),kU(M)),N=M.api.V("delhi_modern_web_player")?.667:.6;g.ji(A.element,"transform","translateX("+Q+"px) scaleX("+N+")")}}; V9b=function(M,f){var A=0,Q=!1;f=g.V(f);for(var N=f.next();!N.done;N=f.next()){N=N.value;if(g.b(N,gKb)){N=g.b(N,gKb);var Y={startTime:NaN,title:null,onActiveCommand:void 0},I=N.title;Y.title=I?g.ae(I):"";I=N.timeRangeStartMillis;I!=null&&(Y.startTime=I);Y.onActiveCommand=N.onActiveCommand;N=Y;A===0&&N.startTime!==0&&(M.K[A].startTime=0,M.K[A].title="",M.K[A].onActiveCommand=N.onActiveCommand,A++,Q=!0);M.K.length<=A&&(Y=new $U,M.K.push(Y),g.d(M,Y),Y.pJ(M.l8,M.l8.children.length));M.K[A].startTime= N.startTime;M.K[A].title=N.title?N.title:"";M.K[A].onActiveCommand=N.onActiveCommand;M.K[A].index=Q?A-1:A}A++}for(;A=0;Q--)if(M.K[Q].width>0){t9T(M.K[Q],0);var N=Math.floor(M.K[Q].width);M.K[Q].width=N;Fi(M.K[Q],N+"px");break}M.K[A].width=0;Fi(M.K[A],"0")}else A===M.K.length-1?(Q=Math.floor(M.K[A].width+f),M.K[A].width=Q,Fi(M.K[A],Q+"px")):(f=M.K[A].width+f,Q=Math.round(f),f-=Q,M.K[A].width=Q,Fi(M.K[A],Q+"px"));A=0;if(M.C.length===M.K.length)for(f=0;f< M.C.length;f++)Q=M.K[f].width,M.C[f].element.style.width=Q+"px",M.C[f].element.style.left=A+"px",A+=Q+Oq(M);M.api.V("delhi_modern_web_player")&&(M.K.length===1?M.K[0].Z.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(M.K[0].Z.classList.remove("ytp-progress-bar-end"),M.K[0].Z.classList.add("ytp-progress-bar-start"),M.K[M.K.length-1].Z.classList.add("ytp-progress-bar-end")))}; BWt=function(M,f){var A=0,Q=!1,N=M.K.length,Y=M.j.K*1E3;Y===0&&(Y=M.api.getProgressState().seekableEnd*1E3);if(Y>0&&M.G>0){for(var I=M.G-Oq(M)*M.g_,D=M.Z9===0?3:I*M.Z9,E=g.V(M.K),t=E.next();!t.done;t=E.next())t.value.width=0;for(;A1);t=(Y===0?0:E/Y*I)+M.K[A].width;if(t>D)M.K[A].width=t;else{M.K[A].width=0;var v=M,p=A,h=v.K[p-1];h!==void 0&&h.width>0? h.width+=t:pM.Z9&&(M.Z9=E/Y),Q=!0)}A++}}return Q}; We=function(M){if(M.G){var f=M.api.getProgressState(),A=M.api.getVideoData();if(!(A&&A.enableServerStitchedDai&&A.Gq)||isFinite(f.current)){var Q;if(((Q=M.api.getVideoData())==null?0:MZ(Q))&&f.airingStart&&f.airingEnd)var N=Xi(M,f.airingStart,f.airingEnd);else if(M.api.getPresentingPlayerType()===2){var Y,I,D;N=(A=(N=M.api.getVideoData())==null?void 0:(Y=N.getPlayerResponse())==null?void 0:(I=Y.playerConfig)==null?void 0:(D=I.webPlayerConfig)==null?void 0:D.skippableAdProgressBarDuration)?Xi(M,f.seekableStart, A/1E3):Xi(M,f.seekableStart,f.seekableEnd)}else N=Xi(M,f.seekableStart,f.seekableEnd);Y=$Z(N,f.loaded,0);f=$Z(N,f.current,0);I=M.j.Z!==N.Z||M.j.K!==N.K;M.j=N;J5(M,f,Y);I&&iP6(M);xBT(M)}}}; Xi=function(M,f,A){return ZPt(M)?new jI(Math.max(f,M.PX.startTimeMs/1E3),Math.min(A,M.PX.endTimeMs/1E3)):new jI(f,A)}; uef=function(M,f){var A,Q,N;f=g.b((A=f.getWatchNextResponse())==null?void 0:(Q=A.playerOverlays)==null?void 0:(N=Q.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,rq);if(f==null?0:f.progressColor)for(A=0;A1){A=K1(M,f.j,!0);for(var Q=0,N=0;N0&&(Q+=M.K[N].width,Q+=Oq(M));A=(M.K[A].startTime+(f.j-Q)/M.K[A].width*((A===M.K.length-1?M.j.K*1E3:M.K[A+1].startTime)-M.K[A].startTime))/1E3||0}return A}; wK=function(M,f,A,Q,N){f=f<0?0:Math.floor(Math.min(f,M.api.getDuration())*1E3);A=A<0?0:Math.floor(Math.min(A,M.api.getDuration())*1E3);M=M.progressBar.visualElement;Q={seekData:{startMediaTimeMs:f,endMediaTimeMs:A,seekSource:Q}};(f=g.iH())&&g.f0(AS)(void 0,f,M,N,Q,void 0)}; Puf=function(M,f,A){if(A>=M.K.length)return!1;var Q=M.G-Oq(M)*M.g_;return Math.abs(f-M.K[A].startTime/1E3)/M.j.K*Q<4}; iP6=function(M){M.OR.style.removeProperty("height");for(var f=g.V(Object.keys(M.ox)),A=f.next();!A.done;A=f.next())nKc(M,A.value);li(M);J5(M,M.Er,M.Qw)}; kU=function(M){var f=M.xO.x;f=g.ih(f,0,M.G);M.OC.update(f,M.G);return M.OC}; fN=function(M){return(M.B?135:90)-Mz(M)}; Mz=function(M){var f=48,A=M.api.T();M.api.V("delhi_modern_web_player")?f=M.B?96:68:M.B?f=54:g.Ps(A)&&!A.Z&&(f=40);return f}; J5=function(M,f,A){M.Er=f;M.Qw=A;var Q=kU(M),N=M.j.K;var Y=M.j;Y=Y.Z+M.Er*Y.getLength();var I=g.aC("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.B2(Y,!0),DURATION:g.B2(N,!0)}),D=TV(M.K,Y*1E3);D=M.K[D].title;M.update({ariamin:Math.floor(M.j.Z),ariamax:Math.floor(N),arianow:Math.floor(Y),arianowtext:D?D+" "+I:I});N=M.clipStart;Y=M.clipEnd;M.PX&&M.api.getPresentingPlayerType()!==2&&(N=M.PX.startTimeMs/1E3,Y=M.PX.endTimeMs/1E3);N=$Z(M.j,N,0);D=$Z(M.j,Y,1);I=M.api.getVideoData();Y=g.ih(f,N,D);A=(I==null? 0:g.Ge(I))?1:g.ih(A,N,D);f=bi(M,f,Q);g.ji(M.SA,"transform","translateX("+f+"px)");M.api.V("delhi_modern_web_player")&&M.api.V("delhi_modern_web_player_cutout")&&jiN(M,f);AR(M,Q,N,Y,"PLAY_PROGRESS");(I==null?0:MZ(I))?(f=M.api.getProgressState().seekableEnd)&&AR(M,Q,Y,$Z(M.j,f),"LIVE_BUFFER"):AR(M,Q,N,A,"LOAD_PROGRESS");if(M.api.V("web_player_heat_map_played_bar")){var E;(E=M.C[0])!=null&&E.W.setAttribute("width",(Y*100).toFixed(2)+"%")}}; jiN=function(M,f){M.api.getPresentingPlayerType()!==1?M.l8.style.removeProperty("clip-path"):(f||(f=bi(M,M.Er,kU(M))),M.l8.style.clipPath='path("'+(M.VU?$Bb(M,8,f,M.B?50:36,0,6):$Bb(M,4,f,M.B?34:24,2,3))+'")')}; $Bb=function(M,f,A,Q,N,Y){var I=A-Q/2;A+=Q/2;f+=N;return"M 0 "+N+" L 0 "+(f+" L ")+(I+" "+f+" C ")+(I+Y+" "+f+" "+(I+Y)+" "+N+" "+I+" "+N+" L 0 ")+(N+" M ")+(A+" "+N+" L ")+(M.G+" "+N+" L ")+(M.G+" "+f+" L ")+(A+" "+f+" C ")+(A-Y+" "+f+" "+(A-Y)+" "+N+" "+A+" "+N)}; AR=function(M,f,A,Q,N){var Y=M.K.length,I=f.K-M.g_*Oq(M),D=A*I;A=K1(M,D);var E=Q*I;I=K1(M,E);N==="HOVER_PROGRESS"&&(I=K1(M,f.K*Q,!0),E=f.K*Q-FyT(M,f.K*Q)*Oq(M));Q=Math.max(D-yNN(M,A),0);for(D=A;D=M.K.length)return M.G;for(var A=0,Q=0;Q0||M.N5.clientWidth>0?(Y=f.clientWidth/A,M=-1*M.T_.clientWidth/A):(Y/=A,M=-1*M.K[N].element.offsetLeft/A),g.ji(f,"background-size",Y+"px"),g.ji(f,"background-position-x",M+"px"))}; QP=function(M,f,A,Q,N){N||M.api.T().Z?f.style.width=A+"px":g.ji(f,"transform","scalex("+(Q?A/Q:0)+")")}; K1=function(M,f,A){var Q=0;(A===void 0?0:A)&&(f-=FyT(M,f)*Oq(M));A=g.V(M.K);for(var N=A.next();!N.done;N=A.next()){N=N.value;if(f>N.width)f-=N.width;else break;Q++}return Q===M.K.length?Q-1:Q}; bi=function(M,f,A){var Q=f*M.j.K*1E3;for(var N=-1,Y=g.V(M.K),I=Y.next();!I.done;I=Y.next())I=I.value,Q>I.startTime&&I.width>0&&N++;Q=N<0?0:N;N=A.K-Oq(M)*M.g_;return f*N+Oq(M)*Q+A.C}; FyT=function(M,f){for(var A=M.K.length,Q=0,N=g.V(M.K),Y=N.next();!Y.done;Y=N.next())if(Y=Y.value,Y.width!==0)if(f>Y.width)f-=Y.width,f-=Oq(M),Q++;else break;return Q===A?A-1:Q}; g.bP6=function(M,f,A,Q){var N=M.G!==A,Y=M.B!==Q;M.H2=f;M.G=A;M.B=Q;y3(M)&&(f=M.Z)!=null&&(f.scale=Q?1.5:1);iP6(M);M.K.length===1&&(M.K[0].width=A||0);N&&g.ef(M);M.Z&&Y&&y3(M)&&(M.Z.isEnabled&&(A=M.B?135:90,Q=A-Mz(M),M.b8.style.height=A+"px",g.ji(M.KJ,"transform","translateY("+-Q+"px)"),g.ji(M.progressBar,"transform","translateY("+-Q+"px)")),Yb9(M.Z))}; li=function(M){var f=!!M.PX&&M.api.getPresentingPlayerType()!==2,A=M.clipStart,Q=M.clipEnd,N=!0,Y=!0;f&&M.PX?(A=M.PX.startTimeMs/1E3,Q=M.PX.endTimeMs/1E3):(N=A>M.j.Z,Y=M.j.K>0&&QM.Er);g.Sb(M.OR,"ytp-scrubber-button-hover",A===Q&&M.K.length>1);if(M.api.V("web_player_heat_map_played_bar")){var Y;(Y=M.C[0])!=null&&Y.K.setAttribute("width",(f.Z*100).toFixed(2)+"%")}}}; nKc=function(M,f){var A=M.ox[f];f=M.MV[f];var Q=kU(M),N=$Z(M.j,A.start/1E3,0),Y=VKD(A,M.B)/Q.width;var I=$Z(M.j,A.end/1E3,1);Y!==Number.POSITIVE_INFINITY&&(N=g.ih(N,0,I-Y));I=Math.min(I,N+Y);A.color&&(f.style.background=A.color);A=N;f.style.left=Math.max(A*Q.K+Q.C,0)+"px";QP(M,f,g.ih((I-A)*Q.K+Q.C,0,Q.width),Q.width,!0)}; k49=function(M,f){var A=f.getId();M.ox[A]===f&&(g.Ya(M.MV[A]),delete M.ox[A],delete M.MV[A])}; y3=function(M){var f=g.Q5(M.api.T())&&(M.api.V("web_shorts_pip")||M.api.V("web_watch_pip")),A;return!((A=M.api.getVideoData())==null?0:A.isLivePlayback)&&!M.api.isMinimized()&&!M.api.isInline()&&(!M.api.O3()||!f)}; Nz=function(M){M.Z&&(M.Z.disable(),M.w_=0,M.KJ.style.removeProperty("transform"),M.progressBar.style.removeProperty("transform"),M.b8.style.removeProperty("height"),M.element.parentElement&&M.element.parentElement.style.removeProperty("height"))}; Wyt=function(M,f){var A=f/fN(M)*Mz(M);g.ji(M.progressBar,"transform","translateY("+-f+"px)");g.ji(M.KJ,"transform","translateY("+-f+"px)");g.ji(M.b8,"transform","translateY("+A+"px)");M.b8.style.height=f+A+"px";M.element.parentElement&&(M.element.parentElement.style.height=Mz(M)-A+"px")}; OP9=function(M,f){f?M.X||(M.element.removeAttribute("aria-disabled"),M.X=new g.Fg(M.progressBar,!0),M.X.subscribe("hovermove",M.gCi,M),M.X.subscribe("hoverend",M.U57,M),M.X.subscribe("dragstart",M.fKu,M),M.X.subscribe("dragmove",M.yd0,M),M.X.subscribe("dragend",M.euO,M),M.api&&M.api.V("delhi_modern_web_player")&&M.api.V("delhi_modern_web_player_cutout")&&(M.SO=new g.Fg(M.progressBar,!0),M.SO.subscribe("hoverstart",function(){M.VU=!0;jiN(M)},M),M.SO.subscribe("hoverend",function(){M.VU=!1; jiN(M)},M)),M.wL=M.listen("keydown",M.Df)):M.X&&(M.element.setAttribute("aria-disabled","true"),M.Hv(M.wL),M.X.cancel(),M.X.dispose(),M.X=null)}; Oq=function(M){return M.api.V("delhi_modern_web_player")?4:M.B?3:2}; ZPt=function(M){var f;return!((f=M.PX)==null||!f.postId)&&M.api.getPresentingPlayerType()!==2}; Yc=function(M,f){g.O.call(this,{S:"button",Ai:["ytp-remote-button","ytp-button"],D:{title:"Play on TV","aria-haspopup":"true","data-priority":"10"},Ix:"{{icon}}"});this.U=M;this.uI=f;this.K=null;this.J(M,"onMdxReceiversChange",this.Nu);this.J(M,"presentingplayerstatechange",this.Nu);this.J(M,"appresize",this.Nu);M.createClientVe(this.element,this,139118);this.Nu();this.listen("click",this.Z,this);Bj(M,this.element,this)}; I2=function(M,f){g.O.call(this,{S:"button",Ai:["ytp-button","ytp-settings-button"],D:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":hS(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},L:[g.uD()]});this.U=M;this.uI=f;this.Z=!0;this.listen("click",this.j);this.J(M,"onPlaybackQualityChange",this.updateBadge);this.J(M,"videodatachange",this.updateBadge);this.J(M,"webglsettingschanged",this.updateBadge);this.J(M,"appresize",this.K);Bj(M,this.element,this);this.U.createClientVe(this.element, this,28663);this.updateBadge();this.K(M.ax().getPlayerSize())}; Xnf=function(M,f){M.Z=!!f;M.K(M.U.ax().getPlayerSize())}; TJ=function(M,f){Dc.call(this,"Annotations",g.Sl.c$);this.U=M;this.uI=f;this.K=!1;M.V("web_settings_menu_icons")&&this.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{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.J(M,"videodatachange",this.Nu);this.J(M,"onApiChange",this.Nu);this.subscribe("select",this.onSelect,this);this.Nu()}; DB=function(M,f){g.no.call(this,"Audio track",g.Sl.AUDIO,M,f);this.U=M;this.tracks={};g.tZ(this.element,"ytp-audio-menu-item");this.countLabel=new g.O({S:"div",L:[{S:"span",Ix:"Audio track"},{S:"span",Y:"ytp-menuitem-label-count",Ix:"{{content}}"}]});M.V("web_settings_menu_icons")&&this.setIcon(xrb());g.d(this,this.countLabel);g.Kv(this,this.countLabel);this.J(M,"videodatachange",this.Nu);this.J(M,"onPlaybackAudioChange",this.Nu);this.Nu()}; E$=function(M,f){Dc.call(this,"Autoplay",g.Sl.VO);this.U=M;this.uI=f;this.K=!1;this.j=[];this.J(M,"presentingplayerstatechange",this.Z);this.subscribe("select",this.onSelect,this);M.createClientVe(this.element,this,113682);this.Z()}; JNd=function(M,f){g.Gt.call(this,g.wx({"aria-haspopup":"false"}),0,"More options");this.U=M;this.uI=f;this.J(this.element,"click",this.onClick);this.uI.Sc(this)}; KyD=function(M,f){var A;g.Q5(M.T())&&(A={S:"div",Y:"ytp-panel-footer-content",L:[{S:"span",Ix:"Adjust download quality from your "},{S:"a",Y:"ytp-panel-footer-content-link",Ix:"Settings",D:{href:"/account_downloads"}}]});g.no.call(this,"Quality",g.Sl.yZ,M,f,void 0,void 0,A);this.U=M;this.jk={};this.B={};this.C={};this.P7=new Set;this.K=this.G=!1;this.W="unknown";this.Er="";this.KJ=new g.G8;g.d(this,this.KJ);this.G=this.U.V("web_player_use_new_api_for_quality_pullback");this.K=this.U.V("web_player_enable_premium_hbr_playback_cap"); M.V("web_settings_menu_icons")&&this.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.tZ(this.Z.element,"ytp-quality-menu");this.J(M,"videodatachange",this.BA);this.J(M,"videoplayerreset",this.BA);this.J(M,"onPlaybackQualityChange",this.wX);this.BA();M.createClientVe(this.element,this,137721)}; wn9=function(M,f,A){var Q=M.jk[f],N=g.bT[f];return G46(M,Q?Q.qualityLabel:N?N+"p":"Auto",f,A)}; liX=function(M,f,A,Q,N){var Y=(f=M.K?M.C[f]:M.B[f])&&f.quality,I=f&&f.qualityLabel;I=I?I:"Auto";Q&&(I="("+I);M=G46(M,I,Y||"",N);Q&&M.L.push(")");(Q=(Q=f&&f.paygatedQualityDetails)&&Q.paygatedIndicatorText)&&A&&M.L.push({S:"div",Y:"ytp-premium-label",Ix:Q});return M}; G46=function(M,f,A,Q){f={S:"span",Ai:Q,L:[f]};var N;Q="ytp-swatch-color";if(M.G||M.K)Q="ytp-swatch-color-white";A==="highres"?N="8K":A==="hd2880"?N="5K":A==="hd2160"?N="4K":A.indexOf("hd")===0&&A!=="hd720"&&(N="HD");N&&(f.L.push(" "),f.L.push({S:"sup",Y:Q,Ix:N}));return f}; tR=function(M){ZK.call(this,M.getAvailablePlaybackRates()[0],M.getAvailablePlaybackRates()[M.getAvailablePlaybackRates().length-1],.05,M.getPlaybackRate(),{S:"div",Y:"ytp-speedslider-indicator-container",L:[{S:"div",Y:"ytp-speedslider-badge"},{S:"p",Y:"ytp-speedslider-text"}]});this.U=M;this.X=Uy(this.B,50,this);g.tZ(this.Z,"ytp-speedslider");this.W=this.H7("ytp-speedslider-text");this.KJ=this.H7("ytp-speedslider-badge");Mzb(this);this.J(this.Z,"change",this.Er)}; Mzb=function(M){M.W.textContent=M.K+"x";M.KJ.classList.toggle("ytp-speedslider-premium-badge",M.K>2&&M.U.V("enable_web_premium_varispeed"))}; vQ=function(M,f,A,Q,N,Y,I){g.O.call(this,{S:"div",Y:"ytp-slider-section",D:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{S:"div",Y:"ytp-slider",L:[{S:"div",Y:"ytp-slider-handle"}]}]});this.X=M;this.B=f;this.Z=A;this.j=Q;this.Er=N;this.z0=Y;this.range=this.j-this.Z;this.g_=this.H7("ytp-slider-section");this.C=this.H7("ytp-slider");this.KJ=this.H7("ytp-slider-handle");this.W=new g.Fg(this.C, !0);this.K=I?I:A;g.d(this,this.W);this.W.subscribe("dragmove",this.BH,this);this.J(this.element,"keydown",this.sS);this.J(this.element,"wheel",this.xM);this.init()}; pN=function(M){vQ.call(this,.05,.05,M.getAvailablePlaybackRates()[0],M.getAvailablePlaybackRates()[M.getAvailablePlaybackRates().length-1],150,20,M.getPlaybackRate());this.U=M;this.G=g.MQ("P");this.P7=Uy(this.jk,50,this);g.tZ(this.C,"ytp-speedslider");g.tZ(this.G,"ytp-speedslider-text");M=this.G;var f=this.C;f.parentNode&&f.parentNode.insertBefore(M,f.nextSibling);f6T(this);this.J(this.U,"onPlaybackRateChange",this.updateValues)}; f6T=function(M){M.G.textContent=AMd(M,M.K)+"x"}; AMd=function(M,f){M=Number(g.ih(f,M.Z,M.j).toFixed(2));f=Math.floor((M+.001)*100%5+2E-15);var A=M;f!==0&&(A=M-f*.01);return Number(A.toFixed(2))}; QGX=function(M){g.Ci.call(this,{S:"div",Y:"ytp-speedslider-component"});M.V("web_settings_use_input_slider")?this.K=new tR(M):this.K=new pN(M);g.d(this,this.K);this.element.appendChild(this.K.element)}; NVU=function(M){var f=new QGX(M);cz.call(this,M,f,"Custom");g.d(this,f)}; Yhc=function(M,f){var A=new NVU(M);g.no.call(this,"Playback speed",g.Sl.oN,M,f,hR(M)?void 0:"Custom",hR(M)?void 0:function(){g.iz(f,A)}); var Q=this;this.C=!1;g.d(this,A);this.W=new tR(M);g.d(this,this.W);M.V("web_settings_menu_icons")&&this.setIcon({S:"svg",D:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{S:"path",D:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", fill:"white"}}]});this.U=M;this.C=!1;this.Er=null;hR(M)?(this.K=g.aC("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.G=this.U.getPlaybackRate()):this.G=this.K=null;this.B=this.U.getAvailablePlaybackRates();this.J(M,"presentingplayerstatechange",this.Nu);var N;((N=this.U.getVideoData())==null?0:N.G_())&&this.J(M,"serverstitchedvideochange",this.Nu);this.J(this.W.Z,"change",function(){Q.C=!0;Q.Nu()}); this.Nu()}; I6X=function(M,f){var A=SU(f);M.K&&(M.C||f===M.G)?(M.QD(M.K),M.Xk(f.toString())):M.QD(A)}; D_0=function(M){M.HB(M.B.map(SU));M.K=null;M.G=null;var f=M.U.getPlaybackRate();hR(M.U)&&TVT(M,f);!M.B.includes(f)||M.C?M.QD(M.K):M.QD(SU(f))}; TVT=function(M,f){M.G=f;M.K=g.aC("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:f.toString()});f=M.B.map(SU);f.unshift(M.K);M.HB(f)}; SU=function(M){return M.toString()}; hR=function(M){return M.V("web_settings_menu_surface_custom_playback")}; E4z=function(M){return M.V("web_settings_menu_surface_custom_playback")&&M.V("web_settings_use_input_slider")}; v4d=function(M,f,A,Q){var N=new g.Ra(f,void 0,"Video Override");g.no.call(this,Q.text||"",M,f,A,"Video Override",function(){g.iz(A,N)}); var Y=this;g.tZ(this.element,"ytp-subtitles-options-menu-item");this.setting=Q.option.toString();M=Q.options;this.settings=g.y9(M,this.YA,this);this.G=N;g.d(this,this.G);f=new g.Gt({S:"div",Y:"ytp-menuitemtitle",Ix:"Allow for a different caption style if specified by the video."},0);g.d(this,f);this.G.Sc(f,!0);this.C=new g.Gt({S:"div",Y:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},L:[{S:"div",Y:"ytp-menuitem-label",Ix:"On"}]},-1);g.d(this,this.C);this.G.Sc(this.C,!0);this.J(this.C.element, "click",function(){tzb(Y,!0)}); this.K=new g.Gt({S:"div",Y:"ytp-menuitem",D:{role:"menuitemradio",tabindex:"0"},L:[{S:"div",Y:"ytp-menuitem-label",Ix:"Off"}]},-2);g.d(this,this.K);this.G.Sc(this.K,!0);this.J(this.K.element,"click",function(){tzb(Y,!1)}); this.HB(g.WP(M,this.YA))}; tzb=function(M,f){M.publish("settingChange",M.setting+"Override",!f);M.uI.ir()}; LN=function(M,f){g.Ra.call(this,M,void 0,"Options");var A=this;this.kR={};for(var Q=0;Q=0);if(!(f<0||f===M.C)){M.C=f;f=243*M.scale;var A=141*M.scale,Q=BOD(M.Z,M.C,f);zM9(M.bg,Q,f,A,!0);M.Er.start()}}; FDz=function(M){var f=M.K;M.type===3&&M.KJ.stop();M.api.removeEventListener("appresize",M.B);M.W||f.setAttribute("title",M.j);M.j="";M.K=null;M.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});M.wrapper.style.width=""}; d_e=function(M){g.O.call(this,{S:"button",Ai:["ytp-watch-later-button","ytp-button"],D:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.Ps(M.T()))},L:[{S:"div",Y:"ytp-watch-later-icon",Ix:"{{icon}}"},{S:"div",Y:"ytp-watch-later-title",Ix:"Watch later"}]});this.U=M;this.icon=null;this.visible=this.isRequestPending=this.K=!1;DEd(M);M.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.J(M,"videoplayerreset",this.onReset);this.J(M,"appresize", this.dV);this.J(M,"videodatachange",this.dV);this.J(M,"presentingplayerstatechange",this.dV);this.dV();M=this.U.T();var f=g.$J("yt-player-watch-later-pending");M.C&&f?(JA0(),yM6(this)):this.Nu(2);g.Sb(this.element,"ytp-show-watch-later-title",g.Ps(M));Bj(this.U,this.element,this)}; e7z=function(M){var f=M.U.getPlayerSize(),A=M.U.T(),Q=g.F(M.U.getVideoData()),N=g.Ps(A)&&g.zt(M.U)&&g.J(M.U.getPlayerStateObject(),128),Y=A.j;return A.Uq&&f.width>=240&&!Q.isAd()&&Q.Uq&&!N&&!g.fv(Q)&&!M.U.isEmbedsShortsMode()&&!Y}; b8z=function(M,f){J8t(g.wt(M.U.T()),"wl_button",function(){JA0({videoId:f});window.location.reload()})}; yM6=function(M){if(!M.isRequestPending){M.isRequestPending=!0;M.Nu(3);var f=g.F(M.U.getVideoData());f=M.K?f.removeFromWatchLaterCommand:f.addToWatchLaterCommand;var A=g.F(M.U.YI()),Q=M.K?function(){M.K=!1;M.isRequestPending=!1;M.Nu(2);M.U.T().X&&M.U.T0("WATCH_LATER_VIDEO_REMOVED")}:function(){M.K=!0; M.isRequestPending=!1;M.Nu(1);M.U.T().Z&&M.U.pA(M.element);M.U.T().X&&M.U.T0("WATCH_LATER_VIDEO_ADDED")}; Kp(A,f).then(Q,function(){M.isRequestPending=!1;M.Nu(4,"An error occurred. Please try again later.");M.U.T().X&&M.U.T0("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; ksc=function(M,f){if(f!==M.icon){switch(f){case 3:var A=pD();break;case 1:A=HO();break;case 2:A={S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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:A={S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path", D9:!0,D:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}M.updateValue("icon",A);M.icon=f}}; g.iJ=function(){g.ki.apply(this,arguments);this.JH=(this.JR=g.Ps(this.api.T()))&&(this.api.T().Z||Nh()||A0());this.Rm=48;this.Wd=69;this.BD=this.Y$=null;this.H5=[];this.R3=this.oY=this.Wo=this.Sw=this.N3=null;this.Og=[];this.contextMenu=this.Ja=this.overflowButton=this.A3=this.HK=this.searchButton=this.copyLinkButton=this.shareButton=this.nZ=this.uD=this.title=this.channelAvatar=this.FF=this.tooltip=null;this.Pd=!1;this.NC=this.DL=this.ez=this.yN=null;this.hc=this.wN=this.b1=!1}; WDf=function(M){var f=M.api.T(),A=g.J(M.api.getPlayerStateObject(),128);return f.C&&A&&!M.api.isFullscreen()}; O8e=function(M){if(M.Qi()&&!M.api.isEmbedsShortsMode()&&M.A3){var f=M.api.V("web_player_hide_overflow_button_if_empty_menu");!M.nZ||f&&!e7z(M.nZ)||G69(M.A3,M.nZ);!M.shareButton||f&&!SVU(M.shareButton)||G69(M.A3,M.shareButton);!M.copyLinkButton||f&&!vvb(M.copyLinkButton)||G69(M.A3,M.copyLinkButton)}else{f=M.api.T().getWebPlayerContextConfig();if(M.A3){for(var A=M.A3,Q=g.V(A.actionButtons),N=Q.next();!N.done;N=Q.next())N.value.detach();A.actionButtons=[]}M.searchButton&&!g.IH(M.uD.element,M.searchButton.element)&& M.searchButton.pJ(M.uD.element);!M.nZ||(f==null?0:f.hideTopWatchNextButton)||g.IH(M.uD.element,M.nZ.element)||M.nZ.pJ(M.uD.element);!M.shareButton||(f==null?0:f.hideTopShareButton)||g.IH(M.uD.element,M.shareButton.element)||M.shareButton.pJ(M.uD.element);M.copyLinkButton&&!g.IH(M.uD.element,M.copyLinkButton.element)&&M.copyLinkButton.pJ(M.uD.element)}}; XZd=function(M,f,A){f=A?f.lastElementChild:f.firstElementChild;for(var Q=null;f;){if(yV(f,"display")!=="none"&&f.getAttribute("aria-hidden")!=="true"){var N=void 0;f.tabIndex>=0?N=f:N=XZd(M,f,A);N&&(Q?A?N.tabIndex>Q.tabIndex&&(Q=N):N.tabIndexQ/1E3+1)return{msg:"in-the-past"};if(Y.isLivePlayback&&!isFinite(Q))return{msg:"live-infinite"};(Q=f.j$())&&Q.isView()&&(Q=Q.mediaElement);if(Q&&Q.eD().length>12&&g.sm(N))return{msg:"played-ranges"};if(!N.j)return null;if(!I)return{msg:"no-pvd-formats"};if(!N.j.K||!I.K)return{msg:"non-dash"};Q=I.videoInfos[0];var D=N.j.videoInfos[0];M.B&&Em(Y)&&(Q=f.hI(),D= A.hI());if(!Q||!D)return{msg:"no-video-info"};if(M.C&&(MC(Q)||MC(D)))return{msg:"av1"};f=M.Z&&Y.E3()&&mP();if(D.containerType!==Q.containerType)if(f)Y.ZB("sgap",{ierr:"container"});else return{msg:"container"};if(M.j&&!f&&(D.LJ!==Q.LJ||D.LJ===""||Q.LJ===""))return{msg:"codec"};if(M.N&&D.video&&Q.video&&Math.abs(D.video.width/D.video.height-Q.video.width/Q.video.height)>.01)return{msg:"ratio"};if(g.sm(Y)&&g.sm(N))return{msg:"content-protection"};I=I.K[0];N=N.j.K[0];A=I.audio;var E=N.audio;if(A.sampleRate!== E.sampleRate&&!g.nU)if(f)Y.ZB("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:I.itag,cr:A.sampleRate,ni:N.itag,nr:E.sampleRate};return(A.numChannels||2)!==(E.numChannels||2)?{msg:"channel-count"}:M.W&&Y.E3()&&Q.video.fps!==D.video.fps?{msg:"fps"}:null}; wZf=function(M,f,A){var Q=M.getVideoData(),N=f.getVideoData();if(!Q.T().supportsGaplessShorts())return{nq:"env"};if(A.X?Q.rL&&!Q.isAd()||N.rL&&!N.isAd():A.K?Q.rL&&!Q.isAd()||N.rL:Q.rL||N.rL)return{nq:"autoplay"};if(A.G&&Q.endSeconds>0)return{nq:"endcr"};if(!Q.W)return{nq:"client"};if(!M.Ci())return{nq:"no-empty"};M=GsN(A,M,f,Infinity);return M!=null?{nq:M.msg}:null}; r0=function(M){g.y.call(this);this.app=M;this.N=this.C=this.Z=this.K=null;this.j=1;this.events=new g.yK(this);this.events.J(this.app.G0,g.tf("gaplessshortslooprange"),this.X);g.d(this,this.events)}; l6f=function(){this.G=this.N=this.K=this.X=this.C=this.B=this.W=this.j=this.Z=!1}; Mmf=function(M){var f=new l6f;f.Z=M.V("h5_gapless_support_types_diff");f.W=M.V("h5_gapless_error_on_fps_diff");f.B=M.V("html5_gapless_use_format_info_fix");f.C=M.V("html5_gapless_disable_on_av1")&&!M.V("html5_gapless_enable_on_av1");f.j=M.V("html5_gapless_check_codec_diff_strictly");f.X=M.V("html5_gapless_on_ad_autoplay");f.N=M.V("html5_gapless_disable_diff_aspect_radio");f.G=M.V("html5_gapless_disable_on_end_cue_range");f.K=M.V("html5_gapless_ad_autoplay_on_ad_to_video_only");return f}; g.uJ=function(M,f,A,Q){Q=Q===void 0?!1:Q;It.call(this);this.mediaElement=M;this.start=f;this.end=A;this.K=Q}; fwt=function(M,f,A,Q,N,Y){Y=Y===void 0?0:Y;g.y.call(this);var I=this;this.policy=M;this.K=f;this.Z=A;this.fd=N;this.N=Y;this.C=this.j=null;this.currentVideoDuration=this.G=-1;this.W=!1;this.T8=new Yl;this.bL=Q-f.vX()*1E3;this.T8.then(void 0,function(){}); this.timeout=new g.MY(function(){I.ZI("timeout")},1E4); g.d(this,this.timeout);this.X=isFinite(Q)||this.fd.T().experiments.X3("html5_pseudogapless_shorts")&&Em(f.getVideoData());this.status={status:0,error:null}}; Nd6=function(M){var f,A,Q,N,Y,I,D,E,t,v;return g.n(function(p){if(p.Z==1){if(M.ek())return p.return(Promise.reject(Error(M.status.error||"disposed")));M.timeout.start();f=g.zJ.M7();return g.r(p,M.T8,2)}g.zJ.PC("gtfta",f);A=M.K.j$();if(A.isEnded())return M.ZI("ended_in_finishTransition"),p.return(Promise.reject(Error(M.status.error||"")));if(!M.C||!lC(M.C))return M.ZI("next_mse_closed"),p.return(Promise.reject(Error(M.status.error||"")));if(M.Z.ev()!==M.C)return M.ZI("next_mse_mismatch"),p.return(Promise.reject(Error(M.status.error|| "")));Q=A1U(M);N=Q.L9;Y=Q.A1;I=Q.Gp;M.K.eA(!1,!0);D=Q4D(A,N,I,!M.Z.getVideoData().isAd());M.Z.setMediaElement(D);(E=M.K.qt())&&M.Z.T1(E.BY,E.sU);M.X&&(M.Z.seekTo(M.Z.getCurrentTime()+.001,{RD:!0,G4:3,Cd:"gapless_pseudo"}),D.play(),n0());t=A.lI();t.cpn=M.K.getVideoData().clientPlaybackNonce;t.st=""+N;t.et=""+I;M.Z.ZB("gapless",t);M.K.ZB("gaplessTo",{cpn:M.Z.getVideoData().clientPlaybackNonce});v=M.K.getPlayerType()===M.Z.getPlayerType();M.K.Ot(Y,!0,!1,v,M.Z.getVideoData().clientPlaybackNonce);M.Z.Ot(M.Z.getCurrentTime(), !0,!0,v,M.K.getVideoData().clientPlaybackNonce);g.cW(function(){!M.Z.getVideoData().g_&&M.Z.getPlayerState().isOrWillBePlaying()&&M.Z.Bk()}); PQ(M,6);M.dispose();return p.return(Promise.resolve())})}; Do9=function(M){if(M.Z.getVideoData().j){var f=M.fd.T().V("html5_gapless_suspend_next_loader")&&M.N===1;M.Z.Uf(M.C,f,Y4f(M));PQ(M,3);Iwd(M);var A=Tdt(M);f=A.dj;A=A.Mn;f.subscribe("updateend",M.qU,M);A.subscribe("updateend",M.qU,M);M.qU(f);M.qU(A)}}; Iwd=function(M){M.K.unsubscribe("internalvideodatachange",M.SQ,M);M.Z.unsubscribe("internalvideodatachange",M.SQ,M);M.fd.T().V("html5_gapless_use_format_info_fix")&&(M.K.unsubscribe("internalvideoformatchange",M.SQ,M),M.Z.unsubscribe("internalvideoformatchange",M.SQ,M));M.K.unsubscribe("mediasourceattached",M.SQ,M);M.Z.unsubscribe("statechange",M.Xx,M)}; Q4D=function(M,f,A,Q){M=M.isView()?M.mediaElement:M;return new g.uJ(M,f,A,Q)}; PQ=function(M,f){f<=M.status.status||(M.status={status:f,error:null},f===5&&M.T8.resolve())}; Y4f=function(M){return M.fd.T().V("html5_gapless_no_clear_buffer_timeline")&&M.N===1&&pk(M.K.getVideoData())}; A1U=function(M){var f=M.K.j$();f=f.isView()?f.start:0;var A=M.K.getVideoData().isLivePlayback?Infinity:M.K.YN(!0);A=Math.min(M.bL/1E3,A)+f;var Q=M.X?100:0;M=A-M.Z.By()+Q;return{QX:f,L9:M,A1:A,Gp:Infinity}}; Tdt=function(M){return{dj:M.j.K.QJ,Mn:M.j.Z.QJ}}; nN=function(M){g.y.call(this);var f=this;this.app=M;this.N=this.Z=this.K=null;this.X=!1;this.j=this.C=null;this.W=Mmf(this.app.T());this.G=function(){g.cW(function(){ENd(f)})}}; tme=function(M,f,A,Q,N){Q=Q===void 0?0:Q;N=N===void 0?0:N;M.Ci()||jU(M);M.C=new Yl;M.K=f;var Y=A,I=N===0;I=I===void 0?!0:I;var D=M.app.v7(),E=D.getVideoData().isLivePlayback?Infinity:D.YN(!0)*1E3;Y>E&&(Y=E-200,M.X=!0);I&&D.getCurrentTime()>=Y/1E3?M.G():(M.Z=D,I&&(I=Y,Y=M.Z,M.app.G0.addEventListener(g.EW("vqueued"),M.G),I=isFinite(I)||I/1E3>Y.getDuration()?I:0x8000000000000,M.N=new g.T1(I,0x8000000000000,{namespace:"vqueued"}),Y.addCueRange(M.N)));I=Q/=1E3;Y=f.getVideoData().K;Q&&Y&&M.Z&&(D=Q,E=0, f.getVideoData().isLivePlayback&&(I=Math.min(A/1E3,M.Z.YN(!0)),E=Math.max(0,I-M.Z.getCurrentTime()),D=Math.min(Q,f.YN()+E)),I=BGe(Y,D)||Q,I!==Q&&M.K.ZB("qvaln",{st:Q,at:I,rm:E,ct:D}));f=I;Q=M.K;Q.getVideoData().Ki=!0;Q.getVideoData().W=!0;Q.Vt(!0);Y={};M.Z&&(Y=M.Z.g5(),I=M.Z.getVideoData().clientPlaybackNonce,Y={crt:(Y*1E3).toFixed(),cpn:I});Q.ZB("queued",Y);f!==0&&Q.seekTo(f+.01,{RD:!0,G4:3,Cd:"videoqueuer_queued"});M.j=new fwt(M.W,M.app.v7(),M.K,A,M.app,N);A=M.j;A.status.status!==Infinity&&(PQ(A, 1),A.K.subscribe("internalvideodatachange",A.SQ,A),A.Z.subscribe("internalvideodatachange",A.SQ,A),A.fd.T().V("html5_gapless_use_format_info_fix")&&(A.K.subscribe("internalvideoformatchange",A.SQ,A),A.Z.subscribe("internalvideoformatchange",A.SQ,A)),A.K.subscribe("mediasourceattached",A.SQ,A),A.Z.subscribe("statechange",A.Xx,A),A.K.subscribe("newelementrequired",A.Dj,A),A.SQ());return M.C}; ENd=function(M){var f,A,Q,N,Y,I,D,E,t;g.n(function(v){switch(v.Z){case 1:if(M.ek()||!M.C||!M.K)return v.return();M.X&&M.app.v7().JF(!0,!1);A=M.app.T().V("html5_force_csdai_gapful_transition")&&((f=M.app.v7())==null?void 0:f.getVideoData().isDaiEnabled());Q=null;if(!M.j||A){v.CJ(2);break}g.HX(v,3);return g.r(v,Nd6(M.j),5);case 5:g.Rf(v,2);break;case 3:Q=N=g.id(v);case 2:if(!M.K)return v.return();g.zJ.ij("vqsp",function(){M.app.GF(M.K)}); if(!M.K)return v.return();Y=M.K.j$();M.app.T().V("html5_gapless_seek_on_negative_time")&&Y&&Y.getCurrentTime()<-.01&&M.K.seekTo(0);g.zJ.ij("vqpv",function(){M.app.playVideo()}); if(Q||A)M.K?(I=Q?Q.message:"forced",(D=M.Z)==null||D.ZB("gapfulfbk",{r:I}),M.K.cT(I)):(E=M.Z)==null||E.ZB("gapsp",{});t=M.C;jU(M);t&&t.resolve();return v.return(Promise.resolve())}})}; jU=function(M,f){f=f===void 0?!1:f;if(M.Z){if(M.N){var A=M.Z;M.app.G0.removeEventListener(g.EW("vqueued"),M.G);A.removeCueRange(M.N)}M.Z=null;M.N=null}M.j&&(M.j.status.status!==6&&(A=M.j,A.status.status!==Infinity&&A.N!==1&&A.ZI("Canceled")),M.j=null);M.C=null;M.K&&!f&&M.K!==M.app.IE()&&M.K!==M.app.v7()&&M.K.dispose();M.K&&f&&M.K.G8();M.K=null;M.X=!1}; vNb=function(M){var f;return((f=M.j)==null?void 0:f.currentVideoDuration)||-1}; p3e=function(M,f,A){if(M.Ci())return"qie";if(M.K==null||M.K.ek()||M.K.getVideoData()==null)return"qpd";if(f.videoId!==M.K.MX())return"vinm";if(vNb(M)<=0)return"ivd";if(A!==1)return"upt";if((A=M.j)==null)M=void 0;else if(A.getStatus().status!==5)M="niss";else if(GsN(A.policy,A.K,A.Z,A.bL)!=null)M="pge";else{f=Tdt(A);M=f.dj;var Q=f.Mn;f=g.CE(A.fd.T().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var N=A.G+f;A.fd.T().experiments.X3("html5_pseudogapless_shorts")&&(N=A1U(A).L9+f);A=Sr(Q.Da(), N);M=Sr(M.Da(),N);M=!(f>0)||A&&M?null:"neb"}return M!=null?M:null}; hAc=function(){g.pi.call(this);var M=this;this.fullscreen=0;this.C=this.j=this.pictureInPicture=this.K=this.Z=this.inline=!1;this.N=function(){M.Zy()}; TFD(this.N);this.G=this.getVisibilityState(this.Dy(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.O3(),this.K2(),this.PY(),this.ym())}; tBD=function(M){return!(M.isMinimized()||M.isInline()||M.isBackground()||M.O3()||M.K2()||M.PY()||M.ym())}; g.$c=function(M){g.y.call(this);this.QY=M;this.videoData=this.playerState=null}; d0=function(M,f){g.y.call(this);var A=this;this.data=[];this.j=M||NaN;this.Z=f||null;this.K=new g.MY(function(){F6(A);yP(A)}); g.d(this,this.K)}; tDe=function(M){F6(M);return M.data.map(function(f){return f.value})}; F6=function(M){var f=(0,g.W)();M.data.forEach(function(A){A.expire0));(Q=g.CE(f, "html5_cobalt_audio_write_ahead_ms"))&&hv("Media.AudioWriteDurationLocal",Q);(Q=A("html5_cobalt_enable_decode_to_texture"))&&hv("Media.PlayerConfiguration.DecodeToTexturePreferred",Q?1:0);(M.cX()||A("html5_log_cpu_info"))&&Qoe();Error.stackTraceLimit=50;var N=g.CE(f,"html5_idle_rate_limit_ms");N&&Object.defineProperty(window,"requestIdleCallback",{value:function(Y){return window.setTimeout(Y,N)}}); GE9(M.N);meN(A("html5_use_ump_request_slicer"));WAz(A("html5_record_now"));A("html5_disable_streaming_xhr")&&(D9=!1);A("html5_byterate_constraints")&&(Cy=!0);A("html5_use_non_active_broadcast_for_post_live")&&(YB=!0);A("html5_enable_encrypted_av1")&&(lT=!0);kQ0(g.CE(M.experiments,"html5_sticky_duration_mos"));M.V("html5_estimate_live_partial_slice_duration")&&(pMd=!0)}; q4D=function(M,f){return M.slice(f.length).replace(/_[a-z]/g,function(A){return A.toUpperCase().replace("_","")}).replace("Dot",".")}; H9f=function(M){for(var f={},A=g.V(Object.keys(M.experiments.flags)),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.startsWith("cobalt_h5vcc"))if(Q.startsWith("cobalt_h5vcc_string")){var N=q4D(Q,"cobalt_h5vcc_string");Q=EH(M.experiments,Q);N&&Q&&(f[N]=hv(N,Q))}else Q.startsWith("cobalt_h5vcc")&&(N=q4D(Q,"cobalt_h5vcc"),Q=g.CE(M.experiments,Q),N&&Q&&(f[N]=hv(N,Q)));return f}; WQ=function(M,f,A,Q,N){N=N===void 0?[]:N;g.y.call(this);this.QY=M;this.NV=f;this.segments=N;this.K=new Map}; mof=function(M,f,A,Q){Q=Q===void 0?0:Q;g.kX.call(this,A.ye());this.Od=M;this.videoData=f;this.duration=Q;this.endTime=this.startTime=0}; s4b=function(M){this.end=this.start=M}; g.O$=function(){this.K=new Map;this.j=new Map;this.Z=new Map}; g.X6=function(M,f,A,Q){g.y.call(this);var N=this;this.api=M;this.QY=f;this.playback=A;this.app=Q;this.g_=new g.O$;this.Z=new Map;this.G=[];this.N=[];this.C=new Map;this.MV=new Map;this.W=new Map;this.Qw=new Map;this.YO=null;this.Yp=NaN;this.zt=this.oE=null;this.wq=new g.MY(function(){c1f(N,N.Yp,N.oE||void 0)}); this.events=new g.yK(this);this.xO=15E3;this.P7=new g.MY(function(){N.z0=!0;N.playback.wS(N.xO);RA6(N);if(N.playback.getVideoData().G_()){var Y;N.F3({togab:(Y=N.jk)==null?void 0:Y.identifier})}N.Y4(!1)},this.xO); this.z0=!1;this.B=new Map;this.l8=[];this.jk=null;this.Z9=new Set;this.fJ=[];this.xp=[];this.Uq=[];this.N5=[];this.K=void 0;this.nF=0;this.ox=!0;this.X=!1;this.nJ=[];this.w_=new Set;this.Fk=new Set;this.T_=new Set;this.yS=0;this.Ji=new Set;this.y7=0;this.ST=this.d2=!1;this.n3=this.j="";this.KJ=null;this.logger=new g.tD("dai");this.Ed={HF7:function(){return N.Z}, mTx:function(){return N.G}, zix:function(){return N.C}, S20:function(){return N.j}, B63:function(Y){N.onCueRangeEnter(N.Z.get(Y))}, Itu:function(Y){N.onCueRangeExit(N.Z.get(Y))}, WbN:function(Y,I){N.Z.set(Y,I)}, v1$:function(Y){N.n3=Y}, fI:function(){return N.fI()}, PXr:function(Y){return N.W.get(Y)}, phJ:function(){return N.KJ}}; this.playback.getPlayerType();this.playback.Ho(this);this.b8=this.QY.cX();g.d(this,this.wq);g.d(this,this.events);g.d(this,this.P7);this.events.J(this.api,g.EW("serverstitchedcuerange"),this.onCueRangeEnter);this.events.J(this.api,g.tf("serverstitchedcuerange"),this.onCueRangeExit);Lnc(this.app.yK(),this.playback,!1)}; Z96=function(M,f,A,Q,N,Y,I,D,E){if(M.QY.V("html5_ignore_ads_after_noadresponse")&&E&&M.Z9.has(E))return JR(M,{reason:"addafternoad",cueid:E}),"";E=gND(M,Y,Y+N);M.z0&&M.F3({adaftto:1});A||M.F3({missadcon:1,enter:Y,len:N,aid:D});M.Er&&!M.Er.Mx&&(M.Er.Mx=D);M.ST&&M.F3({adfbk:1,enter:Y,len:N,aid:D});var t=M.playback;I=I===void 0?Y+N:I;Y===I&&!N&&M.QY.V("html5_allow_zero_duration_ads_on_timeline")&&M.F3({attl0d:1});Y>I&&JR(M,{reason:"enterTime_greater_than_return",NV:Y,kz:I});var v=t.hd()*1E3;Yt&&JR(M,{reason:"parent_return_greater_than_content_duration",kz:I,CKk:t});t=null;v=g.u6(M.N,{kz:Y},function(p,h){return p.kz-h.kz}); v>=0&&(t=M.N[v],t.kz>Y&&Bdb(M,f.video_id||"",Y,I,t));if(E&&t)for(v=0;v.5&&M.F3({ttdtb:1,delta:I,cpn:N.cpn,enter:f.adCpn,exit:A.adCpn,seek:Q,skip:Y});M.api.V("html5_ssdai_enable_media_end_cue_range")&&(!Q&&!Y&&A.isAd&&A.adCpn?M.api.Mz(A.adCpn):(Q||Y)&&M.F3({mecr:0,seek:Q,skip:Y}));if(f.isAd&&A.isAd){N=!!Y;if(f.adCpn&&A.adCpn){var D=M.C.get(f.adCpn);var E=M.C.get(A.adCpn)}N?M.F3({igtransskip:1,enter:f.adCpn,exit:A.adCpn,seek:Q,skip:Y}):lJ(M,E,D,A.Rn,f.Rn,Q,N)}else if(!f.isAd&&A.isAd){M.n3= N.cpn;M.hY(N.cpn,N.NV/1E3);M.api.publish("serverstitchedvideochange");D=GJ(M,"a2c");M.F3(D);M.yS=0;if(D=A.yJ)M.nF=D.end;var t;A.adCpn&&(t=M.C.get(A.adCpn));t&&M.playback.wA(t,N,A.Rn,f.Rn,Q,!!Y)}else if(f.isAd&&!A.isAd){var v;f.adCpn&&(v=M.C.get(f.adCpn));v&&(M.nF=0,M.n3=v.cpn,M.hY(v.cpn,v.NV/1E3),w0(M,v),t=GJ(M,"c2a",v),M.F3(t),M.yS=1,M.playback.wA(N,v,A.Rn,f.Rn,Q,!!Y))}}; fL=function(M,f,A){A=A===void 0?0:A;var Q=g.u6(M.N,{NV:(f+A)*1E3},function(D,E){return D.NV-E.NV}); Q=Q<0?(Q+2)*-1:Q;if(Q>=0)for(var N=f*1E3,Y=Q;Y<=Q+1&&Y=I.NV-A*1E3&&N<=I.kz+A*1E3)return{zv:I,P5:f}}return{zv:void 0,P5:f}}; Pkf=function(M,f){var A="";(f=zA9(M,f))&&(A=f.getId());return A?M.C.get(A):void 0}; zA9=function(M,f){if(M.n3){var A=M.Z.get(M.n3);if(A&&A.start-200<=f&&A.end+200>=f)return A}M=g.V(M.Z.values());for(A=M.next();!A.done;A=M.next())if(A=A.value,A.start<=f&&A.end>=f)return A}; c1f=function(M,f,A){var Q=M.zt||M.app.v7().getPlayerState();A8(M,!0);M.playback.seekTo(f,A);M=M.app.v7();f=M.getPlayerState();Q.isOrWillBePlaying()&&!f.isOrWillBePlaying()?M.playVideo():Q.isPaused()&&!f.isPaused()&&M.pauseVideo()}; A8=function(M,f){M.Yp=NaN;M.oE=null;M.wq.stop();M.YO&&f&&M.YO.pU();M.zt=null;M.YO=null}; j4X=function(M){var f=f===void 0?-1:f;var A=A===void 0?Infinity:A;for(var Q=[],N=g.V(M.N),Y=N.next();!Y.done;Y=N.next())Y=Y.value,(Y.NVA)&&Q.push(Y);M.N=Q;Q=g.V(M.Z.values());for(N=Q.next();!N.done;N=Q.next())N=N.value,N.start>=f&&N.end<=A&&(M.playback.removeCueRange(N),M.Z.delete(N.getId()),M.F3({rmAdCR:1}));Q=fL(M,f/1E3);f=Q.zv;Q=Q.P5;if(f&&(Q=Q*1E3-f.NV,nN9(M,f,Q,f.NV+Q),Q=M.Z.get(f.cpn))){N=g.V(M.G);for(Y=N.next();!Y.done;Y=N.next())Y=Y.value,Y.start===Q.end?Y.start=f.NV+f.durationMs: Y.end===Q.start&&(Y.end=f.NV);Q.start=f.NV;Q.end=f.NV+f.durationMs}if(f=fL(M,A/1E3).zv){var I;Q="playback_timelinePlaybackId_"+f.Jd+"_video_id_"+((I=f.videoData)==null?void 0:I.videoId)+"_durationMs_"+f.durationMs+"_enterTimeMs_"+f.NV+"_parentReturnTimeMs_"+f.kz;M.qm("Invalid_clearEndTimeMs_"+A+"_that_falls_during_"+Q+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; $ob=function(M){M.g_.clearAll();M.Z.clear();M.G=[];M.N=[];M.C.clear();M.MV.clear();M.W.clear();M.B.clear();M.l8=[];M.jk=null;M.Z9.clear();M.fJ=[];M.xp=[];M.Uq=[];M.N5=[];M.nJ=[];M.w_.clear();M.Fk.clear();M.T_.clear();M.Ji.clear();M.z0=!1;M.K=void 0;M.nF=0;M.ox=!0;M.X=!1;M.yS=0;M.y7=0;M.d2=!1;M.ST=!1;M.j="";M.P7.isActive()&&KN(M)}; nN9=function(M,f,A,Q){f.durationMs=A;f.kz=Q;(Q=M.Qw.get(f.cpn))?Q.Xy(A/1E3):M.F3({nop_d:f.cpn})}; y1T=function(M,f,A,Q,N,Y){if(!M.ST)if(g.FnX(M,A))M.F3({gdu:"undec",seg:A,itag:N});else if(f=Qq(M,f,A,Q,Y),!(M.playback.getVideoData().G_()&&(f==null?0:f.iN)))return f}; Qq=function(M,f,A,Q,N){var Y=M.B.get(A);if(!Y){if(Y=doz(M,f))return Y;f=M.WC(A-1,Q!=null?Q:2);if(N)return M.F3({misscue:N,sq:A,type:Q,prevsstate:f==null?void 0:f.WV,prevrecord:M.B.has(A-1)}),M.B.get(A-1);if((f==null?void 0:f.WV)===2)return M.F3({adnf:1,sq:A,type:Q,prevrecord:M.B.has(A-1)}),M.B.get(A-1)}return Y}; doz=function(M,f){f+=M.fS();if(M.playback.getVideoData().G_())a:{var A=1;A=A===void 0?0:A;var Q=f*1E3;M=g.V(M.N);for(var N=M.next();!N.done;N=M.next()){N=N.value;var Y=N.PN?N.PN*1E3:N.NV;if(Q>=N.NV-A*1E3&&Q<=Y+N.durationMs+A*1E3){Q={zv:N,P5:f};break a}}Q={zv:void 0,P5:f}}else Q=fL(M,f),((A=Q)==null?0:A.zv)||(Q=fL(M,f,1));var I;return(I=Q)==null?void 0:I.zv}; eAX=function(M,f){f=f===void 0?"":f;var A=SX(f)||void 0;if(!f||!A){var Q;M.F3({adcfg:(Q=f)==null?void 0:Q.length,dcfg:A==null?void 0:A.length})}return A}; b99=function(M){if(M.nJ.length)for(var f=g.V(M.nJ),A=f.next();!A.done;A=f.next())M.onCueRangeExit(A.value);f=g.V(M.Z.values());for(A=f.next();!A.done;A=f.next())M.playback.removeCueRange(A.value);f=g.V(M.G);for(A=f.next();!A.done;A=f.next())M.playback.removeCueRange(A.value);M.Z.clear();M.G=[];M.g_.clearAll();M.K||(M.ox=!0)}; lJ=function(M,f,A,Q,N,Y,I){if(f&&A){M.n3=A.cpn;M.hY(A.cpn,A.NV/1E3);w0(M,A);var D=GJ(M,"a2a",A);M.F3(D);M.yS++;M.playback.wA(f,A,Q||0,N||0,!!Y,!!I)}else M.F3({misspbkonadtrans:1,enter:(A==null?void 0:A.cpn)||"",exit:(f==null?void 0:f.cpn)||"",seek:Y,skip:I})}; Wn0=function(M,f,A,Q){if(Q)for(Q=0;QA){var Y=N.end;N.end=f;kxT(M,A,Y)}else if(N.start>=f&&N.startA)N.start=A;else if(N.end>f&&N.end<=A&&N.start=f&&N.end<=A){M.playback.removeCueRange(N);if(M.nJ.includes(N))M.onCueRangeExit(N);M.G.splice(Q,1);continue}Q++}else kxT(M,f,A)}; kxT=function(M,f,A){f=r1D(f,A);A=!0;g.$e(M.G,f,function(I,D){return I.start-D.start}); for(var Q=0;Q0){var N=M.G[Q],Y=M.G[Q-1];if(Math.round(Y.end/1E3)>=Math.round(N.start/1E3)){Y.end=N.end;N!==f?M.playback.removeCueRange(N):A=!1;M.G.splice(Q,1);continue}}Q++}if(A)for(M.playback.addCueRange(f),f=M.playback.m9("serverstitchedcuerange",36E5),f=g.V(f),A=f.next();!A.done;A=f.next())M.Z.delete(A.value.getId())}; NJ=function(M,f,A){if(A===void 0||!A){A=g.V(M.l8);for(var Q=A.next();!Q.done;Q=A.next()){Q=Q.value;if(f>=Q.start&&f<=Q.end)return;if(f===Q.end+1){Q.end+=1;return}}M.l8.push(new s4b(f))}}; g.FnX=function(M,f){M=g.V(M.l8);for(var A=M.next();!A.done;A=M.next())if(A=A.value,f>=A.start&&f<=A.end)return!0;return!1}; Y5=function(M,f,A){var Q;if(Q=M.playback.getVideoData().G_()||M.QY.V("html5_ssdai_extent_last_unfinished_ad_cue_range"))Q=(Q=M.C.get(f))&&Q.eU?(M=M.W.get(Q==null?void 0:Q.eU))&&M.slice(-1)[0].cpn===f:!1;return Q&&A===2?1E3:0}; Bdb=function(M,f,A,Q,N){var Y;f={reason:"overlapping_playbacks",Ii0:f,NV:A,kz:Q,KJ8:N.Jd,ZFJ:((Y=N.videoData)==null?void 0:Y.videoId)||"",QZ3:N.durationMs,dT8:N.NV,E80:N.kz};JR(M,f)}; JR=function(M,f,A){M.playback.Yh(f,A)}; O9t=function(M,f){var A=[];M=M.W.get(f);if(!M)return[];M=g.V(M);for(f=M.next();!f.done;f=M.next())f=f.value,f.cpn&&A.push(f.cpn);return A}; X36=function(M,f,A){var Q=0;M=M.W.get(A);if(!M)return-1;M=g.V(M);for(A=M.next();!A.done;A=M.next()){if(A.value.cpn===f)return Q;Q++}return-1}; J1X=function(M,f){var A=0;M=M.W.get(f);if(!M)return 0;M=g.V(M);for(f=M.next();!f.done;f=M.next())f=f.value,f.durationMs!==0&&f.kz!==f.NV&&A++;return A}; Knb=function(M,f,A){var Q=!1;if(A&&(A=M.W.get(A))){A=g.V(A);for(var N=A.next();!N.done;N=A.next())N=N.value,N.durationMs!==0&&N.kz!==N.NV&&(N=N.cpn,f===N&&(Q=!0),Q&&!M.Fk.has(N)&&(M.F3({decoratedAd:N}),M.Fk.add(N)))}}; RA6=function(M){M.b8&&M.F3({adf:"0_"+((new Date).getTime()/1E3-M.y7)+"_isTimeout_"+M.z0})}; gND=function(M,f,A){if(M.fJ.length)for(var Q=g.V(M.fJ),N=Q.next(),Y={};!N.done;Y={KU:void 0},N=Q.next()){Y.KU=N.value;N=Y.KU.startSecs*1E3;var I=Y.KU.UR*1E3+N;if(f>N&&fN&&A0?M:0}else M.fI().videoData.Yp=M.playback.getCurrentTime()}; AiD=function(M,f,A,Q){g.y.call(this);var N=this;this.api=M;this.QY=f;this.K=A;this.app=Q;this.N=new Map;this.Z=[];this.j=this.W=null;this.Er=NaN;this.G=this.C=this.B=null;this.X=new g.MY(function(){fWe(N,N.Er,N.B||void 0)}); this.KJ=[];this.jk=new g.MY(function(){var Y=N.KJ.pop();if(Y){var I=Y.Jd,D=Y.playerVars;Y=Y.playerType;D&&(D.prefer_gapless=!0,N.api.preloadVideoByPlayerVars(D,Y,NaN,"",I),N.KJ.length&&g.f5(N.jk,4500))}}); this.events=new g.yK(this);this.Ed={y8r:function(){return N.Z}}; this.K.getPlayerType();g.d(this,this.X);g.d(this,this.jk);g.d(this,this.events);this.events.J(this.api,g.EW("childplayback"),this.onCueRangeEnter);this.events.J(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.J(this.api,"presentingplayerstatechange",this.t$)}; IWU=function(M,f,A,Q,N,Y){var I=f.cpn,D=f.docid||f.video_id||f.videoId||f.id,E=M.K;Y=Y===void 0?N+Q:Y;if(N>Y)return TB(M,"enterAfterReturn enterTimeMs="+N+" is greater than parentReturnTimeMs="+Y.toFixed(3),I,D),"";var t=E.hd()*1E3;if(Nt)return E="returnAfterDuration parentReturnTimeMs="+Y.toFixed(3)+" is greater than parentDurationMs="+t+". And timestampOffset in seconds is "+ E.vX(),TB(M,E,I,D),"";t=null;for(var v=g.V(M.Z),p=v.next();!p.done;p=v.next()){p=p.value;if(N>=p.NV&&Np.NV)return TB(M,"overlappingReturn",I,D),"";if(Y===p.NV)return TB(M,"outOfOrder",I,D),"";N===p.kz&&(t=p)}I="cs_childplayback_"+Qs6++;D={yJ:D0(Q,!0),bL:Infinity,target:null};var h={Jd:I,playerVars:f,playerType:A,durationMs:Q,NV:N,kz:Y,UK:D};M.Z=M.Z.concat(h).sort(function(a,q){return a.NV-q.NV}); t?NlT(M,t,{yJ:D0(t.durationMs,!0),bL:t.UK.bL,target:h}):(f={yJ:D0(N,!1),bL:N,target:h},M.N.set(f.yJ,f),E.addCueRange(f.yJ));f=!0;if(M.K===M.app.v7()&&(E=E.getCurrentTime()*1E3,E>=h.NV&&Ef)break;if(Y>f)return{zv:Q,P5:f-N};A=Y-Q.kz/1E3}return{zv:null,P5:f-A}}; fWe=function(M,f,A){A=A===void 0?{}:A;var Q=M.G||M.app.v7().getPlayerState();vo(M,!0);f=isFinite(f)?f:M.K.N4();var N=t6f(M,f);f=N.P5;var Y=(N=N.zv)&&!Et(M,N)||!N&&M.K!==M.app.v7(),I=f*1E3;I=M.j&&M.j.start<=I&&I<=M.j.end;!Y&&I||t8(M);N?YrD(M,N,f,A,Q):vhz(M,f,A,Q)}; vhz=function(M,f,A,Q){var N=M.K;N!==M.app.v7()&&M.app.Ip();N.seekTo(f,Object.assign({},{Cd:"application_timelinemanager"},A));p0z(M,Q)}; YrD=function(M,f,A,Q,N){var Y=Et(M,f);if(!Y){f.playerVars.prefer_gapless=!0;M.QY.V("html5_enable_ssap_entity_id")&&(f.playerVars.cached_load=!0);var I=new g.G9(M.QY,f.playerVars);I.Jd=f.Jd;M.api.Kf(I,f.playerType)}I=M.app.v7();Y||I.addCueRange(f.UK.yJ);I.seekTo(A,Object.assign({},{Cd:"application_timelinemanager"},Q));p0z(M,N)}; p0z=function(M,f){M=M.app.v7();var A=M.getPlayerState();f.isOrWillBePlaying()&&!A.isOrWillBePlaying()?M.playVideo():f.isPaused()&&!A.isPaused()&&M.pauseVideo()}; vo=function(M,f){M.Er=NaN;M.B=null;M.X.stop();M.C&&f&&M.C.pU();M.G=null;M.C=null}; Et=function(M,f){M=M.app.v7();return!!M&&M.getVideoData().Jd===f.Jd}; hSU=function(M){var f=M.Z.find(function(N){return Et(M,N)}); if(f){var A=M.app.v7();t8(M);var Q=new g.v8(8);f=Ehe(M,f)/1E3;vhz(M,f,{},Q);A.ZB("forceParentTransition",{childPlayback:1});M.K.ZB("forceParentTransition",{parentPlayback:1})}}; L7b=function(M,f,A){f=f===void 0?-1:f;A=A===void 0?Infinity:A;for(var Q=f,N=A,Y=g.V(M.N),I=Y.next();!I.done;I=Y.next()){var D=g.V(I.value);I=D.next().value;D=D.next().value;D.bL>=Q&&D.target&&D.target.kz<=N&&(M.K.removeCueRange(I),M.N.delete(I))}Q=f;N=A;Y=[];I=g.V(M.Z);for(D=I.next();!D.done;D=I.next())if(D=D.value,D.NV>=Q&&D.kz<=N){var E=M;E.W===D&&t8(E);Et(E,D)&&E.app.Ip()}else Y.push(D);M.Z=Y;Q=t6f(M,f/1E3);f=Q.zv;Q=Q.P5;f&&(Q*=1E3,Sr6(M,f,Q,f.kz===f.NV+f.durationMs?f.NV+Q:f.kz));(f=t6f(M,A/1E3).zv)&& TB(M,"Invalid clearEndTimeMs="+A+" that falls during playback={timelinePlaybackId="+(f.Jd+" video_id="+f.playerVars.video_id+" durationMs="+f.durationMs+" enterTimeMs="+f.NV+" parentReturnTimeMs="+f.kz+"}.Child playbacks can only have duration updated not their start."))}; Sr6=function(M,f,A,Q){f.durationMs=A;f.kz=Q;Q={yJ:D0(A,!0),bL:A,target:null};NlT(M,f,Q);Et(M,f)&&M.app.v7().getCurrentTime()*1E3>A&&(f=Ehe(M,f)/1E3,A=M.app.v7().getPlayerState(),vhz(M,f,{},A))}; TB=function(M,f,A,Q){M.K.ZB("timelineerror",{e:f,cpn:A?A:void 0,videoId:Q?Q:void 0})}; CwN=function(M){M&&M!=="web"&&ohz.includes(M)}; pL=function(){g.y.call(this);this.K=new d0(5,null);g.d(this,this.K);this.Z=new d0(15,null);g.d(this,this.Z)}; UPX=function(M,f){return f?!!M.K.get(f):!1}; U$N=function(M,f){M.dataset.version=f}; qr0=function(M){g.O.call(this,{S:"div",Ai:["html5-video-player"],D:{tabindex:M.T().disableOrganicUi?"":"-1",id:M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId:M.config.attrs.id},L:[{S:"div",Y:g.Qc.VIDEO_CONTAINER,D:{"data-layer":"0"}}]});var f=this;this.app=M;this.ID=this.H7(g.Qc.VIDEO_CONTAINER);this.xi=new g.zM(0,0,0,0);this.Lk=null;this.oP=new g.zM(0,0,0,0);this.cm=this.JJ=this.M0=NaN;this.qe=this.y_=this.EV=this.FX=!1;this.rJ=NaN;this.AJ=!1;this.Mi=null;this.iB=function(){f.element.focus({preventScroll:!0})}; this.ZW=function(){f.app.G0.publish("playerUnderlayVisibilityChange","visible");f.Lk.classList.remove(g.Qc.VIDEO_CONTAINER_TRANSITIONING);f.Lk.removeEventListener(LD,f.ZW);f.Lk.removeEventListener("transitioncancel",f.ZW)}; this.oJ=this.i4=!1;var A=this.element.addEventListener,Q=this.element.removeEventListener;this.addEventListener=function(Y,I,D){A.apply(f.element,[Y,I,D])}; this.removeEventListener=function(Y,I,D){Q.apply(f.element,[Y,I,D])}; var N=M.T();N.transparentBackground&&this.QA("ytp-transparent");N.controlsType==="0"&&this.QA("ytp-hide-controls");g.tZ(this.element,"ytp-exp-bottom-control-flexbox");g.tZ(this.element,"ytp-modern-caption");N.V("enable_new_paid_product_placement")&&!g.Ys(N)&&g.tZ(this.element,"ytp-exp-ppp-update");N.V("html5_enable_ssap")&&g.tZ(this.element,"ytp-ssap");g.tZ(this.element,"ytp-livebadge-color");if(N.V("delhi_modern_web_player"))switch(g.tZ(this.element,"ytp-delhi-modern"),N.V("delhi_modern_web_player_icons")&& g.tZ(this.element,"ytp-delhi-modern-icons"),EH(N.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.tZ(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.tZ(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.tZ(this.element,"ytp-delhi-modern-with-exclusion")}U$N(this.element,V6D(M));this.XO=!1;this.gF=new g.za(NaN,NaN);aWD(this);this.J(M.G0,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; aWD=function(M){function f(){M.Lk&&h8(M);SY(M)!==M.AJ&&M.resize()} function A(I,D){M.q_(I,D)} function Q(I){I.getVideoData()&&M.updateVideoData(I.getVideoData())} function N(){M.oP=new g.zM(0,0,0,0);M.xi=new g.zM(0,0,0,0)} var Y=M.app.G0;Y.addEventListener("initializingmode",N);Y.addEventListener("videoplayerreset",Q);Y.addEventListener("videodatachange",A);Y.addEventListener("presentingplayerstatechange",f);M.addOnDisposeCallback(function(){Y.removeEventListener("initializingmode",N);Y.removeEventListener("videoplayerreset",Q);Y.removeEventListener("videodatachange",A);Y.removeEventListener("presentingplayerstatechange",f)})}; m$6=function(M){var f=M.app.v7();if(f=f?f.getVideoData():null){if(g.uv(f)||g.ze(f)||g.Pu(f))return 16/9;if(Dt(f)&&f.j.K)return M=f.j.videoInfos[0].video,HC9(M.width,M.height)}return(M=M.Lk)?HC9(M.videoWidth,M.videoHeight):16/9}; ssf=function(M,f,A,Q){var N=A,Y=HC9(f.width,f.height);M.FX?N=AY?{width:f.width,height:f.width/N,aspectRatio:N}:NN?M.width=M.height*A:AE;if(SY(M)){var t=m$6(M);var v=isNaN(t)||g.Gf||A7&&g.mH||E;KH&&!g.BB(601)?t=N.aspectRatio:v=v||Y.controlsType==="3";v?E?(v=Y.V("place_shrunken_video_on_left_of_player")?16:M.getPlayerSize().width-f.width-16,t=Math.max((M.getPlayerSize().height-f.height)/2,0),v=new g.zM(v,t,f.width, f.height),M.Lk.style.setProperty("border-radius","12px")):v=new g.zM(0,0,f.width,f.height):(A=N.aspectRatio/t,v=new g.zM((f.width-N.width/A)/2,(f.height-N.height)/2,N.width/A,N.height),A===1&&g.mH&&(t=v.width-f.height*t,t>0&&(v.width+=t,v.height+=t)));g.Sb(M.element,"ytp-fit-cover-video",Math.max(v.width-N.width,v.height-N.height)<1);if(D||M.XO)M.Lk.style.display="";M.AJ=!0}else{v=-f.height;KH?v*=window.devicePixelRatio:g.IL&&(v-=window.screen.height);v=new g.zM(0,v,f.width,f.height);if(D||M.XO)M.Lk.style.display= "none";M.AJ=!1}PC(M.oP,v)||(M.oP=v,g.eX(Y)?(M.Lk.style.setProperty("width",v.width+"px","important"),M.Lk.style.setProperty("height",v.height+"px","important")):g.Xo(M.Lk,v.getSize()),Q=new g.r2(v.left,v.top),g.bW(M.Lk,Math.round(Q.x),Math.round(Q.y)),Q=!0);f=new g.zM((f.width-N.width)/2,(f.height-N.height)/2,N.width,N.height);PC(M.xi,f)||(M.xi=f,Q=!0);g.ji(M.Lk,"transform",A===1?"":"scaleX("+A+")");I&&E!==M.y_&&(E&&(M.Lk.addEventListener(LD,M.ZW),M.Lk.addEventListener("transitioncancel",M.ZW),M.Lk.classList.add(g.Qc.VIDEO_CONTAINER_TRANSITIONING)), M.y_=E,M.app.G0.publish("playerUnderlayVisibilityChange",M.y_?"transitioning":"hidden"));return Q}; ghX=function(M){M.i4=!M.i4;M.oJ=!0;M.element.classList.toggle("ytp-retro-player",M.i4);M.resize();M.oJ=!1;M.app.G0.T0("onRetroModeChanged",M.i4)}; BlU=function(){this.csn=g.iH();this.clientPlaybackNonce=null;this.elements=new Set;this.j=new Set;this.K=new Set;this.Z=new Set}; iCD=function(M){if(M.csn!==g.iH())if(M.csn==="UNDEFINED_CSN")M.csn=g.iH();else{var f=g.iH(),A=g.Bf();if(f&&A){M.csn=f;for(var Q=g.V(M.elements),N=Q.next();!N.done;N=Q.next())(N=N.value.visualElement)&&N.isClientVe()&&f&&A&&(g.mE("combine_ve_grafts")?ya($L(),N,A):g.f0(g.GZ)(void 0,f,A,N))}if(f)for(M=g.V(M.K),A=M.next();!A.done;A=M.next())(A=A.value.visualElement)&&A.isClientVe()&&g.Ie(f,A)}}; g.oO=function(M,f,A,Q){g.y.call(this);var N=this;this.logger=new g.tD("App");this.Vk=this.GQ=!1;this.qM={};this.zy=[];this.jb=!1;this.Ei=null;this.intentionalPlayback=!1;this.h6=!0;this.Kw=!1;this.oR=this.Ws=this.n9=null;this.Bs=!0;this.mediaElement=this.PX=null;this.rN=NaN;this.Ut=!1;this.Jh=this.ZG=this.rb=this.screenLayer=this.playlist=null;this.XU=[];this.VH=0;this.Ed={yK:function(){return N.i7}, Pkx:function(){return N.rb}, fE$:function(){}}; this.logger.debug("constructor begin");this.config=wLN(f||{});this.webPlayerContextConfig=A;v2f();f=this.config.args||{};this.QY=new Kt(f,A,A?A.canaryState:this.config.assets.player_canary_state,Q,this);g.d(this,this.QY);aw6(this.QY);Q=H9f(this.QY);this.QY.cX()&&LL(this,"h5vcc",Q);this.QY.experiments.X3("jspb_serialize_with_worker")&&WEc();this.QY.experiments.X3("gzip_gel_with_worker")&&jb9();this.QY.Z&&!x$X&&(window.addEventListener(Z9?"touchstart":"click",KDU,{capture:!0,passive:!0}),x$X=!0);this.V("html5_onesie")&& (this.Oc=new Tq(this.QY),g.d(this,this.Oc));this.hV=TX(jX(this.QY)&&!0,f.enablesizebutton);this.p9=TX(!1,f.player_wide);this.visibility=new hAc;g.d(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.VT(TX(!1,f.player_wide));this.GQ=TX(!1,f.external_list);this.events=new g.yK(this);g.d(this,this.events);this.V("start_client_gcf")&&(zm($r(),{dW:vy,F_:TBd()}),this.YY=$r().resolve(vy),toX(this.YY));this.Exi=new ol;g.d(this,this.Exi);this.YV=new BlU;Q=new Cv;this.G0=new g.xX(this,Q); g.d(this,this.G0);this.template=new qr0(this);g.d(this,this.template);this.appState=1;this.l3=ZC0(this);g.d(this,Q);Q={};this.kU=(Q.internalvideodatachange=this.MkN,Q.playbackready=this.vOO,Q.playbackstarted=this.w7_,Q.statechange=this.Yr_,Q);this.vW=new vt(this.G0);this.xz=riz(this);Q=this.V("html5_load_wasm");f=this.V("html5_allow_asmjs");Q&&up9||f?(this.QY.Fk=qtz(this.xz,f),s_(mA(this.QY.Fk,function(Y){N.QY.nJ=Y;LL(N,"wasm",{a:Y.K})}),function(Y){g.$b(Y); LL(N,"wasm",{e:"message"in Y&&Y.message||Y.toString()||""})})):Q&&!up9&&LL(this,"wasm",{e:"unavailable"}); Q=this.QY.G;!1!==Q&&LL(this,"badps",{hbp:Q,hostname:window.location.hostname,ps:this.QY.playerStyle});this.pk=new rRb(this.QY,this.xz);this.G0.publish("csiinitialized");Q=10;g.Zs(this.QY)&&(Q=3);N1(this.QY)&&(Q=g.CE(this.QY.experiments,"tvhtml5_unplugged_preload_cache_size"));this.i7=new g.bJ(this.G0,Q);Q=zS9(this);this.i7.ZY(Q);Pwd(this);Q={};this.Tr=(Q.airplayactivechange=this.hRY,Q.airplayavailabilitychange=this.l9u,Q.beginseeking=this.Lnu,Q.sabrCaptionsDataLoaded=this.uk3,Q.endseeking=this.Fn7, Q.internalAbandon=this.xVi,Q.internalaudioformatchange=this.rP3,Q.internalvideodatachange=this.P7r,Q.internalvideoformatchange=this.pvu,Q.liveviewshift=this.Bq_,Q.playbackstalledatstart=this.C7N,Q.progresssync=this.IKO,Q.onAbnormalityDetected=this.Tq7,Q.onSnackbarMessage=this.Hd8,Q.onLoadProgress=this.sE7,Q.SEEK_COMPLETE=this.k_i,Q.SEEK_TO=this.jtu,Q.onVideoProgress=this.Sd_,Q.onLoadedMetadata=this.Qt0,Q.onAutoplayBlocked=this.a9_,Q.onPlaybackPauseAtStart=this.EC8,Q.playbackready=this.KL7,Q.statechange= this.IF,Q.newelementrequired=this.Z7,Q.heartbeatparams=this.DVu,Q.videoelementevent=this.zu8,Q.drmoutputrestricted=this.bki,Q.signatureexpired=this.idJ,Q.nonfatalerror=this.d5r,Q.reloadplayer=this.tci,Q);this.tF=new g.yK(this);g.d(this,this.tF);this.ub=new pL;g.d(this,this.ub);this.GR=this.JA=-1;this.bz=new g.MY(this.template.resize,16,this.template);g.d(this,this.bz);this.Od=new AiD(this.G0,this.QY,this.IE(),this);this.Os=new WQ(this.QY);this.di=new nN(this);g.d(this,this.di);this.Bo=new r0(this); g.d(this,this.Bo);CwN(this.QY.K.c);this.events.J(this.G0,g.EW("appapi"),this.RN0);this.events.J(this.G0,g.tf("appapi"),this.W$Y);this.events.J(this.G0,g.EW("appprogressboundary"),this.nCr);this.events.J(this.G0,g.tf("applooprange"),this.Q$);this.events.J(this.G0,"presentingplayerstatechange",this.t$);this.events.J(this.G0,"resize",this.Ydr);this.template.pJ(g.F(bh(document,M)));this.events.J(this.G0,"offlineslatestatechange",this.vpY);this.events.J(this.G0,"sabrCaptionsTrackChanged",this.FLk);this.events.J(this.G0, "sabrCaptionsBufferedRangesUpdated",this.bdY);this.xz.U.T().H2&&RW(this.xz,"offline");this.QY.w_&&g.oW("ux",g.xc);M=g.CE(this.QY.experiments,"html5_defer_fetch_att_ms");this.Ny=new g.MY(this.kjN,M,this);g.d(this,this.Ny);this.K3().hh()&&(g.yi()&&this.K3().KJ.push("remote"),nhN(this));this.pk.tick("fs");jsX(this);this.QY.w_&&RW(this.xz,"ux",!0);g.Ps(this.xz.U.T())&&RW(this.xz,"embed");this.V("web_player_sentinel_is_uniplayer")||g.$b(new g.GX("Player experiment flags missing","web_player_sentinel_is_uniplayer")); M=this.V("web_player_sentinel_yt_experiments_sync");Q=g.mE("web_player_sentinel_yt_experiments_sync");M!==Q&&g.$b(new g.GX("b/195699950",{yt:M,player:Q}));A||g.$b(new g.GX("b/179532961"));this.Tl=$$9(this);if(A=g.CE(this.QY.experiments,"html5_block_pip_safari_delay"))this.wk=new g.MY(this.l9,A,this),g.d(this,this.wk);jC=this.QY.MV;A=g.CE(this.QY.experiments,"html5_performance_impact_profiling_timer_ms");A>0&&(this.Nb=new g.$M(A),g.d(this,this.Nb),this.events.J(this.Nb,"tick",function(){N.qb&&F7c.PC("apit", N.qb);N.qb=F7c.M7()})); this.G0.publish("applicationInitialized");this.logger.debug("constructor end")}; $$9=function(M){function f(A){A.stack&&A.stack.indexOf("player")!==-1&&M.v7().JO(A)} FP.subscribe("handleError",f);lG.push(f);return function(){FP.unsubscribe("handleError",f);var A=lG.indexOf(f);A!==-1&&lG.splice(A,1)}}; zS9=function(M){var f=new g.G9(M.QY,M.config.args);M.G0.publish("initialvideodatacreated",f);return CL(M,1,f,!1)}; Pwd=function(M){var f=M.IE(),A=f.setPlaybackRate;if(M.QY.C)var Q=1;else Q=Number(g.$J("yt-player-playback-rate"))||1,Q=yib(M,Q);A.call(f,Q);f.LI(M.kU,M);f.Rp()}; riz=function(M){var f="",A=V6D(M);A.indexOf("//")===0&&(A=M.QY.protocol+":"+A);var Q=A.lastIndexOf("/base.js");Q!==-1&&(f=A.substring(0,Q+1));if(A=Error().stack)if(A=A.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))A=A[1],A.includes(f)||g.$b(Error("Player module URL mismatch: "+(A+" vs "+f+".")));f=new NCb(M.G0,f);d$6(M,f);return f}; d$6=function(M,f){var A={};A=(A.destroyed=function(){M.onApiChange()},A); f.j=A}; ZC0=function(M){if(M.QY.storeUserVolume){M=g.$J("yt-player-volume")||{};var f=M.volume;M={volume:isNaN(f)?100:g.ih(Math.floor(f),0,100),muted:!!M.muted}}else M={volume:100,muted:M.QY.mute};return M}; Ut=function(M){M.mediaElement=M.QY.deviceIsAudioOnly?new g.Xg(g.MQ("AUDIO")):ZB.pop()||new g.Xg(g.MQ("VIDEO"));g.d(M,M.mediaElement);M.v7().setMediaElement(M.mediaElement);try{M.QY.y7?(M.ZG&&M.events.Hv(M.ZG),M.ZG=M.events.J(M.mediaElement,"volumechange",M.Nqx)):(M.mediaElement.gW(M.l3.muted),M.mediaElement.setVolume(M.l3.volume/100))}catch(N){M.ZI("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(N&&typeof N==="object"&&"message"in N&&typeof N.message==="string"&&N.message.replace(/[;:,]/g, "_")));return}g.u$(M.tF);eSt(M);var f=M.template,A=M.mediaElement.iI();f.Lk=A;f.qe=!1;f.Lk.parentNode||NQ(f.ID,f.Lk,0);f.oP=new g.zM(0,0,0,0);RSf(f);h8(f);A=f.Lk;g.tZ(A,"video-stream");g.tZ(A,g.Qc.MAIN_VIDEO);var Q=f.app.T();Q.ri&&A.setAttribute("data-no-fullscreen","true");Q.V("html5_local_playsinline")?"playsInline"in zk()&&(A.playsInline=!0):Q.dU&&(A.setAttribute("webkit-playsinline",""),A.setAttribute("playsinline",""));Q.Bq&&f.Lk&&f.J(A,"click",A.play,A);try{M.mediaElement.activate()}catch(N){M.ZI("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(N&&typeof N==="object"&&"message"in N&&typeof N.message==="string"&&N.message.replace(/[;:,]/g,"_")))}}; kh6=function(M){if(!bCc(M)){var f=M.IE().j$();f&&(f=f.pn(),f instanceof Promise&&f.catch(function(){})); Vq(M,V_(M.getPlayerStateObject()))}}; eSt=function(M){var f=M.mediaElement;$8()?M.tF.J(f,"webkitpresentationmodechanged",M.x5_):window.document.pictureInPictureEnabled&&(M.tF.J(f,"enterpictureinpicture",function(){M.X2(!0)}),M.tF.J(f,"leavepictureinpicture",function(){M.X2(!1)})); Mh&&(M.tF.J(f,"webkitbeginfullscreen",function(){M.bS(3)}),M.tF.J(f,"webkitendfullscreen",function(){M.bS(0)}))}; W7N=function(M,f){var A=f.getPlayerType(),Q=M.i7.j[A]||null;f!==M.IE()&&f!==Q&&(Q==null||Q.dispose(),M.i7.j[A]=f)}; OCe=function(M,f){f=f===void 0?!0:f;M.logger.debug("start clear presenting player");var A;if(A=M.Jh){A=M.Jh;var Q=M.mediaElement;A=!!Q&&Q===A.mediaElement}A&&(M.eA(),Ut(M));A=M.v7();A.eA(!f);A.ud(M.Tr,M);A.getPlayerType()!==1&&A.dispose();f=M.i7;f.Z=f.K;kc(f);M.logger.debug("finish clear presenting player")}; g.X0b=function(M,f,A,Q){var N=M.pk;f===2&&(N=new rRb(M.QY));return new g.Yx(M.QY,f,N,M.template,function(Y,I,D){M.G0.publish(Y,I,D)},function(){return M.G0.getVisibilityState()},M.visibility,M,A,Q)}; CL=function(M,f,A,Q,N){M=g.X0b(M,f,A,N);M=new g.kX(M);Q&&M.Rp();return M}; aO=function(M,f){return M.Q4(f)?M.IE():f}; qJ=function(M,f){var A=M.v7();return f===M.IE()&&M.Q4(f)&&M.Q4(A)?A:f}; Ghc=function(M){M.logger.debug("start application playback");if(M.IE().getPlayerState().isError())M.logger.debug("start application playback done, player in error state");else{var f=Ho(M);M.K3().isLoaded();f&&M.OI(6);JiX(M);Ste(M.xz)||K7c(M)}}; K7c=function(M){if(!Ho(M)){var f=Bt(M.xz);f&&!f.created&&YtD(M.xz)&&(M.logger.debug("reload ad module"),f.create())}}; JiX=function(M){M.logger.debug("start presenter playback");var f=M.getVideoData(),A=M.xz;Ste(A)||A.Dl();!up9&&A.U.V("html5_allow_asmjs")&&a00(A);RW(A,"embed");RW(A,"kids");RW(A,"remote");RW(A,"miniplayer");RW(A,"offline");RW(A,"unplugged");RW(A,"ypc",!1,!0);RW(A,"ypc_clickwrap",!1,!0);RW(A,"yto",!1,!0);RW(A,"webgl",!1,!0);LKN(A)||(RW(A,"captions",!0),RW(A,"endscreen"),A.zV(),RW(A,"creatorendscreen",!0));A.Hw();M.G0.publish("videoready",f)}; mK=function(M){M=M.K3();M.hh();return ed(M)}; jsX=function(M){M.logger.debug("start prepare initial playback");M.ut();var f=M.config.args;Ut(M);M.events.J(window,"resize",M.Mcx);var A=M.K3();M.G0.Gj("onVolumeChange",M.l3);if(f&&nct(f)){var Q=M1(M.QY);Q&&!M.GQ&&(f.fetch=0);var N=g.Ps(M.QY);N&&!M.GQ&&(f.fetch=0);co(M,f);g.Ps(M.QY)&&M.pk.tick("ep_pr_s");if(!Q||M.GQ)if(N&&!M.GQ)w0z(M);else if(!A.hh())M.playlist.onReady(function(){RO(M)})}M.GF(M.IE(),!1,!0); g.J(M.IE().getPlayerState(),128)||(f=miU(!M.QY.deviceIsAudioOnly),f==="fmt.noneavailable"?M.ZI("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):f==="html5.missingapi"?M.ZI(f,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):A&&A.hh()&&mK(M)&&(M.QY.WK||M.QY.OC)?gC(M):A.SW?M.G0.mutedAutoplay({durationMode:A.mutedAutoplayDurationMode}):g.$J("yt-player-playback-on-reload")?(g.hO("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!M.QY.jk}),g.jA("yt-player-playback-on-reload",!1), gC(M)):Dm(M.QY)||lWb(M),g.Q5(M.QY)||g.TG(M.QY)==="MWEB"?(g.AO(g.Nr(),function(){Bo(M)}),g.AO(g.Nr(),function(){mFD()})):(Bo(M),mFD()),M.logger.debug("finish prepare initial playback"))}; Bo=function(M){if(!M.V("use_rta_for_player"))if(M.V("fetch_att_independently"))g.f5(M.Ny);else{var f=M.getVideoData().botguardData;f&&g.JV(f,M.QY,M.getVideoData().Ph||"")}}; lWb=function(M){M.logger.debug("start initialize to CUED mode");M.G0.publish("initializingmode");M.OI(2);M.V("embeds_web_enable_defer_loading_remote_js")&&g.Ys(M.QY)?g.AO(g.Nr(),function(){RW(M.xz,"remote")}):RW(M.xz,"remote"); RW(M.xz,"miniplayer");M.logger.debug("initialized to CUED mode")}; gC=function(M){M.logger.debug("start initialize application playback");var f=M.IE();if(g.J(f.getPlayerState(),128))return!1;var A=f.getVideoData();mK(M)&&M.QY.OC&&(ZB.length&&M.Vk?(iy(M,{muted:!1,volume:M.l3.volume},!1),x5(M,!1)):ZB.length||M.l3.muted||(iy(M,{muted:!0,volume:M.l3.volume},!1),x5(M,!0)));mK(M)&&g.Ps(M.QY)&&A.mutedAutoplay&&(iy(M,{muted:!0,volume:M.l3.volume},!1),x5(M,!0));A.Gz&&iy(M,{muted:!0,volume:M.l3.volume},!1);Mqe(M,1,A,!1);f=M.V("web_player_misc_bugfix_b")?M.IE():f;M.G0.publish("initializingmode"); M.GF(M.IE());M.OI(3);var Q;if(!(Q=!M.QY.tY)){if(Q=M.Jh){Q=M.Jh;var N=M.mediaElement;Q=!!N&&N===Q.mediaElement}Q=Q&&M.jb}Q&&(M.eA(),Ut(M),f.setMediaElement(M.mediaElement));f.Yu();if(g.J(f.getPlayerState(),128))return!1;A.KS||Vq(M,3);return M.jb=!0}; Ho=function(M){M=ue(M.xz);return!!M&&M.loaded}; fhX=function(M,f){if(!M.PX)return!1;var A=M.PX.startTimeMs*.001-1,Q=M.PX.endTimeMs*.001;M.PX.type==="repeatChapter"&&Q--;return Math.abs(f-A)<=1E-6||Math.abs(f-Q)<=1E-6||f>=A&&f<=Q}; AYd=function(M){var f=M.v7();Em(f.getVideoData())&&!f.Yd()&&(f=Z0(M)*1E3-M.getVideoData().ZA,M.V("html5_gapless_new_slr")?(M=M.Bo,rC(M.app,"gaplessshortslooprange"),f=new g.T1(0,f,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(M=M.app.v7())&&M.addCueRange(f)):M.setLoopRange({startTimeMs:0,endTimeMs:f,type:"shortsLoop"}))}; QE0=function(M){var f=M.IE();if(!(g.J(f.getPlayerState(),64)&&M.K3().isLivePlayback&&M.PX.startTimeMs<5E3)){if(M.PX.type==="repeatChapter"){var A,Q=(A=MDt(M.kp()))==null?void 0:A.v2(),N;A=(N=M.getVideoData())==null?void 0:N.WK;Q instanceof g.ki&&A&&(N=A[TV(A,M.PX.startTimeMs)],Q.renderChapterSeekingAnimation(0,N.title));isNaN(Number(M.PX.loopCount))?M.PX.loopCount=0:M.PX.loopCount++;M.PX.loopCount===1&&M.G0.T0("innertubeCommand",M.getVideoData().PZ)}Q={Cd:"application_loopRangeStart"};if(M.PX.type=== "clips"||M.PX.type==="shortsLoop")Q.seekSource=58;f.seekTo(M.PX.startTimeMs*.001,Q)}}; yib=function(M,f){var A=M.G0.getAvailablePlaybackRates();f=Number(f.toFixed(2));M=A[0];A=A[A.length-1];f<=M?f=M:f>=A?f=A:(M=Math.floor(f*100+.001)%5,f=M===0?f:Math.floor((f-M*.01)*100+.001)/100);return f}; Z0=function(M,f){f=M.RI({playerType:f});if(!f)return M.i7.K.YN();f=aO(M,f);return uy(M,f.YN(),f)}; uy=function(M,f,A){if(M.Q4(A)&&(A=A.getVideoData(),!zB(M))){M=M.Od;for(var Q=g.V(M.Z),N=Q.next();!N.done;N=Q.next())if(N=N.value,A.Jd===N.Jd){f+=N.NV/1E3;break}Q=f;M=g.V(M.Z);for(N=M.next();!N.done;N=M.next()){N=N.value;if(A.Jd===N.Jd)break;var Y=N.NV/1E3;if(Y1&&(N=!1);if(!M.Ut||N!==f){A=A.lock(N?"portrait":"landscape");if(A!=null)A["catch"](function(){}); M.Ut=!0}}else M.Ut&&(M.Ut=!1,A.unlock())}; yq=function(M,f,A){M.G0.publish(f,A);var Q=g.Zs(M.QY)||g.eX(M.QY)||g.dA(M.QY);if(A&&Q){switch(f){case "cuerangemarkersupdated":var N="onCueRangeMarkersUpdated";break;case "cuerangesadded":N="onCueRangesAdded";break;case "cuerangesremoved":N="onCueRangesRemoved"}N&&M.G0.T0(N,A.map(function(Y){return{getId:function(){return this.id}, end:Y.end,id:Y.getId(),namespace:Y.namespace==="ad"?"ad":"",start:Y.start,style:Y.style,visible:Y.visible}}))}}; dC=function(M,f,A,Q,N,Y){A=A===void 0?!0:A;var I=M.RI({playerType:N});if(!I||(I.getPlayerType()!==2||M.Q4(I))&&!g.Zt(I.getVideoData())){var D=M.i7.MY;D?D.seekTo(f,{D4:!A,Oy:Q,Cd:"application",seekSource:Y}):(I&&I===M.IE()&&M.PX&&!fhX(M,f)&&M.setLoopRange(null),M.seekTo(f,A,Q,N,Y))}}; ah9=function(M,f,A,Q){A&&(M.eA(),Ut(M));A=M.v7();A.MM(f);var N=M.getVideoData(),Y={};Y.video_id=N.videoId;Y.adformat=N.adFormat;N.isLivePlayback||(Y.start=A.getCurrentTime(),Y.resume="1");N.isLivePlayback&&Ck(N)&&g.i7(M.QY)&&(Y.live_utc_start=A.VJ(),Y.resume="1");N.P7&&(Y.vvt=N.P7);N.G&&(Y.vss_credentials_token=N.G,Y.vss_credentials_token_type=N.DH);N.oauthToken&&(Y.oauth_token=N.oauthToken);Y.autoplay=1;Y.reload_count=N.zt+1;Y.reload_reason=f;N.S7&&(Y.unplugged_partner_opt_out=N.S7);N.o9&&(Y.ypc_is_premiere_trailer= N.o9);N.playerParams&&(Y.player_params=N.playerParams);M.loadVideoByPlayerVars(Y,void 0,!0,void 0,void 0,Q);f==="signature"&&M.rb&&K7c(M)}; qQt=function(M,f){M.K3().autonavState=f;g.jA("yt-player-autonavstate",f);M.G0.publish("autonavchange",f)}; HAb=function(M){var f=M.getVideoData().b5,A=M.QY.b8,Q=M.isInline()&&!M.getVideoData().bP,N=M.mediaElement;f||A||Q?N.jd():(N.zR(),iy(M,M.l3))}; Po=function(M){var f=Bt(M.kp());f&&f.created&&(M.logger.debug("reset ad module"),f.destroy())}; zB=function(M){return M.getVideoData().enableServerStitchedDai&&!!M.rb}; mIz=function(M,f){f.bounds=M.getBoundingClientRect();for(var A=g.V(["display","opacity","visibility","zIndex"]),Q=A.next();!Q.done;Q=A.next())Q=Q.value,f[Q]=yV(M,Q);f.hidden=!!M.hidden}; V6D=function(M){if(M.webPlayerContextConfig){var f=M.webPlayerContextConfig.trustedJsUrl;return f?gB(f).toString():M.webPlayerContextConfig.jsUrl}return M.config.assets&&M.config.assets.js?M.config.assets.js:""}; sEX=function(M,f){var A=M.RI({playerType:1});if(A){if(A.getVideoData().clientPlaybackNonce===f)return A;if((M=M.di.K)&&M.getVideoData().clientPlaybackNonce===f)return M}return null}; LL=function(M,f,A){M.XU.push({key:f,value:A})}; cYc=function(M){return M.name==="TypeError"&&M.stack.includes("/s/player/")&&ky()<=105}; RIe=function(M){return M.isTimeout?"NO_BID":"ERR_BID"}; gCb=function(){var M=null;Pad().then(function(f){return M=f},function(f){return M=RIe(f)}); return M}; B_f=function(){var M=yX(1E3,"NO_BID");return g.nz(MQ0([Pad(),M]).BU(RIe),function(){M.cancel()})}; eY=function(M){return M.zj?g.WD(g.kJ(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; by=function(M){this.player=M;this.j=this.K=1}; ZAT=function(M,f,A,Q,N,Y){f.client||(f.client={});M.player.T().V("h5_remove_url_for_get_ad_break")||(f.client.originalUrl=A);var I=tI(A),D=g.RH(A)?!1:!0;(I||D)&&typeof Intl!=="undefined"&&(f.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);D=g.RH(A)?!1:!0;if(I||D||Q!==""){var E={};A=NR(L0(Q)).split("&");var t=new Map;A.forEach(function(v){v=v.split("=");v.length>1&&t.set(v[0].toString(),decodeURIComponent(v[1].toString()))}); t.has("bid")&&(E.bid=t.get("bid"));E.params=[];iA0.forEach(function(v){t.has(v)&&(v={key:v,value:t.get(v)},E.params.push(v))}); xIX(M,E);f.adSignalsInfo=E}f.client.unpluggedAppInfo||(f.client.unpluggedAppInfo={});f.client.unpluggedAppInfo.enableFilterMode=!1;A=N.K.cosver;A!=null&&A!=="cosver"&&(f.client.osVersion=A);A=N.K.cplatform;A!=null&&A!=="cplatform"&&A!==""&&(f.client.platform=A);A=N.K.cmodel;A!=null&&A!=="cmodel"&&(f.client.deviceModel=A);A=N.K.cplayer;A!=null&&A!=="cplayer"&&(f.client.playerType=A);A=N.K.cbrand;A!=null&&A!=="cbrand"&&(f.client.deviceMake=A);f.user||(f.user={});f.user.lockedSafetyMode=!1;(N.V("embeds_web_enable_iframe_api_send_full_embed_url")|| N.V("embeds_enable_autoplay_and_visibility_signals"))&&g.dt(N)&&fb0(f,Y,M.player.getPlayerState(1))}; zIc=function(M,f){var A=!1;if(f==="")return A;f.split(",").forEach(function(Q){var N={},Y={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},I="ACTIVE";Q[0]==="!"&&(Q=Q.substring(1),I="INACTIVE");Q=Q.split("-");Q.length<3||(Q[0]in rYD&&(Y.clientName=rYD[Q[0]]),Q[1]in uWD&&(Y.platform=uWD[Q[1]]),Y.applicationState=I,Y.clientVersion=Q.length>2?Q[2]:"",N.remoteClient=Y,M.remoteContexts?M.remoteContexts.push(N):M.remoteContexts=[N],A=!0)}); return A}; nC0=function(M){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in PqT))return!1;M=M.split(RegExp("[:&]"));var f=PqT.FLAG_AUTO_CAPTIONS_DEFAULT_ON,A="f"+(1+Math.floor(f/31)).toString();f=1<=2?I[1]:"";var D=$Ie.test(f),E=F0e.exec(f);E=E!=null&&E.length>=2?E[1]:"";var t=yYU.exec(f);t=t!=null&&t.length>=2&&!Number.isNaN(Number(t[1]))?Number(t[1]):1;var v=dId.exec(f);v=v!=null&&v.length>=2?v[1]:"0";var p=OH(M.player.T().qY),h=M.player.getVideoData(1),S=g.fp(h.fJ,!0),L="BISCOTTI_ID"in A?A.BISCOTTI_ID:"";ZAT(M,S,f,L.toString(),M.player.T(), h);h={splay:!1,lactMilliseconds:A.LACT.toString(),playerHeightPixels:Math.trunc(A.P_H),playerWidthPixels:Math.trunc(A.P_W),vis:Math.trunc(A.VIS),signatureTimestamp:20220,autonavState:eY(M.player.T())};Q&&(Q={},zIc(Q,A.YT_REMOTE)&&(h.mdxContext=Q));if(Q=eIb.includes(p)?void 0:g.yn("PREF")){for(var a=Q.split(RegExp("[:&]")),q=0,m=a.length;q1&&R[1].toUpperCase()==="TRUE"){S.user.lockedSafetyMode=!0;break}}h.autoCaptionsDefaultOn= nC0(Q)}f=bAf.exec(f);(f=f!=null&&f.length>=2?f[1]:"")&&E&&(S.user.credentialTransferTokens=[{token:f,scope:"VIDEO"}]);f={contentPlaybackContext:h};I={adBlock:Math.trunc(A.AD_BLOCK),params:I,breakIndex:t,breakPositionMs:v,clientPlaybackNonce:A.CPN,topLevelDomain:p,isProxyAdTagRequest:D,context:S,adSignalsInfoString:NR(L0(L.toString())),overridePlaybackContext:f};N!==void 0&&(I.cueProcessedMs=Math.round(N).toString());E&&(I.videoId=E);A.LIVE_TARGETING_CONTEXT&&(I.liveTargetingParams=A.LIVE_TARGETING_CONTEXT); A.AD_BREAK_LENGTH&&(I.breakLengthMs=Math.trunc(A.AD_BREAK_LENGTH*1E3).toString());Y&&(I.driftFromHeadMs=Y.toString());I.currentMediaTimeMs=Math.round(M.player.getCurrentTime(1)*1E3);(M=M.player.getGetAdBreakContext())&&(I.getAdBreakContext=M);return I}; W0U=function(){by.apply(this,arguments)}; OAt=function(M,f,A,Q,N){var Y=A.ue;var I=A.yJ;var D=M.player.T().h$,E=0;A.cueProcessedMs&&I&&!Y&&(A=I.end-I.start,A>0&&(E=Math.floor(A/1E3)));var t={AD_BLOCK:N,AD_BREAK_LENGTH:Y?Y.UR:E,AUTONAV_STATE:eY(M.player.T()),CA_TYPE:"image",CPN:M.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:M.player.U6()*1E3,LACT:xr(),LIVE_INDEX:Y?M.j++:1,LIVE_TARGETING_CONTEXT:Y&&Y.context?Y.context:"",MIDROLL_POS:I?Math.round(I.start/1E3):0,MIDROLL_POS_MS:I?Math.round(I.start):0,VIS:M.player.getVisibilityState(), P_H:M.player.ax().kI().height,P_W:M.player.ax().kI().width,YT_REMOTE:D?D.join(","):""},v=SC(hI);Object.keys(v).forEach(function(p){v[p]!=null&&(t[p.toUpperCase()]=v[p].toString())}); Q!==""&&(t.BISCOTTI_ID=Q);Q={};p0(f)&&(Q.sts="20220",(M=M.player.T().forcedExperiments)&&(Q.forced_experiments=M));return Ef(g.z3(f,t),Q)}; XAe=function(M,f){var A=M.player.T(),Q,N=(Q=M.player.getVideoData(1))==null?void 0:Q.oauthToken;return g.v5(A,N).then(function(Y){if(Y&&va()){var I=eu();be(I,Y)}return g.GK(g.F(M.player.YI(I)),f,"/youtubei/v1/player/ad_break").then(function(D){return D})})}; JYz=function(M){this.yY=M}; K0D=function(M){this.U=M}; GuX=function(M){this.yY=M}; lhD=function(M){g.y.call(this);this.K=M;this.tG=wAc(this)}; wAc=function(M){var f=new m8b(M.K.w2);g.d(M,f);M=[new JYz(M.K.yY),new K0D(M.K.U),new GuX(M.K.yY),new zy(M.K.vB,M.K.KZ),new nZ,new FL(M.K.I9,M.K.Sv,M.K.yY),new PI,new u5];M=g.V(M);for(var A=M.next();!A.done;A=M.next())sz6(f,A.value);M=g.V(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(A=M.next();!A.done;A=M.next())j8(f,A.value,function(){}); return f}; k5=function(M){var f=M.m$,A=M.kO;M=M.QU;var Q=new bwf,N={B2:new qaN(f.get(),A),kO:A};return{nk:new SD(A,M,f,N),context:N,lD:Q}}; Wo=function(M,f,A,Q,N){g.y.call(this);this.Z=f;this.Sk=A;this.m$=Q;this.Xn=N;this.listeners=[];var Y=new ZD(this);g.d(this,Y);Y.J(M,"internalAbandon",this.f9i);this.addOnDisposeCallback(function(){g.u$(Y)})}; Ot=function(M){this.U=M;this.adVideoId=this.K=this.videoId=this.adCpn=this.contentCpn=null;this.N=!0;this.Z=this.j=!1;this.adFormat=null;this.C="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; Msf=function(M){M.contentCpn=null;M.adCpn=null;M.videoId=null;M.adVideoId=null;M.adFormat=null;M.C="AD_PLACEMENT_KIND_UNKNOWN";M.actionType="unknown_type";M.j=!1;M.Z=!1}; fMU=function(M,f){M=g.V(f);for(f=M.next();!f.done;f=M.next())if((f=f.value.renderer)&&(f.instreamVideoAdRenderer||f.linearAdSequenceRenderer||f.sandwichedLinearAdRenderer||f.instreamSurveyAdRenderer)){eh("ad_i");g.bB({isMonetized:!0});break}}; AcX=function(M){var f;(f=M.U.getVideoData(1))!=null&&f.g_&&(M.Z=!1,f={},M.K&&M.videoId&&(f.cttAuthInfo={token:M.K,videoId:M.videoId}),k7("video_to_ad",f))}; l2=function(M){M.Z=!1;var f={};M.K&&M.videoId&&(f.cttAuthInfo={token:M.K,videoId:M.videoId});k7("ad_to_video",f);QTT(M)}; QTT=function(M){if(M.j)if(M.C==="AD_PLACEMENT_KIND_START"&&M.actionType==="video_to_ad")Fx("video_to_ad");else{var f={adBreakType:i2(M.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:M.videoStreamType};M.actionType==="ad_to_video"?(M.contentCpn&&(f.targetCpn=M.contentCpn),M.videoId&&(f.targetVideoId=M.videoId)):(M.adCpn&&(f.targetCpn=M.adCpn),M.adVideoId&&(f.targetVideoId=M.adVideoId));M.adFormat&&(f.adType=M.adFormat);M.contentCpn&& (f.clientPlaybackNonce=M.contentCpn);M.videoId&&(f.videoId=M.videoId);M.adCpn&&(f.adClientPlaybackNonce=M.adCpn);M.adVideoId&&(f.adVideoId=M.adVideoId);g.bB(f,M.actionType);M.U.T().experiments.X3("html5_ads_csi_qoes")&&(f=M.U.g5(M.actionType==="ad_to_video"?1:2),f=(0,g.W)()-1E3*f,O7("qoes",f,M.actionType))}}; Xz=function(M){g.y.call(this);this.U=M;this.K=new Map;this.Z=new ZD(this);g.d(this,this.Z);this.Z.J(this.U,g.EW("ad"),this.onCueRangeEnter,this);this.Z.J(this.U,g.tf("ad"),this.onCueRangeExit,this)}; N60=function(M,f,A,Q,N){g.T1.call(this,f,A,{id:M,namespace:"ad",priority:N,visible:Q})}; J8=function(M){this.U=M}; Yeb=function(M,f){M.U.cueVideoByPlayerVars(f,2)}; KL=function(M){this.U=M}; GB=function(M){this.U=M;g.CE(this.U.T().experiments,"tv_pacf_logging_sample_rate")}; IM9=function(M){return l7(M,"html5_ssap_play_cached_preroll")}; B$=function(M,f){f=f===void 0?!1:f;return M.U.T().V("html5_ssap_force_ads_ctmp")?!0:(f||M.U.T().cX())&&M.U.T().V("html5_ssap_pacf_qoe_ctmp")}; T6U=function(M){return M.U.T().V("dai_layout_log_skip_exit_reason")}; wC=function(M){var f;return(f=M.U.getVideoData(1)==null?void 0:!1)!=null?f:!1}; PNN=function(M){return!M.U.T().V("html5_override_ad_video_length_killswitch")}; l7=function(M,f){return M.U.T().V(f)}; DAU=function(M){return M.U.T().V("substitute_ad_cpn_macro_in_ssdai")}; Zd=function(M){var f,A,Q;return((f=M.U.getVideoData(1).getPlayerResponse())==null?void 0:(A=f.playerConfig)==null?void 0:(Q=A.daiConfig)==null?void 0:Q.enableServerStitchedDai)||!1}; rhe=function(M){return M.U.T().V("html5_enable_vod_slar_with_notify_pacf")}; PpU=function(M){return M.U.T().V("h5_check_forecasting_renderer_for_throttled_midroll")}; Egz=function(M){return M.U.T().V("html5_recognize_predict_start_cue_point")}; E5=function(M){return M.U.T().experiments.X3("enable_desktop_player_underlay")}; tse=function(M){return M.U.T().experiments.X3("html5_disable_sodar_for_tvhtml5")}; njU=function(M){return M.U.T().cX()}; vg0=function(M){return M.U.T().experiments.X3("html5_load_empty_player_in_media_break_sub_lra")}; dG=function(M){return M.U.T().experiments.X3("html5_load_ads_instead_of_cue")}; eV=function(M){return M.U.T().experiments.X3("html5_preload_ads")}; pFb=function(M){return M.U.T().experiments.X3("should_ignore_cuepoints_during_lifa_preroll")}; D1=function(M){return M.U.T().experiments.X3("enable_ads_control_flow_deterministic_id_generation")}; h3t=function(M){return M.U.T().experiments.X3("enable_desktop_discovery_video_abandon_pings")||g.fF(M.U.T())}; SeU=function(M){return M.U.T().experiments.X3("enable_progres_commands_lr_feeds")}; r5=function(M){return M.U.T().experiments.X3("html5_cuepoint_identifier_logging")}; F5b=function(M){M=M.U.getVideoData(1);return!!M&&M.V("html5_preload_first_vod_video_ad")&&!M.isDaiEnabled()&&!M.isLivePlayback}; Ldd=function(M){switch(M){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}}; og9=function(){g.pi.call(this);var M=this;this.K={};this.addOnDisposeCallback(function(){for(var f=g.V(Object.keys(M.K)),A=f.next();!A.done;A=f.next())delete M.K[A.value]})}; ly=function(){if(C_U===null){C_U=new og9;Jo(f2).Z="b";var M=Jo(f2),f=bZ(M)=="h"||bZ(M)=="b",A=!(TM(),!1);f&&A&&(M.N=!0,M.G=new UUz)}return C_U}; UAT=function(M,f,A){M.K[f]=A}; Vsf=function(M){switch(M){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}}; MG=function(M,f,A){this.Sk=M;this.U=f;this.kO=A;this.Z=new Set;this.K=new Map;ly().subscribe("adactiveviewmeasurable",this.yz,this);ly().subscribe("adfullyviewableaudiblehalfdurationimpression",this.eF,this);ly().subscribe("adviewableimpression",this.nT,this);ly().subscribe("adaudioaudible",this.Uc,this);ly().subscribe("adaudiomeasurable",this.gs,this)}; Al=function(M,f,A){var Q=A.sW,N=A.aj,Y=A.listener,I=A.hG;A=A.Dh===void 0?!1:A.Dh;if(M.K.has(f))o1("Unexpected registration of layout in LidarApi");else{if(I){if(M.Z.has(I))return;M.Z.add(I)}M.K.set(f,Y);h2(TM().jc,"fmd",1);BrT(Jo(f2),Q);var D=A?f:void 0;UAT(ly(),f,{Bg:function(){if(!N)return{};var E=M.U.getPresentingPlayerType(!0),t;return(t=M.U.getVideoData(E))!=null&&t.isAd()?{currentTime:M.Sk.get().getCurrentTimeSec(E,!1,D),duration:N,isPlaying:fT(M.Sk.get(),E).isPlaying(),isVpaid:!1,isYouTube:!0, volume:M.Sk.get().isMuted()?0:M.Sk.get().getVolume()/100}:{}}})}}; Qy=function(M,f){M.K.has(f)?(M.K.delete(f),delete ly().K[f]):o1("Unexpected unregistration of layout in LidarApi")}; aMN=function(M,f){if(M.U.isLifaAdPlaying()){var A=M.U.GH(!0,!0);M.jL(f,A.width*.5*1.1,A.height*.25*1.1,A.width*.5*.9,A.height*.5*.9)}}; mA6=function(M,f,A){var Q={};qec(M,Q,f,A);HI6(Q);Q.LACT=NG(function(){return xr().toString()}); Q.VIS=NG(function(){return M.getVisibilityState().toString()}); Q.SDKV="h.3.0";Q.VOL=NG(function(){return M.isMuted()?"0":Math.round(M.getVolume()).toString()}); Q.VED="";return Q}; sTz=function(M,f){var A={};if(f)return A;if(!M.kind)return g.jZ(Error("AdPlacementConfig without kind")),A;if(M.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||M.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!M.adTimeOffset||!M.adTimeOffset.offsetStartMilliseconds)return g.jZ(Error("malformed AdPlacementConfig")),A;A.MIDROLL_POS=NG(S7(Math.round(HB(M.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else A.MIDROLL_POS=NG(S7("0"));return A}; NG=function(M){return{toString:function(){return M()}}}; ccX=function(M,f,A){function Q(D,E){(E=A[E])&&(Y[D]=E)} function N(D,E){(E=A[E])&&(Y[D]=I(E))} if(!A||g.MV(A))return M;var Y=Object.assign({},M),I=f?encodeURIComponent:function(D){return D}; N("DV_VIEWABILITY","doubleVerifyViewability");N("IAS_VIEWABILITY","integralAdsViewability");N("MOAT_INIT","moatInit");N("MOAT_VIEWABILITY","moatViewability");Q("GOOGLE_VIEWABILITY","googleViewability");Q("VIEWABILITY","viewability");return Y}; qec=function(M,f,A,Q){f.CPN=NG(function(){var N;(N=M.getVideoData(1))?N=N.clientPlaybackNonce:(g.$b(Error("Video data is null.")),N=null);return N}); f.AD_MT=NG(function(){if(Q!=null)var N=Q;else{var Y=A;M.T().V("html5_ssap_use_cpn_to_get_time")||(Y=void 0);if(M.T().V("enable_h5_shorts_ad_fill_ad_mt_macro")||M.T().V("enable_desktop_discovery_pings_ad_mt_macro")||g.fF(M.T())){var I=M.getPresentingPlayerType(!0),D;N=((D=M.getVideoData(I))==null?0:D.isAd())?R3z(M,I,Y):0}else N=R3z(M,2,Y)}return ggU(N)}); f.MT=NG(function(){return ggU(M.getCurrentTime(1,!1))}); f.P_H=NG(function(){return M.ax().kI().height.toString()}); f.P_W=NG(function(){return M.ax().kI().width.toString()}); f.PV_H=NG(function(){return M.ax().getVideoContentRect().height.toString()}); f.PV_W=NG(function(){return M.ax().getVideoContentRect().width.toString()})}; ggU=function(M){return Math.round(Math.max(0,M*1E3)).toString()}; HI6=function(M){M.CONN=NG(S7("0"));M.WT=NG(function(){return Date.now().toString()})}; R3z=function(M,f,A){return A!==void 0?M.getCurrentTime(f,!1,A):M.getCurrentTime(f,!1)}; B6T=function(){}; iIb=function(M,f,A,Q,N){var Y,I,D,E,t,v,p,h,S,L,a,q,m;g.n(function(R){switch(R.Z){case 1:Y=!!f.scrubReferrer;I=g.z3(f.baseUrl,ccX(A,Y,Q));D={};if(!f.headers){R.CJ(2);break}E=M.C();if(!E.K){t=E.getValue();R.CJ(3);break}return g.r(R,E.K,4);case 4:t=R.K;case 3:v=t;p=g.V(f.headers);for(h=p.next();!h.done;h=p.next())switch(S=h.value,S.headerType){case "VISITOR_ID":g.GR("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.GR("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.GR("EOM_VISITOR_DATA")&&(D["X-Goog-EOM-Visitor-Id"]= g.GR("EOM_VISITOR_DATA"));break;case "USER_AUTH":v&&(D.Authorization="Bearer "+v);break;case "PLUS_PAGE_ID":(L=M.N())&&(D["X-Goog-PageId"]=L);break;case "AUTH_USER":a=M.K();!v&&a&&(D["X-Goog-AuthUser"]=a);break;case "DATASYNC_ID":if(q=void 0,(q=M.j())==null?0:q.X3("enable_datasync_id_header_in_web_vss_pings"))m=M.Z(),tI(I)&&g.GR("LOGGED_IN")&&m&&(D["X-YouTube-DataSync-Id"]=m)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];case 2:g.bg(I,void 0,Y,Object.keys(D).length!== 0?D:void 0,"",!0,N),g.qc(R)}})}; xAb=function(M,f,A,Q,N){this.C=M;this.N=f;this.K=A;this.Z=Q;this.j=N}; ZIX=function(M,f){this.K=M;this.kO=f}; Yv=function(M,f,A,Q,N,Y,I){var D=D===void 0?new xAb(function(){var E=M.T(),t=M.getVideoData(1);return g.v5(E,t?g.bv(t):"")},function(){return M.T().pageId},function(){return M.T().jk},function(){var E; return(E=M.T().datasyncId)!=null?E:""},function(){return M.T().experiments}):D; this.U=M;this.Z=f;this.tP=A;this.m$=Q;this.nk=N;this.kO=Y;this.lD=I;this.C=D;this.NS=null;this.K=new Map;this.j=new ZIX(D,this.kO)}; uMX=function(M,f,A,Q,N){var Y=d5(M.Z.get(),A);Y?(A=rM(M,rc9(Y),Y,void 0,void 0,Q),f.hasOwnProperty("baseUrl")?M.C.send(f,A):M.j.send(f,A,{},N)):o1("Trying to ping from an unknown layout",void 0,void 0,{layoutId:A})}; xp0=function(M,f,A,Q,N,Y){Q=Q===void 0?[]:Q;var I=d5(M.Z.get(),f);if(I){var D=M.tP.get().FH(f,A),E=rM(M,rc9(I),I,N,Y);Q.forEach(function(t,v){t.baseUrl&&(M.j.send(t.baseUrl,E,D,t.attributionSrcMode),t.serializedAdPingMetadata&&M.nk.Fu("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,I,new Eub(t,v),void 0,void 0,I.adLayoutLoggingData))})}else o1("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f, trackingType:A})}; cl=function(M,f){M.U.sendVideoStatsEngageEvent(f,void 0,2)}; TS=function(M,f){g.hO("adsClientStateChange",f)}; z3b=function(M,f){M.K.has(f.NG())?o1("Trying to register an existing AdErrorInfoSupplier."):M.K.set(f.NG(),f)}; P_b=function(M,f){M.K.delete(f.NG())||o1("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; vH=function(M,f,A){typeof A==="string"?M.U.getVideoData(1).Z4(f,A):M.U.getVideoData(1).ZB(f,A)}; rc9=function(M){var f=g.F(tA(M.clientMetadata,"metadata_type_ad_placement_config"));M=tA(M.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:f,ih:M}}; rM=function(M,f,A,Q,N,Y){var I=A?ngT(M):{},D=A?jT6(M,A.layoutId):{},E=$Ab(M),t,v=N!=null?N:(t=c8(M.m$.get(),2))==null?void 0:t.clientPlaybackNonce;N=void 0;if(A){var p;if((p=M.lD.K.get(A.layoutId))==null?0:p.Dh)N=A.layoutId}p={};M=Object.assign({},mA6(M.U,N,Q),sTz(f.adPlacementConfig,(A==null?void 0:A.renderingContent)!==void 0),D,I,E,(p.FINAL=NG(function(){return"1"}),p.AD_CPN=NG(function(){return v||""}),p)); (A==null?void 0:A.renderingContent)!==void 0||(M.SLOT_POS=NG(function(){return(f.ih||0).toString()})); A={};Y=Object.assign({},M,Y);M=g.V(Object.values(FdX));for(Q=M.next();!Q.done;Q=M.next())Q=Q.value,I=Y[Q],I!=null&&I.toString()!=null&&(A[Q]=I.toString());return A}; ngT=function(M){var f={},A,Q=(A=M.NS)==null?void 0:A.zQ/1E3;Q!=null&&(f.SURVEY_ELAPSED_MS=NG(function(){return Math.round(Q*1E3).toString()})); f.SURVEY_LOCAL_TIME_EPOCH_S=NG(function(){return Math.round(Date.now()/1E3).toString()}); return f}; jT6=function(M,f){M=M.K.get(f);if(!M)return{};M=M.YB();if(!M)return{};f={};return f.YT_ERROR_CODE=M.KN.toString(),f.ERRORCODE=M.hw.toString(),f.ERROR_MSG=M.errorMessage,f}; $Ab=function(M){var f={},A=M.U.getVideoData(1);f.ASR=NG(function(){var Q;return(Q=A==null?void 0:A.Q3)!=null?Q:null}); f.EI=NG(function(){var Q;return(Q=A==null?void 0:A.eventId)!=null?Q:null}); return f}; I6=function(M,f,A){g.y.call(this);this.U=M;this.h8=f;this.kO=A;this.listeners=[];this.N0=null;this.E_=new Map;f=new g.yK(this);g.d(this,f);f.J(M,"videodatachange",this.eZJ);f.J(M,"serverstitchedvideochange",this.QI$);this.I6=c8(this)}; c8=function(M,f){var A=M.U.getVideoData(f);return A?M.Dm(A,f||M.U.getPresentingPlayerType(!0)):null}; Dz=function(M){return M.I6}; yc9=function(M,f,A){var Q=M.Dm(f,A);M.I6=Q;M.listeners.forEach(function(N){N.Bl(Q)})}; dAT=function(M){switch(M){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}}; T6=function(M,f,A){g.y.call(this);this.U=M;this.m$=f;this.kO=A;this.listeners=[];this.Fj=[];this.K=function(){o1("Called 'doUnlockPreroll' before it's initialized.")}; f=new ZD(this);A=new g.yK(this);g.d(this,A);g.d(this,f);f.J(M,"progresssync",this.m5Y);f.J(M,"presentingplayerstatechange",this.Zd_);f.J(M,"fullscreentoggled",this.onFullscreenToggled);f.J(M,"onVolumeChange",this.onVolumeChange);f.J(M,"minimized",this.gL);f.J(M,"overlayvisibilitychange",this.M4);f.J(M,"shortsadswipe",this.X7);f.J(M,"resize",this.Tt);A.J(M,g.EW("appad"),this.wu)}; DY=function(M){wC(M.kO.get())||M.K()}; e3D=function(M,f){M.Fj=M.Fj.filter(function(A){return A!==f})}; E2=function(M,f,A){return M.getCurrentTimeSec(f,A)}; i3=function(M){return M.getCurrentTimeSec(1,!1)}; bIN=function(M,f){var A;f=(A=M.m$.get().E_.get(f))!=null?A:null;if(f===null)return o1("Expected ad video start time on playback timeline"),0;M=M.U.getCurrentTime(2,!0);return M0){var Y=f.end.toString();N.forEach(function(I){(I=I.config&&I.config.adPlacementConfig)&&I.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&I.adTimeOffset&&I.adTimeOffset.offsetEndMilliseconds==="-1"&&I.adTimeOffset.offsetEndMilliseconds!==Y&&(I.adTimeOffset.offsetEndMilliseconds=Y)}); Q.map(function(I){return g.b(I,X1)}).forEach(function(I){var D; (I=I==null?void 0:(D=I.slotEntryTrigger)==null?void 0:D.mediaTimeRangeTrigger)&&I.offsetEndMilliseconds==="-1"&&(I.offsetEndMilliseconds=Y)})}return{r9:N, adSlots:Q,LD:!1,ssdaiAdsConfig:M.ssdaiAdsConfig}}; Se=function(M){g.y.call(this);this.U=M;this.listeners=[];this.K=new ZD(this);g.d(this,this.K);this.K.J(this.U,"aduxclicked",this.onAdUxClicked);this.K.J(this.U,"aduxmouseover",this.xk);this.K.J(this.U,"aduxmouseout",this.D0);this.K.J(this.U,"muteadaccepted",this.N_3)}; Kd9=function(M,f,A){f=g.WP(f,function(Q){return new e5f(Q,A,Q.id)}); M.U.T0("onAdUxUpdate",f)}; LT=function(M,f){M=g.V(M.listeners);for(var A=M.next();!A.done;A=M.next())f(A.value)}; o6=function(M,f){this.Z=M;this.j=f===void 0?!1:f;this.K={}}; GIf=function(M,f){var A=M.startSecs+M.UR;A=A<=0?null:A;if(A===null)return null;switch(M.event){case "start":case "continue":case "stop":break;case "predictStart":if(f)break;return null;default:return null}f=Math.max(M.startSecs,0);return{bu:new gP(f,A),nY:new wY(f,A-f,M.context,M.identifier,M.event,M.K)}}; wFX=function(){this.K=[]}; g7d=function(M,f,A){var Q=g.u6(M.K,f);if(Q>=0)return f;f=-Q-1;return f>=M.K.length||M.K[f]>A?null:M.K[f]}; CT=function(M,f,A){g.y.call(this);this.U=M;this.kO=f;this.yY=A;this.listeners=[];this.N=!1;this.C=[];this.K=null;this.G=new o6(this,Egz(f.get()));this.j=new wFX;this.Z=null}; lMN=function(M){return M.C}; M5c=function(M,f){M.C.push(f);for(var A=!1,Q=g.V(M.listeners),N=Q.next();!N.done;N=Q.next())A=N.value.mE(f)||A;M.N=A;r5(M.kO.get())&&vH(M.yY.get(),"onci","cpi."+f.identifier+";cpe."+f.event+";cps."+f.startSecs+";cbi."+A)}; AsN=function(M,f){TS(M.yY.get(),{cuepointTrigger:{event:f30(f.event),cuepointId:f.identifier,totalCueDurationMs:f.UR*1E3,playheadTimeMs:f.K,cueStartTimeMs:f.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:M.U.getVideoData(1).clientPlaybackNonce}})}; f30=function(M){switch(M){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 lQ(M,"Unexpected cuepoint event")}}; U2=function(M){this.U=M}; Vy=function(M){this.U=M}; QyN=function(M){switch(M){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:lQ(M,"unknown transitionReason")}}; a6=function(){g.y.apply(this,arguments)}; NIt=function(M){this.U=M}; YTN=function(M,f,A,Q,N){g.y.call(this);var Y=this,I=Wc(function(){return new Tv(Y.kO)}); g.d(this,I);var D=Wc(function(){return new E_(I,Y.kO)}); g.d(this,D);var E=Wc(function(){return new $q}); g.d(this,E);var t=Wc(function(){return new n_(M)}); g.d(this,t);var v=Wc(function(){return new tV(I,D,Y.kO)}); g.d(this,v);var p=Wc(function(){return new LW}); g.d(this,p);this.FC=Wc(function(){return new Se(f)}); g.d(this,this.FC);this.AP=Wc(function(){return new Xn(N)}); g.d(this,this.AP);this.kC=Wc(function(){return new Ot(f)}); g.d(this,this.kC);this.Ud=Wc(function(){return new Xz(f)}); g.d(this,this.Ud);this.Kd=Wc(function(){return new J8(f)}); g.d(this,this.Kd);this.w2=Wc(function(){return new KL(f)}); g.d(this,this.w2);this.kO=Wc(function(){return new GB(f)}); g.d(this,this.kO);var h=Wc(function(){return new hl(Q)}); g.d(this,h);var S=Wc(function(){return new UP(Y.kO)}); g.d(this,S);this.WP=Wc(function(){return new U2(f)}); g.d(this,this.WP);this.d6=Wc(function(){return new GQ}); g.d(this,this.d6);this.m$=Wc(function(){return new I6(f,p,Y.kO)}); g.d(this,this.m$);var L=k5({m$:this.m$,kO:this.kO,QU:S}),a=L.context,q=L.lD;this.nk=L.nk;this.Xn=Wc(function(){return new CT(f,Y.kO,Y.yY)}); g.d(this,this.Xn);this.s$=Wc(function(){return new Vy(f)}); g.d(this,this.s$);this.Sk=Wc(function(){return new T6(f,Y.m$,Y.kO)}); g.d(this,this.Sk);this.nW=Wc(function(){return new a6}); g.d(this,this.nW);L=Wc(function(){return new R$(I,v,D,Y.kO,S,"SLOT_TYPE_ABOVE_FEED",Y.Sk,Y.P_,Y.lU)}); g.d(this,L);this.Lx=Wc(function(){return new wf(Y.kO)}); this.tP=Wc(function(){return new MG(Y.Sk,f,Y.kO)}); g.d(this,this.tP);this.yY=Wc(function(){return new Yv(f,E,Y.tP,Y.m$,Y.nk,Y.kO,q)}); g.d(this,this.yY);this.wi=new z7(u3,qG,function(R,u,z,e){return Dd(D.get(),R,u,z,e)},t,v,D,S,this.kO,this.m$); g.d(this,this.wi);this.Hu=new Pk(t,L,A,this.kO,M,this.m$,this.Sk,this.kC);g.d(this,this.Hu);var m=new Wo(f,this.Hu,this.Sk,this.m$,this.Xn);this.N$=Wc(function(){return m}); this.oC=m;this.P_=new xq(t,v,this.N$,this.Xn,this.Sk,this.kO,this.yY,this.s$);g.d(this,this.P_);this.XW=new jv(t,v,this.Ud,this.N$,a);g.d(this,this.XW);this.Pu=new OE(this.kO,t,v,L,this.m$,this.XW,A,this.Kd);g.d(this,this.Pu);this.u5=Wc(function(){return new oC(h,D,S,Y.kO,Y.yY,Y.Sk,Y.s$)}); g.d(this,this.u5);this.kx=Wc(function(){return new Ch}); g.d(this,this.kx);this.iD=new O5(M,this.FC,this.kO);g.d(this,this.iD);this.WX=new Xm(M);g.d(this,this.WX);this.ZL=new Jq(M);g.d(this,this.ZL);this.vK=new G7(M,this.N$,a);g.d(this,this.vK);this.FR=new w5(M,this.Ud,this.Sk,this.m$,a);g.d(this,this.FR);this.Ec=new l3(M,this.m$);g.d(this,this.Ec);this.lU=new AV(M,this.Xn,this.Sk,this.yY,this.N$);g.d(this,this.lU);this.Hy=new ME(M);g.d(this,this.Hy);this.f3=new IB(M);g.d(this,this.f3);this.Ov=new fW(M);g.d(this,this.Ov);this.j7=new YL(M);g.d(this,this.j7); this.f3=new IB(M);g.d(this,this.f3);this.Zk=Wc(function(){return new ev}); g.d(this,this.Zk);this.YP=Wc(function(){return new b3(Y.Sk)}); g.d(this,this.YP);this.Sm=Wc(function(){return new Goe(Y.FC,Y.yY,M,E,Y.tP)}); g.d(this,this.Sm);this.tT=Wc(function(){return new fU(Y.Pu,t,I)}); g.d(this,this.tT);this.SE=Wc(function(){return new Nd(Y.kO,Y.yY,Y.Hy,Y.tP)}); g.d(this,this.SE);this.v_=Wc(function(){return new UN(M,Y.f3,Y.Hy,Y.m$,Y.s$,Y.Sk,Y.nW,Y.yY,p,Y.Xn,Y.tP,Y.Lx,Y.Kd,Y.Ud,Y.kC,Y.w2,Y.AP,Y.WP,Y.kO,E,a,q)}); g.d(this,this.v_);this.BJ=Wc(function(){return new vZe(Y.Sk,Y.yY,Y.AP,Y.kO,Y.tP,Y.m$)}); g.d(this,this.BJ);this.rC=Wc(function(){return new w9t(Y.FC,Y.Sk,Y.yY,E,Y.tP,Y.ZL,Y.j7,Y.AP,Y.kO,A)}); g.d(this,this.rC);this.hD=Wc(function(){return new wOX(Y.FC,Y.yY,E)}); g.d(this,this.hD);this.xX=new pT(M,this.d6,I);g.d(this,this.xX);this.qQ={hs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pu],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.P_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Hu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.XW]]),yA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u5],["SLOT_TYPE_ABOVE_FEED",this.kx],["SLOT_TYPE_FORECASTING",this.kx], ["SLOT_TYPE_IN_PLAYER",this.kx],["SLOT_TYPE_PLAYER_BYTES",this.kx],["SLOT_TYPE_PLAYER_UNDERLAY",this.kx],["SLOT_TYPE_PLAYBACK_TRACKING",this.kx],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.kx]]),Fy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.iD],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.iD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WX],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WX],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.WX],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WX],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.WX],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.WX],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ZL],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.FR],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.FR],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.FR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FR],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.FR],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.FR],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.FR],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ec],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ec],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Hy],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ov],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.j7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.f3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.lU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.lU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.lU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.lU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.lU]]),F2:new Map([["SLOT_TYPE_ABOVE_FEED",this.Zk], ["SLOT_TYPE_AD_BREAK_REQUEST",this.Zk],["SLOT_TYPE_FORECASTING",this.Zk],["SLOT_TYPE_IN_PLAYER",this.Zk],["SLOT_TYPE_PLAYER_BYTES",this.YP],["SLOT_TYPE_PLAYER_UNDERLAY",this.Zk],["SLOT_TYPE_PLAYBACK_TRACKING",this.Zk],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Zk]]),dA:new Map([["SLOT_TYPE_ABOVE_FEED",this.Sm],["SLOT_TYPE_AD_BREAK_REQUEST",this.tT],["SLOT_TYPE_FORECASTING",this.SE],["SLOT_TYPE_PLAYER_BYTES",this.v_],["SLOT_TYPE_PLAYBACK_TRACKING",this.BJ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.BJ],["SLOT_TYPE_IN_PLAYER",this.rC],["SLOT_TYPE_PLAYER_UNDERLAY",this.hD]])};this.listeners=[E.get()];this.UU={Pu:this.Pu,Sv:this.kO.get(),Or:this.AP.get(),bN:this.Sk.get(),Hu:this.Hu,VQ:I.get(),Ni:this.d6.get(),KZ:this.iD,vB:E.get(),I9:this.m$.get()}}; I3D=function(M,f,A,Q,N){g.y.call(this);var Y=this,I=Wc(function(){return new Tv(Y.kO)}); g.d(this,I);var D=Wc(function(){return new E_(I,Y.kO)}); g.d(this,D);var E=Wc(function(){return new $q}); g.d(this,E);var t=Wc(function(){return new n_(M)}); g.d(this,t);var v=Wc(function(){return new tV(I,D,Y.kO)}); g.d(this,v);var p=Wc(function(){return new LW}); g.d(this,p);this.FC=Wc(function(){return new Se(f)}); g.d(this,this.FC);this.AP=Wc(function(){return new Xn(N)}); g.d(this,this.AP);this.kC=Wc(function(){return new Ot(f)}); g.d(this,this.kC);this.Ud=Wc(function(){return new Xz(f)}); g.d(this,this.Ud);this.Kd=Wc(function(){return new J8(f)}); g.d(this,this.Kd);this.w2=Wc(function(){return new KL(f)}); g.d(this,this.w2);this.kO=Wc(function(){return new GB(f)}); g.d(this,this.kO);var h=Wc(function(){return new hl(Q)}); g.d(this,h);var S=Wc(function(){return new UP(Y.kO)}); g.d(this,S);var L=Wc(function(){return new R$(I,v,D,Y.kO,S,null,null,Y.P_,Y.lU)}); g.d(this,L);this.WP=Wc(function(){return new U2(f)}); g.d(this,this.WP);this.d6=Wc(function(){return new GQ}); g.d(this,this.d6);this.m$=Wc(function(){return new I6(f,p,Y.kO)}); g.d(this,this.m$);var a=k5({m$:this.m$,kO:this.kO,QU:S}),q=a.context,m=a.lD;this.nk=a.nk;this.Xn=Wc(function(){return new CT(f,Y.kO,Y.yY)}); this.Sk=Wc(function(){return new T6(f,Y.m$,Y.kO)}); g.d(this,this.Sk);this.nW=Wc(function(){return new a6}); g.d(this,this.nW);this.tP=Wc(function(){return new MG(Y.Sk,f,Y.kO)}); g.d(this,this.tP);this.yY=Wc(function(){return new Yv(f,E,Y.tP,Y.m$,Y.nk,Y.kO,m)}); g.d(this,this.yY);this.Lx=Wc(function(){return new wf(Y.kO)}); g.d(this,this.Lx);this.wi=new z7(u3,qG,function(u,z,e,G){return Dd(D.get(),u,z,e,G)},t,v,D,S,this.kO,this.m$); g.d(this,this.wi);this.Hu=new Pk(t,L,A,this.kO,M,this.m$,this.Sk,this.kC);g.d(this,this.Hu);var R=new Wo(f,this.Hu,this.Sk,this.m$,this.Xn);this.N$=Wc(function(){return R}); this.oC=R;this.P_=new xq(t,v,this.N$,this.Xn,this.Sk,this.kO,this.yY);g.d(this,this.P_);this.XW=new jv(t,v,this.Ud,this.N$,q);g.d(this,this.XW);this.Pu=new OE(this.kO,t,v,L,this.m$,this.XW,A,this.Kd);g.d(this,this.Pu);this.u5=Wc(function(){return new oC(h,D,S,Y.kO,Y.yY,Y.Sk)}); g.d(this,this.u5);this.kx=Wc(function(){return new Ch}); g.d(this,this.kx);this.iD=new O5(M,this.FC,this.kO);g.d(this,this.iD);this.WX=new Xm(M);g.d(this,this.WX);this.ZL=new Jq(M);g.d(this,this.ZL);this.vK=new G7(M,this.N$,q);g.d(this,this.vK);this.FR=new w5(M,this.Ud,this.Sk,this.m$,q);g.d(this,this.FR);this.Hy=new ME(M);g.d(this,this.Hy);this.Ov=new fW(M);g.d(this,this.Ov);this.j7=new YL(M);g.d(this,this.j7);this.s$=Wc(function(){return new Vy(f)}); g.d(this,this.s$);this.f3=new IB(M);g.d(this,this.f3);this.lU=new AV(M,this.Xn,this.Sk,this.yY,this.N$);g.d(this,this.lU);this.Zk=Wc(function(){return new ev}); g.d(this,this.Zk);this.YP=Wc(function(){return new b3(Y.Sk)}); g.d(this,this.YP);this.tT=Wc(function(){return new fU(Y.Pu,t,I)}); g.d(this,this.tT);this.SE=Wc(function(){return new Nd(Y.kO,Y.yY,Y.Hy,Y.tP)}); g.d(this,this.SE);this.rC=Wc(function(){return new luU(Y.FC,Y.Sk,Y.yY,E,Y.tP,Y.ZL,Y.j7,Y.AP,Y.kO,A)}); g.d(this,this.rC);this.v_=Wc(function(){return new V6(M,Y.f3,Y.Hy,Y.yY,Y.tP,Y.Lx,Y.Kd,Y.m$,Y.Sk,Y.nW,Y.Ud,Y.kC,Y.w2,Y.AP,Y.WP,Y.kO,Y.s$,q,m)}); g.d(this,this.v_);this.xX=new pT(M,this.d6,I);g.d(this,this.xX);this.qQ={hs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pu],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.P_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Hu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.XW]]),yA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u5],["SLOT_TYPE_FORECASTING",this.kx],["SLOT_TYPE_IN_PLAYER",this.kx], ["SLOT_TYPE_PLAYER_BYTES",this.kx]]),Fy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.iD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WX],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WX],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WX], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.WX],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ZL],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FR],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.FR],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.FR],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Hy],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ov],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.j7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.f3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.lU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.lU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.lU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.lU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.lU]]),F2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zk],["SLOT_TYPE_FORECASTING",this.Zk],["SLOT_TYPE_IN_PLAYER",this.Zk],["SLOT_TYPE_PLAYER_BYTES",this.YP]]), dA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.tT],["SLOT_TYPE_FORECASTING",this.SE],["SLOT_TYPE_IN_PLAYER",this.rC],["SLOT_TYPE_PLAYER_BYTES",this.v_]])};this.listeners=[E.get()];this.UU={Pu:this.Pu,Sv:this.kO.get(),Or:this.AP.get(),bN:this.Sk.get(),Hu:this.Hu,VQ:I.get(),Ni:this.d6.get(),KZ:this.iD,vB:E.get(),I9:this.m$.get()}}; TIT=function(M,f,A,Q,N){g.y.call(this);var Y=this,I=Wc(function(){return new Tv(Y.kO)}); g.d(this,I);var D=Wc(function(){return new E_(I,Y.kO)}); g.d(this,D);var E=Wc(function(){return new $q}); g.d(this,E);var t=Wc(function(){return new n_(M)}); g.d(this,t);var v=Wc(function(){return new tV(I,D,Y.kO)}); g.d(this,v);var p=Wc(function(){return new LW}); g.d(this,p);this.FC=Wc(function(){return new Se(f)}); g.d(this,this.FC);this.AP=Wc(function(){return new Xn(N)}); g.d(this,this.AP);this.kC=Wc(function(){return new Ot(f)}); g.d(this,this.kC);this.Ud=Wc(function(){return new Xz(f)}); g.d(this,this.Ud);this.Kd=Wc(function(){return new J8(f)}); g.d(this,this.Kd);this.w2=Wc(function(){return new KL(f)}); g.d(this,this.w2);this.kO=Wc(function(){return new GB(f)}); g.d(this,this.kO);var h=Wc(function(){return new hl(Q)}); g.d(this,h);var S=Wc(function(){return new UP(Y.kO)}); g.d(this,S);var L=Wc(function(){return new R$(I,v,D,Y.kO,S,null,null,null,null)}); g.d(this,L);this.WP=Wc(function(){return new U2(f)}); g.d(this,this.WP);this.m$=Wc(function(){return new I6(f,p,Y.kO)}); g.d(this,this.m$);var a=k5({m$:this.m$,kO:this.kO,QU:S}),q=a.context,m=a.lD;this.nk=a.nk;this.Sk=Wc(function(){return new T6(f,Y.m$,Y.kO)}); g.d(this,this.Sk);this.nW=Wc(function(){return new a6}); g.d(this,this.nW);this.tP=Wc(function(){return new MG(Y.Sk,f,Y.kO)}); g.d(this,this.tP);this.yY=Wc(function(){return new Yv(f,E,Y.tP,Y.m$,Y.nk,Y.kO,m)}); g.d(this,this.yY);this.Lx=Wc(function(){return new wf(Y.kO)}); g.d(this,this.Lx);this.wi=new z7(u3,qG,function(u,z,e,G){return Dd(D.get(),u,z,e,G)},t,v,D,S,this.kO,this.m$); g.d(this,this.wi);this.Hu=new Pk(t,L,A,this.kO,M,this.m$,this.Sk,this.kC);g.d(this,this.Hu);var R=new Wo(f,this.Hu,this.Sk,this.m$);this.N$=Wc(function(){return R}); this.oC=R;this.XW=new jv(t,v,this.Ud,this.N$,q);g.d(this,this.XW);this.Pu=new OE(this.kO,t,v,L,this.m$,this.XW,A,this.Kd);g.d(this,this.Pu);this.u5=Wc(function(){return new oC(h,D,S,Y.kO,Y.yY,Y.Sk)}); g.d(this,this.u5);this.kx=Wc(function(){return new Ch}); g.d(this,this.kx);this.iD=new O5(M,this.FC,this.kO);g.d(this,this.iD);this.WX=new Xm(M);g.d(this,this.WX);this.vK=new G7(M,this.N$,q);g.d(this,this.vK);this.FR=new w5(M,this.Ud,this.Sk,this.m$,q);g.d(this,this.FR);this.Hy=new ME(M);g.d(this,this.Hy);this.Ov=new fW(M);g.d(this,this.Ov);this.s$=Wc(function(){return new Vy(f)}); g.d(this,this.s$);this.f3=new IB(M);g.d(this,this.f3);this.Zk=Wc(function(){return new ev}); g.d(this,this.Zk);this.YP=Wc(function(){return new b3(Y.Sk)}); g.d(this,this.YP);this.tT=Wc(function(){return new fU(Y.Pu,t,I)}); g.d(this,this.tT);this.SE=Wc(function(){return new Nd(Y.kO,Y.yY,Y.Hy,Y.tP)}); g.d(this,this.SE);this.Gr=Wc(function(){return new tIb(Y.FC,Y.Sk,Y.yY,E,A,Y.kO)}); g.d(this,this.Gr);this.v_=Wc(function(){return new V6(M,Y.f3,Y.Hy,Y.yY,Y.tP,Y.Lx,Y.Kd,Y.m$,Y.Sk,Y.nW,Y.Ud,Y.kC,Y.w2,Y.AP,Y.WP,Y.kO,Y.s$,q,m)}); g.d(this,this.v_);this.qQ={hs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pu],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Hu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.XW]]),yA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u5],["SLOT_TYPE_FORECASTING",this.kx],["SLOT_TYPE_IN_PLAYER",this.kx],["SLOT_TYPE_PLAYER_BYTES",this.kx]]),Fy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.iD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.WX],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WX],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WX],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FR],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.FR],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Hy],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ov],["TRIGGER_TYPE_AD_BREAK_STARTED",this.f3]]),F2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zk],["SLOT_TYPE_ABOVE_FEED",this.Zk],["SLOT_TYPE_FORECASTING",this.Zk],["SLOT_TYPE_IN_PLAYER",this.Zk],["SLOT_TYPE_PLAYER_BYTES",this.YP]]),dA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.tT],["SLOT_TYPE_FORECASTING",this.SE],["SLOT_TYPE_IN_PLAYER", this.Gr],["SLOT_TYPE_PLAYER_BYTES",this.v_]])};this.listeners=[E.get()];this.UU={Pu:this.Pu,Sv:this.kO.get(),Or:this.AP.get(),bN:this.Sk.get(),Hu:this.Hu,VQ:I.get(),Ni:null,KZ:this.iD,vB:E.get(),I9:this.m$.get()}}; Dgf=function(M,f,A,Q,N){g.y.call(this);var Y=this,I=Wc(function(){return new Tv(Y.kO)}); g.d(this,I);var D=Wc(function(){return new E_(I,Y.kO)}); g.d(this,D);var E=Wc(function(){return new $q}); g.d(this,E);var t=Wc(function(){return new n_(M)}); g.d(this,t);var v=Wc(function(){return new tV(I,D,Y.kO)}); g.d(this,v);var p=Wc(function(){return new LW}); g.d(this,p);this.HN=Wc(function(){return new NIt(f)}); g.d(this,this.HN);this.FC=Wc(function(){return new Se(f)}); g.d(this,this.FC);this.AP=Wc(function(){return new Xn(N)}); g.d(this,this.AP);this.kC=Wc(function(){return new Ot(f)}); g.d(this,this.kC);this.Ud=Wc(function(){return new Xz(f)}); g.d(this,this.Ud);this.Kd=Wc(function(){return new J8(f)}); g.d(this,this.Kd);this.w2=Wc(function(){return new KL(f)}); g.d(this,this.w2);this.kO=Wc(function(){return new GB(f)}); g.d(this,this.kO);var h=Wc(function(){return new hl(Q)}); g.d(this,h);var S=Wc(function(){return new UP(Y.kO)}); g.d(this,S);var L=Wc(function(){return new R$(I,v,D,Y.kO,S,null,null,null,null)}); g.d(this,L);this.WP=Wc(function(){return new U2(f)}); g.d(this,this.WP);this.m$=Wc(function(){return new I6(f,p,Y.kO)}); g.d(this,this.m$);var a=k5({m$:this.m$,kO:this.kO,QU:S}),q=a.context,m=a.lD;this.nk=a.nk;this.Sk=Wc(function(){return new T6(f,Y.m$,Y.kO)}); g.d(this,this.Sk);this.nW=Wc(function(){return new a6}); g.d(this,this.nW);this.tP=Wc(function(){return new MG(Y.Sk,f,Y.kO)}); g.d(this,this.tP);this.yY=Wc(function(){return new Yv(f,E,Y.tP,Y.m$,Y.nk,Y.kO,m)}); g.d(this,this.yY);this.Lx=Wc(function(){return new wf(Y.kO)}); g.d(this,this.Lx);this.wi=new z7(yhb,qG,function(u,z,e,G){return Ewz(D.get(),u,z,e,G)},t,v,D,S,this.kO,this.m$); g.d(this,this.wi);this.Hu=new Pk(t,L,A,this.kO,M,this.m$,this.Sk,this.kC);g.d(this,this.Hu);var R=new Wo(f,this.Hu,this.Sk,this.m$);this.N$=Wc(function(){return R}); this.oC=R;this.XW=new jv(t,v,this.Ud,this.N$,q);g.d(this,this.XW);this.Pu=new OE(this.kO,t,v,L,this.m$,this.XW,A,this.Kd);g.d(this,this.Pu);this.u5=Wc(function(){return new oC(h,D,S,Y.kO,Y.yY,Y.Sk)}); g.d(this,this.u5);this.kx=Wc(function(){return new Ch}); g.d(this,this.kx);this.iD=new O5(M,this.FC,this.kO);g.d(this,this.iD);this.WX=new Xm(M);g.d(this,this.WX);this.vK=new G7(M,this.N$,q);g.d(this,this.vK);this.FR=new w5(M,this.Ud,this.Sk,this.m$,q);g.d(this,this.FR);this.Hy=new ME(M);g.d(this,this.Hy);this.Ov=new fW(M);g.d(this,this.Ov);this.s$=Wc(function(){return new Vy(f)}); g.d(this,this.s$);this.f3=new IB(M);g.d(this,this.f3);this.Zk=Wc(function(){return new ev}); g.d(this,this.Zk);this.YP=Wc(function(){return new b3(Y.Sk)}); g.d(this,this.YP);this.tT=Wc(function(){return new fU(Y.Pu,t,I)}); g.d(this,this.tT);this.SE=Wc(function(){return new Nd(Y.kO,Y.yY,Y.Hy,Y.tP)}); g.d(this,this.SE);this.v_=Wc(function(){return new V6(M,Y.f3,Y.Hy,Y.yY,Y.tP,Y.Lx,Y.Kd,Y.m$,Y.Sk,Y.nW,Y.Ud,Y.kC,Y.w2,Y.AP,Y.WP,Y.kO,Y.s$,q,m)}); g.d(this,this.v_);this.P$=Wc(function(){return new f$D(Y.FC,Y.Sk,Y.yY,E,Y.HN,A,Y.m$)}); g.d(this,this.P$);this.qQ={hs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pu],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Hu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.XW]]),yA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u5],["SLOT_TYPE_FORECASTING",this.kx],["SLOT_TYPE_IN_PLAYER",this.kx],["SLOT_TYPE_PLAYER_BYTES",this.kx]]),Fy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.iD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.WX],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WX],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WX],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.FR],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.FR],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Hy],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ov],["TRIGGER_TYPE_AD_BREAK_STARTED",this.f3]]),F2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zk],["SLOT_TYPE_FORECASTING",this.Zk],["SLOT_TYPE_IN_PLAYER",this.Zk],["SLOT_TYPE_PLAYER_BYTES",this.YP]]),dA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.tT],["SLOT_TYPE_FORECASTING",this.SE],["SLOT_TYPE_IN_PLAYER",this.P$],["SLOT_TYPE_PLAYER_BYTES", this.v_]])};this.listeners=[E.get()];this.UU={Pu:this.Pu,Sv:this.kO.get(),Or:this.AP.get(),bN:this.Sk.get(),Hu:this.Hu,VQ:I.get(),Ni:null,KZ:this.iD,vB:E.get(),I9:this.m$.get()}}; EPf=function(M,f,A,Q,N){g.y.call(this);var Y=this,I=Wc(function(){return new Tv(Y.kO)}); g.d(this,I);var D=Wc(function(){return new E_(I,Y.kO)}); g.d(this,D);var E=Wc(function(){return new $q}); g.d(this,E);var t=Wc(function(){return new n_(M)}); g.d(this,t);var v=Wc(function(){return new tV(I,D,Y.kO)}); g.d(this,v);var p=Wc(function(){return new LW}); g.d(this,p);this.HN=Wc(function(){return new NIt(f)}); g.d(this,this.HN);this.FC=Wc(function(){return new Se(f)}); g.d(this,this.FC);this.AP=Wc(function(){return new Xn(N)}); g.d(this,this.AP);this.kC=Wc(function(){return new Ot(f)}); g.d(this,this.kC);this.Ud=Wc(function(){return new Xz(f)}); g.d(this,this.Ud);this.Kd=Wc(function(){return new J8(f)}); g.d(this,this.Kd);this.w2=Wc(function(){return new KL(f)}); g.d(this,this.w2);this.kO=Wc(function(){return new GB(f)}); g.d(this,this.kO);var h=Wc(function(){return new hl(Q)}); g.d(this,h);var S=Wc(function(){return new UP(Y.kO)}); g.d(this,S);this.WP=Wc(function(){return new U2(f)}); g.d(this,this.WP);this.m$=Wc(function(){return new I6(f,p,Y.kO)}); g.d(this,this.m$);var L=k5({m$:this.m$,kO:this.kO,QU:S}),a=L.context,q=L.lD;this.nk=L.nk;this.Xn=Wc(function(){return new CT(f,Y.kO,Y.yY)}); g.d(this,this.Xn);this.s$=Wc(function(){return new Vy(f)}); g.d(this,this.s$);this.Sk=Wc(function(){return new T6(f,Y.m$,Y.kO)}); g.d(this,this.Sk);this.nW=Wc(function(){return new a6}); g.d(this,this.nW);L=Wc(function(){return new R$(I,v,D,Y.kO,S,null,Y.Sk,Y.P_,Y.lU,3)}); g.d(this,L);this.Lx=Wc(function(){return new wf(Y.kO)}); this.tP=Wc(function(){return new MG(Y.Sk,f,Y.kO)}); g.d(this,this.tP);this.yY=Wc(function(){return new Yv(f,E,Y.tP,Y.m$,Y.nk,Y.kO,q)}); g.d(this,this.yY);this.Hu=new Pk(t,L,A,this.kO,M,this.m$,this.Sk,this.kC);g.d(this,this.Hu);var m=new Wo(f,this.Hu,this.Sk,this.m$,this.Xn);this.N$=Wc(function(){return m}); this.oC=m;this.wi=new z7(df9,qG,function(R,u,z,e){return Ewz(D.get(),R,u,z,e)},t,v,D,S,this.kO,this.m$); g.d(this,this.wi);this.P_=new xq(t,v,this.N$,this.Xn,this.Sk,this.kO,this.yY,this.s$);g.d(this,this.P_);this.XW=new jv(t,v,this.Ud,this.N$,a);g.d(this,this.XW);this.Pu=new OE(this.kO,t,v,L,this.m$,this.XW,A,this.Kd);g.d(this,this.Pu);this.u5=Wc(function(){return new oC(h,D,S,Y.kO,Y.yY,Y.Sk,Y.s$)}); g.d(this,this.u5);this.kx=Wc(function(){return new Ch}); g.d(this,this.kx);this.iD=new O5(M,this.FC,this.kO);g.d(this,this.iD);this.WX=new Xm(M);g.d(this,this.WX);this.vK=new G7(M,this.N$,a);g.d(this,this.vK);this.FR=new w5(M,this.Ud,this.Sk,this.m$,a);g.d(this,this.FR);this.Ec=new l3(M,this.m$);g.d(this,this.Ec);this.lU=new AV(M,this.Xn,this.Sk,this.yY,this.N$);g.d(this,this.lU);this.Hy=new ME(M);g.d(this,this.Hy);this.Ov=new fW(M);g.d(this,this.Ov);this.f3=new IB(M);g.d(this,this.f3);this.Zk=Wc(function(){return new ev}); g.d(this,this.Zk);this.YP=Wc(function(){return new b3(Y.Sk)}); g.d(this,this.YP);this.tT=Wc(function(){return new fU(Y.Pu,t,I)}); g.d(this,this.tT);this.SE=Wc(function(){return new Nd(Y.kO,Y.yY,Y.Hy,Y.tP)}); g.d(this,this.SE);this.v_=Wc(function(){return new UN(M,Y.f3,Y.Hy,Y.m$,Y.s$,Y.Sk,Y.nW,Y.yY,p,Y.Xn,Y.tP,Y.Lx,Y.Kd,Y.Ud,Y.kC,Y.w2,Y.AP,Y.WP,Y.kO,E,a,q)}); g.d(this,this.v_);this.rC=Wc(function(){return new AyX(Y.FC,Y.Sk,Y.yY,E,Y.HN,A,Y.kO,Y.m$)}); g.d(this,this.rC);this.qQ={hs:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Pu],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.P_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.wi],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Hu],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.XW]]),yA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.u5],["SLOT_TYPE_FORECASTING",this.kx],["SLOT_TYPE_IN_PLAYER",this.kx],["SLOT_TYPE_PLAYER_BYTES",this.kx]]),Fy:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.iD],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.WX],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.WX],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.WX],["TRIGGER_TYPE_SLOT_ID_EXITED",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.WX],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.WX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.FR],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.FR],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Ec],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Ec],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Hy],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ov],["TRIGGER_TYPE_AD_BREAK_STARTED",this.f3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.lU],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.lU],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.lU],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.lU],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.lU]]),F2:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zk],["SLOT_TYPE_FORECASTING",this.Zk],["SLOT_TYPE_IN_PLAYER",this.Zk],["SLOT_TYPE_PLAYER_BYTES",this.YP]]),dA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.tT],["SLOT_TYPE_FORECASTING",this.SE],["SLOT_TYPE_PLAYER_BYTES",this.v_],["SLOT_TYPE_IN_PLAYER",this.rC]])};this.listeners=[E.get()]; this.UU={Pu:this.Pu,Sv:this.kO.get(),Or:this.AP.get(),bN:this.Sk.get(),Hu:this.Hu,VQ:I.get(),Ni:null,KZ:this.iD,vB:E.get(),I9:this.m$.get()}}; vPt=function(M,f,A,Q){function N(){return Y.Z} g.y.call(this);var Y=this;M.T().experiments.X3("html5_dispose_of_manager_before_dependency")?(this.K=t5c(N,M,f,A,Q),this.Z=(new OP(this.K)).j(),g.d(this,this.Z),g.d(this,this.K)):(this.K=t5c(N,M,f,A,Q),g.d(this,this.K),this.Z=(new OP(this.K)).j(),g.d(this,this.Z))}; Hq=function(M){return M.K.UU}; t5c=function(M,f,A,Q,N){try{var Y=f.T();if(g.Q5(Y))var I=new YTN(M,f,A,Q,N);else if(g.Ys(Y))I=new I3D(M,f,A,Q,N);else if(Ja(Y))I=new TIT(M,f,A,Q,N);else if(g.dA(Y))I=new Dgf(M,f,A,Q,N);else if(g.eX(Y))I=new EPf(M,f,A,Q,N);else throw new TypeError("Unknown web interface");return I}catch(D){return I=f.T(),o1("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:I.K.cplatform,interface:I.K.c,RDY:I.K.cver,Vhk:I.K.ctheme,q2x:I.K.cplayer,Uz8:I.playerStyle}),new XFb(M,f,A,Q,N)}}; pNb=function(M){JS.call(this,M)}; hff=function(M,f,A,Q,N){Q2.call(this,M,{S:"div",Y:"ytp-ad-timed-pie-countdown-container",L:[{S:"svg",Y:"ytp-ad-timed-pie-countdown",D:{viewBox:"0 0 20 20"},L:[{S:"circle",Y:"ytp-ad-timed-pie-countdown-background",D:{r:"10",cx:"10",cy:"10"}},{S:"circle",Y:"ytp-ad-timed-pie-countdown-inner",D:{r:"5",cx:"10",cy:"10"}},{S:"circle",Y:"ytp-ad-timed-pie-countdown-outer",D:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",f,A,Q,N);this.C=this.H7("ytp-ad-timed-pie-countdown-container");this.j=this.H7("ytp-ad-timed-pie-countdown-inner"); this.G=this.H7("ytp-ad-timed-pie-countdown-outer");this.Z=Math.ceil(2*Math.PI*5);this.hide()}; STD=function(M,f,A,Q,N,Y){Uv.call(this,M,{S:"div",Y:"ytp-ad-action-interstitial",D:{tabindex:"0"},L:[{S:"div",Y:"ytp-ad-action-interstitial-background-container"},{S:"div",Y:"ytp-ad-action-interstitial-slot",L:[{S:"div",Y:"ytp-ad-action-interstitial-instream-info"},{S:"div",Y:"ytp-ad-action-interstitial-card",L:[{S:"div",Y:"ytp-ad-action-interstitial-image-container"},{S:"div",Y:"ytp-ad-action-interstitial-headline-container"},{S:"div",Y:"ytp-ad-action-interstitial-description-container"},{S:"div", Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",f,A,Q);this.I1=N;this.pR=Y;this.navigationEndpoint=this.K=this.skipButton=this.Z=this.actionButton=null;this.nJ=this.H7("ytp-ad-action-interstitial-instream-info");this.fJ=this.H7("ytp-ad-action-interstitial-image-container");this.B=new ko(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,"ytp-ad-action-interstitial-image");g.d(this,this.B);this.B.pJ(this.fJ);this.z0=this.H7("ytp-ad-action-interstitial-headline-container"); this.G=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,"ytp-ad-action-interstitial-headline");g.d(this,this.G);this.G.pJ(this.z0);this.KJ=this.H7("ytp-ad-action-interstitial-description-container");this.j=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,"ytp-ad-action-interstitial-description");g.d(this,this.j);this.j.pJ(this.KJ);this.l8=this.H7("ytp-ad-action-interstitial-background-container");this.ox=new ko(this.api,this.layoutId,this.interactionLoggingClientData, this.Or,"ytp-ad-action-interstitial-background",!0);g.d(this,this.ox);this.ox.pJ(this.l8);this.w_=this.H7("ytp-ad-action-interstitial-action-button-container");this.slot=this.H7("ytp-ad-action-interstitial-slot");this.bU=this.H7("ytp-ad-action-interstitial-card");this.C=new ZD;g.d(this,this.C);this.hide()}; LIf=function(M){var f=g.XF("html5-video-player");f&&g.Sb(f,"ytp-ad-display-override",M)}; V5T=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-ad-overlay-slot",L:[{S:"div",Y:"ytp-ad-overlay-container"}]},"invideo-overlay",f,A,Q);this.B=[];this.l8=this.z0=this.C=this.w_=this.nJ=null;this.ox=!1;this.G=null;this.KJ=0;M=this.H7("ytp-ad-overlay-container");this.fJ=new v2(M,45E3,6E3,.3,.4);g.d(this,this.fJ);this.j=oPt(this);g.d(this,this.j);this.j.pJ(M);this.Z=COt(this);g.d(this,this.Z);this.Z.pJ(M);this.K=Ug9(this);g.d(this,this.K);this.K.pJ(M);this.hide()}; oPt=function(M){var f=new g.Ci({S:"div",Y:"ytp-ad-text-overlay",L:[{S:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{S:"div",Y:"ytp-ad-overlay-close-container",L:[{S:"button",Y:"ytp-ad-overlay-close-button",L:[ni(a30)]}]},{S:"div",Y:"ytp-ad-overlay-title",Ix:"{{title}}"},{S:"div",Y:"ytp-ad-overlay-desc",Ix:"{{description}}"},{S:"div",Ai:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Ix:"{{displayUrl}}"}]});M.J(f.H7("ytp-ad-overlay-title"),"click",function(A){m4(M,f.element,A)}); M.J(f.H7("ytp-ad-overlay-link"),"click",function(A){m4(M,f.element,A)}); M.J(f.H7("ytp-ad-overlay-close-container"),"click",M.tQ);f.hide();return f}; COt=function(M){var f=new g.Ci({S:"div",Ai:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],L:[{S:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{S:"div",Y:"ytp-ad-overlay-close-container",L:[{S:"button",Y:"ytp-ad-overlay-close-button",L:[ni(a30)]}]},{S:"div",Y:"ytp-ad-overlay-text-image",L:[{S:"img",D:{src:"{{imageUrl}}"}}]},{S:"div",Y:"ytp-ad-overlay-title",Ix:"{{title}}"},{S:"div",Y:"ytp-ad-overlay-desc",Ix:"{{description}}"},{S:"div",Ai:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Ix:"{{displayUrl}}"}]});M.J(f.H7("ytp-ad-overlay-title"),"click",function(A){m4(M,f.element,A)}); M.J(f.H7("ytp-ad-overlay-link"),"click",function(A){m4(M,f.element,A)}); M.J(f.H7("ytp-ad-overlay-close-container"),"click",M.tQ);M.J(f.H7("ytp-ad-overlay-text-image"),"click",M.Pl0);f.hide();return f}; Ug9=function(M){var f=new g.Ci({S:"div",Y:"ytp-ad-image-overlay",L:[{S:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{S:"div",Y:"ytp-ad-overlay-close-container",L:[{S:"button",Y:"ytp-ad-overlay-close-button",L:[ni(a30)]}]},{S:"div",Y:"ytp-ad-overlay-image",L:[{S:"img",D:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});M.J(f.H7("ytp-ad-overlay-image"),"click",function(A){m4(M,f.element,A)}); M.J(f.H7("ytp-ad-overlay-close-container"),"click",M.tQ);f.hide();return f}; qT6=function(M,f){if(f){var A=g.b(f,eP)||null;A==null?g.jZ(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(f=g.XF("video-ads ytp-ad-module")||null,f==null?g.jZ(Error("Could not locate the root ads container element to attach the ad info dialog.")):(M.z0=new g.Ci({S:"div",Y:"ytp-ad-overlay-ad-info-dialog-container"}),g.d(M,M.z0),M.z0.pJ(f),f=new Mi(M.api,M.layoutId,M.interactionLoggingClientData,M.Or,M.z0.element,!1),g.d(M,f),f.init(tS("ad-info-hover-text-button"),A,M.macros), M.G?(f.pJ(M.G,0),f.subscribe("f",M.oO8,M),f.subscribe("e",M.yp,M),M.J(M.G,"click",M.G0Y),M.J(g.XF("ytp-ad-button",f.element),"click",function(){var Q;if(g.b((Q=g.b(A.button,g.kG))==null?void 0:Q.serviceEndpoint,lNd))M.ox=M.api.getPlayerState(1)===2,M.api.pauseVideo();else M.api.onAdUxClicked("ad-info-hover-text-button",M.layoutId)}),M.l8=f):g.jZ(Error("Ad info button container within overlay ad was not present."))))}else g.$b(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; mgT=function(M,f){if(Hfd(M,s2)||M.api.isMinimized())return!1;var A=VU(f.title),Q=VU(f.description);if(g.V1(A)||g.V1(Q))return!1;M.createServerVe(M.j.element,f.trackingParams||null);M.j.updateValue("title",VU(f.title));M.j.updateValue("description",VU(f.description));M.j.updateValue("displayUrl",VU(f.displayUrl));f.navigationEndpoint&&g.RR(M.B,f.navigationEndpoint);M.j.show();M.fJ.start();M.logVisibility(M.j.element,!0);M.J(M.j.element,"mouseover",function(){M.KJ++}); return!0}; syD=function(M,f){if(Hfd(M,s2)||M.api.isMinimized())return!1;var A=VU(f.title),Q=VU(f.description);if(g.V1(A)||g.V1(Q))return!1;M.createServerVe(M.Z.element,f.trackingParams||null);M.Z.updateValue("title",VU(f.title));M.Z.updateValue("description",VU(f.description));M.Z.updateValue("displayUrl",VU(f.displayUrl));M.Z.updateValue("imageUrl",SLt(f.image));f.navigationEndpoint&&g.RR(M.B,f.navigationEndpoint);M.w_=f.imageNavigationEndpoint||null;M.Z.show();M.fJ.start();M.logVisibility(M.Z.element,!0); M.J(M.Z.element,"mouseover",function(){M.KJ++}); return!0}; csD=function(M,f){if(M.api.isMinimized())return!1;var A=LHD(f.image),Q=A;A.width0?(f=new FV(M.api,M.K), f.pJ(M.playerOverlay),g.d(M,f)):(M=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(f)),g.jZ(M))}}else g.jZ(Error("addCommonComponents() needs to be called before starting countdown."))}; nPN=function(M){function f(A){return{toString:function(){return A()}}} M.macros.SURVEY_LOCAL_TIME_EPOCH_S=f(function(){var A=new Date;return(Math.round(A.valueOf()/1E3)+-1*A.getTimezoneOffset()*60).toString()}); M.macros.SURVEY_ELAPSED_MS=f(function(){return(Date.now()-M.j).toString()})}; jyz=function(M,f,A,Q,N){Bq.call(this,M,f,A,Q,"survey-question-multi-select");this.KJ=N;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()}; $gf=function(M,f,A){M.noneOfTheAbove=new Zf0(M.api,M.layoutId,M.interactionLoggingClientData,M.Or);M.noneOfTheAbove.pJ(M.answers);M.noneOfTheAbove.init(tS("survey-none-of-the-above"),f,A)}; ysd=function(M){M.Z.forEach(function(f){f.K.toggleButton(!1)}); FIU(M,!0)}; FIU=function(M,f){var A=M.C;M=dg0(M);f=f===void 0?!1:f;A.K&&(M?A.K.hide():A.K.show(),f&&A.K instanceof H2&&!A.K.C&&Dne(A.K,!1));A.Z&&(M?A.Z.show():A.Z.hide())}; dg0=function(M){return M.Z.some(function(f){return f.K.isToggled()})||M.noneOfTheAbove.button.isToggled()}; ix=function(M,f,A,Q,N){Bq.call(this,M,f,A,Q,"survey-question-single-select",function(I){Y.api.T().V("supports_multi_step_on_desktop")&&N([I])}); var Y=this;this.hide()}; xv=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-ad-survey",L:[{S:"div",Y:"ytp-ad-survey-questions"}]},"survey",f,A,Q);this.questions=[];this.Z=[];this.conditioningRules=[];this.K=0;this.G=this.H7("ytp-ad-survey-questions");this.api.T().V("fix_survey_color_contrast_on_destop")&&this.H7("ytp-ad-survey").classList.add("color-contrast-fix");this.api.T().V("web_enable_speedmaster")&&this.H7("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; kTz=function(M,f){var A=M.Z[f],Q;(Q=M.j)==null||Q.dispose();g.b(A,yB)?efb(M,g.b(A,yB),M.macros):g.b(A,F1)&&bfd(M,g.b(A,F1),M.macros);M.K=f}; efb=function(M,f,A){var Q=new ix(M.api,M.layoutId,M.interactionLoggingClientData,M.Or,M.C.bind(M));Q.pJ(M.G);Q.init(tS("survey-question-single-select"),f,A);M.api.T().V("supports_multi_step_on_desktop")?M.j=Q:M.questions.push(Q);g.d(M,Q)}; bfd=function(M,f,A){var Q=new jyz(M.api,M.layoutId,M.interactionLoggingClientData,M.Or,M.C.bind(M));Q.pJ(M.G);Q.init(tS("survey-question-multi-select"),f,A);M.api.T().V("supports_multi_step_on_desktop")?M.j=Q:M.questions.push(Q);g.d(M,Q)}; ZY=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-ad-survey-interstitial",L:[{S:"div",Y:"ytp-ad-survey-interstitial-contents",L:[{S:"div",Y:"ytp-ad-survey-interstitial-logo",L:[{S:"div",Y:"ytp-ad-survey-interstitial-logo-image"}]},{S:"div",Y:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",f,A,Q);this.K=this.actionButton=null;this.interstitial=this.H7("ytp-ad-survey-interstitial");this.Z=this.H7("ytp-ad-survey-interstitial-contents");this.text=this.H7("ytp-ad-survey-interstitial-text"); this.logoImage=this.H7("ytp-ad-survey-interstitial-logo-image");this.transition=new g.I1(this,500,!1,300);g.d(this,this.transition)}; WIe=function(M,f){f=f&&bD(f)||"";if(g.V1(f))g.$b(Error("Found ThumbnailDetails without valid image URL"));else{var A=M.style;M=M.style.cssText;var Q=document.implementation.createHTMLDocument("").createElement("DIV");Q.style.cssText=M;M=egU(Q.style);A.cssText=[M,'background-image:url("'+f+'");'].join("")}}; Ofb=function(M){var f=g.XF("html5-video-player");f&&g.Sb(f,"ytp-ad-display-override",M)}; rj=function(M,f,A,Q,N,Y){Y=Y===void 0?0:Y;Q2.call(this,M,{S:"div",Y:"ytp-preview-ad",L:[{S:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",f,A,Q,N);var I=this;this.KJ=Y;this.Z=0;this.C=-1;this.j=this.H7("ytp-preview-ad__text");switch(this.KJ){case 1:this.j.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.I1(this,400,!1,100,function(){I.hide()}); g.d(this,this.transition);this.hide()}; ux=function(M,f,A,Q){Uv.call(this,M,{S:"img",Y:"ytp-ad-avatar"},"ad-avatar",f,A,Q);this.hide()}; XNb=function(M){switch(M.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}}; z6=function(M,f,A,Q,N,Y){N=N===void 0?!1:N;Y=Y===void 0?!1:Y;Uv.call(this,M,{S:"button",Y:"ytp-ad-button-vm"},"ad-button",f,A,Q);this.buttonText=this.buttonIcon=null;this.hide();this.K=N;this.Z=Y}; Jst=function(M,f,A,Q,N){Q2.call(this,M,{S:"div",Ai:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],L:[{S:"div",Y:"ytp-ad-avatar-lockup-card__avatar_and_text_container",L:[{S:"div",Y:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",f,A,Q,N);this.startMilliseconds=0;this.adAvatar=new ux(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.adAvatar);NQ(this.element,this.adAvatar.element,0);this.headline=new uM(this.api,this.layoutId, this.interactionLoggingClientData,this.Or);g.d(this,this.headline);this.headline.pJ(this.H7("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.description);this.description.pJ(this.H7("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new z6(this.api, this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.adButton);this.adButton.pJ(this.element);this.hide()}; Pq=function(M,f,A,Q){Uv.call(this,M,{S:"button",Y:"ytp-skip-ad-button",L:[{S:"div",Y:"ytp-skip-ad-button__text"}]},"skip-button",f,A,Q);var N=this;this.Z=!1;this.C=this.H7("ytp-skip-ad-button__text");this.transition=new g.I1(this,500,!1,100,function(){N.hide()}); g.d(this,this.transition);this.K=new v2(this.element,15E3,5E3,.5,.5,!0);g.d(this,this.K);this.hide()}; KIU=function(M,f,A,Q,N){Q2.call(this,M,{S:"div",Y:"ytp-skip-ad"},"skip-ad",f,A,Q,N);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.j=new Pq(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.j);this.j.pJ(this.element);this.hide()}; nT=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-visit-advertiser-link"},"visit-advertiser-link",f,A,Q);this.hide()}; je=function(M,f,A,Q,N){Uv.call(this,M,{S:"div",Y:"ytp-ad-player-overlay-layout",L:[{S:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{S:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container"},{S:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{S:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",f,A,Q);this.Z=N;this.z0=this.H7("ytp-ad-player-overlay-layout__player-card-container");this.K=this.H7("ytp-ad-player-overlay-layout__ad-info-container"); this.B=this.H7("ytp-ad-player-overlay-layout__skip-or-preview-container");this.KJ=this.H7("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; GT6=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-ad-grid-card-text",L:[{S:"div",Y:"ytp-ad-grid-card-text__metadata",L:[{S:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{S:"div",Y:"ytp-ad-grid-card-text__metadata__description",L:[{S:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{S:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{S:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",f,A,Q);this.headline=new uM(this.api,this.layoutId,this.interactionLoggingClientData, this.Or);g.d(this,this.headline);this.headline.pJ(this.H7("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!0);g.d(this,this.moreInfoButton);this.moreInfoButton.pJ(this.H7("ytp-ad-grid-card-text__button"))}; $v=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",f,A,Q);this.K=[]}; FZ=function(M,f,A,Q,N,Y,I){Q2.call(this,M,Y,I,f,A,Q,N);this.playerProgressOffsetMs=0;this.Z=!1}; wN9=function(M){var f=g.XF("html5-video-player");f&&g.Sb(f,"ytp-ad-display-override",M)}; l39=function(M,f,A,Q,N){FZ.call(this,M,f,A,Q,N,{S:"div",Y:"ytp-display-underlay-text-grid-cards",L:[{S:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",L:[{S:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header",L:[{S:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{S:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{S:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {S:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new $v(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.adGridCardCollection);this.adGridCardCollection.pJ(this.H7("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.adButton);this.adButton.pJ(this.H7("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.j=this.H7("ytp-display-underlay-text-grid-cards__content_container");this.C=this.H7("ytp-display-underlay-text-grid-cards__content_container__header")}; yy=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-ad-details-line"},"ad-details-line",f,A,Q);this.K=[];this.hide()}; dj=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-image-background",L:[{S:"img",Y:"ytp-image-background-image"}]},"image-background",f,A,Q);this.hide()}; MNm=function(M,f,A,Q,N){Q2.call(this,M,{S:"svg",Y:"ytp-timed-pie-countdown",D:{viewBox:"0 0 20 20"},L:[{S:"circle",Y:"ytp-timed-pie-countdown__background",D:{r:"10",cx:"10",cy:"10"}},{S:"circle",Y:"ytp-timed-pie-countdown__inner",D:{r:"5",cx:"10",cy:"10"}},{S:"circle",Y:"ytp-timed-pie-countdown__outer",D:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",f,A,Q,N);this.j=this.H7("ytp-timed-pie-countdown__inner");this.Z=Math.ceil(2*Math.PI*5);this.hide()}; ee=function(M,f,A,Q){Uv.call(this,M,{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",D:{tabindex:"0"},L:[{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",L:[{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",L:[{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{S:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",f,A,Q);this.Z=null;this.C=this.H7("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.j=new ZD;g.d(this,this.j);this.hide()}; fUC=function(M){var f=g.XF("html5-video-player");f&&g.Sb(f,"ytp-ad-display-override",M)}; AbW=function(M){if(!M.adAvatar||!g.b(M.adAvatar,bx))return g.jZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!M.headline)return g.jZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!M.adBadge||!g.b(M.adBadge,kv))return g.jZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!M.adButton||!g.b(M.adButton,Wq))return g.jZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!M.adInfoRenderer|| !g.b(M.adInfoRenderer,eP))return g.jZ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;M=M.durationMilliseconds||0;return typeof M!=="number"||M<=0?(g.jZ(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+M)),!1):!0}; O2=function(M,f){f=f===void 0?2:f;g.pi.call(this);this.api=M;this.K=null;this.DK=new ZD(this);g.d(this,this.DK);this.Z=EHT;this.DK.J(this.api,"presentingplayerstatechange",this.DD);this.K=this.DK.J(this.api,"progresssync",this.z_);this.e4=f;this.e4===1&&this.z_()}; XZ=function(M,f,A){JS.call(this,M);this.api=M;this.Or=f;this.Z={};M=new g.O({S:"div",Ai:["video-ads","ytp-ad-module"]});g.d(this,M);rt&&g.tZ(M.element,"ytp-ads-tiny-mode");this.N=new HU(M.element);g.d(this,this.N);g.$X(this.api,M.element,4);E5(A)&&(A=new g.O({S:"div",Ai:["ytp-ad-underlay"]}),g.d(this,A),this.j=new HU(A.element),g.d(this,this.j),g.$X(this.api,A.element,0));g.d(this,ju6())}; Qfv=function(M,f){M=g.fx(M.Z,f.id,null);M==null&&g.$b(Error("Component not found for element id: "+f.id));return M||null}; NDW=function(M){g.CV.call(this,M);var f=this;this.Z=null;this.created=!1;this.j=M.T().V("h5_use_refactored_get_ad_break")?new W0U(this.player):new by(this.player);this.C=function(){if(f.Z!=null)return f.Z;var Q=new lhD({KZ:Hq(f.K).KZ,I9:Hq(f.K).I9,U:f.player,Sv:Hq(f.K).Sv,yY:f.K.K.yY,vB:Hq(f.K).vB,w2:f.K.K.w2});f.Z=Q.tG;return f.Z}; this.K=new vPt(this.player,this,this.j,this.C);g.d(this,this.K);var A=M.T();!xw(A)||g.eX(A)||Ja(A)||(g.d(this,new XZ(M,Hq(this.K).Or,Hq(this.K).Sv)),g.d(this,new pNb(M)))}; Y0w=function(M){M.created!==M.loaded&&o1("Created and loaded are out of sync")}; Dcv=function(M){g.CV.prototype.load.call(M);var f=Hq(M.K).Sv;try{M.player.getRootNode().classList.add("ad-created")}catch(E){o1(E instanceof Error?E:String(E))}var A=M.player.getVideoData(1),Q=A&&A.videoId||"",N=A&&A.getPlayerResponse()||{},Y=(!M.player.T().experiments.X3("debug_ignore_ad_placements")&&N&&N.adPlacements||[]).map(function(E){return E.adPlacementRenderer}),I=((N==null?void 0:N.adSlots)||[]).map(function(E){return g.b(E,X1)}); N=N.playerConfig&&N.playerConfig.daiConfig&&N.playerConfig.daiConfig.enableDai||!1;A&&A.U$();Y=IUB(Y,I,f,Hq(M.K).VQ);I=A&&A.clientPlaybackNonce||"";A=A&&A.WQ||!1;if(B$(f,!0)&&A){var D;f={};(D=M.player.getVideoData())==null||D.ZB("p_cpb",(f.cc=I,f))}D=1E3*M.player.getDuration(1);TDv(M);M.K.K.oC.Ym(I,D,A,Y.P6,Y.y6,Y.P6,N,Q)}; TDv=function(M){var f,A;if(A=(f=M.player.getVideoData(1))==null||!f.WQ)f=M.player.T(),A=xw(f)&&!g.i7(f)&&f.playerStyle==="desktop-polymer";A&&(M=M.player.getInternalApi(),M.addEventListener("updateKevlarOrC3Companion",LVT),M.addEventListener("updateEngagementPanelAction",oHX),M.addEventListener("changeEngagementPanelVisibility",Cgb),window.addEventListener("yt-navigate-start",Vtc))}; Jl=function(M,f){f===M.Be&&(M.Be=void 0)}; E9C=function(M){var f=Hq(M.K).Hu,A=f.C().pj("SLOT_TYPE_PLAYER_BYTES",1);f=c8(f.m$.get(),1).clientPlaybackNonce;var Q=!1;A=g.V(A);for(var N=A.next();!N.done;N=A.next()){N=N.value;var Y=N.slotType==="SLOT_TYPE_PLAYER_BYTES"&&N.slotEntryTrigger instanceof u9?N.slotEntryTrigger.ZT:void 0;Y&&Y===f&&(Q&&o1("More than 1 preroll playerBytes slot detected",N),Q=!0)}Q||DY(Hq(M.K).bN)}; tN9=function(M){if(wC(Hq(M.K).Sv))return!0;var f="";M=g.V(Hq(M.K).vB.J8.keys());for(var A=M.next();!A.done;A=M.next()){A=A.value;if(A.slotType==="SLOT_TYPE_PLAYER_BYTES"&&A.W7==="core")return!0;f+=A.slotType+" "}Math.random()<.01&&o1("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:f});return!1}; v9e=function(M){M=g.V(Hq(M.K).vB.J8.values());for(var f=M.next();!f.done;f=M.next())if(f.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; nuU=function(M,f,A,Q,N,Y){A=A===void 0?[]:A;Q=Q===void 0?"":Q;N=N===void 0?"":N;var I=Hq(M.K).Sv,D=M.player.getVideoData(1);D&&D.getPlayerResponse();D&&D.U$();A=IUB(f,A,I,Hq(M.K).VQ);dxc(Hq(M.K).Pu,Q,A.P6,A.y6,f,N,Y)}; IUB=function(M,f,A,Q){f={P6:[],y6:f};M=g.V(M);for(var N=M.next();!N.done;N=M.next())if((N=N.value)&&N.renderer!=null){var Y=N.renderer;if(!A.U.T().V("html5_enable_vod_lasr_with_notify_pacf")){var I=void 0,D=void 0,E=void 0,t=void 0,v=Q;g.b((t=Y.sandwichedLinearAdRenderer)==null?void 0:t.adVideoStart,ck)?(I=g.b((E=Y.sandwichedLinearAdRenderer)==null?void 0:E.adVideoStart,ck),I=YPe(I,v),g.bH(Y.sandwichedLinearAdRenderer.adVideoStart,ck,I)):g.b((D=Y.linearAdSequenceRenderer)==null?void 0:D.adStart,ck)&& (E=g.b((I=Y.linearAdSequenceRenderer)==null?void 0:I.adStart,ck),I=YPe(E,v),g.bH(Y.linearAdSequenceRenderer.adStart,ck,I))}f.P6.push(N)}return f}; g.KT=function(M){if(typeof DOMParser!="undefined")return Lg(new DOMParser,$lt(M),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.G6=function(M){g.y.call(this);this.callback=M;this.K=new cv(0,0,.4,0,.2,1,1,1);this.delay=new g.la(this.next,window,this);g.d(this,this.delay)}; g.pX7=function(M){var f=M.T();return f.N5&&!f.j&&g.Ps(f)?M.isEmbedsShortsMode()?(M=M.GH(),Math.min(M.width,M.height)>=315):!M.Qi():!1}; g.wj=function(M){g.O.call(this,{S:"div",Y:"ytp-more-videos-view",D:{tabIndex:"-1"}});var f=this;this.api=M;this.Z=!0;this.j=new g.yK(this);this.K=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.C=this.scrollPosition=0;this.title=new g.O({S:"h2",Y:"ytp-related-title",Ix:"{{title}}"});this.previous=new g.O({S:"button",Ai:["ytp-button","ytp-previous"],D:{"aria-label":"Show previous suggested videos"},L:[g.mj()]});this.W=new g.G6(function(A){f.suggestions.element.scrollLeft=-A}); this.next=new g.O({S:"button",Ai:["ytp-button","ytp-next"],D:{"aria-label":"Show more suggested videos"},L:[g.cO()]});g.d(this,this.j);this.G=M.T().C;g.d(this,this.title);this.title.pJ(this.element);this.suggestions=new g.O({S:"div",Y:"ytp-suggestions"});g.d(this,this.suggestions);this.suggestions.pJ(this.element);g.d(this,this.previous);this.previous.pJ(this.element);this.previous.listen("click",this.B$,this);g.d(this,this.W);heR(this);g.d(this,this.next);this.next.pJ(this.element);this.next.listen("click", this.xT,this);this.j.J(this.api,"appresize",this.Tt);this.j.J(this.api,"fullscreentoggled",this.G3);this.j.J(this.api,"videodatachange",this.onVideoDataChange);this.Tt(this.api.ax().getPlayerSize());this.onVideoDataChange()}; heR=function(M){for(var f={rh:0};f.rh<16;f={rh:f.rh},++f.rh){var A=new g.O({S:"a",Y:"ytp-suggestion-link",D:{href:"{{link}}",target:M.api.T().B,"aria-label":"{{aria_label}}"},L:[{S:"div",Y:"ytp-suggestion-image"},{S:"div",Y:"ytp-suggestion-overlay",D:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},L:[{S:"div",Y:"ytp-suggestion-title",Ix:"{{title}}"},{S:"div",Y:"ytp-suggestion-author",Ix:"{{author_and_views}}"},{S:"div",D:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration", Ix:"{{duration}}"}]}]});g.d(M,A);var Q=A.H7("ytp-suggestion-link");g.ji(Q,"transitionDelay",f.rh/20+"s");M.j.J(Q,"click",function(N){return function(Y){var I=N.rh;if(M.Z){var D=M.suggestionData[I],E=D.sessionData;M.G&&M.api.V("web_player_log_click_before_generating_ve_conversion_params")?(M.api.logClick(M.K[I].element),I=D.Rq(),D={},g.Pj(M.api,D),I=g.uj(I,D),g.vp(I,M.api,Y)):g.t$(Y,M.api,M.G,E||void 0)&&M.api.x7(D.videoId,E,D.playlistId)}else Y.preventDefault(),document.activeElement.blur()}}(f)); A.pJ(M.suggestions.element);M.K.push(A);M.api.createServerVe(A.element,A)}}; S0B=function(M){if(M.api.T().V("web_player_log_click_before_generating_ve_conversion_params"))for(var f=Math.floor(-M.scrollPosition/(M.C+8)),A=Math.min(f+M.columns,M.suggestionData.length)-1;f<=A;f++)M.api.logVisibility(M.K[f].element,!0)}; g.lx=function(M){var f=M.api.SV()?32:16;f=M.X/2+f;M.next.element.style.bottom=f+"px";M.previous.element.style.bottom=f+"px";f=M.scrollPosition;var A=M.containerWidth-M.suggestionData.length*(M.C+8);g.Sb(M.element,"ytp-scroll-min",f>=0);g.Sb(M.element,"ytp-scroll-max",f<=A)}; o99=function(M){for(var f=M.suggestionData.length,A=0;A>>0)+"_",N=0;return f}); vX("Symbol.iterator",function(M){if(M)return M;M=Symbol("Symbol.iterator");for(var f="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),A=0;A0&&A>0;)if(Q[--A]!=f[--N])return!1;return N<=0}}); vX("Array.prototype.find",function(M){return M?M:function(f,A){return pXD(this,f,A).DY}}); vX("Array.prototype.entries",function(M){return M?M:function(){return eN(this,function(f,A){return[f,A]})}}); vX("Array.prototype.keys",function(M){return M?M:function(){return eN(this,function(f){return f})}}); vX("String.prototype.startsWith",function(M){return M?M:function(f,A){var Q=dD(this,f,"startsWith");f+="";var N=Q.length,Y=f.length;A=Math.max(0,Math.min(A|0,Q.length));for(var I=0;I=Y}}); vX("Number.isFinite",function(M){return M?M:function(f){return typeof f!=="number"?!1:!isNaN(f)&&f!==Infinity&&f!==-Infinity}}); vX("String.prototype.repeat",function(M){return M?M:function(f){var A=dD(this,null,"repeat");if(f<0||f>1342177279)throw new RangeError("Invalid count value");f|=0;for(var Q="";f;)if(f&1&&(Q+=A),f>>>=1)A+=A;return Q}}); vX("Object.entries",function(M){return M?M:function(f){var A=[],Q;for(Q in f)Lb(f,Q)&&A.push([Q,f[Q]]);return A}}); vX("Array.from",function(M){return M?M:function(f,A,Q){A=A!=null?A:function(D){return D}; var N=[],Y=typeof Symbol!="undefined"&&Symbol.iterator&&f[Symbol.iterator];if(typeof Y=="function"){f=Y.call(f);for(var I=0;!(Y=f.next()).done;)N.push(A.call(Q,Y.value,I++))}else for(Y=f.length,I=0;I>>16&65535)*N+Q*(A>>>16&65535)<<16>>>0)|0}}); vX("Math.trunc",function(M){return M?M:function(f){f=Number(f);if(isNaN(f)||f===Infinity||f===-Infinity||f===0)return f;var A=Math.floor(Math.abs(f));return f<0?-A:A}}); vX("Math.clz32",function(M){return M?M:function(f){f=Number(f)>>>0;if(f===0)return 32;var A=0;(f&4294901760)===0&&(f<<=16,A+=16);(f&4278190080)===0&&(f<<=8,A+=8);(f&4026531840)===0&&(f<<=4,A+=4);(f&3221225472)===0&&(f<<=2,A+=2);(f&2147483648)===0&&A++;return A}}); vX("Number.isNaN",function(M){return M?M:function(f){return typeof f==="number"&&isNaN(f)}}); vX("Array.prototype.values",function(M){return M?M:function(){return eN(this,function(f,A){return A})}}); vX("Array.prototype.fill",function(M){return M?M:function(f,A,Q){var N=this.length||0;A<0&&(A=Math.max(0,N+A));if(Q==null||Q>N)Q=N;Q=Number(Q);Q<0&&(Q=Math.max(0,N+Q));for(A=Number(A||0);A0&&A?A.repeat(Math.ceil(f/A.length)).substring(0,f):"")+Q}}); vX("Array.prototype.findIndex",function(M){return M?M:function(f,A){return pXD(this,f,A).Ta}}); vX("Promise.prototype.finally",function(M){return M?M:function(f){return this.then(function(A){return Promise.resolve(f()).then(function(){return A})},function(A){return Promise.resolve(f()).then(function(){throw A; })})}}); vX("Math.sign",function(M){return M?M:function(f){f=Number(f);return f===0||isNaN(f)?f:f>0?1:-1}}); vX("WeakSet",function(M){function f(A){this.K=new WeakMap;if(A){A=g.V(A);for(var Q;!(Q=A.next()).done;)this.add(Q.value)}} if(function(){if(!M||!Object.seal)return!1;try{var A=Object.seal({}),Q=Object.seal({}),N=new M([A]);if(!N.has(A)||N.has(Q))return!1;N.delete(A);N.add(Q);return!N.has(A)&&N.has(Q)}catch(Y){return!1}}())return M; f.prototype.add=function(A){this.K.set(A,!0);return this}; f.prototype.has=function(A){return this.K.has(A)}; f.prototype.delete=function(A){return this.K.delete(A)}; return f}); vX("AggregateError",function(M){function f(A,Q){Q=Error(Q);"stack"in Q&&(this.stack=Q.stack);this.errors=A;this.message=Q.message} if(M)return M;g.U(f,Error);f.prototype.name="AggregateError";return f}); vX("Array.prototype.copyWithin",function(M){function f(A){A=Number(A);return A===Infinity||A===-Infinity?A:A|0} return M?M:function(A,Q,N){var Y=this.length;A=f(A);Q=f(Q);N=N===void 0?Y:f(N);A=A<0?Math.max(Y+A,0):Math.min(A,Y);Q=Q<0?Math.max(Y+Q,0):Math.min(Q,Y);N=N<0?Math.max(Y+N,0):Math.min(N,Y);if(AQ;)--N in this?this[--A]=this[N]:delete this[--A];return this}}); vX("Int8Array.prototype.copyWithin",k9);vX("Uint8Array.prototype.copyWithin",k9);vX("Uint8ClampedArray.prototype.copyWithin",k9);vX("Int16Array.prototype.copyWithin",k9);vX("Uint16Array.prototype.copyWithin",k9);vX("Int32Array.prototype.copyWithin",k9);vX("Uint32Array.prototype.copyWithin",k9);vX("Float32Array.prototype.copyWithin",k9);vX("Float64Array.prototype.copyWithin",k9);vX("Array.prototype.at",function(M){return M?M:O0}); vX("Int8Array.prototype.at",XT);vX("Uint8Array.prototype.at",XT);vX("Uint8ClampedArray.prototype.at",XT);vX("Int16Array.prototype.at",XT);vX("Uint16Array.prototype.at",XT);vX("Int32Array.prototype.at",XT);vX("Uint32Array.prototype.at",XT);vX("Float32Array.prototype.at",XT);vX("Float64Array.prototype.at",XT);vX("String.prototype.at",function(M){return M?M:O0}); vX("Array.prototype.findLastIndex",function(M){return M?M:function(f,A){return hef(this,f,A).Ta}}); vX("Int8Array.prototype.findLastIndex",Jb);vX("Uint8Array.prototype.findLastIndex",Jb);vX("Uint8ClampedArray.prototype.findLastIndex",Jb);vX("Int16Array.prototype.findLastIndex",Jb);vX("Uint16Array.prototype.findLastIndex",Jb);vX("Int32Array.prototype.findLastIndex",Jb);vX("Uint32Array.prototype.findLastIndex",Jb);vX("Float32Array.prototype.findLastIndex",Jb);vX("Float64Array.prototype.findLastIndex",Jb);vX("Number.parseInt",function(M){return M||parseInt});var J_,Nm,S00;J_=J_||{};g.Kb=this||self;Nm="closure_uid_"+(Math.random()*1E9>>>0);S00=0;g.pm(hB,Error);hB.prototype.name="CustomError";var zce;var sf9,Xc,lW;sf9=Array.prototype.indexOf?function(M,f){return Array.prototype.indexOf.call(M,f,void 0)}:function(M,f){if(typeof M==="string")return typeof f!=="string"||f.length!=1?-1:M.indexOf(f,0); for(var A=0;A=0;A--)if(A in M&&M[A]===f)return A;return-1}; g.F0=Array.prototype.forEach?function(M,f,A){Array.prototype.forEach.call(M,f,A)}:function(M,f,A){for(var Q=M.length,N=typeof M==="string"?M.split(""):M,Y=0;Y=.3:this.q3>=.5};var oX={X2_:0,omN:1},jHb={NONE:0,P58:1,OKJ:2};var $cd="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");IX.prototype.getValue=function(){return this.Z}; g.U(TO,IX);TO.prototype.j=function(M){this.Z===null&&g.w7(this.C,M)&&(this.Z=M)}; g.U(EI,IX);EI.prototype.j=function(M){this.Z===null&&typeof M==="number"&&(this.Z=M)}; g.U(t2,IX);t2.prototype.j=function(M){this.Z===null&&typeof M==="string"&&(this.Z=M)};vT.prototype.disable=function(){this.Z=!1}; vT.prototype.enable=function(){this.Z=!0}; vT.prototype.isEnabled=function(){return this.Z}; vT.prototype.reset=function(){this.K={};this.Z=!0;this.j={}};var fX=document,ho=window;var sfe=Mm(1,!0),BT=Mm(610401301,!1);Mm(899588437,!1);Mm(725719775,!1);var cbK=Mm(513659523,!1),Re0=Mm(568333945,!1),Vxz=Mm(1331761403,!1);Mm(651175828,!1);Mm(722764542,!1);Mm(748402145,!1);var fR9=Mm(1981196515,!1);Mm(2147483644,!1);Mm(2147483645,!1);Mm(2147483646,sfe);Mm(2147483647,!0);var iQ=!!g.wD("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var HT=String.prototype.trim?function(M){return M.trim()}:function(M){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(M)[1]},Eeb=/&/g,twe=//g,pKD=/"/g,hcz=/'/g,SB9=/\x00/g,Dmf=/[\x00&<>"']/;var x1,g9B=g.Kb.navigator;x1=g9B?g9B.userAgentData||null:null;var GzT=globalThis.trustedTypes,F9;de.prototype.toString=function(){return this.K+""};k1.prototype.toString=function(){return this.K}; var MwT=new k1("about:invalid#zClosurez");var rl9=J2("tel"),xGt=J2("sms"),lUD=[J2("data"),J2("http"),J2("https"),J2("mailto"),J2("ftp"),new OI(function(M){return/^[^:]*([/?#]|$)/.test(M)})],fvb=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Mu.prototype.toString=function(){return this.K+""};YR.prototype.toString=function(){return this.K+""};vB.prototype.toString=function(){return this.K};var hu={};g.BD9=String.prototype.repeat?function(M,f){return M.repeat(f)}:function(M,f){return Array(f+1).join(M)};g2[" "]=function(){};var $A,A7,UIX,ibw,xcC,Zb0,Z9,rt,rbm;g.uc=PT();g.UD=kzb();g.Gf=re("Edge");g.IL=g.Gf||g.UD;$A=re("Gecko")&&!(qV(g.ge(),"WebKit")&&!re("Edge"))&&!(re("Trident")||re("MSIE"))&&!re("Edge");g.Kg=qV(g.ge(),"WebKit")&&!re("Edge");A7=R9();UIX=avX();g.Qi=Vwe();ibw=sl();xcC=re("iPad");Zb0=re("iPod");Z9=cB();rt=qV(g.ge(),"KaiOS"); a:{var uTB="",ze6=function(){var M=g.ge();if($A)return/rv:([^\);]+)(\)|;)/.exec(M);if(g.Gf)return/Edge\/([\d\.]+)/.exec(M);if(g.UD)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(M);if(g.Kg)return/WebKit\/(\S+)/.exec(M);if(g.uc)return/(?:Version)[ \/]?(\S+)/.exec(M)}(); ze6&&(uTB=ze6?ze6[1]:"");if(g.UD){var Mt,PdK=g.Kb.document;Mt=PdK?PdK.documentMode:void 0;if(Mt!=null&&Mt>parseFloat(uTB)){rbm=String(Mt);break a}}rbm=uTB}var sRN=rbm,Hm6={};var Mh,fM;g.ft=nx();Mh=sl()||re("iPod");fM=re("iPad");g.zG=ObU();g.nU=jE();g.mH=$1()&&!cB();var F10=!g.UD&&!$1();g.C=g.r2.prototype;g.C.clone=function(){return new g.r2(this.x,this.y)}; g.C.equals=function(M){return M instanceof g.r2&&uh(this,M)}; g.C.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.C.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.C.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.C.scale=function(M,f){this.x*=M;this.y*=typeof f==="number"?f:M;return this};g.C=g.za.prototype;g.C.clone=function(){return new g.za(this.width,this.height)}; g.C.aspectRatio=function(){return this.width/this.height}; g.C.isEmpty=function(){return!ng(this)}; g.C.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.C.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.C.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.C.scale=function(M,f){this.width*=M;this.height*=typeof f==="number"?f:M;return this};$R.prototype.toString=function(){return this.K}; var j4={};new $R(j4,"");var geT=/^[a-z][a-z\d-]*$/i,B7z="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),xm9="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),rBD=["action","formaction","href"];var P66={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.C=y4.prototype;g.C.iI=function(M){return bh(this.K,M)}; g.C.getElementsByTagName=function(M,f){return(f||this.K).getElementsByTagName(String(M))}; g.C.H7=function(M){return g.XF(M,this.K)}; g.C.setProperties=Ju;g.C.createElement=function(M){return w2(this.K,M)}; g.C.appendChild=g.Ao;g.C.append=function(M,f){FWX(d2(M),M,arguments,1)}; g.C.canHaveChildren=function(M){if(M.nodeType!=1)return!1;switch(M.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.C.removeNode=g.Ya;g.C.getChildren=function(M){return M.children!=void 0?M.children:Array.prototype.filter.call(M.childNodes,function(f){return f.nodeType==1})}; g.C.contains=g.IH;to.prototype.now=function(){return 0}; to.prototype.Z=function(){return 0}; to.prototype.j=function(){return 0}; to.prototype.K=function(){return 0};g.U(p$,to);p$.prototype.now=function(){return vP()&&ho.performance.now?ho.performance.now():to.prototype.now.call(this)}; p$.prototype.Z=function(){return vP()&&ho.performance.memory?ho.performance.memory.totalJSHeapSize||0:to.prototype.Z.call(this)}; p$.prototype.j=function(){return vP()&&ho.performance.memory?ho.performance.memory.usedJSHeapSize||0:to.prototype.j.call(this)}; p$.prototype.K=function(){return vP()&&ho.performance.memory?ho.performance.memory.jsHeapSizeLimit||0:to.prototype.K.call(this)};var kCd=oH(function(){var M=!1;try{var f=Object.defineProperty({},"passive",{get:function(){M=!0}}); g.Kb.addEventListener("test",null,f)}catch(A){}return M});WWD.prototype.isVisible=function(){return qQ(fX)===1};var M46=HP(function(M){return typeof M==="number"}),lLT=HP(function(M){return typeof M==="string"}),fez=HP(function(M){return typeof M==="boolean"}),U_=HP(function(M){return M!=null&&typeof M==="object"&&typeof M.then==="function"}),Vk0=HP(function(M){return typeof M==="function"}),n9B=HP(function(M){return!!M&&(typeof M==="object"||typeof M==="function")});var $9t=function(){if(!g.Kb.addEventListener||!Object.defineProperty)return!1;var M=!1,f=Object.defineProperty({},"passive",{get:function(){M=!0}}); try{var A=function(){}; g.Kb.addEventListener("test",A,f);g.Kb.removeEventListener("test",A,f)}catch(Q){}return M}();var MeN=XK9("AnimationEnd"),LD=XK9("TransitionEnd");var KWN=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),QX6=/#|$/,Ne9=/[?&]($|#)/;var ILc={cg3:"allow-forms",mQ$:"allow-modals",o$k:"allow-orientation-lock",GPN:"allow-pointer-lock",NLJ:"allow-popups",qC_:"allow-popups-to-escape-sandbox",VV3:"allow-presentation",Rri:"allow-same-origin",WQB:"allow-scripts",Oy7:"allow-top-navigation",v$3:"allow-top-navigation-by-user-activation"},tEd=oH(function(){return Tez()});var SIX=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");d4.prototype.mf=function(M,f,A){M=M+"//"+f+A;var Q=UVf(this)-A.length;if(Q<0)return"";this.K.sort(function(t,v){return t-v}); A=null;f="";for(var N=0;N=E.length){Q-=E.length;M+=E;f=this.j;break}A=A==null?Y:A}}Q="";A!=null&&(Q=""+f+"trn="+A);return M+Q};K$.prototype.setInterval=function(M,f){return ho.setInterval(M,f)}; K$.prototype.clearInterval=function(M){ho.clearInterval(M)}; K$.prototype.setTimeout=function(M,f){return ho.setTimeout(M,f)}; K$.prototype.clearTimeout=function(M){ho.clearTimeout(M)};var Cu=void 0,oh,M7b=typeof TextDecoder!=="undefined",ixD,Be6=typeof String.prototype.isWellFormed==="function",g1U=typeof TextEncoder!=="undefined";var zZt={},YY=null,PQD=$A||g.Kg||typeof g.Kb.btoa=="function";var WYT=typeof Uint8Array!=="undefined",y2z=!g.UD&&typeof btoa==="function",dV6=/[-_.]/g,$Ve={"-":"+",_:"/",".":"="},Tc={};Ik.prototype.isEmpty=function(){return this.K==null}; Ik.prototype.sizeBytes=function(){var M=Ed(this);return M?M.length:0}; var kOc;var Oxz=void 0;var Sa=typeof Symbol==="function"&&typeof Symbol()==="symbol",jfB=hn("jas",void 0,!0),nQ=hn(void 0,"1oa"),AT=hn(void 0,Symbol()),$c6=hn(void 0,"0ub"),gRz=hn(void 0,"0ubs"),sHT=hn(void 0,"0ubsb"),ruc=hn(void 0,"0actk"),l0=hn("m_m","Bzi",!0),cud=hn(void 0,"vps"),F60=hn();Math.max.apply(Math,g.c(Object.values({OSr:1,Wdi:2,R$x:4,or_:8,fh7:16,fMB:32,YJ0:64,L2N:128,VU$:256,Lxu:512,W2r:1024,bK7:2048,U_8:4096})));var J20={eI:{value:0,configurable:!0,writable:!0,enumerable:!1}},XT9=Object.defineProperties,La=Sa?jfB:"eI",H_,ybB=[];ok(ybB,7);H_=Object.freeze(ybB);var MX={},Ud={},yub=Object.freeze({}),qM={};var mv=typeof g.Kb.BigInt==="function"&&typeof g.Kb.BigInt(0)==="bigint";var Dl=HP(function(M){return mv?M>=dcm&&M<=eeR:M[0]==="-"?Au6(M,bbK):Au6(M,kzB)}),bbK=Number.MIN_SAFE_INTEGER.toString(),dcm=mv?BigInt(Number.MIN_SAFE_INTEGER):void 0,kzB=Number.MAX_SAFE_INTEGER.toString(),eeR=mv?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Jud=typeof Uint8Array.prototype.slice==="function",cE=0,Rk=0,coX;var b0=typeof BigInt==="function"?BigInt.asIntN:void 0,ChU=typeof BigInt==="function"?BigInt.asUintN:void 0,X5=Number.isSafeInteger,na=Number.isFinite,Jn=Math.trunc,T2D=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Rbd={};var W6m={mX0:!0};var IZ;var B2t,igb;var ebD=sd(0),JT={};g.C=Og9.prototype;g.C.init=function(M,f,A,Q){var N=Q===void 0?{}:Q;Q=N.hB===void 0?!1:N.hB;N=N.wO===void 0?!1:N.wO;this.hB=Q;this.wO=N;M&&(M=QW(M,this.wO),this.Z=M.buffer,this.N=M.K,this.C=f||0,this.j=A!==void 0?this.C+A:this.Z.length,this.K=this.C)}; g.C.free=function(){this.clear();v1.length<100&&v1.push(this)}; g.C.clear=function(){this.Z=null;this.N=!1;this.K=this.j=this.C=0;this.hB=!1}; g.C.reset=function(){this.K=this.C}; g.C.Za=function(){var M=this.G;M||(M=this.Z,M=this.G=new DataView(M.buffer,M.byteOffset,M.byteLength));return M}; var v1=[];pu.prototype.free=function(){this.K.clear();this.Z=this.C=-1;h6.length<100&&h6.push(this)}; pu.prototype.reset=function(){this.K.reset();this.j=this.K.K;this.Z=this.C=-1}; var h6=[];VW.prototype.toJSON=function(){return tT(this)}; VW.prototype.Ky=function(M){return JSON.stringify(tT(this,M))}; VW.prototype.clone=function(){var M=this.E$;return new this.constructor(Sp(M,M[La]|0,!1))}; VW.prototype[l0]=MX;VW.prototype.toString=function(){return this.E$.toString()};var QHT,Yyc;mF.prototype.length=function(){return this.K.length}; mF.prototype.end=function(){var M=this.K;this.K=[];return M};var Zn=x3(),Obv=x3(),XX0=x3(),Jb6=x3(),K60=x3(),Gz0=x3(),wXc=x3(),lU7=x3();var SyD=uL(function(M,f,A,Q,N){if(M.Z!==2)return!1;Lu(M,jp(f,Q,A),N);return!0},hUc),LGU=uL(function(M,f,A,Q,N){if(M.Z!==2)return!1; Lu(M,jp(f,Q,A),N);return!0},hUc),bL=Symbol(),$3=Symbol(),dg=Symbol(),qyt=Symbol(),UQc=Symbol(),zw,P1;var Mw0=Ku(function(M,f,A){if(M.Z!==1)return!1;wg(f,A,Ep(M.K));return!0},lL,wXc),fvB=Ku(function(M,f,A){if(M.Z!==1)return!1; M=Ep(M.K);wg(f,A,M===0?void 0:M);return!0},lL,wXc),ABC=Ku(function(M,f,A,Q){if(M.Z!==1)return!1; zW(f,A,Q,Ep(M.K));return!0},lL,wXc),QRc=Ku(function(M,f,A){if(M.Z!==0)return!1; wg(f,A,Y3(M.K));return!0},MT,K60),N7W=Ku(function(M,f,A){if(M.Z!==0)return!1; M=Y3(M.K);wg(f,A,M===0?void 0:M);return!0},MT,K60),YBm=Ku(function(M,f,A,Q){if(M.Z!==0)return!1; zW(f,A,Q,Y3(M.K));return!0},MT,K60),Iv0=Ku(function(M,f,A){if(M.Z!==0)return!1; wg(f,A,Ih(M.K));return!0},fY,Jb6),T7C=Ku(function(M,f,A){if(M.Z!==0)return!1; M=Ih(M.K);wg(f,A,M===0?void 0:M);return!0},fY,Jb6),DmR=Ku(function(M,f,A,Q){if(M.Z!==0)return!1; zW(f,A,Q,Ih(M.K));return!0},fY,Jb6),EeB=Ku(function(M,f,A){if(M.Z!==1)return!1; wg(f,A,Dn(M.K));return!0},function(M,f,A){va9(M,A,UuT(f))},Gz0),twc=Gw(function(M,f,A){if(M.Z!==1&&M.Z!==2)return!1; f=iP(f,f[La]|0,A);if(M.Z==2)for(A=Ih(M.K)>>>0,A=M.K.K+A;M.K.K>>0);return!0},function(M,f,A){f=ds(f); f!=null&&f!=null&&(B1(M,A,0),c1(M.K,f))},x3()),C6w=Ku(function(M,f,A){if(M.Z!==0)return!1; wg(f,A,Ih(M.K));return!0},function(M,f,A){f=y7(f); f!=null&&(f=parseInt(f,10),B1(M,A,0),T49(M.K,f))},x3());xQ0.prototype.register=function(){g2(this)};g.U(YA,VW);YA.prototype.Z=Z$b([0,fvB,N7W,-2,T7C]);var $Qd={bhB:1,Yg:2,Hhr:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};yob.prototype.ZO=function(M){if(typeof M==="string"&&M.length!=0){var f=this.jc;if(f.Z){M=M.split("&");for(var A=M.length-1;A>=0;A--){var Q=M[A].split("="),N=decodeURIComponent(Q[0]);Q.length>1?(Q=decodeURIComponent(Q[1]),Q=/^[0-9]+$/g.exec(Q)?parseInt(Q,10):Q):Q=1;(N=f.K[N])&&N.j(Q)}}}};var Iw=null;var vC=g.Kb.performance,Um6=!!(vC&&vC.mark&&vC.measure&&vC.clearMarks),Ec=oH(function(){var M;if(M=Um6){var f=f===void 0?window:f;if(Iw===null){Iw="";try{M="";try{M=f.top.location.hash}catch(Q){M=f.location.hash}if(M){var A=M.match(/\bdeid=([\d,]+)/);Iw=A?A[1]:""}}catch(Q){}}f=Iw;M=!!f.indexOf&&f.indexOf("1337")>=0}return M}); t9.prototype.disable=function(){this.K=!1;this.events!==this.Z.google_js_reporting_queue&&(Ec()&&g.F0(this.events,O$c),this.events.length=0)}; t9.prototype.start=function(M,f){if(!this.K)return null;var A=kDc()||b$f();M=new WGb(M,f,A);f="goog_"+M.label+"_"+M.uniqueId+"_start";vC&&Ec()&&vC.mark(f);return M}; t9.prototype.end=function(M){if(this.K&&typeof M.value==="number"){var f=kDc()||b$f();M.duration=f-M.value;f="goog_"+M.label+"_"+M.uniqueId+"_end";vC&&Ec()&&vC.mark(f);!this.K||this.events.length>2048||this.events.push(M)}};XPb.prototype.WE=function(M,f,A,Q,N){N=N||this.Ww;try{var Y=new d4;Y.K.push(1);Y.Z[1]=e7("context",M);f.error&&f.meta&&f.id||(f=new LY(oK(f)));if(f.msg){var I=f.msg.substring(0,512);Y.K.push(2);Y.Z[2]=e7("msg",I)}var D=f.meta||{};if(this.Zl)try{this.Zl(D)}catch(S){}if(Q)try{Q(D)}catch(S){}Q=[D];Y.K.push(3);Y.Z[3]=Q;var E=o1t();if(E.Z){var t=E.Z.url||"";Y.K.push(4);Y.Z[4]=e7("top",t)}var v={url:E.K.url||""};if(E.K.url){var p=g.cP(E.K.url);var h=sy(p[1],null,p[3],p[4])}else h="";t=[v,{url:h}];Y.K.push(5); Y.Z[5]=t;dQX(this.K,N,Y,A)}catch(S){try{dQX(this.K,N,{context:"ecmserr",rctx:M,msg:oK(S),url:E&&E.K.url},A)}catch(L){}}return this.j6}; g.U(LY,eUN);var h9,Si,pY=new t9;h9=new function(){var M="https:";ho&&ho.location&&ho.location.protocol==="http:"&&(M="http:");this.Z=M;this.K=.01}; Si=new XPb;ho&&ho.document&&(ho.document.readyState=="complete"?KGb():pY.K&&aH(ho,"load",function(){KGb()}));var l8b=Date.now(),mR=-1,qT=-1,Spt,sc=-1,HC=!1;g.C=cC.prototype;g.C.getHeight=function(){return this.bottom-this.top}; g.C.clone=function(){return new cC(this.top,this.right,this.bottom,this.left)}; g.C.contains=function(M){return this&&M?M instanceof cC?M.left>=this.left&&M.right<=this.right&&M.top>=this.top&&M.bottom<=this.bottom:M.x>=this.left&&M.x<=this.right&&M.y>=this.top&&M.y<=this.bottom:!1}; g.C.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.C.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.C.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.C.scale=function(M,f){f=typeof f==="number"?f:M;this.left*=M;this.right*=M;this.top*=f;this.bottom*=f;return this};iW.prototype.equals=function(M,f){return!!M&&(!(f===void 0?0:f)||this.volume==M.volume)&&this.j==M.j&&gr(this.K,M.K)&&!0};xA.prototype.iI=function(){return this.W}; xA.prototype.equals=function(M,f){return this.C.equals(M.C,f===void 0?!1:f)&&this.W==M.W&&gr(this.j,M.j)&&gr(this.G,M.G)&&this.K==M.K&&this.N==M.N&&this.Z==M.Z&&this.X==M.X};var Vwc={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},MW={No:"start",ra:"firstquartile",Pf:"midpoint",qo:"thirdquartile",COMPLETE:"complete",ERROR:"error",Cq:"metric",PAUSE:"pause",cf:"resume",mM:"skip",O0:"viewable_impression",SM:"mute",RN:"unmute",Lv:"fullscreen",lE:"exitfullscreen",O4:"bufferstart",W$:"bufferfinish",bE:"fully_viewable_audible_half_duration_impression",Hf:"measurable_impression",U4:"abandon",h_:"engagedview",FM:"impression",J_:"creativeview",jM:"loaded", B5$:"progress",CLOSE:"close",vI0:"collapse",Wi7:"overlay_resize",Oh_:"overlay_unmeasurable_impression",vr$:"overlay_unviewable_impression",Y6O:"overlay_viewable_immediate_impression",wB8:"overlay_viewable_end_of_session_impression",XM:"custom_metric_viewable",GX:"audio_audible",qR:"audio_measurable",NR:"audio_impression"},c9e="start firstquartile midpoint thirdquartile resume loaded".split(" "),RXD=["start","firstquartile","midpoint","thirdquartile"],o3z=["abandon"],qW={UNKNOWN:-1,No:0,ra:1,Pf:2, qo:3,COMPLETE:4,Cq:5,PAUSE:6,cf:7,mM:8,O0:9,SM:10,RN:11,Lv:12,lE:13,bE:14,Hf:15,U4:16,h_:17,FM:18,J_:19,jM:20,XM:21,O4:22,W$:23,NR:27,qR:28,GX:29};var fPe={pK_:"addEventListener",wUN:"getMaxSize",Y3x:"getScreenSize",MUu:"getState",J$k:"getVersion",uyu:"removeEventListener",vPY:"isViewable"};g.C=g.zM.prototype;g.C.clone=function(){return new g.zM(this.left,this.top,this.width,this.height)}; g.C.contains=function(M){return M instanceof g.r2?M.x>=this.left&&M.x<=this.left+this.width&&M.y>=this.top&&M.y<=this.top+this.height:this.left<=M.left&&this.left+this.width>=M.left+M.width&&this.top<=M.top&&this.top+this.height>=M.top+M.height}; g.C.getSize=function(){return new g.za(this.width,this.height)}; g.C.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.C.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.C.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.C.scale=function(M,f){f=typeof f==="number"?f:M;this.left*=M;this.width*=M;this.top*=f;this.height*=f;return this};var Yd0={};SdD.prototype.update=function(M){M&&M.document&&(this.W=uW(!1,M,this.isMobileDevice),this.K=uW(!0,M,this.isMobileDevice),Sg9(this,M),Lve(this,M))};Qx.prototype.cancel=function(){GD().clearTimeout(this.K);this.K=null}; Qx.prototype.schedule=function(){var M=this,f=GD(),A=TM().K.K;this.K=f.setTimeout(IK(A,Uc(143,function(){M.Z++;M.j.sample()})),Ma0())};g.C=N9.prototype;g.C.lO=function(){return!1}; g.C.initialize=function(){return this.isInitialized=!0}; g.C.cC=function(){return this.K.z0}; g.C.xv=function(){return this.K.Er}; g.C.sJ=function(M,f){if(!this.Er||(f===void 0?0:f))this.Er=!0,this.z0=M,this.X=0,this.K!=this||T$(this)}; g.C.getName=function(){return this.K.nJ}; g.C.oX=function(){return this.K.ZV()}; g.C.ZV=function(){return{}}; g.C.V3=function(){return this.K.X}; g.C.uJ=function(){var M=M9();M.K=uW(!0,this.j,M.isMobileDevice)}; g.C.kA=function(){Lve(M9(),this.j)}; g.C.yV=function(){return this.C.K}; g.C.sample=function(){}; g.C.isActive=function(){return this.K.G}; g.C.wh=function(M){var f=this.K;this.K=M.V3()>=this.X?M:this;f!==this.K?(this.G=this.K.G,T$(this)):this.G!==this.K.G&&(this.G=this.K.G,T$(this))}; g.C.Jk=function(M){if(M.Z===this.K){var f=!this.C.equals(M,this.B);this.C=M;f&&CP0(this)}}; g.C.Vr=function(){return this.B}; g.C.dispose=function(){this.P7=!0}; g.C.ek=function(){return this.P7};g.C=Dx.prototype;g.C.observe=function(){return!0}; g.C.unobserve=function(){}; g.C.jL=function(M){this.N=M}; g.C.dispose=function(){if(!this.ek()){var M=this.Z;g.qm(M.N,this);M.B&&this.Vr()&&oV9(M);this.unobserve();this.jk=!0}}; g.C.ek=function(){return this.jk}; g.C.oX=function(){return this.Z.oX()}; g.C.V3=function(){return this.Z.V3()}; g.C.cC=function(){return this.Z.cC()}; g.C.xv=function(){return this.Z.xv()}; g.C.wh=function(){}; g.C.Jk=function(){this.IX()}; g.C.Vr=function(){return this.P7};g.C=ER.prototype;g.C.V3=function(){return this.K.V3()}; g.C.cC=function(){return this.K.cC()}; g.C.xv=function(){return this.K.xv()}; g.C.create=function(M,f,A){var Q=null;this.K&&(Q=this.iP(M,f,A),Ij(this.K,Q));return Q}; g.C.je=function(){return this.Lr()}; g.C.Lr=function(){return!1}; g.C.init=function(M){return this.K.initialize()?(Ij(this.K,this),this.C=M,!0):!1}; g.C.wh=function(M){M.V3()==0&&this.C(M.cC(),this)}; g.C.Jk=function(){}; g.C.Vr=function(){return!1}; g.C.dispose=function(){this.N=!0}; g.C.ek=function(){return this.N}; g.C.oX=function(){return{}};tW.prototype.add=function(M,f,A){++this.j;M=new Vpf(M,f,A);this.K.push(new Vpf(M.Z,M.K,M.j+this.j/4096));this.Z=!0;return this};sZd.prototype.toString=function(){var M="//pagead2.googlesyndication.com//pagead/gen_204",f=pX(this.K);f.length>0&&(M+="?"+f);return M};g.y.prototype.RZ=!1;g.y.prototype.ek=function(){return this.RZ}; g.y.prototype.dispose=function(){this.RZ||(this.RZ=!0,this.u8())}; g.y.prototype[Symbol.dispose]=function(){this.dispose()}; g.y.prototype.addOnDisposeCallback=function(M,f){this.RZ?f!==void 0?M.call(f):M():(this.mw||(this.mw=[]),f&&(M=M.bind(f)),this.mw.push(M))}; g.y.prototype.u8=function(){if(this.mw)for(;this.mw.length;)this.mw.shift()()};LX.prototype.update=function(M,f,A){M&&(this.K+=f,this.Z+=f,this.C+=f,this.j=Math.max(this.j,this.C));if(A===void 0?!M:A)this.C=0};var iQ9=[1,.75,.5,.3,0];oj.prototype.update=function(M,f,A,Q,N,Y){Y=Y===void 0?!0:Y;f=N?Math.min(M,f):f;for(N=0;N0&&f>=I;I=!(M>0&&M>=I)||A;this.K[N].update(Y&&D,Q,!Y||I)}};Hw.prototype.update=function(M,f,A,Q){this.W=this.W!=-1?Math.min(this.W,f.q3):f.q3;this.KJ=Math.max(this.KJ,f.q3);this.jk=this.jk!=-1?Math.min(this.jk,f.l5):f.l5;this.z0=Math.max(this.z0,f.l5);this.b8.update(f.l5,A.l5,f.K,M,Q);this.fJ+=M;f.q3===0&&(this.nJ+=M);this.Z.update(f.q3,A.q3,f.K,M,Q);A=Q||A.MI!=f.MI?A.isVisible()&&f.isVisible():A.isVisible();f=!f.isVisible()||f.K;this.YO.update(A,M,f)}; Hw.prototype.L6=function(){return this.YO.j>=this.l8};if(fX&&fX.URL){var avK=fX.URL,qBB;if(qBB=!!avK){var HmW;a:{if(avK){var mmw=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Tl=mmw.exec(decodeURIComponent(avK));if(Tl){HmW=Tl[1]&&Tl[1].length>1?Tl[1].substring(1):"true";break a}}catch(M){}}HmW=""}qBB=HmW.length>0}Si.j6=!qBB};var sRw=new cC(0,0,0,0);var jZt=new cC(0,0,0,0);g.U(Bw,g.y);g.C=Bw.prototype; g.C.u8=function(){if(this.CS.K){if(this.t6.lH){var M=this.CS.K;typeof M.removeEventListener==="function"&&M.removeEventListener("mouseover",this.t6.lH,Vw());this.t6.lH=null}this.t6.hJ&&(M=this.CS.K,typeof M.removeEventListener==="function"&&M.removeEventListener("mouseout",this.t6.hJ,Vw()),this.t6.hJ=null)}this.Ug&&this.Ug.dispose();this.vu&&this.vu.dispose();delete this.Pl;delete this.Oi;delete this.aT;delete this.CS.Zw;delete this.CS.K;delete this.t6;delete this.Ug;delete this.vu;delete this.jc; g.y.prototype.u8.call(this)}; g.C.Nt=function(){return this.vu?this.vu.K:this.position}; g.C.ZO=function(M){TM().ZO(M)}; g.C.Vr=function(){return!1}; g.C.I4=function(){return new Hw}; g.C.q4=function(){return this.Pl}; g.C.j_=function(M){return dXe(this,M,1E4)}; g.C.Nu=function(M,f,A,Q,N,Y,I){this.aX||(this.jz&&(M=this.Az(M,A,N,I),Q=Q&&this.P2.q3>=(this.MI()?.3:.5),this.X_(Y,M,Q),this.iX=f,M.q3>0&&-1===this.AD&&(this.AD=f),this.mu==-1&&this.L6()&&(this.mu=f),this.q0==-2&&(this.q0=cw(this.Nt())?M.q3:-1),this.P2=M),this.Oi(this))}; g.C.X_=function(M,f,A){this.q4().update(M,f,this.P2,A)}; g.C.Iy=function(){return new d7}; g.C.Az=function(M,f,A,Q){A=this.Iy();A.K=f;f=GD().Z;f=qQ(fX)===0?-1:f.isVisible()?0:1;A.Z=f;A.q3=this.Ts(M);A.MI=this.MI();A.l5=Q;return A}; g.C.Ts=function(M){return this.opacity===0&&SE(this.jc,"opac")===1?0:M}; g.C.MI=function(){return!1}; g.C.A9=function(){return this.N6||this.R$}; g.C.pT=function(){aK()}; g.C.qr=function(){aK()}; g.C.Ft=function(){return 0}; g.C.L6=function(){return this.Pl.L6()}; g.C.oU=function(){var M=this.jz;M=(this.hasCompleted||this.ek())&&!M;var f=TM().Z!==2||this.vZN;return this.aX||f&&M?2:this.L6()?4:3}; g.C.lV=function(){return 0};g.xT.prototype.next=function(){return g.Da}; g.Da={done:!0,value:void 0};g.xT.prototype.uL=function(){return this};g.U(X_6,d7);var EV=K1N([void 0,1,2,3,4,8,16]),tP=K1N([void 0,4,8,16]),cBm={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:z$("p0",tP),p1:z$("p1",tP),p2:z$("p2",tP),p3:z$("p3",tP),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:u8("mtos1",[0,2,4],!1,tP),mtos2:u8("mtos2",[0,2,4],!1,tP),mtos3:u8("mtos3",[0,2,4],!1,tP),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:z$("a0",tP),a1:z$("a1",tP),a2:z$("a2",tP),a3:z$("a3",tP),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:z$("c0",tP),c1:z$("c1",tP),c2:z$("c2",tP),c3:z$("c3",tP),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:z$("qmtos",EV),qnc:z$("qnc",EV),qmv:z$("qmv",EV),qnv:z$("qnv",EV), 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:z$("ss0",tP),ss1:z$("ss1",tP),ss2:z$("ss2",tP),ss3:z$("ss3",tP),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"},RcB=Object.assign({},cBm,{avid:S7("audio"),avas:"avas",vs:"vs"}),ge0={atos:"atos",avt:u8("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(M,f){return function(A){return A[M]===void 0&&f!==void 0?f:A[M]}}("ss",0), t:"t"};$T.prototype.getValue=function(){return this.Z}; $T.prototype.update=function(M,f){M>=32||(this.K&1<=.5;wr(f.volume)&&(this.C=this.C!=-1?Math.min(this.C,f.volume):f.volume,this.G=Math.max(this.G,f.volume));Y&&(this.P7+=M,this.B+=N?M:0);this.K.update(f.q3,A.q3,f.K,M,Q,N);this.j.update(!0,M);this.N.update(N,M);this.Er.update(A.fullscreen,M);this.xO.update(N&&!Y,M);M=Math.floor(f.mediaTime/1E3);this.g_.update(M,f.isVisible());this.w_.update(M,f.q3>=1);this.Ji.update(M, rv(f))}};A6t.prototype.Z=function(M){this.j||(this.K(M)?(M=hX0(this.B,this.C,M),this.N|=M,M=M==0):M=!1,this.j=M)};g.U(dv,A6t);dv.prototype.K=function(){return!0}; dv.prototype.G=function(){return!1}; dv.prototype.getId=function(){var M=this,f=l6(MW,function(A){return A==M.C}); return qW[f].toString()}; dv.prototype.toString=function(){var M="";this.G()&&(M+="c");this.j&&(M+="s");this.N>0&&(M+=":"+this.N);return this.getId()+M};g.U(ey,dv);ey.prototype.Z=function(M,f){f=f===void 0?null:f;f!=null&&this.W.push(f);dv.prototype.Z.call(this,M)};g.U(b8,Qh0);b8.prototype.Z=function(){return null}; b8.prototype.j=function(){return[]};g.U(Ww,Dx);g.C=Ww.prototype;g.C.gJ=function(){if(this.element){var M=this.element,f=this.Z.K.j;try{try{var A=vYt(M.getBoundingClientRect())}catch(t){A=new cC(0,0,0,0)}var Q=A.right-A.left,N=A.bottom-A.top,Y=DMD(M,f),I=Y.x,D=Y.y;var E=new cC(Math.round(D),Math.round(I+Q),Math.round(D+N),Math.round(I))}catch(t){E=sRw.clone()}this.j=E;this.K=UXX(this,this.j)}}; g.C.TM=function(){this.G=this.Z.C.K}; g.C.gP=function(M){var f=SE(this.jc,"od")==1;return nVD(M,this.G,this.element,f)}; g.C.hf=function(){this.timestamp=aK()}; g.C.IX=function(){this.hf();this.gJ();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var M=this.element;var f=new g.za(M.videoWidth,M.videoHeight);M=this.K;var A=RK(M),Q=M.getHeight(),N=f.width;f=f.height;N<=0||f<=0||A<=0||Q<=0||(N/=f,f=A/Q,M=M.clone(),N>f?(A/=N,Q=(Q-A)/2,Q>0&&(Q=M.top+Q,M.top=Math.round(Q),M.bottom=Math.round(Q+A))):(Q*=N,A=Math.round((A-Q)/2),A>0&&(A=M.left+A,M.left=Math.round(A),M.right=Math.round(A+Q))));this.K=M}this.TM(); M=this.K;A=this.G;M=M.left<=A.right&&A.left<=M.right&&M.top<=A.bottom&&A.top<=M.bottom?new cC(Math.max(M.top,A.top),Math.min(M.right,A.right),Math.min(M.bottom,A.bottom),Math.max(M.left,A.left)):new cC(0,0,0,0);A=M.top>=M.bottom||M.left>=M.right?new cC(0,0,0,0):M;M=this.Z.C;f=N=Q=0;if((this.K.bottom-this.K.top)*(this.K.right-this.K.left)>0)if(this.gP(A))A=new cC(0,0,0,0);else{Q=M9().C;f=new cC(0,Q.height,Q.width,0);var Y;Q=Rj(A,(Y=this.N)!=null?Y:this.K);N=Rj(A,M9().K);f=Rj(A,f)}Y=A.top>=A.bottom|| A.left>=A.right?new cC(0,0,0,0):BC(A,-this.K.left,-this.K.top);AW()||(N=Q=0);this.B=new xA(M,this.element,this.K,Y,Q,N,this.timestamp,f)}; g.C.getName=function(){return this.Z.getName()};var B7C=new cC(0,0,0,0);g.U(OR,Ww);g.C=OR.prototype;g.C.observe=function(){this.C();return!0}; g.C.Jk=function(){Ww.prototype.IX.call(this)}; g.C.hf=function(){}; g.C.gJ=function(){}; g.C.IX=function(){this.C();Ww.prototype.IX.call(this)}; g.C.wh=function(M){M=M.isActive();M!==this.X&&(M?this.C():(M9().K=new cC(0,0,0,0),this.K=new cC(0,0,0,0),this.G=new cC(0,0,0,0),this.timestamp=-1));this.X=M};var vG={},hQd=(vG.firstquartile=0,vG.midpoint=1,vG.thirdquartile=2,vG.complete=3,vG);g.U(JW,Bw);g.C=JW.prototype;g.C.Vr=function(){return!0}; g.C.xN=function(){return this.Vm==2}; g.C.j_=function(M){return dXe(this,M,Math.max(1E4,this.j/3))}; g.C.Nu=function(M,f,A,Q,N,Y,I){var D=this,E=this.W(this)||{};g.Y1(E,N);this.j=E.duration||this.j;this.B=E.isVpaid||this.B;this.nJ=E.isYouTube||this.nJ;GD();this.b8=!1;N=Yp0(this,f);Ng0(this)===1&&(Y=N);Bw.prototype.Nu.call(this,M,f,A,Q,E,Y,I);this.Du&&this.Du.j&&g.F0(this.G,function(t){t.Z(D)})}; g.C.X_=function(M,f,A){Bw.prototype.X_.call(this,M,f,A);wv(this).update(M,f,this.P2,A);this.l8=rv(this.P2)&&rv(f);this.z0==-1&&this.w_&&(this.z0=this.q4().j.K);this.lM.j=0;M=this.L6();f.isVisible()&&jy(this.lM,"vs");M&&jy(this.lM,"vw");wr(f.volume)&&jy(this.lM,"am");rv(f)?jy(this.lM,"a"):jy(this.lM,"mut");this.DN&&jy(this.lM,"f");f.Z!=-1&&(jy(this.lM,"bm"),f.Z==1&&(jy(this.lM,"b"),rv(f)&&jy(this.lM,"umutb")));rv(f)&&f.isVisible()&&jy(this.lM,"avs");this.l8&&M&&jy(this.lM,"avw");f.q3>0&&jy(this.lM, "pv");l8(this,this.q4().j.K,!0)&&jy(this.lM,"gdr");aj(this.q4().Z,1)>=2E3&&jy(this.lM,"pmx");this.b8&&jy(this.lM,"tvoff")}; g.C.I4=function(){return new Fv}; g.C.q4=function(){return this.Pl}; g.C.Iy=function(){return new X_6}; g.C.Az=function(M,f,A,Q){M=Bw.prototype.Az.call(this,M,f,A,Q===void 0?-1:Q);M.fullscreen=this.DN;M.paused=this.xN();M.volume=A.volume;wr(M.volume)||(this.Qw++,f=this.P2,wr(f.volume)&&(M.volume=f.volume));A=A.currentTime;M.mediaTime=A!==void 0&&A>=0?A:-1;return M}; g.C.Ts=function(M){return M9(),this.DN?1:Bw.prototype.Ts.call(this,M)}; g.C.Ft=function(){return 1}; g.C.getDuration=function(){return this.j}; g.C.oU=function(){return this.aX?2:Tgb(this)?5:this.L6()?4:3}; g.C.lV=function(){return this.xO?this.q4().N.j>=2E3?4:3:2}; g.C.jL=function(M){this.vu&&this.vu.jL(M)};var im7=g.EB();shX.prototype.reset=function(){this.K=[];this.Z=[]}; var YQ=Jo(shX);g.U(EY,ER);g.C=EY.prototype;g.C.getName=function(){return(this.Z?this.Z:this.K).getName()}; g.C.oX=function(){return(this.Z?this.Z:this.K).oX()}; g.C.V3=function(){return(this.Z?this.Z:this.K).V3()}; g.C.init=function(M){var f=!1;(0,g.F0)(this.j,function(A){A.initialize()&&(f=!0)}); f&&(this.C=M,Ij(this.K,this));return f}; g.C.dispose=function(){(0,g.F0)(this.j,function(M){M.dispose()}); ER.prototype.dispose.call(this)}; g.C.je=function(){return lW(this.j,function(M){return M.lO()})}; g.C.Lr=function(){return lW(this.j,function(M){return M.lO()})}; g.C.iP=function(M,f,A){return new Ww(M,this.K,f,A)}; g.C.Jk=function(M){this.Z=M.Z};var uhT={threshold:[0,.3,.5,.75,1]};g.U(tp,Ww);g.C=tp.prototype;g.C.observe=function(){var M=this;this.KJ||(this.KJ=aK());if(wPU(298,function(){return zQ6(M)}))return!0; this.Z.sJ("msf");return!1}; g.C.unobserve=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.X?(this.X.unobserve(this.element),this.X=null):this.W&&(this.W.disconnect(),this.W=null)}catch(M){}}; g.C.IX=function(){var M=vg(this);M.length>0&&pS(this,M);Ww.prototype.IX.call(this)}; g.C.gJ=function(){}; g.C.gP=function(){return!1}; g.C.TM=function(){}; g.C.oX=function(){var M={};return Object.assign(this.Z.oX(),(M.niot_obs=this.KJ,M.niot_cbk=this.Er,M))}; g.C.getName=function(){return"nio"};g.U(hp,ER);hp.prototype.getName=function(){return"nio"}; hp.prototype.Lr=function(){return!M9().Z&&this.K.K.j.IntersectionObserver!=null}; hp.prototype.iP=function(M,f,A){return new tp(M,this.K,f,A)};g.U(SQ,N9);SQ.prototype.yV=function(){return M9().K}; SQ.prototype.lO=function(){var M=n39();this.X!==M&&(this.K!=this&&M>this.K.X&&(this.K=this,T$(this)),this.X=M);return M==2};LS.prototype.sample=function(){UY(this,IS(),!1)}; LS.prototype.C=function(){var M=AW(),f=aK();M?(HC||(mR=f,g.F0(YQ.K,function(A){var Q=A.q4();Q.ox=yx(Q,f,A.Vm!=1)})),HC=!0):(this.W=dUD(this,f),HC=!1,Spt=f,g.F0(YQ.K,function(A){A.jz&&(A.q4().X=f)})); UY(this,IS(),!M)}; var oS=Jo(LS);var but=null,dE="",yZ=!1;var OuD=WF6().w6,aS=WF6().Y9;var KFD={GQ0:"visible",Zi8:"audible",DD7:"time",xD7:"timetype"},GwN={visible:function(M){return/^(100|[0-9]{1,2})$/.test(M)}, audible:function(M){return M=="0"||M=="1"}, timetype:function(M){return M=="mtos"||M=="tos"}, time:function(M){return/^(100|[0-9]{1,2})%$/.test(M)||/^([0-9])+ms$/.test(M)}}; J6D.prototype.setTime=function(M,f,A){f=="ms"?(this.j=M,this.C=-1):(this.j=-1,this.C=M);this.N=A===void 0?"tos":A;return this};g.U(sY,dv);sY.prototype.getId=function(){return this.W}; sY.prototype.G=function(){return!0}; sY.prototype.K=function(M){var f=M.q4(),A=M.getDuration();return lW(this.X,function(Q){if(Q.K!=void 0)var N=lnb(Q,f);else b:{switch(Q.N){case "mtos":N=Q.Z?f.N.j:f.j.K;break b;case "tos":N=Q.Z?f.N.K:f.j.K;break b}N=0}N==0?Q=!1:(Q=Q.j!=-1?Q.j:A!==void 0&&A>0?Q.C*A:-1,Q=Q!=-1&&N>=Q);return Q})};g.U(cg,w_e);cg.prototype.K=function(M){var f=new GWz;f.K=nX(M,cBm);f.Z=nX(M,ge0);return f};g.U(RS,dv);RS.prototype.K=function(M){return Tgb(M)};g.U(gE,Qh0);g.U(Bg,dv);Bg.prototype.K=function(M){return M.q4().L6()};g.U(iZ,ey);iZ.prototype.K=function(M){var f=g.V9(this.W,SE(TM().jc,"ovms"));return!M.aX&&(M.Vm!=0||f)};g.U(xQ,gE);xQ.prototype.Z=function(){return new iZ(this.K)}; xQ.prototype.j=function(){return[new Bg("viewable_impression",this.K),new RS(this.K)]};g.U(Zk,OR);Zk.prototype.C=function(){var M=g.wD("ima.admob.getViewability"),f=SE(this.jc,"queryid");typeof M==="function"&&f&&M(f)}; Zk.prototype.getName=function(){return"gsv"};g.U(rE,ER);rE.prototype.getName=function(){return"gsv"}; rE.prototype.Lr=function(){var M=M9();TM();return M.Z&&!1}; rE.prototype.iP=function(M,f,A){return new Zk(this.K,f,A)};g.U(uZ,OR);uZ.prototype.C=function(){var M=this,f=g.wD("ima.bridge.getNativeViewability"),A=SE(this.jc,"queryid");typeof f==="function"&&A&&f(A,function(Q){g.MV(Q)&&M.W++;var N=Q.opt_nativeViewVisibleBounds||{},Y=Q.opt_nativeViewHidden;M.K=pEf(Q.opt_nativeViewBounds||{});var I=M.Z.C;I.K=Y?B7C.clone():pEf(N);M.timestamp=Q.opt_nativeTime||-1;M9().K=I.K;Q=Q.opt_nativeVolume;Q!==void 0&&(I.volume=Q)})}; uZ.prototype.getName=function(){return"nis"};g.U(zH,ER);zH.prototype.getName=function(){return"nis"}; zH.prototype.Lr=function(){var M=M9();TM();return M.Z&&!1}; zH.prototype.iP=function(M,f,A){return new uZ(this.K,f,A)};g.U(Pg,N9);g.C=Pg.prototype;g.C.lO=function(){return this.Z.Em!=null}; g.C.ZV=function(){var M={};this.g_&&(M.mraid=this.g_);this.jk&&(M.mlc=1);M.mtop=this.Z.Iyr;this.W&&(M.mse=this.W);this.fJ&&(M.msc=1);M.mcp=this.Z.compatibility;return M}; g.C.M8=function(M){var f=g.jN.apply(1,arguments);try{return this.Z.Em[M].apply(this.Z.Em,f)}catch(A){VV(538,A,.01,function(Q){Q.method=M})}}; g.C.initialize=function(){var M=this;if(this.isInitialized)return!this.xv();this.isInitialized=!0;if(this.Z.compatibility===2)return this.W="ng",this.sJ("w"),!1;if(this.Z.compatibility===1)return this.W="mm",this.sJ("w"),!1;M9().X=!0;this.j.document.readyState&&this.j.document.readyState=="complete"?QKd(this):sR(this.j,"load",function(){GD().setTimeout(Uc(292,function(){return QKd(M)}),100)},292); return!0}; g.C.uJ=function(){var M=M9(),f=DT9(this,"getMaxSize");M.K=new cC(0,f.width,f.height,0)}; g.C.kA=function(){M9().C=DT9(this,"getScreenSize")}; g.C.dispose=function(){YcU(this);N9.prototype.dispose.call(this)};var PjN=new function(M,f){this.key=M;this.defaultValue=f===void 0?!1:f;this.valueType="boolean"}("45378663");g.C=jQ.prototype;g.C.g3=function(M){i8(M,!1);BgD(M)}; g.C.pG=function(){}; g.C.Yw=function(M,f,A,Q){var N=this;M=new JW(ho,M,A?f:-1,7,this.s_(),this.Pw());M.HU=Q;F6T(M.jc);h2(M.jc,"queryid",M.HU);M.ZO("");kWU(M,function(){return N.WR.apply(N,g.c(g.jN.apply(0,arguments)))},function(){return N.QP.apply(N,g.c(g.jN.apply(0,arguments)))}); (Q=Jo(TH).K)&&yT9(M,Q);this.j&&(M.jL(this.j),this.j=null);M.CS.Zw&&Jo(jhe);return M}; g.C.wh=function(M){switch(M.V3()){case 0:if(M=Jo(TH).K)M=M.K,g.qm(M.N,this),M.B&&this.Vr()&&oV9(M);FJ();break;case 2:CS()}}; g.C.Jk=function(){}; g.C.Vr=function(){return!1}; g.C.QP=function(M,f){M.aX=!0;switch(M.Ft()){case 1:Scb(M,f);break;case 2:this.pz(M)}}; g.C.HZ=function(M){var f=M.W(M);f&&(f=f.volume,M.xO=wr(f)&&f>0);tOX(M,0);return fS(M,"start",AW())}; g.C.Bi=function(M,f,A){UY(oS,[M],!AW());return this.DE(M,f,A)}; g.C.DE=function(M,f,A){return fS(M,A,AW())}; g.C.I$=function(M){return Wg(M,"firstquartile",1)}; g.C.kK=function(M){M.w_=!0;return Wg(M,"midpoint",2)}; g.C.CY=function(M){return Wg(M,"thirdquartile",3)}; g.C.EF=function(M){var f=Wg(M,"complete",4);KX(M);return f}; g.C.KY=function(M){M.Vm=3;return fS(M,"error",AW())}; g.C.P0=function(M,f,A){f=AW();if(M.xN()&&!f){var Q=M.q4(),N=aK();Q.X=N}UY(oS,[M],!f);M.xN()&&(M.Vm=1);return fS(M,A,f)}; g.C.iq=function(M,f){f=this.Bi(M,f||{},"skip");KX(M);return f}; g.C.uq=function(M,f){i8(M,!0);return this.Bi(M,f||{},"fullscreen")}; g.C.Z8=function(M,f){i8(M,!1);return this.Bi(M,f||{},"exitfullscreen")}; g.C.bB=function(M,f,A){f=M.q4();var Q=aK();f.ox=yx(f,Q,M.Vm!=1);UY(oS,[M],!AW());M.Vm==1&&(M.Vm=2);return fS(M,A,AW())}; g.C.jI=function(M){UY(oS,[M],!AW());return M.Z()}; g.C.w1=function(M){UY(oS,[M],!AW());this.Kc(M);KX(M);return M.Z()}; g.C.WR=function(){}; g.C.pz=function(){}; g.C.Kc=function(){}; g.C.iJ=function(){}; g.C.Q0=function(){}; g.C.Pw=function(){this.K||(this.K=this.Q0());return this.K==null?new b8:new xQ(this.K)}; g.C.s_=function(){return new cg};g.U(GH,dv);GH.prototype.K=function(M){return M.lV()==4};g.U(wE,ey);wE.prototype.K=function(M){M=M.lV();return M==3||M==4};g.U(lZ,gE);lZ.prototype.Z=function(){return new wE(this.K)}; lZ.prototype.j=function(){return[new GH(this.K)]};g.U(M2,w_e);M2.prototype.K=function(M){M&&(M.e===28&&(M=Object.assign({},M,{avas:3})),M.vs===4||M.vs===5)&&(M=Object.assign({},M,{vs:3}));var f=new GWz;f.K=nX(M,RcB);f.Z=nX(M,ge0);return f};UT0.prototype.Z=function(){return g.wD(this.K)};g.U(f2,jQ);g.C=f2.prototype;g.C.pG=function(M,f){var A=this,Q=Jo(TH);if(Dk(Q))switch(Q.K.getName()){case "nis":var N=HYd(this,M,f);break;case "gsv":N=qcN(this,M,f);break;case "exc":N=mTf(this,M)}N||(f.opt_overlayAdElement?N=void 0:f.opt_adElement&&(N=oAb(this,M,f.opt_adElement,f.opt_osdId)));N&&N.Ft()==1&&(N.W==g.L$&&(N.W=function(Y){return A.iJ(Y)}),apd(this,N,f)); return N}; g.C.iJ=function(M){M.Z=0;M.P7=0;if(M.C=="h"||M.C=="n"){TM();M.Ji&&(TM(),bZ(this)!="h"&&bZ(this));var f=g.wD("ima.common.getVideoMetadata");if(typeof f==="function")try{var A=f(M.HU)}catch(N){M.Z|=4}else M.Z|=2}else if(M.C=="b")if(f=g.wD("ytads.bulleit.getVideoMetadata"),typeof f==="function")try{A=f(M.HU)}catch(N){M.Z|=4}else M.Z|=2;else if(M.C=="ml")if(f=g.wD("ima.common.getVideoMetadata"),typeof f==="function")try{A=f(M.HU)}catch(N){M.Z|=4}else M.Z|=2;else M.Z|=1;M.Z||(A===void 0?M.Z|=8:A===null? M.Z|=16:g.MV(A)?M.Z|=32:A.errorCode!=null&&(M.P7=A.errorCode,M.Z|=64));A==null&&(A={});f=A;M.X=0;for(var Q in Vwc)f[Q]==null&&(M.X|=Vwc[Q]);CWb(f,"currentTime");CWb(f,"duration");wr(A.volume)&&wr()&&(A.volume*=NaN);return A}; g.C.Q0=function(){TM();bZ(this)!="h"&&bZ(this);var M=sKb(this);return M!=null?new UT0(M):null}; g.C.pz=function(M){!M.K&&M.aX&&kQ(this,M,"overlay_unmeasurable_impression")&&(M.K=!0)}; g.C.Kc=function(M){M.Tu&&(M.L6()?kQ(this,M,"overlay_viewable_end_of_session_impression"):kQ(this,M,"overlay_unviewable_impression"),M.Tu=!1)}; g.C.WR=function(){}; g.C.Yw=function(M,f,A,Q){if(nat()){var N=SE(TM().jc,"mm"),Y={};(N=(Y[Dp.o0]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",Y[Dp.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",Y)[N])&&BrT(this,N);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&VV(1044,Error())}M=jQ.prototype.Yw.call(this,M,f,A,Q);this.N&&(f=this.G,M.N==null&&(M.N=new W1b),f.K[M.HU]=M.N,M.N.N=im7);return M}; g.C.g3=function(M){M&&M.Ft()==1&&this.N&&delete this.G.K[M.HU];return jQ.prototype.g3.call(this,M)}; g.C.Pw=function(){this.K||(this.K=this.Q0());return this.K==null?new b8:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new lZ(this.K):new xQ(this.K)}; g.C.s_=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new M2:new cg}; g.C.jL=function(M,f,A,Q,N){f=new cC(A,f+Q,A+N,f);(M=NW(YQ,M))?M.jL(f):this.j=f}; var xme=CY(193,xTD,void 0,LR9);g.Gz("Goog_AdSense_Lidar_sendVastEvent",xme);var Zm0=Uc(194,function(M,f){f=f===void 0?{}:f;M=gAc(Jo(f2),M,f);return iYX(M)}); g.Gz("Goog_AdSense_Lidar_getViewability",Zm0);var rB7=CY(195,function(){return sX0()}); g.Gz("Goog_AdSense_Lidar_getUrlSignalsArray",rB7);var u0m=Uc(196,function(){return JSON.stringify(sX0())}); g.Gz("Goog_AdSense_Lidar_getUrlSignalsList",u0m);var uoX=SN(["//ep2.adtrafficquality.google/sodar/",""]),zXT=SN(["//tpc.googlesyndication.com/sodar/",""]);g.U(YE,Error);g.U(DX,g.y);DX.prototype.V0=function(){return this.wpc.f()}; DX.prototype.xU=function(M){this.wpc.c(M)}; DX.prototype.jl=function(M){return this.wpc.m($Tz(M))}; DX.prototype.L5=function(M){return this.wpc.mws($Tz(M))}; g.U(I5,g.y);I5.prototype.snapshot=function(M){return this.aI.s(Object.assign({},M.gU&&{c:M.gU},M.uw&&{s:M.uw},M.H9!==void 0&&{p:M.H9}))}; I5.prototype.zm=function(M){this.aI.e(M)}; I5.prototype.zC=function(){return this.aI.l()};var kMe;g.U(tj,g.y);tj.prototype.share=function(){if(this.ek())throw Error("E:AD");this.C++;return this}; tj.prototype.dispose=function(){--this.C||g.y.prototype.dispose.call(this)}; kMe=Symbol.dispose;WRd.prototype.r5=function(M,f){this.K.r5("/client_streamz/bg/frs",M,f)}; OYt.prototype.r5=function(M,f,A,Q,N,Y){this.K.r5("/client_streamz/bg/wrl",M,f,A,Q,N,Y)}; XC6.prototype.JX=function(M,f){this.K.ZH("/client_streamz/bg/ec",M,f)}; J9z.prototype.r5=function(M,f,A){this.K.r5("/client_streamz/bg/el",M,f,A)}; KRf.prototype.JX=function(M,f){this.K.ZH("/client_streamz/bg/cec",M,f)}; GMb.prototype.JX=function(M,f){this.K.ZH("/client_streamz/bg/po/csc",M,f)}; wCb.prototype.JX=function(M,f){this.K.ZH("/client_streamz/bg/po/ctav",M,f)}; lp9.prototype.JX=function(M,f){this.K.ZH("/client_streamz/bg/po/cwsc",M,f)};g.U(Myd,VW);g.U(hj,VW);var US=[1,2,3];var zcc=[0,US,SBe,DmR,pK7];var P6W=[0,AP,[0,Mw0,QRc]];g.U(SR,VW);var C2=[1,2,3];var neW=[0,C2,YBm,ABC,Nt,P6W];g.U(L2,VW);var jRK=[0,AP,zcc,neW];var $mv=[0,[1,2,3],Nt,[0,fR,-1,vem],Nt,[0,fR,-1,Iv0,vem],Nt,[0,fR]];g.U(o5,VW);o5.prototype.GJ=function(){var M=c_(this,3,Gc,3,!0);ak(M);return M[void 0]};o5.prototype.Z=Z$b([0,fR,$mv,hcC,AP,jRK,EeB,twc]);g.U(AWT,VW);g.C=VA.prototype;g.C.isEnabled=function(){if(!g.Kb.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{JS:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.C.set=function(M,f,A){var Q=!1;if(typeof A==="object"){var N=A.RPi;Q=A.secure||!1;var Y=A.domain||void 0;var I=A.path||void 0;var D=A.JS}if(/[;=\s]/.test(M))throw Error('Invalid cookie name "'+M+'"');if(/[;\r\n]/.test(f))throw Error('Invalid cookie value "'+f+'"');D===void 0&&(D=-1);A=Y?";domain="+Y:"";I=I?";path="+I:"";Q=Q?";secure":"";D=D<0?"":D==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+D*1E3)).toUTCString();this.K.cookie=M+"="+f+A+I+D+Q+(N!=null?";samesite="+ N:"")}; g.C.get=function(M,f){for(var A=M+"=",Q=(this.K.cookie||"").split(";"),N=0,Y;N=0;f--)this.remove(M[f])}; var $y=new VA(typeof document=="undefined"?null:document);q2.prototype.compress=function(M){var f,A,Q,N;return g.n(function(Y){switch(Y.Z){case 1:return f=new CompressionStream("gzip"),A=(new Response(f.readable)).arrayBuffer(),Q=f.writable.getWriter(),g.r(Y,Q.write((new TextEncoder).encode(M)),2);case 2:return g.r(Y,Q.close(),3);case 3:return N=Uint8Array,g.r(Y,A,4);case 4:return Y.return(new N(Y.K))}})}; q2.prototype.isSupported=function(M){return M<1024?!1:typeof CompressionStream!=="undefined"};g.U(HR,VW);sS.prototype.setInterval=function(M){this.intervalMs=M;this.M3&&this.enabled?(this.stop(),this.start()):this.M3&&this.stop()}; sS.prototype.start=function(){var M=this;this.enabled=!0;this.M3||(this.M3=setTimeout(function(){M.tick()},this.intervalMs),this.Z=this.K())}; sS.prototype.stop=function(){this.enabled=!1;this.M3&&(clearTimeout(this.M3),this.M3=void 0)}; sS.prototype.tick=function(){var M=this;if(this.enabled){var f=Math.max(this.K()-this.Z,0);f0?A:void 0));A=aZ(A,4,F5(N>0?N:void 0));A=aZ(A,5,F5(Y>0?Y:void 0));N=A.E$;Y=N[La]|0;A=V7(A,Y)?A:new A.constructor(Sp(N,Y,!0));ys(I,gi,10,A)}I=this.K.clone();A=Date.now().toString();I=aZ(I,4,Od(A));M=dn(I,PR,3,M.slice());Q&&(I=new cR,Q=aZ(I,13,F5(Q)),I=new R5,Q=ys(I,cR,2,Q), I=new zU,Q=ys(I,R5,1,Q),Q=MU(Q,2,9),ys(M,zU,18,Q));f&&GW(M,14,f);return M};g.FC.prototype.Z=0;g.FC.prototype.reset=function(){this.K=this.j=this.C;this.Z=0}; g.FC.prototype.getValue=function(){return this.j};g.U(A9,VW);var FWK=NT(A9);g.U(i$6,VW);var pR;pR=new xQ0;g.U(bE,g.y);g.C=bE.prototype;g.C.u8=function(){eR(this);this.Z.stop();this.g_.stop();g.y.prototype.u8.call(this)}; g.C.dispatch=function(M){if(M instanceof PR)this.log(M);else try{var f=new PR,A=M.Ky();var Q=wn(f,8,A);this.log(Q)}catch(N){kE(this,4,1)}}; g.C.log=function(M){kE(this,2,1);if(this.fJ){M=M.clone();var f=this.YO++;M=GW(M,21,f);this.componentId&&wn(M,26,this.componentId);f=M;var A=Ug(f,1);var Q=Q===void 0?!1:Q;var N=typeof A;Q=A==null?A:N==="bigint"?String(b0(64,A)):$Y(A)?N==="string"?ea(A):Q?kY(A):WE(A):void 0;Q==null&&(Q=Date.now(),Q=Number.isFinite(Q)?Q.toString():"0",aZ(f,1,Od(Q)));Q=Ug(f,15);Q!=null&&(typeof Q==="bigint"?Dl(Q)?Q=Number(Q):(Q=b0(64,Q),Q=Dl(Q)?Number(Q):String(Q)):Q=$Y(Q)?typeof Q==="number"?WE(Q):ea(Q):void 0);Q!=null|| GW(f,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Q=this.experimentIds.clone(),ys(f,HR,16,Q));kE(this,1,1);f=this.K.length-1E3+1;f>0&&(this.K.splice(0,f),this.C+=f,kE(this,3,f));this.K.push(M);this.Kn||this.Z.enabled||this.Z.start()}}; g.C.flush=function(M,f){var A=this;if(this.K.length===0)M&&M();else if(this.z0&&this.Er)this.j.Z=3,gTf(this);else{var Q=Date.now();if(this.ox>Q&&this.P70&&(A.P7=Date.now(),A.ox=A.P7+h);h=tB(AT);var a;Sa&&h&&((a=S.E$[h])==null?void 0:a[175237375])!=null&&pa($c6,3);a:{var q=q===void 0?!1:q;if(tB(F60)&&tB(AT)&&void 0===F60){a=S.E$;h=a[AT];if(!h)break a;if(h=h.qF)try{h(a,175237375,W6m);break a}catch(m){MM(m)}}q&&(q=S.E$, (a=tB(AT))&&a in q&&(q=q[a])&&delete q[175237375])}q=pR.K?pR.Z(S,pR.K,175237375,pR.j):pR.Z(S,175237375,null,pR.j);if(q=q===null?void 0:q)q=kV(q,1,-1),q!==-1&&(A.N=new g.FC(q<1?1:q,3E5,.1),A.Z.setInterval(A.N.getValue()))}}M&&M();A.G=0},v=function(h,S){var L=FX(Y,PR,3); var a=Number(bgc(Y,14));g.yA(A.N);A.Z.setInterval(A.N.getValue());h===401&&I&&(A.nJ=I);a&&(A.C+=a);S===void 0&&(S=A.isRetryable(h));S&&(A.K=L.concat(A.K),A.Kn||A.Z.enabled||A.Z.start());kE(A,7,1);f&&f("net-send-failed",h);++A.G},p=function(){A.network&&A.network.send(E,t,v)}; D?D.then(function(h){kE(A,5,N);E.requestHeaders["Content-Encoding"]="gzip";E.requestHeaders["Content-Type"]="application/binary";E.body=h;E.S0=2;p()},function(){kE(A,6,N); p()}):p()}}}}; g.C.isRetryable=function(M){return 500<=M&&M<600||M===401||M===0};WR.prototype.send=function(M,f,A){var Q=this,N,Y,I,D,E,t,v,p,h,S;return g.n(function(L){switch(L.Z){case 1:return Y=(N=Q.XB?new AbortController:void 0)?setTimeout(function(){N.abort()},M.timeoutMillis):void 0,g.HX(L,2,3),I=Object.assign({},{method:M.requestType, headers:Object.assign({},M.requestHeaders)},M.body&&{body:M.body},M.withCredentials&&{credentials:"include"},{signal:M.timeoutMillis&&N?N.signal:null}),g.r(L,fetch(M.url,I),5);case 5:D=L.K;if(D.status!==200){(E=A)==null||E(D.status);L.CJ(3);break}if((t=f)==null){L.CJ(7);break}return g.r(L,D.text(),8);case 8:t(L.K);case 7:case 3:g.ZU(L);clearTimeout(Y);g.ud(L,0);break;case 2:v=g.id(L);switch((p=v)==null?void 0:p.name){case "AbortError":(h=A)==null||h(408);break;default:(S=A)==null||S(400)}L.CJ(3)}})}; WR.prototype.zc=function(){return 4};g.U(OS,g.y);OS.prototype.yF=function(){this.N=!0;return this}; OS.prototype.build=function(){this.network||(this.network=new WR);var M=new bE({logSource:this.logSource,At:this.At?this.At:htb,sessionIndex:this.sessionIndex,s9x:this.P8,lk:this.C,Kn:!1,yF:this.N,wl:this.wl,network:this.network});g.d(this,M);if(this.Z){var f=this.Z,A=$E(M.j);wn(A,7,f)}M.W=new q2;this.componentId&&(M.componentId=this.componentId);this.Yb&&(M.Yb=this.Yb);this.pageId&&(M.pageId=this.pageId);this.K&&((A=this.K)?(M.experimentIds||(M.experimentIds=new HR),f=M.experimentIds,A=A.Ky(),wn(f, 4,A)):M.experimentIds&&aZ(M.experimentIds,4));this.j&&(M.z0=M.Er);HX9(M.j);this.network.Zn&&this.network.Zn(this.logSource);this.network.BoJ&&this.network.BoJ(M);return M};g.U(XC,g.y);XC.prototype.flush=function(M){M=M||[];if(M.length){for(var f=new AWT,A=[],Q=0;Q-1?(f=M[I],A||(f.Ej=!1)):(f=new P80(f,this.src,Y,!!Q,N),f.Ej=A,M.push(f));return f}; g.C.remove=function(M,f,A,Q){M=M.toString();if(!(M in this.listeners))return!1;var N=this.listeners[M];f=N7(N,f,A,Q);return f>-1?(fz(N[f]),g.aR(N,f),N.length==0&&(delete this.listeners[M],this.K--),!0):!1}; g.C.removeAll=function(M){M=M&&M.toString();var f=0,A;for(A in this.listeners)if(!M||A==M){for(var Q=this.listeners[A],N=0;N-1?M[N]:null}; g.C.hasListener=function(M,f){var A=M!==void 0,Q=A?M.toString():"",N=f!==void 0;return g.WK(this.listeners,function(Y){for(var I=0;I>>0);g.pm(g.Lz,g.y);g.Lz.prototype[uve]=!0;g.C=g.Lz.prototype;g.C.addEventListener=function(M,f,A,Q){g.IQ(this,M,f,A,Q)}; g.C.removeEventListener=function(M,f,A,Q){et9(this,M,f,A,Q)}; g.C.dispatchEvent=function(M){var f=this.rK;if(f){var A=[];for(var Q=1;f;f=f.rK)A.push(f),++Q}f=this.aN;Q=M.type||M;if(typeof M==="string")M=new g.wi(M,f);else if(M instanceof g.wi)M.target=M.target||f;else{var N=M;M=new g.wi(Q,f);g.Y1(M,N)}N=!0;var Y;if(A)for(Y=A.length-1;!M.Z&&Y>=0;Y--){var I=M.currentTarget=A[Y];N=oQ(I,Q,!0,M)&&N}M.Z||(I=M.currentTarget=f,N=oQ(I,Q,!0,M)&&N,M.Z||(N=oQ(I,Q,!1,M)&&N));if(A)for(Y=0;!M.Z&&Y0){this.Z--;var M=this.K;this.K=M.next;M.next=null}else M=this.j();return M};var VX;q7.prototype.add=function(M,f){var A=JWc.get();A.set(M,f);this.Z?this.Z.next=A:this.K=A;this.Z=A}; q7.prototype.remove=function(){var M=null;this.K&&(M=this.K,this.K=this.K.next,this.K||(this.Z=null),M.next=null);return M}; var JWc=new Cz(function(){return new HW},function(M){return M.reset()}); HW.prototype.set=function(M,f){this.K=M;this.scope=f;this.next=null}; HW.prototype.reset=function(){this.next=this.scope=this.K=null};var mC,sn=!1,OX9=new q7;KXX.prototype.reset=function(){this.context=this.Z=this.j=this.K=null;this.C=!1}; var G$t=new Cz(function(){return new KXX},function(M){M.reset()}); g.g1.prototype.then=function(M,f,A){return Ik9(this,Un(typeof M==="function"?M:null),Un(typeof f==="function"?f:null),A)}; g.g1.prototype.$goog_Thenable=!0;g.C=g.g1.prototype;g.C.finally=function(M){var f=this;M=Un(M);return new Promise(function(A,Q){fk0(f,function(N){M();A(N)},function(N){M(); Q(N)})})}; g.C.BU=function(M,f){return Ik9(this,null,Un(M),f)}; g.C.catch=g.g1.prototype.BU;g.C.cancel=function(M){if(this.K==0){var f=new j_(M);g.cW(function(){Apt(this,f)},this)}}; g.C.Tfx=function(M){this.K=0;RQ(this,2,M)}; g.C.hkO=function(M){this.K=0;RQ(this,3,M)}; g.C.qJ=function(){for(var M;M=QSd(this);)NED(this,M,this.K,this.W);this.G=!1}; var tQb=MM;g.pm(j_,hB);j_.prototype.name="cancel";g.pm(g.$M,g.Lz);g.C=g.$M.prototype;g.C.enabled=!1;g.C.V7=null;g.C.setInterval=function(M){this.du=M;this.V7&&this.enabled?(this.stop(),this.start()):this.V7&&this.stop()}; g.C.Gbi=function(){if(this.enabled){var M=g.EB()-this.O9;M>0&&M0&&(this.getStatus(),this.G=setTimeout(this.kM.bind(this), this.Er)),this.getStatus(),this.B=!0,this.K.send(M),this.B=!1}catch(I){this.getStatus(),cpb(this,I)}}; g.C.kM=function(){typeof J_!="undefined"&&this.K&&(this.C="Timed out after "+this.Er+"ms, aborting",this.Z=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.C.abort=function(M){this.K&&this.j&&(this.getStatus(),this.j=!1,this.N=!0,this.K.abort(),this.N=!1,this.Z=M||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Xd(this))}; g.C.u8=function(){this.K&&(this.j&&(this.j=!1,this.N=!0,this.K.abort(),this.N=!1),Xd(this,!0));g.On.kZ.u8.call(this)}; g.C.kf=function(){this.ek()||(this.jk||this.B||this.N?R9b(this):this.N2$())}; g.C.N2$=function(){R9b(this)}; g.C.isActive=function(){return!!this.K}; g.C.isComplete=function(){return g.Kz(this)==4}; g.C.getStatus=function(){try{return g.Kz(this)>2?this.K.status:-1}catch(M){return-1}}; g.C.getResponseHeader=function(M){if(this.K&&this.isComplete())return M=this.K.getResponseHeader(M),M===null?void 0:M}; g.C.getLastError=function(){return typeof this.C==="string"?this.C:String(this.C)};fB.prototype.send=function(M,f,A){f=f===void 0?function(){}:f; A=A===void 0?function(){}:A; mWt(M.url,function(Q){Q=Q.target;Gg(Q)?f(g.w1(Q)):A(Q.getStatus())},M.requestType,M.body,M.requestHeaders,M.timeoutMillis,M.withCredentials)}; fB.prototype.zc=function(){return 1};QO.prototype.done=function(){this.logger.IC(this.event,Aw()-this.startTime)}; g.U(Nl,tj);g.U(Ic,Nl);g.C=Ic.prototype;g.C.OG=function(){}; g.C.Pq=function(){}; g.C.IC=function(){}; g.C.qm=function(){}; g.C.zF=function(){}; g.C.vk=function(M,f,A,Q){return Q}; g.C.ZC=function(){}; g.C.Qj=function(){}; g.C.K7=function(){}; g.C.lQ=function(){}; g.U(TY,Nl);g.C=TY.prototype;g.C.update=function(M){this.logger.dispose();this.logger=M}; g.C.Pq=function(M){this.logger.Pq(M)}; g.C.IC=function(M,f){this.logger.IC(M,f)}; g.C.qm=function(M){this.logger.qm(M)}; g.C.zF=function(){this.logger.zF()}; g.C.vk=function(M,f,A,Q){return this.logger.vk(M,f,A,Q)}; g.C.ZC=function(M){this.logger.ZC(M)}; g.C.Qj=function(M){this.logger.Qj(M)}; g.C.K7=function(M){this.logger.K7(M)}; g.C.lQ=function(M){this.logger.lQ(M)}; g.C.OG=function(M){this.logger.OG(M)}; g.U(DR,g.y);g.U(EJ,Nl);g.C=EJ.prototype;g.C.OG=function(M){this.metrics.uW_.r5(M,this.KK)}; g.C.Pq=function(M){this.metrics.eventCount.JX(M,this.KK)}; g.C.IC=function(M,f){this.metrics.NJ.r5(f,M,this.KK)}; g.C.qm=function(M){this.metrics.errorCount.JX(M,this.KK)}; g.C.vk=function(M,f,A,Q){function N(D){if(!Y.ek()){var E=Aw()-I;Y.metrics.uHN.r5(E,M,A,D,f,Y.KK)}} var Y=this,I=Aw();Q.then(function(){return void N(0)},function(D){return void N(D instanceof e_?D.code:-1)}); return Q}; g.C.ZC=function(M){this.metrics.jn_.JX(M,this.KK)}; g.C.Qj=function(M){this.metrics.gQ.JX(M,this.KK)}; g.C.K7=function(M){this.metrics.kP_.JX(M,this.KK)}; g.U(tw,EJ);tw.prototype.lQ=function(M){var f=this;this.K.dispose();this.Z&&this.service.dispose();this.service=this.options.rW("49",this.options.Sz.concat(M));this.K=new DR(function(){return void f.service.Aw()},this.options.d4); this.metrics=iSb(this.service);this.j=M}; tw.prototype.zF=function(){ZSz(this.K)};g.U(vi,VW);g.U(pB,VW);g.U(hw,VW);var e9b=NT(hw),uJD=function(M){return HP(function(f){return f instanceof M&&!V7(f)})}(hw); hw.messageId="bfkj";g.U(ES,VW);g.U(SM,VW);var z9T=NT(SM);g.U(oc,g.y);oc.prototype.snapshot=function(M){if(this.ek())throw Error("Already disposed");this.logger.Pq("n");var f=this.logger.share();return this.j.then(function(A){var Q=A.kY;return new Promise(function(N){var Y=new QO(f,"n");Q(function(I){Y.done();f.OG(I.length);f.zF();f.dispose();N(I)},[M.gU, M.uw,M.Cv,M.H9])})})}; oc.prototype.P9=function(M){var f=this;if(this.ek())throw Error("Already disposed");this.logger.Pq("n");var A=YW(this.logger,function(){return f.C([M.gU,M.uw,M.Cv,M.H9])},"n"); this.logger.OG(A.length);this.logger.zF();return A}; oc.prototype.zm=function(M){this.j.then(function(f){var A;(A=f.O3N)==null||A(M)})}; oc.prototype.zC=function(){return this.logger.share()};g.U(VO,VW);g.U(ac,VW);ql.prototype.NK=function(M){return OS0(this,M,new Ic,0)};g.U(Hi,g.y);Hi.prototype.snapshot=function(M){var f=this;return g.n(function(A){switch(A.Z){case 1:if(f.ek())throw Error("Already disposed");if(f.Z||f.W){A.CJ(2);break}return g.r(A,f.N.promise,2);case 2:if(!f.Z){A.CJ(4);break}return g.r(A,f.Z.snapshot(M),5);case 5:return A.return(A.K);case 4:throw f.W;}})}; Hi.prototype.zm=function(M){var f,A;(f=this.Z)==null||(A=f.zm)==null||A.call(f,M)}; Hi.prototype.handleError=function(M){if(!this.ek()){this.W=M;this.N.resolve();var f,A;(A=(f=this.options).Hkx)==null||A.call(f,M)}}; Hi.prototype.zC=function(){return this.logger.share()}; var Kut={j5u:432E5,Sg:3E5,yq:10,Jm:1E4,wH:3E4,LY:3E4,d$$:6E4,mN:1E3,cW:6E4,oi:6E5,Gi:.25,nP:2,maxAttempts:10};var ec9,YSz=(ec9=Math.imul)!=null?ec9:function(M,f){return M*f|0},Rc=[196, 200,224,18];Bi.prototype.Ky=function(){return String(this.K)+","+this.Z.join()}; Bi.prototype.XH=function(M,f){var A=void 0;if(this.Z[this.K]!==M){var Q=this.Z.indexOf(M);Q!==-1?(this.Z.splice(Q,1),Q0;)f[A++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(M%62),M=Math.floor(M/62);return f.join("")}};var U2c;g.U(xW,g.y);xW.prototype.L5=function(M,f){var A=this.jl(M);f==null||f(A);return YW(this.logger,function(){return g.An(A,2)},this.Z)}; U2c=Symbol.dispose;g.U(uR,xW);uR.prototype.jl=function(M,f){var A=this;this.logger.Pq(this.K);++this.N>=this.G&&this.j.resolve();var Q=M();M=YW(this.logger,function(){return A.C(Q)},"C"); if(M===void 0)throw new YE(17,"YNJ:Undefined");if(!(M instanceof Uint8Array))throw new YE(18,"ODM:Invalid");f==null||f(M);return M}; g.U(zY,xW);zY.prototype.jl=function(){return this.C}; g.U(Pi,xW);Pi.prototype.jl=function(){var M=this;return YW(this.logger,function(){return NM(M.C)},"d")}; Pi.prototype.L5=function(){return this.C}; g.U(nB,xW);nB.prototype.jl=function(){if(this.C)return this.C;this.C=VRt(this,function(M){return"_"+CEe(M)}); return VRt(this,function(M){return M})}; g.U($W,xW);$W.prototype.jl=function(){var M=Math.floor(Date.now()/1E3),f=[Math.random()*255,Math.random()*255],A=f.concat([this.C&255,this.clientState],[M>>24&255,M>>16&255,M>>8&255,M&255]);M=new Uint8Array(2+A.length);M[0]=34;M[1]=A.length;M.set(A,2);A=M.subarray(2);for(var Q=f=f.length;Q150))try{this.cache=new pRb(M,this.logger)}catch(f){this.reportError(new YE(22,"GBJ:init",f))}}; g.C.reportError=function(M){this.logger.qm(M.code);this.onError(M);return M}; var H2D=function(M){return HP(function(f){if(!n9B(f))return!1;for(var A=g.V(Object.entries(M)),Q=A.next();!Q.done;Q=A.next()){var N=g.V(Q.value);Q=N.next().value;N=N.next().value;if(!(Q in f)){if(N.vVO===!0)continue;return!1}if(!N(f[Q]))return!1}return!0})}({aI:function(M){return HP(function(f){return f instanceof M})}(Hi)},"");var ACN=(new Date).getTime();g.U(bR,VW);var bm0=NT(bR);Z20.prototype.getMetadata=function(){return this.metadata};kW.prototype.getMetadata=function(){return this.metadata}; kW.prototype.getStatus=function(){return this.status};Wi.prototype.W=function(M,f){f=f===void 0?{}:f;return new Z20(M,this,f)}; Wi.prototype.getName=function(){return this.name};var kC6=new Wi("/google.internal.waa.v1.Waa/Create",VO,bR,function(M){return M.Ky()},bm0);g.U(OJ,VW);var WuX=new Wi("/google.internal.waa.v1.Waa/GenerateIT",ac,OJ,function(M){return M.Ky()},NT(OJ));var T1X=new Set(["SAPISIDHASH","APISIDHASH"]);g.U(Xj,VW);Xj.prototype.getValue=function(){var M=Ug(this,2);if(Array.isArray(M)||M instanceof VW)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return gn(this,2)};g.U(Jw,VW);Jw.prototype.getMessage=function(){return Og(this,2)}; var j5c=NT(Jw);KB.prototype.dM=function(M,f){M=="data"?this.j.push(f):M=="metadata"?this.N.push(f):M=="status"?this.G.push(f):M=="end"?this.C.push(f):M=="error"&&this.Z.push(f);return this}; KB.prototype.removeListener=function(M,f){M=="data"?fl(this.j,f):M=="metadata"?fl(this.N,f):M=="status"?fl(this.G,f):M=="end"?fl(this.C,f):M=="error"&&fl(this.Z,f);return this}; KB.prototype.cancel=function(){this.K.abort()}; KB.prototype.cancel=KB.prototype.cancel;KB.prototype.removeListener=KB.prototype.removeListener;KB.prototype.on=KB.prototype.dM;g.U(uC6,Error);g.pm(g.AC,qY6);g.AC.prototype.K=function(){var M=new Qp(this.C,this.j);this.Z&&M.setCredentialsMode(this.Z);return M}; g.AC.prototype.setCredentialsMode=function(M){this.Z=M}; g.pm(Qp,g.Lz);g.C=Qp.prototype;g.C.open=function(M,f){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Er=M;this.B=f;this.readyState=1;Ns(this)}; g.C.send=function(M){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.K=!0;var f={headers:this.X,method:this.Er,credentials:this.N,cache:void 0};M&&(f.body=M);(this.KJ||g.Kb).fetch(new Request(this.B,f)).then(this.Br.bind(this),this.m6.bind(this))}; g.C.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.j&&this.j.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.K&&this.readyState!=4&&(this.K=!1,Y6(this));this.readyState=0}; g.C.Br=function(M){if(this.K&&(this.C=M,this.Z||(this.status=this.C.status,this.statusText=this.C.statusText,this.Z=M.headers,this.readyState=2,Ns(this)),this.K&&(this.readyState=3,Ns(this),this.K)))if(this.responseType==="arraybuffer")M.arrayBuffer().then(this.Dx.bind(this),this.m6.bind(this));else if(typeof g.Kb.ReadableStream!=="undefined"&&"body"in M){this.j=M.body.getReader();if(this.G){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.W=new TextDecoder;$2b(this)}else M.text().then(this.xS.bind(this),this.m6.bind(this))}; g.C.J7=function(M){if(this.K){if(this.G&&M.value)this.response.push(M.value);else if(!this.G){var f=M.value?M.value:new Uint8Array(0);if(f=this.W.decode(f,{stream:!M.done}))this.response=this.responseText+=f}M.done?Y6(this):Ns(this);this.readyState==3&&$2b(this)}}; g.C.xS=function(M){this.K&&(this.response=this.responseText=M,Y6(this))}; g.C.Dx=function(M){this.K&&(this.response=M,Y6(this))}; g.C.m6=function(){this.K&&Y6(this)}; g.C.setRequestHeader=function(M,f){this.X.append(M,f)}; g.C.getResponseHeader=function(M){return this.Z?this.Z.get(M.toLowerCase())||"":""}; g.C.getAllResponseHeaders=function(){if(!this.Z)return"";for(var M=[],f=this.Z.entries(),A=f.next();!A.done;)A=A.value,M.push(A[0]+": "+A[1]),A=f.next();return M.join("\r\n")}; g.C.setCredentialsMode=function(M){this.N=M}; Object.defineProperty(Qp.prototype,"withCredentials",{get:function(){return this.N==="include"}, set:function(M){this.setCredentialsMode(M?"include":"same-origin")}});g.Im.prototype.toString=function(){var M=[],f=this.N;f&&M.push(hC(f,WW7,!0),":");var A=this.K;if(A||f=="file")M.push("//"),(f=this.X)&&M.push(hC(f,WW7,!0),"@"),M.push(elt(g.o9(A))),A=this.j,A!=null&&M.push(":",String(A));if(A=this.Z)this.K&&A.charAt(0)!="/"&&M.push("/"),M.push(hC(A,A.charAt(0)=="/"?Ome:XKe,!0));(A=this.C.toString())&&M.push("?",A);(A=this.G)&&M.push("#",hC(A,JBm));return M.join("")}; g.Im.prototype.resolve=function(M){var f=this.clone(),A=!!M.N;A?g.T3(f,M.N):A=!!M.X;A?f.X=M.X:A=!!M.K;A?g.DI(f,M.K):A=M.j!=null;var Q=M.Z;if(A)g.Ek(f,M.j);else if(A=!!M.Z){if(Q.charAt(0)!="/")if(this.K&&!this.Z)Q="/"+Q;else{var N=f.Z.lastIndexOf("/");N!=-1&&(Q=f.Z.slice(0,N+1)+Q)}N=Q;if(N==".."||N==".")Q="";else if(g.aX(N,"./")||g.aX(N,"/.")){Q=Cx(N,"/");N=N.split("/");for(var Y=[],I=0;I1||Y.length==1&&Y[0]!="")&&Y.pop(), Q&&I==N.length&&Y.push("")):(Y.push(D),Q=!0)}Q=Y.join("/")}else Q=N}A?f.Z=Q:A=M.C.toString()!=="";A?tC(f,M.C.clone()):A=!!M.G;A&&(f.G=M.G);return f}; g.Im.prototype.clone=function(){return new g.Im(this)}; var WW7=/[#\/\?@]/g,XKe=/[#\?:]/g,Ome=/[#\?]/g,yjt=/[#\?@]/g,JBm=/#/g;g.C=pl.prototype;g.C.add=function(M,f){om(this);this.j=null;M=Cl(this,M);var A=this.K.get(M);A||this.K.set(M,A=[]);A.push(f);this.Z=this.Z+1;return this}; g.C.remove=function(M){om(this);M=Cl(this,M);return this.K.has(M)?(this.j=null,this.Z=this.Z-this.K.get(M).length,this.K.delete(M)):!1}; g.C.clear=function(){this.K=this.j=null;this.Z=0}; g.C.isEmpty=function(){om(this);return this.Z==0}; g.C.forEach=function(M,f){om(this);this.K.forEach(function(A,Q){A.forEach(function(N){M.call(f,N,Q,this)},this)},this)}; g.C.Ou=function(){om(this);for(var M=Array.from(this.K.values()),f=Array.from(this.K.keys()),A=[],Q=0;Q0?String(M[0]):f}; g.C.toString=function(){if(this.j)return this.j;if(!this.K)return"";for(var M=[],f=Array.from(this.K.keys()),A=0;A>>3;Y.j!=1&&Y.j!=2&&Y.j!=15&&qs(Y,I,D,"unexpected tag");Y.K=1;Y.Z=0;Y.C=0} function A(E){Y.C++;Y.C==5&&E&240&&qs(Y,I,D,"message length too long");Y.Z|=(E&127)<<(Y.C-1)*7;E&128||(Y.K=2,Y.X=0,typeof Uint8Array!=="undefined"?Y.N=new Uint8Array(Y.Z):Y.N=Array(Y.Z),Y.Z==0&&N())} function Q(E){Y.N[Y.X++]=E;Y.X==Y.Z&&N()} function N(){if(Y.j<15){var E={};E[Y.j]=Y.N;Y.W.push(E)}Y.K=0} for(var Y=this,I=M instanceof Array?M:new Uint8Array(M),D=0;D0?M:null};HL.prototype.isInputValid=function(){return this.K===null}; HL.prototype.HP=function(){return this.K}; HL.prototype.Yq=function(){return!1}; HL.prototype.parse=function(M){this.K!==null&&Kb0(this,M,"stream already broken");var f=null;try{var A=this.j;A.j||Jj9(A,M,"stream already broken");A.K+=M;var Q=Math.floor(A.K.length/4);if(Q==0)var N=null;else{try{var Y=jXf(A.K.slice(0,Q*4))}catch(I){Jj9(A,A.K,I.message)}A.Z+=Q*4;A.K=A.K.slice(Q*4);N=Y}f=N===null?null:this.C.parse(N)}catch(I){Kb0(this,M,I.message)}this.Z+=M.length;return f};var GCe={INIT:0,fQ:1,r0:2,V9:3,iO:4,jW:5,STRING:6,hQ:7,lJ:8,IA:9,tf:10,u9:11,uW:12,kE:13,j2:14,iW:15,Fx:16,DS:17,xA:18,U0:19,lf:20};g.C=sk.prototype;g.C.isInputValid=function(){return this.N!=3}; g.C.HP=function(){return this.B}; g.C.done=function(){return this.N===2}; g.C.Yq=function(){return!1}; g.C.parse=function(M){function f(){for(;h0;)if(L=M[h++], Y.X===4?Y.X=0:Y.X++,!L)break a;if(L==='"'&&!Y.W){Y.K=Q();break}if(L==="\\"&&!Y.W&&(Y.W=!0,L=M[h++],!L))break;if(Y.W)if(Y.W=!1,L==="u"&&(Y.X=1),L=M[h++])continue;else break;D.lastIndex=h;L=D.exec(M);if(!L){h=M.length+1;break}h=L.index+1;L=M[L.index];if(!L)break}Y.j+=h-a;continue;case E.IA:if(!L)continue;L==="r"?Y.K=E.tf:cL(Y,M,h);continue;case E.tf:if(!L)continue;L==="u"?Y.K=E.u9:cL(Y,M,h);continue;case E.u9:if(!L)continue;L==="e"?Y.K=Q():cL(Y,M,h);continue;case E.uW:if(!L)continue;L==="a"?Y.K=E.kE: cL(Y,M,h);continue;case E.kE:if(!L)continue;L==="l"?Y.K=E.j2:cL(Y,M,h);continue;case E.j2:if(!L)continue;L==="s"?Y.K=E.iW:cL(Y,M,h);continue;case E.iW:if(!L)continue;L==="e"?Y.K=Q():cL(Y,M,h);continue;case E.Fx:if(!L)continue;L==="u"?Y.K=E.DS:cL(Y,M,h);continue;case E.DS:if(!L)continue;L==="l"?Y.K=E.xA:cL(Y,M,h);continue;case E.xA:if(!L)continue;L==="l"?Y.K=Q():cL(Y,M,h);continue;case E.U0:L==="."?Y.K=E.lf:cL(Y,M,h);continue;case E.lf:if("0123456789.eE+-".indexOf(L)!==-1)continue;else h--,Y.j--,Y.K= Q();continue;default:cL(Y,M,h)}}} function Q(){var L=I.pop();return L!=null?L:E.fQ} function N(L){if(!(Y.Z>1)){L||(L=p===-1?Y.C+M.substring(v,h):M.substring(p,h));if(Y.Er)Y.G.push(L);else{var a=Y.G,q=a.push;L=JSON.parse(L);q.call(a,L)}p=h}} for(var Y=this,I=Y.KJ,D=Y.jk,E=GCe,t=M.length,v=0,p=-1,h=0;h0?(S=Y.G,Y.G=[],S):null}return null};Rm.prototype.isInputValid=function(){return this.N===null}; Rm.prototype.HP=function(){return this.N}; Rm.prototype.Yq=function(){return!1}; Rm.prototype.parse=function(M){function f(E){Y.Z=6;Y.N="The stream is broken @"+Y.K+"/"+I+". Error: "+E+". With input:\n";throw Error(Y.N);} function A(){Y.j=new sk({yI_:!0,KP:!0})} function Q(E){if(E)for(var t=0;t1)&&f("extra status: "+E);Y.G=!0;var t={};t[2]=E[0];Y.C.push(t)}} for(var Y=this,I=0;I0?(M=Y.C,Y.C=[],M):null};g8.prototype.nj=function(){return this.K}; g8.prototype.getStatus=function(){return this.N}; g8.prototype.Er=function(M){M=M.target;try{if(M==this.K)a:{var f=g.Kz(this.K),A=this.K.Z,Q=this.K.getStatus(),N=g.w1(this.K);M=[];if(g.l4(this.K)instanceof Array){var Y=g.l4(this.K);Y.length>0&&Y[0]instanceof Uint8Array&&(this.B=!0,M=Y)}if(!(f<3||f==3&&!N&&M.length==0))if(Q=Q==200||Q==206,f==4&&(A==8?ZI(this,7):A==7?ZI(this,8):Q||ZI(this,3)),this.Z||(this.Z=GUU(this.K),this.Z==null&&ZI(this,5)),this.N>2)r8(this);else{if(M.length>this.j){var I=M.length;A=[];try{if(this.Z.Yq())for(var D=0;Dthis.j){D=N.slice(this.j);this.j=N.length;try{var t=this.Z.parse(D);t!=null&&this.C&&this.C(t)}catch(v){ZI(this,5);r8(this);break a}}f==4?(N.length!= 0||this.B?ZI(this,2):ZI(this,4),r8(this)):ZI(this,1)}}}catch(v){ZI(this,6),r8(this)}};g.C=wRe.prototype;g.C.dM=function(M,f){var A=this.Z[M];A||(A=[],this.Z[M]=A);A.push(f);return this}; g.C.addListener=function(M,f){this.dM(M,f);return this}; g.C.removeListener=function(M,f){var A=this.Z[M];A&&g.qm(A,f);(M=this.K[M])&&g.qm(M,f);return this}; g.C.once=function(M,f){var A=this.K[M];A||(A=[],this.K[M]=A);A.push(f);return this}; g.C.dV$=function(M){var f=this.Z.data;f&&lXD(M,f);(f=this.K.data)&&lXD(M,f);this.K.data=[]}; g.C.i37=function(){switch(this.j.getStatus()){case 1:ua(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ua(this,"error");break;case 8:ua(this,"close");break;case 2:ua(this,"end")}};M_0.prototype.serverStreaming=function(M,f,A,Q){var N=this,Y=M.substring(0,M.length-Q.name.length);return f2t(function(I){var D=I.po,E=I.getMetadata(),t=N1z(N,!1);E=Yne(N,E,t,Y+D.getName());var v=I2X(t,D.Z,!0);I=D.K(I.uo);t.send(E,"POST",I);return v},this.C).call(this,Q.W(f,A))};D7c.prototype.create=function(M,f){return kHD(this.K,this.Z+"/$rpc/google.internal.waa.v1.Waa/Create",M,f||{},kC6)};var EMe="://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(" "),t_T=/\bocr\b/;var pWe=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(M){throw M;}},{hB$:!0, rIB:!0,aEr:cbK,LKk:Re0,bZr:!1,n9r:!1,lE0:!0,T6B:!1});var nl=null,$6=!1,sQe=1,d8=Symbol("SIGNAL"),hP={version:0,JRB:0,f6:!1,UJ:void 0,oS:void 0,mJ:void 0,GB:0,Nm:void 0,Qz:void 0,IW:!1,t1:!1,kind:"unknown",aF:function(){return!1}, Lm:function(){}, kQ:function(){}, v9O:function(){}};var Sx=Symbol("UNSET"),LR=Symbol("COMPUTING"),ow=Symbol("ERRORED");Object.assign({},hP,{value:Sx,f6:!0,error:null,zI:PL,kind:"computed",aF:function(M){return M.value===Sx||M.value===LR}, Lm:function(M){if(M.value===LR)throw Error("");var f=M.value;M.value=LR;var A=LC0(M),Q=!1;try{var N=M.wQ();jF(null);Q=f!==Sx&&f!==ow&&N!==ow&&M.zI(f,N)}catch(Y){N=ow,M.error=Y}finally{oMT(M,A)}Q?M.value=f:(M.value=N,M.version++)}});var a29=Object.assign({},hP,{zI:PL,value:void 0,kind:"signal"});Object.assign({},hP,{value:Sx,f6:!0,error:null,zI:PL,kind:"linkedSignal",aF:function(M){return M.value===Sx||M.value===LR}, Lm:function(M){if(M.value===LR)throw Error("");var f=M.value;M.value=LR;var A=LC0(M);try{var Q=M.source();var N=M.wQ(Q,f===Sx||f===ow?void 0:{source:M.j9x,value:f});M.j9x=Q}catch(Y){N=ow,M.error=Y}finally{oMT(M,A)}f!==Sx&&N!==ow&&M.zI(f,N)?M.value=f:(M.value=N,M.version++)}});Object.assign({},hP,{t1:!0,IW:!1,kQ:function(M){M.schedule!==null&&M.schedule(M.c57)}, nV_:!1,N6r:function(){}});g.U(ba,g.Lz);ba.prototype.dispose=function(){window.removeEventListener("offline",this.j);window.removeEventListener("online",this.j);this.BN.i5(this.N);delete ba.instance}; ba.prototype.Ag=function(){return this.K}; ba.prototype.Ah=function(){var M=this;this.N=this.BN.aY(function(){var f;return g.n(function(A){if(A.Z==1)return M.K?((f=window.navigator)==null?0:f.onLine)?A.CJ(3):g.r(A,eF(M),3):g.r(A,eF(M),3);M.Ah();g.qc(A)})},3E4)};WL.prototype.set=function(M,f){f=f===void 0?!0:f;0<=M&&M<52&&Number.isInteger(M)&&this.data[M]!==f&&(this.data[M]=f,this.K=-1)}; WL.prototype.get=function(M){return!!this.data[M]};var Xy;g.pm(g.la,g.y);g.C=g.la.prototype;g.C.start=function(){this.stop();this.C=!1;var M=B19(this),f=iz6(this);M&&!f&&this.Z.mozRequestAnimationFrame?(this.K=g.IQ(this.Z,"MozBeforePaint",this.j),this.Z.mozRequestAnimationFrame(null),this.C=!0):this.K=M&&f?M.call(this.Z,this.j):this.Z.setTimeout(bmT(this.j),20)}; g.C.stop=function(){if(this.isActive()){var M=B19(this),f=iz6(this);M&&!f&&this.Z.mozRequestAnimationFrame?t_(this.K):M&&f?f.call(this.Z,this.K):this.Z.clearTimeout(this.K)}this.K=null}; g.C.isActive=function(){return this.K!=null}; g.C.jH=function(){this.C&&this.K&&t_(this.K);this.K=null;this.G.call(this.N,g.EB())}; g.C.u8=function(){this.stop();g.la.kZ.u8.call(this)};g.pm(g.MY,g.y);g.C=g.MY.prototype;g.C.bO=0;g.C.u8=function(){g.MY.kZ.u8.call(this);this.stop();delete this.K;delete this.Z}; g.C.start=function(M){this.stop();this.bO=g.Fd(this.j,M!==void 0?M:this.du)}; g.C.stop=function(){this.isActive()&&g.Kb.clearTimeout(this.bO);this.bO=0}; g.C.isActive=function(){return this.bO!=0}; g.C.CL=function(){this.bO=0;this.K&&this.K.call(this.Z)};g.U(g.NY,g.y);g.C=g.NY.prototype;g.C.Hc=function(M){this.j=arguments;this.V7||this.Z?this.K=!0:Y2(this)}; g.C.stop=function(){this.V7&&(g.Kb.clearTimeout(this.V7),this.V7=null,this.K=!1,this.j=null)}; g.C.pause=function(){this.Z++}; g.C.resume=function(){this.Z--;this.Z||!this.K||this.V7||(this.K=!1,Y2(this))}; g.C.u8=function(){g.y.prototype.u8.call(this);this.stop()};g.IA.prototype[Symbol.iterator]=function(){return this}; g.IA.prototype.next=function(){var M=this.K.next();return{value:M.done?void 0:this.Z.call(void 0,M.value),done:M.done}};g.pm(g.L5,g.Lz);g.C=g.L5.prototype;g.C.isPlaying=function(){return this.K==1}; g.C.isPaused=function(){return this.K==-1}; g.C.w4=function(){this.n8("begin")}; g.C.EW=function(){this.n8("end")}; g.C.onFinish=function(){this.n8("finish")}; g.C.onStop=function(){this.n8("stop")}; g.C.n8=function(M){this.dispatchEvent(M)};var wK9=oH(function(){var M=g.MQ("DIV"),f=g.Kg?"-webkit":$A?"-moz":null,A="transition:opacity 1s linear;";f&&(A+=f+"-transition:opacity 1s linear;");f=ZmT({style:A});if(M.nodeType===1&&/^(script|style)$/i.test(M.tagName))throw Error("");M.innerHTML=Au(f);return g.Fo(M.firstChild,"transition")!=""});g.pm(oA,g.L5);g.C=oA.prototype;g.C.play=function(){if(this.isPlaying())return!1;this.w4();this.n8("play");this.startTime=g.EB();this.K=1;if(wK9())return g.ji(this.Z,this.G),this.j=g.Fd(this.hZ_,void 0,this),!0;this.NW(!1);return!1}; g.C.hZ_=function(){g.J9(this.Z);r_t(this.Z,this.W);g.ji(this.Z,this.C);this.j=g.Fd((0,g.IR)(this.NW,this,!1),this.N*1E3)}; g.C.stop=function(){this.isPlaying()&&this.NW(!0)}; g.C.NW=function(M){g.ji(this.Z,"transition","");g.Kb.clearTimeout(this.j);g.ji(this.Z,this.C);this.endTime=g.EB();this.K=0;if(M)this.onStop();else this.onFinish();this.EW()}; g.C.u8=function(){this.stop();oA.kZ.u8.call(this)}; g.C.pause=function(){};var zg9={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};C5("Element","attributes")||C5("Node","attributes");C5("Element","innerHTML")||C5("HTMLElement","innerHTML");C5("Node","nodeName");C5("Node","nodeType");C5("Node","parentNode");C5("Node","childNodes");C5("HTMLElement","style")||C5("Element","style");C5("HTMLStyleElement","sheet");var y_D=nM0("getPropertyValue"),d7d=nM0("setProperty");C5("Element","namespaceURI")||C5("Node","namespaceURI");var FCc={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var WCU,L6c,kgz,bzb,Ozb;WCU=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]");L6c=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.lvB=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.VI=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]");kgz=/^http:\/\/.*/;g.MEB=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");bzb=/\s+/;Ozb=/[\d\u06f0-\u06f9]/;qY.prototype.uL=function(){return new Hv(this.Z())}; qY.prototype[Symbol.iterator]=function(){return new ms(this.Z())}; qY.prototype.K=function(){return new ms(this.Z())}; g.U(Hv,g.xT);Hv.prototype.next=function(){return this.Z.next()}; Hv.prototype[Symbol.iterator]=function(){return new ms(this.Z)}; Hv.prototype.K=function(){return new ms(this.Z)}; g.U(ms,qY);ms.prototype.next=function(){return this.j.next()};cv.prototype.clone=function(){return new cv(this.K,this.W,this.j,this.N,this.C,this.G,this.Z,this.X)}; cv.prototype.equals=function(M){return this.K==M.K&&this.W==M.W&&this.j==M.j&&this.N==M.N&&this.C==M.C&&this.G==M.G&&this.Z==M.Z&&this.X==M.X};gP.prototype.clone=function(){return new gP(this.start,this.end)}; gP.prototype.getLength=function(){return this.end-this.start};(function(){if(UIX){var M=/Windows NT ([0-9.]+)/;return(M=M.exec(g.ge()))?M[1]:"0"}return A7?(M=/1[0|1][_.][0-9_.]+/,(M=M.exec(g.ge()))?M[0].replace(/_/g,"."):"10"):g.Qi?(M=/Android\s+([^\);]+)(\)|;)/,(M=M.exec(g.ge()))?M[1]:""):ibw||xcC||Zb0?(M=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(M=M.exec(g.ge()))?M[1].replace(/_/g,"."):""):""})();var J_9=function(){if(g.ft)return Bv(/Firefox\/([0-9.]+)/);if(g.UD||g.Gf||g.uc)return sRN;if(g.nU){if(cB()||R9()){var M=Bv(/CriOS\/([0-9.]+)/);if(M)return M}return Bv(/Chrome\/([0-9.]+)/)}if(g.mH&&!cB())return Bv(/Version\/([0-9.]+)/);if(Mh||fM){if(M=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.ge()))return M[1]+"."+M[2]}else if(g.zG)return(M=Bv(/Android\s+([0-9.]+)/))?M:Bv(/Version\/([0-9.]+)/);return""}();g.pm(g.x2,g.y);g.C=g.x2.prototype;g.C.subscribe=function(M,f,A){var Q=this.Z[M];Q||(Q=this.Z[M]=[]);var N=this.G;this.K[N]=M;this.K[N+1]=f;this.K[N+2]=A;this.G=N+3;Q.push(N);return N}; g.C.unsubscribe=function(M,f,A){if(M=this.Z[M]){var Q=this.K;if(M=M.find(function(N){return Q[N+1]==f&&Q[N+2]==A}))return this.DI(M)}return!1}; g.C.DI=function(M){var f=this.K[M];if(f){var A=this.Z[f];this.C!=0?(this.j.push(M),this.K[M+1]=function(){}):(A&&g.qm(A,M),delete this.K[M],delete this.K[M+1],delete this.K[M+2])}return!!f}; g.C.publish=function(M,f){var A=this.Z[M];if(A){var Q=Array(arguments.length-1),N=arguments.length,Y;for(Y=1;Y0&&this.C==0)for(;A=this.j.pop();)this.DI(A)}}return Y!=0}return!1}; g.C.clear=function(M){if(M){var f=this.Z[M];f&&(f.forEach(this.DI,this),delete this.Z[M])}else this.K.length=0,this.Z={}}; g.C.u8=function(){g.x2.kZ.u8.call(this);this.clear();this.j.length=0};g.Zg.prototype.set=function(M,f){f===void 0?this.K.remove(M):this.K.set(M,g.b4(f))}; g.Zg.prototype.get=function(M){try{var f=this.K.get(M)}catch(A){return}if(f!==null)try{return JSON.parse(f)}catch(A){throw"Storage: Invalid value was encountered";}}; g.Zg.prototype.remove=function(M){this.K.remove(M)};g.pm(rP,g.Zg);rP.prototype.set=function(M,f){rP.kZ.set.call(this,M,wWt(f))}; rP.prototype.Z=function(M){M=rP.kZ.get.call(this,M);if(M===void 0||M instanceof Object)return M;throw"Storage: Invalid value was encountered";}; rP.prototype.get=function(M){if(M=this.Z(M)){if(M=M.data,M===void 0)throw"Storage: Invalid value was encountered";}else M=void 0;return M};g.pm(ur,rP);ur.prototype.set=function(M,f,A){if(f=wWt(f)){if(A){if(A=A.length)return g.Da;var N=A.key(f++);if(M)return g.Zx(N);N=A.getItem(N);if(typeof N!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Zx(N)}; return Q}; g.C.clear=function(){jb(this);this.K.clear()}; g.C.key=function(M){jb(this);return this.K.key(M)};g.pm($2,n5);g.pm(AwN,n5);g.pm(Fr,Pv);Fr.prototype.set=function(M,f){this.Z.set(this.K+M,f)}; Fr.prototype.get=function(M){return this.Z.get(this.K+M)}; Fr.prototype.remove=function(M){this.Z.remove(this.K+M)}; Fr.prototype.uL=function(M){var f=this.Z[Symbol.iterator](),A=this,Q=new g.xT;Q.next=function(){var N=f.next();if(N.done)return N;for(N=N.value;N.slice(0,A.K.length)!=A.K;){N=f.next();if(N.done)return N;N=N.value}return g.Zx(M?N.slice(A.K.length):A.Z.get(N))}; return Q};dP.prototype.getValue=function(){return this.Z}; dP.prototype.clone=function(){return new dP(this.K,this.Z)};g.C=eb.prototype;g.C.XH=function(M,f){var A=this.K;A.push(new dP(M,f));M=A.length-1;f=this.K;for(A=f[M];M>0;){var Q=M-1>>1;if(f[Q].K>A.K)f[M]=f[Q],M=Q;else break}f[M]=A}; g.C.remove=function(){var M=this.K,f=M.length,A=M[0];if(!(f<=0)){if(f==1)M.length=0;else{M[0]=M.pop();M=0;f=this.K;for(var Q=f.length,N=f[M];M>1;){var Y=M*2+1,I=M*2+2;Y=IN.K)break;f[M]=f[Y];M=Y}f[M]=N}return A.getValue()}}; g.C.yM=function(){for(var M=this.K,f=[],A=M.length,Q=0;Q>>16&65535|0;for(var Y;A!==0;){Y=A>2E3?2E3:A;A-=Y;do N=N+f[Q++]|0,M=M+N|0;while(--Y);N%=65521;M%=65521}return N|M<<16|0};for(var UG={},CR,YIv=[],UV=0;UV<256;UV++){CR=UV;for(var ILm=0;ILm<8;ILm++)CR=CR&1?3988292384^CR>>>1:CR>>>1;YIv[UV]=CR}UG=function(M,f,A,Q){A=Q+A;for(M^=-1;Q>>8^YIv[(M^f[Q])&255];return M^-1};var DS={};DS={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 f4=[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],N4=[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],gWb=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],oW9=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p4=Array(576);OD(p4);var h3=Array(60);OD(h3);var QE=Array(512);OD(QE);var M4=Array(256);OD(M4);var A3=Array(29);OD(A3);var YS=Array(30);OD(YS);var sct,cwX,R20,mlc=!1;var mm;mm=[new HJ(0,0,0,0,function(M,f){var A=65535;for(A>M.Wz-5&&(A=M.Wz-5);;){if(M.JP<=1){VE(M);if(M.JP===0&&f===0)return 1;if(M.JP===0)break}M.Ck+=M.JP;M.JP=0;var Q=M.zH+A;if(M.Ck===0||M.Ck>=Q)if(M.JP=M.Ck-Q,M.Ck=Q,So(M,!1),M.Yz.bl===0)return 1;if(M.Ck-M.zH>=M.A$-262&&(So(M,!1),M.Yz.bl===0))return 1}M.XH=0;if(f===4)return So(M,!0),M.Yz.bl===0?3:4;M.Ck>M.zH&&So(M,!1);return 1}), new HJ(4,4,8,4,ab),new HJ(4,5,16,8,ab),new HJ(4,6,32,32,ab),new HJ(4,4,16,16,q4),new HJ(8,16,32,32,q4),new HJ(8,16,128,128,q4),new HJ(8,32,128,256,q4),new HJ(32,128,258,1024,q4),new HJ(32,258,258,4096,q4)];var HB0={};HB0=function(){this.input=null;this.i$=this.cU=this.fT=0;this.output=null;this.N2=this.bl=this.Rv=0;this.msg="";this.state=null;this.tq=2;this.zU=0};var Bac=Object.prototype.toString; sG.prototype.push=function(M,f){var A=this.Yz,Q=this.options.chunkSize;if(this.ended)return!1;var N=f===~~f?f:f===!0?4:0;typeof M==="string"?A.input=YJz(M):Bac.call(M)==="[object ArrayBuffer]"?A.input=new Uint8Array(M):A.input=M;A.fT=0;A.cU=A.input.length;do{A.bl===0&&(A.output=new Wv.AL(Q),A.Rv=0,A.bl=Q);M=qJ9(A,N);if(M!==1&&M!==0)return this.EW(M),this.ended=!0,!1;if(A.bl===0||A.cU===0&&(N===4||N===2))if(this.options.to==="string"){var Y=Wv.tE(A.output,A.Rv);f=Y;Y=Y.length;if(Y<65537&&(f.subarray&& Nee||!f.subarray))f=String.fromCharCode.apply(null,Wv.tE(f,Y));else{for(var I="",D=0;D0||A.bl===0)&&M!==1);if(N===4)return(A=this.Yz)&&A.state?(Q=A.state.status,Q!==42&&Q!==69&&Q!==73&&Q!==91&&Q!==103&&Q!==113&&Q!==666?M=EG(A,-2):(A.state=null,M=Q===113?EG(A,-3):0)):M=-2,this.EW(M),this.ended=!0,M===0;N===2&&(this.EW(0),A.bl=0);return!0}; sG.prototype.EW=function(M){M===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Wv.Tf(this.chunks));this.chunks=[];this.err=M;this.msg=this.Yz.msg};var Rb="@@redux/INIT"+cJ(),z2e="@@redux/REPLACE"+cJ();var PRz=typeof Symbol==="function"&&Symbol.observable||"@@observable";var TeC=[0,LWe,-3,Yp];g.U(FBN,VW);var m60=function(){var M=[0,C6w,oem,fR,LWe,fR,-1,Yp,LWe,Yp,-1,C6w,Yp,oem,AP,TeC,fR,-1,Yp];return function(f,A){var Q={wO:!0};A&&Object.assign(Q,A);f=wBd(f,void 0,void 0,Q);try{var N=new FBN,Y=N.E$;yW(M)(Y,f);var I=N}finally{f.free()}return I}}();var yw6=-761682623;var lNd=new g.iG("adInfoDialogEndpoint");var RRD=new g.iG("adPingingEndpoint");var X2D=new g.iG("crossDeviceProgressCommand");var EE=new g.iG("actionCompanionAdRenderer");var pU=new g.iG("adActionInterstitialRenderer");var DVm=new g.iG("adDurationRemainingRenderer");var eP=new g.iG("adHoverTextButtonRenderer");var GfN=new g.iG("adInfoDialogRenderer");var ck=new g.iG("adMessageRenderer");var bF=new g.iG("adPreviewRenderer");var vr=new g.iG("adsEngagementPanelRenderer");var a$c=new g.iG("dismissablePanelTextPortraitImageRenderer");var Uxt=new g.iG("adsEngagementPanelSectionListViewModel");var E19=new g.iG("flyoutCtaRenderer");var te=new g.iG("imageCompanionAdRenderer");var tk=new g.iG("instreamAdPlayerOverlayRenderer");var zfb=new g.iG("instreamSurveyAdBackgroundImageRenderer");var dO=new g.iG("instreamSurveyAdPlayerOverlayRenderer");var Hr=new g.iG("instreamSurveyAdRenderer"),yB=new g.iG("instreamSurveyAdSingleSelectQuestionRenderer"),F1=new g.iG("instreamSurveyAdMultiSelectQuestionRenderer"),VT=new g.iG("instreamSurveyAdAnswerRenderer"),tE6=new g.iG("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var av=new g.iG("instreamVideoAdRenderer");var v1W=new g.iG("textOverlayAdContentRenderer"),pT0=new g.iG("enhancedTextOverlayAdContentRenderer"),hZ7=new g.iG("imageOverlayAdContentRenderer");var v$=new g.iG("playerOverlayLayoutRenderer");var hk=new g.iG("videoInterstitialButtonedCenteredLayoutRenderer");var cyX=new g.iG("aboveFeedAdLayoutRenderer");var RkX=new g.iG("belowPlayerAdLayoutRenderer");var spN=new g.iG("inPlayerAdLayoutRenderer");var cr=new g.iG("playerBytesAdLayoutRenderer");var $G=new g.iG("playerBytesSequenceItemAdLayoutRenderer");var jP=new g.iG("playerUnderlayAdLayoutRenderer");var qH=new g.iG("adIntroRenderer");var UE=new g.iG("playerBytesSequentialLayoutRenderer");var ICT=new g.iG("slidingTextPlayerOverlayRenderer");var mt=new g.iG("surveyTextInterstitialRenderer");var uF=new g.iG("videoAdTrackingRenderer");var SIK=new g.iG("simpleAdBadgeRenderer");var Lc=new g.iG("skipAdRenderer"),LYe=new g.iG("skipButtonRenderer");var X1=new g.iG("adSlotRenderer");var Pr=new g.iG("squeezebackPlayerSidePanelRenderer");var o19=new g.iG("timedPieCountdownRenderer");var bx=new g.iG("adAvatarViewModel");var kv=new g.iG("adBadgeViewModel");var Wq=new g.iG("adButtonViewModel");var CQR=new g.iG("adDetailsLineViewModel");var UVR=new g.iG("adDisclosureBannerViewModel");var VEe=new g.iG("adPodIndexViewModel");var aLW=new g.iG("imageBackgroundViewModel");var qIB=new g.iG("adGridCardCollectionViewModel");var Hx7=new g.iG("adGridCardTextViewModel");var mVW=new g.iG("adPreviewViewModel");var sXB=new g.iG("playerAdAvatarLockupCardButtonedViewModel");var c2w=new g.iG("skipAdButtonViewModel");var RZ0=new g.iG("skipAdViewModel");var g1v=new g.iG("timedPieCountdownViewModel");var BeW=new g.iG("visitAdvertiserLinkViewModel");var pd=new g.iG("bannerImageLayoutViewModel");var he=new g.iG("topBannerImageTextIconButtonedLayoutViewModel");var SP=new g.iG("adsEngagementPanelLayoutViewModel");var nd=new g.iG("displayUnderlayTextGridCardsLayoutViewModel");g.iv=new g.iG("browseEndpoint");var ix7=new g.iG("confirmDialogEndpoint");var tUT=new g.iG("commandContext");var Uht=new g.iG("rawColdConfigGroup");var C$0=new g.iG("rawHotConfigGroup");g.qi=new g.iG("commandExecutorCommand");g.U(e2d,VW);var UKd={UEr:0,WwB:1,rY_:32,xEr:61,ZZ_:67,Q_B:103,s8_:86,lh_:42,ahO:60,vNJ:62,DE8:73,b80:76,dpY:88,E90:90,IEN:99,TUk:98,KKJ:100,Fwk:102,t4N:41,utO:69,k$0:70,j_k:71,grx:2,eyY:27,ANDROID:3,MV3:54,Jgr:14,DQN:91,XKO:55,TLr:24,hrO:20,lI0:18,aI7:21,LQO:104,BL7:30,dYN:29,EIr:28,GG8:101,K5k:34,xQr:36,rgk:38,IOS:5,p__:15,mmk:92,Sv7:40,f_8:25,Um8:17,gP8:19,e$8:64,yTO:66,nPk:26,G9r:22,Ni$:33,qvx:68,VEO:35,cTO:53,oPY:37,AT7:39,Ih$:7,tQi:57,uP_:43,j8O:59,kG3:93,QYN:74,i8k:75,H8_:85,C2B:65,zYi:80,pNJ:8,Kwr:10, AY8:58,Su8:63,P2J:72,snx:23,C4r:11,P4N:13,R8x:12,Z8B:16,hY7:56,BU_:31,S6k:77,XU$:84,Lw7:87,hGr:89,TuB:94,KiY:95};g.U(xS,VW);xS.prototype.x_=function(){return Og(this,3)}; xS.prototype.Ib=function(){return Og(this,5)}; xS.prototype.gM=function(M){return wn(this,5,M)};g.U(ZS,VW);g.U(bBd,VW);g.U(rB,VW);g.C=rB.prototype;g.C.getDeviceId=function(){return Og(this,6)}; g.C.nU=function(M){var f=c_(this,9,y7,3,!0);ak(f,M);return f[M]}; g.C.getPlayerType=function(){return XX(this,36)}; g.C.setHomeGroupInfo=function(M){return ys(this,bBd,81,M)}; g.C.clearLocationPlayabilityToken=function(){return aZ(this,89)};g.U(uG,VW);uG.prototype.getValue=function(){return Og(this,P_(this,Ll9,2))}; var Ll9=[2,3,4,5,6];g.U(zR,VW);zR.prototype.setTrackingParams=function(M){return aZ(this,1,GOz(M,!1))};g.U(PJ,VW);g.U(n4,VW);n4.prototype.nU=function(M){var f=c_(this,5,ds,3,!0);ak(f,M);return f[M]};g.U(jo,VW);jo.prototype.getToken=function(){return KQ(this,2)}; jo.prototype.setToken=function(M){return wn(this,2,M)};g.U($S,VW);$S.prototype.setSafetyMode=function(M){return MU(this,5,M)};g.U(FQ,VW);FQ.prototype.KA=function(M){return ys(this,rB,1,M)};var Wr=new g.iG("thumbnailLandscapePortraitRenderer");g.xVB=new g.iG("changeEngagementPanelVisibilityAction");var sVX=new g.iG("continuationCommand");g.Zx9=new g.iG("openPopupAction");g.aw=new g.iG("webCommandMetadata");var JeU=new g.iG("metadataBadgeRenderer");var mnT=new g.iG("signalServiceEndpoint");var yv=new g.iG("innertubeCommand");var tt0=new g.iG("loggingDirectives");var B8c={zG7:"EMBEDDED_PLAYER_MODE_UNKNOWN",HKi:"EMBEDDED_PLAYER_MODE_DEFAULT",Pri:"EMBEDDED_PLAYER_MODE_PFP",Cr0:"EMBEDDED_PLAYER_MODE_PFL"};var q5U=new g.iG("channelThumbnailEndpoint");var adU=new g.iG("embeddedPlayerErrorMessageRenderer");var oqU=new g.iG("embeddedPlayerOverlayVideoDetailsRenderer"),H_N=new g.iG("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),mbe=new g.iG("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var WtD=new g.iG("embedsInfoPanelRenderer");var r26=new g.iG("feedbackEndpoint");var u9w=new g.iG("callToActionButtonViewModel");var zZ9=new g.iG("interactionLoggingCommandMetadata");var sbD={XNi:"WEB_DISPLAY_MODE_UNKNOWN",wNO:"WEB_DISPLAY_MODE_BROWSER",MQr:"WEB_DISPLAY_MODE_MINIMAL_UI",JY0:"WEB_DISPLAY_MODE_STANDALONE",Yu3:"WEB_DISPLAY_MODE_FULLSCREEN"};g.U(yE,VW);yE.prototype.getPlayerType=function(){return XX(this,7)}; yE.prototype.MX=function(){return Og(this,19)}; yE.prototype.setVideoId=function(M){return wn(this,19,M)};g.U(dB,VW);g.U(eo,VW);g.U(bG,VW); var PQ7=[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];var n1K=new g.iG("loggingContext");g.U(kS,VW);g.U(WJ,VW);WJ.prototype.MX=function(){return KQ(this,P_(this,SZ,1))}; WJ.prototype.setVideoId=function(M){return uP(this,1,SZ,Ka(M))}; WJ.prototype.getPlaylistId=function(){return KQ(this,P_(this,SZ,2))}; var SZ=[1,2];g.U(kYt,VW);var IJ=new g.iG("changeKeyedMarkersVisibilityCommand");var jXR=new g.iG("changeMarkersVisibilityCommand");var GLb=new g.iG("loadMarkersCommand");var $Vc=new g.iG("suggestedActionDataViewModel");var Lxc=new g.iG("timelyActionViewModel");var S$T=new g.iG("timelyActionsOverlayViewModel");var cPz=new g.iG("productListItemRenderer");var FYR=new g.iG("shoppingOverlayRenderer");var C3D=new g.iG("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var y2C=new g.iG("adFeedbackEndpoint");var dVW=new g.iG("menuEndpoint");var ZTN=new g.iG("phoneDialerEndpoint");var iTd=new g.iG("sendSmsEndpoint");var Lad=new g.iG("copyTextEndpoint");var eZm=new g.iG("shareEndpoint"),bxW=new g.iG("shareEntityEndpoint"),kOm=new g.iG("shareEntityServiceEndpoint"),WY0=new g.iG("webPlayerShareEntityServiceEndpoint");g.db=new g.iG("urlEndpoint");g.N5=new g.iG("watchEndpoint");var OxC=new g.iG("watchPlaylistEndpoint");g.XTe=new g.iG("offlineOrchestrationActionCommand");var A5d=new g.iG("compositeVideoOverlayRenderer");var J2B=new g.iG("miniplayerRenderer");var hjb=new g.iG("paidContentOverlayRenderer");var KY6=new g.iG("playerMutedAutoplayOverlayRenderer"),GOC=new g.iG("playerMutedAutoplayEndScreenRenderer");var TO0=new g.iG("unserializedPlayerResponse"),wT6=new g.iG("unserializedPlayerResponse");var lL0=new g.iG("playlistEditEndpoint");var qt;g.kG=new g.iG("buttonRenderer");qt=new g.iG("toggleButtonRenderer");var Cpe=new g.iG("counterfactualRenderer");var M4W=new g.iG("resolveUrlCommandMetadata");var feC=new g.iG("modifyChannelNotificationPreferenceEndpoint");var cQT=new g.iG("pingingEndpoint");var AuW=new g.iG("unsubscribeEndpoint");g.x_=new g.iG("subscribeButtonRenderer");var Q9C=new g.iG("subscribeEndpoint");var yVb=new g.iG("buttonViewModel");var VTf=new g.iG("qrCodeRenderer");var azf={bS$:"LIVING_ROOM_APP_MODE_UNSPECIFIED",rTY:"LIVING_ROOM_APP_MODE_MAIN",l_7:"LIVING_ROOM_APP_MODE_KIDS",a_Y:"LIVING_ROOM_APP_MODE_MUSIC",Ld8:"LIVING_ROOM_APP_MODE_UNPLUGGED",h$$:"LIVING_ROOM_APP_MODE_GAMING"};var eqU=new g.iG("autoplaySwitchButtonRenderer");var rq,oKc,SE0,gKb;rq=new g.iG("decoratedPlayerBarRenderer");oKc=new g.iG("chapteredPlayerBarRenderer");SE0=new g.iG("multiMarkersPlayerBarRenderer");gKb=new g.iG("chapterRenderer");g.aie=new g.iG("markerRenderer");var rNd=new g.iG("decoratedPlayheadRenderer");var OdU=new g.iG("desktopOverlayConfigRenderer");var qut=new g.iG("engagementPanelSectionListRenderer");var kLf=new g.iG("gatedActionsOverlayViewModel");var siD=new g.iG("heatMarkerRenderer");var mBz=new g.iG("heatmapRenderer");var Ktd=new g.iG("watchToWatchTransitionRenderer");var Ub6=new g.iG("playlistPanelRenderer");var N2W=new g.iG("productUpsellSuggestedActionViewModel");var YlB=new g.iG("suggestedActionTimeRangeTrigger"),IeB=new g.iG("suggestedActionsRenderer"),T27=new g.iG("suggestedActionRenderer");var cNz=new g.iG("timedMarkerDecorationRenderer");var rkt=new g.iG("cipher");var DHb=new g.iG("playerVars");var Du0=new g.iG("playerVars");var HG=g.Kb.window,ERW,t4c,J3=(HG==null?void 0:(ERW=HG.yt)==null?void 0:ERW.config_)||(HG==null?void 0:(t4c=HG.ytcfg)==null?void 0:t4c.data_)||{};g.Gz("yt.config_",J3);var lG=[];var fIb=/^[\w.]*$/,GYU={q:!0,search_query:!0},KBe=String(Qn);var hI=new function(){var M=window.document;this.K=window;this.Z=M}; g.Gz("yt.ads_.signals_.getAdSignalsString",function(M){return NR(L0(M))});g.EB();var Qme="XMLHttpRequest"in g.Kb?function(){return new XMLHttpRequest}:null;var vRB="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.c(vRB);var T8T={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"},Us6="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.c(vRB)),Skb=!1,v66=gy;g.U(Zf,hB);zA.prototype.then=function(M,f,A){return this.K?this.K.then(M,f,A):this.Z===1&&M?(M=M.call(A,this.j))&&typeof M.then==="function"?M:n0(M):this.Z===2&&f?(M=f.call(A,this.j))&&typeof M.then==="function"?M:Pa(M):this}; zA.prototype.getValue=function(){return this.j}; zA.prototype.C9=function(){return this.Z==2}; zA.prototype.$goog_Thenable=!0;var jC=!1;var KH=Mh||fM;var Rhe=/^([0-9\.]+):([0-9\.]+)$/;g.U(o0,hB);o0.prototype.name="BiscottiError";g.U(LM,hB);LM.prototype.name="BiscottiMissingError";var xsT={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},CM=null;var N76=SN(["data-"]),Fed={};var pB6=0,U8=g.Kg?"webkit":$A?"moz":g.UD?"ms":g.uc?"o":"",hb9=g.wD("ytDomDomGetNextId")||function(){return++pB6}; g.Gz("ytDomDomGetNextId",hb9);var blX={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};s8.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; s8.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; s8.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var cD=g.Kb.ytEventsEventsListeners||{};g.Gz("ytEventsEventsListeners",cD);var Ole=g.Kb.ytEventsEventsCounter||{count:0};g.Gz("ytEventsEventsCounter",Ole);var G3f=oH(function(){var M=!1;try{var f=Object.defineProperty({},"passive",{get:function(){M=!0}}); window.addEventListener("test",null,f)}catch(A){}return M}),XL6=oH(function(){var M=!1; try{var f=Object.defineProperty({},"capture",{get:function(){M=!0}}); window.addEventListener("test",null,f)}catch(A){}return M});var mZ;mZ=window;g.W=mZ.ytcsi&&mZ.ytcsi.now?mZ.ytcsi.now:mZ.performance&&mZ.performance.timing&&mZ.performance.now&&mZ.performance.timing.navigationStart?function(){return mZ.performance.timing.navigationStart+mZ.performance.now()}:function(){return(new Date).getTime()};g.pm(xJ,g.y);xJ.prototype.B=function(M){M.K===void 0&&k3D(M);var f=M.K;M.Z===void 0&&k3D(M);this.K=new g.r2(f,M.Z)}; xJ.prototype.Nt=function(){return this.K||new g.r2}; xJ.prototype.Er=function(){if(this.K){var M=(0,g.W)();if(this.C!=0){var f=this.G,A=this.K,Q=f.x-A.x;f=f.y-A.y;Q=Math.sqrt(Q*Q+f*f)/(M-this.C);this.Z[this.j]=Math.abs((Q-this.N)/this.N)>.5?1:0;for(A=f=0;A<4;A++)f+=this.Z[A]||0;f>=3&&this.W();this.N=Q}this.C=M;this.G=this.K;this.j=(this.j+1)%4}}; xJ.prototype.u8=function(){g.qR(this.X);g.g$(this.KJ)};g.U(ZD,g.y);ZD.prototype.J=function(M,f,A,Q,N){A=g.F(g.f0((0,g.IR)(A,Q||this.Z9)));A={target:M,name:f,callback:A};var Y;N&&G3f()&&(Y={passive:!0});M.addEventListener(f,A.callback,Y);this.W.push(A);return A}; ZD.prototype.Hv=function(M){for(var f=0;f=e.zG)||q.K.version>=G||q.K.objectStoreNames.contains(z)||R.push(z)}E=R;if(E.length===0){a.CJ(5);break}t=Object.keys(A.options.Qt); v=D.objectStoreNames();if(A.NA.options.version+1)throw h.close(),A.j=!1,$Yt(A,S);return a.return(h);case 8:throw f(), p instanceof Error&&!g.mE("ytidb_async_stack_killswitch")&&(p.stack=p.stack+"\n"+I.substring(I.indexOf("\n")+1)),sL(p,A.name,"",(L=A.options.version)!=null?L:-1);}})} function f(){A.K===Q&&(A.K=void 0)} var A=this;if(!this.j)throw $Yt(this);if(this.K)return this.K;var Q,N={blocking:function(Y){Y.close()}, closed:f,caJ:f,upgrade:this.options.upgrade};return this.K=Q=M()};var X3=new WY("YtIdbMeta",{Qt:{databases:{zG:1}},upgrade:function(M,f){f(1)&&g.rX(M,"databases",{keyPath:"actualName"})}});var lV,wX=new function(){}(new function(){});new g.LB;g.U(AL,WY);AL.prototype.Z=function(M,f,A){A=A===void 0?{}:A;return(this.options.shared?Xve:O5b)(M,f,Object.assign({},A))}; AL.prototype.delete=function(M){M=M===void 0?{}:M;return(this.options.shared?wvT:JZD)(this.name,M)};var HgK={},Moe=g.Qf("ytGcfConfig",{Qt:(HgK.coldConfigStore={zG:1},HgK.hotConfigStore={zG:1},HgK),shared:!1,upgrade:function(M,f){f(1)&&(g.$k(g.rX(M,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.$k(g.rX(M,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.U(YH,g.y);YH.prototype.u8=function(){for(var M=g.V(this.Z),f=M.next();!f.done;f=M.next()){var A=this.K;f=A.indexOf(f.value);f>=0&&A.splice(f,1)}this.Z.length=0;g.y.prototype.u8.call(this)};vy.prototype.gM=function(M){this.hotHashData=M;g.Gz("yt.gcf.config.hotHashData",this.hotHashData||null)};var muR=typeof TextEncoder!=="undefined"?new TextEncoder:null,erU=muR?function(M){return muR.encode(M)}:function(M){M=g.fa(M); for(var f=new Uint8Array(M.length),A=0;A=f?!1:!0}; g.C.DW=function(){var M=this;if(!$H(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.hg.i_("QUEUED",this.Dk).then(function(f){f&&!M.aP(f,M.D7)?M.BN.aY(function(){return g.n(function(A){if(A.Z==1)return f.id===void 0?A.CJ(2):g.r(A,M.hg.nz(f.id,M.Dk),2);M.DW();g.qc(A)})}):M.UC.Ag()&&M.Fr()})};var dQ;var q8f={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,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};var cu6={},Ty0=g.Qf("ServiceWorkerLogsDatabase",{Qt:(cu6.SWHealthLog={zG:1},cu6),shared:!0,upgrade:function(M,f){f(1)&&g.$k(g.rX(M,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var kH={},hG0=0;var Wy;XO.prototype.requestComplete=function(M,f){f&&(this.Z=!0);M=this.removeParams(M);this.K.get(M)||this.K.set(M,f)}; XO.prototype.isEndpointCFR=function(M){M=this.removeParams(M);return(M=this.K.get(M))?!1:M===!1&&this.Z?!0:null}; XO.prototype.removeParams=function(M){return M.split("?")[0]}; XO.prototype.removeParams=XO.prototype.removeParams;XO.prototype.isEndpointCFR=XO.prototype.isEndpointCFR;XO.prototype.requestComplete=XO.prototype.requestComplete;XO.getInstance=JL;g.U(Kr,g.Lz);g.C=Kr.prototype;g.C.Ag=function(){return this.K.Ag()}; g.C.SF=function(M){this.K.K=M}; g.C.Vv=function(){var M=window.navigator.onLine;return M===void 0?!0:M}; g.C.SY=function(){this.Z=!0}; g.C.listen=function(M,f){return this.K.listen(M,f)}; g.C.KR=function(M){M=eF(this.K,M);M.then(function(f){g.mE("use_cfr_monitor")&&JL().requestComplete("generate_204",f)}); return M}; Kr.prototype.sendNetworkCheckRequest=Kr.prototype.KR;Kr.prototype.listen=Kr.prototype.listen;Kr.prototype.enableErrorFlushing=Kr.prototype.SY;Kr.prototype.getWindowStatus=Kr.prototype.Vv;Kr.prototype.networkStatusHint=Kr.prototype.SF;Kr.prototype.isNetworkAvailable=Kr.prototype.Ag;Kr.getInstance=oyT;g.U(g.G8,g.Lz);g.G8.prototype.Ag=function(){var M=g.wD("yt.networkStatusManager.instance.isNetworkAvailable");return M?M.bind(this.Z)():!0}; g.G8.prototype.SF=function(M){var f=g.wD("yt.networkStatusManager.instance.networkStatusHint").bind(this.Z);f&&f(M)}; g.G8.prototype.KR=function(M){var f=this,A;return g.n(function(Q){A=g.wD("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(f.Z);return g.mE("skip_network_check_if_cfr")&&JL().isEndpointCFR("generate_204")?Q.return(new Promise(function(N){var Y;f.SF(((Y=window.navigator)==null?void 0:Y.onLine)||!0);N(f.Ag())})):A?Q.return(A(M)):Q.return(!0)})};var wQ;g.U(lg,FO);lg.prototype.writeThenSend=function(M,f){f||(f={});f=fn(M,f);g.l$()||(this.K=!1);FO.prototype.writeThenSend.call(this,M,f)}; lg.prototype.sendThenWrite=function(M,f,A){f||(f={});f=fn(M,f);g.l$()||(this.K=!1);FO.prototype.sendThenWrite.call(this,M,f,A)}; lg.prototype.sendAndWrite=function(M,f){f||(f={});f=fn(M,f);g.l$()||(this.K=!1);FO.prototype.sendAndWrite.call(this,M,f)}; lg.prototype.awaitInitialization=function(){return this.j.promise};var qf6=g.Kb.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Gz("ytNetworklessLoggingInitializationOptions",qf6);g.AJ.prototype.isReady=function(){!this.config_&&CGz()&&(this.config_=g.hL());return!!this.config_};var Rb6,Yr,Tm;Rb6=g.Kb.ytPubsubPubsubInstance||new g.x2;Yr=g.Kb.ytPubsubPubsubSubscribedKeys||{};Tm=g.Kb.ytPubsubPubsubTopicToKeys||{};g.IP=g.Kb.ytPubsubPubsubIsSynchronous||{};g.x2.prototype.subscribe=g.x2.prototype.subscribe;g.x2.prototype.unsubscribeByKey=g.x2.prototype.DI;g.x2.prototype.publish=g.x2.prototype.publish;g.x2.prototype.clear=g.x2.prototype.clear;g.Gz("ytPubsubPubsubInstance",Rb6);g.Gz("ytPubsubPubsubTopicToKeys",Tm);g.Gz("ytPubsubPubsubIsSynchronous",g.IP); g.Gz("ytPubsubPubsubSubscribedKeys",Yr);var gyU={};g.U(qF,g.y);qF.prototype.append=function(M){if(!this.Z)throw Error("This does not support the append operation");M=M.iI();this.iI().appendChild(M)}; g.U(HU,qF);HU.prototype.iI=function(){return this.K};g.U(mp,g.y);mp.prototype.onTouchStart=function(M){this.W=!0;this.Z=M.touches.length;this.K.isActive()&&(this.K.stop(),this.N=!0);M=M.touches;this.G=xR6(this,M)||M.length!=1;var f=M.item(0);this.G||!f?this.B=this.X=Infinity:(this.X=f.clientX,this.B=f.clientY);for(f=this.j.length=0;f=0)}if(f||M&&Math.pow(M.clientX-this.X,2)+Math.pow(M.clientY-this.B,2)>25)this.C=!0}; mp.prototype.onTouchEnd=function(M){var f=M.changedTouches;f&&this.W&&this.Z==1&&!this.C&&!this.N&&!this.G&&xR6(this,f)&&(this.Er=M,this.K.start());this.Z=M.touches.length;this.Z===0&&(this.C=this.W=!1,this.j.length=0);this.N=!1};var sC=Date.now().toString();var im={};var PU=Symbol("injectionDeps");Zy.prototype.toString=function(){return"InjectionToken("+this.name+")"}; uKb.prototype.resolve=function(M){return M instanceof rk?nn(this,M.key,[],!0):nn(this,M,[])};var jS;var FH=window;var bm=g.mE("web_enable_lifecycle_monitoring")&&yH()!==0,yID=g.mE("web_enable_lifecycle_monitoring");jdd.prototype.cancel=function(){for(var M=g.V(this.K),f=M.next();!f.done;f=M.next())f=f.value,f.jobId===void 0||f.Gm||this.scheduler.i5(f.jobId),f.Gm=!0;this.Z.resolve()};g.C=kr.prototype;g.C.install=function(M){this.plugins.push(M);return this}; g.C.uninstall=function(){var M=this;g.jN.apply(0,arguments).forEach(function(f){f=M.plugins.indexOf(f);f>-1&&M.plugins.splice(f,1)})}; g.C.transition=function(M,f){var A=this;bm&&Plz(this.state);var Q=this.transitions.find(function(Y){return Array.isArray(Y.from)?Y.from.find(function(I){return I===A.state&&Y.to===M}):Y.from===A.state&&Y.to===M}); if(Q){this.Z&&($Rb(this.Z),this.Z=void 0);dRt(this,M,f);this.state=M;bm&&dk(this.state);Q=Q.action.bind(this);var N=this.plugins.filter(function(Y){return Y[M]}).map(function(Y){return Y[M]}); Q(FEX(this,N),f)}else throw Error("no transition specified from "+this.state+" to "+M);}; g.C.Nox=function(M){var f=g.jN.apply(1,arguments);g.Nr();for(var A=g.V(M),Q=A.next(),N={};!Q.done;N={V5:void 0},Q=A.next())N.V5=Q.value,tbX(function(Y){return function(){OC(Y.V5.name);JJ(function(){return Y.V5.callback.apply(Y.V5,g.c(f))}); XH(Y.V5.name)}}(N))}; g.C.GjB=function(M){var f=g.jN.apply(1,arguments),A,Q,N,Y;return g.n(function(I){I.Z==1&&(g.Nr(),A=g.V(M),Q=A.next(),N={});if(I.Z!=3){if(Q.done)return I.CJ(0);N.EA=Q.value;N.aV=void 0;Y=function(D){return function(){OC(D.EA.name);var E=JJ(function(){return D.EA.callback.apply(D.EA,g.c(f))}); U_(E)?D.aV=g.mE("web_lifecycle_error_handling_killswitch")?E.then(function(){XH(D.EA.name)}):E.then(function(){XH(D.EA.name)},function(t){ny0(t); XH(D.EA.name)}):XH(D.EA.name)}}(N); tbX(Y);return N.aV?g.r(I,N.aV,3):I.CJ(3)}N={EA:void 0,aV:void 0};Q=A.next();return I.CJ(2)})}; g.C.Op=function(M){var f=g.jN.apply(1,arguments),A=this,Q=M.map(function(N){return{f9:function(){OC(N.name);JJ(function(){return N.callback.apply(N,g.c(f))}); XH(N.name)}, priority:WU(A,N)}}); Q.length&&(this.Z=new jdd(Q))}; g.Tz.Object.defineProperties(kr.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Gm;g.U(Kn,kr);Kn.prototype.N=function(M,f){var A=this;this.K=g.AO(0,function(){A.currentState==="application_navigating"&&A.transition("none")},5E3); M(f==null?void 0:f.event)}; Kn.prototype.G=function(M,f){this.K&&(g.k6.i5(this.K),this.K=null);M(f==null?void 0:f.event)};var Hf=[];g.Gz("yt.logging.transport.getScrapedGelPayloads",function(){return Hf});wk.prototype.storePayload=function(M,f){M=lm(M);this.store[M]?this.store[M].push(f):(this.Z={},this.store[M]=[f]);this.K++;g.mE("more_accurate_gel_parser")&&(f=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(f));return M}; wk.prototype.smartExtractMatchingEntries=function(M){if(!M.keys.length)return[];for(var f=f7(this,M.keys.splice(0,1)[0]),A=[],Q=0;Q=0){Q=!1;break a}}Q=!0}Q&&(f=eZ(f))&&this.Dd(f)}}; g.C.bC=function(M){return M}; g.C.onTouchStart=function(M){this.jk.onTouchStart(M)}; g.C.onTouchMove=function(M){this.jk.onTouchMove(M)}; g.C.onTouchEnd=function(M){if(this.jk)this.jk.onTouchEnd(M)}; g.C.Dd=function(M){this.layoutId?this.Or.executeCommand(M,this.layoutId):(M=new g.GX("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.jZ(M))}; g.C.createServerVe=function(M,f){this.api.createServerVe(M,this);this.api.setTrackingParams(M,f)}; g.C.logVisibility=function(M,f){this.api.hasVe(M)&&this.api.logVisibility(M,f,this.interactionLoggingClientData)}; g.C.u8=function(){this.clear(null);this.Hv(this.b8);for(var M=g.V(this.P7),f=M.next();!f.done;f=M.next())this.Hv(f.value);g.Ci.prototype.u8.call(this)};g.U(jK,Uv); jK.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);this.K=f;if(f.text==null&&f.icon==null)g.$b(Error("ButtonRenderer did not have text or an icon set."));else{switch(f.style||null){case "STYLE_UNKNOWN":M="ytp-ad-button-link";break;default:M=null}M!=null&&g.tZ(this.element,M);f.text!=null&&(M=g.ae(f.text),g.V1(M)||(this.element.setAttribute("aria-label",M),this.j=new g.Ci({S:"span",Y:"ytp-ad-button-text",Ix:M}),g.d(this,this.j),this.j.pJ(this.element)));f.accessibilityData&&f.accessibilityData.accessibilityData&& f.accessibilityData.accessibilityData.label&&!g.V1(f.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",f.accessibilityData.accessibilityData.label);f.icon!=null&&(f=ni(f.icon,this.C),f!=null&&(this.Z=new g.Ci({S:"span",Y:"ytp-ad-button-icon",L:[f]}),g.d(this,this.Z)),this.G?NQ(this.element,this.Z.element,0):this.Z.pJ(this.element))}}; jK.prototype.clear=function(){this.hide()}; jK.prototype.onClick=function(M){Uv.prototype.onClick.call(this,M);M=g.V(nkD(this));for(var f=M.next();!f.done;f=M.next())f=f.value,this.layoutId?this.Or.executeCommand(f,this.layoutId):g.jZ(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.U($o,g.y);$o.prototype.u8=function(){this.Z&&g.g$(this.Z);this.K.clear();F8=null;g.y.prototype.u8.call(this)}; $o.prototype.register=function(M,f){f&&this.K.set(M,f)}; var F8=null;g.U(eK,Uv); eK.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);M=f.hoverText||null;f=f.button&&g.b(f.button,g.kG)||null;f==null?g.jZ(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new jK(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,void 0,void 0,void 0,void 0,this.j),g.d(this,this.button),this.button.init(tS("button"),f,this.macros),M&&this.button.element.setAttribute("aria-label",g.ae(M)),this.button.pJ(this.element),this.B&&!g.ED(this.button.element, "ytp-ad-clickable")&&g.tZ(this.button.element,"ytp-ad-clickable"),this.j&&g.tZ(this.button.element,"ytp-ad-hover-text-button--clean-player"),M&&(this.Z=new g.Ci({S:"div",Y:"ytp-ad-hover-text-container"}),this.G&&(f=new g.Ci({S:"div",Y:"ytp-ad-hover-text-callout"}),f.pJ(this.Z.element),g.d(this,f)),g.d(this,this.Z),this.Z.pJ(this.element),f=yU(M),NQ(this.Z.element,f,0)),this.show())}; eK.prototype.hide=function(){this.button&&this.button.hide();this.Z&&this.Z.hide();Uv.prototype.hide.call(this)}; eK.prototype.show=function(){this.button&&this.button.show();Uv.prototype.show.call(this)};g.U(ko,Uv); ko.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);A=(M=f.thumbnail)&&bD(M)||"";g.V1(A)?Math.random()<.01&&g.$b(Error("Found AdImage without valid image URL")):(this.K?g.ji(this.element,"backgroundImage","url("+A+")"):Ju(this.element,{src:A}),Ju(this.element,{alt:M&&M.accessibility&&M.accessibility.label||""}),f&&f.adRendererCommands&&f.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; ko.prototype.clear=function(){this.hide()};g.U(WO,Uv);g.C=WO.prototype;g.C.hide=function(){Uv.prototype.hide.call(this);this.j&&this.j.focus()}; g.C.show=function(){this.j=document.activeElement;Uv.prototype.show.call(this);this.C.focus()}; g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);this.Z=f;f.dialogMessages||f.title!=null?f.confirmLabel==null?g.jZ(Error("ConfirmDialogRenderer.confirmLabel was not set.")):f.cancelLabel==null?g.jZ(Error("ConfirmDialogRenderer.cancelLabel was not set.")):yOX(this,f):g.jZ(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.C.clear=function(){g.u$(this.K);this.hide()}; g.C.Qp=function(){this.hide()}; g.C.qW=function(){var M=this.Z.cancelEndpoint;M&&(this.layoutId?this.Or.executeCommand(M,this.layoutId):g.jZ(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.C.dK=function(){var M=this.Z.confirmNavigationEndpoint||this.Z.confirmEndpoint;M&&(this.layoutId?this.Or.executeCommand(M,this.layoutId):g.jZ(Error("Missing layoutId for confirm dialog.")));this.hide()};g.U(Ov,Uv);g.C=Ov.prototype; g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);this.j=f;if(f.defaultText==null&&f.defaultIcon==null)g.jZ(Error("ToggleButtonRenderer must have either text or icon set."));else if(f.defaultIcon==null&&f.toggledIcon!=null)g.jZ(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(f.style){switch(f.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":M="ytp-ad-toggle-button-default-style";break;default:M=null}M!=null&&g.tZ(this.C,M)}M={};f.defaultText? (A=g.ae(f.defaultText),g.V1(A)||(M.buttonText=A,this.api.T().experiments.X3("a11y_h5_associate_survey_question")||this.K.setAttribute("aria-label",A),this.api.T().experiments.X3("fix_h5_toggle_button_a11y")&&this.Z.setAttribute("aria-label",A))):g.KY(this.z0,!1);f.defaultTooltip&&(M.tooltipText=f.defaultTooltip,this.K.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",f.defaultTooltip));f.defaultIcon?(A=ni(f.defaultIcon),this.updateValue("untoggledIconTemplateSpec",A),f.toggledIcon?(this.KJ= !0,A=ni(f.toggledIcon),this.updateValue("toggledIconTemplateSpec",A)):(g.KY(this.B,!0),g.KY(this.G,!1)),g.KY(this.K,!1)):g.KY(this.Z,!1);g.MV(M)||this.update(M);f.isToggled&&(g.tZ(this.C,"ytp-ad-toggle-button-toggled"),this.toggleButton(f.isToggled));X8(this);this.J(this.element,"change",this.P3);this.show()}}; g.C.onClick=function(M){this.P7.length>0&&(this.toggleButton(!this.isToggled()),this.P3());Uv.prototype.onClick.call(this,M)}; g.C.P3=function(){g.Sb(this.C,"ytp-ad-toggle-button-toggled",this.isToggled());for(var M=g.V(dre(this,this.isToggled())),f=M.next();!f.done;f=M.next())f=f.value,this.layoutId?this.Or.executeCommand(f,this.layoutId):g.jZ(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);X8(this)}; g.C.clear=function(){this.hide()}; g.C.toggleButton=function(M){g.Sb(this.C,"ytp-ad-toggle-button-toggled",M);this.K.checked=M;X8(this)}; g.C.isToggled=function(){return this.K.checked};g.U(JS,ZD);JS.prototype.G=function(M){if(Array.isArray(M)){M=g.V(M);for(var f=M.next();!f.done;f=M.next())f=f.value,f instanceof e5f&&this.C(f)}};g.U(Ki,Uv);g.C=Ki.prototype;g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);f.reasons?f.confirmLabel==null?g.jZ(Error("AdFeedbackRenderer.confirmLabel was not set.")):(f.cancelLabel==null&&g.$b(Error("AdFeedbackRenderer.cancelLabel was not set.")),f.title==null&&g.$b(Error("AdFeedbackRenderer.title was not set.")),OH0(this,f)):g.jZ(Error("AdFeedbackRenderer.reasons were not set."))}; g.C.clear=function(){BD(this.G);BD(this.B);this.C.length=0;this.hide()}; g.C.hide=function(){this.K&&this.K.hide();this.Z&&this.Z.hide();Uv.prototype.hide.call(this);this.j&&this.j.focus()}; g.C.show=function(){this.K&&this.K.show();this.Z&&this.Z.show();this.j=document.activeElement;Uv.prototype.show.call(this);this.G.focus()}; g.C.Jo=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.C.gzN=function(){this.hide()}; Go.prototype.iI=function(){return this.K.element}; Go.prototype.getCommand=function(){return this.Z}; Go.prototype.isChecked=function(){return this.j.checked};g.U(wb,WO);wb.prototype.Qp=function(M){WO.prototype.Qp.call(this,M);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; wb.prototype.qW=function(M){WO.prototype.qW.call(this,M);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; wb.prototype.dK=function(M){WO.prototype.dK.call(this,M);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.U(lD,Uv);g.C=lD.prototype; g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);this.G=f;if(f.dialogMessage==null&&f.title==null)g.jZ(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{f.confirmLabel==null&&g.$b(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(M=f.closeOverlayRenderer&&g.b(f.closeOverlayRenderer,g.kG)||null)this.K=new jK(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.d(this,this.K),this.K.init(tS("button"),M,this.macros),this.K.pJ(this.element);f.title&&(M=g.ae(f.title),this.updateValue("title",M));if(f.adReasons)for(M=f.adReasons,A=0;A=this.fJ?(this.KJ.hide(),this.ox=!0,this.publish("i")):this.j&&this.j.isTemplated()&&(M=Math.max(0,Math.ceil((this.fJ-M)/1E3)),M!=this.w_&&(AF(this.j,{TIME_REMAINING:String(M)}),this.w_=M)))}};g.U(Ea,Q2);g.C=Ea.prototype; g.C.init=function(M,f,A){Q2.prototype.init.call(this,M,f,A);if(f.image&&f.image.thumbnail)if(f.headline)if(f.description)if((M=f.actionButton&&g.b(f.actionButton,g.kG))&&M.navigationEndpoint){var Q=this.api.getVideoData(2);if(Q!=null)if(f.image&&f.image.thumbnail){var N=f.image.thumbnail.thumbnails;N!=null&&N.length>0&&g.V1(g.a9(N[0].url))&&(N[0].url=Q.profilePicture)}else g.$b(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.j.init(tS("ad-image"),f.image,A);this.G.init(tS("ad-text"), f.headline,A);this.C.init(tS("ad-text"),f.description,A);this.Z.init(tS("button"),M,A);A=w8(this.Z.element);G3(this.Z.element,A+" This link opens in new tab");this.KJ=M.navigationEndpoint;this.api.j5()||this.show();this.api.T().V("enable_larger_flyout_cta_on_desktop")&&(this.H7("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.H7("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.H7("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.H7("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.H7("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.H7("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.Z.element.classList.add("ytp-flyout-cta-action-button-large"),this.Z.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.H7("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.pL.bind(this));this.z0=f.startMs||0;Ni(this)}else g.jZ(Error("FlyoutCtaRenderer has no valid action button."));else g.jZ(Error("FlyoutCtaRenderer has no description AdText."));else g.jZ(Error("FlyoutCtaRenderer has no headline AdText."));else g.$b(Error("FlyoutCtaRenderer has no image."))}; g.C.onClick=function(M){Q2.prototype.onClick.call(this,M);this.api.pauseVideo();!g.IH(this.Z.element,M.target)&&this.KJ&&(this.layoutId?this.Or.executeCommand(this.KJ,this.layoutId):g.jZ(Error("Missing layoutId for flyout cta.")))}; g.C.lS=function(){if(this.K){var M=this.K.getProgressState();(M&&M.current||this.fJ)&&1E3*M.current>=this.z0&&(YZ(this),g.p5(this.element,"ytp-flyout-cta-inactive"),this.Z.element.removeAttribute("tabIndex"))}}; g.C.vz=function(){this.clear()}; g.C.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.pL.bind(this))}; g.C.show=function(){this.Z&&this.Z.show();Q2.prototype.show.call(this)}; g.C.hide=function(){this.Z&&this.Z.hide();Q2.prototype.hide.call(this)}; g.C.pL=function(M){M=="hidden"?this.show():this.hide()};g.U(tF,Uv);g.C=tF.prototype; g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);this.K=f;if(this.K.rectangle)for(M=this.K.likeButton&&g.b(this.K.likeButton,qt),f=this.K.dislikeButton&&g.b(this.K.dislikeButton,qt),this.j.init(tS("toggle-button"),M,A),this.Z.init(tS("toggle-button"),f,A),this.J(this.element,"change",this.Se),this.C.show(100),this.show(),A=g.V(this.K&&this.K.impressionCommands||[]),M=A.next();!M.done;M=A.next())M=M.value,this.layoutId?this.Or.executeCommand(M,this.layoutId):g.jZ(Error("Missing layoutId for instream user sentiment."))}; g.C.clear=function(){this.hide()}; g.C.hide=function(){this.j.hide();this.Z.hide();Uv.prototype.hide.call(this)}; g.C.show=function(){this.j.show();this.Z.show();Uv.prototype.show.call(this)}; g.C.Se=function(){Zzc(this.element,"ytp-ad-instream-user-sentiment-selected");this.K.postMessageAction&&this.api.T0("onYtShowToast",this.K.postMessageAction);this.C.hide()}; g.C.onClick=function(M){this.P7.length>0&&this.Se();Uv.prototype.onClick.call(this,M)};g.U(v2,g.y);g.C=v2.prototype;g.C.u8=function(){this.reset();g.y.prototype.u8.call(this)}; g.C.reset=function(){g.u$(this.C);this.G=!1;this.K&&this.K.stop();this.N.stop();this.j&&(this.j=!1,this.W.play())}; g.C.start=function(){this.reset();this.C.J(this.Z,"mouseover",this.fL,this);this.C.J(this.Z,"mouseout",this.Ar,this);this.Er&&(this.C.J(this.Z,"focusin",this.fL,this),this.C.J(this.Z,"focusout",this.Ar,this));this.K?this.K.start():(this.G=this.j=!0,g.ji(this.Z,{opacity:this.B}))}; g.C.fL=function(){this.j&&(this.j=!1,this.W.play());this.N.stop();this.K&&this.K.stop()}; g.C.Ar=function(){this.G?this.N.start():this.K&&this.K.start()}; g.C.V6=function(){this.j||(this.j=!0,this.X.play(),this.G=!0)};var YxD=[new pJ("b.f_",!1,0),new pJ("j.s_",!1,2),new pJ("r.s_",!1,4),new pJ("e.h_",!1,6),new pJ("i.s_",!0,8),new pJ("s.t_",!1,10),new pJ("p.h_",!1,12),new pJ("s.i_",!1,14),new pJ("f.i_",!1,16),new pJ("a.b_",!1,18),new pJ("a.o_",!1),new pJ("g.o_",!1,22),new pJ("p.i_",!1,24),new pJ("p.m_",!1),new pJ("n.k_",!0,20),new pJ("i.f_",!1),new pJ("a.s_",!0),new pJ("m.c_",!1),new pJ("n.h_",!1,26),new pJ("o.p_",!1),new pJ("m.p_",!0,28),new pJ("o.a_",!1),new pJ("d.p_",!1)].reduce(function(M,f){M[f.Z]=f;return M}, {});g.U(a1,Q2);g.C=a1.prototype; g.C.init=function(M,f,A){Q2.prototype.init.call(this,M,f,A);this.KJ=f;(this.z0=TQe(this))&&g.$b(Error("hasAdControlInClickCommands_ is true."));if(!f||g.MV(f))g.jZ(Error("SkipButtonRenderer was not specified or empty."));else if(!f.message||g.MV(f.message))g.jZ(Error("SkipButtonRenderer.message was not specified or empty."));else{M=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};f=ni(M);f==null?g.jZ(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+M.iconType+".")): (this.j=new g.Ci({S:"button",Ai:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],L:[{S:"span",Y:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",L:[f]}]}),g.d(this,this.j),this.j.pJ(this.C.element),this.Z=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,"ytp-ad-skip-button-text"),this.G&&this.Z.element.classList.add("ytp-ad-skip-button-text-centered"),this.Z.init(tS("ad-text"),this.KJ.message,A),g.d(this,this.Z),NQ(this.j.element,this.Z.element, 0));var Q=Q===void 0?null:Q;A=this.api.T();!(this.P7.length>0)&&A.Z&&(rt?0:"ontouchstart"in document.documentElement&&(JBb()||mG()))&&(this.Hv(this.b8),Q&&this.Hv(Q),this.P7=[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.C.clear=function(){this.fJ.reset();this.hide()}; g.C.hide=function(){this.C.hide();this.Z&&this.Z.hide();YZ(this);Q2.prototype.hide.call(this)}; g.C.onClick=function(M){if(this.j!=null){if(M){var f=M||window.event;f.returnValue=!1;f.preventDefault&&f.preventDefault()}var A;if(QVT(M,{contentCpn:((A=this.api.getVideoData(1))==null?void 0:A.clientPlaybackNonce)||""})===0)this.api.T0("onAbnormalityDetected");else if(Q2.prototype.onClick.call(this,M),this.publish("j"),this.api.T0("onAdSkip"),this.ox||!this.z0)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.C.bC=function(M){if(!this.ox)return this.z0&&o1("SkipButton click commands not pruned while ALC exist"),M;var f,A=(f=g.b(M,g.qi))==null?void 0:f.commands;if(!A)return M;M=[];for(f=0;f=this.G&&Dne(this,!0)};g.U(mg,jK);mg.prototype.init=function(M,f,A){jK.prototype.init.call(this,M,f,A);M=!1;f.text!=null&&(M=g.ae(f.text),M=!g.V1(M));M?f.navigationEndpoint==null?g.$b(Error("No visit advertiser clickthrough provided in renderer,")):f.style!=="STYLE_UNKNOWN"?g.$b(Error("Button style was not a link-style type in renderer,")):this.show():g.$b(Error("No visit advertiser text was present in the renderer."))};g.U(sa,Uv); sa.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);M=f.text;g.V1(VU(M))?g.$b(Error("SimpleAdBadgeRenderer has invalid or empty text")):(M&&M.text&&(f=M.text,this.j&&!this.Z&&(f=this.api.T(),f=M.text+" "+(f&&f.Z?"\u2022":"\u00b7")),f={text:f,isTemplated:M.isTemplated},M.style&&(f.style=M.style),M.targetId&&(f.targetId=M.targetId),M=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),M.init(tS("simple-ad-badge"),f,A),M.pJ(this.element),g.d(this,M)),this.show())}; sa.prototype.clear=function(){this.hide()};g.U(c2,vO);g.U(R1,g.pi);g.C=R1.prototype;g.C.Ls=function(){return this.durationMs}; g.C.stop=function(){this.K&&this.DK.Hv(this.K)}; g.C.z_=function(M){this.Z={seekableStart:0,seekableEnd:this.durationMs/1E3,current:M.current};this.publish("h")}; g.C.getProgressState=function(){return this.Z}; g.C.HH=function(M){g.V2(M,2)&&this.publish("g")};g.U(gA,g.pi);g.C=gA.prototype;g.C.Ls=function(){return this.durationMs}; g.C.start=function(){this.K||(this.K=!0,this.M3.start())}; g.C.stop=function(){this.K&&(this.K=!1,this.M3.stop())}; g.C.z_=function(){this.zQ+=100;var M=!1;this.zQ>this.durationMs&&(this.zQ=this.durationMs,this.M3.stop(),M=!0);this.Z={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.zQ/1E3};this.publish("h");M&&this.publish("g")}; g.C.getProgressState=function(){return this.Z};g.U(xZ,Q2);g.C=xZ.prototype;g.C.init=function(M,f,A){Q2.prototype.init.call(this,M,f,A);var Q;if(f==null?0:(Q=f.templatedCountdown)==null?0:Q.templatedAdText){M=f.templatedCountdown.templatedAdText;if(!M.isTemplated){g.$b(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.Z=new fJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);this.Z.init(tS("ad-text"),M,{});this.Z.pJ(this.element);g.d(this,this.Z)}this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){YZ(this);Q2.prototype.hide.call(this)}; g.C.vz=function(){this.hide()}; g.C.lS=function(){if(this.K!=null){var M=this.K.getProgressState();if(M!=null&&M.current!=null&&this.Z){var f=this.K instanceof R1?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:M.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.K instanceof gA?M.seekableEnd:this.api.getDuration(2,!1);M=M.current;var A,Q,N=((A=this.api.getVideoData())==null?0:(Q=A.G_)==null?0:Q.call(A))?Math.max(f-M,0):f-M;AF(this.Z,{FORMATTED_AD_DURATION_REMAINING:String(g.B2(N)), TIME_REMAINING:String(Math.ceil(N))})}}}; g.C.show=function(){Ni(this);Q2.prototype.show.call(this)};g.U(Z4,fJ);Z4.prototype.onClick=function(M){fJ.prototype.onClick.call(this,M);this.api.onAdUxClicked(this.componentType)};g.U(uM,Uv);uM.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(M=f.content){g.TD(this.element,M);var A,Q;f=((A=f.interaction)==null?void 0:(Q=A.accessibility)==null?void 0:Q.label)||M;this.element.setAttribute("aria-label",f)}else g.jZ(Error("AdSimpleAttributedString does not have text content"))}; uM.prototype.clear=function(){this.hide()}; uM.prototype.onClick=function(M){Uv.prototype.onClick.call(this,M)};g.U(z_,Uv); z_.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});(M=f.label)&&M.content&&!g.V1(M.content)?(this.adBadgeText.init(tS("ad-simple-attributed-string"),new rA(M)),(f=f.adPodIndex)&&f.content&&!g.V1(f.content)&&(this.K=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),this.K.pJ(this.element),g.d(this,this.K),this.K.element.classList.add("ytp-ad-badge__pod-index"),this.K.init(tS("ad-simple-attributed-string"),new rA(f))),this.element.classList.add(this.Z?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.jZ(Error("No label is returned in AdBadgeViewModel."))}; z_.prototype.show=function(){this.adBadgeText.show();var M;(M=this.K)==null||M.show();Uv.prototype.show.call(this)}; z_.prototype.hide=function(){this.adBadgeText.hide();var M;(M=this.K)==null||M.hide();Uv.prototype.hide.call(this)};g.U(P2,Uv);P2.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});(M=f.adPodIndex)&&M.content&&!g.V1(M.content)&&(this.K=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),this.K.pJ(this.element),g.d(this,this.K),this.K.init(tS("ad-simple-attributed-string"),new rA(M)),f.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()}; P2.prototype.show=function(){var M;(M=this.K)==null||M.show();Uv.prototype.show.call(this)}; P2.prototype.hide=function(){var M;(M=this.K)==null||M.hide();Uv.prototype.hide.call(this)};g.U(nJ,Uv); nJ.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(f!=null&&f.text){var A;if(((A=f.text)==null?0:A.content)&&!g.V1(f.text.content)){this.K=new g.Ci({S:"div",Y:"ytp-ad-disclosure-banner__text",Ix:f.text.content});g.d(this,this.K);this.K.pJ(this.element);var Q,N;M=((Q=f.interaction)==null?void 0:(N=Q.accessibility)==null?void 0:N.label)||f.text.content;this.element.setAttribute("aria-label",M);var Y;if((Y=f.interaction)==null?0:Y.onTap)this.Z=new g.Ci({S:"div",Y:"ytp-ad-disclosure-banner__chevron",L:[g.cO()]}), g.d(this,this.Z),this.Z.pJ(this.element);this.show()}}else g.jZ(Error("No banner text found in AdDisclosureBanner."))}; nJ.prototype.clear=function(){this.hide()};jI.prototype.getLength=function(){return this.K-this.Z};g.U(FV,g.Ci);FV.prototype.z_=function(){var M=this.Z.getProgressState(),f=M.seekableEnd;this.api.getPresentingPlayerType()===2&&(f=this.j?this.j/1E3:M.seekableEnd);M=$Z(new jI(M.seekableStart,f),M.current,0);this.progressBar.style.width=M*100+"%"}; FV.prototype.onStateChange=function(){g.eX(this.api.T())||(this.api.getPresentingPlayerType()===2?this.K===-1&&(this.show(),this.K=this.Z.subscribe("h",this.z_,this),this.z_()):this.K!==-1&&(this.hide(),this.Z.DI(this.K),this.K=-1))};g.U(y2,Uv); y2.prototype.init=function(M,f,A,Q){Uv.prototype.init.call(this,M,f,A);if(f.skipOrPreviewRenderer){if(M=g.b(f.skipOrPreviewRenderer,Lc))A=new H2(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.Z,this.B),A.pJ(this.nJ),A.init(tS("skip-button"),M,this.macros),g.d(this,A);if(M=g.b(f.skipOrPreviewRenderer,Lc))var N=M.skipOffsetMilliseconds}f.brandInteractionRenderer&&(M=f.brandInteractionRenderer.brandInteractionRenderer,A=new tF(this.api,this.layoutId,this.interactionLoggingClientData,this.Or), A.pJ(this.z0),A.init(tS("instream-user-sentiment"),M,this.macros),g.d(this,A));if(M=g.b(f,E19))if(M=g.b(M,E19))A=new Ea(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.Z,!!f.showWithoutLinkedMediaLayout),g.d(this,A),A.pJ(this.G),A.init(tS("flyout-cta"),M,this.macros);Q=Q&&Q.videoAdDurationSeconds;f.adBadgeRenderer&&(A=f.adBadgeRenderer,M=g.b(A,kv),M!=null?(A=new z_(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!1),g.d(this,A),A.pJ(this.K),A.init(tS("ad-badge"), M,this.macros),this.j=A.element):(M=A.simpleAdBadgeRenderer,M==null&&(M={text:{text:"Ad",isTemplated:!1}}),A=new sa(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!0),g.d(this,A),A.pJ(this.K),A.init(tS("simple-ad-badge"),M,this.macros)));f.adPodIndex&&(M=g.b(f.adPodIndex,VEe),M!=null&&(A=new P2(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,A),A.pJ(this.K),A.init(tS("ad-pod-index"),M)));f.adDurationRemaining&&!f.showWithoutLinkedMediaLayout&&(M=f.adDurationRemaining.adDurationRemainingRenderer, M==null&&(M={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),Q=new xZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.Z,Q,!1),g.d(this,Q),Q.pJ(this.K),Q.init(tS("ad-duration-remaining"),M,this.macros));f.adInfoRenderer&&(Q=g.b(f.adInfoRenderer,eP))&&(M=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.element,void 0,!1),g.d(this,M),this.j!==null?this.K.insertBefore(M.element,this.j.nextSibling):M.pJ(this.K), M.init(tS("ad-info-hover-text-button"),Q,this.macros));f.visitAdvertiserRenderer&&(M=g.b(f.visitAdvertiserRenderer,g.kG))&&(A=vHz(this)&&this.C?this.C:this.K)&&(Q=new mg(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,Q),Q.pJ(A),Q.init(tS("visit-advertiser"),M,this.macros),Ok(Q.element),M=w8(Q.element),G3(Q.element,M+" This link opens in new tab"));!(Q=this.api.T())||g.yh(Q)||g.Ps(Q)||Q.controlsType!="3"&&!Q.disableOrganicUi||(N=new FV(this.api,this.Z,N,!1),N.pJ(this.fJ), g.d(this,N));f.adDisclosureBannerRenderer&&(f=g.b(f.adDisclosureBannerRenderer,UVR))&&(N=new nJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),N.pJ(this.KJ),N.init(tS("ad-disclosure-banner"),f),g.d(this,N));this.api.T().V("enable_updated_html5_player_focus_style")&&g.tZ(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; y2.prototype.clear=function(){this.hide()};bM.prototype.set=function(M,f,A){A=A!==void 0?Date.now()+A:void 0;this.K.set(M,f,A)}; bM.prototype.get=function(M){return this.K.get(M)}; bM.prototype.remove=function(M){this.K.remove(M)};var hu0=null;var JF=null,KJ=null,G_=null,UnT=null;g.Gz("yt.www.ads.eventcache.getLastCompanionData",function(){return JF}); g.Gz("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.Gz("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return KJ}); g.Gz("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return G_}); g.Gz("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return UnT});var a_t=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);wA.prototype.handleResponse=function(M,f){if(!f)throw Error("request needs to be passed into ConsistencyService");var A,Q;f=((A=f.Zt.context)==null?void 0:(Q=A.request)==null?void 0:Q.consistencyTokenJars)||[];var N;(M=(N=M.responseContext)==null?void 0:N.consistencyTokenJar)&&this.replace(f,M)}; wA.prototype.replace=function(M,f){M=g.V(M);for(var A=M.next();!A.done;A=M.next())delete this.K[A.value.encryptedTokenJarContents];Hrt(this,f)};var Zgc=window.location.hostname.split(".").slice(-2).join("."),xp;MO.getInstance=function(){xp=g.wD("yt.clientLocationService.instance");xp||(xp=new MO,g.Gz("yt.clientLocationService.instance",xp));return xp}; g.C=MO.prototype; g.C.setLocationOnInnerTubeContext=function(M){M.client||(M.client={});if(this.K)M.client.locationInfo||(M.client.locationInfo={}),M.client.locationInfo.latitudeE7=Math.floor(this.K.coords.latitude*1E7),M.client.locationInfo.longitudeE7=Math.floor(this.K.coords.longitude*1E7),M.client.locationInfo.horizontalAccuracyMeters=Math.round(this.K.coords.accuracy),M.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.j||this.locationPlayabilityToken)M.client.locationPlayabilityToken=this.j|| this.locationPlayabilityToken}; g.C.handleResponse=function(M){var f;M=(f=M.responseContext)==null?void 0:f.locationPlayabilityToken;M!==void 0&&(this.locationPlayabilityToken=M,this.K=void 0,g.GR("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=lM(this))&&this.localStorage.set("yt-location-playability-token",M,15552E3):g.FK("YT_CL",JSON.stringify({loctok:M}),15552E3,Zgc,!0))}; g.C.clearLocationPlayabilityToken=function(M){M==="TVHTML5"?(this.localStorage=lM(this))&&this.localStorage.remove("yt-location-playability-token"):g.dy("YT_CL");this.j=void 0;this.Z!==-1&&(clearTimeout(this.Z),this.Z=-1)}; g.C.getCurrentPositionFromGeolocation=function(){var M=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var f=!1,A=1E4;g.GR("INNERTUBE_CLIENT_NAME")==="MWEB"&&(f=!0,A=15E3);return new Promise(function(Q,N){navigator.geolocation.getCurrentPosition(function(Y){M.K=Y;Q(Y)},function(Y){N(Y)},{enableHighAccuracy:f, maximumAge:0,timeout:A})})}; g.C.createUnpluggedLocationInfo=function(M){var f={};M=M.coords;if(M==null?0:M.latitude)f.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)f.longitudeE7=Math.floor(M.longitude*1E7);if(M==null?0:M.accuracy)f.locationRadiusMeters=Math.round(M.accuracy);return f}; g.C.createLocationInfo=function(M){var f={};M=M.coords;if(M==null?0:M.latitude)f.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)f.longitudeE7=Math.floor(M.longitude*1E7);return f};g.C=gHb.prototype;g.C.contains=function(M){return Object.prototype.hasOwnProperty.call(this.K,M)}; g.C.get=function(M){if(this.contains(M))return this.K[M]}; g.C.set=function(M,f){this.K[M]=f}; g.C.Ou=function(){return Object.keys(this.K)}; g.C.remove=function(M){delete this.K[M]};AH.prototype.getModuleId=function(M){return g.F(M.serviceId.getModuleId())}; AH.prototype.get=function(M){a:{var f=g.F(this.mappings.get(M.toString()));switch(f.type){case "mapping":M=f.value;break a;case "factory":f=f.value();this.mappings.set(M.toString(),{type:"mapping",value:f});M=f;break a;default:M=lQ(f)}}return M}; AH.prototype.registerService=function(M,f){this.mappings.set(M.toString(),{type:"mapping",value:f});return M}; new AH;var Za={},BQ0=(Za.WEB_UNPLUGGED="^unplugged/",Za.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Za.WEB_UNPLUGGED_OPS="^unplugged/",Za.WEB_UNPLUGGED_PUBLIC="^unplugged/",Za.WEB_CREATOR="^creator/",Za.WEB_KIDS="^kids/",Za.WEB_EXPERIMENTS="^experiments/",Za.WEB_MUSIC="^music/",Za.WEB_REMIX="^music/",Za.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Za.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Za);Y7.prototype.N=function(M,f,A){f=f===void 0?{}:f;A=A===void 0?Lr:A;var Q={context:g.fp(M.clickTrackingParams,!1,this.C)};var N=this.Z(M);if(N){this.K(Q,N,f);var Y;f=g.NO(this.j());(N=(Y=g.b(M.commandMetadata,g.aw))==null?void 0:Y.apiUrl)&&(f=N);Y=qkD(eC(f));M=Object.assign({},{command:M},void 0);Q={input:Y,YR:bl(Y),Zt:Q,config:M};Q.config.LH?Q.config.LH.identity=A:Q.config.LH={identity:A};return Q}A=new g.GX("Error: Failed to create Request from Command.",M);g.jZ(A)}; g.Tz.Object.defineProperties(Y7.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.U(oY,Y7);g.U(Cp,oY);Cp.prototype.N=function(){return{input:"/getDatasyncIdsEndpoint",YR:bl("/getDatasyncIdsEndpoint","GET"),Zt:{}}}; Cp.prototype.j=function(){return[]}; Cp.prototype.Z=function(){}; Cp.prototype.K=function(){};var rum={},DFd=(rum.GET_DATASYNC_IDS=Qk(Cp),rum);var rS={},uFe=(rS["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",rS["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",rS["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",rS["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",rS["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",rS["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",rS["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", rS["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",rS["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",rS["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",rS["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",rS["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",rS["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",rS["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",rS["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", rS["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",rS["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",rS["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",rS["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",rS["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",rS["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",rS["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", rS["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",rS.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",rS["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",rS["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",rS["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",rS["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",rS["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",rS["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", rS["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",rS["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",rS["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",rS["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",rS["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",rS["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",rS["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",rS["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",rS["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",rS["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",rS.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",rS["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",rS["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",rS["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",rS["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",rS["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",rS["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",rS["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",rS["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",rS["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",rS["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",rS["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",rS["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",rS["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",rS["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",rS["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",rS["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",rS["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",rS["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",rS["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",rS["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",rS["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", rS["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",rS["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",rS["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",rS["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",rS["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",rS["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",rS["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",rS["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",rS["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", rS["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",rS["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",rS["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",rS["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",rS["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",rS["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",rS["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",rS["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", rS),un={},Pgd=(un.auto_search="LATENCY_ACTION_AUTO_SEARCH",un.ad_to_ad="LATENCY_ACTION_AD_TO_AD",un.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",un.app_startup="LATENCY_ACTION_APP_STARTUP",un.browse="LATENCY_ACTION_BROWSE",un.cast_splash="LATENCY_ACTION_CAST_SPLASH",un.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",un.channels="LATENCY_ACTION_CHANNELS",un.chips="LATENCY_ACTION_CHIPS",un.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",un.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", un.editor="LATENCY_ACTION_EDITOR",un.embed="LATENCY_ACTION_EMBED",un.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",un.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",un.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",un.explore="LATENCY_ACTION_EXPLORE",un.favorites="LATENCY_ACTION_FAVORITES",un.home="LATENCY_ACTION_HOME",un.inboarding="LATENCY_ACTION_INBOARDING",un.landing="LATENCY_ACTION_LANDING",un.library="LATENCY_ACTION_LIBRARY",un.live= "LATENCY_ACTION_LIVE",un.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",un.management="LATENCY_ACTION_MANAGEMENT",un.mini_app="LATENCY_ACTION_MINI_APP_PLAY",un.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",un.onboarding="LATENCY_ACTION_ONBOARDING",un.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",un.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",un.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",un.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", un.prebuffer="LATENCY_ACTION_PREBUFFER",un.prefetch="LATENCY_ACTION_PREFETCH",un.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",un.profile_switcher="LATENCY_ACTION_LOGIN",un.projects="LATENCY_ACTION_PROJECTS",un.reel_watch="LATENCY_ACTION_REEL_WATCH",un.results="LATENCY_ACTION_RESULTS",un.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",un.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",un.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",un.review="LATENCY_ACTION_REVIEW",un.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",un.search_ui="LATENCY_ACTION_SEARCH_UI",un.search_suggest="LATENCY_ACTION_SUGGEST",un.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",un.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",un.seek="LATENCY_ACTION_PLAYER_SEEK",un.settings="LATENCY_ACTION_SETTINGS",un.store="LATENCY_ACTION_STORE",un.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",un.tenx="LATENCY_ACTION_TENX",un.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",un.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", un.watch="LATENCY_ACTION_WATCH",un.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",un["watch,watch7"]="LATENCY_ACTION_WATCH",un["watch,watch7_html5"]="LATENCY_ACTION_WATCH",un["watch,watch7ad"]="LATENCY_ACTION_WATCH",un["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",un.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",un.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",un.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",un.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",un.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",un.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",un.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",un.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",un);Object.assign(Pgd,uFe);g.U(RY,oV);var KVt=new Cr("aft-recorded",RY);var zb7=g.Kb.ytLoggingGelSequenceIdObj_||{};g.Gz("ytLoggingGelSequenceIdObj_",zb7);var iB=g.Kb.ytLoggingLatencyUsageStats_||{};g.Gz("ytLoggingLatencyUsageStats_",iB);gR.prototype.tick=function(M,f,A,Q){x7(this,"tick_"+M+"_"+f)||g.hO("latencyActionTicked",{tickName:M,clientActionNonce:f},{timestamp:A,cttAuthInfo:Q})}; gR.prototype.info=function(M,f,A){var Q=Object.keys(M).join("");x7(this,"info_"+Q+"_"+f)||(M=Object.assign({},M),M.clientActionNonce=f,g.hO("latencyActionInfo",M,{cttAuthInfo:A}))}; gR.prototype.jspbInfo=function(M,f,A){for(var Q="",N=0;N=N.length?(f.append(N),M-=N.length):M?(f.append(new Uint8Array(N.buffer,N.byteOffset,M)),A.append(new Uint8Array(N.buffer,N.byteOffset+M,N.length-M)),M=0):A.append(N);return{Gc:f,xr:A}}; g.C.isFocused=function(M){return M>=this.jE&&M=64&&(this.G.set(M.subarray(0,64-this.Z),this.Z),f=64-this.Z,this.Z=0,Gmt(this,this.G,0));for(;f+64<=A;f+=64)Gmt(this,M,f);f=this.start&&(M=2&&A.ssdaiAdsConfig&&o1("Unexpected ad placement renderers length",M.slot,null,{length:Q.length});var N;((N=A.adSlots)==null?0:N.some(function(Y){var I,D;return((I=g.b(Y,X1))==null?void 0:(D=I.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||Q.some(function(Y){var I,D,E,t; return!!((I=Y.renderer)==null?0:(D=I.linearAdSequenceRenderer)==null?0:(E=D.linearAds)==null?0:E.length)||!((t=Y.renderer)==null||!t.instreamVideoAdRenderer)})||aJ0(M)})}; vl.prototype.yI=function(){Yvb(this.K)};ph.prototype.fn=function(){var M=this;Nbz(this.Z,function(){var f=tA(M.slot.clientMetadata,"metadata_type_ad_break_request_data");return f.cueProcessedMs?M.K.get().fetch({rj:f.getAdBreakUrl,K$:new g.T1(f.C_,f.He),cueProcessedMs:f.cueProcessedMs}):M.K.get().fetch({rj:f.getAdBreakUrl,K$:new g.T1(f.C_,f.He)})})}; ph.prototype.yI=function(){Yvb(this.Z)};hf.prototype.fn=function(){var M=this.slot.clientMetadata,f,A=(f=this.slot.fulfilledLayout)!=null?f:tA(M,"metadata_type_fulfilled_layout");jzX(this.callback,this.slot,A)}; hf.prototype.yI=function(){mL(this.callback,this.slot,new K("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")};Lh.prototype.build=function(M,f){return f.fulfilledLayout||SJ(f,{Eq:["metadata_type_fulfilled_layout"]})?new hf(M,f):this.j(M,f)};g.U(oC,Lh); oC.prototype.j=function(M,f){if(SJ(f,{Eq:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new vl(M,f,this.K,this.Z,this.QU,this.kO,this.yY,this.Sk,this.s$);if(SJ(f,{Eq:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new ph(M,f,this.K,this.Z,this.QU,this.kO);throw new K("Unsupported slot with type: "+f.slotType+" and client metadata: "+vc(f.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.U(Ch,Lh);Ch.prototype.j=function(M,f){throw new K("Unsupported slot with type: "+f.slotType+" and client metadata: "+vc(f.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.C=qvf.prototype;g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(M){if(M.layoutId!==this.layout.layoutId)this.callback.KW(this.slot,M,new Ds("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 f=tA(M.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.XC(this.slot,M),$xT(this.j, this.slot,f)):o1("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,M)}}; g.C.b7=function(M,f){M.layoutId!==this.layout.layoutId?this.callback.KW(this.slot,M,new Ds("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.It(this.slot,M,f),mpt(this),seU(this))};g.U(Hl,g.pi);g.C=Hl.prototype;g.C.Vw=function(){return this.Z.slot}; g.C.Rx=function(){return this.Z.layout}; g.C.init=function(){this.j.get().addListener(this)}; g.C.release=function(){this.j.get().removeListener(this);this.dispose()}; g.C.Ve=function(){}; g.C.Ng=function(){}; g.C.Gn=function(){}; g.C.eG=function(){}; g.C.startRendering=function(M){var f=this;qS(this.Z,M,function(){return void f.fR()})}; g.C.fR=function(){this.j.get().fR(this.K)}; g.C.b7=function(M,f){var A=this;qS(this.Z,M,function(){var Q=A.j.get();Kd9(Q,A.K,3);A.K=[];A.callback.It(A.slot,M,f)})}; g.C.u8=function(){this.j.ek()||this.j.get().removeListener(this);g.pi.prototype.u8.call(this)}; g.Tz.Object.defineProperties(Hl.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.Z.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.Z.layout}}});xD.prototype.FH=function(M,f){f=f===void 0?!1:f;var A=(this.j.get(M)||[]).concat();if(f=f&&BbT(M)){var Q=this.j.get(f);Q&&A.push.apply(A,g.c(Q))}us(this,M,A);this.K.add(M);f&&this.K.add(f)}; xD.prototype.RE=function(M,f){f=f===void 0?!1:f;if(!this.K.has(M)){var A=f&&BbT(M);A&&(f=!this.K.has(A));this.FH(M,f)}};g.U(Zid,vO);g.U($D,Hl);g.C=$D.prototype;g.C.PP=function(M,f){RC("ads-engagement-panel-layout",M,Fm(this.G.get()),this.yY.get(),this.C,this.N,this.Vw(),this.Rx(),f)}; g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),g.b(this.Rx().renderingContent,SP),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(f,A,Q,N,Y){return new Zid(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(M,f){this.N===f.layoutId&&(this.C===null?this.C=this.yY.get().Cy():o1("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)};g.U(u8z,vO);g.U(FY,Hl);g.C=FY.prototype;g.C.PP=function(M,f){RC("banner-image",M,Fm(this.G.get()),this.yY.get(),this.C,this.N,this.Vw(),this.Rx(),f)}; g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),g.b(this.Rx().renderingContent,pd),this.callback,"metadata_type_banner_image_layout_view_model",function(f,A,Q,N,Y){return new u8z(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(M,f){this.N===f.layoutId&&(this.C===null?this.C=this.yY.get().Cy():o1("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)};g.U(yb,vO);g.U(dM,Hl);g.C=dM.prototype;g.C.PP=function(M,f){RC("action-companion",M,Fm(this.G.get()),this.yY.get(),this.C,this.N,this.Vw(),this.Rx(),f)}; g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),g.b(this.Rx().renderingContent,EE),this.callback,"metadata_type_action_companion_ad_renderer",function(f,A,Q,N,Y){return new yb(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(M,f){f.layoutId===this.layout.layoutId?this.Mu.RE("impression"):this.N===f.layoutId&&(this.C===null?this.C=this.yY.get().Cy():o1("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)};g.U(noD,vO);g.U(eJ,Hl);g.C=eJ.prototype;g.C.PP=function(M,f){RC("image-companion",M,Fm(this.G.get()),this.yY.get(),this.C,this.N,this.Vw(),this.Rx(),f)}; g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),g.b(this.Rx().renderingContent,te),this.callback,"metadata_type_image_companion_ad_renderer",function(f,A,Q,N,Y){return new noD(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(M,f){f.layoutId===this.layout.layoutId?this.Mu.RE("impression"):this.N===f.layoutId&&(this.C===null?this.C=this.yY.get().Cy():o1("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)};g.U($pd,vO);g.U(bs,Hl);g.C=bs.prototype;g.C.PP=function(M,f){RC("shopping-companion",M,Fm(this.G.get()),this.yY.get(),this.C,this.N,this.Vw(),this.Rx(),f)}; g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(f,A,Q,N,Y){return new $pd(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(M,f){f.layoutId===this.layout.layoutId?this.Mu.RE("impression"):this.N===f.layoutId&&(this.C===null?this.C=this.yY.get().Cy():o1("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)};g.U(Wl,Hl);g.C=Wl.prototype;g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(f,A,Q,N,Y){return new yb(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(){}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)}; g.C.PP=function(){};g.C=koD.prototype;g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.init=function(){this.Sk.get().addListener(this);this.Sk.get().Fj.push(this);var M=tA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),f=tA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");gM(this.layout.Kk)&&Al(this.tP.get(),this.layout.layoutId,{sW:f,aj:M,listener:this})}; g.C.release=function(){this.Sk.get().removeListener(this);e3D(this.Sk.get(),this);gM(this.layout.Kk)&&Qy(this.tP.get(),this.layout.layoutId)}; g.C.startRendering=function(M){this.callback.XC(this.slot,M)}; g.C.b7=function(M,f){h3t(this.kO.get())&&!this.K&&(this.Mu.RE("abandon"),this.K=!0);this.callback.It(this.slot,M,f)}; g.C.wu=function(M){switch(M.id){case "part2viewed":this.Mu.RE("start");this.Mu.RE("impression");break;case "videoplaytime25":this.Mu.RE("first_quartile");break;case "videoplaytime50":this.Mu.RE("midpoint");break;case "videoplaytime75":this.Mu.RE("third_quartile");break;case "videoplaytime100":h3t(this.kO.get())?this.K||(this.Mu.RE("complete"),this.K=!0):this.Mu.RE("complete");jJ(this.Mu)&&Pl(this.Mu,Infinity,!0);SeU(this.kO.get())&&kD(this.Z,Infinity,!0);break;case "engagedview":jJ(this.Mu)||this.Mu.RE("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:o1("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.C.onVolumeChange=function(){}; g.C.ZQ=function(){}; g.C.gL=function(){}; g.C.M4=function(){}; g.C.onFullscreenToggled=function(){}; g.C.vP=function(){}; g.C.J3=function(){}; g.C.EP=function(M){SeU(this.kO.get())&&kD(this.Z,M*1E3,!1);jJ(this.Mu)&&Pl(this.Mu,M*1E3,!1)}; g.C.X7=function(){}; g.C.yz=function(){this.Mu.RE("active_view_measurable")}; g.C.nT=function(){this.Mu.RE("active_view_viewable")}; g.C.eF=function(){this.Mu.RE("active_view_fully_viewable_audible_half_duration")}; g.C.gs=function(){this.Mu.RE("audio_measurable")}; g.C.Uc=function(){this.Mu.RE("audio_audible")};g.U(OW,Hl);g.C=OW.prototype;g.C.init=function(){Hl.prototype.init.call(this);var M=g.F(tA(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),f={adsClientData:this.layout.ex};this.K.push(new c2(M,this.layout.layoutId,tA(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),f,!0))}; g.C.pF=function(){this.C||this.Sk.get().resumeVideo(1)}; g.C.startRendering=function(M){Hl.prototype.startRendering.call(this,M);tl(this.Sk.get(),"ad-showing");this.callback.XC(this.slot,M);this.N.Be=this}; g.C.b7=function(M,f){Hl.prototype.b7.call(this,M,f);vq(this.Sk.get(),"ad-showing");Jl(this.N,this)}; g.C.PP=function(M){switch(M){case "ad-info-icon-button":(this.C=this.Sk.get().xN(1))||this.Sk.get().pauseVideo();break;case "visit-advertiser":this.Sk.get().pauseVideo()}}; g.C.u8=function(){Hl.prototype.u8.call(this)};g.U(XY,vO);g.U(Jf,Hl);g.C=Jf.prototype;g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(f,A,Q,N,Y){return new XY(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(){}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)}; g.C.PP=function(){};g.U(Kh,vO);g.U(G1,Hl);G1.prototype.init=function(){Hl.prototype.init.call(this);this.K.push(new Kh(g.b(this.layout.renderingContent,nd),this.layout.layoutId,{adsClientData:this.layout.ex}))}; G1.prototype.PP=function(){yY(this.C.get(),this.N)&&cl(this.yY.get(),3)}; G1.prototype.startRendering=function(M){Hl.prototype.startRendering.call(this,M);this.callback.XC(this.slot,M)}; G1.prototype.u8=function(){Hl.prototype.u8.call(this)};g.U(wM,vO);g.U(ls,Hl);ls.prototype.init=function(){Hl.prototype.init.call(this);var M=g.b(this.layout.renderingContent,pU)||tA(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),f=mc(this.Mu);this.K.push(new wM(M,f,this.layout.layoutId,{adsClientData:this.layout.ex},!0,!0))}; ls.prototype.startRendering=function(M){Hl.prototype.startRendering.call(this,M);this.callback.XC(this.slot,M)}; ls.prototype.PP=function(M,f){if(f===this.layout.layoutId)switch(M){case "skip-button":var A;(M=(A=tA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&M.SZ(this.Vw(),this.layout)}}; ls.prototype.u8=function(){Hl.prototype.u8.call(this)};fU.prototype.build=function(M,f,A,Q){if(Md(Q,{Eq:["metadata_type_ad_break_response_data"],ll:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new qvf(M,A,Q,this.Z,this.j,this.K);throw new Ds("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+vc(Q.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.U(XOz,vO);g.U(Ak,Hl);g.C=Ak.prototype;g.C.PP=function(M,f){RC("ads-engagement-panel",M,Fm(this.G.get()),this.yY.get(),this.C,this.N,this.Vw(),this.Rx(),f)}; g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),g.b(this.Rx().renderingContent,vr),this.callback,"metadata_type_ads_engagement_panel_renderer",function(f,A,Q,N,Y){return new XOz(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(M,f){f.layoutId===this.layout.layoutId?this.Mu.RE("impression"):this.N===f.layoutId&&(this.C===null?this.C=this.yY.get().Cy():o1("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)};g.U(QK,Hl);g.C=QK.prototype;g.C.PP=function(M,f){RC("top-banner-image-text-icon-buttoned",M,Fm(this.G.get()),this.yY.get(),this.C,this.N,this.Vw(),this.Rx(),f)}; g.C.startRendering=function(M){sW(this.Mu,this.Vw(),this.Rx(),g.b(this.Rx().renderingContent,he),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(f,A,Q,N,Y){return new XY(f,A,Q,N,Y)},this.K); Hl.prototype.startRendering.call(this,M)}; g.C.XC=function(M,f){this.N===f.layoutId&&(this.C===null?this.C=this.yY.get().Cy():o1("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.u8=function(){qa(this.rq(),this);Hl.prototype.u8.call(this)};Goe.prototype.build=function(M,f,A,Q){if(Md(Q,JSD())||g.b(Q.renderingContent,vr)!==void 0)return new Ak(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);if(Md(Q,PDc())||g.b(Q.renderingContent,EE)!==void 0)return new dM(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);if(Md(Q,jed())||g.b(Q.renderingContent,te)!==void 0)return new eJ(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);if(Md(Q,Fjt()))return new bs(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);if(Md(Q,biN()))return new Wl(M,A,Q,this.FC,this.yY,this.rq, this.tP,this.K);if(Md(Q,znb())||g.b(Q.renderingContent,pd)!==void 0)return new FY(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);if(Md(Q,Kjc())||g.b(Q.renderingContent,he)!==void 0)return new QK(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);if(Md(Q,WjX()))return new Jf(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);if(Md(Q,rST())||g.b(Q.renderingContent,SP)!==void 0)return new $D(M,A,Q,this.FC,this.yY,this.rq,this.tP,this.K);throw new Ds("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+ vc(Q.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};wOX.prototype.build=function(M,f,A,Q){if(Md(Q,{Eq:["metadata_type_linked_player_bytes_layout_id"],ll:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new G1(M,A,Q,this.FC,this.yY,this.K);throw new Ds("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+vc(Q.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.C=lJ9.prototype;g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(M){M.layoutId!==this.layout.layoutId?this.callback.KW(this.slot,M,new Ds("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.XC(this.slot,M),this.Mu.RE("impression"),MK(this.XV,M,"normal"))}; g.C.b7=function(M,f){M.layoutId!==this.layout.layoutId?this.callback.KW(this.slot,M,new Ds("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.It(this.slot,M,f)};g.C=f49.prototype;g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.init=function(){}; g.C.release=function(){}; g.C.startRendering=function(M){M.layoutId!==this.layout.layoutId?this.callback.KW(this.slot,M,new Ds("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.XC(this.slot,M),this.Mu.RE("impression"),MK(this.XV,M,"normal"))}; g.C.b7=function(M,f){M.layoutId!==this.layout.layoutId?this.callback.KW(this.slot,M,new Ds("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.It(this.slot,M,f)};Nd.prototype.build=function(M,f,A,Q){if(!this.kO.get().U.T().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Md(Q,MId()))return new lJ9(M,A,Q,this.yY,this.XV)}else if(Md(Q,{Eq:[],ll:["LAYOUT_TYPE_FORECASTING"]}))return new f49(M,A,Q,this.yY,this.XV);throw new Ds("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+vc(Q.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.U(NA9,vO);g.U(Y8,Hl);g.C=Y8.prototype;g.C.init=function(){Hl.prototype.init.call(this);var M=g.b(this.layout.renderingContent,v$)||g.F(tA(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer")),f={adsClientData:this.layout.ex};this.K.push(new NA9(M,tA(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,f))}; g.C.pF=function(){this.C||this.Sk.get().resumeVideo(2)}; g.C.startRendering=function(M){Hl.prototype.startRendering.call(this,M);this.callback.XC(this.slot,M);this.N.Be=this}; g.C.b7=function(M,f){Hl.prototype.b7.call(this,M,f);Jl(this.N,this)}; g.C.PP=function(M,f){if(!l7(this.kO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||f===this.layout.layoutId){if(yY(this.G.get(),this.W))switch(M){case "visit-advertiser-link":cl(this.yY.get(),3)}switch(M){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.Sk.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.C=this.Sk.get().xN(2))||this.Sk.get().pauseVideo();break; case "visit-advertiser-link":this.Sk.get().pauseVideo();g.F(YaN(this)).hj();break;case "skip-button":if(M=YaN(this),this.layout.renderingContent&&!Yw(this.layout.clientMetadata,"metadata_type_dai")||!M.Tc){var A;(M=(A=tA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&M.SZ(this.Vw(),this.layout)}else o1("Requesting to skip by LegacyPlayerBytes when components enabled"),M.RC(this.Vw(),this.layout)}}}; g.C.u8=function(){Hl.prototype.u8.call(this)};g.U(I8,Hl);g.C=I8.prototype;g.C.init=function(){Hl.prototype.init.call(this);var M=g.b(this.layout.renderingContent,tk)||g.F(tA(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer")),f={adsClientData:this.layout.ex},A;(A=!!this.layout.renderingContent)||(A=!Tk(this).Tc);this.K.push(new c2(M,this.layout.layoutId,tA(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),f,A))}; g.C.pF=function(){this.C||this.Sk.get().resumeVideo(2)}; g.C.startRendering=function(M){Hl.prototype.startRendering.call(this,M);this.callback.XC(this.slot,M);this.N.Be=this}; g.C.b7=function(M,f){Hl.prototype.b7.call(this,M,f);Jl(this.N,this)}; g.C.PP=function(M,f){if(!this.kO||!l7(this.kO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||f===this.layout.layoutId){if(yY(this.G.get(),this.W))switch(M){case "visit-advertiser":cl(this.yY.get(),3)}switch(M){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.C||this.Sk.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.C=this.Sk.get().xN(2))||this.Sk.get().pauseVideo();break; case "visit-advertiser":this.Sk.get().pauseVideo();g.F(Tk(this)).hj();break;case "skip-button":if(M=Tk(this),this.layout.renderingContent&&!Yw(this.layout.clientMetadata,"metadata_type_dai")||!M.Tc){var A;(M=(A=tA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&M.SZ(this.Vw(),this.layout)}else o1("Requesting to skip by LegacyPlayerBytes"),M.RC(this.Vw(),this.layout)}}}; g.C.u8=function(){Hl.prototype.u8.call(this)};g.U(TAU,vO);g.U(DZ,Hl);g.C=DZ.prototype;g.C.startRendering=function(M){var f=this;qS(this.Z,M,function(){f.K.push(new TAU(tA(f.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),M.layoutId,M.ex));f.fR();f.callback.XC(f.slot,M);g.J(fT(f.Sk.get(),1),512)&&f.callback.KW(f.Vw(),f.Rx(),new Ds("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.C.J3=function(){}; g.C.vP=function(M){if(M.state.isError()){var f;this.callback.KW(this.Vw(),this.Rx(),new Ds("A player error happened during adNotify",{playerErrorCode:(f=M.state.MQ)==null?void 0:f.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.C.onFullscreenToggled=function(){}; g.C.gL=function(){}; g.C.M4=function(){}; g.C.ZQ=function(){}; g.C.onVolumeChange=function(){}; g.C.wu=function(){}; g.C.X7=function(){}; g.C.PP=function(){};g.U(EZt,vO);g.U(Ei,Hl);Ei.prototype.init=function(){Hl.prototype.init.call(this);var M=g.b(this.layout.renderingContent,hk),f=mc(this.Mu);this.K.push(new EZt(M,f,this.layout.layoutId,{adsClientData:this.layout.ex}))}; Ei.prototype.startRendering=function(M){Hl.prototype.startRendering.call(this,M);this.callback.XC(this.slot,M)}; Ei.prototype.PP=function(M,f){if(f===this.layout.layoutId)switch(M){case "skip-button":var A;(M=(A=tA(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:A.current)&&M.SZ(this.Vw(),this.layout)}}; Ei.prototype.u8=function(){Hl.prototype.u8.call(this)};tIb.prototype.build=function(M,f,A,Q){if(M=Sg(M,A,Q,this.FC,this.Sk,this.yY,this.Z,this.K,this.kO))return M;throw new Ds("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+vc(Q.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.C=CU.prototype;g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.init=function(){this.Sk.get().addListener(this);this.Sk.get().Fj.push(this);if(this.layout.renderingContent){var M=this.m$.get();M=c8(M,1).RF/1E3}else M=tA(this.layout.clientMetadata,"metadata_type_video_length_seconds");var f=g.b(this.layout.renderingContent,uF),A=f?Bl(f.pings):tA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");f=f?goT(f.pings):tA(this.layout.clientMetadata,"metadata_type_active_view_identifier");gM(this.layout.Kk)&&Al(this.tP.get(),this.layout.layoutId, {sW:A,aj:M,listener:this,hG:f})}; g.C.release=function(){this.Sk.get().removeListener(this);e3D(this.Sk.get(),this);gM(this.layout.Kk)&&Qy(this.tP.get(),this.layout.layoutId)}; g.C.startRendering=function(M){this.callback.XC(this.slot,M)}; g.C.b7=function(M,f){Ui(this,"abandon");this.callback.It(this.slot,M,f)}; g.C.wu=function(M){switch(M.id){case "part2viewed":this.Mu.RE("start");this.Mu.RE("impression");break;case "videoplaytime25":this.Mu.RE("first_quartile");break;case "videoplaytime50":this.Mu.RE("midpoint");break;case "videoplaytime75":this.Mu.RE("third_quartile");break;case "videoplaytime100":Ui(this,"complete");jJ(this.Mu)&&Pl(this.Mu,Infinity,!0);break;case "engagedview":jJ(this.Mu)||this.Mu.RE("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:o1("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.C.onVolumeChange=function(){}; g.C.ZQ=function(){}; g.C.gL=function(){}; g.C.M4=function(){}; g.C.onFullscreenToggled=function(){}; g.C.vP=function(M){this.K||(g.V2(M,4)&&!g.V2(M,2)?z1(this.Mu,"pause"):Ua(M,4)<0&&!(Ua(M,2)<0)&&z1(this.Mu,"resume"))}; g.C.J3=function(){}; g.C.EP=function(M){jJ(this.Mu)&&Pl(this.Mu,M*1E3,!1)}; g.C.X7=function(){Ui(this,"swipe")}; g.C.yz=function(){this.Mu.RE("active_view_measurable")}; g.C.nT=function(){this.Mu.RE("active_view_viewable")}; g.C.eF=function(){this.Mu.RE("active_view_fully_viewable_audible_half_duration")}; g.C.gs=function(){this.Mu.RE("audio_measurable")}; g.C.Uc=function(){this.Mu.RE("audio_audible")};vZe.prototype.build=function(M,f,A,Q){if(A.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.b(Q.renderingContent,uF)!==void 0)return new CU(M,A,Q,this.Sk,this.yY,this.kO,this.tP,this.m$);f=["metadata_type_ad_placement_config"];for(var N=g.V(Zb()),Y=N.next();!Y.done;Y=N.next())f.push(Y.value);if(Md(Q,{Eq:f,ll:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return A.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new CU(M,A,Q,this.Sk,this.yY,this.kO,this.tP,this.m$):new koD(M,A,Q,this.Sk,this.yY, this.AP,this.kO,this.tP);throw new Ds("Unsupported layout with type: "+Q.layoutType+" and client metadata: "+vc(Q.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var si={contentCpn:"",TD:new Map};qaN.prototype.F3=function(M,f){var A={};f=Object.assign({},f,(A.cc=this.I9.fh(),A));this.I9.U.ZB(M,f)};var leW,$p; leW={wKY:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",IXB:"AUTHENTICATION_MALFORMED",tAx:"AUTHENTICATION_MISSING",jYB:"BAD_REQUEST",A3Y:"CAST_SESSION_DEVICE_MISMATCHED",fXO:"CAST_SESSION_VIDEO_MISMATCHED",UY3:"CAST_TOKEN_EXPIRED",gIO:"CAST_TOKEN_FAILED",e8r:"CAST_TOKEN_MALFORMED",y3_:"CGI_PARAMS_MALFORMED",nIk:"CGI_PARAMS_MISSING",xY0:"DEVICE_FALLBACK",U48:"GENERIC_WITH_LINK_AND_CPN",gmO:"ERROR_HDCP",eG8:"LICENSE",nm3:"VIDEO_UNAVAILABLE",q37:"FORMAT_UNAVAILABLE",vmi:"GEO_FAILURE", sqk:"HTML5_AUDIO_RENDERER_ERROR",QoN:"GENERIC_WITHOUT_LINK",dm3:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",EPx:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",KdO:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",ZS0:"HTML5_SPS_UMP_STATUS_REJECTED",z$$:"INVALID_DRM_MESSAGE",Qhr:"PURCHASE_NOT_FOUND",dD0:"PURCHASE_REFUNDED",kvN:"RENTAL_EXPIRED",pz3:"RETRYABLE_ERROR",n7$:"SERVER_ERROR",OIY:"SIGNATURE_EXPIRED",TDB:"STOPPED_BY_ANOTHER_PLAYBACK",h68:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",lH3:"STREAMING_NOT_ALLOWED", rC$:"STREAM_LICENSE_NOT_FOUND",sh7:"TOO_MANY_REQUESTS",Q88:"TOO_MANY_REQUESTS_WITH_LINK",dEO:"TOO_MANY_STREAMS_PER_ENTITLEMENT",EN8:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",cYu:"VIDEO_FORBIDDEN",mEr:"VIDEO_NOT_FOUND",z8O:"BROWSER_OR_EXTENSION_ERROR"};$p={}; g.yl=($p.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",$p.DEVICE_FALLBACK="Sorry, this video is not available on this device.",$p.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",$p.LICENSE="Sorry, there was an error licensing this video.",$p.VIDEO_UNAVAILABLE= "Video unavailable",$p.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",$p.GEO_FAILURE="This video isn't available in your country.",$p.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",$p.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",$p.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",$p.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", $p.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",$p.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",$p.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",$p.PURCHASE_NOT_FOUND="This video requires payment.",$p.PURCHASE_REFUNDED="This video's purchase has been refunded.",$p.RENTAL_EXPIRED="This video's rental has expired.",$p.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",$p.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",$p.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",$p.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",$p.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",$p.SERVER_ERROR="There was an internal server error. Please try again later.",$p.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",$p.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",$p.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",$p.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",$p.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",$p.TOO_MANY_REQUESTS="Please log in to watch this video.", $p.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",$p.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",$p.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",$p.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",$p.VIDEO_FORBIDDEN="Access to this video is forbidden.",$p.VIDEO_NOT_FOUND="This video can not be found.",$p.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",$p);var M7m;var f8R=g.ge(),Aom=f8R.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Aom||Aom.length<2)M7m=void 0;else{var QH0=f8R.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);M7m=QH0&&QH0.length===6?Number(QH0[5].replace("_",".")):0}var Wt=M7m,Pt=Wt>=0;g.U(g.yK,ZD);g.yK.prototype.J=function(M,f,A,Q,N){return ZD.prototype.J.call(this,M,f,A,Q,N)};var F$={},iX=(F$.FAIRPLAY="fairplay",F$.PLAYREADY="playready",F$.WIDEVINE="widevine",F$.CLEARKEY=null,F$.FLASHACCESS=null,F$.UNKNOWN=null,F$.WIDEVINE_CLASSIC=null,F$);dw.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var yT={},uo=(yT.WIDTH={name:"width",video:!0,valid:640,a8:99999},yT.HEIGHT={name:"height",video:!0,valid:360,a8:99999},yT.FRAMERATE={name:"framerate",video:!0,valid:30,a8:9999},yT.BITRATE={name:"bitrate",video:!0,valid:3E5,a8:2E9},yT.EOTF={name:"eotf",video:!0,valid:"bt709",a8:"catavision"},yT.CHANNELS={name:"channels",video:!1,valid:2,a8:99},yT.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",a8:"invalidformat"},yT.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", a8:"nope"},yT.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",a8:"av99.0.05M.08"},yT.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",a8:"invalid"},yT);var N40=["h","H"],Yym=["9","("],I89=["9h","(h"],T4e=["8","*"],DQc=["a","A"],Eam=["o","O"],t7W=["m","M"],vae=["mac3","MAC3"],pP9=["meac3","MEAC3"],dS={},u7b=(dS.h=N40,dS.H=N40,dS["9"]=Yym,dS["("]=Yym,dS["9h"]=I89,dS["(h"]=I89,dS["8"]=T4e,dS["*"]=T4e,dS.a=DQc,dS.A=DQc,dS.o=Eam,dS.O=Eam,dS.m=t7W,dS.M=t7W,dS.mac3=vae,dS.MAC3=vae,dS.meac3=pP9,dS.MEAC3=pP9,dS),hUm=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Udf=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var l={},Jk=(l["0"]="f",l["160"]="h",l["133"]="h",l["134"]="h",l["135"]="h",l["136"]="h",l["137"]="h",l["264"]="h",l["266"]="h",l["138"]="h",l["298"]="h",l["299"]="h",l["304"]="h",l["305"]="h",l["214"]="h",l["216"]="h",l["374"]="h",l["375"]="h",l["140"]="a",l["141"]="a",l["327"]="sa",l["258"]="m",l["380"]="mac3",l["328"]="meac3",l["161"]="H",l["142"]="H",l["143"]="H",l["144"]="H",l["222"]="H",l["223"]="H",l["145"]="H",l["224"]="H",l["225"]="H",l["146"]="H",l["226"]="H",l["227"]="H",l["147"]="H",l["384"]= "H",l["376"]="H",l["385"]="H",l["377"]="H",l["149"]="A",l["261"]="M",l["381"]="MAC3",l["329"]="MEAC3",l["598"]="9",l["278"]="9",l["242"]="9",l["243"]="9",l["244"]="9",l["775"]="9",l["776"]="9",l["777"]="9",l["778"]="9",l["779"]="9",l["780"]="9",l["781"]="9",l["782"]="9",l["783"]="9",l["247"]="9",l["248"]="9",l["353"]="9",l["355"]="9",l["356"]="9",l["271"]="9",l["577"]="9",l["313"]="9",l["579"]="9",l["272"]="9",l["302"]="9",l["303"]="9",l["407"]="9",l["408"]="9",l["308"]="9",l["315"]="9",l["330"]= "9h",l["331"]="9h",l["332"]="9h",l["333"]="9h",l["334"]="9h",l["335"]="9h",l["336"]="9h",l["337"]="9h",l["338"]="so",l["600"]="o",l["250"]="o",l["251"]="o",l["774"]="o",l["194"]="*",l["195"]="*",l["220"]="*",l["221"]="*",l["196"]="*",l["197"]="*",l["279"]="(",l["280"]="(",l["317"]="(",l["318"]="(",l["273"]="(",l["274"]="(",l["357"]="(",l["358"]="(",l["275"]="(",l["359"]="(",l["360"]="(",l["276"]="(",l["583"]="(",l["584"]="(",l["314"]="(",l["585"]="(",l["561"]="(",l["277"]="(",l["361"]="(h",l["362"]= "(h",l["363"]="(h",l["364"]="(h",l["365"]="(h",l["366"]="(h",l["591"]="(h",l["592"]="(h",l["367"]="(h",l["586"]="(h",l["587"]="(h",l["368"]="(h",l["588"]="(h",l["562"]="(h",l["409"]="(",l["410"]="(",l["411"]="(",l["412"]="(",l["557"]="(",l["558"]="(",l["394"]="1",l["395"]="1",l["396"]="1",l["397"]="1",l["398"]="1",l["399"]="1",l["720"]="1",l["721"]="1",l["400"]="1",l["401"]="1",l["571"]="1",l["402"]="1",l["694"]="1h",l["695"]="1h",l["696"]="1h",l["697"]="1h",l["698"]="1h",l["699"]="1h",l["700"]="1h", l["701"]="1h",l["702"]="1h",l["703"]="1h",l["386"]="3",l["387"]="w",l["406"]="6",l["787"]="1",l["788"]="1",l["548"]="1e",l["549"]="1e",l["550"]="1e",l["551"]="1e",l["809"]="1e",l["810"]="1e",l["552"]="1e",l["811"]="1e",l["812"]="1e",l["553"]="1e",l["813"]="1e",l["814"]="1e",l["554"]="1e",l["815"]="1e",l["816"]="1e",l["555"]="1e",l["817"]="1e",l["818"]="1e",l["572"]="1e",l["556"]="1e",l["645"]="(",l["646"]="(",l["647"]="(",l["648"]="(",l["649"]="(",l["650"]="(",l["651"]="(",l["652"]="(",l["653"]="(", l["654"]="(",l["655"]="(",l["656"]="(",l["657"]="(",l["658"]="(",l["659"]="(",l["660"]="(",l["661"]="(",l["662"]="(",l["663"]="(",l["664"]="(",l["665"]="(",l["666"]="(",l["667"]="(",l["668"]="(",l["669"]="(",l["670"]="(",l["671"]="(",l["672"]="(",l["673"]="(",l["674"]="(h",l["675"]="(h",l["676"]="(h",l["677"]="(h",l["678"]="(h",l["679"]="(h",l["680"]="(h",l["681"]="(h",l["682"]="(h",l["683"]="(h",l["684"]="(h",l["685"]="(h",l["686"]="(h",l["687"]="(h",l["688"]="A",l["689"]="A",l["690"]="A",l["691"]= "MEAC3",l["773"]="i",l["806"]="I",l["805"]="I",l["829"]="9",l["830"]="9",l["831"]="9",l["832"]="9",l["833"]="9",l["834"]="9",l["835"]="9",l["836"]="9",l["837"]="9",l["838"]="9",l["839"]="9",l["840"]="9",l["841"]="(",l["842"]="(",l["843"]="(",l["844"]="(",l["845"]="(",l["846"]="(",l["847"]="(",l["848"]="(",l["849"]="(",l["850"]="(",l["851"]="(",l["852"]="(",l["865"]="9",l["866"]="9",l["867"]="9",l["868"]="9",l["869"]="9",l["870"]="9",l["871"]="9",l["872"]="9",l["873"]="9",l["874"]="9",l["875"]="9", l["876"]="9",l["877"]="(",l["878"]="(",l["879"]="(",l["880"]="(",l["881"]="(",l["882"]="(",l["883"]="(",l["884"]="(",l["885"]="(",l["886"]="(",l["887"]="(",l["888"]="(",l);var ex={},SjN=(ex.STEREO_LAYOUT_UNKNOWN=0,ex.STEREO_LAYOUT_LEFT_RIGHT=1,ex.STEREO_LAYOUT_TOP_BOTTOM=2,ex);var bn,Vc;bn={};g.bT=(bn.auto=0,bn.tiny=144,bn.light=144,bn.small=240,bn.medium=360,bn.large=480,bn.hd720=720,bn.hd1080=1080,bn.hd1440=1440,bn.hd2160=2160,bn.hd2880=2880,bn.highres=4320,bn);Vc={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var W$="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");k8.prototype.isHdr=function(){return this.K==="smpte2084"||this.K==="arib-std-b67"};KU.prototype.I5=function(){return this.containerType===2}; KU.prototype.isEncrypted=function(){return!!this.e$}; KU.prototype.gf=function(){return!!this.audio}; KU.prototype.Tj=function(){return!!this.video}; var lT=!1;g.U(ag,g.pi);g.C=ag.prototype;g.C.appendBuffer=function(M,f,A){if(this.QJ.m1()!==this.appendWindowStart+this.start||this.QJ.hA()!==this.appendWindowEnd+this.start||this.QJ.vX()!==this.timestampOffset+this.start)this.QJ.supports(1),this.QJ.Tk(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.QJ.CZ(this.timestampOffset+this.start);this.QJ.appendBuffer(M,f,A)}; g.C.abort=function(){this.QJ.abort()}; g.C.remove=function(M,f){this.QJ.remove(M+this.start,f+this.start)}; g.C.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.C.clear=function(){this.QJ.clear()}; g.C.Tk=function(M,f){this.appendWindowStart=M;this.appendWindowEnd=f}; g.C.g1=function(){return this.timestampOffset+this.start}; g.C.m1=function(){return this.appendWindowStart}; g.C.hA=function(){return this.appendWindowEnd}; g.C.CZ=function(M){this.timestampOffset=M}; g.C.vX=function(){return this.timestampOffset}; g.C.Da=function(M){M=this.QJ.Da(M===void 0?!1:M);return Vj(M,this.start,this.end)}; g.C.md=function(){return this.QJ.md()}; g.C.fG=function(){return this.QJ.fG()}; g.C.oh=function(){return this.QJ.oh()}; g.C.Z0=function(){return this.QJ.Z0()}; g.C.Lu=function(){this.QJ.Lu()}; g.C.r7=function(M){return this.QJ.r7(M)}; g.C.pM=function(){return this.QJ.pM()}; g.C.sj=function(){return this.QJ.sj()}; g.C.Y2=function(M,f,A){this.QJ.Y2(M,f,A)}; g.C.M2=function(M,f,A){this.QJ.M2(M,f,A)}; g.C.aS=function(M,f){return this.QJ.aS(M,f)}; g.C.supports=function(M){return this.QJ.supports(M)}; g.C.dE=function(){return this.QJ.dE()}; g.C.isView=function(){return!0}; g.C.Zz=function(){return this.QJ.Zz()?this.isActive:!1}; g.C.isLocked=function(){return this.FE&&!this.isActive}; g.C.lI=function(M){M=this.QJ.lI(M);M.vw=this.start+"-"+this.end;return M}; g.C.Q1=function(){return this.QJ.Q1()}; g.C.OD=function(){return this.QJ.OD()}; g.C.Pm=function(){return this.QJ.Pm()}; g.C.u8=function(){this.QJ.ud(this.YW);g.pi.prototype.u8.call(this)};var qy=!1;g.U(HM,g.pi);g.C=HM.prototype;g.C.appendBuffer=function(M,f,A){this.Yj=!1;A&&(this.e9=A);if(M.length){var Q;((Q=this.yw)==null?0:Q.appendBuffer)?this.yw.appendBuffer(M):this.yw?this.yw.append(M):this.NQ&&this.NQ.webkitSourceAppend(this.id,M)}f&&(f.isEncrypted()&&(this.yH=this.e9),f.type===3&&(this.df=f),this.UG.push(f.ZK()),this.UG.length>4&&this.UG.shift());this.Pi&&(this.Pi.length>=2||M.length>1048576?delete this.Pi:this.Pi.push(M))}; g.C.abort=function(){try{this.yw?this.yw.abort():this.NQ&&this.NQ.webkitSourceAbort(this.id)}catch(f){if(Vmb){var M=new g.GX("Error while abort the source buffer: "+f.name+", "+f.message);g.jZ(M)}}this.e9=this.df=null}; g.C.remove=function(M,f,A){this.Yj=!1;var Q;if((Q=this.yw)==null?0:Q.remove)A&&A({b:pO(this.Da()),s:M,e:f}),this.yw.remove(M,f)}; g.C.removeAll=function(){this.remove(this.m1(),this.hA())}; g.C.clear=function(){this.oh()||(this.abort(),this.removeAll(),this.yH=this.e9=this.df=null,this.appendWindowStart=this.timestampOffset=0,this.U_=vM([],[]),this.Yj=!1,this.Pi=qC?[]:void 0,this.iV=!0)}; g.C.m1=function(){if(qy&&this.Tj)return this.appendWindowStart;var M;return((M=this.yw)==null?void 0:M.appendWindowStart)||0}; g.C.hA=function(){var M;return((M=this.yw)==null?void 0:M.appendWindowEnd)||0}; g.C.Tk=function(M,f){this.yw&&(qy&&this.Tj?(this.appendWindowStart=M,this.yw.appendWindowEnd=f):M>this.m1()?(this.yw.appendWindowEnd=f,this.yw.appendWindowStart=M):(this.yw.appendWindowStart=M,this.yw.appendWindowEnd=f))}; g.C.g1=function(){return this.timestampOffset}; g.C.CZ=function(M){qy?this.timestampOffset=M:this.supports(1)&&(this.yw.timestampOffset=M)}; g.C.vX=function(){return qy?this.timestampOffset:this.supports(1)?this.yw.timestampOffset:0}; g.C.Da=function(M){if(M===void 0?0:M)return this.Yj||this.md()||(this.U_=this.Da(!1),this.Yj=!0),this.U_;try{return this.yw?this.yw.buffered:this.NQ?this.NQ.webkitSourceBuffered(this.id):vM([0],[Infinity])}catch(f){return vM([],[])}}; g.C.md=function(){var M;return((M=this.yw)==null?void 0:M.updating)||!1}; g.C.oh=function(){return this.iV}; g.C.Z0=function(){return!this.iV&&this.md()}; g.C.Lu=function(){this.iV=!1}; g.C.r7=function(M){var f=M==null?void 0:M.LJ;M=M==null?void 0:M.containerType;return!f&&!M||f===this.LJ&&M===this.containerType}; g.C.pM=function(){return this.e9}; g.C.sj=function(){return this.yH}; g.C.aS=function(M,f){return this.containerType!==M||this.LJ!==f}; g.C.Y2=function(M,f,A){if(this.containerType!==M||A&&this.aS(M,A))this.supports(4),mP()&&this.yw.changeType(f),A&&(this.LJ=A);this.containerType=M}; g.C.M2=function(M,f,A){this.containerType&&this.aS(M,f)&&mP()&&this.yw.changeType(A);this.containerType=M;this.LJ=f}; g.C.dE=function(){return this.df}; g.C.isView=function(){return!1}; g.C.supports=function(M){switch(M){case 1:var f;return((f=this.yw)==null?void 0:f.timestampOffset)!==void 0;case 0:var A;return!((A=this.yw)==null||!A.appendBuffer);case 2:var Q;return!((Q=this.yw)==null||!Q.remove);case 3:var N,Y;return!!(((N=this.yw)==null?0:N.addEventListener)&&((Y=this.yw)==null?0:Y.removeEventListener));case 4:return!(!this.yw||!this.yw.changeType);default:return!1}}; g.C.Zz=function(){return!this.md()}; g.C.isLocked=function(){return!1}; g.C.lI=function(M){M.to=this.vX();M.up=this.md();var f,A=((f=this.yw)==null?void 0:f.appendWindowStart)||0,Q;f=((Q=this.yw)==null?void 0:Q.appendWindowEnd)||Infinity;M.aw=A.toFixed(3)+"-"+f.toFixed(3);return M}; g.C.fG=function(){var M;return((M=this.yw)==null?void 0:M.writeHead)||0}; g.C.Q1=function(){for(var M={},f=0;f=7&&HJX(this,function(){g.Uf(function(){Fgz(M,M.getCurrentTime(),0)},500)}); return f}; g.C.seekTo=function(M){this.uS()>0&&(Pt&&Wt<4&&(M=Math.max(.1,M)),this.setCurrentTime(M))}; g.C.Xi=function(){if(!this.Z&&this.VY)if(this.VY.N)try{var M;fs(this,{l:"mer",sr:(M=this.d_)==null?void 0:M.PU(),rs:Q_(this.VY)});this.VY.clear();this.Z=this.VY;this.VY=void 0}catch(f){M=new g.GX("Error while clearing Media Source in MediaElement: "+f.name+", "+f.message),g.jZ(M),this.stopVideo()}else this.stopVideo()}; g.C.stopVideo=function(){var M=this;if(!this.Z){var f;(f=this.VY)==null||nZT(f);if(oNc){if(!this.j){var A=new Yl;A.then(void 0,function(){}); this.j=A;Ckd&&this.pause();g.Uf(function(){M.j===A&&(Ej(M),A.resolve())},200)}}else Ej(this)}}; g.C.a_=function(){var M=this.a9();return CO(M)&&this.getDuration()?LO(M,this.getCurrentTime()):0}; g.C.fM=function(){var M=this.getDuration();return M===Infinity?1:M?this.a_()/M:0}; g.C.lI=function(){try{var M=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:pO(this.eD(),",",3),vbu:pO(this.a9()),vbs:pO(this.Rf()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.uS(),vns:""+this.Zs(),vec:""+this.Jg(),vemsg:this.HP(),vvol:""+this.getVolume(),vdom:""+ +this.IM(),vsrc:""+ +!!this.t3(),vw:""+M.width,vh:""+M.height}}catch(f){return{}}}; g.C.hasError=function(){return this.Jg()>0}; g.C.addEventListener=function(M,f){this.C.listen(M,f,!1,this);this.f$(M)}; g.C.removeEventListener=function(M,f){this.C.Hv(M,f,!1,this)}; g.C.dispatchEvent=function(M){if(this.j&&M.type==="pause")return!1;if(Uoc){var f,A=((f=M.K)==null?void 0:f.timeStamp)||Infinity;f=A>performance.now()?A-Date.now()+performance.now():A;A=this.Z||this.VY;if((A==null?0:A.oh())||f<=((A==null?void 0:A.G)||0)){var Q;fs(this,{l:"mede",sr:(Q=this.d_)==null?void 0:Q.PU(),et:M.type});return!1}if(this.R4)return fs(this,{l:"medes",et:M.type}),A&&M.type==="seeking"&&(A.G=performance.now(),this.R4=!1),!1}return this.C.dispatchEvent(M)}; g.C.zR=function(){this.G=!1}; g.C.jd=function(){this.G=!0;this.gW(!0)}; g.C.sT=function(){this.G&&!this.KG()&&this.gW(!0)}; g.C.equals=function(M){return!!M&&M.iI()===this.iI()}; g.C.u8=function(){this.W&&this.removeEventListener("volumechange",this.sT);oNc&&Ej(this);g.y.prototype.u8.call(this)}; var oNc=!1,Ckd=!1,Uoc=!1,e_0=!1;g.C=g.v8.prototype;g.C.isPaused=function(){return g.J(this,4)}; g.C.isPlaying=function(){return g.J(this,8)&&!g.J(this,512)&&!g.J(this,64)&&!g.J(this,2)}; g.C.isOrWillBePlaying=function(){return g.J(this,8)&&!g.J(this,2)&&!g.J(this,1024)}; g.C.isCued=function(){return g.J(this,64)&&!g.J(this,8)&&!g.J(this,4)}; g.C.isBuffering=function(){return g.J(this,1)&&!g.J(this,2)}; g.C.isError=function(){return g.J(this,128)}; g.C.isSuspended=function(){return g.J(this,512)}; g.C.L1=function(){return g.J(this,64)&&g.J(this,4)}; g.C.toString=function(){return"PSt."+this.state.toString(16)}; var kp={},WG=(kp.BUFFERING="buffering-mode",kp.CUED="cued-mode",kp.ENDED="ended-mode",kp.PAUSED="paused-mode",kp.PLAYING="playing-mode",kp.SEEKING="seeking-mode",kp.UNSTARTED="unstarted-mode",kp);g.U(qk,g.y);g.C=qk.prototype;g.C.VS=function(){return this.j}; g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.init=function(){var M=tA(this.layout.clientMetadata,"metadata_type_video_length_seconds"),f=tA(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");gM(this.layout.Kk)&&Al(this.tP.get(),this.layout.layoutId,{sW:f,aj:M,listener:this,Dh:this.Py()});z3b(this.yY.get(),this);M=this.lD;f=this.layout.layoutId;var A={Dh:this.Py()};M.K.set(f,A);this.OY()}; g.C.BC=function(){}; g.C.release=function(){gM(this.layout.Kk)&&Qy(this.tP.get(),this.layout.layoutId);P_b(this.yY.get(),this);this.lD.K.delete(this.layout.layoutId);this.aC()}; g.C.uK=function(){}; g.C.A5=function(){}; g.C.startRendering=function(M){gw(H8(this));if(mo(this,M)){var f=this.K;B$(f.params.B2.kO.get(),!0)&&a4t(f,"p_sr",{});sj(this);this.Id(M);this.Py()||this.F6(!1)}}; g.C.XC=function(M,f){if(f.layoutId===this.layout.layoutId){this.hP="rendering";this.Z=this.Sk.get().isMuted()||this.Sk.get().getVolume()===0;this.RE("impression");this.RE("start");if(this.Sk.get().isMuted()){xl(this,"mute");var A;M=((A=at(this))==null?void 0:A.muteCommands)||[];JA(this.AP.get(),M,this.layout.layoutId)}if(this.Sk.get().isFullscreen()){this.FH("fullscreen");var Q;A=((Q=at(this))==null?void 0:Q.fullscreenCommands)||[];JA(this.AP.get(),A,this.layout.layoutId)}this.Py()||(Q=this.kC.get(), Q.j&&!Q.Z&&(Q.N=!1,Q.Z=!0,Q.actionType!=="ad_to_video"&&(Xx("pbs",void 0,Q.actionType),g.mE("finalize_all_timelines")&&fyN(Q.actionType))));this.wD(1);this.Sq(f);var N;f=((N=at(this))==null?void 0:N.impressionCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}}; g.C.RH=function(M,f,A){this.W={KN:3,hw:M==="load_timeout"?402:400,errorMessage:f.message};this.RE("error");var Q;M=((Q=at(this))==null?void 0:Q.errorCommands)||[];JA(this.AP.get(),M,this.layout.layoutId);this.Py()||this.S4.KW(this.slot,this.layout,f,A)}; g.C.Oe=function(){if(this.hP==="rendering"){xl(this,"pause");var M,f=((M=at(this))==null?void 0:M.pauseCommands)||[];JA(this.AP.get(),f,this.layout.layoutId);this.wD(2)}}; g.C.v1=function(){if(this.hP==="rendering"){xl(this,"resume");var M,f=((M=at(this))==null?void 0:M.resumeCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}}; g.C.HV=function(M,f){f=f===void 0?!1:f;if(this.hP==="rendering"){var A={currentTimeSec:M,flush:f};iT(this.K,"p_ip",A);Pl(this.Mu,M*1E3,f);this.Z||Pl(this.Mu,M*1E3,f===void 0?!1:f);var Q=this.Ga();if(Q){Q/=1E3;if(M>=Q*.25||f)this.RE("first_quartile"),iT(this.K,"p_fq",A);if(M>=Q*.5||f)this.RE("midpoint"),iT(this.K,"p_sq",A);if(M>=Q*.75||f)this.RE("third_quartile"),iT(this.K,"p_tq",A);this.kO.get().U.T().experiments.X3("enable_progress_command_flush_on_kabuki")?kD(this.C,M*1E3,f):kD(this.C,M*1E3,JFX(this)? f:!1)}}}; g.C.fh=function(){var M;return((M=c8(this.m$.get(),1))==null?void 0:M.clientPlaybackNonce)||""}; g.C.zY=function(M,f){M.layoutId!==this.layout.layoutId?this.S4.KW(this.slot,M,new Ds("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"):f()}; g.C.It=function(M,f,A){if(f.layoutId===this.layout.layoutId)switch(this.hP="not_rendering",this.layoutExitReason=void 0,this.Py()||(M=A!=="normal"||this.position+1===this.G)&&this.F6(M),this.W1(A),this.wD(0),A){case "abandoned":if(nh(this.Mu,"impression")){var Q,N=((Q=at(this))==null?void 0:Q.abandonCommands)||[];JA(this.AP.get(),N,this.layout.layoutId)}break;case "normal":Q=((N=at(this))==null?void 0:N.completeCommands)||[];JA(this.AP.get(),Q,this.layout.layoutId);break;case "skipped":var Y;Q=((Y= at(this))==null?void 0:Y.skipCommands)||[];JA(this.AP.get(),Q,this.layout.layoutId)}}; g.C.NG=function(){return this.layout.layoutId}; g.C.YB=function(){return this.W}; g.C.yz=function(){if(this.hP==="rendering"){this.Mu.RE("active_view_measurable");var M,f=((M=at(this))==null?void 0:M.activeViewMeasurableCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}}; g.C.eF=function(){if(this.hP==="rendering"){this.Mu.RE("active_view_fully_viewable_audible_half_duration");var M,f=((M=at(this))==null?void 0:M.activeViewFullyViewableAudibleHalfDurationCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}}; g.C.nT=function(){if(this.hP==="rendering"){this.Mu.RE("active_view_viewable");var M,f=((M=at(this))==null?void 0:M.activeViewViewableCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}}; g.C.Uc=function(){if(this.hP==="rendering"){this.Mu.RE("audio_audible");var M,f=((M=at(this))==null?void 0:M.activeViewAudioAudibleCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}}; g.C.gs=function(){if(this.hP==="rendering"){this.Mu.RE("audio_measurable");var M,f=((M=at(this))==null?void 0:M.activeViewAudioMeasurableCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}}; g.C.F6=function(M){this.kC.get().F6(tA(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,M,this.position,this.G,!1)}; g.C.onFullscreenToggled=function(M){if(this.hP==="rendering")if(M){this.FH("fullscreen");var f,A=((f=at(this))==null?void 0:f.fullscreenCommands)||[];JA(this.AP.get(),A,this.layout.layoutId)}else this.FH("end_fullscreen"),f=((A=at(this))==null?void 0:A.endFullscreenCommands)||[],JA(this.AP.get(),f,this.layout.layoutId)}; g.C.onVolumeChange=function(){if(this.hP==="rendering")if(this.Sk.get().isMuted()){xl(this,"mute");var M,f=((M=at(this))==null?void 0:M.muteCommands)||[];JA(this.AP.get(),f,this.layout.layoutId)}else xl(this,"unmute"),M=((f=at(this))==null?void 0:f.unmuteCommands)||[],JA(this.AP.get(),M,this.layout.layoutId)}; g.C.gL=function(){}; g.C.M4=function(){}; g.C.ZQ=function(){}; g.C.wu=function(){}; g.C.X7=function(){}; g.C.FH=function(M){this.Mu.FH(M,!this.Z)}; g.C.RE=function(M){this.Mu.RE(M,!this.Z)}; g.C.Py=function(){var M=tA(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return M===void 0?(o1("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.kO.get().Py(M)};g.U(P8,qk);g.C=P8.prototype;g.C.OY=function(){}; g.C.aC=function(){var M=this.yY.get();M.NS===this&&(M.NS=null);this.M3.stop()}; g.C.uK=function(){this.M3.stop();qk.prototype.Oe.call(this)}; g.C.A5=function(){jV(this);qk.prototype.v1.call(this)}; g.C.Ga=function(){return tA(this.Rx().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.C.b7=function(M,f){var A=this;this.zY(M,function(){A.hP!=="rendering_stop_requested"&&(A.hP="rendering_stop_requested",A.layoutExitReason=f,Rt(A,f),A.M3.stop())})}; g.C.z_=function(){var M=Date.now(),f=M-this.GW;this.GW=M;this.zQ+=f;this.zQ>=this.Ga()?this.Ns():(this.HV(this.zQ/1E3),ns(this,this.zQ))}; g.C.W1=function(){}; g.C.J3=function(){}; g.U($l,P8);g.C=$l.prototype;g.C.vP=function(M){if(this.hP!=="not_rendering"){M=gG(this,M);var f=this.Sk.get().getPresentingPlayerType()===2;this.hP==="rendering_start_requested"?f&&LU(M)&&this.PG():f?g.V2(M,2)?o1("Receive player ended event during MediaBreak",this.Vw(),this.Rx()):B8(this,M):this.vC()}}; g.C.Id=function(){OJ9(this);Wdb(this.Sk.get());this.yY.get().NS=this;W9("pbp")||W9("pbs")||Xx("pbp");W9("pbp","watch")||W9("pbs","watch")||Xx("pbp",void 0,"watch");this.PG()}; g.C.Sq=function(M){this.kC.get();var f=tA(M.clientMetadata,"metadata_type_ad_placement_config").kind,A=this.position===0;M=tA(M.clientMetadata,"metadata_type_linked_in_player_layout_type");M={adBreakType:i2(f),adType:Iuf(M)};var Q=void 0;A?f!=="AD_PLACEMENT_KIND_START"&&(Q="video_to_ad"):Q="ad_to_ad";eh("ad_mbs",void 0,Q);g.bB(M,Q);jV(this)}; g.C.vC=function(){this.aQ()}; g.C.Ns=function(){G_D(this);this.aQ()}; g.U(F7,P8);g.C=F7.prototype;g.C.vP=function(M){this.hP!=="not_rendering"&&(M=gG(this,M),B8(this,M))}; g.C.Id=function(){o1("Not used in SSAP")}; g.C.Sq=function(){jV(this)}; g.C.vC=function(){o1("Not used in SSAP")}; g.C.Ns=function(){G_D(this);this.S4.Hi(this.Vw(),this.Rx(),"normal")}; g.U(y_,F7);y_.prototype.b7=function(M,f){var A=this;this.zY(M,function(){H$(A.j,f)&&(A.hP="rendering_stop_requested",A.layoutExitReason=f,Rt(A,f),A.M3.stop())})}; y_.prototype.startRendering=function(M){gw(H8(this));mo(this,M)&&(sj(this),this.yY.get().NS=this)};g.U(b2,qk);g.C=b2.prototype;g.C.vC=function(){this.aQ()}; g.C.vP=function(M){if(this.hP!=="not_rendering"){M=gG(this,M);var f=this.Sk.get().getPresentingPlayerType()===2;this.hP==="rendering_start_requested"?f&&LU(M)&&this.PG():!f||g.V2(M,2)?this.aQ():B8(this,M)}}; g.C.OY=function(){tA(this.Rx().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=tA(this.Rx().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.C.aC=function(){tA(this.Rx().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.AR){var M=this.context.B2,f=this.AR,A=this.Rx().layoutId;if(B$(M.kO.get(),!0)){var Q={};M.F3("mccru",(Q.cid=f,Q.p_ac=A,Q))}this.Ud.get().removeCueRange(this.AR)}this.AR=void 0;var N;(N=this.p7)==null||N.dispose();this.ov&&this.ov.dispose()}; g.C.Id=function(M){var f=dG(this.kO.get()),A=eV(this.kO.get());if(f&&A&&!this.Py()){A=tA(M.clientMetadata,"metadata_type_preload_player_vars");var Q=this.kO.get();Q=g.CE(Q.U.T().experiments,"html5_preload_wait_time_secs");A&&this.ov&&this.ov.start(Q*1E3)}Mhf(this,M);OJ9(this);f?(A=this.Kd.get(),M=tA(M.clientMetadata,"metadata_type_player_vars"),A.U.loadVideoByPlayerVars(M,!1,2)):Yeb(this.Kd.get(),tA(M.clientMetadata,"metadata_type_player_vars"));var N;(N=this.p7)==null||N.start();f||this.Kd.get().U.playVideo(2)}; g.C.Sq=function(){var M;(M=this.p7)==null||M.stop();this.AR="adcompletioncuerange:"+this.Rx().layoutId;this.Ud.get().addCueRange(this.AR,0x7ffffffffffff,0x8000000000000,!1,this,2,2);M=this.context.B2;var f=this.AR,A=this.Rx().layoutId;if(B$(M.kO.get(),!0)){var Q={};M.F3("mccr",(Q.cid=f,Q.p_ac=A,Q))}(this.adCpn=Wg9(this))||o1("Media layout confirmed started, but ad CPN not set.");this.w2.get().q8("onAdStart",this.adCpn);this.UT=Date.now()}; g.C.Ga=function(){var M;return(M=c8(this.m$.get(),2))==null?void 0:M.RF}; g.C.hj=function(){this.Mu.FH("clickthrough")}; g.C.b7=function(M,f){var A=this;this.zY(M,function(){if(A.hP!=="rendering_stop_requested"){A.hP="rendering_stop_requested";A.layoutExitReason=f;Rt(A,f);var Q;(Q=A.p7)==null||Q.stop();A.ov&&A.ov.stop();fu9(A)}})}; g.C.onCueRangeEnter=function(M){if(M!==this.AR)o1("Received CueRangeEnter signal for unknown layout.",this.Vw(),this.Rx(),{cueRangeId:M});else{var f=this.context.B2,A=this.Rx().layoutId;if(B$(f.kO.get(),!0)){var Q={};f.F3("mccre",(Q.cid=M,Q.p_ac=A,Q))}this.Ud.get().removeCueRange(this.AR);this.AR=void 0;l7(this.context.kO.get(),"html5_ssap_flush_at_stop_rendering")&&this.Py()||(M=tA(this.Rx().clientMetadata,"metadata_type_video_length_seconds"),this.HV(M,!0),this.RE("complete"))}}; g.C.W1=function(M){M!=="abandoned"&&this.w2.get().q8("onAdComplete");this.w2.get().q8("onAdEnd",this.adCpn)}; g.C.onCueRangeExit=function(){}; g.C.J3=function(M){this.hP==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&M>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Sk.get().wR(!0),this.HV(M))}; g.C.HV=function(M,f){qk.prototype.HV.call(this,M,f===void 0?!1:f);f=Date.now()-this.UT;var A=M*1E3,Q={contentCpn:this.fh(),adCpn:Wg9(this)};if(M-this.Nf>=5){var N=f=2||(this.Wv.b7(this.layout,f),M=l7(this.params.context.kO.get(),"html5_ssap_pass_transition_reason")&&f==="abandoned",this.Me()&&!M&&(l7(this.params.context.kO.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(f)||o1("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:f})),this.s$.get().finishSegmentByCpn(this.layout.layoutId, c8(this.m$.get(),1).clientPlaybackNonce,rG(f,this.params.context.kO))),this.Sk.get().removeListener(this),this.hF()&&mz(this.Wv.VS())&&this.We.It(this.slot,this.layout,qd(this.Wv.VS())))}; g.C.Zd=function(M,f,A){Ui0({cpn:M,I9:this.m$.get(),rz:!0});this.Rx().layoutId!==M||l7(this.params.context.kO.get(),"html5_ssap_pass_transition_reason")&&A===5||(a8(this.Wv.VS())<2&&(M=u2(A,this.params.context.kO),M==="error"?this.We.KW(this.slot,this.layout,new Ds("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:A},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):MK(this.Hy,this.layout, M)),l7(this.params.context.kO.get(),"html5_ssap_exit_without_waiting_for_transition")||this.We.It(this.slot,this.layout,qd(this.Wv.VS())))};g.U(Jm,g.y);g.C=Jm.prototype;g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.Bl=function(){}; g.C.xx=function(){return this.bD[this.oQ]}; g.C.Ae=function(){return this.oQ}; g.C.uK=function(M,f){var A=this.xx();f.layoutId!==GE(A,M,f)?o1("pauseLayout for a PlayerBytes layout that is not currently active",M,f):A.uK()}; g.C.A5=function(M,f){var A=this.xx();f.layoutId!==GE(A,M,f)?o1("resumeLayout for a PlayerBytes layout that is not currently active",M,f):A.A5()}; g.C.RC=function(M,f){var A=this.xx();v7N(this,M,f);p9d(A,M,f)&&this.Mh(A.Vw(),A.Rx(),"skipped")}; g.C.SZ=function(M,f){var A=this.xx();h0X(this);S7t(A,M,f)&&(M=LiN(this,A,M,f),M!==void 0&&(this.Py()?o1("Should not happen. Should delete"):CB6(this,A.Vw(),A.Rx(),M)))}; g.C.pm=function(M,f){var A=Object.assign({},Ks(this),{layoutId:f.layoutId}),Q=A.layoutId,N=A.rz;if(A.Dh){var Y={};R8(A.I9,"wrse",(Y.ec=Q,Y.is=N,Y.ctp=c$(Q),Y))}rf(this.pZ,M,f)}; g.C.XC=function(M,f){var A;(A=this.xx())==null||A.XC(M,f)}; g.C.It=function(M,f,A){f.layoutId===this.Rx().layoutId&&(this.Wb=!1,qa(this.rq(),this));var Q;(Q=this.xx())==null||Q.It(M,f,A)}; g.C.J3=function(M){var f;(f=this.xx())==null||f.J3(M)}; g.C.nG=function(M,f,A){this.Ae()===-1&&(this.callback.XC(this.slot,this.layout),this.oQ++);var Q=this.xx();Q?(Q.RH(M,f,A),this.Py()&&this.callback.KW(this.slot,this.layout,f,A)):o1("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Ae()),layoutId:this.Rx().layoutId})}; g.C.onFullscreenToggled=function(M){var f;(f=this.xx())==null||f.onFullscreenToggled(M)}; g.C.gL=function(M){var f;(f=this.xx())==null||f.gL(M)}; g.C.ZQ=function(M){var f;(f=this.xx())==null||f.ZQ(M)}; g.C.onVolumeChange=function(){var M;(M=this.xx())==null||M.onVolumeChange()}; g.C.l1=function(M,f,A){u7(this.pZ,M,f,A)}; g.C.S6=function(M){M.startRendering(M.Rx())}; g.C.init=function(){var M=tA(this.Rx().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");M&&(M.current=this);if(this.bD.length<1)throw new K("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.bD.length)});if(M=tA(this.Rx().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))M.current=this;M=g.V(this.bD);for(var f=M.next();!f.done;f=M.next())f=f.value,f.init(),$8d(this.pZ,this.slot,f.Rx()),FNd(this.pZ,this.slot,f.Rx()); if(this.Py())for(this.m$.get().addListener(this),p2t(the(this),this.m$.get()),M=the(this),M=g.V(M),f=M.next();!f.done;f=M.next())this.Im(f.value)}; g.C.Im=function(M){var f=tA(M.clientMetadata,"metadata_type_player_vars");f?(M.layoutType!=="LAYOUT_TYPE_MEDIA"&&o1("Non-video ad contains playerVars",this.slot,M),this.Kd.get().addPlayerResponseForAssociation({playerVars:f})):(M=TRb(M),this.Kd.get().addPlayerResponseForAssociation({p4:M}))}; g.C.release=function(){var M=tA(this.Rx().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");M&&(M.current=null);if(M=tA(this.Rx().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))M.current=null;M=g.V(this.bD);for(var f=M.next();!f.done;f=M.next())f=f.value,yQU(this.pZ,this.slot,f.Rx()),f.release();this.Py()&&(this.m$.get().removeListener(this),h_d())}; g.C.zY=function(M){return M.layoutId!==this.Rx().layoutId?(this.callback.KW(this.Vw(),M,new Ds("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Rx().layoutId+("and LayoutType: "+this.Rx().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.C.Tz=function(){this.Sk.get().addListener(this);aD(this.rq(),this)}; g.C.vP=function(M){if(M.state.isError()){var f,A;this.nG((f=M.state.MQ)==null?void 0:f.errorCode,new Ds("There was a player error during this media layout.",{playerErrorCode:(A=M.state.MQ)==null?void 0:A.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(f=this.xx())&&f.vP(M)}; g.C.Py=function(){var M=tA(this.Vw().clientMetadata,"metadata_type_eligible_for_ssap");return M===void 0?(o1("Expected SSAP eligibility in PlayerBytes slots",this.Vw(),this.Rx()),!1):this.kO.get().Py(M)}; g.C.M4=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.wu=function(){}; g.C.X7=function(){}; g.U(fc,Jm);g.C=fc.prototype;g.C.AK=function(M,f,A){this.Mh(M,f,A)}; g.C.SX=function(M,f){this.Mh(M,f,"error")}; g.C.Mh=function(M,f,A){var Q=this;o7T(this,M,f,A,function(){wG(Q,Q.Ae()+1)})}; g.C.startRendering=function(M){this.zY(M)&&(this.Tz(),AcX(this.kC.get()),vg0(this.kO.get())||Wdb(this.Sk.get()),this.Ae()===-1&&wG(this,this.Ae()+1))}; g.C.b7=function(M,f){var A=this;this.Wb=!0;this.Ae()===this.bD.length?this.callback.It(this.slot,this.layout,f):(M=this.xx(),M.b7(M.Rx(),f),this.Qx=function(){A.callback.It(A.slot,A.layout,f)}); OIt(this.Sk.get());Yeb(this.Kd.get(),{});M=fT(this.Sk.get(),1);M.isPaused()&&!g.J(M,2)&&this.Sk.get().playVideo();this.Sk.get().removeListener(this);this.Wb&&UOb(this)}; g.C.Zd=function(){}; g.C.KO=function(){}; g.C.Hi=function(){}; g.U(Az,Jm);g.C=Az.prototype;g.C.AK=function(M,f,A){M=Object.assign({},Ks(this),{layoutId:f.layoutId,layoutExitReason:A});f=M.layoutId;A=M.layoutExitReason;var Q={};R8(M.I9,"prse",(Q.xc=f,Q.ler=A,Q.ctp=c$(f),Q))}; g.C.SX=function(){o1("onSubLayoutError in SSAP")}; g.C.Mh=function(){o1("exitSubLayoutAndPlayNext in SSAP")}; g.C.xx=function(){return this.AX}; g.C.Ae=function(){var M=this;return this.bD.findIndex(function(f){var A;return f.Rx().layoutId===((A=M.AX)==null?void 0:A.Rx().layoutId)})}; g.C.S6=function(M){LJ(this.AX===void 0,"replacing another adapter");this.AX=M;M.startRendering(M.Rx())}; g.C.l1=function(M,f,A){u7(this.pZ,M,f,A);var Q;LJ(f.layoutId===((Q=this.AX)==null?void 0:Q.Rx().layoutId),"currentAdapter does not match exiting layout",{slot:M?"slot: "+M.slotType:"",subLayout:SI(f)})&&(this.AX=void 0)}; g.C.release=function(){Jm.prototype.release.call(this);LJ(this.AX===void 0,"currentAdapter is still active during release");this.AX=void 0}; g.C.Me=function(){return this.Sk.get().getPresentingPlayerType()===2}; g.C.b7=function(M,f){function A(){Q6(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(f)||o1("Composite stopRendering: Unexpected layout exit reason",this.slot,M,{layoutExitReason:f}))} function Q(){this.AX&&NK(this,this.AX,f);if(this.Me()&&(!Q6(this)||f!=="abandoned")){A.call(this);var Y;var I=((Y=this.m$.get().U.getVideoData())==null?void 0:Y.clientPlaybackNonce)||"";Y=c8(this.m$.get(),1).clientPlaybackNonce;this.s$.get().finishSegmentByCpn(I,Y,rG(f,this.kO))}VhN(this,f)} function N(){if(this.AX){var Y=this.AX;a8(Y.VS())<2&&Y.b7(Y.Rx(),f);Y=Q6(this)&&f==="abandoned";this.Me()&&!Y&&(A.call(this),this.s$.get().finishSegmentByCpn(this.AX.Rx().layoutId,c8(this.m$.get(),1).clientPlaybackNonce,rG(f,this.kO)))}} LJ(M.layoutId===this.Rx().layoutId,"StopRendering for wrong layout")&&H$(this.jw.Z,f)&&(this.hF()?Q.call(this):N.call(this))}; g.C.It=function(M,f,A){Jm.prototype.It.call(this,M,f,A);f.layoutId===this.Rx().layoutId&&this.Sk.get().removeListener(this)}; g.C.fh=function(){return c8(this.m$.get(),1).clientPlaybackNonce}; g.C.Zd=function(M,f,A){Ui0(Object.assign({},Ks(this),{cpn:M}));if(!Q6(this)||A!==5)if(this.hF()){if(this.AX&&this.AX.Rx().layoutId!==f){var Q=this.AX.Rx().layoutId;Q!==M&&o1("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:Q,exitingCpn:M,enteringCpn:f});M=u2(A,this.kO);NK(this,this.AX,M)}else this.AX&&o1("onClipExited: active layout is entering again");f===this.fh()&&q7z(this,A)}else{if(this.AX&&this.AX.Rx().layoutId===M)auN(this,this.AX,A);else{var N;o1("Exiting cpn does not match active cpn", this.slot,(Q=this.AX)==null?void 0:Q.Rx(),{exitingCpn:M,transitionReason:A,activeCpn:(N=this.AX)==null?void 0:N.Rx().layoutId})}f===this.fh()&&(this.AX!==void 0&&(o1("active adapter is not properly exited",this.slot,this.layout,{activeLayout:SI(this.AX.Rx())}),auN(this,this.AX,A)),q7z(this,A),VhN(this,this.jw.Z.K))}}; g.C.hF=function(){return l7(this.kO.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.C.startRendering=function(M){this.zY(M)&&(M=this.jw,LJ(M.K===1,"tickStartRendering: state is not initial"),M.K=2,this.Tz())}; g.C.KO=function(M){CMd(Object.assign({},Ks(this),{cpn:M}));var f=this.bD.find(function(A){return A.Rx().layoutId===M}); f?(this.jw.K!==2&&(Nfb(this.f3,this.slot.slotId),LJ(this.jw.K===2,"Expect started"),this.callback.XC(this.slot,this.layout)),this.S6(f),rf(this.pZ,this.slot,f.Rx())):Hpb(this,M)}; g.C.RC=function(M,f){v7N(this,M,f);var A=this.xx();A?p9d(A,M,f)&&mOb(this,"skipped"):sYN(this,"onSkipRequested")}; g.C.SZ=function(M,f){var A;a:{if(A=this.xx()){if(h0X(this),S7t(A,M,f)&&(M=LiN(this,A,M,f),M!==void 0)){A={Tx:A,yaY:this.bD[M]};break a}}else sYN(this,"SkipWithAdPodSkip");A=void 0}if(M=A)A=M.Tx,f=M.yaY,M=A.Rx().layoutId,this.hF()?NK(this,A,"skipped"):A.b7(A.Rx(),"skipped"),A=f.Rx().layoutId,this.s$.get().finishSegmentByCpn(M,A,rG("skipped",this.kO))}; g.C.pm=function(){o1("Not used in html5_ssap_fix_layout_exit")}; g.C.vP=function(M){var f;(f=this.xx())==null||f.vP(M)}; g.C.nG=function(){o1("Not used in html5_ssap_fix_layout_exit")}; g.C.Hi=function(M,f,A){var Q;if(((Q=this.xx())==null?void 0:Q.Rx().layoutId)!==f.layoutId)return void o1("requestToExitSubLayout: wrong layout");mOb(this,A)};g.U(Yz,g.y);g.C=Yz.prototype;g.C.Vw=function(){return this.Wv.Vw()}; g.C.Rx=function(){return this.Wv.Rx()}; g.C.init=function(){var M=tA(this.Rx().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");M&&(M.current=this);this.OY()}; g.C.OY=function(){this.Wv.init()}; g.C.release=function(){var M=tA(this.Rx().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");M&&(M.current=null);this.aC()}; g.C.aC=function(){this.Wv.release()}; g.C.uK=function(){this.Wv.uK()}; g.C.A5=function(){this.Wv.A5()}; g.C.RC=function(M,f){o1("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Vw(),this.Rx(),{requestingSlot:M,requestingLayout:f})}; g.C.startRendering=function(M){M.layoutId!==this.Rx().layoutId?this.callback.KW(this.Vw(),M,new Ds("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Rx().layoutId+("and LayoutType: "+this.Rx().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Sk.get().addListener(this),aD(this.rq(),this),AcX(this.kC.get()),vg0(this.kO.get())||Wdb(this.Sk.get()),this.Wv.startRendering(M))}; g.C.b7=function(M,f){this.Wb=!0;this.Wv.b7(M,f);OIt(this.Sk.get());Yeb(this.Kd.get(),{});M=fT(this.Sk.get(),1);M.isPaused()&&!g.J(M,2)&&this.Sk.get().playVideo();this.Sk.get().removeListener(this);this.Wb&&this.Wv.vC()}; g.C.XC=function(M,f){this.Wv.XC(M,f)}; g.C.It=function(M,f,A){f.layoutId===this.Rx().layoutId&&(this.Wb=!1,qa(this.rq(),this));this.Wv.It(M,f,A);f.layoutId===this.Rx().layoutId&&l2(this.kC.get())}; g.C.J3=function(M){this.Wv.J3(M)}; g.C.vP=function(M){if(M.state.isError()){var f,A;this.nG((f=M.state.MQ)==null?void 0:f.errorCode,new Ds("There was a player error during this media layout.",{playerErrorCode:(A=M.state.MQ)==null?void 0:A.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Wv.vP(M)}; g.C.nG=function(M,f,A){this.Wv.RH(M,f,A)}; g.C.onFullscreenToggled=function(M){this.Wv.onFullscreenToggled(M)}; g.C.gL=function(M){this.Wv.gL(M)}; g.C.ZQ=function(M){this.Wv.ZQ(M)}; g.C.onVolumeChange=function(){this.Wv.onVolumeChange()}; g.C.M4=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.wu=function(){}; g.C.X7=function(){};g.C=Iq.prototype;g.C.Vw=function(){return this.slot}; g.C.Rx=function(){return this.layout}; g.C.init=function(){this.Xn.get().addListener(this);this.Sk.get().addListener(this);var M=tA(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var f=tA(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.C){var A=lMN(this.Xn.get()).slice(-1)[0];A!==void 0&&(M=A.startSecs*1E3,f=(A.startSecs+A.UR)*1E3)}this.BC(M,f);var Q;A=(Q=Dz(this.m$.get()))==null?void 0:Q.clientPlaybackNonce;Q=this.layout.ex.adClientDataEntry;TS(this.yY.get(),{daiStateTrigger:{filledAdsDurationMs:f-M,contentCpn:A, adClientData:Q}});var N=this.Xn.get();N=g7d(N.j,M,f);N!==null&&(TS(this.yY.get(),{daiStateTrigger:{filledAdsDurationMs:N-M,contentCpn:A,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:Q}}),this.s$.get().l$(N,f))}; g.C.release=function(){this.aC();this.Xn.get().removeListener(this);this.Sk.get().removeListener(this)}; g.C.startRendering=function(){this.Id();this.callback.XC(this.slot,this.layout)}; g.C.b7=function(M,f){this.IT(f);if(this.driftRecoveryMs!==null){M=this.driftRecoveryMs.toString();var A=Math.round(BRc(this)-tA(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),Q=Math,N=Q.round;var Y=this.Sk.get().U.U6();EN(this,{driftRecoveryMs:M,breakDurationMs:A,driftFromHeadMs:N.call(Q,Y*1E3).toString()});this.driftRecoveryMs=null}this.callback.It(this.slot,this.layout,f)}; g.C.mE=function(){return!1}; g.C.Kp=function(M){var f=tA(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),A=tA(this.layout.clientMetadata,"metadata_type_layout_exit_ms");M*=1E3;if(f<=M&&M0&&zQ(this.K(),f)}; g.C.GP=function(M){this.N.delete(M.slotId);for(var f=[],A=g.V(this.Sx.values()),Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var N=Q.trigger;N instanceof NH&&N.triggeringSlotId===M.slotId&&f.push(Q)}f.length>0&&zQ(this.K(),f)}; g.C.eV=function(M){for(var f=[],A=g.V(this.Sx.values()),Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var N=Q.trigger;N instanceof X2&&N.slotType===M.slotType&&N.K!==M.slotId&&f.push(Q)}f.length>0&&zQ(this.K(),f)}; g.C.nx=function(M){this.j.add(M.slotId);for(var f=[],A=g.V(this.Sx.values()),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.trigger instanceof l9&&M.slotId===Q.trigger.triggeringSlotId&&f.push(Q);f.length>0&&zQ(this.K(),f)}; g.C.mG=function(M){this.j.delete(M.slotId);this.C.add(M.slotId);for(var f=[],A=g.V(this.Sx.values()),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.trigger instanceof MH)M.slotId===Q.trigger.triggeringSlotId&&f.push(Q);else if(Q.trigger instanceof nc){var N=Q.trigger;M.slotId===N.slotId&&this.Z.has(N.triggeringLayoutId)&&f.push(Q)}f.length>0&&zQ(this.K(),f)}; g.C.cK=function(M){for(var f=[],A=g.V(this.Sx.values()),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.trigger instanceof fd&&M.slotId===Q.trigger.triggeringSlotId&&f.push(Q);f.length>0&&zQ(this.K(),f)}; g.C.mQ=function(M){for(var f=[],A=g.V(this.Sx.values()),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.trigger instanceof Ae&&M.slotId===Q.trigger.triggeringSlotId&&f.push(Q);f.length>0&&zQ(this.K(),f)}; g.C.dL=function(M,f){this.G.add(f.layoutId)}; g.C.pW=function(M,f){this.G.delete(f.layoutId)}; g.C.XC=function(M,f){this.Z.add(f.layoutId);for(var A=[],Q=g.V(this.Sx.values()),N=Q.next();!N.done;N=Q.next())if(N=N.value,N.trigger instanceof jW)f.layoutId===N.trigger.triggeringLayoutId&&A.push(N);else if(N.trigger instanceof ON){var Y=N.trigger;M.slotType===Y.slotType&&f.layoutType===Y.layoutType&&f.layoutId!==Y.K&&A.push(N)}else N.trigger instanceof nc&&(Y=N.trigger,f.layoutId===Y.triggeringLayoutId&&this.C.has(Y.slotId)&&A.push(N));A.length>0&&zQ(this.K(),A)}; g.C.It=function(M,f,A){this.Z.delete(f.layoutId);M=[];for(var Q=g.V(this.Sx.values()),N=Q.next();!N.done;N=Q.next())if(N=N.value,N.trigger instanceof F2&&f.layoutId===N.trigger.triggeringLayoutId&&M.push(N),N.trigger instanceof $z){var Y=N.trigger;f.layoutId===Y.triggeringLayoutId&&Y.K.includes(A)&&M.push(N)}M.length>0&&zQ(this.K(),M)}; g.C.Ow=function(){}; g.C.Ym=function(){this.C.clear()}; g.C.VM=function(){};g.U(Jq,g.y);Jq.prototype.JT=function(M,f,A,Q){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(f instanceof zS))throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in CloseRequestedTriggerAdapter");this.Sx.set(f.triggerId,new TL(M,f,A,Q))}; Jq.prototype.LS=function(M){this.Sx.delete(M.triggerId)};g.U(G7,g.y);G7.prototype.JT=function(M,f,A,Q){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(f instanceof u9||f instanceof Kc))throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Sx.set(f.triggerId,new TL(M,f,A,Q))}; G7.prototype.LS=function(M){this.Sx.delete(M.triggerId)}; G7.prototype.Ym=function(M){for(var f=[],A=f.push,Q=A.apply,N=[],Y=g.V(this.Sx.values()),I=Y.next();!I.done;I=Y.next())I=I.value,I.trigger instanceof u9&&I.trigger.ZT===M&&N.push(I);Q.call(A,f,g.c(N));A=f.push;Q=A.apply;N=[];Y=g.V(this.Sx.values());for(I=Y.next();!I.done;I=Y.next())I=I.value,I.trigger instanceof Kc&&I.trigger.K!==M&&N.push(I);Q.call(A,f,g.c(N));f.length&&zQ(this.K(),f)}; G7.prototype.VM=function(M){for(var f=[],A=f.push,Q=A.apply,N=[],Y=g.V(this.Sx.values()),I=Y.next();!I.done;I=Y.next()){I=I.value;var D=I.trigger;D instanceof Kc&&D.K===M&&N.push(I)}Q.call(A,f,g.c(N));f.length&&zQ(this.K(),f)};g.U(w5,g.y);g.C=w5.prototype;g.C.JT=function(M,f,A,Q){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");var N="adtriggercuerange:"+f.triggerId;if(f instanceof kz)JhD(this,M,f,A,Q,N,f.K.start,f.K.end,f.ZT,f.visible);else if(f instanceof PH)JhD(this,M,f,A,Q,N,0x7ffffffffffff,0x8000000000000,f.ZT,f.visible);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in CueRangeTriggerAdapter");}; g.C.LS=function(M){var f=this.Sx.get(M.triggerId);f&&this.Ud.get().removeCueRange(f.cueRangeId);this.Sx.delete(M.triggerId)}; g.C.onCueRangeEnter=function(M){var f=K9D(this,M);if(f&&(f=this.Sx.get(f)))if(g.J(fT(this.Sk.get()),32))this.K.add(f.cueRangeId);else{var A=f==null?void 0:f.vD.trigger;if(A instanceof kz||A instanceof PH){if(B$(this.context.kO.get())){var Q=f.vD.slot,N=f.vD.layout,Y={};this.context.B2.F3("cre",(Y.ca=f.vD.category,Y.tt=A.triggerType,Y.st=Q.slotType,Y.lt=N==null?void 0:N.layoutType,Y.cid=M,Y))}zQ(this.Z(),[f.vD])}}}; g.C.onCueRangeExit=function(M){(M=K9D(this,M))&&(M=this.Sx.get(M))&&this.K.delete(M.cueRangeId)}; g.C.vP=function(M){if(Ua(M,16)<0){M=g.V(this.K);for(var f=M.next();!f.done;f=M.next())this.onCueRangeEnter(f.value,!0);this.K.clear()}}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.XC=function(){}; g.C.It=function(){}; g.C.Ow=function(){}; g.C.J3=function(){}; g.C.onFullscreenToggled=function(){}; g.C.gL=function(){}; g.C.M4=function(){}; g.C.ZQ=function(){}; g.C.onVolumeChange=function(){}; g.C.wu=function(){}; g.C.X7=function(){};g.U(l3,g.y);g.C=l3.prototype; g.C.JT=function(M,f,A,Q){if(this.Z.has(f.triggerId)||this.j.has(f.triggerId))throw new K("Tried to re-register the trigger.");M=new TL(M,f,A,Q);if(M.trigger instanceof b9)this.Z.set(M.trigger.triggerId,M);else if(M.trigger instanceof y6)this.j.set(M.trigger.triggerId,M);else throw new K("Incorrect TriggerType: Tried to register trigger of type "+M.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.Z.has(M.trigger.triggerId)&&M.slot.slotId===this.K&&zQ(this.C(),[M])}; g.C.LS=function(M){this.Z.delete(M.triggerId);this.j.delete(M.triggerId)}; g.C.Bl=function(M){M=M.slotId;if(this.K!==M){var f=[];this.K!=null&&f.push.apply(f,g.c(GdX(this.j,this.K)));M!=null&&f.push.apply(f,g.c(GdX(this.Z,M)));this.K=M;f.length&&zQ(this.C(),f)}}; g.C.Zd=function(){}; g.C.KO=function(){};g.U(ME,g.y);g.C=ME.prototype;g.C.JT=function(M,f,A,Q){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(f instanceof Jz))throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Sx.set(f.triggerId,new TL(M,f,A,Q))}; g.C.LS=function(M){this.Sx.delete(M.triggerId)}; g.C.XC=function(){}; g.C.It=function(){}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){};g.U(fW,g.y);g.C=fW.prototype;g.C.Ow=function(M,f){for(var A=[],Q=g.V(this.Sx.values()),N=Q.next();!N.done;N=Q.next()){N=N.value;var Y=N.trigger;Y.opportunityType===M&&(Y.associatedSlotId&&Y.associatedSlotId!==f||A.push(N))}A.length&&zQ(this.K(),A)}; g.C.JT=function(M,f,A,Q){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(f instanceof Qec))throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in OpportunityEventTriggerAdapter");this.Sx.set(f.triggerId,new TL(M,f,A,Q))}; g.C.LS=function(M){this.Sx.delete(M.triggerId)}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.XC=function(){}; g.C.It=function(){};g.U(AV,g.y);g.C=AV.prototype;g.C.JT=function(M,f,A,Q){M=new TL(M,f,A,Q);if(f instanceof dz||f instanceof WH||f instanceof eW||f instanceof GS||f instanceof QpN){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");this.Sx.set(f.triggerId,M)}else throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in PrefetchTriggerAdapter");}; g.C.LS=function(M){this.Sx.delete(M.triggerId)}; g.C.YZ=function(M){var f=M.slotFulfillmentTriggers.find(function(A){return A instanceof dz}); f&&(Qa(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",f.breakDurationMs,new Set([M.slotId]),!0),vH(this.yY.get(),"ads_css","sid."+M.slotId+";bd."+f.breakDurationMs))}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.XC=function(){}; g.C.It=function(){}; g.C.Ow=function(){}; g.C.mE=function(M){var f=this;if(!this.K)return o1("Unexpected cue break before fetch instructions are available"),!1;this.Z&&this.Z.stop();this.j&&g.f5(this.j);var A=Mke(this,M);if(!A){for(var Q=[],N=g.V(this.Sx.values()),Y=N.next();!Y.done;Y=N.next())Y=Y.value.trigger,Y instanceof dz&&Q.push(Y.breakDurationMs);vH(this.yY.get(),"ads_ncfs","cid."+M.identifier+";cd."+M.UR.toFixed(3)+Q.slice(0,6).map(function(I){return";bd."+I}).join("")); return!1}(new g.MY(function(){var I=A.trigger,D=A.slot;Qa(f,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",I.breakDurationMs,new Set,!0);Qa(f,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",I.breakDurationMs,new Set,!1);for(var E=0,t=g.V(f.Sx.values()),v=t.next();!v.done;v=t.next()){v=v.value;var p=v.trigger;v.slot.slotId===D.slotId&&(f.Sx.delete(p.triggerId),E++)}vH(f.yY.get(),"ads_csf","sid."+D.slotId+";bd."+I.breakDurationMs+";dt."+E)},10)).start(); return!0}; g.C.Kp=function(){}; g.C.Ym=function(M){this.K&&this.K.contentCpn!==M?(o1("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:M,fetchInstructionsCpn:this.K.contentCpn}),NE(this)):lot(this)}; g.C.VM=function(M){this.K&&this.K.contentCpn!==M&&o1("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:M,fetchInstructionsCpn:this.K.contentCpn},!0);NE(this)}; g.C.kD=function(M){var f=this;if(this.K)o1("Unexpected multiple fetch instructions for the current content");else{this.K=M;M=AA6(M);this.Z=new g.MY(function(){lot(f)},M?M:6E5); this.Z.start();this.j=new g.MY(function(){f.K&&(f.Z&&(f.Z.stop(),f.Z.start()),wmD(f,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},fs0(this.K)); M=i3(this.Sk.get());for(var A=g.V(lMN(this.Xn.get())),Q=A.next();!Q.done;Q=A.next())Q=Q.value,vH(this.yY.get(),"nocache","ct."+Date.now()+";cmt."+M+";d."+Q.UR.toFixed(3)+";tw."+(Q.startSecs-M)+";cid."+Q.identifier+";")}}; g.C.u8=function(){g.y.prototype.u8.call(this);NE(this)};g.U(YL,g.y);g.C=YL.prototype;g.C.JT=function(M,f,A,Q){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(f instanceof Iv))throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Sx.set(f.triggerId,new TL(M,f,A,Q));M=this.K.has(f.triggeringLayoutId)?g.F(this.K.get(f.triggeringLayoutId)):new Set;M.add(f);this.K.set(f.triggeringLayoutId,M)}; g.C.LS=function(M){this.Sx.delete(M.triggerId);if(!(M instanceof Iv))throw new K("Incorrect TriggerType: Tried to unregister trigger of type "+M.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var f=this.Z.get(M.triggerId);f&&(f.dispose(),this.Z.delete(M.triggerId));if(f=this.K.get(M.triggeringLayoutId))f.delete(M),f.size===0&&this.K.delete(M.triggeringLayoutId)}; g.C.YZ=function(){}; g.C.GP=function(){}; g.C.eV=function(){}; g.C.nx=function(){}; g.C.mG=function(){}; g.C.cK=function(){}; g.C.mQ=function(){}; g.C.dL=function(){}; g.C.pW=function(){}; g.C.Ow=function(){}; g.C.XC=function(M,f){var A=this;if(this.K.has(f.layoutId)){M=g.F(this.K.get(f.layoutId));M=g.V(M);var Q=M.next();for(f={};!Q.done;f={Ya:void 0},Q=M.next())f.Ya=Q.value,Q=new g.MY(function(N){return function(){var Y=g.F(A.Sx.get(N.Ya.triggerId));zQ(A.j(),[Y])}}(f),f.Ya.durationMs),Q.start(),this.Z.set(f.Ya.triggerId,Q)}}; g.C.It=function(){};g.U(IB,g.y);IB.prototype.JT=function(M,f,A,Q){if(this.Sx.has(f.triggerId))throw new K("Tried to register duplicate trigger for slot.");if(!(f instanceof Zz))throw new K("Incorrect TriggerType: Tried to register trigger of type "+f.triggerType+" in VideoTransitionTriggerAdapter.");this.Sx.set(f.triggerId,new TL(M,f,A,Q))}; IB.prototype.LS=function(M){this.Sx.delete(M.triggerId)};tV.prototype.Ff=function(M){return M.kind==="AD_PLACEMENT_KIND_START"};g.U(hV,g.y);g.C=hV.prototype;g.C.logEvent=function(M){this.Fu(M)}; g.C.Io=function(M,f,A){this.Fu(M,void 0,void 0,void 0,f,void 0,void 0,void 0,f.adSlotLoggingData,void 0,void 0,A)}; g.C.sC=function(M,f,A,Q){this.Fu(M,void 0,void 0,void 0,f,A?A:void 0,void 0,void 0,f.adSlotLoggingData,A?A.adLayoutLoggingData:void 0,void 0,Q)}; g.C.Ra=function(M,f,A,Q){l7(this.kO.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+M,"trigger:",A,"slot:",f,"layout:",Q);LE(this.K.get())&&this.Fu(M,void 0,void 0,void 0,f,Q?Q:void 0,void 0,A,f.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0)}; g.C.pg=function(M,f,A,Q,N){this.Fu(M,f,A,Q,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N)}; g.C.Ih=function(M,f,A,Q){this.Fu("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,A,Q,void 0,void 0,A.adSlotLoggingData,Q?Q.adLayoutLoggingData:void 0,{errorType:M,errorMessage:f})}; g.C.Fu=function(M,f,A,Q,N,Y,I,D,E,t,v,p){var h=this;p=p===void 0?0:p;l7(this.kO.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+M,"slot:",N,"layout:",Y,"ping:",I,"Opportunity:",{opportunityType:f,associatedSlotId:A,dtB:Q,twN:D,adSlotLoggingData:E,adLayoutLoggingData:t});try{var S=function(){if(!h.kO.get().U.T().V("html5_disable_client_tmp_logs")&&M!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){M||o1("Empty PACF event type",N,Y);var L=LE(h.K.get()),a={eventType:M,eventOrder:++h.eventCount},q={}; N&&(q.slotData=Sk(L,N));Y&&(q.layoutData=uPD(L,Y));I&&(q.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:I.K.serializedAdPingMetadata,pingIndex:I.index});D&&(q.triggerData=hA(D.trigger,D.category));f&&(q.opportunityData=zR9(L,f,A,Q));L={organicPlaybackContext:{contentCpn:c8(h.m$.get(),1).clientPlaybackNonce}};L.organicPlaybackContext.isLivePlayback=c8(h.m$.get(),1).U$;var m;L.organicPlaybackContext.isMdxPlayback=(m=c8(h.m$.get(),1))==null?void 0:m.isMdxPlayback; var R;if((R=c8(h.m$.get(),1))==null?0:R.daiEnabled)L.organicPlaybackContext.isDaiContent=!0;var u;if(m=(u=c8(h.m$.get(),2))==null?void 0:u.clientPlaybackNonce)L.adVideoPlaybackContext={adVideoCpn:m};L&&(q.externalContext=L);a.adClientData=q;E&&(a.serializedSlotAdServingData=E.serializedSlotAdServingDataEntry);t&&(a.serializedAdServingData=t.serializedAdServingDataEntry);v&&(a.errorInfo=v);g.hO("adsClientStateChange",{adsClientEvent:a})}}; p&&p>0?g.AO(g.Nr(),function(){return S()},p):S()}catch(L){l7(this.kO.get(),"html5_log_pacf_logging_errors")&&g.AO(g.Nr(),function(){o1(L instanceof Error?L:String(L),N,Y,{pacf_message:"exception during pacf logging"})})}};var LGv=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.U(SD,hV);g.C=SD.prototype; g.C.Io=function(M,f,A){hV.prototype.Io.call(this,M,f,A);B$(this.kO.get())&&(A={},this.context.B2.F3("pacf",(A.et=M,A.st=f.slotType,A.si=f.slotId,A)))}; g.C.sC=function(M,f,A,Q){var N=LGv.has(M);hV.prototype.sC.call(this,M,f,A,Q);B$(this.kO.get(),N)&&(Q={},this.context.B2.F3("pacf",(Q.et=M,Q.st=f.slotType,Q.si=f.slotId,Q.lt=A==null?void 0:A.layoutType,Q.li=A==null?void 0:A.layoutId,Q.p_ac=A==null?void 0:A.layoutId,Q)))}; g.C.pg=function(M,f,A,Q,N){hV.prototype.pg.call(this,M,f,A,Q,N);B$(this.kO.get())&&(A={},this.context.B2.F3("pacf",(A.et=M,A.ot=f,A.ss=Q==null?void 0:Q.length,A)))}; g.C.Ra=function(M,f,A,Q){hV.prototype.Ra.call(this,M,f,A,Q);if(B$(this.kO.get())){var N={};this.context.B2.F3("pacf",(N.et=M,N.tt=A.trigger.triggerType,N.tc=A.category,N.st=f.slotType,N.si=f.slotId,N.lt=Q==null?void 0:Q.layoutType,N.li=Q==null?void 0:Q.layoutId,N.p_ac=Q==null?void 0:Q.layoutId,N))}}; g.C.Ih=function(M,f,A,Q){hV.prototype.Ih.call(this,M,f,A,Q);if(B$(this.kO.get(),!0)){var N={};this.context.B2.F3("perror",(N.ert=M,N.erm=f,N.st=A.slotType,N.si=A.slotId,N.lt=Q==null?void 0:Q.layoutType,N.li=Q==null?void 0:Q.layoutId,N.p_ac=Q==null?void 0:Q.layoutId,N))}}; g.C.Fu=function(M,f,A,Q,N,Y,I,D,E,t,v){var p=this.kO.get();g.Zs(p.U.T())?(p=this.kO.get(),p=g.CE(p.U.T().experiments,"H5_async_logging_delay_ms")):p=void 0;hV.prototype.Fu.call(this,M,f,A,Q,N,Y,I,D,E,t,v,p)};LW.prototype.clear=function(){this.K.clear()};g.C=oB.prototype;g.C.state=function(){return this.Mj==="fulfilled"?{state:"fulfilled",value:this.result}:this.C9()?{state:"rejected",reason:this.error}:{state:"pending"}}; g.C.C9=function(){return this.Mj==="rejected"}; g.C.wait=function(){var M=this;return function A(){return nb(A,function(Q){if(Q.Z==1)return g.s0(Q,2),g.r(Q,{TV:M},4);if(Q.Z!=2)return Q.return(Q.K);g.ZU(Q);return g.ud(Q,0)})}()}; g.C.L4=function(M){U_(M)||CW(M)?mA(Va(M),this.L4.bind(this),this.reject.bind(this)):(this.Mj="fulfilled",this.result=M,Hh(this))}; g.C.reject=function(M){this.Mj="rejected";this.error=M;Hh(this)}; var CW=HP(function(M){return n9B(M)?M instanceof oB:!1});Object.freeze({p8r:function(M){var f=iU(M);return mA(Bh(f,function(A){return f[A].C9()}),function(A){return Number.isNaN(A)?f.map(function(Q){return Q.state().value}):f[A]})}, SKx:function(M){var f=iU(M);return mA(Bh(f),function(){return f.map(function(A){return A.state()})})}, AkN:function(M){var f=iU(M);return mA(Bh(f,function(A){return f[A].Mj==="fulfilled"}),function(A){return Number.isNaN(A)?aB(new AggregateError(f.map(function(Q){return Q.state().reason}))):f[A].state().value})}, fFu:function(M){var f=iU(M);return mA(Bh(f,function(){return!0}),function(A){return f[A]})}});var xL=window.pQY||"en";zv.prototype.KA=function(M){this.client=M}; zv.prototype.K=function(){this.clear();this.csn=g.iH()}; zv.prototype.clear=function(){this.j.clear();this.Z.clear();this.C.clear();this.csn=null};nW.prototype.KA=function(M){g.f0(Ph().KA).bind(Ph())(M)}; nW.prototype.clear=function(){g.f0(Ph().clear).bind(Ph())()};g.C=jD.prototype;g.C.KA=function(M){this.client=M}; g.C.zf=function(M,f){var A=this;f=f===void 0?{}:f;g.f0(function(){var Q,N,Y,I=((Q=g.b(M==null?void 0:M.commandMetadata,g.aw))==null?void 0:Q.rootVe)||((N=g.b(M==null?void 0:M.commandMetadata,zZ9))==null?void 0:(Y=N.screenVisualElement)==null?void 0:Y.uiType);if(I){Q=g.b(M==null?void 0:M.commandMetadata,M4W);if(Q==null?0:Q.parentTrackingParams){var D=g.Rz(Q.parentTrackingParams);if(Q.parentCsn)var E=Q.parentCsn}else f.clickedVisualElement?D=f.clickedVisualElement:M.clickTrackingParams&&(D=g.Rz(M.clickTrackingParams)); a:{Q=g.b(M,g.N5);N=g.b(M,OxC);if(Q){if(N=qPc(Q,"VIDEO")){Q={token:N,videoId:Q.videoId};break a}}else if(N&&(Q=qPc(N,"PLAYLIST"))){Q={token:Q,playlistId:N.playlistId};break a}Q=void 0}f=Object.assign({},{cttAuthInfo:Q,parentCsn:E},f);if(g.mE("expectation_logging")){var t;f.loggingExpectations=((t=g.b(M==null?void 0:M.commandMetadata,zZ9))==null?void 0:t.loggingExpectations)||void 0}FU(A,I,D,f)}else g.$b(new g.GX("Error: Trying to create a new screen without a rootVeType",M))})()}; g.C.clickCommand=function(M,f,A){M=M.clickTrackingParams;A=A===void 0?0:A;M?(A=g.iH(A===void 0?0:A))?(QU(this.client,A,g.Rz(M),f),f=!0):f=!1:f=!1;return f}; g.C.stateChanged=function(M,f,A){this.visualElementStateChanged(g.Rz(M),f,A===void 0?0:A)}; g.C.visualElementStateChanged=function(M,f,A){A=A===void 0?0:A;A===0&&this.Z.has(A)?this.X.push([M,f]):gwN(this,M,f,A)};bU.prototype.fetch=function(M,f,A){var Q=this,N=xab(M,f,A);return new Promise(function(Y,I){function D(){if(A==null?0:A.n6)try{var t=Q.handleResponse(M,N.status,N.response,A);Y(t)}catch(v){I(v)}else Y(Q.handleResponse(M,N.status,N.response,A))} N.onerror=D;N.onload=D;var E;N.send((E=f.body)!=null?E:null)})}; bU.prototype.handleResponse=function(M,f,A,Q){A=A.replace(")]}'","");try{var N=JSON.parse(A)}catch(Y){g.$b(new g.GX("JSON parsing failed after XHR fetch",M,f,A));if((Q==null?0:Q.n6)&&A)throw new g.Yu(1,"JSON parsing failed after XHR fetch");N={}}f!==200&&(g.$b(new g.GX("XHR API fetch failed",M,f,A)),N=Object.assign({},N,{errorMetadata:{status:f}}));return N};kL.getInstance=function(){var M=g.wD("ytglobal.storage_");M||(M=new kL,g.Gz("ytglobal.storage_",M));return M}; kL.prototype.estimate=function(){var M,f,A;return g.n(function(Q){M=navigator;return((f=M.storage)==null?0:f.estimate)?Q.return(M.storage.estimate()):((A=M.webkitTemporaryStorage)==null?0:A.queryUsageAndQuota)?Q.return(ZEU()):Q.return()})}; g.Gz("ytglobal.storageClass_",kL);vY.prototype.qm=function(M){this.handleError(M)}; vY.prototype.logEvent=function(M,f){switch(M){case "IDB_DATA_CORRUPTED":g.mE("idb_data_corrupted_killswitch")||this.K("idbDataCorrupted",f);break;case "IDB_UNEXPECTEDLY_CLOSED":this.K("idbUnexpectedlyClosed",f);break;case "IS_SUPPORTED_COMPLETED":g.mE("idb_is_supported_completed_killswitch")||this.K("idbIsSupportedCompleted",f);break;case "QUOTA_EXCEEDED":unN(this,f);break;case "TRANSACTION_ENDED":this.j&&Math.random()<=.1&&this.K("idbTransactionEnded",f);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":M= Object.assign({},f,{hasWindowUnloaded:this.Z}),this.K("idbTransactionAborted",M)}};var OV={},UHe=g.Qf("yt-player-local-media",{Qt:(OV.index={zG:2},OV.media={zG:2},OV.captions={zG:5},OV),shared:!1,upgrade:function(M,f){f(2)&&(g.rX(M,"index"),g.rX(M,"media"));f(5)&&g.rX(M,"captions");f(6)&&(uV(M,"metadata"),uV(M,"playerdata"))}, version:5});var oam={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},X$;a:{var JP=g.ge();JP=JP.toLowerCase();if(g.aX(JP,"android")){var Cje=JP.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Cje){var UQm=parseFloat(Cje[1]);if(UQm<100){X$=UQm;break a}}var V7W=JP.match("("+Object.keys(oam).join("|")+")");X$=V7W?oam[V7W[0]]:0}else X$=void 0}var FE=X$,$I=FE>=0;var JGd=window;var zO0=oH(function(){var M,f;return(f=(M=window).matchMedia)==null?void 0:f.call(M,"(prefers-reduced-motion: reduce)").matches});var O_;g.Wh=new ro;O_=0;var D9=dab()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Gf?!0:!1;var KW={so:function(M,f){M[T[19]](0,f)}, m7:function(M){M[T[0]]()}, Ub:function(M,f){var A=M[0];M[0]=M[f%M[T[4]]];M[f%M[T[4]]]=A}};var L3d={ygr:"adunit",DY_:"detailpage",kQr:"editpage",iKk:"embedded",JT8:"leanback",FiY:"previewpage",x_x:"profilepage",Wf:"unplugged",aMk:"playlistoverview",Xz3:"sponsorshipsoffer",q5B:"shortspage",r$8:"handlesclaiming",tE8:"immersivelivepage",r37:"creatormusic",uiY:"immersivelivepreviewpage",SCk:"admintoolyurt",ND$:"shortsaudiopivot",MAN:"consumption"};var bEU=2592E3;var KR,a8e,mx;KR={};g.Qc=(KR.STOP_EVENT_PROPAGATION="html5-stop-propagation",KR.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",KR.IV_DRAWER_OPEN="ytp-iv-drawer-open",KR.MAIN_VIDEO="html5-main-video",KR.VIDEO_CONTAINER="html5-video-container",KR.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",KR.HOUSE_BRAND="house-brand",KR);a8e={};mx=(a8e.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",a8e.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",a8e);var lsb={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Q8d={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},Nwt={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"},Y69={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var jve={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.S2.prototype.getLanguageInfo=function(){return this.qV}; g.S2.prototype.getXtags=function(){if(!this.xtags){var M=this.id.split(";");M.length>1&&(this.xtags=M[1])}return this.xtags}; g.S2.prototype.toString=function(){return this.qV.name}; g.S2.prototype.getLanguageInfo=g.S2.prototype.getLanguageInfo;Ly.prototype.equals=function(M){return this.Z===M.Z&&this.K===M.K&&this.j===M.j&&this.reason===M.reason&&(!Cy||this.DB===M.DB)}; Ly.prototype.isLocked=function(){return this.j&&!!this.Z&&this.Z===this.K}; Ly.prototype.compose=function(M){if(M.j&&UU(M))return KF;if(M.j||UU(this))return M;if(this.j||UU(M))return this;var f=this.Z&&M.Z?Math.max(this.Z,M.Z):this.Z||M.Z,A=this.K&&M.K?Math.min(this.K,M.K):this.K||M.K;f=Math.min(f,A);var Q=0;Cy&&(Q=this.DB!==0&&M.DB!==0?Math.min(this.DB,M.DB):this.DB===0?M.DB:this.DB);return Cy&&f===this.Z&&A===this.K&&Q===this.DB||!Cy&&f===this.Z&&A===this.K?this:Cy?new Ly(f,A,!1,A===this.K&&Q===this.DB?this.reason:M.reason,Q):new Ly(f,A,!1,A===this.K?this.reason:M.reason)}; Ly.prototype.C=function(M){return!M.video||Cy&&this.DB!==0&&this.DB=0}; g.C.Gh=function(){var M=this.segments[this.segments.length-1];return M?M.endTime:NaN}; g.C.hd=function(){return this.segments[0].startTime}; g.C.qG=function(){return this.segments.length}; g.C.eT=function(){return 0}; g.C.IY=function(M){return(M=this.CU(M))?M.Ur:-1}; g.C.iA=function(M){return(M=this.GG(M))?M.sourceURL:""}; g.C.getStartTime=function(M){return(M=this.GG(M))?M.startTime:0}; g.C.xB=function(M){return this.getStartTime(M)+this.getDuration(M)}; g.C.PT=fb(1);g.C.isLoaded=function(){return this.segments.length>0}; g.C.GG=function(M){if(this.K&&this.K.Ur===M)return this.K;M=g.u6(this.segments,new dY(M,0,0,0,""),function(f,A){return f.Ur-A.Ur}); return this.K=M>=0?this.segments[M]:null}; g.C.CU=function(M){if(this.K&&this.K.startTime<=M&&M=0?this.segments[M]:this.segments[Math.max(0,-M-2)]}; g.C.append=function(M){if(M.length)if(M=g.sB(M),this.segments.length){var f=this.segments.length?g.Sw(this.segments).endTime:0,A=M[0].Ur-this.YC();A>1&&cbX(this.segments);for(A=A>0?0:-A+1;AM.Ur&&this.index.WN()<=M.Ur+1}; g.C.update=function(M,f,A){this.index.append(M);uRD(this.index,A);M=this.index;M.Z=f;M.j="update"}; g.C.eP=function(){return this.C2()?!0:$O.prototype.eP.call(this)}; g.C.Di=function(M,f){var A=this.index.iA(M),Q=this.index.getStartTime(M),N=this.index.getDuration(M),Y;f?N=Y=0:Y=this.info.DB>0?this.info.DB*N:1E3;return new G2([new bA(3,this,void 0,"liveCreateRequestInfoForSegment",M,Q,N,0,Y,!f)],A)}; g.C.Zg=function(){return this.C2()?0:this.initRange.length}; g.C.Do=function(){return!1};N6.prototype.update=function(M){var f=void 0;this.Z&&(f=this.Z);var A=new N6,Q=Array.from(M.getElementsByTagName("S"));if(Q.length){var N=+AD(M,"timescale")||1,Y=(+Q[0].getAttribute("t")||0)/N,I=+AD(M,"startNumber")||0;A.C=Y;var D=f?f.startSecs+f.UR:0,E=Date.parse(BhT(AD(M,"yt:segmentIngestTime")))/1E3;A.N=M.parentElement.tagName==="SegmentTemplate";A.N&&(A.W=AD(M,"media"));M=f?I-f.Ur:1;A.G=M>0?0:-M+1;M=g.V(Q);for(Q=M.next();!Q.done;Q=M.next()){Q=Q.value;for(var t=+Q.getAttribute("d")/N,v=(+Q.getAttribute("yt:sid")|| 0)/N,p=+Q.getAttribute("r")||0,h=0;h<=p;h++)if(f&&I<=f.Ur)I++;else{var S=new Rz0(I,D,t,E+v,Y);A.K.push(S);var L=Q;var a=N,q=S.startSecs;S=L.getAttribute("yt:cuepointTimeOffset");var m=L.getAttribute("yt:cuepointDuration");if(S&&m){S=Number(S);q=-S/a+q;a=Number(m)/a;m=L.getAttribute("yt:cuepointContext")||null;var R=L.getAttribute("yt:cuepointIdentifier")||"";L=L.getAttribute("yt:cuepointEvent")||"";L=new wY(q,a,m,R,H$0[L]||"unknown",S)}else L=null;L&&A.j.push(L);I++;D+=t;Y+=t;E+=t+v}}A.K.length&& (A.Z=g.Sw(A.K))}this.G=A.G;this.Z=A.Z||this.Z;g.RR(this.K,A.K);g.RR(this.j,A.j);this.N=A.N;this.W=A.W;this.C===-1&&(this.C=A.getStreamTimeOffset())}; N6.prototype.getStreamTimeOffset=function(){return this.C===-1?0:this.C};g.U(In,g.e2);g.C=In.prototype;g.C.aK=function(){return this.mR}; g.C.l2=function(M,f){M=T5(this,M);return M>=0&&(f||!this.segments[M].pending)}; g.C.WN=function(){return this.p8?this.segments.length?this.CU(this.hd()).Ur:-1:g.e2.prototype.WN.call(this)}; g.C.hd=function(){if(this.oI)return 0;if(!this.p8)return g.e2.prototype.hd.call(this);if(!this.segments.length)return 0;var M=Math.max(g.Sw(this.segments).endTime-this.U2,0);return this.iU>0&&g.F(this.CU(M)).Ur0)return this.mx/1E3;if(!this.segments.length)return g.e2.prototype.Gh.call(this);var M=this.YC();if(!this.p8||M<=this.segments[this.segments.length-1].Ur)M=this.segments[this.segments.length-1];else{var f=this.segments[this.segments.length-1];M=new dY(M,Math.max(0,f.startTime-(f.Ur-M)*this.mR),this.mR,0,"sq/"+M,void 0,void 0,!0)}return this.oI?Math.min(this.U2,M.endTime):M.endTime}; g.C.qG=function(){return this.p8?this.segments.length?this.YC()-this.WN()+1:0:g.e2.prototype.qG.call(this)}; g.C.YC=function(){var M=Math.min(this.z7,Math.max(g.e2.prototype.YC.call(this),this.dR)),f=this.U2*1E3;f=this.mx>0&&this.mx0&&this.dR>0&&!f&&(f=this.CU(this.U2))&&(M=Math.min(f.Ur-1,M));return M}; g.C.SD=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.C.Su=function(M){var f=T5(this,M.Ur);if(f>=0)this.segments[f]=M;else if(this.segments.splice(-(f+1),0,M),this.cY&&M.Ur%(300/this.mR)===0){var A=this.segments[0].Ur,Q=Math.floor(this.cY/this.mR);M=M.Ur-Q;f=-(f+1)-Q;f>0&&M>A&&(this.segments=this.segments.slice(f))}}; g.C.xL=function(){return this.dR}; g.C.zO=function(M){return YB?!this.Z&&M>=0&&this.YC()<=M:g.e2.prototype.zO.call(this,M)}; g.C.CU=function(M){if(!this.p8)return g.e2.prototype.CU.call(this,M);if(!this.segments.length)return null;var f=this.segments[this.segments.length-1];if(M=f.endTime)f=f.Ur+Math.floor((M-f.endTime)/this.mR+1);else{f=zC(this.segments,function(Q){return M=Q.endTime?1:0}); if(f>=0)return this.segments[f];var A=-(f+1);f=this.segments[A-1];A=this.segments[A];f=Math.floor((M-f.endTime)/((A.startTime-f.endTime)/(A.Ur-f.Ur-1))+1)+f.Ur}return this.GG(f)}; g.C.GG=function(M){if(!this.p8)return g.e2.prototype.GG.call(this,M);if(!this.segments.length)return null;var f=T5(this,M);if(f>=0)return this.segments[f];var A=-(f+1);f=this.mR;if(A===0)var Q=Math.max(0,this.segments[0].startTime-(this.segments[0].Ur-M)*f);else A===this.segments.length?(Q=this.segments[this.segments.length-1],Q=Q.endTime+(M-Q.Ur-1)*f):(Q=this.segments[A-1],f=this.segments[A],f=(f.startTime-Q.endTime)/(f.Ur-Q.Ur-1),Q=Q.endTime+(M-Q.Ur-1)*f);return new dY(M,Q,f,0,"sq/"+M,void 0,void 0, !0)}; var YB=!1;g.U(DV,fq);g.C=DV.prototype;g.C.Zp=function(){return!0}; g.C.eP=function(){return!0}; g.C.FA=function(M){return this.Xw()&&M.j&&!M.N||!M.K.index.zO(M.Ur)}; g.C.UN=function(){}; g.C.RX=function(M,f){return typeof M!=="number"||isFinite(M)?fq.prototype.RX.call(this,M,f===void 0?!1:f):new G2([new bA(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.DQ,void 0,this.DQ*this.info.DB)],"")}; g.C.Di=function(M,f){var A=A===void 0?!1:A;if(this.index.l2(M))return fq.prototype.Di.call(this,M,f);var Q=this.index.getStartTime(M),N=Math.round(this.DQ*this.info.DB),Y=this.DQ;f&&(Y=N=0);return new G2([new bA(A?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",M,Q,Y,void 0,N,!f)],M>=0?"sq/"+M:"")};g.U(Ew,$O);g.C=Ew.prototype;g.C.Gv=function(){return!1}; g.C.Xw=function(){return!1}; g.C.Zp=function(){return!1}; g.C.UN=function(){return new G2([new bA(1,this,void 0,"otfInit")],this.N)}; g.C.cV=function(){return null}; g.C.FT=function(M){this.FA(M);return n$e(this,Xs(M),!1)}; g.C.RX=function(M,f){f=f===void 0?!1:f;M=this.index.IY(M);f&&(M=Math.min(this.index.YC(),M+1));return n$e(this,M,!0)}; g.C.qg=function(M){M.info.type===1&&(this.K||(this.K=Rp(M.K)),M.Z&&M.Z.uri==="http://youtube.com/streaming/otf/durations/112015"&&jgT(this,M.Z))}; g.C.FA=function(M){return M.j===0?!0:this.index.YC()>M.Ur&&this.index.WN()<=M.Ur+1}; g.C.Zg=function(){return 0}; g.C.Do=function(){return!1};g.tD.prototype.info=function(){}; g.tD.prototype.debug=function(){}; g.tD.prototype.K=function(M){vx.apply(null,[5,this.tag,M].concat(g.c(g.jN.apply(1,arguments))))}; var yE9=new Map,bOf=new Map,dCf=new function(){var M=this;this.K=new Map;this.Ed={UTr:function(){return M.K}}};pq.prototype.Za=function(){return this.K.Za()};g.C=g.Uw.prototype;g.C.l2=function(M){return M<=this.YC()}; g.C.eT=function(M){return this.offsets[M]}; g.C.getStartTime=function(M){return this.startTicks[M]/this.K}; g.C.xB=function(M){return this.getStartTime(M)+this.getDuration(M)}; g.C.PT=fb(0);g.C.VJ=function(){return NaN}; g.C.getDuration=function(M){M=this.xQ(M);return M>=0?M/this.K:-1}; g.C.xQ=function(M){return M+1=0}; g.C.Gh=function(){return this.Z?this.startTicks[this.count]/this.K:NaN}; g.C.hd=function(){return 0}; g.C.qG=function(){return this.count}; g.C.iA=function(){return""}; g.C.IY=function(M){M=g.u6(this.startTicks.subarray(0,this.count),M*this.K);return M>=0?M:Math.max(0,-M-2)}; g.C.isLoaded=function(){return this.YC()>=0}; g.C.u_=function(M,f){if(M>=this.YC())return 0;var A=0;for(f=this.getStartTime(M)+f;Mthis.getStartTime(M);M++)A=Math.max(A,lHT(this,M)/this.getDuration(M));return A}; g.C.resize=function(M){M+=2;var f=this.offsets;this.offsets=new Float64Array(M+1);var A=this.startTicks;this.startTicks=new Float64Array(M+1);for(M=0;M0&&M&&(A=A.range.end+1,M=Math.min(M,this.info.contentLength-A),M>0&&Q.push(new bA(4,this,dL(A,M),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,f)));return new G2(Q)}; g.C.qg=function(M){if(M.info.type===1){if(this.K)return;this.K=Rp(M.K)}else if(M.info.type===2){if(this.N||this.index.YC()>=0)return;if(g.Qj(this.info)){var f=this.index,A=M.Za();M=M.info.range.start;var Q=g.QM(A,0,1936286840);A=Wzz(Q);f.K=A.timescale;var N=A.CP;f.offsets[0]=A.Jv+M+Q.size;f.startTicks[0]=N;f.Z=!0;M=A.gj.length;for(Q=0;Q0&&M===Y[0].Cs)for(M=0;M=f+A)break}N.length||(M=new g.GX("b189619593",""+M,""+f,""+A),g.jZ(M));return new G2(N)}; g.C.Uk=function(M){for(var f=this.CD(M.info),A=M.info.range.start+M.info.Z,Q=[],N=0;N=this.index.eT(A+1);)A++;return this.hW(A,f,M.j).r_}; g.C.FA=function(M){M.WU();return this.eP()?!0:M.range.end+1this.info.contentLength&&(f=new Fs(f.start,this.info.contentLength-1)),new G2([new bA(4,M.K,f,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,M.clipId)]);M.type===4&&(M=this.CD(M),M=M[M.length-1]);var A=0,Q=M.range.start+M.Z+M.j;M.type===3&&(M.WU(),A=M.Ur,Q===M.range.end+1&&(A+=1));return this.hW(A,Q,f)}; g.C.FT=function(){return null}; g.C.RX=function(M,f){f=f===void 0?!1:f;M=this.index.IY(M);f&&(M=Math.min(this.index.YC(),M+1));return this.hW(M,this.index.eT(M),0,void 0)}; g.C.Gv=function(){return!0}; g.C.Xw=function(){return!0}; g.C.Zp=function(){return!1}; g.C.Zg=function(){return this.indexRange.length+this.initRange.length}; g.C.Do=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var wS={},Lo6=(wS.COLOR_PRIMARIES_BT709="bt709",wS.COLOR_PRIMARIES_BT2020="bt2020",wS.COLOR_PRIMARIES_UNKNOWN=null,wS.COLOR_PRIMARIES_UNSPECIFIED=null,wS),ln={},fjT=(ln.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",ln.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",ln.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",ln.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",ln.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,ln.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,ln);g.q6.prototype.getName=function(){return this.name}; g.q6.prototype.getId=function(){return this.id}; g.q6.prototype.getIsDefault=function(){return this.isDefault}; g.q6.prototype.toString=function(){return this.name}; g.q6.prototype.getName=g.q6.prototype.getName;g.q6.prototype.getId=g.q6.prototype.getId;g.q6.prototype.getIsDefault=g.q6.prototype.getIsDefault;var YjX=/action_display_post/;var Ijb,cx,Rn;g.U(gc,g.pi);g.C=gc.prototype;g.C.isLoading=function(){return this.state===1}; g.C.O6=function(){return this.state===3}; g.C.qq7=function(M){var f=M.getElementsByTagName("Representation");if(M.getElementsByTagName("SegmentList").length>0||M.getElementsByTagName("SegmentTemplate").length>0){this.U$=this.Z=!0;this.timeline||(this.timeline=new xCd);zzb(this.timeline,M);this.publish("refresh");for(M=0;M=0?v=yM(h):p=p+"?range="+h}E.call(D,new dY(t.Ur,t.startSecs,t.UR,t.K,p,v,t.Z))}Q=N}A.update(Q,this.isLive,this.ox)}PC9(this.timeline);return!0}this.duration=g$6(AD(M,"mediaPresentationDuration")); a:{for(M=0;M0))return this.S$()-M}}M=this.K;for(var f in M){var A=M[f].index;if(A.isLoaded()&&!DH(M[f].info.mimeType))return A.hd()}return 0}; g.C.getStreamTimeOffset=function(){return this.W}; g.C.VJ=function(M){for(var f in this.K){var A=this.K[f].index;if(A.isLoaded()){var Q=A.IY(M),N=A.VJ(Q);if(N)return N+M-A.getStartTime(Q)}}return NaN}; var dc=null,mQW,eL=!((mQW=navigator.mediaCapabilities)==null||!mQW.decodingInfo),qjT={commentary:1,alternate:2,dub:3,main:4};var E6=new Set,bX=new Map;Ow.prototype.clone=function(M){return new Ow(this.flavor,M,this.Z,this.experiments)}; Ow.prototype.lI=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Ow.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 sH0={},Qh=(sH0.playready=["com.youtube.playready","com.microsoft.playready"],sH0.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],sH0),MB={},ut9=(MB.widevine="DRM_SYSTEM_WIDEVINE",MB.fairplay="DRM_SYSTEM_FAIRPLAY",MB.playready="DRM_SYSTEM_PLAYREADY",MB),fP={},coK=(fP.widevine=1,fP.fairplay=2,fP.playready=3,fP);var I3;g.U(ND,g.y); ND.prototype.initialize=function(M,f){for(var A=this,Q=g.V(Object.keys(M)),N=Q.next();!N.done;N=Q.next()){N=g.V(M[N.value]);for(var Y=N.next();!Y.done;Y=N.next())if(Y=Y.value,Y.e$)for(var I=g.V(Object.keys(Y.e$)),D=I.next();!D.done;D=I.next()){var E=D.value;D=E;E=Qh[E];!E&&this.V("html5_enable_vp9_fairplay")&&D==="fairplay"&&(E=["com.youtube.fairplay.sbdl"]);if(E){E=g.V(E);for(var t=E.next();!t.done;t=E.next())t=t.value,this.j[t]=this.j[t]||new Ow(D,t,Y.e$[D],this.i8.experiments),this.K[D]=this.K[D]|| {},this.K[D][Y.mimeType]=!0}}}K0()&&(this.j["com.youtube.fairplay"]=new Ow("fairplay","com.youtube.fairplay","",this.i8.experiments),this.V("html5_enable_vp9_fairplay")||(this.K.fairplay=this.K.fairplay||{},this.K.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.K.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.Z=zif(f,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay")&&!0,this.V("html5_enable_vp9_fairplay")).filter(function(v){return!!A.j[v]})}; ND.prototype.V=function(M){return this.i8.experiments.X3(M)};var RUB={"":"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"};dkb.prototype.V=function(M){return this.experiments.X3(M)};var C9d={RED:"red",iZ8:"white"};eib.prototype.X3=function(M){M=this.flags[M];JSON.stringify(M);return M==="true"};var WoT=Promise.resolve(),KoN=window.queueMicrotask?window.queueMicrotask.bind(window):Osb;ta.prototype.canPlayType=function(M,f){M=M.canPlayType?M.canPlayType(f):!1;KH?M=M||gae[f]:FE===2.2?M=M||B4w[f]:XK()&&(M=M||i$W[f]);return!!M}; ta.prototype.isTypeSupported=function(M){return this.B?window.cast.receiver.platform.canDisplayType(M):jg(M)}; var B4w={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},i$W={"application/x-mpegURL":"maybe"},gae={"application/x-mpegURL":"maybe"};g.U(ha,g.pi);ha.prototype.add=function(M,f){if(!this.items[M]&&(f.tA||f.Gs||f.Vq)){var A=this.items,Q=f;Object.isFrozen&&!Object.isFrozen(f)&&(Q=Object.create(f),Object.freeze(Q));A[M]=Q;this.publish("vast_info_card_add",M)}}; ha.prototype.remove=function(M){var f=this.get(M);delete this.items[M];return f}; ha.prototype.get=function(M){return this.items[M]||null}; ha.prototype.isEmpty=function(){return g.MV(this.items)};var Lt;o3.prototype.add=function(M){if(this.pos+20>this.data.length){var f=new Uint8Array(this.data.length*2);f.set(this.data);this.data=f}for(;M>31;)this.data[this.pos++]=Lt[(M&31)+32],M>>=5;this.data[this.pos++]=Lt[M|0]}; o3.prototype.Ky=function(){return g.xu(this.data.subarray(0,this.pos))}; o3.prototype.reset=function(){this.pos=0};UH.prototype.Li=function(M,f){var A=Math.pow(this.alpha,M);this.K=f*(1-A)+A*this.K;this.Z+=M}; UH.prototype.LW=function(){return this.K/(1-Math.pow(this.alpha,this.Z))};Vh.prototype.Li=function(M,f){for(var A=0;A<10;A++){var Q=this.K[A],N=Q+(A===0?M:0),Y=1*Math.pow(2,A);if(N<=Y)break;Q=Math.min(1,(N-Y*.5)/Q);for(N=0;N<16;N++)Y=this.values[A*16+N]*Q,this.values[(A+1)*16+N]+=Y,this.K[A+1]+=Y,this.values[A*16+N]-=Y,this.K[A]-=Y}Q=A=0;N=8192;f>8192&&(A=Math.ceil(Math.log(f/8192)/Math.log(2)),Q=8192*Math.pow(2,A-1),N=Q*2);A+2>16?this.values[15]+=M:(f=(f-Q)/(N-Q),this.values[A]+=M*(1-f),this.values[A+1]+=M*f);this.K[0]+=M}; Vh.prototype.LW=function(){var M=M===void 0?this.Z:M;var f=f===void 0?.02:f;var A=A===void 0?.98:A;for(var Q=this.j,N=0;N<16;N++)Q[N]=this.values[N];N=this.K[0];for(var Y=1;Y<11;Y++){var I=this.K[Y];if(I===0)break;for(var D=Math.min(1,(M-N)/I),E=0;E<16;E++)Q[E]+=this.values[Y*16+E]*D;N+=I*D;if(D<1)break}for(Y=M=I=0;Y<16;Y++){D=I+Q[Y]/N;M+=Math.max(0,Math.min(D,A)-Math.max(I,f))*(Y>0?8192*Math.pow(2,Y-1):0);if(D>A)break;I=D}return M/(A-f)};a3.prototype.Li=function(M,f){M=Math.min(this.K,Math.max(1,Math.round(M*this.resolution)));M+this.Z>=this.K&&(this.j=!0);for(;M--;)this.values[this.Z]=f,this.Z=(this.Z+1)%this.K;this.f6=!0}; a3.prototype.percentile=function(M){var f=this;if(!this.j&&this.Z===0)return 0;this.f6&&(g.PK(this.N,function(A,Q){return f.values[A]-f.values[Q]}),this.f6=!1); return this.values[this.N[Math.round(M*((this.j?this.K:this.Z)-1))]]||0}; a3.prototype.LW=function(){return this.G?(this.percentile(this.C-this.G)+this.percentile(this.C)+this.percentile(this.C+this.G))/3:this.percentile(this.C)};g.U(qD,g.y);qD.prototype.YO=function(){var M;(M=this.nJ)==null||M.start();if(ic(this)&&this.policy.X){var f;(f=this.fd)==null||f.Cf()}};DKt.prototype.V=function(M){return this.experiments.X3(M)};g.U(tW0,g.y);var oze="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Hcb={by7:"caoe",FQ0:"capsv",C3_:"cbrand",P3B:"cbr",p2Y:"cbrver",mYr:"cchip",W5B:"ccappver",Oi8:"ccrv",Nux:"cfrmver",joi:"c",C5_:"cver",HSx:"ctheme",iSi:"cplayer",ihx:"cmodel",AG:"cnetwork",Ryi:"cos",OS_VERSION:"cosver",XBr:"cplatform",HI$:"crqyear"};g.U(Kt,g.y);g.C=Kt.prototype;g.C.V=function(M){return this.experiments.X3(M)}; g.C.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.C.getVideoUrl=function(M,f,A,Q,N,Y,I){f={list:f};A&&(N?f.time_continue=A:f.t=A);A=I?"music.youtube.com":g.wt(this);N=A==="www.youtube.com";!Y&&Q&&N?Y="https://youtu.be/"+M:g.eX(this)?(Y="https://"+A+"/fire",f.v=M):(Y&&N?(Y=this.protocol+"://"+A+"/shorts/"+M,Q&&(f.feature="share")):(Y=this.protocol+"://"+A+"/watch",f.v=M),KH&&(M=WBt())&&(f.ebc=M));return g.uj(Y,f)}; g.C.getVideoEmbedCode=function(M,f,A,Q){f="https://"+g.wt(this)+"/embed/"+f;Q&&(f=g.uj(f,{list:Q}));Q=A.width;A=A.height;f=Ul(f);M=Ul(M!=null?M:"YouTube video player");return'')}; g.C.supportsGaplessAudio=function(){return g.nU&&!KH&&ky()>=74||g.ft&&g.BB(68)?!0:!1}; g.C.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.YO||g.mH?!1:!0}; g.C.getPlayerType=function(){return this.K.cplayer}; g.C.cX=function(){return this.OR}; var RNz=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],qNX=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],sqN=[19];var AN={},icD=(AN["140"]={numChannels:2},AN["141"]={numChannels:2},AN["251"]={audioSampleRate:48E3,numChannels:2},AN["774"]={audioSampleRate:48E3,numChannels:2},AN["380"]={numChannels:6},AN["328"]={numChannels:6},AN["773"]={},AN),QF={},gze=(QF["1"]='video/mp4; codecs="av01.0.08M.08"',QF["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',QF["1e"]='video/mp4; codecs="av01.0.08M.08"',QF["9"]='video/webm; codecs="vp9"',QF["("]='video/webm; codecs="vp9"',QF["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', QF.h='video/mp4; codecs="avc1.64001e"',QF.H='video/mp4; codecs="avc1.64001e"',QF.o='audio/webm; codecs="opus"',QF.a='audio/mp4; codecs="mp4a.40.2"',QF.ah='audio/mp4; codecs="mp4a.40.2"',QF.mac3='audio/mp4; codecs="ac-3"; channels=6',QF.meac3='audio/mp4; codecs="ec-3"; channels=6',QF.i='audio/mp4; codecs="iamf.001.001.Opus"',QF),NB={},Bzb=(NB["337"]={width:3840,height:2160,bitrate:3E7,fps:30},NB["336"]={width:2560,height:1440,bitrate:15E6,fps:30},NB["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, NB["702"]={width:7680,height:4320,bitrate:4E7,fps:60},NB["701"]={width:3840,height:2160,bitrate:2E7,fps:60},NB["700"]={width:2560,height:1440,bitrate:1E7,fps:60},NB["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},NB["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},NB["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},NB["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, NB["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},NB["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},NB["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},NB["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},NB["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},NB["315"]={width:3840,height:2160,bitrate:2E7,fps:60},NB["308"]={width:2560, height:1440,bitrate:1E7,fps:60},NB["303"]={width:1920,height:1080,bitrate:5E6,fps:60},NB["302"]={width:1280,height:720,bitrate:25E5,fps:60},NB["299"]={width:1920,height:1080,bitrate:75E5,fps:60},NB["298"]={width:1280,height:720,bitrate:35E5,fps:60},NB["571"]={width:7680,height:4320,bitrate:3E7,fps:60},NB["401"]={width:3840,height:2160,bitrate:15E6,fps:60},NB["400"]={width:2560,height:1440,bitrate:75E5,fps:60},NB["399"]={width:1920,height:1080,bitrate:2E6,fps:60},NB["398"]={width:1280,height:720,bitrate:1E6, fps:60},NB["397"]={width:854,height:480,bitrate:4E5,fps:30},NB["396"]={width:640,height:360,bitrate:25E4,fps:30},NB["787"]={width:1080,height:608,bitrate:2E5,fps:30},NB["788"]={width:1080,height:608,bitrate:4E5,fps:30},NB["572"]={width:7680,height:4320,bitrate:3E7,fps:60},NB["555"]={width:3840,height:2160,bitrate:15E6,fps:60},NB["554"]={width:2560,height:1440,bitrate:75E5,fps:60},NB["553"]={width:1920,height:1080,bitrate:2E6,fps:60},NB["552"]={width:1280,height:720,bitrate:1E6,fps:60},NB["551"]={width:854, height:480,bitrate:4E5,fps:30},NB["550"]={width:640,height:360,bitrate:25E4,fps:30},NB["313"]={width:3840,height:2160,bitrate:8E6,fps:30},NB["271"]={width:2560,height:1440,bitrate:4E6,fps:30},NB["248"]={width:1920,height:1080,bitrate:2E6,fps:30},NB["247"]={width:1280,height:720,bitrate:15E5,fps:30},NB["244"]={width:854,height:480,bitrate:52E4,fps:30},NB["243"]={width:640,height:360,bitrate:28E4,fps:30},NB["137"]={width:1920,height:1080,bitrate:4E6,fps:30},NB["136"]={width:1280,height:720,bitrate:3E6, fps:30},NB["135"]={width:854,height:480,bitrate:1E6,fps:30},NB["385"]={width:1920,height:1080,bitrate:6503313,fps:60},NB["376"]={width:1280,height:720,bitrate:5706960,fps:60},NB["384"]={width:1280,height:720,bitrate:3660979,fps:60},NB["225"]={width:1280,height:720,bitrate:5805E3,fps:30},NB["224"]={width:1280,height:720,bitrate:453E4,fps:30},NB["145"]={width:1280,height:720,bitrate:2682052,fps:30},NB);g.C=SH.prototype;g.C.getInfo=function(){return this.K}; g.C.DG=function(){return null}; g.C.sB=function(){var M=this.DG();return M?(M=g.TA(M.HX),Number(M.expire)):NaN}; g.C.Jl=function(){}; g.C.getHeight=function(){return this.K.video.height};u2X.prototype.build=function(){nzz(this);var M=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],f={};a:if(this.K)var A=this.K;else{A="";for(var Q=g.V(this.j),N=Q.next();!N.done;N=Q.next())if(N=N.value,N.qV){if(N.qV.getIsDefault()){A=N.qV.getId();break a}A||(A=N.qV.getId())}}Q=g.V(this.j);for(N=Q.next();!N.done;N=Q.next())if(N=N.value,this.G||!N.qV||N.qV.getId()===A)f[N.itag]||(f[N.itag]=[]),f[N.itag].push(N);A=g.V(this.Z);for(Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,N=f[Q.K]){N=g.V(N);for(var Y=N.next();!Y.done;Y= N.next()){var I=M,D=I.push;Y=Y.value;var E="#EXT-X-MEDIA:TYPE=AUDIO,",t="YES",v="audio";if(Y.qV){v=Y.qV;var p=v.getId().split(".")[0];p&&(E+='LANGUAGE="'+p+'",');(this.K?this.K===v.getId():v.getIsDefault())||(t="NO");v=v.getName()}p="";Q!==null&&(p=Q.itag.toString());p=oL(this,Y.url,p);E=E+('NAME="'+v+'",DEFAULT='+(t+',AUTOSELECT=YES,GROUP-ID="'))+(P9N(Y,Q)+'",URI="'+(p+'"'));D.call(I,E)}}A=g.V(this.N);for(Q=A.next();!Q.done;Q=A.next())Q=Q.value,N=xQB,Q=(I=Q.qV)?'#EXT-X-MEDIA:URI="'+oL(this,Q.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+N+'",LANGUAGE="'+I.getId()+'",NAME="'+I.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,Q&&M.push(Q);A=this.N.length>0?xQB:void 0;Q=g.V(this.Z);for(N=Q.next();!N.done;N=Q.next())N=N.value,D=f[N.K],I=void 0,((I=D)==null?void 0:I.length)>0&&(I=N,D=D[0],D="#EXT-X-STREAM-INF:BANDWIDTH="+(I.bitrate+D.bitrate)+',CODECS="'+(I.codecs+","+D.codecs+'",RESOLUTION=')+(I.width+"x"+I.height+',AUDIO="')+(P9N(D,I)+'",')+(A?'SUBTITLES="'+A+'",':"")+"CLOSED-CAPTIONS=NONE",I.fps>1&&(D+= ",FRAME-RATE="+I.fps),I.Kr&&(D+=",VIDEO-RANGE="+I.Kr),M.push(D),M.push(oL(this,N.url,"")));return M.join("\n")}; var xQB="text";g.U(CF,SH);CF.prototype.sB=function(){return this.expiration}; CF.prototype.DG=function(){if(!this.HX||this.HX.ek()){var M=this.Z.build();M="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(M);this.HX=new Gb(M)}return this.HX};g.U(UA,SH);UA.prototype.DG=function(){return new Gb(this.Z.mf())}; UA.prototype.Jl=function(){this.Z=F_(this.Z)};g.U(V5,SH);V5.prototype.DG=function(){return new Gb(this.Z)};var YK={},Ocz=(YK.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",YK.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",YK.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",YK);g.C=g.aL.prototype;g.C.getId=function(){return this.id}; g.C.getName=function(){return this.name}; g.C.isServable=function(){return this.K}; g.C.mf=function(){return this.url}; g.C.getXtags=function(){return this.xtags}; g.C.toString=function(){return this.languageCode+": "+g.q1(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.C.equals=function(M){return M?this.toString()===M.toString():!1}; g.C.hh=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var lzz={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},MP0={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},fO9=/^(\d*)_((\d*)_?(\d*))$/;var Qvb={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},NO9={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Ii={},Z$B=(Ii.ALWAYS=1,Ii.BY_REQUEST=3,Ii.UNKNOWN=void 0,Ii),T4={},ro7=(T4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",T4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",T4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",T4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",T4);var uHe; uHe=function(M){for(var f=Object.keys(M),A={},Q=0;QQ-f?-1:M}; g.C.mS=function(){return this.Z.YC()}; g.C.WF=function(){return this.Z.WN()}; g.C.gX=function(M){this.Z=M};g.U(Jd,OA);Jd.prototype.Z=function(M,f){return OA.prototype.Z.call(this,"$N|"+M,f)}; Jd.prototype.N=function(M,f,A){return new Xw(M,f,A,this.isLive)};var dHt=[],fk=new Set;g.U(g.G9,g.pi);g.C=g.G9.prototype; g.C.setData=function(M){M=M||{};var f=M.errordetail;f!=null&&(this.errorDetail=f);var A=M.errorcode;A!=null?this.errorCode=A:M.status==="fail"&&(this.errorCode="auth");var Q=M.reason;Q!=null&&(this.errorReason=Q);var N=M.subreason;N!=null&&(this.cN=N);this.V("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=M.cpn||(this.i8.cX()?"r"+g.RP(15):g.RP(16)));this.l8=TX(this.i8.l8,M.livemonitor);zq0(this,M);var Y=M.raw_player_response;if(Y)this.nQ=Y;else{var I=M.player_response; I&&(Y=JSON.parse(I))}if(this.V("html5_enable_ssap_entity_id")){var D=M.cached_load;D&&(this.WQ=TX(this.WQ,D));if(!this.clientPlaybackNonce){var E=M.cpn;E?(this.Z4("ssei","shdc"),this.clientPlaybackNonce=E):this.clientPlaybackNonce=this.i8.cX()?"r"+g.RP(15):g.RP(16)}}Y&&(this.playerResponse=Y);if(this.playerResponse){var t=this.playerResponse.annotations;if(t)for(var v=g.V(t),p=v.next();!p.done;p=v.next()){var h=p.value.playerAnnotationsUrlsRenderer;if(h){h.adsOnly&&(this.E2=!0);var S=h.loadPolicy; S&&(this.annotationsLoadPolicy=Z$B[S]);var L=h.invideoUrl;L&&(this.nJ=YD(L));break}}var a=this.playerResponse.attestation;a&&IO0(this,a);var q=this.playerResponse.cotn;q&&(this.cotn=q);var m=this.playerResponse.heartbeatParams;if(m){umb(this)&&(this.rE=!0);var R=m.heartbeatToken;R&&(this.drmSessionId=m.drmSessionId||"",this.heartbeatToken=R,this.LG=Number(m.intervalMilliseconds),this.BT=Number(m.maxRetries),this.Sy=!!m.softFailOnError,this.V_=!!m.useInnertubeHeartbeatsForDrm,this.Hq=!0);this.heartbeatServerData= m.heartbeatServerData;var u;this.Z_=!((u=m.heartbeatAttestationConfig)==null||!u.requiresAttestation)}var z=this.playerResponse.messages;z&&tPN(this,z);var e=this.playerResponse.overlay;if(e){var G=e.playerControlsOverlayRenderer;if(G)if(prN(this,G.controlBgHtml),G.mutedAutoplay){var X=g.b(G.mutedAutoplay,KY6);if(X&&X.endScreen){var Qt=g.b(X.endScreen,GOC);Qt&&Qt.text&&(this.Eh=g.ae(Qt.text))}}else this.mutedAutoplay=!1}var Y9=this.playerResponse.playabilityStatus;if(Y9){var Mc=Y9.backgroundability; Mc&&Mc.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var E0,w;if((E0=Y9.offlineability)==null?0:(w=E0.offlineabilityRenderer)==null?0:w.offlineable)this.offlineable=!0;var m6=Y9.contextParams;m6&&(this.contextParams=m6);var BX=Y9.pictureInPicture;BX&&BX.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Y9.playableInEmbed&&(this.allowEmbed=!0);var WX=Y9.ypcClickwrap;if(WX){var g7=WX.playerLegacyDesktopYpcClickwrapRenderer,vK=WX.ypcRentalActivationRenderer;if(g7)this.Qr= g7.durationMessage||"",this.Yx=!0;else if(vK){var x9=vK.durationMessage;this.Qr=x9?g.ae(x9):"";this.Yx=!0}}var gD=Y9.errorScreen;if(gD){if(gD.playerLegacyDesktopYpcTrailerRenderer){var TC=gD.playerLegacyDesktopYpcTrailerRenderer;this.rR=TC.trailerVideoId||"";var H=gD.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var DU=H&&H.ypcTrailerRenderer}else if(gD.playerLegacyDesktopYpcOfferRenderer)TC=gD.playerLegacyDesktopYpcOfferRenderer;else if(gD.ypcTrailerRenderer){DU=gD.ypcTrailerRenderer;var JB=DU.fullVideoMessage; this.k8=JB?g.ae(JB):"";var sI,Zv;this.rR=((sI=g.b(DU,wT6))==null?void 0:(Zv=sI.videoDetails)==null?void 0:Zv.videoId)||""}TC&&(this.jC=TC.itemTitle||"",TC.itemUrl&&(this.Xe=TC.itemUrl),TC.itemBuyUrl&&(this.CT=TC.itemBuyUrl),this.J2=TC.itemThumbnail||"",this.Cu=TC.offerHeadline||"",this.eC=TC.offerDescription||"",this.Ch=TC.offerId||"",this.u$=TC.offerButtonText||"",this.KQ=TC.offerButtonFormattedText||null,this.oZ=TC.overlayDurationMsec||NaN,this.k8=TC.fullVideoMessage||"",this.lr=!0);if(DU){var UB= g.b(DU,wT6);if(UB)this.tC={raw_player_response:UB};else{var FT=g.b(DU,Du0);this.tC=FT?Yy(FT):null}this.lr=!0}}}var jw=this.playerResponse.playbackTracking;if(jw){var r7=M,B=RL(jw.googleRemarketingUrl);B&&(this.googleRemarketingUrl=B);var x=RL(jw.youtubeRemarketingUrl);x&&(this.youtubeRemarketingUrl=x);var Z={},P=RL(jw.ptrackingUrl);if(P){var k=gq(P),cX=k.oid;cX&&(this.EO=cX);var Ab=k.pltype;Ab&&(this.KB=Ab);var af=k.ptchn;af&&(this.fv=af);var Nc=k.ptk;Nc&&(this.w9=encodeURIComponent(Nc));var rD=k.m; rD&&(this.Nv=rD)}var ld=RL(jw.qoeUrl);if(ld){for(var cK=g.TA(ld),cT=g.V(Object.keys(cK)),zO=cT.next();!zO.done;zO=cT.next()){var Op=zO.value,X9=cK[Op];cK[Op]=Array.isArray(X9)?X9.join(","):X9}this.VG=cK;var Xh=cK.cat;Xh&&(this.V("html5_enable_qoe_cat_list")?this.u2=this.u2.concat(Xh.split(",")):this.oo=Xh);var H1=cK.live;H1&&(this.ys=H1);var hT=cK.drm_product;hT&&(this.drmProduct=hT)}var Zp=RL(jw.videostatsPlaybackUrl);if(Zp){var V4=gq(Zp),rr=V4.adformat;if(rr){r7.adformat=rr;var OY=this.T(),XJ=Aeb(rr, this.LM,OY.C,OY.X);XJ&&(this.adFormat=XJ)}var gv=V4.aqi;gv&&(r7.ad_query_id=gv);var I9=V4.autoplay;I9&&(this.rL=I9=="1",this.Wq=I9=="1");var J6=V4.autonav;J6&&(this.isAutonav=J6=="1");var DL=V4.delay;DL&&(this.xO=HB(DL));var BL=V4.ei;BL&&(this.eventId=BL);if(V4.adcontext||rr)this.rL=!0;var OG=V4.feature;OG&&(this.kN=OG);var UI=V4.list;UI&&(this.playlistId=UI);var cM=V4.of;cM&&(this.AS=cM);var Rg=V4.osid;Rg&&(this.osid=Rg);var gh=V4.referrer;gh&&(this.referrer=gh);var IY=V4.sdetail;IY&&(this.Tq=IY); var pz=V4.ssrt;pz&&(this.o_=pz=="1");var BM=V4.subscribed;BM&&(this.subscribed=BM=="1");var TK=V4.uga;TK&&(this.userGenderAge=TK);var iC=V4.upt;iC&&(this.xt=iC);var x$=V4.vm;x$&&(this.videoMetadata=x$);Z.playback=V4}var ZH=RL(jw.videostatsWatchtimeUrl);if(ZH){var rh=gq(ZH),uC=rh.ald;uC&&(this.x8=uC);Z.watchtime=rh}var zb=RL(jw.atrUrl);if(zb){var DF=gq(zb);Z.atr=DF}var ia=RL(jw.engageUrl);if(ia){var EX=gq(ia);Z.engage=EX}this.Zh=Z;if(jw.promotedPlaybackTracking){var bP=jw.promotedPlaybackTracking; bP.startUrls&&(this.Mv=bP.startUrls);bP.firstQuartileUrls&&(this.RS=bP.firstQuartileUrls);bP.secondQuartileUrls&&(this.w$=bP.secondQuartileUrls);bP.thirdQuartileUrls&&(this.xJ=bP.thirdQuartileUrls);bP.completeUrls&&(this.Q8=bP.completeUrls);bP.engagedViewUrls&&(bP.engagedViewUrls.length>1&&g.$b(new g.GX("There are more than one engaged_view_urls.")),this.XJ=bP.engagedViewUrls[0])}}var Du=this.playerResponse.playerCueRanges;Du&&Du.length>0&&(this.cueRanges=Du);var PM=this.playerResponse.playerCueRangeSet; PM&&g.Ag(this,PM);a:{var E7=this.playerResponse.adPlacements;if(E7)for(var nO=g.V(E7),tH=nO.next();!tH.done;tH=nO.next()){var jr=void 0,$$=void 0,Fq=(jr=tH.value.adPlacementRenderer)==null?void 0:($$=jr.renderer)==null?void 0:$$.videoAdTrackingRenderer;if(Fq){var yj=Fq;break a}}yj=null}var v9=yj;jw&&jw.promotedPlaybackTracking&&v9&&g.$b(new g.GX("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var Vf;if(!(Vf=v9))a:{for(var dh=g.V(this.playerResponse.adSlots||[]), pp=dh.next();!pp.done;pp=dh.next()){var hH=g.b(pp.value,X1);if(hH===void 0||!guf(hH))break;var er=void 0,tU=(er=hH.fulfillmentContent)==null?void 0:er.fulfilledLayout,bC=g.b(tU,$G);if(bC&&zL(bC)){Vf=!0;break a}}Vf=!1}Vf&&(this.Ne=!0);var k$=this.playerResponse.playerAds;if(k$)for(var vj=M,WM=g.V(k$),aV=WM.next();!aV.done;aV=WM.next()){var Os=aV.value;if(Os){var Xq=Os.playerLegacyDesktopWatchAdsRenderer;if(Xq){var x6=Xq.playerAdParams;if(x6){x6.autoplay=="1"&&(this.Wq=this.rL=!0);this.Q3=x6.encodedAdSafetyReason|| null;x6.showContentThumbnail!==void 0&&(this.QK=!!x6.showContentThumbnail);vj.enabled_engage_types=x6.enabledEngageTypes;break}}}}var Fc=this.playerResponse.playerConfig;if(Fc){var Jp=Fc.manifestlessWindowedLiveConfig;if(Jp){var JE=Number(Jp.minDvrSequence),Sh=Number(Jp.maxDvrSequence),qn=Number(Jp.minDvrMediaTimeMs),Hy=Number(Jp.maxDvrMediaTimeMs),Lp=Number(Jp.startWalltimeMs);JE&&(this.iU=JE);qn&&(this.jk=qn/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&pk(this)&&(this.jQ=qn/ 1E3));Sh&&(this.z7=Sh);Hy&&(this.Z9=Hy/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&pk(this)&&(this.B_=Hy/1E3));Lp&&(this.wq=Lp/1E3);(JE||qn)&&(Sh||Hy)&&(this.allowLiveDvr=this.isLivePlayback=this.Er=!0,this.oI=!1)}var KS=Fc.daiConfig;if(KS){if(KS.enableDai){this.Q4=!0;var mV=KS.enableServerStitchedDai;mV&&(this.enableServerStitchedDai=mV);var KO=KS.enablePreroll;KO&&(this.Gq=KO)}var hU;if(KS.daiType==="DAI_TYPE_SS_DISABLED"||((hU=KS.debugInfo)==null?0:hU.isDisabledUnpluggedChannel))this.SN= !0;KS.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.B6=!0)}var S_=Fc.audioConfig;if(S_){var XQ=S_.loudnessDb;XQ!=null&&(this.R5=XQ);var qX6=S_.trackAbsoluteLoudnessLkfs;qX6!=null&&(this.eK=qX6);var HvU=S_.loudnessTargetLkfs;HvU!=null&&(this.loudnessTargetLkfs=HvU);S_.audioMuted&&(this.b5=!0);S_.muteOnStart&&(this.Gz=!0);var Rv=S_.loudnessNormalizationConfig;if(Rv){Rv.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Rv.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= !0);var mZz=Rv.minimumLoudnessTargetLkfs;mZz!=null&&(this.minimumLoudnessTargetLkfs=mZz);var sl9=Rv.maxStatefulTimeThresholdSec;sl9!=null&&(this.maxStatefulTimeThresholdSec=sl9)}S_.playAudioOnly&&(this.OR=!0)}var oYe=Fc.playbackEndConfig;if(oYe){var cUz=oYe.endSeconds,RK0=oYe.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(cUz&&(this.endSeconds=cUz),RK0&&(this.limitedPlaybackDurationInSeconds=RK0))}var R7=Fc.fairPlayConfig;if(R7){var gXN=R7.certificate;gXN&&(this.ox=SX(gXN));var BxN=Number(R7.keyRotationPeriodMs); BxN>0&&(this.Vu=BxN);var ivU=Number(R7.keyPrefetchMarginMs);ivU>0&&(this.qv=ivU)}var N0=Fc.playbackStartConfig;if(N0){this.I8=Number(N0.startSeconds);var xZt=N0.liveUtcStartSeconds,ZvT=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;xZt&&!ZvT&&(this.liveUtcStartSeconds=Number(xZt));var C0d=N0.startPosition;if(C0d){var rUd=C0d.utcTimeMillis;rUd&&!ZvT&&(this.liveUtcStartSeconds=Number(rUd)*.001);var ufe=C0d.streamTimeMillis;ufe&&(this.T_=Number(ufe)*.001)}this.progressBarStartPosition=N0.progressBarStartPosition; this.progressBarEndPosition=N0.progressBarEndPosition}else{var UM0=Fc.skippableSegmentsConfig;if(UM0){var zKz=UM0.introSkipDurationMs;zKz&&(this.dU=Number(zKz)/1E3);var Pee=UM0.outroSkipDurationMs;Pee&&(this.p5=Number(Pee)/1E3)}}var Vad=Fc.skippableIntroConfig;if(Vad){var nXf=Number(Vad.startMs),jlb=Number(Vad.endMs);isNaN(nXf)||isNaN(jlb)||(this.wL=nXf,this.qX=jlb)}var $Ze=Fc.streamSelectionConfig;$Ze&&(this.xp=Number($Ze.maxBitrate));var F$d=Fc.vrConfig;F$d&&(this.Iv=F$d.partialSpherical=="1"); var gO=Fc.webDrmConfig;if(gO){gO.skipWidevine&&(this.jm=!0);var yUz=gO.widevineServiceCert;yUz&&(this.ZM=SX(yUz));gO.useCobaltWidevine&&(this.useCobaltWidevine=!0);gO.startWithNoQualityConstraint&&(this.D_=!0)}var JC=Fc.mediaCommonConfig;if(JC){var gF=JC.dynamicReadaheadConfig;if(gF){this.maxReadAheadMediaTimeMs=gF.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=gF.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=gF.readAheadGrowthRateMs||NaN;var dZU,eKe=JC==null?void 0:(dZU=JC.mediaUstreamerRequestConfig)== null?void 0:dZU.videoPlaybackUstreamerConfig;eKe&&(this.G7=SX(eKe));var aPb=JC==null?void 0:JC.sabrContextUpdates;if(aPb&&aPb.length>0)for(var bvt=g.V(aPb),qdf=bvt.next();!qdf.done;qdf=bvt.next()){var Cn=qdf.value;if(Cn.type&&Cn.value){var TyB={type:Cn.type,scope:Cn.scope,value:SX(Cn.value)||void 0,sendByDefault:Cn.sendByDefault};this.sabrContextUpdates.set(Cn.type,TyB)}}}var ktN=JC.serverPlaybackStartConfig;ktN&&(this.serverPlaybackStartConfig=ktN);JC.useServerDrivenAbr&&(this.h$=!0);var W$t=JC.requestPipeliningConfig; W$t&&(this.requestPipeliningConfig=W$t)}var Ovt=Fc.inlinePlaybackConfig;Ovt&&(this.bP=!!Ovt.showAudioControls);var B6=Fc.embeddedPlayerConfig;if(B6){this.embeddedPlayerConfig=B6;var Had=B6.embeddedPlayerMode;if(Had){var Xjd=this.T();Xjd.P7=Had;Xjd.j=Had==="EMBEDDED_PLAYER_MODE_PFL"}var JUe=B6.permissions;JUe&&(this.allowImaMonetization=!!JUe.allowImaMonetization)}var iK=Fc.webPlayerConfig;iK&&(iK.gatewayExperimentGroup&&(this.gatewayExperimentGroup=iK.gatewayExperimentGroup),iK.isProximaEligible&& (this.isProximaLatencyEligible=!0))}var Kl=this.playerResponse.streamingData;if(Kl){var mMb=Kl.formats;if(mMb){for(var Br=[],K$t=g.V(mMb),sk0=K$t.next();!sk0.done;sk0=K$t.next()){var cn9=sk0.value;Br.push(cn9.itag+"/"+cn9.width+"x"+cn9.height)}this.CQ=Br.join(",");Br=[];for(var Gtc=g.V(mMb),REb=Gtc.next();!REb.done;REb=Gtc.next()){var iF=REb.value,xG={itag:iF.itag,type:iF.mimeType,quality:iF.quality},wje=iF.url;wje&&(xG.url=wje);var xt=yc(iF),DRK=xt.JU,Eye=xt.fA,tC0=xt.s;xt.Jx&&(xG.url=DRK,xG.sp= Eye,xG.s=tC0);Br.push(g.r4(xG))}this.Wy=Br.join(",")}var gYX=Kl.hlsFormats;if(gYX&&!this.V("safari_live_drm_captions_fix")){var lFt=Fc||null,Zq={};if(lFt){var Bsb=lFt.audioPairingConfig;if(Bsb&&Bsb.pairs)for(var MlT=g.V(Bsb.pairs),iaD=MlT.next();!iaD.done;iaD=MlT.next()){var fcb=iaD.value,xMN=fcb.videoItag;Zq[xMN]||(Zq[xMN]=[]);Zq[xMN].push(fcb.audioItag)}}for(var A$c={},QMN=g.V(gYX),ZaD=QMN.next();!ZaD.done;ZaD=QMN.next()){var Nmb=ZaD.value;A$c[Nmb.itag]=Nmb.bitrate}for(var YOd=[],Icb=g.V(gYX),rn0= Icb.next();!rn0.done;rn0=Icb.next()){var QV=rn0.value,i4={itag:QV.itag,type:QV.mimeType,url:QV.url,bitrate:QV.bitrate,width:QV.width,height:QV.height,fps:QV.fps},rF=QV.audioTrack;if(rF){var TmD=rF.displayName;TmD&&(i4.name=TmD,i4.audio_track_id=rF.id,rF.audioIsDefault&&(i4.is_default="1"))}if(QV.drmFamilies){for(var DNU=[],EFz=g.V(QV.drmFamilies),u5b=EFz.next();!u5b.done;u5b=EFz.next())DNU.push(iX[u5b.value]);i4.drm_families=DNU.join(",")}var uK=Zq[QV.itag];if(uK&&uK.length){i4.audio_itag=uK.join(","); var tlU=A$c[uK[0]];tlU&&(i4.bitrate+=tlU)}var vFe=Amb(QV);vFe&&(i4.eotf=vFe);QV.audioChannels&&(i4.audio_channels=QV.audioChannels);YOd.push(g.r4(i4))}this.hlsFormats=YOd.join(",")}var zEz=Kl.licenseInfos;if(zEz&&zEz.length>0){for(var pp6={},h1d=g.V(zEz),P0b=h1d.next();!P0b.done;P0b=h1d.next()){var SO9=P0b.value,LSU=SO9.drmFamily,oFX=SO9.url;LSU&&oFX&&(pp6[iX[LSU]]=oFX)}this.e$=pp6}var Cbb=Kl.drmParams;Cbb&&(this.drmParams=Cbb);var UNT=Kl.dashManifestUrl;UNT&&(this.MV=g.uj(UNT,{cpn:this.clientPlaybackNonce})); var VlN=Kl.hlsManifestUrl;VlN&&(this.hlsvp=VlN);var acf=Kl.probeUrl;acf&&(this.probeUrl=YD(g.uj(acf,{cpn:this.clientPlaybackNonce})));var qOc=Kl.serverAbrStreamingUrl;qOc&&(this.SA=new g.zN(qOc,!0))}var HDT=this.playerResponse.trackingParams;HDT&&(this.fJ=HDT);var Ta=this.playerResponse.videoDetails;if(Ta){var xM=M,nYf=Ta.videoId;nYf&&(this.videoId=nYf,xM.video_id||(xM.video_id=nYf));var jkT=Ta.title;jkT&&(this.title=jkT,xM.title||(xM.title=jkT));var $Mz=Ta.lengthSeconds;$Mz&&(this.lengthSeconds= Number($Mz),xM.length_seconds||(xM.length_seconds=$Mz));var mND=Ta.keywords;mND&&(this.keywords=FtT(mND));var Fvd=Ta.channelId;Fvd&&(this.QM=Fvd,xM.ucid||(xM.ucid=Fvd));var sM9=Ta.viewCount;sM9&&(this.rawViewCount=Number(sM9));var ynD=Ta.author;ynD&&(this.author=ynD,xM.author||(xM.author=ynD));var c$b=Ta.shortDescription;c$b&&(this.shortDescription=c$b);var R1X=Ta.isCrawlable;R1X&&(this.isListed=R1X);var gFU=Ta.musicVideoType;gFU&&(this.musicVideoType=gFU);var dMb=Ta.isLive;dMb!=null&&(this.isLivePlayback= dMb);if(dMb||Ta.isUpcoming)this.isPremiere=!Ta.isLiveContent;var Bmt=Ta.thumbnail;Bmt&&(this.X=c5(Bmt));var iD6=Ta.isExternallyHostedPodcast;iD6&&(this.isExternallyHostedPodcast=iD6);var eEc=Ta.viewerLivestreamJoinPosition;if(eEc==null?0:eEc.utcTimeMillis)this.Fw=HB(eEc.utcTimeMillis);var xNb=Fc||null,ba6=M;Ta.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);Ta.isUpcoming&&(this.isUpcoming=!0);if(Ta.isPostLiveDvr){this.oI=!0;var ZDe=Ta.latencyClass;ZDe&&(this.latencyClass=ro7[ZDe]||"UNKNOWN"); Ta.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var kcT=!1;this.l8?(this.allowLiveDvr=vs()?!0:fM&&Wt<5?!1:!0,this.isLivePlayback=!0):Ta.isLive?(ba6.livestream="1",this.allowLiveDvr=Ta.isLiveDvrEnabled?vs()?!0:fM&&Wt<5?!1:!0:!1,this.partnerId=27,kcT=!0):Ta.isUpcoming&&(kcT=!0);if(Ta.isLive||this.l8){Ta.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var r$d=Ta.latencyClass;r$d&&(this.latencyClass=ro7[r$d]||"UNKNOWN");var uDd=Ta.liveChunkReadahead;uDd&&(this.liveChunkReadahead= uDd);var Y0=xNb&&xNb.livePlayerConfig;if(Y0){Y0.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Y0.hasSubfragmentedWebm&&(this.BM=!0);Y0.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var z1b=Y0.liveExperimentalContentId;z1b&&(this.liveExperimentalContentId=Number(z1b));var PbN=Y0.isLiveHeadPlayable;this.V("html5_live_head_playable")&&PbN!=null&&(this.isLiveHeadPlayable=PbN)}}kcT&&(this.isLivePlayback=!0,ba6.adformat&&ba6.adformat.split("_")[1]!=="8"||this.KJ.push("heartbeat"), this.Hq=!0)}var nF6=Ta.isPrivate;nF6!==void 0&&(this.isPrivate=TX(this.isPrivate,nF6))}if(Y9){var jMT=Ta||null,$Nt=!1,I_=Y9.errorScreen;$Nt=I_&&(I_.playerLegacyDesktopYpcOfferRenderer||I_.playerLegacyDesktopYpcTrailerRenderer||I_.ypcTrailerRenderer)?!0:jMT&&jMT.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Y9.status);if(!$Nt){this.errorCode=XH0(Y9.errorCode)||"auth";var zq=I_&&I_.playerErrorMessageRenderer;if(zq){this.playerErrorMessageRenderer=zq;var FS9=zq.reason;FS9&&(this.errorReason= g.ae(FS9));var WvD=zq.subreason;WvD&&(this.cN=g.ae(WvD),this.RO=WvD)}else this.errorReason=Y9.reason||null;var Oab=Y9.status;if(Oab==="LOGIN_REQUIRED")this.errorDetail="1";else if(Oab==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(Oab==="AGE_CHECK_REQUIRED"){var y$t=Y9.errorScreen,dNT=y$t&&y$t.playerKavRenderer;this.errorDetail=dNT&&dNT.kavUrl?"4":"3"}else this.errorDetail=Y9.isBlockedInRestrictedMode?"5":"0"}}var e1f=this.playerResponse.interstitialPods;e1f&&EGf(this,e1f);this.nJ&&this.eventId&& (this.nJ=Ef(this.nJ,{ei:this.eventId}));var XEz=this.playerResponse.captions;if(XEz&&XEz.playerCaptionsTracklistRenderer)a:{var Z2=XEz.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Z2.captionTracks)for(var bDf=g.V(Z2.captionTracks),Jn6=bDf.next();!Jn6.done;Jn6=bDf.next()){var r1=Jn6.value,kF0=nG6(r1.baseUrl);if(!kF0)break a;var Kvd={is_translateable:!!r1.isTranslatable,languageCode:r1.languageCode,languageName:r1.name&&g.ae(r1.name),url:kF0,vss_id:r1.vssId,kind:r1.kind};Kvd.name=r1.trackName; Kvd.displayName=r1.name&&g.ae(r1.name);this.captionTracks.push(new g.aL(Kvd))}this.yy=Z2.audioTracks||[];this.Wc=Z2.defaultAudioTrackIndex||0;this.zq=[];if(Z2.translationLanguages)for(var WSf=g.V(Z2.translationLanguages),Gcf=WSf.next();!Gcf.done;Gcf=WSf.next()){var Ty=Gcf.value,UC={};UC.languageCode=Ty.languageCode;UC.languageName=g.ae(Ty.languageName);if(Ty.translationSourceTrackIndices){UC.translationSourceTrackIndices=[];for(var ODd=g.V(Ty.translationSourceTrackIndices),wEe=ODd.next();!wEe.done;wEe= ODd.next())UC.translationSourceTrackIndices.push(wEe.value)}if(Ty.excludeAudioTrackIndices){UC.excludeAudioTrackIndices=[];for(var XpT=g.V(Ty.excludeAudioTrackIndices),lPf=XpT.next();!lPf.done;lPf=XpT.next())UC.excludeAudioTrackIndices.push(lPf.value)}this.zq.push(UC)}this.mj=[];if(Z2.defaultTranslationSourceTrackIndices)for(var J$N=g.V(Z2.defaultTranslationSourceTrackIndices),Mpf=J$N.next();!Mpf.done;Mpf=J$N.next())this.mj.push(Mpf.value);this.Is=!!Z2.contribute&&!!Z2.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.I8=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&vGN(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var KSU;this.compositeLiveIngestionOffsetToken=(KSU=this.playerResponse.playbackTracking)==null?void 0:KSU.compositeLiveIngestionOffsetToken; var GFf;this.compositeLiveStatusToken=(GFf=this.playerResponse.playbackTracking)==null?void 0:GFf.compositeLiveStatusToken}lS(this,M);M.queue_info&&(this.queueInfo=M.queue_info);var wpU=M.hlsdvr;wpU!=null&&(this.allowLiveDvr=Number(wpU)===1?vs()?!0:fM&&Wt<5?!1:!0:!1);this.adQueryId=M.ad_query_id||null;this.Q3||(this.Q3=M.encoded_ad_safety_reason||null);this.b5=TX(this.b5,M.infringe||M.muted);this.ZZ=M.authkey;this.JG=M.authuser;this.mutedAutoplay=TX(this.mutedAutoplay,M&&M.playmuted);this.mutedAutoplayDurationMode= E8(this.mutedAutoplayDurationMode,M&&M.muted_autoplay_duration_mode);this.SW=TX(this.SW,M&&M.mutedautoplay);var P6=M.length_seconds;P6&&(this.lengthSeconds=typeof P6==="string"?HB(P6):P6);if(this.isAd()||this.Bz||!g.SA(g.kI(this.i8)))this.endSeconds=E8(this.endSeconds,this.p5||M.end||M.endSeconds);else{var vyc=g.kI(this.i8),nK=this.lengthSeconds;switch(vyc){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":nK>30?this.limitedPlaybackDurationInSeconds=30:nK<30&&nK>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=nK*.2}}this.fJ=t0(this.fJ,M.itct);this.UQ=TX(this.UQ,M.is_live_destination);this.isLivePlayback=TX(this.isLivePlayback,M.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.U$();M.isUpcoming&&(this.isUpcoming=TX(this.isUpcoming,M.isUpcoming));this.oI=TX(this.oI,M.post_live_playback);this.Er&&(this.oI=!1);this.isMdxPlayback=TX(this.isMdxPlayback,M.mdx);var jB=M.mdx_control_mode; jB&&(this.mdxControlMode=typeof jB==="number"?jB:HB(jB));this.isInlinePlaybackNoAd=TX(this.isInlinePlaybackNoAd,M.is_inline_playback_no_ad);this.zt=E8(this.zt,M.reload_count);this.reloadReason=t0(this.reloadReason,M.reload_reason);this.QK=TX(this.QK,M.show_content_thumbnail);this.cycToken=M.cyc||null;var lcD=sA(M);Object.keys(lcD).length>0&&(this.X=lcD);this.P7=t0(this.P7,M.vvt);this.mdxEnvironment=t0(this.mdxEnvironment,M.mdx_environment);M.source_container_playlist_id&&(this.sourceContainerPlaylistId= M.source_container_playlist_id);M.serialized_mdx_metadata&&(this.serializedMdxMetadata=M.serialized_mdx_metadata);this.MJ=M.osig;this.eventId||(this.eventId=M.eventid);this.osid||(this.osid=M.osid);this.playlistId=t0(this.playlistId,M.list);M.index&&(this.playlistIndex=this.playlistIndex===void 0?E8(0,M.index):E8(this.playlistIndex,M.index));this.T2=M.pyv_view_beacon_url;this.bJ=M.pyv_quartile25_beacon_url;this.B3=M.pyv_quartile50_beacon_url;this.Q6=M.pyv_quartile75_beacon_url;this.LL=M.pyv_quartile100_beacon_url; var MnT=M.session_data;!this.dl&&MnT&&(this.dl=Qn(MnT,"&").feature);this.isFling=E8(this.isFling?1:0,M.is_fling)===1;this.vnd=E8(this.vnd,M.vnd);this.forceAdsUrl=t0(this.forceAdsUrl,M.force_ads_url);this.CK=t0(this.CK,M.ctrl);this.T9=t0(this.T9,M.ytr);this.rV=M.ytrcc;this.ET=M.ytrexp;this.BI=M.ytrext;this.VU=t0(this.VU,M.adformat);this.LM=t0(this.LM,M.attrib);this.slotPosition=E8(this.slotPosition,M.slot_pos);this.breakType=M.break_type;this.o_=TX(this.o_,M.ssrt);this.videoId=pM(M)||this.videoId; this.G=t0(this.G,M.vss_credentials_token);this.DH=t0(this.DH,M.vss_credentials_token_type);this.OR=TX(this.OR,M.audio_only);this.YO=TX(this.YO,M.aac_high);this.k0=TX(this.k0,M.prefer_low_quality_audio);this.Nc=TX(this.Nc,M.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?M.qoe_cat&&(this.u2=this.u2.concat(M.qoe_cat.split(","))):this.oo=t0(this.oo,M.qoe_cat);this.oO=TX(this.oO,M.download_media);var fE6=M.prefer_gapless;this.W=fE6!=null?TX(this.W,fE6):this.W?this.W:this.i8.preferGapless&&this.i8.supportsGaplessShorts(); IsD(this.playerResponse)&&this.KJ.push("ad");var AXd=M.adaptive_fmts;AXd&&(this.adaptiveFormats=AXd,this.ZB("adpfmts",{},!0));var QNf=M.allow_embed;QNf&&(this.allowEmbed=Number(QNf)===1);var NHf=M.backgroundable;NHf&&(this.backgroundable=Number(NHf)===1);var YKt=M.autonav;YKt&&(this.isAutonav=Number(YKt)===1);var IEe=M.autoplay;IEe&&(this.rL=this.Wq=Number(IEe)===1);var THU=M.iv_load_policy;THU&&(this.annotationsLoadPolicy=DD(this.annotationsLoadPolicy,THU,Ws));var Dvb=M.cc_lang_pref;Dvb&&(this.captionsLanguagePreference= t0(Dvb,this.captionsLanguagePreference));var Ef0=M.cc_load_policy;Ef0&&(this.I2=DD(this.I2,Ef0,Ws));var tnD;this.deviceCaptionsOn=(tnD=M.device_captions_on)!=null?tnD:void 0;var vfb;this.vc=(vfb=M.device_captions_lang_pref)!=null?vfb:"";var pS6;this.WA=(pS6=M.viewer_selected_caption_langs)!=null?pS6:[];if(!this.V("html5_enable_ssap_entity_id")){var hH6=M.cached_load;hH6&&(this.WQ=TX(this.WQ,hH6))}if(M.dash==="0"||M.dash===0||M.dash===!1)this.EQ=!0;var SKf=M.dashmpd;SKf&&(this.MV=g.uj(SKf,{cpn:this.clientPlaybackNonce})); var Lkf=M.delay;Lkf&&(this.xO=HB(Lkf));var flt=this.p5||M.end;if(this.oE?flt!=null:flt!=void 0)this.clipEnd=E8(this.clipEnd,flt);var of6=M.fmt_list;of6&&(this.CQ=of6);M.heartbeat_preroll&&this.KJ.push("heartbeat");this.tZ=-Math.floor(Math.random()*10);this.uO=-Math.floor(Math.random()*40);var CYb=M.is_listed;CYb&&(this.isListed=TX(this.isListed,CYb));var Uv9=M.is_private;Uv9&&(this.isPrivate=TX(this.isPrivate,Uv9));var Vnc=M.is_dni;Vnc&&(this.XR=TX(this.XR,Vnc));var aE0=M.dni_color;aE0&&(this.Xt= t0(this.Xt,aE0));var qK0=M.pipable;qK0&&(this.pipable=TX(this.pipable,qK0));this.i9=(this.mV=this.pipable&&this.i8.Zu)&&!this.i8.showMiniplayerButton;var H3f=M.paid_content_overlay_duration_ms;H3f&&(this.paidContentOverlayDurationMs=HB(H3f));var mvt=M.paid_content_overlay_text;mvt&&(this.paidContentOverlayText=mvt);var sNX=M.url_encoded_fmt_stream_map;sNX&&(this.Wy=sNX);var cXf=M.hls_formats;cXf&&(this.hlsFormats=cXf);var RHb=M.hlsvp;RHb&&(this.hlsvp=RHb);var $t=M.live_start_walltime;$t&&(this.PW= typeof $t==="number"?$t:HB($t));var FB=M.live_manifest_duration;FB&&(this.Wt=typeof FB==="number"?FB:HB(FB));var gfX=M.player_params;gfX&&(this.playerParams=gfX);var BHT=M.partnerid;BHT&&(this.partnerId=E8(this.partnerId,BHT));var i3X=M.probe_url;i3X&&(this.probeUrl=YD(g.uj(i3X,{cpn:this.clientPlaybackNonce})));var ATX=M.pyv_billable_url;ATX&&vot(ATX)&&(this.XJ=ATX);var QZT=M.pyv_conv_url;QZT&&vot(QZT)&&(this.rX=QZT);yeb(this,M);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.I8||this.dU||M.start||M.startSeconds)&&this.ZB("lss",{css:this.startSeconds,pcss:this.I8,iss:this.dU,ps:M.start||void 0,pss:M.startSeconds||void 0}):this.Qw=this.startSeconds=E8(this.startSeconds,this.I8||this.dU||M.start||M.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var xvN=M.live_utc_start;if(xvN!=null)this.liveUtcStartSeconds=Number(xvN);else{var Nnb=this.startSeconds;Nnb&&isFinite(Nnb)&&Nnb>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var Z3b=M.utc_start_millis;Z3b&&(this.liveUtcStartSeconds=Number(Z3b)*.001)}var rXf=M.stream_time_start_millis;rXf&&(this.T_=Number(rXf)*.001);var Ygt=this.dU||M.start;(this.oE?Ygt==null||Number(M.resume)===1:Ygt==void 0||M.resume=="1")||this.isLivePlayback||(this.clipStart=E8(this.clipStart,Ygt));var uIT=M.url_encoded_third_party_media;uIT&&(this.Kh=Id(uIT));var Ilt=M.ypc_offer_button_formatted_text;if(Ilt){var zHb=JSON.parse(Ilt);this.KQ=zHb!=null?zHb:null;this.Pn=Ilt}var PYN= M.ypc_offer_button_text;PYN&&(this.u$=PYN);var nfd=M.ypc_offer_description;nfd&&(this.eC=nfd);var jNt=M.ypc_offer_headline;jNt&&(this.Cu=jNt);var $vU=M.ypc_full_video_message;$vU&&(this.k8=$vU);var Fkt=M.ypc_offer_id;Fkt&&(this.Ch=Fkt);var yXe=M.ypc_buy_url;yXe&&(this.CT=yXe);var dvc=M.ypc_item_thumbnail;dvc&&(this.J2=dvc);var eHT=M.ypc_item_title;eHT&&(this.jC=eHT);var b3e=M.ypc_item_url;b3e&&(this.Xe=b3e);var krX=M.ypc_vid;krX&&(this.rR=krX);M.ypc_overlay_timeout&&(this.oZ=Number(M.ypc_overlay_timeout)); var Wkb=M.ypc_trailer_player_vars;Wkb&&(this.tC=Yy(Wkb));var O3e=M.ypc_original_itct;O3e&&(this.ox3=O3e);this.QM=t0(this.QM,M.ucid);this.hn=M.storyboard_spec||null;this.O1=M.live_storyboard_spec||null;this.s8=M.iv_endscreen_url||null;this.Hq=TX(this.Hq,M.ypc_license_checker_module);this.lr=TX(this.lr,M.ypc_module);this.Yx=TX(this.Yx,M.ypc_clickwrap_module);this.lr&&this.KJ.push("ypc");this.Yx&&this.KJ.push("ypc_clickwrap");this.Ie={video_id:M.video_id,eventid:M.eventid,cbrand:M.cbrand,cbr:M.cbr,cbrver:M.cbrver, c:M.c,cver:M.cver,ctheme:M.ctheme,cplayer:M.cplayer,cmodel:M.cmodel,cnetwork:M.cnetwork,cos:M.cos,cosver:M.cosver,cplatform:M.cplatform,user_age:M.user_age,user_display_image:M.user_display_image,user_display_name:M.user_display_name,user_gender:M.user_gender,csi_page_type:M.csi_page_type,csi_service_name:M.csi_service_name,enablecsi:M.enablecsi,enabled_engage_types:M.enabled_engage_types};PFT(this,M);var XST=M.cotn;XST&&(this.cotn=XST);if(Mv6(this))Lk(this)&&(this.isLivePlayback&&this.MV&&(this.OC= !0),this.ox&&(this.Eu=!0));else if(fdz(this))this.OC=!0;else{var JX6,Kkb,GrU=((JX6=this.playerResponse)==null?void 0:(Kkb=JX6.streamingData)==null?void 0:Kkb.adaptiveFormats)||[];if(GrU.length>0)var ZO=lOe(this,GrU);else{var wSN=this.adaptiveFormats;if(wSN&&!Lk(this)){this.i8.N.j&&(eL=!0);var DC=Hu(wSN),Tnc=this.e$,lEz=this.lengthSeconds,pac=this.isLivePlayback,rO=this.oI,EZ=this.i8,hGB=ol0(DC);if(pac||rO){var Mcf=EZ==null?void 0:EZ.experiments,kT=new gc("",Mcf,!0);kT.U$=!0;kT.isManifestless=!0;kT.Z= !rO;kT.isLive=!rO;kT.oI=rO;for(var fTb=g.V(DC),DX9=fTb.next();!DX9.done;DX9=fTb.next()){var tK=DX9.value,A7d=ZV(tK,Tnc),VH=rc(tK.url,tK.sp,tK.s),QI6=VH.get("id");QI6&&QI6.includes("%7E")&&(kT.B=!0);var N9f=void 0,Sf9=(N9f=Mcf)==null?void 0:N9f.X3("html5_max_known_end_time_rebase"),LE7=Number(tK.target_duration_sec)||5,oy0=Number(tK.max_dvr_duration_sec)||14400,Yof=Number(VH.get("mindsq")||VH.get("min_sq")||"0"),ITb=Number(VH.get("maxdsq")||VH.get("max_sq")||"0")||Infinity;kT.iU=kT.iU||Yof;kT.z7=kT.z7|| ITb;var Clv=!DH(A7d.mimeType);VH&&m8(kT,new DV(VH,A7d,{DQ:LE7,p8:Clv,U2:oy0,iU:Yof,z7:ITb,cY:300,oI:rO,XE:Sf9}))}var T90=kT}else{if(hGB==="FORMAT_STREAM_TYPE_OTF"){var yJ=lEz;yJ=yJ===void 0?0:yJ;var vI=new gc("",EZ==null?void 0:EZ.experiments,!1);vI.duration=yJ||0;for(var Dyb=g.V(DC),EVz=Dyb.next();!EVz.done;EVz=Dyb.next()){var pZ=EVz.value,tpz=ZV(pZ,Tnc,vI.duration),vV9=rc(pZ.url,pZ.sp,pZ.s);if(vV9)if(tpz.streamType==="FORMAT_STREAM_TYPE_OTF")m8(vI,new Ew(vV9,tpz,"sq/0"));else{var URK=yM(pZ.init), VCe=yM(pZ.index);m8(vI,new an(vV9,tpz,URK,VCe))}}vI.isOtf=!0;var En9=vI}else{var dF=lEz;dF=dF===void 0?0:dF;var eB=new gc("",EZ==null?void 0:EZ.experiments,!1);eB.duration=dF||0;for(var tcb=g.V(DC),p_D=tcb.next();!p_D.done;p_D=tcb.next()){var hK=p_D.value,afm=ZV(hK,Tnc,eB.duration),qfW=g.F(yM(hK.init)),H0B=g.F(yM(hK.index)),vne=rc(hK.url,hK.sp,hK.s);vne&&m8(eB,new an(vne,afm,qfW,H0B))}En9=eB}T90=En9}var pbe=T90;if(DC.length>0){var hCd=DC[0];if(this.T().playerStyle==="hangouts-meet"&&hCd.url){var mR7= g.TA(hCd.url);this.Mp=this.Mp||Number(mR7.expire)}}var sdB=this.isLivePlayback&&!this.oI&&!this.Er&&!this.isPremiere;this.V("html5_live_head_playable")&&(!oJ(this)&&sdB&&this.ZB("missingLiveHeadPlayable",{}),this.i8.Er==="yt"&&(pbe.nJ=!0));ZO=pbe}else ZO=null;this.ZB("pafmts",{isManifestFilled:!!ZO})}if(ZO){Vm(this,ZO);var So6=!0}else So6=!1;So6?this.enableServerStitchedDai=this.enableServerStitchedDai&&Ck(this):this.MV&&(this.i8.Er==="yt"&&this.U$()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")? this.ZB("deprecateMflFallback",{}):this.OC=!0)}var hVf=M.adpings;hVf&&(this.Bq=hVf?Yy(hVf):null);var LTz=M.feature;LTz&&(this.kN=LTz);var onD=M.referrer;onD&&(this.referrer=onD);this.clientScreenNonce=t0(this.clientScreenNonce,M.csn);this.Fp=E8(this.Fp,M.root_ve_type);this.gV=E8(this.gV,M.kids_age_up_mode);this.oE||M.kids_app_info==void 0||(this.kidsAppInfo=M.kids_app_info);this.oE&&M.kids_app_info!=null&&(this.kidsAppInfo=M.kids_app_info);this.Vy=TX(this.Vy,M.upg_content_filter_mode);this.unpluggedFilterModeType= E8(this.unpluggedFilterModeType,M.unplugged_filter_mode_type);var C1X=M.unplugged_location_info;C1X&&(this.Fk=C1X);var Uyz=M.unplugged_partner_opt_out;Uyz&&(this.S7=t0("",Uyz));this.jN=TX(this.jN,M.disable_watch_next);this.pQ=t0(this.pQ,M.internal_ip_override);this.AU=!!M.is_yto_interstitial;(this.interstitials.length||this.AU)&&this.KJ.push("yto");var VcU=M.qD;VcU&&(this.qD=VcU);this.B=t0(this.B,M.csi_timer);M.watchUrl&&(this.watchUrl=M.watchUrl);var aP=M.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&& aP&&GS0(this,aP);if(aP==null?0:aP.ustreamerConfig)this.yb=SX(aP.ustreamerConfig);var aT9,qo9,HGb=aP==null?void 0:(aT9=aP.loggingContext)==null?void 0:(qo9=aT9.qoeLoggingContext)==null?void 0:qo9.serializedContextData;HGb&&(this.YqY=HGb);g.Ps(this.i8)&&this.i8.Kh&&(this.embedsRct=t0(this.embedsRct,M.rct),this.embedsRctn=t0(this.embedsRctn,M.rctn));this.KS=this.KS||!!M.pause_at_start;M.default_active_source_video_id&&(this.defaultActiveSourceVideoId=M.default_active_source_video_id)}; g.C.T=function(){return this.i8}; g.C.V=function(M){return this.i8.V(M)}; g.C.BP=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.C.hasSupportedAudio51Tracks=function(){var M;return!((M=this.zj)==null||!M.l8)}; g.C.getUserAudio51Preference=function(){var M=1;N1(this.i8)&&this.V("html5_ytv_surround_toggle_default_off")?M=0:g.fF(this.i8)&&this.isLivePlayback&&this.TP()&&(M=0);var f;return(f=g.$J("yt-player-audio51"))!=null?f:M}; g.C.lh=function(){this.ek()||(this.K.Z||this.K.unsubscribe("refresh",this.lh,this),this.DA(-1))}; g.C.DA=function(M){if(!this.isLivePlayback||!this.N||this.N.flavor!=="fairplay"){var f=UkD(this.K,this.eN);if(f.length>0){for(var A=g.V(f),Q=A.next();!Q.done;Q=A.next())Q=Q.value,Q.startSecs=Math.max(Q.startSecs,this.hd()),this.V("html5_cuepoint_identifier_logging")&&Q.event==="start"&&this.ZB("cuepoint",{pubCue:Q.identifier,segNum:M});this.publish("cuepointupdated",f,M);this.eN+=f.length;if(Ck(this)&&this.i8.cX())for(f=g.V(f),A=f.next();!A.done;A=f.next())A=A.value,this.ZB("cuepoint",{segNum:M,event:A.event, startSecs:A.startSecs,id:A.identifier.slice(-16)}),A.event==="start"&&(A=A.startSecs,this.Cr.start=this.Yp,this.Cr.end=A+3)}}}; g.C.wY=function(){this.ek()||(this.loading=!1,this.publish("dataloaded"))}; g.C.TP=function(){return this.Zu!==void 0?this.Zu:this.Zu=!!this.e$||!!this.K&&gY(this.K)}; g.C.Dm=function(M){var f=this;if(this.ek())return Pa();this.y7=this.Ji=this.j=null;lv(this,"html5_high_res_logging_always")&&(this.i8.OR=!0);return Y5X(this,M).then(void 0,function(){return T5t(f,M)}).then(void 0,function(){return Dbt(f)}).then(void 0,function(){return tvb(f)})}; g.C.uQ=function(M){this.j=M;Id9(this,this.j.getAvailableAudioTracks());if(this.j){M=g.V(this.j.videoInfos);for(var f=M.next();!f.done;f=M.next()){f=f.value;var A=f.containerType;A!==0&&(this.GK[A]=f.id)}}M=this.getAvailableAudioTracks();M=M.concat(this.Fi);for(f=0;f0?this.j.getAvailableAudioTracks():this.xP||[]:[]}; g.C.getAudioTrack=function(){var M=this;if(this.C&&!NC(this.C)){var f=g.oR(this.getAvailableAudioTracks(),function(N){return N.id===M.C.id}),A; if(this.V("html5_sabr_skip_client_audio_init_selection")&&!f&&((A=this.C.qV)==null?0:A.id)){var Q=this.C.qV.id;f=g.oR(this.getAvailableAudioTracks(),function(N){return N.qV.id===Q}); this.ZB("nat",{id:this.C.id,track:!!f})}return f||this.Fi}if(this.xP){if(!this.mK)for(f=g.V(this.xP),A=f.next();!A.done;A=f.next())if(A=A.value,A.qV.getIsDefault()){this.mK=A;break}return this.mK||this.Fi}return this.Fi}; g.C.getPlayerResponse=function(){return this.playerResponse}; g.C.getWatchNextResponse=function(){return this.z0}; g.C.getHeartbeatResponse=function(){return this.PD}; g.C.Rq=function(){return this.watchUrl?this.watchUrl:this.i8.getVideoUrl(this.videoId)}; g.C.tJ=function(){return!!this.K&&(Elb(this.K)||tVe(this.K)||vlD(this.K))}; g.C.getEmbeddedPlayerResponse=function(){return this.Y$}; g.C.E3=function(){return(this.eventLabel||this.i8.z0)==="shortspage"}; g.C.isAd=function(){return!!this.adFormat}; g.C.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.C.G_=function(){var M,f,A;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((M=this.playerResponse)==null?0:(f=M.playerConfig)==null?0:(A=f.daiConfig)==null?0:A.ssaEnabledPlayback)}; g.C.Ey=function(){return umb(this)?this.rE:this.Hq||this.o9}; g.C.CA=function(){return this.lr||this.o9}; g.C.lP=function(){return lv(this,"html5_samsung_vp9_live")}; g.C.ZB=function(M,f,A){this.publish("ctmp",M,f,A)}; g.C.Z4=function(M,f,A){this.publish("ctmpstr",M,f,A)}; g.C.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.C.getGetAdBreakContext=function(M,f){M=M===void 0?NaN:M;f=f===void 0?NaN:f;var A={isSabr:pk(this)},Q,N=(Q=this.getHeartbeatResponse())==null?void 0:Q.adBreakHeartbeatParams;N&&(A.adBreakHeartbeatParams=N);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.K&&!isNaN(M)&&!isNaN(f)){f=M-f;for(var Y in this.K.K)if(Q=this.K.K[Y],Q.info.Tj()||Q.info.gf())if(Q=Q.index,Q.isLoaded()){Y=Q.IY(f);Q=Q.VJ(Y)+f-Q.getStartTime(Y);this.ZB("gabc",{t:M.toFixed(3),mt:f.toFixed(3),sg:Y,igt:Q.toFixed(3)}); A.livePlaybackPosition={utcTimeMillis:""+(Q*1E3).toFixed(0)};break}}return A}; g.C.isEmbedsShortsMode=function(M,f){if(!g.Ps(this.i8)||(this.i8.P7||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||f)return!1;var A,Q;return!!(((A=this.embeddedPlayerConfig)==null?0:(Q=A.embeddedPlayerFlags)==null?0:Q.isShortsExperienceEligible)&&M.width<=M.height)}; g.C.u8=function(){g.pi.prototype.u8.call(this);this.Bq=null;delete this.cj;delete this.accountLinkingConfig;delete this.K;this.j=this.PD=this.playerResponse=this.z0=null;this.Wy=this.adaptiveFormats="";delete this.botguardData;this.w_=this.suggestions=this.K6=null;this.sabrContextUpdates.clear()};var db6={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},ej0={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Fae={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},nqe={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"},$bX={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},j$d={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"},yqU={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.U(Il,g.y);g.C=Il.prototype;g.C.handleExternalCall=function(M,f,A){var Q=this.state.W[M],N=this.state.X[M],Y=Q;if(N)if(A&&Af(A,wB6))Y=N;else if(!Q)throw Error('API call from an untrusted origin: "'+A+'"');this.logApiCall(M,A);if(Y){A=!1;Q=g.V(f);for(N=Q.next();!N.done;N=Q.next())if(String(N.value).includes("javascript:")){A=!0;break}A&&g.$b(Error('Dangerous call to "'+M+'" with ['+f+"]."));return Y.apply(this,f)}throw Error('Unknown API method: "'+M+'".');}; g.C.logApiCall=function(M,f,A){var Q=this.app.T();Q.o_&&!this.state.B.has(M)&&(this.state.B.add(M),g.hO("webPlayerApiCalled",{callerUrl:Q.loaderUrl,methodName:M,origin:f||void 0,playerStyle:Q.playerStyle||void 0,embeddedPlayerMode:Q.P7,errorCode:A}))}; g.C.publish=function(M){var f=g.jN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[M].concat(g.c(f)));if(M==="videodatachange"||M==="resize"||M==="cardstatechange")this.state.Z.publish.apply(this.state.Z,[M].concat(g.c(f))),this.state.C.publish.apply(this.state.C,[M].concat(g.c(f)))}; g.C.T0=function(M){var f=g.jN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[M].concat(g.c(f)));this.state.Z.publish.apply(this.state.Z,[M].concat(g.c(f)))}; g.C.l7=function(M){var f=g.jN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[M].concat(g.c(f)));this.state.Z.publish.apply(this.state.Z,[M].concat(g.c(f)));this.state.C.publish.apply(this.state.C,[M].concat(g.c(f)))}; g.C.Gj=function(M){var f=g.jN.apply(1,arguments);this.state.j.publish.apply(this.state.j,[M].concat(g.c(f)));this.state.Z.publish.apply(this.state.Z,[M].concat(g.c(f)));this.state.C.publish.apply(this.state.C,[M].concat(g.c(f)));this.state.N.publish.apply(this.state.N,[M].concat(g.c(f)))}; g.C.V=function(M){return this.app.T().V(M)}; g.C.u8=function(){if(this.state.element){var M=this.state.element,f;for(f in this.state.K)this.state.K.hasOwnProperty(f)&&(M[f]=null);this.state.element=null}g.y.prototype.u8.call(this)};g.U(ol,g.x2);ol.prototype.publish=function(M){var f=g.jN.apply(1,arguments);if(this.N.has(M))return this.N.get(M).push(f),!0;var A=!1;try{for(f=[f],this.N.set(M,f);f.length;)A=g.x2.prototype.publish.call.apply(g.x2.prototype.publish,[this,M].concat(g.c(f.shift())))}finally{this.N.delete(M)}return A};g.U(Cv,g.y);Cv.prototype.u8=function(){this.N.dispose();this.C.dispose();this.Z.dispose();this.j.dispose();this.B=this.K=this.X=this.W=this.G=void 0};var Ka9=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.U(VG,Il);g.C=VG.prototype;g.C.getApiInterface=function(){return Array.from(this.state.G)}; g.C.Kt=function(M,f){this.state.N.subscribe(M,f)}; g.C.zPk=function(M,f){this.state.N.unsubscribe(M,f)}; g.C.getPlayerState=function(M){return N_T(this.app,M)}; g.C.Cb=function(){return N_T(this.app)}; g.C.YRr=function(M,f,A){Hj(this)&&($5(this.app,!0,1),dC(this.app,M,f,A,1))}; g.C.getCurrentTime=function(M,f,A){var Q=this.getPlayerState(M);if(this.app.getAppState()===2&&Q===5){var N;return((N=this.app.getVideoData())==null?void 0:N.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&Q===0?Z0(this.app,M):M?this.app.getCurrentTime(M,f,A):this.app.getCurrentTime(M)}; g.C.sH=function(){return this.app.getCurrentTime(1)}; g.C.uZ=function(){var M=this.app.VJ(1);return isNaN(M)?this.getCurrentTime(1):M}; g.C.Kb=function(){return this.app.getDuration(1)}; g.C.CR=function(M,f){M=g.ih(Math.floor(M),0,100);isFinite(M)&&iy(this.app,{volume:M,muted:this.isMuted()},f)}; g.C.Q90=function(M){this.CR(M,!1)}; g.C.m_=function(M){iy(this.app,{muted:!0,volume:this.getVolume()},M)}; g.C.gOx=function(){this.m_(!1)}; g.C.TC=function(M){qZ(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||iy(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},M)}; g.C.XPi=function(){qZ(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.TC(!1)}; g.C.getPlayerMode=function(){var M={};this.app.getVideoData().XR&&(M.pfp={enableIma:g.fv(this.app.getVideoData())&&this.app.K3().allowImaMonetization,autoplay:ed(this.app.K3()),mutedAutoplay:this.app.K3().mutedAutoplay});return M}; g.C.xD=function(){var M=this.app.getPresentingPlayerType();if(M===2&&!this.app.Q4()){var f=Bt(this.app.kp());if(!(tN9(f)||this.app.T().V("embeds_emc3ds_dompaused_fix")&&g.Ps(this.app.T())&&g.J(this.app.v7().getPlayerState(),1024))||v9e(f))return}(f=this.app.yK().MY)?f.playVideo():this.app.playVideo(M)}; g.C.Tbu=function(){$5(this.app,!0,1);this.xD()}; g.C.pauseVideo=function(M){var f=this.app.getPresentingPlayerType();if(f!==2||this.app.Q4()||tN9(Bt(this.app.kp()))){var A=this.app.yK().MY;A?A.pauseVideo():this.app.pauseVideo(f,M)}}; g.C.pPY=function(){var M=this.app,f=!1;M.QY.Yp&&(M.G0.publish("pageTransition"),f=!0);M.stopVideo(f)}; g.C.clearVideo=function(){}; g.C.getAvailablePlaybackRates=function(){var M=this.app.T();return M.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(M.C?M.ancestorOrigins[0]:window.location.origin)||M.G$?gRC:M.supportsVarispeedExtendedFeatures?B29:M.V("web_remix_allow_up_to_3x_playback_rate")&&g.dA(M)?igm:BG:[1]}; g.C.getPlaybackQuality=function(M){return(M=this.app.eO(M))?M.getPlaybackQuality():"unknown"}; g.C.bx$=function(){}; g.C.getAvailableQualityLevels=function(M){return(M=this.app.eO(M))?(M=g.WP(M.NE(),function(f){return f.quality}),M.length&&(M[0]==="auto"&&M.shift(),M=M.concat(["auto"])),M):[]}; g.C.Fa=function(){return this.getAvailableQualityLevels(1)}; g.C.fb=function(){return this.mX()}; g.C.UL=function(){return 1}; g.C.getVideoLoadedFraction=function(M){return this.app.getVideoLoadedFraction(M)}; g.C.mX=function(){return this.getVideoLoadedFraction()}; g.C.ob=function(){return 0}; g.C.getSize=function(){var M=this.app.ax().getPlayerSize();return{width:M.width,height:M.height}}; g.C.setSize=function(){this.app.ax().resize()}; g.C.loadVideoById=function(M,f,A,Q){if(!M)return!1;M=UX(M,f,A);return this.app.loadVideoByPlayerVars(M,Q)}; g.C.bq=function(M,f,A){M=this.loadVideoById(M,f,A,1);$5(this.app,M,1)}; g.C.cueVideoById=function(M,f,A,Q){M=UX(M,f,A);this.app.cueVideoByPlayerVars(M,Q)}; g.C.D5=function(M,f,A){this.cueVideoById(M,f,A,1)}; g.C.loadVideoByUrl=function(M,f,A,Q){M=JqX(M,f,A);return this.app.loadVideoByPlayerVars(M,Q)}; g.C.xK=function(M,f,A){M=this.loadVideoByUrl(M,f,A,1);$5(this.app,M,1)}; g.C.cueVideoByUrl=function(M,f,A,Q){M=JqX(M,f,A);this.app.cueVideoByPlayerVars(M,Q)}; g.C.sb=function(M,f,A){this.cueVideoByUrl(M,f,A,1)}; g.C.N1=function(){var M=this.app.T();if(M.KJ)return"";var f=this.app.K3(),A=void 0;f.isLivePlayback||(A=Math.floor(this.app.getCurrentTime(1)));return M.getVideoUrl(f.videoId,this.getPlaylistId()||void 0,A)}; g.C.EL=function(){return this.app.getDebugText()}; g.C.getVideoEmbedCode=function(){var M=this.app.T();if(M.KJ)return"";var f=this.app.K3(),A=M.getVideoEmbedCode;f=f.isPrivate?"":f.title;var Q=this.app.K3().videoId;return A.call(M,f,Q,this.app.ax().getPlayerSize(),this.getPlaylistId()||void 0)}; g.C.dQ=function(M,f,A){return pAb(this.app,M,f,A)}; g.C.removeCueRange=function(M){return SQe(this.app,M)}; g.C.loadPlaylist=function(M,f,A,Q){this.app.loadPlaylist(M,f,A,Q)}; g.C.a$=function(M,f,A,Q){this.loadPlaylist(M,f,A,Q);$5(this.app,!0,1)}; g.C.cuePlaylist=function(M,f,A,Q){this.app.cuePlaylist(M,f,A,Q)}; g.C.nextVideo=function(M,f){this.app.nextVideo(M,f)}; g.C.eNJ=function(){this.nextVideo();$5(this.app,!0,1)}; g.C.previousVideo=function(M){this.app.previousVideo(M)}; g.C.sIN=function(){this.previousVideo();$5(this.app,!0,1)}; g.C.playVideoAt=function(M){this.app.playVideoAt(M)}; g.C.XuY=function(M){this.playVideoAt(M);$5(this.app,!0,1)}; g.C.setShuffle=function(M){var f=this.app.getPlaylist();f&&f.setShuffle(M)}; g.C.setLoop=function(M){var f=this.app.getPlaylist();f&&(f.loop=M)}; g.C.z5=function(){var M=this.app.getPlaylist();if(!M)return null;for(var f=[],A=0;A=400)if(M=g.F(this.K3()),this.U.T().V("client_respect_autoplay_switch_button_renderer"))M=!!M.autoplaySwitchButtonRenderer;else{var f,A,Q,N;M=!!((f=M.getWatchNextResponse())==null?0:(A=f.contents)==null?0:(Q=A.twoColumnWatchNextResults)==null?0:(N=Q.autoplay)==null?0:N.autoplay)!==!1}if(M)this.K||(this.K=!0,this.aE(this.K),this.U.T().V("web_player_autonav_toggle_always_listen")||a1N(this), f=g.F(this.K3()),this.yC(f.autonavState),this.U.logVisibility(this.element,this.K));else if(this.K=!1,this.aE(this.K),!this.U.T().V("web_player_autonav_toggle_always_listen"))for(this.U.T().V("web_player_autonav_toggle_always_listen"),f=g.V(this.Z),A=f.next();!A.done;A=f.next())this.Hv(A.value)}; g.C.yC=function(M){HWb(this)?this.isChecked=M!==1:((M=M!==1)||(g.kJ(),M=g.mE("web_autonav_allow_off_by_default")&&!g.WD(0,141)&&g.GR("AUTONAV_OFF_BY_DEFAULT")?!1:!g.WD(0,140)),this.isChecked=M);q_9(this)}; g.C.onClick=function(){this.isChecked=!this.isChecked;this.U.rS(this.isChecked?2:1);q_9(this);if(HWb(this)){var M=g.F(this.K3()).autoplaySwitchButtonRenderer;this.isChecked&&(M==null?0:M.onEnabledCommand)?this.U.T0("innertubeCommand",M.onEnabledCommand):!this.isChecked&&(M==null?0:M.onDisabledCommand)&&this.U.T0("innertubeCommand",M.onDisabledCommand)}this.U.logClick(this.element)}; g.C.getValue=function(){return this.isChecked}; g.C.K3=function(){return this.U.getVideoData(1)};g.U(mE0,fD);g.U(Dc,g.Gt);Dc.prototype.onClick=function(){this.enabled&&(EO(this,!this.checked),this.publish("select",this.checked))}; Dc.prototype.getValue=function(){return this.checked}; Dc.prototype.setEnabled=function(M){(this.enabled=M)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var cVD=["en-CA","en","es-MX","fr-CA"];g.U(oM,Dc);oM.prototype.Nu=function(M){M?this.K||(this.uI.Sc(this),this.K=!0):this.K&&(this.uI.M$(this),this.K=!1);this.K&&EO(this,P70())}; oM.prototype.C=function(){g.p5(this.element,"ytp-menuitem-highlight-transition-enabled")}; oM.prototype.j=function(M){var f=P70();M!==f&&(f=g.kJ(),XN(190,M),XN(192,!0),f.save(),this.U.T0("cinematicSettingsToggleChange",M))}; oM.prototype.u8=function(){this.K&&this.uI.M$(this);Dc.prototype.u8.call(this)};g.U(CD,fD);CD.prototype.updateCinematicSettings=function(M){this.K=M;var f;(f=this.menuItem)==null||f.Nu(M);this.api.publish("onCinematicSettingsVisibilityChange",M)};g.U(Bpb,fD);g.U(UO,fD);UO.prototype.setCreatorEndscreenVisibility=function(M){var f;(f=uf(this.api.kp()))==null||f.aE(M)}; UO.prototype.K=function(M){function f(Q){Q==="creatorendscreen"&&(Q=uf(A.api.kp()))&&Q.ak_(A.hideButton)} var A=this;this.hideButton=M;this.events.J(this.api,"modulecreated",f);f("creatorendscreen")};g.U(VL,Dc);VL.prototype.C=function(M){this.j(M?1:0)}; VL.prototype.Z=function(){var M=this.hasDrcAudioTrack(),f=this.K()===1&&M;EO(this,f);this.setEnabled(M)}; VL.prototype.u8=function(){this.uI.M$(this);Dc.prototype.u8.call(this)};g.U(aM,fD);aM.prototype.getDrcUserPreference=function(){return this.K}; aM.prototype.setDrcUserPreference=function(M){g.jA("yt-player-drc-pref",M,31536E3);M!==this.K&&(this.K=M,this.updateEnvironmentData(),this.Z()&&this.api.aZ())}; aM.prototype.updateEnvironmentData=function(){this.api.T().Yx=this.K===1}; aM.prototype.Z=function(){var M,f,A=(M=this.api.getVideoData())==null?void 0:(f=M.j)==null?void 0:f.K;if(!A)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var Q,N,Y=(Q=this.api.Sr())==null?void 0:(N=Q.qV)==null?void 0:N.id;return lW(A,function(I){var D;return I.audio.K&&((D=I.qV)==null?void 0:D.id)===Y})}return lW(A,function(I){var D; return((D=I.audio)==null?void 0:D.K)===!0})};g.U(qN,fD);qN.prototype.onVideoDataChange=function(){var M=this,f=this.api.getVideoData();this.api.GU("embargo",1);var A=f==null?void 0:f.QG.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(A==null?0:A.length)?xE0(this,A.filter(function(Q){return iW6(M,Q)})):(f==null?0:f.cueRanges)&&xE0(this,f.cueRanges.filter(function(Q){return iW6(M,Q)}))}; qN.prototype.Z=function(M){return M.embargo!==void 0}; qN.prototype.u8=function(){fD.prototype.u8.call(this);this.K={}};g.U(Hp,fD); Hp.prototype.addEmbedsConversionTrackingParams=function(M){var f=this.api.T(),A=f.widgetReferrer,Q=f.d2,N=this.K,Y="",I=f.getWebPlayerContextConfig();I&&(Y=I.embedsIframeOriginParam||"");A.length>0&&(M.embeds_widget_referrer=A);Q.length>0&&(M.embeds_referring_euri=Q);f.C&&Y.length>0&&(M.embeds_referring_origin=Y);I&&I.embedsFeature&&(M.feature=I.embedsFeature);N.length>0&&(f.V("embeds_web_enable_lite_experiment_control_arm_logging")?N.unshift(28572):g.SA(g.kI(f))&&N.unshift(159628),f=N.join(","),f= g.JI()?f:g.Q7(f,4),M.source_ve_path=f);this.K.length=0};g.U(ZW6,fD);g.U(rV0,fD);g.U(mS,g.y);mS.prototype.u8=function(){g.y.prototype.u8.call(this);this.K=null;this.Z&&this.Z.disconnect()};g.U(zyU,fD);g.U(sO,g.O);sO.prototype.show=function(){g.O.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; sO.prototype.stopTimer=function(){this.K&&(this.K.dispose(),this.K=null)}; sO.prototype.onVideoDataChange=function(M){var f,A,Q=(f=this.api.getVideoData())==null?void 0:(A=f.getPlayerResponse())==null?void 0:A.playabilityStatus;Q&&(f=PUb(Q),g.J(this.api.getPlayerStateObject(),128)||M==="dataloaderror"||!f?(this.Z=0,this.stopTimer(),this.hide()):(M=(f.remainingTimeSecs||0)*1E3,M>0&&(this.show(),this.updateValue("label",rp(f.label)),jBb(this,M))))}; sO.prototype.u8=function(){this.stopTimer();g.O.prototype.u8.call(this)};g.U($Eb,fD);g.U(cp,g.O);cp.prototype.onClick=function(){this.G0.logClick(this.element);this.G0.T0("onFullerscreenEduClicked")}; cp.prototype.Nu=function(){this.G0.isFullscreen()?this.K?this.fade.hide():this.fade.show():this.hide();this.G0.logVisibility(this.element,this.G0.isFullscreen()&&!this.K)};g.U(RM,fD);RM.prototype.updateFullerscreenEduButtonSubtleModeState=function(M){var f;(f=this.K)!=null&&(g.Sb(f.element,"ytp-fullerscreen-edu-button-subtle",M),M&&!f.Z&&(f.element.setAttribute("title","Scroll for details"),Bj(f.G0,f.element,f),f.Z=!0))}; RM.prototype.updateFullerscreenEduButtonVisibility=function(M){var f;(f=this.K)!=null&&(f.K=M,f.Nu())};g.U(FA0,g.O);g.U(eyt,fD);g.U(gm,fD);gm.prototype.getSphericalProperties=function(){var M=g.nv(this.api.kp());return M?M.getSphericalProperties():{}}; gm.prototype.setSphericalProperties=function(M){if(M){var f=g.nv(this.api.kp());f&&f.setSphericalProperties(M,!0)}};g.U(Bp,fD);g.C=Bp.prototype;g.C.createClientVe=function(M,f,A,Q){this.api.createClientVe(M,f,A,Q===void 0?!1:Q)}; g.C.createServerVe=function(M,f,A){this.api.createServerVe(M,f,A===void 0?!1:A)}; g.C.setTrackingParams=function(M,f){this.api.setTrackingParams(M,f)}; g.C.logClick=function(M,f){this.api.logClick(M,f)}; g.C.logVisibility=function(M,f,A){this.api.logVisibility(M,f,A)}; g.C.hasVe=function(M){return this.api.hasVe(M)}; g.C.destroyVe=function(M){this.api.destroyVe(M)};var kve=!1;xF.prototype.setPlaybackRate=function(M){this.playbackRate=Math.max(1,M)}; xF.prototype.getPlaybackRate=function(){return this.playbackRate};Pp.prototype.Yv=function(M){var f=g.Y$(M.info.K.info,this.c7.U$),A=M.info.Ur+this.C,Q=M.info.startTime*1E3;if(this.policy.Ji)try{Q=this.policy.Ji?g.SL(M)*1E3:M.info.startTime*1E3}catch(I){Math.random()>.99&&this.logger&&(Q=Rp(M.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:M.info.ZK(),encodedDataView:g.An(Q,4)})),Q=M.info.startTime*1E3}var N=M.info.clipId,Y=this.policy.Ji?g.XMb(M)*1E3:M.info.duration*1E3;this.policy.Ji&&(Q<0||Y<0)&&(this.logger&&(this.logger({missingSegInfo:M.info.ZK(), startTimeMs:Q,durationMs:Y}),this.policy.s5||(Q<0&&(Q=M.info.startTime*1E3),Y<0&&(Y=M.info.duration*1E3))),this.policy.s5&&(Q<0&&(Q=M.info.startTime*1E3),Y<0&&(Y=M.info.duration*1E3)));return{formatId:f,Ur:A,startTimeMs:Q,clipId:N,HW:Y}}; Pp.prototype.CZ=function(M){this.timestampOffset=M};nD.prototype.seek=function(M,f){M!==this.K&&(this.seekCount=0);this.K=M;var A=this.videoTrack.Z,Q=this.audioTrack.Z,N=this.audioTrack.yw,Y=Emd(this,this.videoTrack,M,this.videoTrack.yw,f);f=Emd(this,this.audioTrack,this.policy.T_?M:Y,N,f);M=Math.max(M,Y,f);this.N=!0;this.c7.isManifestless&&(NY9(this,this.videoTrack,A),NY9(this,this.audioTrack,Q));return M}; nD.prototype.isSeeking=function(){return this.N}; nD.prototype.Ba=function(M){this.j=M}; var Dj9=2/24;var pd0=0;g.C=XD.prototype;g.C.G1=function(){this.B=this.now();YNX(this.u7,this.B);this.jx.G1()}; g.C.IG=function(M,f){var A=this.policy.Z?(0,g.W)():0;J$(this,M,f);M-this.G<10&&this.Z>0||this.nH(M,f);this.jx.IG(M,f);this.policy.Z&&(M=(0,g.W)()-A,this.zt+=M,this.b8=Math.max(M,this.b8))}; g.C.nH=function(M,f){var A=(M-this.G)/1E3,Q=f-this.j;this.JI||(R3(this.u7,A,Q),this.v5(A,Q));this.G=M;this.j=f}; g.C.I_=function(){this.P7&&hFt(this);this.jx.I_()}; g.C.K_=function(M){this.P7||(this.P7=this.N-this.oE+M,this.MV=this.N,this.xp=this.W)}; g.C.Rr=function(M,f){M=M===void 0?this.W:M;f=f===void 0?this.N:f;this.Z>0||(this.X=M,this.Z=f,this.Er=this.isActive=!0)}; g.C.EY=function(){return this.mR||2}; g.C.BS=function(){}; g.C.C6=function(){var M,f={rn:this.requestNumber,rt:(this.W-this.K).toFixed(),lb:this.N,stall:(1E3*this.C).toFixed(),ht:(this.B-this.K).toFixed(),elt:(this.X-this.K).toFixed(),elb:this.Z,d:(M=this.z0)==null?void 0:M.Ky()};this.url&&bWX(f,this.url);this.policy.Z&&(f.mph=this.b8.toFixed(),f.tph=this.zt.toFixed());f.ulb=this.g_;f.ult=this.KJ;return f}; g.C.now=function(){return(0,g.W)()}; g.C.deactivate=function(){this.isActive&&(this.isActive=!1)};g.U(GF,XD);g.C=GF.prototype;g.C.C6=function(){var M=XD.prototype.C6.call(this);M.pb=this.HC;M.pt=(1E3*this.xO).toFixed();M.se=this.Yp;return M}; g.C.T$=function(){var M=this.jx;this.Ji||(this.Ji=M.T$?M.T$():1);return this.Ji}; g.C.zW=function(){return this.Yr?this.T$()!==1:!1}; g.C.bH=function(M,f,A){if(!this.wq){this.wq=!0;if(!this.JI){J$(this,M,f);this.nH(M,f);var Q=this.T$();this.Yp=A;if(!this.JI)if(Q===2){Q=M-this.X0)||wm(this,Q,f),this.Z>0&&sH(this.u7,f,this.C));M=(M-this.K)/ 1E3||.01;this.policy.X&&!(this.Z>0)||mh(this.u7,M,this.j,LwX(this),this.Uu)}this.deactivate()}}; g.C.gA=function(M,f,A){A&&(this.Ji=2);M<0&&this.mR&&(M=this.mR);f?this.YO+=M:this.ox+=M}; g.C.EY=function(){return this.ox||this.YO||XD.prototype.EY.call(this)}; g.C.nH=function(M,f){var A=(M-this.G)/1E3,Q=f-this.j,N=this.T$();this.isActive?N===1&&((Q>0||this.policy.N)&&(A>.2||Q<1024)?(this.C+=A,Q>0&&A>.2&&wm(this,this.M_?A:.05,Q),this.Qw=!0):Q>0&&(wm(this,A,Q),this.Qw=!0)):f&&f>=this.policy.K&&this.Rr(M,f);XD.prototype.nH.call(this,M,f)}; g.C.Wl=function(M){if(!this.JI){J$(this,M,this.N);var f=(M-this.K)/1E3;this.T$()!==2&&this.Z>0&&(this.C+=(M-this.G)/1E3,sH(this.u7,this.j,this.C));mh(this.u7,f,this.j,LwX(this),this.Uu,!0);M=(M-this.G)/1E3;R3(this.u7,M,0);this.v5(M,0)}}; g.C.Rr=function(M,f){M=M===void 0?this.W:M;f=f===void 0?this.N:f;if(!(this.Z>0)&&(XD.prototype.Rr.call(this,M,f),this.T$()===1)){f=(this.B-this.K)/1E3;var A=(M-this.B)/1E3;this.Yr&&lb(this,this.now());this.Z9||this.JI||(this.mR&&(A=Math.max(0,A-this.mR)),M=this.u7,M.X.Li(1,f),M.z0.Li(1,A))}}; g.C.S_=function(){this.Yr&&lb(this,this.now());return this.nJ}; g.C.TT=function(){var M;if(M=this.j>this.Tg)M=(M=this.j)?M>=this.policy.K:!1;return M}; g.C.jG=function(){return this.w_}; g.C.S8=function(M){M=M===void 0?this.now():M;if(this.Yr){lb(this,M);if(this.Ji?this.zW():this.jk!==this.fJ){var f=this.fJ;if(M0?A+M:A+Math.max(M,f)}; g.C.bV=function(){return this.now()-this.X}; g.C.Hm=function(){return(this.j-this.Z)*1E3/this.bV()||0}; g.C.Ax=function(){return this.X};Mv.prototype.feed=function(M){qx(this.K,M);this.Ah()}; Mv.prototype.Ah=function(){if(this.C){if(!this.K.getLength())return;var M=this.K.split(this.j-this.Z),f=M.Gc;M=M.xr;if(!this.jx.K_(this.C,f,this.Z,this.j))return;this.Z+=f.getLength();this.K=M;this.Z===this.j&&(this.C=this.j=this.Z=void 0)}for(;;){var A=0;M=g.V(V2d(this.K,A));f=M.next().value;A=M.next().value;A=g.V(V2d(this.K,A));M=A.next().value;A=A.next().value;if(f<0||M<0)break;if(!this.K.oD(A,M)){if(!this.jx.K_||!this.K.oD(A,1))break;A=this.K.split(A).xr;this.jx.K_(f,A,0,M)&&(this.C=f,this.Z= A.getLength(),this.j=M,this.K=new ap([]));break}M=this.K.split(A).xr.split(M);A=M.xr;this.jx.XF(f,M.Gc);this.K=A}}; Mv.prototype.dispose=function(){this.K=new ap};g.C=f3.prototype;g.C.hq=function(){return 0}; g.C.xL=function(){return null}; g.C.Ka=function(){return null}; g.C.DF=function(){return this.state>=1}; g.C.isComplete=function(){return this.state>=3}; g.C.O6=function(){return this.state===5}; g.C.onStateChange=function(){}; g.C.Rt=function(M){var f=this.state;this.state=M;this.onStateChange(f);this.callback&&this.callback(this,f)}; g.C.WY=function(M){M&&this.state=this.xhr.HEADERS_RECEIVED}; g.C.getResponseHeader=function(M){try{return this.xhr.getResponseHeader(M)}catch(f){return""}}; g.C.Na=function(){return+this.getResponseHeader("content-length")}; g.C.gD=function(){return this.Z}; g.C.T3=function(){return this.status>=200&&this.status<300&&!!this.Z}; g.C.WB=function(){return this.K.getLength()>0}; g.C.Ku=function(){var M=this.K;this.K=new ap;return M}; g.C.Aj=function(){return this.K}; g.C.abort=function(){this.ek=!0;this.xhr.abort()}; g.C.sA=function(){return!0}; g.C.W6=function(){return this.j}; g.C.HP=function(){return""};Nv.prototype.r5=function(M,f){f=f===void 0?1:f;this.f8+=f;this.Z+=M;M/=f;for(var A=0;A0)Q+="."+Qz[N].toFixed(0)+"_"+A.K[N].toFixed(0);else break;A=Q}A&&(M[f]=A)}this.K=new qUd;return M}; g.C.toString=function(){return""};g.C=RFe.prototype;g.C.isActive=function(){return!1}; g.C.Y3=function(){}; g.C.Qk=function(){}; g.C.M7=function(){}; g.C.PC=function(){}; g.C.ij=function(M,f){f()}; g.C.h1=function(){return{}}; g.C.toString=function(){return""};var Eb,ucR,zU0,Pjw,na9,tN,sM,IN,F7c;Eb=new RFe;ucR=!!+wB("html5_enable_profiler");zU0=!!+wB("html5_onesie_enable_profiler");Pjw=!!+wB("html5_offline_encryption_enable_profiler");na9=!!+wB("html5_performance_impact_profiling_timer_ms");tN=ucR||zU0||Pjw||na9?new mjb:Eb;g.zJ=ucR?tN:Eb;sM=zU0?tN:Eb;IN=Pjw?tN:Eb;F7c=na9?tN:Eb;g.C=iyc.prototype;g.C.getResponseHeader=function(M){return M==="content-type"?this.K.get("type"):""}; g.C.abort=function(){}; g.C.Xf=function(){return!0}; g.C.Na=function(){return this.range.length}; g.C.gD=function(){return this.loaded}; g.C.T3=function(){return!!this.loaded}; g.C.WB=function(){return!!this.Z.getLength()}; g.C.Ku=function(){var M=this.Z;this.Z=new ap;return M}; g.C.Aj=function(){return this.Z}; g.C.sA=function(){return!0}; g.C.W6=function(){return!!this.error}; g.C.HP=function(){return this.error};g.C=Zy6.prototype;g.C.start=function(M){var f={credentials:"include",cache:"no-store"};Object.assign(f,this.W);this.C&&(f.signal=this.C.signal);M=new Request(M,f);fetch(M).then(this.B,this.onError).then(void 0,pH)}; g.C.onDone=function(){this.ek()||this.jx.I_()}; g.C.getResponseHeader=function(M){return this.responseHeaders?this.responseHeaders.get(M):null}; g.C.Xf=function(){return!!this.responseHeaders}; g.C.gD=function(){return this.Z}; g.C.Na=function(){return+this.getResponseHeader("content-length")}; g.C.T3=function(){return this.status>=200&&this.status<300&&!!this.Z}; g.C.WB=function(){return!!this.K.getLength()}; g.C.Ku=function(){this.WB();var M=this.K;this.K=new ap;return M}; g.C.Aj=function(){this.WB();return this.K}; g.C.ek=function(){return this.N}; g.C.abort=function(){this.j&&this.j.cancel().catch(function(){}); this.C&&this.C.abort();this.N=!0}; g.C.sA=function(){return!0}; g.C.W6=function(){return this.G}; g.C.HP=function(){return this.errorMessage};g.C=rrX.prototype;g.C.onDone=function(){if(!this.ek){this.status=this.xhr.status;try{this.response=this.xhr.response,this.Z=this.response.byteLength}catch(M){}this.K=!0;this.jx.I_()}}; g.C.Yi=function(){this.xhr.readyState===2&&this.jx.G1()}; g.C.wf=function(M){this.ek||(this.status=this.xhr.status,this.K||(this.Z=M.loaded),this.jx.IG((0,g.W)(),M.loaded))}; g.C.Xf=function(){return this.xhr.readyState>=2}; g.C.getResponseHeader=function(M){try{return this.xhr.getResponseHeader(M)}catch(f){return g.$b(Error("Could not read XHR header "+M)),""}}; g.C.Na=function(){return+this.getResponseHeader("content-length")}; g.C.gD=function(){return this.Z}; g.C.T3=function(){return this.status>=200&&this.status<300&&this.K&&!!this.Z}; g.C.WB=function(){return this.K&&!!this.response&&!!this.response.byteLength}; g.C.Ku=function(){this.WB();var M=this.response;this.response=void 0;return new ap([new Uint8Array(M)])}; g.C.Aj=function(){this.WB();return new ap([new Uint8Array(this.response)])}; g.C.abort=function(){this.ek=!0;this.xhr.abort()}; g.C.sA=function(){return!1}; g.C.W6=function(){return!1}; g.C.HP=function(){return""};g.U(DE,g.y);DE.prototype.F8=function(){if(!this.a5.length)return[];var M=this.a5;this.a5=[];this.j=g.Sw(M).info;return M}; DE.prototype.eZ=function(){return this.a5}; DE.prototype.u8=function(){g.y.prototype.u8.call(this);this.K=null;this.a5.length=0;this.r_.length=0;this.j=null};g.U(tX,g.y);g.C=tX.prototype; g.C.UX7=function(){if(!this.ek()){var M=(0,g.W)(),f=!1;if(this.policy.QK){M=M-(this.timing.Z>0?this.timing.X:this.timing.K)-this.timing.EY()*1E3;var A=xO(vS(this),!1);M>=2E3*A?f=!0:M>=this.policy.XA*A&&(this.K=this.policy.xP)}else if(this.timing.Z>0){if(this.N){this.policy.oE&&(this.K=0);return}var Q=this.timing.jG();this.timing.S8();var N=this.timing.jG();N-Q>=this.policy.Wy*.8?(this.K++,this.logger.debug(function(){return"Mispredicted by "+(N-Q).toFixed(0)}),f=this.K>=5):this.K=0}else{var Y=M-this.timing.S_(); this.policy.xP&&Y>0&&(this.K+=1);f=xO(vS(this),!1)*this.policy.cA;(f=Y>f*1E3)&&this.logger.debug(function(){return"Elbow late by "+Y.toFixed(3)})}this.K>0&&this.jx.Ry(); f?this.KH():this.Z.start()}}; g.C.KH=function(){this.C=!0;this.jx.Rd();this.lastError="net.timeout";hX(this)}; g.C.canRetry=function(M){var f=vS(this);M=M?this.policy.Xe:this.policy.lr;return f.timedOut0&&(f=f.K.getUint8(0),M.ubyte=f,A===1&&f===0&&(M.b248180278=!0))}this.R9&&(M.rc=this.policy.tC?this.R9:this.R9.toString());this.policy.d2&&this.eg&&(M.tr=this.eg);M.itag=this.info.r_[0].K.info.itag;M.ml=""+ +this.info.r_[0].K.eP();M.sq=""+this.info.r_[0].Ur;this.C3&&(M.ifi=""+ +$m(this.info.HX.Z));this.R9!==410&&this.R9!==500&&this.R9!==503||(M.fmt_unav="true");var Q;(A=this.errorMessage||((Q=this.xhr)==null? void 0:Q.HP()))&&(M.msg=A);this.g$&&(M.smb="1");this.info.isDecorated()&&(M.sdai="1");return M}; g.C.Db=function(){return ome(this.timing)}; g.C.HP=function(){return this.xhr.HP()||""}; g.C.TT=function(){return this.isComplete()||this.timing.TT()}; g.C.IG=function(){!this.ek()&&this.xhr&&(this.R9=this.xhr.status,this.policy.K6&&this.SP&&this.nI(!1),this.O5()?this.WY(2):!this.rr&&this.TT()&&(this.WY(),this.rr=!0))}; g.C.G1=function(){if(!this.ek()&&this.xhr){if(!this.De&&this.xhr.Xf()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var M=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.De=((0,g.W)()-M)/1E3}this.xhr.Xf()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.NP&&!KLX()&&g.jA("yt-player-headers-readable",!0,2592E3);M=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var f=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),A;(A=this.ib)==null||A.stop();this.dR=M||this.dR; this.mx=f||this.mx}}; g.C.I_=function(){var M=this.xhr;if(!this.ek()&&M){this.R9=M.status;M=this.Yo(M);if(this.policy.d2){var f;(f=this.ib)==null||f.stop()}M===5?hX(this.Pv):this.Rt(M);this.Pv.Z.stop()}}; g.C.Yo=function(M){var f=this;p4b(this);if(Sn(this.Pv,this.xhr.status,this.f1?this.timing.Er||this.Xq:this.xhr.T3(),!1,this.le))return 5;var A="";L3(this.Pv,this.xhr)&&(A=$jX(this.Pv,this.xhr));if(A)return iA(vS(this.Pv)),this.info.Uv(this.C3,A),3;A=M.gD();if(this.s6){this.nI(!0);p4b(this);if(Sn(this.Pv,this.xhr.status,this.timing.Er||this.Xq,!1,this.le))return 5;if(!this.XS){if(this.Xq)return iA(vS(this.Pv)),3;this.Pv.lastError="net.closed";return 5}}else{if(Sn(this.Pv,this.xhr.status,this.xhr.T3(), !1,this.le))return 5;var Q=this.info.j;if(Q&&Q!==A||M.W6())return this.Pv.lastError="net.closed",5;this.nI(!0)}Q=aQ6(this)?M.getResponseHeader("X-Bandwidth-Est"):0;if(M=aQ6(this)?M.getResponseHeader("X-Bandwidth-Est3"):0)this.Nn=!0,this.policy.VG&&(Q=M);nmT(this.Pv,A,Q?Number(Q):0,this.info.r_[0].type===5);this.logger.debug(function(){var N=f.timing;return"Succeeded, rtpd="+(N.xO*1E3+N.K-Date.now()).toFixed(0)}); return 4}; g.C.canRetry=function(){this.ek();var M=this.info.isDecorated();return this.Pv.canRetry(M)}; g.C.onStateChange=function(){this.isComplete()&&(this.policy.eC?this.Rd():this.timing.deactivate())}; g.C.KH=function(){this.Pv.KH()}; g.C.Ry=function(){this.callback&&this.callback(this,this.state)}; g.C.Nj=function(){return this.Pv.Nj()}; g.C.dispose=function(){f3.prototype.dispose.call(this);this.Pv.dispose();var M;(M=this.ib)==null||M.dispose();this.policy.eC||this.Rd()}; g.C.Rd=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.C.F8=function(){if(!this.eZ().length)return[];this.Mg=!0;return this.SP.F8()}; g.C.O5=function(){if(this.state<1)return!1;if(this.SP&&this.SP.a5.length)return!0;var M;return((M=this.xhr)==null?0:M.WB())?!0:!1}; g.C.eZ=function(){this.nI(!1);return this.SP?this.SP.eZ():[]}; g.C.nI=function(M){try{if(M||this.xhr.Xf()&&this.xhr.WB()&&!L3(this.Pv,this.xhr)&&!this.lN)this.SP||(this.SP=new DE(this.policy,this.info.r_)),this.xhr.WB()&&(this.s6?this.s6.feed(this.xhr.Ku()):EK(this.SP,this.xhr.Ku(),M&&!this.xhr.WB()))}catch(f){this.s6?EOT(this,f):g.$b(f)}}; g.C.XF=function(M,f){switch(M){case 21:M=f.split(1).xr;t$z(this,M);break;case 22:this.XS=!0;EK(this.SP,new ap([]),!0);break;case 43:if(M=yR(new zj(f),1))this.info.Uv(this.C3,M),this.Xq=!0;break;case 45:f=hr(new zj(f));M=f.OV;f=f.va;M&&f&&(this.QW=M/f);break;case 44:this.pD=KcT(new zj(f));var A,Q,N;!this.timing.Er&&((A=this.pD)==null?void 0:A.action)===4&&((Q=this.pD)==null?0:(N=Q.Up)==null?0:N.f1)&&(this.f1=this.pD.Up.f1);break;case 53:this.policy.d2&&(M=OhD(new zj(f)).z8)&&(this.ib||(this.z8=M,this.ib= new g.MY(this.jo,M,this)),this.ib.start());break;case 60:this.f2=py(new zj(f));break;case 58:if(M=sCT(new zj(f)))this.XK=M,M.XK===3&&(this.le=!0)}}; g.C.K_=function(M,f,A,Q){A||this.timing.K_(Q);if(M!==21)return!1;if(M=this.policy.K6)if(Q=f.getLength()+A===Q,M*=this.info.r_[0].K.info.DB,!Q&&f.getLength()0)return!1;if(!this.xhr.Xf())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.s6)var M=!this.info.j;else this.xhr.Na()?M=!1:(M=this.xhr.getResponseHeader("content-type"),M=M==="audio/mp4"||M==="video/mp4"||M==="video/webm");if(!M)return!1;if(isNaN(this.info.zP)){M=this.xhr.getResponseHeader("x-head-seqnum");var f=this.timing.policy.W?1:0;if(!M)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(M)>this.info.r_[0].Ur+f)return!1}return!0}; g.C.Sa=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.C.xL=function(){this.xhr&&(this.dR=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.dR}; g.C.Ka=function(){this.xhr&&(this.mx=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.mx}; g.C.Jg=function(){return this.Pv.Jg()}; g.C.jo=function(){if(!this.ek()&&this.xhr){this.eg="heartbeat";var M=this.Pv;M.K+=2;this.Ry()}};g.U(sK,XD);g.C=sK.prototype;g.C.nH=function(M,f){var A=(M-this.G)/1E3,Q=f-this.j;this.Z>0?Q>0&&(this.jk&&(A>.2||Q<1024?(this.C+=A,A>.2&&hvD(this,.05,Q)):hvD(this,A,Q)),this.fJ&&(this.nJ+=Q,this.ox+=A)):f>this.policy.K&&this.Rr(M,f);XD.prototype.nH.call(this,M,f)}; g.C.bH=function(M,f){J$(this,M,f);this.nH(M,f);this.jk&&(f=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.Z>0&&sH(this.u7,this.nJ,this.C),M=(M-this.K)/1E3||.01,this.policy.X&&!(this.Z>0)||mh(this.u7,M,this.j,f,!1))}; g.C.Wl=function(M){J$(this,M,this.N);var f=(M-this.G)/1E3;R3(this.u7,f,0);this.v5(f,0);!this.jk&&this.Z>0||(f=this.j*this.snapshot.stall+this.j/this.snapshot.byterate,this.Z>0&&(this.C+=(M-this.G)/1E3,sH(this.u7,this.nJ,this.C)),mh(this.u7,((M-this.K)/1E3||.01)*this.policy.Er,this.j,f,!1,!0))}; g.C.AN=function(M){M=M.Sj||2147483647;(M&2)!==2&&(this.fJ=!1);(M&1)===1&&(this.jk=!0)}; g.C.u6=function(M){M=M.Sj||2147483647;(M&2)===2&&(this.fJ=!1);(M&1)===1&&(this.jk=!1)}; g.C.Ax=function(){return this.X}; g.C.bV=function(){var M=this.fJ?this.now()-this.G:0;return Math.max(this.ox*1E3+M,1)}; g.C.Hm=function(){return this.nJ*1E3/this.bV()}; g.C.Rr=function(M,f){M=M===void 0?this.W:M;f=f===void 0?this.N:f;this.Z>0||(XD.prototype.Rr.call(this,M,f),f=this.u7,M=(M-this.B)/1E3,f.X.Li(1,(this.B-this.K)/1E3),f.z0.Li(1,M))}; g.C.BS=function(M){this.YO=M}; g.C.C6=function(){var M=XD.prototype.C6.call(this);M.rbw=this.Hm();M.rbe=+this.fJ;M.gbe=+this.jk;M.ackt=(this.YO-this.K).toFixed();return M}; g.C.S8=function(){}; g.C.jG=function(){return NaN}; g.C.S_=function(){return this.K+this.snapshot.delay*1E3};cS.prototype.XF=function(M,f){f.getLength();switch(M){case 20:M=new zj(f);M={rU:jT(M,1),videoId:yR(M,2),itag:jT(M,3),lmt:jT(M,4),xtags:yR(M,5),SJ:jT(M,6),FP:$u(M,8),HQ:jT(M,9),M4$:jT(M,10),startMs:jT(M,11),durationMs:jT(M,12),UW:jT(M,14),timeRange:d3(M,15,DSc),LK:jT(M,16),Ox:jT(M,17),clipId:yR(M,1E3)};this.UP(M);break;case 21:this.fp(f,!1);break;case 22:this.A8(f);break;case 31:M=ku(f,$Sf);this.AF(M);break;case 52:M=ku(f,Xl0);this.Mr(M);break;default:this.uB(M,f)}}; cS.prototype.UP=function(){}; cS.prototype.uB=function(){};g.U(RN,cS);g.C=RN.prototype; g.C.uB=function(M,f){f.getLength();switch(M){case 35:this.fF(f);break;case 44:this.PO(f);break;case 43:this.Vp(f);break;case 53:this.Gg(f);break;case 55:M=new zj(f);d3(M,1,wle);d3(M,2,fZz);break;case 56:this.HO();break;case 57:this.Vz(f);break;case 42:this.HJ(f);break;case 45:this.UI(f);break;case 59:this.CO(f);break;case 51:this.pO(f);break;case 49:this.AN(f);break;case 50:this.u6(f);break;case 47:this.zA(f);break;case 58:this.nf(f);break;case 61:this.jx.Bv.BS((0,g.W)());break;case 66:this.Zi(f); break;case 46:this.jZ(f);break;case 67:this.onSnackbarMessage(f)}}; g.C.pO=function(M){M=new zj(M);M={V1k:bp(M,1,tr),qWk:bp(M,2,tr)};this.jx.pO(M)}; g.C.CO=function(M){var f=new zj(M);M=eT(f,1);var A=eT(f,2);f=eT(f,3);this.jx.CO(M,A,f)}; g.C.UI=function(M){M=hr(new zj(M));this.jx.UI(M)}; g.C.zA=function(M){M=ku(M,dSb);this.jx.zA(M)}; g.C.HJ=function(M){M=new zj(M);M={videoId:yR(M,1),formatId:d3(M,2,tr),endTimeMs:jT(M,3),xpr:jT(M,4),mimeType:yR(M,5),k6:d3(M,6,rfd),indexRange:d3(M,7,rfd),Oa:d3(M,8,uYd)};this.jx.HJ(M)}; g.C.Vz=function(M){M=fZz(new zj(M));this.jx.Vz(M)}; g.C.HO=function(){this.jx.HO()}; g.C.fF=function(M){M=Fcz(new zj(M));this.jx.fF(M)}; g.C.Gg=function(M){M=OhD(new zj(M));this.jx.Gg(M)}; g.C.PO=function(M){M=KcT(new zj(M));this.jx.PO(M)}; g.C.Vp=function(M){M={redirectUrl:yR(new zj(M),1)};this.jx.Vp(M)}; g.C.fp=function(M){var f=M.getUint8(0);if(M.getLength()!==1){M=M.split(1).xr;var A=this.Z[f]||null;A&&uY(this.jx.Ew,f,A,M)}}; g.C.A8=function(M){M=M.getUint8(0);var f=this.Z[M]||null;f&&this.jx.A8(M,f)}; g.C.Mr=function(M){this.jx.Mr(M)}; g.C.UP=function(M){var f=M.rU,A=M.FP,Q=M.SJ,N=M.Ox,Y=M.LK,I=M.HQ,D=M.startMs,E=M.durationMs,t=M.timeRange,v=M.UW,p=M.clipId,h=j$(M);M=hUm.has(Jk[""+M.itag]);this.Z[f]=h;this.jx.gA(h,M,{rU:f,FP:!!A,SJ:Q!=null?Q:-1,HQ:I!=null?I:-1,startMs:D!=null?D:-1,durationMs:E!=null?E:-1,UW:v,Ox:N,LK:Y,clipId:p,timeRange:t})}; g.C.AN=function(M){M={Sj:jT(new zj(M),1)};this.jx.AN(M)}; g.C.u6=function(M){M={Sj:jT(new zj(M),1)};this.jx.u6(M)}; g.C.AF=function(M){this.jx.AF(M)}; g.C.nf=function(M){M=sCT(new zj(M));this.jx.nf(M)}; g.C.Zi=function(M){M={IR:d3(new zj(M),1,k1b)};this.jx.Zi(M)}; g.C.onSnackbarMessage=function(M){M=jT(new zj(M),1);this.jx.onSnackbarMessage(M)}; g.C.jZ=function(M){M={reloadPlaybackParams:d3(new zj(M),1,mSc)};this.jx.jZ(M)};g.U(gH,g.y);g.C=gH.prototype;g.C.c8=function(){return Array.from(this.mL.keys())}; g.C.qz=function(M){M=this.mL.get(M);var f=M.a5;M.TY+=f.getLength();M.a5=new ap;return f}; g.C.xZ=function(M){return this.mL.get(M).xZ}; g.C.ON=function(M){return this.mL.get(M).ON}; g.C.gA=function(M,f,A,Q){this.mL.get(M)||Uet(this,M,f);f=this.mL.get(M);if(this.c7){M=aGU(this,M,A);if(Q)for(var N=g.V(M),Y=N.next();!Y.done;Y=N.next()){Y=Y.value;var I=Q;Y.KJ=I;Y.startTime+=I;Y.C+=I;Y.G+=I}V$t(this,A.rU,f,M)}else A.FP?f.uv=A.UW:f.hS.push(A),f.Ye.push(A)}; g.C.b4=function(M){var f;return((f=this.mL.get(M))==null?void 0:f.r_)||[]}; g.C.WY=function(){for(var M=g.V(this.mL.values()),f=M.next();!f.done;f=M.next())f=f.value,f.IJ&&(f.wf&&f.wf(),f.IJ=!1)}; g.C.A8=function(M,f){this.logger.debug(function(){return"[onMediaEnd] formatId: "+f}); var A=this.mL.get(f);if(BS){if(A&&!A.xZ){if(A.vU.get(M))A.vU.get(M).J6=!0;else{var Q;((Q=this.II)==null?0:Q.MV)&&A.vU.set(M,{data:new ap,sM:0,J6:!0})}A.ON=!0}}else A&&!A.ON&&(A.ON=!0)}; g.C.F8=function(M){if(BS){var f=this.mL.get(M);if(f)for(var A=g.V(f.vU),Q=A.next();!Q.done;Q=A.next()){var N=g.V(Q.value);Q=N.next().value;N=N.next().value;var Y=f.Ss.get(Q);if(kO(Y[0])){if(!N.J6)continue;var I=Y,D=N.data;D.getLength();Y=0;var E=[];I=g.V(I);for(var t=I.next();!t.done;t=I.next()){t=t.value;var v=t.j,p=H7(D,Y,v);Y+=v;E.push(new pq(t,p))}f.Pp.push.apply(f.Pp,g.c(E))}else if(N.data.getLength()>0||!Y[0].range&&N.J6)D=void 0,Y=Y[0],E=N.sM,I=N.data,Y.range||(D=N.J6),t=I.getLength(),D=new pq(qsN(Y, Y.Z+E,t,D),I),N.sM+=D.info.j,f.Pp.push(D);f.vU.get(Q).data=new ap;N.J6&&f.vU.delete(Q)}M=this.mL.get(M);if(!M)return[];f=M.Pp;M.Pp=[];A=g.V(f);for(Q=A.next();!Q.done;Q=A.next())M.TY+=Q.value.info.j;return f||[]}A=(f=this.mL.get(M))==null?void 0:f.SP;if(!A)return[];this.nI(M,A);return A.F8()}; g.C.O5=function(M){if(BS)return rH(this,M);var f,A,Q;return!!((A=(f=this.mL.get(M))==null?void 0:f.SP)==null?0:(Q=A.eZ())==null?0:Q.length)||rH(this,M)}; g.C.nI=function(M,f){for(;rH(this,M);){var A=this.qz(M);var Q=M;Q=this.mL.get(Q).xZ&&!ZE(this,Q);EK(f,A,Q&&CAz(this,M))}}; g.C.u8=function(){g.y.prototype.u8.call(this);for(var M=g.V(this.mL.keys()),f=M.next();!f.done;f=M.next())iY(this,f.value);var A;if((A=this.II)==null?0:A.Z_)for(M=g.V(this.mL.values()),f=M.next();!f.done;f=M.next())f=f.value,f.vU.clear(),f.Ss.clear(),f.Pp.length=0,f.r_.length=0,f.Ye.length=0,f.hS.length=0;this.mL.clear()}; var BS=!1;g.U(zr,g.y);g.C=zr.prototype;g.C.IG=function(){!this.ek()&&this.xhr&&(this.nI(!1),kt(this.jx,this))}; g.C.G1=function(){}; g.C.I_=function(){if(!this.ek()&&this.xhr){var M=this.Yo();M===5?hX(this.Pv):this.Rt(M);this.Pv.Z.stop();var f;(f=this.hN)==null||f.stop()}}; g.C.Yo=function(){var M="";L3(this.Pv,this.xhr)&&(M=$jX(this.Pv,this.xhr));if(M)return this.info.HX.Uv(this.C3,M),3;this.nI(!0);if(Sn(this.Pv,this.xhr.status,this.xhr.T3(),this.info.TJ(),this.le))return 5;if(this.gI)return 3;nmT(this.Pv,this.xhr.gD(),0,this.TJ());this.policy.Yp&&put(this.jx);return 4}; g.C.nI=function(M){var f=this.xhr;if((M||!L3(this.Pv,this.xhr))&&f.WB()){M=f.Ku();var A=M.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+A}); this.s6.feed(M)}}; g.C.XF=function(M,f){this.xhr.sA()&&M===21&&cxe(this);this.eB.XF(M,f)}; g.C.K_=function(M,f,A,Q){A||(this.Bv.K_(Q),this.policy.CM&&M===21&&cxe(this));if(M!==21)return!1;this.Bv.Er=!0;M=f.getLength();A||(this.Zq=f.getUint8(0),f=f.split(1).xr);var N=this.policy.Vy,Y=this.eB.Z[this.Zq],I=this.c7.j.get(Y);if(N&&I&&(N*=I.info.DB,M+A!==Q&&M0){this.policy.QK&&this.Pv.Z.stop();M=this.Bv.bV();f=this.Bv.Hm();var A=RvX(this,M);if(!(f>A.Ux||A.TW>0&&this.info.F1()>A.TW)){this.fz=(0,g.W)();var Q;(Q=this.hN)==null||Q.stop();this.policy.Yp&&(Q=this.jx,M={s1:Math.round(f*M/1E3),k5:M},Q.policy.Yp&&(Q.z0=M,Q.qT++));this.KH()}}}}; g.C.KH=function(){this.Pv.KH()}; g.C.PO=function(M){this.jx.PO(M,this.JY())}; g.C.Vp=function(M){this.gI=!0;this.info.HX.Uv(this.C3,M.redirectUrl)}; g.C.AN=function(M){this.Bv instanceof sK&&this.Bv.AN(M)}; g.C.u6=function(M){this.Bv instanceof sK&&this.Bv.u6(M)}; g.C.HJ=function(M){var f=M.formatId,A=j$({itag:f.itag,lmt:f.lmt,xtags:f.xtags}),Q,N,Y=new Fs(((Q=M.k6)==null?void 0:Q.first)||0,((N=M.k6)==null?void 0:N.GS)||0),I,D;Q=new Fs(((I=M.indexRange)==null?void 0:I.first)||0,((D=M.indexRange)==null?void 0:D.GS)||0);this.c7.j.get(A)||(A=M.Oa||{},A.mimeType=M.mimeType,A.itag=f.itag,A.lastModified=""+(f.lmt||0),A.xtags=f.xtags,M=this.c7,f=rc(""),A=xB(A,null),m8(M,new an(f,A,Y,Q)))}; g.C.UI=function(M){this.jx.UI(M)}; g.C.onSnackbarMessage=function(M){if(this.policy.ys)this.jx.onSnackbarMessage(M)}; g.C.AF=function(M){this.sE=M;this.FD=(0,g.W)();this.jx.AF(M)}; g.C.CO=function(M,f,A){this.jx.CO(M,f,A)}; g.C.Vz=function(M){M.scope===2&&(this.Wa=M);this.jx.Vz(M)}; g.C.HO=function(){this.oA=!0;this.jx.HO()}; g.C.pO=function(M){this.policy.jC&&this.jx.pO(M)}; g.C.zA=function(M){this.jx.zA(M,this.JY())}; g.C.nf=function(M){M.XK===3&&(this.le=!0);this.jx.nf(M)}; g.C.Zi=function(M){this.jx.Zi(M)}; g.C.jZ=function(M){this.jx.jZ(M)}; g.C.canRetry=function(){this.ek();return this.Pv.canRetry(!1)}; g.C.dispose=function(){if(!this.ek()){g.y.prototype.dispose.call(this);this.Pv.dispose();var M;(M=this.hN)==null||M.dispose();this.Rt(-1);this.Rd()}}; g.C.Rt=function(M){this.state=M;kt(this.jx,this)}; g.C.TJ=function(){return this.info.TJ()}; g.C.ej=function(){return this.oA}; g.C.zn=function(){return this.Wa}; g.C.gA=function(M,f,A){A.clipId&&(this.clipId=A.clipId);this.policy.j&&!f&&(this.Lh=A.HQ);this.Ew.gA(M,f,A,0);if(this.policy.B_&&this.sE&&this.Bv instanceof GF){var Q=this.sE.sD;this.Bv.gA(A.durationMs/1E3,f,Q>0&&A.HQ+1>=Q)}this.Ew.mL.get(M).mB=!0}; g.C.A8=function(M,f){this.Ew.A8(M,f)}; g.C.Mr=function(M){this.requestIdentifier=M}; g.C.F8=function(M){return this.Ew.F8(M)}; g.C.b4=function(M){return this.Ew.b4(M)}; g.C.O5=function(M){return this.Ew.O5(M)}; g.C.c8=function(){return this.Ew.c8()}; g.C.T$=function(){return 1}; g.C.JY=function(){return this.Bv.requestNumber}; g.C.Cj=function(){return this.requestIdentifier}; g.C.mf=function(){return this.C3.mf()}; g.C.W4=function(){this.Rd()}; g.C.Rd=function(){this.Bv.deactivate();var M;(M=this.xhr)==null||M.abort()}; g.C.isComplete=function(){return this.state>=3}; g.C.mW=function(){return this.state===3}; g.C.O6=function(){return this.state===5}; g.C.ol=function(){return this.state===4}; g.C.La=function(){return this.isComplete()}; g.C.DF=function(){return this.state>=1}; g.C.Nj=function(){return this.policy.oE?this.Pv.Nj():0}; g.C.Ry=function(){this.policy.oE&&kt(this.jx,this)}; g.C.Un=function(){return Jab(this.info)}; g.C.Jg=function(){return this.Pv.Jg()}; g.C.l4=function(){var M=FwN(this.Pv);Object.assign(M,GGd(this.info));M.req="sabr";M.rn=this.JY();var f;if((f=this.xhr)==null?0:f.status)M.rc=this.policy.tC?this.xhr.status:this.xhr.status.toString();var A;(f=(A=this.xhr)==null?void 0:A.HP())&&(M.msg=f);this.fz&&(A=RvX(this,this.fz-this.Bv.Ax()),M.letm=A.YK,M.mrbps=A.Ux,M.mram=A.TW);return M};gOf.prototype.tick=function(M,f){this.ticks[M]=f?window.performance.timing.navigationStart+f:(0,g.W)()};g.U(n3,g.pi);g.C=n3.prototype; g.C.DC=function(M,f,A,Q){if(this.policy.Qr&&this.policy.j){var N=M.uU||null;N?(evb(this,M.Ur,dH(this,M.startTime,M.Ur),{uU:N,Ur:M.Ur,Th:!!f,Tj:A},this.j),Q&&this.j&&this.j.yB(M.Ur,M.startTime,this.Z,(f==null?void 0:f.K)||[],(f==null?void 0:f.Z)||[],(f==null?void 0:f.j)||[],A,(f==null?void 0:f.WV)||0,(f==null?void 0:f.C)||void 0)):this.Z===1&&$f(this,5,"noad")}else{var Y=!1;this.policy.j&&(Y=A?this.P7===M.Ur:this.jk===M.Ur);if(this.j&&Q&&!Y){Q=[];Y=[];var I=[],D=void 0,E=0;f&&(Q=f.K,Y=f.Z,I=f.j,D= f.C,E=f.WV,this.ZB("sdai",{sq:M.Ur,ssvicpns:Q.join("."),ssvid:Y.join(".")}));this.policy.j&&(A?this.P7=M.Ur:this.jk=M.Ur);this.j.yB(M.Ur,M.startTime,this.Z,Q,Y,I,A,E,D)}this.policy.j?A&&(this.Z===1&&$f(this,5,"noad"),M.Ur!==((N=this.K)==null?void 0:N.Ur)&&(FM0(this,M,f,A),isNaN(M.startTime)||yxT(this,M.Ur,dH(this,M.startTime,M.Ur),!!f,this.j))):A&&FM0(this,M,f)}}; g.C.gK=function(M,f,A){var Q=this.videoTrack.K.index.YC()<=f;this.K={uU:M,Ur:f,Th:A};Q&&jn(this,M,f)}; g.C.nM=function(){this.j&&this.j.nM()}; g.C.ZB=function(M,f,A){(M!=="sdai"||this.policy.Hq||(A===void 0?0:A))&&this.loader.ZB(M,f)}; g.C.hC=function(M,f){var A=this.videoTrack.K.index.IY(M);if(A>=0){var Q;var N=((Q=f.Od.WC(A,2))==null?void 0:Q.jD)||"";if(this.policy.j||N)return f.bb(M,A),FI(this.loader,M,M,A),this.ZB("sdai",{cmskpad:1,t:M.toFixed(3),sq:A}),!0}this.ZB("sdai",{cmskpad:0,t:M.toFixed(3),sq:A});return!1};g.U(WS,g.y);WS.prototype.Um=function(M,f,A){A=A===void 0?{}:A;this.policy.nK=Wx(M,A,this.C,f===void 0?!1:f)};Gr.prototype.r4=function(M){var f=this;if(this.policy.AU){var A=new Set(M);A.size===this.z0.size&&[].concat(g.c(A)).every(function(Q){return f.z0.has(Q)})||(this.loader.ZB("lwnmow",{itagDenylist:[].concat(g.c(M)).join(",")}),this.loader.Fe(!!A.size),this.B=-1,this.z0=A,wH(this,this.K),this.nJ=!0)}}; Gr.prototype.Um=function(M,f,A){A=A===void 0?{}:A;var Q=this.policy.nK;this.N.Um(M,f===void 0?!1:f,A);if(Q!==this.policy.nK){wH(this,this.K);lY(this);var N,Y;Q>this.policy.nK&&((N=this.j)==null?0:MC(N.info))&&((Y=this.nextVideo)==null||!MC(Y.info))&&(this.Er=!0)}};Q8.prototype.CZ=function(M){this.timestampOffset=M;this.flush()}; Q8.prototype.flush=function(){if(this.K.pos>0){var M={a:this.track.gf(),u:this.K.Ky(),pd:Math.round(this.C),ad:Math.round(this.j)},f=this.Z;if(f){var A=f.K.info;M.itag=A.itag;A.K&&(M.xtags=A.K);M.sq=f.Ur;M.st=f.startTime;M.sd=f.duration;this.track.policy.SW&&(M.si=f.ZK());f.N&&(M.esl=f.Z+f.j);f.WU()&&(M.eos=1)}isNaN(this.timestampOffset)||(M.to=this.timestampOffset);var Q;if(f=(Q=this.track.yw)==null?void 0:Q.lI({})){for(var N in f)this.G[N]!==f[N]&&(M["sb_"+N]=f[N]);this.G=f}this.track.ZB("sbu", M);this.K.reset();this.buffered=[];this.N=this.j=this.C=0;this.timestampOffset=this.Z=void 0}};Yn.prototype.dispose=function(){this.KJ=!0}; Yn.prototype.ek=function(){return this.KJ}; g.U(vb,Error);Sc.prototype.skip=function(M){this.offset+=M}; Sc.prototype.eT=function(){return this.offset};g.C=x60.prototype;g.C.zL=function(){return this.Z}; g.C.u4=function(){return this.Z.length?this.Z[this.Z.length-1]:null}; g.C.RY=function(){this.Z=[];V8(this);CG(this)}; g.C.qz=function(M){this.ox=this.Z.shift().info;M.info.equals(this.ox)}; g.C.b4=function(){return g.WP(this.Z,function(M){return M.info})}; g.C.gf=function(){return!!this.G.info.audio}; g.C.isDrm=function(){return!!this.G.info.e$}; g.C.getDuration=function(){return this.G.index.Gh()};g.U(jl,f3);g.C=jl.prototype;g.C.onStateChange=function(){this.ek()&&(xf(this.Ew,this.formatId),this.K.dispose())}; g.C.l4=function(){var M=oOd(this.Ew,this.formatId),f;var A=((f=this.Ew.mL.get(this.formatId))==null?void 0:f.bytesReceived)||0;var Q;f=((Q=this.Ew.mL.get(this.formatId))==null?void 0:Q.TY)||0;return{expected:M,received:A,bytesShifted:f,sliceLength:ZE(this.Ew,this.formatId),isAnyMediaEndReceived:this.Ew.ON(this.formatId)}}; g.C.Db=function(){return 0}; g.C.TT=function(){return!0}; g.C.F8=function(){return this.Ew.F8(this.formatId)}; g.C.eZ=function(){return[]}; g.C.O5=function(){return this.Ew.O5(this.formatId)}; g.C.Jg=function(){return this.lastError}; g.C.Nj=function(){return 0};g.U(mT,g.y);g.C=mT.prototype;g.C.gf=function(){return!!this.K.info.audio}; g.C.u4=function(){return this.C.u4()}; g.C.qz=function(M){this.C.qz(M);var f;(f=this.X)!=null&&(f.N.add(M.info.Ur),f.K=whN(f,f.BX,f.Rh,M,f.K),f.j=M,f.G=(0,g.W)());this.DB=Math.max(this.DB,M.info.K.info.DB||0)}; g.C.getDuration=function(){return this.K.index.Gh()}; g.C.RY=function(){FD(this);this.C.RY()}; g.C.Kj=function(){return this.C}; g.C.isRequestPending=function(M){return this.j.length?M===this.j[this.j.length-1].info.r_[0].Ur:!1}; g.C.CZ=function(M){var f;(f=this.X)==null||f.CZ(M);var A;(A=this.B)==null||A.CZ(M)}; g.C.ZB=function(M,f){this.loader.ZB(M,f)}; g.C.g5=function(){return this.loader.g5()}; g.C.dispose=function(){var M;(M=this.B)==null||M.flush();g.y.prototype.dispose.call(this)};g.U(Wb,g.y);Wb.prototype.j=function(){this.Z++>15||(this.K=!this.K,new VX9(this.loader,this.policy,this.u7,this.HX,this.K),this.delay.start())}; g.C=VX9.prototype;g.C.G1=function(){}; g.C.IG=function(){}; g.C.I_=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.gD()===this.size)this.loader.ZB("rqs",this.getInfo());else{var M="net.connect";this.xhr.status>200?M="net.badstatus":this.xhr.Xf()&&(M="net.closed");this.onError(M)}}; g.C.onError=function(M){var f=this;this.loader.handleError(M,this.getInfo());ib("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(A){f.loader.ZB("pathprobe",A)},function(A){f.loader.handleError(A.errorCode,A.details)})}; g.C.getInfo=function(){var M=this.timing.C6();M.shost=ny(this.location.FV);M.pb=this.size;return M};g.U(Oo,g.y); Oo.prototype.W=function(M,f){if(M.W){this.c7.isLive?(M=this.c7.iU&&this.c7.C?M.K.Di(this.c7.iU,!1):M.K.RX(Infinity),M.zP=this.zP):M=M.K.Di(0,!1);if(this.Er){var A=this.Er;M.zP===0&&(M.N=A.X)}else M.N=this.B;return M}A=M.Z;if(!A.K.eP())return A.K.Gv()?(M=rm(this.N,M.K.info.DB,f.K.info.DB,0),M=g.F(A.K.cV(A,M))):M=g.F(A.K.FT(A)),M;var Q=A.G-this.loader.getCurrentTime(),N=!A.range||A.j===0&&A.Z===0?0:A.range.length-(A.Z+A.j),Y=A.K;this.HE(M,Q)&&N===0&&(this.c7.isManifestless?Y=M.K:(Y=A.startTime+IF0, A.j&&(Y+=A.duration),el(M,Y),A=M.Z,Y=A.K));Y.Gv()?(N=this.j,f=rm(this.N,Y.info.DB,f.K.info.DB,Q,N.C.length>0&&N.X===0&&this.loader.hR),Q=$n(M),M=g.F(A.K.cV(A,f)),(f=M.j)&&M.r_.length>1&&(Q||M.HX.j||M.r_[0].K!==A.K?M=g.F(A.K.cV(A,M.r_[0].j)):(Q=M.r_[M.r_.length-1],Y=Q.j/f,!Q.N&&Y<.4&&(M=g.F(A.K.cV(A,f-Q.j)))))):(A.Ur<0&&(f=Jx(A),f.pr=""+M.j.length,this.loader.isSeeking()&&(f.sk="1"),f.snss=A.X,this.loader.ZB("nosq",f)),M=g.F(Y.FT(A)));if(this.policy.P7)for(A=g.V(M.r_),f=A.next();!f.done;f=A.next())f.value.type= 6;return M}; Oo.prototype.HE=function(M,f){if(!$n(M)||!M.K.eP())return!1;var A=this.j.nJ||Nte(M)||f<=this.policy.Ul||this.j.Er;this.logger.debug(function(){return"ready to adapt: "+A+", upgrade pending: "+Nte(M)+", health: "+f}); return A}; Oo.prototype.u8=function(){g.y.prototype.u8.call(this)}; var IF0=2/24;g.U(w9,g.y);w9.prototype.TB=function(M,f,A){var Q;var N=((Q=this.Z)==null?void 0:Q.reason)==="m"?"m":this.Z&&$DU(this,this.Z)?this.Z.reason:"a";this.loader.TB(new kf(M,N,A));KG(this.loader,f,M,!0)}; w9.prototype.mA=function(M,f){for(var A=g.V(this.P7),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.id===M)return this.II.d5||(this.j=[Q]),this.N=this.c7.K[M],aN(this.II)&&(this.Er=!0),M=new kf(this.N,f?"t":"m"),f&&(this.X=!0),M;this.j=[];return null}; w9.prototype.Um=function(M,f,A){A=A===void 0?{}:A;this.K.Um(M,f===void 0?!1:f,A)};Mw.prototype.setData=function(M,f,A){var Q=this;A=A===void 0?{}:A;if(f==null?0:f.Qw)this.dO=sFe(this,f,A),M.QQ=this.HX.QQ();if(this.TJ())return!0;this.data=M;this.K=Otc(M,function(N,Y){var I;(I=Q.jx)==null||I.F3(N,Y)},f==null?void 0:f.Z); if(!this.K)return!1;this.Z=g.lp(this.K,BMX);return!0}; Mw.prototype.TJ=function(){return this.requestType===1}; Mw.prototype.F1=function(){var M;return((M=this.jx)==null?void 0:M.F1())||0}; Mw.prototype.isDecorated=function(){var M;return!((M=this.data)==null||!M.MD)};fK.prototype.encrypt=function(M){this.K.exports.AES128CTRCipher_encrypt(this.cipher,M.byteOffset,M.byteLength);return M}; fK.prototype.ek=function(){return this.cipher===0}; fK.prototype.dispose=function(){this.K.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};AG.prototype.encrypt=function(M,f){return Va(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:f},this.key,M).catch(function(A){return Promise.reject(A.name+": "+A.message)}).then(function(A){return new Uint8Array(A)}))}; AG.prototype.ek=function(){return this.K}; AG.prototype.dispose=function(){this.K=!0}; QJ.prototype.encrypt=function(M,f){return Va(this.Z(M,f))}; QJ.prototype.Z=function(M,f){q0(this.j,f);return this.j.encrypt(M)}; QJ.prototype.ek=function(){return this.K}; QJ.prototype.dispose=function(){this.K=!0}; Nw.prototype.encrypt=function(M,f){return Va(this.Z(M,f))}; Nw.prototype.Z=function(M,f){f=this.j.D3(f);var A=this.K;A.K.exports.AES128CTRCipher_setCounter(A.cipher,f.byteOffset);this.j.free(f.byteOffset);f=this.j.D3(M);this.K.encrypt(f!=null?f:M);return f?this.j.yj(f):M}; Nw.prototype.ek=function(){return this.K.ek()}; Nw.prototype.dispose=function(){this.K.dispose()}; sM.Qk(AG,{encrypt:l9c("oan2")});sM.Qk(QJ,{encrypt:l9c("oap")});sM.Qk(Nw,{encrypt:l9c("oalw")});Yt.prototype.encrypt=function(M,f){var A=this,Q=aB("");M.length<=this.Dn&&this.K&&!this.N&&(Q=s_(Q,function(){return A.K?A.K.encrypt(M,f):aB("wasm unavailable")})); M.length<=this.S9&&(this.K&&this.N&&(Q=s_(Q,function(){return A.K?A.K.encrypt(M,f):aB("wasm unavailable")})),Q=s_(Q,function(){return AdN(A,M,f)})); return s_(s_(Q,function(){return QLb(A,M,f)}),function(){return AdN(A,M,f)})}; Yt.prototype.Z=function(M,f){if(this.K)return this.K.Z(M,f);this.j||(this.j=new QJ(this.key));return this.j.Z(M,f)}; Yt.prototype.ek=function(){return this.G}; Yt.prototype.dispose=function(){this.G=!0;var M;(M=this.C)==null||mA(M,g.hW);g.hW(this.K);g.hW(this.j)};I7.prototype.encrypt=function(M){(0,g.W)();return(new g.R_(this.K.K)).encrypt(M,this.iv)}; I7.prototype.decrypt=function(M,f){(0,g.W)();return(new g.R_(this.K.K)).decrypt(M,f)}; I7.prototype.ek=function(){return this.j}; I7.prototype.dispose=function(){this.j=!0;g.hW(this.Z)};g.U(Tq,g.y);Tq.prototype.j=function(M,f){if(f){f=f instanceof g.zN?f:Dq(this,f);var A;((A=this.K.get(M))==null?void 0:ny(A.location))!==ny(f)&&this.K.set(M,new hT6(f,M))}else this.K.delete(M)}; Tq.prototype.load=function(){var M=this,f,A,Q,N,Y,I,D,E,t,v;return g.n(function(p){switch(p.Z){case 1:f=M.K.get(0);g.HX(p,2);var h;if(h=f&&!M.Z)h=ny(f.location),h=M.Z===p3(h);if(h){p.CJ(4);break}return g.r(p,vst(M,M.Z?2:0),5);case 5:if(A=p.K)M.j(0,A),$m(A)&&M.j(1,F_(A));case 4:g.Rf(p,3);break;case 2:Q=g.id(p);g.$b(Q);if(!M.Z){p.CJ(3);break}M.Z=!1;return g.r(p,M.load(),7);case 7:return p.return();case 3:if(!M.QY.experiments.X3("html5_onesie_probe_ec_hosts")){p.CJ(0);break}g.HX(p,9);N=M;Y=N.j;I=3;return g.r(p, vst(M,1),11);case 11:return Y.call(N,I,p.K),D=M,E=D.j,t=4,g.r(p,vst(M,2),12);case 12:E.call(D,t,p.K);g.Rf(p,0);break;case 9:v=g.id(p),g.$b(v),g.qc(p)}})}; Tq.prototype.W=function(){var M=this,f,A;return g.n(function(Q){g.f5(M.X);f=g.CE(M.QY.experiments,"html5_onesie_prewarm_max_lact_ms");if(xr()>=f)return Q.return();(A=M.K.get(0))&&tHT(M,A);g.qc(Q)})}; var D1b={D_r:0,e6u:1,ZI7:2,yC3:3,F5i:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};osb.prototype.decrypt=function(M){var f=this,A,Q,N,Y,I,D;return g.n(function(E){switch(E.Z){case 1:if(SAU(f))return E.return();f.Z=!0;f.jU.M5("omd_s");A=new Uint8Array(16);sZ()?Q=new g.cI(M):N=new g.R_(M);case 2:if(!f.K.length||!f.K[0].isEncrypted){E.CJ(4);break}Y=f.K.shift();if(!Q){I=N.decrypt(Y.buffer.Vd(),A);E.CJ(5);break}return g.r(E,Q.decrypt(Y.buffer.Vd(),A),6);case 6:I=E.K;case 5:D=I;L2e(A);var t=f.jU,v=Y.videoId,p=Y.rU,h=Y.formatId,S=new ap([D]),L;(L=tG(t.bI,v))==null||uY(L,p,h,S);E.CJ(2); break;case 4:f.jU.M5("omd_c"),v6(f),f.Z=!1,f.jU.Fc(),g.qc(E)}})}; osb.prototype.enqueue=function(M,f,A,Q,N){this.K.push({videoId:M,rU:f,formatId:A,buffer:Q,isEncrypted:N});this.Z||v6(this)};var RTT=!!Uint8Array.prototype.copyWithin,pK=[],CSt=[],amD=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],SB=[],hG=[],LK=[],U1c=[];CK.prototype.ZR=function(M){return g.cdd(new g.VHd(M))}; CK.prototype.Il=function(M){function f(I){if(!I.done)return Y.append(I.value),N.read().then(function(D){return f(D)})} if(!("DecompressionStream"in window))return aB("native decompression unavailable");var A=new DecompressionStream("gzip"),Q=A.writable.getWriter();Q.write(M).then(function(){return Q.close()}); var N=A.readable.getReader(),Y=new ap([]);return s_(mA(mA(Va(N.read()),f),function(){return Y.Vd()}),function(I){return aB(I.message)})}; CK.prototype.t4=function(M,f){var A=void 0,Q=f.D3(M);Q&&(A=Q.byteOffset,M=Q);Q=f.exports.getInflatedSize(M.byteOffset,M.length);if(Q===0)return aB("bad compressed input");var N=f.malloc(Q);if(f.exports.inflateGzip(M.byteOffset,M.length,N))return f.free(N),aB("inflateGzip failed");A&&f.free(A);return Va(new Uint8Array(f.exports.memory.buffer,N,Q))}; sM.Qk(CK,{ZR:function(M){return{profile:"gzjb",f8:Math.ceil(M.byteLength/16)}}, Il:function(M){return{profile:"gznb",f8:Math.ceil(M.byteLength/16)}}, t4:function(M){return{profile:"gzwb",f8:Math.ceil(M.byteLength/16)}}});g.U(rdD,cS);g.C=rdD.prototype;g.C.Fc=function(){this.bI.Fc()}; g.C.uB=function(M,f){switch(M){case 10:var A=ku(f,nDt);M=A.Wf$;var Q=!1;switch(M){case 0:this.j=!A.wm.GN;this.iv=A.wm.iv;break;case 2:break;case 23:var N=this.bI;A=A.HJ7;N.M5("omp_r");A.videoId&&(N.N8=A.videoId);N.N8!==N.videoData.videoId&&(N.videoData.Rb=N.N8,N.ZB("ompp","vid."+N.N8));N.vE=!0;break;case 24:A=this.bI;A.M5("omp_c");A.vE=!1;A.LO=!1;var Y=(N=A.zb)==null?void 0:N.get(A.N8);A.notifySubscribers(A.N8);Y!=null&&(Y.K=!0);a7(A);break;default:Q=!0}this.bI.cz&&this.bI.ZB("ombup","id.10;pt."+ M+";len."+f.getLength()+(Q?";ignored.1":""));this.C=M;break;case 11:PS9(this,f);break;case 12:this.fp(f,!0);break;case 37:f=ku(f,jCT);(f.Ct||f.DU)&&f.videoId&&this.bI.aW.set(f.videoId,f);break;case 60:this.pp(f);break;case 47:this.V("html5_server_playback_start_policy")&&(f=ku(f,dSb),this.bI.playbackStartPolicy=f);break;case 35:this.fF(f);break;case 45:this.UI(f);break;case 66:this.Zi(f);break;default:this.bI.cz&&this.bI.ZB("ombup","id."+M+";len."+f.getLength()+";ignored.1")}}; g.C.AF=function(M){this.bI.AF(M)}; g.C.pp=function(M){M=ku(M,py);this.bI.pp(M)}; g.C.UI=function(M){M=ku(M,hr);this.bI.UI(M)}; g.C.UP=function(M){var f=M.rU,A=M.FP,Q=M.SJ,N=M.LK,Y=M.HQ,I=M.startMs,D=M.durationMs,E=M.timeRange,t=M.UW,v=j$(M),p=hUm.has(Jk[""+M.itag]);A&&this.M5(p?"oais_r":"ovis_r");var h=this.K[v]!==void 0;this.bI.cz&&this.bI.ZB("ombup","id.20;hid."+f+";fid."+v);var S=M.videoId||"";this.Z[f]=v;this.N[f]=S;h||(this.K[v]={videoId:S,Xh:!1,gf:p,headers:[]});this.K[v].headers.push(M);this.bI.gA(S,v,p,{rU:f,FP:!!A,SJ:Q!=null?Q:-1,HQ:Y!=null?Y:-1,startMs:I!=null?I:-1,durationMs:D!=null?D:-1,UW:t!=null?t:0,LK:N,timeRange:E})}; g.C.fp=function(M,f){var A=M.getUint8(0);this.bI.cz&&this.bI.ZB("ombup","id."+(f?12:21)+";len."+M.getLength()+";hid."+A);if(M.getLength()!==1){M=M.split(1).xr;var Q=this.Z[A]||null,N=this.N[A]||"";Q&&(this.In(this.K[Q].gf?"oafs_r":"ovfs_r"),this.queue.enqueue(N,A,Q,M,f))}}; g.C.A8=function(M){var f=M.getUint8(0);this.bI.cz&&this.bI.ZB("ombup","id.22;len."+M.getLength()+";hid."+f);M=this.Z[f]||null;var A=this.N[f]||"";if(M)if(this.V("html5_use_ump_request_slicer")){var Q=this.queue;Q.K.push({videoId:A,rU:f,formatId:M,isEncrypted:!1,lx:!0});Q.Z||v6(Q)}else this.bI.A8(A,f,M)}; g.C.Mr=function(M){this.bI.Mr(M)}; g.C.xn=function(M,f){var A=this,Q,N,Y,I,D,E,t,v,p,h;return g.n(function(S){switch(S.Z){case 1:A.bI.xn();Q=M.Vd();if(!f){Y=Q;S.CJ(2);break}return g.r(S,OFf(A.bI,Q,A.iv),3);case 3:Y=S.K;case 2:N=Y;if(!A.bI.enableCompression){S.CJ(4);break}D=(I=performance)==null?void 0:I.now();return g.r(S,gs6(N),5);case 5:N=S.K,A.bI.ZB("decompression",{ds:"DecompressionStream"in window,rt:((E=performance)==null?NaN:E.now())-D});case 4:try{t=ku(N,Hh0)}catch(L){return v=L instanceof Error?{name:L.name,message:L.message}: {},v.webcrypto=""+ +!!sZ(),v.enc=""+ +A.j,p=new ZZ("onesie.response.parse",v),S.return(Promise.reject(p))}ZFb(t);h=g.xu(t.body);return S.return(h)}})}; g.C.fF=function(M){this.V("html5_consume_onesie_next_request_policy_for_sabr")&&(M=ku(M,Fcz),this.bI.fF(M))}; g.C.Zi=function(M){M={IR:d3(new zj(M),1,k1b)};this.bI.Zi(M)}; g.C.M5=function(M){this.bI.M5(M)}; g.C.In=function(M){return this.bI.In(M)}; g.C.V=function(M){return this.bI.V(M)};g.U(VJ,g.y);g.C=VJ.prototype;g.C.c8=function(M){var f,A;return((A=(f=this.zb)==null?void 0:f.get(M))==null?void 0:A.c8())||[]}; g.C.O5=function(M,f){var A;return!((A=tG(this,f))==null||!A.O5(M))}; g.C.F8=function(M,f){var A;return((A=tG(this,f))==null?void 0:A.F8(M))||[]}; g.C.b4=function(M,f){var A;return((A=tG(this,f))==null?void 0:A.b4(M))||[]}; g.C.Rt=function(M){this.state=M;this.notifySubscribers()}; g.C.TJ=function(){return!1}; g.C.ej=function(){return!1}; g.C.zn=function(){}; g.C.M5=function(M){this.d_.M5(M)}; g.C.In=function(M){return this.d_.In(M)}; g.C.K_=function(M,f,A,Q){A||this.Bv.K_(Q);return!1}; g.C.XF=function(M,f){this.jU.XF(M,f)}; g.C.jq=function(){this.M5("orfb");this.XZ=!0;if(X5T(this)&&this.xhr){var M={rc:this.xhr.status,lb:this.xhr.gD(),rt:(1E3*ome(this.Bv)).toFixed(),shost:g.RH(this.Jc),trigger:"o1"};this.ZB("pathprobe",x8(M))}}; g.C.xn=function(){this.M5("opr_r");this.l_=!0}; g.C.gA=function(M,f,A,Q){if(this.zb){if(!this.zb.has(M)){var N=new gH(this);this.zb.set(M,N);g.d(this,N)}var Y;(Y=this.zb.get(M))==null||Y.gA(f,A,Q);a7(this);A||(this.Lh=Q.HQ)}else a7(this)}; g.C.AF=function(M){this.Le=M;M.sY!=null&&this.d_.lR(M.sY)}; g.C.pp=function(M){this.f2=M}; g.C.fF=function(M){M.videoId&&this.Nw.set(M.videoId,M)}; g.C.Fc=function(){if(this.zb)for(var M=g.V(this.zb.keys()),f=M.next();!f.done;f=M.next()){var A=void 0;(A=this.zb.get(f.value))==null||A.WY()}}; g.C.UI=function(M){this.nm=M}; g.C.Zi=function(M){if(M==null?0:M.IR)if(M=M.IR.rB){M=g.V(M);for(var f=M.next();!f.done;f=M.next())f=f.value,f.videoId&&this.Wg.set(f.videoId,f)}}; g.C.ZB=function(M,f,A){this.d_.ZB(M,f,A===void 0?!1:A)}; g.C.A8=function(M,f,A){var Q;(Q=tG(this,M))==null||Q.A8(f,A)}; g.C.Mr=function(M){this.tV.set(M.videoId,M)}; g.C.fetch=function(){var M=this,f,A,Q,N,Y,I,D,E,t,v,p,h,S,L,a,q,m,R,u,z,e;return g.n(function(G){switch(G.Z){case 1:M.logger.debug("Onesie fetch started.");M.Jw?M.qH.start():M.fO.start();M.M5("or_i");f=M.QY.experiments.X3("html5_onesie_verbose_timing");A={};Q=(0,g.W)();N=function(X){f&&(A[X]=(0,g.W)()-Q)}; N("loc_s");if(Y=jLt(M.videoData,M.X9)){G.CJ(2);break}N("loc_async");I=g.CE(M.QY.experiments,"html5_onesie_redirector_timeout_ms");return g.r(G,$1f(M.videoData,M.X9,I),3);case 3:Y=G.K;case 2:if(!Y)return M.logger.info("Onesie URL creation failed."),D={url:"0"},E=new ZZ("onesie.unavailable.hotconfig",D),M.sJ(E),G.return(M.T8);M.dO=ny(Y);N("loc_e");t=g.v5(M.QY,g.bv(M.videoData));v=!!t.K;if(!v){p=t.getValue();G.CJ(4);break}return g.r(G,t.K,5);case 5:p=G.K;case 4:h=p;M.V("html5_log_onesie_empty_oauth")&& !h&&M.ZB("no_token",{async:v});N("oauth");S=ydz(M.playerRequest,M.QY,M.videoData,h,p3(M.dO));g.HX(G,6);if(!W20(M,S)){N("or_s_sync");M.kh=eTT(S,M.TZ,M.QY,M.d_,M.Ea.onesieUstreamerConfig,(L=M.videoData.M9)==null?void 0:L.yb);G.CJ(8);break}N("or_s_async");return g.r(G,k9b(S,M.TZ,M.QY,M.d_,M.Ea.onesieUstreamerConfig,(a=M.videoData.M9)==null?void 0:a.yb),9);case 9:M.kh=G.K;case 8:g.Rf(G,7);break;case 6:return q=g.id(G),M.logger.info("Failed to create OnesieRequestProto."),M.sJ(q),G.return(M.T8);case 7:return N("or_e"), f&&M.ZB("oreqvt",A),M.enableCompression=M.kh.dN.p$,M.M5("osor"),m=Lhb(),R=g.lp(M.kh,NMN),u={method:"POST",body:R,headers:{"Content-Type":"text/plain",Referer:location.origin}},z=M.V("html5_onesie_media_capabilities"),F2X(Y,M.videoData,K2N(M),z),M.logger.debug("Starting Onesie network request."),M.cz&&M.ZB("ombrs","1"),e=M.d_.T().schedule,M.Bv=new GF(M,{u7:e,GV:M.cz,v5:function(X,Qt){M.d_.w8(X,Qt)}, Uu:!0}),Y.set("rn",""+M.Bv.requestNumber),M.Jc=Y.mf(),KD(M.Bv,M.Jc),M.M5("or_p"),M.xhr=Tr(new gL(Y),m,M.Bv,D9,u),M.eX.start(),G.return(M.T8)}})}; g.C.T$=function(){return 2}; g.C.G1=function(){this.M5("orh_r")}; g.C.IG=function(){!this.XZ&&this.xhr.gD()&&this.jq();if(this.EU&&!this.Jw){var M;(M=this.tj)==null||M.start()}this.nI()}; g.C.I_=function(M){M=M===void 0?!1:M;this.logger.debug("onXhrDone");this.nI();if(!(this.ek()||this.state>=4)){var f=UF(this),A=this.xhr;f.rc=A.status;M&&(f.ab=!0);if(A.HP()){var Q="onesie.net";f.msg=A.HP()}else A.status>=400?Q="onesie.net.badstatus":A.T3()?this.l_||(Q="onesie.response.noplayerresponse"):Q=A.status===204?"onesie.net.nocontent":"onesie.net.connect";Q?this.sJ(new ZZ(Q,f)):(this.M5("or_fs"),this.Bv.bH((0,g.W)(),A.gD(),0),this.Rt(4),this.cz&&this.ZB("rqs",f));this.cz&&this.ZB("ombre", "ok."+ +!Q);this.LO=!1;a7(this);uwe(this.jU);if(!this.Jw){this.fO.stop();var N;(N=this.tj)==null||N.stop()}var Y;if(M=(Y=this.X9)==null?void 0:p50(Y))for(Y=0;Y1E3){var M;(M=this.Bv)==null||M.Wl((0,g.W)());M=UF(this);if(this.QY.cX()&&this.xhr instanceof AX){var f=this.xhr;M.xrs=f.xhr.readyState;M.xpb=f.K.getLength();M.xdc=f.C}this.sJ(new ZZ("net.timeout",M))}}else(0,g.W)()-this.Bv.K>1E4&&((f=this.Bv)==null||f.Wl((0,g.W)()),this.OZ());this.isComplete()||this.qH.start()}}; g.C.OZ=function(){this.logger.info("Onesie request timed out");this.LO=!1;if(!a7(this)){var M=UF(this);M.timeout="1";this.sJ(new ZZ("onesie.request",M))}}; g.C.sJ=function(M){var f=this;M=uT(M);this.EU?this.d_.xC(M):(this.T8.reject(M),this.EU=!0);uwe(this.jU);this.Jw||this.fO.stop();this.M5("or_fe");var A,Q;(A=this.X9)==null||(Q=p50(A))==null||Q.forEach(function(N){f.ZB("pathprobe",N)}); this.Rt(5);this.dispose()}; g.C.isComplete=function(){return this.state>=3}; g.C.ol=function(){return this.state===4}; g.C.La=function(M){var f,A;return this.isComplete()||!!((f=this.zb)==null?0:(A=f.get(M))==null?0:A.K)}; g.C.mW=function(){return!1}; g.C.O6=function(){return this.state===5}; g.C.notifySubscribers=function(M){for(var f=0;f102400&&!this.A4&&(this.M5("or100k"),this.A4=!0);if(M.WB()){var f=M.Ku(),A=f.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+A}); this.cz&&this.ZB("ombrss","len."+A);this.s6.feed(f)}if(this.zb)for(var Q=g.V(this.zb.keys()),N=Q.next();!N.done;N=Q.next()){var Y=N.value;M=void 0;(M=this.zb.get(Y))==null||M.WY();this.notifySubscribers(Y)}}catch(I){this.sJ(I)}}; g.C.JY=function(){return this.Bv.requestNumber}; g.C.Cj=function(M){return this.tV.get(M)};g.U(w56,g.y);g.C=w56.prototype;g.C.S1=function(M,f){this.KJ=void 0;put(this);v_U(this,M,f)}; g.C.jS=function(M){if(this.K.length===0)return!1;var f=this.K[0];return f instanceof VJ?M===this.loader.getCurrentTime()*1E3:!(f instanceof zr&&Kh9(f.info))&&Math.abs(f.Un()-M)<50}; g.C.fF=function(M){this.Z=M;this.KJ=(0,g.W)()+(M.backoffTimeMs||0)}; g.C.PO=function(M,f){if(M.action===void 0){var A=this.d_.g7();A!==void 0&&this.loader.Ir(A)}else if(M.action!==0||!this.ox)switch(M.action===0&&this.policy.jN&&(M.action=2),A={},A.reason=M.ke,A.action=M.action,A.rn=f,M.action){case 1:this.policy.j&&this.X&&this.X.uY(void 0,void 0,A);break;case 0:this.ox=!0;this.videoData.G_()&&this.policy.j&&this.X&&this.X.uY(void 0,void 0,A,!1);this.loader.Hg(A);break;case 2:Jzf(M.ke)!=="sabr.config"&&delete A.reason;this.loader.handleError(Jzf(M.ke),A,1);break; case 3:this.policy.Qw&&((M=this.c7.X)!=null&&(M.X=!0),this.loader.handleError("sabr.hostfallback",A))}}; g.C.Vz=function(M){M&&(this.loader.ZB("sabrctxt",{onsbrctxt:M.type,scp:M.scope,dflt:M.sendByDefault}),M.type&&M.sendByDefault&&this.gi.add(M.type),M.scope!==2&&(M.type&&this.videoData.sabrContextUpdates.set(M.type,M),this.d_.Vz(M)))}; g.C.HO=function(){}; g.C.UI=function(M){if(M.OV!==void 0&&M.va){var f=M.OV/M.va;this.audioTrack.W=!1;this.videoTrack.W=!1;if(this.policy.KJ||this.policy.mw||this.policy.u2)this.loader.rf.Z=!1;this.loader.AY(f,1);if(this.d_.getCurrentTime()!==f){var A={Cd:"sabr_seek",B8:!0,rI:!0};M.seekSource&&(A.seekSource=M.seekSource);Wp(this.loader,f+.1,A)}}}; g.C.onSnackbarMessage=function(M){this.d_.publish("onSnackbarMessage",M)}; g.C.AF=function(M){M.sD&&M.MG&&Fk(this.c7,M.sD,M.MG);this.policy.mq&&(M.Ao&&M.UX&&(this.c7.jQ=M.Ao/M.UX),M.Zj&&M.IL&&(this.c7.B_=M.Zj/M.IL));this.policy.rE&&ru(this.videoData)&&!this.videoData.Er&&M.MG&&this.loader.AY(M.MG,1E3);M.sY!=null&&this.d_.lR(M.sY);this.policy.k8&&M.Qf&&(M=((0,g.W)()-M.Qf)/1E3,this.loader.hU.Li(1,M))}; g.C.nf=function(M){this.loader.nf(M)}; g.C.HY=function(M){return this.gi.has(M)}; g.C.CO=function(M,f,A){this.policy.Z&&this.loader.ZB("sabrctxtplc",{start:M?M.join("_"):"",stop:f?f.join("_"):"",discard:A?A.join("_"):""});if(M){M=g.V(M);for(var Q=M.next();!Q.done;Q=M.next())this.gi.add(Q.value)}if(f)for(f=g.V(f),M=f.next();!M.done;M=f.next())M=M.value,this.gi.has(M)&&this.gi.delete(M);if(A)for(A=g.V(A),f=A.next();!f.done;f=A.next())if(f=f.value,this.videoData.sabrContextUpdates.has(f)&&(this.videoData.sabrContextUpdates.delete(f),f===3&&(this.videoData.PA="")),this.policy.B&&this.K.length)for(M= g.V(this.K),Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,!(Q instanceof VJ)){var N=void 0;((N=Q.Wa)==null?void 0:N.type)===f&&(Q.Wa=void 0)}}; g.C.pO=function(){}; g.C.v0=function(M){this.W=M}; g.C.lj=function(M){this.G=M}; g.C.zA=function(M,f){kn(this.policy,M,4,f)}; g.C.Zi=function(M){if(M==null?0:M.IR)if(M=M.IR.rB){M=g.V(M);for(var f=M.next();!f.done;f=M.next())if(f=f.value,f.formatId){var A=this.c7.j.get(j$(f.formatId));A&&A.info&&(A.info.debugInfo=f.debugInfo)}}}; g.C.jZ=function(M){(M=M==null?void 0:M.reloadPlaybackParams)&&this.d_.publish("reloadplayer",M)}; g.C.MX=function(){return this.d_.MX()||""}; g.C.F1=function(){var M=u1(this.audioTrack,!0)*1E3,f=u1(this.videoTrack,!0)*1E3;return Math.min(M,f)}; g.C.F3=function(M,f){this.loader.ZB(M,f)}; g.C.qs=function(M){uGz(this.loader,Nce(this.Ji,M))}; g.C.u8=function(){g.y.prototype.u8.call(this);this.Z=void 0;v_U(this,!0,"i");this.K=[]};LJe.prototype.Ah=function(M,f){if(this.C)return atb(this,f);if(f=OO(M)){var A=f.Z;A&&A.j&&A.K&&(M=M.j.length?M.j[0]:null)&&M.state>=2&&!M.O6()&&M.info.zP===0&&(this.C=M,this.W=A,this.Z=f.info,this.G=this.startTimeSecs=Date.now()/1E3,this.N=this.Z.startTime)}return NaN}; LJe.prototype.clear=function(){this.Z=this.W=this.C=null;this.K=this.N=this.G=this.startTimeSecs=NaN;this.j=!1};g.U(g.XB,g.y);g.C=g.XB.prototype;g.C.initialize=function(M,f,A){this.logger.debug(function(){return"Initialized, t="+M}); M=M||0;this.policy.K||(f=IV0(this.K),n_t(this.d_,new kf(f.video,f.reason)),this.d_.NZ(new kf(f.audio,f.reason)));this.policy.p5&&R6d(this);this.c7.isManifestless&&uE0(this.N);this.W&&Cvd(this.W,this.videoTrack.K);f=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var Q=!this.c7.isManifestless;this.policy.Vu&&(Q=Q||this.c7.oI);this.policy.z0||(this.currentTime=Q?M:f);this.policy.KJ&&this.seek(this.getCurrentTime(),{}).BU(function(){}); if(this.policy.K){var N;((N=this.B)==null?0:G90(N,this.MX()||""))&&cgT(this)&&sJT(this,this.videoTrack)&&sJT(this,this.audioTrack)&&(hB6(this.Z,this.B),this.policy.N&&m5t(this))}else this.KJ&&(RBz(this,this.videoTrack),RBz(this,this.audioTrack),LM0(this.KJ),delete this.KJ);A?(this.policy.WK?(this.zt=A,JG(this,A)):JG(this,!1),g.f5(this.e5)):(A=this.getCurrentTime()===0,J7(this.N,this.videoTrack,this.videoTrack.K,A),J7(this.N,this.audioTrack,this.audioTrack.K,A),this.policy.K&&ftX(this.Z,!0),this.policy.KJ|| this.seek(this.getCurrentTime(),{}).BU(function(){}),this.timing.tick("gv")); (this.c7.iU||this.c7.z7||this.c7.jk||this.c7.Z9||this.c7.wq)&&this.d_.vO(this.c7)}; g.C.resume=function(){if(this.isSuspended||this.hR){this.logger.debug("Resumed.");this.yW=this.hR=this.isSuspended=!1;try{this.Ah()}catch(M){g.jZ(M)}}}; g.C.Yd=function(){return!this.policy.Uq}; g.C.If=function(M,f){M=M===void 0?!1:M;f=f===void 0?!1:f;this.logger.debug("detaching media source");x5D(this);this.d_.PU()&&(this.G=NaN);M?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.g_&&this.ZB("loader",{setsmb:1}),this.policy.P7=!0,this.RY()):(this.policy.WK?JG(this,this.zt):JG(this,!1),f||this.RY())}; g.C.setAudioTrack=function(M,f,A){A=A===void 0?!1:A;if(!this.ek()){var Q=!isNaN(f);A&&Q&&(this.audioTrack.KJ=Date.now(),this.policy.SO&&(this.w_=!0));if(this.policy.K){var N=this.C.mA(M.id,Q);this.logger.debug(function(){return"Logging new audio format: "+N.K.info.id}); this.d_.NZ(N)}else{var Y=QnT(this.K,M.id,Q);this.logger.debug(function(){return"Logging new audio format: "+Y.audio.info.id}); this.d_.NZ(new kf(Y.audio,Y.reason))}if(Q&&(A=this.audioTrack.K.index.IY(f),this.ZB("setAudio",{id:M.id,cmt:f,sq:A}),A>=0)){this.policy.K&&this.S1(!0,"mosaic");zp(this.audioTrack,A,NaN,NaN);!this.policy.gb&&this.c7.isLive&&$B(this.c7,A,!1);return}this.d_.j4()}}; g.C.setPlaybackRate=function(M){M!==this.X.getPlaybackRate()&&this.X.setPlaybackRate(M)}; g.C.N7=function(M){var f=this.Z.W;this.Z.v0(M);this.ZB("scfidc",{curr:j$(f),"new":j$(M)});M&&j$(M)!==j$(f)&&(this.S1(!0,"caption change"),this.Ah())}; g.C.Gy=function(M){this.Z.lj(M)}; g.C.TB=function(M){var f=M.K.info.gf();this.logger.debug(function(){return"New "+(f?"audio":"video")+" format from SABR: "+tE(M.K.info)}); f?this.d_.NZ(M):n_t(this.d_,M)}; g.C.qs=function(M){W4(M.r_[M.r_.length-1])&&uGz(this,Nce(this.K,M.r_[0].K))}; g.C.ME=function(){return this.d_.ME()}; g.C.uA=function(){return this.d_.uA()}; g.C.nf=function(M){this.d_.T().cX()&&this.ZB("sps",{status:M.XK||""});if(M.XK===1)this.d_.videoData.HA=0;else if(M.XK===2||M.XK===3){var f=!1;if(M.XK===3){f=this.d_.W8();var A;this.xp=(A=M.Hx_)!=null?A:Infinity;this.d_.videoData.HA=f+1;(f=raN(this))&&this.iR(!0)}this.d_.OP(!0,f)}}; g.C.V2=function(){return this.d_.V2()}; g.C.wc=function(){return this.d_.wc()}; g.C.YD=function(M){this.d_.YD(M)}; g.C.aa8=function(){var M,f=(M=this.d_.j$())==null?void 0:M.getCurrentTime();f?this.d_.ZB("rms",{cta:f}):g.f5(this.Yp)}; g.C.Ah=function(){rgN(this);if(this.VY&&lC(this.VY)&&!this.VY.md()&&(!this.policy.z0||isFinite(this.getCurrentTime()))){var M=cb(this.videoTrack);M=this.policy.xJ&&M&&M.WU();this.c7.isManifestless&&this.c7.C&&z5(this.c7)?(this.G=z5(this.c7),this.VY.Xy(this.G)):yC(this.c7)&&!M?isNaN(this.G)?(this.G=this.getCurrentTime()+3600,this.VY.Xy(this.G)):this.G<=this.getCurrentTime()+1800&&(this.G=Math.max(this.G+1800,this.getCurrentTime()+3600),this.VY.Xy(this.G)):this.VY.isView||(M=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.G)||this.G!==M)&&M>0&&(this.VY.Xy(M),this.G=M))}if(!this.ek())if(uX(this.c7)&&this.c7.O6()){var f=this.c7;this.handleError("manifest.net.retryexhausted",f.w_?{rc:f.R9}:{rc:f.R9.toString()},1)}else if(this.policy.K)a:{try{D5N(this.Z);this.c7.isManifestless&&this.policy.N&&bb(this.rf);var A;((A=this.VY)==null?0:Am(A))&&this.Dp();ftX(this.Z)}catch(I){g.$b(I);f=I;if(f.message.includes("changeType")){this.ZB("ctype",{exp:f.name,msg:f.message,s:f.stack});break a}this.handleError("fmt.unplayable", {exp:f.name,msg:f.message,s:f.stack},1)}fFc(this);g.f5(this.YO)}else if(!this.c7.Z||!Ttb(this.videoTrack)&&!Ttb(this.audioTrack)||(this.videoTrack.N||this.audioTrack.N)&&this.policy.b8?A=!1:(this.RY(),this.d_.seekTo(Infinity,{Cd:"checkLoaderTracksSync",AY:!0}),A=!0),!A){rgN(this);this.c7.isManifestless&&(DDX(this.videoTrack),DDX(this.audioTrack),bb(this.rf),(A=OO(this.videoTrack))&&A.Z&&(A=A.Z.j&&!this.policy.z9,this.ZB(A===this.policy.W.SU?"strm":"strmbug",{strm:A,sfmp4:this.policy.W.SU,dfs:this.policy.z9}, !0)));if(this.VY)this.Dp();else if(this.policy.C){var Q;A=!1;if(this.policy.GK){var N;M=g.V([this.videoTrack,this.audioTrack]);for(N=M.next();!N.done;N=M.next()){var Y=N.value;for(N=OO(Y);N&&Y.u4()!==cb(Y);N=OO(Y))Y.qz(N);A=A||!!N}}else(f=OO(this.videoTrack))&&this.videoTrack.qz(f),(Q=OO(this.audioTrack))&&this.audioTrack.qz(Q);xn(this.videoTrack)&&xn(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(f||Q||A)&&bK(this)}g_T(this);J7(this.N,this.videoTrack,this.videoTrack.K, !1);J7(this.N,this.audioTrack,this.audioTrack.K,!1);this.policy.ip||Pve(this,this.videoTrack,this.audioTrack);mDT(this.N,this.videoTrack,this.audioTrack);mDT(this.N,this.audioTrack,this.videoTrack);fFc(this);this.W&&(f=this.W,f.C?(Q=f.G+f.policy.Cu,f.j||(Q=Math.min(Q,f.startTimeSecs+f.policy.Kh)),f=Math.max(0,Q*1E3-Date.now())):f=NaN,isNaN(f)||g.f5(this.d2,f));g.f5(this.YO)}}; g.C.Hg=function(M){this.d_.Hg(M)}; g.C.Dp=function(){var M=this;if(this.VY){var f=this.VY.K,A=this.VY.Z;EXT(this,this.audioTrack);EXT(this,this.videoTrack);var Q=$5D(this);if(Q){if(this.policy.FK){if(!f.pM()){var N=OO(this.audioTrack);if(N){if(!OF(this,this.audioTrack,f,N.info))return;d50(this,this.audioTrack,f,N)}}if(!A.pM()&&(N=OO(this.videoTrack))){if(!OF(this,this.videoTrack,A,N.info))return;d50(this,this.videoTrack,A,N)}}this.Vb||(this.Vb=(0,g.W)(),this.logger.debug(function(){return"Appends pause start "+M.Vb+" reason "+Q}), this.policy.Z&&this.ZB("apdps",{r:Q}))}else if(this.Vb&&(jJX(this,this.Vb),this.Vb=0),FJ0(this),N=!1,OkN(this,this.videoTrack,A)&&(N=!0,xeD(this.timing),zv9(this.timing)),this.VY&&!this.VY.xZ()&&(OkN(this,this.audioTrack,f)&&(N=!0,Z6t(this.timing),PAe(this.timing)),!this.ek()&&this.VY))!this.policy.Uq&&xn(this.videoTrack)&&xn(this.audioTrack)&&lC(this.VY)&&!this.VY.md()&&(A=!1,A=cb(this.audioTrack).K,A=A===this.c7.K[A.info.id])&&(this.logger.debug("Setting EOS"),z_b(this.VY),Izz(this.schedule)),N&& !this.VY.isAsync()&&bK(this)}}; g.C.zo=function(M){var f,A=M===((f=this.VY)==null?void 0:f.K)?this.audioTrack:this.videoTrack,Q;if((Q=OO(A))==null?0:Q.isLocked){if(this.d_.T().cX()){var N;this.ZB("eosl",{ounlock:(N=OO(A))==null?void 0:N.info.ZK()})}var Y;ltz(this,M===((Y=this.VY)==null?void 0:Y.K))}var I;if(this.policy.SO&&M===((I=this.VY)==null?void 0:I.K)&&this.l8){f=this.l8-this.getCurrentTime();var D;this.d_.ZB("asl",{l:f,xtag:(D=cb(this.audioTrack))==null?void 0:D.K.info.K});this.w_=!1;this.l8=0}M.oh()&&M.Da().length===0&& (M.Lu(),this.VY&&!this.VY.oh()&&(this.d_.T().cX()&&this.d_.ZB("rms",{ld:"seek"}),this.VY.G=performance.now(),this.d_.R6(),this.d_.T().cX()&&g.f5(this.Yp)));var E;(E=A.B)!=null&&Ny(E,0);this.policy.wq?ZtX(this):this.Ah()}; g.C.OJO=function(M){if(this.VY){var f=cb(M===this.VY.K?this.audioTrack:this.videoTrack);if(M=M.Pm())for(var A=0;A5&&M.Er.shift();f=f.Ur;var t;if((t=this.d_.getVideoData())==null?0:t.enableServerStitchedDai)t=h6d(this.audioTrack,f),A=h6d(this.videoTrack,f),t!==0&&A!==0&&t!==A&&this.handleError("ssdai.avsync",{sq:f,a:t,v:A},0)}}; g.C.gK=function(M,f,A,Q){M.info.video&&this.j.gK(f,A,Q)}; g.C.r4=function(M){this.K.r4(M)}; g.C.Ln=fb(20);g.C.Pk=function(){return this.videoTrack.W||this.audioTrack.W}; g.C.seek=function(M,f){if(this.ek())return zg();if(this.Pk())return zg("seeking to head");if(this.policy.KJ&&!isFinite(M))return IQU(this.rf),g.u4(Infinity);rgN(this);R6d(this);this.policy.K||g_T(this,M);this.VY&&this.VY.K&&this.VY.Z&&!this.d_.getVideoData().oV&&(this.VY.K.isLocked()||this.VY.Z.isLocked())&&this.d_.j4({reattachOnLockedBuffer:1,vsb:""+this.VY.Z.isLocked(),asb:""+this.VY.K.isLocked()});var A=this.getCurrentTime(),Q=this.rf.seek(M,f);this.policy.z0||(this.currentTime=Q);en(this.j,M, A,this.policy.Fw&&!f.B8);bK(this);return g.u4(Q)}; g.C.jS=function(M){return this.policy.K&&this.Z.jS(M)}; g.C.HY=function(M){return this.Z.HY(M)}; g.C.S1=function(M,f){this.Z.S1(M,f)}; g.C.getCurrentTime=function(){if(this.policy.z0){var M=this.vX()||0;return this.d_.getCurrentTime()-M}return this.currentTime}; g.C.a6=function(){return this.audioTrack.K.info}; g.C.hI=function(){return this.videoTrack.K.info}; g.C.U7=function(){return this.audioTrack.K.info.LJ}; g.C.gh=function(){return this.videoTrack.K.info.LJ}; g.C.u8=function(){try{this.If(),FD(this.audioTrack),FD(this.videoTrack),Ft(this.audioTrack),Ft(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.y.prototype.u8.call(this)}catch(M){g.jZ(M)}}; g.C.handleError=function(M,f,A){A=A===void 0?0:A;var Q=rw(A);M==="fmt.unplayable"&&this.c7.isLive&&(this.policy.FK=!1,jL(this.c7));f=new ZZ(M,f,A);g.Ye(this);x8(f.details);this.d_.handleError(f);M!=="html5.invalidstate"&&f.errorCode!=="fmt.unplayable"&&M!=="fmt.unparseable"&&Q&&this.dispose()}; g.C.lI=function(){var M=cb(this.audioTrack),f=cb(this.videoTrack);M={lct:this.getCurrentTime().toFixed(3),lsk:this.rf.isSeeking(),lmf:this.K.K.isLocked(),lbw:gt(this.schedule).toFixed(3),lhd:cs(this.schedule).toFixed(3),lst:((this.schedule.W.LW()||0)*1E9).toFixed(3),laa:M?M.ZK():"",lva:f?f.ZK():"",lar:this.audioTrack.Z?this.audioTrack.Z.ZK():"",lvr:this.videoTrack.Z?this.videoTrack.Z.ZK():"",laq:""+ZT(this.audioTrack),lvq:""+ZT(this.videoTrack)};this.VY&&!this.VY.xZ()&&this.VY.K&&this.VY.Z&&(M.lab= pO(this.VY.K.Da()),M.lvb=pO(this.VY.Z.Da()));this.Vb&&(M.lapt=((0,g.W)()-this.Vb).toFixed(0),M.lapr=$5D(this));this.z0&&(M.lapmabht=((0,g.W)()-this.z0).toFixed(0),M.lapmabh=dm(this,this.audioTrack).toFixed(0));this.fJ&&(M.lapmvbht=((0,g.W)()-this.fJ).toFixed(0),M.lapmvbh=dm(this,this.videoTrack).toFixed(0));this.g_&&(M.lapsdai=((0,g.W)()-this.g_).toFixed(0));return M}; g.C.RY=function(){try{this.policy.K&&this.Z.S1(!1,"pending"),this.audioTrack.RY(),this.videoTrack.RY()}catch(M){g.jZ(M)}this.policy.C=""}; g.C.X1=function(){return Zc(this.X)}; g.C.ZB=function(M,f,A){this.d_.ZB(M,f,A===void 0?!1:A)}; g.C.MX=function(){return this.d_.MX()}; g.C.AY=function(M,f){M/=f;isNaN(this.timestampOffset)&&tuU(this,M-Math.min(M,this.policy.Nc));return(M-this.timestampOffset)*f}; g.C.vX=function(){return this.timestampOffset}; g.C.isSeeking=function(){return this.rf.isSeeking()}; g.C.nM=function(){this.j.nM()}; g.C.Um=function(M,f,A){f=f===void 0?!1:f;A=A===void 0?{}:A;this.policy.K?this.C.Um(M,f,A):this.K.Um(M,f,A)}; g.C.hC=function(M,f){if(this.Er&&this.j.hC(M,this.Er))return tuU(this,this.timestampOffset-f),bK(this),this.policy.j&&(jL(this.c7),Ft(this.audioTrack),Ft(this.videoTrack),this.RY()),!0;f=this.videoTrack.K.index.IY(M);this.handleError("ad.skipfailed",{dec:!!this.Er,t:M.toFixed(3),sq:f});return!1}; g.C.getManifest=function(){return this.c7}; g.C.isOffline=function(){return!!this.d_.getVideoData().cotn}; g.C.w8=function(M,f){this.d_.w8(M,f)}; g.C.p_=function(M){if(this.policy.K)this.Z.S1(!0,"utc"),this.Ah();else{var f=this.d_.getVideoData().G7;if(f){var A=this.N;A.Vi=M;A.G7=f;Gp(this)}}}; g.C.Ir=function(M){this.videoTrack.W=!1;this.audioTrack.W=!1;this.rf.Z=!1;this.d_.Ir(M)}; g.C.Ba=function(M){this.rf.Ba(M-this.vX())}; g.C.Xj=function(){this.d_.Xj()}; g.C.iR=function(M){M!==this.policy.OC&&((this.policy.OC=M)||this.Ah())}; g.C.tb=function(M,f){var A=this.audioTrack.yw,Q=this.videoTrack.yw;A&&Q&&(A.remove(M,f),Q.remove(M,f))}; g.C.j4=function(M){this.d_.j4(M)}; g.C.Fe=function(M){this.d_.Fe(M)}; g.C.W8=function(){return this.d_.W8()}; g.C.Js=function(){jL(this.c7);this.RY()};g.C=g.Gq.prototype;g.C.er=function(M,f,A,Q,N,Y){return this.Od.er(M,f,A,Q,N,Y)}; g.C.SG=function(M,f,A,Q,N,Y){return this.Od.SG(M,f,A,Q,N,Y)}; g.C.A0=function(M){return this.Od.A0(M)}; g.C.gE=function(M){this.Od.gE(M)}; g.C.uY=function(M,f,A,Q){return this.Od.uY(M,f,A,Q)}; g.C.nM=function(){this.Od.nM()}; g.C.bb=function(M,f){this.Od.bb(M,f)}; g.C.mY=function(){this.Od.mY()}; g.C.qa=fb(62);g.C.Uv=function(M,f,A){this.Od.Uv(M,f,A)}; g.C.kt=fb(65);g.C.yB=function(M,f,A,Q,N,Y,I,D,E){this.Od.yB(M,f,A,Q,N,Y,I,D,E)}; g.C.QL=function(M){this.Od.QL(M)}; g.C.Sl=function(M){return this.Od.Sl(M)}; g.C.Pg=function(M){return this.Od.Pg(M)};g.U(wF,g.pi);g.U(lK,wF);lK.prototype.G=function(M,f){if(M&&f){var A=Number(PP(M,"cpi"))*1+1;isNaN(A)||A<=0||Athis.j&&(this.j=A,g.MV(this.K)||(this.K={},this.C.stop(),this.Z.stop())),this.K[f]=M,g.f5(this.Z))}}; lK.prototype.N=function(){for(var M=g.V(Object.keys(this.K)),f=M.next();!f.done;f=M.next()){var A=f.value;f=this.publish;for(var Q=this.j,N=g.cP(this.K[A]),Y=[],I=g.V(N[6].split("&")),D=I.next();!D.done;D=I.next())D=D.value,D.indexOf("cpi=")===0?Y.push("cpi="+Q.toString()):D.indexOf("ek=")===0?Y.push("ek="+g.o9(A)):Y.push(D);N[6]="?"+Y.join("&");A="skd://"+N.slice(2).join("");N=A.length*2;Q=new Uint8Array(N+4);Q[0]=N%256;Q[1]=(N-Q[0])/256;for(N=0;N0)for(var A=g.V(this.K),Q=A.next();!Q.done;Q=A.next())if(f===Q.value.info.cryptoPeriodIndex){f=!0;break a}f=!1}if(!f){f=(0,g.W)();a:{A=M.cryptoPeriodIndex;if(!isNaN(A)){Q=g.V(this.j.values());for(var N=Q.next();!N.done;N=Q.next())if(Math.abs(N.value.cryptoPeriodIndex-A)<=1){A=!0;break a}}A=!1}A?(A=M.K,A=Math.max(0,Math.random()*((isNaN(A)?120:A)-30))*1E3):A=0;this.publish("log_qoe",{wvagt:"delay."+A,cpi:M.cryptoPeriodIndex,reqlen:this.K.length, ignore:this.C});A<=0?SX0(this,M):this.C||(this.K.push({time:f+A,info:M}),g.f5(this.Z,A))}}; Mq.prototype.u8=function(){this.K=[];wF.prototype.u8.call(this)};var Ub={},Vuz=(Ub.DRM_TRACK_TYPE_AUDIO="AUDIO",Ub.DRM_TRACK_TYPE_SD="SD",Ub.DRM_TRACK_TYPE_HD="HD",Ub.DRM_TRACK_TYPE_UHD1="UHD1",Ub);g.U(CeN,g.y);g.U(mye,g.pi);g.C=mye.prototype;g.C.SC=function(M){var f=this;if(!(this.ek()||M.size<=0)){var A={};M.forEach(function(Q,N){var Y=Kq(f.Z)?N:Q;N=new Uint8Array(Kq(f.Z)?Q:N);Kq(f.Z)&&y7b(N);Q=g.An(N,4);y7b(N);N=g.An(N,4);f.K[Q]?f.K[Q].status=Y:f.K[N]?f.K[N].status=Y:f.K[Q]={type:"",status:Y};f.QY.V("html5_authorized_drm_track_types")?(Y=f.K[Q].type,Q=jIt(Y),Qo(f,Y)&&!A[Q]&&(f.b3.push(Q),A[Q]=!0)):(f.C=[],Qo(f,f.K[Q].type)&&f.b3.push(jIt(f.K[Q].type)))}); P1d(this,",");fj(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.C.error=function(M,f,A,Q){this.ek()||(this.publish("licenseerror",M,f,A,Q),M==="drm.provision"&&(M=(Date.now()-this.G)/1E3,this.G=NaN,this.publish("ctmp","provf",{et:M.toFixed(3)})));rw(f)&&this.dispose()}; g.C.shouldRetry=function(M,f){return!M&&this.requestNumber===f.requestNumber}; g.C.u8=function(){this.K={};g.pi.prototype.u8.call(this)}; g.C.lI=function(){var M={ctype:this.X.contentType||"",length:this.X.initData.length,requestedKeyIds:this.jk,cryptoPeriodIndex:this.cryptoPeriodIndex};this.j&&(M.keyStatuses=this.K);return M}; g.C.getInfo=function(){var M=this.C.join();if(Av(this)){var f=new Set,A;for(A in this.K)this.K[A].status!=="usable"&&f.add(this.K[A].type);M+="/UKS."+Array.from(f)}return M+="/"+this.cryptoPeriodIndex}; g.C.mf=function(){return this.url};g.U(Nq,g.y);g.C=Nq.prototype;g.C.pX=function(M){if(this.N){var f=M.messageType||"license-request";this.N(new Uint8Array(M.message),f)}}; g.C.SC=function(){this.W&&this.W(this.K.keyStatuses)}; g.C.onClosed=function(){this.ek()||g.Of("xboxone")&&this.j&&this.j("closedShouldNotRetry")}; g.C.Km=function(M){this.N&&this.N(M.message,"license-request")}; g.C.Es=function(M){if(this.j){if(this.Z){var f=this.Z.error.code;M=this.Z.error.systemCode}else f=M.errorCode,M=M.systemCode;this.j("t.prefixedKeyError;c."+f+";sc."+M,f,M)}}; g.C.Ql=function(){this.G&&this.G()}; g.C.update=function(M){var f=this;if(this.K)return this.K.update(M).then(null,uU(function(A){eCN(f,"t.update",A)})); this.Z?this.Z.update(M):this.element.addKey?this.element.addKey(this.X.keySystem,M,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.X.keySystem,M,this.initData,this.sessionId);return n0()}; g.C.u8=function(){this.K&&(this.B?this.K.close().catch(g.$b):this.K.close());this.element=null;g.y.prototype.u8.call(this)};g.U(Yd,g.y);g.C=Yd.prototype;g.C.setServerCertificate=function(){return this.Z.setServerCertificate?this.K.flavor==="widevine"&&this.K.ZM?this.Z.setServerCertificate(this.K.ZM):lX(this.K)&&this.K.ox?this.Z.setServerCertificate(this.K.ox):null:null}; g.C.createSession=function(M,f){var A=M.initData;if(this.K.keySystemAccess){f&&f("createsession");var Q=this.Z.createSession();wc(this.K)?A=WTT(A,this.K.ox):lX(this.K)&&(A=hKD(A)||new Uint8Array(0));f&&f("genreq");M=Q.generateRequest(M.contentType,A);var N=new Nq(null,null,null,Q,null,this.W);M.then(function(){f&&f("genreqsuccess")},uU(function(I){eCN(N,"t.generateRequest",I)})); return N}if(JD(this.K))return XbT(this,A);if(G5(this.K))return OGd(this,A);if((Q=this.element)==null?0:Q.generateKeyRequest)this.element.generateKeyRequest(this.K.keySystem,A);else{var Y;(Y=this.element)==null||Y.webkitGenerateKeyRequest(this.K.keySystem,A)}return this.C=new Nq(this.element,this.K,A,null,null,this.W)}; g.C.fX=function(M){var f=J7c(this,M);f&&f.Km(M)}; g.C.AM=function(M){var f=J7c(this,M);f&&f.Es(M)}; g.C.SH=function(M){var f=J7c(this,M);f&&f.Ql(M)}; g.C.getMetrics=function(){if(this.Z&&this.Z.getMetrics)try{var M=this.Z.getMetrics()}catch(f){}return M}; g.C.u8=function(){this.j=this.Z=null;var M;(M=this.C)==null||M.dispose();M=g.V(Object.values(this.G));for(var f=M.next();!f.done;f=M.next())f.value.dispose();this.G={};g.y.prototype.u8.call(this);delete this.element};g.C=Io.prototype;g.C.get=function(M){M=this.findIndex(M);return M!==-1?this.values[M]:null}; g.C.remove=function(M){M=this.findIndex(M);M!==-1&&(this.keys.splice(M,1),this.values.splice(M,1))}; g.C.removeAll=function(){this.keys=[];this.values=[]}; g.C.set=function(M,f){var A=this.findIndex(M);A!==-1?this.values[A]=f:(this.keys.push(M),this.values.push(f))}; g.C.findIndex=function(M){return g.Cm(this.keys,function(f){return g.nm(M,f)})};g.U(wb6,g.pi);g.C=wb6.prototype;g.C.jEJ=function(M){this.U3({onecpt:1});M.initData&&fq0(this,new Uint8Array(M.initData),M.initDataType)}; g.C.Wnr=function(M){this.U3({onndky:1});fq0(this,M.initData,M.contentType)}; g.C.qZ=function(M){this.U3({onneedkeyinfo:1});this.QY.V("html5_eme_loader_sync")&&(this.W.get(M.initData)||this.W.set(M.initData,M));MB0(this,M)}; g.C.nE=function(M){this.j.push(M);TP(this)}; g.C.createSession=function(M){var f=Q79(this)?cD0(M):g.An(M.initData);this.Z.get(f);this.P7=!0;M=new mye(this.videoData,this.QY,M,this.drmSessionId);this.Z.set(f,M);M.subscribe("ctmp",this.wx,this);M.subscribe("keystatuseschange",this.SC,this);M.subscribe("licenseerror",this.aH,this);M.subscribe("newlicense",this.xF,this);M.subscribe("newsession",this.B4,this);M.subscribe("sessionready",this.PS,this);M.subscribe("fairplay_next_need_key_info",this.aL,this);this.QY.V("html5_enable_vp9_fairplay")&&M.subscribe("qualitychange", this.lw,this);M.subscribe("sabrlicenseconstraint",this.D5k,this);gnX(M,this.C)}; g.C.xF=function(M){this.ek()||(this.U3({onnelcswhb:1}),M&&!this.heartbeatParams&&(this.heartbeatParams=M,this.publish("heartbeatparams",M)))}; g.C.B4=function(){this.ek()||(this.U3({newlcssn:1}),this.j.shift(),this.P7=!1,TP(this))}; g.C.PS=function(){if(JD(this.K)&&(this.U3({onsnrdy:1}),this.fJ--,this.fJ===0)){var M=this.Er,f,A;(f=M.element)==null||(A=f.msSetMediaKeys)==null||A.call(f,M.j)}}; g.C.SC=function(M){if(!this.ek()){!this.g_&&this.videoData.V("html5_log_drm_metrics_on_key_statuses")&&(NFN(this),this.g_=!0);this.U3({onksch:1});var f=this.lw;if(!Av(M)&&g.Gf&&M.Z.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var A="large";else{A=[];var Q=!0;if(Av(M))for(var N=g.V(Object.keys(M.K)),Y=N.next();!Y.done;Y=N.next())Y=Y.value,M.K[Y].status==="usable"&&A.push(M.K[Y].type),M.K[Y].status!=="unknown"&&(Q=!1);if(!Av(M)||Q)A=M.C;A=zC0(A)}f.call(this,A);this.videoData.V("html5_authorized_drm_track_types")&& (f=FTb(M),this.videoData.b3=f);this.publish("keystatuseschange",M)}}; g.C.wx=function(M,f){this.ek()||this.publish("ctmp",M,f)}; g.C.aL=function(M,f){this.ek()||this.publish("fairplay_next_need_key_info",M,f)}; g.C.aH=function(M,f,A,Q){this.ek()||(this.videoData.V("html5_log_drm_metrics_on_error")&&NFN(this),this.publish("licenseerror",M,f,A,Q))}; g.C.A6=function(){return this.X}; g.C.lw=function(M){var f=g.or("auto",M,!1,"l");if(this.videoData.D_){if(this.X.equals(f))return}else if(IZz(this.X,M))return;this.X=f;this.publish("qualitychange");this.U3({updtlq:M})}; g.C.D5k=function(M){this.videoData.sabrLicenseConstraint=M}; g.C.u8=function(){this.K.keySystemAccess&&this.element&&(this.jk?this.element.setMediaKeys(null).catch(g.$b):this.element.setMediaKeys(null));this.element=null;this.j=[];for(var M=g.V(this.Z.values()),f=M.next();!f.done;f=M.next())f=f.value,f.unsubscribe("ctmp",this.wx,this),f.unsubscribe("keystatuseschange",this.SC,this),f.unsubscribe("licenseerror",this.aH,this),f.unsubscribe("newlicense",this.xF,this),f.unsubscribe("newsession",this.B4,this),f.unsubscribe("sessionready",this.PS,this),f.unsubscribe("fairplay_next_need_key_info", this.aL,this),this.QY.V("html5_enable_vp9_fairplay")&&f.unsubscribe("qualitychange",this.lw,this),f.dispose();this.Z.clear();this.G.removeAll();this.W.removeAll();this.heartbeatParams=null;g.pi.prototype.u8.call(this)}; g.C.lI=function(){for(var M={systemInfo:this.K.lI(),sessions:[]},f=g.V(this.Z.values()),A=f.next();!A.done;A=f.next())M.sessions.push(A.value.lI());return M}; g.C.getInfo=function(){return this.Z.size<=0?"no session":""+this.Z.values().next().value.getInfo()+(this.N?"/KR":"")}; g.C.U3=function(M,f){f=f===void 0?!1:f;this.ek()||(x8(M),(this.QY.cX()||f)&&this.publish("ctmp","drmlog",M))};g.U(Ett,g.y);g.C=Ett.prototype;g.C.Nh=function(){return!!this.n5}; g.C.aD=function(){return this.Z}; g.C.handleError=function(M){var f=this;LQ9(this,M);if((M.errorCode!=="html5.invalidstate"&&M.errorCode!=="fmt.unplayable"&&M.errorCode!=="fmt.unparseable"||!SFU(this,M.errorCode,M.details))&&!VBt(this,M)){if(this.i8.Er!=="yt"&&CKN(this,M)&&this.videoData.Mp&&(0,g.W)()/1E3>this.videoData.Mp&&this.i8.Er==="hm"){var A=Object.assign({e:M.errorCode},M.details);A.stalesigexp="1";A.expire=this.videoData.Mp;A.init=this.videoData.Zv/1E3;A.now=(0,g.W)()/1E3;A.systelapsed=((0,g.W)()-this.videoData.Zv)/1E3;M= new ZZ(M.errorCode,A,2);this.d_.Cx(M.errorCode,2,"SIGNATURE_EXPIRED",x8(M.details))}if(rw(M.severity)){var Q;A=(Q=this.d_.loader)==null?void 0:Q.K.K;if(this.i8.V("html5_use_network_error_code_enums"))if(otb(M)&&A&&A.isLocked())var N="FORMAT_UNAVAILABLE";else if(this.i8.G||M.errorCode!=="auth"||M.details.rc!==429)M.errorCode==="ump.spsrejectfailure"&&(N="HTML5_SPS_UMP_STATUS_REJECTED");else{N="TOO_MANY_REQUESTS";var Y="6"}else otb(M)&&A&&A.isLocked()?N="FORMAT_UNAVAILABLE":this.i8.G||M.errorCode!== "auth"||M.details.rc!=="429"?M.errorCode==="ump.spsrejectfailure"&&(N="HTML5_SPS_UMP_STATUS_REJECTED"):(N="TOO_MANY_REQUESTS",Y="6");this.d_.Cx(M.errorCode,M.severity,N,x8(M.details),Y)}else this.d_.publish("nonfatalerror",M),Q=/^pp/.test(this.videoData.clientPlaybackNonce),this.xC(M.errorCode,M.details),Q&&M.errorCode==="manifest.net.connect"&&(M="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.W)(),ib(M,"manifest",function(I){f.G=!0;f.ZB("pathprobe",I)}, function(I){f.xC(I.errorCode,I.details)}))}}; g.C.ZB=function(M,f){this.d_.O$().ZB(M,f)}; g.C.xC=function(M,f){f=x8(f);this.d_.O$().xC(M,f)};D5.prototype.MK=function(M){var f=s7D(this);if(!M)return{Vl:KF,gB:KF,Lc:KF,iE:KF,VF:KF,Dr:KF,ZP:f};var A=KF;if(this.V("html5_sabr_report_perf_cap")){if(UU(f)||this.V("html5_perf_cap_override_sticky"))A=tv(this,M)}else A=tv(this,M);return{Vl:A,gB:xw9(this,M),Lc:BFb(this,M),iE:nt9(this,M.videoData),VF:j7t(this,M.videoData,M),Dr:Rwc(this,M),ZP:f}}; D5.prototype.r3=function(M){var f;g.yh(this.QY)&&(f=window.screen&&window.screen.width?new g.za(window.screen.width,window.screen.height):null);f||(f=this.QY.u2?this.QY.u2.clone():this.Of.kI());(Mh||A7||M)&&f.scale(g.Ad());return f}; D5.prototype.V=function(M){return this.QY.V(M)};g.U(vV,g.y);vV.prototype.onError=function(M){if(M!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))M==="sabr.fallback"&&(this.encounteredSabrFallback=!0),M.match(jHB)?this.networkErrorCount++:this.nonNetworkErrorCount++}; vV.prototype.send=function(){if(!(this.j||this.K<0)){yGf(this);var M=g.KK(this.provider)-this.K,f="PLAYER_PLAYBACK_STATE_UNKNOWN",A=this.playerState.MQ;this.playerState.isError()?f=A&&A.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.J(this.playerState,2)?f="PLAYER_PLAYBACK_STATE_ENDED":g.J(this.playerState,64)?f="PLAYER_PLAYBACK_STATE_UNSTARTED":g.J(this.playerState,16)||g.J(this.playerState,32)?f="PLAYER_PLAYBACK_STATE_SEEKING":g.J(this.playerState,1)&&g.J(this.playerState, 4)?f="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.J(this.playerState,1)?f="PLAYER_PLAYBACK_STATE_BUFFERING":g.J(this.playerState,4)?f="PLAYER_PLAYBACK_STATE_PAUSED":g.J(this.playerState,8)&&(f="PLAYER_PLAYBACK_STATE_PLAYING");A=RUB[RJ(this.provider.videoData)];a:switch(this.provider.QY.playerCanaryState){case "canary":var Q="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":Q="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:Q="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var N=dwb(this.provider), Y=this.Z<0?M:this.Z-this.K;M=this.provider.QY.vy+36E5<(0,g.W)();f={started:this.Z>=0,stateAtSend:f,joinLatencySecs:Y,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:Q,playerCanaryStage:N,isAd:this.provider.videoData.isAd(),liveMode:A,hasDrm:!!g.sm(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:pk(this.provider.videoData)};M||g.hO("html5PlayerHealthEvent",f);this.j=!0;this.dispose()}}; vV.prototype.u8=function(){this.j||this.send();window.removeEventListener("error",this.vY);window.removeEventListener("unhandledrejection",this.vY);g.y.prototype.u8.call(this)}; var jHB=/\bnet\b/;g.U(bKX,g.y);bKX.prototype.u8=function(){WQU(this);g.y.prototype.u8.call(this)};var OKb=/[?&]cpn=/;g.U(pj,g.y);pj.prototype.flush=function(){var M={};this.Z&&(M.pe=this.Z);this.K.length>0&&(M.pt=this.K.join("."));this.K=[];return M}; pj.prototype.stop=function(){var M=this,f,A,Q;return g.n(function(N){if(N.Z==1)return g.HX(N,2),g.r(N,(f=M.C)==null?void 0:f.stop(),4);if(N.Z!=2)return(A=N.K)&&M.logTrace(A),g.Rf(N,0);Q=g.id(N);M.Z=MG6(Q.message);g.qc(N)})}; pj.prototype.logTrace=function(M){this.encoder.reset();this.encoder.add(1);this.encoder.add(M.resources.length);for(var f=g.V(M.resources),A=f.next();!A.done;A=f.next()){A=A.value.replace("https://www.youtube.com/s/","");this.encoder.add(A.length);for(var Q=0;Q=0?M:g.KK(this.provider),this.P7?$Q6.has(this.Oq)&&(this.K.size||(this.Oq==="PL"?M>=this.Z+30:M<=this.KJ+30||M>=this.Z+1200&&M<=this.KJ+86400))&&(g.Lj(this,M,"vps",[this.Oq]),this.Z=M):["PL","B","S"].indexOf(this.Oq)>-1&&(this.K.size||M>=this.Z+30)&&(g.Lj(this,M,"vps",[this.Oq]),this.Z=M),this.K.size)){this.sequenceNumber===7E3&&g.$b(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){U6(this,M);var f=this.provider.d_.Jq(); f=g.V(f);for(var A=f.next();!A.done;A=f.next())A=A.value,this.ZB(A.key,A.value);f=M;A=this.provider.d_.FG();var Q=A.droppedVideoFrames||0,N=A.totalVideoFrames||0,Y=Q-this.BY,I=N&&!this.sU;Q>A.totalVideoFrames||Y>5E3?h4t(this,"html5.badframedropcount","df."+Q+";tf."+A.totalVideoFrames):(Y>0||I)&&g.Lj(this,f,"df",[Y]);this.BY=Q;this.sU=N;this.X>0&&(g.Lj(this,M,"glf",[this.X]),this.X=0);tN.isActive()&&(M=tN.h1(),Object.keys(M).length>0&&this.ZB("profile",M));this.zt&&Vo(this,"lwnmow");this.provider.QY.cX()&& this.provider.V("html5_record_now")&&this.ZB("now",{wt:(0,g.W)()});M={};this.provider.videoData.Z&&(M.fmt=this.provider.videoData.Z.itag,(f=this.provider.videoData.C)&&f.itag!==M.fmt&&(M.afmt=f.itag));M.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(M.adcpn=this.adCpn);this.vV&&(M.addocid=this.vV);this.contentCpn&&(M.ccpn=this.contentCpn);this.Er&&(M.cdocid=this.Er);this.provider.videoData.cotn&&(M.cotn=this.provider.videoData.cotn);M.el=FG(this.provider.videoData);M.content_v=du(this.provider.videoData); M.ns=this.provider.QY.Er;M.fexp=kEb(this.provider.QY.experiments).toString();M.cl=(757544469).toString();(f=this.provider.videoData.adFormat||this.adFormat)&&(M.adformat=f);(f=RJ(this.provider.videoData))&&(M.live=f);this.provider.videoData.TP()&&(M.drm=1,this.provider.videoData.N&&(M.drm_system=coK[this.provider.videoData.N.flavor]||0),this.provider.videoData.drmProduct&&(M.drm_product=this.provider.videoData.drmProduct));va()&&this.provider.videoData.G&&(M.ctt=this.provider.videoData.G,M.cttype= this.provider.videoData.DH,this.provider.videoData.mdxEnvironment&&(M.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(M.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Po&&(M.dai_fallback="1")):this.provider.videoData.Jd?M.dai="cs":this.provider.videoData.SN&&(M.dai="disabled");M.seq=this.sequenceNumber++;if(this.provider.videoData.VG){if(f=this.provider.videoData.VG,M&&f)for(f.ns==="3pp"&&(M.ns="3pp"),this.T_.has(f.ns)&& Vo(this,"hbps"),f.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=f.shbpslc),this.provider.QY.experiments.X3("html5_use_server_qoe_el_value")&&this.l8.delete("el"),A=g.V(Object.keys(f)),Q=A.next();!Q.done;Q=A.next())Q=Q.value,this.l8.has(Q)||(M[Q]=f[Q])}else M.event="streamingstats",M.docid=this.provider.videoData.videoId,M.ei=this.provider.videoData.eventId;this.isEmbargoed&&(M.embargoed="1");Object.assign(M,this.provider.QY.K);if(f=M.seq)f={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+f,serializedWatchEndpointLoggingContext:this.provider.videoData.YqY},this.serializedHouseBrandPlayerServiceLoggingContext&&(f.serializedHouseBrandPlayerServiceLoggingContext=NM(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(f.playerResponseCpn=this.provider.videoData.playerResponseCpn),SG.length&&(f.decoderInfo=SG),this.remoteControlMode&&(f.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(f.remoteConnectedDevices= this.remoteConnectedDevices),f=g.lp(f,Zhb),f=g.An(f,4),this.K.set("qclc",[f]);M=g.uj("//"+this.provider.QY.kN+"/api/stats/qoe",M);A=f="";Q=g.V(this.K.entries());for(N=Q.next();!N.done;N=Q.next())Y=g.V(N.value),N=Y.next().value,Y=Y.next().value,I=void 0,(I=Y)!=null&&I.join&&(N="&"+N+"="+Y.join(","),N.length>100?A+=N:f+=N);Edb(this,M+f,A.replace(/ /g,"%20"))}this.K.clear()}}; g.C.Fe=function(M){this.zt=M}; g.C.W0=function(){if(this.provider.videoData.N){var M=this.provider.videoData.N;Vo(this,"eme-"+(M.keySystemAccess?"final":JD(M)?"ms":wc(M)?"ytfp":G5(M)?"safarifp":"nonfinal"))}}; g.C.Je=fb(59);g.C.Mm=function(M){this.isEmbargoed=M}; g.C.EC=fb(36);g.C.Ly=fb(42);g.C.onPlaybackRateChange=function(M){var f=g.KK(this.provider);M&&M!==this.d2&&(g.Lj(this,f,"rate",[M]),this.d2=M);this.P7||this.reportStats(f)}; g.C.Iq=fb(30);g.C.getPlayerState=function(M){if(g.J(M,128))return"ER";if(g.J(M,2048))return"B";if(g.J(M,512))return"SU";if(g.J(M,16)||g.J(M,32))return"S";if(M.isOrWillBePlaying()&&g.J(M,64))return"B";var f=FG6[V_(M)];g.Zs(this.provider.QY)&&f==="B"&&this.provider.d_.getVisibilityState()===3&&(f="SU");f==="B"&&g.J(M,4)&&(f="PB");return f}; g.C.u8=function(){g.y.prototype.u8.call(this);g.qR(this.jk);g.qR(this.oE)}; g.C.v6=function(M){this.isOffline=M;g.Lj(this,g.KK(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.C.ZB=function(M,f,A){var Q=this.Uq.indexOf(M)!==-1;Q||this.Uq.push(M);if(!A||!Q){var N=typeof f!=="string"?x8(f):f;N=LON(N);if(!A&&!/^t[.]/.test(N)){var Y=g.KK(this.provider)*1E3;N="t."+Y.toFixed()+";"+N}Cj(this,"ctmp",M+":"+N);this.logger.debug(function(){return"ctmp "+M+" "+N}); tGb(this);return Y}}; g.C.OA=function(M,f,A){this.N={qR_:Number(this.ZB("glrem",{nst:M.toFixed(),rem:f.toFixed(),ca:+A})),qw:M,CUO:f,isAd:A}}; g.C.Pe=function(M,f,A){g.Lj(this,g.KK(this.provider),"ad_playback",[M,f,A])}; g.C.W5=function(M,f){var A=g.KK(this.provider)*1E3;Cj(this,"daism","t."+A.toFixed(0)+";smw."+(M*1E3).toFixed(0)+";smo."+(f*1E3).toFixed(0))}; g.C.resume=function(){var M=this;isNaN(this.jk)?vdz(this):this.jk=g.Vn(function(){M.reportStats()},1E4)}; var VF={},FG6=(VF[5]="N",VF[-1]="N",VF[3]="B",VF[0]="EN",VF[2]="PA",VF[1]="PL",VF[-1E3]="ER",VF[1E3]="N",VF),$Q6=new Set(["PL","B","S"]),SG=[];CIX.prototype.update=function(){if(this.W){var M=this.By()||0,f=g.KK(this.provider);M>=this.provider.d_.getDuration()-.1&&(this.previouslyEnded=!0);if(M!==this.K||a5D(this,M,f)){var A;if(!(A=Mf-this.iX+2||a5D(this,M,f))){A=this.provider.d_.getVolume();var Q=A!==this.B,N=this.provider.d_.isMuted()?1:0;N!==this.X?(this.X=N,A=!0):(!Q||this.C>=0||(this.B=A,this.C=f),A=f-this.C,this.C>=0&&A>2?(this.C=-1,A=!0):A=!1)}A&&(mO(this),this.j=M);this.iX=f;this.K=M}}}; CIX.prototype.By=function(){var M=this.provider.d_.By();return this.provider.QY.V("html5_disable_live_dvr_shrink_for_cdm_vss")&&k_(this.provider.videoData)?M+this.provider.d_.vX():M};q6d.prototype.send=function(M){var f=this;if(!this.w_){var A=mq9(this),Q=g.uj(this.uri,A);this.QY.V("vss_through_gel_double")&&soz(Q);this.P7&&!this.QY.V("html5_simplify_pings")?ijf(this,Q):Hjb(this,M).then(function(N){f.P7&&(N=N||{},N.method="POST",N.postParams={atr:f.attestationResponse});Gqe(Q,N,{token:f.KJ,o1:f.Z9,mdxEnvironment:f.mdxEnvironment},f.QY,M,f.z0,f.isFinal&&f.vy||f.g_||f.j&&f.Yx)}); this.w_=!0}}; q6d.prototype.Z=function(M){M===void 0&&(M=NaN);return Number(M.toFixed(3)).toString()}; var ai={},gdb=(ai.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,ai.LIVING_ROOM_APP_MODE_MAIN=1,ai.LIVING_ROOM_APP_MODE_KIDS=2,ai.LIVING_ROOM_APP_MODE_MUSIC=3,ai.LIVING_ROOM_APP_MODE_UNPLUGGED=4,ai.LIVING_ROOM_APP_MODE_GAMING=5,ai),qB={},R4c=(qB.EMBEDDED_PLAYER_MODE_UNKNOWN=0,qB.EMBEDDED_PLAYER_MODE_DEFAULT=1,qB.EMBEDDED_PLAYER_MODE_PFP=2,qB.EMBEDDED_PLAYER_MODE_PFL=3,qB);g.U(cV,g.y);cV.prototype.wf=function(){this.K.update();$qN(this)&&(rvT(this),uaN(this))}; cV.prototype.u8=function(){g.y.prototype.u8.call(this);BV(this);Uqb(this.K)}; cV.prototype.lI=function(){return mq9(Ro(this,"playback"))}; cV.prototype.Cy=function(M){var f=Ro(this,"engage");f.jk=M;return cvT(f,kPD(this.provider))};bjD.prototype.isEmpty=function(){return this.endTime===this.startTime};xd.prototype.V=function(M){return this.QY.V(M)}; xd.prototype.getCurrentTime=function(){return this.d_.getCurrentTime()}; xd.prototype.By=function(){return this.d_.By()}; var WOe={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.U(g.Z5,g.y);g.C=g.Z5.prototype;g.C.wf=function(){if(this.provider.videoData.enableServerStitchedDai&&this.OJ){var M;(M=this.j.get(this.OJ))==null||M.wf()}else this.K&&this.K.wf()}; g.C.Mm=function(M){this.qoe&&this.qoe.Mm(M)}; g.C.EC=fb(35);g.C.Ly=fb(41);g.C.W5=function(M,f){this.qoe&&this.qoe.W5(M,f)}; g.C.kd=function(){if(this.provider.videoData.enableServerStitchedDai&&this.OJ){var M;(M=this.j.get(this.OJ))!=null&&mO(M.K)}else this.K&&mO(this.K.K)}; g.C.xC=function(M,f){this.qoe&&h4t(this.qoe,M,f);if(this.Z)this.Z.onError(M)}; g.C.onPlaybackRateChange=function(M){if(this.qoe)this.qoe.onPlaybackRateChange(M);this.K&&mO(this.K.K)}; g.C.Je=fb(58);g.C.ZB=function(M,f,A){this.qoe&&this.qoe.ZB(M,f,A)}; g.C.OA=function(M,f,A){this.qoe&&this.qoe.OA(M,f,A)}; g.C.lR=function(M){var f;(f=this.qoe)==null||f.lR(M)}; g.C.vO=function(M){var f;(f=this.qoe)==null||f.vO(M)}; g.C.Fe=function(M){this.qoe&&this.qoe.Fe(M)}; g.C.Pe=function(M,f,A){this.qoe&&this.qoe.Pe(M,f,A)}; g.C.Iq=fb(29);g.C.vM=function(){if(this.qoe)return this.qoe.vM()}; g.C.lI=function(){if(this.provider.videoData.enableServerStitchedDai&&this.OJ){var M,f;return(f=(M=this.j.get(this.OJ))==null?void 0:M.lI())!=null?f:{}}return this.K?this.K.lI():{}}; g.C.qt=function(){var M;return(M=this.qoe)==null?void 0:M.qt()}; g.C.T1=function(M,f){var A;(A=this.qoe)==null||A.T1(M,f)}; g.C.Cy=function(M){return this.K?this.K.Cy(M):function(){}}; g.C.getVideoData=function(){return this.provider.videoData}; g.C.resume=function(){this.qoe&&this.qoe.resume()};g.U(zP,g.y);zP.prototype.C4=function(){if(this.K.has(void 0)){var M=this.K.get(void 0);if(!(void 0).videoId||M.K&&M.qoe)return;this.K.has(void 0)&&(GPe(this.K.get(void 0)),this.K.delete(void 0))}if(!this.K.has(void 0)){M=new xd(void 0,this.QY,this.d_);var f=Math.round(rN(this.Z)*1E3);M=new g.Z5(M,f);M.K&&M.qoe||this.Z.ZB("nqv",{vv:(void 0).videoId});f=this.Z.getVideoData();this.K.set(void 0,M);if(M.qoe){var A=M.qoe,Q=f.videoId||"";A.contentCpn=f.clientPlaybackNonce;A.Er=Q}Ojb(M)}}; zP.prototype.sx=function(M){if(M!==void 0){var f=this.O$(M),A=this.O$(),Q,N=M===((Q=f.getVideoData())==null?void 0:Q.clientPlaybackNonce),Y;Q=void 0===((Y=A.getVideoData())==null?void 0:Y.clientPlaybackNonce);var I;Y=N?((I=f.getVideoData())==null?void 0:I.videoId)||"":"nvd";var D;I=Q?((D=A.getVideoData())==null?void 0:D.videoId)||"":"nvd";N&&(f=f.qoe)!=null&&(qq(f,4,0,void 0,I),f.reportStats());Q&&(uI(A),(f=A.qoe)!=null&&(qq(f,4,1,M,Y),f.reportStats()),KOX(A,new g.CJ(void 0,A.Oq)),XVU(A))}}; zP.prototype.O$=function(M){M=M||this.OJ;return this.K.get(M)||this.Z};g.U(g.PV,g.y);g.C=g.PV.prototype;g.C.L3=function(M,f){this.sync();f&&this.K.array.length>=2E3&&this.m9("captions",1E4);f=this.K;if(M.length>1&&M.length>f.array.length)f.array=f.array.concat(M),f.array.sort(f.K);else{M=g.V(M);for(var A=M.next();!A.done;A=M.next())A=A.value,!f.array.length||f.K(A,f.array[f.array.length-1])>0?f.array.push(A):g.$e(f.array,A,f.K)}this.j=NaN;this.sync()}; g.C.hT=function(M){M.length>1E4&&g.$b(new g.GX("Over 10k cueRanges removal occurs with a sample: ",M[0]));if(!this.ek()){var f=new Set(M);this.Z=this.Z.filter(function(A){return!f.has(A)}); D3U(this.K,f);this.sync()}}; g.C.m9=function(M,f){var A=(isNaN(this.j)?g.J(this.d_.getPlayerState(),2)?0x8000000000000:this.d_.getCurrentTime()*1E3:this.j)-f;f=this.wc().filter(function(Q){return Q.namespace===M&&Q.endthis.K,Y=g.J(A,8)&&g.J(A,16),I=this.d_.N_().isBackground()||A.isSuspended();WV(this,this.w_,Y&&!I,N,"qoe.slowseek",function(){},"timeout"); var D=isFinite(this.K);D=Y&&D&&diN(f,this.K);var E=!Q||Math.abs(Q-this.K)>10,t=this.QY.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),v=Q===0&&this.Z&&[11,10].includes(this.Z);WV(this,this.l8,D&&E&&!I&&(!t||!v),N,"qoe.slowseek",function(){f.seekTo(M.K)},"set_cmt"); E=D&&Sr(f.a9(),this.K);var p=this.d_.loader;D=!p||p.Yd();var h=function(){f.seekTo(M.K+.001)}; WV(this,this.fJ,E&&D&&!I,N,"qoe.slowseek",h,"jiggle_cmt");D=function(){return M.d_.bM()}; WV(this,this.ox,E&&!I,N,"qoe.slowseek",D,"new_elem");E=Uj(A);t=A.isBuffering();var S=f.a9(),L=hE(S,Q),a=L>=0&&S.end(L)>Q+5,q=E&&t&&a;v=this.d_.getVideoData();WV(this,this.nJ,Q<.002&&this.K<.002&&Y&&g.Zs(this.QY)&&g.ym(v)&&!I,N,"qoe.slowseek",D,"slow_seek_shorts");WV(this,this.B,v.E3()&&Y&&!I&&!v.g_,N,"qoe.slowseek",D,"slow_seek_gapless_shorts");WV(this,this.KJ,q&&!I,E&&!t,"qoe.longrebuffer",h,"jiggle_cmt");WV(this,this.jk,q&&!I,E&&!t,"qoe.longrebuffer",D,"new_elem_nnr");if(p){var m=p.getCurrentTime(); Y=f.eD();Y=xie(Y,m);Y=!p.isSeeking()&&Q===Y;WV(this,this.Z9,E&&t&&Y&&!I,E&&!t&&!Y,"qoe.longrebuffer",function(){f.seekTo(m)},"seek_to_loader")}Y={}; h=hE(S,Math.max(Q-3.5,0));q=h>=0&&Q>S.end(h)-1.1;var R=h>=0&&h+1=0&&q&&R<11;Y.close2edge=q;Y.gapsize=R;Y.buflen=S.length;this.Z&&(Y.seekSour=this.Z);WV(this,this.P7,E&&t&&!I,E&&!t,"qoe.longrebuffer",function(){},"timeout",Y); Y=A.isSuspended();Y=this.d_.b2()&&!Y;WV(this,this.W,Y,!Y,"qoe.start15s",function(){M.d_.uM("ad")},"ads_preroll_timeout"); Y=this.QY.experiments.X3("html5_use_playback_rate_in_skip_slow_ad")?this.d_.getPlaybackRate()*1E3:1E3;L=Q-this.C5;WV(this,this.Ji,g.ym(v)&&p,E&&!t,"qoe.longrebuffer",function(){M.d_.j4()},"reset_media_source"); WV(this,this.YO,g.ym(v)&&p,E&&!t,"qoe.longrebuffer",D,"reset_media_element");this.C===0&&(this.G=Q);p=t&&this.K===0&&Q>1&&Q===this.G;WV(this,this.g_,g.ym(v)&&p,E&&!t,"qoe.slowseek",function(){f.seekTo(0)},"reseek_after_time_jump"); I=A.isOrWillBePlaying()&&!I;a=this.d_.YN()-Q<6&&!a&&this.d_.Xu();WV(this,this.X,v.E3()&&I&&t&&a,E&&!t,"qoe.longrebuffer",function(){M.d_.bM(!1,!0)},"handoff_end_long_buffer_reload"); A=Em(v)&&this.Z===104&&I&&(t||g.J(A,8)&&g.J(A,16));WV(this,this.Er,A,N,"qoe.start15s",D,"gapless_slow_start");this.C=Q;this.N.start()}}; kd.prototype.xC=function(M,f,A){f=this.lI(f);f.wn=A;f.wdup=this.j[M]?"1":"0";this.d_.xC(new ZZ(M,f));this.j[M]=!0}; kd.prototype.lI=function(M){M=Object.assign(this.d_.lI(!0),M.lI());this.K&&(M.stt=this.K.toFixed(3));this.d_.getVideoData().isLivePlayback&&(M.ct=this.d_.getCurrentTime().toFixed(3),M.to=this.d_.vX().toFixed(3));delete M.uga;delete M.euri;delete M.referrer;delete M.fexp;delete M.vm;return M}; eG.prototype.reset=function(){this.K=this.Z=this.j=this.startTimestamp=0;this.C=!1}; eG.prototype.test=function(M){if(!this.N||this.Z)return!1;if(!M)return this.reset(),!1;M=(0,g.W)();if(!this.startTimestamp)this.startTimestamp=M,this.j=0;else if(this.j>=this.N)return this.Z=M,!0;this.j+=1;return!1}; eG.prototype.lI=function(){var M={},f=(0,g.W)();this.startTimestamp&&(M.wsd=(f-this.startTimestamp).toFixed());this.Z&&(M.wtd=(f-this.Z).toFixed());this.K&&(M.wssd=(f-this.K).toFixed());return M};g.U(BJb,g.y);g.C=BJb.prototype;g.C.setMediaElement=function(M){(this.mediaElement=M)?(this.mediaElement&&(this.N||this.j||!this.mediaElement.e8()||this.seekTo(.01,{Cd:"seektimeline_setupMediaElement"})),O6(this)):Jv(this)}; g.C.getCurrentTime=function(){if(Xa(this.d_)){if(!isNaN(this.Z))return this.Z}else if(!isNaN(this.Z)&&isFinite(this.Z))return this.Z;return this.mediaElement&&eDz(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.j||0}; g.C.g7=function(){return this.w_}; g.C.By=function(){return this.getCurrentTime()-this.vX()}; g.C.N4=function(){return this.K?this.K.N4():Infinity}; g.C.isAtLiveHead=function(M){if(!this.K)return!1;M===void 0&&(M=this.getCurrentTime());return yo(this.K,M)}; g.C.uX=function(){return!!this.K&&this.K.uX()}; g.C.seekTo=function(M,f){var A=f===void 0?{}:f;f=A.D4===void 0?!1:A.D4;var Q=A.Oy===void 0?0:A.Oy;var N=A.RD===void 0?!1:A.RD;var Y=A.G4===void 0?0:A.G4;var I=A.Cd===void 0?"":A.Cd;var D=A.seekSource===void 0?void 0:A.seekSource;var E=A.AY===void 0?!1:A.AY;var t=A.B8===void 0?!1:A.B8;A=A.rI===void 0?!1:A.rI;E&&(M+=this.vX());pk(this.videoData)&&D===29&&(this.w_=void 0);E=M=this.S$())||!g.Zt(this.videoData),v||(a={st:a,mst:this.S$()},this.K&&this.V("html5_high_res_seek_logging")&&(a.ht=this.K.N4(),a.adft=q3X(this.K)),this.d_.ZB("seeknotallowed",a)),a=v));if(!a)return this.C&&(this.C=null,F_N(this)),g.u4(this.getCurrentTime());a=.005;t&&this.V("html5_sabr_seek_no_shift_tolerance")&&(a=0);if(Math.abs(M-this.Z)<=a&&this.KJ)return this.N;I&&(a=M,(this.QY.cX()||this.V("html5_log_seek_reasons"))&&this.d_.ZB("seekreason",{reason:I, tgt:a}));D&&(this.X.Z=D);this.KJ&&Jv(this);this.N||(this.N=new Yl);M&&!isFinite(M)&&rtN(this,!1);(I=A||E)||(I=M,I=!(this.videoData.isLivePlayback&&this.videoData.j&&!this.videoData.j.K&&!(this.mediaElement&&this.mediaElement.uS()>0&&TE(this.mediaElement)>0)||Ck(this.videoData)&&this.hd()===this.S$(!1)?0:isFinite(I)||!Ck(this.videoData)));I||(M=GP(this,M,N));M&&!isFinite(M)&&rtN(this,!1);this.j=M;this.ox=Y;this.Z=M;this.G=0;this.K&&(N=this.K,Y=M,Ho6(N,Y,!1),m30(N,Y));N=this.d_;Y=M;I={D4:f,seekSource:D}; N.Ad.j=Y;A=N.OQ;A.mediaTime=Y;A.K=!0;I.D4&&N.Jb(I);I=Y>N.videoData.endSeconds&&Y>N.videoData.limitedPlaybackDurationInSeconds;N.eh&&I&&isFinite(Y)&&aA0(N);Yf.start&&aA0(this.d_);return this.N}; g.C.S$=function(M){if(!this.videoData.isLivePlayback)return this.d_.videoData.S$();var f;return MZ(this.videoData)&&((f=this.mediaElement)==null?0:f.isPaused())&&this.videoData.K?(M=this.getCurrentTime(),Z_f(this.VJ(M)*1E3)+M):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&pk(this.videoData)&&this.videoData.K?M?this.videoData.K.KJ||0:this.videoData.K.B_||0:Ck(this.videoData)&&this.videoData.Er&&this.videoData.K?this.videoData.K.S$()+this.timestampOffset:this.videoData.j&&this.videoData.j.K? !M&&this.K?this.K.N4():this.d_.videoData.S$()+this.timestampOffset:this.mediaElement?K0()?Z_f(g.F(this.mediaElement.zz()).getTime()):TE(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.C.hd=function(){if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&pk(this.videoData)){var M;return((M=this.videoData.K)==null?void 0:M.jQ)||0}M=this.videoData?this.videoData.hd()+this.timestampOffset:this.timestampOffset;if(MZ(this.videoData)&&this.videoData.K){var f,A=Number((f=this.videoData.progressBarStartPosition)==null?void 0:f.utcTimeMillis)/1E3;f=this.getCurrentTime();f=this.VJ(f)-f;if(!isNaN(A)&&!isNaN(f))return Math.max(M,A-f)}return M}; g.C.R6=function(){this.N||this.seekTo(this.j,{Cd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.C.Pk=function(){return this.KJ&&!isFinite(this.Z)}; g.C.u8=function(){uge(this,null);this.X.dispose();g.y.prototype.u8.call(this)}; g.C.lI=function(){var M={};this.loader&&Object.assign(M,this.loader.lI());this.mediaElement&&Object.assign(M,this.mediaElement.lI());return M}; g.C.wK=function(M){this.timestampOffset=M}; g.C.getStreamTimeOffset=function(){return Ck(this.videoData)?0:this.videoData.K?this.videoData.K.getStreamTimeOffset():0}; g.C.vX=function(){return this.timestampOffset}; g.C.VJ=function(M){return this.videoData&&this.videoData.K?this.videoData.K.VJ(M-this.timestampOffset):NaN}; g.C.fM=function(){if(!this.mediaElement)return 0;if(ru(this.videoData)){var M=this.mediaElement,f=M.a9();M=(CO(f)&&M.getDuration()?f.end(f.length-1):0)+this.timestampOffset-this.hd();f=this.S$()-this.hd();return Math.max(0,Math.min(1,M/f))}return this.mediaElement.fM()}; g.C.NZ=function(M){this.W&&(this.W.K=M)}; g.C.p_=function(M,f){this.d_.ZB("requestUtcSeek",{time:M});pk(this.videoData)&&(this.w_=M);var A;(A=this.loader)==null||A.p_(M);f&&(this.P7=f)}; g.C.Ir=function(M){pk(this.videoData)&&(this.w_=void 0);if(this.P7)this.d_.ZB("utcSeekingFallback",{source:"streamTime",timeSeconds:this.P7}),this.d_.seekTo(this.P7,{Cd:"utcSeekingFallback_streamTime"}),this.P7=0;else{var f=this.getCurrentTime();isNaN(f)||(M=this.VJ(f)-M,f-=M,this.d_.ZB("utcSeekingFallback",{source:"estimate",timeSeconds:f}),this.d_.seekTo(f,{Cd:"utcSeekingFallback_estimate"}))}}; g.C.Xj=function(){this.P7=0}; g.C.V=function(M){return this.QY&&this.QY.V(M)};g.U(wN,g.y);wN.prototype.start=function(){this.Z.start()}; wN.prototype.stop=function(){this.Z.stop()}; wN.prototype.clear=function(){for(var M=g.V(this.K.values()),f=M.next();!f.done;f=M.next())f.value.clear()}; wN.prototype.sample=function(){for(var M=g.V(this.j),f=M.next();!f.done;f=M.next()){var A=g.V(f.value);f=A.next().value;A=A.next().value;this.K.has(f)||this.K.set(f,new Jtt(yom.has(f)));this.K.get(f).update(A())}this.Z.start()}; var yom=new Set(["networkactivity"]);Jtt.prototype.update=function(M){this.Z?(this.buffer.add(M-this.K||0),this.K=M):this.buffer.add(M)}; Jtt.prototype.clear=function(){this.buffer.clear();this.K=0};fo.prototype.DF=function(){return this.started}; fo.prototype.start=function(){this.started=!0}; fo.prototype.reset=function(){this.finished=this.started=!1};var M3d=!1;g.U(g.Yx,g.pi);g.C=g.Yx.prototype;g.C.u8=function(){this.logger.debug("dispose");g.qR(this.UE);DwN(this.Zy);this.visibility.unsubscribe("visibilitystatechange",this.Zy);pt9(this);D7(this);g.k6.i5(this.MZ);this.eA();this.hX=null;g.hW(this.videoData);g.hW(this.ph);g.hW(this.Hd);g.hW(this.C0);g.Sy(this.cik);this.eh=null;g.pi.prototype.u8.call(this)}; g.C.Pe=function(M,f,A,Q,N){if(this.QY.V("html5_log_ad_playback_docid")){var Y=this.O$();if(Y.qoe){Y=Y.qoe;var I=this.QY.Er||"yt";g.Lj(Y,g.KK(Y.provider),"ad_playback",[M,f,A,N,I])}}else this.O$().Pe(M,f,A);this.V("html5_log_media_perf_info")&&this.ZB("adloudness",{ld:Q.toFixed(3),cpn:M})}; g.C.U7=function(){var M;return(M=this.loader)==null?void 0:M.U7()}; g.C.gh=function(){var M;return(M=this.loader)==null?void 0:M.gh()}; g.C.hI=function(){var M;return(M=this.loader)==null?void 0:M.hI()}; g.C.a6=function(){var M;return(M=this.loader)==null?void 0:M.a6()}; g.C.TP=function(){return this.videoData.TP()}; g.C.PU=function(){return this.V("html5_not_reset_media_source")&&!this.TP()&&!this.videoData.isLivePlayback&&g.ym(this.videoData)&&!this.QY.supportsGaplessShorts()}; g.C.Rp=function(){this.videoData.W&&(this.videoData.lK=this.videoData.lK||this.fd.v7().U7(),this.videoData.rM=this.videoData.rM||this.fd.v7().gh());if(Vvb(this.videoData)||!wu(this.videoData)){var M=this.videoData.errorDetail;this.Cx(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),M,M,this.videoData.cN||void 0)}this.V("html5_generate_content_po_token")&&this.sf();this.V("html5_enable_d6de4")&&this.YJ()}; g.C.t7=function(){return this.uR}; g.C.C4=function(){!this.t2||this.t2.ek();this.t2=new g.Z5(new xd(this.videoData,this.QY,this));this.QY.V("html5_ssap_logging_manager_cleanup")||(this.uR=new zP(this.QY,this,this.t2))}; g.C.getVideoData=function(){return this.videoData}; g.C.T=function(){return this.QY}; g.C.MK=function(){return this.TQ.MK(this.hX)}; g.C.O$=function(M){if(this.QY.V("html5_ssap_logging_manager_cleanup"))M=this.t2;else if(M)a:{for(var f=this.uR,A=g.V(f.K.values()),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.getVideoData().videoId===M){M=Q;break a}M=f.Z}else M=this.uR.O$();return M}; g.C.N_=function(){return this.visibility}; g.C.wC=function(){return this.mediaElement&&this.mediaElement.yu()?this.mediaElement.iI():null}; g.C.j$=function(){return this.mediaElement}; g.C.KM=function(){if(this.V("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.T().G&&this.T().houseBrandUserStatus&&this.ZB("hbut",{status:this.T().houseBrandUserStatus});if(this.videoData.hh())return!0;this.Cx("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.C.Vt=function(M){(M=M===void 0?!1:M)||uI(this.O$());this.by=M;!this.KM()||this.j1.DF()?g.Zs(this.QY)&&this.videoData.isLivePlayback&&this.j1.DF()&&!this.j1.finished&&!this.by&&this.VI():(this.j1.start(),M=this.O$(),rN(M),M.qoe&&vdz(M.qoe),this.VI())}; g.C.VI=function(){if(this.videoData.isLoaded()){var M=this.ph;g.CE(M.i8.experiments,"html5_player_min_build_cl")>0&&g.CE(M.i8.experiments,"html5_player_min_build_cl")>757544469&&Uwz(M,"oldplayer");oid(this)}else this.videoData.OC||this.videoData.Eu?this.by&&g.Zs(this.QY)&&this.videoData.isLivePlayback||(this.videoData.OC?Q$9(this.videoData):(M=this.O$(),M.qoe&&(M=M.qoe,Vo(M,"protected"),M.provider.videoData.N?M.W0():M.provider.videoData.subscribe("dataloaded",M.W0,M)),wr6(this.videoData))):!this.videoData.loading&& this.e0&&h8e(this)}; g.C.Ho=function(M){this.Od=M;this.loader&&(Ql0(this.loader,new g.Gq(M)),this.ZB("sdai",{sdsstm:1}))}; g.C.e_=function(){return null}; g.C.vN=fb(16);g.C.isFullscreen=function(){return this.visibility.isFullscreen()}; g.C.isBackground=function(){return this.visibility.isBackground()}; g.C.aZ=function(){var M=this;this.logger.debug("Updating for format change");Ia(this).then(function(){return N3(M)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.C.Yu=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Vt();this.KM()&&!g.J(this.playerState,128)&&(this.iK.DF()||(this.iK.start(),this.videoData.KS?this.Q7(SV(this.playerState,4)):this.Q7(SV(SV(this.playerState,8),1))),SM6(this))}; g.C.C5=function(){return this.j1.finished}; g.C.sendAbandonmentPing=function(){g.J(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.E8(!0),pt9(this),g.k6.i5(this.MZ))}; g.C.JF=function(M,f){M=M===void 0?!0:M;(f===void 0||f)&&this.mediaElement&&this.mediaElement.pause();this.Q7(M?new g.v8(14):new g.v8)}; g.C.TF=function(){this.O$().kd()}; g.C.Cx=function(M,f,A,Q,N,Y){this.logger.debug(function(){return"set player error: ec="+M+", detail="+N}); var I,D;g.w7(leW,A)?I=A:A?D=A:I="GENERIC_WITHOUT_LINK";Q=(Q||"")+(";a6s."+pe());if(M==="auth"||M==="drm.auth"||M==="heartbeat.stop")A&&(Q+=";r."+A.replaceAll(" ","_")),Y&&(Q+="sr."+Y.replaceAll(" ","_"));f={errorCode:M,errorDetail:N,errorMessage:D||g.yl[I]||"",y0:I,cN:Y||"",RP:Q,vG:f,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=M;Tn(this,"dataloaderror");this.Q7(hm(this.playerState,128,f));g.k6.i5(this.MZ);D7(this);this.Xi()}; g.C.uM=function(M){this.yr=this.yr.filter(function(f){return M!==f}); this.logger.debug(function(){return"set preroll ready for "+M}); this.iK.DF()&&SM6(this)}; g.C.Rk=function(){var M;(M=!!this.yr.length)||(M=this.W2.K.array[0],M=!!M&&M.start<=-0x8000000000000);return M}; g.C.uX=function(){return this.Ad.uX()}; g.C.isPlaying=function(){return this.playerState.isPlaying()}; g.C.L1=function(){return this.playerState.L1()&&this.videoData.KS}; g.C.getPlayerState=function(){return this.playerState}; g.C.N7=function(M){var f;(f=this.loader)==null||f.N7(M)}; g.C.Gy=function(M){var f;(f=this.loader)==null||f.Gy(M)}; g.C.getPlayerType=function(){return this.playerType}; g.C.getPreferredQuality=function(){if(this.hX){var M=this.hX;M=M.videoData.CM.compose(M.videoData.RV);M=ar(M)}else M="auto";return M}; g.C.LZ=fb(22);g.C.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.C.setMediaElement=function(M){this.logger.debug("set media element");if(this.mediaElement&&M.iI()===this.mediaElement.iI()&&(M.isView()||this.mediaElement.isView())){if(M.isView()||!this.mediaElement.isView())this.un(),this.mediaElement=M,this.mediaElement.d_=this,r49(this),this.Ad.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.eA();if(!this.playerState.isError()){var f=Ls(this.playerState,512);g.J(f,8)&&!g.J(f,2)&&(f=SV(f,1));M.isView()&&(f=Ls(f,64));this.Q7(f)}this.mediaElement= M;this.mediaElement.d_=this;!g.Zs(this.QY)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);r49(this);this.Ad.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.ph.Nh()&&j1b(this.mediaElement)}}; g.C.eA=function(M,f,A){M=M===void 0?!1:M;f=f===void 0?!1:f;A=A===void 0?!1:A;this.logger.debug("remove media element");if(this.mediaElement){var Q=this.getCurrentTime();Q>0&&(this.Ad.j=Q);this.Ad.setMediaElement(null);!M&&this.PU()?gib(this):this.G8(A);this.loader&&(bK(this.loader),po(this,f));this.KT.stop();if(this.mediaElement&&(!this.iK.DF()&&!this.b2()||this.playerState.isError()||g.J(this.playerState,2)||this.Q7(SV(this.playerState,512)),this.mediaElement)){this.un();if(M||!this.mediaElement.isView())this.pk.d9("mesv_s"), this.mediaElement.stopVideo(),ht(this);this.mediaElement=this.mediaElement.d_=null}}}; g.C.playVideo=function(M,f){M=M===void 0?!1:M;f=f===void 0?!1:f;var A=this,Q,N,Y,I,D,E;return g.n(function(t){if(t.Z==1){A.logger.debug("start play video");var v=window.google_image_requests;v&&v.length>10&&(window.google_image_requests=v.slice(-10));if(g.J(A.playerState,128))return t.return();if(A.ph.aD())return A.publish("signatureexpired"),t.return();A.mediaElement&&uI(A.O$());A.Yu();(g.J(A.playerState,64)||M)&&A.Q7(SV(A.playerState,8));return A.iK.finished&&A.mediaElement?A.hX||!A.g8?t.CJ(2): g.r(t,A.g8,3):t.return()}if(t.Z!=2&&g.J(A.playerState,128))return t.return();if(!A.videoData.j)return A.videoData.isLivePlayback&&!g.pt(A.QY.N,!0)?(Q="html5.unsupportedlive",N=2):(Q=A.videoData.TP()?"fmt.unplayable":"fmt.noneavailable",N=1),g.$b(Error("selectableFormats")),A.Cx(Q,N,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),t.return();if(A.Dy()&&A.videoData.j.K)return A.logger.debug("rebuild playbackData for airplay"),t.return(Ia(A));if(Xa(A))v=A.Ad,oJ(v.videoData)&&!v.isAtLiveHead(v.getCurrentTime())&& v.uX()&&v.d_.seekTo(Infinity,{Cd:"seektimeline_peggedToLive",seekSource:34});else if(oJ(A.videoData)&&(Y=A.getCurrentTime()I;if(!D||!I){Y&&D&&(Q=Math.max(Q,Y));var E;Y=cGe(f,(E=N.K)==null?void 0:E.videoInfos);E=f.d_.getPlaybackRate();E>1&&Y&&(E=Jmd(f.QY.N,N.K.videoInfos,E),M.K!==0&& E=480;if(f.V("html5_exponential_memory_for_sticky")){t=f.QY.R5;v=1;var p=p===void 0?!1:p;vzd(t,"sticky-lifetime");t.values["sticky-lifetime"]&&t.Rs["sticky-lifetime"]||(t.values["sticky-lifetime"]=0,t.Rs["sticky-lifetime"]=0);p&&xI(t,"sticky-lifetime")>.0625&&(v=t.Rs["sticky-lifetime"]*2); t.values["sticky-lifetime"]+=1*Math.pow(2,t.K/v);t.Rs["sticky-lifetime"]=v;t.C.start()}if(f.V("html5_perf_cap_override_sticky")){p=f.j;t=f.V("html5_perserve_av1_perf_cap");t=t===void 0?!1:t;if(t===void 0?0:t){v=lU();M=g.V(Object.keys(v));for(f=M.next();!f.done;f=M.next())f=f.value,f.indexOf("1")!==0&&delete v[f];g.jA("yt-player-performance-cap",v,2592E3)}else g.FN("yt-player-performance-cap");Xce(t);if(t){t=g.V(bX.keys());for(v=t.next();!v.done;v=t.next())v=v.value,v.startsWith("1")||bX.delete(v); t=g.V(E6.values());for(v=t.next();!v.done;v=t.next())v=v.value,v.startsWith("1")||E6.delete(v);t=g.V(p.keys());for(v=t.next();!v.done;v=t.next())v=v.value,v.startsWith("1")||p.delete(v)}else bX.clear(),E6.clear(),p.clear()}}}this.loader&&(p=this.loader,A=A||"",p.policy.K?JX(p.C.K,A):JX(p.K.N,A));this.LF()}; g.C.getUserPlaybackQualityPreference=function(){return this.videoData.j&&!this.videoData.j.K?ar(this.videoData.CM):Vc[Gv()]}; g.C.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.C.setUserAudio51Preference=function(M,f){this.getUserAudio51Preference()!==M&&(this.ZB("toggle51",{pref:M}),g.jA("yt-player-audio51",M,f?31536E3:2592E3),this.aZ())}; g.C.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.C.setProximaLatencyPreference=function(M){var f=this.getProximaLatencyPreference();this.ZB("proxima",{pref:M});g.jA("yt-player-proxima-pref",M,31536E3);f!==M&&(M=this.Ad,M.l8=!0,M.d_.seekTo(Infinity,{Cd:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.C.getProximaLatencyPreference=function(){var M;return(M=wp())!=null?M:0}; g.C.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.C.sf=function(){this.videoData.videoId?this.fd.sf(this.videoData):this.ZB("povid",{})}; g.C.YJ=function(){this.videoData.videoId?this.fd.YJ(this.videoData):this.ZB("piavid",{})}; g.C.LF=function(){if(!this.ek()&&!g.J(this.playerState,128)&&this.videoData.j){if(this.videoData.j.K)Qu(this);else{var M=vz(this),f=this.videoData;a:{var A=this.videoData.y7;if(M.K){for(var Q=g.V(A),N=Q.next();!N.done;N=Q.next()){N=N.value;var Y=N.getInfo(),I=g.bT[Y.video.quality];if((!M.j||Y.video.quality!=="auto")&&I<=M.K){A=N;break a}}A=A[A.length-1]}else A=A[0]}f.Ji=A;qMe(this,M.reason,Pf9(this,this.videoData.Ji))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Ad.jk= !1,this.playVideo()}}; g.C.PV=function(M,f){if(this.ek()||g.J(this.playerState,128))return!1;var A,Q=!((A=this.videoData.j)==null||!A.K);A=Q&&f?this.getCurrentTime()-this.vX():NaN;if(this.QY.experiments.X3("html5_record_audio_format_intent")){var N=this.O$();if(N.qoe){N=N.qoe;var Y=[M.qV.id,isNaN(A)?"m":"t"];g.Lj(N,g.KK(N.provider),"afi",Y)}}if(Q)return f&&(Q=Pz6(this.Ad),this.ZB("aswh",{id:M.id,xtags:M.xtags,bh:Q.toFixed(3)})),this.loader.setAudioTrack(M,A,f),!0;if(mP9(this)){a:{f=this.mediaElement.audioTracks();for(Q= 0;Q=0?M:this.getCurrentTime()}; g.C.VJ=function(){var M;return((M=this.videoData.K)==null?0:M.VJ)?this.videoData.K.VJ(this.getCurrentTime()-this.vX()):this.mediaElement&&(M=this.mediaElement.zz())&&(M=M.getTime(),!isNaN(M))?M/1E3+this.getCurrentTime():NaN}; g.C.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.vX():this.S$()?this.S$():0}; g.C.lT=function(){var M=new f7d;if(this.loader){var f=this.QY.schedule,A=this.QY.cX();A=A===void 0?!1:A;M.wM=f.jk;M.E1=f.ox;M.bandwidthEstimate=Bs(f);if(A){A=(f.X.LW()*1E3).toFixed();var Q=(f.z0.LW()*1E3).toFixed(),N=cs(f).toFixed(2),Y=((f.W.LW()||0)*1E9).toFixed(2),I=f.j.LW().toFixed(0),D=f.g_.LW().toFixed(0),E=f.B.percentile(.5).toFixed(2),t=f.B.percentile(.92).toFixed(2),v=f.B.percentile(.96).toFixed(2),p=f.B.percentile(.98).toFixed(2);f.K?f.K.reset():f.K=new o3;f.K.add(f.P7);f.K.add(f.interruptions.length); for(var h=0,S=f.interruptions.length-1;S>=0;S--){var L=f.interruptions[S];f.K.add(L-h);h=L}h=0;for(S=f.C.length-1;S>=0;S--){L=f.C[S];var a=L.stamp/36E5;f.K.add(a-h);h=a;f.K.add(L.net/1E3);f.K.add(L.max)}f=f.K.Ky();M.K={ttr:A,ttm:Q,d:N,st:Y,bw:I,abw:D,v50:E,v92:t,v96:v,v98:p,"int":f}}AU9(this.loader,M)}else this.mediaElement&&(M.Bt=Dj(this.mediaElement));M.wM=this.wM;M.E1=this.E1;M.j=this.isAtLiveHead()&&this.isPlaying()?t3f(this):NaN;return M}; g.C.w8=function(M,f){this.E1+=M;this.wM+=f}; g.C.fM=function(){return this.mediaElement?g.Zt(this.videoData)?1:ru(this.videoData)?this.isAtLiveHead()||this.uX()?1:this.Ad.fM():this.mediaElement.fM():0}; g.C.O7=function(){var M=this.AE,f=M3(M,"bandwidth"),A=M3(M,"bufferhealth"),Q=M3(M,"livelatency"),N=M3(M,"networkactivity"),Y=lI(M,"bandwidth"),I=lI(M,"bufferhealth"),D=lI(M,"livelatency");M=lI(M,"networkactivity");var E=this.FG(),t=E.droppedVideoFrames;E=E.totalVideoFrames;var v=this.getCurrentTime();if(this.Fn){var p="IT/"+(this.Fn.K.getInfo()+"/"+ar(this.A6()));p+="/"+this.Fn.getInfo()}else p="";var h=this.isGapless(),S=this.Ci(),L=this.vM(),a=g.tt(this),q=this.getPlayerState(),m=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var R=0;var u="";if(this.Od){if(this.Od.ST){u="D,";break a}R=this.Od.yS;u=this.Od.n3.substring(0,4)}R>0?(R="AD"+R+", ",u&&(R+=u+", "),u=R):u=""}return{My:Y,JL:I,currentTime:v,tW:p,droppedVideoFrames:t,isGapless:h,Ci:S,zZ:L,wP:f,Y6:A,J4:Q,X5:N,al:D,oL:M,cS:a,playerState:q,Yf:m,gy:u,totalVideoFrames:E}}; g.C.lI=function(M){var f={};if(M===void 0?0:M){Object.assign(f,this.O$().lI());this.mediaElement&&(Object.assign(f,this.mediaElement.lI()),M=this.FG(),f.dvf=M.droppedVideoFrames,f.tvf=M.totalVideoFrames);this.loader&&Object.assign(f,this.loader.lI());this.Fn&&(f.drm=JSON.stringify(this.Fn.lI()));f.state=this.playerState.state.toString(16);g.J(this.playerState,128)&&(f.debug_error=JSON.stringify(this.playerState.MQ));this.Rk()&&(f.prerolls=this.yr.join(","));this.videoData.xp&&(f.ismb=this.videoData.xp); this.videoData.latencyClass!=="UNKNOWN"&&(f.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(f.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)f.is_mosaic=1;this.videoData.cotn&&(f.is_offline=1,f.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(f.playerResponseCpn=this.videoData.playerResponseCpn);this.fd.isOrchestrationLeader()&&(f.leader=1);this.videoData.isLivePlayback&& (this.videoData.K&&nq(this.videoData.K)&&(f.segduration=nq(this.videoData.K)),M=this.Ad,f.lat=M.W?L_c(M.W.C):0,f.liveutcstart=this.videoData.liveUtcStartSeconds);f.relative_loudness=this.videoData.R5.toFixed(3);if(M=g.tt(this))f.optimal_format=M.video.qualityLabel;f.user_qual=Gv();f.release_version=T[60]}f.debug_videoId=this.videoData.videoId;return f}; g.C.addCueRange=function(M){this.dC([M])}; g.C.removeCueRange=function(M){this.W2.hT([M])}; g.C.IS=function(){this.W2.sync()}; g.C.m9=function(M,f){return this.W2.m9(M,f)}; g.C.dC=function(M,f){this.W2.L3(M,f)}; g.C.bR=function(M){this.W2.hT(M)}; g.C.wc=function(){return this.W2.wc()||[]}; g.C.BG=function(){return this.tS}; g.C.Dy=function(){return this.visibility.Dy()}; g.C.PQ=function(){this.mediaElement&&this.mediaElement.PQ()}; g.C.yhi=function(){Tn(this)}; g.C.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.C.un=function(){g.u$(this.lG)}; g.C.cd8=function(){this.z_();this.publish("onLoadProgress",this.fM())}; g.C.gm=function(M){var f=M.target.t3();if(this.mediaElement&&this.mediaElement.t3()&&this.mediaElement.t3()===f){e80(this,M.type);switch(M.type){case "error":var A=tm(this.mediaElement)||"",Q=this.mediaElement.HP();if(A==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.ZB("capchg",{msg:Q}),this.bM(!0)):Ia(this);return}if(this.mediaElement.hasError()&&SFU(this.ph,A,{msg:Q}))return;if(this.isBackground()&&this.mediaElement.Jg()===4){this.Xi();E3(this,"unplayable");return}break; case "durationchange":A=this.mediaElement.getDuration();isFinite(A)&&(!this.VY||A>0)&&A!==1&&this.Xy(A);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());Exb(this.W2);this.O$().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":k0t(this);this.publish("onLoadedMetadata");z89(this);A=this.VJ();this.videoData.Fw&&(this.videoData.Fw=A);break;case "loadstart":z89(this);break;case "progress":case "suspend":this.uC.Hc();break;case "playing":this.pk.d9("plev"); this.wG&&!Xa(this)&&(this.wG=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Cd:"videoplayer_onPlaying"})));break;case "timeupdate":A=this.mediaElement&&!this.mediaElement.getCurrentTime();Q=this.mediaElement&&this.mediaElement.uS()===0;if(A&&(!this.qP||Q))return;this.qP=this.qP||!!this.mediaElement.getCurrentTime();ulf(this);this.z_();if(!this.mediaElement||this.mediaElement.t3()!==f)return;this.publish("onVideoProgress",this.getCurrentTime());break; case "waiting":if(this.mediaElement.eD().length>0&&this.mediaElement.a9().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.uS()>2||!this.mediaElement.isSeeking()&&Sr(this.mediaElement.a9(),this.mediaElement.getCurrentTime()))&&(A=this.mediaElement.lI(),A.bh=Dj(this.mediaElement).toFixed(3),this.ZB("uwe",A));break;case "resize":k0t(this);this.videoData.Z&& this.videoData.Z.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.OT&&g.J(this.playerState,8)&&!g.J(this.playerState,1024)&&this.getCurrentTime()===0&&g.mH){E3(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.t3()===f){W_f(this.Ad,M);this.publish("videoelementevent",M);f=this.playerState;Q=this.OQ;var N=this.mediaElement;A=this.videoData.clientPlaybackNonce;if(!g.J(f,128)){var Y=f.state;N=N?N:M.target;var I= N.getCurrentTime();if(!g.J(f,64)||M.type!=="ended"&&M.type!=="pause"){var D=N.getDuration();D=N.isEnded()||I>1&&Math.abs(I-D)<1.1;var E=M.type==="pause"&&N.isEnded();I=M.type==="ended"||M.type==="waiting"||M.type==="timeupdate"&&!g.J(f,4)&&!nj(Q,I);if(E||D&&I)N.Zs()>0&&N.t3()&&(Y=14);else switch(M.type){case "error":tm(N)&&(Y|=128);break;case "pause":g.J(f,256)?(Y^=256)||(Y=64):g.J(f,32)||g.J(f,2)||g.J(f,4)||(Y=4,g.J(f,1)&&g.J(f,8)&&(Y|=1));break;case "playing":I=Y;Y=(Y|8)&-1093;I&4?(Y|=1,ps(Q,N, !0)):nj(Q,N.getCurrentTime())&&(Y&=-2);g.J(f,1)&&ps(Q,N)&&(Y|=1);break;case "seeking":Y|=16;g.J(f,8)&&(Y|=1);Y&=-3;break;case "seeked":Y&=-17;ps(Q,N,!0);break;case "waiting":g.J(f,2)||(Y|=1);ps(Q,N);break;case "timeupdate":I=g.J(f,16),D=g.J(f,4),(g.J(f,8)||I)&&!D&&nj(Q,N.getCurrentTime())&&(Y=8),ps(Q,N)&&(Y|=1)}}Q=Y;Y=null;Q&128&&(Y=M.target,N=tm(Y),I=1,N?(N==="capability.changed"&&(I=2),D="GENERIC_WITHOUT_LINK",E=Y.lI(),E.mediaElem="1",/AUDIO_RENDERER/.test(Y.HP())&&(D="HTML5_AUDIO_RENDERER_ERROR"), Y={errorCode:N,errorMessage:g.yl[D]||"",y0:D,RP:x8(E),vG:I,cpn:f.MQ?f.MQ.cpn:""}):Y=null,Y&&(Y.cpn=A));f=hm(f,Q,Y)}!g.J(this.playerState,1)&&g.J(f,1)&&dPd(this,"evt"+M.type);this.Q7(f)}}}; g.C.qrr=function(M){M=M.K.availability==="available";M!==this.tS&&(this.tS=M,this.publish("airplayavailabilitychange"))}; g.C.Vkr=function(){var M=(0,g.W)(),f=this.mediaElement.Dy();this.ZB("airplay",{ia:f});!f&&!isNaN(this.FZ)&&M-this.FZ<2E3||(this.FZ=M,f!==this.Dy()&&(M=this.visibility,M.K!==f&&(M.K=f,M.Zy()),this.ZB("airplay",{rbld:f}),this.aZ()),this.publish("airplayactivechange"))}; g.C.Y4=function(M){if(this.loader){var f=this.loader,A=f.j,Q=f.getCurrentTime(),N=Date.now()-A.B;A.B=NaN;A.ZB("sdai",{adfetchdone:M,d:N});M&&!isNaN(A.W)&&A.Z!==3&&FI(A.loader,Q,A.W,A.G);A.policy.j?A.N=NaN:A.C=NaN;$f(A,4,A.Z===3?"adfps":"adf");bK(f)}}; g.C.Bk=function(){g.qR(this.UE);this.KT.stop();this.videoData.g_=!0;this.QY.mK=!0;this.QY.zt=0;var M=this.ph;if(M.videoData.Z){var f=M.i8.N,A=M.videoData.Z.LJ;f.C.has(A)&&(f.C.delete(A),f.Z=!0)}M.K.stop();this.ML();g.J(this.playerState,8)&&this.Q7(Ls(this.playerState,65));this.by=!1;XVU(this.O$());g.f5(this.Hd);this.publish("playbackstarted");(M=g.wD("yt.scheduler.instance.clearPriorityThreshold"))?M():Iu(0)}; g.C.ML=function(){var M=this.fd.K3(),f={},A={};!W9("pbs",this.pk.timerName)&&Zu.measure&&Zu.getEntriesByName&&(Zu.getEntriesByName("mark_nr")[0]?AJb("mark_nr"):AJb());M.videoId&&(f.videoId=M.videoId);M.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(f.clientPlaybackNonce=M.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(A.isPausedOnLoad=!0);A.itag=M.Z?Number(M.Z.itag):-1;M.Ki&&(A.preloadType=String(this.aU?2:1));f.liveStreamMode=RUB[RJ(M)];f.playerInfo=A;this.pk.infoGel(f); if(this.loader){M=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(M.j&&(f=window.performance.getEntriesByName(M.j),f.length&&(f=f[0],M.tick("vri",f.fetchStart),M.tick("vdns",f.domainLookupEnd),M.tick("vreq",f.requestStart),M.tick("vrc",f.responseEnd))),M.Z&&(f=window.performance.getEntriesByName(M.Z),f.length&&(f=f[0],M.tick("ari",f.fetchStart),M.tick("adns",f.domainLookupEnd),M.tick("areq",f.requestStart),M.tick("arc",f.responseEnd))));M=M.ticks;for(var Q in M)M.hasOwnProperty(Q)&& this.pk.tick(Q,M[Q])}}; g.C.z_=function(M){var f=this;M=M===void 0?!1:M;if(this.mediaElement&&this.videoData){nxc(this.Ad,this.isPlaying());var A=this.getCurrentTime();!this.loader||g.J(this.playerState,4)&&g.Zt(this.videoData)||g.J(this.playerState,32)&&pk(this.videoData)||Txb(this.loader,A);A>5&&(this.Ad.j=A);var Q=g.Yk();Q?g.k6.i5(this.MZ):g.ad(this.MZ);var N=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!N||MZ(this.videoData))&&!g.J(this.playerState,128)){var Y=function(){if(f.mediaElement&&!g.J(f.playerState, 128)){f.QY.cX()&&e80(f,"pfx");var I=f.getCurrentTime();f.V("html5_buffer_underrun_transition_fix")&&(I-=f.vX());var D=Dj(f.mediaElement),E=g.J(f.playerState,8),t=nj(f.OQ,I),v=bJt(f.OQ,I,(0,g.W)(),D);E&&t?f.Q7(Ls(f.playerState,1)):E&&v?(E=f.getDuration(),t=oJ(f.videoData),E&&Math.abs(E-I)<1.1?(f.ZB("setended",{ct:I,bh:D,dur:E,live:t}),f.mediaElement.wU()?(f.logger.debug("seek to 0 because of looping"),f.seekTo(0,{Cd:"videoplayer_loop",seekSource:37})):f.JF()):(f.playerState.isBuffering()||dPd(f,"progress_fix"), f.Q7(SV(f.playerState,1)))):(E&&!t&&!v&&I>0&&(E=(Date.now()-f.n5)/1E3,t=f.getDuration(),I>t-1&&f.ZB("misspg",{t:I.toFixed(2),d:t.toFixed(2),r:E.toFixed(2),bh:D.toFixed(2)})),f.playerState.isPaused()&&f.playerState.isBuffering()&&Dj(f.mediaElement)>5&&f.Q7(Ls(f.playerState,1)));f.z_()}}; this.mediaElement.eD().length===0?this.MZ=Q?g.k6.aY(Y,100):g.Uf(Y,100):this.MZ=Q?g.k6.aY(Y,500):g.Uf(Y,500)}this.videoData.Yp=A;!M&&this.isPlaying()&&nib(this);PK9(this.TQ,this.hX,this.j$(),this.isBackground())&&Qu(this);this.publish("progresssync",M);N&&MZ(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.C.vr=function(){this.Cx("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.C.vM=function(){return this.O$().vM()}; g.C.X1=function(){return this.loader?this.loader.X1():Bs(this.QY.schedule,!0)}; g.C.Q7=function(M){if(!g.Cs(this.playerState,M)){this.logger.debug(function(){return"Setting state "+M.toString()}); var f=new g.CJ(M,this.playerState);this.playerState=M;bVc(this);var A=!this.e3.length;this.e3.push(f);var Q=this.mediaElement&&this.mediaElement.isSeeking();Q=f.oldState.state===8&&!Q;g.V2(f,1)&&Q&&g.J(this.playerState,8)&&!g.J(this.playerState,64)&&this.loader&&(But(this.loader),this.mediaElement&&Dj(this.mediaElement)>=5&&uBb(this.TQ,this.hX)&&Qu(this));(Q=g.CE(this.QY.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.J(M,1)&&(g.J(M,8)||g.J(M,16))?this.D1.start(Q):this.D1.stop();(Ua(f, 8)<0||g.V2(f,1024))&&this.KT.stop();!g.V2(f,8)||this.videoData.g_||g.J(f.state,1024)||this.KT.start();g.J(f.state,8)&&Ua(f,16)<0&&!g.J(f.state,32)&&!g.J(f.state,2)&&this.playVideo();g.J(f.state,2)&&ru(this.videoData)&&(this.Xy(this.getCurrentTime()),this.z_(!0));g.V2(f,2)&&(this.E8(!0),this.QY.cX()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&pk(this.videoData)&&this.videoData.K&&(Q={minst:""+this.videoData.K.jQ,cminst:""+(this.videoData.K.hd()+this.vX()),maxst:""+this.videoData.K.B_, hts:""+this.videoData.K.KJ,cmaxst:""+(this.videoData.K.S$()+this.vX())},this.ZB("sabrSeekableBoundaries",Q)));g.V2(f,128)&&this.Xi();this.videoData.K&&this.videoData.isLivePlayback&&!this.DP&&(Ua(f,8)<0?RiN(this.videoData.K):g.V2(f,8)&&this.videoData.K.resume());zDX(this.Ad,f);KOX(this.O$(),f);if(A&&!this.ek())try{for(var N=g.V(this.e3),Y=N.next();!Y.done;Y=N.next()){var I=Y.value;t06(this.W2,I);this.publish("statechange",I)}}finally{this.e3.length=0}}}; g.C.q9=function(){this.pk.tick("qoes")}; g.C.R6=function(){this.Ad.R6()}; g.C.aH=function(M,f,A,Q){a:{var N=this.ph;Q=Q===void 0?"LICENSE":Q;A=A.substring(0,256);var Y=rw(f);M==="drm.keyerror"&&this.Fn&&this.Fn.Z.keys.length>1&&N.C<96&&(M="drm.sessionlimitexhausted",Y=!1);var I=N.i8.experiments.X3("html5_retry_on_drm_unavailable"),D=N.i8.experiments.X3("html5_retry_on_drm_key_error"),E=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(I&&M==="drm.unavailable"||D&&M==="drm.keyerror"&&!A.match(E))N.xC("qoe.restart",{retryOnDrmError:1,e:M,detail:A}),N.d_.bM(!0);else{if(Y)if(N.videoData.Z&& N.videoData.Z.video.isHdr())aq9(N,M);else{if(N.d_.Cx(M,f,Q,A),vtf(N,{detail:A}))break a}else N.xC(M,{detail:A});M==="drm.sessionlimitexhausted"&&(N.ZB("retrydrm",{sessionLimitExhausted:1}),N.C++,y49(N.d_))}}}; g.C.gpr=function(){var M=this,f=g.CE(this.QY.experiments,"html5_license_constraint_delay"),A=YJ();f&&A?(f=new g.MY(function(){M.LF();Tn(M)},f),g.d(this,f),f.start()):(this.LF(),Tn(this))}; g.C.PJ=function(M){this.publish("heartbeatparams",M)}; g.C.SC=function(M){this.ZB("keystatuses",nnU(M));var f="auto",A=!1;this.videoData.Z&&(f=this.videoData.Z.video.quality,A=this.videoData.Z.video.isHdr());a:{switch(f){case "highres":case "hd2880":f="UHD2";break;case "hd2160":case "hd1440":f="UHD1";break;case "hd1080":case "hd720":f="HD";break;case "large":case "medium":case "small":case "light":case "tiny":f="SD";break;default:f="";break a}A&&(f+="HDR")}f=Av(M)?Qo(M,f):M.C.includes(f);this.V("html5_authorized_drm_track_types")||(this.videoData.b3= FTb(M));if(this.V("html5_enable_vp9_fairplay")){if(A)if(M.W){var Q;if((Q=this.Fn)==null?0:lX(Q.K))if((A=this.Fn)==null)A=0;else{for(var N=Q=void 0,Y=g.V(A.Z.values()),I=Y.next();!I.done;I=Y.next())I=I.value,Q||(Q=$y6(I,"SD")),N||(N=$y6(I,"AUDIO"));A.U3({sd:Q,audio:N});A=Q==="output-restricted"||N==="output-restricted"}else A=!f;if(A){this.ZB("drm",{dshdr:1});aq9(this.ph);return}}else{this.videoData.Z3||(this.videoData.Z3=!0,this.ZB("drm",{dphdr:1}),this.bM(!0));return}var D;if((D=this.Fn)==null?0: lX(D.K))return}else if(D=M.W&&f,A&&!D){aq9(this.ph);return}f||Qo(M,"AUDIO")&&Qo(M,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),M=nnU(M),this.NF?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.Cx("drm.keyerror",2,void 0,"info."+M)):(this.NF=!0,this.xC(new ZZ("qoe.restart",Object.assign({},{retrydrm:1},M))),Qu(this),y49(this)))}; g.C.eR7=function(){if(!this.videoData.g_&&this.mediaElement&&!this.isBackground()){var M="0";this.mediaElement.uS()>0&&Dj(this.mediaElement)>=5&&this.videoData.j&&this.videoData.j.K&&(this.Q7(SV(this.playerState,1)),dPd(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),M="1");bVc(this);var f=this.videoData.j;M={restartmsg:M,mfmt:!Dt(this.videoData),mdrm:!(!(f&&f.videoInfos&&f.videoInfos.length&&f.videoInfos[0].e$)||this.Fn),mfmtinfo:!this.videoData.Z,prerolls:this.Rk()?this.yr.join(","): "0"};if(this.Fn){f=this.Fn;if(f.Z.size<=0){var A="ns;";f.B||(A+="nr;");f=A+="ql."+f.j.length}else f=nnU(f.Z.values().next().value),f=x8(f);M.drmp=f}var Q;Object.assign(M,((Q=this.loader)==null?void 0:Q.lI())||{});var N;Object.assign(M,((N=this.mediaElement)==null?void 0:N.lI())||{});this.O$().xC("qoe.start15s",x8(M));this.publish("loadsofttimeout")}}; g.C.Xy=function(M){this.videoData.lengthSeconds!==M&&(this.videoData.lengthSeconds=M,Tn(this))}; g.C.E8=function(M,f){var A=this;M=M===void 0?!1:M;if(!this.Lg)if(W9("att_s","player_att")||Xx("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var N,Y,I,D;return g.n(function(E){switch(E.Z){case 1:if(!(N=M)){E.CJ(2);break}return g.r(E,g.xFd(),3);case 3:N=!E.K;case 2:if(N)return E.return();g.HX(E,4);Y=l5N(A.O$());if(!Y)throw Error();I={};return g.r(E,g.in0((I.cpn=A.videoData.clientPlaybackNonce,I.encryptedVideoId=A.videoData.videoId||"",I),3E4),6);case 6:D=E.K;if(A.Lg)throw Error(); if(!D.challenge)throw g.$b(Error("Not sending attestation ping; no attestation challenge string")),Error();A.Lg=!0;var t=[D.challenge];D.error?t.push("r1c="+D.error):D.webResponse&&t.push("r1a="+D.webResponse);var v;((v=D.adblockReporting)==null?void 0:v.reportingStatus)!==void 0&&t.push("r6a="+D.adblockReporting.reportingStatus);var p;((p=D.adblockReporting)==null?void 0:p.broadSpectrumDetectionResult)!==void 0&&t.push("r6b="+D.adblockReporting.broadSpectrumDetectionResult);Y(t.join("&"));Xx("att_f", void 0,"player_att");g.Rf(E,0);break;case 4:g.id(E),Xx("att_e",void 0,"player_att"),g.qc(E)}})})().then(function(){f==null||f()}); else{var Q=new g.FLN(this.videoData);if("c1a"in Q.Pz&&!g.Wh.isInitialized()){Xx("att_wb",void 0,"player_att");this.jj===2&&Math.random()<.01&&g.$b(Error("Botguard not available after 2 attempts"));if(M)return;if(this.jj<5){g.f5(this.C0);this.jj++;return}}(Q=g.yAU(Q))?(Xx("att_f",void 0,"player_att"),wVX(this.O$(),Q),this.Lg=!0):Xx("att_e",void 0,"player_att")}}; g.C.YN=function(M){M=M===void 0?!1:M;return oJ(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.uX()||g.Zt(this.videoData))?this.getCurrentTime():this.S$(M)}; g.C.Ma=function(){return this.hd()}; g.C.S$=function(M){return this.Ad.S$(M===void 0?!1:M)}; g.C.hd=function(){return this.Ad.hd()}; g.C.vX=function(){return this.Ad?this.Ad.vX():0}; g.C.getStreamTimeOffset=function(){return this.Ad?this.Ad.getStreamTimeOffset():0}; g.C.fS=function(){var M=0;this.QY.V("web_player_ss_media_time_offset")&&(M=this.getStreamTimeOffset()===0?this.vX():this.getStreamTimeOffset());return M}; g.C.setPlaybackRate=function(M){var f;this.playbackRate!==M&&cGe(this.TQ,(f=this.videoData.j)==null?void 0:f.videoInfos)&&(this.playbackRate=M,Qu(this));this.playbackRate=M;this.mediaElement&&this.mediaElement.setPlaybackRate(M)}; g.C.getPlaybackRate=function(){return this.playbackRate}; g.C.getPlaybackQuality=function(){var M="unknown";if(this.videoData.Z&&(M=this.videoData.Z.video.quality,M==="auto"&&this.mediaElement)){var f=this.wC();f&&f.videoHeight>0&&(M=eg(f.videoWidth,f.videoHeight))}return M}; g.C.isHdr=function(){return!!(this.videoData.Z&&this.videoData.Z.video&&this.videoData.Z.video.isHdr())}; g.C.sendVideoStatsEngageEvent=function(M,f){var A=this.O$();A.K?(A=Ro(A.K,"engage"),A.jk=M,A.send(f)):f&&f()}; g.C.Cy=function(M){return this.O$().Cy(M)}; g.C.isAtLiveHead=function(M,f){f=f===void 0?!1:f;return oJ(this.videoData)&&(this.Ms||f)?this.Ad.isAtLiveHead(M):!1}; g.C.U6=function(){var M=this.S$(),f=this.getCurrentTime(),A;(A=!oJ(this.videoData))||(A=this.Ad,A=!(A.K&&A.K.j));return A||this.uX()||isNaN(M)||isNaN(f)?0:Math.max(0,M-f)}; g.C.LR=function(M){(this.Ms=M)||this.KT.stop();this.videoData.K&&(M?this.videoData.K.resume():RiN(this.videoData.K));if(this.loader){var f=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.b2()&&this.videoData.isLivePlayback;M&&!f?this.loader.resume():po(this,!0)}g.J(this.playerState,2)||M?g.J(this.playerState,512)&&M&&this.Q7(Ls(this.playerState,512)):this.Q7(SV(this.playerState,512));f=this.O$();f.qoe&&(f=f.qoe,g.Lj(f,g.KK(f.provider),"stream",[M?"A":"I"]))}; g.C.JO=function(M){M={n:M.name,m:M.message};this.O$().xC("player.exception",x8(M))}; g.C.Iq=fb(28);g.C.Je=fb(57);g.C.Mm=function(M){this.O$().Mm(M)}; g.C.lR=function(M){this.O$().lR(M)}; g.C.Fe=function(M){this.O$().Fe(M)}; g.C.EC=fb(34);g.C.Ly=fb(40);g.C.vO=function(M){this.O$().vO(M)}; g.C.IH=function(){this.ZB("hidden",{},!0)}; g.C.FG=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.C.Yd=function(){return this.loader?this.loader.Yd():!0}; g.C.setLoop=function(M){this.loop=M;this.mediaElement&&!g.Zs(this.QY)&&this.mediaElement.setLoop(M)}; g.C.wU=function(){return this.mediaElement&&!g.Zs(this.QY)?this.mediaElement.wU():this.loop}; g.C.wK=function(M){this.ZB("timestamp",{o:M.toString()});this.Ad.wK(M)}; g.C.M5=function(M){this.pk.tick(M)}; g.C.In=function(M){return this.pk.In(M)}; g.C.d9=function(M){this.pk.d9(M)}; g.C.ZB=function(M,f,A){A=A===void 0?!1:A;this.O$().ZB(M,f,A)}; g.C.Z4=function(M,f,A){A=A===void 0?!1:A;this.O$().ZB(M,f,A)}; g.C.xC=function(M){this.O$().xC(M.errorCode,x8(M.details));M=M.errorCode;if(this.videoData.isLivePlayback&&(M==="qoe.longrebuffer"||M==="qoe.slowseek")||M==="qoe.restart"){M=this.loader?K80(this.loader.videoTrack):{};var f,A;this.ZB("lasoe",Object.assign(this.loader?K80(this.loader.audioTrack):{},(f=this.VY)==null?void 0:(A=f.K)==null?void 0:A.Q1()));var Q,N;this.ZB("lvsoe",Object.assign(M,(Q=this.VY)==null?void 0:(N=Q.Z)==null?void 0:N.Q1()))}}; g.C.OA=function(M,f,A){this.O$().OA(M,f,A)}; g.C.wA=function(M,f,A,Q,N,Y,I,D){var E;if((E=this.videoData.K)!=null&&E.isLive){var t=f.playerType===2?f:M,v=M.videoData.videoId,p=f.videoData.videoId;if(v&&p){E=this.O$();if(E.qoe){var h=E.qoe,S=M.cpn,L=f.cpn,a=t.videoData.VU,q=h.provider.videoData.clientPlaybackNonce,m=h.provider.videoData.videoId,R=L!==q&&p!==m;q=S!==q&&v!==m;h.reportStats();h.adCpn&&h.adCpn!==S||(h.adCpn=q?S:"",h.vV=q?v:"",h.adFormat=q?a:void 0,qq(h,2,Y?4:N?2:0,L,p,Q),h.reportStats(),h.adCpn=R?L:"",h.vV=R?p:"",h.adFormat=R?a: void 0,qq(h,2,Y?5:N?3:1,S,v,A),h.reportStats())}A=M.cpn;if(E.j.has(A)){if(N=g.F(E.j.get(A)),iI(N,!0).send(),BV(N),A!==E.provider.videoData.clientPlaybackNonce){yv6(N);var u;(u=E.K)==null||PIf(u);E.j.delete(A)}}else E.OJ=E.provider.videoData.clientPlaybackNonce,E.OJ&&E.K&&(E.j.set(E.OJ,E.K),iI(E.K).send(),BV(E.K));u=f.cpn;t=t.videoData;Q-=this.fS();if(E.j.has(u)){Q=g.F(E.j.get(u));var z=Q.j&&isNaN(Q.N)?gN(Q):NaN;Q=FOb(Q,!1);isNaN(z)||(Q.W=z);Q.send()}else Q=M0U(E,E.provider,t,Q),E.j.set(u,Q),dqb(Q, new g.CJ(SV(new g.v8,8),new g.v8)),z40(Q),(z=E.K)==null||BV(z);E.OJ=u;if(this.V("html5_unify_csi_server_stitched_transition_logging")){if(E=this.pk,z=f.cpn,Q=this.videoData.clientPlaybackNonce,f=f.videoData,M=(M.cpn===Q?"video":"ad")+"_to_"+(z===Q?"video":"ad"),M!=="video_to_ad"){Q=M==="ad_to_video"?void 0:f;t=Q==null?void 0:Q.p4;u={};if(f==null?0:f.G)u.cttAuthInfo={token:f.G,videoId:f.videoId};I&&(u.startTime=I);k7(M,u);var e,G,X;I={targetVideoId:(e=f==null?void 0:f.videoId)!=null?e:"empty_video", targetCpn:z,adVideoId:(G=Q==null?void 0:Q.videoId)!=null?G:"empty_video",adClientPlaybackNonce:(X=t==null?void 0:t.cpn)!=null?X:Q==null?void 0:Q.clientPlaybackNonce};t&&(I.adBreakType=t.adBreakType,I.adType=t.adType);g.bB(I,M);pV(E,D,M)}}else e=this.pk,X=this.videoData.clientPlaybackNonce,G=f.videoData,X=(M.cpn===X?"video":"ad")+"_to_"+(f.cpn===X?"video":"ad"),M={},G.G&&(M.cttAuthInfo={token:G.G,videoId:G.videoId}),I&&(M.startTime=I),k7(X,M),g.bB({targetVideoId:G.videoId,targetCpn:f.cpn,isSsdai:!0}, X),e.QY.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?I||pV(e,D,X):pV(e,D,X)}}else this.logger.K(360717806,"SSTEvent for nonSS")}; g.C.Jq=function(){var M=this.fd,f=M.XU;M.XU=[];return f}; g.C.Hg=function(M){this.videoData.UY=!0;this.xC(new ZZ("sabr.fallback",M));this.bM(!0)}; g.C.cG=function(M,f){this.videoData.Po=!0;if(f===void 0||f)this.xC(new ZZ("qoe.restart",M)),this.bM(!0);this.videoData.G_()&&this.V("html5_reload_caption_on_ssdai_fallback")&&this.fd.LT()}; g.C.wS=function(M){this.ZB("sdai",{aftimeout:M});this.xC(new ZZ("ad.fetchtimeout",{timeout:M}))}; g.C.Yh=function(M,f){this.ZB("timelineerror",M);M=new ZZ("dai.timelineerror",M);f?this.Cx("dai.timelineerror",1,"RETRYABLE_ERROR",x8(M.details)):this.xC(M)}; g.C.g5=function(){return rN(this.O$())}; g.C.getPlayerSize=function(){return this.Of.getPlayerSize()}; g.C.kI=function(){return this.Of.kI()}; g.C.ZX=function(){return this.pk}; g.C.qj=function(){return this.fd.qj()}; g.C.getVolume=function(){return this.fd.getVolume()}; g.C.IZ=function(){return this.fd.IZ()}; g.C.isMuted=function(){return this.fd.isMuted()}; g.C.fU=function(){return this.fd.fU()}; g.C.t9=function(){this.DP=!0}; g.C.V=function(M){return this.QY.V(M)}; g.C.Ot=function(M,f,A,Q,N){this.ZB("xvt",{m:M,g:f?1:0,tt:A?1:0,np:Q?1:0,c:N})}; g.C.Fz=function(){var M;(M=this.loader)==null||M.resume()}; g.C.b2=function(){return g.V9(this.yr,"ad")}; g.C.hC=function(){var M=this.getCurrentTime(),f=M-this.vX();var A=this.mediaElement?og(this.mediaElement.a9()):0;A=Math.floor(Math.max(A-f,0))+100;var Q;return((Q=this.loader)==null?0:Q.hC(f,A))?(this.ZB("sdai",{skipad:1,ct:f.toFixed(3),adj:A.toFixed(3)}),pk(this.videoData)&&this.loader.seek(f+A,{seekSource:89,Cd:"videoplayer_skipServerStitchedAd"}),XzT(this.Ad,M),!0):!1}; g.C.cX=function(){return this.QY.cX()}; g.C.ME=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.OM||"";this.fd.T4();return this.QY.Uw||""}; g.C.uA=function(){if(this.videoData.videoId)return this.videoData.qc}; g.C.MX=function(){return this.videoData.videoId}; g.C.V2=function(){return this.fd.Oc}; g.C.uN=function(){return this.by}; g.C.Xu=function(){return this.fd.Xu()}; g.C.p_=function(M,f){this.Ad.p_(M,f)}; g.C.Xj=function(){this.Ad.Xj()}; g.C.OP=function(M,f){var A=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.fd.OP(M,f,A)}; g.C.tb=function(M,f){var A;(A=this.loader)==null||A.tb(M,f)}; g.C.hL=function(){var M=this.ev();return!!M&&M.hL()}; g.C.T1=function(M,f){this.O$().T1(M,f)}; g.C.qt=function(){return this.O$().qt()}; g.C.W8=function(){return this.videoData.HA}; g.C.Ci=function(){return this.fd.Ci()}; g.C.iH=function(){return this.fd.iH(this)}; g.C.iR=function(M){var f;(f=this.loader)==null||f.iR(M)}; g.C.Js=function(){var M;(M=this.loader)==null||M.Js()};g.U(Wqd,fD);g.U(OVd,fD);g.C=OVd.prototype;g.C.seekToChapterWithAnimation=function(M){var f=this;if(g.al(this.api)&&!(M<0)){var A=this.api.getVideoData(),Q=A.WK;if(Q&&M=0)return;f=~f;g.i6(this.items,f,0,M);NQ(this.menuItems.element,M.element,f)}M.subscribe("size-change",this.eq,this);this.menuItems.publish("size-change")}; g.C.M$=function(M){M.unsubscribe("size-change",this.eq,this);this.ek()||(g.qm(this.items,M),this.menuItems.element.removeChild(M.element),this.menuItems.publish("size-change"))}; g.C.eq=function(){this.menuItems.publish("size-change")}; g.C.focus=function(){for(var M=0,f=0;f1&&g.xx(this)}; g.C.Qy=function(){qqX(this);this.B7&&(Vfb(this),g.Xo(this.element,this.size))}; g.C.ir=function(){var M=this.K.pop();aKN(this,M,this.K[this.K.length-1],!0)}; g.C.US=function(M){if(!M.defaultPrevented)switch(M.keyCode){case 27:this.fk();M.preventDefault();break;case 37:this.K.length>1&&this.ir();M.preventDefault();break;case 39:M.preventDefault()}}; g.C.focus=function(){this.K.length&&this.K[this.K.length-1].focus()}; g.C.u8=function(){g.Wj.prototype.u8.call(this);this.G&&this.G.dispose();this.W&&this.W.dispose()};g.U(Z7,g.Bz);Z7.prototype.open=function(M,f){this.initialize(M.items)&&this.q5(f,!!f)}; Z7.prototype.initialize=function(M){g.gJ(this.ER);if(M===void 0||M.length===0)return!1;var f=M.length;M=g.V(M);for(var A=M.next();!A.done;A=M.next())this.Sc(A.value,f--);return!0}; Z7.prototype.Sc=function(M,f){M.menuNavigationItemRenderer?sxD(this,M.menuNavigationItemRenderer,f):M.menuServiceItemRenderer&&c5X(this,M.menuServiceItemRenderer,f)};g.U(rJ,s3);g.C=rJ.prototype;g.C.d8=function(M){M.target!==this.dismissButton.element&&M.target!==this.overflowButton.element&&(this.Hp(),this.onClickCommand&&this.U.T0("innertubeCommand",this.onClickCommand))}; g.C.z1=function(){this.enabled=!1;this.B.hide()}; g.C.Lf=function(){return!!this.K&&this.enabled}; g.C.onVideoDataChange=function(M,f){this.qn(f);if(this.K){this.R7();a:if(!this.isCounterfactual){var A,Q,N;this.banner.update({title:(A=this.K)==null?void 0:A.title,subtitle:(Q=this.K)==null?void 0:Q.subtitle,metadata:(N=this.K)==null?void 0:N.metadataText});var Y;this.onClickCommand=g.b((Y=this.K)==null?void 0:Y.onTap,yv);var I;if(M=g.b((I=this.K)==null?void 0:I.onOverflow,yv))this.W=g.b(M,dVW);var D;if((D=this.K)==null?0:D.thumbnailImage){var E,t;I=((E=this.K)==null?void 0:(t=E.thumbnailImage)== null?void 0:t.sources)||[];if(I.length===0)break a;this.thumbnailImage.update({url:I[0].url})}else{var v;if((v=this.K)==null?0:v.thumbnailIconName){var p;this.thumbnailIcon.update({icon:(p=this.K)==null?void 0:p.thumbnailIconName})}}var h;this.shouldShowOverflowButton=!((h=this.K)==null||!h.shouldShowOverflowButton);var S;this.shouldHideDismissButton=!((S=this.K)==null||!S.shouldHideDismissButton)}var L;this.banner.element.setAttribute("aria-label",((L=this.K)==null?void 0:L.a11yLabel)||"");var a; this.YO=(a=this.K)==null?void 0:a.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;gUD(this)}}; g.C.ik7=function(){this.isVisible=!0;gUD(this)}; g.C.CI7=function(){this.isVisible=!1;gUD(this)}; g.C.C7=function(){s3.prototype.C7.call(this);this.Z&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.C.Hp=function(){s3.prototype.Hp.call(this,!1);this.Z&&this.U.logClick(this.banner.element)}; g.C.gg=function(M){this.G||(this.G=new Z7(this.U),g.d(this,this.G));var f,A;if((f=this.W)==null?0:(A=f.menu)==null?0:A.menuRenderer)this.G.open(this.W.menu.menuRenderer,M.target),M.preventDefault()}; g.C.qn=function(){}; g.C.R7=function(){}; g.C.u8=function(){this.U.GU("suggested_action_view_model");s3.prototype.u8.call(this)};g.U(uz,rJ); uz.prototype.qn=function(M){var f,A,Q;this.productUpsellSuggestedActionViewModel=g.b((f=M.getWatchNextResponse())==null?void 0:(A=f.playerOverlays)==null?void 0:(Q=A.playerOverlayRenderer)==null?void 0:Q.suggestedActionViewModel,N2W);var N;if((N=this.productUpsellSuggestedActionViewModel)==null?0:N.content){var Y;this.K=g.b((Y=this.productUpsellSuggestedActionViewModel)==null?void 0:Y.content,$Vc)}var I,D;if(this.Z=!!((I=this.productUpsellSuggestedActionViewModel)==null?0:(D=I.loggingDirectives)==null? 0:D.trackingParams)){var E,t;this.U.setTrackingParams(this.banner.element,((E=this.productUpsellSuggestedActionViewModel)==null?void 0:(t=E.loggingDirectives)==null?void 0:t.trackingParams)||null)}var v;this.isCounterfactual=!((v=this.productUpsellSuggestedActionViewModel)==null||!v.isCounterfactualServing)}; uz.prototype.R7=function(){var M=[],f,A=g.V(((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.ranges)||[]);for(f=A.next();!f.done;f=A.next()){var Q=f.value;Q&&(f=Number(Q.startTimeMilliseconds),Q=Number(Q.endTimeMilliseconds),isNaN(f)||isNaN(Q)||M.push(new g.T1(f,Q,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.L3(M)};g.U(BKf,fD);g.U(zn,fD);zn.prototype.onVideoDataChange=function(M,f){var A=this;if(!Om(f)){M==="newdata"&&xLb(this);var Q=this.api.V("html5_fix_duplicate_get_setting_values_requests");if(this.j&&this.K&&M==="dataloaded"){Q&&(this.K=!1);var N;s_(mA(pF(this.api.T(),(N=this.api.getVideoData())==null?void 0:g.bv(N)),function(Y){Q||(A.K=!1);jx6(A,Y)}),function(){A.K=!0})}}}; zn.prototype.YI=function(){var M=this;if(g.Zs(this.api.T())){var f,A=g.v5(this.api.T(),(f=this.api.getVideoData())==null?void 0:g.bv(f));return mA(Va(A),function(Q){var N=eu();be(N,Q);return M.api.YI(N)})}return Va(this.api.YI())};g.U(g.no,g.Gt);g.C=g.no.prototype;g.C.open=function(){g.iz(this.uI,this.Z)}; g.C.QD=function(M){$Lf(this);var f=this.options[M];f&&(f.element.setAttribute("aria-checked","true"),this.Xk(this.iS(M)),this.j=M)}; g.C.HB=function(M){g.gJ(this.Z);for(var f={},A=!1,Q=0;Q=0?this.K.playbackRate:1}catch(M){return 1}}; g.C.setPlaybackRate=function(M){this.getPlaybackRate()!==M&&(this.K.playbackRate=M);return M}; g.C.wU=function(){return this.K.loop}; g.C.setLoop=function(M){this.K.loop=M}; g.C.canPlayType=function(M,f){return this.K.canPlayType(M,f)}; g.C.isPaused=function(){return this.K.paused}; g.C.isSeeking=function(){return this.K.seeking}; g.C.isEnded=function(){return this.K.ended}; g.C.KG=function(){return this.K.muted}; g.C.gW=function(M){FR();this.K.muted=M}; g.C.eD=function(){return this.K.played||vM([],[])}; g.C.a9=function(){try{var M=this.K.buffered}catch(f){}return M||vM([],[])}; g.C.Rf=function(){return this.K.seekable||vM([],[])}; g.C.zz=function(){var M=this.K;return M.getStartDate?M.getStartDate():null}; g.C.getCurrentTime=function(){return this.K.currentTime}; g.C.setCurrentTime=function(M){this.K.currentTime=M}; g.C.getDuration=function(){return this.K.duration}; g.C.load=function(){var M=this.K.playbackRate;try{this.K.load()}catch(f){}this.K.playbackRate=M}; g.C.pause=function(){this.K.pause()}; g.C.play=function(){var M=this.K.play();if(!M||!M.then)return null;M.then(void 0,function(){}); return M}; g.C.uS=function(){return this.K.readyState}; g.C.Zs=function(){return this.K.networkState}; g.C.Jg=function(){return this.K.error?this.K.error.code:null}; g.C.HP=function(){return this.K.error?this.K.error.message:""}; g.C.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.K instanceof window.HTMLVideoElement&&this.K.getVideoPlaybackQuality)return this.K.getVideoPlaybackQuality();if(this.K){var M=this.K,f=M.webkitDroppedFrameCount;if(M=M.webkitDecodedFrameCount)return{droppedVideoFrames:f||0,totalVideoFrames:M}}return{}}; g.C.Dy=function(){return!!this.K.webkitCurrentPlaybackTargetIsWireless}; g.C.PQ=function(){return!!this.K.webkitShowPlaybackTargetPicker()}; g.C.togglePictureInPicture=function(){var M=this.K,f=window.document;window.document.pictureInPictureEnabled?this.K!==f.pictureInPictureElement?M.requestPictureInPicture():f.exitPictureInPicture():$8()&&M.webkitSetPresentationMode(M.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.C.Nt=function(){var M=this.K;return new g.r2(M.offsetLeft,M.offsetTop)}; g.C.getSize=function(){return g.J9(this.K)}; g.C.setSize=function(M){g.Xo(this.K,M)}; g.C.getVolume=function(){return this.K.volume}; g.C.setVolume=function(M){FR();this.K.volume=M}; g.C.f$=function(M){this.N[M]||(this.K.addEventListener(M,this.listener),this.N[M]=this.listener)}; g.C.setAttribute=function(M,f){this.K.setAttribute(M,f)}; g.C.removeAttribute=function(M){this.K.removeAttribute(M)}; g.C.hasAttribute=function(M){return this.K.hasAttribute(M)}; g.C.NL=fb(67);g.C.cI=fb(69);g.C.Gw=fb(71);g.C.b$=fb(73);g.C.pn=function(){return ml(this.K)}; g.C.QA=function(M){g.tZ(this.K,M)}; g.C.rF=function(M){return g.Fo(this.K,M)}; g.C.IM=function(){return g.IH(document.body,this.K)}; g.C.audioTracks=function(){var M=this.K;if("audioTracks"in M)return M.audioTracks}; g.C.u8=function(){for(var M=g.V(Object.keys(this.N)),f=M.next();!f.done;f=M.next())f=f.value,this.K.removeEventListener(f,this.N[f]);It.prototype.u8.call(this)}; g.C.aJ=function(M){this.K.disableRemotePlayback=M};g.U(Jt,g.O);g.U(Gn,g.O);Gn.prototype.show=function(){g.O.prototype.show.call(this);this.Nu();this.G0.V("html5_enable_moving_s4n_window")&&g.Zs(this.G0.T())&&this.X()}; Gn.prototype.hide=function(){g.O.prototype.hide.call(this);this.delay.stop();this.C.stop()}; Gn.prototype.Nu=function(){var M=(0,g.W)(),f=GVc(this.G0);Ko(this.K,f.bandwidth_samples);Ko(this.W,f.network_activity_samples);Ko(this.j,f.live_latency_samples);Ko(this.Z,f.buffer_health_samples);var A={};f=g.V(Object.entries(f));for(var Q=f.next();!Q.done;Q=f.next()){var N=g.V(Q.value);Q=N.next().value;N=N.next().value;this.B[Q]!==N&&(A[Q]=" "+String(N));this.B[Q]=N}this.update(A);M=(0,g.W)()-M>25?5E3:500;this.delay.start(M)}; Gn.prototype.X=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.C.start(2E4)};g.U(MUc,fD);g.U(wJ,g.y);wJ.prototype.K=function(){var M=(0,g.W)()-this.startTime;M=Mthis.C[M])&&(this.K=M,MP(this))}; g.C.onCueRangeExit=function(M){var f=h$6(this,M);f&&this.K===M&&this.api.T0("innertubeCommand",f);this.clearTimeout();this.K=void 0}; g.C.onTimeout=function(M){this.K!==void 0&&(M==null?void 0:M.cueRangeId)===this.K&&(this.X=!1,(M=h$6(this,this.K))&&this.api.T0("innertubeCommand",M))}; g.C.WJ=function(M){this.Z=M}; g.C.Rc=function(){MP(this);this.Z=void 0}; g.C.setTimeout=function(M){var f=this,A=Number(M==null?void 0:M.maxVisibleDurationMilliseconds);A&&(this.clearTimeout(),this.B=setTimeout(function(){f.onTimeout(M)},A))}; g.C.clearTimeout=function(){this.B&&clearTimeout(this.B);this.B=void 0;this.X=!1}; g.C.u8=function(){this.timelyActions=this.Z=this.K=this.videoId=void 0;this.C={};this.hT();this.clearTimeout();fD.prototype.u8.call(this)};g.U(ocN,fD);g.U(A4,Dc);A4.prototype.G=function(M){this.C(M?2:1)}; A4.prototype.Z=function(){var M=this.U.getPresentingPlayerType();M===2||M===3?(this.K=!1,this.uI.M$(this)):this.K||(M=this.hasVoiceBoostAudioTrack(),this.setEnabled(M),M=this.j()===2&&M,EO(this,M),this.uI.Sc(this),this.K=!0)}; A4.prototype.u8=function(){this.uI.M$(this);Dc.prototype.u8.call(this)};g.U(Ql,fD);Ql.prototype.getVoiceBoostUserPreference=function(){return this.K}; Ql.prototype.setVoiceBoostUserPreference=function(M){this.api.ZB("vb_set",{pref:M});g.jA("yt-player-voice-boost",M);M!==this.K&&(this.K=M,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.aZ())}; Ql.prototype.hasVoiceBoostAudioTrack=function(){var M,f,A=(M=this.api.getVideoData())==null?void 0:(f=M.j)==null?void 0:f.K;return A?lW(A,function(Q){var N;return((N=Q.audio)==null?void 0:N.Z)===!0}):!1}; Ql.prototype.updateEnvironmentData=function(){this.api.T().jQ=this.K};var gcb=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.U(IW,fD);IW.prototype.u8=function(){this.W&&(g.qR(this.W),this.W=void 0);fD.prototype.u8.call(this)}; IW.prototype.T4=function(){(this.Z?!this.K:this.j)&&DA(this)}; IW.prototype.T7=function(M,f,A){var Q=this;if(VU6(M)){var N=A||"";if(this.K)f=EM(this,N),aB6(M,f);else{var Y=new g.LB;f.push(Y.promise);this.N.promise.then(function(){var I=EM(Q,N);aB6(M,I);Y.resolve()})}}}; IW.prototype.sf=function(M){var f=this;if(this.Z||this.j)M.OM=EM(this,M.videoId),this.K||(this.C=new Yl,this.N.promise.then(function(){f.pk.In("pot_if");M.OM=EM(f,M.videoId)}))};g.U(t4,fD);t4.prototype.setFullscreenQuickActions=function(M){this.K&&this.api.getRootNode().removeChild(this.K);M?(g.tZ(M,"ytp-fullscreen-quick-actions"),g.tZ(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.$X(this.api,M,4)):g.p5(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.K=M;iNd(this,this.api.isFullscreen())}; t4.prototype.setPlayerOverlayVideoDetailsRenderer=function(M){this.playerOverlayVideoDetailsRenderer&&this.api.getRootNode().removeChild(this.playerOverlayVideoDetailsRenderer);M?(g.tZ(M,"ytp-fullscreen-metadata"),this.api.V("delhi_modern_web_player_fullscreen_metadata_bottom")?g.tZ(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"):g.tZ(this.api.getRootNode(),"ytp-fullscreen-metadata-top"),g.$X(this.api,M,4)):(g.p5(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.p5(this.api.getRootNode(), "ytp-fullscreen-metadata-bottom"));this.playerOverlayVideoDetailsRenderer=M;iNd(this,this.api.isFullscreen())};g.U(xzD,fD);g.U(vt,g.y);vt.prototype.K=function(){for(var M=g.V(g.jN.apply(0,arguments)),f=M.next();!f.done;f=M.next())(f=f.value)&&this.features.push(f)}; vt.prototype.u8=function(){for(var M=this.features.length-1;M>=0;M--)this.features[M].dispose();this.features.length=0;g.y.prototype.u8.call(this)};ZNN.prototype.reset=function(){this.K=this.Z=NaN};g.C=rRb.prototype;g.C.reset=function(){Fx(this.timerName)}; g.C.tick=function(M,f){eh(M,f,this.timerName)}; g.C.In=function(M){return O7(M,void 0,this.timerName)}; g.C.d9=function(M){g.zE(M,void 0,this.timerName)}; g.C.infoGel=function(M){g.bB(M,this.timerName)};g.U(PJe,g.pi);g.C=PJe.prototype;g.C.VK=function(M){return this.loop||!!M||this.index+1=0}; g.C.setShuffle=function(M){this.shuffle=M;M=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var f=0;f0)||z0(this,1,!0)}; g.C.qk=function(){this.G=!0;this.K.Hv(this.N);this.N=this.K.J(document,"mouseup",this.cH)}; g.C.cH=function(){this.G=!1;z0(this,8,!1);this.K.Hv(this.N);this.N=this.K.J(this.target,"mousedown",this.qk)}; g.C.VC=function(M){if(M=(M=M.changedTouches)&&M[0])this.jk=M.identifier,this.K.Hv(this.X),this.X=this.K.J(this.target,"touchend",this.mz,void 0,!0),z0(this,1024,!0)}; g.C.mz=function(M){if(M=M.changedTouches)for(var f=0;f1280||Y>720)if(N=A.PK("maxresdefault.jpg"))break;if(Q>640||Y>480)if(N=A.PK("maxresdefault.jpg"))break; if(Q>320||Y>180)if(N=A.PK("sddefault.jpg")||A.PK("hqdefault.jpg")||A.PK("mqdefault.jpg"))break;if(N=A.PK("default.jpg"))break}g.Ys(f)&&(f=new Image,f.addEventListener("load",function(){Tk0()}),f.src=N?N:"",this.api.ZX().tick("ftr")); this.C.style.backgroundImage=N?"url("+N+")":""};g.U(g.$i,g.O);g.$i.prototype.resize=function(){}; g.$i.prototype.Z=function(M){var f=this;this.j=!1;iLd(this);var A=M.y0,Q=this.api.T();A!=="GENERIC_WITHOUT_LINK"||Q.G?A==="TOO_MANY_REQUESTS"?(Q=g.F(this.api.getVideoData()),this.Xk(dT(this,"TOO_MANY_REQUESTS_WITH_LINK",Q.Rq(),void 0,void 0,void 0,!1))):A!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||Q.G?this.api.T().V("html5_enable_bandaid_error_screen")&&A==="HTML5_SPS_UMP_STATUS_REJECTED"&&!Q.G?(Q=Q.hostLanguage,M="//support.google.com/youtube?p=videoError",Q&&(M=g.uj(M,{hl:Q})),this.Xk(dT(this,"HTML5_SPS_UMP_STATUS_REJECTED", M))):this.api.T().V("enable_adb_handling_in_sabr")&&A==="BROWSER_OR_EXTENSION_ERROR"&&!Q.G?(Q=Q.hostLanguage,M="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",Q&&(M=g.uj(M,{hl:Q})),this.Xk(dT(this,"BROWSER_OR_EXTENSION_ERROR",M))):this.Xk(g.Fl(M.errorMessage)):this.Xk(dT(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(M=Q.hostLanguage,A="//support.google.com/youtube/?p=player_error1",M&&(A=g.uj(A, {hl:M})),this.Xk(dT(this,"GENERIC_WITH_LINK_AND_CPN",A,!0)),Q.Yp&&!Q.C&&BCU(this,function(Y){if(g.t$(Y,f.api,!M1(f.api.T()))){Y={as3:!1,html5:!0,player:!0,cpn:g.F(f.api.getVideoData()).clientPlaybackNonce};var I=f.api;I.l7("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:Y});I.isFullscreen()&&I.toggleFullscreen()}})); if(this.j){var N=this.H7("ytp-error-link");N&&(this.api.createClientVe(N,this,216104),this.api.logVisibility(N,!0),BCU(this,function(){f.api.logClick(N)}))}}; var g5T=/([^<>]+)<\/a>/;g.U(xJz,g.O);g.C=xJz.prototype;g.C.onClick=function(M){this.innertubeCommand?(this.U.T0("innertubeCommand",this.innertubeCommand),M.preventDefault()):g.t$(M,this.U,!0);this.U.logClick(this.element)}; g.C.onVideoDataChange=function(M,f){r8b(this,f);this.Oq&&uzd(this,this.Oq)}; g.C.Go=function(M){var f=g.F(this.U.getVideoData());this.videoId!==f.videoId&&r8b(this,f);this.K&&uzd(this,M.state);this.Oq=M.state}; g.C.q5=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.C.fk=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.U(e3,g.O);e3.prototype.hide=function(){this.K.stop();this.message.style.display="none";g.O.prototype.hide.call(this)}; e3.prototype.onStateChange=function(M){this.Rt(M.state)}; e3.prototype.Rt=function(M){if(g.J(M,128)||this.api.uN())var f=!1;else{var A;f=this.api.V("web_watch_enable_multiview_manager")&&((A=this.api.getVideoData())==null?0:Om(A))?!1:g.J(M,16)||g.J(M,1)?!0:!1}f?this.K.start():this.hide()}; e3.prototype.Z=function(){this.message.style.display="block"};g.U(bf,g.Wj);bf.prototype.onMutedAutoplayChange=function(M){this.j&&(M?(zoN(this),this.q5()):(this.K&&this.logClick(),this.fk()))}; bf.prototype.t$=function(M){this.api.isMutedByMutedAutoplay()&&g.V2(M,2)&&this.fk()}; bf.prototype.onClick=function(){this.api.unMute();this.logClick()}; bf.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.U(g.ki,g.yK);g.C=g.ki.prototype;g.C.init=function(){var M=this.api,f=M.getPlayerStateObject();this.vT=M.getPlayerSize();this.Q7(f);this.bX();this.Tt();this.api.publish("basechromeinitialized",this);this.UZ()&&this.api.publish("standardControlsInitialized")}; g.C.onVideoDataChange=function(M,f){var A=this.y5!==f.videoId;if(A||M==="newdata")M=this.api,M.isFullscreen()||(this.vT=M.getPlayerSize());A&&(this.y5=f.videoId,A=this.Gb,A.P7=3E3,z0(A,512,!0),this.bX());this.api.V("web_render_jump_buttons")&&f.showSeekingControls&&(this.a7=572)}; g.C.XX3=function(){this.onVideoDataChange("newdata",g.F(this.api.getVideoData()))}; g.C.Wi=function(){var M=this.api.kP()&&this.api.R_(),f=this.api.hH();return this.b1||M||this.Xo||f}; g.C.J5=function(){var M=!this.Wi();g.Sb(this.api.getRootNode(),"ytp-menu-shown",!M)}; g.C.Iw=function(M){try{if(!g.IH(this.api.getRootNode(),M))return!1}catch(f){return!1}for(;M&&!dmT(M);)M=M===this.api.getRootNode()?null:M.parentElement||null;return!!M}; g.C.OU=function(M){var f=this.api.getRootNode();g.Sb(f,"ytp-autohide",M);g.Sb(f,"ytp-autohide-active",!0);this.RA.start(M?250:100);M&&(this.O8=!1,g.p5(f,"ytp-touch-mode"));this.F0=!M;this.api.I3(!M)}; g.C.BE=function(){var M=this.api.getRootNode();g.Sb(M,"ytp-autohide-active",!1)}; g.C.LLO=function(){this.q2=!0}; g.C.aKk=function(M){if(this.api.T().V("player_doubletap_to_seek")||this.api.T().W)this.q2=!1,this.VL&&this.Hv(this.VL),this.sG===0&&OM(this,M)?(this.Tn(),this.mP.start(),this.VL=this.J(this.api.ax(),"touchmove",this.LLO,void 0,!0)):this.mP.stop();$Jb(this)&&OM(this,M)&&!this.api.T().W&&n5t(this);var f=this.v9.eE();if(!g.Ps(this.api.T())&&Z9&&FKf(this,M))f&&M.preventDefault();else if(this.O8=!0,g.tZ(this.api.getRootNode(),"ytp-touch-mode"),this.Gb.Y1(),this.api.T().V("player_doubletap_to_seek")||this.api.T().W)if(f= this.api.getPlayerStateObject(),!(!this.api.BP()||g.J(f,2)&&g.ZF(this.api)||g.J(f,64))){f=Date.now()-this.Rl;this.sG+=1;if(f<=350){this.IK=!0;f=this.api.getPlayerSize().width/3;var A=this.api.getRootNode().getBoundingClientRect(),Q=M.targetTouches[0].clientX-A.left;A=M.targetTouches[0].clientY-A.top;var N=(this.sG-1)*10;Q>0&&Qf*2&&Q=650,Q=M.width<528;this.Gb.resize();g.Sb(f,"ytp-fullscreen",this.api.isFullscreen());g.Sb(f,"ytp-large-width-mode",A);this.api.V("delhi_modern_web_player")?g.Sb(f,"ytp-xsmall-width-mode",Q):g.Sb(f,"ytp-small-mode",this.Qi());g.Sb(f,"ytp-tiny-mode",this.lA());g.Sb(f,"ytp-big-mode",this.SV());this.q$&&this.q$.resize(M)}; g.C.t$=function(M){this.Q7(M.state);this.bX()}; g.C.yT=fb(5);g.C.d1=function(){var M=!!this.y5&&!this.api.yU()&&!this.lB,f=this.api.getPresentingPlayerType()===2,A=this.api.T();if(f){if(xcC&&A.V("enable_visit_advertiser_support_on_ipad_mweb"))return!1;f=Bt(this.api.kp());M&&(f&&f.player?M=(M=f.player.getVideoData(2))?M.isListed&&!g.i7(f.player.T()):!1:(o1("showInfoBarDuringAd: this is null"),M=!1));return M}return M&&(A.K8||this.api.isFullscreen()||A.ao)}; g.C.bX=function(){var M=this.d1();this.L8!==M&&(this.L8=M,g.Sb(this.api.getRootNode(),"ytp-hide-info-bar",!M))}; g.C.Q7=function(M){var f=M.isCued()||this.api.Rk()&&this.api.getPresentingPlayerType()!==3;f!==this.isCued&&(this.isCued=f,this.R1&&this.Hv(this.R1),this.R1=this.J(this.api.ax(),"touchstart",this.aKk,void 0,f));var A=this.Gb,Q=M.isPlaying()&&!g.J(M,32)||this.api.Hk();z0(A,128,!Q);A=this.Gb;Q=this.api.getPresentingPlayerType()===3;z0(A,256,Q);A=this.api.getRootNode();g.J(M,2)?Q=[WG.ENDED]:(Q=[],g.J(M,8)?Q.push(WG.PLAYING):g.J(M,4)&&Q.push(WG.PAUSED),g.J(M,1)&&!g.J(M,32)&&Q.push(WG.BUFFERING),g.J(M, 32)&&Q.push(WG.SEEKING),g.J(M,64)&&Q.push(WG.UNSTARTED));g.nm(this.Fs,Q)||(g.hZ(A,this.Fs),this.Fs=Q,g.vv(A,Q));Q=this.api.T();var N=g.J(M,2);a:{var Y=this.api.T();var I=Y.controlsType;switch(I){case "2":case "0":Y=!1;break a}Y=I==="3"&&!g.J(M,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:v9e(Bt(this.api.kp())))||this.api.hH()||g.Ps(Y)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Sb(A,"ytp-hide-controls",!Y);g.Sb(A,"ytp-native-controls",Q.controlsType==="3"&&!f&&!N&&!this.Xo);g.J(M, 128)&&!g.Ps(Q)?(this.q$||(this.q$=new g.$i(this.api),g.d(this,this.q$),g.$X(this.api,this.q$.element,4)),this.q$.Z(M.MQ),this.q$.show()):this.q$&&(this.q$.dispose(),this.q$=null)}; g.C.y3=function(){return this.api.kP()&&this.api.R_()?(this.api.fD(!1,!1),!0):this.api.yU()?(g.rx(this.api,!0),!0):!1}; g.C.onMutedAutoplayChange=function(M){this.Xo=M;this.J5()}; g.C.SV=function(){return!1}; g.C.Qi=function(){return!this.SV()&&(this.api.getPlayerSize().width=0&&f.left>=0&&f.bottom>f.top&&f.right>f.left?f:null;f=this.size;M=M.clone();f=f.clone();Q&&(I=f,N=5,(N&65)==65&&(M.x=Q.right)&&(N&=-2),(N&132)==132&&(M.y=Q.bottom)&&(N&=-5),M.xQ.right&&(I.width=Math.min(Q.right-M.x,Y+I.width-Q.left),I.width=Math.max(I.width,0))),M.x+I.width>Q.right&&N&1&&(M.x=Math.max(Q.right-I.width,Q.left)),M.yQ.bottom&&(I.height=Math.min(Q.bottom-M.y,Y+I.height-Q.top),I.height=Math.max(I.height,0))),M.y+I.height>Q.bottom&&N&4&&(M.y=Math.max(Q.bottom-I.height,Q.top)));Q=new g.zM(0,0,0,0);Q.left=M.x;Q.top=M.y;Q.width= f.width;Q.height=f.height;g.bW(this.element,new g.r2(Q.left,Q.top));g.u$(this.C);this.C.J(OX(this),"contextmenu",this.I9O);this.C.J(this.U,"fullscreentoggled",this.onFullscreenToggled);this.C.J(this.U,"pageTransition",this.WH)}; g.C.I9O=function(M){if(!M.defaultPrevented){var f=i$(M);g.IH(this.element,f)||this.fk();this.U.T().disableNativeContextMenu&&M.preventDefault()}}; g.C.onFullscreenToggled=function(){this.fk();teX(this)}; g.C.WH=function(){this.fk()};g.U(A5,g.O);A5.prototype.onClick=function(){var M=this,f,A,Q,N;return g.n(function(Y){if(Y.Z==1)return f=M.api.T(),A=g.F(M.api.getVideoData()),Q=M.api.getPlaylistId(),N=f.getVideoUrl(A.videoId,Q,void 0,!0),g.r(Y,hJb(M,N),2);Y.K&&pqb(M);M.api.logClick(M.element);g.qc(Y)})}; A5.prototype.Nu=function(){this.updateValue("icon",{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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","Copy link");this.visible=vvb(this);g.Sb(this.element,"ytp-copylink-button-visible",this.visible); this.aE(this.visible);this.tooltip.EJ();this.api.logVisibility(this.element,this.visible&&this.N)}; A5.prototype.Gt=function(M){g.O.prototype.Gt.call(this,M);this.api.logVisibility(this.element,this.visible&&M)}; A5.prototype.u8=function(){g.O.prototype.u8.call(this);g.p5(this.element,"ytp-copylink-button-visible")};g.U(S2z,g.O);g.C=S2z.prototype;g.C.show=function(){g.O.prototype.show.call(this);g.f5(this.Z)}; g.C.hide=function(){this.C.stop();this.j=0;this.H7("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.p5(this.element,"ytp-chapter-seek");g.p5(this.element,"ytp-time-seeking");g.O.prototype.hide.call(this)}; g.C.jJ=function(M,f,A,Q){this.j=M===this.W?this.j+Q:Q;this.W=M;var N=M===-1?this.B:this.X;N&&this.U.logClick(N);this.G?this.Z.stop():g.QI(this.Z);this.C.start();this.element.setAttribute("data-side",M===-1?"back":"forward");var Y=3*this.U.ax().getPlayerSize().height;N=this.U.ax().getPlayerSize();N=N.width/3-3*N.height;this.K.style.width=Y+"px";this.K.style.height=Y+"px";M===1?(this.K.style.left="",this.K.style.right=N+"px"):M===-1&&(this.K.style.right="",this.K.style.left=N+"px");var I=Y*2.5;Y=I/ 2;var D=this.H7("ytp-doubletap-ripple");D.style.width=I+"px";D.style.height=I+"px";M===1?(M=this.U.ax().getPlayerSize().width-f+Math.abs(N),D.style.left="",D.style.right=M-Y+"px"):M===-1&&(M=Math.abs(N)+f,D.style.right="",D.style.left=M-Y+"px");D.style.top="calc((33% + "+Math.round(A)+"px) - "+Y+"px)";if(A=this.H7("ytp-doubletap-ripple"))A.classList.remove("ytp-doubletap-ripple"),A.classList.add("ytp-doubletap-ripple");L4X(this,this.G?this.j:Q)}; g.C.NT=function(M,f,A){if(A=A===void 0?null:A){var Q=M===-1?this.B.visualElement:this.X.visualElement;A={seekData:A};var N=g.iH();N&&g.f0(AS)(void 0,N,Q,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",A,void 0)}this.j=M===this.W?this.j+f:f;this.W=M;Q=this.U.ax().getPlayerSize();this.G?this.Z.stop():g.QI(this.Z);this.C.start();this.element.setAttribute("data-side",M===-1?"back":"forward");g.tZ(this.element,"ytp-time-seeking");this.K.style.width="110px";this.K.style.height="110px";A=Q.width*.1-15;M=== 1?this.Er?(this.K.style.right=A+"px",this.K.style.left=""):(this.K.style.right="",this.K.style.left=Q.width*.8-30+"px"):M===-1&&(this.Er?(this.K.style.right="",this.K.style.left=A+"px"):(this.K.style.right="",this.K.style.left=Q.width*.1-15+"px"));this.K.style.top=Q.height*.5+15+"px";L4X(this,this.G?this.j:f)}; g.C.Xp=function(M,f,A){A=A===void 0?null:A;g.QI(this.Z);this.C.start();switch(M){case -1:M="back";break;case 1:M="forward";break;default:M=""}this.element.setAttribute("data-side",M);this.K.style.width="0";this.K.style.height="0";g.tZ(this.element,"ytp-chapter-seek");this.updateValue("seekText",f);this.updateValue("seekTime","");f=this.H7("ytp-seek-icon");if(A){a:if(A){switch(A){case "PREMIUM_STANDALONE":A=rOT();break a;case "PREMIUM_STANDALONE_CAIRO":A=u3d();break a}A=void 0}else A=null;this.updateValue("seekIcon", A);f.style.display="inline-block"}else f.style.display="none"};g.U(ovb,s3);g.C=ovb.prototype;g.C.OS=function(M){this.fJ||(this.fJ=new Z7(this.U),g.d(this,this.fJ));var f,A;if((f=this.Qw)==null?0:(A=f.menu)==null?0:A.menuRenderer)this.fJ.open(this.Qw.menu.menuRenderer,M.target),M.preventDefault()}; g.C.Lf=function(){return!!this.K}; g.C.Sf=function(){return!!this.K}; g.C.d8=function(M){M.target===this.overflowButton.element?M.preventDefault():(this.xp&&this.U.T0("innertubeCommand",this.xp),this.Hp(!1))}; g.C.z1=function(){this.Hp(!0);var M,f;((M=this.K)==null?0:(f=M.bannerData)==null?0:f.dismissedStatusKey)&&this.oE.push(this.K.bannerData.dismissedStatusKey);this.MC()}; g.C.nL=function(){this.MC();YU(this)}; g.C.rXx=function(M){var f=this,A;if(M.id!==((A=this.K)==null?void 0:A.identifier)){this.MC();A=g.V(this.P7);for(var Q=A.next();!Q.done;Q=A.next()){var N=Q.value,Y=void 0,I=void 0;if((Q=(Y=N)==null?void 0:(I=Y.bannerData)==null?void 0:I.itemData)&&N.identifier===M.id){I=Y=void 0;var D=((Y=N)==null?void 0:(I=Y.bannerData)==null?void 0:I.dismissedStatusKey)||"";if(this.oE.includes(D))return;this.K=N;this.banner.element.setAttribute("aria-label",Q.accessibilityLabel||"");Q.trackingParams&&(this.C=!0, this.U.setTrackingParams(this.badge.element,Q.trackingParams));this.B.show();m_(this);this.z0.aE(!Q.stayInApp);BjN(this);UGf(this);NL(this);this.xp=g.b(Q.onTapCommand,yv);if(N=g.b(Q.menuOnTap,yv))this.Qw=g.b(N,dVW);N=void 0;this.banner.update({thumbnail:(N=(Q.thumbnailSources||[])[0])==null?void 0:N.url,title:Q.productTitle,price:Q.priceReplacementText?Q.priceReplacementText:Q.price,salesOriginalPrice:q2f(this),priceDropReferencePrice:HTX(this),promotionText:aYd(this),priceA11yText:mGX(this),affiliateDisclaimer:Q.affiliateDisclaimer, vendor:s69(this)});D=I=Y=N=void 0;((N=Q)==null?0:(Y=N.hiddenProductOptions)==null?0:Y.showDropCountdown)&&((I=Q)==null?0:(D=I.hiddenProductOptions)==null?0:D.dropTimestampMs)&&(this.zt=new g.MY(function(){gv0(f)},1E3),this.z0.hide(),this.countdownTimer.show(),gv0(this)); this.U.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&Cxe(this)&&(this.Yp=new g.MY(function(){Ve0(f)},1E3),Ve0(this))}}this.U.getRootNode()&&g.tZ(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.C.MC=function(){this.K&&(this.K=void 0,this.s3(),this.U.getRootNode()&&g.p5(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.C.onVideoDataChange=function(M,f){var A=this;M==="dataloaded"&&YU(this);var Q,N,Y;M=g.b((Q=f.getWatchNextResponse())==null?void 0:(N=Q.playerOverlays)==null?void 0:(Y=N.playerOverlayRenderer)==null?void 0:Y.productsInVideoOverlayRenderer,FYR);this.overflowButton.show();this.dismissButton.hide();var I=M==null?void 0:M.featuredProductsEntityKey;this.trendingOfferEntityKey=M==null?void 0:M.trendingOfferEntityKey;this.P7.length||(RJf(this,I),NL(this));var D;(D=this.d2)==null||D.call(this);this.d2=g.Te.subscribe(function(){RJf(A, I);NL(A)})}; g.C.u8=function(){YU(this);BjN(this);UGf(this);s3.prototype.u8.call(this)};g.U(uZz,g.O);uZz.prototype.onClick=function(){this.U.logClick(this.element,this.Z)};g.U(zJz,g.Wj);g.C=zJz.prototype;g.C.show=function(){g.Wj.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);Px6(this,!0)}; g.C.hide=function(){g.Wj.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);Px6(this,!1)}; g.C.getId=function(){return this.C}; g.C.r6=function(){return this.itemData.length}; g.C.onVideoDataChange=function(M,f){if(f){var A,Q,N,Y;this.update({title:((A=f.Ev)==null?void 0:(Q=A.title)==null?void 0:Q.content)||"",body:((N=f.Ev)==null?void 0:(Y=N.bodyText)==null?void 0:Y.content)||""});var I;M=((I=f.Ev)==null?void 0:I.trackingParams)||null;this.U.setTrackingParams(this.element,M);I=g.V(this.itemData);for(M=I.next();!M.done;M=I.next())M.value.dispose();this.itemData=[];var D;if((D=f.Ev)==null?0:D.ctaButtons)for(f=g.V(f.Ev.ctaButtons),D=f.next();!D.done;D=f.next())if(D=g.b(D.value, u9w))D=new uZz(this.U,D,this.K),D.hh&&(this.itemData.push(D),D.pJ(this.items))}}; g.C.u8=function(){this.hide();g.Wj.prototype.u8.call(this)};g.U($GU,g.O);g.C=$GU.prototype;g.C.onVideoDataChange=function(M,f){j6d(this,f);this.Oq&&ylb(this,this.Oq)}; g.C.YM=function(M){var f=g.F(this.U.getVideoData());this.videoId!==f.videoId&&j6d(this,f);ylb(this,M.state);this.Oq=M.state}; g.C.Tp=function(M){(this.j=M)?this.hide():this.K&&this.show()}; g.C.wg=function(){this.Z||this.q5();this.showControls=!0}; g.C.vH=function(){this.Z||this.fk();this.showControls=!1}; g.C.q5=function(){var M,f=(M=this.U)==null?void 0:M.getPlayerSize();M=f.width<380;var A;f=f.height<(((A=this.U)==null?0:A.isEmbedsShortsMode())?400:280);var Q,N;(((Q=this.U)==null?0:Q.getPlayerStateObject().isCued())||((N=this.U)==null?0:g.J(N.getPlayerStateObject(),1024)))&&M&&f||!this.K||this.j||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}; g.C.fk=function(){this.K&&!this.j&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.C.xXx=function(){this.Z=!1;this.showControls||this.fk()};var kDm={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(kDm).reduce(function(M,f){M[kDm[f]]=f;return M},{}); var WGB={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(WGB).reduce(function(M,f){M[WGB[f]]=f;return M},{}); var O$m={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(O$m).reduce(function(M,f){M[O$m[f]]=f;return M},{});var XPB,Jov;XPB=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];Jov=[{option:0,text:Ix(0)},{option:.25,text:Ix(.25)},{option:.5,text:Ix(.5)},{option:.75,text:Ix(.75)},{option:1,text:Ix(1)}]; g.t5=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:XPB},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Ix(.5)},{option:-1,text:Ix(.75)},{option:0,text:Ix(1)},{option:1,text:Ix(1.5)},{option:2, text:Ix(2)},{option:3,text:Ix(3)},{option:4,text:Ix(4)}]},{option:"background",text:"Background color",options:XPB},{option:"backgroundOpacity",text:"Background opacity",options:Jov},{option:"windowColor",text:"Window color",options:XPB},{option:"windowOpacity",text:"Window opacity",options:Jov},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:Ix(.25)},{option:.5,text:Ix(.5)},{option:.75,text:Ix(.75)},{option:1,text:Ix(1)}]}];var KGm=[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.U(OTz,g.yK);g.C=OTz.prototype; g.C.On=function(M){M.repeat||(this.j.Q5=!1);var f=!1,A=M.keyCode,Q=i$(M),N=!M.altKey&&!M.ctrlKey&&!M.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||KGm.includes(A)),Y=!1,I=!1,D=this.api.T();M.defaultPrevented?(N=!1,I=!0):D.qX&&!this.api.isMutedByEmbedsMutedAutoplay()&&(N=!1);if(A===9)f=!0;else{if(Q)switch(A){case 32:case 13:if(Q.tagName==="BUTTON"||Q.tagName==="A"||Q.tagName==="INPUT")f=!0,N=!1;else if(N){var E=Q.getAttribute("role");!E||E!=="option"&&E!=="button"&&E.indexOf("menuitem")!==0|| (f=!0,Q.click(),Y=!0)}break;case 37:case 39:case 36:case 35:f=Q.getAttribute("role")==="slider";break;case 38:case 40:E=Q.getAttribute("role"),Q=A===38?Q.previousSibling:Q.nextSibling,E==="slider"?f=!0:N&&(E==="option"?(Q&&Q.getAttribute("role")==="option"&&Q.focus(),Y=f=!0):E&&E.indexOf("menuitem")===0&&(Q&&Q.hasAttribute("role")&&Q.getAttribute("role").indexOf("menuitem")===0&&Q.focus(),Y=f=!0))}if(N&&!Y)switch(A){case 38:Y=Math.min(this.api.getVolume()+5,100);KV(this.N3,Y,!1);this.api.setVolume(Y); I=Y=!0;break;case 40:Y=Math.max(this.api.getVolume()-5,0);KV(this.N3,Y,!0);this.api.setVolume(Y);I=Y=!0;break;case 36:this.api.BP()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),I=Y=!0);break;case 35:this.api.BP()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),I=Y=!0)}}f&&DK(this,!0);(f||I)&&this.Gb.Y1();(Y||N&&this.handleGlobalKeyDown(A,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat))&&M.preventDefault();D.X&&(M={keyCode:M.keyCode, altKey:M.altKey,ctrlKey:M.ctrlKey,metaKey:M.metaKey,shiftKey:M.shiftKey,handled:M.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Gj("onKeyPress",M))}; g.C.vR=function(M){var f=M.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.j.a4)&&this.handleGlobalKeyUp(f,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code)&&M.preventDefault()}; g.C.handleGlobalKeyUp=function(M,f,A,Q,N,Y,I){this.api.publish("keyboardserviceglobalkeyup",{keyCode:M,shiftKey:f,ctrlKey:A,altKey:Q,metaKey:N,key:Y,code:I});f=!1;if(this.j.Q5)return f;(Y=g.nv(this.api.kp()))&&(Y=Y.Dw)&&Y.B7&&(Y.RU(M),f=!0);switch(M){case 9:DK(this,!0);f=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.j.a4||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.T().qX){var D,E;M=(D=this.progressBar)== null?void 0:(E=D.Z)==null?void 0:E.isEnabled;f=this.OW(M)}break;case 39:(A7?Q:A)&&!N&&this.api.BP()&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),D=(D=this.api.getVideoData())?D.WK:[],E=eJT(D,this.api.getCurrentTime()*1E3),E!==-1&&this.K!=null&&(this.K.Xp(1,D[E].title),this.api.seekTo(D[E].startTime/1E3,void 0,void 0,void 0,52),f=!0))}return f}; g.C.handleGlobalKeyDown=function(M,f,A,Q,N,Y,I,D){D||(this.j.Q5=!1);var E=!1,t=this.api.T();if(t.qX&&!this.api.isMutedByEmbedsMutedAutoplay())return E;var v=g.nv(this.api.kp());if(v&&(v=v.Dw)&&v.B7)switch(M){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:E=v.VV(M)}t.G||E||(E=Y||String.fromCharCode(M).toLowerCase(),this.Z+=E,"awesome".indexOf(this.Z)===0||this.api.V("web_player_rtr_ctrls")&&"bday".indexOf(this.Z)===0?(E=!0,4===this.Z.length&&this.Z==="bday"&&this.api.V("web_player_rtr_ctrls")&& (ghX(this.N),this.Gb.Y1()),7===this.Z.length&&this.Z==="awesome"&&Zzc(this.api.getRootNode(),"ytp-color-party")):(this.Z=E,E="awesome".indexOf(this.Z)===0||"bday".indexOf(this.Z)===0));if(!E&&(!this.api.isMutedByEmbedsMutedAutoplay()||KGm.includes(M))){var p=this.api.getVideoData(),h,S;v=(h=this.progressBar)==null?void 0:(S=h.Z)==null?void 0:S.isEnabled;h=p?p.WK:[];S=A7?Q:A;switch(M){case 80:f&&!t.ox&&(J4(this.N3,z59(),"Previous"),this.api.previousVideo(),E=!0);break;case 78:f&&!t.ox&&(J4(this.N3, BO(),"Next"),this.api.nextVideo(),E=!0);break;case 74:this.api.BP()&&(this.api.startSeekCsiAction(),this.K?this.api.V("enable_key_press_seek_logging")?(E=Eq(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.K.NT(-1,10,E)):this.K.NT(-1,10):J4(this.N3,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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),E=!0);break;case 76:this.api.BP()&&(this.api.startSeekCsiAction(),this.K?this.api.V("enable_key_press_seek_logging")?(E=Eq(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.K.NT(1,10,E)):this.K.NT(1,10):J4(this.N3,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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),E=!0);break;case 37:this.api.BP()&&(this.api.startSeekCsiAction(),S?(S=bT0(h,this.api.getCurrentTime()*1E3),S!==-1&&this.K!=null&&(this.K.Xp(-1,h[S].title),this.api.seekTo(h[S].startTime/1E3,void 0,void 0,void 0,53),E=!0)):(this.K?this.api.V("enable_key_press_seek_logging")?(E=Eq(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.K.NT(-1,5,E)):this.K.NT(-1,5):J4(this.N3,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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),E=!0));break;case 39:this.api.BP()&&(this.api.startSeekCsiAction(),S?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(S=eJT(h,this.api.getCurrentTime()*1E3),S!==-1&&this.K!=null&&(this.K.Xp(1,h[S].title),this.api.seekTo(h[S].startTime/1E3,void 0,void 0,void 0,52),E=!0)):(this.K!=null?this.api.V("enable_key_press_seek_logging")?(E=Eq(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.K.NT(1,5,E)):this.K.NT(1, 5):J4(this.N3,{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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),E=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),KV(this.N3,this.api.getVolume(),!1)):(this.api.mute(),KV(this.N3,0,!0));E=!0;break;case 32:E=this.api.V("web_speedmaster_spacebar_control")?!this.api.T().ox:this.OW(v);break;case 75:E=this.OW(v);break;case 190:f?t.enableSpeedOptions&&Jlf(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E+.25,!0),dJN(this.N3,!1),E=!0):this.api.BP()&&(this.step(1),E=!0);break;case 188:f? t.enableSpeedOptions&&Jlf(this)&&(E=this.api.getPlaybackRate(),this.api.setPlaybackRate(E-.25,!0),dJN(this.N3,!0),E=!0):this.api.BP()&&(this.step(-1),E=!0);break;case 70:sBd(this.api)&&(this.api.toggleFullscreen().catch(function(){}),E=!0); break;case 27:v?(this.progressBar.zT(),E=!0):this.G()&&(E=!0)}if(t.controlsType!=="3")switch(M){case 67:g.ct(this.api.kp())&&(t=this.api.getOption("captions","track"),this.api.toggleSubtitles(),eoU(this.N3,!t||t&&!t.displayName),E=!0);break;case 79:ve(this,"textOpacity");break;case 87:ve(this,"windowOpacity");break;case 187:case 61:ve(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:ve(this,"fontSizeIncrement",!0,!0)}var L;f||A||Q||(M>=48&&M<=57?L=M-48:M>=96&&M<=105&&(L=M-96));L!=null&&this.api.BP()&& (this.api.startSeekCsiAction(),t=this.api.getProgressState(),this.api.seekTo(L/10*(t.seekableEnd-t.seekableStart)+t.seekableStart,void 0,void 0,void 0,81),E=!0);E&&this.Gb.Y1()}this.api.publish("keyboardserviceglobalkeydown",{keyCode:M,shiftKey:f,ctrlKey:A,altKey:Q,metaKey:N,key:Y,code:I,repeat:D},this.j);return E}; g.C.step=function(M){this.api.BP();if(this.api.getPlayerStateObject().isPaused()){var f=g.F(this.api.getVideoData()).Z;f&&(f=f.video)&&this.api.seekBy(M/(f.fps||30),void 0,void 0,M>0?77:78)}}; g.C.OW=function(M){if(!this.api.T().ox){var f;var A,Q=(f=this.api.getVideoData())==null?void 0:(A=f.getPlayerResponse())==null?void 0:A.playabilityStatus;if(Q){var N;f=((N=g.b(Q.miniplayer,J2B))==null?void 0:N.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else f=!1;f&&this.api.T0("onExpandMiniplayer");M?this.progressBar.qK():(M=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.N3.zw(M),M?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.C.u8=function(){g.QI(this.C);g.yK.prototype.u8.call(this)};g.U(g.p1,g.O);g.p1.prototype.n_=fb(11); g.p1.prototype.Nu=function(){var M=this.U.T(),f=M.j||this.U.V("web_player_hide_overflow_button_if_empty_menu")&&this.A3.isEmpty();M=g.Ps(M)&&g.zt(this.U)&&g.J(this.U.getPlayerStateObject(),128);var A=this.U.getPlayerSize();this.visible=this.U.Qi()&&!M&&A.width>=240&&!g.fv(g.F(this.U.getVideoData()))&&!f&&!this.K&&!this.U.isEmbedsShortsMode();g.Sb(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.U.EJ();this.U.logVisibility(this.element,this.visible&&this.N)}; g.p1.prototype.Gt=function(M){g.O.prototype.Gt.call(this,M);this.U.logVisibility(this.element,this.visible&&M)}; g.p1.prototype.u8=function(){g.O.prototype.u8.call(this);g.p5(this.element,"ytp-overflow-button-visible")};g.U(K4b,g.Wj);g.C=K4b.prototype;g.C.MO=function(M){M=i$(M);g.IH(this.element,M)&&(g.IH(this.K,M)||g.IH(this.closeButton,M)||Xf(this))}; g.C.fk=function(){g.Wj.prototype.fk.call(this);this.U.CI(this.element)}; g.C.show=function(){this.B7&&this.U.publish("OVERFLOW_PANEL_OPENED");g.Wj.prototype.show.call(this);this.element.setAttribute("aria-modal","true");wqd(this,!0)}; g.C.hide=function(){g.Wj.prototype.hide.call(this);this.element.removeAttribute("aria-modal");wqd(this,!1)}; g.C.onFullscreenToggled=function(M){!M&&this.eE()&&Xf(this)}; g.C.isEmpty=function(){return this.actionButtons.length===0}; g.C.focus=function(){for(var M=g.V(this.actionButtons),f=M.next();!f.done;f=M.next())if(f=f.value,f.B7){f.focus();break}};g.U(lYT,g.O);lYT.prototype.onClick=function(M){g.t$(M,this.api)&&this.api.playVideoAt(this.index)};g.U(Mx6,g.Wj);g.C=Mx6.prototype;g.C.show=function(){g.Wj.prototype.show.call(this);this.K.J(this.api,"videodatachange",this.MW);this.K.J(this.api,"onPlaylistUpdate",this.MW);this.MW()}; g.C.hide=function(){g.Wj.prototype.hide.call(this);g.u$(this.K);this.updatePlaylist(null)}; g.C.MW=function(){this.updatePlaylist(this.api.getPlaylist());this.api.T().j&&(this.H7("ytp-playlist-menu-title-name").removeAttribute("href"),this.j&&(this.Hv(this.j),this.j=null))}; g.C.LC=function(){var M=this.playlist,f=M.author,A=f?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",Q={CURRENT_POSITION:String(M.index+1),PLAYLIST_LENGTH:String(M.getLength())};f&&(Q.AUTHOR=f);this.update({title:M.title,subtitle:g.aC(A,Q),playlisturl:this.api.getVideoUrl(!0)});f=M.Z;if(f===this.C)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[M.index];else{A=g.V(this.playlistData);for(Q=A.next();!Q.done;Q=A.next())Q.value.dispose(); A=M.getLength();this.playlistData=[];for(Q=0;Q=this.Z&&!M.j&&!f.isAd()&&!this.api.isEmbedsShortsMode()}else M=!1;this.visible=M;this.aE(this.visible);g.Sb(this.element,"ytp-search-button-visible",this.visible);g.Sb(this.element,"ytp-show-search-title",!this.api.Qi());this.api.logVisibility(this.element,this.visible&&this.N)}; ox.prototype.Gt=function(M){g.O.prototype.Gt.call(this,M);this.api.logVisibility(this.element,this.visible&&M)};g.U(C1,g.O); C1.prototype.trigger=function(M,f,A,Q){this.show();if(this.C&&M!==this.C){var N=1;this.Z&&(N=pGU(this));TS0(this,N,!1);vpt(this)}this.C=M;this.j=this.C===-1?this.X:this.B;M="";f?(this.W+=f,M=g.B2(this.W)):this.W=0;this.updateValue(this.C===-1?"durationBack":"durationForward",M);if(this.K==="hidden"||this.K==="fading-out")f=0,this.K==="fading-out"&&(f=pGU(this),txt(this)),Dtf(this,f),this.K!=="fading-out"&&Epe(this,this.j.querySelector(".ytp-seek-overlay-arrow-persistent")),this.K="fading-in";else if(this.K=== "fading-in"||this.K==="lingering")f=this.j.querySelector(".ytp-seek-overlay-duration"),M=g.CE(this.U.T().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,f.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+M+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),txt(this),this.K==="lingering"&&(this.G.stop(),this.G.start());this.Er=(0,g.W)();A&&hMc(this,A,Q)}; C1.prototype.jJ=function(M,f,A,Q){this.trigger(M,Q)}; C1.prototype.NT=function(M,f,A){this.trigger(M,f);A&&(M=M===-1?this.B.visualElement:this.X.visualElement,A={seekData:A},(f=g.iH())&&g.f0(AS)(void 0,f,M,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",A,void 0))}; C1.prototype.Xp=function(M,f,A){this.trigger(M,void 0,f,A)};g.U(g.Uq,g.O);g.C=g.Uq.prototype;g.C.oG=fb(8); g.C.onClick=function(){var M=this,f=this.api.T(),A=g.F(this.api.getVideoData(this.api.getPresentingPlayerType())),Q=this.api.getPlaylistId();f=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):f.getVideoUrl(A.videoId,Q,void 0,!0);if(navigator.share)try{var N=navigator.share({title:A.title,url:f});N instanceof Promise&&N.catch(function(Y){LZz(M,Y)})}catch(Y){Y instanceof Error&&LZz(this,Y)}else this.K.y3(),Xf(this.j,this.element,!1); this.api.logClick(this.element)}; g.C.Nu=function(){var M=this.api.T(),f=this.api.isEmbedsShortsMode();g.Sb(this.element,"ytp-show-share-title",g.Ps(M)&&!f);this.K.SV()&&f?(M=(this.api.ax().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ji(this.element,"right",M+"px")):f&&g.ji(this.element,"right","0px");this.updateValue("icon",{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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=SVU(this);g.Sb(this.element,"ytp-share-button-visible",this.visible);this.aE(this.visible);this.tooltip.EJ();this.api.logVisibility(this.element,SVU(this)&&this.N)}; g.C.Gt=function(M){g.O.prototype.Gt.call(this,M);this.api.logVisibility(this.element,this.visible&&M)}; g.C.u8=function(){g.O.prototype.u8.call(this);g.p5(this.element,"ytp-share-button-visible")};g.U(Cnc,g.Wj);g.C=Cnc.prototype;g.C.hM=function(M){M=i$(M);g.IH(this.G,M)||g.IH(this.closeButton,M)||Xf(this)}; g.C.fk=function(){g.Wj.prototype.fk.call(this);this.tooltip.CI(this.element);this.api.logVisibility(this.K,!1);for(var M=g.V(this.j),f=M.next();!f.done;f=M.next())f=f.value,this.api.hasVe(f.element)&&this.api.logVisibility(f.element,!1)}; g.C.show=function(){var M=this.B7;g.Wj.prototype.show.call(this);this.Nu();M||this.api.T0("onSharePanelOpened")}; g.C.du8=function(){this.B7&&this.Nu()}; g.C.Nu=function(){var M=this;g.tZ(this.element,"ytp-share-panel-loading");g.p5(this.element,"ytp-share-panel-fail");var f=g.F(this.api.getVideoData()),A=this.api.getPlaylistId()&&this.C.checked;f.getSharePanelCommand&&Kp(g.F(this.api.YI()),f.getSharePanelCommand,{includeListId:A}).then(function(Q){M.ek()||(g.p5(M.element,"ytp-share-panel-loading"),aad(M,Q))}); f=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",f);this.updateValue("linkText",f);this.updateValue("shareLinkWithUrl",g.aC("Share link $URL",{URL:f}));h$(this.K);this.api.logVisibility(this.K,!0)}; g.C.onFullscreenToggled=function(M){!M&&this.eE()&&Xf(this)}; g.C.focus=function(){this.K.focus()}; g.C.u8=function(){g.Wj.prototype.u8.call(this);Ute(this)};g.U(mtd,s3);g.C=mtd.prototype;g.C.u8=function(){BSU(this);s3.prototype.u8.call(this)}; g.C.d8=function(M){M.target!==this.dismissButton.element&&(this.Hp(!1),this.U.T0("innertubeCommand",this.onClickCommand))}; g.C.z1=function(){this.Ji=!0;this.Hp(!0);this.s3()}; g.C.Adk=function(M){this.W=M;this.s3()}; g.C.onVideoDataChange=function(M,f){if(M=!!f.videoId&&this.videoId!==f.videoId)this.videoId=f.videoId,this.Ji=!1,this.jk=!0,this.X=this.KJ=!1,BSU(this),gp0(this,!1),this.Z=this.K=!1,ax(this),swc(this);if(M||!f.videoId)this.Er=this.C=!1;var A,Q;if(f==null?0:(A=f.getPlayerResponse())==null?0:(Q=A.videoDetails)==null?0:Q.isLiveContent)this.Zy(!1);else{var N,Y,I;f=g.b((N=f.getWatchNextResponse())==null?void 0:(Y=N.playerOverlays)==null?void 0:(I=Y.playerOverlayRenderer)==null?void 0:I.productsInVideoOverlayRenderer, FYR);this.W=this.enabled=!1;if(f){if(N=f==null?void 0:f.featuredProductsEntityKey){Y=g.Te.getState().entities;var D;if((D=Qd(Y,"featuredProductsEntity",N))==null?0:D.productsData){this.Zy(!1);return}}this.enabled=!0;if(!this.C){var E;D=(E=f.badgeInteractionLogging)==null?void 0:E.trackingParams;(this.C=!!D)&&this.U.setTrackingParams(this.badge.element,D||null)}if(!this.Er){var t;if(this.Er=!((t=f.dismissButton)==null||!t.trackingParams)){var v;this.U.setTrackingParams(this.dismissButton.element,((v= f.dismissButton)==null?void 0:v.trackingParams)||null)}}f.isContentForward&&(E=f.productsData,gp0(this,!0),swc(this),E=RMz(this,E),t=[],E.length>0&&t.push(E[0]),E.length>1&&(v=new g.O({S:"div",Y:"ytp-suggested-action-more-products-icon"}),g.d(this,v),t.push(v),t.push.apply(t,g.c(E.slice(1)))),this.G=new g.O({S:"div",L:t,Y:"ytp-suggested-action-content-forward-container"}),g.d(this,this.G),this.g_.element.append(this.G.element));this.text=g.ae(f.text);var p;if(E=(p=f.dismissButton)==null?void 0:p.a11yLabel)this.YO= g.ae(E);this.onClickCommand=f.onClickCommand;this.timing=f.timing;this.L3()}Ciz(this);m_(this);this.s3()}}; g.C.Lf=function(){return!this.W&&this.enabled&&!this.Ji&&!this.U.Qi()&&!this.Z9&&(this.X||this.jk)}; g.C.MP=function(M){s3.prototype.MP.call(this,M);if(this.K||this.Z)this.timing&&V3(this.timing.preview)&&(this.K=!1,ax(this),this.Z=!1,ax(this),this.U.GU("shopping_overlay_preview_collapsed"),this.U.GU("shopping_overlay_preview_expanded"),M=qL(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),V3(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.GU("shopping_overlay_expanded"),M.end=this.timing.expanded.endSec*1E3),this.U.L3([M])), this.KJ=!0,m_(this);ax(this)}; g.C.Zy=function(M){(this.X=M)?(Hz(this),m_(this,!1)):(BSU(this),this.nJ.start());this.s3()}; g.C.L3=function(M){var f=this.timing;M=(M===void 0?0:M)+this.U.getCurrentTime();var A=[],Q=f.visible,N=f.preview;f=f.expanded;V3(Q)&&(qVX(Q,M),A.push(qL(Q.startSec,Q.endSec,"shopping_overlay_visible")));V3(N)&&(qVX(N,M),Q=N.startSec+1,A.push(qL(N.startSec,Q,"shopping_overlay_preview_collapsed")),A.push(qL(Q,N.endSec,"shopping_overlay_preview_expanded")));V3(f)&&(qVX(f,M),A.push(qL(f.startSec,f.endSec,"shopping_overlay_expanded")));this.U.L3(A)}; g.C.s3=function(){s3.prototype.s3.call(this);this.U.getRootNode()&&g.Sb(this.U.getRootNode(),"ytp-shopping-pill-shown",this.Lf())};g.U(ZRd,g.O); ZRd.prototype.Nu=function(){var M=this.api.T();this.aE(g.Ps(M)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.B7);var f=g.F(this.api.getVideoData()),A=!1;this.api.getPresentingPlayerType()===2?A=!!f.videoId&&!!f.isListed&&!!f.author&&!!f.b8&&!!f.profilePicture:g.Ps(M)&&(A=!!f.videoId&&!!f.b8&&!!f.profilePicture&&!g.fv(f)&&!M.j&&!(M.W&&this.api.getPlayerSize().width<200));var Q=f.profilePicture;M=g.Ps(M)?f.expandedTitle:f.author;Q=Q=== void 0?"":Q;M=M===void 0?"":M;A?(this.Z!==Q&&(this.K.style.backgroundImage="url("+Q+")",this.Z=Q),this.updateValue("channelLogoLabel",g.aC("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:M})),g.tZ(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.p5(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.K,A&&this.N);this.api.logVisibility(this.channelName,A&&this.N);this.subscribeButton&&(this.subscribeButton.channelId=f.QM);this.updateValue("expandedTitle",f.expandedTitle)};g.U(He,g.Wj);He.prototype.show=function(){g.Wj.prototype.show.call(this);this.K.start()}; He.prototype.hide=function(){g.Wj.prototype.hide.call(this);this.K.stop()}; He.prototype.q_=function(M,f){M==="dataloaded"&&((this.wL=f.wL,this.qX=f.qX,isNaN(this.wL)||isNaN(this.qX))?this.j&&(this.U.GU("intro"),this.U.removeEventListener(g.EW("intro"),this.W),this.U.removeEventListener(g.tf("intro"),this.G),this.U.removeEventListener("onShowControls",this.C),this.hide(),this.j=!1):(this.U.addEventListener(g.EW("intro"),this.W),this.U.addEventListener(g.tf("intro"),this.G),this.U.addEventListener("onShowControls",this.C),M=new g.T1(this.wL,this.qX,{priority:9,namespace:"intro"}), this.U.L3([M]),this.j=!0))};g.U(mf,g.O);mf.prototype.onClick=function(){this.U.PQ()}; mf.prototype.Nu=function(){var M=!0;g.Ps(this.U.T())&&(M=M&&this.U.ax().getPlayerSize().width>=480);this.aE(M);this.updateValue("icon",this.U.Dy()?{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,D:{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"}}]}: {S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.U(u$D,g.O);u$D.prototype.u8=function(){this.K=null;g.O.prototype.u8.call(this)};g.U(sq,g.O);sq.prototype.onClick=function(){this.U.T0("innertubeCommand",this.Z)}; sq.prototype.B=function(M){M!==this.G&&(this.update({title:M,ariaLabel:M}),this.G=M);M?this.show():this.hide()}; sq.prototype.X=function(){this.K.disabled=this.Z==null;g.Sb(this.K,"ytp-chapter-container-disabled",this.K.disabled);this.z_()};g.U(ce,sq);ce.prototype.onClickCommand=function(M){g.b(M,IJ)&&this.z_()}; ce.prototype.updateVideoData=function(M,f){var A,Q,N;M=g.b((A=f.getWatchNextResponse())==null?void 0:(Q=A.playerOverlays)==null?void 0:(N=Q.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,rq);A=g.b(M==null?void 0:M.playerBarActionButton,g.kG);this.U.V("web_player_updated_entrypoint")&&(this.W=rp(A==null?void 0:A.text));this.Z=A==null?void 0:A.command;sq.prototype.X.call(this)}; ce.prototype.z_=function(){var M=this.U.V("web_player_updated_entrypoint")?this.W:"",f=this.C.K,A,Q=((A=this.U.getLoopRange())==null?void 0:A.type)==="clips";if(f.length>1&&!Q){M=this.U.getProgressState().current*1E3;A=TV(f,M);M=f[A].title||"Chapters";if(A!==this.currentIndex||this.j)this.U.T0("innertubeCommand",f[A].onActiveCommand),this.currentIndex=A;this.j=!1}else this.j=!0;sq.prototype.B.call(this,M)};g.U(Rx,g.Ci);Rx.prototype.Z=function(){var M;(M=this.element.parentElement)==null||M.classList.contains("ytp-right-controls-left");(this.K=!this.K)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; Rx.prototype.isExpanded=function(){return this.K};g.U(gK,g.O);gK.prototype.j=function(M){g.J(M.state,32)?PnU(this,this.api.u3()):this.B7&&(g.J(M.state,16)||g.J(M.state,1))||this.fade.hide()}; gK.prototype.wf=function(){var M=this.api.getPlayerStateObject();(g.J(M,32)||g.J(M,16))&&np9(this)}; gK.prototype.C=function(){this.frameIndex=NaN;np9(this)}; gK.prototype.hide=function(){this.K&&PnU(this,null);g.O.prototype.hide.call(this)};g.U(jwt,g.O);g.C=jwt.prototype;g.C.onClick=function(){var M=this;if(this.U.T().Qw||this.U.T().W){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(f){M.D$(f)})}catch(f){this.D$(f)}}else Xf(this.message,this.element,!0)}; g.C.D$=function(M){String(M).includes("fullscreen error")?g.$b(M):g.jZ(M);this.Cp()}; g.C.Cp=function(){this.disable();this.message.q5(this.element,!0)}; g.C.G3=function(){HD()===this.U.getRootNode()?this.j.start():(this.j.stop(),this.message&&this.message.hide())}; g.C.ou=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var M=window.screen.width*.9,f=window.screen.height*.9,A=Math.max(window.outerWidth,window.innerWidth),Q=Math.max(window.outerHeight,window.innerHeight);if(A>Q!==M>f){var N=A;A=Q;Q=N}M>A&&f>Q&&this.Cp()}}; g.C.disable=function(){var M=this;if(!this.message){var f=(Vi(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.Wj(this.U,{S:"div",Ai:["ytp-popup","ytp-generic-popup"],D:{role:"alert",tabindex:"0"},L:[f[0],{S:"a",D:{href:"https://support.google.com/youtube/answer/6276924", target:this.U.T().B},Ix:f[2]},f[4]]},100,!0);this.message.hide();g.d(this,this.message);this.message.subscribe("show",function(A){M.Z.HM(M.message,A)}); g.$X(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.K)();this.K=null}}; g.C.Nu=function(){var M=sBd(this.U),f=this.U.T().W&&this.U.getPlayerSize().width<250;this.aE(M&&!f);var A;((A=this.U.T())==null?0:A.V("embeds_use_parent_visibility_in_ve_logging"))?this.U.logVisibility(this.element,this.B7&&this.N):this.U.logVisibility(this.element,this.B7)}; g.C.bS=function(M){if(M){var f={S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"g",Y:"ytp-fullscreen-button-corner-2",L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{S:"g",Y:"ytp-fullscreen-button-corner-3",L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{S:"g",Y:"ytp-fullscreen-button-corner-0",L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{S:"g", Y:"ytp-fullscreen-button-corner-1",L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};M=g.ie(this.U,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(A){g.$b(A)})}else f={S:"svg", D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"g",Y:"ytp-fullscreen-button-corner-0",L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{S:"g",Y:"ytp-fullscreen-button-corner-1",L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{S:"g",Y:"ytp-fullscreen-button-corner-2",L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{S:"g",Y:"ytp-fullscreen-button-corner-3", L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},M=g.ie(this.U,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});M=this.message?null:M;this.update({title:M,icon:f});this.Z.Wu().EJ()}; g.C.u8=function(){this.message||((0,this.K)(),this.K=null);g.O.prototype.u8.call(this)}; g.C.Gt=function(M){g.O.prototype.Gt.call(this,M);var f;((f=this.U.T())==null?0:f.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.B7&&M)};g.U(Be,g.O);Be.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.K,!0);var M=this.K>0?1:-1,f=Math.abs(this.K),A;(A=this.U.v2().Sw)&&A.NT(M,f);this.Z.isActive()?this.j=!0:(M=["ytp-jump-spin"],this.K<0&&M.push("backwards"),this.element.classList.add.apply(this.element.classList,g.c(M)),g.f5(this.Z))};g.U(ii,sq);ii.prototype.onClickCommand=function(M){g.b(M,jXR)&&this.z_()}; ii.prototype.updateVideoData=function(){var M,f;this.Z=(M=FZU(this))==null?void 0:(f=M.onTap)==null?void 0:f.innertubeCommand;sq.prototype.X.call(this)}; ii.prototype.z_=function(){var M="",f=this.C.W,A,Q=(A=FZU(this))==null?void 0:A.headerTitle;A=Q?g.ae(Q):"";var N;Q=((N=this.U.getLoopRange())==null?void 0:N.type)==="clips";f.length>1&&!Q&&(M=this.U.getProgressState().current*1E3,N=dGb(f,M),M=N!=null?f[N].title:A,N!=null&&N!==this.currentIndex&&(this.U.T0("innertubeCommand",f[N].onActiveCommand),this.currentIndex=N));sq.prototype.B.call(this,M)};g.U(xU,g.O);xU.prototype.onClick=function(){this.U.T0("onCollapseMiniplayer");this.U.logClick(this.element)}; xU.prototype.Nu=function(){this.visible=!this.U.isFullscreen();this.aE(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)}; xU.prototype.Gt=function(M){g.O.prototype.Gt.call(this,M);this.U.logVisibility(this.element,this.visible&&M)};g.U(ZK,g.O);ZK.prototype.init=function(){this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.C);this.updateValue("stepvalue",this.G);this.updateValue("slidervalue",this.K);yPt(this,this.K)}; ZK.prototype.tN=function(){rK(this,Number(this.Z.value));this.Z.focus()}; ZK.prototype.NU=function(M){if(!M.defaultPrevented){switch(M.code){case "ArrowDown":M=-this.G;break;case "ArrowUp":M=this.G;break;default:return}rK(this,Math.min(this.C,Math.max(Number((this.K+M).toFixed(2)),this.j)))}};g.U(dtU,ZK);g.C=dtU.prototype;g.C.onVolumeChange=function(M){if(this.W)this.W=!1;else{var f=M.volume;f===0||M.muted?rK(this,0):rK(this,f)}}; g.C.tN=function(){ZK.prototype.tN.call(this);this.X(this.K)}; g.C.NU=function(M){ZK.prototype.NU.call(this,M);this.X(this.K)}; g.C.l0=function(M){var f=M.deltaX||M.deltaY;f=M.deltaMode?g.ih(this.K+f,0,100):g.ih(this.K+g.ih(f/10,-10,10),0,100);f===0?rK(this,0):rK(this,f);this.X(f);M.preventDefault()}; g.C.rg=function(M,f){this.W=!0;M===0||f?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(M))};g.U(eMD,g.O);g.U(zV,g.O);g.C=zV.prototype;g.C.Ok=function(M){this.visible=M.width>=300||this.fJ;this.aE(this.visible);this.U.logVisibility(this.element,this.visible&&this.N)}; g.C.cJ=function(){this.U.T().g_?this.U.isMuted()?this.U.unMute():this.U.mute():Xf(this.message,this.element,!0);this.U.logClick(this.element)}; g.C.nz0=function(M){if(this.U.T().g_&&this.K)if(M.target===this.j){var f;if(!this.U.c_()||((f=this.K)==null?0:f.isVisible))this.cJ();else{var A;(A=this.K)!=null&&ui(A,!0)}}else{var Q;(Q=this.K)!=null&&ui(Q,!0)}else this.cJ()}; g.C.onVolumeChange=function(M){this.setVolume(M.volume,M.muted)}; g.C.setVolume=function(M,f){var A=this,Q=f?0:M/100,N=this.U.T();M=Q===0?1:M>50?1:0;if(this.X!==M){var Y=this.P7;isNaN(Y)?ORN(this,M):Q2b(this.g_,function(D){ORN(A,Y+(A.X-Y)*D)},250); this.X=M}Q=Q===0?1:0;if(this.W!==Q){var I=this.KJ;isNaN(I)?XGN(this,Q):Q2b(this.jk,function(D){XGN(A,I+(A.W-I)*D)},250); this.W=Q}N.g_&&(N=g.ie(this.U,"Mute","m"),Q=g.ie(this.U,"Unmute","m"),this.updateValue("title",f?Q:N),this.update({"data-title-no-tooltip":f?"Unmute":"Mute"}),this.tooltip.EJ())}; g.C.Gt=function(M){g.O.prototype.Gt.call(this,M);this.U.logVisibility(this.element,this.visible&&M)}; var klz=["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"],WZe=["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.U(g.Pe,g.O);g.C=g.Pe.prototype;g.C.onStateChange=function(M){this.Rt(M.state);var f;((f=this.U.T())==null?0:f.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.B7&&this.N)}; g.C.Rt=function(M){var f=g.Zt(g.F(this.U.getVideoData())),A=!1;M.isOrWillBePlaying()?M=f?4:2:g.J(M,2)?(M=3,A=f):M=1;this.element.disabled=A;if(this.K!==M){f=null;switch(M){case 2:f=g.ie(this.U,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:f="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:f=g.ie(this.U,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:f="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}M=== 3?this.update({title:f,icon:JPe(this,M)}):(this.update({title:f}),(f=JPe(this,M))&&this.K&&this.K!==3?Y$f(this.transition,this.element,f):this.updateValue("icon",f));this.tooltip.EJ();this.K=M}}; g.C.onVideoDataChange=function(){g.Sb(this.element,"ytp-play-button-playlist",g.zt(this.U))}; g.C.OW=function(M){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var f={},A;if((A=this.U.getVideoData())==null?0:A.G)f.cttAuthInfo={token:this.U.getVideoData().G,videoId:this.U.getVideoData().videoId};k7("direct_playback",f);this.U.ZX().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(M==null?void 0:M.type)==="click"&&this.element.blur()}; g.C.Gt=function(M){g.O.prototype.Gt.call(this,M);var f;((f=this.U.T())==null?0:f.V("embeds_use_parent_visibility_in_ve_logging"))&&this.U.logVisibility(this.element,this.B7&&M)};g.U(g.n1,g.O);g.C=g.n1.prototype;g.C.onVideoDataChange=function(){Glb(this);this.C&&(this.Hv(this.C),this.C=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.J(this.U,"progresssync",this.ag);this.j=wGU(this);KZ0(this);this.JQ(this.U.ax().getPlayerSize())}; g.C.JQ=function(M){M=M===void 0?this.U.ax().getPlayerSize():M;var f,A=((f=this.U.getLoopRange())==null?void 0:f.type)==="clips";M=(g.zt(this.U)||this.K&&g.Ff(this.U)&&!this.U.V("web_hide_next_button")||la6(this))&&!A&&(this.K||M.width>=400);this.aE(M);this.U.logVisibility(this.element,M)}; g.C.onClick=function(M){this.U.logClick(this.element);var f=!0;this.W?f=g.t$(M,this.U):M.preventDefault();f&&(this.K&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.K?(h4(this.U.ZX()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.j?this.U.seekTo(0):(h4(this.U.ZX()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.C.ag=function(){var M=wGU(this);M!==this.j&&(this.j=M,KZ0(this))}; g.C.u8=function(){this.Z&&(this.Z(),this.Z=null);Glb(this);g.O.prototype.u8.call(this)};g.U(fid,g.O);g.C=fid.prototype;g.C.b0=function(M){this.Td(M.pageX);this.Xs(M.pageX+M.deltaX);ANf(this)}; g.C.Td=function(M){this.Er=M-this.fJ}; g.C.Xs=function(M){M-=this.fJ;!isNaN(this.Er)&&this.thumbnails.length>0&&(this.B=M-this.Er,this.thumbnails.length>0&&this.B!==0&&(this.j=this.X+this.B,M=TW9(this,this.j),this.j<=this.K/2&&this.j>=Iiz(this)?(this.api.seekTo(M,!1,void 0,void 0,25),g.ji(this.jk,"transform","translateX("+(this.j-this.K/2)+"px)"),M9z(this,M)):this.j=this.X))}; g.C.LX=function(){this.KJ&&(this.KJ.F9=!0);var M=(0,g.W)()-this.ox<300;if(Math.abs(this.B)<5&&!M){this.ox=(0,g.W)();M=this.Er+this.B;var f=this.K/2-M;this.Td(M);this.Xs(M+f);ANf(this);this.api.logClick(this.G)}ANf(this)}; g.C.F$=function(){jf(this,this.api.getCurrentTime())}; g.C.play=function(M){this.api.seekTo(TW9(this,this.j),void 0,void 0,void 0,26);this.api.playVideo();M&&this.api.logClick(this.playButton)}; g.C.onExit=function(M){this.api.seekTo(this.nJ,void 0,void 0,void 0,63);this.api.playVideo();M&&this.api.logClick(this.dismissButton)}; g.C.Tt=function(M,f){this.fJ=M;this.K=f;jf(this,this.api.getCurrentTime())}; g.C.enable=function(){this.isEnabled||(this.isEnabled=!0,this.nJ=this.api.getCurrentTime(),M9z(this,this.nJ),g.Sb(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.g_=this.J(this.element,"wheel",this.b0),this.logVisibility(this.isEnabled))}; g.C.disable=function(){this.isEnabled=!1;this.hide();g.Sb(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.g_&&this.Hv(this.g_);this.logVisibility(this.isEnabled)}; g.C.reset=function(){this.disable();this.C=[];this.z0=!1}; g.C.logVisibility=function(M){this.api.logVisibility(this.element,M);this.api.logVisibility(this.G,M);this.api.logVisibility(this.dismissButton,M);this.api.logVisibility(this.playButton,M)}; g.C.u8=function(){for(;this.Z.length;){var M=void 0;(M=this.Z.pop())==null||M.dispose()}g.O.prototype.u8.call(this)}; g.U(Qi9,g.O);g.U(NWT,g.O);g.U(DBc,g.O);g.U($U,g.O);$U.prototype.iI=function(M){return M==="PLAY_PROGRESS"?this.X:M==="LOAD_PROGRESS"?this.W:M==="LIVE_BUFFER"?this.G:this.j};vKz.prototype.update=function(M,f,A,Q){A=A===void 0?0:A;this.width=f;this.C=A;this.K=f-A-(Q===void 0?0:Q);this.position=g.ih(M,A,A+this.K);this.j=this.position-A;this.Z=this.j/this.K};g.U(pnd,g.O);g.U(g.dK,g.Ci);g.C=g.dK.prototype; g.C.FS=function(){var M=!1,f=this.api.getVideoData();if(!f)return M;this.api.GU("timedMarkerCueRange");Lyb(this);for(var A=g.V(f.w_),Q=A.next();!Q.done;Q=A.next()){Q=Q.value;var N=void 0,Y=(N=this.YO[Q])==null?void 0:N.markerType;N=void 0;var I=(N=this.YO[Q])==null?void 0:N.markers;if(!I)break;if(Y==="MARKER_TYPE_TIMESTAMPS"){M=g.V(I);for(Y=M.next();!Y.done;Y=M.next()){N=Y.value;Y=new pnd;I=void 0;Y.title=((I=N.title)==null?void 0:I.simpleText)||"";Y.timeRangeStartMillis=Number(N.startMillis);Y.K= Number(N.durationMillis);var D=I=void 0;Y.onActiveCommand=(D=(I=N.onActive)==null?void 0:I.innertubeCommand)!=null?D:void 0;qbf(this,Y)}HPz(this,this.W);M=this.W;Y=this.Yx;N=[];I=null;for(D=0;DE&&(I.end=E);E=k60(E,E+v);N.push(E);I=E;Y[E.id]=M[D].onActiveCommand}}this.api.L3(N);this.WK=this.YO[Q];M=!0}else if(Y==="MARKER_TYPE_HEATMAP"){Q=this.YO[Q];v=t=N=E=D=I=void 0;if(Q&& Q.markers){Y=(N=(v=Q.markersMetadata)==null?void 0:(t=v.heatmapMetadata)==null?void 0:t.minHeightDp)!=null?N:0;N=(I=(E=Q.markersMetadata)==null?void 0:(D=E.heatmapMetadata)==null?void 0:D.maxHeightDp)!=null?I:60;I=this.K.length;D=null;for(E=0;E=v&&L<=p&&t.push(S)}N>0&&(this.KJ.style.height= N+"px");v=this.C[E];p=t;S=Y;var a=N,q=E===0;q=q===void 0?!1:q;EKf(v,a);h=p;L=v.Z;q=q===void 0?!1:q;var m=1E3/h.length,R=[];R.push({x:0,y:100});for(var u=0;u0&&(D=t[t.length-1])}g.ef(this)}N=void 0;Y=[];if(Q=(N=Q.markersDecoration)==null?void 0:N.timedMarkerDecorations)for(Q=g.V(Q),N=Q.next();!N.done;N=Q.next())N=N.value,E=D=I=void 0,Y.push({visibleTimeRangeStartMillis:(I=N.visibleTimeRangeStartMillis)!=null?I:-1,visibleTimeRangeEndMillis:(D=N.visibleTimeRangeEndMillis)!=null?D:-1,decorationTimeMillis:(E=N.decorationTimeMillis)!= null?E:NaN,label:N.label?g.ae(N.label):""});Q=Y;this.heatMarkersDecorations=Q}}f.yG=this.W;g.Sb(this.element,"ytp-timed-markers-enabled",M);return M}; g.C.Tt=function(){g.ef(this);We(this);HPz(this,this.W);if(this.Z){var M=g.WC(this.element).x||0;this.Z.Tt(M,this.G)}}; g.C.Jd0=function(){var M=this.api.getVideoData();M&&uef(this,M)}; g.C.onClickCommand=function(M){if(M=g.b(M,IJ)){var f=M.key;M.isVisible&&f&&RPb(this,f)}}; g.C.puY=function(M){this.api.T0("innertubeCommand",this.Yx[M.id])}; g.C.z_=function(){We(this);var M=this.api.getCurrentTime();(Mthis.clipEnd)&&this.Xz()}; g.C.Df=function(M){if(!M.defaultPrevented){var f=!1;switch(M.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);f=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);f=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);f=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);f=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&wK(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);f=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&wK(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),f=!0}f&&M.preventDefault()}}; g.C.q_=function(M,f){this.updateVideoData(f,M==="newdata")}; g.C.rd=function(){this.q_("newdata",g.F(this.api.getVideoData()))}; g.C.updateVideoData=function(M,f){f=f===void 0?!1:f;var A=!!M&&M.hh();A&&(MZ(M)||ZPt(this)?this.Uw=!1:this.Uw=M.allowLiveDvr,g.Sb(this.api.getRootNode(),"ytp-enable-live-buffer",!(M==null||!MZ(M))),this.api.V("enable_custom_playhead_parsing")&&uef(this,M));OP9(this,this.api.BP());if(f){if(A){f=M.clipEnd;this.clipStart=M.clipStart;this.clipEnd=f;li(this);for(J5(this,this.Er,this.Qw);this.C.length>0;)this.C.pop().dispose();this.heatMarkersDecorations=[];this.zt={};var Q;(Q=this.Z)==null||Q.reset(); Nz(this);g.Sb(this.api.getRootNode(),"ytp-fine-scrubbing-exp",y3(this))}else this.Xz();this.jA()}if(M){var N;Q=((N=this.PX)==null?void 0:N.type)==="clips";if(N=!M.isLivePlayback){N=g.F(this.api.getVideoData());f=g.uS(N);A=Cu0(N);var Y;N=f!=null||A!=null&&A.length>0||((Y=N.vt)==null?void 0:Y.length)>0}if(N&&!Q){Y=g.F(this.api.getVideoData());Q=g.uS(Y);N=!1;if(Q==null?0:Q.markersMap){N=g.F(this.api.getVideoData());var I;N.pH=((I=Q.visibleOnLoad)==null?void 0:I.key)||N.pH;I=g.V(Q.markersMap);for(Q=I.next();!Q.done;Q= I.next())Q=Q.value,Q.key&&Q.value&&(this.zt[Q.key]=Q.value,Q.value.onChapterRepeat&&(N.PZ=Q.value.onChapterRepeat));N.pH!=null&&RPb(this,N.pH);N=!0}var D;if(((D=Y.vt)==null?void 0:D.length)>0){D=g.Te.getState().entities;I=g.V(Y.vt);for(Q=I.next();!Q.done;Q=I.next()){Q=Q.value;A=void 0;f=(A=Qd(D,"macroMarkersListEntity",Q))==null?void 0:A.markersList;var E=A=void 0;if(((A=f)==null?void 0:A.markerType)==="MARKER_TYPE_TIMESTAMPS"||((E=f)==null?void 0:E.markerType)==="MARKER_TYPE_HEATMAP")this.YO[Q]= f}N=this.FS()||N}!N&&(D=Cu0(Y))&&(V9b(this,D),Y.WK=this.K,UBz(this));zPN(this,null);M.d0&&this.C.length===0&&(M=M.d0,D=M.key,M.isVisible&&D&&RPb(this,D))}else hPt(this),Lyb(this)}We(this)}; g.C.Lb=function(M){this.X&&!g.J(M.state,32)&&this.api.getPresentingPlayerType()!==3&&this.X.cancel();var f;((f=this.Z)==null?0:f.isEnabled)&&g.J(M.state,8)&&this.api.pauseVideo();M=this.api.getPresentingPlayerType()===2||!this.api.BP()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Sb(this.OR,"ytp-hide-scrubber-button",M)}; g.C.v3=function(M){var f=!!this.PX!==!!M,A=this.PX;this.PX=M;zPN(this,A);(M==null?void 0:M.type)!=="clips"&&M||(M?(this.updateValue("clipstarticon",gke()),this.updateValue("clipendicon",gke()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Vjb()),this.updateValue("clipendicon",Ur0()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),f&&(this.updateVideoData(this.api.getVideoData(), !0),g.ef(this)),li(this));J5(this,this.Er,this.Qw)}; g.C.gCi=function(M,f,A){var Q=g.WC(this.element),N=kU(this).K,Y=A?A.getAttribute("data-tooltip"):void 0,I=A?A.getAttribute("data-position"):void 0,D=A?A.getAttribute("data-offset-y"):void 0;D=D?Number(D):0;I&&(M=$Z(this.j,Number(A.getAttribute("data-position")),0)*N+g.WC(this.progressBar).x);this.xO.x=M-Q.x;this.xO.y=f-Q.y;M=kU(this);A=GV(this,M);f=0;var E;if((E=this.api.getVideoData())==null?0:MZ(E))(E=this.api.getProgressState().seekableEnd)&&A>E&&(A=E,M.position=$Z(this.j,E)*kU(this).K),f=this.j.Z; ZPt(this)&&(f=this.j.Z);E=Y||g.B2(this.Uw?A-this.j.K:A-f);f=M.position+this.H2;A-=this.api.vX();var t;if((t=this.Z)==null||!t.isEnabled)if(this.api.u3()){if(this.K.length>1){t=K1(this,this.xO.x,!0);if(!this.PX)for(Q=0;Q1)for(Q=0;Q0)for(t=this.xO.x,Q=g.V(this.W),N=Q.next();!N.done;N=Q.next())N=N.value,I=bi(this,N.timeRangeStartMillis/ (this.j.K*1E3),kU(this)),g.Sb(N.element,"ytp-timed-marker-hover",I<=t&&I+6>=t);Q=this.tooltip.scale;t=this.api.V("delhi_modern_web_player")?67:45;D=(isNaN(D)?0:D)-t*Q;this.api.V("web_key_moments_markers")?this.WK?(t=dGb(this.W,A*1E3),t=t!=null?this.W[t].title:""):(t=TV(this.K,A*1E3),t=this.K[t].title):(t=TV(this.K,A*1E3),t=this.K[t].title);t||(D+=16*Q);this.tooltip.scale===.6&&(g.Q5(this.api.T())?(D=this.api.ax().getPlayerSize().height-225,Q=this.api.V("delhi_modern_web_player")?70:110,D=t?D+Q:D+ Q+16):D=t?110:126);Q=TV(this.K,A*1E3);this.z0=Puf(this,A,Q)?Q:Puf(this,A,Q+1)?Q+1:-1;g.Sb(this.api.getRootNode(),"ytp-progress-bar-snap",this.z0!==-1&&this.K.length>1);Q=!1;N=g.V(this.heatMarkersDecorations);for(I=N.next();!I.done;I=N.next()){I=I.value;var v=A*1E3;v>=I.visibleTimeRangeStartMillis&&v<=I.visibleTimeRangeEndMillis&&(t=I.label,E=g.B2(I.decorationTimeMillis/1E3),Q=!0)}this.qX!==Q&&(this.qX=Q,this.api.logVisibility(this.zj,this.qX));g.Sb(this.api.getRootNode(),"ytp-progress-bar-decoration", Q);Q=160*this.tooltip.scale*2;N=t.length*(this.B?8.55:5.7);N=N<=Q?N:Q;I=N<160*this.tooltip.scale;Q=3;!I&&N/2>M.position&&(Q=1);!I&&N/2>this.G-M.position&&(Q=2);this.api.T().W&&(D-=10);this.C.length&&this.C[0].hh&&(D-=14*(this.B?2:1),this.nJ||(this.nJ=!0,this.api.logVisibility(this.KJ,this.nJ)));var p;if(y3(this)&&(((p=this.Z)==null?0:p.isEnabled)||this.w_>0)){var h;D-=((h=this.Z)==null?0:h.isEnabled)?fN(this):this.w_}p=void 0;y3(this)&&!this.api.V("web_player_hide_fine_scrubbing_edu")&&(p="Pull up for precise seeking", this.fJ||(this.fJ=!0,this.api.logVisibility(this.gb,this.fJ)));this.tooltip.U8(f,A,E,!!Y,D,t,Q,p)}else this.tooltip.U8(f,A,E,!!Y,D);g.tZ(this.api.getRootNode(),"ytp-progress-bar-hover");xBT(this)}; g.C.U57=function(){this.jA();g.p5(this.api.getRootNode(),"ytp-progress-bar-hover");this.nJ&&(this.nJ=!1,this.api.logVisibility(this.KJ,this.nJ));this.fJ&&(this.fJ=!1,this.api.logVisibility(this.gb,this.fJ))}; g.C.fKu=function(M,f){var A=g.WC(this.element);this.y7=M-A.x;y3(this)&&this.Z&&(this.Z.z0?jf(this.Z,this.api.getCurrentTime()):Yb9(this.Z),this.Z.show(),g.Sb(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.Z.isEnabled));this.Wy&&(this.Wy.dispose(),this.Wy=null);this.oo=f;this.R5=this.api.getCurrentTime();this.K.length>1&&this.z0!==-1?this.api.seekTo(this.K[this.z0].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(GV(this,kU(this)),!1,void 0,void 0,7);g.tZ(this.element,"ytp-drag");(this.o9= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.C.euO=function(){if(y3(this)&&this.Z){var M=fN(this);this.w_>=M*.5?(this.Z.enable(),jf(this.Z,this.api.getCurrentTime()),Wyt(this,M)):Nz(this)}if(g.J(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var f;if((f=this.Z)==null?0:f.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.K.length>1&&this.z0!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&wK(this,this.R5,this.K[this.z0].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.K[this.z0].startTime/1E3,void 0,void 0,void 0,7);else{M=GV(this,kU(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&wK(this,this.R5,M,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(M,void 0,void 0,void 0,7);f=g.V(this.heatMarkersDecorations);for(var A=f.next();!A.done;A=f.next())A=A.value,M*1E3>=A.visibleTimeRangeStartMillis&&M*1E3<=A.visibleTimeRangeEndMillis&& this.api.logClick(this.zj)}g.p5(this.element,"ytp-drag");this.P7&&(this.jk.src=this.P7);this.o9&&!g.J(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.C.yd0=function(M,f){var A=this,Q=kU(this),N=GV(this,Q);this.api.V("enable_custom_playhead_parsing")&&!this.api.ax().i4&&(Q.position>this.y7+2?this.xp&&(this.jk.src=this.xp):Q.position1);this.aE(M&&this.U.ax().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.B7);var f=1;M&&this.isActive()&&(f=2);if(this.K!==f){this.K=f;switch(f){case 1:this.updateValue("icon",{S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{S:"path",D9:!0,D:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.ok9())}g.Sb(this.element,"ytp-remote-button-active",this.isActive())}}; Yc.prototype.Z=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var M=this.uI,f=this.element;if(M.eE())M.fk();else{M.initialize();a:{var A=g.V(M.ER.items);for(var Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.priority===1){A=Q;break a}A=null}A&&(A.open(),M.q5(f));M.q5(f)}}this.U.logClick(this.element)};g.U(I2,g.O);I2.prototype.K=function(M){var f=this.U.T(),A=400;this.U.V("web_player_small_hbp_settings_menu")&&f.G?A=300:f.W&&(A=200);M=this.Z&&M.width>=A;this.aE(M);this.U.V("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,M&&this.N):this.U.logVisibility(this.element,M)}; I2.prototype.j=function(){if(this.uI.B7)this.uI.fk();else{var M=g.ct(this.U.kp());M&&!M.loaded&&(M.dc("tracklist",{includeAsr:!0}).length||M.load());this.U.logClick(this.element);this.uI.q5(this.element)}}; I2.prototype.updateBadge=function(){var M=this.U.isHdr(),f=this.U.getPresentingPlayerType(),A=f!==2&&f!==3,Q=g.ju(this.U),N=A&&!!g.nv(this.U.kp());f=N&&Q.displayMode===1;Q=N&&Q.displayMode===2;A=(N=f||Q)||!A?null:this.U.getPlaybackQuality();g.Sb(this.element,"ytp-hdr-quality-badge",M);g.Sb(this.element,"ytp-hd-quality-badge",!M&&(A==="hd1080"||A==="hd1440"));g.Sb(this.element,"ytp-4k-quality-badge",!M&&A==="hd2160");g.Sb(this.element,"ytp-5k-quality-badge",!M&&A==="hd2880");g.Sb(this.element,"ytp-8k-quality-badge", !M&&A==="highres");g.Sb(this.element,"ytp-3d-badge-grey",!M&&N&&f);g.Sb(this.element,"ytp-3d-badge",!M&&N&&Q)};g.U(TJ,Dc);TJ.prototype.isLoaded=function(){var M=g.rT(this.U.kp());return M!==void 0&&M.loaded}; TJ.prototype.Nu=function(){g.rT(this.U.kp())!==void 0&&this.U.getPresentingPlayerType()!==3?this.K||(this.uI.Sc(this),this.K=!0):this.K&&(this.uI.M$(this),this.K=!1);EO(this,this.isLoaded())}; TJ.prototype.onSelect=function(M){this.isLoaded();M?this.U.loadModule("annotations_module"):this.U.unloadModule("annotations_module");this.U.publish("annotationvisibility",M)}; TJ.prototype.u8=function(){this.K&&this.uI.M$(this);Dc.prototype.u8.call(this)};g.U(DB,g.no);DB.prototype.Nu=function(){var M=this.U.getAvailableAudioTracks();M.length>1?(this.HB(g.WP(M,this.K)),this.tracks=g.y9(M,this.K,this),this.countLabel.Xk(M.length?" ("+M.length+")":""),this.publish("size-change"),this.QD(this.K(this.U.getAudioTrack())),this.enable(!0)):this.enable(!1)}; DB.prototype.jV=function(M){g.no.prototype.jV.call(this,M);this.U.setAudioTrack(this.tracks[M]);this.uI.ir()}; DB.prototype.K=function(M){return M.toString()};g.U(E$,Dc); E$.prototype.Z=function(){var M=this.U.getPresentingPlayerType();if(M!==2&&M!==3&&g.Ff(this.U))this.K||(this.uI.Sc(this),this.K=!0,this.j.push(this.J(this.U,"videodatachange",this.Z)),this.j.push(this.J(this.U,"videoplayerreset",this.Z)),this.j.push(this.J(this.U,"onPlaylistUpdate",this.Z)),this.j.push(this.J(this.U,"autonavchange",this.C)),M=g.F(this.U.getVideoData()),this.C(M.autonavState),this.U.logVisibility(this.element,this.K));else if(this.K){this.uI.M$(this);this.K=!1;M=g.V(this.j);for(var f= M.next();!f.done;f=M.next())this.Hv(f.value)}}; E$.prototype.C=function(M){EO(this,M!==1)}; E$.prototype.onSelect=function(M){this.U.rS(M?2:1);this.K&&(this.U.logVisibility(this.element,this.K),this.U.logClick(this.element))}; E$.prototype.u8=function(){this.K&&this.uI.M$(this);Dc.prototype.u8.call(this)};g.U(JNd,g.Gt);JNd.prototype.onClick=function(M){M.preventDefault();var f,A;(f=g.al(this.U))==null||(A=f.cB())==null||A.fk();var Q,N;(Q=g.al(this.U))==null||(N=Q.Fb())==null||N.q5(M.target)};g.U(KyD,g.no);g.C=KyD.prototype; g.C.BA=function(){var M=this.U.getPresentingPlayerType();if(M!==2&&M!==3){this.jk=this.U.NE();var f=this.U.getAvailableQualityLevels();if(this.K){this.C={};M=g.Lv(this.U,"getAvailableQualityData",[]);M=g.V(M);for(var A=M.next();!A.done;A=M.next())A=A.value,this.C[A.qualityLabel]=A;M=Object.keys(this.C);f[f.length-1]==="auto"&&M.push("auto");this.P7=new Set(f)}else if(this.G){A=g.Lv(this.U,"getAvailableQualityData",[]);M=[];A=g.V(A);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,this.B[Q.quality]= Q,Q.quality&&M.push(Q.quality);f[f.length-1]==="auto"&&M.push("auto")}else M=f;g.ELT(this.U)&&this.U.m3()&&M.unshift("missing-qualities");f=this.U.app.v7();A=f.getVideoData();if(!A.Z||!A.Z.video||A.Z.video.qualityOrdinal<1080||A.NP)f=!1;else{Q=/^qsa/.test(A.clientPlaybackNonce);var N="r";A.Z.id.indexOf(";")>=0&&(Q=/^[a-p]/.test(A.clientPlaybackNonce),N="x");Q?(f.ZB("iqss",{trigger:N},!0),f=!0):f=!1}f&&M.unshift("inline-survey");this.HB(M);f=g.F(this.U.getVideoData()).cotn?!0:!1;A=this.KJ.Ag();A=!g.Q5(this.U.T())|| !(f===void 0?0:f)||!(A===void 0||A);f=this.Z;A=A===void 0?!1:A;f.TL&&g.Sb(f.H7("ytp-panel-footer"),"ytp-panel-hide-footer",A===void 0?!1:A);if(M.length){this.wX();this.enable(!0);return}}this.enable(!1)}; g.C.wX=function(){if(this.K){var M=this.U.getPreferredQuality();this.P7.has(M)&&(this.W=this.U.getPlaybackQuality(),this.Er=this.U.getPlaybackQualityLabel(),M==="auto"?(this.QD(M),this.Xk(this.iS(M))):this.QD(this.Er))}else M=this.U.getPreferredQuality(),this.options[M]&&(this.W=this.U.getPlaybackQuality(),this.QD(M),M==="auto"&&this.Xk(this.iS(M)))}; g.C.jV=function(M){if(M!=="missing-qualities"){g.no.prototype.jV.call(this,M);var f=this.K?this.C[M]:this.B[M];var A=f==null?void 0:f.quality,Q=f==null?void 0:f.formatId,N=f==null?void 0:f.paygatedQualityDetails;f=N==null?void 0:N.endpoint;if(N){var Y;N=(Y=this.options[M])==null?void 0:Y.element;this.U.logClick(N)}if(this.K){var I,D;if((I=g.b(f,g.Zx9))==null?0:(D=I.popup)==null?0:D.notificationActionRenderer)this.U.T0("innertubeCommand",f);else if(f){this.U.T0("innertubeCommand",f);return}Q?this.U.setPlaybackQuality(A, Q):this.U.setPlaybackQuality(A)}else{if(this.G){var E,t;if((E=g.b(f,g.Zx9))==null?0:(t=E.popup)==null?0:t.notificationActionRenderer)this.U.T0("innertubeCommand",f);else if(f){this.U.T0("innertubeCommand",f);return}}this.U.setPlaybackQuality(M)}this.uI.fk();this.BA()}}; g.C.open=function(){for(var M=g.V(Object.values(this.options)),f=M.next();!f.done;f=M.next()){f=f.value;var A=void 0;this.U.hasVe((A=f)==null?void 0:A.element)&&(A=void 0,this.U.logVisibility((A=f)==null?void 0:A.element,!0))}g.no.prototype.open.call(this);this.U.logClick(this.element)}; g.C.Xv=function(M,f,A){var Q=this;if(M==="missing-qualities")return new g.Gt({S:"a",Ai:["ytp-menuitem"],D:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.T().B,tabindex:"0",role:"menuitemradio"},L:[{S:"div",Ai:["ytp-menuitem-label"],Ix:"{{label}}"}]},f,this.iS(M));if(M!=="inline-survey"){var N,Y=(N=this.K?this.C[M]:this.B[M])==null?void 0:N.paygatedQualityDetails;N=Y==null?void 0:Y.veType;Y=Y==null?void 0:Y.trackingParams;f=g.no.prototype.Xv.call(this,M,f,A);Y?(this.U.createServerVe(f.element, this,!0),this.U.setTrackingParams(f.element,Y)):N&&this.U.createClientVe(f.element,this,N,!0);return f}M=[{S:"span",Ix:"Looks good?"}];A=g.V([!0,!1]);Y=A.next();for(N={};!Y.done;N={Lj:void 0},Y=A.next())N.Lj=Y.value,Y=new g.O({S:"span",Y:"ytp-menuitem-inline-survey-response",L:[N.Lj?R5t():qL0()],D:{tabindex:"0",role:"button"}}),Y.listen("click",function(I){return function(){var D=Q.U.app.v7();D.ZB("iqsr",{tu:I.Lj});D.getVideoData().NP=!0;Q.uI.fk();Q.BA()}}(N)),M.push(Y); return new g.Gt({S:"div",Y:"ytp-menuitem",D:{"aria-disabled":"true"},L:[{S:"div",Ai:["ytp-menuitem-label"],L:M}]},f)}; g.C.iS=function(M,f){f=f===void 0?!1:f;if(M==="missing-qualities")return{S:"div",Ix:"Missing options?"};if(M==="inline-survey")return"";var A=this.G||this.K?[liX(this,M,f,!1)]:[wn9(this,M)];var Q=this.U.getPreferredQuality();f||Q!=="auto"||M!=="auto"||(A.push(" "),this.K?A.push(liX(this,this.Er,f,!0,["ytp-menu-label-secondary"])):this.G?A.push(liX(this,this.W,f,!0,["ytp-menu-label-secondary"])):A.push(wn9(this,this.W,["ytp-menu-label-secondary"])));return{S:"div",L:A}};g.U(tR,ZK);tR.prototype.tN=function(){ZK.prototype.tN.call(this);this.W&&Mzb(this)}; tR.prototype.Er=function(){this.X()}; tR.prototype.B=function(){this.U.setPlaybackRate(this.K,!0)}; tR.prototype.NU=function(M){ZK.prototype.NU.call(this,M);this.X();Mzb(this);M.preventDefault()};g.U(vQ,g.O);g.C=vQ.prototype;g.C.init=function(){this.Eo(this.K);this.updateValue("minvalue",this.Z);this.updateValue("maxvalue",this.j)}; g.C.sS=function(M){if(!M.defaultPrevented){switch(M.keyCode){case 37:case 40:var f=-this.X;break;case 39:case 38:f=this.X;break;default:return}this.Eo(this.K+f);M.preventDefault()}}; g.C.xM=function(M){var f=this.K;f+=(M.deltaX||-M.deltaY)<0?-this.B:this.B;this.Eo(f);M.preventDefault()}; g.C.BH=function(M){M=(M-g.WC(this.C).x)/this.Er*this.range+this.Z;this.Eo(M)}; g.C.Eo=function(M,f){f=f===void 0?"":f;M=g.ih(M,this.Z,this.j);f===""&&(f=M.toString());this.updateValue("valuenow",M);this.updateValue("valuetext",f);this.KJ.style.left=(M-this.Z)/this.range*(this.Er-this.z0)+"px";this.K=M}; g.C.focus=function(){this.g_.focus()};g.U(pN,vQ);pN.prototype.jk=function(){this.U.setPlaybackRate(this.K,!0)}; pN.prototype.Eo=function(M){vQ.prototype.Eo.call(this,M,AMd(this,M).toString());this.G&&(f6T(this),this.P7())}; pN.prototype.updateValues=function(){var M=this.U.getPlaybackRate();AMd(this,this.K)!==M&&(this.Eo(M),f6T(this))};g.U(QGX,g.Ci);QGX.prototype.focus=function(){this.K.focus()};g.U(NVU,cz);g.U(Yhc,g.no);g.C=Yhc.prototype;g.C.iS=function(M){return M==="1"?"Normal":M.toLocaleString()}; g.C.Nu=function(){var M,f=(M=this.U.getVideoData())==null?void 0:M.G_();M=this.U.getPresentingPlayerType(f);this.enable(M!==2&&M!==3);D_0(this)}; g.C.HB=function(M){g.no.prototype.HB.call(this,M);this.W&&this.W.Z.focus()}; g.C.GY=function(M){g.no.prototype.GY.call(this,M);M?(this.Er=this.J(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),D_0(this),I6X(this,this.U.getPlaybackRate())):(this.Hv(this.Er),this.Er=null)}; g.C.onPlaybackRateChange=function(M){var f=this.U.getPlaybackRate();!this.C&&this.B.includes(f)||TVT(this,f);I6X(this,M)}; g.C.Xv=function(M,f,A){return M===this.K&&E4z(this.U)?g.no.prototype.Xv.call(this,M,f,A,{S:"div",Y:"ytp-speed-slider-menu-footer",L:[this.W]}):g.no.prototype.Xv.call(this,M,f,A)}; g.C.jV=function(M){g.no.prototype.jV.call(this,M);M===this.K?this.U.setPlaybackRate(this.G,!0):this.U.setPlaybackRate(Number(M),!0);E4z(this.U)&&M===this.K||this.uI.ir()}; g.C.Oh=function(M){var f=M===this.K;this.C=!1;f&&hR(this.U)&&!E4z(this.U)?(M=new NVU(this.U),g.iz(this.uI,M)):g.no.prototype.Oh.call(this,M)};g.U(v4d,g.no);g.C=v4d.prototype;g.C.QD=function(M){g.no.prototype.QD.call(this,M)}; g.C.YA=function(M){return M.option.toString()}; g.C.getOption=function(M){return this.settings[M]}; g.C.iS=function(M){return this.getOption(M).text||""}; g.C.jV=function(M){g.no.prototype.jV.call(this,M);this.publish("settingChange",this.setting,this.settings[M].option)};g.U(LN,g.Ra);LN.prototype.m5=function(M){for(var f=g.V(Object.keys(M)),A=f.next();!A.done;A=f.next()){var Q=A.value;if(A=this.kR[Q]){var N=M[Q].toString();Q=!!M[Q+"Override"];A.options[N]&&(A.QD(N),A.C.element.setAttribute("aria-checked",String(!Q)),A.K.element.setAttribute("aria-checked",String(Q)))}}}; LN.prototype.W_=function(M,f){this.publish("settingChange",M,f)};g.U(o2,g.no);o2.prototype.K=function(M){return M.languageCode}; o2.prototype.iS=function(M){return this.languages[M].languageName||""}; o2.prototype.jV=function(M){this.publish("select",M);this.U.logClick(this.element);g.xx(this.uI)};g.U(ShN,g.no);g.C=ShN.prototype;g.C.Qs=function(M){return g.MV(M)?"__off__":M.displayName}; g.C.iS=function(M){return M==="__off__"?"Off":M==="__translate__"?"Auto-translate":M==="__contribute__"?"Add subtitles/CC":M==="__correction__"?"Suggest caption corrections":(M==="__off__"?{}:this.tracks[M]).displayName}; g.C.jV=function(M){if(M==="__translate__")this.K.open();else if(M==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var f=g.XU(this.U.T(),g.F(this.U.getVideoData()));g.XV(f)}else if(M==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var A=LDX(this);CN(this,A);g.no.prototype.jV.call(this,this.Qs(A));var Q,N;A=(f=this.U.getVideoData().getPlayerResponse())==null?void 0:(Q=f.captions)==null?void 0:(N=Q.playerCaptionsTracklistRenderer)== null?void 0:N.openTranscriptCommand;this.U.T0("innertubeCommand",A);this.uI.ir();this.C&&this.U.logClick(this.C)}else{if(M==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();f=LDX(this);CN(this,f);g.no.prototype.jV.call(this,this.Qs(f));var Y,I;f=(A=this.U.getVideoData().getPlayerResponse())==null?void 0:(Y=A.captions)==null?void 0:(I=Y.playerCaptionsTracklistRenderer)==null?void 0:I.openTranscriptCommand;this.U.T0("innertubeCommand",f)}else this.U.logClick(this.element), CN(this,M==="__off__"?{}:this.tracks[M]),g.no.prototype.jV.call(this,M);this.uI.ir()}}; g.C.Nu=function(){var M=this.U.getOptions();M=M&&M.indexOf("captions")!==-1;var f=this.U.getVideoData(),A=f&&f.Is,Q,N=!((Q=this.U.getVideoData())==null||!g.Ge(Q));Q={};if(M||A){var Y;if(M){var I=g.F(this.U.getOption("captions","track"));Q=q0z(this.U.getOption("captions","tracklist",{includeAsr:!0}));var D=N?[]:q0z(this.U.getOption("captions","translationLanguages"));this.tracks=g.y9(Q,this.Qs,this);N=g.WP(Q,this.Qs);var E,t;LDX(this)&&((Y=f.getPlayerResponse())==null?0:(E=Y.captions)==null?0:(t=E.playerCaptionsTracklistRenderer)== null?0:t.openTranscriptCommand)&&N.push("__correction__");if(D.length&&!g.MV(I)){if((Y=I.translationLanguage)&&Y.languageName){var v=Y.languageName;Y=D.findIndex(function(p){return p.languageName===v}); rbc(D,Y)}pZ0(this.K,D);N.push("__translate__")}Y=this.Qs(I)}else this.tracks={},N=[],Y="__off__";N.unshift("__off__");this.tracks.__off__={};A&&N.unshift("__contribute__");this.tracks[Y]||(this.tracks[Y]=I,N.push(Y));this.HB(N);this.QD(Y);I&&I.translationLanguage?this.K.QD(this.K.K(I.translationLanguage)):$Lf(this.K);M&&this.G.m5(g.F(this.U.getSubtitlesUserSettings()));this.countLabel.Xk(Q&&Q.length?" ("+Q.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.C.QZ=function(M){var f=g.F(this.U.getOption("captions","track"));f=g.Q1(f);f.translationLanguage=this.K.languages[M];CN(this,f)}; g.C.W_=function(M,f){if(M==="reset")this.U.resetSubtitlesUserSettings();else{var A={};A[M]=f;this.U.updateSubtitlesUserSettings(A)}h79(this,!0);this.W.start();this.G.m5(g.F(this.U.getSubtitlesUserSettings()))}; g.C.Ezi=function(M){M||g.QI(this.W)}; g.C.u8=function(){g.QI(this.W);g.no.prototype.u8.call(this)}; g.C.open=function(){g.no.prototype.open.call(this);this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.U.createClientVe(this.C,this,167341),this.U.logVisibility(this.C,!0))};g.U(o46,g.Bz);g.C=o46.prototype; g.C.initialize=function(){if(!this.isInitialized){var M=this.U.T();this.isInitialized=!0;try{this.j8=new KyD(this.U,this)}catch(A){g.$b(Error("QualityMenuItem creation failed"))}g.d(this,this.j8);var f=new ShN(this.U,this);g.d(this,f);M.j||(f=new TJ(this.U,this),g.d(this,f));M.enableSpeedOptions&&(f=new Yhc(this.U,this),g.d(this,f));(g.Ps(M)||M.G)&&(M.Z||M.YO)&&(f=new JNd(this.U,this),g.d(this,f));M.zj&&!M.V("web_player_move_autonav_toggle")&&(M=new E$(this.U,this),g.d(this,M));M=new DB(this.U,this); g.d(this,M);this.U.publish("settingsMenuInitialized");Xnf(this.settingsButton,this.ER.r6())}}; g.C.Sc=function(M){this.initialize();this.ER.Sc(M);Xnf(this.settingsButton,this.ER.r6())}; g.C.M$=function(M){this.B7&&this.ER.r6()<=1&&this.hide();this.ER.M$(M);Xnf(this.settingsButton,this.ER.r6())}; g.C.q5=function(M){this.initialize();this.ER.r6()>0&&g.Bz.prototype.q5.call(this,M)}; g.C.fk=function(){this.CC?this.CC=!1:g.Bz.prototype.fk.call(this)}; g.C.show=function(){g.Bz.prototype.show.call(this);g.tZ(this.U.getRootNode(),"ytp-settings-shown")}; g.C.hide=function(){g.Bz.prototype.hide.call(this);g.p5(this.U.getRootNode(),"ytp-settings-shown")}; g.C.Zy=function(M){this.U.logVisibility(this.element,M);this.U.publish("settingsMenuVisibilityChanged",M)};g.U(U_d,g.O);g.C=U_d.prototype;g.C.onClick=function(){if(Vz6(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var M=!1,f=g.WD(g.kJ(),65);g.Q5(this.U.T())&&f!=null&&(M=!f);M&&this.U.T().V("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.C.AhY=function(M){var f,A;(f=g.al(this.U))==null||(A=f.cB())==null||A.q5(M)}; g.C.isEnabled=function(){return!!this.U.getOption("captions","track").displayName}; g.C.Nu=function(){var M=Vz6(this),f=300;this.U.T().W&&(f=480);if(this.U.T().G){this.updateValue("title",g.ie(this.U,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var A=M}else{if(M)(A=this.H7("ytp-subtitles-button-icon"))==null||A.setAttribute("fill-opacity","1"),this.updateValue("title",g.ie(this.U,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var Q;(Q=this.H7("ytp-subtitles-button-icon"))== null||Q.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}A=!0}this.tooltip.EJ();A=A&&this.U.ax().getPlayerSize().width>=f;this.aE(A);this.U.V("embeds_use_parent_visibility_in_ve_logging")?this.U.logVisibility(this.element,A&&this.N):this.U.logVisibility(this.element,A);M?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.C.Gt=function(M){g.O.prototype.Gt.call(this,M);this.U.T().V("embeds_use_parent_visibility_in_ve_logging")&&this.U.logVisibility(this.element,this.B7&&M)};g.U(g.U$,g.O);g.C=g.U$.prototype; g.C.z_=function(){var M=this.api.ax().getPlayerSize().width,f=this.B;this.api.T().W&&(f=400);f=M>=f&&(!VP(this)||!g.J(this.api.getPlayerStateObject(),64));this.aE(f);g.Sb(this.element,"ytp-time-display-allow-autohide",f&&M<400);M=this.api.getProgressState();if(f){var A=this.api.getPresentingPlayerType();f=this.api.getCurrentTime(A,!1);this.Z&&(f-=M.airingStart);a2(this)&&(f-=this.PX.startTimeMs/1E3);a2(this)||VP(this)||!this.j||(f-=this.api.getDuration(A,!1));var Q=g.B2(f);this.C!==Q&&(this.updateValue("currenttime", Q),this.C=Q);A=a2(this)?(this.PX.endTimeMs-this.PX.startTimeMs)/1E3:this.api.getDuration(A,!1);Q=g.B2(A);this.G!==Q&&(this.updateValue("duration",Q),this.G=Q,f&&(f=g.aC("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.B2(f,!0),DURATION:g.B2(A,!0)}),this.updateValue("timeDisplayAriaLabel",f)))}a60(this,M.isAtLiveHead);qh6(this,this.api.getLoopRange())}; g.C.onLoopRangeChange=function(M){var f=this.PX!==M;this.PX=M;f&&(this.z_(),H8D(this))}; g.C.chi=function(){this.api.setLoopRange(null)}; g.C.QEr=function(){this.j=!this.j;this.z_()}; g.C.onVideoDataChange=function(M,f,A){this.updateVideoData((this.api.T().V("enable_topsoil_wta_for_halftime")||this.api.T().V("enable_topsoil_wta_for_halftime_live_infra"))&&A===2?this.api.getVideoData(1):f);this.z_();H8D(this)}; g.C.updateVideoData=function(M){this.j9=M.isLivePlayback&&!M.l8;this.Z=MZ(M);this.isPremiere=M.isPremiere;g.Sb(this.element,"ytp-live",VP(this))}; g.C.onClick=function(M){M.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.C.u8=function(){this.K&&this.K();g.O.prototype.u8.call(this)};g.U(sGb,g.O);g.C=sGb.prototype;g.C.G3=function(){var M=this.api.SV();this.j!==M&&(this.j=M,m_b(this,this.api.getVolume(),this.api.isMuted()))}; g.C.Mk=function(M){this.aE(M.width>=350)}; g.C.ZJ=function(M){if(!M.defaultPrevented){var f=M.keyCode,A=null;f===37?A=this.volume-5:f===39?A=this.volume+5:f===36?A=0:f===35&&(A=100);A!==null&&(A=g.ih(A,0,100),A===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(A)),M.preventDefault())}}; g.C.E0=function(M){var f=M.deltaX||-M.deltaY;M.deltaMode?this.api.setVolume(this.volume+(f<0?-10:10)):this.api.setVolume(this.volume+g.ih(f/10,-10,10));M.preventDefault()}; g.C.unk=function(){qz(this,this.K,!0,this.Z,this.api.c_());this.B=this.volume;this.api.isMuted()&&this.api.unMute()}; g.C.Kq=function(M){var f=this.j?78:52,A=this.j?18:12;M-=g.WC(this.X).x;this.api.setVolume(g.ih((M-A/2)/(f-A),0,1)*100)}; g.C.t$0=function(){qz(this,this.K,!1,this.Z,this.api.c_());this.volume===0&&(this.api.mute(),this.api.setVolume(this.B))}; g.C.onVolumeChange=function(M){m_b(this,M.volume,M.muted)}; g.C.Bn=function(){qz(this,this.K,this.isDragging,this.Z,this.api.c_())}; g.C.u8=function(){g.O.prototype.u8.call(this);g.p5(this.W,"ytp-volume-slider-active")};g.U(HQ,g.O); HQ.prototype.onVideoDataChange=function(){var M=this.api.T();this.Tt();this.visible=!!g.F(this.api.getVideoData()).videoId&&!g.fv(g.F(this.api.getVideoData(1)));this.aE(this.visible);this.api.logVisibility(this.element,this.visible&&this.N);if(this.visible){var f=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",f)}M.j&&(this.K&&(this.Hv(this.K),this.K=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.tZ(this.element,"no-link")); f=this.api.T();M=g.F(this.api.getVideoData());var A="";f.j||(f=g.wt(f),f.indexOf("www.")===0&&(f=f.substring(4)),A=g.AU(M)?"Watch on YouTube Music":f==="youtube.com"?"Watch on YouTube":g.aC("Watch on $WEBSITE",{WEBSITE:f}));this.updateValue("title",A)}; HQ.prototype.onClick=function(M){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var f=this.api.T(),A=this.api.getVideoUrl(!g.iM(M),!1,!0,!0);if(g.Ps(f)){var Q={};g.Ps(f)&&g.Lv(this.api,"addEmbedsConversionTrackingParams",[Q]);A=g.uj(A,Q)}g.vp(A,this.api,M);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; HQ.prototype.Tt=function(){var M={S:"svg",D:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},L:[{S:"path",D9:!0,Y:"ytp-svg-fill",D:{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 "}}]}, f=28666,A=g.F(this.api.getVideoData());this.api.isEmbedsShortsMode()?M={S:"svg",D:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},L:[{S:"path",D:{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.AU(A)&&(M={S:"svg",D:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},L:[{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{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"}},{S:"path",D:{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"}}]},f=216163);g.AU(A)?g.tZ(this.element,"ytp-youtube-music-button"):g.p5(this.element,"ytp-youtube-music-button");M.D=Object.assign({},M.D,{"aria-hidden":"true"});this.updateValue("logoSvg",M);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,f,!0)}; HQ.prototype.Gt=function(M){g.O.prototype.Gt.call(this,M);this.api.logVisibility(this.element,this.visible&&M)};g.U(g4t,g.yK);g.C=g4t.prototype;g.C.wf=function(){if(this.U.V("web_player_max_seekable_on_ended")||!g.J(this.U.getPlayerStateObject(),2))this.progressBar.z_(),this.g_.z_()}; g.C.OU=function(){this.hE();this.Gb.Z?this.wf():this.progressBar.jA()}; g.C.IN=function(){this.wf();this.B.start()}; g.C.hE=function(){var M;if(M=!this.U.T().Z){M=this.progressBar;var f=2*g.Ad()*M.G;M=M.j.getLength()*1E3/M.api.getPlaybackRate()/f<300}M=M&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;f=!M;this.Gb.Z||(M=f=!1);f?this.jk||(this.jk=this.J(this.U,"progresssync",this.wf)):this.jk&&(this.Hv(this.jk),this.jk=null);M?this.B.isActive()||this.B.start():this.B.stop()}; g.C.Tt=function(){var M=this.U.SV(),f=this.U.ax().getPlayerSize(),A=this.U.ax().i4,Q=i8N(this),N=x_f(this),Y=Math.max(f.width-Q*2,100);if(this.Qw!==f.width||this.xO!==M||this.U.V("web_player_rtr_ctrls")&&this.oR!==A)this.Qw=f.width,this.xO=M,this.oR=A,this.C.element.style.width=N+"px",this.C.element.style.left=Q+"px",g.bP6(this.progressBar,Q,N,M),this.U.Wu().Jr=N;A=this.j;Y=Math.min(570*(M?1.5:1),Y);M=Math.min(413*(M?1.5:1),Math.round((f.height-Z8U(this))*.82));A.maxWidth=Y;A.maxHeight=M;A.Qy();this.hE(); this.U.T().V("html5_player_dynamic_bottom_gradient")&&rPT(this.b8,f.height)}; g.C.onVideoDataChange=function(){var M=g.F(this.U.getVideoData());this.YO.style.background=M.XR?M.Xt:"";this.KJ&&$te(this.KJ,M.showSeekingControls);this.Er&&$te(this.Er,M.showSeekingControls)}; g.C.iI=function(){return this.C.element};g.U(rMU,s3);g.C=rMU.prototype;g.C.d8=function(M){M.target!==this.dismissButton.element&&(this.onClickCommand&&this.U.T0("innertubeCommand",this.onClickCommand),this.z1())}; g.C.z1=function(){this.enabled=!1;this.B.hide()}; g.C.onVideoDataChange=function(M,f){M==="dataloaded"&&uAb(this);M=[];var A,Q,N,Y;if(f=(Y=g.b((A=f.getWatchNextResponse())==null?void 0:(Q=A.playerOverlays)==null?void 0:(N=Q.playerOverlayRenderer)==null?void 0:N.suggestedActionsRenderer,IeB))==null?void 0:Y.suggestedActions)for(A=g.V(f),Q=A.next();!Q.done;Q=A.next())(Q=g.b(Q.value,T27))&&g.b(Q.trigger,YlB)&&M.push(Q);if(M.length!==0){A=[];M=g.V(M);for(Q=M.next();!Q.done;Q=M.next())if(Q=Q.value,N=g.b(Q.trigger,YlB))Y=(Y=Q.title)?g.ae(Y):"View Chapters", f=N.timeRangeStartMillis,N=N.timeRangeEndMillis,f!=null&&N!=null&&Q.tapCommand&&(A.push(new g.T1(f,N,{priority:9,namespace:"suggested_action_button_visible",id:Y})),this.suggestedActions[Y]=Q.tapCommand);this.U.L3(A)}}; g.C.Lf=function(){return this.enabled}; g.C.Zy=function(){this.enabled?this.nJ.start():Hz(this);this.s3()}; g.C.u8=function(){uAb(this);s3.prototype.u8.call(this)};var cn={},cQ=(cn.CHANNEL_NAME="ytp-title-channel-name",cn.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",cn.LINK="ytp-title-link",cn.SESSIONLINK="yt-uix-sessionlink",cn.SUBTEXT="ytp-title-subtext",cn.TEXT="ytp-title-text",cn.TITLE="ytp-title",cn);g.U(R2,g.O);R2.prototype.onClick=function(M){this.api.logClick(this.element);var f=this.api.T(),A=this.api.getVideoUrl(!g.iM(M),!1,!0);g.Ps(f)&&(f={},g.Lv(this.api,"addEmbedsConversionTrackingParams",[f]),A=g.uj(A,f));g.vp(A,this.api,M)}; R2.prototype.Nu=function(){var M=g.F(this.api.getVideoData()),f=this.api.T();this.updateValue("title",M.title);var A={S:"a",Y:cQ.CHANNEL_NAME,D:{href:"{{channelLink}}",target:"_blank"},Ix:"{{channelName}}"};this.api.T().j&&(A={S:"span",Y:cQ.CHANNEL_NAME,Ix:"{{channelName}}",D:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",A);z7N(this);this.api.getPresentingPlayerType()===2&&(A=g.F(this.api.getVideoData()),A.videoId&&A.isListed&&A.author&&A.b8&&A.profilePicture?(this.updateValue("channelLink", A.b8),this.updateValue("channelName",A.author),this.updateValue("channelTitleFocusable","0")):z7N(this));A=f.externalFullscreen||!this.api.isFullscreen()&&f.ao;g.Sb(this.link,cQ.FULLERSCREEN_LINK,A);f.KJ||!M.videoId||A||g.fv(M)||f.j?this.K&&(this.updateValue("url",null),this.Hv(this.K),this.K=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.K||(this.K=this.J(this.link,"click",this.onClick)));f.j&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.Ps(f)?M.expandedTitle: M.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.U(g.BQ,g.O);g.C=g.BQ.prototype;g.C.setEnabled=function(M){if(this.type!=null)if(M)switch(this.type){case 3:case 2:n4b(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=M}; g.C.U8=function(M,f,A,Q,N,Y,I,D){if(!this.jk||this.env.W){this.type===3&&this.jA();this.type!==1&&(g.Dg(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.Z&&this.Z.dispose(),(this.Z=this.api.u3())&&this.Z.subscribe("l",this.Lo,this));if(D){var E=g.J9(this.bg).height||141;this.P7.style.bottom=E+2+"px"}else this.P7.style.display="none";this.env.V("delhi_modern_web_player")?this.update({pillTimeStamp:A,pillTitle:Y!=null?Y:"",eduText:D!=null?D:""}):(this.update({text:A, title:Y!=null?Y:"",eduText:D!=null?D:""}),g.Sb(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!Y));this.api.isInline()&&g.tZ(this.bottomText,"ytp-modern-tooltip-text");g.Sb(this.element,"ytp-text-detail",!!Q);A=-1;this.Z&&(A=eH(this.Z,243*this.scale),this.env.V("web_l3_storyboard")&&this.Z.levels.length===4&&(A=this.Z.levels.length-1),A=re6(this.Z,A,f));$_e(this,A);if(I)switch(f=g.J9(this.element).width,I){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right= f+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=f/2+"px",this.title.style.textAlign="center"}jGX(this,!!Q,M,N)}}; g.C.h0=function(){this.type===1&&this.jA()}; g.C.pA=function(M,f){if(this.type)if(this.type===3)this.jA();else return;Pt6(this,M,3,f)}; g.C.EJ=function(){this.K&&!this.W&&this.K.hasAttribute("title")&&(this.j=this.K.getAttribute("title")||"",this.K.removeAttribute("title"),this.G&&n4b(this))}; g.C.Lo=function(M,f){M<=this.C&&this.C<=f&&(M=this.C,this.C=NaN,$_e(this,M))}; g.C.rp=function(){xHe(this.Z,this.C,243*this.scale)}; g.C.jA=function(){switch(this.type){case 2:var M=this.K;M.removeEventListener("mouseout",this.X);M.addEventListener("mouseover",this.z0);M.removeEventListener("blur",this.X);M.addEventListener("focus",this.z0);FDz(this);break;case 3:FDz(this);break;case 1:this.Z&&(this.Z.unsubscribe("l",this.Lo,this),this.Z=null),this.api.removeEventListener("videoready",this.B),this.Er.stop()}this.type=null;this.G&&this.fade.hide()}; g.C.CI=function(){if(this.K)for(var M=0;M=0;f--)if(this.H5[f]===M){this.H5.splice(f,1);break}z0(this.Gb,64,this.H5.length>0)}; g.C.Wi=function(){this.api.kP()&&this.api.R_();return!!this.BD||WDf(this)||g.ki.prototype.Wi.call(this)}; g.C.eJ=fb(3);g.C.oG=fb(7);g.C.n_=fb(10); g.C.J5=function(){var M=!this.Wi(),f=M&&this.api.kP()&&!g.J(this.api.getPlayerStateObject(),2)&&!g.fv(g.F(this.api.getVideoData()))&&!this.api.T().j&&!this.api.isEmbedsShortsMode(),A=this.JR&&g.zt(this.api)&&g.J(this.api.getPlayerStateObject(),128);M||A?(this.R3.show(),this.Wo.show()):(this.R3.hide(),this.Wo.hide(),this.api.CI(this.oY.element));f?this.HK.q5():this.HK.fk();this.Ja&&BVN(this.Ja,this.hc||!M);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&O8e(this);g.ki.prototype.J5.call(this)}; g.C.ws=function(M,f,A,Q,N){M.style.left="";M.style.top="";M.style.bottom="";var Y=g.J9(M),I=Q||this.Ja&&g.IH(this.Ja.iI(),f),D=Q=null;A!=null&&I||(Q=g.J9(f),D=g.Oc(f,this.api.getRootNode()),A==null&&(A=D.x+Q.width/2));A-=Y.width/2;I?(f=this.Ja,Q=i8N(f),D=x_f(f),I=this.api.ax().getPlayerSize().height,A=g.ih(A,Q,Q+D-Y.width),Y=I-Z8U(f)-Y.height):g.IH(this.oY.element,f)?(f=this.api.ax().getPlayerSize().width,A=g.ih(A,12,f-Y.width-12),Y=this.SV()?this.Wd:this.Rm,this.api.T().playerStyle==="gvn"&&(Y+= 20),this.JR&&(Y-=this.SV()?26:18)):(f=this.api.ax().getPlayerSize(),A=g.ih(A,12,f.width-Y.width-12),Y=D.y>(f.height-Q.height)/2?D.y-Y.height-12:D.y+Q.height+12);M.style.top=Y+(N||0)+"px";M.style.left=A+"px"}; g.C.OU=function(M){M&&(this.api.CI(this.oY.element),this.Ja&&this.api.CI(this.Ja.iI()));this.JH&&(g.Sb(this.contextMenu.element,"ytp-autohide",M),g.Sb(this.contextMenu.element,"ytp-autohide-active",!0));g.ki.prototype.OU.call(this,M)}; g.C.BE=function(){g.ki.prototype.BE.call(this);this.JH&&(g.Sb(this.contextMenu.element,"ytp-autohide-active",!1),this.JH&&(this.contextMenu.hide(),this.A3&&this.A3.hide()))}; g.C.GH=function(M,f){var A=this.api.ax().getPlayerSize();A=new g.zM(0,0,A.width,A.height);if(M||this.Gb.Z&&!this.Wi()){if(this.api.T().K8||f)M=this.SV()?this.Wd:this.Rm,A.top+=M,A.height-=M;this.Ja&&(A.height-=Z8U(this.Ja))}return A}; g.C.G3=function(M){var f=this.api.getRootNode();M?f.parentElement?(f.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.T().externalFullscreen||(f.parentElement.insertBefore(this.yN.element,f),f.parentElement.insertBefore(this.ez.element,f.nextSibling))):g.jZ(Error("Player not in DOM.")):(f.setAttribute("aria-label","YouTube Video Player"),this.yN.detach(),this.ez.detach());this.Tt();this.bX()}; g.C.SV=function(){var M=this.api.T();return this.api.isFullscreen()&&!M.W||!1}; g.C.showControls=function(M){this.b1=!M;this.J5()}; g.C.Tt=function(){var M=this.SV();this.tooltip.scale=M?1.5:1;this.contextMenu&&g.Sb(this.contextMenu.element,"ytp-big-mode",M);this.J5();this.api.V("web_player_hide_overflow_button_if_empty_menu")||O8e(this);this.bX();var f=this.api.isEmbedsShortsMode();f&&M?(M=(this.api.ax().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.ji(this.oY.element,"padding-left",M+"px"),g.ji(this.oY.element,"padding-right",M+"px")):f&&(g.ji(this.oY.element,"padding-left",""),g.ji(this.oY.element,"padding-right", ""));g.ki.prototype.Tt.call(this)}; g.C.d1=function(){if(WDf(this)&&!g.zt(this.api))return!1;var M=g.F(this.api.getVideoData());return!g.Ps(this.api.T())||this.api.getPresentingPlayerType()===2||!this.Y$||((M=this.Y$||M.Y$)?(M=M.embedPreview)?(M=M.thumbnailPreviewRenderer,M=M.videoDetails&&g.b(M.videoDetails,oqU)||null):M=null:M=null,M&&M.collapsedRenderer&&M.expandedRenderer)?g.ki.prototype.d1.call(this):!1}; g.C.bX=function(){g.ki.prototype.bX.call(this);this.api.logVisibility(this.title.element,!!this.L8);this.FF&&this.FF.Gt(!!this.L8);this.channelAvatar.Gt(!!this.L8);this.overflowButton&&this.overflowButton.Gt(this.Qi()&&!!this.L8);this.shareButton&&this.shareButton.Gt(!this.Qi()&&!!this.L8);this.nZ&&this.nZ.Gt(!this.Qi()&&!!this.L8);this.searchButton&&this.searchButton.Gt(!this.Qi()&&!!this.L8);this.copyLinkButton&&this.copyLinkButton.Gt(!this.Qi()&&!!this.L8);if(!this.L8){this.api.CI(this.oY.element); for(var M=0;M5&&f.ZB("glrs",{cmt:A});f.seekTo(0,{seekSource:58});f.ZB("glrre",{cmt:A})}}; r0.prototype.u8=function(){this.K=null;g.y.prototype.u8.call(this)};g.U(g.uJ,It);g.C=g.uJ.prototype;g.C.isView=function(){return!0}; g.C.e8=function(){var M=this.mediaElement.getCurrentTime();if(M1;Sr(M.Da(),Q-.01)&&!N&&(PQ(this,4),A.isActive=!1,A.FE=A.FE||A.isActive,(this.N===1?this.K:this.Z).ZB("sbh",{}),f.isActive=!0,f.FE=f.FE||f.isActive,this.N!==0&&(this.K.getVideoData().oV=!0));M=this.C.Z;if(this.C.K.isActive&&M.isActive&&(PQ(this,5),this.N!==0)){M=this.Z.hI();A=this.K.hI(); this.K.ZB("sbs",{citag:A==null?void 0:A.itag,nitag:M==null?void 0:M.itag});this.Z.ZB("gitags",{pitag:A==null?void 0:A.itag,citag:M==null?void 0:M.itag});var Y;(Y=this.Z)==null||Y.Vj()}}}; g.C.Dj=function(){this.Xu()&&this.ZI("player-reload-after-handoff")}; g.C.ZI=function(M,f){f=f===void 0?{}:f;if(!this.ek()&&this.status.status!==6){var A=this.status.status>=4&&M!=="player-reload-after-handoff";this.status={status:Infinity,error:M};if(this.K&&this.Z){var Q=this.Z.getVideoData().clientPlaybackNonce;this.K.xC(new ZZ("dai.transitionfailure",Object.assign(f,{cpn:Q,transitionTimeMs:this.bL,msg:M})));this.K.yQ(A)}this.T8.reject(M);this.dispose()}}; g.C.Xu=function(){return this.status.status>=4&&this.status.status<6}; g.C.u8=function(){Iwd(this);this.K.unsubscribe("newelementrequired",this.Dj,this);if(this.j){var M=this.j.Z;this.j.K.QJ.unsubscribe("updateend",this.qU,this);M.QJ.unsubscribe("updateend",this.qU,this)}g.y.prototype.u8.call(this)}; g.C.Xx=function(M){g.V2(M,128)&&this.ZI("player-error-event")};g.U(nN,g.y);nN.prototype.clearQueue=function(M,f){M=M===void 0?!1:M;f=f===void 0?!1:f;this.C&&this.C.reject("Queue cleared");this.app.T().V("html5_gapless_fallback_on_qoe_restart_v2")||f&&this.Z&&this.Z.yQ(!1);jU(this,M)}; nN.prototype.Ci=function(){return!this.K}; nN.prototype.Xu=function(){var M;return((M=this.j)==null?void 0:M.Xu())||!1}; nN.prototype.u8=function(){jU(this);g.y.prototype.u8.call(this)};g.U(hAc,g.pi);g.C=hAc.prototype;g.C.getVisibilityState=function(M,f,A,Q,N,Y,I,D){return M?4:YFN()?3:f?2:A?1:Q?5:N?7:Y?8:I?9:D?10:0}; g.C.bS=function(M){this.fullscreen!==M&&(this.fullscreen=M,this.Zy())}; g.C.setMinimized=function(M){this.Z!==M&&(this.Z=M,this.Zy())}; g.C.setInline=function(M){this.inline!==M&&(this.inline=M,this.Zy())}; g.C.X2=function(M){this.pictureInPicture!==M&&(this.pictureInPicture=M,this.Zy())}; g.C.setSqueezeback=function(M){this.j!==M&&(this.j=M,this.Zy())}; g.C.VT=function(M){this.C!==M&&(this.C=M,this.Zy())}; g.C.Dy=function(){return this.K}; g.C.IZ=function(){return this.fullscreen!==0}; g.C.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.C.WM=function(){return this.fullscreen}; g.C.isMinimized=function(){return this.Z}; g.C.isInline=function(){return this.inline}; g.C.isBackground=function(){return YFN()}; g.C.O3=function(){return this.pictureInPicture}; g.C.K2=function(){return!1}; g.C.PY=function(){return this.j}; g.C.ym=function(){return this.C}; g.C.Zy=function(){this.publish("visibilitychange");var M=this.getVisibilityState(this.Dy(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.O3(),this.K2(),this.PY(),this.ym());M!==this.G&&this.publish("visibilitystatechange");this.G=M}; g.C.u8=function(){DwN(this.N);g.pi.prototype.u8.call(this)};g.U(g.$c,g.y);g.C=g.$c.prototype;g.C.u8=function(){this.videoData=this.playerState=null;g.y.prototype.u8.call(this)}; g.C.addCueRange=function(){}; g.C.dC=function(){}; g.C.ML=function(){}; g.C.hL=function(){return!1}; g.C.KM=function(){return!1}; g.C.jp=function(){return!1}; g.C.kd=function(){}; g.C.cG=function(){}; g.C.m9=function(){return[]}; g.C.pU=function(){}; g.C.getAudioTrack=function(){return this.getVideoData().Fi}; g.C.Sr=function(){return null}; g.C.getAvailableAudioTracks=function(){return[]}; g.C.NE=function(){return[]}; g.C.mO=function(){return[]}; g.C.U5=function(){return""}; g.C.wc=function(){return[]}; g.C.U7=function(){}; g.C.By=function(){return 0}; g.C.getCurrentTime=function(){return 0}; g.C.gh=function(){}; g.C.hI=function(){}; g.C.lI=function(){return{}}; g.C.getDuration=function(){return 0}; g.C.N4=function(){return 0}; g.C.VJ=function(){return 0}; g.C.BG=function(){return!1}; g.C.U6=function(){return 0}; g.C.a_=function(){return 0}; g.C.vN=fb(15);g.C.g5=function(){return 0}; g.C.wU=function(){return!1}; g.C.YN=function(){return 0}; g.C.j$=function(){return null}; g.C.ev=function(){return null}; g.C.hd=function(){return 0}; g.C.Ma=function(){return 0}; g.C.bM=function(){return g.n(function(M){g.qc(M)})}; g.C.LZ=fb(21);g.C.getPlaybackQuality=function(){return"auto"}; g.C.getPlaybackRate=function(){return 1}; g.C.getPlayerState=function(){this.playerState||(this.playerState=new g.v8);return this.playerState}; g.C.getPlayerType=function(){return 0}; g.C.getPlaylistSequenceForTime=function(){return null}; g.C.Cy=function(){return function(){}}; g.C.ME=function(){return""}; g.C.getPreferredQuality=function(){return"unknown"}; g.C.qt=function(){}; g.C.getProximaLatencyPreference=function(){return 0}; g.C.CG=function(){return KF}; g.C.u3=function(){return null}; g.C.getStoryboardFormat=function(){return null}; g.C.getStreamTimeOffset=function(){return 0}; g.C.fS=function(){return 0}; g.C.vX=function(){return 0}; g.C.O7=function(){return{My:[],JL:[],currentTime:0,tW:"",droppedVideoFrames:0,isGapless:!1,Ci:!0,zZ:0,wP:0,Y6:0,J4:0,X5:0,al:[],oL:[],cS:null,playerState:this.getPlayerState(),Yf:null,gy:"",totalVideoFrames:0}}; g.C.getUserAudio51Preference=function(){return 0}; g.C.getUserPlaybackQualityPreference=function(){return""}; g.C.getVideoData=function(){this.videoData||(this.videoData=new g.G9(this.QY),g.d(this,this.videoData));return this.videoData}; g.C.ye=function(){return null}; g.C.wC=function(){return null}; g.C.MX=function(){}; g.C.getVideoLoadedFraction=function(){return 0}; g.C.Y4=function(){}; g.C.handleError=function(){}; g.C.yQ=function(){}; g.C.cT=function(){}; g.C.x9=fb(46);g.C.Rk=function(){return!1}; g.C.hasSupportedAudio51Tracks=function(){return!1}; g.C.b2=function(){return!1}; g.C.Dy=function(){return!1}; g.C.isAtLiveHead=function(){return!1}; g.C.Yd=function(){return!0}; g.C.isGapless=function(){return!1}; g.C.isHdr=function(){return!1}; g.C.L1=function(){return!1}; g.C.C5=function(){return!1}; g.C.uN=function(){return!1}; g.C.isProximaLatencyEligible=function(){return!1}; g.C.Ci=function(){return!0}; g.C.HY=function(){return!1}; g.C.aD=function(){return!1}; g.C.IH=function(){}; g.C.iR=function(){}; g.C.Vj=function(){}; g.C.Cf=function(){}; g.C.Bk=function(){}; g.C.IS=function(){}; g.C.JO=function(){}; g.C.Je=fb(56);g.C.Iq=fb(27);g.C.Js=function(){}; g.C.pauseVideo=function(){}; g.C.playVideo=function(){return g.n(function(M){return M.return()})}; g.C.Pe=function(){}; g.C.EC=fb(33);g.C.Ly=fb(39);g.C.Ot=function(){}; g.C.ZB=function(){}; g.C.Mm=function(){}; g.C.W5=function(){}; g.C.OA=function(){}; g.C.xC=function(){}; g.C.wS=function(){}; g.C.Yh=function(){}; g.C.wA=function(){}; g.C.QR=function(){}; g.C.MM=function(){}; g.C.Xi=function(){}; g.C.tb=function(){}; g.C.removeCueRange=function(){}; g.C.bR=function(){}; g.C.GU=function(){return[]}; g.C.G8=function(){}; g.C.eA=function(){}; g.C.un=function(){}; g.C.jB=function(){}; g.C.Fz=function(){}; g.C.p_=function(){}; g.C.seekTo=function(){}; g.C.sendAbandonmentPing=function(){}; g.C.sendVideoStatsEngageEvent=function(){}; g.C.JF=function(){}; g.C.setLoop=function(){}; g.C.t9=function(){}; g.C.setMediaElement=function(){}; g.C.Uf=function(){}; g.C.setPlaybackRate=function(){}; g.C.Cx=function(){}; g.C.T1=function(){}; g.C.uM=function(){}; g.C.setProximaLatencyPreference=function(){}; g.C.Gy=function(){}; g.C.N7=function(){}; g.C.Rp=function(){}; g.C.Ho=function(){}; g.C.setUserAudio51Preference=function(){}; g.C.kJ=function(){}; g.C.PU=function(){return!1}; g.C.PQ=function(){}; g.C.hC=function(){return!1}; g.C.Vt=function(){}; g.C.Yu=function(){}; g.C.Jb=function(){}; g.C.stopVideo=function(){}; g.C.subscribe=function(){return NaN}; g.C.LI=function(){}; g.C.togglePictureInPicture=function(){}; g.C.Mz=function(){return 0}; g.C.unsubscribe=function(){return!1}; g.C.ud=function(){}; g.C.PV=function(){return!1}; g.C.LF=function(){}; g.C.LR=function(){}; g.C.aZ=function(){};g.U(d0,g.y);g.C=d0.prototype;g.C.get=function(M){F6(this);var f=this.data.find(function(A){return A.key===M}); return f?f.value:null}; g.C.set=function(M,f,A){this.remove(M,!0);F6(this);M={key:M,value:f,expire:Infinity};A&&isFinite(A)&&(A*=1E3,M.expire=(0,g.W)()+A);for(this.data.push(M);this.data.length>this.j;)(A=this.data.shift())&&eU(this,A,!0);yP(this)}; g.C.remove=function(M,f){f=f===void 0?!1:f;var A=this.data.find(function(Q){return Q.key===M}); A&&(eU(this,A,f),g.HK(this.data,function(Q){return Q.key===M}),yP(this))}; g.C.removeAll=function(M){if(M=M===void 0?!1:M)for(var f=g.V(this.data),A=f.next();!A.done;A=f.next())eU(this,A.value,M);this.data=[];yP(this)}; g.C.u8=function(){var M=this;g.y.prototype.u8.call(this);this.data.forEach(function(f){eU(M,f,!0)}); this.data=[]};g.U(g.bJ,g.y);g.C=g.bJ.prototype;g.C.u8=function(){for(var M=g.V(Object.values(this.j)),f=M.next();!f.done;f=M.next())f.value.dispose();S4f(this);this.K.dispose();g.y.prototype.u8.call(this)}; g.C.eO=function(M){return M?M===1?this.X:this.Z.getVideoData().enableServerStitchedDai&&M===2?this.Z.getVideoData().Gq?this.j[2]||this.Z:this.Z:this.j[M]||null:this.Z}; g.C.RI=function(M){var f=M.cpn;M=M.playerType;if(f)a:{M=g.V(Object.values(this.j));for(var A=M.next();!A.done;A=M.next())if(A=A.value,A.U5()===f){f=A;break a}f=this.W[f]||null}else f=M?this.eO(M):this.Z;return f}; g.C.IE=function(){return this.X}; g.C.ZY=function(M){this.X=M}; g.C.v7=function(){return this.Z}; g.C.GF=function(M){this.Z=M;kc(this)}; g.C.Ij=fb(52);g.C.JN=fb(54);g.U(WQ,g.y);WQ.prototype.enqueue=function(M){if(M.K()!==this)return!1;this.segments.push(M);return!0}; WQ.prototype.removeAll=function(){for(;this.segments.length;){var M=void 0;(M=this.segments.pop())==null||M.dispose()}this.K.clear()}; WQ.prototype.u8=function(){this.removeAll();g.y.prototype.u8.call(this)};g.U(mof,g.kX);g.C=mof.prototype;g.C.oW=function(){}; g.C.U5=function(){return this.videoData.clientPlaybackNonce}; g.C.getVideoData=function(){if(g.kX.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state"))var M=this.videoData;else{var f=this.Od;var A=g.kX.prototype.getCurrentTime.call(this);if(f.ST)f=void 0;else{var Q=void 0;f.n3&&(Q=f.C.get(f.n3));if(!Q){Q=Pkf(f,A*1E3);var N,Y=(N=Q)==null?void 0:N.cpn;f.n3?Y&&f.n3!==Y&&f.F3({cpcnm:Y+"_"+f.n3,cmt:A.toFixed(3)}):f.F3({cpcna:Y,cmt:A.toFixed(3)})}f=(M=Q)==null?void 0:M.videoData}M=f||g.kX.prototype.getVideoData.call(this)}return M}; g.C.getCurrentTime=function(M){var f=g.kX.prototype.getCurrentTime.call(this);g.kX.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state")?this.endTime===0?M||(f-=this.startTime):M&&(f=this.endTime-this.startTime):(M?M=this.Od.nF/1E3||f:(M=f,M=(f=zA9(this.Od,M*1E3))?M-f.start/1E3:M),f=M);return f}; g.C.getDuration=function(){if(g.kX.prototype.getVideoData.call(this).V("html5_huli_ssdai_use_playback_state"))var M=this.duration;else{M=this.Od;var f=g.kX.prototype.getCurrentTime.call(this);M=(M=Pkf(M,f*1E3))?M.durationMs/1E3:0}return M}; g.C.Xy=function(M){this.duration=M};g.O$.prototype.WC=function(M,f){if(f===1)return this.K.get(M);if(f===2)return this.j.get(M);if(f===3)return this.Z.get(M)}; g.O$.prototype.kt=fb(64);g.O$.prototype.yB=function(M,f,A,Q){A={jD:Q,WV:A};f?this.j.set(M,A):this.K.set(M,A)}; g.O$.prototype.clearAll=function(){this.K.clear();this.j.clear();this.Z.clear()}; g.U(g.X6,g.y);g.C=g.X6.prototype;g.C.Pa=function(M){var f=M.PN?M.PN*1E3:M.NV,A=this.Z.get(M.cpn);A&&this.playback.removeCueRange(A);this.Z.delete(M.cpn);this.C.delete(M.cpn);A=this.N.indexOf(M);A>=0&&this.N.splice(A,1);A=[];for(var Q=g.V(this.G),N=Q.next();!N.done;N=Q.next())N=N.value,N.end<=f?this.playback.removeCueRange(N):A.push(N);this.G=A;kxT(this,0,f+M.durationMs)}; g.C.onCueRangeEnter=function(M){this.nJ.push(M);var f=M.getId();this.F3({oncueEnter:1,cpn:f,start:M.start,end:M.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.By()||0).toFixed(3)});var A=f==="";this.Ji.add(M.Z);var Q=this.C.get(f);if(A){var N;if(this.playback.getVideoData().G_()&&((N=this.K)==null?0:N.DJ)&&this.j){this.yS=0;this.K=void 0;this.KJ&&(this.events.Hv(this.KJ),this.KJ=null);this.j="";this.ox=!0;return}}else if(this.F3({enterAdCueRange:1}),this.playback.getVideoData().G_()&& (Q==null?0:Q.iN))return;if(this.ox&&!this.K)this.ox=!1,!A&&Q&&(A=this.playback.getCurrentTime(),MJ(this,{yJ:M,isAd:!0,t8:!0,Rn:A,adCpn:f},{isAd:!1,t8:!1,Rn:A}),this.n3=Q.cpn,this.hY(Q.cpn,A),w0(this,Q),M=GJ(this,"midab",Q),this.F3(M),this.yS=1),this.X=!1;else if(this.K){if(this.K.t8)this.F3({a_pair_of_same_transition_occurs_enter:1,acpn:this.K.adCpn,transitionTime:this.K.Rn,cpn:f,currentTime:this.playback.getCurrentTime()}),Q=this.playback.getCurrentTime(),M={yJ:M,isAd:!A,t8:!0,Rn:Q,adCpn:f},f={yJ:this.K.yJ, isAd:this.K.isAd,t8:!1,Rn:Q,adCpn:this.K.adCpn},this.K.yJ&&this.Ji.delete(this.K.yJ.Z),MJ(this,M,f);else{if(this.K.yJ===M){this.F3({same_cue_range_pair_enter:1,acpn:this.K.adCpn,transitionTime:this.K.Rn,cpn:f,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:M.start,cueRangeEndTime:M.end});this.K=void 0;return}if(this.K.adCpn===f){f&&this.F3({dchtsc:f});this.K=void 0;return}M={yJ:M,isAd:!A,t8:!0,Rn:this.playback.getCurrentTime(),adCpn:f};MJ(this,M,this.K)}this.K=void 0;this.X=!1}else this.K= {yJ:M,isAd:!A,t8:!0,Rn:this.playback.getCurrentTime(),adCpn:f}}; g.C.hY=function(M,f){if(M===this.playback.U5())Lnc(this.app.yK(),this.playback,!1);else{var A=this.Qw.get(M);A?(A.endTime=0,A.startTime=f,Lnc(this.app.yK(),A,!0)):this.F3({nop_s:M})}}; g.C.onCueRangeExit=function(M){var f=M.getId();this.F3({oncueExit:1,cpn:f,start:M.start,end:M.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.By()||0).toFixed(3)});var A=f==="",Q=this.C.get(f);A||u4z(this,f,this.playback.getCurrentTime());if(this.playback.getVideoData().G_()&&!A&&Q){if(Q.iN)return;Q.iN=!0;this.B.clear();if(this.QY.V("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.hL()){var N=Q.NV;this.playback.tb(N/1E3,(N+Q.durationMs)/1E3)}else this.playback.ZB("lifa",{remove:0})}if(this.Ji.has(M.Z))if(this.Ji.delete(M.Z), this.nJ=this.nJ.filter(function(Y){return Y!==M}),this.ox&&(this.X=this.ox=!1,this.F3({cref:1})),this.K){if(this.K.t8){if(this.K.yJ===M){this.F3({same_cue_range_pair_exit:1, acpn:this.K.adCpn,transitionTime:this.K.Rn,cpn:f,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:M.start,cueRangeEndTime:M.end});this.K=void 0;return}if(this.K.adCpn===f){f&&this.F3({dchtsc:f});this.K=void 0;return}f={yJ:M,isAd:!A,t8:!1,Rn:this.playback.getCurrentTime(),adCpn:f};MJ(this,this.K,f)}else if(this.F3({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.K.adCpn,transitionTime:this.K.Rn,upcomingCpn:f,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.K.adCpn===f)return;this.K=void 0;this.X=!1}else this.K={yJ:M,isAd:!A,t8:!1,Rn:this.playback.getCurrentTime(),adCpn:f};else this.F3({ignore_single_exit:1})}; g.C.fI=function(){return{cpn:this.playback.U5(),durationMs:0,NV:0,playerType:1,kz:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.C.dY=function(){if(this.ST)return!1;var M=void 0;this.n3&&(M=this.C.get(this.n3));return this.playback.getVideoData().G_()?!!M&&!M.iN:!!M}; g.C.seekTo=function(M,f,A,Q){M=M===void 0?0:M;f=f===void 0?{}:f;A=A===void 0?!1:A;Q=Q===void 0?null:Q;if(this.playback.getVideoData().G_()&&M<=this.nF/1E3)this.playback.pauseVideo(),this.nF=0,this.X=!0,this.playback.bM(),this.playback.seekTo(M),this.playback.playVideo();else if(this.X=!0,A)c1f(this,M,f);else{A=this.app.v7();var N=A===this.YO?this.zt:null;A8(this,!1);this.Yp=M;this.oE=f;Q!=null&&this.wq.start(Q);A&&(this.zt=N||A.getPlayerState(),A.Jb(f),this.YO=A)}}; g.C.u8=function(){A8(this,!1);j4X(this);$ob(this);g.y.prototype.u8.call(this)}; g.C.QL=function(M){this.d2=M;this.F3({swebm:M})}; g.C.Uv=function(M,f,A){if(A&&f){var Q=this.B.get(M);if(Q){Q.locations||(Q.locations=new Map);var N=Number(f.split(";")[0]);A=new g.zN(A);this.F3({hdlredir:1,itag:f,seg:M,hostport:ny(A)});Q.locations.set(N,A)}}}; g.C.SG=function(M,f,A,Q,N,Y){var I=Q===3,D=y1T(this,M,f,Q,A,Y);if(!D){NJ(this,f,I);var E=g.FnX(this,f)?"undec":"ncp";this.F3({gvprp:E,mt:M,seg:f,tt:Q,itag:A,ce:Y});return null}I||this.B.set(f,D);Y=D.eU;var t;Q=((t=this.WC(f-1,Q,N))==null?void 0:t.jD)||"";Q===""&&this.F3({eds:1});t=eAX(this,D.ssdaiAdsConfig);N=this.playback.getVideoData();var v;I=((v=N.Z)==null?void 0:v.containerType)||0;v=N.GK[I];D=D.Y8&&f>=D.Y8?D.Y8:void 0;v={Oo:Y?O9t(this,Y):[],cn:t,jD:Q,Cw:D,uE:HB(v.split(";")[0]),kT:v.split(";")[1]|| ""};D={MD:v};this.b8&&(M={gvprpro:"v",sq:f,mt:M.toFixed(3),itag:A,acpns:((E=v.Oo)==null?void 0:E.join("_"))||"none",abid:Y},this.F3(M));return D}; g.C.A0=function(M){a:{if(!this.ST){var f=doz(this,M);if(!(this.playback.getVideoData().G_()&&(f==null?0:f.iN)))break a}f=void 0}var A=f;if(!A)return this.F3({gvprp:"ncp",mt:M}),null;f=A.eU;var Q=eAX(this,A.ssdaiAdsConfig);A=A.Y8&&A.y$&&M>=A.y$?A.Y8:void 0;var N=this.playback.getVideoData(),Y,I=((Y=N.Z)==null?void 0:Y.containerType)||0;Y=N.GK[I];Y={Oo:f?O9t(this,f):[],cn:Q,Cw:A,uE:HB(Y.split(";")[0]),kT:Y.split(";")[1]||""};var D;M={gvprpro:"v",mt:M.toFixed(3),acpns:((D=Y.Oo)==null?void 0:D.join("_"))|| "none",abid:f};this.F3(M);return Y}; g.C.er=function(M,f,A,Q,N,Y){var I=Number(A.split(";")[0]),D=Q===3;M=y1T(this,M,f,Q,A,Y);this.F3({gdu:1,seg:f,itag:I,pb:""+!!M});if(!M)return NJ(this,f,D),null;M.locations||(M.locations=new Map);if(!M.locations.has(I)){var E,t;Y=(E=M.videoData.getPlayerResponse())==null?void 0:(t=E.streamingData)==null?void 0:t.adaptiveFormats;if(!Y)return this.F3({gdu:"noadpfmts",seg:f,itag:I}),NJ(this,f,D),null;E=Y.find(function(h){return h.itag===I}); if(!E||!E.url){var v=M.videoData.videoId;M=[];var p=g.V(Y);for(Q=p.next();!Q.done;Q=p.next())M.push(Q.value.itag);this.F3({gdu:"nofmt",seg:f,vid:v,itag:I,fullitag:A,itags:M.join(",")});NJ(this,f,D);return null}M.locations.set(I,new g.zN(E.url,!0))}Y=M.locations.get(I);if(!Y)return this.F3({gdu:"nourl",seg:f,itag:I}),NJ(this,f,D),null;Y=new gL(Y);this.d2&&(Y.get("dvc")?this.F3({dvc:Y.get("dvc")||""}):Y.set("dvc","webm"));(Q=(p=this.WC(f-1,Q,N))==null?void 0:p.jD)&&Y.set("daistate",Q);M.Y8&&f>=M.Y8&& Y.set("skipsq",""+M.Y8);(p=this.playback.getVideoData().clientPlaybackNonce)&&Y.set("cpn",p);p=[];M.eU&&(p=O9t(this,M.eU),p.length>0&&Y.set("acpns",p.join(",")));D||this.B.set(f,M);D=null;D=Y.get("aids");Q=Y.mf();(Q==null?void 0:Q.length)>2048&&this.F3({urltoolong:1,sq:f,itag:I,len:Q.length});this.b8&&(Q&&(Y=M.cpn,N=M.eU,Knb(this,Y,N),N&&!this.T_.has(N)&&(Y=X36(this,Y,N),E=J1X(this,N),this.F3({iofa:Y}),this.F3({noawnzd:E-Y}),this.F3({acpns:p.join("."),aids:(v=D)==null?void 0:v.replace(/,/g,".")}), this.T_.add(N))),this.F3({gdu:"v",seg:f,itag:A,ast:M.NV.toFixed(3),alen:M.durationMs.toFixed(3),acpn:M.cpn,avid:M.videoData.videoId}));return Q}; g.C.bb=function(M,f,A){A=A===void 0?!1:A;var Q=Qq(this,M,f);if(Q){var N=void 0,Y=Q.eU;if(Y){this.F3({skipadonsq:f,sts:A,abid:Y,acpn:Q.cpn,avid:Q.videoData.videoId});A=this.W.get(Y);if(!A)return;A=g.V(A);for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.Y8=f,Y.y$=M,Y.NV>Q.NV&&(N=Y)}this.j=Q.cpn;b99(this);M=this.playback.getCurrentTime();lJ(this,Q,N,M,M,!1,!0)}}; g.C.mY=function(){for(var M=g.V(this.N),f=M.next();!f.done;f=M.next())f=f.value,f.Y8=NaN,f.y$=NaN;b99(this);this.F3({rsac:"resetSkipAd",sac:this.j});this.j=""}; g.C.WC=function(M,f,A){return this.g_.WC(M,f,A)}; g.C.kt=fb(63); g.C.yB=function(M,f,A,Q,N,Y,I,D,E){Q.length>0&&this.F3({onssinfo:1,sq:M,start:f.toFixed(3),cpns:Q.join(","),ds:N.join(","),isVideo:I?1:0});E&&this.g_.yB(M,I,D,E);if(I){if(Q.length&&N.length)for(this.j&&this.j===Q[0]&&this.F3({skipfail:1,sq:M,acpn:this.j}),M=f+this.fS(),I=0;I0&&(this.yS=0,this.n3="",this.api.publish("serverstitchedvideochange"));this.playback.cG(A,Q);return!0}; g.C.nM=function(){this.F3({rstdaist:1});this.g_.clearAll()}; g.C.UA=function(M){var f;if(M!==((f=this.jk)==null?void 0:f.identifier))this.F3({ignorenoad:M});else{this.Z9.add(M);this.F3({noadrcv:M});var A;((A=this.jk)==null?void 0:A.identifier)===M&&KN(this)}}; g.C.Sl=function(M){if(this.ST)return this.F3({dai_disabled:M.event}),!1;if(this.playback.getVideoData().G_()&&(this.QY.V("html5_lifa_no_gab_on_predict_start")&&M.event==="predictStart"||M.event==="continue"||M.event==="stop"))return this.F3({cuepoint_skipped:M.event}),!1;var f=Bt(this.api.kp());if(f=f?f.Sl(M):!1)this.Er={Lt:M.identifier,JB:M.startSecs};else if(this.Er&&this.Er.Lt===M.identifier&&M.startSecs>this.Er.JB+1){this.F3({cueStChg:M.identifier,oldSt:this.Er.JB.toFixed(3),newSt:M.startSecs.toFixed(3), abid:this.Er.Mx});if(this.Er.Mx){var A=M.startSecs-this.Er.JB,Q=this.W.get(this.Er.Mx);if(Q){Q=g.V(Q);for(var N=Q.next();!N.done;N=Q.next())N=N.value,N.NV>=0&&(N.NV+=A*1E3,this.QY.V("html5_ssdai_update_timeline_on_start_time_change")&&(N.kz+=A*1E3),this.F3({newApEt:N.NV,newApPrt:N.kz,acpn:N.cpn}))}}this.Er.JB=M.startSecs}return f}; g.C.Pg=function(M){return this.ST?!1:!!doz(this,M)}; g.C.gO=function(M){var f=this;if(this.QY.V("html5_lifa_ignore_multiple_skips")&&this.KJ)return this.F3({ufs_ad:this.j,ufs_cur:this.n3,ufs_cont:this.fI().cpn}),!1;this.playback.pauseVideo();var A=this.playback.getCurrentTime(),Q=this.QY.V("html5_lifa_reset_segment_index_on_skip"),N=Q?A+this.playback.fS():A,Y=this.C.get(this.n3),I=this.Z.get(this.n3);if(Y){this.j=this.n3;this.X=!1;Y.iN=!0;A=this.playback.getCurrentTime();this.K={yJ:I,isAd:!0,t8:!1,Rn:A,adCpn:this.n3,DJ:Y,QX$:M};this.playback.wA(Y,this.fI(), A,this.playback.getCurrentTime(),!1,!0,M,(0,g.W)());Q&&this.playback.Js();if(I==null?0:I.start)this.nF=A*1E3-I.start;this.B.clear();this.playback.bM();M=this.fI();this.n3=M.cpn;this.hY(M.cpn,A);this.api.publish("serverstitchedvideochange");this.playback.seekTo(N,{seekSource:89,Cd:"lifa_skip"});this.playback.playVideo();this.KJ||(this.KJ=this.events.J(this.api,"progresssync",function(){f.Pa(Y)})); return!0}this.F3({skipFail:A},!0);return!1}; g.C.F3=function(M,f){((f===void 0?0:f)||this.b8||this.playback.getVideoData().G_())&&this.playback.ZB("sdai",M)}; var i9d=0;g.U(Gxb,g.X6);g.C=Gxb.prototype;g.C.onCueRangeEnter=function(M){var f=M.getId();this.playback.ZB("sdai",{oncueEnter:1,cpn:f,start:M.start,end:M.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.By()||0).toFixed(3)});M=this.C.get(f);this.playback.ZB("sdai",{enterAdCueRange:1});f=this.n3||this.fI().cpn;var A;f=(A=this.C.get(f))!=null?A:this.fI();M&&(A={cg:f,Ua:M,gk:this.playback.getCurrentTime()},this.sx(A))}; g.C.onCueRangeExit=function(M){var f=this.playback.getCurrentTime()*1E3;M=M.getId();for(var A=g.V(this.Z.values()),Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,Q.getId()!==M&&f>=Q.start&&f<=Q.end)return;if(f=this.C.get(M))f={cg:f,Ua:this.fI(),gk:this.playback.getCurrentTime()},this.sx(f)}; g.C.sx=function(M){this.j||this.X||IO(this,this.n3);var f=M.cg,A=M.Ua;if(A.cpn===this.n3)this.playback.ZB("sdai",{igtranssame:1,enter:A.cpn,exit:f.cpn});else{var Q=this.X,N=!!this.j;this.j="";var Y=M.gk,I=f.playerType===2?f.NV/1E3+f.videoData.Yp:this.fI().videoData.Yp;this.api.V("html5_ssdai_enable_media_end_cue_range")&&(N||Q||f.playerType!==2?(Q||N)&&this.F3({mecr:0,seek:Q,skip:N}):this.api.Mz(f.cpn));if(f.playerType===2&&A.playerType===2)N?this.playback.ZB("sdai",{igtransskip:1,enter:A.cpn,exit:f.cpn, seek:Q,skip:this.j}):lJ(this,f,A,I,Y,Q,N);else{this.n3=A.cpn;u4z(this,f.cpn,Y);this.hY(A.cpn,Y);M=M.tPk;if(f.playerType===1&&A.playerType===2){this.nF=0;w0(this,A);var D=GJ(this,"c2a",A);this.playback.ZB("sdai",D);this.yS++}else if(f.playerType===2&&A.playerType===1){D=f.videoData.Yp;this.api.publish("serverstitchedvideochange");var E=GJ(this,"a2c");this.playback.ZB("sdai",E);this.yS=0;this.nF=D*1E3;this.gb=I;M6N(this,f.eU)}this.playback.wA(f,A,I,Y,Q,N,M)}this.j="";this.X=!1}}; g.C.seekTo=function(M,f,A,Q){M=M===void 0?0:M;f=f===void 0?{}:f;A=A===void 0?!1:A;Q=Q===void 0?null:Q;IO(this,this.n3);this.playback.getVideoData().G_()&&M<=this.gb?(this.playback.pauseVideo(),this.gb=this.nF=0,w3c(this,M)):g.X6.prototype.seekTo.call(this,M,f,A,Q)}; g.C.bb=function(M,f,A){A=A===void 0?!1:A;var Q=Qq(this,M,f);if(Q){var N=void 0,Y=Q.eU;if(Y){this.playback.ZB("sdai",{skipadonsq:f,sts:A,abid:Y,acpn:Q.cpn,avid:Q.videoData.videoId});A=this.W.get(Y);if(!A)return;A=g.V(A);for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.Y8=f,Y.y$=M,Y.NV>Q.NV&&(N=Y)}IO(this,this.n3);this.j=Q.cpn;b99(this);M=this.playback.getCurrentTime();lJ(this,Q,N,M,M,!1,!0);this.j="";this.X=!1}}; g.C.yB=function(M,f,A,Q,N,Y,I,D,E){Q.length>0&&this.playback.ZB("sdai",{onssinfo:1,sq:M,start:f.toFixed(3),cpns:Q.join(","),ds:N.join(","),isVideo:I?1:0});E&&this.g_.yB(M,I,D,E);if(I){if(Q.length&&N.length)for(this.j&&this.j===Q[0]&&this.playback.ZB("sdai",{skipfail:1,sq:M,acpn:this.j}),M=f+this.fS(),A=0;A=0&&this.N.splice(M,1)};g.U(AiD,g.y);g.C=AiD.prototype;g.C.onCueRangeEnter=function(M){if(this.K===this.app.v7()){var f=this.N.get(M);f?D$D(this,f.target,f.bL,M):this.xC("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:M.toString()})}else if(f=this.Z.find(function(N){return N.UK.yJ===M})){var A=f.UK,Q=A.target; A=A.bL;Q?D$D(this,Q,A,M):Tlb(this,f.kz,A,M)}}; g.C.onQueuedVideoLoaded=function(){var M=this.W;t8(this);if(M){if(!Et(this,M)){var f=this.app.v7();this.xC("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:f==null?void 0:f.getVideoData().clientPlaybackNonce,ccpn:""+M.playerVars.cpn})}this.app.v7().addCueRange(M.UK.yJ)}}; g.C.seekTo=function(M,f,A,Q){M=M===void 0?0:M;f=f===void 0?{}:f;Q=Q===void 0?null:Q;if(A===void 0?0:A)fWe(this,M,f);else{A=this.app.v7()||null;var N=A===this.C?this.G:null;vo(this,!1);this.Er=M;this.B=f;Q!=null&&this.X.start(Q);A&&(this.G=N||A.getPlayerState(),A.Jb(),this.C=A)}}; g.C.t$=function(M){g.V2(M,128)&&hSU(this)}; g.C.isManifestless=function(){return Ck(this.K.getVideoData())}; g.C.u8=function(){vo(this,!1);L7b(this);g.y.prototype.u8.call(this)}; g.C.xC=function(M,f){this.K.xC(new ZZ(M,f))}; var Qs6=0;var ohz="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.U(pL,g.y);pL.prototype.Fm=function(M){if(M)return this.Z.get(M)}; pL.prototype.u8=function(){this.K.removeAll();this.Z.removeAll();g.y.prototype.u8.call(this)};g.GDC=oH(function(){var M=window.AudioContext||window.webkitAudioContext;try{return new M}catch(f){return f.name}});g.U(qr0,g.O);g.C=qr0.prototype;g.C.QA=function(){g.vv(this.element,g.jN.apply(0,arguments))}; g.C.eA=function(){this.Lk&&(this.Lk.removeEventListener("focus",this.iB),g.Ya(this.Lk),this.Lk=null)}; g.C.ut=function(){this.ek();var M=this.app.T();M.tY||this.QA("tag-pool-enabled");M.G&&this.QA(g.Qc.HOUSE_BRAND);M.playerStyle==="gvn"&&(this.QA("ytp-gvn"),this.element.style.backgroundColor="transparent");M.Yp&&(this.rJ=g.Dy("yt-dom-content-change",this.resize,this));this.J(window,"orientationchange",this.resize,this);this.J(window,"resize",this.resize,this)}; g.C.I3=function(M){g.yh(this.app.T());this.qe=!M;h8(this)}; g.C.resize=function(){if(this.Lk){var M=this.kI();if(!M.isEmpty()){var f=!g.PB(M,this.xi.getSize()),A=RSf(this);f&&(this.xi.width=M.width,this.xi.height=M.height);M=this.app.T();(A||f||this.oJ||M.Yp)&&this.app.G0.publish("resize",this.getPlayerSize())}}}; g.C.q_=function(M,f){this.updateVideoData(f)}; g.C.updateVideoData=function(M){if(this.Lk){var f=this.app.T();KH&&(this.Lk.setAttribute("x-webkit-airplay","allow"),M.title?this.Lk.setAttribute("title",M.title):this.Lk.removeAttribute("title"));this.Lk.setAttribute("controlslist","nodownload");f.Is&&M.videoId&&(this.Lk.poster=M.PK("default.jpg"))}f=g.gu(M,"yt:bgcolor");this.ID.style.backgroundColor=f?f:"";this.M0=vD(g.gu(M,"yt:stretch"));this.JJ=vD(g.gu(M,"yt:crop"),!0);g.Sb(this.element,"ytp-dni",M.XR);this.resize()}; g.C.setGlobalCrop=function(M){this.cm=vD(M,!0);this.resize()}; g.C.setCenterCrop=function(M){this.FX=M;this.resize()}; g.C.bS=function(){}; g.C.getPlayerSize=function(){var M=this.app.T(),f=this.app.G0.isFullscreen(),A=M.externalFullscreen&&g.Ps(M);if(f&&XK()&&!A)return new g.za(window.outerWidth,window.outerHeight);A=!isNaN(this.gF.width)&&!isNaN(this.gF.height);var Q=this.app.T().V("kevlar_player_enable_squeezeback_fullscreen_sizing");if(f&&!A&&Q)return new g.za(this.element.clientWidth,this.element.clientHeight);if(f||M.Hq){if(window.matchMedia){M="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Mi&&this.Mi.media=== M||(this.Mi=window.matchMedia(M));var N=this.Mi&&this.Mi.matches}if(N)return new g.za(window.innerWidth,window.innerHeight)}else if(A)return this.gF.clone();return new g.za(this.element.clientWidth,this.element.clientHeight)}; g.C.kI=function(){var M=this.app.T().V("enable_desktop_player_underlay"),f=this.getPlayerSize(),A=g.CE(this.app.T().experiments,"player_underlay_min_player_width");return M&&this.EV&&f.width>A?(M=g.CE(this.app.T().experiments,"player_underlay_video_width_fraction"),new g.za(Math.min(f.height*this.getVideoAspectRatio(),f.width*M),Math.min(f.height,f.width*M/this.getVideoAspectRatio()))):f}; g.C.getVideoAspectRatio=function(){return isNaN(this.M0)?m$6(this):this.M0}; g.C.getVideoContentRect=function(M){var f=this.kI();M=ssf(this,f,this.getVideoAspectRatio(),M);return new g.zM((f.width-M.width)/2,(f.height-M.height)/2,M.width,M.height)}; g.C.wR=function(M){this.EV=M;this.resize()}; g.C.j5=function(){return this.y_}; g.C.onMutedAutoplayChange=function(){h8(this)}; g.C.setInternalSize=function(M){g.PB(this.gF,M)||(this.gF=M,this.resize())}; g.C.u8=function(){this.rJ&&g.EC(this.rJ);this.eA();g.O.prototype.u8.call(this)};g.C=BlU.prototype;g.C.click=function(M,f){this.elements.has(M);this.K.has(M);var A=g.iH();A&&M.visualElement&&g.Ev(A,M.visualElement,f)}; g.C.createClientVe=function(M,f,A,Q){var N=this;Q=Q===void 0?!1:Q;this.elements.has(M);this.elements.add(M);A=s0D(A);M.visualElement=A;var Y=g.iH(),I=g.Bf();Y&&I&&(g.mE("combine_ve_grafts")?ya($L(),A,I):g.f0(g.GZ)(void 0,Y,I,A));f.addOnDisposeCallback(function(){N.elements.has(M)&&N.destroyVe(M)}); Q&&this.Z.add(M)}; g.C.createServerVe=function(M,f,A){var Q=this;A=A===void 0?!1:A;this.elements.has(M);this.elements.add(M);f.addOnDisposeCallback(function(){Q.destroyVe(M)}); A&&this.Z.add(M)}; g.C.destroyVe=function(M){this.elements.has(M);this.elements.delete(M);this.j.delete(M);this.K.delete(M);this.Z.delete(M)}; g.C.zf=function(M,f){this.clientPlaybackNonce!==f&&(this.clientPlaybackNonce=f,FU($L(),M),iCD(this))}; g.C.setTrackingParams=function(M,f){this.elements.has(M);f&&(M.visualElement=g.Rz(f))}; g.C.aE=function(M,f,A){this.elements.has(M);f?this.K.add(M):this.K.delete(M);var Q=g.iH(),N=M.visualElement;this.Z.has(M)?Q&&N&&(f?g.To(Q,[N]):g.DJ(Q,[N])):f&&!this.j.has(M)&&(Q&&N&&g.Ie(Q,N,void 0,A),this.j.add(M))}; g.C.hasVe=function(M){return this.elements.has(M)};g.U(g.oO,g.y);g.oO.create=function(M,f,A,Q){try{var N=typeof M==="string"?M:"player"+g.Ye(M),Y=Ri[N];if(Y){try{Y.dispose()}catch(D){g.jZ(D)}Ri[N]=null}var I=new g.oO(M,f,A,Q);I.addOnDisposeCallback(function(){Ri[N]=null;I.Tl&&I.Tl()}); return Ri[N]=I}catch(D){throw g.jZ(D),(D&&D instanceof Error?D:Error(String(D))).stack;}}; g.C=g.oO.prototype;g.C.N_=function(){return this.visibility}; g.C.ZY=function(M){var f=this.IE();if(M!==f){M.getVideoData().autonavState=f.getVideoData().autonavState;f.ud(this.kU,this);var A=f.getPlaybackRate();f.dispose();this.i7.ZY(M);M.setPlaybackRate(A);M.LI(this.kU,this);nhN(this)}}; g.C.YI=function(){this.Ei||(this.Ei=g.D$(eu(),iEf()));return this.Ei}; g.C.eA=function(M){if(this.mediaElement){this.ZG&&(this.events.Hv(this.ZG),this.ZG=null);g.u$(this.tF);this.v7().eA(!0,!1,M);this.template.eA();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Tm()}catch(f){g.$b(f)}this.mediaElement=null}}; g.C.GF=function(M,f,A){A=A===void 0?!1:A;if(M!==this.v7()){this.logger.debug(function(){return"start set presenting player, type "+M.getPlayerType()+", vid "+M.getVideoData().videoId}); var Q=null;A||(A=this.v7(),Q=A.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),gT(this.xz,3),yq(this,"cuerangesremoved",A.wc()),this.di&&!M.isGapless()&&A.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),A=M.PU()&&A.PU(),this.pk.d9("iv_s"),OCe(this,A));M.getPlayerType()===1&&this.ZY(M);W7N(this,M);this.i7.GF(M);this.mediaElement&&M.setMediaElement(this.mediaElement);M.LI(this.Tr,this);M.aD()?ah9(this,"setPresenting",!1):(this.q_("newdata",M,M.getVideoData()), Q&&!g.Cs(Q,M.getPlayerState())&&this.IF(new g.CJ(M.getPlayerState(),Q)),f=f&&this.V("html5_player_preload_ad_fix")&&M.getPlayerType()===1,M.C5()&&!f&&this.q_("dataloaded",M,M.getVideoData()),(f=(f=M.getVideoData().Z)&&f.video)&&this.G0.Gj("onPlaybackQualityChange",f.quality),yq(this,"cuerangesadded",M.wc()),f=M.getPlayerState(),g.J(f,2)?kh6(this):g.J(f,8)?M.playVideo():M.L1()&&M.pauseVideo(),f=this.IE(),M.getPlayerType()===2&&(M.getVideoData().UM=f.getVideoData().clientPlaybackNonce),M.getPlayerType()!== 2||this.Q4()||(Q=M.getVideoData(),f.Pe(Q.clientPlaybackNonce,Q.VU||"",Q.breakType||0,Q.R5,Q.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.C.Ip=function(){if(this.IE()!==this.v7()){var M=this.v7();this.logger.debug(function(){return"release presenting player, type "+M.getPlayerType()+", vid "+M.getVideoData().videoId}); this.GF(this.IE())}}; g.C.yK=function(){return this.i7}; g.C.RI=function(M){return this.i7.RI(M)}; g.C.eO=function(M){return this.i7.eO(M)}; g.C.IE=function(){return this.i7.IE()}; g.C.v7=function(){return this.i7.v7()}; g.C.xj=fb(50);g.C.vOO=function(){Ho(this)||(this.logger.debug("application playback ready"),this.OI(5))}; g.C.KL7=function(){if(!Ho(this)){this.logger.debug("playback ready");oC9(this);var M=this.v7(),f=M.getPlayerState();M.L1()?this.pauseVideo():f.isOrWillBePlaying()&&this.playVideo()}}; g.C.canPlayType=function(M){return P$(M)}; g.C.T=function(){return this.QY}; g.C.getVideoData=function(){return this.v7().getVideoData()}; g.C.Ln=fb(19);g.C.K3=function(){return this.IE().getVideoData()}; g.C.getVideoLoadedFraction=function(M){return(M=this.RI({playerType:M}))?M.getVideoLoadedFraction():this.i7.K.getVideoLoadedFraction()}; g.C.ax=function(){return this.template}; g.C.kp=function(){return this.xz}; g.C.ZX=function(){return this.pk}; g.C.nD=function(M){var f=this.RI({playerType:1});f&&f.JF(M)}; g.C.qj=function(){var M=this.xz.qj();this.G0.publish("videoStatsPingCreated",M);return M}; g.C.getVolume=function(){return Math.round(this.G0.getVolume())}; g.C.isMuted=function(){return this.G0.isMuted()}; g.C.fU=function(){if(this.IE()===this.v7()&&this.PX)return this.PX.postId}; g.C.kjN=function(){var M=this;this.V("use_rta_for_player")||(g.Zs(this.QY)?g.v5(this.QY,g.bv(this.getVideoData())).then(function(f){be(eu(),f);Xkz(M.getVideoData(),M.QY,M.YI())}):Xkz(this.getVideoData(),this.QY,this.YI()))}; g.C.sf=function(M){this.G0.publish("poTokenVideoBindingChange",M)}; g.C.YJ=function(M){this.G0.publish("d6de4videobindingchange",M)}; g.C.T4=function(){this.Mb&&this.Mb.T4()}; g.C.DO=function(M){this.Mb=M}; g.C.V8=function(M){if(M===1){this.pk.tick("vr");var f=this.v7();f.ML();u66(this.pk,f.getVideoData(),L0b(this));o50(this.xz)}f=this.QY;if(Dm(f)&&f.X||g.eX(f)){var A;(((A=this.v7().getVideoData())==null?0:A.enableServerStitchedDai)||!this.Q4())&&this.G0.Gj("onAdStateChange",M)}}; g.C.setLoopVideo=function(M){var f=this.v7();f===this.IE()&&f.wU()!==M&&(f.setLoop(M),this.G0.T0("onLoopChange",M))}; g.C.getLoopVideo=function(){return this.v7().wU()}; g.C.setLoopRange=function(M){var f=!1;!!this.PX!==!!M?f=!0:this.PX&&M&&(f=this.PX.startTimeMs!==M.startTimeMs||this.PX.endTimeMs!==M.endTimeMs||this.PX.postId!==M.postId||this.PX.type!==M.type);if(f){f=this.v7();Em(f.getVideoData())&&f.ZB("slr",{et:(M==null?void 0:M.endTimeMs)||-1});f=this.IE();f.GU("applooprange");if(M){var A=new g.T1(M.startTimeMs,M.endTimeMs,{id:"looprange",namespace:"applooprange"});f.addCueRange(A)}else{this.K3().clipConfig=void 0;var Q;((A=this.PX)==null?void 0:A.type)!=="repeatChapter"|| isNaN(Number((Q=this.PX)==null?void 0:Q.loopCount))||(A={loopCount:String(this.PX.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.hO("repeatChapterLoopEvent",A))}this.PX=M;this.G0.T0("onLoopRangeChange",M||void 0);this.IE()===this.v7()&&(this.Q$(),f.kd())}}; g.C.getLoopRange=function(){return this.PX}; g.C.Q$=function(){var M="",f=this.IE();this.PX?f!==this.v7()?M="pnea":fhX(this,f.getCurrentTime())&&(this.PX.loopCount=0,M="ilr"):M="nlr";var A=this.v7();if(Em(A.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var Q,N;A.ZB("slrre",{rej:M,ct:f.getCurrentTime(),lst:(Q=this.PX)==null?void 0:Q.startTimeMs,let:(N=this.PX)==null?void 0:N.endTimeMs})}else A.ZB("slrre",{});M||QE0(this)}; g.C.setPlaybackRate=function(M,f){if(!isNaN(M)){M=yib(this,M);var A=this.IE();A.getPlaybackRate()!==M&&(A.setPlaybackRate(M),f&&!this.QY.C&&g.jA("yt-player-playback-rate",M),this.G0.Gj("onPlaybackRateChange",M))}}; g.C.getCurrentTime=function(M,f){f=f===void 0?!0:f;var A=this.i7.MY;if(A)return A.getCurrentTime();var Q=M===2&&this.getVideoData().enableServerStitchedDai;A=null;Q?A=this.v7():A=this.RI({playerType:M});return A?Q&&this.rb?(M=this.i7.G)?M.getCurrentTime(f):A.getCurrentTime():f?(f=qJ(this,A),uy(this,f.getCurrentTime(),f)):A.getCurrentTime():this.i7.K.getCurrentTime()}; g.C.a_=function(){var M=this.RI({playerType:void 0});if(!M)return this.i7.K.a_();M=qJ(this,M);return uy(this,M.a_(),M)}; g.C.getDuration=function(M,f){f=f===void 0?!0:f;var A=this.getVideoData(),Q=M===2&&A.enableServerStitchedDai,N=null;Q?N=this.v7():N=this.RI({playerType:M});if(!N)return this.i7.K.getDuration();if(A.hasProgressBarBoundaries()&&!Q){var Y,I=Number((Y=A.progressBarStartPosition)==null?void 0:Y.utcTimeMillis),D;Y=Number((D=A.progressBarEndPosition)==null?void 0:D.utcTimeMillis);if(!isNaN(I)&&!isNaN(Y))return(Y-I)/1E3}if(Em(A)&&!A.isLivePlayback)return Z0(this,M);if(f)return M=aO(this,N),uy(this,M.getDuration(), M);if(Q&&this.rb){if(this.V("html5_huli_ssdai_use_playback_state"))return M=this.i7,M=M.N===M.G?M.N:null,(M==null?void 0:M.getDuration())||0;var E;return((E=this.i7.G)==null?void 0:E.getDuration())||0}return N.getDuration()}; g.C.VJ=function(M){var f=this.RI({playerType:M});return f?this.Q4(f)?(f=aO(this,f),f.VJ()-f.getCurrentTime()+this.getCurrentTime(M)):f.VJ():this.i7.K.VJ()}; g.C.addPlayerResponseForAssociation=function(){}; g.C.finishSegmentByCpn=function(){return[]}; g.C.ut=function(){this.template.ut();var M=this.G0;M.state.element=this.template.element;var f=M.state.element,A;for(A in M.state.K)M.state.K.hasOwnProperty(A)&&(f[A]=M.state.K[A]);(M=dst(this.template.element))&&this.events.J(this.template,M,this.onFullscreenChange)}; g.C.getDebugText=function(M){var f=this.IE().lI(M),A=this.v7();if(A!==this.IE()){A=A.lI(M);for(var Q=g.V(Object.keys(A)),N=Q.next();!N.done;N=Q.next())N=N.value,f["ad"+N]=A[N];if(M){A=f;Q={};if(N=bh(document,"movie_player"))Q.bounds=N.getBoundingClientRect(),Q["class"]=N.className;N={};var Y=g.XF("video-ads");Y?(mIz(Y,N),N.html=Y.outerHTML):N.missing=1;Y={};var I=g.XF("videoAdUiSkipContainer"),D=g.XF("ytp-ad-skip-button-container"),E=g.XF("ytp-skip-ad-button"),t=I||D||E;t?(mIz(t,Y),Y.ima=I?1:0,Y.bulleit= D?1:0,Y.component=E?1:0):Y.missing=1;Q=JSON.stringify({player:Q,videoAds:N,skipButton:Y});A.ad_skipBtnDbgInfo=Q}}M&&this.mediaElement&&(f["0sz"]=""+(+ng(this.mediaElement.getSize())===0),f.op=this.mediaElement.rF("opacity"),A=this.mediaElement.Nt().y+this.mediaElement.getSize().height,f.yof=""+(+A<=0),f.dis=this.mediaElement.rF("display"));M&&((M=(0,g.ao)())&&(f.gpu=M),(M=this.QY.playerStyle)&&(f.ps=M),this.QY.YO&&(f.webview=1));f.debug_playbackQuality=this.G0.getPlaybackQuality(1);f.debug_date=(new Date).toString(); f.origin=window.origin;f.timestamp=Date.now();delete f.uga;delete f.q;return JSON.stringify(f,null,2)}; g.C.getFeedbackProductData=function(){var M={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.T().experiments.experimentIds.join(", "),player_release:T[60]},f;if(f=this.getPlayerStateObject().MQ)M.player_error_code=f.errorCode,M.player_error_details=JSON.stringify(f.errorDetail);return M}; g.C.getPresentingPlayerType=function(M){if(this.appState===1)return 1;if(Ho(this))return 3;var f;return M&&((f=this.rb)==null?0:f.dY(this.getCurrentTime()))?2:this.v7().getPlayerType()}; g.C.hH=function(){return!1}; g.C.getPlayerStateObject=function(M){var f=this.i7.MY;return f?f.getPlayerState():this.RI({playerType:M}).getPlayerState()}; g.C.getAppState=function(){return this.appState}; g.C.zu8=function(M){switch(M.type){case "loadedmetadata":this.bz.start();M=g.V(this.zy);for(var f=M.next();!f.done;f=M.next())f=f.value,hId(this,f.id,f.KQO,f.E$N,void 0,!1);this.zy=[];break;case "loadstart":this.pk.d9("gv");break;case "progress":case "timeupdate":og(M.target.a9())>=2&&this.pk.d9("l2s");break;case "playing":g.IL&&this.bz.start();if(g.Zs(this.QY))M=!1;else{f=g.nv(this.kp());M=this.mediaElement.rF("display")==="none"||ng(this.mediaElement.getSize())===0;var A=SY(this.template),Q=this.v7().getVideoData(), N=g.dA(this.QY);Q=tg(Q);f=!A||f||N||Q||this.QY.b8;M=M&&!f}M&&(M=this.v7(),M.IH(),this.getVideoData().zt||(this.getVideoData().zt=1,this.Z7(),M.playVideo()))}}; g.C.sE7=function(M){this.G0.l7("onLoadProgress",M)}; g.C.C7N=function(){this.G0.publish("playbackstalledatstart")}; g.C.uk3=function(M,f){this.G0.publish("sabrCaptionsDataLoaded",M,f)}; g.C.FLk=function(M){this.v7().N7(M)}; g.C.bdY=function(M){this.v7().Gy(M)}; g.C.Sd_=function(M){M=qJ(this,this.v7());M=uy(this,M.getCurrentTime(),M);this.G0.Gj("onVideoProgress",M);this.QY.s5&&ECd(this,this.visibility.O3())&&this.pauseVideo()}; g.C.a9_=function(){this.G0.Gj("onAutoplayBlocked");var M=this.v7().getVideoData();M&&(M.Nx=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.Ps(this.QY)&&(M={autoplayBrowserPolicy:Nj(),autoplayIntended:Ym(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.hO("embedsAutoplayStatusChanged",M))}; g.C.IKO=function(){this.G0.publish("progresssync")}; g.C.EC8=function(){this.G0.l7("onPlaybackPauseAtStart")}; g.C.Yr_=function(M){if(this.getPresentingPlayerType()===1){g.V2(M,1)&&!g.J(M.state,64)&&this.K3().isLivePlayback&&this.IE().isAtLiveHead()&&this.G0.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.V2(M,2)){if(this.PX&&this.PX.endTimeMs>=(this.getDuration()-1)*1E3){QE0(this);return}kh6(this)}if(g.J(M.state,128)){var f=M.state;this.cancelPlayback(5);f=f.MQ;JSON.stringify({errorData:f,debugInfo:this.getDebugText(!0)});this.G0.Gj("onError",I1b(f.errorCode));this.G0.l7("onDetailedError",{errorCode:f.errorCode, errorDetail:f.errorDetail,message:f.errorMessage,messageKey:f.y0,cpn:f.cpn});(0,g.W)()-this.QY.vy>6048E5&&this.G0.l7("onReloadRequired")}f={};if(M.state.isPlaying()&&!M.state.isBuffering()&&!W9("pbresume","ad_to_video")&&W9("_start","ad_to_video")){var A=this.getVideoData();f.clientPlaybackNonce=A.clientPlaybackNonce;A.videoId&&(f.videoId=A.videoId);g.bB(f,"ad_to_video");eh("pbresume",void 0,"ad_to_video");o50(this.xz)}this.G0.publish("applicationplayerstatechange",M)}}; g.C.IF=function(M){this.i7.MY||this.G0.publish("presentingplayerstatechange",M)}; g.C.t$=function(M){Vq(this,V_(M.state));g.J(M.state,1024)&&this.G0.isMutedByMutedAutoplay()&&(iy(this,{muted:!1,volume:this.l3.volume},!1),x5(this,!1))}; g.C.MkN=function(M,f){M==="newdata"&&nhN(this);this.G0.publish("applicationvideodatachange",M,f)}; g.C.rP3=function(M,f){this.V("html5_afmt_change_update_volume")&&oC9(this);this.G0.l7("onPlaybackAudioChange",this.G0.getAudioTrack().qV.name);this.G0.publish("internalaudioformatchange",this.G0.getAudioTrack().qV.id,f)}; g.C.pvu=function(M){var f=this.v7().getVideoData();M===f&&this.G0.Gj("onPlaybackQualityChange",M.Z.video.quality)}; g.C.jK=function(){var M=this.i7.j[2]||null;M&&(M=M.getVideoData(),this.v7().ZB("ssdai",{cleanaply:1,acpn:M==null?void 0:M.clientPlaybackNonce,avid:M.videoId,isDai:this.K3().enableServerStitchedDai?1:0}),delete this.i7.j[2])}; g.C.P7r=function(M,f){this.q_(M,this.v7(),f)}; g.C.q_=function(M,f,A){this.logger.debug(function(){return"on video data change "+M+", player type "+f.getPlayerType()+", vid "+A.videoId}); this.QY.cX()&&f.ZB("vdc",{type:M,vid:A.videoId||"",cpn:A.clientPlaybackNonce||""});f===this.IE()&&(this.QY.SA=A.oauthToken);f===this.IE()&&(this.getVideoData().enableServerStitchedDai&&!this.rb?(this.IE().ZB("sdai",{initSstm:1}),this.rb=this.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?new Gxb(this.G0,this.QY,this.IE(),this):new g.X6(this.G0,this.QY,this.IE(),this)):!this.getVideoData().enableServerStitchedDai&&this.rb&&(this.rb.dispose(),this.rb=null,S4f(this.i7)));if(M==="newdata")this.logger.debug("new video data, destroy modules"), gT(this.xz,2),this.G0.publish("videoplayerreset",f);else{if(!this.mediaElement)return;M==="dataloaded"&&(this.IE()===this.v7()?(XE(A.i8,A.Ie),Ghc(this)):JiX(this));f.getPlayerType()===1&&(this.QY.g_&&HAb(this),this.getVideoData().isLivePlayback&&!this.QY.E2&&this.ZI("html5.unsupportedlive",2,"DEVICE_FALLBACK"),A.isLoaded()&&((S59(A)||this.getVideoData().Bq)&&this.G0.publish("legacyadtrackingpingchange",this.getVideoData()),A.hasProgressBarBoundaries()&&YQt(this)));this.G0.publish("videodatachange", M,A,f.getPlayerType())}this.G0.Gj("onVideoDataChange",{type:M,playertype:f.getPlayerType()});this.Q$();var Q=A.Fp;Q?this.YV.zf(Q,A.clientPlaybackNonce):iCD(this.YV)}; g.C.wJ=function(){co(this,null);this.G0.l7("onPlaylistUpdate")}; g.C.nCr=function(M){delete this.qM[M.getId()];this.IE().removeCueRange(M);a:{M=this.getVideoData();var f,A,Q,N,Y,I,D,E,t,v,p=((f=M.z0)==null?void 0:(A=f.contents)==null?void 0:(Q=A.singleColumnWatchNextResults)==null?void 0:(N=Q.autoplay)==null?void 0:(Y=N.autoplay)==null?void 0:Y.sets)||((I=M.z0)==null?void 0:(D=I.contents)==null?void 0:(E=D.twoColumnWatchNextResults)==null?void 0:(t=E.autoplay)==null?void 0:(v=t.autoplay)==null?void 0:v.sets);if(p)for(f=g.V(p),A=f.next();!A.done;A=f.next())if(A= A.value,N=Q=void 0,A=A.autoplayVideo||((Q=A.autoplayVideoRenderer)==null?void 0:(N=Q.autoplayEndpointRenderer)==null?void 0:N.endpoint),Q=g.b(A,g.N5),Y=N=void 0,A!=null&&((N=Q)==null?void 0:N.videoId)===M.videoId&&((Y=Q)==null?0:Y.continuePlayback)){M=A;break a}M=null}(f=g.b(M,g.N5))&&this.G0.T0("onPlayVideo",{sessionData:{autonav:"1",itct:M==null?void 0:M.clickTrackingParams},videoId:f.videoId,watchEndpoint:f})}; g.C.OI=function(M){var f=this;M!==this.appState&&(this.logger.debug(function(){return"app state change "+f.appState+" -> "+M}),M===2&&this.getPresentingPlayerType()===1&&(Vq(this,-1),Vq(this,5)),this.appState=M,this.G0.publish("appstatechange",M))}; g.C.ZI=function(M,f,A,Q,N){this.IE().Cx(M,f,A,Q,N)}; g.C.Nz=function(M,f){this.IE().handleError(new ZZ(M,f))}; g.C.isAtLiveHead=function(M,f){f=f===void 0?!1:f;var A=this.RI({playerType:M});if(!A)return this.i7.K.isAtLiveHead();M=aO(this,A);A=qJ(this,A);return M!==A?M.isAtLiveHead(uy(this,A.getCurrentTime(),A),!0):M.isAtLiveHead(void 0,f)}; g.C.U6=function(){var M=this.RI({playerType:void 0});return M?aO(this,M).U6():this.i7.K.U6()}; g.C.seekTo=function(M,f,A,Q,N){f=f!==!1;if(Q=this.RI({playerType:Q}))this.appState===2&&gC(this),this.Q4(Q)?zB(this)?this.rb.seekTo(M,{seekSource:N},f,A):this.Od.seekTo(M,{seekSource:N},f,A):Q.seekTo(M,{D4:!f,Oy:A,Cd:"application",seekSource:N})}; g.C.seekBy=function(M,f,A,Q){this.seekTo(this.getCurrentTime()+M,f,A,Q)}; g.C.k_i=function(){this.G0.Gj("SEEK_COMPLETE")}; g.C.Tq7=function(){this.G0.T0("onAbnormalityDetected")}; g.C.Hd8=function(M){this.G0.T0("onSnackbarMessage",M)}; g.C.jtu=function(M){var f=this.v7(),A=f.getVideoData();if(this.appState===1||this.appState===2)A.startSeconds=M;this.appState===2?g.J(f.getPlayerState(),512)||gC(this):this.G0.Gj("SEEK_TO",M)}; g.C.hRY=function(){this.G0.publish("airplayactivechange");this.QY.V("html5_external_airplay_events")&&this.G0.l7("onAirPlayActiveChange",this.G0.Dy())}; g.C.l9u=function(){this.G0.publish("airplayavailabilitychange");this.QY.V("html5_external_airplay_events")&&this.G0.l7("onAirPlayAvailabilityChange",this.G0.tS())}; g.C.showAirplayPicker=function(){this.v7().PQ()}; g.C.Lnu=function(){this.G0.publish("beginseeking")}; g.C.Fn7=function(){this.G0.publish("endseeking")}; g.C.getStoryboardFormat=function(M){return(M=this.RI({playerType:M}))?aO(this,M).getStoryboardFormat():this.i7.K.getStoryboardFormat()}; g.C.u3=function(M){return(M=this.RI({playerType:M}))?aO(this,M).getVideoData().u3():this.i7.K.u3()}; g.C.Q4=function(M){M=(M||this.v7()).getVideoData();if(zB(this))M=M===this.rb.playback.getVideoData();else a:{var f=this.Od;if(M===f.K.getVideoData()&&f.Z.length)M=!0;else{f=g.V(f.Z);for(var A=f.next();!A.done;A=f.next())if(M.Jd===A.value.Jd){M=!0;break a}M=!1}}return M}; g.C.GD=function(M,f,A,Q,N,Y,I,D){this.logger.debug(function(){return"Adding video to timeline id="+M.video_id+"\n lengthMs="+Q+" enterTimeMs="+N}); var E="",t=zB(this);this.v7().ZB("appattl",{sstm:this.rb?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:t});E=t?Z96(this.rb,M,f,A,Q,N,Y,I,D):IWU(this.Od,M,A,Q,N,Y);this.logger.debug(function(){return"Video added to timeline id="+M.video_id+" timelinePlaybackId="+E}); return E}; g.C.EG=function(M,f,A,Q,N,Y,I,D){if(zB(this)){var E=Z96(this.rb,M,f,A,Q,N,Y,I,D);this.logger.debug(function(){return"Remaining video added to timeline id="+M.video_id+" timelinePlaybackId="+E})}return""}; g.C.UA=function(M){var f;(f=this.rb)==null||f.UA(M)}; g.C.l$=function(M,f){M=M===void 0?-1:M;f=f===void 0?Infinity:f;zB(this)||L7b(this.Od,M,f)}; g.C.MS=function(M,f,A){if(zB(this)){var Q=this.rb,N=Q.MV.get(M);N?(A===void 0&&(A=N.kz),nN9(Q,N,f,A)):Q.qm("Invalid_timelinePlaybackId_"+M+"_specified")}else{Q=this.Od;N=null;for(var Y=g.V(Q.Z),I=Y.next();!I.done;I=Y.next())if(I=I.value,I.Jd===M){N=I;break}N?(A===void 0&&(A=N.kz),Sr6(Q,N,f,A)):TB(Q,"InvalidTimelinePlaybackId timelinePlaybackId="+M)}}; g.C.enqueueVideoByPlayerVars=function(M,f,A,Q){A=A===void 0?Infinity:A;Q=Q===void 0?"":Q;this.Q4();M=new g.G9(this.QY,M);Q&&(M.Jd=Q);Ih6(this,M,f,A)}; g.C.queueNextVideo=function(M,f,A,Q,N){A=A===void 0?NaN:A;M=this.preloadVideoByPlayerVars(M,f===void 0?1:f,A,Q===void 0?"":Q,N===void 0?"":N);f=this.v7();M&&(this.V("html5_check_queue_on_data_loaded")?this.T().supportsGaplessShorts()&&f.getVideoData().W&&(A=this.Bo,Q=this.di.W,A.C!==M&&(A.Z=f,A.C=M,A.j=1,A.K=M.getVideoData(),A.N=Q,A.K.isLoaded()?A.G():A.K.subscribe("dataloaded",A.G,A))):(A=wZf(f,M,this.di.W),A!=null?(f.ZB("sgap",A),f.getVideoData().W&&f.yQ(!1)):(M=M.getVideoData(),f=this.Bo,f.K!== M&&(f.K=M,f.j=1,M.isLoaded()?f.W():f.K.subscribe("dataloaded",f.W,f)))))}; g.C.Rw=function(M,f,A,Q){var N=this;A=A===void 0?0:A;Q=Q===void 0?0:Q;aO(this,this.v7()).t9();tme(this.di,M,f,A,Q).then(function(){N.G0.l7("onQueuedVideoLoaded")},function(){})}; g.C.Ci=function(){return this.di.Ci()}; g.C.iH=function(M){var f=this.di.K;return f?f.jp(M):!1}; g.C.clearQueue=function(M,f){M=M===void 0?!1:M;f=f===void 0?!1:f;this.logger.debug("Clearing queue");this.di.clearQueue(M,f)}; g.C.loadVideoByPlayerVars=function(M,f,A,Q,N,Y){f=f===void 0?1:f;var I=this.IE();if(f===2&&this.K3().enableServerStitchedDai&&I&&!I.b2())return I.ZB("lvonss",{vid:(M==null?void 0:M.videoId)||"",ptype:f}),!1;var D=!1;I=new g.G9(this.QY,M);I.reloadPlaybackParams=Y;g.Ys(this.QY)&&!I.rL&&h4(this.pk);var E;Y=this.pk;var t=(E=I.B)!=null?E:"";Y.timerName=t;this.pk.In("pl_i");this.V("web_player_early_cpn")&&I.clientPlaybackNonce&&this.pk.infoGel({clientPlaybackNonce:I.clientPlaybackNonce});b_f(I).supportsVp9Encoding=== !1&&this.v7().ZB("noVp9enc",{});if(this.T().supportsGaplessShorts()){E=p3e(this.di,I,f);if(E==null){Vq(this,-1);this.QY.cX()&&this.QY.V("html5_short_gapless_unlisten_after_seek")&&this.v7().ZB("sgap",{ul:1});M=this.di;M.app.T().V("html5_gapless_new_slr")?rC(M.app,"gaplessshortslooprange"):M.app.setLoopRange(null);M.app.getVideoData().tU=!0;var v;(v=M.K)==null||v.Fz();var p;(p=M.K)==null||p.QR();A={Cd:"gapless_to_next_video",seekSource:60};Q=g.CE(M.app.T().experiments,"html5_gapless_seek_offset"); var h;(h=M.app.v7())==null||h.seekTo(vNb(M)+Q,A);if(!M.app.getPlayerStateObject(f).isPlaying()){var S;(S=M.app.v7())==null||S.playVideo(!0)}if(M.app.T().V("html5_short_gapless_unlisten_after_seek")){var L;(L=M.app.v7())==null||L.un()}M.G();return!0}h=this.V("html5_shorts_gapless_preload_fallback");S=this.di.K;h&&S&&!S.ek()&&(L=S.getVideoData(),L=this.QY.V("html5_autonav_autoplay_in_preload_key")?nL(this,f,L):jY(this,f,L.videoId,L.Jd),this.i7.C.set(L,S,3600));this.di.clearQueue(h);this.v7().ZB("sgap", {f:E})}if(N){for(;I.qD.length&&I.qD[0].isExpired();)I.qD.shift();D=I.qD.length-1;D=D>0&&N.Z(I.qD[D])&&N.Z(I.qD[D-1]);I.qD.push(N)}A||(M&&nct(M)?(M1(this.QY)&&!this.GQ&&(M.fetch=0),co(this,M)):this.playlist&&co(this,null),M&&(this.GQ=TX(!1,M.external_list)));this.G0.publish("loadvideo");f=this.Kf(I,f,Q);D&&this.ZI("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+I.qD.join()).replace(/[;:,]/g,"_"));return f}; g.C.preloadVideoByPlayerVars=function(M,f,A,Q,N){f=f===void 0?1:f;A=A===void 0?NaN:A;Q=Q===void 0?"":Q;N=N===void 0?"":N;var Y="";if(this.QY.V("html5_autonav_autoplay_in_preload_key"))Y=DIU(this,f,M,N);else{var I=pM(M);Y=jY(this,f,I,N)}if(this.i7.C.get(Y))return this.logger.debug(function(){return"already preloaded "+Y}),null; M=new g.G9(this.QY,M);N&&(M.Jd=N);return T_f(this,M,f,A,Q)}; g.C.setMinimized=function(M){this.visibility.setMinimized(M);(M=VYd(this.xz))&&(this.isMinimized()?M.load():M.unload());this.G0.publish("minimized")}; g.C.setInline=function(M){this.visibility.setInline(M)}; g.C.setInlinePreview=function(M){this.visibility.setInline(M)}; g.C.X2=function(M){tqb(this,M)||this.visibility.X2(M)}; g.C.setSqueezeback=function(M){this.visibility.setSqueezeback(M)}; g.C.l9=function(){var M,f=(M=this.mediaElement)==null?void 0:M.iI();f&&(this.QY.lK&&s_(qE(function(){return document.exitFullscreen()}),function(){}),s_(qE(function(){return ml(f)}),function(){}))}; g.C.x5_=function(){this.mediaElement.iI();this.mediaElement.iI().webkitPresentationMode==="picture-in-picture"?this.X2(!0):this.X2(!1)}; g.C.togglePictureInPicture=function(){this.v7().togglePictureInPicture()}; g.C.Kf=function(M,f,A){f=f===void 0?1:f;this.logger.debug(function(){return"start load video, id "+M.videoId+", type "+f}); W9("_start",this.pk.timerName)||g.f0(P9)(void 0,this.pk.timerName);var Q=!1,N=Mqe(this,f,M,!1);N?(Q=!0,M.dispose()):(N=CL(this,f,M,!0,A),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&N.KM()&&N.Vt(),this.bz.stop(),f===1&&f!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,f),this.GF(N));N===this.IE()&&(this.QY.SA=M.oauthToken);if(!N.KM())return!1;if(N===this.IE())return this.OI(1),A=gC(this),Q&&this.V("html5_player_preload_ad_fix")&&N.getPlayerType()===1&& N.C5()&&this.q_("dataloaded",N,N.getVideoData()),A;N.Yu();return!0}; g.C.cueVideoByPlayerVars=function(M,f){var A=this;f=f===void 0?1:f;var Q=this.IE();if(this.K3().enableServerStitchedDai&&Q&&!Q.b2()&&M&&Object.keys(M).length>0)Q.ZB("qvonss",{vid:(M==null?void 0:M.videoId)||"",ptype:f});else if(M&&nct(M))if(this.h6=!0,co(this,M),(M=g.S3(this.playlist))&&M.hh())Fz(this,M,f);else this.playlist.onReady(function(){RO(A)}); else{f||(f=this.getPresentingPlayerType());f===1&&this.wJ();Q=new g.G9(this.QY,M);var N=g.Ps(this.QY)&&!this.QY.KJ&&f===1&&!Q.isAd()&&!Q.VU;this.G0.publish("cuevideo");N?(this.v7().getVideoData().loading=!0,bNN(Q,M?M:{}).then(function(Y){Fz(A,Y,f)}),Q.dispose()):Fz(this,Q,f)}}; g.C.x7=function(M,f,A,Q,N,Y,I){if(!M&&!A)throw Error("Playback source is invalid");if(jX(this.QY)||g.i7(this.QY))return f=f||{},f.lact=xr(),f.vis=this.G0.getVisibilityState(),this.G0.T0("onPlayVideo",{videoId:M,watchEndpoint:Y,sessionData:f,listId:A}),!1;z$6(this.pk);this.pk.reset();M={video_id:M};Q&&(M.autoplay="1");Q&&(M.autonav="1");Y&&(M.player_params=Y.playerParams);I&&(M.oauth_token=I);A?(M.list=A,this.loadPlaylist(M)):this.loadVideoByPlayerVars(M,1);return!0}; g.C.cuePlaylist=function(M,f,A,Q){this.h6=!0;vC6(this,M,f,A,Q)}; g.C.loadPlaylist=function(M,f,A,Q){this.h6=!1;vC6(this,M,f,A,Q)}; g.C.GI=function(){return this.G0.isMutedByMutedAutoplay()?!1:this.i7.MY?!0:!(!this.playlist||!this.playlist.VK())}; g.C.n1=fb(13); g.C.nextVideo=function(M,f){var A=g.Y_(this.IE().getVideoData());g.Ff(this.G0)&&A?this.x7(A.videoId,f?A.PM:A.sessionData,A.playlistId,f,void 0,A.Wn||void 0):this.GQ?this.G0.l7("onPlaylistNext"):this.getPresentingPlayerType()===3?g.F(ue(this.xz)).nextVideo():!this.playlist||M1(this.QY)&&!this.G0.isFullscreen()||(this.playlist.VK(M)&&FxU(this.playlist,j2X(this.playlist)),this.playlist.loaded?(M=f&&this.QY.V("html5_player_autonav_logging"),f&&this.G0.publish("playlistautonextvideo"),this.Kf(g.F(g.S3(this.playlist,void 0, f,M)),1)):this.h6=!1)}; g.C.previousVideo=function(M){this.GQ?this.G0.l7("onPlaylistPrevious"):this.getPresentingPlayerType()===3?g.F(ue(this.xz)).c6():!this.playlist||M1(this.QY)&&!this.G0.isFullscreen()||(this.playlist.BQ(M)&&FxU(this.playlist,$z9(this.playlist)),this.playlist.loaded?this.Kf(g.F(g.S3(this.playlist)),1):this.h6=!1)}; g.C.playVideoAt=function(M){this.GQ?this.G0.l7("onPlaylistIndex",M):this.playlist&&(this.playlist.loaded?this.Kf(g.F(g.S3(this.playlist,M)),1):this.h6=!1,FxU(this.playlist,M))}; g.C.getPlaylist=function(){return this.playlist}; g.C.JW=fb(25);g.C.RN0=function(M){this.G0.Gj("onCueRangeEnter",M.getId())}; g.C.W$Y=function(M){this.G0.Gj("onCueRangeExit",M.getId())}; g.C.LT=function(){var M=g.ct(this.kp());M&&M.LT()}; g.C.dC=function(M,f,A){var Q=this.RI({playerType:f});if(Q){if(this.V("html5_ssdai_enable_media_end_cue_range")&&this.rb){Q.getPlayerType()===2&&this.rb.dY(this.getCurrentTime())&&(Q=this.IE());for(var N=g.V(M),Y=N.next();!Y.done;Y=N.next())Y.value.j=this.rb.n3}Q.dC(M,A);f&&this.getPresentingPlayerType()!==f||yq(this,"cuerangesadded",M)}}; g.C.bR=function(M,f){var A=this.RI({playerType:f});A&&(A.bR(M),f&&this.getPresentingPlayerType()!==f||yq(this,"cuerangesremoved",M))}; g.C.Mz=function(M){return this.v7().Mz(M)}; g.C.w7_=function(){function M(){var Q=f.screenLayer||(f.isMinimized()?3:0),N=g.iH(Q);if(N&&N!=="UNDEFINED_CSN"){var Y=f.QY.V("web_player_attach_player_response_ve"),I=f.QY.V("web_playback_associated_ve");Q={cpn:f.getVideoData().clientPlaybackNonce,csn:N};f.getVideoData().fJ&&(Y||I)&&(Y=g.Rz(f.getVideoData().fJ),g.Ie(N,Y),I&&(Q.playbackVe=Y.getAsJson()));f.getVideoData().queueInfo&&(Q.queueInfo=f.getVideoData().queueInfo);N={};f.V("web_playback_associated_log_ctt")&&f.getVideoData().G&&(N.cttAuthInfo= {token:f.getVideoData().G,videoId:f.getVideoData().videoId});g.hO("playbackAssociated",Q,N)}else g.$b(new g.GX("CSN Missing or undefined during playback association"))} var f=this,A=this.v7();this.getPresentingPlayerType();u66(this.pk,A.getVideoData(),L0b(this));mK(this)&&this.QY.C&&FG(this.K3())==="embedded"&&this.Bs&&Math.random()<.01&&g.hO("autoplayTriggered",{intentional:this.intentionalPlayback});this.Bs=!1;o50(this.xz);this.V("web_player_defer_ad")&&K7c(this);this.G0.l7("onPlaybackStartExternal");(this.QY.V("mweb_client_log_screen_associated"),Ja(this.QY))||M();A={};this.getVideoData().G&&(A.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId}); A.sampleRate=20;k7("player_att",A);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.Q5(this.QY)||g.TG(this.QY)==="MWEB"?g.AO(g.Nr(),function(){Bo(f)}):Bo(this); this.Q$();AYd(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.Ps(this.QY)&&(A={autoplayBrowserPolicy:Nj(),autoplayIntended:Ym(this.getVideoData()),autoplayStatus:MJc(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.hO("embedsAutoplayStatusChanged",A))}; g.C.xVi=function(){this.G0.publish("internalAbandon");Po(this)}; g.C.onApiChange=function(){var M=this.v7();this.QY.X?this.G0.Gj("onApiChange",M.getPlayerType()):this.G0.Gj("onApiChange")}; g.C.Nqx=function(){var M=this.mediaElement;M={volume:g.ih(Math.floor(M.getVolume()*100),0,100),muted:M.KG()};M.muted||x5(this,!1);this.l3=g.Q1(M);this.G0.Gj("onVolumeChange",M)}; g.C.mutedAutoplay=function(M){var f=this.getVideoData().videoId;isNaN(this.rN)&&(this.rN=this.getVideoData().startSeconds);if((M==null?0:M.videoId)||f)this.loadVideoByPlayerVars({video_id:(M==null?0:M.videoId)?M==null?void 0:M.videoId:f,playmuted:!0,start:this.rN,muted_autoplay_duration_mode:M==null?void 0:M.durationMode}),this.G0.l7("onMutedAutoplayStarts")}; g.C.onFullscreenChange=function(){var M=CqT(this);this.bS(M?1:0);Vqe(this,!!M)}; g.C.bS=function(M){var f=!!M,A=!!this.WM()!==f;this.visibility.bS(M);this.template.bS(f);this.V("html5_media_fullscreen")&&!f&&this.mediaElement&&CqT(this)===this.mediaElement.iI()&&this.mediaElement.pn();this.template.resize();A&&this.pk.tick("fsc");A&&(this.G0.publish("fullscreentoggled",f),M=this.K3(),f={fullscreen:f,videoId:M.IQ||M.videoId,time:this.getCurrentTime()},this.G0.getPlaylistId()&&(f.listId=this.G0.getPlaylistId()),this.G0.Gj("onFullscreenChange",f))}; g.C.IZ=function(){return this.visibility.IZ()}; g.C.isFullscreen=function(){return this.visibility.isFullscreen()}; g.C.WM=function(){return this.visibility.WM()}; g.C.Mcx=function(){var M=this.WM();M!==0&&M!==1||this.bS(CqT(this)?1:0);M=window.screen.width*window.screen.height;var f=window.outerHeight*window.outerWidth;this.QY.rM?(this.VH=Math.max(this.VH,M,f),M=f/this.VH0&&(E=Math.floor(t/1E3))}E=f?f.UR:E;var v={AD_BLOCK:this.K++,AD_BREAK_LENGTH:E,AUTONAV_STATE:eY(this.player.T()),CA_TYPE:"image",CPN:D.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.U6()*1E3,LACT:xr(),LIVE_INDEX:f?this.j++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:Y? Math.round(Y.start/1E3):0,MIDROLL_POS_MS:Y?Math.round(Y.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.ax().kI().height,P_W:this.player.ax().kI().width,YT_REMOTE:N?N.join(","):""},p=SC(hI);Object.keys(p).forEach(function(S){p[S]!=null&&(v[S.toUpperCase()]=p[S].toString())}); A!==""&&(v.BISCOTTI_ID=A);A={};p0(M)&&(A.sts="20220",(f=this.player.T().forcedExperiments)&&(A.forced_experiments=f));var h=Ef(g.z3(M,v),A);return h.split("?").length!==2?zg(Error("Invalid AdBreakInfo URL")):g.v5(this.player.T(),D==null?void 0:D.oauthToken).then(function(S){if(S&&va()){var L=eu();be(L,S)}S=g.F(Q.player.YI(L));L=kud(Q,h,v,D.isMdxPlayback,I);return g.GK(S,L,"/youtubei/v1/player/ad_break").then(function(a){return a})})}; by.prototype.reset=function(){this.j=this.K=1};g.U(W0U,by); W0U.prototype.Z=function(M,f,A){f=f===void 0?{}:f;var Q=f.ue;var N=f.yJ;var Y=f.cueProcessedMs;A=A===void 0?"":A;f=this.K;this.K++;var I=this.player.T().V("h5_disable_macro_substitution_in_get_ad_break")?M:OAt(this,M,{ue:Q,yJ:N,cueProcessedMs:Y},A,f);if(I.split("?").length!==2)return Math.random()<.1&&g.$b(Error("Invalid AdBreakInfo URL")),zg(Error("Invalid AdBreakInfo URL"));var D=this.player.getVideoData(1).isMdxPlayback,E=A;A=jEb.exec(I);A=A!=null&&A.length>=2?A[1]:"";M=$Ie.test(I);var t=F0e.exec(I); t=t!=null&&t.length>=2?t[1]:"";var v=yYU.exec(I);v=v!=null&&v.length>=2&&!Number.isNaN(Number(v[1]))?Number(v[1]):1;var p=dId.exec(I);p=p!=null&&p.length>=2?p[1]:"0";var h=OH(this.player.T().qY),S=g.fp(this.player.getVideoData(1).fJ,!0);ZAT(this,S,I,E===""?"":E,this.player.T(),this.player.getVideoData(1));E={splay:!1,lactMilliseconds:String(xr()),playerHeightPixels:Math.trunc(this.player.ax().kI().height),playerWidthPixels:Math.trunc(this.player.ax().kI().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20220,autonavState:eY(this.player.T())};if(D){D={};var L=this.player.T().h$;zIc(D,L?L.join(","):"")&&(E.mdxContext=D)}if(D=eIb.includes(h)?void 0:g.yn("PREF")){L=D.split(RegExp("[:&]"));for(var a=0,q=L.length;a1&&m[1].toUpperCase()==="TRUE"){S.user.lockedSafetyMode=!0;break}}E.autoCaptionsDefaultOn=nC0(D)}I=bAf.exec(I);(I=I!=null&&I.length>=2?I[1]:"")&&t&&(S.user.credentialTransferTokens= [{token:I,scope:"VIDEO"}]);I={contentPlaybackContext:E};E=this.player.getVideoData(1).getGetAdBreakContext();D=this.player.getVideoData(1).clientPlaybackNonce;L=Y!==void 0?Math.round(Y).toString():void 0;a=(Q==null?0:Q.context)?Q.context:void 0;q=0;Y&&N&&!Q&&(N=N.end-N.start,N>0&&(q=Math.floor(N/1E3)));Q=(Q=Math.trunc((Q?Q.UR:q)*1E3))?String(Q):void 0;N=this.player.U6()*1E3;N=Number.isNaN(N)?0:Math.trunc(N);f={adBlock:f,params:A,breakIndex:v,breakPositionMs:p,clientPlaybackNonce:D,topLevelDomain:h, isProxyAdTagRequest:M,context:S,overridePlaybackContext:I,cueProcessedMs:L,videoId:t?t:void 0,liveTargetingParams:a,breakLengthMs:Q,driftFromHeadMs:N?String(N):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:E?E:void 0};return XAe(this,f)};var l8m={jhN:"replaceUrlMacros",N5x:"onAboutThisAdPopupClosed",m47:"executeCommand"};JYz.prototype.GJ=function(){return"adPingingEndpoint"}; JYz.prototype.Mt=function(M,f,A){uMX(this.yY.get(),M,f,A)};K0D.prototype.GJ=function(){return"changeEngagementPanelVisibilityAction"}; K0D.prototype.Mt=function(M){this.U.T0("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:M})};GuX.prototype.GJ=function(){return"loggingUrls"}; GuX.prototype.Mt=function(M,f,A){M=g.V(M);for(var Q=M.next();!Q.done;Q=M.next())Q=Q.value,uMX(this.yY.get(),Q.baseUrl,f,A,Q.attributionSrcMode)};g.U(lhD,g.y);g.U(Wo,g.y);g.C=Wo.prototype;g.C.addListener=function(M){this.listeners.push(M)}; g.C.removeListener=function(M){this.listeners=this.listeners.filter(function(f){return f!==M})}; g.C.Ym=function(M,f,A,Q,N,Y,I,D){if(M==="")o1("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(M!==this.K||A){this.K=M;this.Sk.get().Ym(M,f,A,Q,N,Y,I,D);this.m$.get().Ym(M,f,A,Q,N,Y,I,D);var E;(E=this.Xn)==null||E.get().Ym(M,f,A,Q,N,Y,I,D);this.Z.Ym(M,f,A,Q,N,Y,I,D);E=g.V(this.listeners);for(var t=E.next();!t.done;t=E.next())t.value.Ym(M,f,A,Q,N,Y,I,D)}else o1("Duplicate content video loaded signal")}; g.C.f9i=function(){this.K&&this.VM(this.K)}; g.C.VM=function(M){this.K=void 0;for(var f=g.V(this.listeners),A=f.next();!A.done;A=f.next())A.value.VM(M)};Ot.prototype.F6=function(M,f,A,Q,N){Msf(this);this.N=!f&&A===0;var Y=this.U.getVideoData(1),I=this.U.getVideoData(2);Y&&(this.contentCpn=Y.clientPlaybackNonce,this.videoId=Y.videoId,this.K=Y.G);I&&(this.adCpn=I.clientPlaybackNonce,this.adVideoId=I.videoId,this.adFormat=I.adFormat);this.C=M;Q<=0?(Msf(this),this.N=!f&&A===0):(this.actionType=this.N?f?"unknown_type":"video_to_ad":f?"ad_to_video":"ad_to_ad",this.videoStreamType=N?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.j=!0,W9("_start",this.actionType)&&QTT(this)))}; Ot.prototype.reset=function(){return new Ot(this.U)};g.U(Xz,g.y);Xz.prototype.addCueRange=function(M,f,A,Q,N,Y,I){Y=Y===void 0?3:Y;I=I===void 0?1:I;this.K.has(M)?o1("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:M}):(M=new N60(M,f,A,Q,Y),this.K.set(M.id,{yJ:M,listener:N,e4:I}),this.U.L3([M],I))}; Xz.prototype.removeCueRange=function(M){var f=this.K.get(M);f?(this.U.hT([f.yJ],f.e4),this.K.delete(f.yJ.id)):o1("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:M})}; Xz.prototype.onCueRangeEnter=function(M){if(this.K.has(M.id))g.F(this.K.get(M.id)).listener.onCueRangeEnter(M.id)}; Xz.prototype.onCueRangeExit=function(M){if(this.K.has(M.id))g.F(this.K.get(M.id)).listener.onCueRangeExit(M.id)}; g.U(N60,g.T1);J8.prototype.addPlayerResponseForAssociation=function(M){this.U.addPlayerResponseForAssociation(M)};KL.prototype.V8=function(M){this.U.V8(M)}; KL.prototype.q8=function(M){var f=g.jN.apply(1,arguments);M==="onAdStart"||M==="onAdEnd"?this.U.Gj.apply(this.U,[M].concat(g.c(f))):this.U.T0.apply(this.U,[M].concat(g.c(f)))};GB.prototype.Py=function(M){return M&&wC(this)};var C_U=null;g.U(og9,g.pi);og9.prototype.Bg=function(M){return this.K.hasOwnProperty(M)?this.K[M].Bg():{}}; g.Gz("ytads.bulleit.getVideoMetadata",function(M){return ly().Bg(M)}); g.Gz("ytads.bulleit.triggerExternalActivityEvent",function(M,f,A){var Q=ly();A=Ldd(A);A!==null&&Q.publish(A,{queryId:M,viewabilityString:f})});g.C=MG.prototype;g.C.FH=function(M,f){if(!this.K.has(M))return{};if(f==="seek"){f=!1;f=f===void 0?!1:f;var A=Jo(f2).pG(M,{});A?KX(A):f&&(M=Jo(f2).Yw(null,aK(),!1,M),M.Vm=3,xUt([M]));return{}}f=Vsf(f);if(f===null)return{};var Q=this.U.wC();if(!Q)return{};var N=this.U.getPresentingPlayerType(!0);if((A=this.U.getVideoData(N))==null||!A.isAd())return{};A={opt_adElement:Q,opt_fullscreen:this.Sk.get().isFullscreen()};return xTD(f,M,A)}; g.C.jL=function(M,f,A,Q,N){this.K.has(M)&&(Q<=0||N<=0||Jo(f2).jL(M,f,A,Q,N))}; g.C.yz=function(M){var f;(f=this.K.get(M.queryId))==null||f.yz()}; g.C.eF=function(M){var f;(f=this.K.get(M.queryId))==null||f.eF()}; g.C.nT=function(M){var f;(f=this.K.get(M.queryId))==null||f.nT()}; g.C.Uc=function(M){var f;(f=this.K.get(M.queryId))==null||f.Uc()}; g.C.gs=function(M){var f;(f=this.K.get(M.queryId))==null||f.gs()};B6T.prototype.send=function(M,f,A,Q){try{iIb(this,M,f,A,Q===void 0?!1:Q)}catch(N){}};g.U(xAb,B6T);ZIX.prototype.send=function(M,f,A,Q){var N=!1;try{if(Q==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||Q==="ATTRIBUTION_SRC_MODE_XHR_OPTION")N=!0,M=Sft(M);Q=N;var Y=g.cP(M);if(Y[1]==="https")var I=M;else Y[1]="https",I=sy("https",Y[2],Y[3],Y[4],Y[5],Y[6],Y[7]);var D=vM6(I);Y=[];var E;if(E=MFd(I))E=this.kO.get().U.T().experiments.X3("add_auth_headers_to_remarketing_google_dot_com_ping");if(p0(I)||E)Y.push({headerType:"USER_AUTH"}),Y.push({headerType:"PLUS_PAGE_ID"}),Y.push({headerType:"VISITOR_ID"}),Y.push({headerType:"EOM_VISITOR_ID"}), Y.push({headerType:"AUTH_USER"}),Y.push({headerType:"DATASYNC_ID"});this.K.send({baseUrl:I,scrubReferrer:D,headers:Y},f,A,Q)}catch(t){}};Yv.prototype.Cy=function(){return this.U.Cy(1)};g.U(I6,g.y);g.C=I6.prototype;g.C.fh=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.C.addListener=function(M){this.listeners.push(M)}; g.C.removeListener=function(M){this.listeners=this.listeners.filter(function(f){return f!==M})}; g.C.Ym=function(){this.E_.clear();this.N0=null;this.h8.get().clear()}; g.C.VM=function(){}; g.C.eZJ=function(M,f,A,Q,N){f.videoId==="nPpU29QrbiU"&&this.U.ZB("ads_ssm_vdc_s",{pt:A,dvt:M});Zd(this.kO.get())&&M!=="dataloaded"||yc9(this,f,A);if(wC(this.kO.get())&&M==="newdata"&&N!==void 0){M=this.fh();var Y=f.clientPlaybackNonce,I={};R8(this,"rte",(I.ec=Y,I.xc=Q==null?void 0:Q.clientPlaybackNonce,I.tr=N,I.pt=A,I.ia=Y!==M,I.ctp=c$(Y),I));f=f.clientPlaybackNonce;Q=Q==null?void 0:Q.clientPlaybackNonce;N=dAT(N);if(N!==1)if(Q!==void 0)for(A=g.V(this.listeners),M=A.next();!M.done;M=A.next())M.value.Zd(Q, f,N);else o1("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:f,transitionReason:String(N)});N=g.V(this.listeners);for(Q=N.next();!Q.done;Q=N.next())Q.value.KO(f)}}; g.C.QI$=function(M,f){M!==void 0&&(this.N0=M,f===void 0?o1("Expected ad video start time on SS video changed"):this.E_.set(M,f));var A=this.U.getPresentingPlayerType(!0),Q=this.U.getVideoData(A),N;M===void 0?N=null:N=this.h8.get().K.get(M)||null;this.U.getVideoData(1).ZB("ads_ssvc",{pt:A,cpn:Q==null?void 0:Q.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:f,pid:M,slid:N==null?void 0:N.layoutId});Q?yc9(this,Q,A):o1("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:M})}; g.C.Dm=function(M,f){var A=M.author,Q=M.clientPlaybackNonce,N=M.isListed,Y=M.Jd,I=M.title,D=M.CK,E=M.T9,t=M.isMdxPlayback,v=M.DH,p=M.mdxEnvironment,h=M.isAutonav,S=M.Wq,L=M.rL,a=M.WQ,q=M.videoId||"",m=M.profilePicture||"",R=M.QM||"",u=M.E3()||!1,z=M.G_()||!1;M=M.rV||void 0;Y=this.h8.get().K.get(Y)||{layoutId:null,slotId:null};var e=this.U.getVideoData(1),G=e.U$();e=e.getPlayerResponse();f=1E3*this.U.getDuration(f);var X=1E3*this.U.getDuration(1),Qt,Y9,Mc=(e==null?void 0:(Qt=e.playerConfig)==null? void 0:(Y9=Qt.daiConfig)==null?void 0:Y9.enableDai)||!1,E0,w;Qt=(e==null?void 0:(E0=e.playerConfig)==null?void 0:(w=E0.daiConfig)==null?void 0:w.enablePreroll)||!1;return Object.assign({},Y,{videoId:q,author:A,clientPlaybackNonce:Q,RF:f,xI:X,daiEnabled:Mc,f4:Qt,isListed:N,U$:G,profilePicture:m,title:I,QM:R,CK:D,T9:E,rV:M,isMdxPlayback:t,DH:v,mdxEnvironment:p,isAutonav:h,Wq:S,rL:L,WQ:a,E3:u,G_:z})}; g.C.u8=function(){this.listeners.length=0;this.I6=null;g.y.prototype.u8.call(this)};g.U(T6,g.y);g.C=T6.prototype;g.C.Ym=function(){var M=this;wC(this.kO.get())||(this.K=C$(function(){M.U.ek()||M.U.uM("ad",1)}))}; g.C.VM=function(){}; g.C.addListener=function(M){this.listeners.push(M)}; g.C.removeListener=function(M){this.listeners=this.listeners.filter(function(f){return f!==M})}; g.C.EP=function(){}; g.C.playVideo=function(){this.U.playVideo()}; g.C.pauseVideo=function(){this.U.pauseVideo()}; g.C.resumeVideo=function(M){this.xN(M)&&this.U.playVideo()}; g.C.xN=function(M){return this.U.getPlayerState(M)===2}; g.C.getCurrentTimeSec=function(M,f,A){var Q=this.m$.get().N0;if(M===2&&!f&&Q!==null)return bIN(this,Q);l7(this.kO.get(),"html5_ssap_use_cpn_to_get_time")||(A=void 0);return A!==void 0?this.U.getCurrentTime(M,f,A):this.U.getCurrentTime(M,f)}; g.C.getVolume=function(){return this.U.getVolume()}; g.C.isMuted=function(){return this.U.isMuted()}; g.C.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.C.getPlayerState=function(M){return this.U.getPlayerState(M)}; g.C.isFullscreen=function(){return this.U.isFullscreen()}; g.C.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.C.wR=function(M){this.U.wR(M)}; g.C.m5Y=function(){var M=this.U.getPresentingPlayerType(!0),f=this.getCurrentTimeSec(M,!1);if(M===2){M=g.V(this.listeners);for(var A=M.next();!A.done;A=M.next())A.value.J3(f)}else if(M===1)for(M=g.V(this.Fj),A=M.next();!A.done;A=M.next())A.value.EP(f)}; g.C.Zd_=function(M){for(var f=g.V(this.listeners),A=f.next();!A.done;A=f.next())A.value.vP(M,this.getPresentingPlayerType())}; g.C.onFullscreenToggled=function(M){for(var f=g.V(this.listeners),A=f.next();!A.done;A=f.next())A.value.onFullscreenToggled(M)}; g.C.onVolumeChange=function(){for(var M=g.V(this.listeners),f=M.next();!f.done;f=M.next())f.value.onVolumeChange()}; g.C.gL=function(){for(var M=this.U.isMinimized(),f=g.V(this.listeners),A=f.next();!A.done;A=f.next())A.value.gL(M)}; g.C.M4=function(M){for(var f=g.V(this.listeners),A=f.next();!A.done;A=f.next())A.value.M4(M)}; g.C.Tt=function(){for(var M=this.U.ax().kI(),f=g.V(this.listeners),A=f.next();!A.done;A=f.next())A.value.ZQ(M)}; g.C.wu=function(M){for(var f=g.V(this.listeners),A=f.next();!A.done;A=f.next())A.value.wu(M)}; g.C.X7=function(){for(var M=g.V(this.listeners),f=M.next();!f.done;f=M.next())f.value.X7()};g.U(XFb,g.y);g.U(pT,g.y);pT.prototype.u8=function(){this.d6.ek()||this.d6.get().removeListener(this);g.y.prototype.u8.call(this)};hl.prototype.fetch=function(M){var f=M.K$;return this.K.fetch(M.rj,{ue:M.ue===void 0?void 0:M.ue,yJ:f,cueProcessedMs:M.cueProcessedMs===void 0?0:M.cueProcessedMs}).then(function(A){return Jcz(A,f)})};g.U(Se,g.y);g.C=Se.prototype;g.C.addListener=function(M){this.listeners.push(M)}; g.C.removeListener=function(M){this.listeners=this.listeners.filter(function(f){return f!==M})}; g.C.fR=function(M){Kd9(this,M,1)}; g.C.onAdUxClicked=function(M,f){LT(this,function(A){A.PP(M,f)})}; g.C.xk=function(M){LT(this,function(f){f.Ng(M)})}; g.C.D0=function(M){LT(this,function(f){f.Gn(M)})}; g.C.N_3=function(M){LT(this,function(f){f.eG(M)})};o6.prototype.reduce=function(M){switch(M.event){case "unknown":return}var f=M.identifier;var A=this.K[f];A?f=A:(A={sQ:null,Mf:-Infinity},f=this.K[f]=A);A=M.startSecs+M.K/1E3;if(!(A=this.K.startSecs&&A.startSecs<=this.K.startSecs+this.K.UR;if(Q){Q=void 0;if(r5(this.kO.get())&&A.identifier!==((Q=this.K)==null?void 0:Q.identifier)){var N=Q=void 0,Y=void 0,I=void 0;vH(this.yY.get(),"ocud","ccpi."+A.identifier+";ccpe."+A.event+";ccps."+A.startSecs+";\n ccpd."+A.UR+";pcpi."+((Q=this.K)==null?void 0: Q.identifier)+";pcpe."+((N=this.K)==null?void 0:N.event)+";\n pcps."+((Y=this.K)==null?void 0:Y.startSecs)+";pcpd."+((I=this.K)==null?void 0:I.UR)+";")}Q=void 0;A.identifier!==((Q=this.K)==null?void 0:Q.identifier)&&o1("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.K=A,M5c(this,A)}}}; g.C.u8=function(){this.Z!=null&&(this.Z.unsubscribe("cuepointupdated",this.Zo,this),this.Z=null);this.listeners.length=0;this.C.length=0;g.y.prototype.u8.call(this)};g.C=Vy.prototype;g.C.GD=function(M,f,A,Q,N,Y,I){return this.U.GD(M,f,A,Q,N,Y,I)}; g.C.l$=function(M,f){this.U.l$(M,f)}; g.C.MS=function(M,f,A){this.U.MS(M,f,A)}; g.C.UA=function(M){this.U.UA(M)}; g.C.EG=function(M,f,A,Q,N,Y,I){return this.U.EG(M,f,A,Q,N,Y,I)}; g.C.hC=function(M){return this.U.hC(M)}; g.C.finishSegmentByCpn=function(M,f,A){A=QyN(A);this.U.finishSegmentByCpn(M,f,A)};g.U(a6,g.y);g.U(YTN,g.y);g.U(I3D,g.y);g.U(TIT,g.y);g.U(Dgf,g.y);g.U(EPf,g.y);g.U(vPt,g.y);vPt.prototype.j=function(){return this.Z};g.U(pNb,JS); pNb.prototype.C=function(M){var f=M.content;if(f.componentType==="shopping-companion")switch(M.actionType){case 1:case 2:M=this.K.getVideoData(1);this.K.T0("updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId,shoppingCompanionCarouselRenderer:f.renderer,layoutId:f.layoutId,macros:f.macros,onLayoutVisibleCallback:f.K,interactionLoggingClientData:f.interactionLoggingClientData});break;case 3:this.K.T0("updateKevlarOrC3Companion",{})}else if(f.componentType==="action-companion")switch(M.actionType){case 1:case 2:M=this.K.getVideoData(1); this.K.T0("updateKevlarOrC3Companion",{contentVideoId:M&&M.videoId,actionCompanionAdRenderer:f.renderer,layoutId:f.layoutId,macros:f.macros,onLayoutVisibleCallback:f.K,interactionLoggingClientData:f.interactionLoggingClientData});break;case 3:f.renderer&&(f=this.K.getVideoData(1),this.K.T0("updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId})),this.K.T0("updateKevlarOrC3Companion",{})}else if(f.componentType==="image-companion")switch(M.actionType){case 1:case 2:M=this.K.getVideoData(1);this.K.T0("updateKevlarOrC3Companion", {contentVideoId:M&&M.videoId,imageCompanionAdRenderer:f.renderer,layoutId:f.layoutId,macros:f.macros,onLayoutVisibleCallback:f.K,interactionLoggingClientData:f.interactionLoggingClientData});break;case 3:f=this.K.getVideoData(1),this.K.T0("updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId}),this.K.T0("updateKevlarOrC3Companion",{})}else if(f.componentType==="top-banner-image-text-icon-buttoned")switch(M.actionType){case 1:case 2:M=this.K.getVideoData(1);this.K.T0("updateKevlarOrC3Companion", {contentVideoId:M&&M.videoId,topBannerImageTextIconButtonedLayoutViewModel:f.renderer,layoutId:f.layoutId,macros:f.macros,onLayoutVisibleCallback:f.K,interactionLoggingClientData:f.interactionLoggingClientData});break;case 3:f.renderer&&(f=this.K.getVideoData(1),this.K.T0("updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId})),this.K.T0("updateKevlarOrC3Companion",{})}else if(f.componentType==="banner-image")switch(M.actionType){case 1:case 2:M=this.K.getVideoData(1);this.K.T0("updateKevlarOrC3Companion", {contentVideoId:M&&M.videoId,bannerImageLayoutViewModel:f.renderer,layoutId:f.layoutId,macros:f.macros,onLayoutVisibleCallback:f.K,interactionLoggingClientData:f.interactionLoggingClientData});break;case 3:f=this.K.getVideoData(1),this.K.T0("updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId}),this.K.T0("updateKevlarOrC3Companion",{})}else if(f.componentType==="ads-engagement-panel")switch(f=f.renderer,M.actionType){case 1:case 2:this.K.T0("updateEngagementPanelAction",f.addAction);this.K.T0("changeEngagementPanelVisibility", f.expandAction);break;case 3:this.K.T0("changeEngagementPanelVisibility",f.hideAction),this.K.T0("updateEngagementPanelAction",f.removeAction)}else if(f.componentType==="ads-engagement-panel-layout"){var A=f.renderer;switch(M.actionType){case 1:case 2:this.K.T0("updateEngagementPanelAction",{action:eZ(A.addAction),layoutId:f.layoutId,onLayoutVisibleCallback:f.K,interactionLoggingClientData:f.interactionLoggingClientData});this.K.T0("changeEngagementPanelVisibility",eZ(A.expandAction));break;case 3:this.K.T0("changeEngagementPanelVisibility", eZ(A.hideAction)),this.K.T0("updateEngagementPanelAction",{action:eZ(A.removeAction)})}}};g.U(hff,Q2);g.C=hff.prototype;g.C.init=function(M,f,A){Q2.prototype.init.call(this,M,f,A);g.ji(this.j,"stroke-dasharray","0 "+this.Z);this.j.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.C.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){YZ(this);Q2.prototype.hide.call(this)}; g.C.show=function(){Ni(this);Q2.prototype.show.call(this)}; g.C.vz=function(){this.hide()}; g.C.lS=function(){if(this.K){var M=this.K.getProgressState();M!=null&&M.current!=null&&g.ji(this.j,"stroke-dasharray",M.current/M.seekableEnd*this.Z+" "+this.Z)}};g.U(STD,Uv);g.C=STD.prototype; g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);if(f.image&&f.image.thumbnail)if(f.headline)if(f.description)if(f.backgroundImage&&f.backgroundImage.thumbnail)if(f.actionButton&&g.b(f.actionButton,g.kG))if(M=f.durationMilliseconds||0,typeof M!=="number"||M<=0)g.jZ(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+M));else if(f.navigationEndpoint){var Q=this.api.getVideoData(2);if(Q!=null){var N=f.image.thumbnail.thumbnails;N!=null&& N.length>0&&g.V1(g.a9(N[0].url))&&(N[0].url=Q.profilePicture,g.V1(g.a9(Q.profilePicture))&&$Cb("VideoPlayer",239976093,"Expected non-empty profile picture."));N=f.backgroundImage.thumbnail.thumbnails;N!=null&&N.length>0&&g.V1(g.a9(N[0].url))&&(N[0].url=Q.PK());N=f.headline;N!=null&&g.V1(g.a9(N.text))&&(N.text=Q.author)}this.B.init(tS("ad-image"),f.image,A);this.G.init(tS("ad-text"),f.headline,A);this.j.init(tS("ad-text"),f.description,A);this.ox.init(tS("ad-image"),f.backgroundImage,A);Q=["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.G.element.classList.add("ytp-ad-action-interstitial-headline-light");this.j.element.classList.add("ytp-ad-action-interstitial-description-light");Q.push("ytp-ad-action-interstitial-action-button-dark");this.api.T().Z&&(Q.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),Q.push("ytp-ad-action-interstitial-action-button-dark"));this.api.T().V("enable_unified_action_endcap_on_web")&& !this.api.T().Z&&(Q.push("ytp-ad-action-interstitial-action-button-unified"),this.w_.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.l8.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.bU.classList.add("ytp-ad-action-interstitial-card-unified"),this.KJ.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.z0.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.fJ.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.nJ.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new jK(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,Q);g.d(this,this.actionButton);this.actionButton.pJ(this.w_); this.actionButton.init(tS("button"),g.b(f.actionButton,g.kG),A);Ok(this.actionButton.element);Q=w8(this.actionButton.element);G3(this.actionButton.element,Q+" This link opens in new tab");this.navigationEndpoint=f.navigationEndpoint;this.C.J(this.fJ,"click",this.n$,this);this.C.J(this.KJ,"click",this.n$,this);!this.api.T().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.T().Z||this.C.J(this.z0,"click",this.n$,this);this.K=this.I1?new R1(this.api,M):new gA(M);g.d(this,this.K);if(f.skipButton){(M= g.b(f.skipButton,LYe))&&this.K&&(this.skipButton=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.K,this.pR),g.d(this,this.skipButton),this.skipButton.pJ(this.element),this.skipButton.init(tS("skip-button"),M,A));if(A=f.adBadgeRenderer)if(A=g.b(A,SIK))M=new sa(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!0,!0),M.pJ(this.nJ),M.init(tS("simple-ad-badge"),A,this.macros),g.d(this,M);if(A=f.adInfoRenderer)if(A=g.b(A,eP))M=new Mi(this.api,this.layoutId,this.interactionLoggingClientData, this.Or,this.element,void 0,!0),M.pJ(this.nJ),M.init(tS("ad-info-hover-text-button"),A,this.macros),g.d(this,M)}else f.nonskippableOverlayRenderer&&(M=g.b(f.nonskippableOverlayRenderer,bF))&&this.K&&(this.Z=new D4(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.K,!1),g.d(this,this.Z),this.Z.pJ(this.element),this.Z.init(tS("ad-preview"),M,A));f.countdownRenderer&&(f=f.countdownRenderer,g.b(f,o19)&&this.K&&(A=new hff(this.api,this.layoutId,this.interactionLoggingClientData,this.Or, this.K),g.d(this,A),A.pJ(this.element),A.init(tS("timed-pie-countdown"),g.b(f,o19),this.macros)));this.show();this.element.focus()}else g.jZ(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.jZ(Error("AdActionInterstitialRenderer has no button."));else g.jZ(Error("AdActionInterstitialRenderer has no background AdImage."));else g.jZ(Error("AdActionInterstitialRenderer has no description AdText."));else g.jZ(Error("AdActionInterstitialRenderer has no headline AdText."));else g.jZ(Error("AdActionInterstitialRenderer has no image."))}; g.C.clear=function(){g.u$(this.C);this.hide()}; g.C.show=function(){LIf(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.Z&&this.Z.show();Uv.prototype.show.call(this)}; g.C.hide=function(){LIf(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.Z&&this.Z.hide();Uv.prototype.hide.call(this)}; g.C.n$=function(){this.navigationEndpoint&&(this.layoutId?this.Or.executeCommand(this.navigationEndpoint,this.layoutId):g.jZ(Error("Missing layoutId for ad action interstitial.")))};var a30={iconType:"CLOSE"},s2=new g.za(320,63);g.U(V5T,Uv);g.C=V5T.prototype; g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);this.C=f;this.B=g.sB(this.C.onClickCommands||[]);this.nJ=this.C.onErrorCommand||null;if(M=this.C.contentSupportedRenderer)M=this.C.contentSupportedRenderer,f=this.C.adInfoRenderer||null,g.b(M,v1W)?(this.G=g.XF("ytp-ad-overlay-ad-info-button-container",this.j.element),qT6(this,f),M=mgT(this,g.b(M,v1W))):g.b(M,pT0)?(this.G=g.XF("ytp-ad-overlay-ad-info-button-container",this.Z.element),qT6(this,f),M=syD(this,g.b(M,pT0))):g.b(M,hZ7)?(this.G= g.XF("ytp-ad-overlay-ad-info-button-container",this.K.element),qT6(this,f),M=csD(this,g.b(M,hZ7))):(g.jZ(Error("InvideoOverlayAdRenderer content could not be initialized.")),M=!1);M&&(this.show(),Rff(this,!0))}; g.C.clear=function(){Rff(this,!1);this.fJ.reset();this.KJ=0;this.j.hide();this.logVisibility(this.j.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.hide();this.dispose()}; g.C.Pl0=function(){this.w_&&(this.layoutId?this.Or.executeCommand(this.w_,this.layoutId):g.jZ(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.C.tQ=function(){a:{if(this.C&&this.C.closeButton&&this.C.closeButton.buttonRenderer){var M=this.C.closeButton.buttonRenderer;if(M.serviceEndpoint){M=[M.serviceEndpoint];break a}}M=[]}M=g.V(M);for(var f=M.next();!f.done;f=M.next())f=f.value,this.layoutId?this.Or.executeCommand(f,this.layoutId):g.jZ(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.C.oO8=function(){this.ox||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.C.yp=function(){this.ox||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.yp("invideo-overlay")}; g.C.G0Y=function(M){M.target===this.G&&g.XF("ytp-ad-button",this.l8.element).click()};g.U(gPd,Q2);g.C=gPd.prototype;g.C.init=function(M,f,A){Q2.prototype.init.call(this,M,f,A);M=f.durationMs;this.j=M==null||M===0?0:M+this.K.getProgressState().current*1E3;if(f.text)var Q=f.text.templatedAdText;else f.staticMessage&&(Q=f.staticMessage);this.messageText.init(tS("ad-text"),Q,A);this.messageText.pJ(this.Z.element);this.C.show(100);this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){BIt(this,!1);Q2.prototype.hide.call(this);this.Z.hide();this.messageText.hide();YZ(this)}; g.C.show=function(){BIt(this,!0);Q2.prototype.show.call(this);Ni(this);this.Z.show();this.messageText.show()}; g.C.vz=function(){this.hide()}; g.C.lS=function(){if(this.K!=null){var M=this.K.getProgressState();M!=null&&M.current!=null&&(M=1E3*M.current,!this.KJ&&M>=this.j?(this.C.hide(),this.KJ=!0):this.messageText&&this.messageText.isTemplated()&&(M=Math.max(0,Math.ceil((this.j-M)/1E3)),M!==this.G&&(AF(this.messageText,{TIME_REMAINING:String(M)}),this.G=M)))}};g.U(iff,Uv);g.C=iff.prototype; g.C.init=function(M,f,A){Uv.prototype.init.call(this,M,f,{});f.image&&f.image.thumbnail?f.headline?f.description?f.actionButton&&g.b(f.actionButton,g.kG)?(this.j.init(tS("ad-image"),f.image,A),this.Z.init(tS("ad-text"),f.headline,A),this.C.init(tS("ad-text"),f.description,A),M=["ytp-ad-underlay-action-button"],this.api.T().V("use_blue_buttons_for_desktop_player_underlay")&&M.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new jK(this.api,this.layoutId,this.interactionLoggingClientData,this.Or, M),f.backgroundColor&&g.ji(this.element,"background-color",g.eI(f.backgroundColor)),g.d(this,this.actionButton),this.actionButton.pJ(this.G),this.actionButton.init(tS("button"),g.b(f.actionButton,g.kG),A),f=g.CE(this.api.T().experiments,"player_underlay_video_width_fraction"),this.api.T().V("place_shrunken_video_on_left_of_player")?(A=this.K,g.p5(A,"ytp-ad-underlay-left-container"),g.tZ(A,"ytp-ad-underlay-right-container"),g.ji(this.K,"margin-left",Math.round((f+.02)*100)+"%")):(A=this.K,g.p5(A,"ytp-ad-underlay-right-container"), g.tZ(A,"ytp-ad-underlay-left-container")),g.ji(this.K,"width",Math.round((1-f-.04)*100)+"%"),this.api.j5()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.S2.bind(this)),this.api.addEventListener("resize",this.pB.bind(this))):g.jZ(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.jZ(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.jZ(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.jZ(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.C.show=function(){xgX(!0);this.actionButton&&this.actionButton.show();Uv.prototype.show.call(this)}; g.C.hide=function(){xgX(!1);this.actionButton&&this.actionButton.hide();Uv.prototype.hide.call(this)}; g.C.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.S2.bind(this));this.api.removeEventListener("resize",this.pB.bind(this));this.hide()}; g.C.onClick=function(M){Uv.prototype.onClick.call(this,M);this.actionButton&&g.IH(this.actionButton.element,M.target)&&this.api.pauseVideo()}; g.C.S2=function(M){M==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):M==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):M==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))}; g.C.pB=function(M){M.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):M.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.ji(this.Z.element,"font-size",M.width/40+"px")};g.U(cq,Uv); cq.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);f.toggledLoggingParams&&(this.toggledLoggingParams=f.toggledLoggingParams);f.answer&&g.b(f.answer,g.kG)?(M=new jK(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),M.pJ(this.answer),M.init(tS("ytp-ad-survey-answer-button"),g.b(f.answer,g.kG),A),M.show()):f.answer&&g.b(f.answer,qt)&&(this.K=new Ov(this.api,this.layoutId,this.interactionLoggingClientData,this.Or, ["ytp-ad-survey-answer-toggle-button"]),this.K.pJ(this.answer),g.d(this,this.K),this.K.init(tS("survey-answer-button"),g.b(f.answer,qt),A));this.show()}; cq.prototype.Dd=function(M){this.layoutId?KE(this.Or,M,this.layoutId,this.macros):(M=new g.GX("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.jZ(M))}; cq.prototype.onClick=function(M){Uv.prototype.onClick.call(this,M);if(this.api.T().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; cq.prototype.clear=function(){this.hide()};g.U(Zf0,Uv);Zf0.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);f.answer&&g.b(f.answer,qt)&&(this.button=new Ov(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.pJ(this.K),this.button.init(tS("survey-none-of-the-above-button"),g.b(f.answer,qt),A));this.show()};g.U(R6,jK);R6.prototype.init=function(M,f,A){jK.prototype.init.call(this,M,f,A);M=!1;f.text&&(f=g.ae(f.text),M=!g.V1(f));M||g.$b(Error("No submit text was present in the renderer."))}; R6.prototype.onClick=function(M){this.publish("l");jK.prototype.onClick.call(this,M)};g.U(gj,Uv); gj.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);if(M=f.skipOrPreviewRenderer)g.b(M,Lc)?(M=g.b(M,Lc),A=new H2(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.C,!0),A.pJ(this.skipOrPreview),A.init(tS("skip-button"),M,this.macros),g.d(this,A),this.K=A):g.b(M,bF)&&(M=g.b(M,bF),A=new D4(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.C,!1),A.pJ(this.skipOrPreview),A.init(tS("ad-preview"),M,this.macros),A.KJ.show(100),A.show(),g.d(this,A), this.K=A);this.K==null&&(M=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(f)),g.jZ(M));f.submitButton&&(M=f.submitButton,g.b(M,g.kG)&&(M=g.b(M,g.kG),A=new R6(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),A.pJ(this.submitButton),A.init(tS("survey-submit"),M,this.macros),g.d(this,A),this.Z=A));if(M=f.adBadgeRenderer)M=g.b(M,SIK),A=new sa(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!0,!0,!0),A.pJ(this.j),A.init(tS("simple-ad-badge"), M,this.macros),this.adBadge=A.element,g.d(this,A);if(M=f.adDurationRemaining)M=g.b(M,DVm),A=new xZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.C,void 0,!0),A.pJ(this.j),A.init(tS("ad-duration-remaining"),M,this.macros),g.d(this,A);(f=f.adInfoRenderer)&&g.b(f,eP)&&(M=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.element,void 0,!0),g.d(this,M),this.adBadge!==void 0?this.j.insertBefore(M.element,this.adBadge.nextSibling):M.pJ(this.j),M.init(tS("ad-info-hover-text-button"), g.b(f,eP),this.macros));this.show()}; gj.prototype.clear=function(){this.hide()};g.U(Bq,Uv);Bq.prototype.init=function(M,f,A){Uv.prototype.init.call(this,M,f,A);nPN(this)}; Bq.prototype.show=function(){this.j=Date.now();Uv.prototype.show.call(this)}; Bq.prototype.Ep=function(){};g.U(jyz,Bq);g.C=jyz.prototype;g.C.init=function(M,f,A){var Q=this;Bq.prototype.init.call(this,M,f,A);f.questionText&&rs0(this,f.questionText);f.answers&&f.answers.forEach(function(N,Y){g.b(N,VT)&&uuz(Q,g.b(N,VT),A,Y)}); this.G=new Set(this.Z.map(function(N){return N.K.K})); (M=f.noneOfTheAbove)&&(M=g.b(M,tE6))&&$gf(this,M,A);f.surveyAdQuestionCommon&&POb(this,f.surveyAdQuestionCommon);f.submitEndpoints&&(this.submitEndpoints=f.submitEndpoints);this.J(this.element,"change",this.onChange);this.show()}; g.C.Ep=function(){FIU(this,!1);this.C.Z.subscribe("l",this.H3x,this)}; g.C.onChange=function(M){M.target===this.noneOfTheAbove.button.K?ysd(this):this.G.has(M.target)&&(this.noneOfTheAbove.button.toggleButton(!1),FIU(this,!0))}; g.C.H3x=function(){var M=[],f=this.Z.reduce(function(N,Y,I){var D=Y.toggledLoggingParams;Y.K&&Y.K.isToggled()&&D&&(N.push(D),M.push(I));return N},[]).join("&"),A=this.submitEndpoints.map(function(N){if(!N.loggingUrls)return N; N=g.NV(N);N.loggingUrls=N.loggingUrls.map(function(Y){Y.baseUrl&&(Y.baseUrl=zD(Y.baseUrl,f));return Y}); return N}); if(A){A=g.V(A);for(var Q=A.next();!Q.done;Q=A.next())Q=Q.value,this.layoutId?KE(this.Or,Q,this.layoutId,this.macros):g.jZ(Error("Missing layoutId for multi_select_question."))}this.api.T().V("supports_multi_step_on_desktop")&&this.KJ(M)}; g.C.clear=function(){this.api.T().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.U(ix,Bq);ix.prototype.init=function(M,f,A){var Q=this;Bq.prototype.init.call(this,M,f,A);f.questionText&&rs0(this,f.questionText);f.answers&&f.answers.forEach(function(N,Y){g.b(N,VT)&&uuz(Q,g.b(N,VT),A,Y)}); f.surveyAdQuestionCommon?POb(this,f.surveyAdQuestionCommon):pH(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(f)));this.show()}; ix.prototype.clear=function(){this.api.T().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.U(xv,Uv);xv.prototype.init=function(M,f,A){var Q=this;Uv.prototype.init.call(this,M,f,A);if(this.api.T().V("supports_multi_step_on_desktop")){var N;this.conditioningRules=(N=f.conditioningRules)!=null?N:[];var Y;this.Z=(Y=f.questions)!=null?Y:[];var I;((I=f.questions)==null?0:I.length)&&kTz(this,0)}else(f.questions||[]).forEach(function(D){g.b(D,yB)?efb(Q,g.b(D,yB),A):g.b(D,F1)&&bfd(Q,g.b(D,F1),A)}); this.show()}; xv.prototype.clear=function(){this.api.T().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; xv.prototype.C=function(M){var f=this;if(this.api.T().V("supports_multi_step_on_desktop")){var A;if((A=this.conditioningRules)==null?0:A.length){var Q;if(M.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(N){return N.questionIndex===f.K})==null)g.jZ(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(N){if(N.questionIndex===f.K)switch(N.condition){case "CONDITION_ALL_OF":var Y;if((Y=N.answerIndices)==null?0:Y.every(function(D){return M.includes(D)}))Q=N.nextQuestionIndex; break;case "CONDITION_ANY_OF":var I;if((I=N.answerIndices)==null?0:I.some(function(D){return M.includes(D)}))Q=N.nextQuestionIndex; break;default:g.jZ(Error("Expected specified condition in survey conditioning rules."))}}),Q!=null)kTz(this,Q); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.jZ(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.U(ZY,Uv); ZY.prototype.init=function(M,f,A){var Q=this;Uv.prototype.init.call(this,M,f,A);M=f.timeoutSeconds||0;if(typeof M!=="number"||M<0)g.jZ(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+M));else if(f.timeoutCommands)if(f.text)if(f.ctaButton&&g.b(f.ctaButton,g.kG))if(f.brandImage)if(f.backgroundImage&&g.b(f.backgroundImage,Wr)&&g.b(f.backgroundImage,Wr).landscape){this.layoutId||g.jZ(Error("Missing layoutId for survey interstitial."));WIe(this.interstitial,g.b(f.backgroundImage, Wr).landscape);WIe(this.logoImage,f.brandImage);g.TD(this.text,g.ae(f.text));var N=["ytp-ad-survey-interstitial-action-button"];N.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new jK(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,N);g.d(this,this.actionButton);this.actionButton.pJ(this.Z);this.actionButton.init(tS("button"),g.b(f.ctaButton,g.kG),A);this.actionButton.show();this.K=new R1(this.api,M*1E3);this.K.subscribe("g",function(){Q.transition.hide()}); g.d(this,this.K);this.J(this.element,"click",function(Y){var I=Y.target===Q.interstitial;Y=Q.actionButton.element.contains(Y.target);if(I||Y)if(Q.transition.hide(),I)Q.api.onAdUxClicked(Q.componentType,Q.layoutId)}); this.transition.show(100)}else g.jZ(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.jZ(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.jZ(Error("SurveyTextInterstitialRenderer has no button."));else g.jZ(Error("SurveyTextInterstitialRenderer has no text."));else g.jZ(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; ZY.prototype.clear=function(){this.hide()}; ZY.prototype.show=function(){Ofb(!0);Uv.prototype.show.call(this)}; ZY.prototype.hide=function(){Ofb(!1);Uv.prototype.hide.call(this)};g.U(rj,Q2);g.C=rj.prototype; g.C.init=function(M,f){Q2.prototype.init.call(this,M,f,{});if(f.durationMilliseconds){if(f.durationMilliseconds<0){g.jZ(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+f.durationMilliseconds));return}this.Z=f.durationMilliseconds}else this.Z=this.K.Ls();var A;if((A=f.previewText)==null||!A.text||g.V1(f.previewText.text))g.jZ(Error("No text is returned for AdPreview."));else{this.G=f.previewText;f.previewText.isTemplated||g.TD(this.j,f.previewText.text);var Q; if(((Q=this.api.getVideoData(1))==null?0:Q.QK)&&f.previewImage){var N,Y;(M=((Y=i5(((N=f.previewImage)==null?void 0:N.sources)||[],52,!1))==null?void 0:Y.url)||"")&&M.length?(this.previewImage=new g.Ci({S:"img",Y:"ytp-preview-ad__image",D:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",M),g.d(this,this.previewImage),this.previewImage.pJ(this.element)):g.jZ(Error("Failed to get imageUrl in AdPreview."))}else this.j.classList.add("ytp-preview-ad__text--padding--wide")}}; g.C.clear=function(){this.hide()}; g.C.hide=function(){YZ(this);Q2.prototype.hide.call(this)}; g.C.show=function(){Ni(this);Q2.prototype.show.call(this)}; g.C.vz=function(){this.hide()}; g.C.lS=function(){if(this.K){var M=this.K.getProgressState();if(M!=null&&M.current)if(M=1E3*M.current,M>=this.Z)this.transition.hide();else{var f;if((f=this.G)==null?0:f.isTemplated)if(f=Math.max(0,Math.ceil((this.Z-M)/1E3)),f!==this.C){var A,Q;(M=(A=this.G)==null?void 0:(Q=A.text)==null?void 0:Q.replace("{TIME_REMAINING}",String(f)))&&g.TD(this.j,M);this.C=f}}}};g.U(ux,Uv); ux.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});var A,Q;if((M=((Q=i5(((A=f.image)==null?void 0:A.sources)||[],XNb(f),!0))==null?void 0:Q.url)||"")&&M.length){A=this.H7("ytp-ad-avatar");A.src=M;var N,Y;if(Q=(N=f.interaction)==null?void 0:(Y=N.accessibility)==null?void 0:Y.label)A.alt=Q;switch(f.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(f.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.jZ(Error("Failed to get imageUrl in AdAvatar."))}; ux.prototype.clear=function(){this.hide()}; ux.prototype.onClick=function(M){Uv.prototype.onClick.call(this,M)};g.U(z6,Uv); z6.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});var A;M=(A=f.label)==null?void 0:A.content;if((A=M!=null&&!g.V1(M))||f.iconImage){A&&(this.buttonText=new g.Ci({S:"span",Y:"ytp-ad-button-vm__text",Ix:M}),g.d(this,this.buttonText),this.buttonText.pJ(this.element));var Q,N,Y=((Q=f.interaction)==null?0:(N=Q.accessibility)==null?0:N.label)||A?M:"";Y&&G3(this.element,Y+" This link opens in new tab");Ok(this.element);if(f.iconImage){Q=void 0;if(f.iconImage){a:{N=f.iconImage;if(N.sources)for(N= g.V(N.sources),M=N.next();!M.done;M=N.next())if(M=M.value,Y=void 0,(Y=M.clientResource)==null?0:Y.imageName){N=M;break a}N=void 0}if(N){var I;Q={iconType:(I=N.clientResource)==null?void 0:I.imageName}}}I=ni(Q,!1,this.Z);I!=null&&(this.buttonIcon=new g.Ci({S:"span",Y:"ytp-ad-button-vm__icon",L:[I]}),g.d(this,this.buttonIcon),f.iconLeading?(NQ(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):A?(this.buttonIcon.pJ(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.pJ(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(f.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.K?"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(f.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.$b(Error("AdButton does not have label or an icon."))}; z6.prototype.clear=function(){this.hide()}; z6.prototype.onClick=function(M){Uv.prototype.onClick.call(this,M)};g.U(Jst,Q2);g.C=Jst.prototype; g.C.init=function(M,f){Q2.prototype.init.call(this,M,f,{});this.api.T().V("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.H7("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"),NQ(this.H7("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(M=g.b(f.avatar,bx)){var A=f.headline;if(A){var Q=f.description;if(Q){var N=g.b(f.button,Wq);N?(this.adAvatar.init(tS("ad-avatar"),M),this.headline.init(tS("ad-simple-attributed-string"),new rA(A)),this.description.init(tS("ad-simple-attributed-string"),new rA(Q)),A.content&&A.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(tS("ad-button"),N),this.startMilliseconds=f.startMs||0,this.api.j5()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Ap.bind(this)),Ni(this)):g.jZ(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jZ(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jZ(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jZ(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.C.lS=function(){if(this.K){var M=this.K.getProgressState();M&&M.current&&1E3*M.current>=this.startMilliseconds&&(YZ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.C.vz=function(){this.clear()}; g.C.onClick=function(M){this.api.pauseVideo();Q2.prototype.onClick.call(this,M)}; g.C.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ap.bind(this))}; g.C.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Q2.prototype.show.call(this)}; g.C.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Q2.prototype.hide.call(this)}; g.C.Ap=function(M){M==="hidden"?this.show():this.hide()};g.U(Pq,Uv);g.C=Pq.prototype; g.C.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(!f.label||g.V1(f.label))g.jZ(Error("No label is returned for SkipAdButton."));else if(g.TD(this.C,f.label),M=ni({iconType:"SKIP_NEXT_NEW"}),M==null)g.jZ(Error("Unable to retrieve icon for SkipAdButton"));else if(this.j=new g.Ci({S:"span",Y:"ytp-skip-ad-button__icon",L:[M]}),g.d(this,this.j),this.j.pJ(this.element),this.api.T().experiments.X3("enable_skip_to_next_messaging")&&(f=g.a9(f.targetId)))this.Z=!0,this.element.setAttribute("data-tooltip-target-id",f), this.element.setAttribute("data-tooltip-target-fixed","")}; g.C.onClick=function(M){M&&M.preventDefault();var f,A;QVT(M,{contentCpn:(A=(f=this.api.getVideoData(1))==null?void 0:f.clientPlaybackNonce)!=null?A:""})===0?this.api.T0("onAbnormalityDetected"):(Uv.prototype.onClick.call(this,M),this.api.T0("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.C.clear=function(){this.K.reset();this.hide()}; g.C.hide=function(){Uv.prototype.hide.call(this)}; g.C.show=function(){this.K.start();Uv.prototype.show.call(this);this.Z&&this.api.T().experiments.X3("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.U(KIU,Q2);g.C=KIU.prototype; g.C.init=function(M,f){Q2.prototype.init.call(this,M,f,{});M=g.b(f.preskipState,mVW);var A;if((A=this.api.getVideoData())==null?0:A.isDaiEnabled()){if(!M){g.jZ(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.Z=new rj(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.K);g.d(this,this.Z);this.Z.pJ(this.element);var Q;(Q=this.Z)==null||Q.init(tS("preview-ad"),M);(A=this.Z)!=null&&(A.transition.show(100),A.show())}(A=g.b(f.skippableState,c2w))?(f.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=f.skipOffsetMilliseconds:(g.$b(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.j.init(tS("skip-button"),A),this.show()):g.jZ(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.C.show=function(){Ni(this);Q2.prototype.show.call(this)}; g.C.hide=function(){!this.isSkippable&&this.Z?this.Z.hide():this.j&&this.j.hide();YZ(this);Q2.prototype.hide.call(this)}; g.C.clear=function(){var M;(M=this.Z)==null||M.clear();this.j&&this.j.clear();YZ(this);Q2.prototype.hide.call(this)}; g.C.vz=function(){this.hide()}; g.C.lS=function(){if(1E3*this.K.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var M;(M=this.Z)!=null&&M.transition.hide();(M=this.j)!=null&&(M.transition.show(),M.show())}};g.U(nT,Uv); nT.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(f.label){var A;((A=f.label)==null?0:A.content)&&!g.V1(f.label.content)&&(this.linkText=new g.Ci({S:"span",Y:"ytp-visit-advertiser-link__text",Ix:f.label.content}),g.d(this,this.linkText),this.linkText.pJ(this.element));var Q,N;if((Q=f.interaction)==null?0:(N=Q.accessibility)==null?0:N.label)G3(this.element,f.interaction.accessibility.label+" This link opens in new tab");else{var Y;((Y=f.label)==null?0:Y.content)&&!g.V1(f.label.content)&&G3(this.element, f.label.content+" This link opens in new tab")}Ok(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.jZ(Error("No label found in VisitAdvertiserLink."))}; nT.prototype.onClick=function(M){Uv.prototype.onClick.call(this,M);this.api.onAdUxClicked(this.componentType,this.layoutId)}; nT.prototype.clear=function(){this.hide()};g.U(je,Uv); je.prototype.init=function(M,f,A,Q){Uv.prototype.init.call(this,M,f,{});if(f.skipOrPreview){A=f.skipOrPreview;M=g.b(A,RZ0);A=g.b(A,mVW);if(M)this.bb=new KIU(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.Z),g.d(this,this.bb),this.bb.pJ(this.B),this.bb.init(tS("skip-ad"),M);else{var N;A&&((N=this.api.getVideoData())==null?0:N.isDaiEnabled())&&(this.C=new rj(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.Z,1),g.d(this,this.C),this.C.pJ(this.B),this.C.init(tS("ad-preview"), A),N=this.C,N.transition.show(100),N.show())}if(N=g.b(f.skipOrPreview,RZ0))var Y=N.skipOffsetMilliseconds}f.playerAdCard&&(N=g.b(f.playerAdCard,sXB))&&(this.playerAdCard=new Jst(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.Z),g.d(this,this.playerAdCard),this.playerAdCard.pJ(this.z0),this.playerAdCard.init(tS("ad-avatar-lockup-card"),N));f.adBadgeRenderer&&((N=g.b(f.adBadgeRenderer,kv))?(this.j=new z_(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!0),g.d(this, this.j),this.j.pJ(this.K),this.j.init(tS("ad-badge"),N)):g.jZ(Error("AdBadgeViewModel is not found in player overlay layout.")));f.adPodIndex&&(N=g.b(f.adPodIndex,VEe))&&(this.adPodIndex=new P2(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.adPodIndex),this.adPodIndex.pJ(this.K),this.adPodIndex.init(tS("ad-pod-index"),N));f.adInfoRenderer&&((N=g.b(f.adInfoRenderer,eP))?(this.adInfoButton=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.element, void 0,!0),g.d(this,this.adInfoButton),this.j!==void 0?this.K.insertBefore(this.adInfoButton.element,this.j.element.nextSibling):this.adInfoButton.pJ(this.K),this.adInfoButton.init(tS("ad-info-hover-text-button"),N,this.macros)):g.$b(Error("AdInfoRenderer is not found in player overlay layout.")));var I;N=(I=this.api.getVideoData())==null?void 0:I.isDaiEnabled();f.adDurationRemaining&&N&&(I=g.b(f.adDurationRemaining,DVm))&&(this.adDurationRemaining=new xZ(this.api,this.layoutId,this.interactionLoggingClientData, this.Or,this.Z,Q.videoAdDurationSeconds,!0),g.d(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.K.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.pJ(this.K),this.adDurationRemaining.init(tS("ad-duration-remaining"),I,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));f.visitAdvertiserLink&&(Q=g.b(f.visitAdvertiserLink,BeW))&&(this.visitAdvertiserLink=new nT(this.api,this.layoutId, this.interactionLoggingClientData,this.Or),g.d(this,this.visitAdvertiserLink),this.visitAdvertiserLink.pJ(this.K),this.visitAdvertiserLink.init(tS("visit-advertiser-link"),Q));f.adDisclosureBanner&&(f=g.b(f.adDisclosureBanner,UVR))&&(this.adDisclosureBanner=new nJ(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.adDisclosureBanner),this.adDisclosureBanner.pJ(this.KJ),this.adDisclosureBanner.init(tS("ad-disclosure-banner"),f));this.G=new FV(this.api,this.Z,Y,!0);g.d(this, this.G);g.$X(this.api,this.G.element,4);this.show()}; je.prototype.clear=function(){this.hide()};g.U(GT6,Uv);g.C=GT6.prototype; g.C.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(f!=null&&f.title)if(M=f.title)if(this.headline.init(tS("ad-simple-attributed-string"),new rA(M)),M=g.b(f.moreInfoButton,Wq)){if(this.moreInfoButton.init(tS("ad-button"),M),f.descriptions)f.descriptions.length>0&&(M=f.descriptions[0])&&(this.K=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.K),this.K.pJ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.K.init(tS("ad-simple-attributed-string"), new rA(M))),f.descriptions.length>1&&(f=f.descriptions[1])&&(this.Z=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.Z),this.Z.pJ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.Z.init(tS("ad-simple-attributed-string"),new rA(f)))}else g.jZ(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.jZ(Error("No headline found in AdGridCardText."));else g.jZ(Error("No headline found in AdGridCardText."))}; g.C.onClick=function(M){Uv.prototype.onClick.call(this,M);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.C.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var M;(M=this.K)==null||M.clear();var f;(f=this.Z)==null||f.clear()}; g.C.hide=function(){this.headline.hide();this.moreInfoButton.hide();var M;(M=this.K)==null||M.hide();var f;(f=this.Z)==null||f.hide();Uv.prototype.hide.call(this)}; g.C.show=function(){Uv.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var M;(M=this.K)==null||M.show();var f;(f=this.Z)==null||f.show()};g.U($v,Uv);$v.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(f!=null&&f.gridCards)if(f.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.jZ(Error("Only single column style is currently supported in AdGridCardCollection."));else for(M=g.V(f.gridCards),f=M.next();!f.done;f=M.next()){if(f=g.b(f.value,Hx7)){var A=new GT6(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,A);A.pJ(this.element);A.init(tS("ad-grid-card-text"),f);this.K.push(A)}}else g.jZ(Error("No grid cards found in AdGridCardCollection."))}; $v.prototype.show=function(){for(var M=g.V(this.K),f=M.next();!f.done;f=M.next())f.value.show();Uv.prototype.show.call(this)}; $v.prototype.clear=function(){this.hide();for(var M=g.V(this.K),f=M.next();!f.done;f=M.next())f.value.clear()}; $v.prototype.hide=function(){for(var M=g.V(this.K),f=M.next();!f.done;f=M.next())f.value.hide();Uv.prototype.hide.call(this)};g.U(FZ,Q2);g.C=FZ.prototype;g.C.init=function(M,f,A,Q,N){N=N===void 0?0:N;Q2.prototype.init.call(this,M,f,A,Q);this.playerProgressOffsetMs=N;Ni(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.wr.bind(this));this.api.addEventListener("resize",this.fB.bind(this));this.api.j5()?(this.Z=!0,this.api.wR(!0),this.show()):this.hide()}; g.C.lS=function(){if(this.K){var M=this.K.getProgressState();M&&M.current&&!this.Z&&1E3*M.current>=this.playerProgressOffsetMs&&(this.Z=!0,this.api.wR(!0),this.show())}}; g.C.vz=function(){this.Z&&this.api.wR(!1);this.hide()}; g.C.clear=function(){this.api.wR(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.wr.bind(this));this.api.removeEventListener("resize",this.fB.bind(this));YZ(this);this.hide()}; g.C.hide=function(){wN9(!1);Q2.prototype.hide.call(this)}; g.C.show=function(){wN9(!0);Q2.prototype.show.call(this)};g.U(l39,FZ);g.C=l39.prototype; g.C.init=function(M,f,A,Q){if(f!=null&&f.adGridCardCollection)if(f!=null&&f.adButton){var N=Number(f.playerProgressOffsetMs||"0");isNaN(N)?FZ.prototype.init.call(this,M,f,A,Q):FZ.prototype.init.call(this,M,f,A,Q,N);M=f.headline;A=g.b(f.adAvatar,bx);M&&A?(this.headline=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.headline),this.headline.pJ(this.H7("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(tS("ad-simple-attributed-string"),new rA(M)), this.adAvatar=new ux(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.adAvatar),this.adAvatar.pJ(this.H7("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(tS("ad-avatar"),A)):this.C.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");M=g.b(f.adGridCardCollection,qIB);this.adGridCardCollection.init(tS("ad-grid-card-collection"),M);f=g.b(f.adButton,Wq);this.adButton.init(tS("ad-button"),f); this.hide()}else g.jZ(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.jZ(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.C.onClick=function(M){(this.adButton&&g.IH(this.adButton.element,M.target)||this.adAvatar&&g.IH(this.adAvatar.element,M.target))&&this.api.pauseVideo();FZ.prototype.onClick.call(this,M);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.C.fB=function(){}; g.C.clear=function(){this.hide();var M;(M=this.headline)==null||M.clear();var f;(f=this.adAvatar)==null||f.clear();this.adGridCardCollection.clear();this.adButton.clear();FZ.prototype.clear.call(this)}; g.C.show=function(){var M;(M=this.headline)==null||M.show();var f;(f=this.adAvatar)==null||f.show();this.adGridCardCollection.show();this.adButton.show();FZ.prototype.show.call(this)}; g.C.hide=function(){var M;(M=this.headline)==null||M.hide();var f;(f=this.adAvatar)==null||f.hide();this.adGridCardCollection.hide();this.adButton.hide();FZ.prototype.hide.call(this)}; g.C.wr=function(M){M==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):M==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):M==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};g.U(yy,Uv); yy.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(f.attributes===void 0)g.jZ(Error("No attributes found in AdDetailsLineViewModel."));else if(f.style===void 0)g.jZ(Error("No style found in AdDetailsLineViewModel."));else{M=g.V(f.attributes);for(var A=M.next();!A.done;A=M.next())if(A=A.value,A.text!==void 0){A=A.text;var Q=f.style,N=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,N);N.pJ(this.element);a:switch(Q){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":Q="ytp-ad-details-line__text--style-responsive"; break a;default:Q="ytp-ad-details-line__text--style-standard"}N.element.classList.add(Q);N.init(tS("ad-simple-attributed-string"),new rA(A));this.K.push(N)}this.show()}}; yy.prototype.show=function(){this.K.forEach(function(M){M.show()}); Uv.prototype.show.call(this)}; yy.prototype.clear=function(){this.hide()}; yy.prototype.hide=function(){this.K.forEach(function(M){M.hide()}); Uv.prototype.hide.call(this)};g.U(dj,Uv);dj.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});var A,Q;(M=((Q=i5(((A=f.image)==null?void 0:A.sources)||[]))==null?void 0:Q.url)||"")&&M.length?(A=this.H7("ytp-image-background-image"),g.ji(A,"backgroundImage","url("+M+")"),f.blurLevel!==void 0&&g.ji(A,"filter","blur("+f.blurLevel+"px)"),f.gradient!==void 0&&(f=new g.O({S:"div",Ai:["ytp-image-background--gradient-vertical"]}),g.d(this,f),f.pJ(this.element)),this.show()):g.jZ(Error("Failed to get imageUrl in ImageBackground."))}; dj.prototype.clear=function(){this.hide()};g.U(MNm,Q2);g.C=MNm.prototype;g.C.init=function(M,f){Q2.prototype.init.call(this,M,f,{});g.ji(this.j,"stroke-dasharray","0 "+this.Z);this.show()}; g.C.clear=function(){this.hide()}; g.C.hide=function(){YZ(this);Q2.prototype.hide.call(this)}; g.C.show=function(){Ni(this);Q2.prototype.show.call(this)}; g.C.vz=function(){this.hide()}; g.C.lS=function(){if(this.K){var M=this.K.getProgressState();M!=null&&M.current!=null&&g.ji(this.j,"stroke-dasharray",M.current/M.seekableEnd*this.Z+" "+this.Z)}};g.U(ee,Uv); ee.prototype.init=function(M,f){Uv.prototype.init.call(this,M,f,{});if(AbW(f)){this.adAvatar=new ux(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.adAvatar);this.adAvatar.pJ(this.H7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(tS("ad-avatar"),g.b(f.adAvatar,bx));this.headline=new uM(this.api,this.layoutId,this.interactionLoggingClientData,this.Or);g.d(this,this.headline);this.headline.pJ(this.H7("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(tS("ad-simple-attributed-string"),new rA(f.headline));if(M=g.b(f.adDetailsLine,CQR))this.detailsLine=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.detailsLine),this.detailsLine.pJ(this.H7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(tS("ad-details-line"),M);this.adButton=new z6(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!0);g.d(this,this.adButton); this.adButton.pJ(this.H7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(tS("ad-button"),g.b(f.adButton,Wq));this.adBadge=new z_(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,!0);g.d(this,this.adBadge);this.adBadge.pJ(this.C);this.adBadge.init(tS("ad-badge"),g.b(f.adBadge,kv));this.adInfoButton=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.element,void 0,!0);g.d(this,this.adInfoButton);this.adInfoButton.pJ(this.C); this.adInfoButton.init(tS("ad-info-hover-text-button"),g.b(f.adInfoRenderer,eP),this.macros);if(M=g.b(f.skipAdButton,c2w))this.skipAdButton=new Pq(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.skipAdButton),this.skipAdButton.pJ(this.element),this.skipAdButton.init(tS("skip-button"),M);this.Z=new gA(f.durationMilliseconds);g.d(this,this.Z);if(M=g.b(f.countdownViewModel,g1v))this.K=new MNm(this.api,this.layoutId,this.interactionLoggingClientData,this.Or,this.Z),g.d(this, this.K),this.K.pJ(this.H7("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.K.init(tS("timed-pie-countdown"),M);if(f=g.b(f.imageBackground,aLW))this.imageBackground=new dj(this.api,this.layoutId,this.interactionLoggingClientData,this.Or),g.d(this,this.imageBackground),this.imageBackground.pJ(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(tS("image-background"), f);this.show();this.element.focus()}}; ee.prototype.clear=function(){g.u$(this.j);this.hide()}; ee.prototype.show=function(){fUC(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Uv.prototype.show.call(this)}; ee.prototype.hide=function(){fUC(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.K&&this.K.hide();this.imageBackground&&this.imageBackground.hide();Uv.prototype.hide.call(this)};g.U(O2,g.pi);g.C=O2.prototype;g.C.Ls=function(){return 1E3*this.api.getDuration(this.e4,!1)}; g.C.stop=function(){this.K&&this.DK.Hv(this.K)}; g.C.z_=function(){var M=this.api.getProgressState(this.e4);this.Z={seekableStart:M.seekableStart,seekableEnd:M.seekableEnd,current:this.api.getCurrentTime(this.e4,!1)};this.publish("h")}; g.C.getProgressState=function(){return this.Z}; g.C.DD=function(M){g.V2(M,2)&&this.publish("g")};var MaB="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.U(XZ,JS); XZ.prototype.C=function(M){var f=M.id,A=M.content,Q=A.componentType;if(!MaB.includes(Q))switch(M.actionType){case 1:M=this.api;var N=this.Or,Y=A.layoutId,I=A.interactionLoggingClientData,D=A instanceof wM?A.I1:!1,E=A instanceof wM||A instanceof c2?A.pR:!1;I=I===void 0?{}:I;D=D===void 0?!1:D;E=E===void 0?!1:E;switch(Q){case "invideo-overlay":M=new V5T(M,Y,I,N);break;case "player-overlay":M=new y2(M,Y,I,N,new O2(M),E);break;case "player-overlay-layout":M=new je(M,Y,I,N,new O2(M));break;case "survey":M= new xv(M,Y,I,N);break;case "ad-action-interstitial":M=new STD(M,Y,I,N,D,E);break;case "video-interstitial-buttoned-centered":M=new ee(M,Y,I,N);break;case "survey-interstitial":M=new ZY(M,Y,I,N);break;case "ad-message":M=new gPd(M,Y,I,N,new O2(M,1));break;case "player-underlay":M=new iff(M,Y,I,N);break;case "display-underlay-text-grid-cards":M=new l39(M,Y,I,N,new O2(M));break;default:M=null}if(!M){g.$b(Error("No UI component returned from ComponentFactory for type: "+Q));break}g.GC(this.Z,f)?g.$b(Error("Ad UI component already registered: "+ f)):this.Z[f]=M;M.bind(A);A instanceof Kh?this.j?this.j.append(M.Vc):g.$b(Error("Underlay view was not created but UnderlayRenderer was created")):this.N.append(M.Vc);break;case 2:f=Qfv(this,M);if(f==null)break;f.bind(A);break;case 3:A=Qfv(this,M),A!=null&&(g.hW(A),g.GC(this.Z,f)?(A=this.Z,f in A&&delete A[f]):g.$b(Error("Ad UI component does not exist: "+f)))}}; XZ.prototype.u8=function(){g.Sy(Object.values(this.Z));this.Z={};JS.prototype.u8.call(this)};g.U(NDW,g.CV);g.C=NDW.prototype;g.C.create=function(){try{Y0w(this),this.load(),this.created=!0,Y0w(this)}catch(M){o1(M instanceof Error?M:String(M))}}; g.C.load=function(){try{Dcv(this)}finally{wC(Hq(this.K).Sv)&&this.player.uM("ad",1)}}; g.C.destroy=function(){var M=this.player.getVideoData(1);this.K.K.oC.VM(M&&M.clientPlaybackNonce||"");this.unload();this.created=!1}; g.C.unload=function(){g.CV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(f){o1(f instanceof Error?f:String(f))}if(this.Z!=null){var M=this.Z;this.Z=null;M.dispose()}this.j.reset()}; g.C.Tv=function(){return!1}; g.C.getAdState=function(){return-1}; g.C.getOptions=function(){return Object.values(l8m)}; g.C.dc=function(M,f){f=f===void 0?{}:f;switch(M){case "replaceUrlMacros":return M=f,M.url?(f=mA6(this.player),Object.assign(f,M.g9i),M=g.z3(M.url,f)):M=null,M;case "onAboutThisAdPopupClosed":this.pF(f);break;case "executeCommand":M=f;M.command&&M.layoutId&&this.executeCommand(M);break;default:return null}}; g.C.Sl=function(M){var f;return!((f=this.K.K.Xn)==null||!f.get().Sl(M))}; g.C.pF=function(M){M.isMuted&&q9U(Hq(this.K).vB,Hq(this.K).KZ,M.layoutId);this.Be&&this.Be.pF()}; g.C.executeCommand=function(M){Hq(this.K).Or.executeCommand(M.command,M.layoutId)};g.Gz("yt.player.Application.create",g.oO.create);g.Gz("yt.player.Application.createAlternate",g.oO.create);y0T(uH(),wPv);var fPc=g.wD("ytcsi.tick");fPc&&fPc("pe");g.oW("ad",NDW);g.U(g.G6,g.y);g.G6.prototype.start=function(M,f,A){this.config={from:M,to:f,duration:A,startTime:(0,g.W)()};this.next()}; g.G6.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.G6.prototype.next=function(){if(this.config){var M=this.config,f=M.from,A=M.to,Q=M.duration;M=M.startTime;var N=(0,g.W)()-M;M=this.K;Q=XWt(M,N/Q);if(Q==0)M=M.W;else if(Q==1)M=M.X;else{N=Ze(M.W,M.N,Q);var Y=Ze(M.N,M.G,Q);M=Ze(M.G,M.X,Q);N=Ze(N,Y,Q);Y=Ze(Y,M,Q);M=Ze(N,Y,Q)}M=g.ih(M,0,1);this.callback(f+(A-f)*M);M<1&&this.delay.start()}};g.U(g.wj,g.O);g.C=g.wj.prototype;g.C.hasSuggestions=function(){return this.suggestionData.length>0}; g.C.xT=function(){this.Z&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.C.show=function(){g.O.prototype.show.call(this);S0B(this)}; g.C.B$=function(){this.Z&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.C.G3=function(){this.Tt(this.api.ax().getPlayerSize())}; g.C.Tt=function(M){var f=this.api.isEmbedsShortsMode()?.5625:16/9,A=this.api.SV();M=M.width-(A?112:58);A=Math.ceil(M/(A?320:192));var Q=(M-A*8)/A;f=Math.floor(Q/f);for(var N=g.V(this.K),Y=N.next();!Y.done;Y=N.next())Y=Y.value.H7("ytp-suggestion-image"),Y.style.width=Q+"px",Y.style.height=f+"px";this.suggestions.element.style.height=f+"px";this.C=Q;this.X=f;this.containerWidth=M;this.columns=A;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.lx(this)}; g.C.onVideoDataChange=function(){var M=this.api.T(),f=g.F(this.api.getVideoData());this.G=f.XR?!1:M.C;this.suggestionData=f.suggestions?g.Pw(f.suggestions,function(A){return A&&!A.playlistId}):[]; o99(this);f.XR?this.title.update({title:g.aC("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:f.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.C.scrollTo=function(M){M=g.ih(M,this.containerWidth-this.suggestionData.length*(this.C+8),0);this.W.start(this.scrollPosition,M,1E3);this.scrollPosition=M;g.lx(this);S0B(this)};})(_yt_player);