ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //tmp/ead8795b3906ab8cb2cc165ad7d43ba0_v3
O:13:"Curl\Response":4:{s:6:"status";i:200;s:4:"body";s:2535242:"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 N3,N_H,yn_,YJ,w5F,An0,JnF,T_P,lE,p59,FH,oP,bE,CE5,rn9,$3E,IP,zs,Y9F,MM_,l1J,FF3,D1,V0,fM,tn,uE,q3,S9s,Z1,Q0,mF,bM_,h50,cnJ,NM,w5,ks3,B_P,Cq,r5,$w,PEM,d30,I1n,vJP,z5J,iME,D31,gJ1,FF,VME,ow,f1F,ZM0,b_,x3s,jPP,c_,nJn,P_,Iw,VT,fq,tV,u_,QPF,m39,qM,xw,ZZ,HMM,KF_,WFF,OM0,nq,R50,QT,mf,H_,GsM,U3M,W_,sPJ,a1M,yh,eX5,JO,N5P,yVM,AO,w_5,Ews,AVs,Fo,T50,p__,lZn,hO,M01,rV9,SkM,bqM,cV_,kR,Bm,Pm,IN,dr,B5F,P_n,vm,z7,gr,Vh,zXH,ff,tO,u7,qd,iqM,jE,nf,mW,Hm,Wm,fZs,G7,aN,Ng,t0F,e4,uFJ,qk_,yF,US,wa,Er,ZqF,
AK,JK,jw0,pm,Cm,ra,Qw3,bc,mMn,HqH,Kf5,nw_,oF,lc,$b,WfF,OqE,GwM,UM9,LfE,cW,kb,BW,sw3,aZE,PW,wm_,Tr9,ej9,AO5,ERF,yO5,NrH,JO9,pmH,C75,da,$dJ,vW,rOH,ME9,Dd,ic,lyJ,fm,tK,qg,uc,j4,xb,WW,nm,mC,HW,SSH,RF,oRM,Gy,Ur,en,Nq,yH,Lm,aF,sr,EW,AQ,Tx,bfE,Ek,JQ,pB,QF,Km,rP,cO9,$f,Tw,Yf,Mq,lV,FX,Sn,oL,bV,k7_,hQ,BrH,cy,XmM,XX,By,Py,dP,IL,vy,zx,P79,Iy9,D8,vR9,zj1,gP,VH,uV,DdF,qq,gRs,Z8,fyM,xf,uo5,jn,nB,QH,qS9,mD,Zf9,Hy,xdH,jN0,KB,nRM,Wy,OW,Gx,UW,md9,aL,WW_,QNP,e$,yZ,wG,RjM,EK,TJ,G7M,LWJ,sN5,Jt,py,Cy,rG,$x,Yx,Mm,efn,Nas,
yKP,wW0,lx,EbJ,AK_,FZ,S$,oA,bx,TaE,rK_,$gP,M4F,Yr_,lds,SrF,BP,XZ,PP,dG,IA,zJ,ix,cK5,gG,fy,tt,ux,Zs,xx,kyM,j$,ny,mr,XW0,Pc_,HP,WP,OK,GJ,UK,sK,aA,V43,fds,t45,utJ,eU,NP,qr9,ZmH,xg5,yM,wi,EA,Aa,TM,C9,$Y,SU,ha,jF5,nbE,IB,QF9,ta,u8,KC1,UgJ,RfP,sF5,xY,jU,OA,NPJ,wyH,yQ1,GM,L9,Ef9,UA,yp,ZA,TPM,AQn,JL,TN,qP,pg,Cg,rs,JQ1,$v,CV5,lQ,rQM,FS,Sv,oC,bQ,$qM,YWP,MnH,cC,l8M,FDs,SWH,PC,ofF,bBE,hA3,kxH,cQH,XS,ds,IC,BPF,XyM,PV9,vC,dqM,zN,pW5,JK0,iQ,DH,Vp,fg,zAJ,tL,uQ,ZH,iBF,DqP,xv,uXs,Ox,Vn3,tn_,Kg,HC,Lg,sx,qWM,yb,ZB0,
wR,E0,xqn,nfE,pY,mqJ,rR,$T,HB9,KD1,FK,oD,GxM,LD5,sLs,ho,a8J,bB,wP1,M0,OB5,ya0,ytH,eS0,NG9,w4_,NiF,cc,Uqn,XK,AaJ,TiJ,Jan,p4n,C8s,dR,raM,vc,$P_,lAM,Fcs,z8,iB,D9,q0,oY5,Z9,xT,j9,b9J,hmF,mV,caM,Hc,KY,X45,dPE,vY0,IAH,zm_,O0,U0,et,yX,wq,E5,Af,Ta,gY5,VUF,Jf,fAM,pw,Cw,Nv,rq,$s,Ys,tUH,AV,Mv,uw5,Fa,St,xPJ,o7,bq,hf,jBn,nYP,QB_,mPJ,cn,ks,Bn,Xa,O90,Wc_,Rm0,GMM,UP5,Pn,LcM,H9P,dq,sBE,aA9,I7,Nss,yL1,wCn,EvP,ALP,za,TsM,JL9,pCs,CQP,Yx_,rL9,DV,gq,VX,fw,tf,uq,qv,ZV,lHH,QX,nw,jt,mG,F_M,Hn,Sx3,ovM,bg3,hR0,Kw,O5,BsM,Wn,
XCF,R7,PQ_,Ga,U5,Lw,s5,a7,ee,igM,d8n,EJ,zRJ,Ah,vvn,wS,Nk,IHn,yP,Jh,gv9,Cc,pc,lX,FL,ok,tvn,Se,cN,uSM,ku,VvM,x80,jCH,nvJ,PN,dS,Ik,QC3,vN,z3,iX,D7,m8M,gS,uX,qk,Hg5,K_J,Z7,W_P,U85,GNH,L_3,sCH,aHM,OgJ,NR1,xu,je,nc,yoM,mM,QP,wcP,ET0,AoM,OJ,TRM,Rk,G3,Jo1,UJ,CBF,Lc,pc_,ro_,$0s,Y0M,sJ,ak,eb,NL,y1,wn,E7,M9s,Ar,T0,Jr,l93,S09,oT0,Co,$n,rn,ML,lM,FR,htn,co5,Sb,op,bM,BR3,Xc5,I9J,PBF,vT5,gTP,hr,D0_,ztE,cQ,kn,V9n,BQ,f9n,PQ,uKn,t9H,q0s,ZYP,z0,iM,x0P,jDJ,nT9,D5,gn,QDF,V1,m05,HYE,WV_,U05,fo,LVH,sDn,a9_,eO_,NqP,qL,yfM,
wnJ,Es5,HQ,mR,Q1,AfF,Tq5,Jfs,Ko,WQ,O7,CqH,s7,ap,e2,NW,yC,wm,$v1,Y55,Mt1,Eb,CK,rm,lG,F0,bG,FGE,osn,S5J,bwP,hOM,zu,cfP,kan,iG,Bq_,XnP,PqH,dv3,fK,gm,tp,uG,qW,IV9,vs0,zO9,ZR,x0,iwF,j2,Dvn,gsF,Vt3,nK,fV5,QC,mw,tt9,uaM,q51,Zws,xvM,j70,He,KK,We,Rd,mv0,Gu,Ub,Hws,Q7J,Ob,KGM,LK,sb,ad,Ne,eg,WGn,Ow_,RO1,yn,UvJ,w6,s7_,aV5,e1P,NS5,yhn,wNJ,EuM,Ah0,Te,Jq,pG,Jh_,TS9,pNM,CXH,r6,rh5,$V,$ks,YJs,YV,Me,l6,MeM,FA,Sg,l7_,oZ,b6,hq,cf,kV,Bf,XA,Pf,FM9,SJ5,ouJ,bcF,d6,h1E,k3_,chn,vf,ze,XNn,BS1,I7J,ic_,z1M,i6,Dk5,guP,Ve9,te5,
f7E,uLJ,Df,qJJ,Zc_,Vn,xkM,jkH,nu1,Qks,fG,mkH,tq,HcM,u6,qe,WM5,Zf,Ocs,xV,jg,R15,G3P,nG,mi,LM9,Hf,Uk_,sk9,a7M,eE3,yrH,KG,wQ_,RZ,Ge,Ars,Tn3,CME,rr5,Uo,LG,so,aZ,ea,NH,yx,wN,EH,A7,T1,J7,pk,l5M,MbM,FR3,on_,S70,hEF,Y73,boH,$LP,Ck,rN,k00,BnJ,XQE,lf,Fb,Sa,$D,dLn,o1,crH,vn5,zEs,I5J,bf,h7,cB,kD,io5,PM0,DLs,BB,gn5,VbH,f5E,tb5,uR_,xLM,jpn,nn1,QpM,dN,HoF,KRP,OoP,REn,DS,ULJ,gN,z1,spM,LRJ,NmM,fk,uf,weM,E0H,Ap0,Tm_,peM,xD,ZS,CGs,JpM,$W1,M2F,lRP,Sb1,kuE,HB,Bm0,mI,WB,Xe0,OH,G1,sH,PGE,dW5,IR1,A4,v01,zG5,ln,iKM,g0H,FM,
V2E,fRJ,xW3,t2H,h4,cD,k1,XM,PD,HKn,de,Ir,vD,Ww1,ge,OKM,RGM,VE,UWH,t4,un,qA,Z6,Lw5,x1,ni,QE,m7,HD,sdn,WD,O2,Rr,GY,U2,Li,aRF,exE,N69,yq1,wfJ,EVs,s2,Aq1,AT,T61,Jq5,pfP,Tz,pb,Cb,rx,My,lg,Fg,rq5,bg,hT,cz,$eM,YoP,kr,Mg5,lfJ,Xg,B6H,XfF,P6F,Pz,deE,IfM,iG0,IG,gVH,Des,zz,ffM,tgH,uAM,DO,gx,qoJ,V2,fb,tT,ug,qy,ZO,xr,jC,nb,Q2,Kb,Wz,Oa,RG,ZG5,xe_,jZ0,Ua,sa,nV_,yN,w2,E8,AE,Tk,pp,Cp,Ki0,r2,$3,Y3,OGE,Wi5,QZH,Fj,l4,LiM,SH,d2,BL,Iy,vL,afM,y7n,i4,A7E,wBE,ED0,J73,YH3,pBE,r7H,$HM,g2,DJ,Ma9,fp,tE,u4,lSn,QN,FI1,mH,HL,WL,
SH3,Ry,Gk,oDs,U8,Lp,hhs,eu,yf,w9,EF,A2,Th,J2,pO,CO,r9,k1n,$h,lY,MI,XB9,vD1,dH0,ISJ,zhn,ik5,gDE,VaE,DHM,taP,oz,bY,kh,ubn,qH1,cE,BE,xH5,j1n,HkP,mH1,Iz,vE,zh,iY,Dw,Vf,WI5,OkM,Rh5,ju,nO,G1F,UH5,LIP,WE,OF,Rz,s1_,aS5,NeJ,wD3,sF,E10,N7,az,Em,Ag,Jg,A4E,lC,F6,S1,ov,hg,cV,BV,r4J,$AM,PV,Y2F,M6M,Iv,l6P,F73,vV,zv,S2s,o10,hTF,VK,kY0,BeF,Dm,XD3,Pn1,I65,dAH,q7,c4M,zT0,iiE,m1,nl,DA1,g11,HV,Kl,V6_,f6H,Rv,t6P,uM5,q2P,ZiE,av,xAn,jrJ,n15,QrH,mAF,Hi9,K73,W7M,N9,OiE,wo,GY1,UAH,L7n,srJ,a69,EE,ro,NxE,Ern,$p,AT5,JTE,e89,pzH,
CgM,rT0,yTJ,wz_,Ax,Ti,C6,TxM,p6,Jx,$yF,YaM,MCs,lO5,FyH,Sa5,kzn,or_,FG,S7,bt,PgE,vrF,IO9,oe,Ie,z8J,it,ibM,grP,tx,Dyn,nrP,VCJ,jG5,xp,QG5,Ky_,j7,Zx,my5,HbF,Wy0,QJ,R8P,GzH,Uys,Lyn,sGn,aO1,eg1,Ob1,yEJ,wLM,E3M,T2_,AE3,pL0,Wi,C49,OE,Re,Gi,rEF,$Rn,sE,ae,MH5,Y8J,eS,lJJ,S83,bp5,o3s,hgF,B20,cE_,$5,la,M6,XLF,Y5,hl,cX,k5,P45,dR0,Xd,v3n,Iu,dW,z_,ia,Dc,zgJ,gW,fE,ip_,ua,Zc,x5,DR5,g3M,VHE,fJM,jS,Q7,tHH,mq,HX,KE,q8P,WX,OC,ZpM,G_,sC,LE,UC,au,eP,n3J,Op3,Gk3,WHF,KHF,RgM,wI,TO,aJ9,UR5,LH_,sy_,jys,pEP,SP,J29,$I5,T99,yu,
ot,rI,lA,CYn,pQ,mR_,QyM,Hpn,A0,A2_,kg,ohs,B7,hP0,c2M,khF,P7,B9s,XEs,PYM,IwE,vhs,v7,iO1,zO,DI1,gh5,fw0,tu1,DL,ucP,ZO1,gI,xI5,Vu,fQ,r0,HO_,Gh3,jP,L65,eb_,Qu,yg9,wV5,E$5,AgP,at,T0M,LQ,dy3,GO,s$,U$,mj,JZ,TV,CT,$l,pV5,Yl,lj,F3,CC5,rgM,bj,YmP,M1s,lmM,F19,Sm5,o$M,bl5,hb0,cgH,kv5,Bq,B00,X3,d1,XV1,PCJ,d7E,IM,Im3,v$H,Dh,g1,Vv,zb_,fT,iln,uj,g$F,D73,Zh,xl,jY,nT,V1M,Qv,mk,fmE,t1M,Hq,KT,x7M,u6F,Zln,qm0,Wq,OZ,RM,jv5,n$5,Qvn,GV,HlP,Ol5,W1n,UZ,LT,sZ,aM,eQ,yd,wh,Ez,AF,TF,JF,pR,RbE,GvM,U7F,CR,rh,$N,YN,lp,SQ,am_,svJ,
bp,eW9,hF,c2,kN,B2,XD,I4,v2,zF,ip,DY,gh,Vd,fR,tF,up,qE,wiJ,xN,nR,Ep5,Qd,Ton,Jxs,pi5,rxJ,YE0,R4,M7M,Uz,GF,SE9,opM,b65,sz,a4,cx5,NY,yQ,ly,Fm,BoM,SZ,og,by,Xin,hy,ki9,cw,ki,d9M,PtF,Bw,Xm,Pw,dz,vw,vp0,zW1,iy,Dn,VQ,fV,i6H,gz,V7F,fxH,t7F,uGs,qEE,Z60,x90,uy,ty,gp9,Qe3,qY,H6M,KKM,QQ,WK9,xi,jZ,O6E,mo,Gi5,LKM,Hw,KV,se1,Ww,el0,Oq,TWJ,E5M,NWH,wX5,yln,GH,Uq,LV,sq,ag,ey,Nf,wv,pX_,$6H,T$,G00,JC,YC9,lc_,C2,Mf,rv,YC,$C,o59,SCM,Fq5,bE1,lI,hln,XXH,FI,oR,d6_,bI,hC,c8,kC,Icn,B8,v53,zl_,P8,z$,iI,DK,gv,Ve,f2,tC,uI,qf,ZK,
xC,jy,n2,iEP,D6E,Qe,mX,H8,K2,W8,Ol,g5H,VSH,ER,pj,ud5,qC_,Cj,rL,SA,oo,x69,cM,X8,juF,Qu0,n50,m69,HE0,Kq_,WqE,OE_,Rln,U6P,G__,LqP,ekM,y0H,acP,dL,Io,Egs,w7_,vM,zj,iZ,A00,DX,gL,Vg,J0P,p7J,fj,TIH,t5,$iE,uZ,qD,ZX,xd,jA,nj,Qg,HM,Kj,WM,OR,Ro,Gj,UR,Lj,sR,ao,eR,NT,yS,wK,EP,Aw,TQ,Jw,px,Cx,rK,$q,Yq,MT,ll,FP,SR,os,bl,hw,cp,kq,Bp,XP,Pp,dK,Is,vp,zQ,il,Db,gK,VS,fx,tw,ul,qT,Zb,xq,jR,nx,QS,mZ,Hp,Kx,Wp,OP,Rs,GQ,UP,Lx,sP,as,Nx,yk,MP9,wX,U,EG,eK,A6,T5,J6,Fj0,Cn,ogJ,pn,bQ3,$2,hkJ,Mx,rX,lF,F2,SK,bF,kO3,BI0,X7F,PA5,va,z5,
X2,iF,IL3,vg9,zkM,iQJ,c0s,DiE,o_,gg1,VPM,gX,qx,Vk,ca,fL5,h6,DF,fn,ZF,uV_,k2,Ba,uF,t6,q$J,x2,jK,nn,Qk,ZQM,m$,Ha,Kn,Wa,OG,xi5,jt3,Qts,mi1,UG,Ln,sG,a_,Rk5,Ui9,stE,aLF,NG,N1s,yZH,JA,wqE,pv,Cv,rF,$Q,YQ,MG,Eln,T15,JZ_,AZ5,pqM,CjJ,o0,bv,ct,Bt,X1,Pt,dF,rZH,I0,vt,hA,Dk,gF,V6,fv,$uH,iv,MY5,tA,lh_,Fk0,uv,SZ9,qG,Zk,ol9,bT9,xQ,h9J,cZF,jO,kVH,B1J,XqJ,PjM,nv,Q6,duE,IhF,mx,Ht,Kv,vl_,Wt,Op,R0,GW,z9H,Up,Lv,iTE,sp,DuH,a0,glH,VYE,fh5,tYn,u3E,qZM,ec,ZTM,xu3,jMH,N5,nl1,yI,QMM,wp,muP,Eg,HT5,Kkn,AG,rp,WkM,$6,Y6,OTs,M5,R9M,
l$,Fe,Sc,GV3,UuH,b$,hG,sMJ,c3,ahJ,e3_,LkP,Nh1,yF5,w2J,B3,ENE,Xe,P3,dp,I2,AF5,v3,zS,Dr,Thn,gp,VI,JF5,tG,Zr,u$,QI,mu,p20,H3,Kd,W3,Og,Cp5,GS,Ug,rFM,sg,a2,jc,ei,N$,yc,$EM,wO,E3,AX,Yz3,T6,JX,ph,Ch,rO,YH,Zo,xH,ji,MQ9,lYH,FQs,Sz5,HI,nh,Kh,WI,oN3,bR9,h30,O3,R8,G6,cF5,kF9,ma,BhH,X2_,U3,Pp1,Lh,s3,ep,Nb,yO,wY,EV,Tp,J_,CL,rY,$z,Yz,pL,vNM,z3M,li,Fl,Sp,iR5,bi,gN_,h_,cd,VQ5,kz,Bd,Xl,dY,fYH,Pd,IV,vd,zp,tQn,gY,qzH,ZRE,xE9,VO,fL,j45,nNJ,Q4_,t_,HR_,oV,mE9,KQJ,ui,WQ1,qb,ORM,Zu,R3s,GFP,UE9,LQJ,s4M,xz,eK5,aYE,jp,m5,Nz_,
Hd,yyE,KL,wwF,Ei5,Wd,Ay5,Tz_,Jy3,pwP,OV,Cy5,RV,$Y0,UV,LL,MZ1,Yq0,lnM,FoE,Sq5,aV,em,Np,oiE,bV3,hK_,cy5,kH_,Bzn,XwM,PyP,dY5,InP,wy,E_,Ac,vi_,zKs,TK,Jc,iVJ,pt,Ct,$A,DY_,YA,Mp,lR,giM,Fv,VZn,Sm,fn0,oX,tZ5,umM,bR,qq5,ZVn,xYs,hc,ch,kA,Bh,Xv,jgH,niM,Ph,dy,IX,Qg3,vh,zK,iR,Dp,gy,mY9,HVE,VV,ft,KoM,tc,uR,qp,Zp,ngH,WoH,OVE,xA,RK9,GHM,UYH,jm,nt,QV,mz,Hh,Kt,Wh,O_,RX,GK,U_,LoF,sg9,wj,E1,an3,Ae,bS,M2,ACM,Yl9,TvE,MyE,FXJ,Sl5,lK_,oCJ,b2n,hd1,DC,BvM,PIP,IKJ,vCF,zdM,fN,te,DfF,gCn,uIH,uS,qlH,VyM,q2,ZC,xt,jj,xfF,QR5,jR5,
KX5,sRM,LX_,WXH,aKM,Qw,Rds,O2M,y5M,A5E,Edn,CZH,TL9,m9,Hr,lX_,O1,Fbs,kj5,c55,h40,od5,PZH,XMn,bj_,ijP,z49,DD5,s1,fXJ,gdM,VAF,SRM,tAP,u8s,RQ,U1,IX1,dDs,vds,qR_,GR,BL5,xD5,nd5,mDH,Kb9,R43,Gj1,Lb9,sos,eaM,aXP,AwM,ywF,NKE,TK9,Cl1,rwP,$Ts,YP5,Cs,X8J,FZ1,MRM,YF,bxF,lP,cw5,kQ9,ha9,F7,BKP,Sw,oc,lv,bP,k$s,hH,cu,kF,XpH,Pls,Bu,dTE,IbM,vqM,X7,Pu,d$,Ic,vu,zB,iP,Dz,g$,zan,ix_,V8,DTJ,fs,QO,tH,uP,VR0,gq5,qC,fb9,tRs,Zz,xF,uP_,jw,qP3,Zx0,dfJ,oq1,xT_,ns,F1,G5,aQ,js5,nq5,ml,MA5,KN,QsF,r$,$F,NC,ew,nN,w$,Wb5,UDJ,y8,r5E,
Jw3,mTP,e49,G$0,Hu,SP5,Vw,KZ9,Hx_,Z29,Ojn,WZ5,ppF,JH,$D1,YR9,wMF,Hjn,Qo5,H2_,nC9,tyJ,fK3,i2H,ZjH,Uf5,wp1,J5s,pME,AH,TB,EU,EqH,jon,RaF,Oxs,Ks,Wu,OU,Rc,GB,sU,Nc,yA,wQ,A$,Tm,UU,Ls,Ej,UT9,GQs,J$,CA,LZs,ssP,rQ,$B,YB,Mc,lm,FB,Sq,ox,y65,h$,bm,waF,es0,NXH,E2M,c1,kB,A60,TX5,B1,J6_,Cl,CF5,pa5,$xH,MK0,lF0,YGJ,F$E,bnJ,zm,im,hs9,c65,DM,gQ,k55,BXM,XaF,PFH,fA,um,qc,IF9,v2P,DxF,VK_,fF3,g20,jq,QA,nA,tK5,u25,ZM,qGM,Zn3,xx0,j_M,xB,Hn_,K$0,W$0,mx0,Q_1,n29,OnM,RsE,zs1,G5H,in9,Ux0,L$J,NFM,s_J,aFs,eeP,EQ5,yA1,wts,AAF,TF_,
H1,CvE,JA9,rAs,ptJ,$G1,Yp9,MO3,lkJ,Fx1,Sp0,oQJ,bv0,heP,cAM,kW1,BFM,KA,Pv5,dGM,IkJ,XtM,vQP,zeE,gQ9,Oj,Uj,sj,VO_,ax,ed,Na,qpP,xG0,ZvH,nQ9,GWs,C_,wD,j0E,u1_,tO5,fk9,p_,Ef,Ji,lN,F9,s0_,Sd,oh,Ma,yGP,ak_,e0P,w33,bN,hi,AGH,kE,B$,X9,P$,dD,Ih,v$,Tps,JGE,zD,iN,gD,C$9,rGJ,De,Vo,McP,lrJ,f_,Fu5,qa,SgJ,Ze,jd,o69,xE,n_,bd0,mh,cG5,kS0,K_,W$,L_,X3F,Rh,sf,el,P$P,w4,Uf,ah,d59,EM,Irs,Ad,v6F,Of,GD,BpM,NZ,T4,z03,idM,Jd,D5M,p1,C1,r4,$a,g6M,MZ,Ya,lH,Fs,Vc1,frP,Sl,oi,bH,hd,cx,tcn,ka,Bx,ueP,qg9,Xs,Px,d4,x5_,Zd_,Ii,j25,n6H,
Q2n,vx,m50,HdE,Ku0,Wu5,Od1,z4,iH,D$,g4,R03,GS9,f1,U55,td,uH,Lu1,s29,qZ,arE,ez9,EHH,AXE,NOJ,yX5,wI1,xa,jl,n1,Qt,TO9,JXF,mv,pIJ,rXP,CUJ,OM,Wx,Y3P,Mi3,lo0,Fa5,Ri,S31,UM,L1,oH5,hz0,cXP,ai,wt,PUn,Ov0,Ai,Ios,vHs,zzn,ihP,D$_,yo,eI,gHM,TE,Jm,tiF,uQH,q35,pC,nHE,ZhM,x$5,m$F,Hh9,CC,KaJ,Q8E,Wa9,rt,$_,Y_,Oh_,Rz9,MX,l2,G6J,Fu,U$M,SI,Eh,cU,LaE,ReH,Q0F,k_,BU,PU,dt,II,vU,zE,Xu,gt,aoM,tm,ey0,NYJ,y__,wd1,Ezn,u2,TYn,qX,pd9,ZT,r_0,$b5,Cis,J_J,YVF,MpP,lu1,ms,F5n,SV1,bLF,HU,Lx3,WU,c_5,BY3,rD,XdJ,Pi1,RI,IuP,TD,dbF,mG5,KxM,
WxH,hyn,GE,Uh,LC,vzE,zy1,sh,iLE,eV,N_,yy,ww,EI,Db0,AR,TX,gz5,VpP,JR,pa,Ca,rw,Yj,M_,tps,fuJ,ld,ulP,ZL_,Fn,xb0,qV5,fa,gw,tR,q_,ZW,nC,jV1,OLM,dX,Vy,Qy,L5F,auM,kj,Wg,cg,OI,UI,DW,La,EAP,sI,aK,Ac5,Ty9,Jcs,phM,ex,CRn,rcJ,NO,$pE,S_5,Fz_,Y__,lpJ,MmP,y3,oAM,w8,btF,hcs,kKE,Byn,XhF,zc5,p3,C3,gA3,r8,$K,VmM,uv5,q_J,Zt5,xp9,YK,jXP,QXF,mp0,PH,sX9,Ot3,Rcn,eQ0,d8,NjM,wrF,yen,Et0,vH,DG,AeM,If,g8,V3,TjP,prM,$2n,qO,Q3,On,Un,PSJ,d2H,e5,af,wd,Es,ICH,iNE,zQF,D25,TC,AY,VjM,fC9,tjM,q1M,gt0,CX,u4s,ZNM,x29,YI,MK,ntJ,u0,pX,rd,
S15,Je1,ces,hY,yG,I$,Rf,VG,tY,uk,eq1,aC0,Gr,Zi,xI,N$9,j5,yH_,wuE,L3,vtP,md,W95,NK,EFs,Mj5,Y1M,CS0,HF,WF,lzs,MwH,SUP,oF5,Us,a$,eX,LX,yL,wZ,bsM,Ec,cH0,Au,B$E,pD,kBH,CD,rZ,Izs,$S,is5,DCH,lh,gF1,fzP,Iq,z9,ih,gZ,tw5,VL,fD,Zq,xS,jX,nD,u7M,QL,m3,jcn,Hb,KD,nFF,Qcs,Wb,mC3,HsH,Kln,WlM,Oc,Rq,Osn,GBs,LD,sc,Nw,y9,UCM,w3,Ei,Az,Tc,Jz,LlJ,sc0,p5,azP,eBM,C5,y$0,NQn,w1F,r3,A$3,EBP,$8,TQ5,Y8,Mw,J$M,Cm3,r$E,l3,FC,S3,$cE,oE,Mq5,hz,lMM,F4s,b3,c0,k8,B0,hBF,km0,SjM,c$M,BQ9,oB_,bAP,X13,PmM,d3,dcM,vBJ,Dc1,Vq5,gB_,f5,V9,qw,
tqM,Z2,x8,j3,qjH,n5,ZAH,uBn,Q9,nBP,mA,H0,Qx5,K5,mc_,Wzs,Lz3,K4n,HAM,OA0,W4M,RBs,Oi,Gm0,Ucn,aMM,Ui,L5,si,NDF,EE5,N4,yW,wB,TD1,Ai_,aE,Ji5,p$M,CNE,$a_,EY,ciM,pP,CP,Ie9,v0,zvJ,i_s,Da_,gE9,VdM,$X,fes,YX,M4,lO,td0,oO,u9M,qfF,bO,hI,Z_P,xan,jh5,nE9,Qh9,cT,Sr,maM,kX,KhJ,Wh5,O__,BT,Rv5,GDs,UaH,LhM,sh5,aeH,e_9,N4H,yds,wx5,Xy,AdM,PT,T4J,IO,px3,iO,EaM,dB,D0,gB,VW,fP,tI,uO,CHH,q4,rd_,xX,FvE,b1s,h_E,cdE,k4J,QW,B4M,oaM,l$M,XxM,jr,PH0,I$9,Z0,nP,YME,MlH,mU,vaJ,z_M,SMF,$Z5,i1n,KP,DZP,WT,OY,gaJ,RO,tl1,VlM,f$_,Gg,usF,
UY,LP,sY,aO,qM5,Z10,xZ0,eL,na0,QiJ,NN,mZs,yU,wA,H1P,KvE,Wv_,O1n,R_5,G4F,enn,Lv5,zBM,AW,ym3,wU5,si_,a$3,UZP,pr,pU0,JW,Tb,Nt5,rm5,JmE,Ttn,AmM,E_M,rA,$X1,IE,$e,Ye,MN,Yh3,lz,MIE,Fz,lT0,u3,FsH,SL,i3,g3,IMJ,hW,ke,bC3,hnM,Bl,Pl,cl,bz,Il,ol,ShM,o_H,vl,cms,kEn,zg,Jds,zc,zb,Bt3,Xz,XUF,P2M,dX5,ITM,iz,DU,gA,znM,iC_,DXJ,g_H,VI0,dZ1,fr,tW,uz,VU,tIM,xcs,jxF,qN,uus,qhF,ZC9,xXP,ZU,jI0,xe,n_0,mXs,jL,HCJ,Kss,QU,WsF,nr,Oe,GEJ,Rnn,sI5,LsH,aTJ,e$E,UX5,Rl,OC5,Nw0,Ym,yR1,AR5,wg5,Ej5,ls,H_M,Tw3,JR1,pgP,Cd0,rRn,FE,SD,o9,$_5,
bs,hJ,YI1,cO,MVH,lWM,km,FTM,SI5,oj9,baF,BO,w$s,XE,kX5,PO,cRs,dE,BwP,yiM,er,XgH,I9,zG,IW1,d_5,qo,xm,Zj,z$F,nH,ia_,D_9,QB,mp,tV5,VVH,unM,qI9,Za_,x_P,jK1,QKE,m_n,HaE,nj1,KH,vO,WTH,gj1,OaM,fW5,WO,GXM,KT3,HO,U_E,OB,aW_,wHP,R9,eLH,EKP,y3_,A30,LTs,GG,T8H,sKn,ef,a9,$O5,r35,Yn5,MxF,lG9,C0E,F05,Sn0,UB,oK3,b35,hL5,c3H,XH9,B83,kr5,yD,P0M,IG9,vKs,zL5,i35,Aj,Tt,vT,DO3,gKM,Vxs,ur0,tx0,fGF,qnn,xOn,jf9,Z3n,sB,mL,Qf1,mOM,H3P,L0n,O35,RLM,Gr1,sfJ,eHH,C21,wg,W01,K0_,aG1,tz,UOn,Ee,D2,N85,AYE,EI9,Td0,JYs,pFn,CkE,dO0,Wl,
Hl,yY1,rY_,wF5,$KJ,QIF,Ys5,pH_,J3n,NdF,Kr,CW,rg,li5,$4,Fd5,Ss5,oIE,bXM,hHF,kCE,BdM,Iis,XFM,dKs,vIs,Mt,gIJ,iXF,DK0,t53,uU3,qsM,ZXH,xK1,Y4,j$E,fiE,zHn,lw,nIM,PkP,Q$J,F$,HXJ,KdJ,Wdn,mK5,Sf,GCJ,RHn,sO5,LU_,UKE,a09,eY3,oU,NAJ,yW5,Een,AWH,wl5,TA1,$N0,pl3,Cz5,rWF,Yen,MLs,lU_,Se1,FLM,oeM,br5,hY5,kbM,Xl9,BAM,PzF,cW0,dNH,ve3,zYn,DN1,VL5,irM,cG,fUs,tLE,IU9,uzE,geH,k4,qe3,ZrF,xNM,jlM,neF,Ql9,mN_,KL5,OrE,RY9,Gbn,UNH,LLJ,X$,slJ,PG,eM_,NE_,wO5,zt,AJn,TEJ,JJ1,pO3,rJs,CsP,MD0,ljH,iw,gg,$oM,YB3,FpH,fW,om5,SBJ,bHn,
hM3,cJ5,XOs,kGH,Ijn,tj,BEs,vmn,uw,gmJ,Z3,x4,VD5,qt,fjH,jf,qBn,uE9,iHn,DoJ,ZHs,xoF,j9P,zMJ,nmH,nW,Q9s,tD5,EmE,VD,HHs,mS,Kpn,WpE,OH9,RMs,GGE,Uo3,Lp0,s9P,aj5,e63,HG,Ng9,yj0,E4s,Aj5,Tgn,wG1,JjJ,pG1,CwM,rj0,$t5,Ov,YvM,RU,IYn,Mf3,l3J,Gt,FSJ,Sv5,LW,h6E,cjE,aU,Bg_,XGM,ktM,bW5,ek,Uv,o4F,wk,y_,PwE,Ed,NJ,z69,g40,f39,tf3,qvP,I3_,Vfn,ZWF,v4E,xt5,jUM,C$,Av,QU5,n4M,Jv,KS1,WSP,DtP,iWF,HWM,OWM,u$_,dt1,rk,$7,Y7,R6E,MJ,eiM,LS1,NkF,sUF,Ut5,yvF,Gt3,Tk9,wsn,lr,Jv5,Crs,$Jn,Yd9,Mk5,Sd_,br,o7H,lNE,p$,cvH,ko_,Xx,R$P,Fx,Bk9,
Xs3,dJM,Prn,INF,hi_,cs,v7M,ziP,i$F,g7E,DJ9,nK3,Vk9,hv,fNJ,uxP,tk1,Z$n,qdP,rvH,jY1,xJs,k7,Sk,n7F,dk,mJs,H$H,KP9,WPP,O$3,Ps,JW3,FP5,RiM,M53,To,Go5,UJ3,LP5,sYM,aN5,IY,vs,NHP,y9M,wo_,eNM,EPP,zo,po3,TH1,J9s,CJn,ir,r9F,$l0,YN5,DN,MB9,FmF,SNE,oP0,gk,lv9,V_,f$,bZ9,hNM,qJ,tv,ur,c95,ZN,kf9,BHH,Xos,dl5,PJ5,Hs,vP0,zNs,IvH,iZE,K$,DlM,Ws,gPE,Od,VB0,fvn,ZZ_,qN5,nPM,tB_,xl5,RY,u_M,j3_,Q31,ml3,HZH,Km1,Ud,WmF,aY,L$,OZ0,eB,Nl,GfM,wH,EN,UlP,ym,Lm5,A9,av5,s3M,J9,pZ,CZ,yk_,eZM,NCM,rH,w6M,JkP,Ak5,EyJ,TC_,$P,Con,YL0,Mzn,
YP,lDE,F25,rk0,$hH,bJ0,hZ_,ck0,kP_,BC1,F_,IDH,zZ0,SB,PoH,dh5,gy1,lJ,o3,bJ,X65,vy5,VzF,h9,co,fD9,tzM,uhH,kP,qL9,ZJ3,xhs,jmH,ny9,Qm5,mh9,W29,HJ5,OJJ,RZH,Uh0,L25,Vm,wK0,aDM,eVM,EM5,AUJ,yUs,smE,TT_,pK_,JU5,CbM,FYP,t9,bUM,kTs,cUs,hVP,M89,lts,rUE,$V5,SDF,uJ,ql,XKJ,hu,Xu0,PbM,xP,nZ,It3,dVF,oMH,zV3,iUM,DV3,Qm,gME,Gf,ft5,t8H,uqM,ZU_,qDF,xVn,UN,LZ,j53,mVF,HUn,ez,Q5_,KYE,WYH,nM9,Nh,EL,OUH,RVF,wC,GTF,UVP,LYJ,s5M,er1,atM,wR5,E9s,NlH,Tln,JP5,yP0,Jk,pJ,pRM,rPH,CJ,CKM,$sP,Mo5,Y4P,lgs,rC,F8M,S4P,o90,$y,Yy,hrJ,b73,
cPs,kIM,XRF,Bl1,PKJ,ds0,Ig1,v9J,zrH,Ds0,lo,Mh,Fh,g9n,VoF,i7P,Z7M,xsH,jjE,ms5,Qj5,n99,H70,K89,Sz,om,W8_,O71,Rrn,GIP,L8J,sjF,hk,agJ,bo,ky,UsF,e7s,NV1,yMF,wvH,ELH,Xh,AME,TVH,C9E,P6,rM1,pv3,dC,Im,$r5,Yy3,l_5,Sy_,MTE,FOM,zP,oLP,h7J,cM1,BVM,Xv5,io,DD,P9M,be_,vLF,I_9,dr5,gC,Vs,ie3,z7M,fJ,tk,Dr5,uo,gL5,VTP,f_E,qh,tT9,ZD,u5M,jz,nJ,xrM,ja1,nLn,mr0,HeM,KO5,QaE,Oe3,WO5,R7M,LOM,H6,a_0,san,Gd5,Ur9,eUM,NMM,KJ,W6,ysE,wj5,EW5,AsM,TMP,Js0,CWn,rs9,bF0,MW9,lIs,$ns,cs_,sL,e8,PW1,wT,ED,dnF,kA_,LJ,JU,TT,NV,pU,zUH,Dn5,iFM,
CU,yq,UL,vW1,AU,BM5,IIs,VWE,OL,rT,fIM,tW9,am,XjE,$M,YM,upJ,MV,lb,Fq,qO3,ZFM,jHn,nWJ,xn0,S8,mnH,QHH,o5,HF5,bb,hU,KgE,WgJ,OFP,RUn,GAF,Lg9,aI5,sHH,UnH,cK,e2E,yB0,N7F,kM,BK,w90,ABs,T7s,Xq,EZ0,JBM,p9E,CeM,rB_,$SP,Y6J,MsP,dT,I5,FNE,lB_,S6M,vK,zT,oZH,bSF,cB3,h2F,kLP,Dt,B7s,X9M,Vq,Pe5,dSM,IB3,vZ5,z25,iSn,gZ_,VsP,fBM,DS3,ts5,ui0,q6E,ZSs,xSM,jS5,nZH,QSE,Zt,mS3,HSP,KNM,R29,sS9,USH,OS9,nU,GLM,WNM,LNP,Qq,eIM,aBF,mY,Nfn,yNM,wJE,bw,Eo3,CT9,rNE,$FJ,HK,YX5,WK,Nt,MhP,OD,lEs,KU,FBM,SX9,BfJ,sD,a5,Ns,yi,PTE,XJn,ooE,wl,
dF0,IE5,zI3,E4,i0s,DFE,goH,eo,fEF,VhM,AP,cNs,UD,th5,uW_,qXF,Z09,b0E,hIE,LU,xFE,mF_,H0n,WB0,QTH,G21,XC,P0,LH,sTs,aE9,LBM,ep5,KB5,UFH,jTF,NuP,RI5,yb9,O0n,dA,v_1,mtE,TI,Mo,no_,EOH,pZ9,p7,C5_,rb3,Tu1,rl,$Bn,YTM,wZP,MFE,JbE,laF,$9,C7,Fn5,oOE,ST_,JP,hpF,lK,cb5,Y9,FO,Ms,So,b$P,kls,P5E,XZE,IaJ,vOJ,dBH,bK,oj,iIM,DB3,gOP,nO5,qTF,ZI5,tFE,HIF,fan,k9,OI0,KnM,RpM,GlM,UBs,XO,PR,aaE,sb_,Ln3,Ij,jbJ,Dg,NJn,iK,dl,wY5,TJs,J80,mBs,EUF,f7,pY5,xBH,eJH,vR,CL3,BR,r8M,$zJ,Yw3,qs,Zg,y89,MJ3,x9,jo,lQH,zI,Wn9,FJ9,SwH,oU0,A8M,
bzM,gl,hJM,Vi,Ju,c8F,BJM,n7,Qi,XYH,PL_,dzn,uK,tP,IQ1,Bu0,vU1,zJs,izF,Dz1,gU_,m8,HR,tJF,Zz3,jWF,fQH,RJP,Gn9,UzE,LJ5,sWs,aQF,euJ,ySH,NUM,K7,WR,O4,wkM,EkM,ASE,nL,TUM,Rj,JS_,GI,U4,k6,L7,R_,pkH,MC,lbF,Cu9,Wr,rSH,ii,Du,Q8,$QE,Yt_,MN3,ll_,FtH,s4,okJ,b8s,aj,Nr,ya,hu9,BU_,Xks,wV,PuP,cSJ,kq5,dQ5,Il0,vk9,zuE,i8M,Ey,gk5,YZ1,kQ,Gp,VN5,fl0,sV,DQ5,zW,tN0,uNs,qts,AM,Mb,xQ9,jn_,Td,JM,nk_,pe,QnH,eT,mQF,H8_,uDE,Ce,rV,KtE,$L,YL,Wt_,Mr,O85,l9,F5,RuM,Gq5,ryP,ST,UQ3,snP,Lt9,oa,alE,b9,hM,ewM,Nbs,yDM,wSM,Ec5,ADP,Tb3,pSF,
kL,JDM,CD_,rD5,$1P,YuH,SuE,MGF,lPP,FeE,b4M,cD9,kUn,BbH,hw9,Bv,XSH,PD3,d1J,IPJ,vcF,Pv,zw5,dV,Ia,vv,i4M,D1M,VGH,fP5,tGM,ukH,Z4E,qu0,x1M,zd,i9,Q6F,j6E,nc0,D_,m1M,H4M,gV,Va,KeP,fe,We1,tM,O4P,u9,qr,Rw3,Z_,xL,GU1,U13,jT,ne,LeM,Qa,s6J,aPn,Wv,eo1,Nc5,y1H,A11,EGP,Oy,Tcn,J15,pAM,cCF,wA3,r1_,$j5,M_9,e5P,r_;N3=function(e){return function(){return e5P[e].apply(this,arguments)}};
g.w_=function(e,N){return e5P[e]=N};
N_H=function(e){var N=0;return function(){return N<e.length?{done:!1,value:e[N++]}:{done:!0}}};
yn_=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var N=0;N<e.length;++N){var y=e[N];if(y&&y.Math==Math)return y}throw Error("Cannot find global object");};
YJ=function(e,N){if(N)a:{var y=g.pM;e=e.split(".");for(var w=0;w<e.length-1;w++){var E=e[w];if(!(E in y))break a;y=y[E]}e=e[e.length-1];w=y[e];N=N(w);N!=w&&N!=null&&r_(y,e,{configurable:!0,writable:!0,value:N})}};
w5F=function(e){e={next:e};e[Symbol.iterator]=function(){return this};
return e};
g.b=function(e,N){e.prototype=EJ5(N.prototype);e.prototype.constructor=e;if(M3)M3(e,N);else for(var y in N)if(y!="prototype")if(Object.defineProperties){var w=Object.getOwnPropertyDescriptor(N,y);w&&Object.defineProperty(e,y,w)}else e[y]=N[y];e.cw=N.prototype};
g.c=function(e){var N=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];if(N)return N.call(e);if(typeof e.length=="number")return{next:N_H(e)};throw Error(String(e)+" is not an iterable or ArrayLike");};
An0=function(e){for(var N,y=[];!(N=e.next()).done;)y.push(N.value);return y};
g.B=function(e){return e instanceof Array?e:An0(g.c(e))};
JnF=function(e){return T_P(e,e)};
T_P=function(e,N){e.raw=N;Object.freeze&&(Object.freeze(e),Object.freeze(N));return e};
lE=function(e,N){return Object.prototype.hasOwnProperty.call(e,N)};
p59=function(e){if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");};
FH=function(){this.G=!1;this.j=null;this.N=void 0;this.J=1;this.L=this.Z=0;this.D=this.K=null};
oP=function(e){if(e.G)throw new TypeError("Generator is already running");e.G=!0};
bE=function(e,N){e.K={KR:N,vj:!0};e.J=e.Z||e.L};
g.D=function(e,N,y){e.J=y;return{value:N}};
CE5=function(e,N,y){N=g.c(N);var w=N.next();p59(w);if(w.done)e.N=w.value,e.J=y;else return e.j=N,g.D(e,w.value,y)};
g.hn=function(e){e.J=0};
g.c5=function(e,N,y){e.Z=N;y!=void 0&&(e.L=y)};
g.kJ=function(e,N){e.Z=0;e.L=N||0};
g.B5=function(e,N,y){e.J=N;e.Z=y||0};
g.XH=function(e,N){e.Z=N||0;N=e.K.KR;e.K=null;return N};
g.P5=function(e,N,y,w){w?e.D[w]=e.K:e.D=[e.K];e.Z=N||0;e.L=y||0};
g.d_=function(e,N,y){y=e.D.splice(y||0)[0];(y=e.K=e.K||y)?y.vj?e.J=e.Z||e.L:y.u9!=void 0&&e.L<y.u9?(e.J=y.u9,e.K=null):e.J=e.L:e.J=N};
rn9=function(e){this.J=new FH;this.N=e};
$3E=function(e,N){oP(e.J);var y=e.J.j;if(y)return IP(e,"return"in y?y["return"]:function(w){return{value:w,done:!0}},N,e.J.return);
e.J.return(N);return zs(e)};
IP=function(e,N,y,w){try{var E=N.call(e.J.j,y);p59(E);if(!E.done)return e.J.G=!1,E;var A=E.value}catch(T){return e.J.j=null,bE(e.J,T),zs(e)}e.J.j=null;w.call(e.J,A);return zs(e)};
zs=function(e){for(;e.J.J;)try{var N=e.N(e.J);if(N)return e.J.G=!1,{value:N.value,done:!1}}catch(y){e.J.N=void 0,bE(e.J,y)}e.J.G=!1;if(e.J.K){N=e.J.K;e.J.K=null;if(N.vj)throw N.KR;return{value:N.return,done:!0}}return{value:void 0,done:!0}};
Y9F=function(e){this.next=function(N){oP(e.J);e.J.j?N=IP(e,e.J.j.next,N,e.J.U):(e.J.U(N),N=zs(e));return N};
this.throw=function(N){oP(e.J);e.J.j?N=IP(e,e.J.j["throw"],N,e.J.U):(bE(e.J,N),N=zs(e));return N};
this.return=function(N){return $3E(e,N)};
this[Symbol.iterator]=function(){return this}};
MM_=function(e,N){N=new Y9F(new rn9(N));M3&&e.prototype&&M3(N,e.prototype);return N};
l1J=function(e){function N(w){return e.next(w)}
function y(w){return e.throw(w)}
return new Promise(function(w,E){function A(T){T.done?w(T.value):Promise.resolve(T.value).then(N,y).then(A,E)}
A(e.next())})};
g.f=function(e){return l1J(new Y9F(new rn9(e)))};
g.iE=function(){for(var e=Number(this),N=[],y=e;y<arguments.length;y++)N[y-e]=arguments[y];return N};
FF3=function(e,N,y){e instanceof String&&(e=String(e));for(var w=e.length,E=0;E<w;E++){var A=e[E];if(N.call(y,A,E,e))return{WZ:E,gM:A}}return{WZ:-1,gM:void 0}};
D1=function(e,N,y){if(e==null)throw new TypeError("The 'this' value for String.prototype."+y+" must not be null or undefined");if(N instanceof RegExp)throw new TypeError("First argument to String.prototype."+y+" must not be a regular expression");return e+""};
V0=function(e,N){e instanceof String&&(e+="");var y=0,w=!1,E={next:function(){if(!w&&y<e.length){var A=y++;return{value:N(A,e[A]),done:!1}}w=!0;return{done:!0,value:void 0}}};
E[Symbol.iterator]=function(){return E};
return E};
fM=function(e){return e?e:Array.prototype.fill};
tn=function(e){return e?e:Array.prototype.copyWithin};
uE=function(e){e=Math.trunc(e)||0;e<0&&(e+=this.length);if(!(e<0||e>=this.length))return this[e]};
q3=function(e){return e?e:uE};
S9s=function(e,N,y){e instanceof String&&(e=String(e));for(var w=e.length-1;w>=0;w--){var E=e[w];if(N.call(y,E,w,e))return{WZ:w,gM:E}}return{WZ:-1,gM:void 0}};
Z1=function(e){return e?e:function(N,y){return S9s(this,N,y).WZ}};
g.jM=function(e,N,y){e=e.split(".");y=y||g.xJ;for(var w;e.length&&(w=e.shift());)e.length||N===void 0?y[w]&&y[w]!==Object.prototype[w]?y=y[w]:y=y[w]={}:y[w]=N};
Q0=function(e,N){var y=g.nM("CLOSURE_FLAGS");e=y&&y[e];return e!=null?e:N};
g.nM=function(e,N){e=e.split(".");N=N||g.xJ;for(var y=0;y<e.length;y++)if(N=N[e[y]],N==null)return null;return N};
mF=function(e){var N=typeof e;return N!="object"?N:e?Array.isArray(e)?"array":N:"null"};
g.KM=function(e){var N=mF(e);return N=="array"||N=="object"&&typeof e.length=="number"};
g.W5=function(e){var N=typeof e;return N=="object"&&e!=null||N=="function"};
g.RP=function(e){return Object.prototype.hasOwnProperty.call(e,O9)&&e[O9]||(e[O9]=++oJM)};
bM_=function(e,N,y){return e.call.apply(e.bind,arguments)};
h50=function(e,N,y){if(!e)throw Error();if(arguments.length>2){var w=Array.prototype.slice.call(arguments,2);return function(){var E=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(E,w);return e.apply(N,E)}}return function(){return e.apply(N,arguments)}};
g.Gs=function(e,N,y){g.Gs=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?bM_:h50;return g.Gs.apply(null,arguments)};
g.LM=function(e,N){var y=Array.prototype.slice.call(arguments,1);return function(){var w=y.slice();w.push.apply(w,arguments);return e.apply(this,w)}};
g.s9=function(){return Date.now()};
cnJ=function(e){return e};
g.e0=function(e,N){function y(){}
y.prototype=N.prototype;e.cw=N.prototype;e.prototype=new y;e.prototype.constructor=e;e.tA=function(w,E,A){for(var T=Array(arguments.length-2),p=2;p<arguments.length;p++)T[p-2]=arguments[p];return N.prototype[E].apply(w,T)}};
NM=function(e,N){if(N!==null&&N!==void 0){if(typeof N!=="object"&&typeof N!=="function")throw new TypeError("Object expected.");if(y===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var y=N[Symbol.dispose]}if(typeof y!=="function")throw new TypeError("Object not disposable.");e.stack.push({value:N,dispose:y,async:!1})}return N};
w5=function(e){function N(A){e.error=e.hasError?new SuppressedError(A,e.error,"An error was suppressed during disposal."):A;e.hasError=!0}
function y(){for(;w=e.stack.pop();)try{if(!w.async&&E===1)return E=0,e.stack.push(w),Promise.resolve().then(y);if(w.dispose){var A=w.dispose.call(w.value);if(w.async)return E|=2,Promise.resolve(A).then(y,function(T){N(T);return y()})}else E|=1}catch(T){N(T)}if(E===1)return e.hasError?Promise.reject(e.error):Promise.resolve();
if(e.hasError)throw e.error;}
var w,E=0;y()};
ks3=function(e){var N=N===void 0?45:N;var y=[];Ek(e,AV,6).forEach(function(w){Tw(w,2)<=N&&y.push(Tw(w,1))});
return y};
B_P=function(e){var N=N===void 0?45:N;var y=[];Ek(e,AV,6).forEach(function(w){Tw(w,2)>N&&y.push(Tw(w,1))});
return y};
g.JV=function(e){e&&typeof e.dispose=="function"&&e.dispose()};
g.pq=function(e){for(var N=0,y=arguments.length;N<y;++N){var w=arguments[N];g.KM(w)?g.pq.apply(null,w):g.JV(w)}};
g.x=function(){this.Lm=this.Lm;this.fl=this.fl};
g.Q=function(e,N){e.addOnDisposeCallback(g.LM(g.JV,N))};
Cq=function(e){e.then(function(){},function(){})};
r5=function(){g.x.apply(this,arguments);this.j=1;this[X5H]=this.dispose};
$w=function(e){return{fieldType:2,fieldName:e}};
g.l_=function(e){return{fieldType:3,fieldName:e}};
PEM=function(e){this.J=e;e.kM("/client_streamz/bg/frs",g.l_("ke"))};
d30=function(e){this.J=e;e.kM("/client_streamz/bg/wrl",g.l_("mn"),$w("ac"),$w("sc"),g.l_("rk"),g.l_("mk"))};
I1n=function(e){this.N=e;e.ET("/client_streamz/bg/ec",g.l_("en"),g.l_("mk"))};
vJP=function(e){this.J=e;e.kM("/client_streamz/bg/el",g.l_("en"),g.l_("rk"),g.l_("mk"))};
z5J=function(e){this.N=e;e.ET("/client_streamz/bg/cec",$w("ec"),g.l_("rk"),g.l_("mk"))};
iME=function(e){this.N=e;e.ET("/client_streamz/bg/po/csc",$w("cs"),g.l_("rk"),g.l_("mk"))};
D31=function(e){this.N=e;e.ET("/client_streamz/bg/po/ctav",g.l_("av"),g.l_("rk"),g.l_("mk"))};
gJ1=function(e){this.N=e;e.ET("/client_streamz/bg/po/cwsc",g.l_("su"),g.l_("rk"),g.l_("mk"))};
FF=function(e,N){if(Error.captureStackTrace)Error.captureStackTrace(this,FF);else{var y=Error().stack;y&&(this.stack=y)}e&&(this.message=String(e));N!==void 0&&(this.cause=N)};
VME=function(){};
ow=function(){throw Error("Invalid UTF8");};
f1F=function(e,N){N=String.fromCharCode.apply(null,N);return e==null?N:e+N};
ZM0=function(e){var N=!1;N=N===void 0?!1:N;if(tMH){if(N&&(uH5?!e.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(e)))throw Error("Found an unpaired surrogate");e=(q91||(q91=new TextEncoder)).encode(e)}else{for(var y=0,w=new Uint8Array(3*e.length),E=0;E<e.length;E++){var A=e.charCodeAt(E);if(A<128)w[y++]=A;else{if(A<2048)w[y++]=A>>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&E<e.length){var T=e.charCodeAt(++E);if(T>=56320&&T<=57343){A=(A-55296)*1024+
T-56320+65536;w[y++]=A>>18|240;w[y++]=A>>12&63|128;w[y++]=A>>6&63|128;w[y++]=A&63|128;continue}else E--}if(N)throw Error("Found an unpaired surrogate");A=65533}w[y++]=A>>12|224;w[y++]=A>>6&63|128}w[y++]=A&63|128}}e=y===w.length?w:w.subarray(0,y)}return e};
b_=function(e){g.xJ.setTimeout(function(){throw e;},0)};
x3s=function(e){return Array.prototype.map.call(e,function(N){N=N.toString(16);return N.length>1?N:"0"+N}).join("")};
jPP=function(e){for(var N=[],y=0;y<e.length;y+=2)N.push(parseInt(e.substring(y,y+2),16));return N};
g.hV=function(e){for(var N=[],y=0,w=0;w<e.length;w++){var E=e.charCodeAt(w);E<128?N[y++]=E:(E<2048?N[y++]=E>>6|192:((E&64512)==55296&&w+1<e.length&&(e.charCodeAt(w+1)&64512)==56320?(E=65536+((E&1023)<<10)+(e.charCodeAt(++w)&1023),N[y++]=E>>18|240,N[y++]=E>>12&63|128):N[y++]=E>>12|224,N[y++]=E>>6&63|128),N[y++]=E&63|128)}return N};
c_=function(e,N){return e.lastIndexOf(N,0)==0};
nJn=function(e,N){var y=e.length-N.length;return y>=0&&e.indexOf(N,y)==y};
g.kw=function(e){return/^[\s\xa0]*$/.test(e)};
g.B_=function(e,N){return e.indexOf(N)!=-1};
P_=function(e,N){return g.B_(e.toLowerCase(),N.toLowerCase())};
g.v_=function(e,N){var y=0;e=d5(String(e)).split(".");N=d5(String(N)).split(".");for(var w=Math.max(e.length,N.length),E=0;y==0&&E<w;E++){var A=e[E]||"",T=N[E]||"";do{A=/(\d*)(\D*)(.*)/.exec(A)||["","","",""];T=/(\d*)(\D*)(.*)/.exec(T)||["","","",""];if(A[0].length==0&&T[0].length==0)break;y=Iw(A[1].length==0?0:parseInt(A[1],10),T[1].length==0?0:parseInt(T[1],10))||Iw(A[2].length==0,T[2].length==0)||Iw(A[2],T[2]);A=A[3];T=T[3]}while(y==0)}return y};
Iw=function(e,N){return e<N?-1:e>N?1:0};
g.zw=function(){var e=g.xJ.navigator;return e&&(e=e.userAgent)?e:""};
VT=function(e){return i_||DZ?g5?g5.brands.some(function(N){return(N=N.brand)&&g.B_(N,e)}):!1:!1};
fq=function(e){return g.B_(g.zw(),e)};
tV=function(){return i_||DZ?!!g5&&g5.brands.length>0:!1};
u_=function(){return tV()?!1:fq("Opera")};
QPF=function(){return tV()?!1:fq("Trident")||fq("MSIE")};
m39=function(){return tV()?VT("Microsoft Edge"):fq("Edg/")};
qM=function(){return fq("Firefox")||fq("FxiOS")};
xw=function(){return fq("Safari")&&!(ZZ()||(tV()?0:fq("Coast"))||u_()||(tV()?0:fq("Edge"))||m39()||(tV()?VT("Opera"):fq("OPR"))||qM()||fq("Silk")||fq("Android"))};
ZZ=function(){return tV()?VT("Chromium"):(fq("Chrome")||fq("CriOS"))&&!(tV()?0:fq("Edge"))||fq("Silk")};
HMM=function(){return fq("Android")&&!(ZZ()||qM()||u_()||fq("Silk"))};
KF_=function(e){var N={};e.forEach(function(y){N[y[0]]=y[1]});
return function(y){return N[y.find(function(w){return w in N})]||""}};
WFF=function(e){var N=g.zw();if(e==="Internet Explorer"){if(QPF())if((e=/rv: *([\d\.]*)/.exec(N))&&e[1])N=e[1];else{e="";var y=/MSIE +([\d\.]+)/.exec(N);if(y&&y[1])if(N=/Trident\/(\d.\d)/.exec(N),y[1]=="7.0")if(N&&N[1])switch(N[1]){case "4.0":e="8.0";break;case "5.0":e="9.0";break;case "6.0":e="10.0";break;case "7.0":e="11.0"}else e="7.0";else e=y[1];N=e}else N="";return N}var w=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");y=[];for(var E;E=w.exec(N);)y.push([E[1],E[2],E[3]||void 0]);
N=KF_(y);switch(e){case "Opera":if(u_())return N(["Version","Opera"]);if(tV()?VT("Opera"):fq("OPR"))return N(["OPR"]);break;case "Microsoft Edge":if(tV()?0:fq("Edge"))return N(["Edge"]);if(m39())return N(["Edg"]);break;case "Chromium":if(ZZ())return N(["Chrome","CriOS","HeadlessChrome"])}return e==="Firefox"&&qM()||e==="Safari"&&xw()||e==="Android Browser"&&HMM()||e==="Silk"&&fq("Silk")?(N=y[2])&&N[1]||"":""};
OM0=function(e){if(tV()&&e!=="Silk"){var N=g5.brands.find(function(y){return y.brand===e});
if(!N||!N.version)return NaN;N=N.version.split(".")}else{N=WFF(e);if(N==="")return NaN;N=N.split(".")}return N.length===0?NaN:Number(N[0])};
nq=function(){return i_||DZ?!!g5&&!!g5.platform:!1};
R50=function(){return nq()?g5.platform==="Android":fq("Android")};
QT=function(){return fq("iPhone")&&!fq("iPod")&&!fq("iPad")};
mf=function(){return QT()||fq("iPad")||fq("iPod")};
H_=function(){return nq()?g5.platform==="macOS":fq("Macintosh")};
GsM=function(){return nq()?g5.platform==="Windows":fq("Windows")};
g.Kq=function(e){return e[e.length-1]};
U3M=function(e,N){var y=e.length,w=typeof e==="string"?e.split(""):e;for(--y;y>=0;--y)y in w&&N.call(void 0,w[y],y,e)};
g.Ok=function(e,N,y){N=W_(e,N,y);return N<0?null:typeof e==="string"?e.charAt(N):e[N]};
W_=function(e,N,y){for(var w=e.length,E=typeof e==="string"?e.split(""):e,A=0;A<w;A++)if(A in E&&N.call(y,E[A],A,e))return A;return-1};
g.Rw=function(e,N,y){var w=e.length,E=typeof e==="string"?e.split(""):e;for(--w;w>=0;w--)if(w in E&&N.call(y,E[w],w,e))return w;return-1};
g.Gw=function(e,N){return LF3(e,N)>=0};
sPJ=function(e){if(!Array.isArray(e))for(var N=e.length-1;N>=0;N--)delete e[N];e.length=0};
g.Lq=function(e,N){N=LF3(e,N);var y;(y=N>=0)&&g.Uk(e,N);return y};
g.Uk=function(e,N){return Array.prototype.splice.call(e,N,1).length==1};
g.sk=function(e,N){N=W_(e,N);N>=0&&g.Uk(e,N)};
a1M=function(e,N){var y=0;U3M(e,function(w,E){N.call(void 0,w,E,e)&&g.Uk(e,E)&&y++})};
g.aw=function(e){return Array.prototype.concat.apply([],arguments)};
g.eE=function(e){var N=e.length;if(N>0){for(var y=Array(N),w=0;w<N;w++)y[w]=e[w];return y}return[]};
g.Nd=function(e,N){for(var y=1;y<arguments.length;y++){var w=arguments[y];if(g.KM(w)){var E=e.length||0,A=w.length||0;e.length=E+A;for(var T=0;T<A;T++)e[E+T]=w[T]}else e.push(w)}};
g.ES=function(e,N,y,w){Array.prototype.splice.apply(e,yh(arguments,1))};
yh=function(e,N,y){return arguments.length<=2?Array.prototype.slice.call(e,N):Array.prototype.slice.call(e,N,y)};
eX5=function(e){for(var N=0,y=0,w={};y<e.length;){var E=e[y++],A=g.W5(E)?"o"+g.RP(E):(typeof E).charAt(0)+E;Object.prototype.hasOwnProperty.call(w,A)||(w[A]=!0,e[N++]=E)}e.length=N};
g.T7=function(e,N,y){return N5P(e,y||AO,!1,N)};
JO=function(e,N){return N5P(e,N,!0)};
N5P=function(e,N,y,w){for(var E=0,A=e.length,T;E<A;){var p=E+(A-E>>>1),C=void 0;y?C=N.call(void 0,e[p],p,e):C=N(w,e[p]);C>0?E=p+1:(A=p,T=!C)}return T?E:-E-1};
g.pf=function(e,N){e.sort(N||AO)};
yVM=function(e,N){var y=AO;g.pf(e,function(w,E){return y(N(w),N(E))})};
g.Cf=function(e,N,y){if(!g.KM(e)||!g.KM(N)||e.length!=N.length)return!1;var w=e.length;y=y||w_5;for(var E=0;E<w;E++)if(!y(e[E],N[E]))return!1;return!0};
AO=function(e,N){return e>N?1:e<N?-1:0};
w_5=function(e,N){return e===N};
g.rr=function(e,N,y){y=g.T7(e,N,y);y<0&&g.ES(e,-(y+1),0,N)};
g.l7=function(e,N,y){var w={};(0,g.$R)(e,function(E,A){w[N.call(y,E,A,e)]=E});
return w};
Ews=function(e){for(var N=[],y=0;y<e;y++)N[y]="";return N};
AVs=function(e,N){N=Array.prototype.splice.call(e,N,1);Array.prototype.splice.call(e,0,0,N[0])};
Fo=function(e){Fo[" "](e);return e};
T50=function(e,N){try{return Fo(e[N]),!0}catch(y){}return!1};
p__=function(e,N){var y=JV9;return Object.prototype.hasOwnProperty.call(y,e)?y[e]:y[e]=N(e)};
g.SE=function(e){return p__(e,function(){return g.v_(C_1,e)>=0})};
g.oN=function(e,N){N===void 0&&(N=0);rV9();N=$Ms[N];for(var y=Array(Math.floor(e.length/3)),w=N[64]||"",E=0,A=0;E<e.length-2;E+=3){var T=e[E],p=e[E+1],C=e[E+2],r=N[T>>2];T=N[(T&3)<<4|p>>4];p=N[(p&15)<<2|C>>6];C=N[C&63];y[A++]=""+r+T+p+C}r=0;C=w;switch(e.length-E){case 2:r=e[E+1],C=N[(r&15)<<2]||w;case 1:e=e[E],y[A]=""+N[e>>2]+N[(e&3)<<4|r>>4]+C+w}return y.join("")};
g.b7=function(e,N){if(YkF&&!N)e=g.xJ.btoa(e);else{for(var y=[],w=0,E=0;E<e.length;E++){var A=e.charCodeAt(E);A>255&&(y[w++]=A&255,A>>=8);y[w++]=A}e=g.oN(y,N)}return e};
lZn=function(e){var N=[];M01(e,function(y){N.push(y)});
return N};
hO=function(e){var N=e.length,y=N*3/4;y%3?y=Math.floor(y):g.B_("=.",e[N-1])&&(y=g.B_("=.",e[N-2])?y-2:y-1);var w=new Uint8Array(y),E=0;M01(e,function(A){w[E++]=A});
return E!==y?w.subarray(0,E):w};
M01=function(e,N){function y(C){for(;w<e.length;){var r=e.charAt(w++),Y=cm[r];if(Y!=null)return Y;if(!g.kw(r))throw Error("Unknown base64 encoding at char: "+r);}return C}
rV9();for(var w=0;;){var E=y(-1),A=y(0),T=y(64),p=y(64);if(p===64&&E===-1)break;N(E<<2|A>>4);T!=64&&(N(A<<4&240|T>>2),p!=64&&N(T<<6&192|p))}};
rV9=function(){if(!cm){cm={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),N=["+/=","+/","-_=","-_.","-_"],y=0;y<5;y++){var w=e.concat(N[y].split(""));$Ms[y]=w;for(var E=0;E<w.length;E++){var A=w[E];cm[A]===void 0&&(cm[A]=E)}}}};
SkM=function(e){if(!FfP)return g.oN(e);for(var N="",y=0,w=e.length-10240;y<w;)N+=String.fromCharCode.apply(null,e.subarray(y,y+=10240));N+=String.fromCharCode.apply(null,y?e.subarray(y):e);return btoa(N)};
bqM=function(e){return ow0[e]||""};
cV_=function(e){if(!FfP)return hO(e);hX9.test(e)&&(e=e.replace(hX9,bqM));e=atob(e);for(var N=new Uint8Array(e.length),y=0;y<e.length;y++)N[y]=e.charCodeAt(y);return N};
kR=function(e){return kw9&&e!=null&&e instanceof Uint8Array};
Bm=function(e,N){B5F(N);this.J=e;if(e!=null&&e.length===0)throw Error("ByteString should be constructed with non-empty values");};
Pm=function(){return X_F||(X_F=new Bm(null,Xo))};
IN=function(e){return new Uint8Array(dr(e)||0)};
dr=function(e){B5F(Xo);var N=e.J;N=N==null||kR(N)?N:typeof N==="string"?cV_(N):null;return N==null?N:e.J=N};
B5F=function(e){if(e!==Xo)throw Error("illegal external caller");};
P_n=function(e,N){e.__closure__error__context__984382||(e.__closure__error__context__984382={});e.__closure__error__context__984382.severity=N};
vm=function(e){e=Error(e);P_n(e,"warning");return e};
z7=function(e,N,y,w){y=y===void 0?!1:y;e=typeof Symbol==="function"&&typeof Symbol()==="symbol"?(w===void 0?0:w)&&Symbol.for&&e?Symbol.for(e):e!=null?Symbol(e):Symbol():N;y&&dMM.add(e);return e};
gr=function(e,N){i7||Dy in e||IZs(e,vw5);e[Dy]|=N};
Vh=function(e,N){i7||Dy in e||IZs(e,vw5);e[Dy]=N};
zXH=function(e,N){Vh(N,(e|0)&-30975)};
ff=function(e,N){Vh(N,(e|34)&-30941)};
tO=function(){return typeof BigInt==="function"};
u7=function(e){return Array.prototype.slice.call(e)};
qd=function(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)&&e.constructor===Object};
iqM=function(e,N){if(e!=null)if(typeof e==="string")e=e?new Bm(e,Xo):Pm();else if(e.constructor!==Bm)if(kR(e))e=e.length?new Bm(new Uint8Array(e),Xo):Pm();else{if(!N)throw Error();e=void 0}return e};
jE=function(e){if(e&2)throw Error();};
nf=function(e,N){if(typeof N!=="number"||N<0||N>=e.length)throw Error();};
mW=function(e){var N=cnJ(Qh);return N?e[N]:void 0};
Hm=function(e){e.Amh=!0;return e};
Wm=function(e){var N=e;if(DM_(N)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(N))throw Error(String(N));}else if(gwM(N)&&!Number.isSafeInteger(N))throw Error(String(N));return Kf?BigInt(e):e=V0M(e)?e?"1":"0":DM_(e)?e.trim()||"0":String(e)};
fZs=function(e,N){if(e.length>N.length)return!1;if(e.length<N.length||e===N)return!0;for(var y=0;y<e.length;y++){var w=e[y],E=N[y];if(w>E)return!1;if(w<E)return!0}};
G7=function(e){var N=e>>>0;OS=N;RN=(e-N)/4294967296>>>0};
aN=function(e){if(e<0){G7(0-e);var N=g.c(US(OS,RN));e=N.next().value;N=N.next().value;OS=e>>>0;RN=N>>>0}else G7(e)};
Ng=function(e,N){var y=N*4294967296+(e>>>0);return Number.isSafeInteger(y)?y:e4(e,N)};
t0F=function(e,N){var y=N&2147483648;y&&(e=~e+1>>>0,N=~N>>>0,e==0&&(N=N+1>>>0));e=Ng(e,N);return typeof e==="number"?y?-e:e:y?"-"+e:e};
e4=function(e,N){N>>>=0;e>>>=0;if(N<=2097151)var y=""+(4294967296*N+e);else tO()?y=""+(BigInt(N)<<BigInt(32)|BigInt(e)):(y=(e>>>24|N<<8)&16777215,N=N>>16&65535,e=(e&16777215)+y*6777216+N*6710656,y+=N*8147497,N*=2,e>=1E7&&(y+=e/1E7>>>0,e%=1E7),y>=1E7&&(N+=y/1E7>>>0,y%=1E7),y=N+uFJ(y)+uFJ(e));return y};
uFJ=function(e){e=String(e);return"0000000".slice(e.length)+e};
qk_=function(){var e=OS,N=RN;N&2147483648?tO()?e=""+(BigInt(N|0)<<BigInt(32)|BigInt(e>>>0)):(N=g.c(US(e,N)),e=N.next().value,N=N.next().value,e="-"+e4(e,N)):e=e4(e,N);return e};
yF=function(e){if(e.length<16)aN(Number(e));else if(tO())e=BigInt(e),OS=Number(e&BigInt(4294967295))>>>0,RN=Number(e>>BigInt(32)&BigInt(4294967295));else{var N=+(e[0]==="-");RN=OS=0;for(var y=e.length,w=0+N,E=(y-N)%6+N;E<=y;w=E,E+=6)w=Number(e.slice(w,E)),RN*=1E6,OS=OS*1E6+w,OS>=4294967296&&(RN+=Math.trunc(OS/4294967296),RN>>>=0,OS>>>=0);N&&(N=g.c(US(OS,RN)),e=N.next().value,N=N.next().value,OS=e,RN=N)}};
US=function(e,N){N=~N;e?e=~e+1:N+=1;return[e,N]};
wa=function(e,N){throw Error(N===void 0?"unexpected value "+e+"!":N);};
Er=function(e){if(e!=null&&typeof e!=="number")throw Error("Value of float/double field must be a number, found "+typeof e+": "+e);return e};
ZqF=function(e){return e.displayName||e.name||"unknown type name"};
AK=function(e){if(e!=null&&typeof e!=="boolean")throw Error("Expected boolean but got "+mF(e)+": "+e);return e};
JK=function(e){switch(typeof e){case "bigint":return!0;case "number":return Ty(e);case "string":return xMM.test(e);default:return!1}};
jw0=function(e){if(typeof e!=="number")throw vm("int32");if(!Ty(e))throw vm("int32");return e|0};
pm=function(e){return e==null?e:jw0(e)};
Cm=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Ty(e)?e|0:void 0};
ra=function(e){if(e==null)return e;if(typeof e==="string"&&e)e=+e;else if(typeof e!=="number")return;return Ty(e)?e>>>0:void 0};
Qw3=function(e){var N=0;N=N===void 0?0:N;if(!JK(e))throw vm("int64");var y=typeof e;switch(N){case 4096:switch(y){case "string":return $b(e);case "bigint":return String(Yb(64,e));default:return lc(e)}case 8192:switch(y){case "string":return N=Ft(Number(e)),S4(N)?e=Wm(N):(N=e.indexOf("."),N!==-1&&(e=e.substring(0,N)),e=tO()?Wm(Yb(64,BigInt(e))):Wm(nw_(e))),e;case "bigint":return Wm(Yb(64,e));default:return S4(e)?Wm(oF(e)):Wm(lc(e))}case 0:switch(y){case "string":return $b(e);case "bigint":return Wm(Yb(64,
e));default:return oF(e)}default:return wa(N,"Unknown format requested type for int64")}};
bc=function(e){return e==null?e:Qw3(e)};
mMn=function(e){if(e[0]==="-")return!1;var N=e.length;return N<20?!0:N===20&&Number(e.substring(0,6))<184467};
HqH=function(e){var N=e.length;return e[0]==="-"?N<20?!0:N===20&&Number(e.substring(0,7))>-922337:N<19?!0:N===19&&Number(e.substring(0,6))<922337};
Kf5=function(e){if(e<0){aN(e);var N=e4(OS,RN);e=Number(N);return S4(e)?e:N}N=String(e);if(mMn(N))return N;aN(e);return Ng(OS,RN)};
nw_=function(e){if(HqH(e))return e;yF(e);return qk_()};
oF=function(e){JK(e);e=Ft(e);S4(e)||(aN(e),e=t0F(OS,RN));return e};
lc=function(e){JK(e);e=Ft(e);if(S4(e))e=String(e);else{var N=String(e);HqH(N)?e=N:(aN(e),e=qk_())}return e};
$b=function(e){JK(e);var N=Ft(Number(e));if(S4(N))return String(N);N=e.indexOf(".");N!==-1&&(e=e.substring(0,N));return nw_(e)};
WfF=function(e){if(e==null)return e;if(typeof e==="bigint")return hK(e)?e=Number(e):(e=Yb(64,e),e=hK(e)?Number(e):String(e)),e;if(JK(e))return typeof e==="number"?oF(e):$b(e)};
OqE=function(e){if(e==null)return e;var N=typeof e;if(N==="bigint")return String(Yb(64,e));if(JK(e)){if(N==="string")return $b(e);if(N==="number")return oF(e)}};
GwM=function(e){if(e==null)return e;var N=typeof e;if(N==="bigint")return String(RX_(64,e));if(JK(e)){if(N==="string")return JK(e),N=Ft(Number(e)),S4(N)&&N>=0?e=String(N):(N=e.indexOf("."),N!==-1&&(e=e.substring(0,N)),mMn(e)||(yF(e),e=e4(OS,RN))),e;if(N==="number")return JK(e),e=Ft(e),e>=0&&S4(e)?e:Kf5(e)}};
UM9=function(e){if(e==null||typeof e=="string"||kR(e)||e instanceof Bm)return e};
LfE=function(e){if(typeof e!=="string")throw Error();return e};
cW=function(e){if(e!=null&&typeof e!=="string")throw Error();return e};
kb=function(e){return e==null||typeof e==="string"?e:void 0};
BW=function(e,N){if(!(e instanceof N))throw Error("Expected instanceof "+ZqF(N)+" but got "+(e&&ZqF(e.constructor)));return e};
sw3=function(e,N,y){if(e!=null&&typeof e==="object"&&e.Av===Xt)return e;if(Array.isArray(e)){var w=e[Dy]|0,E=w;E===0&&(E|=y&32);E|=y&2;E!==w&&Vh(e,E);return new N(e)}};
aZE=function(e){return e};
PW=function(e){return e};
wm_=function(e,N,y,w){return ej9(e,N,y,w,NrH,yO5)};
Tr9=function(e,N,y,w){return ej9(e,N,y,w,ERF,AO5)};
ej9=function(e,N,y,w,E,A){if(!y.length&&!w)return 0;for(var T=0,p=0,C=0,r=0,Y=0,M=y.length-1;M>=0;M--){var l=y[M];w&&M===y.length-1&&l===w||(r++,l!=null&&C++)}if(w)for(var F in w)M=+F,isNaN(M)||(Y+=JO9(M),p++,M>T&&(T=M));r=E(r,C)+A(p,T,Y);F=C;M=p;l=T;for(var S=Y,k=y.length-1;k>=0;k--){var X=y[k];if(!(X==null||w&&k===y.length-1&&X===w)){X=k-N;var d=E(X,F)+A(M,l,S);d<r&&(e=1+X,r=d);M++;F--;S+=JO9(X);l=Math.max(l,X)}}N=E(0,0)+A(M,l,S);N<r&&(e=0,r=N);if(w){M=p;l=T;S=Y;F=C;for(var v in w)w=+v,isNaN(w)||
w>=1024||(M--,F++,S-=v.length,T=E(w,F)+A(M,l,S),T<r&&(e=1+w,r=T))}return e};
AO5=function(e,N,y){return y+e*3+(e>1?e-1:0)};
ERF=function(e,N){return(e>1?e-1:0)+(e-N)*4};
yO5=function(e,N){return e==0?0:9*Math.max(1<<32-Math.clz32(e+e/2-1),4)<=N?e==0?0:e<4?100+(e-1)*16:e<6?148+(e-4)*16:e<12?244+(e-6)*16:e<22?436+(e-12)*19:e<44?820+(e-22)*17:52+32*e:40+4*N};
NrH=function(e){return 40+4*e};
JO9=function(e){return e>=100?e>=1E4?Math.ceil(Math.log10(1+e)):e<1E3?3:4:e<10?1:2};
pmH=function(e,N,y){var w=u7(e),E=w.length,A=N&256?w[E-1]:void 0;E+=A?-1:0;for(N=N&512?1:0;N<E;N++)w[N]=y(w[N]);if(A){N=w[N]={};for(var T in A)N[T]=y(A[T])}(e=mW(e))&&(w[Qh]=u7(e));return w};
C75=function(e,N,y,w,E){if(e!=null){if(Array.isArray(e)){var A=e[Dy]|0;return e.length===0&&A&1?void 0:E&&A&2?e:da(e,N,y,w!==void 0,E)}return N(e,w)}};
da=function(e,N,y,w,E){var A=w||y?e[Dy]|0:0,T=w?!!(A&32):void 0;w=u7(e);for(var p=0,C=w.length,r=0;r<C;r++){var Y=w[r];if(r===C-1&&qd(Y)){var M=void 0;var l=N,F=y,S=T,k=E,X=void 0;for(M in Y){var d=C75(Y[M],l,F,S,k);if(d!=null){var v=void 0;((v=X)!=null?v:X={})[M]=d}}M=X}else M=C75(w[r],N,y,T,E);w[r]=M;M!=null&&(p=r+1)}p<C&&(w.length=p);y&&((e=mW(e))&&(w[Qh]=u7(e)),y(A,w));return w};
$dJ=function(e){switch(typeof e){case "number":return Number.isFinite(e)?e:""+e;case "bigint":return hK(e)?Number(e):""+e;case "boolean":return e?1:0;case "object":if(kR(e))return SkM(e);if(e.Av===Xt)return rOH(e);if(e instanceof Bm){var N=e.J;return N==null?"":typeof N==="string"?N:e.J=SkM(N)}return}return e};
vW=function(e,N){N&&(IF=N===PW||N!==aZE&&N!==wm_&&N!==Tr9?PW:N);try{return rOH(e)}finally{IF=void 0}};
rOH=function(e){var N=e.wT;e=da(N,$dJ,void 0,void 0,!1);var y=N[Dy]|0;if((N=e.length)&&!(y&512)){var w=e[N-1],E=!1;qd(w)?(N--,E=!0):w=void 0;var A,T=(A=IF)!=null?A:PW;A=y&512?0:-1;y=N-A;T=T(y,A,e,w);w&&(e[N]=void 0);if(y<T&&w){y=!0;for(var p in w){var C=+p;C<=T?(E=C+A,e[E]=w[p],N=Math.max(E+1,N),E=!1,delete w[p]):y=!1}y&&(w=void 0)}for(y=N-1;N>0;y=N-1)if(p=e[y],p==null)N--,E=!0;else if(y-=A,y>=T)E=void 0,((E=w)!=null?E:w={})[y]=p,N--,E=!0;else break;E&&(e.length=N);w&&e.push(w)}return e};
ME9=function(e){switch(typeof e){case "boolean":return zy||(zy=[0,void 0,!0]);case "number":return e>0?void 0:e===0?YSs||(YSs=[0,void 0]):[-e,void 0];case "string":return[0,e];case "object":return e}};
Dd=function(e,N,y){e=ic(e,N[0],N[1],y?1:2);N!==zy&&y&&gr(e,16384);return e};
ic=function(e,N,y,w){if(e==null){var E=96;y?(e=[y],E|=512):e=[];N&&(E=E&-33521665|(N&1023)<<15)}else{if(!Array.isArray(e))throw Error("narr");E=e[Dy]|0;if(E&2048)throw Error("farr");if(E&64)return e;w===1||w===2||(E|=64);if(y&&(E|=512,y!==e[0]))throw Error("mid");a:{y=e;if(w=y.length){var A=w-1;if(qd(y[A])){E|=256;N=A-(E&512?0:-1);if(N>=1024)throw Error("pvtlmt");E=E&-33521665|(N&1023)<<15;break a}}if(N){N=Math.max(N,w-(E&512?0:-1));if(N>1024)throw Error("spvt");E=E&-33521665|(N&1023)<<15}}}Vh(e,
E);return e};
lyJ=function(e,N,y){y=y===void 0?ff:y;if(e!=null){if(kw9&&e instanceof Uint8Array)return N?e:new Uint8Array(e);if(Array.isArray(e)){var w=e[Dy]|0;if(w&2)return e;N&&(N=w===0||!!(w&32)&&!(w&64||!(w&16)));return N?(Vh(e,(w|34)&-12293),e):da(e,lyJ,w&4?ff:y,!0,!0)}e.Av===Xt&&(y=e.wT,w=y[Dy]|0,e=w&2?e:new e.constructor(fm(y,w,!0)));return e}};
fm=function(e,N,y){var w=y||N&2?ff:zXH,E=!!(N&32);e=pmH(e,N,function(A){return lyJ(A,E,w)});
gr(e,32|(y?2:0));return e};
tK=function(e){var N=e.wT,y=N[Dy]|0;return y&2?new e.constructor(fm(N,y,!1)):e};
qg=function(e,N){e=e.wT;return uc(e,e[Dy]|0,N)};
uc=function(e,N,y,w){if(y===-1)return null;var E=y+(N&512?0:-1),A=e.length-1;if(E>=A&&N&256)return e[A][y];if(w&&N&256&&(N=e[A][y],N!=null)){if(e[E]!=null&&Zd!=null){var T;e=(T=FW5)!=null?T:FW5={};T=e[Zd]||0;T>=4||(e[Zd]=T+1,T=Error(),P_n(T,"incident"),b_(T))}return N}if(E<=A)return e[E]};
j4=function(e,N,y){var w=e.wT,E=w[Dy]|0;jE(E);xb(w,E,N,y);return e};
xb=function(e,N,y,w){var E=N&512?0:-1,A=y+E,T=e.length-1;if(A>=T&&N&256)return e[T][y]=w,N;if(A<=T)return e[A]=w,N&256&&(e=e[T],y in e&&delete e[y]),N;w!==void 0&&(T=N>>15&1023||536870912,y>=T?w!=null&&(A={},e[T+E]=(A[y]=w,A),N|=256,Vh(e,N)):e[A]=w);return N};
WW=function(e,N,y,w,E,A){var T=e.wT;e=T[Dy]|0;w=2&e?1:w;A=!!A;E=nm(T,e,N,E);var p=E[Dy]|0;if(!(4&p)){4&p&&(E=u7(E),p=QF(p,e),e=xb(T,e,N,E));for(var C=0,r=0;C<E.length;C++){var Y=y(E[C]);Y!=null&&(E[r++]=Y)}r<C&&(E.length=r);p=mC(p,e);y=(p|20)&-4097;p=y&=-8193;Vh(E,p);2&p&&Object.freeze(E)}w===1||w===4&&32&p?HW(p)||(A=p,p|=2,p!==A&&Vh(E,p),Object.freeze(E)):(w===2&&HW(p)&&(E=u7(E),p=QF(p,e),p=Km(p,e,A),Vh(E,p),e=xb(T,e,N,E)),HW(p)||(N=p,p=Km(p,e,A),p!==N&&Vh(E,p)));return E};
nm=function(e,N,y,w){e=uc(e,N,y,w);return Array.isArray(e)?e:Or};
mC=function(e,N){e===0&&(e=QF(e,N));return e|1};
HW=function(e){return!!(2&e)&&!!(4&e)||!!(2048&e)};
SSH=function(e){return iqM(e,!0)};
RF=function(e,N){e=e.wT;var y=e[Dy]|0,w=uc(e,y,N),E=SSH(w);E!=null&&E!==w&&xb(e,y,N,E);return E==null?Pm():E};
oRM=function(e,N,y){var w=e.wT,E=w[Dy]|0;jE(E);if(N==null)return xb(w,E,3),e;if(!Array.isArray(N))throw vm();var A=N[Dy]|0,T=A,p=HW(A),C=p||Object.isFrozen(N);p||(A=0);C||(N=u7(N),T=0,A=QF(A,E),A=Km(A,E,!0),C=!1);A|=21;p=4&A?4096&A?4096:8192&A?8192:0:void 0;p=p!=null?p:0;for(var r=0;r<N.length;r++){var Y=N[r],M=y(Y,p);Object.is(Y,M)||(C&&(N=u7(N),T=0,A=QF(A,E),A=Km(A,E,!0),C=!1),N[r]=M)}A!==T&&(C&&(N=u7(N),A=QF(A,E),A=Km(A,E,!0)),Vh(N,A));xb(w,E,3,N);return e};
Gy=function(e,N,y,w){var E=e.wT,A=E[Dy]|0;jE(A);xb(E,A,N,(w==="0"?Number(y)===0:y===w)?void 0:y);return e};
Ur=function(e,N,y,w,E){jE(N);var A=!!(64&N)||!(16384&N);E=nm(e,N,y,E);var T=E!==Or;if(A||!T){var p=A=T?E[Dy]|0:0;if(!T||2&p||HW(p)||4&p&&!(32&p))E=u7(E),p=QF(p,N),N=xb(e,N,y,E);p=mC(p,N)&-13;p=Km(w?p&-17:p|16,N,!0);p!==A&&Vh(E,p)}return E};
en=function(e,N,y,w){var E=e.wT,A=E[Dy]|0;jE(A);if(w==null){var T=Lm(E);if(sr(T,E,A,y)===N)T.set(y,0);else return e}else A=aF(E,A,y,N);xb(E,A,N,w);return e};
Nq=function(e,N,y,w){var E=e[Dy]|0;E=aF(e,E,y,N);xb(e,E,N,w)};
yH=function(e,N){e=e.wT;return sr(Lm(e),e,e[Dy]|0,N)};
Lm=function(e){if(i7){var N;return(N=e[wP])!=null?N:e[wP]=new Map}if(wP in e)return e[wP];N=new Map;Object.defineProperty(e,wP,{value:N});return N};
aF=function(e,N,y,w){y.includes(w);var E=Lm(e),A=sr(E,e,N,y);A!==w&&(A&&(N=xb(e,N,A)),E.set(y,w));return N};
sr=function(e,N,y,w){var E=e.get(w);if(E!=null)return E;for(var A=E=0;A<w.length;A++){var T=w[A];uc(N,y,T)!=null&&(E!==0&&(y=xb(N,y,E)),E=T)}e.set(w,E);return E};
EW=function(e,N,y,w){var E=e[Dy]|0;w=uc(e,E,y,w);var A;if(w!=null&&w.Av===Xt)return N=tK(w),N!==w&&xb(e,E,y,N),N.wT;if(Array.isArray(w)){var T=w[Dy]|0;T&2?A=Dd(fm(w,T,!1),N,!0):T&64?A=w:A=Dd(A,N,!0)}else A=Dd(void 0,N,!0);A!==w&&xb(e,E,y,A);return A};
AQ=function(e,N,y,w){e=e.wT;var E=e[Dy]|0;w=uc(e,E,y,w);N=sw3(w,N,E);N!==w&&N!=null&&xb(e,E,y,N);return N};
Tx=function(e,N,y,w){N=AQ(e,N,y,w===void 0?!1:w);if(N==null)return N;e=e.wT;w=e[Dy]|0;if(!(w&2)){var E=tK(N);E!==N&&(N=E,xb(e,w,y,N))}return N};
bfE=function(e,N,y,w,E,A,T){e=e.wT;var p=!!(2&N),C=p?1:E;A=!!A;T&&(T=!p);E=nm(e,N,w);var r=E[Dy]|0;p=!!(4&r);if(!p){r=mC(r,N);var Y=E,M=N,l=!!(2&r);l&&(M|=2);for(var F=!l,S=!0,k=0,X=0;k<Y.length;k++){var d=sw3(Y[k],y,M);if(d instanceof y){if(!l){var v=!!((d.wT[Dy]|0)&2);F&&(F=!v);S&&(S=v)}Y[X++]=d}}X<k&&(Y.length=X);r|=4;r=S?r|16:r&-17;r=F?r|8:r&-9;Vh(Y,r);l&&Object.freeze(Y)}if(T&&!(8&r||!E.length&&(C===1||C===4&&32&r))){HW(r)&&(E=u7(E),r=QF(r,N),N=xb(e,N,w,E));y=E;T=r;for(Y=0;Y<y.length;Y++)r=y[Y],
M=tK(r),r!==M&&(y[Y]=M);T|=8;T=y.length?T&-17:T|16;Vh(y,T);r=T}C===1||C===4&&32&r?HW(r)||(N=r,r|=!E.length||16&r&&(!p||32&r)?2:2048,r!==N&&Vh(E,r),Object.freeze(E)):(C===2&&HW(r)&&(E=u7(E),r=QF(r,N),r=Km(r,N,A),Vh(E,r),N=xb(e,N,w,E)),HW(r)||(w=r,r=Km(r,N,A),r!==w&&Vh(E,r)));return E};
Ek=function(e,N,y){var w=e.wT[Dy]|0;return bfE(e,w,N,y,void 0===hjM?2:4,!1,!(2&w))};
JQ=function(e,N,y,w){w!=null?BW(w,N):w=void 0;return j4(e,y,w)};
pB=function(e,N,y,w){var E=e.wT,A=E[Dy]|0;jE(A);if(w==null)return xb(E,A,y),e;if(!Array.isArray(w))throw vm();for(var T=w[Dy]|0,p=T,C=HW(T),r=C||Object.isFrozen(w),Y=!0,M=!0,l=0;l<w.length;l++){var F=w[l];BW(F,N);C||(F=!!((F.wT[Dy]|0)&2),Y&&(Y=!F),M&&(M=F))}C||(T=Y?13:5,T=M?T|16:T&-17);r&&T===p||(w=u7(w),p=0,T=QF(T,A),T=Km(T,A,!0));T!==p&&Vh(w,T);xb(E,A,y,w);return e};
QF=function(e,N){e=(2&N?e|2:e&-3)|32;return e&=-2049};
Km=function(e,N,y){32&N&&y||(e&=-33);return e};
rP=function(e,N,y,w){var E=e.wT[Dy]|0;jE(E);e=bfE(e,E,y,N,2,!0);w=w!=null?BW(w,y):new y;e.push(w);e[Dy]=(w.wT[Dy]|0)&2?e[Dy]&-9:e[Dy]&-17};
cO9=function(e){e=qg(e,1);var N=N===void 0?!1:N;var y=typeof e;N=e==null?e:y==="bigint"?String(Yb(64,e)):JK(e)?y==="string"?$b(e):N?lc(e):oF(e):void 0;return N};
$f=function(e,N){return kb(qg(e,N))};
Tw=function(e,N,y){y=y===void 0?0:y;var w;return(w=Cm(qg(e,N)))!=null?w:y};
Yf=function(e,N){var y=y===void 0?0:y;var w;return(w=ra(qg(e,N)))!=null?w:y};
Mq=function(e,N){var y=y===void 0?"":y;var w;return(w=$f(e,N))!=null?w:y};
lV=function(e,N){var y=0;y=y===void 0?0:y;e=qg(e,N);e=e==null?e:Ty(e)?e|0:void 0;return e!=null?e:y};
FX=function(e,N,y){return j4(e,N,bc(y))};
Sn=function(e,N,y){return j4(e,N,cW(y))};
oL=function(e,N,y){return Gy(e,N,cW(y),"")};
bV=function(e,N,y){if(y!=null){if(!Ty(y))throw vm("enum");y|=0}return j4(e,N,y)};
k7_=function(e,N){return Error("Invalid wire type: "+e+" (at position "+N+")")};
hQ=function(){return Error("Failed to read varint, encoding is invalid.")};
BrH=function(e,N){return Error("Tried to read past the end of the data "+N+" > "+e)};
cy=function(e){if(typeof e==="string")return{buffer:cV_(e),zv:!1};if(Array.isArray(e))return{buffer:new Uint8Array(e),zv:!1};if(e.constructor===Uint8Array)return{buffer:e,zv:!1};if(e.constructor===ArrayBuffer)return{buffer:new Uint8Array(e),zv:!1};if(e.constructor===Bm)return{buffer:dr(e)||new Uint8Array(0),zv:!0};if(e instanceof Uint8Array)return{buffer:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),zv:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");
};
XmM=function(e,N){this.N=null;this.L=!1;this.J=this.K=this.j=0;this.init(e,void 0,void 0,N)};
XX=function(e){var N=0,y=0,w=0,E=e.N,A=e.J;do{var T=E[A++];N|=(T&127)<<w;w+=7}while(w<32&&T&128);w>32&&(y|=(T&127)>>4);for(w=3;w<32&&T&128;w+=7)T=E[A++],y|=(T&127)<<w;By(e,A);if(T<128)return t0F(N>>>0,y>>>0);throw hQ();};
By=function(e,N){e.J=N;if(N>e.K)throw BrH(e.K,N);};
Py=function(e){var N=e.N,y=e.J,w=N[y++],E=w&127;if(w&128&&(w=N[y++],E|=(w&127)<<7,w&128&&(w=N[y++],E|=(w&127)<<14,w&128&&(w=N[y++],E|=(w&127)<<21,w&128&&(w=N[y++],E|=w<<28,w&128&&N[y++]&128&&N[y++]&128&&N[y++]&128&&N[y++]&128&&N[y++]&128)))))throw hQ();By(e,y);return E};
dP=function(e){var N=e.N,y=e.J,w=N[y+0],E=N[y+1],A=N[y+2];N=N[y+3];By(e,e.J+4);return(w<<0|E<<8|A<<16|N<<24)>>>0};
IL=function(e){var N=dP(e);e=dP(e);return Ng(N,e)};
vy=function(e){var N=dP(e),y=dP(e);e=(y>>31)*2+1;var w=y>>>20&2047;N=4294967296*(y&1048575)+N;return w==2047?N?NaN:e*Infinity:w==0?e*4.9E-324*N:e*Math.pow(2,w-1075)*(N+4503599627370496)};
zx=function(e){for(var N=0,y=e.J,w=y+10,E=e.N;y<w;){var A=E[y++];N|=A;if((A&128)===0)return By(e,y),!!(N&127)}throw hQ();};
P79=function(e,N){if(N<0)throw Error("Tried to read a negative byte length: "+N);var y=e.J,w=y+N;if(w>e.K)throw BrH(N,e.K-y);e.J=w;return y};
Iy9=function(e,N){if(N==0)return Pm();var y=P79(e,N);e.oR&&e.L?y=e.N.subarray(y,y+N):(e=e.N,N=y+N,y=y===N?new Uint8Array(0):ddF?e.slice(y,N):new Uint8Array(e.subarray(y,N)));return y.length==0?Pm():new Bm(y,Xo)};
D8=function(e,N){if(iV.length){var y=iV.pop();y.init(e,void 0,void 0,N);e=y}else e=new XmM(e,N);this.J=e;this.K=this.J.J;this.N=this.j=-1;vR9(this,N)};
vR9=function(e,N){N=N===void 0?{}:N;e.AI=N.AI===void 0?!1:N.AI};
zj1=function(e){var N=e.J;if(N.J==N.K)return!1;e.K=e.J.J;var y=Py(e.J)>>>0;N=y>>>3;y&=7;if(!(y>=0&&y<=5))throw k7_(y,e.K);if(N<1)throw Error("Invalid field number: "+N+" (at position "+e.K+")");e.j=N;e.N=y;return!0};
gP=function(e){switch(e.N){case 0:e.N!=0?gP(e):zx(e.J);break;case 1:e=e.J;By(e,e.J+8);break;case 2:if(e.N!=2)gP(e);else{var N=Py(e.J)>>>0;e=e.J;By(e,e.J+N)}break;case 5:e=e.J;By(e,e.J+4);break;case 3:N=e.j;do{if(!zj1(e))throw Error("Unmatched start-group tag: stream EOF");if(e.N==4){if(e.j!=N)throw Error("Unmatched end-group tag");break}gP(e)}while(1);break;default:throw k7_(e.N,e.K);}};
VH=function(e,N,y){var w=e.J.K,E=Py(e.J)>>>0,A=e.J.J+E,T=A-w;T<=0&&(e.J.K=A,y(N,e,void 0,void 0,void 0),T=A-e.J.J);if(T)throw Error("Message parsing ended unexpectedly. Expected to read "+(E+" bytes, instead read "+(E-T)+" bytes, either the data ended unexpectedly or the message misreported its own length"));e.J.J=A;e.J.K=w};
uV=function(e){var N=Py(e.J)>>>0;e=e.J;var y=P79(e,N);e=e.N;if(ifP){var w=e,E;(E=fB)||(E=fB=new TextDecoder("utf-8",{fatal:!0}));N=y+N;w=y===0&&N===w.length?w:w.subarray(y,N);try{var A=E.decode(w)}catch(r){if(tQ===void 0){try{E.decode(new Uint8Array([128]))}catch(Y){}try{E.decode(new Uint8Array([97])),tQ=!0}catch(Y){tQ=!1}}!tQ&&(fB=void 0);throw r;}}else{A=y;N=A+N;y=[];for(var T=null,p,C;A<N;)p=e[A++],p<128?y.push(p):p<224?A>=N?ow():(C=e[A++],p<194||(C&192)!==128?(A--,ow()):y.push((p&31)<<6|C&63)):
p<240?A>=N-1?ow():(C=e[A++],(C&192)!==128||p===224&&C<160||p===237&&C>=160||((E=e[A++])&192)!==128?(A--,ow()):y.push((p&15)<<12|(C&63)<<6|E&63)):p<=244?A>=N-2?ow():(C=e[A++],(C&192)!==128||(p<<28)+(C-144)>>30!==0||((E=e[A++])&192)!==128||((w=e[A++])&192)!==128?(A--,ow()):(p=(p&7)<<18|(C&63)<<12|(E&63)<<6|w&63,p-=65536,y.push((p>>10&1023)+55296,(p&1023)+56320))):ow(),y.length>=8192&&(T=f1F(T,y),y.length=0);A=f1F(T,y)}return A};
DdF=function(e){var N=Py(e.J)>>>0;return Iy9(e.J,N)};
qq=function(e,N,y){this.wT=ic(e,N,y)};
gRs=function(e,N){if(N==null||N=="")return new e;N=JSON.parse(N);if(!Array.isArray(N))throw Error("dnarr");gr(N,32);return new e(N)};
Z8=function(e,N){this.N=e>>>0;this.J=N>>>0};
fyM=function(e){if(!e)return VEJ||(VEJ=new Z8(0,0));if(!/^\d+$/.test(e))return null;yF(e);return new Z8(OS,RN)};
xf=function(e,N){this.N=e>>>0;this.J=N>>>0};
uo5=function(e){if(!e)return tEE||(tEE=new xf(0,0));if(!/^-?\d+$/.test(e))return null;yF(e);return new xf(OS,RN)};
jn=function(){this.J=[]};
nB=function(e,N,y){for(;y>0||N>127;)e.J.push(N&127|128),N=(N>>>7|y<<25)>>>0,y>>>=7;e.J.push(N)};
QH=function(e,N){for(;N>127;)e.J.push(N&127|128),N>>>=7;e.J.push(N)};
qS9=function(e,N){if(N>=0)QH(e,N);else{for(var y=0;y<9;y++)e.J.push(N&127|128),N>>=7;e.J.push(1)}};
mD=function(e,N){e.J.push(N>>>0&255);e.J.push(N>>>8&255);e.J.push(N>>>16&255);e.J.push(N>>>24&255)};
Zf9=function(){this.K=[];this.N=0;this.J=new jn};
Hy=function(e,N){N.length!==0&&(e.K.push(N),e.N+=N.length)};
xdH=function(e,N){KB(e,N,2);N=e.J.end();Hy(e,N);N.push(e.N);return N};
jN0=function(e,N){var y=N.pop();for(y=e.N+e.J.length()-y;y>127;)N.push(y&127|128),y>>>=7,e.N++;N.push(y);e.N++};
KB=function(e,N,y){QH(e.J,N*8+y)};
nRM=function(e,N,y){if(y!=null){switch(typeof y){case "string":fyM(y)}KB(e,N,1);switch(typeof y){case "number":e=e.J;G7(y);mD(e,OS);mD(e,RN);break;case "bigint":y=BigInt.asUintN(64,y);y=new Z8(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));e=e.J;N=y.J;mD(e,y.N);mD(e,N);break;default:y=fyM(y),e=e.J,N=y.J,mD(e,y.N),mD(e,N)}}};
Wy=function(e,N,y){KB(e,N,2);QH(e.J,y.length);Hy(e,e.J.end());Hy(e,y)};
OW=function(){function e(){throw Error();}
Object.setPrototypeOf(e,e.prototype);return e};
Gx=function(e,N,y){this.kd=e;this.K5=N;e=cnJ(RL);this.J=!!e&&y===e||!1};
UW=function(e,N){var y=y===void 0?RL:y;return new Gx(e,N,y)};
md9=function(e,N,y,w,E){N=QNP(N,w);N!=null&&(y=xdH(e,y),E(N,e),jN0(e,y))};
aL=function(e,N,y,w){var E=w[e];if(E)return E;E={};E.hJh=w;E.Op=ME9(w[0]);var A=w[1],T=1;A&&A.constructor===Object&&(E.extensions=A,A=w[++T],typeof A==="function"&&(E.g5=!0,LB!=null||(LB=A),sW!=null||(sW=w[T+1]),A=w[T+=2]));for(var p={};A&&Array.isArray(A)&&A.length&&typeof A[0]==="number"&&A[0]>0;){for(var C=0;C<A.length;C++)p[A[C]]=A;A=w[++T]}for(C=1;A!==void 0;){typeof A==="number"&&(C+=A,A=w[++T]);var r=void 0;if(A instanceof Gx)var Y=A;else Y=HfE,T--;A=void 0;if((A=Y)==null?0:A.J){A=w[++T];r=
w;var M=T;typeof A==="function"&&(A=A(),r[M]=A);r=A}A=w[++T];M=C+1;typeof A==="number"&&A<0&&(M-=A,A=w[++T]);for(;C<M;C++){var l=p[C];r?y(E,C,Y,r,l):N(E,C,Y,l)}}return w[e]=E};
WW_=function(e){return Array.isArray(e)?e[0]instanceof Gx?e:[KWM,e]:[e,void 0]};
QNP=function(e,N){if(e instanceof qq)return e.wT;if(Array.isArray(e))return Dd(e,N,!1)};
e$=function(e,N,y,w){var E=y.kd;e[N]=w?function(A,T,p){return E(A,T,p,w)}:E};
yZ=function(e,N,y,w,E){var A=y.kd,T,p;e[N]=function(C,r,Y){return A(C,r,Y,p||(p=aL(Nm,e$,yZ,w).Op),T||(T=wG(w)),E)}};
wG=function(e){var N=e[OfM];if(N!=null)return N;var y=aL(Nm,e$,yZ,e);N=y.g5?function(w,E){return LB(w,E,y)}:function(w,E){for(var A=w[Dy]|0;zj1(E)&&E.N!=4;){var T=E.j,p=y[T];
if(p==null){var C=y.extensions;C&&(C=C[T])&&(C=RjM(C),C!=null&&(p=y[T]=C))}p!=null&&p(E,w,T)||(p=E,T=p.K,gP(p),p.AI?p=void 0:(C=p.J.J-T,p.J.J=T,p=Iy9(p.J,C)),T=w,p&&((C=T[Qh])?C.push(p):T[Qh]=[p]))}A&16384&&gr(w,34);return!0};
return e[OfM]=N};
RjM=function(e){e=WW_(e);var N=e[0].kd;if(e=e[1]){var y=wG(e),w=aL(Nm,e$,yZ,e).Op;return function(E,A,T){return N(E,A,T,w,y)}}return N};
EK=function(e,N,y){e[N]=y.K5};
TJ=function(e,N,y,w){var E,A,T=y.K5;e[N]=function(p,C,r){return T(p,C,r,A||(A=aL(At,EK,TJ,w).Op),E||(E=G7M(w)))}};
G7M=function(e){var N=e[UdP];if(!N){var y=aL(At,EK,TJ,e);N=function(w,E){return LWJ(w,E,y)};
e[UdP]=N}return N};
LWJ=function(e,N,y){for(var w=e[Dy]|0,E=w&512?0:-1,A=e.length,T=A+(w&256?-1:0),p=w&512?1:0;p<T;p++){var C=e[p];if(C!=null){var r=p-E,Y=sN5(y,r);Y&&Y(N,C,r)}}if(w&256){w=e[A-1];for(var M in w)E=+M,Number.isNaN(E)||(A=w[E],A!=null&&(T=sN5(y,E))&&T(N,A,E))}if(e=mW(e))for(Hy(N,N.J.end()),y=0;y<e.length;y++)Hy(N,dr(e[y])||new Uint8Array(0))};
sN5=function(e,N){var y=e[N];if(y)return y;if(y=e.extensions)if(y=y[N]){y=WW_(y);var w=y[0].K5;if(y=y[1]){var E=G7M(y),A=aL(At,EK,TJ,y).Op;y=e.g5?sW(A,E):function(T,p,C){return w(T,p,C,A,E)}}else y=w;
return e[N]=y}};
Jt=function(e,N,y){if(Array.isArray(N)){var w=N[Dy]|0;if(w&4)return N;for(var E=0,A=0;E<N.length;E++){var T=e(N[E]);T!=null&&(N[A++]=T)}A<E&&(N.length=A);y&&(Vh(N,(w|5)&-12289),w&2&&Object.freeze(N));return N}};
py=function(e,N,y){return new Gx(e,N,y)};
Cy=function(e,N,y){return new Gx(e,N,y)};
rG=function(e,N,y){xb(e,e[Dy]|0,N,y)};
$x=function(e,N,y){N=N==null||typeof N==="number"?N:N==="NaN"||N==="Infinity"||N==="-Infinity"?Number(N):void 0;N!=null&&(KB(e,y,1),e=e.J,y=ay5||(ay5=new DataView(new ArrayBuffer(8))),y.setFloat64(0,+N,!0),OS=y.getUint32(0,!0),RN=y.getUint32(4,!0),mD(e,OS),mD(e,RN))};
Yx=function(e,N,y){N=OqE(N);if(N!=null){switch(typeof N){case "string":uo5(N)}if(N!=null)switch(KB(e,y,0),typeof N){case "number":e=e.J;aN(N);nB(e,OS,RN);break;case "bigint":y=BigInt.asUintN(64,N);y=new xf(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));nB(e.J,y.N,y.J);break;default:y=uo5(N),nB(e.J,y.N,y.J)}}};
Mm=function(e,N,y){N=Cm(N);N!=null&&N!=null&&(KB(e,y,0),qS9(e.J,N))};
efn=function(e,N,y){N=N==null||typeof N==="boolean"?N:typeof N==="number"?!!N:void 0;N!=null&&(KB(e,y,0),e.J.J.push(N?1:0))};
Nas=function(e,N,y){N=kb(N);N!=null&&Wy(e,y,ZM0(N))};
yKP=function(e,N,y,w,E){N=QNP(N,w);N!=null&&(y=xdH(e,y),E(N,e),jN0(e,y))};
wW0=function(e){return function(){var N=new Zf9;LWJ(this.wT,N,aL(At,EK,TJ,e));Hy(N,N.J.end());for(var y=new Uint8Array(N.N),w=N.K,E=w.length,A=0,T=0;T<E;T++){var p=w[T];y.set(p,A);A+=p.length}N.K=[y];return y}};
lx=function(e){return function(N){return gRs(e,N)}};
EbJ=function(e){this.wT=ic(e)};
AK_=function(e,N){return oRM(e,N,jw0)};
FZ=function(e){this.wT=ic(e)};
S$=function(e){this.wT=ic(e)};
oA=function(e){this.wT=ic(e)};
bx=function(e){this.wT=ic(e)};
TaE=function(e){this.wT=ic(e)};
g.CcH=function(e){var N=new bx;N=Sn(N,1,e.N);var y=JK0(e);N=oRM(N,y,LfE);y=[];for(var w=[],E=g.c(e.J.keys()),A=E.next();!A.done;A=E.next())w.push(A.value.split(","));for(E=0;E<w.length;E++){A=w[E];for(var T=e.j,p=e.Uy(A)||[],C=[],r=0;r<p.length;r++){var Y=p[r],M=Y&&Y.J;Y=new S$;switch(T){case 3:M=Number(M);Number.isFinite(M)&&en(Y,1,ht,bc(M));break;case 2:en(Y,2,ht,Er(Number(M)))}C.push(Y)}T=C;for(p=0;p<T.length;p++){C=T[p];r=new oA;C=JQ(r,S$,2,C);r=[];Y=pW5(e);for(M=0;M<Y.length;M++){var l=Y[M],
F=A[M],S=new FZ;switch(l){case 3:en(S,1,cP,cW(String(F)));break;case 2:l=Number(F);Number.isFinite(l)&&en(S,2,cP,pm(l));break;case 1:en(S,3,cP,AK(F==="true"))}r.push(S)}pB(C,FZ,1,r);y.push(C)}}pB(N,oA,4,y);return N};
rK_=function(e){if(!e)return"";if(/^about:(?:blank|srcdoc)$/.test(e))return window.origin||"";e.indexOf("blob:")===0&&(e=e.substring(5));e=e.split("#")[0].split("?")[0];e=e.toLowerCase();e.indexOf("//")==0&&(e=window.location.protocol+e);/^[\w\-]*:\/\//.test(e)||(e=window.location.href);var N=e.substring(e.indexOf("://")+3),y=N.indexOf("/");y!=-1&&(N=N.substring(0,y));y=e.substring(0,e.indexOf("://"));if(!y)throw Error("URI is missing protocol: "+e);if(y!=="http"&&y!=="https"&&y!=="chrome-extension"&&
y!=="moz-extension"&&y!=="file"&&y!=="android-app"&&y!=="chrome-search"&&y!=="chrome-untrusted"&&y!=="chrome"&&y!=="app"&&y!=="devtools")throw Error("Invalid URI scheme in origin: "+y);e="";var w=N.indexOf(":");if(w!=-1){var E=N.substring(w+1);N=N.substring(0,w);if(y==="http"&&E!=="80"||y==="https"&&E!=="443")e=":"+E}return y+"://"+N+e};
$gP=function(){function e(){E[0]=1732584193;E[1]=4023233417;E[2]=2562383102;E[3]=271733878;E[4]=3285377520;Y=r=0}
function N(M){for(var l=T,F=0;F<64;F+=4)l[F/4]=M[F]<<24|M[F+1]<<16|M[F+2]<<8|M[F+3];for(F=16;F<80;F++)M=l[F-3]^l[F-8]^l[F-14]^l[F-16],l[F]=(M<<1|M>>>31)&4294967295;M=E[0];var S=E[1],k=E[2],X=E[3],d=E[4];for(F=0;F<80;F++){if(F<40)if(F<20){var v=X^S&(k^X);var V=1518500249}else v=S^k^X,V=1859775393;else F<60?(v=S&k|X&(S|k),V=2400959708):(v=S^k^X,V=3395469782);v=((M<<5|M>>>27)&4294967295)+v+d+V+l[F]&4294967295;d=X;X=k;k=(S<<30|S>>>2)&4294967295;S=M;M=v}E[0]=E[0]+M&4294967295;E[1]=E[1]+S&4294967295;E[2]=
E[2]+k&4294967295;E[3]=E[3]+X&4294967295;E[4]=E[4]+d&4294967295}
function y(M,l){if(typeof M==="string"){M=unescape(encodeURIComponent(M));for(var F=[],S=0,k=M.length;S<k;++S)F.push(M.charCodeAt(S));M=F}l||(l=M.length);F=0;if(r==0)for(;F+64<l;)N(M.slice(F,F+64)),F+=64,Y+=64;for(;F<l;)if(A[r++]=M[F++],Y++,r==64)for(r=0,N(A);F+64<l;)N(M.slice(F,F+64)),F+=64,Y+=64}
function w(){var M=[],l=Y*8;r<56?y(p,56-r):y(p,64-(r-56));for(var F=63;F>=56;F--)A[F]=l&255,l>>>=8;N(A);for(F=l=0;F<5;F++)for(var S=24;S>=0;S-=8)M[l++]=E[F]>>S&255;return M}
for(var E=[],A=[],T=[],p=[128],C=1;C<64;++C)p[C]=0;var r,Y;e();return{reset:e,update:y,digest:w,zG:function(){for(var M=w(),l="",F=0;F<M.length;F++)l+="0123456789ABCDEF".charAt(Math.floor(M[F]/16))+"0123456789ABCDEF".charAt(M[F]%16);return l}}};
M4F=function(e,N,y){var w=String(g.xJ.location.href);return w&&e&&N?[N,Yr_(rK_(w),e,y||null)].join(" "):null};
Yr_=function(e,N,y){var w=[],E=[];if((Array.isArray(y)?2:1)==1)return E=[N,e],g.$R(w,function(p){E.push(p)}),lds(E.join(" "));
var A=[],T=[];g.$R(y,function(p){T.push(p.key);A.push(p.value)});
y=Math.floor((new Date).getTime()/1E3);E=A.length==0?[y,N,e]:[A.join(":"),y,N,e];g.$R(w,function(p){E.push(p)});
e=lds(E.join(" "));e=[y,e];T.length==0||e.push(T.join(""));return e.join("_")};
lds=function(e){var N=$gP();N.update(e);return N.zG().toLowerCase()};
SrF=function(){var e=null;if(!FC3)return e;try{var N=function(y){return y};
e=FC3.createPolicy("goog#html",{createHTML:N,createScript:N,createScriptURL:N})}catch(y){}return e};
BP=function(){kx===void 0&&(kx=SrF());return kx};
XZ=function(e){this.J=e};
PP=function(e){var N=BP();return new XZ(N?N.createScriptURL(e):e)};
dG=function(e){if(e instanceof XZ)return e.J;throw Error("");};
IA=function(e){this.J=e};
g.vP=function(e){if(e instanceof IA)return e.J;throw Error("");};
zJ=function(e){this.WG=e};
ix=function(e){return new zJ(function(N){return N.substr(0,e.length+1).toLowerCase()===e+":"})};
g.Ds=function(e,N){N=N===void 0?obE:N;a:if(N=N===void 0?obE:N,!(e instanceof IA)){for(var y=0;y<N.length;++y){var w=N[y];if(w instanceof zJ&&w.WG(e)){e=new IA(e);break a}}e=void 0}return e||bmH};
cK5=function(e){if(hfP.test(e))return e};
gG=function(e){return e instanceof IA?g.vP(e):cK5(e)};
g.VZ=function(e,N){N=gG(N);N!==void 0&&(e.href=N)};
fy=function(e){this.J=e};
tt=function(e){var N=BP();return new fy(N?N.createHTML(e):e)};
ux=function(e){if(e instanceof fy)return e.J;throw Error("");};
g.qm=function(e,N,y,w){N=gG(N);return N!==void 0?e.open(N,y,w):null};
Zs=function(e){e=e===void 0?document:e;var N,y;e=(y=(N=e).querySelector)==null?void 0:y.call(N,"script[nonce]");return e==null?"":e.nonce||e.getAttribute("nonce")||""};
xx=function(e){this.J=e};
kyM=function(e){var N=BP();return new xx(N?N.createScript(e):e)};
j$=function(e){if(e instanceof xx)return e.J;throw Error("");};
ny=function(e){var N=Zs(e.ownerDocument);N&&e.setAttribute("nonce",N)};
g.QZ=function(e,N){e.src=dG(N);ny(e)};
mr=function(){this.J=Ba3[0].toLowerCase()};
XW0=function(e){var N="true".toString(),y=[new mr];if(y.length===0)throw Error("");if(y.map(function(w){if(w instanceof mr)w=w.J;else throw Error("");return w}).every(function(w){return"data-loaded".indexOf(w)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
e.setAttribute("data-loaded",N)};
Pc_=function(e){var N=g.nM("window.location.href");e==null&&(e='Unknown Error of type "null/undefined"');if(typeof e==="string")return{message:e,name:"Unknown error",lineNumber:"Not available",fileName:N,stack:"Not available"};var y=!1;try{var w=e.lineNumber||e.line||"Not available"}catch(T){w="Not available",y=!0}try{var E=e.fileName||e.filename||e.sourceURL||g.xJ.$googDebugFname||N}catch(T){E="Not available",y=!0}N=HP(e);if(!(!y&&e.lineNumber&&e.fileName&&e.stack&&e.message&&e.name)){y=e.message;
if(y==null){if(e.constructor&&e.constructor instanceof Function){if(e.constructor.name)y=e.constructor.name;else if(y=e.constructor,Ky[y])y=Ky[y];else{y=String(y);if(!Ky[y]){var A=/function\s+([^\(]+)/m.exec(y);Ky[y]=A?A[1]:"[Anonymous]"}y=Ky[y]}y='Unknown Error of type "'+y+'"'}else y="Unknown Error of unknown type";typeof e.toString==="function"&&Object.prototype.toString!==e.toString&&(y+=": "+e.toString())}return{message:y,name:e.name||"UnknownError",lineNumber:w,fileName:E,stack:N||"Not available"}}return{message:e.message,
name:e.name,lineNumber:e.lineNumber,fileName:e.fileName,stack:N}};
HP=function(e,N){N||(N={});N[WP(e)]=!0;var y=e.stack||"",w=e.cause;w&&!N[WP(w)]&&(y+="\nCaused by: ",w.stack&&w.stack.indexOf(w.toString())==0||(y+=typeof w==="string"?w:w.message+"\n"),y+=HP(w,N));e=e.errors;if(Array.isArray(e)){w=1;var E;for(E=0;E<e.length&&!(w>4);E++)N[WP(e[E])]||(y+="\nInner error "+w++ +": ",e[E].stack&&e[E].stack.indexOf(e[E].toString())==0||(y+=typeof e[E]==="string"?e[E]:e[E].message+"\n"),y+=HP(e[E],N));E<e.length&&(y+="\n... "+(e.length-E)+" more inner errors")}return y};
WP=function(e){var N="";typeof e.toString==="function"&&(N=""+e);return N+e.stack};
OK=function(e,N,y){return e.parseFromString(ux(N),y)};
g.RA=function(e){return encodeURIComponent(String(e))};
GJ=function(e){return decodeURIComponent(e.replace(/\+/g," "))};
UK=function(e){dg9.test(e)&&(e.indexOf("&")!=-1&&(e=e.replace(IdJ,"&amp;")),e.indexOf("<")!=-1&&(e=e.replace(vbn,"&lt;")),e.indexOf(">")!=-1&&(e=e.replace(zfn,"&gt;")),e.indexOf('"')!=-1&&(e=e.replace(im_,"&quot;")),e.indexOf("'")!=-1&&(e=e.replace(DgP,"&#39;")),e.indexOf("\x00")!=-1&&(e=e.replace(gbM,"&#0;")));return e};
g.Ly=function(e){return e==null?"":String(e)};
sK=function(e){for(var N=0,y=0;y<e.length;++y)N=31*N+e.charCodeAt(y)>>>0;return N};
aA=function(e){var N=Number(e);return N==0&&g.kw(e)?NaN:N};
V43=function(e){return String(e).replace(/\-([a-z])/g,function(N,y){return y.toUpperCase()})};
fds=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
t45=function(e){return e.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(N,y,w){return y+w.toUpperCase()})};
utJ=function(e){var N=1;e=e.split(":");for(var y=[];N>0&&e.length;)y.push(e.shift()),N--;e.length&&y.push(e.join(":"));return y};
eU=function(e){this.J=e||{cookie:""}};
NP=function(e){e=(e.J.cookie||"").split(";");for(var N=[],y=[],w,E,A=0;A<e.length;A++)E=d5(e[A]),w=E.indexOf("="),w==-1?(N.push(""),y.push(E)):(N.push(E.substring(0,w)),y.push(E.substring(w+1)));return{keys:N,values:y}};
qr9=function(){var e=g.xJ.__SAPISID||g.xJ.__APISID||g.xJ.__3PSAPISID||g.xJ.__1PSAPISID||g.xJ.__OVERRIDE_SID;if(e)return!0;typeof document!=="undefined"&&(e=new eU(document),e=e.get("SAPISID")||e.get("APISID")||e.get("__Secure-3PAPISID")||e.get("__Secure-1PAPISID"));return!!e};
ZmH=function(e,N,y,w){(e=g.xJ[e])||typeof document==="undefined"||(e=(new eU(document)).get(N));return e?M4F(e,y,w):null};
xg5=function(e){var N=rK_(String(g.xJ.location.href)),y=[];if(qr9()){N=N.indexOf("https:")==0||N.indexOf("chrome-extension:")==0||N.indexOf("chrome-untrusted://new-tab-page")==0||N.indexOf("moz-extension:")==0;var w=N?g.xJ.__SAPISID:g.xJ.__APISID;w||typeof document==="undefined"||(w=new eU(document),w=w.get(N?"SAPISID":"APISID")||w.get("__Secure-3PAPISID"));(w=w?M4F(w,N?"SAPISIDHASH":"APISIDHASH",e):null)&&y.push(w);N&&((N=ZmH("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",e))&&y.push(N),(e=ZmH("__3PSAPISID",
"__Secure-3PAPISID","SAPISID3PHASH",e))&&y.push(e))}return y.length==0?null:y.join(" ")};
yM=function(){};
wi=function(e){this.wT=ic(e)};
EA=function(e,N){this.intervalMs=e;this.callback=N;this.enabled=!1;this.J=function(){return g.s9()};
this.N=this.J()};
Aa=function(e){this.wT=ic(e)};
TM=function(e){this.wT=ic(e)};
g.Ja=function(e,N,y){return Math.min(Math.max(e,N),y)};
g.p9=function(e,N){e%=N;return e*N<0?e+N:e};
C9=function(e,N,y){return e+y*(N-e)};
g.ri=function(e,N){this.x=e!==void 0?e:0;this.y=N!==void 0?N:0};
$Y=function(e,N){return e==N?!0:e&&N?e.x==N.x&&e.y==N.y:!1};
g.l8=function(e,N){this.width=e;this.height=N};
g.Fw=function(e,N){return e==N?!0:e&&N?e.width==N.width&&e.height==N.height:!1};
SU=function(e){return e.width*e.height};
g.oB=function(e,N,y){for(var w in e)N.call(y,e[w],w,e)};
g.b8=function(e,N,y){var w={},E;for(E in e)N.call(y,e[E],E,e)&&(w[E]=e[E]);return w};
ha=function(e,N){var y={},w;for(w in e)y[w]=N.call(void 0,e[w],w,e);return y};
g.c4=function(e,N,y){for(var w in e)if(N.call(y,e[w],w,e))return!0;return!1};
jF5=function(e,N){for(var y in e)if(!N.call(void 0,e[y],y,e))return!1;return!0};
g.kY=function(e){for(var N in e)return N};
nbE=function(e){for(var N in e)return e[N]};
g.B4=function(e){var N=[],y=0,w;for(w in e)N[y++]=e[w];return N};
g.Xw=function(e){var N=[],y=0,w;for(w in e)N[y++]=w;return N};
g.P4=function(e,N){return e!==null&&N in e};
g.di=function(e,N){for(var y in e)if(e[y]==N)return!0;return!1};
IB=function(e,N){for(var y in e)if(N.call(void 0,e[y],y,e))return y};
QF9=function(e,N){return(N=IB(e,N))&&e[N]};
g.v4=function(e){for(var N in e)return!1;return!0};
g.mgH=function(e){for(var N in e)delete e[N]};
g.zM=function(e,N,y){return e!==null&&N in e?e[N]:y};
g.i8=function(e,N){for(var y in e)if(!(y in N)||e[y]!==N[y])return!1;for(var w in N)if(!(w in e))return!1;return!0};
g.DA=function(e){var N={},y;for(y in e)N[y]=e[y];return N};
g.gi=function(e){if(!e||typeof e!=="object")return e;if(typeof e.clone==="function")return e.clone();if(typeof Map!=="undefined"&&e instanceof Map)return new Map(e);if(typeof Set!=="undefined"&&e instanceof Set)return new Set(e);if(e instanceof Date)return new Date(e.getTime());var N=Array.isArray(e)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(e)||e instanceof DataView?{}:new e.constructor(e.length),y;for(y in e)N[y]=g.gi(e[y]);return N};
g.VM=function(e,N){for(var y,w,E=1;E<arguments.length;E++){w=arguments[E];for(y in w)e[y]=w[y];for(var A=0;A<HmF.length;A++)y=HmF[A],Object.prototype.hasOwnProperty.call(w,y)&&(e[y]=w[y])}};
ta=function(e,N){this.J=e===f9&&N||""};
u8=function(e){if(e instanceof fy)return e;e=String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return tt(e)};
KC1=function(e){var N=u8("");return tt(e.map(function(y){return ux(u8(y))}).join(ux(N).toString()))};
UgJ=function(e){var N;if(!WC1.test("div"))throw Error("");if(OmJ.indexOf("DIV")!==-1)throw Error("");var y="<div";e&&(y+=RfP(e));Array.isArray(N)||(N=N===void 0?[]:[N]);GyM.indexOf("DIV")!==-1?y+=">":(e=KC1(N.map(function(w){return w instanceof fy?w:u8(String(w))})),y+=">"+e.toString()+"</div>");
return tt(y)};
RfP=function(e){for(var N="",y=Object.keys(e),w=0;w<y.length;w++){var E=y[w],A=e[E];if(!WC1.test(E))throw Error("");if(A!==void 0&&A!==null){if(/^on./i.test(E))throw Error("");LC9.indexOf(E.toLowerCase())!==-1&&(A=A instanceof IA?A.toString():cK5(String(A))||"about:invalid#zClosurez");A=E+'="'+u8(String(A))+'"';N+=" "+A}}return N};
sF5=function(e){var N=g.iE.apply(1,arguments);if(N.length===0)return PP(e[0]);for(var y=e[0],w=0;w<N.length;w++)y+=encodeURIComponent(N[w])+e[w+1];return PP(y)};
xY=function(e){return e?new qP(ZA(e)):ad1||(ad1=new qP)};
jU=function(e,N){return typeof N==="string"?e.getElementById(N):N};
g.n9=function(e,N){return(N||document).getElementsByTagName(String(e))};
g.QM=function(e,N){return(N||document).querySelectorAll("."+e)};
g.H4=function(e,N){var y=N||document;y.getElementsByClassName?e=y.getElementsByClassName(e)[0]:(y=document,e=e?(N||y).querySelector(e?"."+e:""):g.mc(y,"*",e,N)[0]||null);return e||null};
g.mc=function(e,N,y,w){e=w||e;return(N=N&&N!="*"?String(N).toUpperCase():"")||y?e.querySelectorAll(N+(y?"."+y:"")):e.getElementsByTagName("*")};
OA=function(e,N){g.oB(N,function(y,w){w=="style"?e.style.cssText=y:w=="class"?e.className=y:w=="for"?e.htmlFor=y:eA5.hasOwnProperty(w)?e.setAttribute(eA5[w],y):c_(w,"aria-")||c_(w,"data-")?e.setAttribute(w,y):e[w]=y})};
NPJ=function(e){e=e.document;e=e.compatMode=="CSS1Compat"?e.documentElement:e.body;return new g.l8(e.clientWidth,e.clientHeight)};
wyH=function(e){var N=yQ1(e);e=e.defaultView;return new g.ri(e.pageXOffset||N.scrollLeft,e.pageYOffset||N.scrollTop)};
yQ1=function(e){return e.scrollingElement?e.scrollingElement:g.RB||e.compatMode!="CSS1Compat"?e.body||e.documentElement:e.documentElement};
GM=function(e){return e?e.defaultView:window};
L9=function(e,N,y){var w=arguments,E=document,A=w[1],T=UA(E,String(w[0]));A&&(typeof A==="string"?T.className=A:Array.isArray(A)?T.className=A.join(" "):OA(T,A));w.length>2&&Ef9(E,T,w,2);return T};
Ef9=function(e,N,y,w){function E(p){p&&N.appendChild(typeof p==="string"?e.createTextNode(p):p)}
for(;w<y.length;w++){var A=y[w];if(!g.KM(A)||g.W5(A)&&A.nodeType>0)E(A);else{a:{if(A&&typeof A.length=="number"){if(g.W5(A)){var T=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){T=typeof A.item=="function";break a}}T=!1}g.$R(T?g.eE(A):A,E)}}};
g.sA=function(e){return UA(document,e)};
UA=function(e,N){N=String(N);e.contentType==="application/xhtml+xml"&&(N=N.toLowerCase());return e.createElement(N)};
g.aB=function(e){return document.createTextNode(String(e))};
g.ev=function(e,N){e.appendChild(N)};
g.N8=function(e){for(var N;N=e.firstChild;)e.removeChild(N)};
yp=function(e,N,y){e.insertBefore(N,e.childNodes[y]||null)};
g.ws=function(e){return e&&e.parentNode?e.parentNode.removeChild(e):null};
g.Ex=function(e,N){if(!e||!N)return!1;if(e.contains&&N.nodeType==1)return e==N||e.contains(N);if(typeof e.compareDocumentPosition!="undefined")return e==N||!!(e.compareDocumentPosition(N)&16);for(;N&&e!=N;)N=N.parentNode;return N==e};
ZA=function(e){return e.nodeType==9?e:e.ownerDocument||e.document};
g.AL=function(e,N){if("textContent"in e)e.textContent=N;else if(e.nodeType==3)e.data=String(N);else if(e.firstChild&&e.firstChild.nodeType==3){for(;e.lastChild!=e.firstChild;)e.removeChild(e.lastChild);e.firstChild.data=String(N)}else g.N8(e),e.appendChild(ZA(e).createTextNode(String(N)))};
TPM=function(e){return e.tagName=="A"&&e.hasAttribute("href")||e.tagName=="INPUT"||e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="BUTTON"?!e.disabled&&(!e.hasAttribute("tabindex")||AQn(e)):e.hasAttribute("tabindex")&&AQn(e)};
AQn=function(e){e=e.tabIndex;return typeof e==="number"&&e>=0&&e<32768};
JL=function(e,N,y){if(!N&&!y)return null;var w=N?String(N).toUpperCase():null;return TN(e,function(E){return(!w||E.nodeName==w)&&(!y||typeof E.className==="string"&&g.Gw(E.className.split(/\s+/),y))},!0)};
TN=function(e,N,y){e&&!y&&(e=e.parentNode);for(y=0;e;){if(N(e))return e;e=e.parentNode;y++}return null};
qP=function(e){this.J=e||g.xJ.document||document};
pg=function(e){this.wT=ic(e)};
Cg=function(e){this.wT=ic(e)};
rs=function(e){this.wT=ic(e)};
JQ1=function(e,N){pB(e,Cg,1,N)};
$v=function(e){this.wT=ic(e)};
CV5=function(e,N){N=N===void 0?pyM:N;if(!Yv){var y;e=(y=e.navigator)==null?void 0:y.userAgentData;if(!e||typeof e.getHighEntropyValues!=="function"||e.brands&&typeof e.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));y=(e.brands||[]).map(function(E){var A=new Cg;A=Sn(A,1,E.brand);return Sn(A,2,E.version)});
JQ1(j4(M8,2,AK(e.mobile)),y);Yv=e.getHighEntropyValues(N)}var w=new Set(N);return Yv.then(function(E){var A=M8.clone();w.has("platform")&&Sn(A,3,E.platform);w.has("platformVersion")&&Sn(A,4,E.platformVersion);w.has("architecture")&&Sn(A,5,E.architecture);w.has("model")&&Sn(A,6,E.model);w.has("uaFullVersion")&&Sn(A,7,E.uaFullVersion);return A}).catch(function(){return M8.clone()})};
lQ=function(e){this.wT=ic(e)};
rQM=function(e){this.wT=ic(e)};
FS=function(e){this.wT=ic(e,4)};
Sv=function(e){this.wT=ic(e,36)};
oC=function(e){this.wT=ic(e,19)};
bQ=function(e,N){this.Ru=N=N===void 0?!1:N;this.uach=this.locale=null;this.N=0;this.isFinal=!1;this.J=new oC;Number.isInteger(e)&&this.J.NC(e);N||(this.locale=document.documentElement.getAttribute("lang"));$qM(this,new lQ)};
$qM=function(e,N){JQ(e.J,lQ,1,N);lV(N,1)||bV(N,1,1);e.Ru||(N=cC(e),Mq(N,5)||Sn(N,5,e.locale));e.uach&&(N=cC(e),Tx(N,rs,9)||JQ(N,rs,9,e.uach))};
YWP=function(e,N){e.N=N};
MnH=function(e){var N=N===void 0?pyM:N;var y=e.Ru?void 0:GM();y?CV5(y,N).then(function(w){e.uach=w;w=cC(e);JQ(w,rs,9,e.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
cC=function(e){e=Tx(e.J,lQ,1);var N=Tx(e,$v,11);N||(N=new $v,JQ(e,$v,11,N));return N};
l8M=function(e){return g.RB?"webkit"+e:e.toLowerCase()};
g.kv=function(e,N,y,w){this.j=e;this.L=N;this.J=this.K=e;this.Z=y||0;this.G=w||2};
g.BC=function(e){e.J=Math.min(e.L,e.J*e.G);e.K=Math.min(e.L,e.J+(e.Z?Math.round(e.Z*(Math.random()-.5)*2*e.J):0));e.N++};
FDs=function(e){this.wT=ic(e,8)};
SWH=function(e){this.wT=ic(e)};
PC=function(e){g.x.call(this);var N=this;this.componentId="";this.J=[];this.aq="";this.pageId=null;this.Zl=this.qg=-1;this.G=this.experimentIds=null;this.Ng=this.Kh=this.Z=this.j=0;this.Et=1;this.timeoutMillis=0;this.l9=!1;this.logSource=e.logSource;this.VO=e.VO||function(){};
this.K=new bQ(e.logSource,e.Ru);this.network=e.network||null;this.z5=e.z5||null;this.U=e.QxG||null;this.sessionIndex=e.sessionIndex||null;this.k0=e.k0||!1;this.logger=null;this.withCredentials=!e.Uc;this.Ru=e.Ru||!1;this.D=!this.Ru&&!!GM()&&!!GM().navigator&&GM().navigator.sendBeacon!==void 0;this.Rq=typeof URLSearchParams!=="undefined"&&!!(new URL(XS())).searchParams&&!!(new URL(XS())).searchParams.set;var y=bV(new lQ,1,1);$qM(this.K,y);this.L=new g.kv(1E4,3E5,.1);e=ofF(this,e.kG);this.N=new EA(this.L.getValue(),
e);this.i9=new EA(6E5,e);this.k0||this.i9.start();this.Ru||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&N.P6()}),document.addEventListener("pagehide",this.P6.bind(this)))};
ofF=function(e,N){return e.Rq?N?function(){N().then(function(){e.flush()})}:function(){e.flush()}:function(){}};
bBE=function(e){e.U||(e.U=XS());try{return(new URL(e.U)).toString()}catch(N){return(new URL(e.U,GM().location.origin)).toString()}};
hA3=function(e,N,y){y=y===void 0?e.VO():y;var w={},E=new URL(bBE(e));y&&(w.Authorization=y);e.sessionIndex&&(w["X-Goog-AuthUser"]=e.sessionIndex,E.searchParams.set("authuser",e.sessionIndex));e.pageId&&(Object.defineProperty(w,"X-Goog-PageId",{value:e.pageId}),E.searchParams.set("pageId",e.pageId));return{url:E.toString(),body:N,Pa:1,requestHeaders:w,requestType:"POST",withCredentials:e.withCredentials,timeoutMillis:e.timeoutMillis}};
kxH=function(e){cQH(e,function(N,y){N=new URL(N);N.searchParams.set("format","json");var w=!1;try{w=GM().navigator.sendBeacon(N.toString(),y.jY())}catch(E){}w||(e.D=!1);return w})};
cQH=function(e,N){if(e.J.length!==0){var y=new URL(bBE(e));y.searchParams.delete("format");var w=e.VO();w&&y.searchParams.set("auth",w);y.searchParams.set("authuser",e.sessionIndex||"0");for(w=0;w<10&&e.J.length;++w){var E=e.J.slice(0,32),A=e.K.build(E,e.j,e.Z,e.z5,e.Kh,e.Ng);if(!N(y.toString(),A)){++e.Z;break}e.j=0;e.Z=0;e.Kh=0;e.Ng=0;e.J=e.J.slice(E.length)}e.N.enabled&&e.N.stop()}};
XS=function(){return"https://play.google.com/log?format=json&hasfast=true"};
ds=function(){this.kF=typeof AbortController!=="undefined"};
IC=function(e,N){g.x.call(this);this.logSource=e;this.sessionIndex=N;this.g1="https://play.google.com/log?format=json&hasfast=true";this.N=null;this.j=!1;this.network=null;this.componentId="";this.J=this.z5=null;this.K=!1;this.pageId=null};
BPF=function(e,N){e.N=N;return e};
XyM=function(e,N){e.network=N;return e};
PV9=function(e,N){e.J=N};
vC=function(e,N,y,w,E,A,T){e=e===void 0?-1:e;N=N===void 0?"":N;y=y===void 0?"":y;w=w===void 0?!1:w;E=E===void 0?"":E;g.x.call(this);this.logSource=e;this.componentId=N;A?N=A:(e=new IC(e,"0"),e.componentId=N,g.Q(this,e),y!==""&&(e.g1=y),w&&(e.j=!0),E&&BPF(e,E),T&&XyM(e,T),N=e.build());this.J=N};
dqM=function(e){this.J=e};
zN=function(e,N,y){this.N=e;this.j=N;this.fields=y||[];this.J=new Map};
pW5=function(e){return e.fields.map(function(N){return N.fieldType})};
JK0=function(e){return e.fields.map(function(N){return N.fieldName})};
iQ=function(e,N){zN.call(this,e,3,N)};
DH=function(e,N){zN.call(this,e,2,N)};
g.gs=function(e,N){this.type=e;this.currentTarget=this.target=N;this.defaultPrevented=this.N=!1};
Vp=function(e,N){g.gs.call(this,e?e.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.J=null;e&&this.init(e,N)};
fg=function(e){return!(!e||!e[I80])};
zAJ=function(e,N,y,w,E){this.listener=e;this.proxy=null;this.src=N;this.type=y;this.capture=!!w;this.bB=E;this.key=++vfM;this.removed=this.sj=!1};
tL=function(e){e.removed=!0;e.listener=null;e.proxy=null;e.src=null;e.bB=null};
uQ=function(e){this.src=e;this.listeners={};this.J=0};
g.q8=function(e,N){var y=N.type;y in e.listeners&&g.Lq(e.listeners[y],N)&&(tL(N),e.listeners[y].length==0&&(delete e.listeners[y],e.J--))};
ZH=function(e,N,y,w){for(var E=0;E<e.length;++E){var A=e[E];if(!A.removed&&A.listener==N&&A.capture==!!y&&A.bB==w)return E}return-1};
g.jv=function(e,N,y,w,E){if(w&&w.once)return xv(e,N,y,w,E);if(Array.isArray(N)){for(var A=0;A<N.length;A++)g.jv(e,N[A],y,w,E);return null}y=HC(y);return fg(e)?e.listen(N,y,g.W5(w)?!!w.capture:!!w,E):iBF(e,N,y,!1,w,E)};
iBF=function(e,N,y,w,E,A){if(!N)throw Error("Invalid event type");var T=g.W5(E)?!!E.capture:!!E,p=Kg(e);p||(e[WC]=p=new uQ(e));y=p.add(N,y,w,T,A);if(y.proxy)return y;w=DqP();y.proxy=w;w.src=e;w.listener=y;if(e.addEventListener)gf5||(E=T),E===void 0&&(E=!1),e.addEventListener(N.toString(),w,E);else if(e.attachEvent)e.attachEvent(Vn3(N.toString()),w);else if(e.addListener&&e.removeListener)e.addListener(w);else throw Error("addEventListener and attachEvent are unavailable.");f8P++;return y};
DqP=function(){function e(y){return N.call(e.src,e.listener,y)}
var N=tn_;return e};
xv=function(e,N,y,w,E){if(Array.isArray(N)){for(var A=0;A<N.length;A++)xv(e,N[A],y,w,E);return null}y=HC(y);return fg(e)?e.TT(N,y,g.W5(w)?!!w.capture:!!w,E):iBF(e,N,y,!0,w,E)};
uXs=function(e,N,y,w,E){if(Array.isArray(N))for(var A=0;A<N.length;A++)uXs(e,N[A],y,w,E);else w=g.W5(w)?!!w.capture:!!w,y=HC(y),fg(e)?e.CX(N,y,w,E):e&&(e=Kg(e))&&(N=e.nV(N,y,w,E))&&Ox(N)};
Ox=function(e){if(typeof e!=="number"&&e&&!e.removed){var N=e.src;if(fg(N))g.q8(N.HP,e);else{var y=e.type,w=e.proxy;N.removeEventListener?N.removeEventListener(y,w,e.capture):N.detachEvent?N.detachEvent(Vn3(y),w):N.addListener&&N.removeListener&&N.removeListener(w);f8P--;(y=Kg(N))?(g.q8(y,e),y.J==0&&(y.src=null,N[WC]=null)):tL(e)}}};
Vn3=function(e){return e in RC?RC[e]:RC[e]="on"+e};
tn_=function(e,N){if(e.removed)e=!0;else{N=new Vp(N,this);var y=e.listener,w=e.bB||e.src;e.sj&&Ox(e);e=y.call(w,N)}return e};
Kg=function(e){e=e[WC];return e instanceof uQ?e:null};
HC=function(e){if(typeof e==="function")return e;e[GN]||(e[GN]=function(N){return e.handleEvent(N)});
return e[GN]};
g.Ux=function(){g.x.call(this);this.HP=new uQ(this);this.jq=this;this.OE=null};
Lg=function(e,N,y,w){N=e.HP.listeners[String(N)];if(!N)return!0;N=N.concat();for(var E=!0,A=0;A<N.length;++A){var T=N[A];if(T&&!T.removed&&T.capture==y){var p=T.listener,C=T.bB||T.src;T.sj&&g.q8(e.HP,T);E=p.call(C,w)!==!1&&E}}return E&&!w.defaultPrevented};
sx=function(e,N){this.K=e;this.j=N;this.N=0;this.J=null};
qWM=function(e,N){e.j(N);e.N<100&&(e.N++,N.next=e.J,e.J=N)};
yb=function(e){e=e9(e);N0||(N0=ZB0());N0(e)};
ZB0=function(){if(typeof MessageChannel!=="undefined"){var e=new MessageChannel,N={},y=N;e.port1.onmessage=function(){if(N.next!==void 0){N=N.next;var w=N.hk;N.hk=null;w()}};
return function(w){y.next={hk:w};y=y.next;e.port2.postMessage(0)}}return function(w){g.xJ.setTimeout(w,0)}};
wR=function(){this.N=this.J=null};
E0=function(){this.next=this.scope=this.J=null};
g.Jo=function(e,N){Ao||xqn();T8||(Ao(),T8=!0);jL0.add(e,N)};
xqn=function(){var e=Promise.resolve(void 0);Ao=function(){e.then(nfE)}};
nfE=function(){for(var e;e=jL0.remove();){try{e.J.call(e.scope)}catch(N){b_(N)}qWM(QLn,e)}T8=!1};
pY=function(e){return function(){return e}};
g.CY=function(){};
mqJ=function(e){var N=N||0;return function(){return e.apply(this,Array.prototype.slice.call(arguments,0,N))}};
rR=function(e){var N=!1,y;return function(){N||(y=e(),N=!0);return y}};
$T=function(e){var N=e;return function(){if(N){var y=N;N=null;y()}}};
HB9=function(e,N){var y=0;return function(w){g.xJ.clearTimeout(y);var E=arguments;y=g.xJ.setTimeout(function(){e.apply(N,E)},50)}};
g.lB=function(e){this.J=0;this.G=void 0;this.j=this.N=this.K=null;this.L=this.Z=!1;if(e!=g.CY)try{var N=this;e.call(void 0,function(y){M0(N,2,y)},function(y){M0(N,3,y)})}catch(y){M0(this,3,y)}};
KD1=function(){this.next=this.context=this.N=this.K=this.J=null;this.j=!1};
FK=function(e,N,y){var w=WDP.get();w.K=e;w.N=N;w.context=y;return w};
g.S9=function(e){if(e instanceof g.lB)return e;var N=new g.lB(g.CY);M0(N,2,e);return N};
oD=function(e){return new g.lB(function(N,y){y(e)})};
g.RAF=function(e,N,y){OB5(e,N,y,null)||g.Jo(g.LM(N,e))};
GxM=function(e){return new g.lB(function(N,y){e.length||N(void 0);for(var w,E=0;E<e.length;E++)w=e[E],g.RAF(w,N,y)})};
LD5=function(){var e,N,y=new g.lB(function(w,E){e=w;N=E});
return new Uqn(y,e,N)};
sLs=function(e,N,y,w){bB(e,FK(N||g.CY,y||null,w))};
ho=function(e,N){N=e9(N);N=FK(N,N);N.j=!0;bB(e,N);return e};
a8J=function(e,N){if(e.J==0)if(e.K){var y=e.K;if(y.N){for(var w=0,E=null,A=null,T=y.N;T&&(T.j||(w++,T.J==e&&(E=T),!(E&&w>1)));T=T.next)E||(A=T);E&&(y.J==0&&w==1?a8J(y,N):(A?(w=A,w.next==y.j&&(y.j=w),w.next=w.next.next):eS0(y),NG9(y,E,3,N)))}e.K=null}else M0(e,3,N)};
bB=function(e,N){e.N||e.J!=2&&e.J!=3||ytH(e);e.j?e.j.next=N:e.N=N;e.j=N};
wP1=function(e,N,y,w){var E=FK(null,null,null);E.J=new g.lB(function(A,T){E.K=N?function(p){try{var C=N.call(w,p);A(C)}catch(r){T(r)}}:A;
E.N=y?function(p){try{var C=y.call(w,p);C===void 0&&p instanceof cc?T(p):A(C)}catch(r){T(r)}}:T});
E.J.K=e;bB(e,E);return E.J};
M0=function(e,N,y){e.J==0&&(e===y&&(N=3,y=new TypeError("Promise cannot resolve to itself")),e.J=1,OB5(y,e.mSg,e.nxg,e)||(e.G=y,e.J=N,e.K=null,ytH(e),N!=3||y instanceof cc||NiF(e,y)))};
OB5=function(e,N,y,w){if(e instanceof g.lB)return sLs(e,N,y,w),!0;if(e)try{var E=!!e.$goog_Thenable}catch(T){E=!1}else E=!1;if(E)return e.then(N,y,w),!0;if(g.W5(e))try{var A=e.then;if(typeof A==="function")return ya0(e,A,N,y,w),!0}catch(T){return y.call(w,T),!0}return!1};
ya0=function(e,N,y,w,E){function A(C){p||(p=!0,w.call(E,C))}
function T(C){p||(p=!0,y.call(E,C))}
var p=!1;try{N.call(e,T,A)}catch(C){A(C)}};
ytH=function(e){e.Z||(e.Z=!0,g.Jo(e.Mi,e))};
eS0=function(e){var N=null;e.N&&(N=e.N,e.N=N.next,N.next=null);e.N||(e.j=null);return N};
NG9=function(e,N,y,w){if(y==3&&N.N&&!N.j)for(;e&&e.L;e=e.K)e.L=!1;if(N.J)N.J.K=null,w4_(N,y,w);else try{N.j?N.K.call(N.context):w4_(N,y,w)}catch(E){EY1.call(null,E)}qWM(WDP,N)};
w4_=function(e,N,y){N==2?e.K.call(e.context,y):e.N&&e.N.call(e.context,y)};
NiF=function(e,N){e.L=!0;g.Jo(function(){e.L&&EY1.call(null,N)})};
cc=function(e){FF.call(this,e)};
Uqn=function(e,N,y){this.promise=e;this.resolve=N;this.reject=y};
g.kT=function(e,N){g.Ux.call(this);this.uR=e||1;this.LH=N||g.xJ;this.jM=(0,g.Gs)(this.dSh,this);this.fK=g.s9()};
g.Bc=function(e,N,y){if(typeof e==="function")y&&(e=(0,g.Gs)(e,y));else if(e&&typeof e.handleEvent=="function")e=(0,g.Gs)(e.handleEvent,e);else throw Error("Invalid listener argument");return Number(N)>2147483647?-1:g.xJ.setTimeout(e,N||0)};
XK=function(e,N){var y=null;return(new g.lB(function(w,E){y=g.Bc(function(){w(N)},e);
y==-1&&E(Error("Failed to schedule timer."))})).On(function(w){g.xJ.clearTimeout(y);
throw w;})};
g.Pc=function(e){g.x.call(this);this.G=e;this.j=0;this.K=100;this.L=!1;this.N=new Map;this.Z=new Set;this.flushInterval=3E4;this.J=new g.kT(this.flushInterval);this.J.listen("tick",this.uW,!1,this);g.Q(this,this.J)};
AaJ=function(e){e.J.enabled||e.J.start();e.j++;e.j>=e.K&&e.uW()};
TiJ=function(e,N){return e.Z.has(N)?void 0:e.N.get(N)};
Jan=function(e){for(var N=0;N<e.length;N++)e[N].clear()};
p4n=function(e){switch(e){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
C8s=function(e){switch(e){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
dR=function(e,N,y){y=y===void 0?{}:y;N=Error.call(this,N);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=e;this.metadata=y;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.ID=function(e){return(new raM).jY(e)};
raM=function(){};
vc=function(e,N,y){if(N==null)y.push("null");else{if(typeof N=="object"){if(Array.isArray(N)){var w=N;N=w.length;y.push("[");for(var E="",A=0;A<N;A++)y.push(E),vc(e,w[A],y),E=",";y.push("]");return}if(N instanceof String||N instanceof Number||N instanceof Boolean)N=N.valueOf();else{y.push("{");E="";for(w in N)Object.prototype.hasOwnProperty.call(N,w)&&(A=N[w],typeof A!="function"&&(y.push(E),$P_(w,y),y.push(":"),vc(e,A,y),E=","));y.push("}");return}}switch(typeof N){case "string":$P_(N,y);break;case "number":y.push(isFinite(N)&&
!isNaN(N)?String(N):"null");break;case "boolean":y.push(String(N));break;case "function":y.push("null");break;default:throw Error("Unknown type: "+typeof N);}}};
$P_=function(e,N){N.push('"',e.replace(YA1,function(y){var w=MU3[y];w||(w="\\u"+(y.charCodeAt(0)|65536).toString(16).slice(1),MU3[y]=w);return w}),'"')};
lAM=function(e){switch(e){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};
Fcs=function(){};
z8=function(){};
iB=function(e,N,y,w,E,A,T){var p="";e&&(p+=e+":");y&&(p+="//",N&&(p+=N+"@"),p+=y,w&&(p+=":"+w));E&&(p+=E);A&&(p+="?"+A);T&&(p+="#"+T);return p};
D9=function(e){return e?decodeURI(e):e};
g.to=function(e,N){return N.match(fY)[e]||null};
g.uB=function(e){return D9(g.to(3,e))};
g.SA1=function(e){e=e.match(fY);return iB(e[1],e[2],e[3],e[4])};
q0=function(e){e=e.match(fY);return iB(null,null,null,null,e[5],e[6],e[7])};
oY5=function(e){var N=e.indexOf("#");return N<0?e:e.slice(0,N)};
Z9=function(e,N){if(e){e=e.split("&");for(var y=0;y<e.length;y++){var w=e[y].indexOf("="),E=null;if(w>=0){var A=e[y].substring(0,w);E=e[y].substring(w+1)}else A=e[y];N(A,E?GJ(E):"")}}};
xT=function(e,N){if(!N)return e;var y=e.indexOf("#");y<0&&(y=e.length);var w=e.indexOf("?");if(w<0||w>y){w=y;var E=""}else E=e.substring(w+1,y);e=[e.slice(0,w),E,e.slice(y)];y=e[1];e[1]=N?y?y+"&"+N:N:y;return e[0]+(e[1]?"?"+e[1]:"")+e[2]};
j9=function(e,N,y){if(Array.isArray(N))for(var w=0;w<N.length;w++)j9(e,String(N[w]),y);else N!=null&&y.push(e+(N===""?"":"="+g.RA(N)))};
b9J=function(e,N){var y=[];for(N=N||0;N<e.length;N+=2)j9(e[N],e[N+1],y);return y.join("&")};
g.nY=function(e){var N=[],y;for(y in e)j9(y,e[y],N);return N.join("&")};
hmF=function(e,N){var y=arguments.length==2?b9J(arguments[1],0):b9J(arguments,1);return xT(e,y)};
g.Qb=function(e,N){N=g.nY(N);return xT(e,N)};
mV=function(e,N,y){y=y!=null?"="+g.RA(y):"";return xT(e,N+y)};
caM=function(e,N,y,w){for(var E=y.length;(N=e.indexOf(y,N))>=0&&N<w;){var A=e.charCodeAt(N-1);if(A==38||A==63)if(A=e.charCodeAt(N+E),!A||A==61||A==38||A==35)return N;N+=E+1}return-1};
Hc=function(e,N){var y=e.search(kM5),w=caM(e,0,N,y);if(w<0)return null;var E=e.indexOf("&",w);if(E<0||E>y)E=y;w+=N.length+1;return GJ(e.slice(w,E!==-1?E:0))};
KY=function(e,N){for(var y=e.search(kM5),w=0,E,A=[];(E=caM(e,w,N,y))>=0;)A.push(e.substring(w,E)),w=Math.min(e.indexOf("&",E)+1||y,y);A.push(e.slice(w));return A.join("").replace(Bi_,"$1")};
X45=function(e,N,y){return mV(KY(e,N),N,y)};
g.Wc=function(e){g.Ux.call(this);this.headers=new Map;this.i9=e||null;this.K=!1;this.J=null;this.U="";this.N=0;this.j="";this.L=this.qg=this.D=this.Kh=!1;this.Ng=0;this.Z=null;this.l9="";this.G=!1};
dPE=function(e,N,y,w,E,A,T){var p=new g.Wc;P89.push(p);N&&p.listen("complete",N);p.TT("ready",p.YF);A&&(p.Ng=Math.max(0,A));T&&(p.G=T);p.send(e,y,w,E)};
vY0=function(e,N){e.K=!1;e.J&&(e.L=!0,e.J.abort(),e.L=!1);e.j=N;e.N=5;IAH(e);O0(e)};
IAH=function(e){e.Kh||(e.Kh=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))};
zm_=function(e){if(e.K&&typeof RD!="undefined")if(e.D&&g.G8(e)==4)setTimeout(e.ZO.bind(e),0);else if(e.dispatchEvent("readystatechange"),e.isComplete()){e.getStatus();e.K=!1;try{if(U0(e))e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.N=6;try{var N=g.G8(e)>2?e.J.statusText:""}catch(y){N=""}e.j=N+" ["+e.getStatus()+"]";IAH(e)}}finally{O0(e)}}};
O0=function(e,N){if(e.J){e.Z&&(clearTimeout(e.Z),e.Z=null);var y=e.J;e.J=null;N||e.dispatchEvent("ready");try{y.onreadystatechange=null}catch(w){}}};
U0=function(e){var N=e.getStatus();a:switch(N){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var y=!0;break a;default:y=!1}if(!y){if(N=N===0)e=g.to(1,String(e.U)),!e&&g.xJ.self&&g.xJ.self.location&&(e=g.xJ.self.location.protocol.slice(0,-1)),N=!i9E.test(e?e.toLowerCase():"");y=N}return y};
g.G8=function(e){return e.J?e.J.readyState:0};
g.LY=function(e){try{return e.J?e.J.responseText:""}catch(N){return""}};
g.s0=function(e){try{if(!e.J)return null;if("response"in e.J)return e.J.response;switch(e.l9){case "":case "text":return e.J.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in e.J)return e.J.mozResponseArrayBuffer}return null}catch(N){return null}};
g.DP1=function(e){var N={};e=(e.J&&g.G8(e)>=2?e.J.getAllResponseHeaders()||"":"").split("\r\n");for(var y=0;y<e.length;y++)if(!g.kw(e[y])){var w=utJ(e[y]),E=w[0];w=w[1];if(typeof w==="string"){w=w.trim();var A=N[E]||[];N[E]=A;A.push(w)}}return ha(N,function(T){return T.join(", ")})};
g.aD=function(e,N){return e.J?e.J.getResponseHeader(N):null};
et=function(){};
yX=function(e,N){this.logger=e;this.event=N;this.startTime=Nv()};
wq=function(){r5.apply(this,arguments);this.lk={cZ:function(){return[]}}};
E5=function(e,N,y){var w=Nv();N=N();e.WJ(y,Nv()-w);return N};
Af=function(){wq.apply(this,arguments)};
Ta=function(e){wq.call(this);var N=this;this.logger=e;this.lk={q0Z:function(){return N.logger},
cZ:function(){return N.logger.lk.cZ()}};
this.addOnDisposeCallback(function(){return void N.logger.dispose()})};
gY5=function(e){return{NQW:new PEM(e),errorCount:new z5J(e),eventCount:new I1n(e),VV:new vJP(e),K3s:new d30(e),fKg:new iME(e),Lr:new D31(e),tYW:new gJ1(e)}};
VUF=function(e,N,y,w,E){e=XyM(BPF(new IC(1828,"0"),e),new et);N.length&&PV9(e,AK_(new EbJ,N));E!==void 0&&(e.g1=E);w&&(e.K=!0);var A=new vC(1828,"","",!1,"",e.build());g.Q(A,e);var T=new g.Pc({flush:function(p){try{A.flush(p)}catch(C){y(C)}}});
T.addOnDisposeCallback(function(){setTimeout(function(){try{T.uW()}finally{A.dispose()}})});
T.K=1E5;T.flushInterval=3E4;T.J.setInterval(3E4);return T};
Jf=function(e,N){g.x.call(this);var y=this;this.callback=e;this.N=N;this.J=-N;this.addOnDisposeCallback(function(){return void clearTimeout(y.D_)})};
fAM=function(e){if(e.D_===void 0){var N=Math.max(0,e.J+e.N-Nv());e.D_=setTimeout(function(){try{e.callback()}finally{e.J=Nv(),e.D_=void 0}},N)}};
pw=function(e,N,y){wq.call(this);this.metrics=e;this.vI=N;this.Ao=y};
Cw=function(e,N){N=N===void 0?[]:N;var y={vI:e.vI||"_",Ao:e.Ao||"",Dv:e.Dv||[],IA:e.IA|0,g1:e.g1,e4:e.e4||function(){},
yF:!!e.yF,gj:e.gj||function(A,T){return VUF(A,T,y.e4,y.yF,y.g1)}},w=y.gj("45",y.Dv.concat(N));
pw.call(this,gY5(w),y.vI,y.Ao);var E=this;this.K=N;this.lk={cZ:function(){return E.options.Dv.concat(E.K).sort(function(A,T){return A-T})}};
this.options=y;this.service=w;this.N=!e.gj;this.J=new Jf(function(){return void E.service.uW()},y.IA);
this.addOnDisposeCallback(function(){E.J.dispose();E.N&&E.service.dispose()})};
Nv=function(){var e,N,y;return(y=(e=globalThis.performance)==null?void 0:(N=e.now)==null?void 0:N.call(e))!=null?y:Date.now()};
rq=function(e){this.wT=ic(e)};
$s=function(e){this.wT=ic(e)};
Ys=function(e){this.wT=ic(e,0,Ys.messageId)};
tUH=function(e){this.wT=ic(e)};
AV=function(e){this.wT=ic(e)};
Mv=function(e){this.wT=ic(e)};
g.lq=function(){var e=this;this.promise=new Promise(function(N,y){e.resolve=N;e.reject=y})};
uw5=function(e,N,y){if(e.disable)return new Af;var w=N?ks3(N):[];if(y)return y.U3(w),y.share();y=e.vI;var E=e.Ao,A=e.QV,T=e.Sg1;N=N==null?void 0:Tx(N,tUH,10);var p=p===void 0?45:p;N=(N==null?void 0:Tw(N,1))||0;e={vI:y,Ao:E,Dv:A,IA:T,yF:N>0&&p>=N,g1:e.g1,e4:e.e4,gj:e.gj};w=w===void 0?[]:w;return new Cw(e,w)};
Fa=function(e){function N(S,k,X,d){Promise.resolve().then(function(){C.done();p.DU();p.dispose();T.resolve({yv:S,IM1:k,aDs:X,izP:d})})}
function y(S,k,X,d){if(!w.logger.Ss()){var v="k";k?v="h":X&&(v="u");v!=="k"?d!==0&&(w.logger.pm(v),w.logger.WJ(v,S)):w.N<=0?(w.logger.pm(v),w.logger.WJ(v,S),w.N=Math.floor(Math.random()*200)):w.N--}}
g.x.call(this);var w=this;this.N=Math.floor(Math.random()*200);this.J=new Mv;if("challenge"in e&&qAM(e.challenge)){var E=Mq(e.challenge,4);var A=Mq(e.challenge,5);Mq(e.challenge,7)&&(this.J=Z9F(Mq(e.challenge,7)))}else E=e.program,A=e.globalName;this.addOnDisposeCallback(function(){var S,k,X;return g.f(function(d){if(d.J==1)return g.D(d,w.K,2);S=d.N;k=S.IM1;(X=k)==null||X();g.hn(d)})});
this.logger=uw5(e.EW||{},this.J,e.Uh);g.Q(this,this.logger);var T=new g.lq;this.K=T.promise;this.logger.pm("t");var p=this.logger.share(),C=new yX(p,"t");if(!g.xJ[A])throw this.logger.iR(25),Error("EGOU");if(!g.xJ[A].a)throw this.logger.iR(26),Error("ELIU");try{var r=g.xJ[A].a;A=[];for(var Y=[],M=ks3(this.J),l=0;l<M.length;l++)A.push(M[l]),Y.push(1);var F=B_P(this.J);for(M=0;M<F.length;M++)A.push(F[M]),Y.push(2);this.j=g.c(r(E,N,!0,e.RI,y,[A,Y],Mq(this.J,5))).next().value;this.oH=T.promise.then(function(){})}catch(S){throw this.logger.iR(28),
S;
}};
St=function(e,N,y){var w=Error.call(this);this.message=w.message;"stack"in w&&(this.stack=w.stack);this.code=e;N+=":";y!=null||(y=Error());if(y instanceof Error){this.message=N+y.message;var E;this.stack=(E=y.stack)!=null?E:""}else this.message=N+String(y),this.stack="";Object.setPrototypeOf(this,this.constructor.prototype)};
xPJ=function(e){if(!e)return null;e=$f(e,4);return e===null||e===void 0?null:PP(e)};
o7=function(){this.N={};this.J=null};
bq=function(){o7.instance||(o7.instance=new o7);return o7.instance};
hf=function(e,N){return jBn(e,Tx(N,rq,1),Tx(N,$s,2),Mq(N,3))};
jBn=function(e,N,y,w){if(!N&&!y)return Promise.resolve();if(!w)return nYP(N,y);var E;(E=e.N)[w]||(E[w]=new Promise(function(A,T){nYP(N,y).then(function(){e.J=w;A()},function(p){delete e.N[w];
T(p)})}));
return e.N[w]};
nYP=function(e,N){return N?QB_(N):e?mPJ(e):Promise.resolve()};
QB_=function(e){return new Promise(function(N,y){var w=g.sA("SCRIPT"),E=xPJ(e);g.QZ(w,E);w.onload=function(){g.ws(w);N()};
w.onerror=function(){g.ws(w);y(Error("EWLS"))};
(g.n9("HEAD")[0]||document.documentElement).appendChild(w)})};
mPJ=function(e){return new Promise(function(N){var y=g.sA("SCRIPT");if(e){var w=$f(e,6);w=w===null||w===void 0?null:kyM(w)}else w=null;y.textContent=j$(w);ny(y);(g.n9("HEAD")[0]||document.documentElement).appendChild(y);g.ws(y);N()})};
cn=function(e){this.wT=ic(e)};
ks=function(e){this.wT=ic(e)};
Bn=function(e,N,y){this.client=e;this.XB=N;this.J=y};
Xa=function(e){g.x.call(this);var N=this;this.options=e;this.Z=new g.lq;this.oH=this.Z.promise;this.L=new g.lq;this.U=1;this.K=new g.lq;this.j=[];this.Fj=e.Fj||function(){};
this.logger=new Ta(uw5(e.EW||{}));H9P(this,e.Gq,e.Kf,e.p1g,e.xoP,Object.assign({},KcH,e.T3||{}));this.addOnDisposeCallback(function(){return void Wc_(N)})};
O90=function(e){var N;return g.f(function(y){if(e.Ss())throw Error("Already disposed");(N=e.J)!=null&&(N.endTimeMs=0,N.nG(1));return g.D(y,e.K.promise,0)})};
Wc_=function(e){e.G=Error("Cancelled by dispose");e.L.resolve();Cq(e.Z.promise);e.Z.reject(Error("Cancelled by dispose"));e.logger.dispose();Promise.all(e.j).then(function(){var y;return g.f(function(w){(y=e.N)==null||y.dispose();e.N=void 0;g.hn(w)})});
e.j=[];var N;(N=e.J)!=null&&(N.endTimeMs=0,N.nG(1));Cq(e.K.promise);e.K.reject(Error("Cancelled by dispose"))};
Rm0=function(e,N){var y=e.Fj;e.Fj=function(){y();N()}};
GMM=function(e,N){e.Ss()||(e.N=N,e.logger.update(N.lC()),e.L.resolve(),e.Z.resolve(void 0),e.Fj())};
UP5=function(e,N){N&&(Promise.all(e.j).then(function(){return void N.dispose()}),e.j=[])};
Pn=function(e,N){e.U=N;var y,w;(w=(y=e.options).Ydt)==null||w.call(y,N)};
LcM=function(e){e.Ss()||(e.K.resolve(),e.K=new g.lq)};
H9P=function(e,N,y,w,E,A){w=w===void 0?bq():w;E=E===void 0?Promise.resolve(void 0):E;var T,p,C,r,Y,M,l,F,S,k,X,d;g.f(function(v){switch(v.J){case 1:return g.D(v,0,3);case 3:p=null;if(!T){v.u9(6);break}Pn(e,7);g.c5(v,7);return g.D(v,dq(T.snapshot({}),A.In,function(){return Promise.resolve("E:CTO")}),9);
case 9:p=v.N;g.B5(v,6);break;case 7:g.XH(v),p="E:UCE";case 6:C=void 0,r=T?A.WL:A.eC,Y=new g.kv(r,A.vL,A.gr,A.UM),M=0;case 10:if(!(M<A.maxAttempts)){v.u9(12);break}if(M===0){v.u9(13);break}Pn(e,0);e.J=new sBE(Y.getValue(),A.Ei,A.eX);return g.D(v,e.J.promise,14);case 14:l=v.N,e.J=void 0,l===1?(M=0,Y.reset()):g.BC(Y);case 13:g.c5(v,15);F=void 0;if(y){F=y;v.u9(17);break}Pn(e,5);S=w.J;return g.D(v,dq(N.x0(S,p),A.Fv,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:F=v.N;case 17:return Pn(e,3),g.D(v,dq(hf(w,F),A.sqs,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return Pn(e,8),g.D(v,E,20);case 20:return k=new Fa({challenge:F,EW:e.options.EW,RI:e.options.RI}),g.D(v,dq(k.oH,A.MVh,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:C=k;v.u9(12);break;case 15:X=g.XH(v),e.handleError(X),LcM(e);case 11:M++;v.u9(10);break;case 12:if(e.Ss()){v.u9(5);break}C&&(y=void 0,UP5(e,T),T=C,GMM(e,C),LcM(e));Pn(e,2);e.J=new sBE(A.sf1,A.Ei,A.eX);return g.D(v,e.J.promise,22);case 22:e.J=void 0;if(e.Ss()){v.u9(5);break}v.u9(3);break;case 5:(d=T)==null||d.dispose(),g.hn(v)}})};
dq=function(e,N,y){var w,E=new Promise(function(A){w=setTimeout(A,N)});
return Promise.race([e.finally(function(){return void clearTimeout(w)}),
E.then(y)])};
sBE=function(e,N,y){function w(){var A=E.endTimeMs-Date.now();A<=y?E.nG(0):setTimeout(w,Math.min(A,N))}
var E=this;this.endTimeMs=Date.now()+e;this.promise=new Promise(function(A){E.nG=A});
w()};
aA9=function(e,N){try{return globalThis.sessionStorage.setItem(e,N),!0}catch(y){return!1}};
I7=function(e,N,y,w){N=N===void 0?0:N;y=y===void 0?e.length:y;var E=0;for(w&&(E=I7(w));N<y;N++)w=typeof e==="string"?e.charCodeAt(N):e[N],E=eR5(31,E)+w|0;return E};
Nss=function(e,N){return[I7(e,0,e.length>>1,N),I7(e,e.length>>1)]};
yL1=function(e){var N=g.c(Nss(e,vn));e=N.next().value;N=N.next().value;return e.toString(16)+N.toString(16)};
wCn=function(e,N){var y=Nss(N);e=new Uint32Array(e.buffer);N=e[0];var w=g.c(y);y=w.next().value;w=w.next().value;for(var E=1;E<e.length;E+=2){for(var A=N,T=E,p=y,C=w,r=0;r<22;r++)T=T>>>8|T<<24,T+=A|0,T^=p+38293,A=A<<3|A>>>29,A^=T,C=C>>>8|C<<24,C+=p|0,C^=r+38293,p=p<<3|p>>>29,p^=C;A=[A,T];e[E]^=A[0];E+1<e.length&&(e[E+1]^=A[1])}};
EvP=function(e,N,y,w,E){var A=(4-(vn.length+y.length)%4)%4,T=new Uint8Array(4+A+vn.length+4+y.length),p=new DataView(T.buffer),C=0;p.setUint32(C,Math.random()*4294967295);C=C+4+A;T.set(vn,C);C+=vn.length;p.setUint32(C,E);T.set(y,C+4);wCn(T,w);return e.J1(N,function(r){return void globalThis.sessionStorage.removeItem(r)})?aA9(N,g.oN(T))?"s":"t":"i"};
ALP=function(e,N){var y=globalThis.sessionStorage.getItem(e);if(!y)return["m"];try{var w=hO(y);wCn(w,N)}catch(E){return globalThis.sessionStorage.removeItem(e),["c"]}for(N=4;N<7&&w[N]===0;)N++;for(y=0;y<vn.length;y++)if(w[N++]!==vn[y])return globalThis.sessionStorage.removeItem(e),["d"];y=(new DataView(w.buffer)).getUint32(N);return Math.floor(Date.now()/1E3)>=y?(globalThis.sessionStorage.removeItem(e),["e"]):["a",new Uint8Array(w.buffer,N+4)]};
za=function(e,N,y){y=y===void 0?[]:y;this.maxItems=e;this.J=N===void 0?0:N;this.N=y};
TsM=function(e){var N=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!N)return new za(e);var y=N.split(",");if(y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new za(e);N=y.slice(1);N.length===1&&N[0]===""&&(N=[]);y=Number(y[0]);return isNaN(y)||y<0||y>N.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new za(e)):new za(e,y,N)};
JL9=function(e,N){this.logger=N;try{var y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(w){y=!1}y&&(this.index=TsM(e))};
pCs=function(e,N,y,w,E){var A=e.index?E5(e.logger,function(){return EvP(e.index,yL1(N),y,w,E)},"W"):"u";
e.logger.sx(A)};
CQP=function(e,N,y){var w=g.c(e.index?E5(e.logger,function(){return ALP(yL1(N),y)},"R"):["u"]),E=w.next().value;
w=w.next().value;e.logger.Qz(E);return w};
Yx_=function(e){function N(){y-=w;y-=E;y^=E>>>13;w-=E;w-=y;w^=y<<8;E-=y;E-=w;E^=w>>>13;y-=w;y-=E;y^=E>>>12;w-=E;w-=y;w^=y<<16;E-=y;E-=w;E^=w>>>5;y-=w;y-=E;y^=E>>>3;w-=E;w-=y;w^=y<<10;E-=y;E-=w;E^=w>>>15}
e=rL9(e);for(var y=2654435769,w=2654435769,E=314159265,A=e.length,T=A,p=0;T>=12;T-=12,p+=12)y+=DV(e,p),w+=DV(e,p+4),E+=DV(e,p+8),N();E+=A;switch(T){case 11:E+=e[p+10]<<24;case 10:E+=e[p+9]<<16;case 9:E+=e[p+8]<<8;case 8:w+=e[p+7]<<24;case 7:w+=e[p+6]<<16;case 6:w+=e[p+5]<<8;case 5:w+=e[p+4];case 4:y+=e[p+3]<<24;case 3:y+=e[p+2]<<16;case 2:y+=e[p+1]<<8;case 1:y+=e[p+0]}N();return $8E.toString(E)};
rL9=function(e){for(var N=[],y=0;y<e.length;y++)N.push(e.charCodeAt(y));return N};
DV=function(e,N){return e[N+0]+(e[N+1]<<8)+(e[N+2]<<16)+(e[N+3]<<24)};
gq=function(e){g.x.call(this);var N=this;this.logger=e;this.N=new g.lq;this[MvF]=this.dispose;this.addOnDisposeCallback(function(){Cq(N.N.promise);N.N.reject()})};
VX=function(e,N){var y=setTimeout(function(){e.N.resolve()},N);
e.addOnDisposeCallback(function(){return void clearTimeout(y)})};
fw=function(e,N,y,w){return E5(e.logger,function(){return y?e.Gr(N,w):e.HF(N,w)},e.J)};
tf=function(e,N,y,w){gq.call(this,e);this.j=N;this.Z=y;this.J="m";this.K="x";this.L=0;VX(this,w)};
uq=function(e,N,y){gq.call(this,e);this.j=N;this.J="f";this.K="z";VX(this,y)};
qv=function(e,N,y){gq.call(this,e);this.j=N;this.J="w";this.K="z";VX(this,y)};
ZV=function(e,N){gq.call(this,e);this.error=N;this.J="e";this.K="y"};
lHH=function(e,N){var y=(N(e.error.message)+":"+N(e.error.stack)).substring(0,2048);N=y.length+1;y=jt(y);var w=new Uint8Array(4+y.length);w.set([42,N&127|128,N>>7,e.error.code]);w.set(y,4);return w};
QX=function(){var e=0,N;return function(y){N||(N=new Af);var w=new nw(N,e,1),E=fw(w,function(){return jt(y)},!0);
w.dispose();e++;return E}};
nw=function(e,N,y){gq.call(this,e);this.j=N;this.clientState=y;this.J="S";this.K="q"};
jt=function(e){return globalThis.TextEncoder?(new TextEncoder).encode(e):g.hV(e)};
mG=function(e,N,y){g.x.call(this);var w=this;this.logger=e;this.onError=N;this.state=y;this.G=0;this.N=void 0;this.addOnDisposeCallback(function(){w.J&&(w.J.dispose(),w.J=void 0)})};
F_M=function(e,N){N=N instanceof St?N:new St(5,"TVD:error",N);return e.reportError(N)};
Hn=function(e,N,y){try{if(e.Ss())throw new St(21,"BNT:disposed");if(!e.J&&e.N)throw e.N;var w,E;return(E=(w=Sx3(e,N,y))!=null?w:ovM(e,N,y))!=null?E:bg3(e,N,y)}catch(A){if(!N.Dw)throw F_M(e,A);return hR0(e,y,A)}};
Sx3=function(e,N,y){var w;return(w=e.J)==null?void 0:fw(w,function(){return Kw(e,N)},y,function(E){var A;
if(e.J instanceof tf&&((A=N.h1)==null?0:A.W4))try{var T;(T=e.cache)==null||pCs(T,Kw(e,N),E,N.h1.Lk,e.U-120)}catch(p){e.reportError(new St(24,"ELX:write",p))}})};
ovM=function(e,N,y){var w;if((w=N.h1)!=null&&w.Xa)try{var E,A=(E=e.cache)==null?void 0:CQP(E,Kw(e,N),N.h1.Lk);return A?y?E5(e.logger,function(){return g.oN(A,2)},"a"):A:void 0}catch(T){e.reportError(new St(23,"RXO:read",T))}};
bg3=function(e,N,y){var w={stack:[],error:void 0,hasError:!1};try{if(!N.Ic)throw new St(29,"SDF:notready");return fw(NM(w,new nw(e.logger,e.G,e.state)),function(){return Kw(e,N)},y)}catch(E){w.error=E,w.hasError=!0}finally{w5(w)}};
hR0=function(e,N,y){var w={stack:[],error:void 0,hasError:!1};try{var E=F_M(e,y);return fw(NM(w,new ZV(e.logger,E)),function(){return[]},N)}catch(A){w.error=A,w.hasError=!0}finally{w5(w)}};
Kw=function(e,N){return N.OU?N.OU:N.qX?E5(e.logger,function(){return N.OU=jt(N.qX)},"c"):[]};
O5=function(e){var N;mG.call(this,e.f$.lC(),(N=e.onError)!=null?N:function(){},0);
var y=this;this.L=0;this.j=new g.lq;this.K=!1;this.f$=e.f$;this.Gq=e.Gq;this.T3=Object.assign({},cL3,e.T3||{});e.Ao&&(this.logger instanceof Cw||this.logger instanceof Ta)&&this.logger.zf(e.Ao);this.XV=e.XV||!1;if(kN0(e)){var w=this.f$;this.Z=function(){return O90(w).catch(function(T){T=y.reportError(new St(y.K?20:32,"TRG:Disposed",T));y.N=T;var p;(p=y.J)==null||p.dispose();y.J=void 0;y.j.reject(T)})};
Rm0(w,function(){return void Wn(y)});
w.U===2&&Wn(this)}else this.Z=e.nyt,Wn(this);var E=this.logger.share();E.pm("o");var A=new yX(E,"o");this.j.promise.then(function(){A.done();E.DU();E.dispose()},function(){return void E.dispose()});
this.addOnDisposeCallback(function(){y.K||(y.N?y.logger.DU():(y.N=y.reportError(new St(32,"TNP:Disposed")),y.logger.DU(),y.j.reject(y.N)));y.logger.dispose()})};
BsM=function(e,N){N=N instanceof St?N:N instanceof dR?new St(11,"EBH:Error",N):new St(12,"BSO:Unknown",N);return e.reportError(N)};
Wn=function(e){var N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){switch(X.J){case 1:N=void 0;e.L++;y=new g.lq;e.f$ instanceof Xa&&e.f$.j.push(y.promise);if(!e.XV){X.u9(2);break}w=new g.lq;setTimeout(function(){return void w.resolve()});
return g.D(X,w.promise,2);case 2:return E=e.logger.share(),g.c5(X,4,5),e.state=5,A={},T=[],g.D(X,dq(e.f$.snapshot({qX:A,PH:T}),e.T3.kSB,function(){return Promise.reject(new St(15,"MDA:Timeout"))}),7);
case 7:p=X.N;if(e.Ss())throw new St(e.K?20:32,"MDA:Disposed");C=T[0];e.state=6;return g.D(X,dq(E.S3("g",1,e.Gq.BU(p)),e.T3.JQ,function(){return Promise.reject(new St(10,"BWB:Timeout"))}),8);
case 8:r=X.N;if(e.Ss())throw new St(e.K?20:32,"BWB:Disposed");e.state=7;N=E5(E,function(){var v=XCF(e,r,y,C);v.N.promise.then(function(){return void e.Z()}).catch(function(){});
return v},"i");
case 5:g.P5(X);E.dispose();g.d_(X,6);break;case 4:Y=g.XH(X);(M=N)==null||M.dispose();if(!e.N){l=BsM(e,Y);y.resolve();var d;if(d=e.f$ instanceof Xa&&e.L<2)a:if(Y instanceof St)d=Y.code!==32&&Y.code!==20&&Y.code!==10;else{if(Y instanceof dR)switch(Y.code){case 2:case 13:case 14:case 4:break;default:d=!1;break a}d=!0}if(d)return F=(1+Math.random()*.25)*(e.K?6E4:1E3),S=setTimeout(function(){return void e.Z()},F),e.addOnDisposeCallback(function(){return void clearTimeout(S)}),X.return();
e.N=l}E.iR(e.K?13:14);e.j.reject(e.N);return X.return();case 6:e.state=8,e.L=0,(k=e.J)==null||k.dispose(),e.J=N,e.K=!0,e.j.resolve(),g.hn(X)}})};
XCF=function(e,N,y,w){var E=Yf(N,2)*1E3;if(E<=0)throw new St(31,"TTM:Invalid");if(Mq(N,4))return new qv(e.logger,Mq(N,4),E);if(!Yf(N,3))return new uq(e.logger,IN(RF(N,1)),E);if(!w)throw new St(4,"PMD:Undefined");w=w(IN(RF(N,1)));if(!(w instanceof Function))throw new St(16,"APF:Failed");e.U=Math.floor((Date.now()+E)/1E3);e=new tf(e.logger,w,Yf(N,3),E);e.addOnDisposeCallback(function(){return void y.resolve()});
return e};
R7=function(e){this.wT=ic(e)};
PQ_=function(e,N,y){this.EK=e;this.Uo=N;this.metadata=y};
Ga=function(e,N){N=N===void 0?{}:N;this.lMs=e;this.metadata=N;this.status=null};
U5=function(e,N,y,w,E){this.name=e;this.methodType="unary";this.requestType=N;this.responseType=y;this.J=w;this.N=E};
Lw=function(e){this.wT=ic(e)};
s5=function(e){this.wT=ic(e)};
a7=function(e){this.wT=ic(e)};
ee=function(e,N){this.G=e.TTP;this.U=N;this.J=e.xhr;this.K=[];this.L=[];this.Z=[];this.j=[];this.N=[];this.G&&d8n(this)};
igM=function(e,N){var y=new IHn;g.jv(e.J,"complete",function(){if(U0(e.J)){var w=g.LY(e.J);if(N&&e.J.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");w=atob(w)}try{var E=e.U(w)}catch(p){Nk(e,yP(new dR(13,"Error when deserializing response data; error: "+p+(", response: "+w)),y));return}w=p4n(e.J.getStatus());wS(e,EJ(e));w==0?vvn(e,E):Nk(e,yP(new dR(w,"Xhr succeeded but the status code is not 200"),y))}else{w=g.LY(e.J);E=EJ(e);if(w){var A=zRJ(e,
w);w=A.code;var T=A.details;A=A.metadata}else w=2,T="Rpc failed due to xhr error. uri: "+String(e.J.U)+", error code: "+e.J.N+", error: "+e.J.getLastError(),A=E;wS(e,E);Nk(e,yP(new dR(w,T,A),y))}})};
d8n=function(e){e.G.BF("data",function(N){if("1"in N){var y=N["1"];try{var w=e.U(y)}catch(E){Nk(e,new dR(13,"Error when deserializing response data; error: "+E+(", response: "+y)))}w&&vvn(e,w)}if("2"in N)for(N=zRJ(e,N["2"]),y=0;y<e.Z.length;y++)e.Z[y](N)});
e.G.BF("end",function(){wS(e,EJ(e));for(var N=0;N<e.j.length;N++)e.j[N]()});
e.G.BF("error",function(){if(e.N.length!=0){var N=e.J.N;N!==0||U0(e.J)||(N=6);var y=-1;switch(N){case 0:var w=2;break;case 7:w=10;break;case 8:w=4;break;case 6:y=e.J.getStatus();w=p4n(y);break;default:w=14}wS(e,EJ(e));N=lAM(N)+", error: "+e.J.getLastError();y!=-1&&(N+=", http status code: "+y);Nk(e,new dR(w,N))}})};
EJ=function(e){var N={},y=g.DP1(e.J);Object.keys(y).forEach(function(w){N[w]=y[w]});
return N};
zRJ=function(e,N){var y=2,w={};try{var E=D8J(N);y=Tw(E,1);var A=E.getMessage();Ek(E,s5,3).length&&(w["grpc-web-status-details-bin"]=N)}catch(T){e.J&&e.J.getStatus()===404?(y=5,A="Not Found: "+String(e.J.U)):(y=14,A="Unable to parse RpcStatus: "+T)}return{code:y,details:A,metadata:w}};
Ah=function(e,N){N=e.indexOf(N);N>-1&&e.splice(N,1)};
vvn=function(e,N){for(var y=0;y<e.K.length;y++)e.K[y](N)};
wS=function(e,N){for(var y=0;y<e.L.length;y++)e.L[y](N)};
Nk=function(e,N){for(var y=0;y<e.N.length;y++)e.N[y](N)};
IHn=function(){var e=Error.call(this);this.message=e.message;"stack"in e&&(this.stack=e.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
yP=function(e,N){N.stack&&(e.stack+="\n"+N.stack);return e};
g.T3=function(e){this.j=e.bwq||null;this.K=e.Za||!1;this.N=void 0};
Jh=function(e,N){g.Ux.call(this);this.Kh=e;this.Z=N;this.L=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.U=new Headers;this.N=null;this.Ng="GET";this.D="";this.J=!1;this.G=this.K=this.j=null};
gv9=function(e){e.K.read().then(e.sB.bind(e)).catch(e.yz.bind(e))};
Cc=function(e){e.readyState=4;e.j=null;e.K=null;e.G=null;pc(e)};
pc=function(e){e.onreadystatechange&&e.onreadystatechange.call(e)};
g.rS=function(e){this.J=this.U=this.L="";this.K=null;this.Z=this.N="";this.G=!1;var N;e instanceof g.rS?(this.G=e.G,g.$u(this,e.L),this.U=e.U,g.Yu(this,e.J),g.Mk(this,e.K),this.N=e.N,lX(this,e.j.clone()),this.Z=e.Z):e&&(N=String(e).match(fY))?(this.G=!1,g.$u(this,N[1]||"",!0),this.U=FL(N[2]||""),g.Yu(this,N[3]||"",!0),g.Mk(this,N[4]),this.N=FL(N[5]||"",!0),lX(this,N[6]||"",!0),this.Z=FL(N[7]||"")):(this.G=!1,this.j=new Se(null,this.G))};
g.$u=function(e,N,y){e.L=y?FL(N,!0):N;e.L&&(e.L=e.L.replace(/:$/,""))};
g.Yu=function(e,N,y){e.J=y?FL(N,!0):N};
g.Mk=function(e,N){if(N){N=Number(N);if(isNaN(N)||N<0)throw Error("Bad port number "+N);e.K=N}else e.K=null};
lX=function(e,N,y){N instanceof Se?(e.j=N,VvM(e.j,e.G)):(y||(N=ok(N,fHs)),e.j=new Se(N,e.G))};
g.bX=function(e,N,y){e.j.set(N,y)};
g.hh=function(e){return e instanceof g.rS?e.clone():new g.rS(e)};
FL=function(e,N){return e?N?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""};
ok=function(e,N,y){return typeof e==="string"?(e=encodeURI(e).replace(N,tvn),y&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null};
tvn=function(e){e=e.charCodeAt(0);return"%"+(e>>4&15).toString(16)+(e&15).toString(16)};
Se=function(e,N){this.N=this.J=null;this.K=e||null;this.j=!!N};
cN=function(e){e.J||(e.J=new Map,e.N=0,e.K&&Z9(e.K,function(N,y){e.add(GJ(N),y)}))};
uSM=function(e,N){cN(e);N=ku(e,N);return e.J.has(N)};
g.qxH=function(e,N,y){e.remove(N);y.length>0&&(e.K=null,e.J.set(ku(e,N),g.eE(y)),e.N=e.N+y.length)};
ku=function(e,N){N=String(N);e.j&&(N=N.toLowerCase());return N};
VvM=function(e,N){N&&!e.j&&(cN(e),e.K=null,e.J.forEach(function(y,w){var E=w.toLowerCase();w!=E&&(this.remove(w),g.qxH(this,E,y))},e));
e.j=N};
g.Zg5=function(e){var N="";g.oB(e,function(y,w){N+=w;N+=":";N+=y;N+="\r\n"});
return N};
g.BN=function(e,N,y){if(g.v4(y))return e;y=g.Zg5(y);if(typeof e==="string")return mV(e,g.RA(N),y);g.bX(e,N,y);return e};
g.XL=function(e){g.x.call(this);this.N=e;this.J={}};
x80=function(e,N,y,w,E,A){if(Array.isArray(y))for(var T=0;T<y.length;T++)x80(e,N,y[T],w,E,A);else{N=xv(N,y,w||e.handleEvent,E,A||e.N||e);if(!N)return e;e.J[N.key]=N}return e};
jCH=function(){this.K=!0;this.N=0;this.J=""};
nvJ=function(e,N,y){e.K=!1;throw Error("The stream is broken @"+e.N+". Error: "+y+". With input:\n"+N);};
PN=function(){this.Z=null;this.G=[];this.j=this.N=this.K=this.J=this.D=0;this.L=null;this.U=0};
dS=function(e,N,y,w){e.J=3;e.Z="The stream is broken @"+e.D+"/"+y+". Error: "+w+". With input:\n"+N;throw Error(e.Z);};
Ik=function(){this.J=null;this.N=0;this.K=new jCH;this.j=new PN};
QC3=function(e,N,y){e.J="The stream is broken @"+e.N+". Error: "+y+". With input:\n"+N;throw Error(e.J);};
vN=function(e){return e=="\r"||e=="\n"||e==" "||e=="\t"};
z3=function(e){this.D=null;this.Z=[];this.j="";this.Kh=[];this.K=this.N=0;this.G=!1;this.U=0;this.qg=/[\\"]/g;this.J=this.L=0;this.Ng=!(!e||!e.yV)};
iX=function(e,N,y){e.L=3;e.D="The stream is broken @"+e.K+"/"+y+". With input:\n"+N;throw Error(e.D);};
D7=function(){this.L=this.K=null;this.N=this.J=0;this.j=[];this.Z=!1};
m8M=function(e){var N=g.aD(e,"Content-Type");if(!N)return null;N=N.toLowerCase();return N.startsWith("application/json")?N.startsWith("application/json+protobuf")?new D7:new z3:N.startsWith("application/x-protobuf")?(e=g.aD(e,"Content-Transfer-Encoding"))?e.toLowerCase()=="base64"?new Ik:null:new PN:null};
gS=function(e){this.J=e;this.N=null;this.L=this.K=0;this.D=!1;this.j=this.G=this.Z=null;this.U=new g.XL(this);this.U.listen(this.J,"readystatechange",this.Ng)};
uX=function(e,N){e.L!=N&&(e.L=N,e.G&&e.G())};
qk=function(e){e.U.removeAll();if(e.J){var N=e.J;e.J=null;N.abort();N.dispose()}};
Hg5=function(e){e=this.K=e;var N=(0,g.Gs)(this.fBs,this);e.j=N;e=this.K;N=(0,g.Gs)(this.I_t,this);e.G=N;this.N={};this.J={}};
K_J=function(e,N){for(var y={},w=0;w<e.length;y={mE:void 0},w++)y.mE=e[w],N.forEach(function(E){return function(A){try{A(E.mE)}catch(T){}}}(y))};
Z7=function(e,N){var y=e.N[N];y&&y.forEach(function(w){try{w()}catch(E){}});
(y=e.J[N])&&y.forEach(function(w){w()});
e.J[N]=[]};
W_P=function(){var e={format:"jspb"};e=e===void 0?{}:e;this.L=e.Z2t||g.nM("suppressCorsPreflight",e)||!1;this.N=e.withCredentials||g.nM("withCredentials",e)||!1;this.j=e.PXt||[];this.Z=e.oSh||[];this.J=e.nSP;this.K=e.B11||!1};
U85=function(e,N,y,w,E){var A=N.substring(0,N.length-E.name.length);return OgJ(function(T){return new RR_(function(p,C){var r={},Y=GNH(e,T,A);Y.BF("error",function(M){return C(M)});
Y.BF("metadata",function(M){r=M});
Y.BF("data",function(M){var l=r;l=l===void 0?{}:l;p(new Ga(M,l))})})},e.Z).call(e,E.G(y,w)).then(function(T){return T.lMs})};
GNH=function(e,N,y){var w=N.Uo,E=N.getMetadata(),A=L_3(e,!0);e=sCH(e,E,A,y+w.getName());y=aHM(A,w.N,!1);igM(y,E["X-Goog-Encode-Response-If-Executable"]=="base64");N=w.J(N.EK);A.send(e,"POST",N);return y};
L_3=function(e,N){N=e.K&&!N;return e.J||N?new g.Wc(new g.T3({bwq:e.J,Za:N})):new g.Wc};
sCH=function(e,N,y,w){N["Content-Type"]="application/json+protobuf";N["X-User-Agent"]="grpc-web-javascript/0.1";var E=N.Authorization;if(E&&etJ.has(E.split(" ")[0])||e.N)y.G=!0;if(e.L)w=g.BN(w,"$httpHeaders",N);else for(var A in N)y.headers.set(A,N[A]);return w};
aHM=function(e,N,y){if(y){e.isActive();y=new gS(e);var w=new Hg5(y)}return new ee({xhr:e,TTP:w},N)};
OgJ=function(e,N){return N.reduce(function(y,w){return function(E){return w.intercept(E,y)}},e)};
NR1=function(){this.J=new W_P;this.N="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
xu=function(e){g.x.call(this);this.owner=e;this.signals=new Set;e&&g.Q(e,this)};
je=function(e,N){e.signals.has(N);return N};
nc=function(e){g.x.call(this);this.wY=e;this.slots=new Map;this.zb=new Set;this.qn=!1};
yoM=function(e,N){e.Ss()||e.slots.set(N,{slotId:N,slot:void 0,YG:function(){return e.slots.delete(N)}})};
mM=function(e,N){new Promise(function(y){QP(function(){e.wY&&(e.kA=N,e.qn=!0);for(var w=g.c(e.slots.values()),E=w.next();!E.done;E=w.next()){var A=E.value;E=A.slotId;A=A.slot;try{A(N,{signal:e,slotId:E})}catch(T){b_(T)}}w=g.c(e.zb);for(E=w.next();!E.done;E=w.next())E.value.resolve(N);e.zb.clear();y()})})};
QP=function(e){HN.push(e);wcP()};
wcP=function(){var e,N;g.f(function(y){switch(y.J){case 1:if(Kc)return y.return();g.c5(y,2,3);Kc=!0;e=ET0(0);case 5:if(!(e<HN.length)){y.u9(3);break}return g.D(y,Promise.resolve(),8);case 8:e=ET0(e);y.u9(5);break;case 3:g.P5(y);HN.length=0;Kc=!1;g.d_(y,0);break;case 2:N=g.XH(y),b_(N),y.u9(3)}})};
ET0=function(e){for(var N=e+100;e<N&&e<HN.length;)try{HN[e++]()}catch(y){b_(y)}return e};
AoM=function(e,N){if(e.Ss())N();else{var y=WN.get(e);if(y)y.push(N);else{var w=[N];WN.set(e,w);e.addOnDisposeCallback(function(){for(var E=g.c([].concat(g.B(w))),A=E.next();!A.done;A=E.next())A=A.value,A();WN.delete(e)})}}};
OJ=function(e,N,y){g.x.call(this);this.G=e;this.milliseconds=N;this.qU=y;this.state=this.j=0};
TRM=function(e){return new OJ(!1,e,{F$:function(){},
KZ:void 0})};
Rk=function(e){FF.call(this,e);this.name="TimerCancelledError"};
G3=function(e){FF.call(this,e);this.name="TimerDisposedError"};
Jo1=function(e){var N={qX:e.qX,OU:e.OU,Ic:!0,Dw:!0};e.h1&&(e=e.h1,N.h1={Lk:e.Lk,Xa:e.Xa,W4:e.W4});return N};
UJ=function(e){var N;mG.call(this,e.Nmh?new Af:new Cw({vI:e.vI,Ao:e.XB,Dv:e.Dv},[]),(N=e.onError)!=null?N:function(){},1);
this.K=new g.lq;this.Kf=void 0;this.Gq=e.Gq;this.TK=e.TK;var y;this.onEvent=(y=e.onEvent)!=null?y:function(){}};
CBF=function(e){var N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X;return g.f(function(d){switch(d.J){case 1:N=void 0,y=e.isReady()?6E4:1E3,w=new g.kv(y,6E5,.25,2),E={},A=1;case 2:if(!(A<=2)){d.u9(4);break}g.c5(d,5);e.state=3;e.G=A-1;return g.D(d,e.Kf&&A===1?e.Kf:e.x0(A),7);case 7:return T=d.N,e.Kf=void 0,e.state=4,p=new yX(e.logger,"b"),g.D(d,hf(bq(),T),8);case 8:return e.state=5,e.onEvent(1),E.xM=3,E.Uj=new Fa({challenge:T,Uh:e.logger}),C=Lc(e,12E4).then(function(V){return function(){e.onEvent(V.xM);return Promise.reject(new St(15,
"MDA:Timeout"))}}(E)),g.D(d,Promise.race([E.Uj.oH,
C]),9);case 9:return e.onEvent(2),r=[],e.onEvent(4),E.xM=6,g.D(d,Promise.race([E.Uj.snapshot({PH:r}),C]),10);case 10:return Y=d.N,e.onEvent(5),M=g.c(r),l=M.next().value,E.fg=l,p.done(),e.state=6,g.D(d,pc_(e,e.logger.S3("g",A,e.Gq.BU(Y)),new St(10,"BWB:Timeout")),11);case 11:return E.Kp=d.N,e.state=7,F=E5(e.logger,function(V){return function(){var Z=V.Kp;var n=V.Uj;var R=V.fg;if(Mq(Z,4))n.dispose(),n=new qv(e.logger,Mq(Z,4),Yf(Z,2)*1E3);else if(Yf(Z,3)){if(!R)throw new St(4,"PMD:Undefined");var O=
R(IN(RF(Z,1)));if(!(O instanceof Function))throw new St(16,"APF:Failed");R=Yf(Z,2)*1E3;Z=new tf(e.logger,O,Yf(Z,3),R);g.Q(Z,n);e.U=Math.floor((Date.now()+R)/1E3);n=Z}else n.dispose(),n=new uq(e.logger,IN(RF(Z,1)),Yf(Z,2)*1E3);return n}}(E),"i"),k=S=void 0,(k=(S=e).TK)==null||k.call(S,IN(RF(E.Kp,1))),e.state=8,d.return(F);
case 5:X=g.XH(d);N=X instanceof St?X:X instanceof G3?new St(20,"WTO:Disposed",X):X instanceof dR?new St(11,"EBH:Error",X):new St(12,"BSO:Unknown",X);e.reportError(N);a:{if(X instanceof dR)switch(X.code){case 2:case 13:case 14:case 4:var v=!0;break a;default:v=!1;break a}v=X instanceof St?X.code!==20:!0}if(!v)throw N;return g.D(d,Lc(e,w.getValue()),12);case 12:g.BC(w);case 3:E={xM:void 0,Kp:void 0,Uj:void 0,fg:void 0};A++;d.u9(2);break;case 4:throw N;}})};
Lc=function(e,N){N=TRM(N);g.Q(e,N);N.start();return N.U};
pc_=function(e,N,y){return Promise.race([N,Lc(e,12E4).then(function(){return Promise.reject(y)})])};
ro_=function(e){var N,y,w;g.f(function(E){switch(E.J){case 1:return N=void 0,g.c5(E,5),g.D(E,CBF(e),7);case 7:N=E.N;g.B5(E,6);break;case 5:y=g.XH(E);if(e.J){e.logger.iR(13);E.u9(0);break}e.logger.iR(14);N=new ZV(e.logger,y instanceof St?y:new St(14,"SOM:Init",y instanceof Error?y:Error(String(y))));case 6:return w=void 0,(w=e.J)==null||w.dispose(),e.J=N,e.K.resolve(),g.c5(E,8),g.D(E,e.J.N.promise,10);case 10:g.B5(E,1);break;case 8:g.XH(E),E.u9(0)}})};
$0s=function(e,N){N.h1&&!e.cache&&e.Mh(Math.min(N.h1.w9B,150))};
Y0M=function(e){var N={};g.$R(e,function(y){var w=y.event,E=N[w];N.hasOwnProperty(w)?E!==null&&(y.Bw(E)||(N[w]=null)):N[w]=y});
a1M(e,function(y){return N[y.event]===null})};
sJ=function(){this.UQ=0;this.J=!1;this.N=-1;this.cJ=!1;this.wk=0};
ak=function(){this.N=null;this.J=!1};
eb=function(e){ak.call(this);this.j=e};
NL=function(){ak.call(this)};
y1=function(){ak.call(this)};
wn=function(){this.J={};this.N=!0;this.K={}};
E7=function(e,N,y){e.J[N]||(e.J[N]=new eb(y));return e.J[N]};
M9s=function(e){e.J.queryid||(e.J.queryid=new y1)};
Ar=function(e,N,y){(e=e.J[N])&&e.K(y)};
T0=function(e,N){if(g.P4(e.K,N))return e.K[N];if(e=e.J[N])return e.getValue()};
Jr=function(e){var N={},y=g.b8(e.J,function(w){return w.J});
g.oB(y,function(w,E){w=e.K[E]!==void 0?String(e.K[E]):w.J&&w.N!==null?String(w.N):"";w.length>0&&(N[E]=w)},e);
return N};
l93=function(e){e=Jr(e);var N=[];g.oB(e,function(y,w){w in Object.prototype||typeof y!="undefined"&&N.push([w,":",y].join(""))});
return N};
S09=function(e){E7(e,"od",FVM);E7(e,"opac",po).J=!0;E7(e,"sbeos",po).J=!0;E7(e,"prf",po).J=!0;E7(e,"mwt",po).J=!0;E7(e,"iogeo",po)};
oT0=function(){this.J=this.Gl=null};
Co=function(){};
$n=function(){if(!rn())throw Error();};
rn=function(){return!(!Yn||!Yn.performance)};
ML=function(e){return e?e.passive&&bY_()?e:e.capture||!1:!1};
lM=function(e,N,y,w){return e.addEventListener?(e.addEventListener(N,y,ML(w)),!0):!1};
FR=function(e){return e.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||""]||0};
htn=function(){};
co5=function(){return(i_||DZ)&&g5?g5.mobile:!Sb()&&(fq("iPod")||fq("iPhone")||fq("Android")||fq("IEMobile"))};
Sb=function(){return(i_||DZ)&&g5?!g5.mobile&&(fq("iPad")||fq("Android")||fq("Silk")):fq("iPad")||fq("Android")&&!fq("Mobile")||fq("Silk")};
op=function(e){try{return!!e&&e.location.href!=null&&T50(e,"foo")}catch(N){return!1}};
bM=function(e,N){if(e)for(var y in e)Object.prototype.hasOwnProperty.call(e,y)&&N(e[y],y,e)};
BR3=function(){var e=[];bM(k83,function(N){e.push(N)});
return e};
Xc5=function(e){var N,y;return(y=(N=/https?:\/\/[^\/]+/.exec(e))==null?void 0:N[0])!=null?y:""};
I9J=function(){var e=PBF("IFRAME"),N={};g.$R(d0s(),function(y){e.sandbox&&e.sandbox.supports&&e.sandbox.supports(y)&&(N[y]=!0)});
return N};
PBF=function(e,N){N=N===void 0?document:N;return N.createElement(String(e).toLowerCase())};
vT5=function(e){for(var N=e;e&&e!=e.parent;)e=e.parent,op(e)&&(N=e);return N};
gTP=function(e){e=e||hr();for(var N=new ztE(g.xJ.location.href,!1),y=null,w=e.length-1,E=w;E>=0;--E){var A=e[E];!y&&iY5.test(A.url)&&(y=A);if(A.url&&!A.OI){N=A;break}}E=null;A=e.length&&e[w].url;N.depth!=0&&A&&(E=e[w]);return new D0_(N,E,y)};
hr=function(){var e=g.xJ,N=[],y=null;do{var w=e;if(op(w)){var E=w.location.href;y=w.document&&w.document.referrer||null}else E=y,y=null;N.push(new ztE(E||""));try{e=w.parent}catch(A){e=null}}while(e&&w!=e);w=0;for(e=N.length-1;w<=e;++w)N[w].depth=e-w;w=g.xJ;if(w.location&&w.location.ancestorOrigins&&w.location.ancestorOrigins.length==N.length-1)for(e=1;e<N.length;++e)E=N[e],E.url||(E.url=w.location.ancestorOrigins[e-1]||"",E.OI=!0);return N};
D0_=function(e,N,y){this.J=e;this.N=N;this.K=y};
ztE=function(e,N){this.url=e;this.OI=!!N;this.depth=null};
cQ=function(){this.K="&";this.N={};this.j=0;this.J=[]};
kn=function(e,N){var y={};y[e]=N;return[y]};
V9n=function(e,N,y,w,E){var A=[];bM(e,function(T,p){(T=BQ(T,N,y,w,E))&&A.push(p+"="+T)});
return A.join(N)};
BQ=function(e,N,y,w,E){if(e==null)return"";N=N||"&";y=y||",$";typeof y==="string"&&(y=y.split(""));if(e instanceof Array){if(w||(w=0),w<y.length){for(var A=[],T=0;T<e.length;T++)A.push(BQ(e[T],N,y,w+1,E));return A.join(y[w])}}else if(typeof e==="object")return E||(E=0),E<2?encodeURIComponent(V9n(e,N,y,w,E+1)):"...";return encodeURIComponent(String(e))};
f9n=function(e){var N=1,y;for(y in e.N)y.length>N&&(N=y.length);return 3997-N-e.K.length-1};
PQ=function(e,N){this.J=e;this.depth=N};
uKn=function(){function e(p,C){return p==null?C:p}
var N=hr(),y=Math.max(N.length-1,0),w=gTP(N);N=w.J;var E=w.N,A=w.K,T=[];A&&T.push(new PQ([A.url,A.OI?2:0],e(A.depth,1)));E&&E!=A&&T.push(new PQ([E.url,2],0));N.url&&N!=A&&T.push(new PQ([N.url,0],e(N.depth,y)));w=g.dn(T,function(p,C){return T.slice(0,T.length-C)});
!N.url||(A||E)&&N!=A||(E=Xc5(N.url))&&w.push([new PQ([E,1],e(N.depth,y))]);w.push([]);return g.dn(w,function(p){return t9H(y,p)})};
t9H=function(e,N){g.Ip(N,function(E){return E.depth>=0});
var y=vQ(N,function(E,A){return Math.max(E,A.depth)},-1),w=Ews(y+2);
w[0]=e;g.$R(N,function(E){return w[E.depth+1]=E.J});
return w};
q0s=function(){var e=e===void 0?uKn():e;return e.map(function(N){return BQ(N)})};
ZYP=function(e){var N=!1;N=N===void 0?!1:N;Yn.google_image_requests||(Yn.google_image_requests=[]);var y=PBF("IMG",Yn.document);N&&(y.attributionSrc="");y.src=e;Yn.google_image_requests.push(y)};
z0=function(e){var N="GS";if(e.GS&&e.hasOwnProperty(N))return e.GS;var y=new e;e.GS=y;e.hasOwnProperty(N);return y};
iM=function(){this.N=new htn;this.J=rn()?new $n:new Co};
x0P=function(){D5();var e=Yn.document;return!!(e&&e.body&&e.body.getBoundingClientRect&&typeof Yn.setInterval==="function"&&typeof Yn.clearInterval==="function"&&typeof Yn.setTimeout==="function"&&typeof Yn.clearTimeout==="function")};
jDJ=function(){D5();return q0s()};
nT9=function(){};
D5=function(){var e=z0(nT9);if(!e.J){if(!Yn)throw Error("Context has not been set and window is undefined.");e.J=z0(iM)}return e.J};
gn=function(e){this.wT=ic(e)};
QDF=function(e){this.K=e;this.J=-1;this.N=this.j=0};
V1=function(e,N){return function(){var y=g.iE.apply(0,arguments);if(e.J>-1)return N.apply(null,g.B(y));try{return e.J=e.K.J.now(),N.apply(null,g.B(y))}finally{e.j+=e.K.J.now()-e.J,e.J=-1,e.N+=1}}};
m05=function(e,N){this.N=e;this.K=N;this.J=new QDF(e)};
HYE=function(){this.J={}};
WV_=function(){var e=fo().flags,N=KV0;e=e.J[N.key];if(N.valueType==="proto"){try{var y=JSON.parse(e);if(Array.isArray(y))return y}catch(w){}return N.defaultValue}return typeof e===typeof N.defaultValue?e:N.defaultValue};
U05=function(){this.K=void 0;this.N=this.Z=0;this.L=-1;this.RJ=new wn;E7(this.RJ,"mv",OY0).J=!0;E7(this.RJ,"omid",po);E7(this.RJ,"epoh",po).J=!0;E7(this.RJ,"epph",po).J=!0;E7(this.RJ,"umt",po).J=!0;E7(this.RJ,"phel",po).J=!0;E7(this.RJ,"phell",po).J=!0;E7(this.RJ,"oseid",RtH).J=!0;var e=this.RJ;e.J.sloi||(e.J.sloi=new NL);e.J.sloi.J=!0;E7(this.RJ,"mm",tr);E7(this.RJ,"ovms",G8H).J=!0;E7(this.RJ,"xdi",po).J=!0;E7(this.RJ,"amp",po).J=!0;E7(this.RJ,"prf",po).J=!0;E7(this.RJ,"gtx",po).J=!0;E7(this.RJ,
"mvp_lv",po).J=!0;E7(this.RJ,"ssmol",po).J=!0;E7(this.RJ,"fmd",po).J=!0;E7(this.RJ,"gen204simple",po);this.J=new m05(D5(),this.RJ);this.j=!1;this.flags=new HYE};
fo=function(){return z0(U05)};
LVH=function(e,N,y,w){if(Math.random()<(w||e.J))try{if(y instanceof cQ)var E=y;else E=new cQ,bM(y,function(T,p){var C=E,r=C.j++;T=kn(p,T);C.J.push(r);C.N[r]=T});
var A=E.nC(e.N,"pagead2.googlesyndication.com","/pagead/gen_204?id="+N+"&");A&&(D5(),ZYP(A))}catch(T){}};
sDn=function(e,N,y){y=y===void 0?{}:y;this.error=e;this.context=N.context;this.msg=N.message||"";this.id=N.id||"jserror";this.meta=y};
a9_=function(){var e=e===void 0?g.xJ:e;return(e=e.performance)&&e.now&&e.timing?Math.floor(e.now()+e.timing.navigationStart):g.s9()};
eO_=function(){var e=e===void 0?g.xJ:e;return(e=e.performance)&&e.now?e.now():null};
NqP=function(e,N,y){this.label=e;this.type=N;this.value=y;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()};
qL=function(){var e=window;this.events=[];this.N=e||g.xJ;var N=null;e&&(e.google_js_reporting_queue=e.google_js_reporting_queue||[],this.events=e.google_js_reporting_queue,N=e.google_measure_js_timing);this.J=uM()||(N!=null?N:Math.random()<1)};
yfM=function(e){e&&Z5&&uM()&&(Z5.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_start"),Z5.clearMarks("goog_"+e.label+"_"+e.uniqueId+"_end"))};
wnJ=function(){var e=xn;this.J=jb;this.J6="jserror";this.Hx=!0;this.Kb=null;this.N=this.YY;this.g7=e===void 0?null:e};
Es5=function(e,N,y){var w=no;return V1(fo().J.J,function(){try{if(w.g7&&w.g7.J){var E=w.g7.start(e.toString(),3);var A=N();w.g7.end(E)}else A=N()}catch(p){var T=w.Hx;try{yfM(E),T=w.N(e,new Q1(mR(p)),void 0,y)}catch(C){w.YY(217,C)}if(!T)throw p;}return A})()};
HQ=function(e,N,y,w){return V1(fo().J.J,function(){var E=g.iE.apply(0,arguments);return Es5(e,function(){return N.apply(y,E)},w)})};
mR=function(e){var N=e.toString();e.name&&N.indexOf(e.name)==-1&&(N+=": "+e.name);e.message&&N.indexOf(e.message)==-1&&(N+=": "+e.message);if(e.stack)a:{e=e.stack;var y=N;try{e.indexOf(y)==-1&&(e=y+"\n"+e);for(var w;e!=w;)w=e,e=e.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");N=e.replace(/\n */g,"\n");break a}catch(E){N=y;break a}N=void 0}return N};
Q1=function(e){sDn.call(this,Error(e),{message:e})};
AfF=function(){Yn&&typeof Yn.google_measure_js_timing!="undefined"&&(Yn.google_measure_js_timing||xn.disable())};
Tq5=function(e){no.Kb=function(N){g.$R(e,function(y){y(N)})}};
Jfs=function(e,N){return Es5(e,N)};
Ko=function(e,N){return HQ(e,N)};
WQ=function(e,N,y,w){no.YY(e,N,y,w)};
O7=function(){return Date.now()-pnE};
CqH=function(){var e=fo().K,N=Rp>=0?O7()-Rp:-1,y=G0?O7()-U7:-1,w=Lo>=0?O7()-Lo:-1;if(e==947190542)return 100;if(e==79463069)return 200;e=[2E3,4E3];var E=[250,500,1E3];WQ(637,Error(),.001);var A=N;y!=-1&&y<N&&(A=y);for(N=0;N<e.length;++N)if(A<e[N]){var T=E[N];break}T===void 0&&(T=E[e.length]);return w!=-1&&w>1500&&w<4E3?500:T};
s7=function(e,N,y,w){this.top=e;this.right=N;this.bottom=y;this.left=w};
ap=function(e){return e.right-e.left};
e2=function(e,N){return e==N?!0:e&&N?e.top==N.top&&e.right==N.right&&e.bottom==N.bottom&&e.left==N.left:!1};
NW=function(e,N,y){N instanceof g.ri?(e.left+=N.x,e.right+=N.x,e.top+=N.y,e.bottom+=N.y):(e.left+=N,e.right+=N,typeof y==="number"&&(e.top+=y,e.bottom+=y));return e};
yC=function(e,N,y){var w=new s7(0,0,0,0);this.time=e;this.volume=null;this.K=N;this.J=w;this.N=y};
wm=function(e,N,y,w,E,A,T,p){this.j=e;this.G=N;this.K=y;this.Z=w;this.J=E;this.L=A;this.N=T;this.U=p};
$v1=function(e){var N=e!==e.top,y=e.top===vT5(e),w=-1,E=0;if(N&&y&&e.top.mraid){w=3;var A=e.top.mraid}else w=(A=e.mraid)?N?y?2:1:0:-1;A&&(A.IS_GMA_SDK||(E=2),jF5(rfE,function(T){return typeof A[T]==="function"})||(E=1));
return{x7:A,compatibility:E,Fyh:w}};
Y55=function(){var e=window.document;return e&&typeof e.elementFromPoint==="function"};
Mt1=function(e,N,y){e&&N!==null&&N!=N.top&&(N=N.top);try{return(y===void 0?0:y)?(new g.l8(N.innerWidth,N.innerHeight)).round():NPJ(N||window).round()}catch(w){return new g.l8(-12245933,-12245933)}};
Eb=function(e,N,y){try{e&&(N=N.top);var w=Mt1(e,N,y),E=w.height,A=w.width;if(A===-12245933)return new s7(A,A,A,A);var T=wyH(xY(N.document).J),p=T.x,C=T.y;return new s7(C,p+A,C+E,p)}catch(r){return new s7(-12245933,-12245933,-12245933,-12245933)}};
g.pK=function(e,N,y,w){this.left=e;this.top=N;this.width=y;this.height=w};
CK=function(e,N){return e==N?!0:e&&N?e.left==N.left&&e.width==N.width&&e.top==N.top&&e.height==N.height:!1};
g.$0=function(e,N,y){if(typeof N==="string")(N=rm(e,N))&&(e.style[N]=y);else for(var w in N){y=e;var E=N[w],A=rm(y,w);A&&(y.style[A]=E)}};
rm=function(e,N){var y=lV9[N];if(!y){var w=V43(N);y=w;e.style[w]===void 0&&(w=(g.RB?"Webkit":Y0?"Moz":null)+t45(w),e.style[w]!==void 0&&(y=w));lV9[N]=y}return y};
g.MW=function(e,N){var y=e.style[V43(N)];return typeof y!=="undefined"?y:e.style[rm(e,N)]||""};
lG=function(e,N){var y=ZA(e);return y.defaultView&&y.defaultView.getComputedStyle&&(e=y.defaultView.getComputedStyle(e,null))?e[N]||e.getPropertyValue(N)||"":""};
F0=function(e,N){return lG(e,N)||(e.currentStyle?e.currentStyle[N]:null)||e.style&&e.style[N]};
g.od=function(e,N,y){if(N instanceof g.ri){var w=N.x;N=N.y}else w=N,N=y;e.style.left=g.S2(w,!1);e.style.top=g.S2(N,!1)};
bG=function(e){try{return e.getBoundingClientRect()}catch(N){return{left:0,top:0,right:0,bottom:0}}};
FGE=function(e){var N=ZA(e),y=F0(e,"position"),w=y=="fixed"||y=="absolute";for(e=e.parentNode;e&&e!=N;e=e.parentNode)if(e.nodeType==11&&e.host&&(e=e.host),y=F0(e,"position"),w=w&&y=="static"&&e!=N.documentElement&&e!=N.body,!w&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight||y=="fixed"||y=="absolute"||y=="relative"))return e;return null};
g.hp=function(e){var N=ZA(e),y=new g.ri(0,0);if(e==(N?ZA(N):document).documentElement)return y;e=bG(e);N=wyH(xY(N).J);y.x=e.left+N.x;y.y=e.top+N.y;return y};
osn=function(e,N){var y=new g.ri(0,0),w=GM(ZA(e));if(!T50(w,"parent"))return y;do{var E=w==N?g.hp(e):S5J(e);y.x+=E.x;y.y+=E.y}while(w&&w!=N&&w!=w.parent&&(e=w.frameElement)&&(w=w.parent));return y};
g.ce=function(e,N){e=bwP(e);N=bwP(N);return new g.ri(e.x-N.x,e.y-N.y)};
S5J=function(e){e=bG(e);return new g.ri(e.left,e.top)};
bwP=function(e){if(e.nodeType==1)return S5J(e);e=e.changedTouches?e.changedTouches[0]:e;return new g.ri(e.clientX,e.clientY)};
g.k0=function(e,N,y){if(N instanceof g.l8)y=N.height,N=N.width;else if(y==void 0)throw Error("missing height argument");e.style.width=g.S2(N,!0);e.style.height=g.S2(y,!0)};
g.S2=function(e,N){typeof e=="number"&&(e=(N?Math.round(e):e)+"px");return e};
g.Be=function(e){var N=hOM;if(F0(e,"display")!="none")return N(e);var y=e.style,w=y.display,E=y.visibility,A=y.position;y.visibility="hidden";y.position="absolute";y.display="inline";e=N(e);y.display=w;y.position=A;y.visibility=E;return e};
hOM=function(e){var N=e.offsetWidth,y=e.offsetHeight,w=g.RB&&!N&&!y;return(N===void 0||w)&&e.getBoundingClientRect?(e=bG(e),new g.l8(e.right-e.left,e.bottom-e.top)):new g.l8(N,y)};
g.X0=function(e,N){e.style.display=N?"":"none"};
zu=function(e,N){N=Math.pow(10,N);return Math.floor(e*N)/N};
cfP=function(e){return new s7(e.top,e.right,e.bottom,e.left)};
kan=function(e){var N=e.top||0,y=e.left||0;return new s7(N,y+(e.width||0),N+(e.height||0),y)};
iG=function(e){return e!=null&&e>=0&&e<=1};
Bq_=function(){var e=g.zw();return e?DR("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(N){return P_(e,N)})||P_(e,"OMI/")&&!P_(e,"XiaoMi/")?!0:P_(e,"Presto")&&P_(e,"Linux")&&!P_(e,"X11")&&!P_(e,"Android")&&!P_(e,"Mobi"):!1};
XnP=function(){this.K=!op(Yn.top);this.isMobileDevice=Sb()||co5();var e=hr();this.domain=e.length>0&&e[e.length-1]!=null&&e[e.length-1].url!=null?g.uB(e[e.length-1].url)||"":"";this.J=new s7(0,0,0,0);this.j=new g.l8(0,0);this.L=new g.l8(0,0);this.G=new s7(0,0,0,0);this.frameOffset=new g.ri(0,0);this.Z=0;this.U=!1;this.N=!(!Yn||!$v1(Yn).x7);this.update(Yn)};
PqH=function(e,N){N&&N.screen&&(e.j=new g.l8(N.screen.width,N.screen.height))};
dv3=function(e,N){a:{var y=e.J?new g.l8(ap(e.J),e.J.getHeight()):new g.l8(0,0);N=N===void 0?Yn:N;N!==null&&N!=N.top&&(N=N.top);var w=0,E=0;try{var A=N.document,T=A.body,p=A.documentElement;if(A.compatMode=="CSS1Compat"&&p.scrollHeight)w=p.scrollHeight!=y.height?p.scrollHeight:p.offsetHeight,E=p.scrollWidth!=y.width?p.scrollWidth:p.offsetWidth;else{var C=p.scrollHeight,r=p.scrollWidth,Y=p.offsetHeight,M=p.offsetWidth;p.clientHeight!=Y&&(C=T.scrollHeight,r=T.scrollWidth,Y=T.offsetHeight,M=T.offsetWidth);
C>y.height?C>Y?(w=C,E=r):(w=Y,E=M):C<Y?(w=C,E=r):(w=Y,E=M)}var l=new g.l8(E,w);break a}catch(F){l=new g.l8(-12245933,-12245933);break a}l=void 0}e.L=l};
fK=function(){var e=gm();if(e.Z>0||e.U)return!0;e=D5().N.isVisible();var N=FR(VC)===0;return e||N};
gm=function(){return z0(XnP)};
tp=function(e){this.K=e;this.N=0;this.J=null};
uG=function(e,N,y){this.K=e;this.Zl=y===void 0?"na":y;this.L=[];this.isInitialized=!1;this.j=new yC(-1,!0,this);this.J=this;this.U=N;this.Ng=this.D=!1;this.i9="uk";this.l9=!1;this.Z=!0};
qW=function(e,N){g.Gw(e.L,N)||(e.L.push(N),N.mC(e.J),N.h$(e.j),N.xb()&&(e.D=!0))};
IV9=function(e){e=e.J;e.aQ();e.z1();var N=gm();N.G=Eb(!1,e.K,N.isMobileDevice);dv3(gm(),e.K);e.j.J=e.WW()};
vs0=function(e){e.D=e.L.length?DR(e.L,function(N){return N.xb()}):!1};
zO9=function(e){var N=g.eE(e.L);g.$R(N,function(y){y.h$(e.j)})};
ZR=function(e){var N=g.eE(e.L);g.$R(N,function(y){y.mC(e.J)});
e.J!=e||zO9(e)};
x0=function(e,N,y,w){this.element=e;this.J=new s7(0,0,0,0);this.K=null;this.Z=new s7(0,0,0,0);this.N=N;this.RJ=y;this.l9=w;this.qg=!1;this.timestamp=-1;this.D=new wm(N.j,this.element,this.J,new s7(0,0,0,0),0,0,O7(),0);this.L=void 0};
iwF=function(e,N){return e.L?new s7(Math.max(N.top+e.L.top,N.top),Math.min(N.left+e.L.right,N.right),Math.min(N.top+e.L.bottom,N.bottom),Math.max(N.left+e.L.left,N.left)):N.clone()};
j2=function(e){this.L=!1;this.J=e;this.j=function(){}};
Dvn=function(e,N,y){this.K=y===void 0?0:y;this.N=e;this.J=N==null?"":N};
gsF=function(e){switch(Math.trunc(e.K)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Vt3=function(e,N){return e.K<N.K?!0:e.K>N.K?!1:e.N<N.N?!0:e.N>N.N?!1:typeof e.J<typeof N.J?!0:typeof e.J>typeof N.J?!1:e.J<N.J};
nK=function(){this.K=0;this.J=[];this.N=!1};
fV5=function(e,N){(0,g.$R)(N.J,function(y){e.add(y.N,y.J,gsF(y))})};
QC=function(e,N){var y=y===void 0?0:y;var w=w===void 0?!0:w;bM(N,function(E,A){w&&E===void 0||e.add(A,E,y)});
return e};
mw=function(e){var N=tt9;e.N&&(g.pf(e.J,function(y,w){return Vt3(w,y)?1:Vt3(y,w)?-1:0}),e.N=!1);
return vQ(e.J,function(y,w){w=N(w);return""+y+(y!=""&&w!=""?"&":"")+w},"")};
tt9=function(e){var N=e.N;e=e.J;return e===""?N:typeof e==="boolean"?e?N:"":Array.isArray(e)?e.length===0?N:N+"="+e.join():N+"="+(g.Gw(["mtos","tos","p"],N)?e:encodeURIComponent(e))};
uaM=function(e){var N=N===void 0?!0:N;this.J=new nK;e!==void 0&&fV5(this.J,e);N&&this.J.add("v","unreleased",-16)};
q51=function(e){var N=[],y=[];g.oB(e,function(w,E){if(!(E in Object.prototype)&&typeof w!="undefined")switch(Array.isArray(w)&&(w=w.join(",")),w=[E,"=",w].join(""),E){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":N.unshift(w);break;case "req":case "url":case "referrer":case "iframe_loc":y.push(w);break;default:N.push(w)}});
return N.concat(y)};
Zws=function(e){e=e.toString();D5();ZYP(e)};
xvM=function(){this.J=0};
j70=function(e,N,y){(0,g.$R)(e.K,function(w){var E=e.J;if(!w.J&&(w.K(N,y),w.j())){w.J=!0;var A=w.N(),T=new nK;T.add("id","av-js");T.add("type","verif");T.add("vtype",w.L);w=z0(xvM);T.add("i",w.J++);T.add("adk",E);QC(T,A);E=new uaM(T);Zws(E)}})};
He=function(){this.N=this.K=this.j=this.J=0};
KK=function(e){this.N=e=e===void 0?nss:e;this.J=g.dn(this.N,function(){return new He})};
We=function(e,N){return Q7J(e,function(y){return y.J},N===void 0?!0:N)};
Rd=function(e,N){return Ob(e,N,function(y){return y.J})};
mv0=function(e,N){return Q7J(e,function(y){return y.K},N===void 0?!0:N)};
Gu=function(e,N){return Ob(e,N,function(y){return y.K})};
Ub=function(e,N){return Ob(e,N,function(y){return y.N})};
Hws=function(e){g.$R(e.J,function(N){N.N=0})};
Q7J=function(e,N,y){e=g.dn(e.J,function(w){return N(w)});
return y?e:KGM(e)};
Ob=function(e,N,y){var w=g.Rw(e.N,function(E){return N<=E});
return w==-1?0:y(e.J[w])};
KGM=function(e){return g.dn(e,function(N,y,w){return y>0?w[y]-w[y-1]:w[y]})};
LK=function(){this.N=new KK;this.Zl=this.aq=0;this.Bk=new He;this.Kh=this.G=-1;this.VB=1E3;this.Dl=new KK([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.i9=this.qg=-1};
sb=function(e,N){return mv0(e.N,N===void 0?!0:N)};
ad=function(e,N,y,w){var E=E===void 0?!1:E;y=HQ(w,y);lM(e,N,y,{capture:E})};
Ne=function(e,N){N=eg(N);return N===0?0:eg(e)/N};
eg=function(e){return Math.max(e.bottom-e.top,0)*Math.max(e.right-e.left,0)};
WGn=function(e,N){if(!e||!N)return!1;for(var y=0;e!==null&&y++<100;){if(e===N)return!0;try{if(e=e.parentElement||e){var w=ZA(e),E=w&&GM(w),A=E&&E.frameElement;A&&(e=A)}}catch(T){break}}return!1};
Ow_=function(e,N,y){if(!e||!N)return!1;N=NW(e.clone(),-N.left,-N.top);e=(N.left+N.right)/2;N=(N.top+N.bottom)/2;op(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Y55())return!1;e=window.document.elementFromPoint(e,N);if(!e)return!1;N=(N=(N=ZA(y))&&N.defaultView&&N.defaultView.frameElement)&&WGn(N,e);var w=e===y;e=!w&&e&&TN(e,function(E){return E===y});
return!(N||w||e)};
RO1=function(e,N,y,w){return gm().K?!1:ap(e)<=0||e.getHeight()<=0?!0:y&&w?Jfs(208,function(){return Ow_(e,N,y)}):!1};
yn=function(e,N,y){g.x.call(this);this.position=GaM.clone();this.j4=this.FQ();this.He=-2;this.timeCreated=Date.now();this.gp=-1;this.Qy=N;this.eP=null;this.jS=!1;this.mQ=null;this.opacity=-1;this.requestSource=y;this.TQG=!1;this.Xf=function(){};
this.Ah=function(){};
this.Ho=new oT0;this.Ho.Gl=e;this.Ho.J=e;this.zl=!1;this.B5={pF:null,sI:null};this.u7=!0;this.cK=null;this.Iw=this.Ug1=!1;fo().Z++;this.Cw=this.wc();this.Bh=-1;this.vG=null;this.hasCompleted=this.n1k=!1;this.RJ=new wn;S09(this.RJ);UvJ(this);this.requestSource==1?Ar(this.RJ,"od",1):Ar(this.RJ,"od",0)};
UvJ=function(e){e=e.Ho.Gl;var N;if(N=e&&e.getAttribute)N=/-[a-z]/.test("googleAvInapp")?!1:LG1&&e.dataset?"googleAvInapp"in e.dataset:e.hasAttribute?e.hasAttribute("data-"+fds()):!!e.getAttribute("data-"+fds());N&&(gm().N=!0)};
w6=function(e,N){N!=e.Iw&&(e.Iw=N,e=gm(),N?e.Z++:e.Z>0&&e.Z--)};
s7_=function(e,N){if(e.vG){if(N.getName()===e.vG.getName())return;e.vG.dispose();e.vG=null}N=N.create(e.Ho.J,e.RJ,e.xb());if(N=N!=null&&N.observe()?N:null)e.vG=N};
aV5=function(e,N,y){if(!e.eP||e.Qy==-1||N.N===-1||e.eP.N===-1)return 0;e=N.N-e.eP.N;return e>y?0:e};
e1P=function(e,N,y){if(e.vG){e.vG.n2();var w=e.vG.D,E=w.j,A=E.J;if(w.Z!=null){var T=w.K;e.mQ=new g.ri(T.left-A.left,T.top-A.top)}A=e.iC()?Math.max(w.J,w.L):w.J;T={};E.volume!==null&&(T.volume=E.volume);E=e.TC(w);e.eP=w;e.GZ(A,N,y,!1,T,E,w.U)}};
NS5=function(e){if(e.jS&&e.cK){var N=T0(e.RJ,"od")==1,y=gm().J,w=e.cK,E=e.vG?e.vG.getName():"ns",A=e.mQ,T=new g.l8(ap(y),y.getHeight());y=e.iC();e={ATk:E,mQ:A,NzP:T,iC:y,UQ:e.Cw.UQ,DSg:N};if(N=w.N){N.n2();E=N.D;A=E.j.J;var p=T=null;E.Z!=null&&A&&(T=E.K,T=new g.ri(T.left-A.left,T.top-A.top),p=new g.l8(A.right-A.left,A.bottom-A.top));E=y?Math.max(E.J,E.L):E.J;y={ATk:N.getName(),mQ:T,NzP:p,iC:y,DSg:!1,UQ:E}}else y=null;y&&j70(w,e,y)}};
yhn=function(e,N,y){N&&(e.Xf=N);y&&(e.Ah=y)};
g.Eo=function(){};
g.Aq=function(e){return{value:e,done:!1}};
wNJ=function(){this.j=this.J=this.K=this.N=this.L=0};
EuM=function(e){var N={};var y=g.s9()-e.L;N=(N.ptlt=y,N);(y=e.N)&&(N.pnk=y);(y=e.K)&&(N.pnc=y);(y=e.j)&&(N.pnmm=y);(e=e.J)&&(N.pns=e);return N};
Ah0=function(){sJ.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Te=function(e){return iG(e.volume)&&e.volume>0};
Jq=function(e,N,y,w){y=y===void 0?!0:y;w=w===void 0?function(){return!0}:w;
return function(E){var A=E[e];if(Array.isArray(A)&&w(E))return TS9(A,N,y)}};
pG=function(e,N){return function(y){return N(y)?y[e]:void 0}};
Jh_=function(e){return function(N){for(var y=0;y<e.length;y++)if(e[y]===N.e||e[y]===void 0&&!N.hasOwnProperty("e"))return!0;return!1}};
TS9=function(e,N,y){return y===void 0||y?g.CG(e,function(w,E){return g.Gw(N,E)}):g.dn(N,function(w,E,A){return e.slice(E>0?A[E-1]+1:0,w+1).reduce(function(T,p){return T+p},0)})};
pNM=function(){this.N=this.J=""};
CXH=function(){};
r6=function(e,N){var y={};if(e!==void 0)if(N!=null)for(var w in N){var E=N[w];w in Object.prototype||E!=null&&(y[w]=typeof E==="function"?E(e):e[E])}else g.VM(y,e);return mw(QC(new nK,y))};
rh5=function(){var e={};this.N=(e.vs=[1,0],e.vw=[0,1],e.am=[2,2],e.a=[4,4],e.f=[8,8],e.bm=[16,16],e.b=[32,32],e.avw=[0,64],e.avs=[64,0],e.pv=[256,256],e.gdr=[0,512],e.p=[0,1024],e.r=[0,2048],e.m=[0,4096],e.um=[0,8192],e.ef=[0,16384],e.s=[0,32768],e.pmx=[0,16777216],e.mut=[33554432,33554432],e.umutb=[67108864,67108864],e.tvoff=[134217728,134217728],e);this.J={};for(var N in this.N)this.N[N][1]>0&&(this.J[N]=0);this.K=0};
$V=function(e,N){var y=e.N[N],w=y[1];e.K+=y[0];w>0&&e.J[N]==0&&(e.J[N]=1)};
$ks=function(e){var N=g.Xw(e.N),y=0,w;for(w in e.J)g.Gw(N,w)&&e.J[w]==1&&(y+=e.N[w][1],e.J[w]=2);return y};
YJs=function(e){var N=0,y;for(y in e.J){var w=e.J[y];if(w==1||w==2)N+=e.N[y][1]}return N};
YV=function(){this.J=this.N=0};
Me=function(){LK.call(this);this.K=new He;this.Et=this.D=this.l9=0;this.U=-1;this.Kx=new He;this.L=new He;this.J=new KK;this.Z=this.j=-1;this.Ng=new He;this.VB=2E3;this.Rq=new YV;this.Ut=new YV;this.Wk=new YV};
l6=function(e,N,y){var w=e.Et;G0||y||e.U==-1||(w+=N-e.U);return w};
MeM=function(){this.K=!1};
FA=function(e,N){this.K=!1;this.j=e;this.D=N;this.L=0};
Sg=function(e,N){FA.call(this,e,N);this.G=[]};
l7_=function(){};
oZ=function(){};
b6=function(e,N,y,w){x0.call(this,e,N,y,w)};
hq=function(e,N,y){x0.call(this,null,e,N,y);this.U=e.isActive();this.G=0};
cf=function(e){return[e.top,e.left,e.bottom,e.right]};
kV=function(e,N,y,w,E,A){A=A===void 0?new oZ:A;yn.call(this,N,y,w);this.x5=E;this.f3=0;this.HI={};this.fN=new rh5;this.Ts={};this.a$="";this.Wk=null;this.dT=!1;this.J=[];this.rS=A.N();this.Z=A.K();this.j=null;this.K=-1;this.Zl=this.D=void 0;this.Kh=this.Ng=0;this.i9=-1;this.VB=this.Ut=!1;this.l9=this.U=this.N=this.JU=this.a9=0;new KK;this.Rq=this.Et=0;this.Bk=-1;this.I1=0;this.G=g.CY;this.qg=[this.FQ()];this.Y_=2;this.AN={};this.AN.pause="p";this.AN.resume="r";this.AN.skip="s";this.AN.mute="m";this.AN.unmute=
"um";this.AN.exitfullscreen="ef";this.L=null;this.Dl=this.Kx=!1;this.SR=Math.floor(Date.now()/1E3-1704067200);this.aq=0};
Bf=function(e){e.hasCompleted=!0;e.I1!=0&&(e.I1=3)};
XA=function(e){return e===void 0?e:Number(e)?zu(e,3):0};
Pf=function(e,N){return e.qg[N!=null&&N<e.qg.length?N:e.qg.length-1]};
FM9=function(e){var N=!!T0(fo().RJ,"umt");return e.D||!N&&!e.Zl?0:1};
SJ5=function(e,N){e.Ax()?N=0:e.Qy==-1?N=0:(N-=e.Qy,N=N>Math.max(1E4,e.K/3)?0:N);var y=e.G(e)||{};y=y.currentTime!==void 0?y.currentTime:e.Ng;var w=y-e.Ng,E=0;w>=0?(e.Kh+=N,e.Rq+=Math.max(N-w,0),E=Math.min(w,e.Kh)):e.Et+=Math.abs(w);w!=0&&(e.Kh=0);e.Bk==-1&&w>0&&(e.Bk=Lo>=0?O7()-Lo:-1);e.Ng=y;return E};
ouJ=function(e,N){DR(e.Z,function(y){return y.j==N.j})||e.Z.push(N)};
bcF=function(e){var N=Rd(e.Xe().J,1);return d6(e,N)};
d6=function(e,N,y){return N>=15E3?!0:e.Ut?(y===void 0?0:y)?!0:e.K>0?N>=e.K/2:e.i9>0?N>=e.i9:!1:!1};
h1E=function(e){var N=zu(e.Cw.UQ,2),y=e.fN.K,w=e.Cw,E=Pf(e),A=XA(E.j),T=XA(E.Z),p=XA(w.volume),C=zu(E.G,2),r=zu(E.Kh,2),Y=zu(w.UQ,2),M=zu(E.qg,2),l=zu(E.i9,2);w=zu(w.wk,2);var F=e.wD().clone().round();e=e.vG&&e.vG.K?(e.vG?e.vG.K:null).clone().round():null;E=sb(E,!1);return{J1k:N,ju:y,us:A,FE:T,HC:p,y8:C,Ne:r,UQ:Y,ai:M,Ky:l,wk:w,position:F,g$:e,Ri:E}};
k3_=function(e,N){chn(e.J,N,function(){return{J1k:0,ju:void 0,us:-1,FE:-1,HC:-1,y8:-1,Ne:-1,UQ:-1,ai:-1,Ky:-1,wk:-1,position:void 0,g$:void 0,Ri:[]}});
e.J[N]=h1E(e)};
chn=function(e,N,y){for(var w=e.length;w<N+1;)e.push(y()),w++};
vf=function(e,N,y){var w=e.Ts[N];if(w!=null)return w;w=BS1(e,N);var E=IB(IZ,function(A){return A==N});
e=XNn(e,w,w,y,PX9[IZ[E]]);N=="fully_viewable_audible_half_duration_impression"&&(e.std="csm");return e};
ze=function(e,N,y){var w=[N];if(e!=N||y!=N)w.unshift(e),w.push(y);return w};
XNn=function(e,N,y,w,E){if(e.zl)return{"if":0,vs:0};var A=e.wD().clone().round(),T=e.vG?e.vG.K:null,p=gm(),C=fo(),r=e.Xe(),Y=e.vG?e.vG.getName():"ns",M={};M["if"]=p.K?1:void 0;M.sdk=e.j?e.j:void 0;M.t=e.timeCreated;M.p=[A.top,A.left,A.bottom,A.right];A&&T&&!e2(T,A)&&(A=T.round(),M.cp=[A.top,A.left,A.bottom,A.right]);M.tos=We(r.N,!1);M.mtos=sb(r);M.mcvt=r.Bk.K;M.ps=void 0;A=l6(r,O7(),e.Ax());M.vht=A;M.mut=r.Kx.K;M.a=XA(e.Cw.volume);M.mv=XA(r.Z);M.fs=e.Iw?1:0;M.ft=r.Ng.J;M.at=r.L.J;M.as=r.j>0?1:0;M.atos=
We(r.J);M.ssb=We(r.Dl,!1);M.amtos=mv0(r.J,!1);M.uac=e.a9;M.vpt=r.K.J;Y=="nio"&&(M.nio=1,M.avms="nio");M.gmm="4";M.gdr=d6(e,r.K.J,!0)?1:0;M.efpf=e.Y_;if(Y=="gsv"||Y=="nis")Y=e.vG,Y.G>0&&(M.nnut=Y.G);M.tcm=FM9(e);M.nmt=e.Et;M.bt=e.Rq;M.pst=e.Bk;M.vpaid=e.D;M.dur=e.K;M.vmtime=e.Ng;M.is=e.fN.K;e.J.length>=1&&(M.i0=e.J[0].ju,M.a0=[e.J[0].HC],M.c0=[e.J[0].UQ],M.ss0=[e.J[0].wk],Y=e.J[0].position,A=e.J[0].g$,M.p0=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp0=cf(A)));e.J.length>=2&&(M.i1=e.J[1].ju,M.a1=ze(e.J[1].us,
e.J[1].HC,e.J[1].FE),M.c1=ze(e.J[1].y8,e.J[1].UQ,e.J[1].Ne),M.ss1=ze(e.J[1].ai,e.J[1].wk,e.J[1].Ky),Y=e.J[1].position,A=e.J[1].g$,M.p1=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp1=cf(A)),M.mtos1=e.J[1].Ri);e.J.length>=3&&(M.i2=e.J[2].ju,M.a2=ze(e.J[2].us,e.J[2].HC,e.J[2].FE),M.c2=ze(e.J[2].y8,e.J[2].UQ,e.J[2].Ne),M.ss2=ze(e.J[2].ai,e.J[2].wk,e.J[2].Ky),Y=e.J[2].position,A=e.J[2].g$,M.p2=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp2=cf(A)),M.mtos2=e.J[2].Ri);e.J.length>=4&&(M.i3=e.J[3].ju,M.a3=ze(e.J[3].us,e.J[3].HC,
e.J[3].FE),M.c3=ze(e.J[3].y8,e.J[3].UQ,e.J[3].Ne),M.ss3=ze(e.J[3].ai,e.J[3].wk,e.J[3].Ky),Y=e.J[3].position,A=e.J[3].g$,M.p3=Y?cf(Y):void 0,Y&&A&&!e2(A,Y)&&(M.cp3=cf(A)),M.mtos3=e.J[3].Ri);M.cs=YJs(e.fN);N&&(M.ic=$ks(e.fN),M.dvpt=r.K.N,M.dvs=Ub(r.N,.5),M.dfvs=Ub(r.N,1),M.davs=Ub(r.J,.5),M.dafvs=Ub(r.J,1),y&&(r.K.N=0,Hws(r.N),Hws(r.J)),e.RN()&&(M.dtos=r.l9,M.dav=r.D,M.dtoss=e.f3+1,y&&(r.l9=0,r.D=0,e.f3++)),M.dat=r.L.N,M.dft=r.Ng.N,y&&(r.L.N=0,r.Ng.N=0));M.ps=[p.L.width,p.L.height];M.bs=[ap(p.J),p.J.getHeight()];
M.scs=[p.j.width,p.j.height];M.dom=p.domain;e.JU&&(M.vds=e.JU);if(e.Z.length>0||e.rS)N=g.eE(e.Z),e.rS&&N.push(e.rS),M.pings=g.dn(N,function(l){return l.toString()});
N=g.dn(g.CG(e.Z,function(l){return l.Z()}),function(l){return l.getId()});
eX5(N);M.ces=N;e.N&&(M.vmer=e.N);e.U&&(M.vmmk=e.U);e.l9&&(M.vmiec=e.l9);M.avms=e.vG?e.vG.getName():"ns";e.vG&&g.VM(M,e.vG.t$());w?(M.c=zu(e.Cw.UQ,2),M.ss=zu(e.Cw.wk,2)):M.tth=O7()-dkM;M.mc=zu(r.Kh,2);M.nc=zu(r.G,2);M.mv=XA(r.Z);M.nv=XA(r.j);M.lte=zu(e.He,2);w=Pf(e,E);sb(r);M.qmtos=sb(w);M.qnc=zu(w.G,2);M.qmv=XA(w.Z);M.qnv=XA(w.j);M.qas=w.j>0?1:0;M.qi=e.a$;M.avms||(M.avms="geo");M.psm=r.Rq.J;M.psv=r.Rq.getValue();M.psfv=r.Ut.getValue();M.psa=r.Wk.getValue();C=l93(C.RJ);C.length&&(M.veid=C);e.L&&g.VM(M,
EuM(e.L));M.avas=e.Xw();M.vs=e.Vu();M.co=I7J(e);M.tm=r.aq;M.tu=r.Zl;return M};
BS1=function(e,N){if(g.Gw(vu5,N))return!0;var y=e.HI[N];return y!==void 0?(e.HI[N]=!0,!y):!1};
I7J=function(e){var N=e.aq.toString(10).padStart(2,"0");N=""+e.SR+N;e.aq<99&&e.aq++;return N};
ic_=function(){this.J={};var e=GM();i6(this,e,document);var N=z1M();try{if("1"==N){for(var y=e.parent;y!=e.top;y=y.parent)i6(this,y,y.document);i6(this,e.top,e.top.document)}}catch(w){}};
z1M=function(){var e=document.documentElement;try{if(!op(GM().top))return"2";var N=[],y=GM(e.ownerDocument);for(e=y;e!=y.top;e=e.parent)if(e.frameElement)N.push(e.frameElement);else break;return N&&N.length!=0?"1":"0"}catch(w){return"2"}};
i6=function(e,N,y){ad(y,"mousedown",function(){return Dk5(e)},301);
ad(N,"scroll",function(){return guP(e)},302);
ad(y,"touchmove",function(){return Ve9(e)},303);
ad(y,"mousemove",function(){return f7E(e)},304);
ad(y,"keydown",function(){return te5(e)},305)};
Dk5=function(e){g.oB(e.J,function(N){N.K>1E5||++N.K})};
guP=function(e){g.oB(e.J,function(N){N.J>1E5||++N.J})};
Ve9=function(e){g.oB(e.J,function(N){N.J>1E5||++N.J})};
te5=function(e){g.oB(e.J,function(N){N.N>1E5||++N.N})};
f7E=function(e){g.oB(e.J,function(N){N.j>1E5||++N.j})};
uLJ=function(){this.J=[];this.N=[]};
Df=function(e,N){return g.Ok(e.J,function(y){return y.a$==N})};
qJJ=function(e,N){return N?g.Ok(e.J,function(y){return y.Ho.Gl==N}):null};
Zc_=function(e,N){return g.Ok(e.N,function(y){return y.TJ()==2&&y.a$==N})};
Vn=function(){var e=g6;return e.J.length==0?e.N:e.N.length==0?e.J:g.aw(e.N,e.J)};
xkM=function(e,N){e=N.TJ()==1?e.J:e.N;var y=W_(e,function(w){return w==N});
return y!=-1?(e.splice(y,1),N.vG&&N.vG.unobserve(),N.dispose(),!0):!1};
jkH=function(e){var N=g6;if(xkM(N,e)){switch(e.TJ()){case 0:var y=function(){return null};
case 2:y=function(){return Zc_(N,e.a$)};
break;case 1:y=function(){return Df(N,e.a$)}}for(var w=y();w;w=y())xkM(N,w)}};
nu1=function(e){var N=g6;e=g.CG(e,function(y){return!qJJ(N,y.Ho.Gl)});
N.J.push.apply(N.J,g.B(e))};
Qks=function(e){var N=[];g.$R(e,function(y){DR(g6.J,function(w){return w.Ho.Gl===y.Ho.Gl&&w.a$===y.a$})||(g6.J.push(y),N.push(y))})};
fG=function(){this.J=this.N=null};
mkH=function(e,N){function y(w,E){N(w,E)}
if(e.N==null)return!1;e.J=g.Ok(e.N,function(w){return w!=null&&w.SG()});
e.J&&(e.J.init(y)?IV9(e.J.J):N(e.J.J.SU(),e.J));return e.J!=null};
tq=function(e){e=HcM(e);j2.call(this,e.length?e[e.length-1]:new uG(Yn,0));this.K=e;this.N=null};
HcM=function(e){if(!e.length)return[];e=(0,g.CG)(e,function(y){return y!=null&&y.TM()});
for(var N=1;N<e.length;N++)qW(e[N-1],e[N]);return e};
u6=function(e,N,y,w){x0.call(this,e,N,y,w);this.Kh=this.Ng=this.G=this.U=this.j=null};
qe=function(e){return e.j&&e.j.takeRecords?e.j.takeRecords():[]};
WM5=function(e){if(!e.element)return!1;var N=e.element,y=e.N.J.K,w=fo().J.J;e.j=new y.IntersectionObserver(V1(w,function(E){return Zf(e,E)}),KM9);
w=V1(w,function(){e.j.unobserve(N);e.j.observe(N);Zf(e,qe(e))});
y.ResizeObserver?(e.U=new y.ResizeObserver(w),e.U.observe(N)):y.MutationObserver&&(e.G=new g.xJ.MutationObserver(w),e.G.observe(N,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));e.j.observe(N);Zf(e,qe(e));return!0};
Zf=function(e,N){try{if(N.length){e.Ng||(e.Ng=O7());var y=Ocs(N),w=osn(e.element,e.N.J.K),E=w.x,A=w.y;e.K=new s7(Math.round(A),Math.round(E)+y.boundingClientRect.width,Math.round(A)+y.boundingClientRect.height,Math.round(E));e.J=iwF(e,e.K);var T=cfP(y.intersectionRect);e.Z=NW(T,e.K.left-T.left,e.K.top-T.top)}}catch(p){e.unobserve(),WQ(299,p)}};
Ocs=function(e){return vQ(e,function(N,y){return N.time>y.time?N:y},e[0])};
xV=function(e){e=e===void 0?Yn:e;j2.call(this,new uG(e,2))};
jg=function(){var e=R15();uG.call(this,Yn.top,e,"geo")};
R15=function(){fo();var e=gm();return e.K||e.N?0:2};
G3P=function(){};
nG=function(){this.done=!1;this.J={bO:0,E9:0,F_s:0,vt:0,s1:-1,pY:0,Dn:0,Fu:0,q4P:0};this.L=null;this.Z=!1;this.K=null;this.G=0;this.N=new tp(this)};
mi=function(){var e=Qn;e.Z||(e.Z=!0,Uk_(e,function(){return e.j.apply(e,g.B(g.iE.apply(0,arguments)))}),e.j())};
LM9=function(){z0(G3P);var e=z0(fG);e.J!=null&&e.J.J?IV9(e.J.J):gm().update(Yn)};
Hf=function(e,N,y){if(!e.done&&(e.N.cancel(),N.length!=0)){e.K=null;try{LM9();var w=O7();fo().L=w;if(z0(fG).J!=null)for(var E=0;E<N.length;E++)e1P(N[E],w,y);for(w=0;w<N.length;w++)NS5(N[w]);++e.J.vt}finally{y?g.$R(N,function(A){A.Cw.UQ=0}):e.N.schedule()}}};
Uk_=function(e,N){if(!e.L){N=HQ(142,N);D5();var y;VC.visibilityState?y="visibilitychange":VC.mozVisibilityState?y="mozvisibilitychange":VC.webkitVisibilityState&&(y="webkitvisibilitychange");y&&lM(VC,y,N,{capture:!1})&&(e.L=N)}};
sk9=function(){var e=z0(fG);if(e.J!=null){var N=e.J;g.$R(Vn(),function(y){return s7_(y,N)})}};
a7M=function(e,N){e=e.G;G0&&(e+=N-U7);return e};
eE3=function(e){e=e===void 0?function(){return{}}:e;
no.J6="av-js";jb.J=.01;Tq5([function(N){var y=fo(),w={};w=(w.bin=y.N,w.type="error",w);y=Jr(y.RJ);if(!Qn.K){var E=Qn,A=Yn.document,T=Rp>=0?O7()-Rp:-1,p=O7();E.J.s1==-1&&(T=p);var C=gm(),r=fo(),Y=Jr(r.RJ),M=Vn();try{if(M.length>0){var l=C.J;l&&(Y.bs=[ap(l),l.getHeight()]);var F=C.L;F&&(Y.ps=[F.width,F.height]);Yn.screen&&(Y.scs=[Yn.screen.width,Yn.screen.height])}else Y.url=encodeURIComponent(Yn.location.href.substring(0,512)),A.referrer&&(Y.referrer=encodeURIComponent(A.referrer.substring(0,512)));
Y.tt=T;Y.pt=Rp;Y.bin=r.N;Yn.google_osd_load_pub_page_exp!==void 0&&(Y.olpp=Yn.google_osd_load_pub_page_exp);Y.deb=[1,E.J.bO,E.J.E9,E.J.vt,E.J.s1,0,E.N.N,E.J.pY,E.J.Dn,E.J.Fu,E.J.q4P,-1].join(";");Y.tvt=a7M(E,p);C.N&&(Y.inapp=1);if(Yn!==null&&Yn!=Yn.top){M.length>0&&(Y.iframe_loc=encodeURIComponent(Yn.location.href.substring(0,512)));var S=C.G;Y.is=[ap(S),S.getHeight()]}}catch(k){Y.error=1}Qn.K=Y}l=g.DA(Qn.K);F=fo().J;T0(F.K,"prf")==1?(S=new gn,E=F.J,A=0,E.J>-1&&(A=E.K.J.now()-E.J),S=Gy(S,1,Er(E.j+
A),0),E=F.J,S=Gy(S,5,pm(E.J>-1?E.N+1:E.N),0),S=Gy(S,2,bc(F.N.J.K()),"0"),S=Gy(S,3,bc(F.N.J.N()),"0"),F=Gy(S,4,bc(F.N.J.J()),"0"),S={},F=(S.pf=g.oN(F.J()),S)):F={};g.VM(l,F);g.VM(N,w,y,l,e())}])};
yrH=function(){var e=Nnn||Yn;if(!e)return"";var N=[];if(!e.location||!e.location.href)return"";N.push("url="+encodeURIComponent(e.location.href.substring(0,512)));e.document&&e.document.referrer&&N.push("referrer="+encodeURIComponent(e.document.referrer.substring(0,512)));return N.join("&")};
KG=function(){var e="youtube.player.web_20250209_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250209_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250209_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250209_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),N;if(((N=e)==null?void 0:N.length)==2)return e[1];e="youtube.player.web_20250209_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var y;return((y=e)==null?void 0:y.length)==3?"20"+e[1]+e[2]:null};
wQ_=function(){return"av.default_js".includes("ima_html5_sdk")?{Om:"ima",Ae:null}:"av.default_js".includes("ima_native_sdk")?{Om:"nima",Ae:null}:"av.default_js".includes("admob-native-video-javascript")?{Om:"an",Ae:null}:"youtube.player.web_20250209_00_RC00".includes("cast_js_sdk")?{Om:"cast",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("youtube.player.web")?{Om:"yw",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("outstream_web_client")?{Om:"out",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("drx_rewarded_web")?
{Om:"r",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("gam_native_web_video")?{Om:"n",Ae:KG()}:"youtube.player.web_20250209_00_RC00".includes("admob_interstitial_video")?{Om:"int",Ae:KG()}:{Om:"j",Ae:null}};
RZ=function(e,N){var y={sv:"966"};Wf!==null&&(y.v=Wf);y.cb=EnJ;y.nas=g6.J.length;y.msg=e;N!==void 0&&(e=Ars(N))&&(y.e=Oo[e]);return y};
Ge=function(e){return c_(e,"custom_metric_viewable")};
Ars=function(e){var N=Ge(e)?"custom_metric_viewable":e.toLowerCase();return IB(IZ,function(y){return y==N})};
Tn3=function(){this.J=void 0;this.N=!1;this.K=0;this.j=-1;this.L="tos"};
CME=function(e){try{var N=e.split(",");return N.length>g.Xw(Jr9).length?null:vQ(N,function(y,w){w=w.toLowerCase().split("=");if(w.length!=2||pQ0[w[0]]===void 0||!pQ0[w[0]](w[1]))throw Error("Entry ("+w[0]+", "+w[1]+") is invalid.");y[w[0]]=w[1];return y},{})}catch(y){return null}};
rr5=function(e,N){if(e.J==void 0)return 0;switch(e.L){case "mtos":return e.N?Gu(N.J,e.J):Gu(N.N,e.J);case "tos":return e.N?Rd(N.J,e.J):Rd(N.N,e.J)}return 0};
Uo=function(e,N,y,w){FA.call(this,N,w);this.G=e;this.U=y};
LG=function(){};
so=function(e){FA.call(this,"fully_viewable_audible_half_duration_impression",e)};
aZ=function(e){this.J=e};
ea=function(e,N){FA.call(this,e,N)};
NH=function(e){Sg.call(this,"measurable_impression",e)};
yx=function(){aZ.apply(this,arguments)};
wN=function(e,N,y){hq.call(this,e,N,y)};
EH=function(e){e=e===void 0?Yn:e;j2.call(this,new uG(e,2))};
A7=function(e,N,y){hq.call(this,e,N,y)};
T1=function(e){e=e===void 0?Yn:e;j2.call(this,new uG(e,2))};
J7=function(){uG.call(this,Yn,2,"mraid");this.Rq=0;this.Kh=this.qg=!1;this.G=null;this.N=$v1(this.K);this.j.J=new s7(0,0,0,0);this.aq=!1};
pk=function(e,N,y){e.w6("addEventListener",N,y)};
l5M=function(e){fo().j=!!e.w6("isViewable");pk(e,"viewableChange",$LP);e.w6("getState")==="loading"?pk(e,"ready",Y73):MbM(e)};
MbM=function(e){typeof e.N.x7.AFMA_LIDAR==="string"?(e.qg=!0,FR3(e)):(e.N.compatibility=3,e.G="nc",e.hA("w"))};
FR3=function(e){e.Kh=!1;var N=T0(fo().RJ,"rmmt")==1,y=!!e.w6("isViewable");(N?!y:1)&&D5().setTimeout(Ko(524,function(){e.Kh||(S70(e),WQ(540,Error()),e.G="mt",e.hA("w"))}),500);
on_(e);pk(e,e.N.x7.AFMA_LIDAR,boH)};
on_=function(e){var N=T0(fo().RJ,"sneio")==1,y=e.N.x7.AFMA_LIDAR_EXP_1!==void 0,w=e.N.x7.AFMA_LIDAR_EXP_2!==void 0;(N=N&&w)&&(e.N.x7.AFMA_LIDAR_EXP_2=!0);y&&(e.N.x7.AFMA_LIDAR_EXP_1=!N)};
S70=function(e){e.w6("removeEventListener",e.N.x7.AFMA_LIDAR,boH);e.qg=!1};
hEF=function(e,N){if(e.w6("getState")==="loading")return new g.l8(-1,-1);N=e.w6(N);if(!N)return new g.l8(-1,-1);e=parseInt(N.width,10);N=parseInt(N.height,10);return isNaN(e)||isNaN(N)?new g.l8(-1,-1):new g.l8(e,N)};
Y73=function(){try{var e=z0(J7);e.w6("removeEventListener","ready",Y73);MbM(e)}catch(N){WQ(541,N)}};
boH=function(e,N){try{var y=z0(J7);y.Kh=!0;var w=e?new s7(e.y,e.x+e.width,e.y+e.height,e.x):new s7(0,0,0,0);var E=O7(),A=fK();var T=new yC(E,A,y);T.J=w;T.volume=N;y.h$(T)}catch(p){WQ(542,p)}};
$LP=function(e){var N=fo(),y=z0(J7);e&&!N.j&&(N.j=!0,y.aq=!0,y.G&&y.hA("w",!0))};
Ck=function(){this.isInitialized=!1;this.J=this.N=null;var e={};this.G=(e.start=this.cWB,e.firstquartile=this.uhh,e.midpoint=this.ihq,e.thirdquartile=this.al9,e.complete=this.AWh,e.error=this.hGt,e.pause=this.lx,e.resume=this.nt,e.skip=this.zGk,e.viewable_impression=this.H2,e.mute=this.sD,e.unmute=this.sD,e.fullscreen=this.xgk,e.exitfullscreen=this.llP,e.fully_viewable_audible_half_duration_impression=this.H2,e.measurable_impression=this.H2,e.abandon=this.lx,e.engagedview=this.H2,e.impression=this.H2,
e.creativeview=this.H2,e.progress=this.sD,e.custom_metric_viewable=this.H2,e.bufferstart=this.lx,e.bufferfinish=this.nt,e.audio_measurable=this.H2,e.audio_audible=this.H2,e);e={};this.U=(e.overlay_resize=this.yWG,e.abandon=this.YH,e.close=this.YH,e.collapse=this.YH,e.overlay_unmeasurable_impression=function(N){return vf(N,"overlay_unmeasurable_impression",fK())},e.overlay_viewable_immediate_impression=function(N){return vf(N,"overlay_viewable_immediate_impression",fK())},e.overlay_unviewable_impression=
function(N){return vf(N,"overlay_unviewable_impression",fK())},e.overlay_viewable_end_of_session_impression=function(N){return vf(N,"overlay_viewable_end_of_session_impression",fK())},e);
fo().N=3;crH(this);this.K=null};
rN=function(e,N,y,w){e=e.o3(null,w,!0,N);e.j=y;nu1([e]);return e};
k00=function(e,N,y){Y0M(N);var w=e.J;g.$R(N,function(E){var A=g.dn(E.criteria,function(T){var p=CME(T);if(p==null)T=null;else if(T=new Tn3,p.visible!=null&&(T.J=p.visible/100),p.audible!=null&&(T.N=p.audible==1),p.time!=null){var C=p.timetype=="mtos"?"mtos":"tos",r=nJn(p.time,"%")?"%":"ms";p=parseInt(p.time,10);r=="%"&&(p/=100);T.setTime(p,r,C)}return T});
DR(A,function(T){return T==null})||ouJ(y,new Uo(E.id,E.event,A,w))})};
BnJ=function(){var e=[],N=fo();e.push(z0(jg));T0(N.RJ,"mvp_lv")&&e.push(z0(J7));N=[new EH,new T1];N.push(new tq(e));N.push(new xV(Yn));return N};
XQE=function(e){if(!e.isInitialized){e.isInitialized=!0;try{var N=O7(),y=fo(),w=gm();Rp=N;y.K=79463069;e.N!=="o"&&(Nnn=vT5(Yn));if(x0P()){Qn.J.E9=0;Qn.J.s1=O7()-N;var E=BnJ(),A=z0(fG);A.N=E;mkH(A,function(){$D()})?Qn.done||(sk9(),qW(A.J.J,e),mi()):w.K?$D():mi()}else YD=!0}catch(T){throw g6.reset(),T;
}}};
lf=function(e){Qn.N.cancel();MH=e;Qn.done=!0};
Fb=function(e){if(e.N)return e.N;var N=z0(fG).J;if(N)switch(N.getName()){case "nis":e.N="n";break;case "gsv":e.N="m"}e.N||(e.N="h");return e.N};
Sa=function(e,N,y){if(e.J==null)return N.JU|=4,!1;e=PM0(e.J,y,N);N.JU|=e;return e==0};
$D=function(){var e=[new xV(Yn)],N=z0(fG);N.N=e;mkH(N,function(){lf("i")})?Qn.done||(sk9(),mi()):lf("i")};
dLn=function(e,N){if(!e.dT){var y=vf(e,"start",fK());y=e.x5.J(y).J;var w={id:"lidarv"};w.r=N;w.sv="966";Wf!==null&&(w.v=Wf);Z9(y,function(E,A){return w[E]=E=="mtos"||E=="tos"?A:encodeURIComponent(A)});
N=yrH();Z9(N,function(E,A){return w[E]=encodeURIComponent(A)});
N="//pagead2.googlesyndication.com/pagead/gen_204?"+mw(QC(new nK,w));Zws(N);e.dT=!0}};
o1=function(e,N,y){Hf(Qn,[e],!fK());k3_(e,y);y!=4&&chn(e.qg,y,e.FQ);return vf(e,N,fK())};
crH=function(e){eE3(function(){var N=I5J();e.N!=null&&(N.sdk=e.N);var y=z0(fG);y.J!=null&&(N.avms=y.J.getName());return N})};
vn5=function(e,N,y,w){var E=qJJ(g6,y);E!==null&&E.a$!==N&&(e.yC(E),E=null);E||(N=e.o3(y,O7(),!1,N),g6.N.length==0&&(fo().K=79463069),Qks([N]),E=N,E.j=Fb(e),w&&(E.Wk=w));return E};
zEs=function(e,N){var y=e[N];y!==void 0&&y>0&&(e[N]=Math.floor(y*1E3))};
I5J=function(){var e=gm(),N={},y={},w={};return Object.assign({},(N.sv="966",N),Wf!==null&&(y.v=Wf,y),(w["if"]=e.K?"1":"0",w.nas=String(g6.J.length),w))};
bf=function(e){FA.call(this,"audio_audible",e)};
h7=function(e){Sg.call(this,"audio_measurable",e)};
cB=function(){aZ.apply(this,arguments)};
kD=function(){};
io5=function(e){this.J=e};
PM0=function(e,N,y){e=e.N();if(typeof e==="function"){var w={};var E={};w=Object.assign({},Wf!==null&&(w.v=Wf,w),(E.sv="966",E.cb=EnJ,E.e=DLs(N),E));E=vf(y,N,fK());g.VM(w,E);y.Ts[N]=E;w=y.TJ()==2?q51(w).join("&"):y.x5.J(w).J;try{return e(y.a$,w,N),0}catch(A){return 2}}else return 1};
DLs=function(e){var N=Ge(e)?"custom_metric_viewable":e;e=IB(IZ,function(y){return y==N});
return Oo[e]};
BB=function(){Ck.call(this);this.Z=null;this.L=!1;this.j="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
gn5=function(e,N,y){y=y.opt_configurable_tracking_events;e.J!=null&&Array.isArray(y)&&k00(e,y,N)};
VbH=function(e,N,y){var w=Df(g6,N);w||(w=y.opt_nativeTime||-1,w=rN(e,N,Fb(e),w),y.opt_osdId&&(w.Wk=y.opt_osdId));return w};
f5E=function(e,N,y){var w=Df(g6,N);w||(w=rN(e,N,"n",y.opt_nativeTime||-1));return w};
tb5=function(e,N){var y=Df(g6,N);y||(y=rN(e,N,"h",-1));return y};
uR_=function(e){fo();switch(Fb(e)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};
xLM=function(e,N,y,w){y=y===void 0?{}:y;var E={};g.VM(E,{opt_adElement:void 0,opt_fullscreen:void 0},y);var A=e.qD(N,y);y=A?A.x5:e.IK();if(E.opt_bounds)return y.J(RZ("ol",w));if(w!==void 0)if(Ars(w)!==void 0)if(YD)e=RZ("ue",w);else if(XQE(e),MH=="i")e=RZ("i",w),e["if"]=0;else if(N=e.qD(N,E)){b:{MH=="i"&&(N.zl=!0);A=E.opt_fullscreen;A!==void 0&&w6(N,!!A);var T;if(A=!gm().N)(A=P_(g.zw(),"CrKey")&&!(P_(g.zw(),"CrKey")&&P_(g.zw(),"SmartSpeaker"))||P_(g.zw(),"PlayStation")||P_(g.zw(),"Roku")||Bq_()||P_(g.zw(),
"Xbox"))||(A=g.zw(),A=P_(A,"AppleTV")||P_(A,"Apple TV")||P_(A,"CFNetwork")||P_(A,"tvOS")),A||(A=g.zw(),A=P_(A,"sdk_google_atv_x86")||P_(A,"Android TV")),A=!A;A&&(D5(),A=FR(VC)===0);if(T=A){switch(N.TJ()){case 1:dLn(N,"pv");break;case 2:e.BT(N)}lf("pv")}A=w.toLowerCase();if(T=!T)T=T0(fo().RJ,"ssmol")&&A==="loaded"?!1:g.Gw(q7s,A);if(T&&N.I1==0){MH!="i"&&(Qn.done=!1);T=E!==void 0?E.opt_nativeTime:void 0;Lo=T=typeof T==="number"?T:O7();N.jS=!0;var p=fK();N.I1=1;N.HI={};N.HI.start=!1;N.HI.firstquartile=
!1;N.HI.midpoint=!1;N.HI.thirdquartile=!1;N.HI.complete=!1;N.HI.resume=!1;N.HI.pause=!1;N.HI.skip=!1;N.HI.mute=!1;N.HI.unmute=!1;N.HI.viewable_impression=!1;N.HI.measurable_impression=!1;N.HI.fully_viewable_audible_half_duration_impression=!1;N.HI.fullscreen=!1;N.HI.exitfullscreen=!1;N.f3=0;p||(N.Xe().U=T);Hf(Qn,[N],!p)}(T=N.AN[A])&&$V(N.fN,T);T0(fo().RJ,"fmd")||g.Gw(ZoH,A)&&N.rS&&N.rS.N(N,null);switch(N.TJ()){case 1:var C=Ge(A)?e.G.custom_metric_viewable:e.G[A];break;case 2:C=e.U[A]}if(C&&(w=C.call(e,
N,E,w),T0(fo().RJ,"fmd")&&g.Gw(ZoH,A)&&N.rS&&N.rS.N(N,null),w!==void 0)){E=RZ(void 0,A);g.VM(E,w);w=E;break b}w=void 0}N.I1==3&&e.yC(N);e=w}else e=RZ("nf",w);else e=void 0;else YD?e=RZ("ue"):A?(e=RZ(),g.VM(e,XNn(A,!0,!1,!1))):e=RZ("nf");return typeof e==="string"?y.J():y.J(e)};
jpn=function(e,N){N&&(e.j=N)};
nn1=function(e){var N={};return N.viewability=e.J,N.googleViewability=e.N,N};
QpM=function(e,N,y){y=y===void 0?{}:y;e=xLM(z0(BB),N,y,e);return nn1(e)};
dN=function(e){var N=g.iE.apply(1,arguments).filter(function(w){return w}).join("&");
if(!N)return e;var y=e.match(/[?&]adurl=/);return y?e.slice(0,y.index+1)+N+"&"+e.slice(y.index+1):e+(e.indexOf("?")===-1?"?":"&")+N};
HoF=function(e){var N=e.url;e=e.Gnt;this.J=N;this.G=e;e=/[?&]dsh=1(&|$)/.test(N);this.L=!e&&/[?&]ae=1(&|$)/.test(N);this.Z=!e&&/[?&]ae=2(&|$)/.test(N);if((this.N=/[?&]adurl=([^&]*)/.exec(N))&&this.N[1]){try{var y=decodeURIComponent(this.N[1])}catch(w){y=null}this.K=y}this.j=(new Date).getTime()-mLJ};
KRP=function(e){e=e.G;if(!e)return"";var N="";e.platform&&(N+="&uap="+encodeURIComponent(e.platform));e.platformVersion&&(N+="&uapv="+encodeURIComponent(e.platformVersion));e.uaFullVersion&&(N+="&uafv="+encodeURIComponent(e.uaFullVersion));e.architecture&&(N+="&uaa="+encodeURIComponent(e.architecture));e.model&&(N+="&uam="+encodeURIComponent(e.model));e.bitness&&(N+="&uab="+encodeURIComponent(e.bitness));e.fullVersionList&&(N+="&uafvl="+encodeURIComponent(e.fullVersionList.map(function(y){return encodeURIComponent(y.brand)+
";"+encodeURIComponent(y.version)}).join("|")));
typeof e.wow64!=="undefined"&&(N+="&uaw="+Number(e.wow64));return N.substring(1)};
OoP=function(e,N,y,w,E){var A=window,T=y?"//pagead2.googlesyndication.com/bg/"+UK(y)+".js":"";y=A.document;var p={};N&&(p._scs_=N);p._bgu_=T;p._bgp_=w;p._li_="v_h.3.0.0.0";E&&(p._upb_=E);(N=A.GoogleTyFxhY)&&typeof N.push=="function"||(N=A.GoogleTyFxhY=[]);N.push(p);N=xY(y).createElement("SCRIPT");N.type="text/javascript";N.async=!0;e=sF5(WRE,UK(e)+".js");g.QZ(N,e);(A=(A.GoogleTyFxhYEET||{})[N.src])?A():y.getElementsByTagName("head")[0].appendChild(N)};
REn=function(){try{var e,N;return!!((e=window)==null?0:(N=e.top)==null?0:N.location.href)&&!1}catch(y){return!0}};
DS=function(){var e=G00();e=e===void 0?"bevasrsg":e;return new Promise(function(N){var y=window===window.top?window:REn()?window:window.top,w=y[e],E;((E=w)==null?0:E.bevasrs)?N(new z1(w.bevasrs)):(w||(w={},w=(w.nqfbel=[],w),y[e]=w),w.nqfbel.push(function(A){N(new z1(A))}))})};
ULJ=function(e){var N={c:e.qX,e:e.OU,mc:e.Ic,me:e.Dw};e.h1&&(N.co={c:e.h1.Lk,a:e.h1.Xa,s:e.h1.W4});return N};
gN=function(e){g.x.call(this);this.wpc=e};
z1=function(e){g.x.call(this);var N=this;this.f$=e;this.K="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.J=void 0;this.oH=this.f$.p;this.j=this.hd.bind(this);this.addOnDisposeCallback(function(){return void LRJ(N)})};
spM=function(e){var N;return g.f(function(y){if(y.J==1){if(!e.f$.wpc)throw new St(30,"NWA");return e.N?y.return(e.N):g.D(y,e.f$.wpc(),2)}N=y.N;e.N=new gN(N);return y.return(e.N)})};
LRJ=function(e){e.J!==void 0&&(e.K.forEach(function(N){var y;(y=e.J)==null||y.removeEventListener(N,e.j)}),e.J=void 0)};
NmM=function(e){if(g.kw(g.Ly(e)))return!1;if(e.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var N=new g.rS(e)}catch(y){return g.Ok(a5_,function(w){return e.search(w)>0})!=null}return N.Z.match(eGE)?!0:g.Ok(a5_,function(y){return e.match(y)!=null})!=null};
g.Vx=function(e,N){return e.replace(yps,function(y,w){try{var E=g.zM(N,w);if(E==null||E.toString()==null)return y;E=E.toString();if(E==""||!g.kw(g.Ly(E)))return encodeURIComponent(E).replace(/%2C/g,",")}catch(A){}return y})};
fk=function(e,N){return Object.is(e,N)};
uf=function(e){var N=t7;t7=e;return N};
weM=function(e){if(e.Qh!==void 0){var N=qH;qH=!0;try{for(var y=g.c(e.Qh),w=y.next();!w.done;w=y.next()){var E=w.value;E.s0||(e=void 0,E.s0=!0,weM(E),(e=E.LD)==null||e.call(E,E))}}finally{qH=N}}};
E0H=function(){var e;return((e=t7)==null?void 0:e.UN)!==!1};
Ap0=function(e){e&&(e.rF=0);return uf(e)};
Tm_=function(e,N){uf(N);if(e&&e.TI!==void 0&&e.Ap!==void 0&&e.dO!==void 0){if(ZS(e))for(N=e.rF;N<e.TI.length;N++)xD(e.TI[N],e.Ap[N]);for(;e.TI.length>e.rF;)e.TI.pop(),e.dO.pop(),e.Ap.pop()}};
peM=function(e,N,y){JpM(e);if(e.Qh.length===0&&e.TI!==void 0)for(var w=0;w<e.TI.length;w++)e.Ap[w]=peM(e.TI[w],e,w);e.n_.push(y);return e.Qh.push(N)-1};
xD=function(e,N){JpM(e);if(e.Qh.length===1&&e.TI!==void 0)for(var y=0;y<e.TI.length;y++)xD(e.TI[y],e.Ap[y]);y=e.Qh.length-1;e.Qh[N]=e.Qh[y];e.n_[N]=e.n_[y];e.Qh.length--;e.n_.length--;N<e.Qh.length&&(y=e.n_[N],e=e.Qh[N],CGs(e),e.Ap[y]=N)};
ZS=function(e){var N,y;return e.rY||((y=e==null?void 0:(N=e.Qh)==null?void 0:N.length)!=null?y:0)>0};
CGs=function(e){e.TI!=null||(e.TI=[]);e.Ap!=null||(e.Ap=[]);e.dO!=null||(e.dO=[])};
JpM=function(e){e.Qh!=null||(e.Qh=[]);e.n_!=null||(e.n_=[])};
$W1=function(e){function N(){if(qH)throw Error("");if(t7!==null){var w=t7.rF++;CGs(t7);w<t7.TI.length&&t7.TI[w]!==y&&ZS(t7)&&xD(t7.TI[w],t7.Ap[w]);t7.TI[w]!==y&&(t7.TI[w]=y,t7.Ap[w]=ZS(t7)?peM(y,t7,w):0);t7.dO[w]=y.version}return y.value}
var y=Object.create(rpM);y.value=e;N[nk]=y;return N};
M2F=function(e,N){if(!E0H())throw Error();e.W5(e.value,N)||(e.value=N,e.version++,YbJ++,weM(e))};
lRP=function(e){Object.create(Object.assign({},Qx,{UN:e}))};
Sb1=function(e){var N=FwM.HL;if(N){var y,w;(w=(y=performance).mark)==null||w.call(y,"signalSetStart__"+e)}y={};return y[Symbol.dispose]=function(){if(N){var E,A;(A=(E=performance).measure)==null||A.call(E,"signalSet__"+e,"signalSetStart__"+e)}},y};
kuE=function(e,N){function y(){o0n++;return w()}
N=N===void 0?"":N;var w=$W1(e);bK5++;var E=w[nk];E.u2=N!=null?N:"[signal]";E.W5=E.W5;y[nk]=E;return[y,function(A){var T={stack:[],error:void 0,hasError:!1};try{if(NM(T,Sb1(E.u2)),hG9++,A&&A[cpM]){var p=A[cpM];if(!E0H())throw Error();M2F(E,p(E.value))}else M2F(E,A)}catch(C){T.error=C,T.hasError=!0}finally{w5(T)}}]};
HB=function(e){g.Ux.call(this);var N=this;this.L=this.N=0;this.hx=e!=null?e:{kB:function(E,A){return setTimeout(E,A)},
Zx:function(E){clearTimeout(E)}};
var y,w;this.J=(w=(y=window.navigator)==null?void 0:y.onLine)!=null?w:!0;this.K=function(){return g.f(function(E){return g.D(E,mI(N),0)})};
window.addEventListener("offline",this.K);window.addEventListener("online",this.K);this.L||this.Ga()};
Bm0=function(){var e=g.Kk;HB.instance||(HB.instance=new HB(e));return HB.instance};
mI=function(e,N){return e.j?e.j:e.j=new Promise(function(y){var w,E,A,T;return g.f(function(p){switch(p.J){case 1:return w=window.AbortController?new window.AbortController:void 0,A=(E=w)==null?void 0:E.signal,T=!1,g.c5(p,2,3),w&&(e.N=e.hx.kB(function(){w.abort()},N||2E4)),g.D(p,fetch("/generate_204",{method:"HEAD",
signal:A}),5);case 5:T=!0;case 3:g.P5(p);e.j=void 0;e.N&&(e.hx.Zx(e.N),e.N=0);T!==e.J&&(e.J=T,e.J?e.dispatchEvent("networkstatus-online"):e.dispatchEvent("networkstatus-offline"));y(T);g.d_(p,0);break;case 2:g.XH(p),T=!1,p.u9(3)}})})};
WB=function(){this.data=[];this.J=-1};
Xe0=function(e){e.J===-1&&(e.J=e.data.reduce(function(N,y,w){return N+(y?Math.pow(2,w):0)},0));
return e.J};
OH=function(e){e.setAttribute("role","link")};
G1=function(e,N){Array.isArray(N)&&(N=N.join(" "));N===""||N==void 0?(R1||(N={},R1=(N.atomic=!1,N.autocomplete="none",N.dropeffect="none",N.haspopup=!1,N.live="off",N.multiline=!1,N.multiselectable=!1,N.orientation="vertical",N.readonly=!1,N.relevant="additions text",N.required=!1,N.sort="none",N.busy=!1,N.disabled=!1,N.hidden=!1,N.invalid="false",N)),N=R1,"label"in N?e.setAttribute("aria-label",N.label):e.removeAttribute("aria-label")):e.setAttribute("aria-label",N)};
sH=function(e){e=e.getAttribute("aria-label");return e==null||e==void 0?"":String(e)};
g.a1=function(e,N,y){g.x.call(this);this.J=null;this.j=!1;this.Z=e;this.L=y;this.N=N||window;this.K=(0,g.Gs)(this.PO,this)};
PGE=function(e){e=e.N;return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||null};
dW5=function(e){e=e.N;return e.cancelAnimationFrame||e.cancelRequestAnimationFrame||e.webkitCancelRequestAnimationFrame||e.mozCancelRequestAnimationFrame||e.oCancelRequestAnimationFrame||e.msCancelRequestAnimationFrame||null};
g.e6=function(e,N,y){g.x.call(this);this.J=e;this.uR=N||0;this.N=y;this.K=(0,g.Gs)(this.RQ,this)};
g.NA=function(e,N){e.isActive()||e.start(N)};
g.yE=function(e){e.stop();e.RQ()};
g.we=function(e){e.isActive()&&g.yE(e)};
g.E2=function(e,N){this.J=e[g.xJ.Symbol.iterator]();this.N=N};
IR1=function(e){return typeof e.className=="string"?e.className:e.getAttribute&&e.getAttribute("class")||""};
A4=function(e){return e.classList?e.classList:IR1(e).match(/\S+/g)||[]};
g.TY=function(e,N){typeof e.className=="string"?e.className=N:e.setAttribute&&e.setAttribute("class",N)};
g.J4=function(e,N){return e.classList?e.classList.contains(N):g.Gw(A4(e),N)};
g.pi=function(e,N){if(e.classList)e.classList.add(N);else if(!g.J4(e,N)){var y=IR1(e);g.TY(e,y+(y.length>0?" "+N:N))}};
g.Ci=function(e,N){if(e.classList)Array.prototype.forEach.call(N,function(E){g.pi(e,E)});
else{var y={};Array.prototype.forEach.call(A4(e),function(E){y[E]=!0});
Array.prototype.forEach.call(N,function(E){y[E]=!0});
N="";for(var w in y)N+=N.length>0?" "+w:w;g.TY(e,N)}};
g.re=function(e,N){e.classList?e.classList.remove(N):g.J4(e,N)&&g.TY(e,Array.prototype.filter.call(A4(e),function(y){return y!=N}).join(" "))};
g.$1=function(e,N){e.classList?Array.prototype.forEach.call(N,function(y){g.re(e,y)}):g.TY(e,Array.prototype.filter.call(A4(e),function(y){return!g.Gw(N,y)}).join(" "))};
g.Y1=function(e,N,y){y?g.pi(e,N):g.re(e,N)};
v01=function(e,N){var y=!g.J4(e,N);g.Y1(e,N,y)};
g.MA=function(){g.Ux.call(this);this.J=0;this.endTime=this.startTime=null};
zG5=function(e,N){Array.isArray(N)||(N=[N]);N=N.map(function(y){return typeof y==="string"?y:y.property+" "+y.duration+"s "+y.timing+" "+y.delay+"s"});
g.$0(e,"transition",N.join(","))};
ln=function(e,N,y,w,E){g.MA.call(this);this.N=e;this.L=N;this.Z=y;this.j=w;this.G=Array.isArray(E)?E:[E]};
iKM=function(e,N,y,w){return new ln(e,N,{opacity:y},{opacity:w},{property:"opacity",duration:N,timing:"ease-in",delay:0})};
g0H=function(e){e=d5(e);if(e=="")return null;var N=String(e.slice(0,4)).toLowerCase();if(("url("<N?-1:"url("==N?0:1)==0)return!e.endsWith(")")||(e?e.split("(").length-1:0)>1||e&&e.split(")"),null;if(e.indexOf("(")>0){if(/"|'/.test(e))return null;N=/([\-\w]+)\(/g;for(var y;y=N.exec(e);)if(!(y[1].toLowerCase()in DWs))return null}return e};
FM=function(e,N){e=g.xJ[e];return e&&e.prototype?(N=Object.getOwnPropertyDescriptor(e.prototype,N))&&N.get||null:null};
V2E=function(e){var N=g.xJ.CSSStyleDeclaration;return N&&N.prototype&&N.prototype[e]||null};
fRJ=function(e,N,y,w){if(e)return e.apply(N,w);if(g.S6&&document.documentMode<10){if(!N[y].call)throw Error("IE Clobbering detected");}else if(typeof N[y]!="function")throw Error("Clobbering detected");return N[y].apply(N,w)};
xW3=function(e){if(!e)return"";var N=document.createElement("div").style;t2H(e).forEach(function(y){var w=g.RB&&y in u0M?y:y.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");c_(w,"--")||c_(w,"var")||(y=fRJ(qbP,e,e.getPropertyValue?"getPropertyValue":"getAttribute",[y])||"",y=g0H(y),y!=null&&fRJ(ZK5,N,N.setProperty?"setProperty":"setAttribute",[w,y]))});
return N.cssText||""};
t2H=function(e){g.KM(e)?e=g.eE(e):(e=g.Xw(e),g.Lq(e,"cssText"));return e};
g.bn=function(e){var N,y=N=0,w=!1;e=e.split(jdE);for(var E=0;E<e.length;E++){var A=e[E];g.or.test(A)?(N++,y++):n0E.test(A)?w=!0:QdF.test(A)?y++:mW0.test(A)&&(w=!0)}N=y==0?w?1:0:N/y>.4?-1:1;return(N==0?null:N)==-1?"rtl":"ltr"};
g.BD=function(e){if(e instanceof h4||e instanceof cD||e instanceof k1)return e;if(typeof e.next=="function")return new h4(function(){return e});
if(typeof e[Symbol.iterator]=="function")return new h4(function(){return e[Symbol.iterator]()});
if(typeof e.SW=="function")return new h4(function(){return e.SW()});
throw Error("Not an iterator or iterable.");};
h4=function(e){this.N=e};
cD=function(e){this.N=e};
k1=function(e){h4.call(this,function(){return e});
this.K=e};
XM=function(e,N,y,w,E,A,T,p){this.J=e;this.G=N;this.K=y;this.L=w;this.j=E;this.Z=A;this.N=T;this.U=p};
PD=function(e,N){if(N==0)return e.J;if(N==1)return e.N;var y=C9(e.J,e.K,N),w=C9(e.K,e.j,N);e=C9(e.j,e.N,N);y=C9(y,w,N);w=C9(w,e,N);return C9(y,w,N)};
HKn=function(e,N){var y=(N-e.J)/(e.N-e.J);if(y<=0)return 0;if(y>=1)return 1;for(var w=0,E=1,A=0,T=0;T<8;T++){A=PD(e,y);var p=(PD(e,y+1E-6)-A)/1E-6;if(Math.abs(A-N)<1E-6)return y;if(Math.abs(p)<1E-6)break;else A<N?w=y:E=y,y-=(A-N)/p}for(T=0;Math.abs(A-N)>1E-6&&T<8;T++)A<N?(w=y,y=(y+E)/2):(E=y,y=(y+w)/2),A=PD(e,y);return y};
de=function(e,N){this.start=e<N?e:N;this.end=e<N?N:e};
Ir=function(e){return(e=e.exec(g.zw()))?e[1]:""};
vD=function(e){return g.v_(Kw9,e)>=0};
g.zY=function(e){g.x.call(this);this.Z=1;this.K=[];this.j=0;this.J=[];this.N={};this.G=!!e};
Ww1=function(e,N,y){g.Jo(function(){e.apply(N,y)})};
g.D6=function(e){this.J=e};
ge=function(e){this.J=e};
OKM=function(e){this.data=e};
RGM=function(e){return e===void 0||e instanceof OKM?e:new OKM(e)};
VE=function(e){this.J=e};
g.Gu5=function(e){var N=e.creation;e=e.expiration;return!!e&&e<g.s9()||!!N&&N>g.s9()};
g.fi=function(e){this.J=e};
UWH=function(){};
t4=function(){};
un=function(e){this.J=e;this.N=null};
qA=function(e){if(e.J==null)throw Error("Storage mechanism: Storage unavailable");var N;((N=e.N)!=null?N:e.isAvailable())||b_(Error("Storage mechanism: Storage unavailable"))};
Z6=function(){var e=null;try{e=g.xJ.localStorage||null}catch(N){}un.call(this,e)};
Lw5=function(){var e=null;try{e=g.xJ.sessionStorage||null}catch(N){}un.call(this,e)};
x1=function(e,N){this.N=e;this.J=N+"::"};
g.j6=function(e){var N=new Z6;return N.isAvailable()?e?new x1(N,e):N:null};
ni=function(e,N){this.J=e;this.N=N};
QE=function(e){this.J=[];if(e)a:{if(e instanceof QE){var N=e.Nk();e=e.WP();if(this.J.length<=0){for(var y=this.J,w=0;w<N.length;w++)y.push(new ni(N[w],e[w]));break a}}else N=g.Xw(e),e=g.B4(e);for(y=0;y<N.length;y++)this.J1(N[y],e[y])}};
m7=function(){QE.apply(this,arguments)};
HD=function(){};
sdn=function(e){var N,y,w=e.length,E=0;for(N=0;N<w;N++){var A=e.charCodeAt(N);if((A&64512)===55296&&N+1<w){var T=e.charCodeAt(N+1);(T&64512)===56320&&(A=65536+(A-55296<<10)+(T-56320),N++)}E+=A<128?1:A<2048?2:A<65536?3:4}var p=new Ki.iV(E);for(N=y=0;y<E;N++)A=e.charCodeAt(N),(A&64512)===55296&&N+1<w&&(T=e.charCodeAt(N+1),(T&64512)===56320&&(A=65536+(A-55296<<10)+(T-56320),N++)),A<128?p[y++]=A:(A<2048?p[y++]=192|A>>>6:(A<65536?p[y++]=224|A>>>12:(p[y++]=240|A>>>18,p[y++]=128|A>>>12&63),p[y++]=128|A>>>
6&63),p[y++]=128|A&63);return p};
WD=function(e){for(var N=e.length;--N>=0;)e[N]=0};
O2=function(e,N,y,w,E){this.Cg=e;this.Dh=N;this.I5=y;this.LY=w;this.lgZ=E;this.xe=e&&e.length};
Rr=function(e,N){this.gY=e;this.Hg=0;this.yE=N};
GY=function(e,N){e.Xr[e.pending++]=N&255;e.Xr[e.pending++]=N>>>8&255};
U2=function(e,N,y){e.m3>16-y?(e.EP|=N<<e.m3&65535,GY(e,e.EP),e.EP=N>>16-e.m3,e.m3+=y-16):(e.EP|=N<<e.m3&65535,e.m3+=y)};
Li=function(e,N,y){U2(e,y[N*2],y[N*2+1])};
aRF=function(e,N){var y=0;do y|=e&1,e>>>=1,y<<=1;while(--N>0);return y>>>1};
exE=function(e,N,y){var w=Array(16),E=0,A;for(A=1;A<=15;A++)w[A]=E=E+y[A-1]<<1;for(y=0;y<=N;y++)E=e[y*2+1],E!==0&&(e[y*2]=aRF(w[E]++,E))};
N69=function(e){var N;for(N=0;N<286;N++)e.EH[N*2]=0;for(N=0;N<30;N++)e.Uz[N*2]=0;for(N=0;N<19;N++)e.bR[N*2]=0;e.EH[512]=1;e.Ud=e.UD=0;e.s$=e.matches=0};
yq1=function(e){e.m3>8?GY(e,e.EP):e.m3>0&&(e.Xr[e.pending++]=e.EP);e.EP=0;e.m3=0};
wfJ=function(e,N,y){yq1(e);GY(e,y);GY(e,~y);Ki.mT(e.Xr,e.window,N,y,e.pending);e.pending+=y};
EVs=function(e,N,y,w){var E=N*2,A=y*2;return e[E]<e[A]||e[E]===e[A]&&w[N]<=w[y]};
s2=function(e,N,y){for(var w=e.Qj[y],E=y<<1;E<=e.yH;){E<e.yH&&EVs(N,e.Qj[E+1],e.Qj[E],e.depth)&&E++;if(EVs(N,w,e.Qj[E],e.depth))break;e.Qj[y]=e.Qj[E];y=E;E<<=1}e.Qj[y]=w};
Aq1=function(e,N,y){var w=0;if(e.s$!==0){do{var E=e.Xr[e.JV+w*2]<<8|e.Xr[e.JV+w*2+1];var A=e.Xr[e.dg+w];w++;if(E===0)Li(e,A,N);else{var T=ar[A];Li(e,T+256+1,N);var p=eC[T];p!==0&&(A-=Ny[T],U2(e,A,p));E--;T=E<256?y2[E]:y2[256+(E>>>7)];Li(e,T,y);p=wx[T];p!==0&&(E-=Ea[T],U2(e,E,p))}}while(w<e.s$)}Li(e,256,N)};
AT=function(e,N){var y=N.gY,w=N.yE.Cg,E=N.yE.xe,A=N.yE.LY,T,p=-1;e.yH=0;e.XX=573;for(T=0;T<A;T++)y[T*2]!==0?(e.Qj[++e.yH]=p=T,e.depth[T]=0):y[T*2+1]=0;for(;e.yH<2;){var C=e.Qj[++e.yH]=p<2?++p:0;y[C*2]=1;e.depth[C]=0;e.Ud--;E&&(e.UD-=w[C*2+1])}N.Hg=p;for(T=e.yH>>1;T>=1;T--)s2(e,y,T);C=A;do T=e.Qj[1],e.Qj[1]=e.Qj[e.yH--],s2(e,y,1),w=e.Qj[1],e.Qj[--e.XX]=T,e.Qj[--e.XX]=w,y[C*2]=y[T*2]+y[w*2],e.depth[C]=(e.depth[T]>=e.depth[w]?e.depth[T]:e.depth[w])+1,y[T*2+1]=y[w*2+1]=C,e.Qj[1]=C++,s2(e,y,1);while(e.yH>=
2);e.Qj[--e.XX]=e.Qj[1];T=N.gY;C=N.Hg;w=N.yE.Cg;E=N.yE.xe;A=N.yE.Dh;var r=N.yE.I5,Y=N.yE.lgZ,M,l=0;for(M=0;M<=15;M++)e.Mx[M]=0;T[e.Qj[e.XX]*2+1]=0;for(N=e.XX+1;N<573;N++){var F=e.Qj[N];M=T[T[F*2+1]*2+1]+1;M>Y&&(M=Y,l++);T[F*2+1]=M;if(!(F>C)){e.Mx[M]++;var S=0;F>=r&&(S=A[F-r]);var k=T[F*2];e.Ud+=k*(M+S);E&&(e.UD+=k*(w[F*2+1]+S))}}if(l!==0){do{for(M=Y-1;e.Mx[M]===0;)M--;e.Mx[M]--;e.Mx[M+1]+=2;e.Mx[Y]--;l-=2}while(l>0);for(M=Y;M!==0;M--)for(F=e.Mx[M];F!==0;)w=e.Qj[--N],w>C||(T[w*2+1]!==M&&(e.Ud+=(M-
T[w*2+1])*T[w*2],T[w*2+1]=M),F--)}exE(y,p,e.Mx)};
T61=function(e,N,y){var w,E=-1,A=N[1],T=0,p=7,C=4;A===0&&(p=138,C=3);N[(y+1)*2+1]=65535;for(w=0;w<=y;w++){var r=A;A=N[(w+1)*2+1];++T<p&&r===A||(T<C?e.bR[r*2]+=T:r!==0?(r!==E&&e.bR[r*2]++,e.bR[32]++):T<=10?e.bR[34]++:e.bR[36]++,T=0,E=r,A===0?(p=138,C=3):r===A?(p=6,C=3):(p=7,C=4))}};
Jq5=function(e,N,y){var w,E=-1,A=N[1],T=0,p=7,C=4;A===0&&(p=138,C=3);for(w=0;w<=y;w++){var r=A;A=N[(w+1)*2+1];if(!(++T<p&&r===A)){if(T<C){do Li(e,r,e.bR);while(--T!==0)}else r!==0?(r!==E&&(Li(e,r,e.bR),T--),Li(e,16,e.bR),U2(e,T-3,2)):T<=10?(Li(e,17,e.bR),U2(e,T-3,3)):(Li(e,18,e.bR),U2(e,T-11,7));T=0;E=r;A===0?(p=138,C=3):r===A?(p=6,C=3):(p=7,C=4)}}};
pfP=function(e){var N=4093624447,y;for(y=0;y<=31;y++,N>>>=1)if(N&1&&e.EH[y*2]!==0)return 0;if(e.EH[18]!==0||e.EH[20]!==0||e.EH[26]!==0)return 1;for(y=32;y<256;y++)if(e.EH[y*2]!==0)return 1;return 0};
Tz=function(e,N,y){e.Xr[e.JV+e.s$*2]=N>>>8&255;e.Xr[e.JV+e.s$*2+1]=N&255;e.Xr[e.dg+e.s$]=y&255;e.s$++;N===0?e.EH[y*2]++:(e.matches++,N--,e.EH[(ar[y]+256+1)*2]++,e.Uz[(N<256?y2[N]:y2[256+(N>>>7)])*2]++);return e.s$===e.H3-1};
pb=function(e,N){e.msg=JT[N];return N};
Cb=function(e){for(var N=e.length;--N>=0;)e[N]=0};
rx=function(e){var N=e.state,y=N.pending;y>e.qP&&(y=e.qP);y!==0&&(Ki.mT(e.output,N.Xr,N.yM,y,e.UW),e.UW+=y,N.yM+=y,e.JY+=y,e.qP-=y,N.pending-=y,N.pending===0&&(N.yM=0))};
My=function(e,N){var y=e.En>=0?e.En:-1,w=e.zW-e.En,E=0;if(e.level>0){e.I2.K3===2&&(e.I2.K3=pfP(e));AT(e,e.XQ);AT(e,e.u1);T61(e,e.EH,e.XQ.Hg);T61(e,e.Uz,e.u1.Hg);AT(e,e.fD);for(E=18;E>=3&&e.bR[C6M[E]*2+1]===0;E--);e.Ud+=3*(E+1)+5+5+4;var A=e.Ud+3+7>>>3;var T=e.UD+3+7>>>3;T<=A&&(A=T)}else A=T=w+5;if(w+4<=A&&y!==-1)U2(e,N?1:0,3),wfJ(e,y,w);else if(e.strategy===4||T===A)U2(e,2+(N?1:0),3),Aq1(e,$r,Yr);else{U2(e,4+(N?1:0),3);y=e.XQ.Hg+1;w=e.u1.Hg+1;E+=1;U2(e,y-257,5);U2(e,w-1,5);U2(e,E-4,4);for(A=0;A<E;A++)U2(e,
e.bR[C6M[A]*2+1],3);Jq5(e,e.EH,y-1);Jq5(e,e.Uz,w-1);Aq1(e,e.EH,e.Uz)}N69(e);N&&yq1(e);e.En=e.zW;rx(e.I2)};
lg=function(e,N){e.Xr[e.pending++]=N};
Fg=function(e,N){e.Xr[e.pending++]=N>>>8&255;e.Xr[e.pending++]=N&255};
rq5=function(e,N){var y=e.T8,w=e.zW,E=e.Kc,A=e.DQ,T=e.zW>e.r4-262?e.zW-(e.r4-262):0,p=e.window,C=e.GE,r=e.O0,Y=e.zW+258,M=p[w+E-1],l=p[w+E];e.Kc>=e.Qu&&(y>>=2);A>e.MU&&(A=e.MU);do{var F=N;if(p[F+E]===l&&p[F+E-1]===M&&p[F]===p[w]&&p[++F]===p[w+1]){w+=2;for(F++;p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&p[++w]===p[++F]&&w<Y;);F=258-(Y-w);w=Y-258;if(F>E){e.Le=N;E=F;if(F>=A)break;M=p[w+E-1];l=p[w+E]}}}while((N=r[N&C])>T&&--y!==
0);return E<=e.MU?E:e.MU};
bg=function(e){var N=e.r4,y;do{var w=e.ES-e.MU-e.zW;if(e.zW>=N+(N-262)){Ki.mT(e.window,e.window,N,N,0);e.Le-=N;e.zW-=N;e.En-=N;var E=y=e.zQ;do{var A=e.head[--E];e.head[E]=A>=N?A-N:0}while(--y);E=y=N;do A=e.O0[--E],e.O0[E]=A>=N?A-N:0;while(--y);w+=N}if(e.I2.o$===0)break;E=e.I2;y=e.window;A=e.zW+e.MU;var T=E.o$;T>w&&(T=w);T===0?y=0:(E.o$-=T,Ki.mT(y,E.input,E.FY,T,A),E.state.wrap===1?E.Z_=SC(E.Z_,y,T,A):E.state.wrap===2&&(E.Z_=oG(E.Z_,y,T,A)),E.FY+=T,E.jx+=T,y=T);e.MU+=y;if(e.MU+e.J1>=3)for(w=e.zW-e.J1,
e.NP=e.window[w],e.NP=(e.NP<<e.iY^e.window[w+1])&e.uY;e.J1&&!(e.NP=(e.NP<<e.iY^e.window[w+3-1])&e.uY,e.O0[w&e.GE]=e.head[e.NP],e.head[e.NP]=w,w++,e.J1--,e.MU+e.J1<3););}while(e.MU<262&&e.I2.o$!==0)};
hT=function(e,N){for(var y;;){if(e.MU<262){bg(e);if(e.MU<262&&N===0)return 1;if(e.MU===0)break}y=0;e.MU>=3&&(e.NP=(e.NP<<e.iY^e.window[e.zW+3-1])&e.uY,y=e.O0[e.zW&e.GE]=e.head[e.NP],e.head[e.NP]=e.zW);y!==0&&e.zW-y<=e.r4-262&&(e.C$=rq5(e,y));if(e.C$>=3)if(y=Tz(e,e.zW-e.Le,e.C$-3),e.MU-=e.C$,e.C$<=e.mf&&e.MU>=3){e.C$--;do e.zW++,e.NP=(e.NP<<e.iY^e.window[e.zW+3-1])&e.uY,e.O0[e.zW&e.GE]=e.head[e.NP],e.head[e.NP]=e.zW;while(--e.C$!==0);e.zW++}else e.zW+=e.C$,e.C$=0,e.NP=e.window[e.zW],e.NP=(e.NP<<e.iY^
e.window[e.zW+1])&e.uY;else y=Tz(e,0,e.window[e.zW]),e.MU--,e.zW++;if(y&&(My(e,!1),e.I2.qP===0))return 1}e.J1=e.zW<2?e.zW:2;return N===4?(My(e,!0),e.I2.qP===0?3:4):e.s$&&(My(e,!1),e.I2.qP===0)?1:2};
cz=function(e,N){for(var y,w;;){if(e.MU<262){bg(e);if(e.MU<262&&N===0)return 1;if(e.MU===0)break}y=0;e.MU>=3&&(e.NP=(e.NP<<e.iY^e.window[e.zW+3-1])&e.uY,y=e.O0[e.zW&e.GE]=e.head[e.NP],e.head[e.NP]=e.zW);e.Kc=e.C$;e.uD=e.Le;e.C$=2;y!==0&&e.Kc<e.mf&&e.zW-y<=e.r4-262&&(e.C$=rq5(e,y),e.C$<=5&&(e.strategy===1||e.C$===3&&e.zW-e.Le>4096)&&(e.C$=2));if(e.Kc>=3&&e.C$<=e.Kc){w=e.zW+e.MU-3;y=Tz(e,e.zW-1-e.uD,e.Kc-3);e.MU-=e.Kc-1;e.Kc-=2;do++e.zW<=w&&(e.NP=(e.NP<<e.iY^e.window[e.zW+3-1])&e.uY,e.O0[e.zW&e.GE]=
e.head[e.NP],e.head[e.NP]=e.zW);while(--e.Kc!==0);e.eJ=0;e.C$=2;e.zW++;if(y&&(My(e,!1),e.I2.qP===0))return 1}else if(e.eJ){if((y=Tz(e,0,e.window[e.zW-1]))&&My(e,!1),e.zW++,e.MU--,e.I2.qP===0)return 1}else e.eJ=1,e.zW++,e.MU--}e.eJ&&(Tz(e,0,e.window[e.zW-1]),e.eJ=0);e.J1=e.zW<2?e.zW:2;return N===4?(My(e,!0),e.I2.qP===0?3:4):e.s$&&(My(e,!1),e.I2.qP===0)?1:2};
$eM=function(e,N){for(var y,w,E,A=e.window;;){if(e.MU<=258){bg(e);if(e.MU<=258&&N===0)return 1;if(e.MU===0)break}e.C$=0;if(e.MU>=3&&e.zW>0&&(w=e.zW-1,y=A[w],y===A[++w]&&y===A[++w]&&y===A[++w])){for(E=e.zW+258;y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&y===A[++w]&&w<E;);e.C$=258-(E-w);e.C$>e.MU&&(e.C$=e.MU)}e.C$>=3?(y=Tz(e,1,e.C$-3),e.MU-=e.C$,e.zW+=e.C$,e.C$=0):(y=Tz(e,0,e.window[e.zW]),e.MU--,e.zW++);if(y&&(My(e,!1),e.I2.qP===0))return 1}e.J1=0;return N===
4?(My(e,!0),e.I2.qP===0?3:4):e.s$&&(My(e,!1),e.I2.qP===0)?1:2};
YoP=function(e,N){for(var y;;){if(e.MU===0&&(bg(e),e.MU===0)){if(N===0)return 1;break}e.C$=0;y=Tz(e,0,e.window[e.zW]);e.MU--;e.zW++;if(y&&(My(e,!1),e.I2.qP===0))return 1}e.J1=0;return N===4?(My(e,!0),e.I2.qP===0?3:4):e.s$&&(My(e,!1),e.I2.qP===0)?1:2};
kr=function(e,N,y,w,E){this.vn=e;this.hyW=N;this.LoP=y;this.AM9=w;this.func=E};
Mg5=function(){this.I2=null;this.status=0;this.Xr=null;this.wrap=this.pending=this.yM=this.jz=0;this.cG=null;this.tx=0;this.method=8;this.iy=-1;this.GE=this.RB=this.r4=0;this.window=null;this.ES=0;this.head=this.O0=null;this.DQ=this.Qu=this.strategy=this.level=this.mf=this.T8=this.Kc=this.MU=this.Le=this.zW=this.eJ=this.uD=this.C$=this.En=this.iY=this.uY=this.eH=this.zQ=this.NP=0;this.EH=new Ki.Xb(1146);this.Uz=new Ki.Xb(122);this.bR=new Ki.Xb(78);Cb(this.EH);Cb(this.Uz);Cb(this.bR);this.fD=this.u1=
this.XQ=null;this.Mx=new Ki.Xb(16);this.Qj=new Ki.Xb(573);Cb(this.Qj);this.XX=this.yH=0;this.depth=new Ki.Xb(573);Cb(this.depth);this.m3=this.EP=this.J1=this.matches=this.UD=this.Ud=this.JV=this.s$=this.H3=this.dg=0};
lfJ=function(e,N){if(!e||!e.state||N>5||N<0)return e?pb(e,-2):-2;var y=e.state;if(!e.output||!e.input&&e.o$!==0||y.status===666&&N!==4)return pb(e,e.qP===0?-5:-2);y.I2=e;var w=y.iy;y.iy=N;if(y.status===42)if(y.wrap===2)e.Z_=0,lg(y,31),lg(y,139),lg(y,8),y.cG?(lg(y,(y.cG.text?1:0)+(y.cG.xl?2:0)+(y.cG.extra?4:0)+(y.cG.name?8:0)+(y.cG.comment?16:0)),lg(y,y.cG.time&255),lg(y,y.cG.time>>8&255),lg(y,y.cG.time>>16&255),lg(y,y.cG.time>>24&255),lg(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),lg(y,y.cG.os&
255),y.cG.extra&&y.cG.extra.length&&(lg(y,y.cG.extra.length&255),lg(y,y.cG.extra.length>>8&255)),y.cG.xl&&(e.Z_=oG(e.Z_,y.Xr,y.pending,0)),y.tx=0,y.status=69):(lg(y,0),lg(y,0),lg(y,0),lg(y,0),lg(y,0),lg(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),lg(y,3),y.status=113);else{var E=8+(y.RB-8<<4)<<8;E|=(y.strategy>=2||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6;y.zW!==0&&(E|=32);y.status=113;Fg(y,E+(31-E%31));y.zW!==0&&(Fg(y,e.Z_>>>16),Fg(y,e.Z_&65535));e.Z_=1}if(y.status===69)if(y.cG.extra){for(E=
y.pending;y.tx<(y.cG.extra.length&65535)&&(y.pending!==y.jz||(y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E)),rx(e),E=y.pending,y.pending!==y.jz));)lg(y,y.cG.extra[y.tx]&255),y.tx++;y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E));y.tx===y.cG.extra.length&&(y.tx=0,y.status=73)}else y.status=73;if(y.status===73)if(y.cG.name){E=y.pending;do{if(y.pending===y.jz&&(y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E)),rx(e),E=y.pending,y.pending===y.jz)){var A=1;break}A=y.tx<y.cG.name.length?
y.cG.name.charCodeAt(y.tx++)&255:0;lg(y,A)}while(A!==0);y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E));A===0&&(y.tx=0,y.status=91)}else y.status=91;if(y.status===91)if(y.cG.comment){E=y.pending;do{if(y.pending===y.jz&&(y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E)),rx(e),E=y.pending,y.pending===y.jz)){A=1;break}A=y.tx<y.cG.comment.length?y.cG.comment.charCodeAt(y.tx++)&255:0;lg(y,A)}while(A!==0);y.cG.xl&&y.pending>E&&(e.Z_=oG(e.Z_,y.Xr,y.pending-E,E));A===0&&(y.status=103)}else y.status=
103;y.status===103&&(y.cG.xl?(y.pending+2>y.jz&&rx(e),y.pending+2<=y.jz&&(lg(y,e.Z_&255),lg(y,e.Z_>>8&255),e.Z_=0,y.status=113)):y.status=113);if(y.pending!==0){if(rx(e),e.qP===0)return y.iy=-1,0}else if(e.o$===0&&(N<<1)-(N>4?9:0)<=(w<<1)-(w>4?9:0)&&N!==4)return pb(e,-5);if(y.status===666&&e.o$!==0)return pb(e,-5);if(e.o$!==0||y.MU!==0||N!==0&&y.status!==666){w=y.strategy===2?YoP(y,N):y.strategy===3?$eM(y,N):Bz[y.level].func(y,N);if(w===3||w===4)y.status=666;if(w===1||w===3)return e.qP===0&&(y.iy=
-1),0;if(w===2&&(N===1?(U2(y,2,3),Li(y,256,$r),y.m3===16?(GY(y,y.EP),y.EP=0,y.m3=0):y.m3>=8&&(y.Xr[y.pending++]=y.EP&255,y.EP>>=8,y.m3-=8)):N!==5&&(U2(y,0,3),wfJ(y,0,0),N===3&&(Cb(y.head),y.MU===0&&(y.zW=0,y.En=0,y.J1=0))),rx(e),e.qP===0))return y.iy=-1,0}if(N!==4)return 0;if(y.wrap<=0)return 1;y.wrap===2?(lg(y,e.Z_&255),lg(y,e.Z_>>8&255),lg(y,e.Z_>>16&255),lg(y,e.Z_>>24&255),lg(y,e.jx&255),lg(y,e.jx>>8&255),lg(y,e.jx>>16&255),lg(y,e.jx>>24&255)):(Fg(y,e.Z_>>>16),Fg(y,e.Z_&65535));rx(e);y.wrap>0&&
(y.wrap=-y.wrap);return y.pending!==0?0:1};
Xg=function(e){if(!(this instanceof Xg))return new Xg(e);e=this.options=Ki.assign({level:-1,method:8,chunkSize:16384,oM:15,zyl:8,strategy:0,ZF:""},e||{});e.raw&&e.oM>0?e.oM=-e.oM:e.Vf&&e.oM>0&&e.oM<16&&(e.oM+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.I2=new Fi0;this.I2.qP=0;var N=this.I2;var y=e.level,w=e.method,E=e.oM,A=e.zyl,T=e.strategy;if(N){var p=1;y===-1&&(y=6);E<0?(p=0,E=-E):E>15&&(p=2,E-=16);if(A<1||A>9||w!==8||E<8||E>15||y<0||y>9||T<0||T>4)N=pb(N,-2);else{E===8&&(E=9);
var C=new Mg5;N.state=C;C.I2=N;C.wrap=p;C.cG=null;C.RB=E;C.r4=1<<C.RB;C.GE=C.r4-1;C.eH=A+7;C.zQ=1<<C.eH;C.uY=C.zQ-1;C.iY=~~((C.eH+3-1)/3);C.window=new Ki.iV(C.r4*2);C.head=new Ki.Xb(C.zQ);C.O0=new Ki.Xb(C.r4);C.H3=1<<A+6;C.jz=C.H3*4;C.Xr=new Ki.iV(C.jz);C.JV=1*C.H3;C.dg=3*C.H3;C.level=y;C.strategy=T;C.method=w;if(N&&N.state){N.jx=N.JY=0;N.K3=2;y=N.state;y.pending=0;y.yM=0;y.wrap<0&&(y.wrap=-y.wrap);y.status=y.wrap?42:113;N.Z_=y.wrap===2?0:1;y.iy=0;if(!SoF){w=Array(16);for(A=T=0;A<28;A++)for(Ny[A]=
T,E=0;E<1<<eC[A];E++)ar[T++]=A;ar[T-1]=A;for(A=T=0;A<16;A++)for(Ea[A]=T,E=0;E<1<<wx[A];E++)y2[T++]=A;for(T>>=7;A<30;A++)for(Ea[A]=T<<7,E=0;E<1<<wx[A]-7;E++)y2[256+T++]=A;for(E=0;E<=15;E++)w[E]=0;for(E=0;E<=143;)$r[E*2+1]=8,E++,w[8]++;for(;E<=255;)$r[E*2+1]=9,E++,w[9]++;for(;E<=279;)$r[E*2+1]=7,E++,w[7]++;for(;E<=287;)$r[E*2+1]=8,E++,w[8]++;exE($r,287,w);for(E=0;E<30;E++)Yr[E*2+1]=5,Yr[E*2]=aRF(E,5);oVJ=new O2($r,eC,257,286,15);bGP=new O2(Yr,wx,0,30,15);hx9=new O2([],cqE,0,19,7);SoF=!0}y.XQ=new Rr(y.EH,
oVJ);y.u1=new Rr(y.Uz,bGP);y.fD=new Rr(y.bR,hx9);y.EP=0;y.m3=0;N69(y);y=0}else y=pb(N,-2);y===0&&(N=N.state,N.ES=2*N.r4,Cb(N.head),N.mf=Bz[N.level].hyW,N.Qu=Bz[N.level].vn,N.DQ=Bz[N.level].LoP,N.T8=Bz[N.level].AM9,N.zW=0,N.En=0,N.MU=0,N.J1=0,N.C$=N.Kc=2,N.eJ=0,N.NP=0);N=y}}else N=-2;if(N!==0)throw Error(JT[N]);e.header&&(N=this.I2)&&N.state&&N.state.wrap===2&&(N.state.cG=e.header);if(e.Nz){var r;typeof e.Nz==="string"?r=sdn(e.Nz):keE.call(e.Nz)==="[object ArrayBuffer]"?r=new Uint8Array(e.Nz):r=e.Nz;
e=this.I2;A=r;T=A.length;if(e&&e.state)if(r=e.state,N=r.wrap,N===2||N===1&&r.status!==42||r.MU)N=-2;else{N===1&&(e.Z_=SC(e.Z_,A,T,0));r.wrap=0;T>=r.r4&&(N===0&&(Cb(r.head),r.zW=0,r.En=0,r.J1=0),y=new Ki.iV(r.r4),Ki.mT(y,A,T-r.r4,r.r4,0),A=y,T=r.r4);y=e.o$;w=e.FY;E=e.input;e.o$=T;e.FY=0;e.input=A;for(bg(r);r.MU>=3;){A=r.zW;T=r.MU-2;do r.NP=(r.NP<<r.iY^r.window[A+3-1])&r.uY,r.O0[A&r.GE]=r.head[r.NP],r.head[r.NP]=A,A++;while(--T);r.zW=A;r.MU=2;bg(r)}r.zW+=r.MU;r.En=r.zW;r.J1=r.MU;r.MU=0;r.C$=r.Kc=2;
r.eJ=0;e.FY=w;e.input=E;e.o$=y;r.wrap=N;N=0}else N=-2;if(N!==0)throw Error(JT[N]);this.fSl=!0}};
B6H=function(e,N){N=N||{};N.Vf=!0;N=new Xg(N);N.push(e,!0);if(N.err)throw N.msg||JT[N.err];return N.result};
XfF=function(){var e=g.iE.apply(0,arguments);return e.length===0?function(N){return N}:e.length===1?e[0]:e.reduce(function(N,y){return function(){return N(y.apply(null,g.B(g.iE.apply(0,arguments))))}})};
P6F=function(){var e=g.iE.apply(0,arguments);return function(N){return function(y,w){function E(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
y=N(y,w);var A={getState:y.getState,dispatch:function(T){return E.apply(null,[T].concat(g.B(g.iE.apply(1,arguments))))}};
w=e.map(function(T){return T(A)});
E=XfF.apply(null,g.B(w))(y.dispatch);return Object.assign({},y,{dispatch:E})}}};
Pz=function(){return Math.random().toString(36).substring(7).split("").join(".")};
deE=function(e){Object.keys(e).forEach(function(N){var y=e[N];if(typeof y(void 0,{type:dx})==="undefined")throw Error('The slice reducer for key "'+N+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof y(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Pz()})==="undefined")throw Error('The slice reducer for key "'+
N+"\" returned undefined when probed with a random type. Don't try to handle '"+(dx+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
IfM=function(e,N,y){function w(){if(Y)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return p}
function E(F){if(typeof F!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof F+"'");if(Y)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var S=!0;r===C&&(r=C.slice());r.push(F);return function(){if(S){if(Y)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
S=!1;r===C&&(r=C.slice());r.splice(r.indexOf(F),1);C=null}}}
function A(F){if(typeof F!=="object"||F===null)var S=!1;else{for(S=F;Object.getPrototypeOf(S)!==null;)S=Object.getPrototypeOf(S);S=Object.getPrototypeOf(F)===S}if(!S)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof F+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if(typeof F.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(Y)throw Error("Reducers may not dispatch actions.");try{Y=!0,p=T(p,F)}finally{Y=!1}S=C=r;for(var k=0;k<S.length;k++)(0,S[k])();return F}
if(typeof N==="function"&&typeof y==="function"||typeof y==="function"&&typeof arguments[3]==="function")throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");typeof N==="function"&&typeof y==="undefined"&&(y=N,N=void 0);if(typeof y!=="undefined"){if(typeof y!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof y+"'");return y(IfM)(e,N)}if(typeof e!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof e+"'");var T=e,p=N,C=[],r=C,Y=!1;A({type:dx});var M={},l=(M.dispatch=A,M.subscribe=E,M.getState=w,M.replaceReducer=function(F){if(typeof F!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof F);T=F;A({type:vVJ});return l},M[zxF]=function(){var F={};
return F.subscribe=function(S){function k(){S.next&&S.next(w())}
if(typeof S!=="object"||S===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof S+"'");k();return{unsubscribe:E(k)}},F[zxF]=function(){return this},F},M);
return l};
iG0=function(e){return e?(e=e.privateDoNotAccessOrElseSafeScriptWrappedValue)?kyM(e):null:null};
IG=function(e){return e?(e=e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?PP(e):null:null};
gVH=function(e){e=Des(e);return tt(e)};
g.vz=function(e){e=Des(e);return PP(e)};
Des=function(e){return e===null?"null":e===void 0?"undefined":e};
zz=function(e){this.wT=ic(e)};
ffM=function(e){var N=e.split(e.slice(0,0)),y=[829309009,127189162,1931627394,"\u2284(]}",function(w,E,A){var T=E.length;w.forEach(function(p,C,r){this.push(r[C]=E[(E.indexOf(p)-E.indexOf(this[C])+C+T--)%E.length])},A.split(""))},
"2csJY",-1855062873,function(w,E){E=(E%w.length+w.length)%w.length;w.splice(-E).reverse().forEach(function(A){w.unshift(A)})},
28603365,-1264222492,-484549051,null,-909649633,N,function(w,E){for(E=(E%w.length+w.length)%w.length;E--;)w.unshift(w.pop())},
-151563868,96632245,-281598155,function(){for(var w=64,E=[];++w-E.length-32;){switch(w){case 58:w-=14;case 91:case 92:case 93:continue;case 123:w=47;case 94:case 95:case 96:continue;case 46:w=95}E.push(String.fromCharCode(w))}return E},
-56786611,574931106,N,function(w,E,A,T,p){return E(A,T,p)},
1793443012,797433826,-1051632655,-1610318355,-1113985744,function(w,E){E.length!=0&&(w=(w%E.length+E.length)%E.length,E.splice(0,1,E.splice(w,1,E[0])[0]))},
-316732757,-1553963770,-1312477376,1364208515,420870823,782583598,-903787657,function(w,E,A,T,p,C){return E(T,p,C)},
function(w){w.reverse()},
1239251949,1813776792,"bSlKu",-2096892871,1925962048,-1139698823,1588680687,1360087768,-1975969575,N,null,function(w,E){if(E.length!=0){w=(w%E.length+E.length)%E.length;var A=E[0];E[0]=E[w];E[w]=A}},
261904114,652851621,420870823,1896533843,125476454,-435693912,-1317183958,null,function(w,E){E=(E%w.length+w.length)%w.length;w.splice(E,1)},
function(w,E,A,T,p,C,r,Y,M){return A(T,p,C,r,Y,M)},
-1064537484,-49334868,-764337317,-386863849,-1251919363,-1348593344,function(w){for(var E=w.length;E;)w.push(w.splice(--E,1)[0])},
-1414563805,1054696356,251899332,function(){for(var w=64,E=[];++w-E.length-32;)switch(w){case 58:w=96;continue;case 91:w=44;break;case 65:w=47;continue;case 46:w=153;case 123:w-=58;default:E.push(String.fromCharCode(w))}return E},
function(){for(var w=64,E=[];++w-E.length-32;)switch(w){case 46:w=95;default:E.push(String.fromCharCode(w));case 94:case 95:case 96:break;case 123:w-=76;case 92:case 93:continue;case 58:w=44;case 91:}return E},
1409897295,-2083550410];y[11]=y;y[48]=y;y[57]=y;if(typeof Vg3==="undefined")return e;try{try{y[44]!=-7&&(y[31]<-7?(0,y[22])((0,y[14])(y[47],y[65]),y[14],y[48],y[29]):((0,y[29])(y[66],y[25]),y[52])(y[58],y[57])),y[45]!==-5&&(y[21]<=10?(0,y[67])((0,y[49])(y[58],(0,y[63])(),y[11]),y[49],y[18],(0,y[41])(),y[11]):(0,y[67])((0,y[49])(y[58],(0,y[42])(),y[50]),y[29],y[18],y[46])),y[12]<10&&((0,y[59])(y[28],y[40]),(0,y[54])(y[21],y[23])),y[62]<-9?((((0,y[15])(y[52],y[69]),y[68])(y[44]),y[38])(y[42],y[41]),
(0,y[42])((0,y[42])((0,y[27])(y[68],y[52]),y[10],y[54],y[18]),y[10],y[new Date("1970-01-01T08:45:03.000+08:45")/1E3],y[18]),y[42])(y[46],y[60]):(((0,y[35])(y[2],y[14]),(0,y[32])(y[41],(0,y[25])(),y[33]),y[64])(((0,y[12])(y[41],y[18]),y[56])(y[44],y[41]),y[35],(0,y[32])(y[41],(0,y[25])(),y[33]),y[39],y[36]),y[42])(y[41],y[43]),y[71]!==-5&&(y[62]<=6?(0,y[13])((0,y[32])(y[41],(0,y[24])(),y[68]),(0,y[50])((0,y[12])(y[1],y[73]),y[32],y[41],(0,y[46])(),y[68]),y[50],(0,y[32])(y[49],(0,y[24])(),y[33]),y[35],
y[11],y[new Date("1970-01-01T02:00:07.000+02:00")/1E3]):(((0,y[3])(y[6],y[49]),(0,y[32])(y[1],(0,y[24])(),y[68]),y[35])(y[1],y[15]),(0,y[12])(y[49],y[0]),y[35])(y[41],y[54])),y[29]!==-3&&(y[53]>0||((((0,y[-2505-new Date("1969-12-31T13:17:19.000-10:00")/1E3])(y[72],y[49]),y[56])(y[20],y[41]),y[64])((0,y[56])(y[69],y[2]),y[65],(0,y[42])(y[1],y[62]),y[new Date("1970-01-01T01:15:49.000+01:15")/1E3])&(0,y[5])(y[39]),0))&&((((0,y[41])(y[72],(0,y[48])(),y[40]),y[41])(y[24],(0,y[new Date("1969-12-31T17:45:48.000-06:15")/
1E3])(),y[5]),y[68])(y[72]),(0,y[61])(y[32],y[73]),(0,y[61])(y[24],y[2]),y[61])(y[32],y[57]),y[30]!=4&&(y[18]===-3?(0,y[68])(y[71]):(0,y[70])(y[36],y[72]))}catch(w){(0,y[41])(y[24],(0,y[27])(),y[5]),(0,y[23])((0,y[8])(y[34]),y[68],y[24]),(0,y[41])(y[24],(0,y[48])(),y[40]),(0,y[61])(y[62],y[6]),((0,y[41])(y[24],(0,y[27])(),y[5]),y[41])(y[32],(0,y[49])(),y[5])}finally{y[19]!=10&&((((0,y[38])(y[24],y[25]),y[31])(y[72],y[28]),y[17])(y[43],y[62]),y[70])(y[45],y[24]),y[11]>=-6&&((0,y[60])((0,y[38])(y[34],
y[21]),(0,y[new Date("1970-01-01T11:30:45.000+11:30")/1E3])(y[16],y[40]),y[7],(0,y[7])((0,y[7])((0,y[1])(y[6],y[46]),y[54],y[23],y[16]),y[15],y[56],y[35]),y[52],y[46]),1)||(((((0,y[66])((0,y[28])(y[65],y[43]),y[48],y[57],(0,y[41])(),y[49]),y[51])(y[65],y[71]),y[58])(y[18],y[37]),y[58])(y[57],y[0]),y[19])(y[26],y[55]),y[34]!==1&&(((0,y[58])(y[27],y[42]),y[69])(y[66],y[12]),"4")||((0,y[50])(y[56]),y[36])(y[10]),y[0]<-2&&((0,y[36])(y[47]),y[52])((0,y[25])(y[19],y[63]),y[23],y[17])}}catch(w){return"NsJ3mTvHwC8oZ0B3uL-_w8_"+
e}return N.join("")};
tgH=function(e){return e,"Content-Transfer-Encoding"[11+!!e]};
g.ig=function(e){this.name=e};
uAM=function(e){this.wT=ic(e)};
DO=function(e){this.wT=ic(e)};
gx=function(e){this.wT=ic(e)};
qoJ=function(e){this.wT=ic(e)};
V2=function(e){this.wT=ic(e)};
fb=function(e){this.wT=ic(e)};
tT=function(e){this.wT=ic(e)};
ug=function(e){this.wT=ic(e)};
qy=function(e){this.wT=ic(e)};
ZO=function(e){this.wT=ic(e)};
xr=function(e){this.wT=ic(e)};
jC=function(e){this.wT=ic(e)};
nb=function(e){this.wT=ic(e)};
Q2=function(e){this.wT=ic(e)};
Kb=function(e){this.wT=ic(e)};
Wz=function(e){this.wT=ic(e,500)};
Oa=function(e){this.wT=ic(e)};
RG=function(e){this.wT=ic(e)};
ZG5=function(e){this.wT=ic(e)};
xe_=function(){return g.nM("yt.ads.biscotti.lastId_")||""};
jZ0=function(e){g.jM("yt.ads.biscotti.lastId_",e)};
Ua=function(){var e=arguments,N=Gz;e.length>1?N[e[0]]=e[1]:e.length===1&&Object.assign(N,e[0])};
g.Lb=function(e,N){return e in Gz?Gz[e]:N};
sa=function(e){var N=Gz.EXPERIMENT_FLAGS;return N?N[e]:void 0};
nV_=function(e){aG.forEach(function(N){return N(e)})};
g.NR=function(e){return e&&window.yterr?function(){try{return e.apply(this,arguments)}catch(N){g.eH(N)}}:e};
g.eH=function(e){var N=g.nM("yt.logging.errors.log");N?N(e,"ERROR",void 0,void 0,void 0,void 0,void 0):(N=g.Lb("ERRORS",[]),N.push([e,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ua("ERRORS",N));nV_(e)};
yN=function(e,N,y,w,E){var A=g.nM("yt.logging.errors.log");A?A(e,"WARNING",N,y,w,void 0,E):(A=g.Lb("ERRORS",[]),A.push([e,"WARNING",N,y,w,void 0,E]),Ua("ERRORS",A))};
w2=function(e,N){N=e.split(N);for(var y={},w=0,E=N.length;w<E;w++){var A=N[w].split("=");if(A.length===1&&A[0]||A.length===2)try{var T=QZH(A[0]||""),p=QZH(A[1]||"");if(T in y){var C=y[T];Array.isArray(C)?g.Nd(C,p):y[T]=[C,p]}else y[T]=p}catch(l){var r=l,Y=A[0],M=String(w2);r.args=[{key:Y,value:A[1],query:e,method:meM===M?"unchanged":M}];HGM.hasOwnProperty(Y)||yN(r)}}return y};
E8=function(e){var N=[];g.oB(e,function(y,w){var E=g.RA(w);g.$R(Array.isArray(y)?y:[y],function(A){A==""?N.push(E):N.push(E+"="+g.RA(A))})});
return N.join("&")};
AE=function(e){e.charAt(0)==="?"&&(e=e.substring(1));return w2(e,"&")};
Tk=function(e){return e.split(",").map(function(N){return AE(N)})};
g.JE=function(e){return e.indexOf("?")!==-1?(e=(e||"").split("#")[0],e=e.split("?",2),AE(e.length>1?e[1]:e[0])):{}};
pp=function(e,N){return Ki0(e,N||{},!0)};
Cp=function(e,N){return Ki0(e,N||{},!1)};
Ki0=function(e,N,y){var w=e.split("#",2);e=w[0];w=w.length>1?"#"+w[1]:"";var E=e.split("?",2);e=E[0];E=AE(E[1]||"");for(var A in N)if(y||!g.P4(E,A))E[A]=N[A];return g.Qb(e,E)+w};
r2=function(e){if(!N)var N=window.location.href;var y=g.to(1,e),w=g.uB(e);y&&w?(e=e.match(fY),N=N.match(fY),e=e[3]==N[3]&&e[1]==N[1]&&e[4]==N[4]):e=w?g.uB(N)===w&&(Number(g.to(4,N))||null)===(Number(g.to(4,e))||null):!0;return e};
$3=function(e){e||(e=document.location.href);e=g.to(1,e);return e!==null&&e==="https"};
Y3=function(e){e=Wi5(e);return e===null?!1:e[0]==="com"&&e[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
OGE=function(e){e=Wi5(e);return e===null?!1:e[1]==="google"?!0:e[2]==="google"?e[0]==="au"&&e[1]==="com"?!0:e[0]==="uk"&&e[1]==="co"?!0:!1:!1};
Wi5=function(e){e=g.uB(e);return e!==null?e.split(".").reverse():null};
QZH=function(e){return e&&e.match(Rx0)?e:GJ(e)};
Fj=function(e){var N=MR;e=e===void 0?xe_():e;var y=Object,w=y.assign,E=l4(N);var A=N.J;try{var T=A.screenX;var p=A.screenY}catch(d){}try{var C=A.outerWidth;var r=A.outerHeight}catch(d){}try{var Y=A.innerWidth;var M=A.innerHeight}catch(d){}try{var l=A.screenLeft;var F=A.screenTop}catch(d){}try{Y=A.innerWidth,M=A.innerHeight}catch(d){}try{var S=A.screen.availWidth;var k=A.screen.availTop}catch(d){}A=[l,F,T,p,S,k,C,r,Y,M];T=Mt1(!1,N.J.top);p={};var X=X===void 0?g.xJ:X;C=new WB;"SVGElement"in X&&"createElementNS"in
X.document&&C.set(0);r=I9J();r["allow-top-navigation-by-user-activation"]&&C.set(1);r["allow-popups-to-escape-sandbox"]&&C.set(2);X.crypto&&X.crypto.subtle&&C.set(3);"TextDecoder"in X&&"TextEncoder"in X&&C.set(4);X=Xe0(C);N=(p.bc=X,p.bih=T.height,p.biw=T.width,p.brdim=A.join(),p.vis=FR(N.N),p.wgl=!!Yn.WebGLRenderingContext,p);y=w.call(y,E,N);y.ca_type="image";e&&(y.bid=e);return y};
l4=function(e){var N={};N.dt=GeJ;N.flash="0";a:{try{var y=e.J.top.location.href}catch(Y){e=2;break a}e=y?y===e.N.location.href?0:1:2}N=(N.frm=e,N);try{N.u_tz=-(new Date).getTimezoneOffset();var w=w===void 0?Yn:w;try{var E=w.history.length}catch(Y){E=0}N.u_his=E;var A;N.u_h=(A=Yn.screen)==null?void 0:A.height;var T;N.u_w=(T=Yn.screen)==null?void 0:T.width;var p;N.u_ah=(p=Yn.screen)==null?void 0:p.availHeight;var C;N.u_aw=(C=Yn.screen)==null?void 0:C.availWidth;var r;N.u_cd=(r=Yn.screen)==null?void 0:
r.colorDepth}catch(Y){}return N};
LiM=function(){if(!Ue0)return null;var e=Ue0();return"open"in e?e:null};
g.oy=function(e){switch(SH(e)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
SH=function(e){return e&&"status"in e?e.status:-1};
g.b4=function(e,N){typeof e==="function"&&(e=g.NR(e));return window.setTimeout(e,N)};
g.hE=function(e,N){typeof e==="function"&&(e=g.NR(e));return window.setInterval(e,N)};
g.cL=function(e){window.clearTimeout(e)};
g.k3=function(e){window.clearInterval(e)};
g.Xj=function(e){e=BL(e);return typeof e==="string"&&e==="false"?!1:!!e};
g.PL=function(e,N){e=BL(e);return e===void 0&&N!==void 0?N:Number(e||0)};
d2=function(){return g.Lb("EXPERIMENTS_TOKEN","")};
BL=function(e){return g.Lb("EXPERIMENT_FLAGS",{})[e]};
Iy=function(){for(var e=[],N=g.Lb("EXPERIMENTS_FORCED_FLAGS",{}),y=g.c(Object.keys(N)),w=y.next();!w.done;w=y.next())w=w.value,e.push({key:w,value:String(N[w])});y=g.Lb("EXPERIMENT_FLAGS",{});w=g.c(Object.keys(y));for(var E=w.next();!E.done;E=w.next())E=E.value,E.startsWith("force_")&&N[E]===void 0&&e.push({key:E,value:String(y[E])});return e};
vL=function(e,N,y,w,E,A,T,p){function C(){(r&&"readyState"in r?r.readyState:0)===4&&N&&g.NR(N)(r)}
y=y===void 0?"GET":y;w=w===void 0?"":w;p=p===void 0?!1:p;var r=LiM();if(!r)return null;"onloadend"in r?r.addEventListener("loadend",C,!1):r.onreadystatechange=C;g.Xj("debug_forward_web_query_parameters")&&(e=sZE(e,window.location.search));r.open(y,e,!0);A&&(r.responseType=A);T&&(r.withCredentials=!0);y=y==="POST"&&(window.FormData===void 0||!(w instanceof FormData));if(E=afM(e,E))for(var Y in E)r.setRequestHeader(Y,E[Y]),"content-type"===Y.toLowerCase()&&(y=!1);y&&r.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");if(p&&"setAttributionReporting"in XMLHttpRequest.prototype){e={eventSourceEligible:!0,triggerEligible:!1};try{r.setAttributionReporting(e)}catch(M){yN(M)}}r.send(w);return r};
afM=function(e,N){N=N===void 0?{}:N;var y=r2(e),w=g.Lb("INNERTUBE_CLIENT_NAME"),E=g.Xj("web_ajax_ignore_global_headers_if_set"),A;for(A in eh3){var T=g.Lb(eh3[A]),p=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||T||(T=g.Lb("VISITOR_DATA"));var C;if(!(C=!T)){if(!(C=y||(g.uB(e)?!1:!0))){C=e;var r;if(r=g.Xj("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(w==="TVHTML5"||w==="TVHTML5_UNPLUGGED"||w==="TVHTML5_SIMPLY")&&OGE(C))C=D9(g.to(5,C))||"",C=C.split("/"),
C="/"+(C.length>1?C[1]:""),r=C==="/pagead";C=r?!0:!1}C=!C}C||E&&N[A]!==void 0||w==="TVHTML5_UNPLUGGED"&&p||(N[A]=T)}"X-Goog-EOM-Visitor-Id"in N&&"X-Goog-Visitor-Id"in N&&delete N["X-Goog-Visitor-Id"];if(y||!g.uB(e))N["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(y||!g.uB(e)){try{var Y=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}Y&&(N["X-YouTube-Time-Zone"]=Y)}document.location.hostname.endsWith("youtubeeducation.com")||!y&&g.uB(e)||(N["X-YouTube-Ad-Signals"]=
E8(Fj()));return N};
y7n=function(e,N){var y=g.uB(e);g.Xj("debug_handle_relative_url_for_query_forward_killswitch")||!y&&r2(e)&&(y=document.location.hostname);var w=D9(g.to(5,e));w=(y=y&&(y.endsWith("youtube.com")||y.endsWith("youtube-nocookie.com")))&&w&&w.startsWith("/api/");if(!y||w)return e;var E=AE(N),A={};g.$R(NN9,function(T){E[T]&&(A[T]=E[T])});
return Cp(e,A)};
i4=function(e,N){N.method="POST";N.postParams||(N.postParams={});return g.zk(e,N)};
A7E=function(e,N){if(window.fetch&&N.format!=="XML"){var y={method:N.method||"GET",credentials:"same-origin"};N.headers&&(y.headers=N.headers);N.priority&&(y.priority=N.priority);e=wBE(e,N);var w=ED0(e,N);w&&(y.body=w);N.withCredentials&&(y.credentials="include");var E=N.context||g.xJ,A=!1,T;fetch(e,y).then(function(p){if(!A){A=!0;T&&g.cL(T);var C=p.ok,r=function(Y){Y=Y||{};C?N.onSuccess&&N.onSuccess.call(E,Y,p):N.onError&&N.onError.call(E,Y,p);N.onFinish&&N.onFinish.call(E,Y,p)};
(N.format||"JSON")==="JSON"&&(C||p.status>=400&&p.status<500)?p.json().then(r,function(){r(null)}):r(null)}}).catch(function(){N.onError&&N.onError.call(E,{},{})});
e=N.timeout||0;N.onFetchTimeout&&e>0&&(T=g.b4(function(){A||(A=!0,g.cL(T),N.onFetchTimeout.call(N.context||g.xJ))},e))}else g.zk(e,N)};
g.zk=function(e,N){var y=N.format||"JSON";e=wBE(e,N);var w=ED0(e,N),E=!1,A=TNP(e,function(C){if(!E){E=!0;p&&g.cL(p);var r=g.oy(C),Y=null,M=400<=C.status&&C.status<500,l=500<=C.status&&C.status<600;if(r||M||l)Y=J73(e,y,C,N.convertToSafeHtml);r&&(r=pBE(y,C,Y));Y=Y||{};M=N.context||g.xJ;r?N.onSuccess&&N.onSuccess.call(M,C,Y):N.onError&&N.onError.call(M,C,Y);N.onFinish&&N.onFinish.call(M,C,Y)}},N.method,w,N.headers,N.responseType,N.withCredentials);
w=N.timeout||0;if(N.onTimeout&&w>0){var T=N.onTimeout;var p=g.b4(function(){E||(E=!0,A.abort(),g.cL(p),T.call(N.context||g.xJ,A))},w)}return A};
wBE=function(e,N){N.includeDomain&&(e=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+e);var y=g.Lb("XSRF_FIELD_NAME");if(N=N.urlParams)N[y]&&delete N[y],e=pp(e,N);return e};
ED0=function(e,N){var y=g.Lb("XSRF_FIELD_NAME"),w=g.Lb("XSRF_TOKEN"),E=N.postBody||"",A=N.postParams,T=g.Lb("XSRF_FIELD_NAME"),p;N.headers&&(p=N.headers["Content-Type"]);N.excludeXsrf||g.uB(e)&&!N.withCredentials&&g.uB(e)!==document.location.hostname||N.method!=="POST"||p&&p!=="application/x-www-form-urlencoded"||N.postParams&&N.postParams[T]||(A||(A={}),A[y]=w);(g.Xj("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof E==="string"&&(E=AE(E),g.VM(E,A),E=N.postBodyFormat&&
N.postBodyFormat==="JSON"?JSON.stringify(E):g.nY(E));A=E||A&&!g.v4(A);!Cf1&&A&&N.method!=="POST"&&(Cf1=!0,g.eH(Error("AJAX request with postData should use POST")));return E};
J73=function(e,N,y,w){var E=null;switch(N){case "JSON":try{var A=y.responseText}catch(T){throw w=Error("Error reading responseText"),w.params=e,yN(w),T;}e=y.getResponseHeader("Content-Type")||"";A&&e.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),E=JSON.parse(A));break;case "XML":if(e=(e=y.responseXML)?r7H(e):null)E={},g.$R(e.getElementsByTagName("*"),function(T){E[T.tagName]=$HM(T)})}w&&YH3(E);
return E};
YH3=function(e){if(g.W5(e))for(var N in e)N==="html_content"||nJn(N,"_html")?e[N]=tt(e[N]):YH3(e[N])};
pBE=function(e,N,y){if(N&&N.status===204)return!0;switch(e){case "JSON":return!!y;case "XML":return Number(y&&y.return_code)===0;case "RAW":return!0;default:return!!y}};
r7H=function(e){return e?(e=("responseXML"in e?e.responseXML:e).getElementsByTagName("root"))&&e.length>0?e[0]:null:null};
$HM=function(e){var N="";g.$R(e.childNodes,function(y){N+=y.nodeValue});
return N};
g2=function(e,N){var y=g.DA(N),w;return(new g.lB(function(E,A){y.onSuccess=function(T){g.oy(T)?E(new Ma9(T)):A(new DJ("Request failed, status="+SH(T),"net.badstatus",T))};
y.onError=function(T){A(new DJ("Unknown request error","net.unknown",T))};
y.onTimeout=function(T){A(new DJ("Request timed out","net.timeout",T))};
w=g.zk(e,y)})).On(function(E){if(E instanceof cc){var A;
(A=w)==null||A.abort()}return oD(E)})};
g.VN=function(e,N,y,w){function E(p,C,r){return p.On(function(Y){if(C<=0||SH(Y.xhr)===403)return oD(new DJ("Request retried too many times","net.retryexhausted",Y.xhr,Y));Y=Math.pow(2,y-C+1)*r;var M=T>0?Math.min(T,Y):Y;return A(r).then(function(){return E(g2(e,N),C-1,M)})})}
function A(p){return new g.lB(function(C){setTimeout(C,p)})}
var T=T===void 0?-1:T;return E(g2(e,N),y-1,w)};
DJ=function(e,N,y){FF.call(this,e+", errorCode="+N);this.errorCode=N;this.xhr=y;this.name="PromiseAjaxError"};
Ma9=function(e){this.xhr=e};
fp=function(e){this.J=e===void 0?null:e;this.K=0;this.N=null};
tE=function(e){var N=new fp;e=e===void 0?null:e;N.K=2;N.N=e===void 0?null:e;return N};
u4=function(e){var N=new fp;e=e===void 0?null:e;N.K=1;N.N=e===void 0?null:e;return N};
g.x3=function(e,N,y,w,E){qR||ZJ.set(""+e,N,{B3:y,path:"/",domain:w===void 0?"youtube.com":w,secure:E===void 0?!1:E})};
g.jH=function(e,N){if(!qR)return ZJ.get(""+e,N)};
g.np=function(e,N,y){qR||ZJ.remove(""+e,N===void 0?"/":N,y===void 0?"youtube.com":y)};
lSn=function(){if(g.Xj("embeds_web_enable_cookie_detection_fix")){if(!g.xJ.navigator.cookieEnabled)return!1}else if(!ZJ.isEnabled())return!1;if(!ZJ.isEmpty())return!0;g.Xj("embeds_web_enable_cookie_detection_fix")?ZJ.set("TESTCOOKIESENABLED","1",{B3:60,SXt:"none",secure:!0}):ZJ.set("TESTCOOKIESENABLED","1",{B3:60});if(ZJ.get("TESTCOOKIESENABLED")!=="1")return!1;ZJ.remove("TESTCOOKIESENABLED");return!0};
g.m=function(e,N){if(e)return e[N.name]};
QN=function(e){var N=g.Lb("INNERTUBE_HOST_OVERRIDE");N&&(e=String(N)+String(q0(e)));return e};
FI1=function(e){var N={};g.Xj("json_condensed_response")&&(N.prettyPrint="false");return e=Cp(e,N)};
mH=function(e,N){var y=y===void 0?{}:y;e={method:N===void 0?"POST":N,mode:r2(e)?"same-origin":"cors",credentials:r2(e)?"same-origin":"include"};N={};for(var w=g.c(Object.keys(y)),E=w.next();!E.done;E=w.next())E=E.value,y[E]&&(N[E]=y[E]);Object.keys(N).length>0&&(e.headers=N);return e};
HL=function(){var e=/Chrome\/(\d+)/.exec(g.zw());return e?parseFloat(e[1]):NaN};
WL=function(){return g.Kp("android")&&g.Kp("chrome")&&!(g.Kp("trident/")||g.Kp("edge/"))&&!g.Kp("cobalt")};
SH3=function(){return g.Kp("armv7")||g.Kp("aarch64")||g.Kp("android")};
g.O8=function(){return g.Kp("cobalt")};
Ry=function(){return g.Kp("cobalt")&&g.Kp("appletv")};
Gk=function(){return g.Kp("(ps3; leanback shell)")||g.Kp("ps3")&&g.O8()};
oDs=function(){return g.Kp("(ps4; leanback shell)")||g.Kp("ps4")&&g.O8()};
g.bkn=function(){return g.O8()&&(g.Kp("ps4 vr")||g.Kp("ps4 pro vr"))};
U8=function(){var e=/WebKit\/([0-9]+)/.exec(g.zw());return!!(e&&parseInt(e[1],10)>=600)};
Lp=function(){var e=/WebKit\/([0-9]+)/.exec(g.zw());return!!(e&&parseInt(e[1],10)>=602)};
hhs=function(){return g.Kp("iemobile")||g.Kp("windows phone")&&g.Kp("edge")};
eu=function(){return(s8||ay)&&g.Kp("applewebkit")&&!g.Kp("version")&&(!g.Kp("safari")||g.Kp("gsa/"))};
yf=function(){return g.NI&&g.Kp("version/")};
w9=function(){return g.Kp("smart-tv")&&g.Kp("samsung")};
g.Kp=function(e){var N=g.zw();return N?N.toLowerCase().indexOf(e)>=0:!1};
EF=function(){return qr9()||eu()||yf()?!0:g.Lb("EOM_VISITOR_DATA")?!1:!0};
A2=function(e,N){return N===void 0||N===null?e:N==="1"||N===!0||N===1||N==="True"?!0:!1};
Th=function(e,N,y){for(var w in y)if(y[w]==N)return y[w];return e};
J2=function(e,N){return N===void 0||N===null?e:Number(N)};
pO=function(e,N){return N===void 0||N===null?e:N.toString()};
CO=function(e,N){if(N){if(e==="fullwidth")return Infinity;if(e==="fullheight")return 0}return e&&(N=e.match(c7_))&&(e=Number(N[2]),N=Number(N[1]),!isNaN(e)&&!isNaN(N)&&e>0)?N/e:NaN};
r9=function(e){var N=e.docid||e.video_id||e.videoId||e.id;if(N)return N;N=e.raw_player_response;N||(e=e.player_response)&&(N=JSON.parse(e));return N&&N.videoDetails&&N.videoDetails.videoId||null};
k1n=function(e){return $h(e,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.Yh=function(e){return e==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||e==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
$h=function(e,N){N=(N===void 0?0:N)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(N="EMBEDDED_PLAYER_MODE_PFL");var y=e.raw_embedded_player_response;if(!y&&(e=e.embedded_player_response))try{y=JSON.parse(e)}catch(w){return N}return y?Th(N,y.embeddedPlayerMode,BNs):N};
lY=function(e){FF.call(this,e.message||e.description||e.name);this.isMissing=e instanceof MI;this.isTimeout=e instanceof DJ&&e.errorCode=="net.timeout";this.isCanceled=e instanceof cc};
MI=function(){FF.call(this,"Biscotti ID is missing from server")};
XB9=function(){if(g.Xj("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!EF())return Error("User has not consented - not fetching biscotti id.");var e=g.Lb("PLAYER_VARS",{});if(g.zM(e,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(k1n(e))return Error("Biscotti id fetching has been disabled for pfl.")};
vD1=function(){var e=XB9();if(e!==void 0)return oD(e);Fc||(Fc=g2("//googleads.g.doubleclick.net/pagead/id",PfJ).then(dH0).On(function(N){return ISJ(2,N)}));
return Fc};
dH0=function(e){e=e.xhr.responseText;if(!c_(e,")]}'"))throw new MI;e=JSON.parse(e.substr(4));if((e.type||1)>1)throw new MI;e=e.id;jZ0(e);Fc=u4(e);zhn(18E5,2);return e};
ISJ=function(e,N){N=new lY(N);jZ0("");Fc=tE(N);e>0&&zhn(12E4,e-1);throw N;};
zhn=function(e,N){g.b4(function(){g2("//googleads.g.doubleclick.net/pagead/id",PfJ).then(dH0,function(y){return ISJ(N,y)}).On(g.CY)},e)};
ik5=function(){try{var e=g.nM("yt.ads.biscotti.getId_");return e?e():vD1()}catch(N){return oD(N)}};
gDE=function(e){e&&(e.dataset?e.dataset[DHM()]="true":XW0(e))};
VaE=function(e){return e?e.dataset?e.dataset[DHM()]:e.getAttribute("data-loaded"):null};
DHM=function(){return fS1.loaded||(fS1.loaded="loaded".replace(/\-([a-z])/g,function(e,N){return N.toUpperCase()}))};
taP=function(){var e=document;if("visibilityState"in e)return e.visibilityState;var N=Su+"VisibilityState";if(N in e)return e[N]};
oz=function(e,N){var y;DR(e,function(w){y=N[w];return!!y});
return y};
bY=function(e){if(e.requestFullscreen)e=e.requestFullscreen(void 0);else if(e.webkitRequestFullscreen)e=e.webkitRequestFullscreen();else if(e.mozRequestFullScreen)e=e.mozRequestFullScreen();else if(e.msRequestFullscreen)e=e.msRequestFullscreen();else if(e.webkitEnterFullscreen)e=e.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return e instanceof Promise?e:Promise.resolve()};
kh=function(e){var N;g.h2()?cE()==e&&(N=document):N=e;return N&&(e=oz(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],N))?(N=e.call(N),N instanceof Promise?N:Promise.resolve()):Promise.resolve()};
ubn=function(e){return g.Ok(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(N){return"on"+N.toLowerCase()in e})};
qH1=function(){var e=document;return g.Ok(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(N){return"on"+N.toLowerCase()in e})};
g.h2=function(){return!!oz(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
cE=function(e){e=e===void 0?!1:e;var N=oz(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(e)for(;N&&N.shadowRoot;)N=N.shadowRoot.fullscreenElement;return N?N:null};
BE=function(e){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(e=e||window.event){this.event=e;for(var N in e)N in Zks||(this[N]=e[N]);this.scale=e.scale;this.rotation=e.rotation;var y=e.target||e.srcElement;y&&y.nodeType==3&&(y=y.parentNode);this.target=y;var w=e.relatedTarget;
if(w)try{w=w.nodeName?w:null}catch(E){w=null}else this.type=="mouseover"?w=e.fromElement:this.type=="mouseout"&&(w=e.toElement);this.relatedTarget=w;this.clientX=e.clientX!=void 0?e.clientX:e.pageX;this.clientY=e.clientY!=void 0?e.clientY:e.pageY;this.keyCode=e.keyCode?e.keyCode:e.which;this.charCode=e.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=e.altKey;this.ctrlKey=e.ctrlKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.J=e.pageX;this.N=e.pageY}}catch(E){}};
xH5=function(e){if(document.body&&document.documentElement){var N=document.body.scrollTop+document.documentElement.scrollTop;e.J=e.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);e.N=e.clientY+N}};
j1n=function(e,N,y,w){w=w===void 0?{}:w;e.addEventListener&&(N!="mouseenter"||"onmouseenter"in document?N!="mouseleave"||"onmouseenter"in document?N=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(N="MozMousePixelScroll"):N="mouseout":N="mouseover");return IB(Xc,function(E){var A=typeof E[4]==="boolean"&&E[4]==!!w,T=g.W5(E[4])&&g.W5(w)&&g.i8(E[4],w);return!!E.length&&E[0]==e&&E[1]==N&&E[2]==y&&(A||T)})};
g.PE=function(e,N,y,w){w=w===void 0?{}:w;if(!e||!e.addEventListener&&!e.attachEvent)return"";var E=j1n(e,N,y,w);if(E)return E;E=++nD0.count+"";var A=!(N!="mouseenter"&&N!="mouseleave"||!e.addEventListener||"onmouseenter"in document);var T=A?function(p){p=new BE(p);if(!TN(p.relatedTarget,function(C){return C==e},!0))return p.currentTarget=e,p.type=N,y.call(e,p)}:function(p){p=new BE(p);
p.currentTarget=e;return y.call(e,p)};
T=g.NR(T);e.addEventListener?(N=="mouseenter"&&A?N="mouseover":N=="mouseleave"&&A?N="mouseout":N=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(N="MozMousePixelScroll"),Q19()||typeof w==="boolean"?e.addEventListener(N,T,w):e.addEventListener(N,T,!!w.capture)):e.attachEvent("on"+N,T);Xc[E]=[e,N,y,T,w];return E};
HkP=function(e){return mH1(e,function(N){return g.J4(N,"ytp-ad-has-logging-urls")})};
mH1=function(e,N){var y=document.body||document;return g.PE(y,"click",function(w){var E=TN(w.target,function(A){return A===y||N(A)},!0);
E&&E!==y&&!E.disabled&&(w.currentTarget=E,e.call(E,w))})};
g.d9=function(e){e&&(typeof e=="string"&&(e=[e]),g.$R(e,function(N){if(N in Xc){var y=Xc[N],w=y[0],E=y[1],A=y[3];y=y[4];w.removeEventListener?Q19()||typeof y==="boolean"?w.removeEventListener(E,A,y):w.removeEventListener(E,A,!!y.capture):w.detachEvent&&w.detachEvent("on"+E,A);delete Xc[N]}}))};
Iz=function(e){for(var N in Xc)Xc[N][0]==e&&g.d9(N)};
vE=function(e){e=e||window.event;var N;e.composedPath&&typeof e.composedPath==="function"?N=e.composedPath():N=e.path;N&&N.length?e=N[0]:(e=e||window.event,e=e.target||e.srcElement,e.nodeType==3&&(e=e.parentNode));return e};
zh=function(e){this.G=e;this.J=null;this.j=0;this.Z=null;this.L=0;this.N=[];for(e=0;e<4;e++)this.N.push(0);this.K=0;this.Kh=g.PE(window,"mousemove",(0,g.Gs)(this.D,this));this.U=g.hE((0,g.Gs)(this.Ng,this),25)};
iY=function(e){g.x.call(this);this.G=[];this.a9=e||this};
Dw=function(e,N,y,w){for(var E=0;E<y.length;E++)e.Y(N,y[E],w)};
g.g9=function(e,N){for(;e.G.length;){var y=e.G.pop(),w=void 0;N&&KI1()&&(w={passive:!0});y.target.removeEventListener(y.name,y.callback,w)}};
Vf=function(e){e=e||{};var N={},y={};this.url=e.url||"";this.args=e.args||g.DA(N);this.assets=e.assets||{};this.attrs=e.attrs||g.DA(y);this.fallback=e.fallback||null;this.fallbackMessage=e.fallbackMessage||null;this.html5=!!e.html5;this.disable=e.disable||{};this.loaded=!!e.loaded;this.messages=e.messages||{}};
WI5=function(e){e instanceof Vf||(e=new Vf(e));return e};
g.uY=function(e,N,y){var w=y&&y>0?y:0;y=w?Date.now()+w*1E3:0;if((w=w?(0,g.fO)():t2())&&window.JSON){typeof N!=="string"&&(N=JSON.stringify(N,void 0));try{w.set(e,N,y)}catch(E){w.remove(e)}}};
g.qI=function(e){var N=t2(),y=(0,g.fO)();if(!N&&!y||!window.JSON)return null;try{var w=N.get(e)}catch(E){}if(typeof w!=="string")try{w=y.get(e)}catch(E){}if(typeof w!=="string")return null;try{w=JSON.parse(w,void 0)}catch(E){}return w};
OkM=function(){var e=(0,g.fO)();if(e&&(e=e.N("yt-player-quality")))return e.creation};
g.Zw=function(e){try{var N=t2(),y=(0,g.fO)();N&&N.remove(e);y&&y.remove(e)}catch(w){}};
g.xh=function(){return g.qI("yt-remote-session-screen-id")};
Rh5=function(e){var N=this;this.N=void 0;this.J=!1;e.addEventListener("beforeinstallprompt",function(y){y.preventDefault();N.N=y});
e.addEventListener("appinstalled",function(){N.J=!0},{once:!0})};
ju=function(){if(!g.xJ.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.xJ.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.xJ.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.xJ.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.xJ.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(e){return"WEB_DISPLAY_MODE_UNKNOWN"}};
nO=function(){this.TY=!0};
G1F=function(){nO.instance||(nO.instance=new nO);return nO.instance};
UH5=function(e){switch(e){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}};
LIP=function(){this.J=g.Lb("ALT_PREF_COOKIE_NAME","PREF");this.N=g.Lb("ALT_PREF_COOKIE_DOMAIN","youtube.com");var e=g.jH(this.J);e&&this.parse(e)};
g.m6=function(){Qf||(Qf=new LIP);return Qf};
g.HE=function(e,N){return!!((s1_("f"+(Math.floor(N/31)+1))||0)&1<<N%31)};
WE=function(e,N){var y="f"+(Math.floor(e/31)+1);e=1<<e%31;var w=s1_(y)||0;w=N?w|e:w&~e;w===0?delete KO[y]:(N=w.toString(16),KO[y]=N.toString())};
OF=function(e){if(/^f([1-9][0-9]*)$/.test(e))throw Error("ExpectedRegexMatch: "+e);};
Rz=function(e){if(!/^\w+$/.test(e))throw Error("ExpectedRegexMismatch: "+e);};
s1_=function(e){e=KO[e]!==void 0?KO[e].toString():null;return e!=null&&/^[A-Fa-f0-9]+$/.test(e)?parseInt(e,16):null};
aS5=function(){var e=g.xJ.navigator;return e?e.connection:void 0};
NeJ=function(){var e=aS5();if(e){var N=eTH[e.type||"unknown"]||"CONN_UNKNOWN";e=eTH[e.effectiveType||"unknown"]||"CONN_UNKNOWN";N==="CONN_CELLULAR_UNKNOWN"&&e!=="CONN_UNKNOWN"&&(N=e);if(N!=="CONN_UNKNOWN")return N;if(e!=="CONN_UNKNOWN")return e}};
wD3=function(){var e=aS5();if(e!=null&&e.effectiveType)return y4J.hasOwnProperty(e.effectiveType)?y4J[e.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.Gh=function(e){var N=g.iE.apply(1,arguments);var y=Error.call(this,e);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.args=[].concat(g.B(N))};
g.LO=function(){try{return g.UF(),!0}catch(e){return!1}};
g.UF=function(e){if(g.Lb("DATASYNC_ID")!==void 0)return g.Lb("DATASYNC_ID");throw new g.Gh("Datasync ID not set",e===void 0?"unknown":e);};
sF=function(){this.J=new WeakMap};
g.e1=function(e,N,y){return az(N,0,y)};
E10=function(e){var N=g.nM("yt.scheduler.instance.addImmediateJob");N?N(e):e()};
N7=function(){sF.apply(this,arguments)};
g.yK=function(){N7.instance||(N7.instance=new N7);return N7.instance};
g.w0=function(){return!!g.nM("yt.scheduler.instance")};
az=function(e,N,y){y!==void 0&&Number.isNaN(Number(y))&&(y=void 0);var w=g.nM("yt.scheduler.instance.addJob");return w?w(e,N,y):y===void 0?(e(),NaN):g.b4(e,y||0)};
Em=function(e,N){(e=g.nM("yt.scheduler.instance.setPriorityThreshold"))&&e(N)};
Ag=function(e){this.J=(e=g.j6(e))?new VE(e):null;this.N=document.domain||window.location.hostname};
Jg=function(){var e;return(e=Tv())==null?void 0:e.get("LAST_RESULT_ENTRY_KEY",!0)};
A4E=function(){var e={};for(pl=new Cl(e.handleError===void 0?r0:e.handleError,e.logEvent===void 0?g.$$:e.logEvent);Y$.length>0;)switch(e=Y$.shift(),e.type){case "ERROR":pl.iR(e.payload);break;case "EVENT":pl.logEvent(e.eventType,e.payload)}};
lC=function(e){M7||(pl?pl.iR(e):(Y$.push({type:"ERROR",payload:e}),Y$.length>10&&Y$.shift()))};
F6=function(e,N){M7||(pl?pl.logEvent(e,N):(Y$.push({type:"EVENT",eventType:e,payload:N}),Y$.length>10&&Y$.shift()))};
S1=function(e){if(e.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
ov=function(e){return e.substr(0,e.indexOf(":"))||e};
g.bC=function(e,N,y,w,E){N=N===void 0?{}:N;y=y===void 0?Tes[e]:y;w=w===void 0?J4_[e]:w;E=E===void 0?pD0[e]:E;g.Gh.call(this,y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:e},N));this.type=e;this.message=y;this.level=w;this.J=E;Object.setPrototypeOf(this,g.bC.prototype)};
hg=function(e,N){g.bC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:N,foundObjectStores:e},Tes.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,hg.prototype)};
cV=function(e,N){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.index=e;this.objectStore=N;Object.setPrototypeOf(this,cV.prototype)};
BV=function(e,N,y,w){N=ov(N);var E=e instanceof Error?e:Error("Unexpected error: "+e);if(E instanceof g.bC)return E;e={objectStoreNames:y,dbName:N,dbVersion:w};if(E.name==="QuotaExceededError")return new g.bC("QUOTA_EXCEEDED",e);if(g.k$&&E.name==="UnknownError")return new g.bC("QUOTA_MAYBE_EXCEEDED",e);if(E instanceof cV)return new g.bC("MISSING_INDEX",Object.assign({},e,{objectStore:E.objectStore,index:E.index}));if(E.name==="InvalidStateError"&&Cn3.some(function(A){return E.message.includes(A)}))return new g.bC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
e);
if(E.name==="AbortError")return new g.bC("UNKNOWN_ABORT",e,E.message);E.args=[Object.assign({},e,{name:"IdbError",bE:E.name})];E.level="WARNING";return E};
g.X6=function(e,N,y){var w=Jg();return new g.bC("IDB_NOT_SUPPORTED",{context:{caller:e,publicName:N,version:y,hasSucceededOnce:w==null?void 0:w.hasSucceededOnce}})};
r4J=function(e){if(!e)throw Error();throw e;};
$AM=function(e){return e};
PV=function(e){this.J=e};
g.d0=function(e){function N(E){if(w.state.status==="PENDING"){w.state={status:"REJECTED",reason:E};E=g.c(w.N);for(var A=E.next();!A.done;A=E.next())A=A.value,A()}}
function y(E){if(w.state.status==="PENDING"){w.state={status:"FULFILLED",value:E};E=g.c(w.J);for(var A=E.next();!A.done;A=E.next())A=A.value,A()}}
var w=this;this.state={status:"PENDING"};this.J=[];this.N=[];e=e.J;try{e(y,N)}catch(E){N(E)}};
Y2F=function(e,N,y,w,E){try{if(e.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var A=y(e.state.value);A instanceof g.d0?Iv(e,N,A,w,E):w(A)}catch(T){E(T)}};
M6M=function(e,N,y,w,E){try{if(e.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var A=y(e.state.reason);A instanceof g.d0?Iv(e,N,A,w,E):w(A)}catch(T){E(T)}};
Iv=function(e,N,y,w,E){N===y?E(new TypeError("Circular promise chain detected.")):y.then(function(A){A instanceof g.d0?Iv(e,N,A,w,E):w(A)},function(A){E(A)})};
l6P=function(e,N,y){function w(){y(e.error);A()}
function E(){N(e.result);A()}
function A(){try{e.removeEventListener("success",E),e.removeEventListener("error",w)}catch(T){}}
e.addEventListener("success",E);e.addEventListener("error",w)};
F73=function(e){return new Promise(function(N,y){l6P(e,N,y)})};
vV=function(e){return new g.d0(new PV(function(N,y){l6P(e,N,y)}))};
zv=function(e,N){return new g.d0(new PV(function(y,w){function E(){var A=e?N(e):null;A?A.then(function(T){e=T;E()},w):y()}
E()}))};
S2s=function(e,N){this.request=e;this.cursor=N};
o10=function(e){return vV(e).then(function(N){return N?new S2s(e,N):null})};
g.biM=function(e){e.cursor.continue(void 0);return o10(e.request)};
hTF=function(e,N){this.J=e;this.options=N;this.transactionCount=0;this.K=Math.round((0,g.iC)());this.N=!1};
g.g0=function(e,N,y){e=e.J.createObjectStore(N,y);return new Dm(e)};
VK=function(e,N){e.J.objectStoreNames.contains(N)&&e.J.deleteObjectStore(N)};
g.uC=function(e,N,y){return g.fl(e,[N],{mode:"readwrite",Lx:!0},function(w){return g.tg(w.objectStore(N),y)})};
g.fl=function(e,N,y,w){var E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){switch(X.J){case 1:var d={mode:"readonly",Lx:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof y==="string"?d.mode=y:Object.assign(d,y);E=d;e.transactionCount++;A=E.Lx?3:1;T=0;case 2:if(p){X.u9(4);break}T++;C=Math.round((0,g.iC)());g.c5(X,5);r=e.J.transaction(N,E.mode);d=new q7(r);d=c4M(d,w);return g.D(X,d,7);case 7:return Y=X.N,M=Math.round((0,g.iC)()),kY0(e,C,M,T,void 0,N.join(),E),X.return(Y);case 5:l=g.XH(X);F=Math.round((0,g.iC)());
S=BV(l,e.J.name,N.join(),e.J.version);if((k=S instanceof g.bC&&!S.J)||T>=A)kY0(e,C,F,T,S,N.join(),E),p=S;X.u9(2);break;case 4:return X.return(Promise.reject(p))}})};
kY0=function(e,N,y,w,E,A,T){N=y-N;E?(E instanceof g.bC&&(E.type==="QUOTA_EXCEEDED"||E.type==="QUOTA_MAYBE_EXCEEDED")&&F6("QUOTA_EXCEEDED",{dbName:ov(e.J.name),objectStoreNames:A,transactionCount:e.transactionCount,transactionMode:T.mode}),E instanceof g.bC&&E.type==="UNKNOWN_ABORT"&&(y-=e.K,y<0&&y>=2147483648&&(y=0),F6("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:N,transactionCount:e.transactionCount,dbDuration:y}),e.N=!0),BeF(e,!1,w,A,N,T.tag),lC(E)):BeF(e,!0,w,A,N,
T.tag)};
BeF=function(e,N,y,w,E,A){F6("TRANSACTION_ENDED",{objectStoreNames:w,connectionHasUnknownAbortedTransaction:e.N,duration:E,isSuccessful:N,tryCount:y,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})};
Dm=function(e){this.J=e};
g.Zm=function(e,N,y){e.J.createIndex(N,y,{unique:!1})};
XD3=function(e,N){return g.x$(e,{query:N},function(y){return y.delete().then(function(){return g.j1(y)})}).then(function(){})};
Pn1=function(e,N,y){var w=[];return g.x$(e,{query:N},function(E){if(!(y!==void 0&&w.length>=y))return w.push(E.getValue()),g.j1(E)}).then(function(){return w})};
I65=function(e){return"getAllKeys"in IDBObjectStore.prototype?vV(e.J.getAllKeys(void 0,void 0)):dAH(e)};
dAH=function(e){var N=[];return g.v1F(e,{query:void 0},function(y){N.push(y.cursor.primaryKey);return g.biM(y)}).then(function(){return N})};
g.tg=function(e,N,y){return vV(e.J.put(N,y))};
g.x$=function(e,N,y){e=e.J.openCursor(N.query,N.direction);return nl(e).then(function(w){return zv(w,y)})};
g.v1F=function(e,N,y){var w=N.query;N=N.direction;e="openKeyCursor"in IDBObjectStore.prototype?e.J.openKeyCursor(w,N):e.J.openCursor(w,N);return o10(e).then(function(E){return zv(E,y)})};
q7=function(e){var N=this;this.J=e;this.K=new Map;this.N=!1;this.done=new Promise(function(y,w){N.J.addEventListener("complete",function(){y()});
N.J.addEventListener("error",function(E){E.currentTarget===E.target&&w(N.J.error)});
N.J.addEventListener("abort",function(){var E=N.J.error;if(E)w(E);else if(!N.N){E=g.bC;for(var A=N.J.objectStoreNames,T=[],p=0;p<A.length;p++){var C=A.item(p);if(C===null)throw Error("Invariant: item in DOMStringList is null");T.push(C)}E=new E("UNKNOWN_ABORT",{objectStoreNames:T.join(),dbName:N.J.db.name,mode:N.J.mode});w(E)}})})};
c4M=function(e,N){var y=new Promise(function(w,E){try{N(e).then(function(A){w(A)}).catch(E)}catch(A){E(A),e.abort()}});
return Promise.all([y,e.done]).then(function(w){return g.c(w).next().value})};
zT0=function(e){this.J=e};
iiE=function(e,N,y){var w=[];return g.QK(e,{query:N},function(E){if(!(y!==void 0&&w.length>=y))return w.push(E.getValue()),g.j1(E)}).then(function(){return w})};
g.QK=function(e,N,y){e=e.J.openCursor(N.query===void 0?null:N.query,N.direction===void 0?"next":N.direction);return nl(e).then(function(w){return zv(w,y)})};
m1=function(e,N){this.request=e;this.cursor=N};
nl=function(e){return vV(e).then(function(N){return N?new m1(e,N):null})};
g.j1=function(e){e.cursor.continue(void 0);return nl(e.request)};
DA1=function(e,N,y){return new Promise(function(w,E){function A(){l||(l=new hTF(T.result,{closed:M}));return l}
var T=N!==void 0?self.indexedDB.open(e,N):self.indexedDB.open(e);var p=y.blocked,C=y.blocking,r=y.cT1,Y=y.upgrade,M=y.closed,l;T.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(T.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");F.dataLoss&&F.dataLoss!=="none"&&F6("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:ov(e)});var S=A(),k=new q7(T.transaction);
Y&&Y(S,function(X){return F.oldVersion<X&&F.newVersion>=X},k);
k.done.catch(function(X){E(X)})}catch(X){E(X)}});
T.addEventListener("success",function(){var F=T.result;C&&F.addEventListener("versionchange",function(){C(A())});
F.addEventListener("close",function(){F6("IDB_UNEXPECTEDLY_CLOSED",{dbName:ov(e),dbVersion:F.version});r&&r()});
w(A())});
T.addEventListener("error",function(){E(T.error)});
p&&T.addEventListener("blocked",function(){p()})})};
g11=function(e,N,y){y=y===void 0?{}:y;return DA1(e,N,y)};
HV=function(e,N){N=N===void 0?{}:N;var y,w,E,A;return g.f(function(T){if(T.J==1)return g.c5(T,2),y=self.indexedDB.deleteDatabase(e),w=N,(E=w.blocked)&&y.addEventListener("blocked",function(){E()}),g.D(T,F73(y),4);
if(T.J!=2)return g.B5(T,0);A=g.XH(T);throw BV(A,e,"",-1);})};
Kl=function(e,N){this.name=e;this.options=N;this.K=!0;this.L=this.j=0};
V6_=function(e,N){return new g.bC("INCOMPATIBLE_DB_VERSION",{dbName:e.name,oldVersion:e.options.version,newVersion:N})};
g.WV=function(e,N){if(!N)throw g.X6("openWithToken",ov(e.name));return e.open()};
f6H=function(e,N){var y;return g.f(function(w){if(w.J==1)return g.D(w,g.WV(Om,N),2);y=w.N;return w.return(g.fl(y,["databases"],{Lx:!0,mode:"readwrite"},function(E){var A=E.objectStore("databases");return A.get(e.actualName).then(function(T){if(T?e.actualName!==T.actualName||e.publicName!==T.publicName||e.userIdentifier!==T.userIdentifier:1)return g.tg(A,e).then(function(){})})}))})};
Rv=function(e,N){var y;return g.f(function(w){if(w.J==1)return e?g.D(w,g.WV(Om,N),2):w.return();y=w.N;return w.return(y.delete("databases",e))})};
t6P=function(e,N){var y,w;return g.f(function(E){return E.J==1?(y=[],g.D(E,g.WV(Om,N),2)):E.J!=3?(w=E.N,g.D(E,g.fl(w,["databases"],{Lx:!0,mode:"readonly"},function(A){y.length=0;return g.x$(A.objectStore("databases"),{},function(T){e(T.getValue())&&y.push(T.getValue());return g.j1(T)})}),3)):E.return(y)})};
uM5=function(e,N){return t6P(function(y){return y.publicName===e&&y.userIdentifier!==void 0},N)};
q2P=function(){var e,N,y,w;return g.f(function(E){switch(E.J){case 1:e=Jg();if((N=e)==null?0:N.hasSucceededOnce)return E.return(!0);if(Gv&&U8()&&!Lp()||g.Um)return E.return(!1);try{if(y=self,!(y.indexedDB&&y.IDBIndex&&y.IDBKeyRange&&y.IDBObjectStore))return E.return(!1)}catch(A){return E.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return E.return(!1);g.c5(E,2);w={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.D(E,f6H(w,Ll),4);case 4:return g.D(E,Rv("yt-idb-test-do-not-use",Ll),5);case 5:return E.return(!0);case 2:return g.XH(E),E.return(!1)}})};
ZiE=function(){if(sm!==void 0)return sm;M7=!0;return sm=q2P().then(function(e){M7=!1;var N;if((N=Tv())!=null&&N.J){var y;N={hasSucceededOnce:((y=Jg())==null?void 0:y.hasSucceededOnce)||e};var w;(w=Tv())==null||w.set("LAST_RESULT_ENTRY_KEY",N,2592E3,!0)}return e})};
av=function(){return g.nM("ytglobal.idbToken_")||void 0};
g.e7=function(){var e=av();return e?Promise.resolve(e):ZiE().then(function(N){(N=N?Ll:void 0)&&g.jM("ytglobal.idbToken_",N);return N})};
xAn=function(e){if(!g.LO())throw e=new g.bC("AUTH_INVALID",{dbName:e}),lC(e),e;var N=g.UF();return{actualName:e+":"+N,publicName:e,userIdentifier:N}};
jrJ=function(e,N,y,w){var E,A,T,p,C,r;return g.f(function(Y){switch(Y.J){case 1:return A=(E=Error().stack)!=null?E:"",g.D(Y,g.e7(),2);case 2:T=Y.N;if(!T)throw p=g.X6("openDbImpl",e,N),g.Xj("ytidb_async_stack_killswitch")||(p.stack=p.stack+"\n"+A.substring(A.indexOf("\n")+1)),lC(p),p;S1(e);C=y?{actualName:e,publicName:e,userIdentifier:void 0}:xAn(e);g.c5(Y,3);return g.D(Y,f6H(C,T),5);case 5:return g.D(Y,g11(C.actualName,N,w),6);case 6:return Y.return(Y.N);case 3:return r=g.XH(Y),g.c5(Y,7),g.D(Y,Rv(C.actualName,
T),9);case 9:g.B5(Y,8);break;case 7:g.XH(Y);case 8:throw r;}})};
n15=function(e,N,y){y=y===void 0?{}:y;return jrJ(e,N,!1,y)};
QrH=function(e,N,y){y=y===void 0?{}:y;return jrJ(e,N,!0,y)};
mAF=function(e,N){N=N===void 0?{}:N;var y,w;return g.f(function(E){if(E.J==1)return g.D(E,g.e7(),2);if(E.J!=3){y=E.N;if(!y)return E.return();S1(e);w=xAn(e);return g.D(E,HV(w.actualName,N),3)}return g.D(E,Rv(w.actualName,y),0)})};
Hi9=function(e,N,y){e=e.map(function(w){return g.f(function(E){return E.J==1?g.D(E,HV(w.actualName,N),2):g.D(E,Rv(w.actualName,y),0)})});
return Promise.all(e).then(function(){})};
K73=function(e){var N=N===void 0?{}:N;var y,w;return g.f(function(E){if(E.J==1)return g.D(E,g.e7(),2);if(E.J!=3){y=E.N;if(!y)return E.return();S1(e);return g.D(E,uM5(e,y),3)}w=E.N;return g.D(E,Hi9(w,N,y),0)})};
W7M=function(e,N){N=N===void 0?{}:N;var y;return g.f(function(w){if(w.J==1)return g.D(w,g.e7(),2);if(w.J!=3){y=w.N;if(!y)return w.return();S1(e);return g.D(w,HV(e,N),3)}return g.D(w,Rv(e,y),0)})};
N9=function(e,N){Kl.call(this,e,N);this.options=N;S1(e)};
OiE=function(e,N){var y;return function(){y||(y=new N9(e,N));return y}};
g.yJ=function(e,N){return OiE(e,N)};
wo=function(e){return g.WV(RTH(),e)};
GY1=function(e,N,y,w){var E,A,T;return g.f(function(p){switch(p.J){case 1:return E={config:e,hashData:N,timestamp:w!==void 0?w:(0,g.iC)()},g.D(p,wo(y),2);case 2:return A=p.N,g.D(p,A.clear("hotConfigStore"),3);case 3:return g.D(p,g.uC(A,"hotConfigStore",E),4);case 4:return T=p.N,p.return(T)}})};
UAH=function(e,N,y,w,E){var A,T,p;return g.f(function(C){switch(C.J){case 1:return A={config:e,hashData:N,configData:y,timestamp:E!==void 0?E:(0,g.iC)()},g.D(C,wo(w),2);case 2:return T=C.N,g.D(C,T.clear("coldConfigStore"),3);case 3:return g.D(C,g.uC(T,"coldConfigStore",A),4);case 4:return p=C.N,C.return(p)}})};
L7n=function(e){var N,y;return g.f(function(w){return w.J==1?g.D(w,wo(e),2):w.J!=3?(N=w.N,y=void 0,g.D(w,g.fl(N,["coldConfigStore"],{mode:"readwrite",Lx:!0},function(E){return g.QK(E.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){y=A.getValue()})}),3)):w.return(y)})};
srJ=function(e){var N,y;return g.f(function(w){return w.J==1?g.D(w,wo(e),2):w.J!=3?(N=w.N,y=void 0,g.D(w,g.fl(N,["hotConfigStore"],{mode:"readwrite",Lx:!0},function(E){return g.QK(E.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){y=A.getValue()})}),3)):w.return(y)})};
a69=function(){return g.f(function(e){return g.D(e,K73("ytGcfConfig"),0)})};
EE=function(){g.x.call(this);this.N=[];this.J=[];var e=g.nM("yt.gcf.config.hotUpdateCallbacks");e?(this.N=[].concat(g.B(e)),this.J=e):(this.J=[],g.jM("yt.gcf.config.hotUpdateCallbacks",this.J))};
ro=function(){var e=this;this.L=!1;this.K=this.j=0;this.Z=new EE;this.lk={bIs:function(){e.L=!0},
tIh:function(){return e.J},
O2h:function(N){Ax(e,N)},
K2:function(N){e.K2(N)},
ty1:function(N){Ti(e,N)},
l_:function(){return e.coldHashData},
Sk:function(){return e.hotHashData},
dxg:function(){return e.N},
ubW:function(){return Jx()},
imP:function(){return p6()},
xxB:function(){return g.nM("yt.gcf.config.coldHashData")},
ypZ:function(){return g.nM("yt.gcf.config.hotHashData")},
T1k:function(){e89(e)},
sNk:function(){e.K2(void 0);C6(e);delete ro.instance},
b2W:function(N){e.K=N},
Om1:function(){return e.K}}};
NxE=function(){if(!ro.instance){var e=new ro;ro.instance=e}return ro.instance};
Ern=function(e){var N;g.f(function(y){if(y.J==1)return g.Xj("start_client_gcf")||g.Xj("delete_gcf_config_db")?g.Xj("start_client_gcf")?g.D(y,g.e7(),3):y.u9(2):y.return();y.J!=2&&((N=y.N)&&g.LO()&&!g.Xj("delete_gcf_config_db")?(e.L=!0,e89(e)):(yTJ(e),wz_(e)));return g.Xj("delete_gcf_config_db")?g.D(y,a69(),0):y.u9(0)})};
$p=function(){var e;return(e=p6())!=null?e:g.Lb("RAW_HOT_CONFIG_GROUP")};
AT5=function(e){var N,y,w,E,A,T;return g.f(function(p){switch(p.J){case 1:if(e.N)return p.return(p6());if(!e.L)return N=g.X6("getHotConfig IDB not initialized"),yN(N),p.return(Promise.reject(N));y=av();w=g.Lb("TIME_CREATED_MS");if(!y){E=g.X6("getHotConfig token error");yN(E);p.u9(2);break}return g.D(p,srJ(y),3);case 3:if((A=p.N)&&A.timestamp>w)return Ax(e,A.config),e.K2(A.hashData),p.return(p6());case 2:wz_(e);if(!(y&&e.N&&e.hotHashData)){p.u9(4);break}return g.D(p,GY1(e.N,e.hotHashData,y,w),4);case 4:return e.N?
p.return(p6()):(T=new g.Gh("Config not available in ytConfig"),yN(T),p.return(Promise.reject(T)))}})};
JTE=function(e){var N,y,w,E,A,T;return g.f(function(p){switch(p.J){case 1:if(e.J)return p.return(Jx());if(!e.L)return N=g.X6("getColdConfig IDB not initialized"),yN(N),p.return(Promise.reject(N));y=av();w=g.Lb("TIME_CREATED_MS");if(!y){E=g.X6("getColdConfig");yN(E);p.u9(2);break}return g.D(p,L7n(y),3);case 3:if((A=p.N)&&A.timestamp>w)return Ti(e,A.config),TxM(e,A.configData),C6(e,A.hashData),p.return(Jx());case 2:yTJ(e);if(!(y&&e.J&&e.coldHashData&&e.configData)){p.u9(4);break}return g.D(p,UAH(e.J,
e.coldHashData,e.configData,y,w),4);case 4:return e.J?p.return(Jx()):(T=new g.Gh("Config not available in ytConfig"),yN(T),p.return(Promise.reject(T)))}})};
e89=function(e){if(!e.N||!e.J){if(!av()){var N=g.X6("scheduleGetConfigs");yN(N)}e.j||(e.j=g.Kk.kB(function(){return g.f(function(y){switch(y.J){case 1:return g.c5(y,2),g.D(y,AT5(e),4);case 4:g.B5(y,3);break;case 2:g.XH(y);case 3:return g.c5(y,5),g.D(y,JTE(e),7);case 7:g.B5(y,6);break;case 5:g.XH(y);case 6:e.j&&(e.j=0),g.hn(y)}})},100))}};
pzH=function(e,N,y){var w,E,A;return g.f(function(T){switch(T.J){case 1:if(!g.Xj("start_client_gcf")){T.u9(0);break}y&&Ax(e,y);e.K2(N);w=av();if(!w){T.u9(3);break}if(y){T.u9(4);break}return g.D(T,srJ(w),5);case 5:E=T.N,y=(A=E)==null?void 0:A.config;case 4:return g.D(T,GY1(y,N,w),3);case 3:if(y)for(var p=y,C=g.c(e.Z.J),r=C.next();!r.done;r=C.next())r=r.value,r(p);g.hn(T)}})};
CgM=function(e,N,y){var w,E,A,T;return g.f(function(p){if(p.J==1){if(!g.Xj("start_client_gcf"))return p.u9(0);C6(e,N);return(w=av())?y?p.u9(4):g.D(p,L7n(w),5):p.u9(0)}p.J!=4&&(E=p.N,y=(A=E)==null?void 0:A.config);if(!y)return p.u9(0);T=y.configData;return g.D(p,UAH(y,N,T,w),0)})};
rT0=function(){var e=NxE(),N=(0,g.iC)()-e.K;if(!(e.K!==0&&N<g.PL("send_config_hash_timer"))){N=g.nM("yt.gcf.config.coldConfigData");var y=g.nM("yt.gcf.config.hotHashData"),w=g.nM("yt.gcf.config.coldHashData");N&&y&&w&&(e.K=(0,g.iC)());return{coldConfigData:N,hotHashData:y,coldHashData:w}}};
yTJ=function(e){Ti(e,g.Lb("RAW_COLD_CONFIG_GROUP"));C6(e,g.Lb("SERIALIZED_COLD_HASH_DATA"));var N;TxM(e,(N=e.J)==null?void 0:N.configData)};
wz_=function(e){Ax(e,g.Lb("RAW_HOT_CONFIG_GROUP"));e.K2(g.Lb("SERIALIZED_HOT_HASH_DATA"))};
Ax=function(e,N){e.N=N;g.jM("yt.gcf.config.hotConfigGroup",e.N||null)};
Ti=function(e,N){e.J=N;g.jM("yt.gcf.config.coldConfigGroup",e.J||null)};
C6=function(e,N){e.coldHashData=N;g.jM("yt.gcf.config.coldHashData",e.coldHashData||null)};
TxM=function(e,N){e.configData=N;g.jM("yt.gcf.config.coldConfigData",e.configData||null)};
p6=function(){return g.nM("yt.gcf.config.hotConfigGroup")};
Jx=function(){return g.nM("yt.gcf.config.coldConfigGroup")};
$yF=function(){return"INNERTUBE_API_KEY"in Gz&&"INNERTUBE_API_VERSION"in Gz};
g.Yp=function(){return{innertubeApiKey:g.Lb("INNERTUBE_API_KEY"),innertubeApiVersion:g.Lb("INNERTUBE_API_VERSION"),LM:g.Lb("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),pp:g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),EC:g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.Lb("INNERTUBE_CONTEXT_CLIENT_VERSION"),Ji:g.Lb("INNERTUBE_CONTEXT_HL"),Ff:g.Lb("INNERTUBE_CONTEXT_GL"),Bj:g.Lb("INNERTUBE_HOST_OVERRIDE")||"",mp:!!g.Lb("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),rWP:!!g.Lb("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.Lb("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.M9=function(e){var N={client:{hl:e.Ji,gl:e.Ff,clientName:e.pp,clientVersion:e.innertubeContextClientVersion,configInfo:e.LM}};navigator.userAgent&&(N.client.userAgent=String(navigator.userAgent));var y=g.xJ.devicePixelRatio;y&&y!=1&&(N.client.screenDensityFloat=String(y));y=d2();y!==""&&(N.client.experimentsToken=y);y=Iy();y.length>0&&(N.request={internalExperimentFlags:y});YaM(e,void 0,N);MCs(void 0,N);lO5(void 0,N);FyH(e,void 0,N);Sa5(void 0,N);g.Xj("start_client_gcf")&&or_(void 0,N);g.Lb("DELEGATED_SESSION_ID")&&
!g.Xj("pageid_as_header_web")&&(N.user={onBehalfOfUser:g.Lb("DELEGATED_SESSION_ID")});!g.Xj("fill_delegate_context_in_gel_killswitch")&&(e=g.Lb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(N.user=Object.assign({},N.user,{serializedDelegationContext:e}));e=g.Lb("INNERTUBE_CONTEXT");var w;if(g.Xj("enable_persistent_device_token")&&(e==null?0:(w=e.client)==null?0:w.rolloutToken)){var E;N.client.rolloutToken=e==null?void 0:(E=e.client)==null?void 0:E.rolloutToken}w=Object;E=w.assign;e=N.client;
y={};for(var A=g.c(Object.entries(AE(g.Lb("DEVICE","")))),T=A.next();!T.done;T=A.next()){var p=g.c(T.value);T=p.next().value;p=p.next().value;T==="cbrand"?y.deviceMake=p:T==="cmodel"?y.deviceModel=p:T==="cbr"?y.browserName=p:T==="cbrver"?y.browserVersion=p:T==="cos"?y.osName=p:T==="cosver"?y.osVersion=p:T==="cplatform"&&(y.platform=p)}N.client=E.call(w,e,y);return N};
YaM=function(e,N,y){e=e.pp;if(e==="WEB"||e==="MWEB"||e===1||e===2)if(N){y=Tx(N,gx,96)||new gx;var w=ju();w=Object.keys(bb5).indexOf(w);w=w===-1?null:w;w!==null&&bV(y,3,w);JQ(N,gx,96,y)}else y&&(y.client.mainAppWebInfo=(w=y.client.mainAppWebInfo)!=null?w:{},y.client.mainAppWebInfo.webDisplayMode=ju())};
MCs=function(e,N){var y=g.nM("yt.embedded_player.embed_url");y&&(e?(N=Tx(e,qy,7)||new qy,Sn(N,4,y),JQ(e,qy,7,N)):N&&(N.thirdParty={embedUrl:y}))};
lO5=function(e,N){var y;if(g.Xj("web_log_memory_total_kbytes")&&((y=g.xJ.navigator)==null?0:y.deviceMemory)){var w;y=(w=g.xJ.navigator)==null?void 0:w.deviceMemory;e?j4(e,95,bc(y*1E6)):N&&(N.client.memoryTotalKbytes=""+y*1E6)}};
FyH=function(e,N,y){if(e.appInstallData)if(N){var w;y=(w=Tx(N,DO,62))!=null?w:new DO;Sn(y,6,e.appInstallData);JQ(N,DO,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},y.client.configInfo.appInstallData=e.appInstallData)};
Sa5=function(e,N){var y=NeJ();y&&(e?bV(e,61,h85[y]):N&&(N.client.connectionType=y));g.Xj("web_log_effective_connection_type")&&(y=wD3())&&(e?bV(e,94,cTJ[y]):N&&(N.client.effectiveConnectionType=y))};
kzn=function(e,N,y){y=y===void 0?{}:y;var w={};g.Lb("EOM_VISITOR_DATA")?w={"X-Goog-EOM-Visitor-Id":g.Lb("EOM_VISITOR_DATA")}:w={"X-Goog-Visitor-Id":y.visitorData||g.Lb("VISITOR_DATA","")};if(N&&N.includes("www.youtube-nocookie.com"))return w;N=y.DG||g.Lb("AUTHORIZATION");N||(e?N="Bearer "+g.nM("gapi.auth.getToken")().access_token:(e=G1F().PQ(lt),g.Xj("pageid_as_header_web")||delete e["X-Goog-PageId"],w=Object.assign({},w,e)));N&&(w.Authorization=N);return w};
or_=function(e,N){var y=rT0();if(y){var w=y.coldConfigData,E=y.coldHashData;y=y.hotHashData;if(e){var A;N=(A=Tx(e,DO,62))!=null?A:new DO;w=Sn(N,1,w);Sn(w,3,E).K2(y);JQ(e,DO,62,N)}else N&&(N.client.configInfo=N.client.configInfo||{},w&&(N.client.configInfo.coldConfigData=w),E&&(N.client.configInfo.coldHashData=E),y&&(N.client.configInfo.hotHashData=y))}};
FG=function(e,N){this.version=e;this.args=N};
S7=function(e,N){this.topic=e;this.J=N};
bt=function(e,N){var y=oe();y&&y.publish.call(y,e.toString(),e,N)};
PgE=function(e){var N=BxM,y=oe();if(!y)return 0;var w=y.subscribe(N.toString(),function(E,A){var T=g.nM("ytPubsub2Pubsub2SkipSubKey");T&&T==w||(T=function(){if(hx[w])try{if(A&&N instanceof S7&&N!=E)try{var p=N.J,C=A;if(!C.args||!C.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!p.Hy){var r=new p;p.Hy=r.version}var Y=p.Hy}catch(M){}if(!Y||C.version!=Y)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{A=Reflect.construct(p,
g.eE(C.args))}catch(M){throw M.message="yt.pubsub2.Data.deserialize(): "+M.message,M;}}catch(M){throw M.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+N.toString()+": "+M.message,M;}e.call(window,A)}catch(M){g.eH(M)}},XzH[N.toString()]?g.w0()?g.Kk.kB(T):g.b4(T,0):T())});
hx[w]=!0;Pi[N.toString()]||(Pi[N.toString()]=[]);Pi[N.toString()].push(w);return w};
vrF=function(){var e=dy3,N=PgE(function(y){e.apply(void 0,arguments);IO9(N)});
return N};
IO9=function(e){var N=oe();N&&(typeof e==="number"&&(e=[e]),g.$R(e,function(y){N.unsubscribeByKey(y);delete hx[y]}))};
oe=function(){return g.nM("ytPubsub2Pubsub2Instance")};
Ie=function(e,N,y){y=y===void 0?{sampleRate:.1}:y;Math.random()<Math.min(.02,y.sampleRate/100)&&bt("meta_logging_csi_event",{timerName:e,rf9:N})};
z8J=function(){vi||(vi=IG(g.Lb("WORKER_SERIALIZATION_URL")));return vi||void 0};
it=function(){var e=z8J();zi||e===void 0||(zi=new Worker(dG(e),void 0));return zi};
ibM=function(){return typeof Worker==="function"&&z8J()?!0:!1};
grP=function(){if(ibM()&&!Dx){var e=function(y){y=y.data;if(y.op==="gzippedGelBatch"){var w=go.get(y.key);w&&(Dyn(y.gzippedBatch,w.latencyPayload,w.url,w.options,w.sendFn),go.delete(y.key))}},N=it();
N&&(N.addEventListener("message",e),N.onerror=function(){go.clear()},Dx=!0)}};
tx=function(e,N,y,w,E){E=E===void 0?!1:E;var A={startTime:(0,g.iC)(),ticks:{},infos:{}};if(VJ)try{var T=VCJ(N);if(T!=null&&(T>fOJ||T<tCH))w(e,y);else{if(g.Xj("gzip_gel_with_worker")&&(g.Xj("initial_gzip_use_main_thread")&&!ug5||!g.Xj("initial_gzip_use_main_thread"))){Dx||grP();var p=it();if(p&&!E){go.set(f6,{latencyPayload:A,url:e,options:y,sendFn:w});p.postMessage({op:"gelBatchToGzip",serializedBatch:N,key:f6});f6++;return}}var C=B6H(qaM(N));Dyn(C,A,e,y,w)}}catch(r){yN(r),w(e,y)}else w(e,y)};
Dyn=function(e,N,y,w,E){ug5=!1;var A=(0,g.iC)();N.ticks.gelc=A;ut++;g.Xj("disable_compression_due_to_performance_degredation")&&A-N.startTime>=ZbH&&(q9++,g.Xj("abandon_compression_after_N_slow_zips")?ut===g.PL("compression_disable_point")&&q9>xyP&&(VJ=!1):VJ=!1);jG5(N);w.headers||(w.headers={});w.headers["Content-Encoding"]="gzip";w.postBody=e;w.postParams=void 0;E(y,w)};
nrP=function(e){var N=N===void 0?!1:N;var y=y===void 0?!1:y;var w=(0,g.iC)(),E={startTime:w,ticks:{},infos:{}},A=N?g.nM("yt.logging.gzipForFetch",!1):!0;if(VJ&&A){if(!e.body)return e;try{var T=y?e.body:typeof e.body==="string"?e.body:JSON.stringify(e.body);A=T;if(!y&&typeof T==="string"){var p=VCJ(T);if(p!=null&&(p>fOJ||p<tCH))return e;y=N?{level:1}:void 0;A=B6H(qaM(T),y);var C=(0,g.iC)();E.ticks.gelc=C;if(N){ut++;if((g.Xj("disable_compression_due_to_performance_degredation")||g.Xj("disable_compression_due_to_performance_degradation_lr"))&&
C-w>=ZbH)if(q9++,g.Xj("abandon_compression_after_N_slow_zips")||g.Xj("abandon_compression_after_N_slow_zips_lr")){N=q9/ut;var r=xyP/g.PL("compression_disable_point");ut>0&&ut%g.PL("compression_disable_point")===0&&N>=r&&(VJ=!1)}else VJ=!1;jG5(E)}}e.headers=Object.assign({},{"Content-Encoding":"gzip"},e.headers||{});e.body=A;return e}catch(Y){return yN(Y),e}}else return e};
VCJ=function(e){try{return(new Blob(e.split(""))).size}catch(N){return yN(N),null}};
jG5=function(e){g.Xj("gel_compression_csi_killswitch")||!g.Xj("log_gel_compression_latency")&&!g.Xj("log_gel_compression_latency_lr")||Ie("gel_compression",e,{sampleRate:.1})};
xp=function(e){var N=this;this.V7=this.J=!1;this.potentialEsfErrorCounter=this.N=0;this.handleError=function(){};
this.nW=function(){};
this.now=Date.now;this.KV=!1;this.lk={j7B:function(Y){N.fq=Y},
H2P:function(){N.Ml()},
Ha:function(){N.dU()},
kf:function(Y){return g.f(function(M){return g.D(M,N.kf(Y),0)})},
Vx:function(Y,M){return N.Vx(Y,M)},
Is:function(){N.Is()}};
var y;this.oP=(y=e.oP)!=null?y:100;var w;this.UK=(w=e.UK)!=null?w:1;var E;this.HD=(E=e.HD)!=null?E:2592E6;var A;this.SA=(A=e.SA)!=null?A:12E4;var T;this.XC=(T=e.XC)!=null?T:5E3;var p;this.fq=(p=e.fq)!=null?p:void 0;this.Rz=!!e.Rz;var C;this.kV=(C=e.kV)!=null?C:.1;var r;this.CP=(r=e.CP)!=null?r:10;e.handleError&&(this.handleError=e.handleError);e.nW&&(this.nW=e.nW);e.KV&&(this.KV=e.KV);e.V7&&(this.V7=e.V7);this.gP=e.gP;this.hx=e.hx;this.kp=e.kp;this.nN=e.nN;this.sendFn=e.sendFn;this.f4=e.f4;this.fF=
e.fF;Zx(this)&&(!this.gP||this.gP("networkless_logging"))&&QG5(this)};
QG5=function(e){Zx(e)&&!e.KV&&(e.J=!0,e.Rz&&Math.random()<=e.kV&&e.kp.mU(e.fq),e.Is(),e.nN.E4()&&e.Ml(),e.nN.listen(e.f4,e.Ml.bind(e)),e.nN.listen(e.fF,e.dU.bind(e)))};
Ky_=function(e,N){if(!Zx(e))throw Error("IndexedDB is not supported: updateRequestHandlers");var y=N.options.onError?N.options.onError:function(){};
N.options.onError=function(E,A){var T,p,C,r;return g.f(function(Y){switch(Y.J){case 1:T=my5(A);(p=HbF(A))&&e.gP&&e.gP("web_enable_error_204")&&e.handleError(Error("Request failed due to compression"),N.url,A);if(!(e.gP&&e.gP("nwl_consider_error_code")&&T||e.gP&&!e.gP("nwl_consider_error_code")&&e.potentialEsfErrorCounter<=e.CP)){Y.u9(2);break}if(!e.nN.K0){Y.u9(3);break}return g.D(Y,e.nN.K0(),3);case 3:if(e.nN.E4()){Y.u9(2);break}y(E,A);if(!e.gP||!e.gP("nwl_consider_error_code")||((C=N)==null?void 0:
C.id)===void 0){Y.u9(6);break}return g.D(Y,e.kp.VK(N.id,e.fq,!1),6);case 6:return Y.return();case 2:if(e.gP&&e.gP("nwl_consider_error_code")&&!T&&e.potentialEsfErrorCounter>e.CP)return Y.return();e.potentialEsfErrorCounter++;if(((r=N)==null?void 0:r.id)===void 0){Y.u9(8);break}return N.sendCount<e.UK?g.D(Y,e.kp.VK(N.id,e.fq,!0,p?!1:void 0),12):g.D(Y,e.kp.jU(N.id,e.fq),8);case 12:e.hx.kB(function(){e.nN.E4()&&e.Ml()},e.XC);
case 8:y(E,A),g.hn(Y)}})};
var w=N.options.onSuccess?N.options.onSuccess:function(){};
N.options.onSuccess=function(E,A){var T;return g.f(function(p){if(p.J==1)return((T=N)==null?void 0:T.id)===void 0?p.u9(2):g.D(p,e.kp.jU(N.id,e.fq),2);e.nN.DP&&e.gP&&e.gP("vss_network_hint")&&e.nN.DP(!0);w(E,A);g.hn(p)})};
return N};
j7=function(e,N){e.BB&&!e.nN.E4()?e.BB(N):e.handleError(N)};
Zx=function(e){return!!e.fq||e.V7};
my5=function(e){var N;return(e=e==null?void 0:(N=e.error)==null?void 0:N.code)&&e>=400&&e<=599?!1:!0};
HbF=function(e){var N;e=e==null?void 0:(N=e.error)==null?void 0:N.code;return!(e!==400&&e!==415)};
Wy0=function(){if(n6)return n6();var e={};n6=g.yJ("LogsDatabaseV2",{Ed:(e.LogsRequestsStore={Bs:2},e),shared:!1,upgrade:function(N,y,w){y(2)&&g.g0(N,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});y(3);y(5)&&(w=w.objectStore("LogsRequestsStore"),w.J.indexNames.contains("newRequest")&&w.J.deleteIndex("newRequest"),g.Zm(w,"newRequestV2",["status","interface","timestamp"]));y(7)&&VK(N,"sapisid");y(9)&&VK(N,"SWHealthLog")},
version:9});return n6()};
QJ=function(e){return g.WV(Wy0(),e)};
R8P=function(e,N){var y,w,E,A;return g.f(function(T){if(T.J==1)return y={startTime:(0,g.iC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.D(T,QJ(N),2);if(T.J!=3)return w=T.N,E=Object.assign({},e,{options:JSON.parse(JSON.stringify(e.options)),interface:g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.D(T,g.uC(w,"LogsRequestsStore",E),3);A=T.N;y.ticks.tc=(0,g.iC)();Ob1(y);return T.return(A)})};
GzH=function(e,N){var y,w,E,A,T,p,C,r;return g.f(function(Y){if(Y.J==1)return y={startTime:(0,g.iC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.D(Y,QJ(N),2);if(Y.J!=3)return w=Y.N,E=g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[e,E,0],T=[e,E,(0,g.iC)()],p=IDBKeyRange.bound(A,T),C="prev",g.Xj("use_fifo_for_networkless")&&(C="next"),r=void 0,g.D(Y,g.fl(w,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(M){return g.QK(M.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:p,direction:C},function(l){l.getValue()&&(r=l.getValue(),e==="NEW"&&(r.status="QUEUED",l.update(r)))})}),3);
y.ticks.tc=(0,g.iC)();Ob1(y);return Y.return(r)})};
Uys=function(e,N){var y;return g.f(function(w){if(w.J==1)return g.D(w,QJ(N),2);y=w.N;return w.return(g.fl(y,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(E){var A=E.objectStore("LogsRequestsStore");return A.get(e).then(function(T){if(T)return T.status="QUEUED",g.tg(A,T).then(function(){return T})})}))})};
Lyn=function(e,N,y,w){y=y===void 0?!0:y;var E;return g.f(function(A){if(A.J==1)return g.D(A,QJ(N),2);E=A.N;return A.return(g.fl(E,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(T){var p=T.objectStore("LogsRequestsStore");return p.get(e).then(function(C){return C?(C.status="NEW",y&&(C.sendCount+=1),w!==void 0&&(C.options.compress=w),g.tg(p,C).then(function(){return C})):g.d0.resolve(void 0)})}))})};
sGn=function(e,N){var y;return g.f(function(w){if(w.J==1)return g.D(w,QJ(N),2);y=w.N;return w.return(y.delete("LogsRequestsStore",e))})};
aO1=function(e){var N,y;return g.f(function(w){if(w.J==1)return g.D(w,QJ(e),2);N=w.N;y=(0,g.iC)()-2592E6;return g.D(w,g.fl(N,["LogsRequestsStore"],{mode:"readwrite",Lx:!0},function(E){return g.x$(E.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=y)return A.delete().then(function(){return g.j1(A)})})}),0)})};
eg1=function(){g.f(function(e){return g.D(e,K73("LogsDatabaseV2"),0)})};
Ob1=function(e){g.Xj("nwl_csi_killswitch")||Ie("networkless_performance",e,{sampleRate:1})};
yEJ=function(e){return g.WV(N2F(),e)};
wLM=function(e){var N,y;g.f(function(w){if(w.J==1)return g.D(w,yEJ(e),2);N=w.N;y=(0,g.iC)()-2592E6;return g.D(w,g.fl(N,["SWHealthLog"],{mode:"readwrite",Lx:!0},function(E){return g.x$(E.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=y)return A.delete().then(function(){return g.j1(A)})})}),0)})};
E3M=function(e){var N;return g.f(function(y){if(y.J==1)return g.D(y,yEJ(e),2);N=y.N;return g.D(y,N.clear("SWHealthLog"),0)})};
g.mK=function(e,N,y,w,E,A,T){E=E===void 0?"":E;A=A===void 0?!1:A;T=T===void 0?!1:T;if(e)if(y&&!g.O8())yN(new g.Gh("Legacy referrer-scrubbed ping detected")),e&&AE3(e,void 0,{scrubReferrer:!0});else if(E)vL(e,N,"POST",E,w);else if(g.Lb("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||w||T)vL(e,N,"GET","",w,void 0,A,T);else{b:{try{var p=new HoF({url:e});if(p.L?typeof p.K!=="string"||p.K.length===0?0:{version:3,cL:p.K,Sq:dN(p.J,"act=1","ri=1",KRP(p))}:p.Z&&{version:4,cL:dN(p.J,"dct=1","suid="+p.j,""),Sq:dN(p.J,
"act=1","ri=1","suid="+p.j)}){var C=D9(g.to(5,e));var r=!(!C||!C.endsWith("/aclk")||Hc(e,"ri")!=="1");break b}}catch(Y){}r=!1}r?T2_(e)?(N&&N(),y=!0):y=!1:y=!1;y||AE3(e,N)}};
T2_=function(e,N){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(e,N===void 0?"":N))return!0}catch(y){}return!1};
AE3=function(e,N,y){y=y===void 0?{}:y;var w=new Image,E=""+JEs++;Hi[E]=w;w.onload=w.onerror=function(){N&&Hi[E]&&N();delete Hi[E]};
y.scrubReferrer&&(w.referrerPolicy="no-referrer");w.src=e};
pL0=function(e){var N;return((N=document.featurePolicy)==null?0:N.allowedFeatures().includes("attribution-reporting"))?e+"&nis=6":e+"&nis=5"};
Wi=function(){K6||(K6=new Ag("yt.offline"));return K6};
C49=function(e){if(g.Xj("offline_error_handling")){var N=Wi().get("errors",!0)||{};N[e.message]={name:e.name,stack:e.stack};e.level&&(N[e.message].level=e.level);Wi().set("errors",N,2592E3,!0)}};
OE=function(){this.J=new Map;this.N=!1};
Re=function(){if(!OE.instance){var e=g.nM("yt.networkRequestMonitor.instance")||new OE;g.jM("yt.networkRequestMonitor.instance",e);OE.instance=e}return OE.instance};
Gi=function(){g.Ux.call(this);var e=this;this.N=!1;this.J=Bm0();this.J.listen("networkstatus-online",function(){if(e.N&&g.Xj("offline_error_handling")){var N=Wi().get("errors",!0);if(N){for(var y in N)if(N[y]){var w=new g.Gh(y,"sent via offline_errors");w.name=N[y].name;w.stack=N[y].stack;w.level=N[y].level;g.eH(w)}Wi().set("errors",{},2592E3,!0)}}})};
rEF=function(){if(!Gi.instance){var e=g.nM("yt.networkStatusManager.instance")||new Gi;g.jM("yt.networkStatusManager.instance",e);Gi.instance=e}return Gi.instance};
g.UE=function(e){e=e===void 0?{}:e;g.Ux.call(this);var N=this;this.J=this.j=0;this.N=rEF();var y=g.nM("yt.networkStatusManager.instance.listen").bind(this.N);y&&(e.rateLimit?(this.rateLimit=e.rateLimit,y("networkstatus-online",function(){$Rn(N,"publicytnetworkstatus-online")}),y("networkstatus-offline",function(){$Rn(N,"publicytnetworkstatus-offline")})):(y("networkstatus-online",function(){N.dispatchEvent("publicytnetworkstatus-online")}),y("networkstatus-offline",function(){N.dispatchEvent("publicytnetworkstatus-offline")})))};
$Rn=function(e,N){e.rateLimit?e.J?(g.Kk.Zx(e.j),e.j=g.Kk.kB(function(){e.K!==N&&(e.dispatchEvent(N),e.K=N,e.J=(0,g.iC)())},e.rateLimit-((0,g.iC)()-e.J))):(e.dispatchEvent(N),e.K=N,e.J=(0,g.iC)()):e.dispatchEvent(N)};
sE=function(){var e=xp.call;L6||(L6=new g.UE({RaP:!0,Tfq:!0}));e.call(xp,this,{kp:{mU:aO1,jU:sGn,HW:GzH,bxP:Uys,VK:Lyn,set:R8P},nN:L6,handleError:function(N,y,w){var E,A=w==null?void 0:(E=w.error)==null?void 0:E.code;if(A===400||A===415){var T;yN(new g.Gh(N.message,y,w==null?void 0:(T=w.error)==null?void 0:T.code),void 0,void 0,void 0,!0)}else g.eH(N)},
nW:yN,sendFn:Y8J,now:g.iC,BB:C49,hx:g.yK(),f4:"publicytnetworkstatus-online",fF:"publicytnetworkstatus-offline",Rz:!0,kV:.1,CP:g.PL("potential_esf_error_limit",10),gP:g.Xj,KV:!(g.LO()&&g.uB(document.location.toString())!=="www.youtube-nocookie.com")});this.K=new g.lq;g.Xj("networkless_immediately_drop_all_requests")&&eg1();W7M("LogsDatabaseV2")};
ae=function(){var e=g.nM("yt.networklessRequestController.instance");e||(e=new sE,g.jM("yt.networklessRequestController.instance",e),g.Xj("networkless_logging")&&g.e7().then(function(N){e.fq=N;QG5(e);e.K.resolve();e.Rz&&Math.random()<=e.kV&&e.fq&&wLM(e.fq);g.Xj("networkless_immediately_drop_sw_health_store")&&MH5(e)}));
return e};
MH5=function(e){var N;g.f(function(y){if(!e.fq)throw N=g.X6("clearSWHealthLogsDb"),N;return y.return(E3M(e.fq).catch(function(w){e.handleError(w)}))})};
Y8J=function(e,N,y,w){w=w===void 0?!1:w;N=g.Xj("web_fp_via_jspb")?Object.assign({},N):N;g.Xj("use_cfr_monitor")&&lJJ(e,N);if(g.Xj("use_request_time_ms_header"))N.headers&&r2(e)&&(N.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.iC)())));else{var E;if((E=N.postParams)==null?0:E.requestTimeMs)N.postParams.requestTimeMs=Math.round((0,g.iC)())}y&&Object.keys(N).length===0?g.mK(e):N.compress?N.postBody?(typeof N.postBody!=="string"&&(N.postBody=JSON.stringify(N.postBody)),tx(e,N.postBody,
N,g.zk,w)):tx(e,JSON.stringify(N.postParams),N,i4,w):g.zk(e,N)};
eS=function(e,N){g.Xj("use_event_time_ms_header")&&r2(e)&&(N.headers||(N.headers={}),N.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.iC)())));return N};
lJJ=function(e,N){var y=N.onError?N.onError:function(){};
N.onError=function(E,A){Re().requestComplete(e,!1);y(E,A)};
var w=N.onSuccess?N.onSuccess:function(){};
N.onSuccess=function(E,A){Re().requestComplete(e,!0);w(E,A)}};
g.N6=function(e){this.config_=null;e?this.config_=e:$yF()&&(this.config_=g.Yp())};
g.y7=function(e,N,y,w){function E(r){try{if((r===void 0?0:r)&&w.retry&&!w.networklessOptions.bypassNetworkless)A.method="POST",w.networklessOptions.writeThenSend?ae().writeThenSend(C,A):ae().sendAndWrite(C,A);else if(w.compress){var Y=!w.networklessOptions.writeThenSend;if(A.postBody){var M=A.postBody;typeof M!=="string"&&(M=JSON.stringify(A.postBody));tx(C,M,A,g.zk,Y)}else tx(C,JSON.stringify(A.postParams),A,i4,Y)}else g.Xj("web_all_payloads_via_jspb")?g.zk(C,A):i4(C,A)}catch(l){if(l.name==="InvalidAccessError")yN(Error("An extension is blocking network request."));
else throw l;}}
!g.Lb("VISITOR_DATA")&&N!=="visitor_id"&&Math.random()<.01&&yN(new g.Gh("Missing VISITOR_DATA when sending innertube request.",N,y,w));if(!e.isReady())throw e=new g.Gh("innertube xhrclient not ready",N,y,w),g.eH(e),e;var A={headers:w.headers||{},method:"POST",postParams:y,postBody:w.postBody,postBodyFormat:w.postBodyFormat||"JSON",onTimeout:function(){w.onTimeout()},
onFetchTimeout:w.onTimeout,onSuccess:function(r,Y){if(w.onSuccess)w.onSuccess(Y)},
onFetchSuccess:function(r){if(w.onSuccess)w.onSuccess(r)},
onError:function(r,Y){if(w.onError)w.onError(Y)},
onFetchError:function(r){if(w.onError)w.onError(r)},
timeout:w.timeout,withCredentials:!0,compress:w.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");y="";var T=e.config_.Bj;T&&(y=T);T=e.config_.mp||!1;var p=kzn(T,y,w);Object.assign(A.headers,p);A.headers.Authorization&&!y&&T&&(A.headers["x-origin"]=window.location.origin);var C=pp(""+y+("/youtubei/"+e.config_.innertubeApiVersion+"/"+N),{alt:"json"});g.nM("ytNetworklessLoggingInitializationOptions")&&FH9.isNwlInitialized?ZiE().then(function(r){E(r)}):E(!1)};
g.Jl=function(e,N,y){var w=g.wW();if(w&&N){var E=w.subscribe(e,function(){function A(){EC[E]&&N.apply&&typeof N.apply=="function"&&N.apply(y||window,T)}
var T=arguments;try{g.Al[e]?A():g.b4(A,0)}catch(p){g.eH(p)}},y);
EC[E]=!0;T_[e]||(T_[e]=[]);T_[e].push(E);return E}return 0};
S83=function(e){var N=g.Jl("LOGGED_IN",function(y){e.apply(void 0,arguments);g.pE(N)})};
g.pE=function(e){var N=g.wW();N&&(typeof e==="number"?e=[e]:typeof e==="string"&&(e=[parseInt(e,10)]),g.$R(e,function(y){N.unsubscribeByKey(y);delete EC[y]}))};
g.CE=function(e,N){var y=g.wW();return y?y.publish.apply(y,arguments):!1};
bp5=function(e){var N=g.wW();if(N)if(N.clear(e),e)o3s(e);else for(var y in T_)o3s(y)};
g.wW=function(){return g.xJ.ytPubsubPubsubInstance};
o3s=function(e){T_[e]&&(e=T_[e],g.$R(e,function(N){EC[N]&&delete EC[N]}),e.length=0)};
g.rW=function(e,N,y){hgF(e,N,y===void 0?null:y)};
hgF=function(e,N,y){y=y===void 0?null:y;var w=cE_(e),E=document.getElementById(w),A=E&&VaE(E),T=E&&!A;A?N&&N():(N&&(A=g.Jl(w,N),N=""+g.RP(N),kk9[N]=A),T||(E=B20(e,w,function(){VaE(E)||(gDE(E),g.CE(w),g.b4(function(){bp5(w)},0))},y)))};
B20=function(e,N,y,w){w=w===void 0?null:w;var E=g.sA("SCRIPT");E.id=N;E.onload=function(){y&&setTimeout(y,0)};
E.onreadystatechange=function(){switch(E.readyState){case "loaded":case "complete":E.onload()}};
w&&E.setAttribute("nonce",w);g.QZ(E,g.vz(e));e=document.getElementsByTagName("head")[0]||document.body;e.insertBefore(E,e.firstChild);return E};
cE_=function(e){var N=document.createElement("a");g.VZ(N,e);e=N.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+sK(e)};
$5=function(e,N){if(e===N)e=!0;else if(Array.isArray(e)&&Array.isArray(N))e=g.Cf(e,N,$5);else if(g.W5(e)&&g.W5(N))a:if(g.Xw(e).length!=g.Xw(N).length)e=!1;else{for(var y in e)if(!$5(e[y],N[y])){e=!1;break a}e=!0}else e=!1;return e};
la=function(e){var N=g.iE.apply(1,arguments);if(!Y5(e)||N.some(function(w){return!Y5(w)}))throw Error("Only objects may be merged.");
N=g.c(N);for(var y=N.next();!y.done;y=N.next())M6(e,y.value)};
M6=function(e,N){for(var y in N)if(Y5(N[y])){if(y in e&&!Y5(e[y]))throw Error("Cannot merge an object into a non-object.");y in e||(e[y]={});M6(e[y],N[y])}else if(hl(N[y])){if(y in e&&!hl(e[y]))throw Error("Cannot merge an array into a non-array.");y in e||(e[y]=[]);XLF(e[y],N[y])}else e[y]=N[y];return e};
XLF=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,Y5(y)?e.push(M6({},y)):hl(y)?e.push(XLF([],y)):e.push(y);return e};
Y5=function(e){return typeof e==="object"&&!Array.isArray(e)};
hl=function(e){return typeof e==="object"&&Array.isArray(e)};
cX=function(e){g.x.call(this);this.N=e};
k5=function(e){cX.call(this,!0);this.J=e};
P45=function(e,N){g.x.call(this);var y=this;this.K=[];this.G=!1;this.N=0;this.L=this.Z=this.j=!1;this.Ng=null;var w=(0,g.Gs)(e,N);this.J=new g.e6(function(){return w(y.Ng)},300);
g.Q(this,this.J);this.D=this.U=Infinity};
dR0=function(e,N){if(!N)return!1;for(var y=0;y<N.length;y++){var w=N.item(y);if(w&&e.K.includes(w.identifier))return!0}return!1};
Xd=function(e){if(window.crypto&&window.crypto.getRandomValues)try{var N=Array(e),y=new Uint8Array(e);window.crypto.getRandomValues(y);for(var w=0;w<N.length;w++)N[w]=y[w];return N}catch(A){}N=Array(e);for(y=0;y<e;y++){w=Date.now();for(var E=0;E<w%23;E++)N[y]=Math.random();N[y]=Math.floor(Math.random()*256)}if(BX)for(y=1,w=0;w<BX.length;w++)N[y%e]=N[y%e]^N[(y-1)%e]/4^BX.charCodeAt(w),y++;return N};
g.PX=function(e){e=Xd(e);for(var N=[],y=0;y<e.length;y++)N.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(e[y]&63));return N.join("")};
g.IJM=function(){return g.dn(Xd(16),function(e){return(e&15).toString(16)}).join("")};
v3n=function(){var e={};var N=e.Bxs===void 0?!1:e.Bxs;e=e.GG===void 0?!0:e.GG;if(g.nM("_lact",window)==null){var y=parseInt(g.Lb("LACT"),10);y=isFinite(y)?Date.now()-Math.max(y,0):-1;g.jM("_lact",y,window);g.jM("_fact",y,window);y==-1&&dW();g.PE(document,"keydown",dW);g.PE(document,"keyup",dW);g.PE(document,"mousedown",dW);g.PE(document,"mouseup",dW);N?g.PE(window,"touchmove",function(){Iu("touchmove",200)},{passive:!0}):(g.PE(window,"resize",function(){Iu("resize",200)}),e&&g.PE(window,"scroll",
function(){Iu("scroll",200)}));
new zh(function(){Iu("mouse",100)});
g.PE(document,"touchstart",dW,{passive:!0});g.PE(document,"touchend",dW,{passive:!0})}};
Iu=function(e,N){vX[e]||(vX[e]=!0,g.Kk.kB(function(){dW();vX[e]=!1},N))};
dW=function(){g.nM("_lact",window)==null&&(v3n(),g.nM("_lact",window));var e=Date.now();g.jM("_lact",e,window);g.nM("_fact",window)==-1&&g.jM("_fact",e,window);(e=g.nM("ytglobal.ytUtilActivityCallback_"))&&e()};
z_=function(){var e=g.nM("_lact",window);return e==null?-1:Math.max(Date.now()-e,0)};
ia=function(e){this.name=e};
Dc=function(e){this.key=e};
zgJ=function(){var e=this;this.J=new Map;this.K=new Map;this.N=new Map;this.lk={Ces:function(){return new Map(e.J)}}};
gW=function(e,N){e.J.set(N.ZT,N);var y=e.K.get(N.ZT);if(y)try{y.nG(e.resolve(N.ZT))}catch(w){y.oD(w)}};
fE=function(e,N,y,w){w=w===void 0?!1:w;if(y.indexOf(N)>-1)throw Error("Deps cycle for: "+N);if(e.N.has(N))return e.N.get(N);if(!e.J.has(N)){if(w)return;throw Error("No provider for: "+N);}w=e.J.get(N);y.push(N);if(w.aB!==void 0)var E=w.aB;else if(w.IWl)E=w[V7]?ip_(e,w[V7],y):[],E=w.IWl.apply(w,g.B(E));else if(w.SB){E=w.SB;var A=E[V7]?ip_(e,E[V7],y):[];E=new (Function.prototype.bind.apply(E,[null].concat(g.B(A))))}else throw Error("Could not resolve providers for: "+N);y.pop();w.doZ||e.N.set(N,E);
return E};
ip_=function(e,N,y){return N?N.map(function(w){return w instanceof Dc?fE(e,w.key,y,!0):fE(e,w,y)}):[]};
ua=function(){tl||(tl=new zgJ);return tl};
Zc=function(){var e,N;return"h5vcc"in q6&&((e=q6.h5vcc.traceEvent)==null?0:e.traceBegin)&&((N=q6.h5vcc.traceEvent)==null?0:N.traceEnd)?1:"performance"in q6&&q6.performance.mark&&q6.performance.measure?2:0};
x5=function(e){var N=Zc();switch(N){case 1:q6.h5vcc.traceEvent.traceBegin("YTLR",e);break;case 2:q6.performance.mark(e+"-start");break;case 0:break;default:wa(N,"unknown trace type")}};
DR5=function(e){var N=Zc();switch(N){case 1:q6.h5vcc.traceEvent.traceEnd("YTLR",e);break;case 2:N=e+"-start";var y=e+"-end";q6.performance.mark(y);q6.performance.measure(e,N,y);break;case 0:break;default:wa(N,"unknown trace type")}};
g3M=function(e){var N,y;(y=(N=window).onerror)==null||y.call(N,e.message,"",0,0,e)};
VHE=function(e){var N=this;var y=y===void 0?0:y;var w=w===void 0?g.yK():w;this.K=y;this.scheduler=w;this.N=new g.lq;this.J=e;for(e={Ol:0};e.Ol<this.J.length;e={uE:void 0,Ol:e.Ol},e.Ol++)e.uE=this.J[e.Ol],y=function(E){return function(){E.uE.S9();N.J[E.Ol].rV=!0;N.J.every(function(A){return A.rV===!0})&&N.N.resolve()}}(e),w=az(y,jS(this,e.uE)),this.J[e.Ol]=Object.assign({},e.uE,{S9:y,
jobId:w})};
fJM=function(e){var N=Array.from(e.J.keys()).sort(function(w,E){return jS(e,e.J[E])-jS(e,e.J[w])});
N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=e.J[y.value],y.jobId===void 0||y.rV||(e.scheduler.Zx(y.jobId),az(y.S9,10))};
jS=function(e,N){var y;return(y=N.priority)!=null?y:e.K};
Q7=function(e){this.state=e;this.plugins=[];this.K=void 0;this.j={};nE&&x5(this.state)};
tHH=function(e,N){var y=N.filter(function(E){return mq(e,E)===10}),w=N.filter(function(E){return mq(e,E)!==10});
return e.j.yfh?function(){var E=g.iE.apply(0,arguments);return g.f(function(A){if(A.J==1)return g.D(A,e.xGB.apply(e,[y].concat(g.B(E))),2);e.jX.apply(e,[w].concat(g.B(E)));g.hn(A)})}:function(){var E=g.iE.apply(0,arguments);
e.iqh.apply(e,[y].concat(g.B(E)));e.jX.apply(e,[w].concat(g.B(E)))}};
mq=function(e,N){var y,w;return(w=(y=e.K)!=null?y:N.priority)!=null?w:0};
HX=function(e){nE&&e&&x5(e)};
KE=function(e){nE&&e&&DR5(e)};
q8P=function(e,N,y){ujE&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+e.constructor.name+"] '"+e.state+"' to '"+N+"'"),console.log("with message: ",y),console.groupEnd())};
WX=function(e){if(g.Xj("web_lifecycle_error_handling_killswitch"))return e();try{return e()}catch(N){g3M(N)}};
OC=function(e){Q7.call(this,e===void 0?"none":e);this.J=null;this.K=10;this.transitions=[{from:"none",ZF:"application_navigating",action:this.L},{from:"application_navigating",ZF:"none",action:this.Z},{from:"application_navigating",ZF:"application_navigating",action:function(){}},
{from:"none",ZF:"none",action:function(){}}]};
ZpM=function(){Ru||(Ru=new OC);return Ru};
G_=function(){var e=this;this.store={};this.J=0;this.N={};this.lk={h4B:function(){return e.J}}};
sC=function(e,N){var y=UC(N);if(e.N[y])return e.N[y];var w=Object.keys(e.store)||[];if(w.length<=1&&UC(N)===w[0])return w;for(var E=[],A=0;A<w.length;A++){var T=w[A].split("/");if(LE(N.auth,T[0])){var p=N.isJspb;LE(p===void 0?"undefined":p?"true":"false",T[1])&&LE(N.cttAuthInfo,T[2])&&(p=N.tier,p=p===void 0?"undefined":JSON.stringify(p),LE(p,T[3])&&E.push(w[A]))}}return e.N[y]=E};
LE=function(e,N){return e===void 0||e==="undefined"?!0:e===N};
UC=function(e){return[e.auth===void 0?"undefined":e.auth,e.isJspb===void 0?"undefined":e.isJspb,e.cttAuthInfo===void 0?"undefined":e.cttAuthInfo,e.tier===void 0?"undefined":e.tier].join("/")};
au=function(){this.j=this.J=this.N=0;this.K=!1};
eP=function(){var e=g.nM("yt.logging.ims");e||(e=new G_,g.jM("yt.logging.ims",e));return e};
n3J=function(){if(ibM()&&!xRF){var e=function(y){y=y.data;if(y.op==="serializedGelBatch"){var w=Ni.get(y.key);w&&(jys(y.serializedBatch,w.client,w.resolve,w.networklessOptions,w.isIsolated,w.useVSSEndpoint,w.dangerousLogToVisitorSession,w.requestsOutstanding),Ni.delete(y.key))}},N=it();
N&&(N.addEventListener("message",e),N.onerror=function(){Ni.clear()});
xRF=!0}};
Op3=function(e,N){if(e.endpoint==="log_event"){yu(e);var y=wI(e),w=QyM(e.payload)||"",E=mR_(w),A=200;if(E){if(E.enabled===!1&&!g.Xj("web_payload_policy_disabled_killswitch"))return;A=Hpn(E.tier);if(A===400){KHF(e,N);return}}E$[y]=!0;y={cttAuthInfo:y,isJspb:!1,tier:A};eP().storePayload(y,e.payload);WHF(N,!1,y,A0(w))}};
Gk3=function(e,N,y){if(N.endpoint==="log_event"){yu(void 0,N);var w=wI(N,!0),E=mR_(e),A=200;if(E){if(E.enabled===!1&&!g.Xj("web_payload_policy_disabled_killswitch"))return;A=Hpn(E.tier);if(A===400){RgM(e,N,y);return}}E$[w]=!0;w={cttAuthInfo:w,isJspb:!0,tier:A};eP().storePayload(w,vW(N.payload));WHF(y,!0,w,A0(e))}};
WHF=function(e,N,y,w){function E(){TO({writeThenSend:!0},N,y.tier)}
N=N===void 0?!1:N;w=w===void 0?!1:w;e&&(J0=new e);e=g.PL("tvhtml5_logging_max_batch_ads_fork")||g.PL("tvhtml5_logging_max_batch")||g.PL("web_logging_max_batch")||100;var A=(0,g.iC)(),T=pQ(N,y.tier),p=T.j;w&&(T.K=!0);w=0;y&&(w=eP().getSequenceCount(y));w>=1E3?E():w>=e?CQ||(CQ=rI(function(){E();CQ=void 0},0)):A-p>=10&&(UR5(N,y.tier),T.j=A)};
KHF=function(e,N){if(e.endpoint==="log_event"){g.Xj("more_accurate_gel_parser")&&eP().storePayload({isJspb:!1},e.payload);yu(e);var y=wI(e),w=new Map;w.set(y,[e.payload]);var E=QyM(e.payload)||"";N&&(J0=new N);return new g.lB(function(A,T){J0&&J0.isReady()?LH_(w,J0,A,T,{bypassNetworkless:!0},!0,A0(E)):A()})}};
RgM=function(e,N,y){if(N.endpoint==="log_event"){yu(void 0,N);var w=wI(N,!0),E=new Map;E.set(w,[vW(N.payload)]);y&&(J0=new y);return new g.lB(function(A){J0&&J0.isReady()?sy_(E,J0,A,{bypassNetworkless:!0},!0,A0(e)):A()})}};
wI=function(e,N){var y="";if(e.dangerousLogToVisitorSession)y="visitorOnlyApprovedKey";else if(e.cttAuthInfo){if(N===void 0?0:N){N=e.cttAuthInfo.token;y=e.cttAuthInfo;var w=new RG;y.videoId?w.setVideoId(y.videoId):y.playlistId&&en(w,2,$g,cW(y.playlistId));Yg[N]=w}else N=e.cttAuthInfo,y={},N.videoId?y.videoId=N.videoId:N.playlistId&&(y.playlistId=N.playlistId),Mi[e.cttAuthInfo.token]=y;y=e.cttAuthInfo.token}return y};
TO=function(e,N,y){e=e===void 0?{}:e;N=N===void 0?!1:N;new g.lB(function(w,E){var A=pQ(N,y),T=A.K;A.K=!1;lA(A.N);lA(A.J);A.J=0;J0&&J0.isReady()?y===void 0&&g.Xj("enable_web_tiered_gel")?aJ9(w,E,e,N,300,T):aJ9(w,E,e,N,y,T):(UR5(N,y),w())})};
aJ9=function(e,N,y,w,E,A){var T=J0;y=y===void 0?{}:y;w=w===void 0?!1:w;E=E===void 0?200:E;A=A===void 0?!1:A;var p=new Map,C=new Map,r={isJspb:w,cttAuthInfo:void 0,tier:E},Y={isJspb:w,cttAuthInfo:void 0};if(w){N=g.c(Object.keys(E$));for(E=N.next();!E.done;E=N.next())E=E.value,C=g.Xj("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[r,Y],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!0,cttAuthInfo:E}),C.length>0&&p.set(E,C),(g.Xj("web_fp_via_jspb_and_json")&&y.writeThenSend||!g.Xj("web_fp_via_jspb_and_json"))&&
delete E$[E];sy_(p,T,e,y,!1,A)}else{p=g.c(Object.keys(E$));for(r=p.next();!r.done;r=p.next())r=r.value,Y=g.Xj("enable_web_tiered_gel")?eP().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:r,tier:E},{isJspb:!1,cttAuthInfo:r}],sizeLimit:1E3}):eP().extractMatchingEntries({isJspb:!1,cttAuthInfo:r}),Y.length>0&&C.set(r,Y),(g.Xj("web_fp_via_jspb_and_json")&&y.writeThenSend||!g.Xj("web_fp_via_jspb_and_json"))&&delete E$[r];LH_(C,T,e,N,y,!1,A)}};
UR5=function(e,N){function y(){TO({writeThenSend:!0},e,N)}
e=e===void 0?!1:e;N=N===void 0?200:N;var w=pQ(e,N),E=w===eP3||w===N9P?5E3:y2s;g.Xj("web_gel_timeout_cap")&&!w.J&&(E=rI(function(){y()},E),w.J=E);
lA(w.N);E=g.Lb("LOGGING_BATCH_TIMEOUT",g.PL("web_gel_debounce_ms",1E4));g.Xj("shorten_initial_gel_batch_timeout")&&FV&&(E=wE5);E=rI(function(){g.PL("gel_min_batch_size")>0?eP().getSequenceCount({cttAuthInfo:void 0,isJspb:e,tier:N})>=Eh5&&y():y()},E);
w.N=E};
LH_=function(e,N,y,w,E,A,T){E=E===void 0?{}:E;var p=Math.round((0,g.iC)()),C=e.size,r=A2_(T);e=g.c(e);var Y=e.next();for(T={};!Y.done;T={JS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,sG:void 0,cq:void 0},Y=e.next()){var M=g.c(Y.value);Y=M.next().value;M=M.next().value;T.batchRequest=g.gi({context:g.M9(N.config_||g.Yp())});if(!g.KM(M)&&!g.Xj("throw_err_when_logevent_malformed_killswitch")){w();break}T.batchRequest.events=M;(M=Mi[Y])&&T99(T.batchRequest,Y,M);delete Mi[Y];T.dangerousLogToVisitorSession=
Y==="visitorOnlyApprovedKey";J29(T.batchRequest,p,T.dangerousLogToVisitorSession);pEP(E);T.sG=function(l){g.Xj("start_client_gcf")&&g.Kk.kB(function(){return g.f(function(F){return g.D(F,CYn(l),0)})});
C--;C||y()};
T.JS=0;T.cq=function(l){return function(){l.JS++;if(E.bypassNetworkless&&l.JS===1)try{g.y7(N,r,l.batchRequest,SP({writeThenSend:!0},l.dangerousLogToVisitorSession,l.sG,l.cq,A)),FV=!1}catch(F){g.eH(F),w()}C--;C||y()}}(T);
try{g.y7(N,r,T.batchRequest,SP(E,T.dangerousLogToVisitorSession,T.sG,T.cq,A)),FV=!1}catch(l){g.eH(l),w()}}};
sy_=function(e,N,y,w,E,A){w=w===void 0?{}:w;var T=Math.round((0,g.iC)()),p={value:e.size},C=new Map([].concat(g.B(e)));C=g.c(C);for(var r=C.next();!r.done;r=C.next()){var Y=g.c(r.value).next().value,M=e.get(Y);r=new ZG5;var l=N.config_||g.Yp(),F=new jC,S=new V2;Sn(S,1,l.Ji);Sn(S,2,l.Ff);bV(S,16,l.EC);Sn(S,17,l.innertubeContextClientVersion);if(l.LM){var k=l.LM,X=new DO;k.coldConfigData&&Sn(X,1,k.coldConfigData);k.appInstallData&&Sn(X,6,k.appInstallData);k.coldHashData&&Sn(X,3,k.coldHashData);k.hotHashData&&
X.K2(k.hotHashData);JQ(S,DO,62,X)}(k=g.xJ.devicePixelRatio)&&k!=1&&j4(S,65,Er(k));k=d2();k!==""&&Sn(S,54,k);k=Iy();if(k.length>0){X=new ug;for(var d=0;d<k.length;d++){var v=new fb;Sn(v,1,k[d].key);en(v,2,r2E,cW(k[d].value));rP(X,15,fb,v)}JQ(F,ug,5,X)}YaM(l,S);MCs(F);lO5(S);FyH(l,S);Sa5(S);g.Xj("start_client_gcf")&&or_(S);g.Lb("DELEGATED_SESSION_ID")&&!g.Xj("pageid_as_header_web")&&(l=new xr,Sn(l,3,g.Lb("DELEGATED_SESSION_ID")));!g.Xj("fill_delegate_context_in_gel_killswitch")&&(k=g.Lb("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(X=Tx(F,xr,3)||new xr,l=F,k=Sn(X,18,k),JQ(l,xr,3,k));l=S;k=g.c(Object.entries(AE(g.Lb("DEVICE",""))));for(X=k.next();!X.done;X=k.next())d=g.c(X.value),X=d.next().value,d=d.next().value,X==="cbrand"?Sn(l,12,d):X==="cmodel"?Sn(l,13,d):X==="cbr"?Sn(l,87,d):X==="cbrver"?Sn(l,88,d):X==="cos"?Sn(l,18,d):X==="cosver"?Sn(l,19,d):X==="cplatform"&&bV(l,42,UH5(d));F.JE(S);JQ(r,jC,1,F);if(S=Yg[Y])a:{if(S.vE())F=1;else if(S.getPlaylistId())F=2;else break a;JQ(r,RG,4,S);S=Tx(r,jC,1)||new jC;l=Tx(S,xr,3)||new xr;
k=new ZO;k.setToken(Y);bV(k,1,F);rP(l,12,ZO,k);JQ(S,xr,3,l)}delete Yg[Y];Y=Y==="visitorOnlyApprovedKey";ot()||FX(r,2,T);!Y&&(F=g.Lb("EVENT_ID"))&&(S=$I5(),l=new Oa,Sn(l,1,F),FX(l,2,S),JQ(r,Oa,5,l));pEP(w);if(g.Xj("jspb_serialize_with_worker")&&(F=it())&&w.writeThenSend){Ni.set(bA,{client:N,resolve:y,networklessOptions:w,isIsolated:E,useVSSEndpoint:A,dangerousLogToVisitorSession:Y,requestsOutstanding:p});F.postMessage({op:"gelBatchToSerialize",batchRequest:vW(r),clientEvents:M,key:bA});bA++;break}if(M){F=
[];for(S=0;S<M.length;S++)try{F.push(new Wz(M[S]))}catch(V){g.eH(new g.Gh("Transport failed to deserialize "+String(M[S])))}M=F}else M=[];M=g.c(M);for(F=M.next();!F.done;F=M.next())rP(r,3,Wz,F.value);M={startTime:(0,g.iC)(),ticks:{},infos:{}};r=r.jY();M.ticks.geljspc=(0,g.iC)();g.Xj("log_jspb_serialize_latency")&&Ie("gel_jspb_serialize",M,{sampleRate:.1});jys(r,N,y,w,E,A,Y,p)}};
jys=function(e,N,y,w,E,A,T,p){w=w===void 0?{}:w;p=p===void 0?{value:0}:p;A=A2_(A);w=SP(w,T,function(C){g.Xj("start_client_gcf")&&g.Kk.kB(function(){return g.f(function(r){return g.D(r,CYn(C),0)})});
p.value--;p.value||y()},function(){p.value--;
p.value||y()},E);
w.headers["Content-Type"]="application/json+protobuf";w.postBodyFormat="JSPB";w.postBody=e;g.y7(N,A,"",w);FV=!1};
pEP=function(e){g.Xj("always_send_and_write")&&(e.writeThenSend=!1)};
SP=function(e,N,y,w,E){e={retry:!0,onSuccess:y,onError:w,networklessOptions:e,dangerousLogToVisitorSession:N,uiB:!!E,headers:{},postBodyFormat:"",postBody:"",compress:g.Xj("compress_gel")||g.Xj("compress_gel_lr")};ot()&&(e.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.iC)())));return e};
J29=function(e,N,y){ot()||(e.requestTimeMs=String(N));g.Xj("unsplit_gel_payloads_in_logs")&&(e.unsplitGelPayloadsInLogs=!0);!y&&(N=g.Lb("EVENT_ID"))&&(y=$I5(),e.serializedClientEventId={serializedEventId:N,clientCounter:String(y)})};
$I5=function(){var e=g.Lb("BATCH_CLIENT_COUNTER")||0;e||(e=Math.floor(Math.random()*65535/2));e++;e>65535&&(e=1);Ua("BATCH_CLIENT_COUNTER",e);return e};
T99=function(e,N,y){if(y.videoId)var w="VIDEO";else if(y.playlistId)w="PLAYLIST";else return;e.credentialTransferTokenTargetId=y;e.context=e.context||{};e.context.user=e.context.user||{};e.context.user.credentialTransferTokens=[{token:N,scope:w}]};
yu=function(e,N){if(!g.nM("yt.logging.transport.enableScrapingForTest")){var y=BL("il_payload_scraping");if((y!==void 0?String(y):"")==="enable_il_payload_scraping")h0=[],g.jM("yt.logging.transport.enableScrapingForTest",!0),g.jM("yt.logging.transport.scrapedPayloadsForTesting",h0),g.jM("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.jM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.jM("yt.logging.transport.scrapeClientEvent",!0);else return}y=g.nM("yt.logging.transport.scrapedPayloadsForTesting");var w=g.nM("yt.logging.transport.payloadToScrape");N&&(N=N.payload,(N=g.nM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(N)())&&y.push(N));N=g.nM("yt.logging.transport.scrapeClientEvent");if(w&&w.length>=1)for(var E=0;E<w.length;E++)if(e&&e.payload[w[E]])if(N)y.push(e.payload);else{var A=void 0;y.push(((A=e)==null?void 0:A.payload)[w[E]])}g.jM("yt.logging.transport.scrapedPayloadsForTesting",
y)};
ot=function(){return g.Xj("use_request_time_ms_header")||g.Xj("lr_use_request_time_ms_header")};
rI=function(e,N){return g.Xj("transport_use_scheduler")===!1?g.b4(e,N):g.Xj("logging_avoid_blocking_during_navigation")||g.Xj("lr_logging_avoid_blocking_during_navigation")?g.e1(0,function(){if(ZpM().currentState==="none")e();else{var y={};ZpM().install((y.none={callback:e},y))}},N):az(e,0,N)};
lA=function(e){g.Xj("transport_use_scheduler")?g.Kk.Zx(e):g.cL(e)};
CYn=function(e){var N,y,w,E,A,T,p,C,r,Y;return g.f(function(M){return M.J==1?(w=(N=e)==null?void 0:(y=N.responseContext)==null?void 0:y.globalConfigGroup,E=g.m(w,YFM),T=(A=w)==null?void 0:A.hotHashData,p=g.m(w,MuP),r=(C=w)==null?void 0:C.coldHashData,(Y=ua().resolve(new Dc(ro)))?T?E?g.D(M,pzH(Y,T,E),2):g.D(M,pzH(Y,T),2):M.u9(2):M.return()):r?p?g.D(M,CgM(Y,r,p),0):g.D(M,CgM(Y,r),0):M.u9(0)})};
pQ=function(e,N){N=N===void 0?200:N;return e?N===300?eP3:lw5:N===300?N9P:F6H};
mR_=function(e){if(g.Xj("enable_web_tiered_gel")){e=SF1[e||""];var N,y,w,E=ua().resolve(new Dc(ro))==null?void 0:(N=$p())==null?void 0:(y=N.loggingHotConfig)==null?void 0:(w=y.eventLoggingConfig)==null?void 0:w.payloadPolicies;if(E)for(N=0;N<E.length;N++)if(E[N].payloadNumber===e)return E[N]}};
QyM=function(e){e=Object.keys(e);e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,SF1[N])return N};
Hpn=function(e){switch(e){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}};
A0=function(e){return e==="gelDebuggingEvent"};
A2_=function(e){return(e===void 0?0:e)&&g.Xj("vss_through_gel_video_stats")?"video_stats":"log_event"};
kg=function(e,N,y,w){w=w===void 0?{}:w;var E={},A=Math.round(w.timestamp||(0,g.iC)());E.eventTimeMs=A<Number.MAX_SAFE_INTEGER?A:0;E[e]=N;e=z_();E.context={lastActivityMs:String(w.timestamp||!isFinite(e)?-1:e)};w.sequenceGroup&&!g.Xj("web_gel_sequence_info_killswitch")&&(e=E.context,N=w.sequenceGroup,N={index:ohs(N),groupKey:N},e.sequence=N,w.endOfSequence&&delete c7[w.sequenceGroup]);(w.sendIsolatedPayload?KHF:Op3)({endpoint:"log_event",payload:E,cttAuthInfo:w.cttAuthInfo,dangerousLogToVisitorSession:w.dangerousLogToVisitorSession},
y)};
ohs=function(e){c7[e]=e in c7?c7[e]+1:0;return c7[e]};
g.$$=function(e,N,y){y=y===void 0?{}:y;var w=g.N6;g.Lb("ytLoggingEventsDefaultDisabled",!1)&&g.N6===g.N6&&(w=null);kg(e,N,w,y)};
B7=function(e){this.J=e};
g.XV=function(e){return new B7({trackingParams:e})};
hP0=function(e){var N=bOP++;return new B7({veType:e,veCounter:N,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
c2M=function(e){return g.Lb("client-screen-nonce-store",{})[e===void 0?0:e]};
khF=function(e,N){N=N===void 0?0:N;var y=g.Lb("client-screen-nonce-store");y||(y={},Ua("client-screen-nonce-store",y));y[N]=e};
P7=function(e){e=e===void 0?0:e;return e===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+e};
B9s=function(e){return g.Lb(P7(e===void 0?0:e))};
g.dI=function(e){return(e=B9s(e===void 0?0:e))?new B7({veType:e,youtubeData:void 0,jspbYoutubeData:void 0}):null};
XEs=function(){var e=g.Lb("csn-to-ctt-auth-info");e||(e={},Ua("csn-to-ctt-auth-info",e));return e};
PYM=function(){return Object.values(g.Lb("client-screen-nonce-store",{})).filter(function(e){return e!==void 0})};
g.It=function(e){e=c2M(e===void 0?0:e);if(!e&&!g.Lb("USE_CSN_FALLBACK",!0))return null;e||(e="UNDEFINED_CSN");return e?e:null};
IwE=function(e){for(var N=g.c(Object.values(dIE)),y=N.next();!y.done;y=N.next())if(g.It(y.value)===e)return!0;return!1};
vhs=function(e,N,y){var w=XEs();(y=g.It(y))&&delete w[y];N&&(w[e]=N)};
v7=function(e){return XEs()[e]};
iO1=function(e,N,y,w){y=y===void 0?0:y;if(e!==c2M(y)||N!==g.Lb(P7(y)))if(vhs(e,w,y),khF(e,y),Ua(P7(y),N),N=function(){setTimeout(function(){e&&g.$$("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:zPM,clientScreenNonce:e})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(N)}catch(E){N()}else N()};
zO=function(e,N){var y=y===void 0?!0:y;var w=g.Lb("VALID_SESSION_TEMPDATA_DOMAINS",[]),E=g.uB(window.location.href);E&&w.push(E);E=g.uB(e);if(g.Gw(w,E)||!E&&c_(e,"/"))if(w=document.createElement("a"),g.VZ(w,e),e=w.href)if(e=q0(e),e=oY5(e))if(y&&!N.csn&&(N.itct||N.ved)&&(N=Object.assign({csn:g.It()},N)),A){var A=parseInt(A,10);isFinite(A)&&A>0&&DI1(e,N,A)}else DI1(e,N)};
DI1=function(e,N,y){e=gh5(e);N=N?g.nY(N):"";y=y||5;EF()&&g.x3(e,N,y)};
gh5=function(e){for(var N=g.c(Vus),y=N.next();!y.done;y=N.next())e=KY(e,y.value);return"ST-"+sK(e).toString(36)};
fw0=function(e){if(e.name==="JavaException")return!0;e=e.stack;return e.includes("chrome://")||e.includes("chrome-extension://")||e.includes("moz-extension://")};
tu1=function(){this.QY=[];this.Tr=[]};
DL=function(){if(!iA){var e=iA=new tu1;e.Tr.length=0;e.QY.length=0;ucP(e,qF3)}return iA};
ucP=function(e,N){N.Tr&&e.Tr.push.apply(e.Tr,N.Tr);N.QY&&e.QY.push.apply(e.QY,N.QY)};
ZO1=function(e){function N(){return e.charCodeAt(w++)}
var y=e.length,w=0;do{var E=gI(N);if(E===Infinity)break;var A=E>>3;switch(E&7){case 0:E=gI(N);if(A===2)return E;break;case 1:if(A===2)return;w+=8;break;case 2:E=gI(N);if(A===2)return e.substr(w,E);w+=E;break;case 5:if(A===2)return;w+=4;break;default:return}}while(w<y)};
gI=function(e){var N=e(),y=N&127;if(N<128)return y;N=e();y|=(N&127)<<7;if(N<128)return y;N=e();y|=(N&127)<<14;if(N<128)return y;N=e();return N<128?y|(N&127)<<21:Infinity};
xI5=function(e,N,y,w){if(e)if(Array.isArray(e)){var E=w;for(w=0;w<e.length&&!(e[w]&&(E+=Vu(w,e[w],N,y),E>500));w++);w=E}else if(typeof e==="object")for(E in e){if(e[E]){var A=E;var T=e[E],p=N,C=y;A=typeof T!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(T=ZO1(atob(T.replace(/-/g,"+").replace(/_/g,"/"))))?Vu(A+".ve",T,p,C):0;w+=A;w+=Vu(E,e[E],N,y);if(w>500)break}}else y[N]=fQ(e),w+=y[N].length;else y[N]=fQ(e),w+=y[N].length;return w};
Vu=function(e,N,y,w){y+="."+e;e=fQ(N);w[y]=e;return y.length+e.length};
fQ=function(e){try{return(typeof e==="string"?e:String(JSON.stringify(e))).substr(0,500)}catch(N){return"unable to serialize "+typeof e+" ("+N.message+")"}};
r0=function(e){g.t0(e)};
g.uA=function(e){g.t0(e,"WARNING")};
g.t0=function(e,N){var y=y===void 0?{}:y;y.name=g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME",1);y.version=g.Lb("INNERTUBE_CONTEXT_CLIENT_VERSION");N=N===void 0?"ERROR":N;var w=!1;N=N===void 0?"ERROR":N;w=w===void 0?!1:w;if(e){e.hasOwnProperty("level")&&e.level&&(N=e.level);if(g.Xj("console_log_js_exceptions")){var E=[];E.push("Name: "+e.name);E.push("Message: "+e.message);e.hasOwnProperty("params")&&E.push("Error Params: "+JSON.stringify(e.params));e.hasOwnProperty("args")&&E.push("Error args: "+JSON.stringify(e.args));
E.push("File name: "+e.fileName);E.push("Stacktrace: "+e.stack);window.console.log(E.join("\n"),e)}if(!(jz5>=5)){E=nhM;var A=Pc_(e),T=A.message||"Unknown Error",p=A.name||"UnknownError",C=A.stack||e.N||"Not available";if(C.startsWith(p+": "+T)){var r=C.split("\n");r.shift();C=r.join("\n")}r=A.lineNumber||"Not available";A=A.fileName||"Not available";var Y=0;if(e.hasOwnProperty("args")&&e.args&&e.args.length)for(var M=0;M<e.args.length&&!(Y=xI5(e.args[M],"params."+M,y,Y),Y>=500);M++);else if(e.hasOwnProperty("params")&&
e.params){var l=e.params;if(typeof e.params==="object")for(M in l){if(l[M]){var F="params."+M,S=fQ(l[M]);y[F]=S;Y+=F.length+S.length;if(Y>500)break}}else y.params=fQ(l)}if(E.length)for(M=0;M<E.length&&!(Y=xI5(E[M],"params.context."+M,y,Y),Y>=500);M++);navigator.vendor&&!y.hasOwnProperty("vendor")&&(y["device.vendor"]=navigator.vendor);y={message:T,name:p,lineNumber:r,fileName:A,stack:C,params:y,sampleWeight:1};E=Number(e.columnNumber);isNaN(E)||(y.lineNumber=y.lineNumber+":"+E);if(e.level==="IGNORED")e=
0;else a:{e=DL();E=g.c(e.Tr);for(T=E.next();!T.done;T=E.next())if(T=T.value,y.message&&y.message.match(T.LI)){e=T.weight;break a}e=g.c(e.QY);for(E=e.next();!E.done;E=e.next())if(E=E.value,E.callback(y)){e=E.weight;break a}e=1}y.sampleWeight=e;e=g.c(Qz1);for(E=e.next();!E.done;E=e.next())if(E=E.value,E.lE[y.name])for(p=g.c(E.lE[y.name]),T=p.next();!T.done;T=p.next())if(M=T.value,T=y.message.match(M.Jo)){y.params["params.error.original"]=T[0];p=M.groups;M={};for(r=0;r<p.length;r++)M[p[r]]=T[r+1],y.params["params.error."+
p[r]]=T[r+1];y.message=E.e9(M);break}y.params||(y.params={});e=DL();y.params["params.errorServiceSignature"]="msg="+e.Tr.length+"&cb="+e.QY.length;y.params["params.serviceWorker"]="false";g.xJ.document&&g.xJ.document.querySelectorAll&&(y.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new ta(f9,"sample")).constructor!==ta&&(y.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(y);if(y.sampleWeight!==0&&!mIs.has(y.message)){if(w&&
g.Xj("web_enable_error_204"))HO_(N===void 0?"ERROR":N,y);else{N=N===void 0?"ERROR":N;N==="ERROR"?(qi.publish("handleError",y),g.Xj("record_app_crashed_web")&&K6H===0&&y.sampleWeight===1&&(K6H++,w={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.Xj("report_client_error_with_app_crash_ks")||(w.systemHealth={crashData:{clientError:{logMessage:{message:y.message}}}}),g.$$("appCrashed",w)),W6M++):N==="WARNING"&&qi.publish("handleWarning",y);if(g.Xj("kevlar_gel_error_routing")){w=N;e=void 0;e=e===void 0?{}:e;
b:{E=g.c(OOM);for(T=E.next();!T.done;T=E.next())if(g.Kp(T.value.toLowerCase())){E=!0;break b}E=!1}if(E)e=void 0;else{T={stackTrace:y.stack};y.fileName&&(T.filename=y.fileName);E=y.lineNumber&&y.lineNumber.split?y.lineNumber.split(":"):[];E.length!==0&&(E.length!==1||isNaN(Number(E[0]))?E.length!==2||isNaN(Number(E[0]))||isNaN(Number(E[1]))||(T.lineNumber=Number(E[0]),T.columnNumber=Number(E[1])):T.lineNumber=Number(E[0]));E={level:"ERROR_LEVEL_UNKNOWN",message:y.message,errorClassName:y.name,sampleWeight:y.sampleWeight};
w==="ERROR"?E.level="ERROR_LEVEL_ERROR":w==="WARNING"&&(E.level="ERROR_LEVEL_WARNNING");T={isObfuscated:!0,browserStackInfo:T};e.pageUrl=window.location.href;e.kvPairs=[];g.Lb("FEXP_EXPERIMENTS")&&(e.experimentIds=g.Lb("FEXP_EXPERIMENTS"));p=g.Lb("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!sa("web_disable_gel_stp_ecatcher_killswitch")&&p)for(M=g.c(Object.keys(p)),r=M.next();!r.done;r=M.next())r=r.value,e.kvPairs.push({key:r,value:String(p[r])});if(p=y.params)for(M=g.c(Object.keys(p)),r=M.next();!r.done;r=
M.next())r=r.value,e.kvPairs.push({key:"client."+r,value:String(p[r])});p=g.Lb("SERVER_NAME");M=g.Lb("SERVER_VERSION");p&&M&&(e.kvPairs.push({key:"server.name",value:p}),e.kvPairs.push({key:"server.version",value:M}));e={errorMetadata:e,stackTrace:T,logMessage:E}}if(e&&(g.$$("clientError",e),w==="ERROR"||g.Xj("errors_flush_gel_always_killswitch")))a:{if(g.Xj("web_fp_via_jspb")){w=!0;w=w===void 0?!1:w;e=RPn;RPn=[];if(e)for(e=g.c(e),E=e.next();!E.done;E=e.next())E=E.value,w?kg(E.payloadName,E.payload,
g.N6,E.options):g.$$(E.payloadName,E.payload,E.options);TO(void 0,!0);if(!g.Xj("web_fp_via_jspb_and_json"))break a}TO(void 0,!1)}}g.Xj("suppress_error_204_logging")||HO_(N,y)}try{mIs.add(y.message)}catch(k){}jz5++}}}};
HO_=function(e,N){var y=N.params||{};e={urlParams:{a:"logerror",t:"jserror",type:N.name,msg:N.message.substr(0,250),line:N.lineNumber,level:e,"client.name":y.name},postParams:{url:g.Lb("PAGE_NAME",window.location.href),file:N.fileName},method:"POST"};y.version&&(e["client.version"]=y.version);if(e.postParams){N.stack&&(e.postParams.stack=N.stack);N=g.c(Object.keys(y));for(var w=N.next();!w.done;w=N.next())w=w.value,e.postParams["client."+w]=y[w];if(y=g.Lb("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(N=
g.c(Object.keys(y)),w=N.next();!w.done;w=N.next())w=w.value,e.postParams[w]=y[w];(y=g.Lb("LAVA_VERSION"))&&(e.postParams["lava.version"]=y);y=g.Lb("SERVER_NAME");N=g.Lb("SERVER_VERSION");y&&N&&(e.postParams["server.name"]=y,e.postParams["server.version"]=N)}g.zk(g.Lb("ECATCHER_REPORT_HOST","")+"/error_204",e)};
Gh3=function(e){var N=g.iE.apply(1,arguments);e.args||(e.args=[]);e.args.push.apply(e.args,g.B(N))};
jP=function(e){var N=g.m(e,ZL);if(N)return N;if((N=g.m(e,UI5))&&N.commands)return L65(N.commands);if((N=g.m(e,szF))&&N.commands)return L65(N.commands);if((e=g.m(e,awF))&&e.identifier&&e.command&&(xg||(xg=[]),!xg.includes(e.identifier)))return xg.push(e.identifier),g.m(e.command,ZL)};
L65=function(e){if(e.length!==0){var N=[];e=g.c(e);for(var y=e.next();!y.done;y=e.next())(y=jP(y.value))&&N.push(y);return{commandExecutorCommand:{commands:N}}}};
g.nQ=function(e,N,y){y===void 0?delete e[N.name]:e[N.name]=y};
eb_=function(e){for(var N=0,y=0;y<e.length;y++)N=N*31+e.charCodeAt(y),y<e.length-1&&(N%=0x800000000000);return N%1E5};
Qu=function(e){FG.call(this,1,arguments);this.csn=e};
yg9=function(e,N,y,w,E,A,T,p){var C=N0F(),r=new B7({veType:N,youtubeData:A,jspbYoutubeData:void 0});A=mj({},C);E&&(A.cttAuthInfo=E);E={csn:C,pageVe:r.getAsJson()};g.Xj("expectation_logging")&&p&&p.screenCreatedLoggingExpectations&&(E.screenCreatedLoggingExpectations=p.screenCreatedLoggingExpectations);y&&y.visualElement?(E.implicitGesture={parentCsn:y.clientScreenNonce,gesturedVe:y.visualElement.getAsJson()},T&&(E.implicitGesture.gestureType=T)):y&&g.uA(new g.Gh("newScreen() parent element does not have a VE - rootVe",
N));w&&(E.cloneCsn=w);e?kg("screenCreated",E,e,A):g.$$("screenCreated",E,A);bt(BxM,new Qu(C));H7.clear();KQ.clear();W7.clear();return C};
g.Rt=function(e,N,y,w,E){g.O$(e,N,y,[w],E===void 0?!1:E)};
g.O$=function(e,N,y,w,E){E=E===void 0?!1:E;for(var A=mj({cttAuthInfo:v7(N)||void 0},N),T=g.c(w),p=T.next();!p.done;p=T.next()){p=p.value;var C=p.getAsJson();(g.v4(C)||!C.trackingParams&&!C.veType)&&g.uA(Error("Child VE logged with no data"));if(g.Xj("no_client_ve_attach_unless_shown")){var r=GO(p,N);if(C.veType&&!KQ.has(r)&&!W7.has(r)&&!E){if(!g.Xj("il_attach_cache_limit")||H7.size<1E3){H7.set(r,[e,N,y,p]);return}g.Xj("il_attach_cache_limit")&&H7.size>1E3&&g.uA(new g.Gh("IL Attach cache exceeded limit"))}p=
GO(y,N);H7.has(p)?U$(y,N):W7.set(p,!0)}}w=w.filter(function(Y){Y.csn!==N?(Y.csn=N,Y=!0):Y=!1;return Y});
y={csn:N,parentVe:y.getAsJson(),childVes:g.dn(w,function(Y){return Y.getAsJson()})};
N==="UNDEFINED_CSN"?LQ("visualElementAttached",A,y):e?kg("visualElementAttached",y,e,A):g.$$("visualElementAttached",y,A)};
wV5=function(e,N,y,w,E){s$(y,N);w=mj({cttAuthInfo:v7(N)||void 0},N);y={csn:N,ve:y.getAsJson(),eventType:1};E&&(y.clientData=E);N==="UNDEFINED_CSN"?LQ("visualElementShown",w,y):e?kg("visualElementShown",y,e,w):g.$$("visualElementShown",y,w)};
E$5=function(e,N,y,w){var E=(w=w===void 0?!1:w)?16:8;w=mj({cttAuthInfo:v7(N)||void 0,endOfSequence:w},N);y={csn:N,ve:y.getAsJson(),eventType:E};N==="UNDEFINED_CSN"?LQ("visualElementHidden",w,y):e?kg("visualElementHidden",y,e,w):g.$$("visualElementHidden",y,w)};
AgP=function(e,N,y,w,E){at(e,N,y,void 0,w,E)};
at=function(e,N,y,w,E){s$(y,N);w=w||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var A=mj({cttAuthInfo:v7(N)||void 0},N);y={csn:N,ve:y.getAsJson(),gestureType:w};E&&(y.clientData=E);N==="UNDEFINED_CSN"?LQ("visualElementGestured",A,y):e?kg("visualElementGestured",y,e,A):g.$$("visualElementGestured",y,A)};
T0M=function(){var e=Xd(16);for(var N=[],y=0;y<e.length;y++)N.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(e[y]&63));return N.join("")};
LQ=function(e,N,y){eY.push({payloadName:e,payload:y,ymg:void 0,options:N});Nu||(Nu=vrF())};
dy3=function(e){if(eY){for(var N=g.c(eY),y=N.next();!y.done;y=N.next())y=y.value,y.payload&&(y.payload.csn=e.csn,g.$$(y.payloadName,y.payload,y.options));eY.length=0}Nu=0};
GO=function(e,N){return""+e.getAsJson().veType+e.getAsJson().veCounter+N};
s$=function(e,N){if(g.Xj("no_client_ve_attach_unless_shown")){var y=GO(e,N);KQ.set(y,!0);U$(e,N)}};
U$=function(e,N){e=GO(e,N);H7.has(e)&&(N=H7.get(e)||[],g.Rt(N[0],N[1],N[2],N[3],!0),H7.delete(e))};
mj=function(e,N){g.Xj("log_sequence_info_on_gel_web")&&(e.sequenceGroup=N);return e};
g.yv=function(e,N,y,w){g.NR(wV5)(void 0,e,N,y,w,void 0)};
g.w1=function(e,N){g.NR(function(){g.$R(N,function(y){s$(y,e);var w=mj({cttAuthInfo:v7(e)||void 0},e);y={csn:e,ve:y.getAsJson(),eventType:4};e==="UNDEFINED_CSN"?LQ("visualElementShown",w,y):g.$$("visualElementShown",y,w)})})()};
g.EZ=function(e,N){g.NR(function(){g.$R(N,function(y){E$5(void 0,e,y)})})()};
g.AZ=function(e,N,y){g.NR(AgP)(void 0,e,N,y,void 0)};
JZ=function(e,N,y,w,E,A){y=y===void 0?{}:y;this.componentType=e;this.renderer=N===void 0?null:N;this.macros=y;this.layoutId=w;this.interactionLoggingClientData=E;this.J=A;this.id=TV(e)};
TV=function(e){var N=":"+(HD.getInstance().J++).toString(36);return e+N};
g.pT=function(e){e=e===void 0?!1:e;g.x.call(this);this.MX=new g.zY(e);g.Q(this,this.MX)};
CT=function(){var e="ytp-id-"+Jg9.toString();Jg9++;return e};
g.r1=function(e){g.x.call(this);this.a9={};this.jN={};this.element=this.createElement(e)};
$l=function(e,N,y,w){if(w.substring(0,2)==="{{")e.jN[w]=[N,y];else return w};
pV5=function(e,N){var y=[];if(!N)return y;N=g.c(N);for(var w=N.next();!w.done;w=N.next())if(w=w.value,w!=null){var E=w.nodeType;E===1||E===3?y.push(w):w&&typeof w.S==="string"?y.push(e.createElement(w)):w.element?y.push(w.element):typeof w==="string"&&w.indexOf("\n")!==-1?w.split("\n").forEach(function(A,T){T>0&&y.push(g.sA("BR"));y.push(g.aB(A))}):y.push(g.aB(w))}return y};
Yl=function(e,N,y,w){if(y==="child"){g.N8(N);var E;w===void 0?E=void 0:E=!Array.isArray(w)||w&&typeof w.S==="string"?[w]:w;y=pV5(e,E);y=g.c(y);for(e=y.next();!e.done;e=y.next())N.appendChild(e.value)}else y==="style"?g.$0(N,"cssText",w?w:""):w===null||w===void 0?N.removeAttribute(y):(e=w.toString(),y==="href"&&(e=g.vP(g.Ds(e))),N.setAttribute(y,e))};
g.W=function(e){g.r1.call(this,e);this.Og=!0;this.L=!1;this.listeners=[]};
g.Mu=function(e){g.W.call(this,e);this.Et=new g.pT;g.Q(this,this.Et)};
lj=function(e,N,y,w,E,A,T){T=T===void 0?null:T;g.Mu.call(this,N);this.api=e;this.macros={};this.componentType=y;this.G=this.U=null;this.Kx=T;this.layoutId=w;this.interactionLoggingClientData=E;this.Y1=A;this.Wk=null;this.sE=new k5(this.element);g.Q(this,this.sE);this.Dl=this.Y(this.element,"click",this.onClick);this.l9=[];this.qg=new P45(this.onClick,this);g.Q(this,this.qg);this.dT=!1;this.Rq=this.Ng=null};
F3=function(e,N){e=e===void 0?null:e;N=N===void 0?null:N;if(e==null)return g.uA(Error("Got null or undefined adText object")),"";var y=g.Ly(e.text);if(!e.isTemplated)return y;if(N==null)return g.uA(Error("Missing required parameters for a templated message")),y;e=g.c(Object.entries(N));for(N=e.next();!N.done;N=e.next()){var w=g.c(N.value);N=w.next().value;w=w.next().value;y=y.replace("{"+N+"}",w)}return y};
CC5=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].url!=null)?g.Ly(e.thumbnails[0].url):""};
rgM=function(e){e=e===void 0?null:e;return e!=null&&(e=e.thumbnail,e!=null&&e.thumbnails!=null&&e.thumbnails.length!=0&&e.thumbnails[0].width!=null&&e.thumbnails[0].height!=null)?new g.l8(e.thumbnails[0].width||0,e.thumbnails[0].height||0):new g.l8(0,0)};
g.SY=function(e){if(e.simpleText)return e.simpleText;if(e.runs){var N=[];e=g.c(e.runs);for(var y=e.next();!y.done;y=e.next())y=y.value,y.text&&N.push(y.text);return N.join("")}return""};
g.oM=function(e){if(e.simpleText)return e=document.createTextNode(e.simpleText),e;var N=[];if(e.runs)for(var y=0;y<e.runs.length;y++){var w=e.runs[y];if(w.text){var E=N,A=E.push,T=null;var p=w.text;w.bold&&(T=L9("B",null,T||p));w.italics&&(T=L9("I",null,T||p));w.strikethrough&&(T=L9("STRIKE",null,T||p));w.navigationEndpoint&&w.navigationEndpoint.urlEndpoint&&(w=w.navigationEndpoint.urlEndpoint,T=L9("A",null,T||p),g.VZ(T,w.url),w.target=="TARGET_NEW_WINDOW"&&(T.target="_blank"));p=T||L9("SPAN",null,
p);A.call(E,p)}}return N.length==1?N[0]:L9("SPAN",null,N)};
g.$73=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{d:"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 M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 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 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",
fill:"#fff"}}]}};
bj=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",V:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.hZ=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{S:"path",V:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.cq=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{S:"path",V:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
YmP=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{S:"path",V:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{S:"path",V:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
M1s=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{S:"path",Az:!0,V:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
lmM=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{S:"path",Az:!0,V:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.kl=function(){return{S:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
F19=function(){return{S:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",V:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
Sm5=function(){return{S:"svg",V:{viewBox:"0 0 24 24"},W:[{S:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{S:"path",V:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
o$M=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
bl5=function(){return{S:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]}};
hb0=function(){return{S:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{S:"path",V:{d:"M0 0h48v48H0z",fill:"none"}},{S:"path",V:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
cgH=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
kv5=function(){return{S:"svg",V:{viewBox:"0 0 24 24"},W:[{S:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{S:"path",V:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
Bq=function(){return{S:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",V:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
B00=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{S:"path",Az:!0,V:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
X3=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.Pq=function(){return{S:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{S:"path",V:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 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"}}]}};
d1=function(){return{S:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{S:"path",V:{d:"M0 0h48v48H0z",fill:"none"}},{S:"path",V:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
XV1=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
PCJ=function(){return{S:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",B:"ytp-svg-fill",V:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
d7E=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
IM=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
Im3=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.vq=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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"}}]}};
g.zV=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.ij=function(){return{S:"svg",V:{height:"100%",viewBox:"0 0 16 16",width:"100%"},W:[{S:"path",V:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
v$H=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Dh=function(){return{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
g1=function(e,N,y){N=N===void 0?!1:N;y=y===void 0?!1:y;if(!e)return null;switch(e.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return y?{S:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:d1();case "CHECK_BOX":return{S:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{S:"path",V:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",
fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{S:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{S:"path",V:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.kl();case "INFO_OUTLINE":return N?{S:"svg",V:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},W:[{S:"path",V:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
hb0();case "REMOVE_CIRCLE":return{S:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M0 0h24v24H0z",fill:"none"}},{S:"path",V:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return X3();case "SKIP_NEXT_NEW":return{S:"svg",V:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},W:[{S:"path",V:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return kv5();
case "DISLIKE":return Sm5();default:return g.uA(new g.Gh("Unexpected icon:",e)),null}};
Vv=function(e,N,y,w,E,A,T,p,C){E=E===void 0?[]:E;T=T===void 0?!1:T;C=C===void 0?!1:C;E={S:"button",dP:["ytp-ad-button"].concat(E)};p!=null&&(E.V={tabindex:p});lj.call(this,e,E,A===void 0?"button":A,N,y,w);this.J=this.N=this.K=null;this.Z=T;this.j=C;this.hide()};
zb_=function(e){var N=null;e.J!=null&&(N=[e.J.serviceEndpoint,e.J.navigationEndpoint].filter(function(y){return y!=null}),e.J.command&&(N=N.concat(e.J.command)));
return N||[]};
fT=function(){g.x.call(this);var e=this;this.J=new Map;this.N=HkP(function(N){if(N.target&&(N=e.J.get(N.target))&&N)for(var y=0;y<N.length;y++)g.mK(N[y])})};
iln=function(){tZ==null&&(tZ=new fT);return tZ};
uj=function(e,N){if(e.simpleText){a:{e=e.simpleText;if(N&&(N=D73(e))){N=L9("SPAN",null,N);break a}N=g.aB(e)}return N}var y=[];if(e.runs)for(var w=0;w<e.runs.length;w++){var E=e.runs[w];E.text&&y.push(g$F(E,N))}return y.length==1?y[0]:L9("SPAN",null,y)};
g$F=function(e,N){var y=null,w=e.text;N&&(w=D73(w)||w);e.bold&&(y=L9("B",null,y||w));e.italics&&(y=L9("I",null,y||w));e.strikethrough&&(y=L9("STRIKE",null,y||w));e.navigationEndpoint&&g.m(e.navigationEndpoint,g.qu)&&(N=g.m(e.navigationEndpoint,g.qu),y=L9("A",null,y||w),g.VZ(y,N.url),N.target=="TARGET_NEW_WINDOW"&&(y.target="_blank"),e=e.navigationEndpoint.loggingUrls)&&(e=e.map(function(E){return E.baseUrl}),iln().register(y,e),g.pi(y,"ytp-ad-has-logging-urls"));
return y||L9("SPAN",null,w)};
D73=function(e){e=e.split(/(?:\r\n|\r|\n)/g);if(e.length>1){for(var N=[e[0]],y=1;y<e.length;y++)N.push(L9("BR")),N.push(e[y]);return N}return null};
Zh=function(e,N,y,w,E,A,T,p,C){A=A===void 0?!1:A;T=T===void 0?[]:T;C=C===void 0?!1:C;lj.call(this,e,{S:"span",dP:["ytp-ad-hover-text-button"].concat(T)},p===void 0?"ad-hover-text-button":p,N,y,w);this.button=this.N=null;this.D=A;this.Z=E;this.K=C;this.hide()};
xl=function(e){return e&&e.thumbnails&&(e.thumbnails||null).length!=0&&e.thumbnails[0].url?g.Ly(e.thumbnails[0].url):""};
jY=function(e,N,y,w,E,A){A=A===void 0?!1:A;lj.call(this,e,{S:"img",B:"ytp-ad-image"},"ad-image",N,y,w,E===void 0?null:E);this.J=A;this.hide()};
nT=function(e,N,y,w,E,A){E=E===void 0?[]:E;lj.call(this,e,{S:"div",dP:["ytp-ad-confirm-dialog-background"],W:[{S:"div",B:"ytp-ad-confirm-dialog-container",W:[{S:"div",dP:["ytp-ad-confirm-dialog"].concat(E),V:{role:"dialog",tabindex:"-1"},W:[{S:"div",B:"ytp-ad-confirm-dialog-title",b9:"{{title}}"},{S:"div",B:"ytp-ad-confirm-dialog-messages"},{S:"div",B:"ytp-ad-confirm-dialog-confirm-container",W:[{S:"button",B:"ytp-ad-confirm-dialog-cancel-button",b9:"{{cancelLabel}}"},{S:"button",B:"ytp-ad-confirm-dialog-confirm-button",
b9:"{{confirmLabel}}"}]}]}]},{S:"button",dP:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],W:[{S:"span",B:"ytp-ad-button-icon",W:[g.kl()]}]}]},A===void 0?"confirm-dialog":A,N,y,w);this.D=this.hW("ytp-ad-confirm-dialog-close-overlay-button");this.j=this.hW("ytp-ad-confirm-dialog-cancel-button");this.Z=this.hW("ytp-ad-confirm-dialog-confirm-button");this.Kh=this.hW("ytp-ad-confirm-dialog-messages");this.K=null;this.J=new iY;g.Q(this,this.J);this.N=null;this.hide()};
V1M=function(e,N){if(N.title){var y=g.SY(N.title);e.updateValue("title",y)}if(N.dialogMessages){y=g.c(N.dialogMessages);for(var w=y.next();!w.done;w=y.next())w=uj(w.value),e.Kh.appendChild(w)}N.cancelLabel&&(y=g.SY(N.cancelLabel),e.updateValue("cancelLabel",y),e.J.Y(e.j,"click",function(E){return e.Zz(E)}));
N.confirmLabel&&(N=g.SY(N.confirmLabel),e.updateValue("confirmLabel",N),e.J.Y(e.Z,"click",function(E){return e.lT(E)}));
e.J.Y(e.D,"click",function(E){return e.hS(E)})};
Qv=function(e,N,y,w,E,A){E=E===void 0?[]:E;A=A===void 0?"toggle-button":A;var T=TV("ytp-ad-toggle-button-input"),p={role:"button","aria-label":"{{tooltipText}}"};e.X().experiments.gP("fix_h5_toggle_button_a11y")&&(p.tabindex="0");e.X().experiments.gP("fix_toggle_button_role_for_ad_components")&&(p.role="checkbox");lj.call(this,e,{S:"div",dP:["ytp-ad-toggle-button"].concat(E),W:[{S:"label",B:"ytp-ad-toggle-button-label",V:{"for":T},W:[{S:"span",B:"ytp-ad-toggle-button-icon",V:p,W:[{S:"span",B:"ytp-ad-toggle-button-untoggled-icon",
b9:"{{untoggledIconTemplateSpec}}"},{S:"span",B:"ytp-ad-toggle-button-toggled-icon",b9:"{{toggledIconTemplateSpec}}"}]},{S:"input",B:"ytp-ad-toggle-button-input",V:{id:T,type:"checkbox"}},{S:"span",B:"ytp-ad-toggle-button-text",b9:"{{buttonText}}"},{S:"span",B:"ytp-ad-toggle-button-tooltip",b9:"{{tooltipText}}"}]}]},A,N,y,w);this.j=this.hW("ytp-ad-toggle-button");this.J=this.hW("ytp-ad-toggle-button-input");this.N=this.hW("ytp-ad-toggle-button-icon");this.D=this.hW("ytp-ad-toggle-button-untoggled-icon");
this.Z=this.hW("ytp-ad-toggle-button-toggled-icon");this.i9=this.hW("ytp-ad-toggle-button-text");this.K=null;this.Kh=!1;this.hide()};
mk=function(e){e.Kh&&(e.isToggled()?(g.X0(e.D,!1),g.X0(e.Z,!0),e.api.X().experiments.gP("fix_toggle_button_role_for_ad_components")&&e.N.setAttribute("aria-checked",!0)):(g.X0(e.D,!0),g.X0(e.Z,!1),e.api.X().experiments.gP("fix_toggle_button_role_for_ad_components")&&e.N.setAttribute("aria-checked",!1)))};
fmE=function(e,N){var y=null;e.K&&(y=(N?[e.K.defaultServiceEndpoint,e.K.defaultNavigationEndpoint]:[e.K.toggledServiceEndpoint]).filter(function(w){return w!=null}));
return y||[]};
t1M=function(e,N,y){this.actionType=N;this.id=y;this.content=e};
Hq=function(e){iY.call(this);this.J=e;this.Y(this.J,"onAdUxUpdate",this.Z)};
KT=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-feedback-dialog-background",W:[{S:"div",B:"ytp-ad-feedback-dialog-container",W:[{S:"div",B:"ytp-ad-feedback-dialog-form",V:{role:"dialog",tabindex:"-1"},W:[{S:"div",B:"ytp-ad-feedback-dialog-title",W:[{S:"span",b9:"{{title}}"}]},{S:"span",B:"ytp-ad-info-dialog-feedback-options-title",b9:"{{reasonsTitle}}"},{S:"div",B:"ytp-ad-info-dialog-feedback-options"},{S:"div",B:"ytp-ad-feedback-dialog-confirm-container",W:[{S:"button",B:"ytp-ad-feedback-dialog-cancel-button",
b9:"{{cancelLabel}}"},{S:"button",B:"ytp-ad-feedback-dialog-confirm-button",b9:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",N,y,w);this.j=[];this.J=null;this.Z=this.hW("ytp-ad-feedback-dialog-cancel-button");this.D=this.hW("ytp-ad-feedback-dialog-confirm-button");this.Kh=this.hW("ytp-ad-info-dialog-feedback-options");this.i9=this.hW("ytp-ad-feedback-dialog-title");this.K=this.N=null;this.hide()};
x7M=function(e,N){var y=N.cancelRenderer&&N.cancelRenderer.buttonRenderer||null;y&&(e.J=new Vv(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,["ytp-ad-feedback-dialog-close-button"],"button"),g.Q(e,e.J),e.J.init(TV("button"),y,e.macros),e.J.listen("click",e.j7,e),e.J.yB(e.element));N.title&&(y=g.SY(N.title),e.updateValue("title",y));N.reasonsTitle&&(y=g.SY(N.reasonsTitle),e.updateValue("reasonsTitle",y));N.reasons&&u6F(e,N.reasons);N.cancelLabel&&(y=g.SY(N.cancelLabel),e.updateValue("cancelLabel",
y),g.PE(e.Z,"click",function(){return e.j7()}));
N.confirmLabel&&(y=g.SY(N.confirmLabel),e.updateValue("confirmLabel",y),g.PE(e.D,"click",function(){return qm0(e)}));
N.undoRenderer&&Zln(e,N.undoRenderer)};
u6F=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){var w=y.value;y=w.reason;if(y==null)g.uA(Error("AdFeedbackReason.reason was not set."));else if(w=w.endpoint,w==null)g.uA(Error("AdFeedbackReason.endpoint was not set."));else{y=new Wq(y,w);g.Q(e,y);w=e.Kh;var E=y.ut();w.appendChild(E);e.j.push(y)}}};
Zln=function(e,N){if(N=N&&N.buttonRenderer||null)N.serviceEndpoint?(e.N=new Vv(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.Q(e,e.N),e.N.init(TV("ad-feedback-undo-mute-button"),N,e.macros),e.N.listen("click",e.jft,e),e.N.yB(e.i9)):g.uA(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
qm0=function(e){var N=e.j.filter(function(y){return y.isChecked()});
N.length!==0&&(N=N[0].getCommand(),e.layoutId?e.Y1.executeCommand(N,e.layoutId):g.t0(Error("Missing layoutId for ad feedback dialog.")),e.api.onAdUxClicked("ad-feedback-dialog-confirm-button",e.layoutId),e.publish("a"),e.hide())};
Wq=function(e,N){this.N=N;this.J=new g.Mu({S:"label",B:"ytp-ad-feedback-dialog-reason-label",W:[{S:"input",B:"ytp-ad-feedback-dialog-reason-input",V:{type:"radio",name:"feedback-reason-group"}},{S:"span",B:"ytp-ad-feedback-dialog-reason-text",b9:g.SY(e)}]});this.K=this.J.hW("ytp-ad-feedback-dialog-reason-input")};
OZ=function(e,N,y,w){nT.call(this,e,N,y,w,[],"ad-mute-confirm-dialog")};
RM=function(e,N,y,w,E){lj.call(this,e,{S:"div",B:"ytp-ad-info-dialog-background",W:[{S:"div",B:"ytp-ad-info-dialog-container",W:[{S:"div",B:"ytp-ad-info-dialog-form",V:{role:"dialog",tabindex:"-1"},W:[{S:"div",B:"ytp-ad-info-dialog-title",b9:"{{title}}"},{S:"ul",B:"ytp-ad-info-dialog-ad-reasons"},{S:"div",B:"ytp-ad-info-dialog-message"},{S:"div",B:"ytp-ad-info-dialog-mute-container"},{S:"div",B:"ytp-ad-info-dialog-confirm-container",W:[{S:"button",B:"ytp-ad-info-dialog-confirm-button",b9:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",N,y,w);this.J=this.N=null;this.D=this.hW("ytp-ad-info-dialog-confirm-button");this.Ut=this.hW("ytp-ad-info-dialog-mute-container");this.Bk=this.hW("ytp-ad-info-dialog-message");this.aq=this.hW("ytp-ad-info-dialog-ad-reasons");this.j=this.K=null;this.i9=E;this.Z=null;this.Zl=!1;this.Kh=null;this.hide()};
jv5=function(e,N){if(N=N.content&&N.content.adFeedbackRenderer||null)e.N=new KT(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1),g.Q(e,e.N),e.N.init(TV("ad-feedback-dialog"),N,e.macros),e.N.yB(e.i9),e.N.subscribe("a",function(){return e.publish("c")})};
n$5=function(e,N){if(N=N.content&&N.content.confirmDialogRenderer||null)e.j=new OZ(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1),g.Q(e,e.j),e.j.init(TV("ad-mute-confirm-dialog"),N,e.macros),e.j.yB(e.i9),e.j.subscribe("b",function(){return e.publish("c")})};
Qvn=function(e){e.J&&e.J.listen("click",e.Pb,e);g.PE(e.D,"click",function(){return e.Pb()})};
GV=function(e,N,y,w,E,A,T){Zh.call(this,e,N,y,w,A===void 0?!0:A,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",T===void 0?!1:T);this.J=null;this.j=E;this.hide()};
HlP=function(e,N,y){N=N.dialog&&g.m(N.dialog,m7P)||null;N==null?g.t0(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(e.J=new RM(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.j),g.Q(e,e.J),e.J.init(TV("ad-info-dialog"),N,y),e.J.yB(e.j),e.J.subscribe("d",function(){return e.publish("f")}),e.J.subscribe("c",function(){return e.publish("e")}))};
Ol5=function(e,N,y){e.button==null?g.t0(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(e.N&&g.pi(e.N.element,"ytp-ad-info-hover-text-short"),(N=N&&N.serviceEndpoint&&g.m(N.serviceEndpoint,K1M)||null)?(HlP(e,N,y),e.button.listen("click",function(){e.J&&!e.J.Og&&(e.J.show(),W1n(e))})):e.button.listen("click",function(){return W1n(e)}))};
W1n=function(e){e.api.onAdUxClicked("ad-info-icon-button",e.layoutId)};
UZ=function(e,N,y,w,E,A){lj.call(this,e,{S:"div",B:"ytp-ad-text"},A===void 0?"ad-text":A,N,y,w,E===void 0?null:E);this.J=null;this.hide()};
LT=function(e,N){N&&g.AL(e.element,F3(e.J,N))};
sZ=function(e,N,y,w,E,A,T){lj.call(this,e,N,y,w,E,A);this.J=T;g.Q(this,this.J);this.Zl=this.D=-1};
aM=function(e){e.J&&e.D===-1&&(e.D=e.J.subscribe("h",e.t3,e),e.Zl=e.J.subscribe("g",e.w2,e),e.t3())};
eQ=function(e){e.J!=null&&e.D!==-1&&(e.J.qr(e.D),e.J.qr(e.Zl),e.Zl=-1,e.D=-1)};
g.NE=function(e,N,y,w,E,A){g.x.call(this);this.element=e;this.state=null;y||e.hide();this.N=N;this.K=w===void 0?N:w;this.J=A;this.onHidden=E;this.delay=new g.e6(this.aR,0,this);g.Q(this,this.delay)};
yd=function(e,N){e=e.element.element;N?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")};
wh=function(e,N,y,w,E,A){sZ.call(this,e,{S:"div",B:"ytp-ad-preview-slot"},"ad-preview",N,y,w,E);var T=this;this.Ut=-1;this.j=this.api.X().experiments.gP("enable_modern_skip_button_on_web");this.N=new g.Mu({S:"span",B:"ytp-ad-preview-container"});this.j&&this.N.element.classList.add("ytp-ad-preview-container-detached");g.Q(this,this.N);this.K=this.j?new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-preview-text-modern"):new UZ(this.api,this.layoutId,this.interactionLoggingClientData,
this.Y1,"ytp-ad-preview-text");g.Q(this,this.K);this.K.yB(this.N.element);this.Kh=this.j?new g.Mu({S:"span",B:"ytp-ad-preview-image-modern"}):new g.Mu({S:"span",B:"ytp-ad-preview-image"});g.Q(this,this.Kh);this.Z=new jY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.Z);this.Z.yB(this.Kh.element);this.Kh.yB(this.N.element);this.N.yB(this.element);this.i9=new g.NE(this.N,400,!1,100,function(){return T.hide()});
g.Q(this,this.i9);this.aq=0;this.Bk=!1;this.VB=A;this.hide()};
Ez=function(e){e.i9.show(100);e.show()};
AF=function(e,N,y,w,E,A){sZ.call(this,e,{S:"div",dP:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{S:"div",B:"ytp-flyout-cta-icon-container"},{S:"div",B:"ytp-flyout-cta-body",W:[{S:"div",B:"ytp-flyout-cta-text-container",W:[{S:"div",B:"ytp-flyout-cta-headline-container"},{S:"div",B:"ytp-flyout-cta-description-container"}]},{S:"div",B:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",N,y,w,E);this.K=new jY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-flyout-cta-icon");
g.Q(this,this.K);this.K.yB(this.hW("ytp-flyout-cta-icon-container"));this.K.element.classList.add("ytp-flyout-cta-icon-rounded");this.Z=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-flyout-cta-headline");g.Q(this,this.Z);this.Z.yB(this.hW("ytp-flyout-cta-headline-container"));this.j=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-flyout-cta-description");g.Q(this,this.j);this.j.yB(this.hW("ytp-flyout-cta-description-container"));e=["ytp-flyout-cta-action-button"];
this.api.X().T("web_modern_buttons")&&e.push("ytp-flyout-cta-action-button-rounded");this.N=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,e);g.Q(this,this.N);this.N.yB(this.hW("ytp-flyout-cta-action-button-container"));this.N.element.setAttribute("tabIndex","-1");OH(this.N.element);this.Kh=null;this.i9=0;this.aq=A;this.hide()};
TF=function(e,N,y,w,E){lj.call(this,e,{S:"div",B:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",N,y,w,E===void 0?null:E);var A=this;this.J=null;this.K=new Qv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-instream-user-sentiment-like-button"]);g.Q(this,this.K);this.K.yB(this.element);this.N=new Qv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-instream-user-sentiment-dislike-button"]);g.Q(this,this.N);this.N.yB(this.element);
this.j=new g.NE(this,400,!1,500,function(){return A.hide()});
g.Q(this,this.j);this.hide()};
JF=function(e,N,y,w,E,A){E=E===void 0?0:E;A=A===void 0?!1:A;g.x.call(this);this.N=e;this.K=!1;this.D=w;this.Ng=A;this.Z=!1;this.J=null;N>0&&(this.J=new g.e6(this.s9,N,this),g.Q(this,this.J));this.L=new g.e6(this.s9,y,this);g.Q(this,this.L);this.U=iKM(this.N,E,1,w);g.Q(this,this.U);this.G=iKM(this.N,0,w,1);g.Q(this,this.G);this.j=new iY;g.Q(this,this.j)};
pR=function(e,N,y){this.N=e;this.isAsync=N;this.J=y};
RbE=function(e){switch(e){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:wa(e,"unknown result type")}};
GvM=function(e,N){var y=1;e.isTrusted===!1&&(y=0);Ua("ISDSTAT",y);CR(y,"i.s_",{triggerContext:"sk",metadata:N});return y};
U7F=function(e,N){var y=[];N?N.isTrusted===!0?y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):N.isTrusted===!1?y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):y.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");CR(0,"a.s_",{metadata:e,states:y});Ua("ASDSTAT",0)};
CR=function(e,N,y){N=L1s[N];var w,E,A={detected:e===0,source:""+N.N+((w=y.triggerContext)!=null?w:"")+((E=y.XN)!=null?E:""),detectionStates:y.states,durationMs:y.nA};y.metadata&&(A.contentCpn=y.metadata.contentCpn,A.adCpn=y.metadata.adCpn);g.$$("biscottiBasedDetection",A);N.J!==void 0&&(y=Number(g.Lb("CATSTAT",0)),N.J!==void 0?(N=N.J,e=RbE(e),e=y&~(3<<N)|e<<N):e=y,Ua("CATSTAT",e))};
rh=function(e){return e?"layout:  "+e.layoutType:""};
$N=function(e,N,y){return e?!0:(g.uA(new g.Gh("Assertion: "+N,y)),!1)};
YN=function(e,N,y,w,E){w=w===void 0?{}:w;if(!E||Math.random()<5E-4){N=N||null;y=y||null;e=e instanceof Error?e:new g.Gh(e);if(e.args)for(var A=g.c(e.args),T=A.next();!T.done;T=A.next())T=T.value,T instanceof Object&&(w=Object.assign({},T,w));w.category="H5 Ads Control Flow";N&&(w.slot=N?"slot:  "+N.slotType:"");y&&(w.layout=rh(y),w.layoutId=y.layoutId);E&&(w.known_error_aggressively_sampled=!0);e.args=[w];g.uA(e)}};
g.ME=function(e,N){this.state=e;this.oldState=N};
lp=function(e,N){return g.G(e.state,N)&&!g.G(e.oldState,N)?1:!g.G(e.state,N)&&g.G(e.oldState,N)?-1:0};
g.FD=function(e,N){return lp(e,N)>0};
SQ=function(e,N,y,w,E,A){sZ.call(this,e,{S:"div",B:"ytp-ad-skip-button-slot"},"skip-button",N,y,w,E);var T=this;this.Kh=null;this.i9=!1;this.Bk=A;this.Z=this.api.X().experiments.gP("enable_modern_skip_button_on_web");this.Ut=!1;this.K=new g.Mu({S:"span",dP:["ytp-ad-skip-button-container"]});this.Z&&this.K.element.classList.add("ytp-ad-skip-button-container-detached");this.api.T("enable_ad_pod_index_autohide")&&this.K.element.classList.add("ytp-ad-skip-button-container--clean-player");g.Q(this,this.K);
this.K.yB(this.element);this.N=this.j=null;this.VB=new g.NE(this.K,500,!1,100,function(){return T.hide()});
g.Q(this,this.VB);this.aq=new JF(this.K.element,15E3,5E3,.5,.5,this.Z);g.Q(this,this.aq);this.hide()};
am_=function(e){e=e.Kh&&e.Kh.adRendererCommands;return(e&&e.clickCommand&&g.m(e.clickCommand,g.o4)&&g.m(e.clickCommand,g.o4).commands||[]).some(function(N){return N.adLifecycleCommand?svJ(N.adLifecycleCommand):!1})};
svJ=function(e){return e.action==="END_LINEAR_AD"||e.action==="END_LINEAR_AD_PLACEMENT"};
bp=function(e,N,y,w,E,A){sZ.call(this,e,{S:"div",B:"ytp-ad-skip-ad-slot"},"skip-ad",N,y,w,E);this.Kh=A;this.j=!1;this.Z=0;this.K=this.N=null;this.hide()};
eW9=function(e,N){e.j||(e.j=!0,e.N&&(N?e.N.i9.hide():e.N.hide()),N?(e=e.K,e.VB.show(),e.show()):e.K.show())};
hF=function(e,N,y,w){Vv.call(this,e,N,y,w,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
c2=function(e,N,y,w,E,A,T){A=A===void 0?!1:A;T=T===void 0?!1:T;lj.call(this,e,{S:"span",B:"ytp-ad-simple-ad-badge"},"simple-ad-badge",N,y,w);this.K=E;this.J=this.hW("ytp-ad-simple-ad-badge");(this.N=A)&&this.J.classList.add("ytp-ad-simple-ad-badge--clean-player");T&&this.J.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
kN=function(e,N,y,w,E){E=E===void 0?!1:E;JZ.call(this,"player-overlay",e,{},N,w);this.videoAdDurationSeconds=y;this.interactionLoggingClientData=w;this.uC=E};
B2=function(e,N){g.pT.call(this);this.api=e;this.durationMs=N;this.J=null;this.bB=new iY(this);g.Q(this,this.bB);this.N=NoP;this.bB.Y(this.api,"presentingplayerstatechange",this.HO);this.J=this.bB.Y(this.api,"onAdPlaybackProgress",this.HY)};
XD=function(e){g.pT.call(this);this.J=!1;this.Cj=0;this.bB=new iY(this);g.Q(this,this.bB);this.durationMs=e;this.D_=new g.kT(100);g.Q(this,this.D_);this.bB.Y(this.D_,"tick",this.HY);this.N={seekableStart:0,seekableEnd:e/1E3,current:0};this.start()};
g.P2=function(e,N){var y=Math.abs(Math.floor(e)),w=Math.floor(y/86400),E=Math.floor(y%86400/3600),A=Math.floor(y%3600/60);y=Math.floor(y%60);if(N){N="";w>0&&(N+=" "+w+" Days");if(w>0||E>0)N+=" "+E+" Hours";N+=" "+A+" Minutes";N+=" "+y+" Seconds";w=N.trim()}else{N="";w>0&&(N+=w+":",E<10&&(N+="0"));if(w>0||E>0)N+=E+":",A<10&&(N+="0");N+=A+":";y<10&&(N+="0");w=N+y}return e>=0?w:"-"+w};
g.dh=function(e){return(!("button"in e)||typeof e.button!=="number"||e.button===0)&&!("shiftKey"in e&&e.shiftKey)&&!("altKey"in e&&e.altKey)&&!("metaKey"in e&&e.metaKey)&&!("ctrlKey"in e&&e.ctrlKey)};
I4=function(e,N,y,w,E,A,T){sZ.call(this,e,{S:"span",B:T?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",N,y,w,E);this.videoAdDurationSeconds=A;this.N=null;this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");T&&this.api.X().N&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.T("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"),
Gv&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()};
v2=function(e,N,y,w){UZ.call(this,e,N,y,w,"ytp-video-ad-top-bar-title","ad-title");e.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")};
zF=function(e){this.content=e.content;if(e.commandRuns){e=g.c(e.commandRuns);for(var N=e.next();!N.done;N=e.next())N=N.value,this.loggingDirectives=g.m(N,yxH),N.onTap&&(this.interaction={onTap:N.onTap})}};
ip=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ad-simple-attributed-string"},"ad-simple-attributed-string",N,y,w);this.hide()};
DY=function(e,N,y,w,E){lj.call(this,e,{S:"span",B:E?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",N,y,w);this.N=E;this.adBadgeText=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);this.adBadgeText.yB(this.element);g.Q(this,this.adBadgeText);E?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.T("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),Gv&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))):
this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
gh=function(e,N,y,w,E){lj.call(this,e,{S:"span",B:"ytp-ad-pod-index"},"ad-pod-index",N,y,w);this.N=E;this.api.X().N&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.T("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),Gv&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()};
Vd=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",N,y,w);this.hide()};
fR=function(e,N){this.N=e;this.J=N};
tF=function(e,N,y){if(!e.getLength())return y!=null?y:Infinity;e=(N-e.N)/e.getLength();return g.Ja(e,0,1)};
up=function(e,N,y,w){w=w===void 0?!1:w;g.Mu.call(this,{S:"div",B:"ytp-ad-persistent-progress-bar-container",W:[{S:"div",B:"ytp-ad-persistent-progress-bar"}]});this.api=e;this.N=N;this.K=y;w&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.Q(this,this.N);this.progressBar=this.hW("ytp-ad-persistent-progress-bar");this.J=-1;this.Y(e,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
qE=function(e,N,y,w,E,A){lj.call(this,e,{S:"div",B:"ytp-ad-player-overlay",W:[{S:"div",B:"ytp-ad-player-overlay-flyout-cta"},{S:"div",B:"ytp-ad-player-overlay-instream-info"},{S:"div",B:"ytp-ad-player-overlay-skip-or-preview"},{S:"div",B:"ytp-ad-player-overlay-progress-bar"},{S:"div",B:"ytp-ad-player-overlay-instream-user-sentiment"},{S:"div",B:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",N,y,w);this.Kh=A;this.Z=this.hW("ytp-ad-player-overlay-flyout-cta");this.Z.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.J=this.hW("ytp-ad-player-overlay-instream-info");this.j=null;wiJ(this)&&(e=L9("div"),g.pi(e,"ytp-ad-player-overlay-top-bar-gradients"),this.api.T("disable_ad_preview_for_instream_ads")&&g.pi(e,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),N=this.J,N.parentNode&&N.parentNode.insertBefore(e,N),(N=this.api.getVideoData(2))&&N.isListed&&N.title&&(y=new v2(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),y.yB(e),y.init(TV("ad-title"),{text:N.title},this.macros),g.Q(this,
y)),this.j=e);this.K=null;this.D=this.hW("ytp-ad-player-overlay-skip-or-preview");this.Zl=this.hW("ytp-ad-player-overlay-progress-bar");this.aq=this.hW("ytp-ad-player-overlay-instream-user-sentiment");this.i9=this.hW("ytp-ad-player-overlay-ad-disclosure-banner");this.N=E;g.Q(this,this.N);this.hide()};
wiJ=function(e){e=e.api.X();return g.ZY(e)&&e.N};
xN=function(e,N,y){var w={};N&&(w.v=N);y&&(w.list=y);e={name:e,locale:void 0,feature:void 0};for(var E in w)e[E]=w[E];w=g.Qb("/sharing_services",e);g.mK(w)};
g.jQ=function(e){e&=16777215;var N=[(e&16711680)>>16,(e&65280)>>8,e&255];e=N[0];var y=N[1];N=N[2];e=Number(e);y=Number(y);N=Number(N);if(e!=(e&255)||y!=(y&255)||N!=(N&255))throw Error('"('+e+","+y+","+N+'") is not a valid RGB color');y=e<<16|y<<8|N;return e<16?"#"+(16777216|y).toString(16).slice(1):"#"+y.toString(16)};
nR=function(e){this.J=new VE(e)};
Ep5=function(){var e=!1;try{e=!!window.sessionStorage.getItem("session_logininfo")}catch(N){e=!0}return(g.Lb("INNERTUBE_CLIENT_NAME")==="WEB"||g.Lb("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&e};
Qd=function(e){if(g.Lb("LOGGED_IN",!0)&&Ep5()){var N=g.Lb("VALID_SESSION_TEMPDATA_DOMAINS",[]);var y=g.uB(window.location.href);y&&N.push(y);y=g.uB(e);g.Gw(N,y)||!y&&c_(e,"/")?(N=q0(e),(N=oY5(N))?(N=gh5(N),N=(N=g.jH(N)||null)?AE(N):{}):N=null):N=null;N==null&&(N={});y=N;var w=void 0;Ep5()?(w||(w=g.Lb("LOGIN_INFO")),w?(y.session_logininfo=w,y=!0):y=!1):y=!1;y&&zO(e,N)}};
g.AxM=function(e){var N=N===void 0?{}:N;var y=y===void 0?"":y;var w=w===void 0?window:w;e=g.Qb(e,N);Qd(e);y=g.Ds(e+y);w=w.location;y=gG(y);y!==void 0&&(w.href=y)};
g.mQ=function(e,N,y){N=N===void 0?{}:N;y=y===void 0?!1:y;var w=g.Lb("EVENT_ID");w&&(N.ei||(N.ei=w));N&&zO(e,N);y||(Qd(e),g.AxM(e))};
g.H2=function(e,N,y,w,E){E=E===void 0?!1:E;y&&zO(e,y);y=g.Ds(e);var A=g.vP(y);e!=A&&yN(Error("Unsafe window.open URL: "+e));e=A;N=N||sK(e).toString(36);try{if(E){E=e;E=pL0(E);Qd(E);g.qm(window,E,N,"attributionsrc");return}}catch(T){g.eH(T)}Qd(e);g.qm(window,y,N,w)};
Ton=function(e){KR=e};
Jxs=function(e){W2=e};
pi5=function(e){Oz=e};
rxJ=function(){Ct0=Oz=W2=KR=null};
YE0=function(){var e=e===void 0?window.location.href:e;if(g.Xj("kevlar_disable_theme_param"))return null;var N=D9(g.to(5,e));if(g.Xj("enable_dark_theme_only_on_shorts")&&N!=null&&N.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var y=g.JE(e).theme;return $90.get(y)||null}catch(w){}return null};
R4=function(){this.J={};if(this.N=lSn()){var e=g.jH("CONSISTENCY");e&&M7M(this,{encryptedTokenJarContents:e})}};
M7M=function(e,N){if(N.encryptedTokenJarContents&&(e.J[N.encryptedTokenJarContents]=N,typeof N.expirationSeconds==="string")){var y=Number(N.expirationSeconds);setTimeout(function(){delete e.J[N.encryptedTokenJarContents]},y*1E3);
e.N&&g.x3("CONSISTENCY",N.encryptedTokenJarContents,y,void 0,!0)}};
Uz=function(){this.N=-1;var e=g.Lb("LOCATION_PLAYABILITY_TOKEN");g.Lb("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=GF(this))&&(e=this.localStorage.get("yt-location-playability-token"));e&&(this.locationPlayabilityToken=e,this.J=void 0)};
GF=function(e){return e.localStorage===void 0?new Ag("yt-client-location"):e.localStorage};
g.LR=function(e,N,y){N=N===void 0?!1:N;y=y===void 0?!1:y;var w=g.Lb("INNERTUBE_CONTEXT");if(!w)return g.t0(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};w=g.gi(w);g.Xj("web_no_tracking_params_in_shell_killswitch")||delete w.clickTracking;w.client||(w.client={});var E=w.client;E.clientName==="MWEB"&&E.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(E.clientFormFactor=g.Lb("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");E.screenWidthPoints=window.innerWidth;E.screenHeightPoints=
window.innerHeight;E.screenPixelDensity=Math.round(window.devicePixelRatio||1);E.screenDensityFloat=window.devicePixelRatio||1;E.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var A=A===void 0?!1:A;g.m6();var T="USER_INTERFACE_THEME_LIGHT";g.HE(0,165)?T="USER_INTERFACE_THEME_DARK":g.HE(0,174)?T="USER_INTERFACE_THEME_LIGHT":!g.Xj("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&
(T="USER_INTERFACE_THEME_DARK");A=A?T:YE0()||T;E.userInterfaceTheme=A;if(!N){if(A=NeJ())E.connectionType=A;g.Xj("web_log_effective_connection_type")&&(A=wD3())&&(w.client.effectiveConnectionType=A)}var p;if(g.Xj("web_log_memory_total_kbytes")&&((p=g.xJ.navigator)==null?0:p.deviceMemory)){var C;p=(C=g.xJ.navigator)==null?void 0:C.deviceMemory;w.client.memoryTotalKbytes=""+p*1E6}g.Xj("web_gcf_hashes_innertube")&&(A=rT0())&&(C=A.coldConfigData,p=A.coldHashData,A=A.hotHashData,w.client.configInfo=w.client.configInfo||
{},C&&(w.client.configInfo.coldConfigData=C),p&&(w.client.configInfo.coldHashData=p),A&&(w.client.configInfo.hotHashData=A));C=g.JE(g.xJ.location.href);!g.Xj("web_populate_internal_geo_killswitch")&&C.internalcountrycode&&(E.internalGeo=C.internalcountrycode);E.clientName==="MWEB"||E.clientName==="WEB"?(E.mainAppWebInfo={graftUrl:g.xJ.location.href},g.Xj("kevlar_woffle")&&Rh5.instance&&(C=Rh5.instance,E.mainAppWebInfo.pwaInstallabilityStatus=!C.J&&C.N?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),E.mainAppWebInfo.webDisplayMode=ju(),E.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):E.clientName==="TVHTML5"&&(!g.Xj("web_lr_app_quality_killswitch")&&(C=g.Lb("LIVING_ROOM_APP_QUALITY"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{appQuality:C})),C=g.Lb("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(E.tvAppInfo=Object.assign(E.tvAppInfo||{},{certificationScope:C}));if(!g.Xj("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var r=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(Z){}r=void 0}r&&(E.timeZone=r)}(r=d2())?E.experimentsToken=r:delete E.experimentsToken;r=Iy();R4.instance||(R4.instance=new R4);w.request=Object.assign({},w.request,{internalExperimentFlags:r,consistencyTokenJars:g.B4(R4.instance.J)});!g.Xj("web_prequest_context_killswitch")&&(r=g.Lb("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(w.request.externalPrequestContext=r);E=g.m6();r=g.HE(0,58);E=E.get("gsml","");w.user=Object.assign({},
w.user);r&&(w.user.enableSafetyMode=r);E&&(w.user.lockedSafetyMode=!0);g.Xj("warm_op_csn_cleanup")?y&&(N=g.It())&&(w.clientScreenNonce=N):!N&&(N=g.It())&&(w.clientScreenNonce=N);e&&(w.clickTracking={clickTrackingParams:e});if(e=g.nM("yt.mdx.remote.remoteClient_"))w.remoteClient=e;Uz.getInstance().setLocationOnInnerTubeContext(w);try{var Y=Fj(),M=Y.bid;delete Y.bid;w.adSignalsInfo={params:[],bid:M};for(var l=g.c(Object.entries(Y)),F=l.next();!F.done;F=l.next()){var S=g.c(F.value),k=S.next().value,
X=S.next().value;Y=k;M=X;e=void 0;(e=w.adSignalsInfo.params)==null||e.push({key:Y,value:""+M})}var d,v;if(((d=w.client)==null?void 0:d.clientName)==="TVHTML5"||((v=w.client)==null?void 0:v.clientName)==="TVHTML5_UNPLUGGED"){var V=g.Lb("INNERTUBE_CONTEXT");V.adSignalsInfo&&(w.adSignalsInfo.advertisingId=V.adSignalsInfo.advertisingId,w.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",w.adSignalsInfo.limitAdTracking=V.adSignalsInfo.limitAdTracking)}}catch(Z){g.t0(Z)}return w};
SE9=function(e,N){if(!e)return!1;var y,w=(y=g.m(e,lx0))==null?void 0:y.signal;if(w&&N.D6)return!!N.D6[w];var E;if((y=(E=g.m(e,FKP))==null?void 0:E.request)&&N.ea)return!!N.ea[y];for(var A in e)if(N.BX[A])return!0;return!1};
opM=function(e){var N={"Content-Type":"application/json"};g.Lb("EOM_VISITOR_DATA")?N["X-Goog-EOM-Visitor-Id"]=g.Lb("EOM_VISITOR_DATA"):g.Lb("VISITOR_DATA")&&(N["X-Goog-Visitor-Id"]=g.Lb("VISITOR_DATA"));N["X-Youtube-Bootstrap-Logged-In"]=g.Lb("LOGGED_IN",!1);g.Lb("DEBUG_SETTINGS_METADATA")&&(N["X-Debug-Settings-Metadata"]=g.Lb("DEBUG_SETTINGS_METADATA"));e!=="cors"&&((e=g.Lb("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(N["X-Youtube-Client-Name"]=e),(e=g.Lb("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(N["X-Youtube-Client-Version"]=
e),(e=g.Lb("CHROME_CONNECTED_HEADER"))&&(N["X-Youtube-Chrome-Connected"]=e),(e=g.Lb("DOMAIN_ADMIN_STATE"))&&(N["X-Youtube-Domain-Admin-State"]=e),g.Lb("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(e=g.Lb("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(N["X-YouTube-Lava-Device-Context"]=e));return N};
b65=function(){this.J={}};
sz=function(){this.mappings=new b65};
a4=function(e){return function(){return new e}};
cx5=function(e){var N=N===void 0?"UNKNOWN_INTERFACE":N;if(e.length===1)return e[0];var y=hWs[N];if(y){y=new RegExp(y);for(var w=g.c(e),E=w.next();!E.done;E=w.next())if(E=E.value,y.exec(E))return E}var A=[];Object.entries(hWs).forEach(function(T){var p=g.c(T);T=p.next().value;p=p.next().value;N!==T&&A.push(p)});
y=new RegExp(A.join("|"));e.sort(function(T,p){return T.length-p.length});
w=g.c(e);for(E=w.next();!E.done;E=w.next())if(E=E.value,!y.exec(E))return E;return e[0]};
g.eZ=function(e){return"/youtubei/v1/"+cx5(e)};
NY=function(){};
yQ=function(){};
ly=function(){};
Fm=function(e){return g.nM("ytcsi."+(e||"")+"data_")||ki9(e)};
BoM=function(){var e=Fm();e.info||(e.info={});return e.info};
SZ=function(e){e=Fm(e);e.metadata||(e.metadata={});return e.metadata};
og=function(e){e=Fm(e);e.tick||(e.tick={});return e.tick};
by=function(e){e=Fm(e);if(e.gel){var N=e.gel;N.gelInfos||(N.gelInfos={});N.gelTicks||(N.gelTicks={})}else e.gel={gelTicks:{},gelInfos:{}};return e.gel};
Xin=function(e){e=by(e);e.gelInfos||(e.gelInfos={});return e.gelInfos};
hy=function(e){var N=Fm(e).nonce;N||(N=g.PX(16),Fm(e).nonce=N);return N};
ki9=function(e){var N={tick:{},info:{}};g.jM("ytcsi."+(e||"")+"data_",N);return N};
cw=function(){var e=g.nM("ytcsi.debug");e||(e=[],g.jM("ytcsi.debug",e),g.jM("ytcsi.reference",{}));return e};
ki=function(e){e=e||"";var N=PtF();if(N[e])return N[e];var y=cw(),w={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};y.push(w);return N[e]=w};
d9M=function(e){e=e||"";var N=PtF();N[e]&&delete N[e];var y=cw(),w={timerName:e,info:{},tick:{},span:{},jspbInfo:[]};y.push(w);N[e]=w};
PtF=function(){var e=g.nM("ytcsi.reference");if(e)return e;cw();return g.nM("ytcsi.reference")};
Bw=function(e){return IxJ[e]||"LATENCY_ACTION_UNKNOWN"};
Xm=function(e,N){FG.call(this,1,arguments);this.D_=N};
Pw=function(){this.J=0};
dz=function(){Pw.instance||(Pw.instance=new Pw);return Pw.instance};
vw=function(e,N){Ig[N]=Ig[N]||{count:0};var y=Ig[N];y.count++;y.time=(0,g.iC)();e.J||(e.J=g.e1(0,function(){var w=(0,g.iC)(),E;for(E in Ig)Ig[E]&&w-Ig[E].time>6E4&&delete Ig[E];e&&(e.J=0)},5E3));
return y.count>5?(y.count===6&&Math.random()*1E5<1&&(y=new g.Gh("CSI data exceeded logging limit with key",N.split("_")),N.indexOf("plev")>=0||g.uA(y)),!0):!1};
vp0=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
zW1=function(){var e;if(g.Xj("csi_use_performance_navigation_timing")||g.Xj("csi_use_performance_navigation_timing_tvhtml5")){var N,y,w,E=zH==null?void 0:(e=zH.getEntriesByType)==null?void 0:(N=e.call(zH,"navigation"))==null?void 0:(y=N[0])==null?void 0:(w=y.toJSON)==null?void 0:w.call(y);E?(E.requestStart=iy(E.requestStart),E.responseEnd=iy(E.responseEnd),E.redirectStart=iy(E.redirectStart),E.redirectEnd=iy(E.redirectEnd),E.domainLookupEnd=iy(E.domainLookupEnd),E.connectStart=iy(E.connectStart),
E.connectEnd=iy(E.connectEnd),E.responseStart=iy(E.responseStart),E.secureConnectionStart=iy(E.secureConnectionStart),E.domainLookupStart=iy(E.domainLookupStart),E.isPerformanceNavigationTiming=!0,e=E):e=zH.timing}else e=g.Xj("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(zH.timing)):zH.timing;return e};
iy=function(e){return Math.round(Dn()+e)};
Dn=function(){return(g.Xj("csi_use_time_origin")||g.Xj("csi_use_time_origin_tvhtml5"))&&zH.timeOrigin?Math.floor(zH.timeOrigin):zH.timing.navigationStart};
VQ=function(e,N){gz("_start",e,N)};
fV=function(e,N){if(!g.Xj("web_csi_action_sampling_enabled")||!Fm(N).actionDisabled){var y=ki(N||"");la(y.info,e);e.loadType&&(y=e.loadType,SZ(N).loadType=y);la(Xin(N),e);y=hy(N);N=Fm(N).cttAuthInfo;dz().info(e,y,N)}};
i6H=function(){var e,N,y,w;return((w=ua().resolve(new Dc(ro))==null?void 0:(e=$p())==null?void 0:(N=e.loggingHotConfig)==null?void 0:(y=N.csiConfig)==null?void 0:y.debugTicks)!=null?w:[]).map(function(E){return Object.values(E)[0]})};
gz=function(e,N,y){if(!g.Xj("web_csi_action_sampling_enabled")||!Fm(y).actionDisabled){var w=hy(y),E;if(E=g.Xj("web_csi_debug_sample_enabled")&&w){(ua().resolve(new Dc(ro))==null?0:$p())&&!D99&&(D99=!0,gz("gcfl",(0,g.iC)(),y));var A,T,p;E=(ua().resolve(new Dc(ro))==null?void 0:(A=$p())==null?void 0:(T=A.loggingHotConfig)==null?void 0:(p=T.csiConfig)==null?void 0:p.debugSampleWeight)||0;if(A=E!==0)b:{A=i6H();if(A.length>0)for(T=0;T<A.length;T++)if(e===A[T]){A=!0;break b}A=!1}A?(E=eb_(w)%E!==0,Fm(y).debugTicksExcludedLogged||
(A={},A.debugTicksExcluded=E,fV(A,y)),Fm(y).debugTicksExcludedLogged=!0):E=!1}if(!E){if(e[0]!=="_"&&(E=e,A=N,zH.mark))if(E.startsWith("mark_")||(E="mark_"+E),y&&(E+=" ("+y+")"),A===void 0||g.Xj("web_csi_disable_alt_time_performance_mark"))zH.mark(E);else{A=g.Xj("csi_use_performance_navigation_timing")||g.Xj("csi_use_performance_navigation_timing_tvhtml5")?A-zH.timeOrigin:A-(zH.timeOrigin||zH.timing.navigationStart);try{zH.mark(E,{startTime:A})}catch(C){}}E=ki(y||"");E.tick[e]=N||(0,g.iC)();if(E.callback&&
E.callback[e])for(E=g.c(E.callback[e]),A=E.next();!A.done;A=E.next())A=A.value,A();E=by(y);E.gelTicks&&(E.gelTicks[e]=!0);A=og(y);E=N||(0,g.iC)();g.Xj("log_repeated_ytcsi_ticks")?e in A||(A[e]=E):A[e]=E;A=Fm(y).cttAuthInfo;e==="_start"?(e=dz(),vw(e,"baseline_"+w)||g.$$("latencyActionBaselined",{clientActionNonce:w},{timestamp:N,cttAuthInfo:A})):dz().tick(e,w,N,A);gp9(y);return E}}};
V7F=function(){var e,N=(e=zH.getEntriesByType)==null?void 0:e.call(zH,"mark");N&&N.forEach(function(y){if(y.name.startsWith("mark_")){var w;(w=zH.clearMarks)==null||w.call(zH,y.name)}})};
fxH=function(){switch(taP()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
t7F=function(e){function N(A,T,p){T=T.match("_rid")?T.split("_rid")[0]:T;typeof p==="number"&&(p=JSON.stringify(p));A.requestIds?A.requestIds.push({endpoint:T,id:p}):A.requestIds=[{endpoint:T,id:p}]}
var y={};e=g.c(Object.entries(e));for(var w=e.next();!w.done;w=e.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;switch(w){case "GetBrowse_rid":N(y,w,E);break;case "GetGuide_rid":N(y,w,E);break;case "GetHome_rid":N(y,w,E);break;case "GetPlayer_rid":N(y,w,E);break;case "GetSearch_rid":N(y,w,E);break;case "GetSettings_rid":N(y,w,E);break;case "GetTrending_rid":N(y,w,E);break;case "GetWatchNext_rid":N(y,w,E);break;case "yt_red":y.isRedSubscriber=!!E;break;case "yt_ad":y.isMonetized=!!E}}return y};
uGs=function(e,N){e=document.querySelector(e);if(!e)return!1;var y="",w=e.nodeName;w==="SCRIPT"?(y=e.src,y||(y=e.getAttribute("data-timing-href"))&&(y=window.location.protocol+y)):w==="LINK"&&(y=e.href);Zs(document)&&e.setAttribute("nonce",Zs(document));return y?(e=zH.getEntriesByName(y))&&e[0]&&(e=e[0],y=Dn(),gz("rsf_"+N,y+Math.round(e.fetchStart)),gz("rse_"+N,y+Math.round(e.responseEnd)),e.transferSize!==void 0&&e.transferSize===0)?!0:!1:!1};
qEE=function(){var e=window.location.protocol,N=zH.getEntriesByType("resource");N=g.CG(N,function(y){return y.name.indexOf(e+"//fonts.gstatic.com/s/")===0});
(N=vQ(N,function(y,w){return w.duration>y.duration?w:y},{duration:0}))&&N.startTime>0&&N.responseEnd>0&&(gz("wffs",iy(N.startTime)),gz("wffe",iy(N.responseEnd)))};
Z60=function(e,N,y){zH&&zH.measure&&(e.startsWith("measure_")||(e="measure_"+e),y?zH.measure(e,N,y):N?zH.measure(e,N):zH.measure(e))};
x90=function(e){var N=ty("aft",e);if(N)return N;N=g.Lb((e||"")+"TIMING_AFT_KEYS",["ol"]);for(var y=N.length,w=0;w<y;w++){var E=ty(N[w],e);if(E)return E}return NaN};
uy=function(e,N){g.jM("ytglobal.timing"+(N||"")+"ready_",e)};
ty=function(e,N){if(e=og(N)[e])return typeof e==="number"?e:e[e.length-1]};
gp9=function(e){var N=ty("_start",e),y=x90(e),w=g.Xj("enable_cow_info_csi")||!jeE;N&&y&&w&&(bt(npJ,new Xm(Math.round(y-N),e)),jeE=!0)};
Qe3=function(){if(zH.getEntriesByType){var e=zH.getEntriesByType("paint");if(e=g.Ok(e,function(y){return y.name==="first-paint"}))return iy(e.startTime)}var N;
g.Xj("csi_use_performance_navigation_timing")||g.Xj("csi_use_performance_navigation_timing_tvhtml5")?N=zH.getEntriesByType("first-paint")[0].startTime:N=zH.timing.HIP;return N?Math.max(0,N):0};
qY=function(e){ki9(e);m9E();V7F();e||(g.Lb("TIMING_ACTION")&&Ua("PREVIOUS_ACTION",g.Lb("TIMING_ACTION")),Ua("TIMING_ACTION",""))};
H6M=function(){var e=["pbs","pbu"];g.NR(function(){ki("").info.actionType="watch";e&&Ua("TIMING_AFT_KEYS",e);Ua("TIMING_ACTION","watch");var N=t7F(g.Lb("TIMING_INFO",{}));Object.keys(N).length>0&&fV(N);N={isNavigation:!0,actionType:Bw(g.Lb("TIMING_ACTION"))};var y=g.Lb("PREVIOUS_ACTION");y&&(N.previousAction=Bw(y));if(y=g.Lb("CLIENT_PROTOCOL"))N.httpProtocol=y;if(y=g.Lb("CLIENT_TRANSPORT"))N.transportProtocol=y;(y=g.It())&&y!=="UNDEFINED_CSN"&&(N.clientScreenNonce=y);y=fxH();if(y===1||y===-1)N.isVisible=
!0;y=SZ().loadType==="cold";var w=BoM();y||(y=w.yt_lt==="cold");if(y){N.loadType="cold";y=BoM();w=zW1();var E=Dn(),A=g.Lb("CSI_START_TIMESTAMP_MILLIS",0);A>0&&!g.Xj("embeds_web_enable_csi_start_override_killswitch")&&(E=A);E&&(gz("srt",w.responseStart),y.prerender!==1&&VQ(E));y=Qe3();y>0&&gz("fpt",y);y=zW1();y.isPerformanceNavigationTiming&&fV({performanceNavigationTiming:!0},void 0);gz("nreqs",y.requestStart,void 0);gz("nress",y.responseStart,void 0);gz("nrese",y.responseEnd,void 0);y.redirectEnd-
y.redirectStart>0&&(gz("nrs",y.redirectStart,void 0),gz("nre",y.redirectEnd,void 0));y.domainLookupEnd-y.domainLookupStart>0&&(gz("ndnss",y.domainLookupStart,void 0),gz("ndnse",y.domainLookupEnd,void 0));y.connectEnd-y.connectStart>0&&(gz("ntcps",y.connectStart,void 0),gz("ntcpe",y.connectEnd,void 0));y.secureConnectionStart>=Dn()&&y.connectEnd-y.secureConnectionStart>0&&(gz("nstcps",y.secureConnectionStart,void 0),gz("ntcpe",y.connectEnd,void 0));zH&&"getEntriesByType"in zH&&qEE();y=[];if(document.querySelector&&
zH&&zH.getEntriesByName)for(var T in Zn)Zn.hasOwnProperty(T)&&(w=Zn[T],uGs(T,w)&&y.push(w));if(y.length>0)for(N.resourceInfo=[],T=g.c(y),y=T.next();!y.done;y=T.next())N.resourceInfo.push({resourceCache:y.value})}fV(N);N=by();N.preLoggedGelInfos||(N.preLoggedGelInfos=[]);T=N.preLoggedGelInfos;N=Xin();y=void 0;for(w=0;w<T.length;w++)if(E=T[w],E.loadType){y=E.loadType;break}if(SZ().loadType==="cold"&&(N.loadType==="cold"||y==="cold")){y=og();w=by();w=w.gelTicks?w.gelTicks:w.gelTicks={};for(var p in y)if(!(p in
w))if(typeof y[p]==="number")gz(p,ty(p));else if(g.Xj("log_repeated_ytcsi_ticks"))for(E=g.c(y[p]),A=E.next();!A.done;A=E.next())gz(p.slice(1),A.value);p={};y=!1;T=g.c(T);for(w=T.next();!w.done;w=T.next())y=w.value,la(N,y),la(p,y),y=!0;y&&fV(p)}uy(!0);p=g.Lb("TIMING_ACTION");g.nM("ytglobal.timingready_")&&p&&xi()&&x90()&&gp9()})()};
KKM=function(){var e=e===void 0?{}:e;g.NR(function(){xi()&&jZ("aa",void 0,void 0);d9M();qY();uy(!1);e.cttAuthInfo&&(Fm().cttAuthInfo=e.cttAuthInfo);Ua("TIMING_AFT_KEYS",[]);e.hat?g.nV({loadType:"hot"}):g.nV({loadType:"warm"});Ua("TIMING_ACTION","");delete g.Lb("TIMING_INFO",{}).yt_lt;g.NR(VQ)(e.startTime,void 0)})()};
QQ=function(e,N){N=N===void 0?{}:N;g.NR(function(){WK9(e);var y=N.sampleRate;if(!g.Xj("web_csi_action_sampling_enabled")||y===void 0||y<=1)y=!1;else{var w=hy(e);y=eb_(w)%y!==0}y&&(Fm(e).actionDisabled=!0);ki(e||"").info.actionType=e;N.cttAuthInfo&&(Fm(e).cttAuthInfo=N.cttAuthInfo);Ua(e+"TIMING_ACTION",e);g.NR(VQ)(N.startTime,e);y={actionType:Bw(e)};N.CYW&&(y.previousAction=Bw(g.Lb("TIMING_ACTION")));(w=g.It())&&w!=="UNDEFINED_CSN"&&(y.clientScreenNonce=w);g.nV(y,e);uy(!0,e)})()};
WK9=function(e){g.NR(function(){xi(e)&&jZ("aa",void 0,e);d9M(e);qY(e)})()};
xi=function(e){return g.NR(function(){return mo("_start",e)})()};
g.nV=function(e,N,y){g.NR(fV)(e,N,y===void 0?!1:y)};
jZ=function(e,N,y){return g.NR(gz)(e,N,y)};
O6E=function(e){g.NR(Z60)("action_finished",e,void 0)};
mo=function(e,N){return g.NR(function(){var y=og(N);return e in y})()};
Gi5=function(e){if(!g.Xj("universal_csi_network_ticks"))return"";e=D9(g.to(5,e))||"";for(var N=Object.keys(RW_),y=0;y<N.length;y++){var w=N[y];if(e.includes(w))return w}return""};
LKM=function(e){if(!g.Xj("universal_csi_network_ticks"))return function(){};
var N=RW_[e];return N?(Hw(N),function(){var y=g.Xj("universal_csi_network_ticks")?(y=U9F[e])?Hw(y):!1:!1;return y}):function(){}};
Hw=function(e,N){return g.NR(function(){if(mo(e,N))return!1;jZ(e,void 0,N);return!0})()};
KV=function(e,N,y){g.NR(function(){if(!xi(y)||mo(e,y))return!1;jZ(e,N,y);return!0})()};
se1=function(){g.NR(function(){var e=hy();requestAnimationFrame(function(){setTimeout(function(){e===hy()&&jZ("ftl",void 0,void 0)},0)})})()};
Ww=function(e,N,y,w){this.c6=e;this.nN=N;this.J=y;this.j=w;this.K=void 0;this.N=new Map;e.D6||(e.D6={});e.D6=Object.assign({},ax0,e.D6)};
el0=function(e,N,y,w){if(Ww.instance!==void 0){if(w=Ww.instance,e=[e!==w.c6,N!==w.nN,y!==w.J,!1,!1,!1,void 0!==w.K],e.some(function(E){return E}))throw new g.Gh("InnerTubeTransportService is already initialized",e);
}else Ww.instance=new Ww(e,N,y,w)};
Oq=function(e,N,y){var w=w===void 0?lt:w;var E=NWH(e,N);return E?new g.lB(function(A,T){var p,C,r,Y,M;return g.f(function(l){switch(l.J){case 1:return g.D(l,E,2);case 2:p=l.N;C=p.L(N,y,w);if(!C){T(new g.Gh("Error: Failed to build request for command.",N));l.u9(0);break}Qd(C.input);Y=((r=C.bd)==null?void 0:r.mode)==="cors"?"cors":void 0;if(e.J.TY){M=yln(e,C.config,Y);l.u9(4);break}return g.D(l,wX5(e,C.config,Y),5);case 5:M=l.N;case 4:A(E5M(e,C,M)),g.hn(l)}})}):oD(new g.Gh("Error: No request builder found for command.",
N))};
g.Rg=function(e,N,y,w,E){function A(){}
E=E===void 0?{dE:{identity:lt}}:E;var T=T===void 0?!0:T;A=LKM(Gi5(y));N.context||(N.context=g.LR(w,T));return new g.lB(function(p){var C,r,Y,M,l;return g.f(function(F){if(F.J==1)return C=QN(y),r=r2(C)?"same-origin":"cors",e.J.TY?(Y=yln(e,E,r),F.u9(2)):g.D(F,wX5(e,E,r),3);F.J!=2&&(Y=F.N);M=FI1(QN(y));l={input:M,bd:mH(M),Yi:N,config:E};p(E5M(e,l,Y,A));g.hn(F)})})};
TWJ=function(e,N,y){var w;if(N&&!(N==null?0:(w=N.sequenceMetaData)==null?0:w.skipProcessing)&&e.j){w=g.c(Al5);for(var E=w.next();!E.done;E=w.next())E=E.value,e.j[E]&&e.j[E].handleResponse(N,y)}};
E5M=function(e,N,y,w){w=w===void 0?function(){}:w;
var E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn,eM,H,a,h,K,aP,XF,Yw;return g.f(function(v5){switch(v5.J){case 1:v5.u9(2);break;case 3:if((E=v5.N)&&!E.isExpired())return v5.return(Promise.resolve(E.J()));case 2:if(!((A=N)==null?0:(T=A.Yi)==null?0:T.context)){v5.u9(4);break}p=N.Yi.context;v5.u9(5);break;case 5:C=g.c([]),r=C.next();case 8:if(r.done){v5.u9(4);break}Y=r.value;return g.D(v5,Y.IUt(p),9);case 9:r=C.next();v5.u9(8);break;case 4:if((M=e.K)==null||!M.i2h(N.input,N.Yi)){v5.u9(12);break}return g.D(v5,
e.K.dYG(N.input,N.Yi),13);case 13:return l=v5.N,TWJ(e,l,N),v5.return(l);case 12:return(k=(S=N.config)==null?void 0:S.XB)&&e.N.has(k)?F=e.N.get(k):(X=JSON.stringify(N.Yi),V=(v=(d=N.bd)==null?void 0:d.headers)!=null?v:{},N.bd=Object.assign({},N.bd,{headers:Object.assign({},V,y)}),Z=Object.assign({},N.bd),N.bd.method==="POST"&&(Z=Object.assign({},Z,{body:X})),((n=N.config)==null?0:n.Oq9)&&jZ(N.config.Oq9),R=function(){return e.nN.fetch(N.input,Z,N.config)},F=R(),k&&e.N.set(k,F)),g.D(v5,F,14);
case 14:if((O=v5.N)&&"error"in O&&((E9=O)==null?0:(Jn=E9.error)==null?0:Jn.details))for(eM=O.error.details,H=g.c(eM),a=H.next();!a.done;a=H.next())h=a.value,(K=h["@type"])&&JlP.indexOf(K)>-1&&(delete h["@type"],O=h);k&&e.N.has(k)&&e.N.delete(k);((aP=N.config)==null?0:aP.urB)&&jZ(N.config.urB);if(O||(XF=e.K)==null||!XF.xTP(N.input,N.Yi)){v5.u9(15);break}return g.D(v5,e.K.SdP(N.input,N.Yi),16);case 16:O=v5.N;case 15:return TWJ(e,O,N),((Yw=N.config)==null?0:Yw.g9W)&&jZ(N.config.g9W),w(),v5.return(O||
void 0)}})};
NWH=function(e,N){a:{e=e.c6;var y,w=(y=g.m(N,lx0))==null?void 0:y.signal;if(w&&e.D6&&(y=e.D6[w])){var E=y();break a}var A;if((y=(A=g.m(N,FKP))==null?void 0:A.request)&&e.ea&&(A=e.ea[y])){E=A();break a}for(E in N)if(e.BX[E]&&(N=e.BX[E])){E=N();break a}E=void 0}if(E!==void 0)return Promise.resolve(E)};
wX5=function(e,N,y){var w,E,A,T,p,C,r;return g.f(function(Y){if(Y.J==1){A=((w=N)==null?void 0:(E=w.dE)==null?void 0:E.identity)||lt;C=(T=N)==null?void 0:(p=T.dE)==null?void 0:p.sessionIndex;var M=g.S9(e.J.PQ(A,{sessionIndex:C}));return g.D(Y,M,2)}r=Y.N;return Y.return(Promise.resolve(Object.assign({},opM(y),r)))})};
yln=function(e,N,y){var w,E=(N==null?void 0:(w=N.dE)==null?void 0:w.identity)||lt,A;N=N==null?void 0:(A=N.dE)==null?void 0:A.sessionIndex;e=e.J.PQ(E,{sessionIndex:N});return Object.assign({},opM(y),e)};
GH=function(){};
Uq=function(){};
LV=function(e){this.Z=e};
sq=function(){};
ag=function(){};
ey=function(){};
Nf=function(){};
g.ye=function(e,N){var y=g.iE.apply(2,arguments);e=e===void 0?0:e;g.Gh.call(this,N,y);this.errorType=e;Object.setPrototypeOf(this,this.constructor.prototype)};
wv=function(e,N,y){this.J=e;this.N=N;this.K=y};
pX_=function(e,N,y){if(e.J){var w=D9(g.to(5,KY(N,"key")))||"/UNKNOWN_PATH";e.J.start(w)}e=y;g.Xj("wug_networking_gzip_request")&&(e=nrP(y));return new window.Request(N,e)};
g.AC=function(e,N){if(!El){var y=ua();gW(y,{ZT:CaM,SB:wv});var w={BX:{feedbackEndpoint:a4(sq),modifyChannelNotificationPreferenceEndpoint:a4(ag),playlistEditEndpoint:a4(ey),shareEntityEndpoint:a4(LV),subscribeEndpoint:a4(GH),unsubscribeEndpoint:a4(Uq),webPlayerShareEntityServiceEndpoint:a4(Nf)}},E=Uz.getInstance(),A={};E&&(A.client_location=E);e===void 0&&(e=G1F());N===void 0&&(N=y.resolve(CaM));el0(w,N,e,A);gW(y,{ZT:rlJ,aB:Ww.instance});El=y.resolve(rlJ)}return El};
$6H=function(e){var N=new Ys;if(e.interpreterJavascript){var y=iG0(e.interpreterJavascript);y=j$(y).toString();var w=new rq;Sn(w,6,y);JQ(N,rq,1,w)}else e.interpreterUrl&&(y=IG(e.interpreterUrl),y=dG(y).toString(),w=new $s,Sn(w,4,y),JQ(N,$s,2,w));e.interpreterHash&&oL(N,3,e.interpreterHash);e.program&&oL(N,4,e.program);e.globalName&&oL(N,5,e.globalName);e.clientExperimentsStateBlob&&oL(N,7,e.clientExperimentsStateBlob);return N};
T$=function(e){var N={};e=e.split("&");e=g.c(e);for(var y=e.next();!y.done;y=e.next())y=y.value.split("="),y.length===2&&(N[y[0]]=y[1]);return N};
G00=function(){if(g.Xj("bg_st_hr"))return"havuokmhhs-0";var e,N=((e=performance)==null?void 0:e.timeOrigin)||0;return"havuokmhhs-"+Math.floor(N)};
JC=function(e){this.J=e};
YC9=function(){return new Promise(function(e){var N=window.top;N.ntpevasrs!==void 0?e(new JC(N.ntpevasrs)):(N.ntpqfbel===void 0&&(N.ntpqfbel=[]),N.ntpqfbel.push(function(y){e(new JC(y))}))})};
lc_=function(){if(!g.Xj("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Xj("disable_biscotti_fetch_entirely_for_all_web_clients")&&EF()){var e=g.Lb("PLAYER_VARS",{});if(g.zM(e,"privembed",!1)!="1"&&!k1n(e)){var N=function(){p2=!0;"google_ad_status"in window?Ua("DCLKSTAT",1):Ua("DCLKSTAT",2)};
try{g.rW("//static.doubleclick.net/instream/ad_status.js",N)}catch(y){}MS5.push(g.Kk.kB(function(){if(!(p2||"google_ad_status"in window)){try{if(N){var y=""+g.RP(N),w=kk9[y];w&&g.pE(w)}}catch(E){}p2=!0;Ua("DCLKSTAT",3)}},5E3))}}};
C2=function(){var e=Number(g.Lb("DCLKSTAT",0));return isNaN(e)?0:e};
Mf=function(e,N,y){var w=this;this.network=e;this.options=N;this.N=y;this.J=null;if(N.ESB){var E=new g.lq;this.J=E.promise;g.xJ.ytAtRC&&az(function(){var A,T;return g.f(function(p){if(p.J==1){if(!g.xJ.ytAtRC)return p.return();A=rv(null);return g.D(p,$C(w,A),2)}T=p.N;g.xJ.ytAtRC&&g.xJ.ytAtRC(JSON.stringify(T));g.hn(p)})},2);
YC9().then(function(A){var T,p,C,r;return g.f(function(Y){if(Y.J==1)return A.bindInnertubeChallengeFetcher(function(M){return $C(w,rv(M))}),g.D(Y,DS(),2);
T=Y.N;p=A.getLatestChallengeResponse();C=p.challenge;if(!C)throw Error("BGE_MACIL");r={challenge:C,rK:T$(C),f$:T,bgChallenge:new Ys};E.resolve(r);A.registerChallengeFetchedCallback(function(M){M=M.challenge;if(!M)throw Error("BGE_MACR");M={challenge:M,rK:T$(M),f$:T,bgChallenge:new Ys};w.J=Promise.resolve(M)});
g.hn(Y)})})}else N.preload&&Fq5(this,new Promise(function(A){g.e1(0,function(){A(YC(w))},0)}))};
rv=function(e){var N={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};e&&(N.interpreterHash=e);return N};
YC=function(e,N){N=N===void 0?0:N;var y,w,E,A,T,p,C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:y=rv(bq().J);if(g.Xj("att_fet_ks"))return g.c5(S,7),g.D(S,$C(e,y),9);g.c5(S,4);return g.D(S,SCM(e,y),6);case 6:T=S.N;E=T.yuW;A=T.zZB;w=T;g.B5(S,3);break;case 4:return g.XH(S),g.uA(Error("Failed to fetch attestation challenge after "+(N+" attempts; not retrying for 24h."))),lI(e,864E5),S.return({challenge:"",rK:{},f$:void 0,bgChallenge:void 0});case 9:w=S.N;if(!w)throw Error("Fetching Attestation challenge returned falsy");
if(!w.challenge)throw Error("Missing Attestation challenge");E=w.challenge;A=T$(E);if("c1a"in A&&(!w.bgChallenge||!w.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.B5(S,3);break;case 7:p=g.XH(S);g.uA(p);N++;if(N>=5)return g.uA(Error("Failed to fetch attestation challenge after "+(N+" attempts; not retrying for 24h."))),lI(e,864E5),S.return({challenge:"",rK:{},f$:void 0,bgChallenge:void 0});C=1E3*Math.pow(2,N-1)+Math.random()*1E3;return S.return(new Promise(function(k){g.e1(0,
function(){k(YC(e,N))},C)}));
case 3:r=Number(A.t)||7200;lI(e,r*1E3);Y=void 0;if(!("c1a"in A&&w.bgChallenge)){S.u9(10);break}M=$6H(w.bgChallenge);g.c5(S,11);return g.D(S,hf(bq(),M),13);case 13:g.B5(S,12);break;case 11:return l=g.XH(S),g.uA(l),S.return({challenge:E,rK:A,f$:Y,bgChallenge:M});case 12:return g.c5(S,14),Y=new Fa({challenge:M,EW:{vI:"aGIf"}}),g.D(S,Y.oH,16);case 16:g.B5(S,10);break;case 14:F=g.XH(S),g.uA(F),Y=void 0;case 10:return S.return({challenge:E,rK:A,f$:Y,bgChallenge:M})}})};
$C=function(e,N){var y;return g.f(function(w){y=e.N;if(!y||y.E4())return w.return($C(e.network,N));KV("att_pna",void 0,"attestation_challenge_fetch");return w.return(new Promise(function(E){y.TT("publicytnetworkstatus-online",function(){$C(e.network,N).then(E)})}))})};
o59=function(e){if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");var N=e.challenge,y=T$(N);if("c1a"in y&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},e,{yuW:N,zZB:y})};
SCM=function(e,N){var y,w,E,A,T;return g.f(function(p){switch(p.J){case 1:y=void 0,w=0,E={};case 2:if(!(w<5)){p.u9(4);break}if(!(w>0)){p.u9(5);break}E.KD=1E3*Math.pow(2,w-1)+Math.random()*1E3;return g.D(p,new Promise(function(C){return function(r){g.e1(0,function(){r(void 0)},C.KD)}}(E)),5);
case 5:return g.c5(p,7),g.D(p,$C(e,N),9);case 9:return A=p.N,p.return(o59(A));case 7:y=T=g.XH(p),T instanceof Error&&g.uA(T);case 8:w++;E={KD:void 0};p.u9(2);break;case 4:throw y;}})};
Fq5=function(e,N){e.J=N};
bE1=function(e){var N,y,w;return g.f(function(E){if(E.J==1)return g.D(E,Promise.race([e.J,null]),2);N=E.N;var A=YC(e);e.J=A;(y=N)==null||(w=y.f$)==null||w.dispose();g.hn(E)})};
lI=function(e,N){function y(){var E;return g.f(function(A){E=w-Date.now();return E<1E3?g.D(A,bE1(e),0):(az(y,0,Math.min(E,6E4)),A.u9(0))})}
var w=Date.now()+N;y()};
hln=function(e,N){return new Promise(function(y){g.e1(0,function(){y(N())},e)})};
g.cl0=function(e,N){var y;return g.f(function(w){var E=g.nM("yt.aba.att");return(y=E?E:Mf.instance!==void 0?Mf.instance.K.bind(Mf.instance):null)?w.return(y("ENGAGEMENT_TYPE_PLAYBACK",e,N)):w.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.k_n=function(){var e;return(e=(e=g.nM("yt.aba.att2"))?e:Mf.instance!==void 0?Mf.instance.j.bind(Mf.instance):null)?e():Promise.resolve(!1)};
XXH=function(e,N){var y=g.nM("ytDebugData.callbacks");y||(y={},g.jM("ytDebugData.callbacks",y));if(g.Xj("web_dd_iu")||BW0.includes(e))y[e]=N};
FI=function(){var e=PaE;var N=N===void 0?[]:N;var y=y===void 0?[]:y;N=XfF.apply(null,[P6F.apply(null,g.B(N))].concat(g.B(y)));this.store=IfM(e,void 0,N)};
g.Sy=function(e,N,y){for(var w=Object.assign({},e),E=g.c(Object.keys(N)),A=E.next();!A.done;A=E.next()){A=A.value;var T=e[A],p=N[A];if(p===void 0)delete w[A];else if(T===void 0)w[A]=p;else if(Array.isArray(p)&&Array.isArray(T))w[A]=y?[].concat(g.B(T),g.B(p)):p;else if(!Array.isArray(p)&&g.W5(p)&&!Array.isArray(T)&&g.W5(T))w[A]=g.Sy(T,p,y);else if(typeof p===typeof T)w[A]=p;else return N=new g.Gh("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,XFh:T,updateValue:p}),g.t0(N),
e}return w};
oR=function(e){var N=this;e=e===void 0?[]:e;this.SV=[];this.Po=this.Hp=0;this.z2=void 0;this.totalLength=0;e.forEach(function(y){N.append(y)})};
d6_=function(e,N){return e.SV.length===0?!1:(e=e.SV[e.SV.length-1])&&e.buffer===N.buffer&&e.byteOffset+e.length===N.byteOffset};
bI=function(e,N){N=g.c(N.SV);for(var y=N.next();!y.done;y=N.next())e.append(y.value)};
hC=function(e,N,y){return e.split(N).h3.split(y).aA};
c8=function(e){e.z2=void 0;e.Hp=0;e.Po=0};
kC=function(e,N,y){e.isFocused(N);return N-e.Po+y<=e.SV[e.Hp].length};
Icn=function(e){if(!e.z2){var N=e.SV[e.Hp];e.z2=new DataView(N.buffer,N.byteOffset,N.length)}return e.z2};
B8=function(e,N,y){e=e.YX(N===void 0?0:N,y===void 0?-1:y);N=new Uint8Array(e.length);try{N.set(e)}catch(w){for(y=0;y<e.length;y++)N[y]=e[y]}return N};
v53=function(e,N){e.focus(N);return kC(e,N,4)?Icn(e).getUint32(N-e.Po):256*(256*(256*e.getUint8(N)+e.getUint8(N+1))+e.getUint8(N+2))+e.getUint8(N+3)};
zl_=function(e){for(var N=new Uint8Array(e.length),y=0;y<e.length;y++)N[y]=e.charCodeAt(y);return N};
P8=function(e){return e.length?XI?XI.decode(e):String.fromCharCode.apply(null,e):""};
g.IR=function(e){if(!e.length)return"";try{if(XI)return XI.decode(e);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(e)}catch(T){}for(var N=0,y=[],w=e.length;N<w;){for(var E=0;E<1024&&N<w;){var A=e[N++];if(A<128)dv[E++]=A;else{if(A<224)A=(A&31)<<6|e[N++]&63;else if(A<240)A=(A&15)<<12|(e[N++]&63)<<6|e[N++]&63;else{if(E+1===1024){--N;break}A=(A&7)<<18|(e[N++]&63)<<12|(e[N++]&63)<<6|e[N++]&63;A-=65536;dv[E++]=55296|A>>10;A=56320|A&1023}dv[E++]=A}}A=String.fromCharCode.apply(String,dv);
E<1024&&(A=A.substring(0,E));y.push(A)}return y.join("")};
z$=function(e,N){var y;if((y=v8)==null?0:y.encodeInto)return N=v8.encodeInto(e,N),N.read<e.length?e.length*4:N.written;for(var w=y=0;w<e.length;w++){var E=e.charCodeAt(w);E<128?N[y++]=E:(E<2048?N[y++]=E>>6|192:((E&64512)===55296&&w+1<e.length&&(e.charCodeAt(w+1)&64512)===56320?(E=65536+((E&1023)<<10)+(e.charCodeAt(++w)&1023),N[y++]=E>>18|240,N[y++]=E>>12&63|128):N[y++]=E>>12|224,N[y++]=E>>6&63|128),N[y++]=E&63|128)}return y};
iI=function(e){if(v8)return v8.encode(e);var N=new Uint8Array(Math.ceil(e.length*1.2)),y=z$(e,N);N.length<y&&(N=new Uint8Array(y),y=z$(e,N));N.length>y&&(N=N.subarray(0,y));return N};
DK=function(e){this.J=e;this.pos=0;this.N=-1};
gv=function(e){var N=e.J.getUint8(e.pos);++e.pos;if(N<128)return N;for(var y=N&127,w=1;N>=128;)N=e.J.getUint8(e.pos),++e.pos,w*=128,y+=(N&127)*w;return y};
Ve=function(e,N){var y=e.N;for(e.N=-1;e.J.b8(e.pos,1);){y<0&&(y=gv(e));var w=y>>3,E=y&7;if(w===N)return!0;if(w>N){e.N=y;break}y=-1;switch(E){case 0:gv(e);break;case 1:e.pos+=8;break;case 2:w=gv(e);e.pos+=w;break;case 5:e.pos+=4}}return!1};
f2=function(e,N){if(Ve(e,N))return gv(e)};
tC=function(e,N){if(Ve(e,N))return!!gv(e)};
uI=function(e,N){if(Ve(e,N)){N=gv(e);var y=e.J.YX(e.pos,N);e.pos+=N;return y}};
qf=function(e,N){if(e=uI(e,N))return g.IR(e)};
ZK=function(e,N,y){if(e=uI(e,N))return y(new DK(new oR([e])))};
xC=function(e,N){for(var y=[];Ve(e,N);)y.push(gv(e));return y.length?y:void 0};
jy=function(e,N,y){for(var w=[],E;E=uI(e,N);)w.push(y(new DK(new oR([E]))));return w.length?w:void 0};
n2=function(e,N){e=e instanceof Uint8Array?new oR([e]):e;return N(new DK(e))};
iEP=function(e,N,y){if(N&&y&&y.buffer===N.exports.memory.buffer){var w=N.realloc(y.byteOffset,e);if(w)return new Uint8Array(N.exports.memory.buffer,w,e)}e=N?new Uint8Array(N.exports.memory.buffer,N.malloc(e),e):new Uint8Array(e);y&&e.set(y);return e};
D6E=function(e,N){this.uB=N;this.pos=0;this.N=[];this.J=iEP(e===void 0?4096:e,N);this.view=new DataView(this.J.buffer,this.J.byteOffset,this.J.byteLength)};
Qe=function(e,N){N=e.pos+N;if(!(e.J.length>=N)){for(var y=e.J.length*2;y<N;)y*=2;e.J=iEP(y,e.uB,e.J.subarray(0,e.pos));e.view=new DataView(e.J.buffer,e.J.byteOffset,e.J.byteLength)}};
mX=function(e,N){if(N>268435455){Qe(e,4);for(var y=N&1073741823,w=0;w<4;w++)e.view.setUint8(e.pos,y&127|128),y>>=7,e.pos+=1;N=Math.floor(N/268435456)}for(Qe(e,4);N>127;)e.view.setUint8(e.pos,N&127|128),N>>=7,e.pos+=1;e.view.setUint8(e.pos,N);e.pos+=1};
H8=function(e,N,y){y!==void 0&&(mX(e,N*8),mX(e,y))};
K2=function(e,N,y){y!==void 0&&H8(e,N,y?1:0)};
W8=function(e,N,y){y!==void 0&&(mX(e,N*8+2),N=y.length,mX(e,N),Qe(e,N),e.J.set(y,e.pos),e.pos+=N)};
Ol=function(e,N,y){y!==void 0&&(g5H(e,N,Math.ceil(Math.log2(y.length*4+2)/7)),Qe(e,y.length*1.2),N=z$(y,e.J.subarray(e.pos)),e.pos+N>e.J.length&&(Qe(e,N),N=z$(y,e.J.subarray(e.pos))),e.pos+=N,VSH(e))};
g5H=function(e,N,y){y=y===void 0?2:y;mX(e,N*8+2);e.N.push(e.pos);e.N.push(y);e.pos+=y};
VSH=function(e){for(var N=e.N.pop(),y=e.N.pop(),w=e.pos-y-N;N--;){var E=N?128:0;e.view.setUint8(y++,w&127|E);w>>=7}};
ER=function(e,N,y,w,E){y&&(g5H(e,N,E===void 0?3:E),w(e,y),VSH(e))};
g.A5=function(e,N,y){y=new D6E(4096,y);N(y,e);return new Uint8Array(y.J.buffer,y.J.byteOffset,y.pos)};
g.Tj=function(e){var N=new DK(new oR([hO(decodeURIComponent(e))]));e=qf(N,2);N=f2(N,4);var y=fcM[N];if(typeof y==="undefined")throw e=new g.Gh("Failed to recognize field number",{name:"EntityKeyHelperError",viP:N}),g.t0(e),e;return{Xu:N,entityType:y,entityId:e}};
g.J5=function(e,N){var y=new D6E;W8(y,2,iI(e));e=tSJ[N];if(typeof e==="undefined")throw N=new g.Gh("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:N}),g.t0(N),N;H8(y,4,e);H8(y,5,1);N=new Uint8Array(y.J.buffer,y.J.byteOffset,y.pos);return encodeURIComponent(g.oN(N))};
pj=function(e,N,y,w){if(w===void 0)return w=Object.assign({},e[N]||{}),y=(delete w[y],w),w={},Object.assign({},e,(w[N]=y,w));var E={},A={};return Object.assign({},e,(A[N]=Object.assign({},e[N],(E[y]=w,E)),A))};
ud5=function(e,N,y,w,E){var A=e[N];if(A==null||!A[y])return e;w=g.Sy(A[y],w,E==="REPEATED_FIELDS_MERGE_OPTION_APPEND");E={};A={};return Object.assign({},e,(A[N]=Object.assign({},e[N],(E[y]=w,E)),A))};
qC_=function(e,N){e=e===void 0?{}:e;switch(N.type){case "ENTITY_LOADED":return N.payload.reduce(function(w,E){var A,T=(A=E.options)==null?void 0:A.persistenceOption;if(T&&T!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&T!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return w;if(!E.entityKey)return g.t0(Error("Missing entity key")),w;if(E.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!E.payload)return g.t0(new g.Gh("REPLACE entity mutation is missing a payload",{entityKey:E.entityKey})),w;var p=g.kY(E.payload);
return pj(w,p,E.entityKey,E.payload[p])}if(E.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{E=E.entityKey;try{var C=g.Tj(E).entityType;p=pj(w,C,E);break a}catch(M){if(M instanceof Error){g.t0(new g.Gh("Failed to deserialize entity key",{entityKey:E,jb:M.message}));p=w;break a}throw M;}p=void 0}return p}if(E.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!E.payload)return g.t0(new g.Gh("UPDATE entity mutation is missing a payload",{entityKey:E.entityKey})),w;p=g.kY(E.payload);var r,Y;return ud5(w,p,E.entityKey,
E.payload[p],(r=E.fieldMask)==null?void 0:(Y=r.mergeOptions)==null?void 0:Y.repeatedFieldsMergeOption)}return w},e);
case "REPLACE_ENTITY":var y=N.payload;return pj(e,y.entityType,y.key,y.Ys);case "REPLACE_ENTITIES":return Object.keys(N.payload).reduce(function(w,E){var A=N.payload[E];return Object.keys(A).reduce(function(T,p){return pj(T,E,p,A[p])},w)},e);
case "UPDATE_ENTITY":return y=N.payload,ud5(e,y.entityType,y.key,y.Ys,y.ZIk);default:return e}};
Cj=function(e,N,y){return e[N]?e[N][y]||null:null};
rL=function(e){return window.Int32Array?new Int32Array(e):Array(e)};
SA=function(e){g.x.call(this);this.counter=[0,0,0,0];this.N=new Uint8Array(16);this.J=16;if(!ZE1){var N,y=new Uint8Array(256),w=new Uint8Array(256);var E=1;for(N=0;N<256;N++)y[E]=N,w[N]=E,E^=E<<1^(E>>7&&283);$d=new Uint8Array(256);Yd=rL(256);MD=rL(256);lZ=rL(256);F8=rL(256);for(var A=0;A<256;A++){E=A?w[255^y[A]]:0;E^=E<<1^E<<2^E<<3^E<<4;E=E&255^E>>>8^99;$d[A]=E;N=E<<1^(E>>7&&283);var T=N^E;Yd[A]=N<<24|E<<16|E<<8|T;MD[A]=T<<24|Yd[A]>>>8;lZ[A]=E<<24|MD[A]>>>8;F8[A]=E<<24|lZ[A]>>>8}ZE1=!0}E=rL(44);for(y=
0;y<4;y++)E[y]=e[4*y]<<24|e[4*y+1]<<16|e[4*y+2]<<8|e[4*y+3];for(w=1;y<44;y++)e=E[y-1],y%4||(e=($d[e>>16&255]^w)<<24|$d[e>>8&255]<<16|$d[e&255]<<8|$d[e>>>24],w=w<<1^(w>>7&&283)),E[y]=E[y-4]^e;this.key=E};
oo=function(e,N){for(var y=0;y<4;y++)e.counter[y]=N[y*4]<<24|N[y*4+1]<<16|N[y*4+2]<<8|N[y*4+3];e.J=16};
x69=function(e){for(var N=e.key,y=e.counter[0]^N[0],w=e.counter[1]^N[1],E=e.counter[2]^N[2],A=e.counter[3]^N[3],T=3;T>=0&&!(e.counter[T]=-~e.counter[T]);T--);for(var p,C,r=4;r<40;)T=Yd[y>>>24]^MD[w>>16&255]^lZ[E>>8&255]^F8[A&255]^N[r++],p=Yd[w>>>24]^MD[E>>16&255]^lZ[A>>8&255]^F8[y&255]^N[r++],C=Yd[E>>>24]^MD[A>>16&255]^lZ[y>>8&255]^F8[w&255]^N[r++],A=Yd[A>>>24]^MD[y>>16&255]^lZ[w>>8&255]^F8[E&255]^N[r++],y=T,w=p,E=C;e=e.N;T=N[40];e[0]=$d[y>>>24]^T>>>24;e[1]=$d[w>>16&255]^T>>16&255;e[2]=$d[E>>8&255]^
T>>8&255;e[3]=$d[A&255]^T&255;T=N[41];e[4]=$d[w>>>24]^T>>>24;e[5]=$d[E>>16&255]^T>>16&255;e[6]=$d[A>>8&255]^T>>8&255;e[7]=$d[y&255]^T&255;T=N[42];e[8]=$d[E>>>24]^T>>>24;e[9]=$d[A>>16&255]^T>>16&255;e[10]=$d[y>>8&255]^T>>8&255;e[11]=$d[w&255]^T&255;T=N[43];e[12]=$d[A>>>24]^T>>>24;e[13]=$d[y>>16&255]^T>>16&255;e[14]=$d[w>>8&255]^T>>8&255;e[15]=$d[E&255]^T&255};
cM=function(){if(!bZ&&!g.Um){if(h5)return h5;var e;h5=(e=window.crypto)==null?void 0:e.subtle;var N,y,w;if(((N=h5)==null?0:N.importKey)&&((y=h5)==null?0:y.sign)&&((w=h5)==null?0:w.encrypt))return h5;h5=void 0}};
g.kd=function(e){this.j=e};
g.BM=function(e){this.N=e};
X8=function(e){this.L=new Uint8Array(64);this.K=new Uint8Array(64);this.j=0;this.Z=new Uint8Array(64);this.N=0;this.L.set(e);this.K.set(e);for(e=0;e<64;e++)this.L[e]^=92,this.K[e]^=54;this.reset()};
juF=function(e,N,y){for(var w=e.G,E=e.J[0],A=e.J[1],T=e.J[2],p=e.J[3],C=e.J[4],r=e.J[5],Y=e.J[6],M=e.J[7],l,F,S,k=0;k<64;)k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l=w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=M+PM[k]+S+((C>>>6|C<<26)^(C>>>11|C<<21)^(C>>>25|C<<7))+(C&r^~C&Y),F=((E>>>2|E<<30)^(E>>>13|E<<19)^(E>>>22|E<<10))+(E&A^E&T^A&T),M=l+F,p+=l,k++,k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l=
w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=Y+PM[k]+S+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&C^~p&r),F=((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+(M&E^M&A^E&A),Y=l+F,T+=l,k++,k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l=w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=r+PM[k]+S+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&p^
~T&C),F=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&M^Y&E^M&E),r=l+F,A+=l,k++,k<16?(w[k]=S=N[y]<<24|N[y+1]<<16|N[y+2]<<8|N[y+3],y+=4):(l=w[k-2],F=w[k-15],S=w[k-7]+w[k-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),w[k]=S),l=C+PM[k]+S+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&T^~A&p),F=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&Y^r&M^Y&M),S=M,M=p,p=S,S=Y,Y=T,T=S,S=r,r=A,A=S,C=E+l,E=l+F,k++;e.J[0]=E+e.J[0]|0;e.J[1]=A+e.J[1]|0;e.J[2]=T+e.J[2]|0;e.J[3]=
p+e.J[3]|0;e.J[4]=C+e.J[4]|0;e.J[5]=r+e.J[5]|0;e.J[6]=Y+e.J[6]|0;e.J[7]=M+e.J[7]|0};
Qu0=function(e){var N=new Uint8Array(32),y=64-e.N;e.N>55&&(y+=64);var w=new Uint8Array(y);w[0]=128;for(var E=e.j*8,A=1;A<9;A++){var T=E%256;w[y-A]=T;E=(E-T)/256}e.update(w);for(y=0;y<8;y++)N[y*4]=e.J[y]>>>24,N[y*4+1]=e.J[y]>>>16&255,N[y*4+2]=e.J[y]>>>8&255,N[y*4+3]=e.J[y]&255;n50(e);return N};
n50=function(e){e.J=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];e.G=[];e.G.length=64;e.j=0;e.N=0};
m69=function(e){this.J=e};
HE0=function(e,N,y){e=new X8(e.J);e.update(N);e.update(y);N=Qu0(e);e.update(e.L);e.update(N);N=Qu0(e);e.reset();return N};
Kq_=function(e){this.N=e};
WqE=function(e,N,y,w){var E,A,T;return g.f(function(p){switch(p.J){case 1:if(e.J){p.u9(2);break}return g.D(p,w.importKey("raw",e.N,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.J=p.N;case 2:return E=new Uint8Array(N.length+y.length),E.set(N),E.set(y,N.length),A={name:"HMAC",hash:"SHA-256"},g.D(p,w.sign(A,e.J,E),4);case 4:return T=p.N,p.return(new Uint8Array(T))}})};
OE_=function(e,N,y){e.K||(e.K=new m69(e.N));return HE0(e.K,N,y)};
Rln=function(e,N,y){var w,E;return g.f(function(A){if(A.J==1){w=cM();if(!w)return A.return(OE_(e,N,y));g.c5(A,3);return g.D(A,WqE(e,N,y,w),5)}if(A.J!=3)return A.return(A.N);E=g.XH(A);g.uA(E);bZ=!0;return A.return(OE_(e,N,y))})};
U6P=function(e){for(var N="",y=0;y<e.length;y++){var w=e[y];if(y===0)w="M "+w.x.toFixed(1)+","+w.y.toFixed(1);else{var E=G__(e[y-1],e[y-2],w),A=G__(w,e[y-1],e[y+1],!0);w=" C "+(E.x.toFixed(1)+","+E.y.toFixed(1)+" "+A.x.toFixed(1)+","+A.y.toFixed(1)+" "+w.x.toFixed(1)+","+w.y.toFixed(1))}N+=w}return N};
G__=function(e,N,y,w){w=w===void 0?!1:w;N=new LqP(N||e,y||e);return{x:e.x+((w===void 0?0:w)?N.J*-1:N.J)*.2,y:e.y+((w===void 0?0:w)?N.N*-1:N.N)*.2}};
LqP=function(e,N){this.N=this.J=0;this.J=N.x-e.x;this.N=N.y-e.y};
ekM=function(e,N){var y,w,E;return g.f(function(A){if(A.J==1)return y={context:g.LR(),settingItemIds:N},w=g.eZ(suP),g.D(A,g.Rg(e,y,w),2);E=A.N;return!E||E.errorMetadata?(acP("GetSettingValuesRequest",E),A.return(void 0)):A.return(E.settingValues)})};
y0H=function(e,N,y){var w,E,A;g.f(function(T){if(T.J==1)return w={context:g.LR(),settingItemId:N,newValue:y},E=g.eZ(NI0),g.D(T,g.Rg(e,w,E),2);A=T.N;if(!A||A.errorMetadata)return acP("SetSettingRequest",A),T.return(void 0);g.hn(T)})};
acP=function(e,N){N?N.errorMetadata&&g.uA(new g.Gh(e+" failed with status "+N.errorMetadata.status)):g.uA(new g.Gh(e+" failed with empty response"))};
dL=function(e,N,y){if(!N)return e.length>=1?e[e.length-1]:null;for(var w=g.c(e),E=w.next();!E.done;E=w.next())if(E=E.value,E.width&&E.height&&(y&&E.width>=N||!y&&E.height>=N))return E;for(N=e.length-1;N>=0;N--)if(y&&e[N].width||!y&&e[N].height)return e[N];return e[0]};
Io=function(){this.state=1;this.f$=null};
Egs=function(e,N,y,w,E,A){var T=T===void 0?"trayride":T;y?(e.IJ(2),g.rW(y,function(){if(window[T])w7_(e,w,T,E);else{e.IJ(3);var p=cE_(y),C=document.getElementById(p);C&&(bp5(p),C.parentNode.removeChild(C));g.uA(new g.Gh("Unable to load Botguard","from "+y))}},A)):N?(A=g.sA("SCRIPT"),N instanceof xx?(A.textContent=j$(N),ny(A)):A.textContent=N,A.nonce=Zs(document),document.head.appendChild(A),document.head.removeChild(A),window[T]?w7_(e,w,T,E):(e.IJ(4),g.uA(new g.Gh("Unable to load Botguard from JS")))):
g.uA(new g.Gh("Unable to load VM; no url or JS provided"))};
w7_=function(e,N,y,w){e.IJ(5);try{var E=new Fa({program:N,globalName:y,EW:{disable:!g.Xj("att_web_record_metrics"),vI:"aGIf"}});E.oH.then(function(){e.IJ(6);w&&w(N)});
e.yN(E)}catch(A){e.IJ(7),A instanceof Error&&g.uA(A)}};
vM=function(){var e=g.nM("yt.abuse.playerAttLoader");return e&&["bgvma","bgvmb","bgvmc"].every(function(N){return N in e})?e:null};
zj=function(){Io.apply(this,arguments)};
iZ=function(){};
A00=function(e,N,y){for(var w=!1,E=g.c(e.R$.entries()),A=E.next();!A.done;A=E.next())A=g.c(A.value).next().value,A.slotType==="SLOT_TYPE_PLAYER_BYTES"&&A.Xh==="core"&&(w=!0);if(w){a:if(!y){e=g.c(e.R$.entries());for(y=e.next();!y.done;y=e.next())if(w=g.c(y.value),y=w.next().value,w=w.next().value,y.slotType==="SLOT_TYPE_IN_PLAYER"&&y.Xh==="core"){y=w.layoutId;break a}y=void 0}y?N.oG(y):YN("No triggering layout ID available when attempting to mute.")}};
DX=function(e,N){this.D3=e;this.iL=N};
gL=function(){};
Vg=function(){};
J0P=function(e){g.x.call(this);var N=this;this.Vi=e;this.J=new Map;fj(this,"commandExecutorCommand",function(y,w,E){TIH(N,y.commands,w,E)});
fj(this,"clickTrackingParams",function(){})};
p7J=function(e,N){fj(e,N.jh(),function(y,w,E){N.A$(y,w,E)})};
fj=function(e,N,y){e.Ss();e.J.get(N)&&g.t0(Error("Extension name "+N+" already registered"));e.J.set(N,y)};
TIH=function(e,N,y,w){N=N===void 0?[]:N;e.Ss();var E=[],A=[];N=g.c(N);for(var T=N.next();!T.done;T=N.next())T=T.value,g.m(T,CAs)||g.m(T,r0J)?E.push(T):A.push(T);E=g.c(E);for(N=E.next();!N.done;N=E.next())t5(e,N.value,y,w);A=g.c(A);for(E=A.next();!E.done;E=A.next())t5(e,E.value,y,w)};
t5=function(e,N,y,w){e.Ss();N.loggingUrls&&$iE(e,"loggingUrls",N.loggingUrls,y,w);N=g.c(Object.entries(N));for(var E=N.next();!E.done;E=N.next()){var A=g.c(E.value);E=A.next().value;A=A.next().value;E==="openPopupAction"?e.Vi.get().gS("innertubeCommand",{openPopupAction:A}):E==="confirmDialogEndpoint"?e.Vi.get().gS("innertubeCommand",{confirmDialogEndpoint:A}):Y$P.hasOwnProperty(E)||$iE(e,E,A,y,w)}};
$iE=function(e,N,y,w,E){if((e=e.J.get(N))&&typeof e==="function")try{e(y,w,E)}catch(A){g.t0(A)}else N=new g.Gh("Unhandled field",N),g.uA(N)};
uZ=function(e,N,y){this.zo=e;this.J=N;this.Pk=y};
qD=function(e){this.value=e};
ZX=function(e){this.value=e};
xd=function(e){this.value=e};
jA=function(e){this.value=e};
nj=function(e){this.value=e};
Qg=function(e){this.value=e};
HM=function(e){this.value=e};
Kj=function(){qD.apply(this,arguments)};
WM=function(e){this.value=e};
OR=function(e){this.value=e};
Ro=function(e){this.value=e};
Gj=function(e){this.value=e};
UR=function(e){this.value=e};
Lj=function(e){this.value=e};
sR=function(e){this.value=e};
ao=function(e){this.value=e};
eR=function(e){this.value=e};
NT=function(e){this.value=e};
yS=function(){qD.apply(this,arguments)};
wK=function(e){this.value=e};
EP=function(e){this.value=e};
Aw=function(e){this.value=e};
TQ=function(e){this.value=e};
Jw=function(e){this.value=e};
px=function(e){this.value=e};
Cx=function(e){this.value=e};
rK=function(e){this.value=e};
$q=function(e){this.value=e};
Yq=function(e){this.value=e};
MT=function(e){this.value=e};
ll=function(e){this.value=e};
FP=function(e){this.value=e};
SR=function(e){this.value=e};
os=function(e){this.value=e};
bl=function(e){this.value=e};
hw=function(e){this.value=e};
cp=function(e){this.value=e};
kq=function(e){this.value=e};
Bp=function(e){this.value=e};
XP=function(e){this.value=e};
Pp=function(e){this.value=e};
dK=function(e){this.value=e};
Is=function(e){this.value=e};
vp=function(e){this.value=e};
zQ=function(e){this.value=e};
il=function(e){this.value=e};
Db=function(e){this.value=e};
gK=function(e){this.value=e};
VS=function(e){this.value=e};
fx=function(e){this.value=e};
tw=function(e){this.value=e};
ul=function(e){this.value=e};
qT=function(e){this.value=e};
Zb=function(e){this.value=e};
xq=function(e){this.value=e};
jR=function(e){this.value=e};
nx=function(e){this.value=e};
QS=function(){qD.apply(this,arguments)};
mZ=function(e){this.value=e};
Hp=function(){qD.apply(this,arguments)};
Kx=function(){qD.apply(this,arguments)};
Wp=function(){qD.apply(this,arguments)};
OP=function(){qD.apply(this,arguments)};
Rs=function(){qD.apply(this,arguments)};
GQ=function(e){this.value=e};
UP=function(e){this.value=e};
Lx=function(e){this.value=e};
sP=function(e){this.value=e};
as=function(e){this.value=e};
Nx=function(e,N,y){if(y&&!y.includes(e.layoutType))return!1;N=g.c(N);for(y=N.next();!y.done;y=N.next())if(!eK(e.clientMetadata,y.value))return!1;return!0};
yk=function(){return""};
MP9=function(e,N){switch(e){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 N(e),8}};
wX=function(e,N,y,w){w=w===void 0?!1:w;FF.call(this,e);this.ol=y;this.S$=w;this.args=[];N&&this.args.push(N)};
U=function(e,N,y,w){w=w===void 0?!1:w;FF.call(this,e);this.ol=y;this.S$=w;this.args=[];N&&this.args.push(N)};
EG=function(e){var N=new Map;e.forEach(function(y){N.set(y.getType(),y)});
this.J=N};
eK=function(e,N){return e.J.has(N)};
A6=function(e,N){e=e.J.get(N);if(e!==void 0)return e.get()};
T5=function(e){return Array.from(e.J.keys())};
J6=function(e,N,y){if(y&&y!==e.slotType)return!1;N=g.c(N);for(y=N.next();!y.done;y=N.next())if(!eK(e.clientMetadata,y.value))return!1;return!0};
Fj0=function(e){var N;return((N=lLH.get(e))==null?void 0:N.JN)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Cn=function(e,N){var y={type:N.slotType,controlFlowManagerLayer:S$H.get(N.Xh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};N.slotEntryTrigger&&(y.entryTriggerType=N.slotEntryTrigger.triggerType);N.slotPhysicalPosition!==1&&(y.slotPhysicalPosition=N.slotPhysicalPosition);if(e){y.debugData={slotId:N.slotId};if(e=N.slotEntryTrigger)y.debugData.slotEntryTriggerData=pn(e);e=N.slotFulfillmentTriggers;y.debugData.fulfillmentTriggerData=[];e=g.c(e);for(var w=e.next();!w.done;w=e.next())y.debugData.fulfillmentTriggerData.push(pn(w.value));
N=N.slotExpirationTriggers;y.debugData.expirationTriggerData=[];N=g.c(N);for(e=N.next();!e.done;e=N.next())y.debugData.expirationTriggerData.push(pn(e.value))}return y};
ogJ=function(e,N){var y={type:N.layoutType,controlFlowManagerLayer:S$H.get(N.Xh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};e&&(y.debugData={layoutId:N.layoutId});return y};
pn=function(e,N){var y={type:e.triggerType};N!=null&&(y.category=N);e.triggeringSlotId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedSlotId=e.triggeringSlotId);e.triggeringLayoutId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedLayoutId=e.triggeringLayoutId);return y};
bQ3=function(e,N,y,w){N={opportunityType:N};e&&(w||y)&&(w=g.dn(w||[],function(E){return Cn(e,E)}),N.debugData=Object.assign({},y&&y.length>0?{associatedSlotId:y}:{},w.length>0?{slots:w}:{}));
return N};
$2=function(e,N){return function(y){return hkJ(rX(e),N.slotId,N.slotType,N.slotPhysicalPosition,N.Xh,N.slotEntryTrigger,N.slotFulfillmentTriggers,N.slotExpirationTriggers,y.layoutId,y.layoutType,y.Xh)}};
hkJ=function(e,N,y,w,E,A,T,p,C,r,Y){return{adClientDataEntry:{slotData:Cn(e,{slotId:N,slotType:y,slotPhysicalPosition:w,Xh:E,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:p,clientMetadata:new EG([])}),layoutData:ogJ(e,{layoutId:C,layoutType:r,Xh:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],tM:new Map,clientMetadata:new EG([]),o9:{}})}}};
Mx=function(e){this.wP=e;e=Math.random();var N=this.wP.get();N=g.Y2(N.C.X().experiments,"html5_debug_data_log_probability");N=Number.isFinite(N)&&N>=0&&N<=1?N:0;this.J=e<N};
rX=function(e){return e.J||e.wP.get().C.X().T("html5_force_debug_data_for_client_tmp_logs")};
lF=function(e,N,y,w){g.x.call(this);this.N=N;this.H9=y;this.wP=w;this.J=e(this,this,this,this,this);g.Q(this,this.J);e=g.c(N);for(N=e.next();!N.done;N=e.next())g.Q(this,N.value)};
F2=function(e,N){e.N.add(N)};
SK=function(e,N){e.N.delete(N)};
bF=function(e,N,y,w){YN(y,N,void 0,void 0,y.S$);y.ol?e.H9.a8(w,y.ol,N):YN("adsClientErrorMessage is missing.",N);o_(e,N,!0)};
kO3=function(e,N,y){if(h6(e.J,N))if(ca(e.J,N).j=y?"filled":"not_filled",y===null){e.H9.A1("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",N);y=g.c(e.N);for(var w=y.next();!w.done;w=y.next())w.value.U4(N);o_(e,N,!1)}else{e.H9.A1("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",N,y);e.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",N,y);var E,A=(E=y.Cm)!=null?E:A6(y.clientMetadata,"metadata_type_sub_layouts");if(A)for(E=g.c(A),A=E.next();!A.done;A=E.next())e.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
N,A.value);E=g.c(e.N);for(A=E.next();!A.done;A=E.next())A.value.Wf(N);if(h6(e.J,N))if(ca(e.J,N).L)o_(e,N,!1);else{e.H9.A1("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",N,y);try{w=e.J;if(!ca(w,N))throw new wX("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!w.V2.L9.get(N.slotType))throw new wX("No LayoutRenderingAdapterFactory registered for slot of type: "+N.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");
if(y.layoutExitNormalTriggers.length==0&&y.layoutExitSkipTriggers.length==0&&y.layoutExitMuteTriggers.length==0&&y.layoutExitUserInputSubmittedTriggers.length==0&&y.E2.length==0)throw new wX("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");k2(w,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",y.layoutExitNormalTriggers);k2(w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",y.layoutExitSkipTriggers);k2(w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",y.layoutExitMuteTriggers);
k2(w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",y.layoutExitUserInputSubmittedTriggers);k2(w,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",y.E2)}catch(r){r instanceof wX?e.xz(N,y,r,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):e.xz(N,y,new wX("Unexpected error: "+r,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");o_(e,N,!0);return}ca(e.J,N).Z=!0;try{var T=e.J,p=ca(T,N),C=T.V2.L9.get(N.slotType).get().build(T.j,T.N,N,y);C.init();p.layout=
y;if(p.K)throw new wX("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");p.K=C;Ba(T,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",y.layoutExitNormalTriggers);Ba(T,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",y.layoutExitSkipTriggers);Ba(T,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",y.layoutExitMuteTriggers);Ba(T,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",y.layoutExitUserInputSubmittedTriggers);Ba(T,p,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
y.E2)}catch(r){X2(e,N);r instanceof wX?e.xz(N,y,r,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):e.xz(N,y,new wX("Unexpected error: "+r,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");o_(e,N,!0);return}e.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",N,y);w=g.c(e.N);for(T=w.next();!T.done;T=w.next())T.value.i6(N,y);X2(e,N);c0s(e,N)}else e=e.wP.get(),g.Pa(e.C.X())||dX(e.C.X())||g.I_(e.C.X())?e=!0:(YN("Composite VOD on legacy path."),e=!1),e&&YN("slot is unscheduled after been fulfilled.",
N,y)}};
BI0=function(e,N,y){N.Xh!=="core"&&e.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",N,y,void 0)};
X7F=function(e,N,y){e.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",N,y,void 0);e=g.c(e.N);for(var w=e.next();!w.done;w=e.next())w.value.i6(N,y)};
PA5=function(e,N,y){e=g.c(e.N);for(var w=e.next();!w.done;w=e.next())w.value.Lq(N,y)};
va=function(e,N,y){e.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",N,y,void 0);e=g.c(e.N);for(var w=e.next();!w.done;w=e.next())w.value.Ql(N,y)};
z5=function(e,N,y,w){e.H9.A1(Fj0(w),N,y,void 0);e=g.c(e.N);for(var E=e.next();!E.done;E=e.next())E.value.aJ(N,y,w)};
X2=function(e,N){if(h6(e.J,N)){ca(e.J,N).Z=!1;var y=iF;N=ca(e.J,N);var w=[].concat(g.B(N.U));sPJ(N.U);y(e,w)}};
iF=function(e,N){N.sort(function(A,T){function p(C){YN("TriggerCategoryOrder enum does not contain trigger category: "+C)}
return A.category===T.category?A.trigger.triggerId.localeCompare(T.trigger.triggerId):MP9(A.category,p)-MP9(T.category,p)});
var y=new Map;N=g.c(N);for(var w=N.next();!w.done;w=N.next())if(w=w.value,h6(e.J,w.slot))if(ca(e.J,w.slot).Z)ca(e.J,w.slot).U.push(w);else{e.H9.L5("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",w.slot,w,w.layout);var E=y.get(w.category);E||(E=[]);E.push(w);y.set(w.category,E)}N=g.c(diM);for(w=N.next();!w.done;w=N.next())E=g.c(w.value),w=E.next().value,E=E.next().value,(w=y.get(w))&&IL3(e,w,E);(N=y.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&vg9(e,N);(N=y.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&zkM(e,
N);(y=y.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&iQJ(e,y)};
IL3=function(e,N,y){N=g.c(N);for(var w=N.next();!w.done;w=N.next())w=w.value,w.layout&&DF(e.J,w.slot)&&DiE(e,w.slot,w.layout,y)};
vg9=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next())o_(e,y.value.slot,!1)};
zkM=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;a:switch(ca(e.J,y.slot).j){case "not_filled":var w=!0;break a;default:w=!1}w&&(e.H9.S1("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",y.slot),e.J.i5(y.slot))}};
iQJ=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;e.H9.S1("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",y.slot);for(var w=g.c(e.N),E=w.next();!E.done;E=w.next())E.value.XI(y.slot);try{var A=e.J,T=y.slot,p=ca(A,T);if(!p)throw new U("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!p.N)throw new U("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(p.J!=="scheduled")throw new U("Tried to enter a slot from stage: "+
p.J,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(gX(p))throw new U("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var C=g.c(Vk(A,T.slotType+"_"+T.slotPhysicalPosition).values()),r=C.next();!r.done;r=C.next()){var Y=r.value;if(p!==Y&&gX(Y))throw new U("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:Y.J},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}}catch(M){M instanceof U&&M.ol?(e.H9.a8("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
M.ol,y.slot),YN(M,y.slot,fn(e.J,y.slot),void 0,M.S$)):(e.H9.a8("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",y.slot),YN(M,y.slot));o_(e,y.slot,!0);continue}y=ca(e.J,y.slot);y.J!=="scheduled"&&t6(y.slot,y.J,"enterSlot");y.J="enter_requested";y.N.LU()}};
c0s=function(e,N){if(h6(e.J,N)&&gX(ca(e.J,N))&&fn(e.J,N)&&!DF(e.J,N)){var y;e.H9.A1("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",N,(y=fn(e.J,N))!=null?y:void 0);e=ca(e.J,N);e.J!=="entered"&&t6(e.slot,e.J,"enterLayoutForSlot");e.J="rendering";e.K.startRendering(e.layout)}};
DiE=function(e,N,y,w){if(h6(e.J,N)){var E=e.H9,A=E.A1,T;var p=((T=lLH.get(w))==null?void 0:T.mm)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";A.call(E,p,N,y);e=ca(e.J,N);e.J!=="rendering"&&t6(e.slot,e.J,"exitLayout");e.J="rendering_stop_requested";e.K.fC(y,w)}};
o_=function(e,N,y){if(h6(e.J,N)){a:switch(ca(e.J,N).J){case "exit_requested":var w=!0;break a;default:w=!1}if(!w)a:switch(ca(e.J,N).J){case "rendering_stop_requested":w=!0;break a;default:w=!1}if(w&&(ca(e.J,N).L=!0,!y))return;if(gX(ca(e.J,N)))ca(e.J,N).L=!0,gg1(e,N,y);else{a:switch(ca(e.J,N).j){case "fill_requested":y=!0;break a;default:y=!1}if(y)ca(e.J,N).L=!0,h6(e.J,N)&&(e.H9.S1("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",N),N=ca(e.J,N),N.j="fill_cancel_requested",N.G.Sa());else{y=
fn(e.J,N);(w=e.wP.get().C.X().experiments.gP("h5_enable_layout_unscheduling_events"))&&(y?e.Lq(N,y):YN(Error("Layout is null for LayoutUnscheduled event."),N,y,void 0,!1));e.H9.S1("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",N);var E=ca(e.J,N),A=N.slotEntryTrigger,T=E.qg.get(A.triggerId);T&&(T.Ay(A),E.qg.delete(A.triggerId));A=g.c(N.slotFulfillmentTriggers);for(T=A.next();!T.done;T=A.next()){T=T.value;var p=E.Ng.get(T.triggerId);p&&(p.Ay(T),E.Ng.delete(T.triggerId))}A=g.c(N.slotExpirationTriggers);
for(T=A.next();!T.done;T=A.next())if(T=T.value,p=E.D.get(T.triggerId))p.Ay(T),E.D.delete(T.triggerId);E.layout!=null&&(A=E.layout,uF(E,A.layoutExitNormalTriggers),uF(E,A.layoutExitSkipTriggers),uF(E,A.layoutExitMuteTriggers),uF(E,A.layoutExitUserInputSubmittedTriggers),uF(E,A.E2));E.G=void 0;E.N!=null&&(E.N.release(),E.N=void 0);E.K!=null&&(E.K.release(),E.K=void 0);E=e.J;ca(E,N)&&(E=Vk(E,N.slotType+"_"+N.slotPhysicalPosition))&&E.delete(N.slotId);e.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
N);e=g.c(e.N);for(E=e.next();!E.done;E=e.next())E=E.value,E.eZ(N),y&&!w&&E.Lq(N,y)}}}};
gg1=function(e,N,y){if(h6(e.J,N)&&gX(ca(e.J,N))){var w=fn(e.J,N);if(w&&DF(e.J,N))DiE(e,N,w,y?"error":"abandoned");else{e.H9.S1("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",N);try{var E=ca(e.J,N);if(!E)throw new U("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");E.J!=="enter_requested"&&E.J!=="entered"&&E.J!=="rendering"&&t6(E.slot,E.J,"exitSlot");E.J="exit_requested";if(E.N===void 0)throw E.J="scheduled",new U("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");E.N.HU()}catch(A){A instanceof U&&A.ol?(e.H9.a8("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",A.ol,N),YN(A,N,void 0,void 0,A.S$)):(e.H9.a8("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",N),YN(A,N))}}}};
VPM=function(e){this.slot=e;this.qg=new Map;this.Ng=new Map;this.D=new Map;this.Kh=new Map;this.K=this.layout=this.N=this.G=void 0;this.Z=this.L=!1;this.U=[];this.J="not_scheduled";this.j="not_filled"};
gX=function(e){return e.J==="enter_requested"||e.isActive()};
qx=function(e,N,y,w,E,A){g.x.call(this);this.V2=e;this.K=N;this.L=y;this.j=w;this.N=E;this.wP=A;this.J=new Map};
Vk=function(e,N){return(e=e.J.get(N))?e:new Map};
ca=function(e,N){return Vk(e,N.slotType+"_"+N.slotPhysicalPosition).get(N.slotId)};
fL5=function(e){var N=[];e.J.forEach(function(y){y=g.c(y.values());for(var w=y.next();!w.done;w=y.next())N.push(w.value.slot)});
return N};
h6=function(e,N){return ca(e,N)!=null};
DF=function(e,N){e=ca(e,N);if(N=e.layout!=null)a:switch(e.J){case "rendering":case "rendering_stop_requested":N=!0;break a;default:N=!1}return N};
fn=function(e,N){(e=ca(e,N))?e.layout!=null&&!e.layout&&YN("Unexpected empty layout",N):YN("Unexpected undefined slotState",N);return(e==null?void 0:e.layout)||null};
ZF=function(e,N,y){if(y.length==0)throw new U("No "+tPM.get(N)+" triggers found for slot.",void 0,uV_(N));y=g.c(y);for(var w=y.next();!w.done;w=y.next())if(w=w.value,!e.V2.ym.get(w.triggerType))throw new U("No trigger adapter registered for "+N+" trigger of type: "+w.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
uV_=function(e){switch(e){case "TRIGGER_CATEGORY_SLOT_ENTRY":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_ENTRY_TRIGGER";case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_EXPIRATION_TRIGGER";case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return"ADS_CLIENT_ERROR_MESSAGE_EMPTY_SLOT_FULFILLMENT_TRIGGER";default:return"ADS_CLIENT_ERROR_MESSAGE_INVALID_TRIGGER"}};
k2=function(e,N,y){y=g.c(y);for(var w=y.next();!w.done;w=y.next())if(w=w.value,!e.V2.ym.get(w.triggerType))throw new wX("No trigger adapter registered for "+tPM.get(N)+" trigger of type: "+w.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
Ba=function(e,N,y,w){w=g.c(w);for(var E=w.next();!E.done;E=w.next()){E=E.value;var A=e.V2.ym.get(E.triggerType);A.jw(y,E,N.slot,N.layout?N.layout:null);N.Kh.set(E.triggerId,A)}};
uF=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=e.Kh.get(y.triggerId);w&&(w.Ay(y),e.Kh.delete(y.triggerId))}};
t6=function(e,N,y){YN("Slot stage was "+N+" when calling method "+y,e)};
q$J=function(e){return x2(e.F0).concat(x2(e.ym)).concat(x2(e.Fs)).concat(x2(e.hc)).concat(x2(e.L9))};
x2=function(e){var N=[];e=g.c(e.values());for(var y=e.next();!y.done;y=e.next())y=y.value,y.l6&&N.push(y);return N};
jK=function(e){g.x.call(this);var N=this;this.J=e;this.instance=null;this.addOnDisposeCallback(function(){g.JV(N.instance);N.instance=null})};
nn=function(e){return new jK(e)};
Qk=function(e){g.x.call(this);this.J=e;this.N=ZQM(this)};
ZQM=function(e){var N=new lF(function(y,w,E,A){return new qx(e.J.V2,y,w,E,A,e.J.wP)},new Set(q$J(e.J.V2).concat(e.J.listeners)),e.J.H9,e.J.wP);
g.Q(e,N);return N};
m$=function(e){this.J=e};
Ha=function(e,N,y){TIH(e.J(),N,y)};
Kn=function(e,N,y,w){(e=e.J())||YN("Could not initiate a command router instance.");t5(e,N,y,w)};
Wa=function(){this.listeners=new Set};
OG=function(e){this.wP=e};
xi5=function(e,N){var y=N.bgp&&N.bgub,w=!!N.upb;N.siub&&N.scs&&(y||w)&&(w&&R_(e.wP.get(),"html5_export_sodar_snapshot")?DS().then(function(E){E=E.snapshot.bind(E);g.jM("yt.abuse.playerAttLoaderRun",E);OoP(N.siub,N.scs,N.bgub,N.bgp,N.upb)}):OoP(N.siub,N.scs,N.bgub,N.bgp,N.upb))};
jt3=function(e,N,y,w,E){this.callback=e;this.slot=N;this.N=y;this.yT=w;this.wP=E;this.J=null};
Qts=function(e,N,y,w){e.J&&YN("Currently active request ongoing for slot. This should never happen",e.slot);e.J=N();e.J.then(function(E){e.J=null;w&&w(E);var A=E.V5?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",T=e.N.get(),p=e.slot.slotId,C=$2(e.yT.get(),{slotId:e.slot.slotId,slotType:e.slot.slotType,slotPhysicalPosition:e.slot.slotPhysicalPosition,Xh:e.slot.Xh,slotEntryTrigger:e.slot.slotEntryTrigger,slotFulfillmentTriggers:e.slot.slotFulfillmentTriggers,slotExpirationTriggers:e.slot.slotExpirationTriggers}),
r=G5(T.N.get(),A,p),Y={layoutId:r,layoutType:A,Xh:"core"};E={layoutId:r,layoutType:A,tM:new Map,layoutExitNormalTriggers:[new ngH(T.J,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new Zb(E)]),o9:C(Y)};kO3(e.callback,e.slot,E)},function(E){e.J=null;
y&&y();E instanceof cc||bF(e.callback,e.slot,new U(E,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
mi1=function(e){if(e.J==null)e.callback.Nb(e.slot);else try{e.J.cancel(),e.J=null,e.callback.Nb(e.slot)}catch(N){e.J=null,bF(e.callback,e.slot,new U(N,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
UG=function(e,N,y,w){!e&&(y===void 0?0:y)&&g.uA(Error("Player URL validator detects invalid url. "+(w===void 0?"":w)+": "+N));return e};
Ln=function(e,N){return N&&N.test(e)?!0:!1};
sG=function(e){return(e=HQ9&&HQ9.exec(e))?e[0]:""};
a_=function(e){var N=N===void 0?!1:N;return UG(Ln(e,Kj3),e,N,"Trusted Stream URL")};
g.eO=function(e){var N=N===void 0?!1:N;return UG(Ln(e,Wj5),e,N,"Trusted Image URL")};
Rk5=function(e){var N=N===void 0?!1:N;return UG(Ln(e,OQP),e,N,"Trusted Promoted Video Domain URL")};
Ui9=function(e){var N=N===void 0?!1:N;return UG(Ln(e,GOs),e,N,"Drm Licensor URL")};
stE=function(e,N){N=N===void 0?!1:N;return UG(Ln(e,LjM),e,N,"Captions URL")};
aLF=function(e){e=new g.rS(e);g.$u(e,document.location.protocol);g.Yu(e,document.location.hostname);document.location.port&&g.Mk(e,document.location.port);return e.toString()};
NG=function(e){e=new g.rS(e);g.$u(e,document.location.protocol);return e.toString()};
g.wF=function(e,N,y){y=y===void 0?{}:y;this.start=e;this.end=N;this.active=!0;this.color="";this.N3=0;this.N=e9M++;this.id=y.id||"";this.priority=y.priority||9;this.visible=y.visible||!1;this.style=y.style||y6.AD_MARKER;this.namespace=y.namespace||"";if(e=y.color)e=e.toString(16),this.color="#"+Array(7-e.length).join("0")+e;this.tooltip=y.tooltip;this.icons=y.icons?y.icons.filter(function(w){return g.Ip(w.thumbnails,function(E){return g.eO(E.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
N1s=function(e){return e===-0x8000000000000?"BEFORE_MEDIA_START":e===0?"MEDIA_START":e===0x7ffffffffffff?"MEDIA_END":e===0x8000000000000?"AFTER_MEDIA_END":e.toString()};
yZH=function(e,N){switch(e.style){case y6.CHAPTER_MARKER:return N?8:5;case y6.AD_MARKER:return 6;case y6.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.Ep=function(e,N){return e.start-N.start||e.priority-N.priority||e.N-N.N};
g.AA=function(e){return"crn_"+e};
g.TW=function(e){return"crx_"+e};
JA=function(e,N,y,w,E,A,T,p,C){this.slot=N;this.N=y;this.Pk=T;this.zZ=p;this.xk=C;this.J=new jt3(e,N,w,E,A)};
wqE=function(e){var N;(N=e.xk)==null||N.get().Mp(A6(e.slot.clientMetadata,"metadata_type_cue_point").identifier)};
pv=function(e,N,y,w,E,A){this.slot=N;this.J=y;this.N=new jt3(e,N,w,E,A)};
Cv=function(e,N){this.callback=e;this.slot=N};
rF=function(e,N){return J6(e,N.xO,N.slotType)?!0:!1};
$Q=function(){};
YQ=function(e,N,y,w,E,A,T){this.J=e;this.N=N;this.yT=y;this.wP=w;this.Pk=E;this.zZ=A;this.xk=T};
MG=function(){};
Eln=function(e,N,y,w,E,A){this.callback=e;this.slot=N;this.layout=y;this.K=w;this.J=E;this.N=A};
T15=function(e){if(A6(e.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var N=AZ5(e,e.slot);lv(e.J.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[N]})}};
JZ_=function(e){if(A6(e.slot.clientMetadata,"metadata_type_prefetch_metadata")){var N=AZ5(e,e.slot);lv(e.J.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[N]})}};
AZ5=function(e,N){var y=F1(e.N.get(),e.slot.slotType),w=Object,E=w.assign;e=e.slot;if(N.slotEntryTrigger){var A=N.slotId;var T=N.slotEntryTrigger;A=T.triggeringSlotId!=null&&T.triggeringSlotId===A?T.clone(y):T}else A=void 0;return E.call(w,{},e,{slotId:y,slotEntryTrigger:A,slotFulfillmentTriggers:pqM(N.slotId,y,N.slotFulfillmentTriggers),slotExpirationTriggers:pqM(N.slotId,y,N.slotExpirationTriggers)})};
pqM=function(e,N,y){var w=[];y=g.c(y);for(var E=y.next();!E.done;E=y.next()){var A=w,T=A.push;var p=e;var C=N;E=E.value;p=E.triggeringSlotId!=null&&E.triggeringSlotId===p?E.clone(C):E;T.call(A,p)}return w};
g.SO=function(e,N){for(var y=g.c(Object.keys(N)),w=y.next(),E={};!w.done;E={placeholder:void 0},w=y.next())w=w.value,E.placeholder=N[w],e=e.replace(new RegExp("\\$"+w,"gi"),function(A){return function(){return A.placeholder}}(E));
return e};
CjJ=function(e,N,y){this.J=e;this.slot=N;this.layout=y};
o0=function(e,N,y){N.layoutId!==e.layout.layoutId?e.J.xz(e.slot,N,new wX("Unknown layout received. Required LayoutId: "+e.layout.layoutId+("and LayoutType: "+e.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):y()};
bv=function(e,N,y,w){g.pT.call(this);this.callback=e;this.K=w;this.J=[];this.N=new CjJ(e,N,y)};
ct=function(e,N,y,w,E,A,T,p){w=w||A6(y.clientMetadata,A);e=hA(e);var C=$T(function(){E.Ql(N,y)});
p.push(T(w,e,y.layoutId,{adsClientData:y.o9},function(){C()}))};
Bt=function(e,N,y,w,E,A,T,p,C){if(N===e)if(C){if(C===p.layoutId){a:{e=g.c(y.keys());for(N=e.next();!N.done;N=e.next())if(N=N.value,N.slotType==="SLOT_TYPE_PLAYER_BYTES"&&A===y.get(N).layoutId){y=!0;break a}y=!1}y?kQ(w,1):E?E():YN("Tried to call engagePingCallback but it is null",T,p)}}else YN("Companion AdUxClick received without a layoutId",T,p)};
X1=function(e){var N,y,w,E,A;return!((N=e.get("active_view_viewable"))==null||!N.length)||!((y=e.get("active_view_measurable"))==null||!y.length)||!((w=e.get("active_view_fully_viewable_audible_half_duration"))==null||!w.length)||!((E=e.get("audio_audible"))==null||!E.length)||!((A=e.get("audio_measurable"))==null||!A.length)};
Pt=function(e){var N,y;return(y=e==null?void 0:(N=e.activeViewTracking)==null?void 0:N.trafficType)!=null?y:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
dF=function(e){var N,y;return new Map([["impression",e.impressionPings||[]],["error",e.errorPings||[]],["mute",e.mutePings||[]],["unmute",e.unmutePings||[]],["pause",e.pausePings||[]],["rewind",e.rewindPings||[]],["resume",e.resumePings||[]],["skip",e.skipPings||[]],["swipe",e.swipePings||[]],["close",e.closePings||[]],["progress",e.progressPings||[]],["clickthrough",e.clickthroughPings||[]],["fullscreen",e.fullscreenPings||[]],["active_view_viewable",e.activeViewViewablePings||[]],["active_view_measurable",
e.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",e.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((N=e.activeViewTracking)==null?void 0:N.activeViewAudioAudiblePings)||[]],["audio_measurable",((y=e.activeViewTracking)==null?void 0:y.activeViewAudioMeasurablePings)||[]],["end_fullscreen",e.endFullscreenPings||[]],["channel_clickthrough",e.channelClickthroughPings||[]],["abandon",e.abandonPings||[]],["start",e.startPings||[]],["first_quartile",
e.firstQuartilePings||[]],["midpoint",e.secondQuartilePings||[]],["third_quartile",e.thirdQuartilePings||[]],["complete",e.completePings||[]],["unmuted_impression",e.unmutedImpressionPings||[]],["unmuted_error",e.unmutedErrorPings||[]],["unmuted_mute",e.unmutedMutePings||[]],["unmuted_unmute",e.unmutedUnmutePings||[]],["unmuted_pause",e.unmutedPausePings||[]],["unmuted_resume",e.unmutedResumePings||[]],["unmuted_close",e.unmutedClosePings||[]],["unmuted_progress",e.unmutedProgressPings||[]],["unmuted_clickthrough",
e.unmutedClickthroughPings||[]],["unmuted_fullscreen",e.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",e.unmutedEndFullscreenPings||[]],["unmuted_abandon",e.unmutedAbandonPings||[]],["unmuted_start",e.unmutedStartPings||[]],["unmuted_first_quartile",e.unmutedFirstQuartilePings||[]],["unmuted_midpoint",e.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",e.unmutedThirdQuartilePings||[]],["unmuted_complete",e.unmutedCompletePings||[]],["unmuted_skip",e.unmutedSkipPings||[]]])};
rZH=function(e){switch(e){case "abandon":return"unmuted_abandon";case "active_view_fully_viewable_audible_half_duration":return null;case "active_view_measurable":return null;case "active_view_viewable":return null;case "audio_audible":return null;case "audio_measurable":return null;case "channel_clickthrough":return null;case "clickthrough":return"unmuted_clickthrough";case "close":return"unmuted_close";case "companion_engagement":return null;case "complete":return"unmuted_complete";case "end_fullscreen":return"unmuted_end_fullscreen";
case "error":return"unmuted_error";case "first_quartile":return"unmuted_first_quartile";case "fullscreen":return"unmuted_fullscreen";case "impression":return"unmuted_impression";case "midpoint":return"unmuted_midpoint";case "mute":return"unmuted_mute";case "pause":return"unmuted_pause";case "progress":return"unmuted_progress";case "resume":return"unmuted_resume";case "rewind":return null;case "skip":return"unmuted_skip";case "swipe":return null;case "start":return"unmuted_start";case "third_quartile":return"unmuted_third_quartile";
case "unmute":return"unmuted_unmute";case "seek":return null;case "unmuted_abandon":case "unmuted_clickthrough":case "unmuted_complete":case "unmuted_end_fullscreen":case "unmuted_error":case "unmuted_first_quartile":case "unmuted_fullscreen":case "unmuted_impression":case "unmuted_midpoint":case "unmuted_mute":case "unmuted_pause":case "unmuted_close":case "unmuted_progress":case "unmuted_resume":case "unmuted_start":case "unmuted_third_quartile":case "unmuted_unmute":case "unmuted_skip":return null;
default:return null}};
I0=function(e,N,y,w,E){E=E===void 0?null:E;this.K=e;this.Pk=N;this.layoutId=w;this.j=0;this.Z=null;this.L=void 0;this.J=new Set;this.N=Array.from(this.K.get("progress")||[]);this.N.sort(function(A,T){return(A.offsetMilliseconds||0)-(T.offsetMilliseconds||0)});
this.G={adPlacementConfig:y,BA:E}};
vt=function(){return["metadata_type_ad_placement_config"]};
hA=function(e){var N=e.Pk.get();return zW(N,e.G)};
Dk=function(e,N,y){y=y===void 0?!1:y;e.J.has(N)?iv(e,N,[]):e.eR(N,y)};
gF=function(e,N,y){for(y=y===void 0?!1:y;e.j<e.N.length;){var w=e.N[e.j];if(w.offsetMilliseconds<=N||y)iv(e,"progress",[w]),e.j++;else break}};
V6=function(e,N){return e.J.has(N)};
fv=function(e){return e.N.every(function(N){return N.hasOwnProperty("offsetMilliseconds")})};
$uH=function(e,N,y){e.Z=N;e.L=y};
iv=function(e,N,y){var w;YZ1(e.Pk.get(),e.layoutId,N,y,(w=e.Z)!=null?w:void 0,e.L)};
MY5=function(e,N,y,w,E){JZ.call(this,"ads-engagement-panel-layout",e,N,y,w,E)};
tA=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.Z=p;this.l6=!0;this.j=null;this.L=A6(y.clientMetadata,"metadata_type_linked_player_bytes_layout_id");F2(this.Jz(),this);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
lh_=function(){var e=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_PANEL"]}};
Fk0=function(e,N,y,w,E){JZ.call(this,"banner-image",e,N,y,w,E)};
uv=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.Z=p;this.l6=!0;this.j=null;this.L=A6(y.clientMetadata,"metadata_type_linked_player_bytes_layout_id");F2(this.Jz(),this);this.adPlacementConfig=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,this.adPlacementConfig,y.layoutId)};
SZ9=function(){var e=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
qG=function(e,N,y,w,E){JZ.call(this,"action-companion",e,N,y,w,E)};
Zk=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.Z=p;this.l6=!0;this.j=null;this.L=A6(y.clientMetadata,"metadata_type_linked_player_bytes_layout_id");F2(this.Jz(),this);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
ol9=function(){var e=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
bT9=function(e,N,y,w,E){JZ.call(this,"image-companion",e,N,y,w,E)};
xQ=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.Z=p;this.l6=!0;this.j=null;this.L=A6(y.clientMetadata,"metadata_type_linked_player_bytes_layout_id");F2(this.Jz(),this);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
h9J=function(){var e=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
cZF=function(e,N,y,w,E){JZ.call(this,"shopping-companion",e,N,y,w,E)};
jO=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.Z=p;this.l6=!0;this.j=null;this.L=A6(y.clientMetadata,"metadata_type_linked_player_bytes_layout_id");F2(this.Jz(),this);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
kVH=function(){var e=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
B1J=function(e){var N;if(((N=e.adVideoOffset)==null?void 0:N.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var y;return((y=e.adVideoOffset)==null?void 0:y.percent)!=null};
XqJ=function(e){var N;if(((N=e.adVideoOffset)==null?void 0:N.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var y;return((y=e.adVideoOffset)==null?void 0:y.milliseconds)!=null&&!isNaN(Number(e.adVideoOffset.milliseconds))};
PjM=function(e,N,y,w){this.P9=e;this.layoutId=y;this.L=w;this.N=[];this.J=[];this.K=this.j=0;e=g.c(N);for(N=e.next();!N.done;N=e.next())switch(N=N.value,y=void 0,(y=N.adVideoOffset)==null?void 0:y.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":B1J(N)?this.N.push(N):YN("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":XqJ(N)?this.J.push(N):YN("Invalid AdVideoProgressMillisecondsCommand");break;default:YN("Unknown or invalid AdVideoProgressOffSet kind")}this.N.sort(function(E,
A){return E.adVideoOffset.percent-A.adVideoOffset.percent});
this.J.sort(function(E,A){return Number(E.adVideoOffset.milliseconds)-Number(A.adVideoOffset.milliseconds)})};
nv=function(e,N,y){y=y===void 0?!1:y;var w=e.L();if(w){for(;e.j<e.N.length;){var E=e.N[e.j];if(E.adVideoOffset.percent*w<=N||y)e.P9.get().executeCommand(E.command,e.layoutId),e.j++;else break}for(;e.K<e.J.length;)if(w=e.J[e.K],Number(w.adVideoOffset.milliseconds)<=N||y)e.P9.get().executeCommand(w.command,e.layoutId),e.K++;else break}};
Q6=function(e,N,y,w,E,A){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.l6=!0;F2(this.Jz(),this);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
duE=function(){var e=["metadata_type_action_companion_ad_renderer"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
IhF=function(e,N,y,w,E,A,T,p){this.callback=e;this.slot=N;this.layout=y;this.zZ=w;this.Pk=E;this.wP=T;this.AM=p;this.J=!1;e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId);var C;e=((C=A6(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:C.progressCommands)||[];var r=A6(y.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.N=new PjM(A,e,y.layoutId,function(){return r*1E3})};
mx=function(e,N,y,w,E,A){bv.call(this,e,N,y,w);this.zZ=E;this.L=A;this.j=!1};
Ht=function(e,N,y,w,E){JZ.call(this,"top-banner-image-text-icon-buttoned",e,N,y,w,E)};
Kv=function(e,N,y,w,E,A){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.l6=!0;F2(this.Jz(),this);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
vl_=function(){var e=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Wt=function(e,N,y){JZ.call(this,"display-underlay-text-grid-cards",e,{},N,y);this.interactionLoggingClientData=y};
Op=function(e,N,y,w,E,A){bv.call(this,e,N,y,w);this.Pk=E;this.j=A;this.L=A6(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
R0=function(e,N,y,w,E,A){E=E===void 0?!1:E;A=A===void 0?!1:A;JZ.call(this,"ad-action-interstitial",e,N,y,w);this.interactionLoggingClientData=w;this.ZH=E;this.uC=A};
GW=function(e,N,y,w,E){bv.call(this,e,N,y,w);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,E,e,y.layoutId)};
z9H=function(){var e=["metadata_type_ad_action_interstitial_renderer"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_ENDCAP"]}};
Up=function(e,N){return Nx(e,N.xO,N.K$)?!0:!1};
Lv=function(e,N,y){this.N=e;this.K=N;this.J=y};
iTE=function(e,N,y,w,E){JZ.call(this,"ads-engagement-panel",e,N,y,w,E)};
sp=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.Z=p;this.l6=!0;this.j=null;this.L=A6(y.clientMetadata,"metadata_type_linked_player_bytes_layout_id");F2(this.Jz(),this);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
DuH=function(){var e=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
a0=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.Pk=E;this.Jz=A;this.Z=p;this.l6=!0;this.j=null;this.L=A6(y.clientMetadata,"metadata_type_linked_player_bytes_layout_id");F2(this.Jz(),this);this.adPlacementConfig=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,this.adPlacementConfig,y.layoutId)};
glH=function(){var e=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
VYE=function(e,N,y,w,E){this.q7=e;this.Pk=N;this.Jz=y;this.J=w;this.AM=E};
fh5=function(e,N,y){this.q7=e;this.Pk=N;this.J=y};
tYn=function(e,N,y,w,E){this.callback=e;this.slot=N;this.layout=y;this.Pk=w;this.Mr=E;e=A6(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
u3E=function(){var e=["metadata_type_client_forecasting_ad_renderer"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_FORECASTING"]}};
qZM=function(e,N,y,w,E){this.callback=e;this.slot=N;this.layout=y;this.Pk=w;this.Mr=E;e=A6(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
ec=function(e,N,y,w){this.wP=e;this.Pk=N;this.Mr=y;this.AM=w};
ZTM=function(e,N){return eK(e.clientMetadata,"metadata_type_ad_info_ad_metadata")?A6(e.clientMetadata,"metadata_type_ad_info_ad_metadata"):N?{channelId:N.iI,channelThumbnailUrl:N.profilePicture,channelTitle:N.author,videoTitle:N.title}:(YN("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
xu3=function(e,N){return eK(e.clientMetadata,"metadata_ad_video_is_listed")?A6(e.clientMetadata,"metadata_ad_video_is_listed"):N?N.isListed:(YN("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
jMH=function(e,N,y,w){JZ.call(this,"player-overlay-layout",e,{},y,w);this.videoAdDurationSeconds=N;this.interactionLoggingClientData=w};
N5=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.zZ=E;this.Pk=A;this.Z=T;this.L=p;this.j=!1;this.G=A6(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
nl1=function(e){if(e.layout.renderingContent){var N;return(N=A6(e.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:N.current}return A6(e.layout.clientMetadata,"metadata_type_player_bytes_callback")};
yI=function(e,N,y,w,E,A,T,p){bv.call(this,e,N,y,w);this.zZ=E;this.Pk=A;this.Z=T;this.L=p;this.j=!1;this.G=A6(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
QMM=function(){return{xO:["metadata_type_instream_ad_player_overlay_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],K$:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
wp=function(e){if(e.layout.renderingContent){var N;return(N=A6(e.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:N.current}return A6(e.layout.clientMetadata,"metadata_type_player_bytes_callback")};
muP=function(e,N,y){JZ.call(this,"ad-message",e,void 0,N,y)};
Eg=function(e,N,y,w,E,A){bv.call(this,y,e,N,w);this.zZ=E;this.wP=A};
HT5=function(){return{xO:["metadata_type_valid_ad_message_renderer"],K$:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
Kkn=function(e,N,y,w){JZ.call(this,"video-interstitial-buttoned-centered",e,N,y,w);this.interactionLoggingClientData=w};
AG=function(e,N,y,w,E){bv.call(this,e,N,y,w);e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,E,e,y.layoutId)};
rp=function(e,N,y,w,E,A,T,p,C){return Up(y,QMM())||y.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.m(y.renderingContent,TS)!==void 0?new yI(e,N,y,w,E,A,T,p):Up(y,{xO:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],K$:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||y.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.m(y.renderingContent,JG)!==void 0?
new N5(e,N,y,w,E,A,T,p):Up(y,z9H())||y.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.m(y.renderingContent,pd)!==void 0?new GW(e,N,y,w,A):Up(y,HT5())?new Eg(N,y,e,w,E,C):Up(y,{xO:["metadata_type_instream_ad_player_overlay_renderer"],K$:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new mx(e,N,y,w,E,p):y.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.m(y.renderingContent,Cd)!==void 0?new AG(e,N,y,w,A):null};
WkM=function(e,N,y,w,E,A){this.q7=e;this.zZ=N;this.Pk=y;this.N=w;this.J=E;this.wP=A};
$6=function(e){return!e.oldState.isPlaying()&&e.state.isPlaying()};
Y6=function(e,N,y){return e<N?!1:y!=null?y<=N:e<=N+1};
OTs=function(e,N,y,w,E,A,T){this.callback=e;this.slot=N;this.layout=y;this.zZ=w;this.Pk=E;this.wP=A;this.AM=T;this.J=!1;e=A6(y.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId)};
M5=function(e,N){e.J||(e.vk.eR(N),e.J=!0)};
R9M=function(e,N,y,w,E){this.zZ=e;this.Pk=N;this.P9=y;this.wP=w;this.AM=E};
l$=function(){this.currentState=1;this.J="unknown"};
Fe=function(e,N){if(e.currentState>1){g.uA(new g.Gh("Exit already started",{current:e.currentState}));var y=!1}else y=!0;if(!y)return!1;e.currentState=2;e.J=N;return!0};
Sc=function(e){if(e.currentState!==2)return!1;e.currentState=3;return!0};
GV3=function(e,N){var y=new Map;e=g.c(e);for(var w=e.next();!w.done;w=e.next()){w=w.value;if(w.layoutType==="LAYOUT_TYPE_MEDIA")var E="v";else w.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(E=A6(w.clientMetadata,"metadata_type_linked_in_player_layout_type"),E=E==="LAYOUT_TYPE_ENDCAP"||E==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":E==="LAYOUT_TYPE_SURVEY"?"s":E==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):E="u";y.set(w.layoutId,E);if(E==="u"){var A={};E=N;w=(A.c=w.layoutId,A);E.C.Fh("uct",w)}}e=
N.YI();o2={contentCpn:e,YS:y};w={};y=(w.ct=y.size,w.c=e,w);N.C.Fh("acc",y)};
UuH=function(){o2={contentCpn:"",YS:new Map}};
b$=function(e){var N;return(N=o2.YS.get(e))!=null?N:"u"};
hG=function(e,N,y){e.C.Fh(N,y);LkP(e)};
sMJ=function(e){var N=e.layoutId,y=e.dS;if(e.OR){var w={};hG(e.zo,"slso",(w.ec=N,w.is=y,w.ctp=b$(N),w))}};
c3=function(e){var N=e.layoutId,y=e.dS;if(e.OR){var w={};hG(e.zo,"slse",(w.ec=N,w.is=y,w.ctp=b$(N),w))}};
ahJ=function(e){var N=e.layoutId,y=e.dS,w=e.zo;e.OR&&(e={},hG(w,"sleo",(e.xc=N,e.is=y,e.ctp=b$(N),e)),LkP(w))};
e3_=function(e){var N=e.cpn,y=e.zo;e=e.dS;var w=y.YI(),E={};hG(y,"ce",(E.ec=N,E.ia=N!==w,E.r=o2.YS.has(N),E.is=e,E.ctp=b$(N),E))};
LkP=function(e){if(e.YI()!==o2.contentCpn){var N={};N=(N.c=o2.contentCpn,N);e.C.Fh("ccm",N)}};
Nh1=function(e){var N=e.cpn,y=e.zo;e=e.dS;var w=y.YI(),E={};hG(y,"cx",(E.xc=N,E.ia=N!==w,E.r=o2.YS.has(N),E.is=e,E.ctp=b$(N),E))};
yF5=function(e){this.params=e;this.J=new Set};
w2J=function(e,N,y){if(!e.J.has(N)){e.J.add(N);var w={};e.params.OP.g4(N,Object.assign({},y,(w.p_ac=e.params.adCpn,w.p_isv=e.params.WPq&&e.params.gx,w)))}};
B3=function(e,N,y){if(k6(e.params.OP.wP.get(),!0)){var w=y.flush,E={};w2J(e,N,(E.cts=y.currentTimeSec,E.f=w,E))}};
ENE=function(e,N){this.zo=e;this.wP=N};
Xe=function(e){var N=[];if(e){e=g.c(Object.entries(e));for(var y=e.next();!y.done;y=e.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;w!==void 0&&(w=typeof w==="boolean"?""+ +w:(""+w).replace(/[:,=]/g,"_"),N.push(y+"."+w))}}return N.join(";")};
P3=function(e,N,y){N=N===void 0?{}:N;this.errorCode=e;this.details=N;this.severity=y===void 0?0:y};
dp=function(e){return e===1||e===2};
I2=function(e,N){N=N===void 0?0:N;if(e instanceof P3)return e;e=e&&e instanceof Error?e:Error(""+e);dp(N)?g.t0(e):g.uA(e);return new P3(N===1?"player.fatalexception":"player.exception",{name:""+e.name,message:""+e.message},N)};
AF5=function(e,N){function y(){var w=g.iE.apply(0,arguments);e.removeEventListener("playing",y);N.apply(null,g.B(w))}
e.addEventListener("playing",y)};
v3=function(){var e=g.nM("yt.player.utils.videoElement_");e||(e=g.sA("VIDEO"),g.jM("yt.player.utils.videoElement_",e));return e};
zS=function(e){var N=v3();return!!(N&&N.canPlayType&&N.canPlayType(e))};
Dr=function(e){if(/opus/.test(e)&&g.i$&&!vD("38")&&!g.O8())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(e);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(e);if(/webm/.test(e)&&!oDs())return!1;e==='audio/mp4; codecs="mp4a.40.2"'&&(e='video/mp4; codecs="avc1.4d401f"');return!!zS(e)};
Thn=function(e){try{var N=Dr('video/mp4; codecs="avc1.42001E"')||Dr('video/webm; codecs="vp9"');return(Dr('audio/mp4; codecs="mp4a.40.2"')||Dr('audio/webm; codecs="opus"'))&&(N||!e)||zS('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(y){return"html5.missingapi"}};
gp=function(){var e=v3();return!(!e.webkitSupportsPresentationMode||typeof e.webkitSetPresentationMode!=="function")};
VI=function(){var e=v3();try{var N=e.muted;e.muted=!N;return e.muted!==N}catch(y){}return!1};
JF5=function(){var e;return((e=navigator.connection)==null?void 0:e.type)||""};
g.fd=function(){iY.apply(this,arguments)};
tG=function(e,N,y,w,E,A,T){this.sampleRate=e===void 0?0:e;this.numChannels=N===void 0?0:N;this.spatialAudioType=y===void 0?"SPATIAL_AUDIO_TYPE_NONE":y;this.J=w===void 0?!1:w;this.K=E===void 0?0:E;this.N=A===void 0?0:A;this.audioQuality=T===void 0?"AUDIO_QUALITY_UNKNOWN":T};
Zr=function(e,N,y,w,E,A,T,p,C){this.width=e;this.height=N;this.quality=A||u$(e,N);this.J=g.q5[this.quality];this.fps=y||0;this.stereoLayout=!E||w!=null&&w!=="UNKNOWN"&&w!=="RECTANGULAR"?0:E;this.projectionType=w?w==="EQUIRECTANGULAR"&&E===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":w:"UNKNOWN";(e=T)||(e=g.q5[this.quality],e===0?e="Auto":(N=this.fps,y=this.projectionType,e=e.toString()+(y==="EQUIRECTANGULAR"||y==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||y==="MESH"?"s":"p")+(N>55?"60":N>49?"50":N>39?"48":"")));
this.qualityLabel=e;this.N=p||"";this.primaries=C||""};
u$=function(e,N){var y=Math.max(e,N);e=Math.min(e,N);N=x6[0];for(var w=0;w<x6.length;w++){var E=x6[w],A=g.q5[E];if(y>=Math.floor(A*16/9)*1.3||e>=A*1.3)return N;N=E}return"tiny"};
QI=function(e,N,y){y=y===void 0?{}:y;this.id=e;this.mimeType=N;y.JM>0||(y.JM=16E3);Object.assign(this,y);e=g.c(this.id.split(";"));this.itag=e.next().value;this.J=e.next().value;this.containerType=jc(N);this.Iq=nd[this.itag]||""};
mu=function(e){return e.Iq==="9"||e.Iq==="("||e.Iq==="9h"||e.Iq==="(h"};
p20=function(e){return e.Iq==="H"||e.Iq==="h"};
H3=function(e){return e.Iq==="9h"||e.Iq==="(h"};
Kd=function(e){return e.Iq==="1"||e.Iq==="1h"};
W3=function(e){return e.Iq==="mac3"||e.Iq==="meac3"||e.Iq==="m"||e.Iq==="i"};
Og=function(e){return e.Iq==="MAC3"||e.Iq==="MEAC3"||e.Iq==="M"||e.Iq==="I"};
g.R2=function(e){return e.containerType===1};
Cp5=function(e){return e.Iq==="("||e.Iq==="(h"||e.Iq==="H"};
GS=function(e){return e.mimeType==="application/x-mpegURL"};
Ug=function(e){e=e.mimeType;return e.includes("vtt")||e.includes("text/mp4")};
g.Ld=function(e,N){return{itag:+e.itag,lmt:N?0:e.lastModified,xtags:e.J||""}};
rFM=function(e){var N=navigator.mediaCapabilities;if(N==null||!N.decodingInfo||e.Iq==="f")return Promise.resolve();var y={type:e.audio&&e.video?"file":"media-source"};e.video&&(y.video={contentType:e.mimeType,width:e.video.width||640,height:e.video.height||360,bitrate:e.JM*8||1E6,framerate:e.video.fps||30});e.audio&&(y.audio={contentType:e.mimeType,channels:""+(e.audio.numChannels||2),bitrate:e.JM*8||128E3,samplerate:e.audio.sampleRate||44100});return N.decodingInfo(y).then(function(w){e.N=w})};
sg=function(e){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(e)};
a2=function(e){return/(vp9|vp09|vp8|avc1|av01)/.test(e)};
jc=function(e){return e.indexOf("/mp4")>=0?1:e.indexOf("/webm")>=0?2:e.indexOf("/x-flv")>=0?3:e.indexOf("/vtt")>=0?4:0};
ei=function(e,N,y,w,E,A){var T=new tG;N in g.q5||(N="small");N==="light"&&(N="tiny");w&&E?(E=Number(E),w=Number(w)):(E=g.q5[N],w=Math.round(E*16/9));A=new Zr(w,E,0,null,void 0,N,A);e=unescape(e.replace(/&quot;/g,'"'));return new QI(y,e,{audio:T,video:A})};
N$=function(e){var N="id="+e.id;e.video&&(N+=", res="+e.video.qualityLabel);var y,w;return N+", byterate=("+((y=e.RX)==null?void 0:y.toFixed(0))+", "+((w=e.JM)==null?void 0:w.toFixed(0))+")"};
yc=function(e,N){return{start:function(y){return e[y]},
end:function(y){return N[y]},
length:e.length}};
$EM=function(e,N,y){for(var w=[],E=[],A=0;A<e.length;A++)w.push(e.start(A)),E.push(e.end(A));w.push(N);E.push(y);w.sort(function(T,p){return T-p});
E.sort(function(T,p){return T-p});
return yc(w,E)};
wO=function(e,N,y){N=N===void 0?",":N;y=y===void 0?e?e.length:0:y;var w=[];if(e)for(y=Math.max(e.length-y,0);y<e.length;y++)w.push(e.start(y).toFixed(3)+"-"+e.end(y).toFixed(3));return w.join(N)};
E3=function(e,N){if(!e)return-1;try{for(var y=0;y<e.length;y++)if(e.start(y)<=N&&e.end(y)>=N)return y}catch(w){}return-1};
AX=function(e,N){return E3(e,N)>=0};
Yz3=function(e,N){if(!e)return NaN;N=E3(e,N);return N>=0?e.start(N):NaN};
T6=function(e,N){if(!e)return NaN;N=E3(e,N);return N>=0?e.end(N):NaN};
JX=function(e){return e&&e.length?e.end(e.length-1):NaN};
ph=function(e,N){e=T6(e,N);return e>=0?e-N:0};
Ch=function(e,N,y){for(var w=[],E=[],A=0;A<e.length;A++)e.end(A)<N||e.start(A)>y||(w.push(Math.max(N,e.start(A))-N),E.push(Math.min(y,e.end(A))-N));return yc(w,E)};
rO=function(e,N,y,w){g.pT.call(this);var E=this;this.KC=e;this.start=N;this.end=y;this.isActive=w;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.t8={error:function(){!E.Ss()&&E.isActive&&E.publish("error",E)},
updateend:function(){!E.Ss()&&E.isActive&&E.publish("updateend",E)}};
this.KC.H_(this.t8);this.MC=this.isActive};
YH=function(e,N,y,w,E,A){g.pT.call(this);var T=this;this.TW=e;this.gQ=N;this.id=y;this.containerType=w;this.Iq=E;this.gx=A;this.Pe=this.R6=this.lP=null;this.KU=!1;this.appendWindowStart=this.timestampOffset=0;this.yc=yc([],[]);this.Yn=!1;this.Su=[];this.aH=$H?[]:void 0;this.bB=function(C){return T.publish(C.type,T)};
var p;if((p=this.TW)==null?0:p.addEventListener)this.TW.addEventListener("updateend",this.bB),this.TW.addEventListener("error",this.bB)};
Zo=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
xH=function(e,N){this.yl=e;this.J=N===void 0?!1:N;this.N=!1};
ji=function(e,N,y){y=y===void 0?!1:y;g.x.call(this);this.mediaElement=e;this.TZ=N;this.isView=y;this.Z=0;this.j=!1;this.L=!0;this.D=0;this.callback=null;this.U=!1;this.TZ||(this.gQ=this.mediaElement.ut());this.events=new g.fd(this);g.Q(this,this.events);this.K=new xH(this.TZ?window.URL.createObjectURL(this.TZ):this.gQ.webkitMediaSourceURL,!0);e=this.TZ||this.gQ;Dw(this.events,e,["sourceopen","webkitsourceopen"],this.Mpq);Dw(this.events,e,["sourceclose","webkitsourceclose"],this.Vpq);this.G={updateend:this.G6}};
MQ9=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
lYH=function(e,N){nh(e)?g.Jo(function(){N(e)}):e.callback=N};
FQs=function(e,N,y){if(Qc){var w;ma(e.mediaElement,{l:"mswssb",sr:(w=e.mediaElement.JW)==null?void 0:w.fO()},!1);N.H_(e.G,e);y.H_(e.G,e)}e.J=N;e.N=y;g.Q(e,N);g.Q(e,y)};
Sz5=function(e,N,y,w){w=N.mimeType+(w===void 0?"":w);var E=y.mimeType;N=N.Iq;y=y.Iq;var A;e.Ng=(A=e.TZ)==null?void 0:A.addSourceBuffer(E);var T;e.Kh=w.split(";")[0]==="fakesb"?void 0:(T=e.TZ)==null?void 0:T.addSourceBuffer(w);e.gQ&&(e.gQ.webkitSourceAddId("0",E),e.gQ.webkitSourceAddId("1",w));A=new YH(e.Ng,e.gQ,"0",jc(E),y,!1);w=new YH(e.Kh,e.gQ,"1",jc(w),N,!0);FQs(e,A,w)};
HI=function(e){return!!e.J||!!e.N};
nh=function(e){try{return Kh(e)==="open"}catch(N){return!1}};
Kh=function(e){if(e.TZ)return e.TZ.readyState;switch(e.gQ.webkitSourceState){case e.gQ.SOURCE_OPEN:return"open";case e.gQ.SOURCE_ENDED:return"ended";default:return"closed"}};
WI=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
oN3=function(e){nh(e)&&(e.TZ?e.TZ.endOfStream():e.gQ.webkitSourceEndOfStream(e.gQ.EOS_NO_ERROR))};
bR9=function(e,N,y,w){if(!e.J||!e.N)return null;var E=e.J.isView()?e.J.KC:e.J,A=e.N.isView()?e.N.KC:e.N,T=new ji(e.mediaElement,e.TZ,!0);T.K=e.K;FQs(T,new rO(E,N,y,w),new rO(A,N,y,w));nh(e)||e.J.lZ(e.J.w7());return T};
h30=function(e){var N;(N=e.J)==null||N.IC();var y;(y=e.N)==null||y.IC();e.L=!1};
O3=function(){var e=this;this.oD=this.nG=VME;this.promise=new g.lB(function(N,y){e.nG=N;e.oD=y})};
R8=function(){g.x.call(this);this.CM=!1;this.yl=null;this.G=this.Z=!1;this.j=new g.Ux;this.JW=null;g.Q(this,this.j)};
G6=function(e){e=e.Gz();return e.length<1?NaN:e.end(e.length-1)};
cF5=function(e){!e.N&&MQ9()&&(e.K?e.K.then(function(){return cF5(e)}):e.cI()||(e.N=e.E$()))};
kF9=function(e){e.N&&(e.N.dispose(),e.N=void 0)};
ma=function(e,N,y){var w;((w=e.JW)==null?0:w.B9())&&e.JW.Fh("rms",N,y===void 0?!1:y)};
BhH=function(e,N,y){e.isPaused()||e.getCurrentTime()>N||y>10||(e.play(),g.b4(function(){BhH(e,e.getCurrentTime(),y+1)},500))};
X2_=function(e,N){e.yl&&e.yl.Bw(N)||(e.yl&&e.yl.dispose(),e.yl=N)};
U3=function(e){return ph(e.O4(),e.getCurrentTime())};
Pp1=function(e,N){if(e.Rl()===0||e.hasError())return!1;var y=e.getCurrentTime()>0;return N>=0&&(e=e.Gz(),e.length||!y)?AX(e,N):y};
Lh=function(e){e.cI()&&(e.JW&&e.JW.d6("rs_s"),Gv&&e.getCurrentTime()>0&&e.seekTo(0),e.Wu(),e.load(),X2_(e,null));delete e.K};
s3=function(e){switch(e.pw()){case 2:return"progressive.net.retryexhausted";case 3:return e=e.Cq(),(e==null?0:e.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||dEJ&&(e==null?0:e.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.a8=function(e,N,y){this.qS=N===void 0?null:N;this.seekSource=y===void 0?null:y;this.state=e||64};
ep=function(e,N,y){y=y===void 0?!1:y;return IYn(e,N.getCurrentTime(),(0,g.iC)(),U3(N),y)};
Nb=function(e,N,y,w){if(!(N===e.state&&y===e.qS&&w===e.seekSource||N!==void 0&&(N&128&&!y||N&2&&N&16))){var E;if(E=N)E=N||e.state,E=!!(E&16||E&32);e=new g.a8(N,y,E?w?w:e.seekSource:null)}return e};
yO=function(e,N,y){return Nb(e,e.state|N,null,y===void 0?null:y)};
wY=function(e,N){return Nb(e,e.state&~N,null,null)};
EV=function(e,N,y,w){return Nb(e,(e.state|N)&~y,null,w===void 0?null:w)};
g.G=function(e,N){return!!(e.state&N)};
g.A_=function(e,N){return N.state===e.state&&N.qS===e.qS};
Tp=function(e){return e.isPlaying()&&!g.G(e,16)&&!g.G(e,32)};
J_=function(e){return g.G(e,128)?-1:g.G(e,2)?0:g.G(e,2048)?3:g.G(e,64)?-1:g.G(e,1)&&!g.G(e,32)?3:g.G(e,8)?1:g.G(e,4)?2:-1};
CL=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X){g.x.call(this);var d=this;this.oY=e;this.slot=N;this.layout=y;this.Pk=w;this.AM=E;this.Hk=A;this.zZ=T;this.d7=p;this.P9=C;this.qA=r;this.position=M;this.Z=l;this.wP=F;this.Pi=S;this.Kw=k;this.context=X;this.l6=!0;this.L=!1;this.Dg="not_rendering";this.N=!1;this.K=new l$;e=A6(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(y.tM,this.Pk,e,y.layoutId);var v;e=((v=pL(this))==null?void 0:v.progressCommands)||[];this.j=new PjM(C,
e,y.layoutId,function(){return d.Zj()});
this.J=new yF5({adCpn:this.layout.layoutId,OP:X.OP,WPq:this.Pi,gx:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
rY=function(e){return{layoutId:e.rb(),dS:e.Pi,zo:e.Hk.get(),OR:e.HE()}};
$z=function(e,N){return N.layoutId!==e.layout.layoutId?(e.oY.xz(e.slot,N,new wX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+e.layout.layoutId+("and LayoutType: "+e.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
Yz=function(e){e.Dg="rendering_start_requested";e.qA(-1)};
pL=function(e){return A6(e.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
vNM=function(e){YN("Received layout exit signal when not in layout exit flow.",e.slot,e.layout)};
z3M=function(e){var N;return((N=Mb(e.Hk.get(),2))==null?void 0:N.clientPlaybackNonce)||""};
li=function(e,N){switch(N){case "normal":e.eR("complete");break;case "skipped":e.eR("skip");break;case "abandoned":V6(e.vk,"impression")&&e.eR("abandon")}};
Fl=function(e,N){e.L||(N=new g.ME(N.state,new g.a8),e.L=!0);return N};
Sp=function(e,N){$6(N)?e.qA(1):g.FD(N,4)&&!g.FD(N,2)&&e.Jh();lp(N,4)<0&&!(lp(N,2)<0)&&e.N9()};
iR5=function(e){e.position===0&&(e.d7.get(),e=A6(e.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e={adBreakType:oV(e)},jZ("ad_bl"),g.nV(e))};
bi=function(e,N){Dk(e.vk,N,!e.N)};
gN_=function(e){var N;return(((N=pL(e))==null?void 0:N.progressCommands)||[]).findIndex(function(y){return!!g.m(y==null?void 0:y.command,DEE)})!==-1};
h_=function(e,N){var y=A6(e.clientMetadata,"metadata_type_eligible_for_ssap");return y===void 0?(YN("Expected SSAP eligibility in PlayerBytes factory",e),!1):N.HE(y)};
cd=function(e,N){if(!R_(N.get(),"html5_ssap_pass_transition_reason"))return 3;switch(e){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return YN("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return YN("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:e}),3;default:wa(e,"unknown layoutExitReason")}};
VQ5=function(e){YN("getExitReason: unexpected reason",void 0,void 0,{reason:e})};
kz=function(e,N){if(R_(N.get(),"html5_ssap_pass_transition_reason"))switch(e){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return VQ5(e),"abandoned";case 3:case 1:return VQ5(e),"error";default:wa(e,"unexpected transition reason")}else switch(e){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return YN("getExitReason: unexpected reason",void 0,void 0,{reason:e}),"error";default:wa(e,"unexpected transition reason")}};
Bd=function(e,N,y){mo(e,y)||KV(e,N,y);mo(e,"video_to_ad")||KV(e,N,"video_to_ad");mo(e,"ad_to_video")||KV(e,N,"ad_to_video");mo(e,"ad_to_ad")||KV(e,N,"ad_to_ad")};
Xl=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d){CL.call(this,e,N,y,w,E,A,T,p,r,Y,M,l,F,S,k,X,d);var v=this;this.Vi=C;this.nz=M;this.Ex=!0;this.Lp=this.Cj=0;this.b1=$T(function(){sMJ(rY(v));v.oY.Ql(v.slot,v.layout)});
this.vC=$T(function(){ahJ(rY(v));v.Dg!=="rendering_stop_requested"&&v.nz(v);v.layoutExitReason?v.oY.aJ(v.slot,v.layout,v.layoutExitReason):vNM(v)});
this.D_=new g.kT(200);this.D_.listen("tick",function(){v.HY()});
g.Q(this,this.D_)};
dY=function(e){e.Lp=Date.now();Pd(e,e.Cj);e.D_.start()};
fYH=function(e){e.Cj=e.Zj();e.bV(e.Cj/1E3,!0);Pd(e,e.Cj)};
Pd=function(e,N){N={current:N/1E3,duration:e.Zj()/1E3};e.Vi.get().gS("onAdPlaybackProgress",N)};
IV=function(e){Xl.call(this,e.oY,e.slot,e.Ww,e.Pk,e.AM,e.Hk,e.zZ,e.d7,e.Vi,e.P9,e.qA,e.nz,e.xo,e.G3,e.wP,e.Pi,e.Kw,e.context)};
vd=function(e){Xl.call(this,e.oY,e.slot,e.Ww,e.Pk,e.AM,e.Hk,e.zZ,e.d7,e.Vi,e.P9,e.qA,e.nz,e.xo,e.G3,e.wP,e.Pi,e.Kw,e.context)};
zp=function(){vd.apply(this,arguments)};
tQn=function(e){return h_(e.slot,e.wP.get())?new zp(e):new IV(e)};
gY=function(e){CL.call(this,e.callback,e.slot,e.Ww,e.Pk,e.AM,e.Hk,e.zZ,e.d7,e.P9,e.qA,e.nz,e.xo,e.G3,e.wP,e.Pi,e.Kw,e.context);var N=this;this.adCpn="";this.U9=0;this.w5=!1;this.sC=0;this.b1=$T(function(){sMJ(rY(N));N.oY.Ql(N.slot,N.layout)});
this.vC=$T(function(){ahJ(rY(N));N.Dg!=="rendering_stop_requested"&&N.nz(N);N.layoutExitReason?N.oY.aJ(N.slot,N.layout,N.layoutExitReason):vNM(N)});
this.If=e.If;this.s2=e.s2;this.oJ=e.oJ;this.Vi=e.Vi;this.DM=e.DM;this.nz=e.nz;if(!this.HE()){R_(this.wP.get(),"html5_disable_media_load_timeout")||(this.qe=new g.e6(function(){N.GP("load_timeout",new wX("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
e=ii(this.wP.get());var y=Du(this.wP.get());e&&y&&(this.oE=new g.e6(function(){var w=A6(N.layout.clientMetadata,"metadata_type_preload_player_vars");w&&N.s2.get().C.preloadVideoByPlayerVars(w,2,300)}))}};
qzH=function(e,N){var y=A6(N.clientMetadata,"metadata_type_ad_video_id"),w=A6(N.clientMetadata,"metadata_type_legacy_info_card_vast_extension");y&&w&&e.DM.get().C.X().aq.add(y,{Ns:w});(N=A6(N.clientMetadata,"metadata_type_sodar_extension_data"))&&xi5(e.If.get(),N);uDE(e.zZ.get(),!1)};
ZRE=function(e){uDE(e.zZ.get(),!0);var N;((N=e.shrunkenPlayerBytesConfig)==null?0:N.shouldRequestShrunkenPlayerBytes)&&e.zZ.get().c7(!1)};
xE9=function(e){var N=A6(e.W9().clientMetadata,"metadata_type_player_bytes_slot_metadata");N===void 0&&YN("PlayerBytesSlotMetadata is not filled",e.W9(),e.mP());return(N==null?void 0:N.dD)===!0};
VO=function(){gY.apply(this,arguments)};
fL=function(){VO.apply(this,arguments)};
j45=function(e){return tQn(Object.assign({},e,{oY:e.callback,qA:function(){}}))};
nNJ=function(e){return new gY(Object.assign({},e,{qA:function(N){e.Vi.get().gS("onAdIntroStateChange",N)}}))};
Q4_=function(e){function N(y){e.Vi.get().rO(y)}
return h_(e.slot,e.wP.get())?new fL(Object.assign({},e,{qA:N})):new gY(Object.assign({},e,{qA:N}))};
t_=function(e){for(var N=e.Ww,y=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],w=g.c(vt()),E=w.next();!E.done;E=w.next())y.push(E.value);if(Up(N,{xO:y,K$:["LAYOUT_TYPE_MEDIA_BREAK"]}))return j45(e);N=e.Ww;y=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];w=g.c(vt());for(E=w.next();!E.done;E=w.next())y.push(E.value);if(Up(N,{xO:y,K$:["LAYOUT_TYPE_MEDIA"]}))return eK(e.Ww.clientMetadata,"metadata_type_ad_intro")?nNJ(e):Q4_(e)};
HR_=function(e){var N=A6(e.clientMetadata,"metadata_type_ad_placement_config").kind,y=A6(e.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:e.layoutId,adType:mE9(y),adBreakType:oV(N)}};
oV=function(e){switch(e){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"}};
mE9=function(e){switch(e){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}};
KQJ=function(e){try{return new ui(e.lX,e.slot,e.layout,e.EQ,e.T9,e.Hk,e.xk,e.s2,e.Jz,e.zZ,e.hUg,e)}catch(N){}};
ui=function(e,N,y,w,E,A,T,p,C,r,Y,M){g.x.call(this);this.lX=e;this.slot=N;this.layout=y;this.EQ=w;this.T9=E;this.Hk=A;this.xk=T;this.s2=p;this.Jz=C;this.zZ=r;this.params=M;this.l6=!0;e=t_(Y);if(!e)throw Error("Invalid params for sublayout");this.DB=e};
WQ1=function(){this.J=1;this.N=new l$};
qb=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){g.x.call(this);this.callback=e;this.Hk=N;this.xk=y;this.s2=w;this.zZ=E;this.d7=A;this.Tc=T;this.slot=p;this.layout=C;this.EQ=r;this.Mr=Y;this.Jz=M;this.wP=l;this.l6=!0;this.u8=!1;this.bv=[];this.PC=-1;this.fp=!1;this.Uf=new WQ1};
ORM=function(e){var N;return(N=e.layout.Cm)!=null?N:A6(e.layout.clientMetadata,"metadata_type_sub_layouts")};
Zu=function(e){return{zo:e.Hk.get(),dS:!1,OR:e.HE()}};
R3s=function(e,N,y){if(e.nE()===e.bv.length-1){var w,E;YN("Unexpected skip requested during the last sublayout",(w=e.jV())==null?void 0:w.W9(),(E=e.jV())==null?void 0:E.mP(),{requestingSlot:N,requestingLayout:y})}};
GFP=function(e,N,y){return y.layoutId!==xz(e,N,y)?(YN("onSkipRequested for a PlayerBytes layout that is not currently active",e.W9(),e.mP()),!1):!0};
UE9=function(e){e.nE()===e.bv.length-1&&YN("Unexpected skip with target requested during the last sublayout")};
LQJ=function(e,N,y){return y.renderingContent===void 0&&y.layoutId!==xz(e,N,y)?(YN("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",e.W9(),e.mP(),{requestingSlot:N,requestingLayout:y}),!1):!0};
s4M=function(e,N,y,w){var E=A6(N.mP().clientMetadata,"metadata_type_ad_pod_skip_target");if(E&&E>0&&E<e.bv.length){a:{for(var A=E;A<e.bv.length;){if(E===A6(e.bv[A].mP().clientMetadata,"metadata_type_ad_pod_skip_index")){e=A;break a}A++}e=void 0}if(e===void 0)YN("Skip-to-index was requested but target index was not found",N.W9(),N.mP(),{requestingSlot:y,requestingLayout:w});else return e}else YN("Invalid ad pod skip target index",N.W9(),N.mP(),{requestingSlot:y,requestingLayout:w})};
xz=function(e,N,y){var w=A6(e.mP().clientMetadata,"metadata_type_linked_in_player_layout_id");return w?w:(YN("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",e.W9(),e.mP(),{requestingSlot:N,requestingLayout:y}),null)};
eK5=function(e,N,y,w){aYE(e,N,y,"skipped",function(){jp(e,w)})};
aYE=function(e,N,y,w,E){if(!e.fp){var A=e.jV();if(A){A.mP().layoutId!==y.layoutId&&YN("SubLayout mismatch in exitSubLayout",N,y,{exitingSubLayout:y.layoutId,activeSubLayout:A.mP().layoutId});e.fp=!0;A.fC(A.mP(),w);A=Object.assign({},Zu(e),{layoutId:y.layoutId,layoutExitReason:w});var T=A.layoutId,p=A.layoutExitReason;if(A.OR){var C={};hG(A.zo,"wrsx",(C.xc=T,C.ler=p,C.ctp=b$(T),C))}e.XO(N,y,w);e.fp=!1;e.d5?(e.d5(),e.HE()||nL(e.d7.get())):E()}else YN("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
N,y)}};
jp=function(e,N){if(e.nE()===e.bv.length-1)e.PC++,QO(e.Mr,e.layout,"normal"),e.HE()||nL(e.d7.get());else a:{if(e.nE()===-1&&(e.callback.Ql(e.slot,e.layout),N>0)){YN("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",e.slot,e.layout,{indexToPlay:N,layoutId:e.layout.layoutId});break a}e.PC=N;N=e.jV();if(e.nE()>0&&!e.HE()){var y=e.d7.get();y.N=!1;var w={};y.J&&y.videoId&&(w.cttAuthInfo={token:y.J,videoId:y.videoId});QQ("ad_to_ad",w)}e.Xl(N)}};
m5=function(e){qb.call(this,e.lX,e.Hk,e.xk,e.s2,e.zZ,e.d7,e.Tc,e.slot,e.layout,e.EQ,e.Mr,e.Jz,e.wP)};
Nz_=function(e){(e=e.jV())&&e.Ek()};
Hd=function(e){qb.call(this,e.lX,e.Hk,e.xk,e.s2,e.zZ,e.d7,e.Tc,e.slot,e.layout,e.EQ,e.Mr,e.Jz,e.wP);this.G9=void 0};
yyE=function(e,N){e.O8()&&!Sc(e.Uf.N)||e.callback.aJ(e.slot,e.layout,N)};
KL=function(e){return R_(e.wP.get(),"html5_ssap_pass_transition_reason")};
wwF=function(e,N,y){N.FF().currentState<2&&(y=kz(y,e.wP),N.fC(N.mP(),y));y=N.FF().J;e.XO(e.slot,N.mP(),y)};
Ei5=function(e,N){if(e.Uf.N.currentState<2){var y=kz(N,e.wP);y==="error"?e.callback.xz(e.slot,e.layout,new wX("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:N},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):QO(e.Mr,e.layout,y)}};
Wd=function(e,N,y){N.FF().currentState>=2||(N.fC(N.mP(),y),Sc(N.FF())&&(z5(e.Tc,e.slot,N.mP(),y),e.G9=void 0))};
Ay5=function(e,N){e.Uf.J===2&&N!==e.YI()&&YN("onClipEntered: unknown cpn",e.slot,e.layout,{cpn:N})};
Tz_=function(e,N){var y=e.jV();if(y){var w=y.mP().layoutId,E=e.nE()+1;e.O8()?Wd(e,y,N):y.fC(y.mP(),N);E>=0&&E<e.bv.length?(y=e.bv[E].mP().layoutId,KL(e)&&(["normal","skipped"].includes(N)||YN("exitActiveLayoutAndPlayNext: unexpected exit reason",e.slot,e.layout,{exitReason:N})),e.xk.get().finishSegmentByCpn(w,y,cd(N,e.wP))):E===e.bv.length?QO(e.Mr,e.layout,"normal"):YN("unexpected index",e.slot,e.layout,{index:E})}else YN("exitActiveLayoutAndPlayNext: no active adapter",e.slot,e.layout)};
Jy3=function(e,N){YN(N+": undefined adapter",e.slot,e.layout)};
pwP=function(e){return h_(e.slot,e.wP.get())?new Hd(e):new m5(e)};
OV=function(e,N,y,w,E,A,T){g.x.call(this);this.callback=e;this.s2=N;this.zZ=y;this.d7=w;this.DB=E;this.Jz=A;this.wP=T;this.l6=!0;this.u8=!1};
Cy5=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n){function R(){var eM=t_(Object.assign({},Jn,{callback:{Ql:e.Ql.bind(e),aJ:e.aJ.bind(e),xP:function(){},
xz:e.xz.bind(e)},slot:y,Ww:w,nz:function(){QO(T,w,"normal")},
xo:0,G3:1,Pi:!0}));return eM?new OV(e,Y,l,S,eM,E,v):eM}
function O(){var eM=Object.assign({},Jn,{callback:{Ql:function(){},
aJ:function(){},
xP:function(){return void QO(T,w,"normal")},
xz:function(){}},
slot:y,Ww:w,nz:function(){},
xo:0,G3:1,Pi:!0});return KQJ({lX:e,slot:y,layout:w,EQ:A,T9:T,Hk:M,xk:V,s2:Y,Jz:E,zZ:l,hUg:eM,context:Z})}
function E9(){var eM,H=(eM=w.Cm)!=null?eM:A6(w.clientMetadata,"metadata_type_sub_layouts");eM=pwP({lX:e,Hk:M,xk:V,s2:Y,zZ:l,d7:S,Tc:N,slot:y,layout:w,EQ:A,Mr:T,Jz:E,wP:v});for(var a=[],h={AP:0};h.AP<H.length;h={AP:h.AP},h.AP++){var K=t_(Object.assign({},Jn,{callback:{Ql:eM.Bd.bind(eM),aJ:eM.nZ.bind(eM),xP:eM.xP.bind(eM),xz:eM.m0.bind(eM)},slot:y,Ww:H[h.AP],nz:function(aP){return function(XF){XF.fC(H[aP.AP],"normal")}}(h),
xo:h.AP,G3:H.length,Pi:!1}));if(!K)return;a.push(K)}eM.bv=a;return eM}
var Jn={Pk:p,AM:C,If:r,s2:Y,Hk:M,zZ:l,oJ:F,d7:S,Vi:k,P9:X,DM:d,wP:v,context:Z,Kw:n};p=Up(w,{xO:["metadata_type_sub_layouts"],K$:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||w.Cm!==void 0&&w.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";C=h_(y,v.get())&&Up(w,{xO:[],K$:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});r=Up(w,{xO:[],K$:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(p)return E9();if(C)return O();if(r)return R()};
RV=function(e,N,y,w,E,A,T,p,C,r){this.callback=e;this.slot=N;this.layout=y;this.Hk=w;this.xk=E;this.p$=A;this.zZ=T;this.vk=p;this.Pk=C;this.L=r;this.driftRecoveryMs=A6(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.j=A6(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
$Y0=function(e){var N=A6(e.layout.clientMetadata,"metadata_type_layout_enter_ms"),y=A6(e.layout.clientMetadata,"metadata_type_layout_exit_ms");e=e.p$.get();N=ryP(e.K,N,y);return Math.min(y,N!==null?N:Infinity)};
UV=function(e,N){var y;Gp(e.Pk.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(y=e.Hk.get().nk)==null?void 0:y.clientPlaybackNonce,adClientData:e.layout.o9.adClientDataEntry},N)})};
LL=function(e,N,y,w,E,A,T,p,C,r,Y){RV.call(this,e,N,y,w,E,A,T,p,C,r);this.K=Y;this.N=this.J=null;e=g.c(this.K);for(N=e.next();!N.done;N=e.next())N=N.value,eK(N.mP().clientMetadata,"metadata_type_survey_overlay")&&(this.N=N.mP().layoutId)};
MZ1=function(e,N){var y=Yq0(e,N);y||YN("Expected subLRA found by layout ID",e.slot,e.layout,{layoutId:N});e.J={dK:y};y?y.startRendering(y.mP()):N===e.N&&YN("Failed to find rendering adapter for survey media layout",e.slot,e.layout,{surveyMediaLayoutId:N})};
Yq0=function(e,N){return N==null?null:e.K.find(function(y){return y.mP().layoutId===N})||null};
lnM=function(e,N,y,w,E,A,T,p,C,r){var Y=E-w,M=eK(N.clientMetadata,"metadata_type_survey_overlay"),l,F=((l=e.fulfilledLayout||A6(e.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:A6(l.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!Y)return T.tB(y,F,2,A,w,E,e.slotId),sV(r,"ads_iraot","sid."+e.slotId+";enterMs."+w+";exitMs."+E+";hso."+M+";vid."+y.video_id),null;Y=T.r$(y,F,2,A,w,E,e.slotId);sV(r,"ads_atct","sid."+e.slotId+";enterMs."+w+";exitMs."+E+";hso."+M+";vid."+y.video_id);
if(!Y)return YN("Unexpected failure to add to playback timeline",e,N,C()),null;e=e.slotId;N=N.layoutId;Y?(p.J.has(Y)&&YN("Unexpected remap of timeline playback"),p.J.set(Y,{slotId:e,layoutId:N})):YN("Invalid timeline playback ID");w+A>E&&T.mX(Y,E-w);return Y};
FoE=function(e,N,y){var w=A6(N.clientMetadata,"metadata_type_sodar_extension_data");if(w)try{xi5(y,w)}catch(E){YN("Unexpected error when loading Sodar",e,N,{error:E})}};
Sq5=function(e,N,y,w,E,A,T){aV(e,N,new g.ME(y,new g.a8),w,E,T,!1,A)};
aV=function(e,N,y,w,E,A,T,p){T=T===void 0?!0:T;$6(y)&&Y6(E,0,null)&&(!V6(e,"impression")&&p&&p(),e.eR("impression"));V6(e,"impression")&&(g.FD(y,4)&&!g.FD(y,2)&&e.wz("pause"),lp(y,4)<0&&!(lp(y,2)<0)&&e.wz("resume"),g.FD(y,16)&&E>=.5&&e.wz("seek"),T&&g.FD(y,2)&&em(e,y.state,N,w,E,A))};
em=function(e,N,y,w,E,A,T,p){V6(e,"impression")&&(A?(A=E-w,A=A>=-1&&A<=2):A=Math.abs(w-E)<=1,Np(e,N,A?w:E,y,w,T,p&&A),A&&e.eR("complete"))};
Np=function(e,N,y,w,E,A,T){gF(e,y*1E3,T);E<=0||y<=0||(N==null?0:g.G(N,16))||(N==null?0:g.G(N,32))||(Y6(y,E*.25,w)&&(A&&!V6(e,"first_quartile")&&A("first"),e.eR("first_quartile")),Y6(y,E*.5,w)&&(A&&!V6(e,"midpoint")&&A("second"),e.eR("midpoint")),Y6(y,E*.75,w)&&(A&&!V6(e,"third_quartile")&&A("third"),e.eR("third_quartile")))};
oiE=function(e,N){V6(e,"impression")&&e.wz(N?"fullscreen":"end_fullscreen")};
bV3=function(e){V6(e,"impression")&&e.wz("clickthrough")};
hK_=function(e){e.wz("active_view_measurable")};
cy5=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("active_view_fully_viewable_audible_half_duration")};
kH_=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("active_view_viewable")};
Bzn=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("audio_audible")};
XwM=function(e){V6(e,"impression")&&!V6(e,"seek")&&e.wz("audio_measurable")};
PyP=function(e,N,y,w,E,A,T,p,C,r,Y,M){this.callback=e;this.slot=N;this.layout=y;this.xk=w;this.vk=E;this.zZ=A;this.hf=T;this.AM=p;this.If=C;this.wP=r;this.Pk=Y;this.Hk=M;this.Ex=!0;this.FS=this.Dg=null;this.adCpn=void 0;this.J=!1};
dY5=function(e,N,y){var w;sV(e.Pk.get(),"ads_qua","cpn."+A6(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((w=Mb(e.Hk.get(),2))==null?void 0:w.clientPlaybackNonce)+";qt."+N+";clr."+y)};
InP=function(e,N){var y,w;sV(e.Pk.get(),"ads_imp","cpn."+A6(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=Mb(e.Hk.get(),2))==null?void 0:y.clientPlaybackNonce)+";clr."+N+";skp."+!!g.m((w=A6(e.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:w.skipOrPreviewRenderer,yV))};
wy=function(e){return e.wP.get().C.X().experiments.gP("increase_completion_ping_firing_window")&&Mb(e.Hk.get(),1).Au};
E_=function(e){return{enterMs:A6(e.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:A6(e.clientMetadata,"metadata_type_layout_exit_ms")}};
Ac=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){RV.call(this,e,N,y,w,E,T,p,C,r,M);this.hf=A;this.If=Y;this.AM=l;this.wP=F;this.FS=this.Dg=null};
vi_=function(e,N){var y;sV(e.Pk.get(),"ads_imp","acpn."+((y=Mb(e.Hk.get(),2))==null?void 0:y.clientPlaybackNonce)+";clr."+N)};
zKs=function(e,N,y){var w;sV(e.Pk.get(),"ads_qua","cpn."+A6(e.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((w=Mb(e.Hk.get(),2))==null?void 0:w.clientPlaybackNonce)+";qt."+N+";clr."+y)};
TK=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z){this.Jz=e;this.EQ=N;this.Mr=y;this.Hk=w;this.xk=E;this.zZ=A;this.Pk=T;this.hf=p;this.p$=C;this.AM=r;this.If=Y;this.s2=M;this.oJ=l;this.d7=F;this.Vi=S;this.P9=k;this.DM=X;this.wP=d;this.J=v;this.context=V;this.Kw=Z};
Jc=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d){this.Jz=e;this.EQ=N;this.Mr=y;this.Pk=w;this.AM=E;this.If=A;this.s2=T;this.Hk=p;this.zZ=C;this.oJ=r;this.d7=Y;this.Vi=M;this.P9=l;this.DM=F;this.wP=S;this.xk=k;this.context=X;this.Kw=d};
iVJ=function(e,N,y,w){JZ.call(this,"survey-interstitial",e,N,y,w)};
pt=function(e,N,y,w,E){bv.call(this,y,e,N,w);this.Pk=E;e=A6(N.clientMetadata,"metadata_type_ad_placement_config");this.vk=new I0(N.tM,E,e,N.layoutId)};
Ct=function(e){return Math.round(e.width)+"x"+Math.round(e.height)};
$A=function(e,N,y){y=y===void 0?ry:y;y.width<ry.width&&(y=ry);if(e.width<y.width||e.height<y.height)return{J0:3,U6:501,errorMessage:"ad("+Ct(y)+") larger than container("+Ct(e)+")."};if(y.width*y.height>e.width*e.height*.2)return{J0:3,U6:501,errorMessage:"ad("+Ct(y)+") to container("+Ct(e)+") ratio exceeds limit."};if(y.height>e.height/3-N)return{J0:3,U6:501,errorMessage:"ad("+Ct(y)+") covers container("+Ct(e)+") center."}};
DY_=function(e,N){var y=A6(e.clientMetadata,"metadata_type_ad_placement_config");return new I0(e.tM,N,y,e.layoutId)};
YA=function(e){return A6(e.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
Mp=function(e,N,y,w){JZ.call(this,"invideo-overlay",e,N,y,w);this.interactionLoggingClientData=w};
lR=function(e,N,y,w,E,A,T,p,C,r,Y,M){bv.call(this,A,e,N,E);this.Pk=y;this.j=T;this.zZ=p;this.P9=C;this.wP=r;this.Z=Y;this.L=M;this.vk=DY_(N,y)};
giM=function(){var e=["metadata_type_invideo_overlay_ad_renderer"];vt().forEach(function(N){e.push(N)});
return{xO:e,K$:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
Fv=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){bv.call(this,A,e,N,E);this.Pk=y;this.j=T;this.U=p;this.zZ=C;this.P9=r;this.wP=Y;this.Z=M;this.L=l;this.vk=DY_(N,y)};
VZn=function(){for(var e=["metadata_type_invideo_overlay_ad_renderer"],N=g.c(vt()),y=N.next();!y.done;y=N.next())e.push(y.value);return{xO:e,K$:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
Sm=function(e){this.zZ=e;this.J=!1};
fn0=function(e,N,y){JZ.call(this,"survey",e,{},N,y)};
oX=function(e,N,y,w,E,A,T){bv.call(this,y,e,N,w);this.j=E;this.zZ=A;this.wP=T};
tZ5=function(e,N,y,w,E,A,T,p,C,r){this.q7=e;this.zZ=N;this.Pk=y;this.j=w;this.AM=E;this.N=A;this.K=T;this.P9=p;this.wP=C;this.J=r};
umM=function(e,N,y,w,E,A,T,p,C,r){this.q7=e;this.zZ=N;this.Pk=y;this.j=w;this.AM=E;this.N=A;this.K=T;this.P9=p;this.wP=C;this.J=r};
bR=function(e,N,y,w,E,A,T,p,C,r){yI.call(this,e,N,y,w,E,A,T,C);this.Hs=p;this.Hk=r};
qq5=function(){var e=QMM();e.xO.push("metadata_type_ad_info_ad_metadata");return e};
ZVn=function(e,N,y,w,E,A,T){this.q7=e;this.zZ=N;this.Pk=y;this.N=w;this.Hs=E;this.J=A;this.Hk=T};
xYs=function(e,N,y,w,E,A,T,p){this.q7=e;this.zZ=N;this.Pk=y;this.N=w;this.Hs=E;this.J=A;this.wP=T;this.Hk=p};
hc=function(e,N){this.slotId=N;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=e(this.triggerType)};
ch=function(e,N){this.adPodIndex=e;this.J=N.length;this.adBreakLengthSeconds=N.reduce(function(w,E){return w+E},0);
var y=0;for(e+=1;e<N.length;e++)y+=N[e];this.adBreakRemainingLengthSeconds=y};
kA=function(e,N,y){this.Zf=N;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=y||e(this.triggerType)};
Bh=function(e,N,y){this.J=N;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=y||e(this.triggerType)};
Xv=function(e,N,y,w){this.Zf=N;this.visible=y;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=w||e(this.triggerType)};
jgH=function(e){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=e(this.triggerType)};
niM=function(e){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=e(this.triggerType)};
Ph=function(e,N,y){this.triggeringLayoutId=N;this.slotId=y;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=e(this.triggerType)};
dy=function(e,N,y){this.triggeringLayoutId=N;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=y||e(this.triggerType)};
IX=function(e,N,y,w){this.triggeringLayoutId=N;this.J=y;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=w||e(this.triggerType)};
Qg3=function(e){switch(e){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new U("Invalid layout exit reason: "+
e)}};
vh=function(e,N,y){this.triggeringLayoutId=N;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=y||e(this.triggerType)};
zK=function(e,N){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=N||e(this.triggerType)};
iR=function(e,N){this.breakDurationMs=e;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED";this.triggerId=N||""};
Dp=function(e,N){this.breakDurationMs=e;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=N||""};
gy=function(e,N){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=N||e(this.triggerType)};
mY9=function(e){this.triggerId=e;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
HVE=function(e,N,y,w,E){this.Zf=N;this.J=y;this.visible=w;this.layoutId=E;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=e(this.triggerType)};
VV=function(e,N,y,w,E){this.Zf=N;this.J=y;this.visible=w;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=E||e(this.triggerType)};
ft=function(e,N){this.breakDurationMs=e;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=N||""};
KoM=function(e,N,y){this.Zf=N;this.J=y;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=e(this.triggerType)};
tc=function(e,N,y,w,E){this.J=N;this.slotType=y;this.layoutType=w;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=E||e(this.triggerType)};
uR=function(e,N){this.J=N;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=e(this.triggerType)};
qp=function(e,N,y){this.layoutId=N;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=y||e(this.triggerType)};
Zp=function(e,N,y){this.J=N;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=y||e(this.triggerType)};
ngH=function(e,N){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=N;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=e(this.triggerType)};
WoH=function(e,N){this.J=e;this.index=N};
OVE=function(e){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=e(this.triggerType)};
xA=function(e,N){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=N||e(this.triggerType)};
RK9=function(e,N,y){this.layoutId=N;this.offsetMs=y;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=e(this.triggerType)};
GHM=function(e,N){this.layoutId=N;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=e(this.triggerType)};
UYH=function(e,N,y){this.layoutId=N;this.offsetMs=y;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=e(this.triggerType)};
jm=function(e,N,y){this.triggeringLayoutId=N;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=y||e(this.triggerType)};
nt=function(e,N,y){this.triggeringSlotId=N;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=y||e(this.triggerType)};
QV=function(e,N,y){this.triggeringSlotId=N;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=y||e(this.triggerType)};
mz=function(e,N){this.triggeringSlotId=N;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=e(this.triggerType)};
Hh=function(e,N){this.triggeringSlotId=N;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=e(this.triggerType)};
Kt=function(e,N,y){this.triggeringSlotId=N;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=y||e(this.triggerType)};
Wh=function(e,N){this.triggeringSlotId=N;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=e(this.triggerType)};
O_=function(e,N,y){this.triggeringLayoutId=N;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=y||e(this.triggerType)};
RX=function(e,N,y,w){this.durationMs=N;this.triggeringLayoutId=y;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=w||e(this.triggerType)};
GK=function(e,N,y,w){this.category=e;this.trigger=N;this.slot=y;this.layout=w};
U_=function(e){return(e==null?void 0:e.layoutId)!=null&&(e==null?void 0:e.layoutType)!=null};
LoF=function(e){if(!U_(e.adLayoutMetadata))return!1;e=e.renderingContent;return g.m(e,Lt)||g.m(e,s_)||g.m(e,aX)||g.m(e,ej)||g.m(e,N2)||g.m(e,yw)?!0:!1};
sg9=function(e){return(e==null?void 0:e.durationMs)!=null&&(e==null?void 0:e.durationMs)>0};
wj=function(e){return!!(e.GZ9&&e.slot&&e.layout)};
E1=function(e){var N,y=(N=e.config)==null?void 0:N.adPlacementConfig;e=e.renderer;return!(!y||y.kind==null||!e)};
an3=function(e){if(!U_(e.adLayoutMetadata))return!1;e=e.renderingContent;return g.m(e,pd)||g.m(e,Cd)||g.m(e,TS)||g.m(e,JG)?!0:!1};
Ae=function(e){return e.playerVars!==void 0&&e.pings!==void 0&&e.externalVideoId!==void 0};
bS=function(e){if(!U_(e.adLayoutMetadata))return!1;e=e.renderingContent;var N=g.m(e,TR);return N?M2(N):(N=g.m(e,lS))?Ae(N):(N=g.m(e,F4))?N.playerVars!==void 0:(N=g.m(e,pd))?N.durationMilliseconds!==void 0:g.m(e,Sj)||g.m(e,oQ)?!0:!1};
M2=function(e){e=(e.sequentialLayouts||[]).map(function(N){return g.m(N,he)});
return e.length>0&&e.every(bS)};
ACM=function(e){if(!U_(e.adLayoutMetadata))return!1;if(g.m(e.renderingContent,edF)||g.m(e.renderingContent,Nv1))return!0;var N=g.m(e.renderingContent,cr);return g.m(e.renderingContent,kt)||g.m(N==null?void 0:N.sidePanel,yCH)||g.m(N==null?void 0:N.sidePanel,w8P)||g.m(N==null?void 0:N.sidePanel,ECE)?!0:!1};
Yl9=function(e){var N;(N=!e)||(N=e.adSlotMetadata,N=!((N==null?void 0:N.slotId)!==void 0&&(N==null?void 0:N.slotType)!==void 0));if(N||!(TvE(e)||e.slotEntryTrigger&&e.slotFulfillmentTriggers&&e.slotExpirationTriggers))return!1;var y;e=(y=e.fulfillmentContent)==null?void 0:y.fulfilledLayout;return(y=g.m(e,he))?bS(y):(y=g.m(e,Br))?ACM(y):(y=g.m(e,JCH))?an3(y):(y=g.m(e,p89))?LoF(y):(y=g.m(e,CI5))?U_(y.adLayoutMetadata)?g.m(y.renderingContent,Lt)?!0:!1:!1:(e=g.m(e,rCF))?U_(e.adLayoutMetadata)?g.m(e.renderingContent,
$fn)?!0:!1:!1:!1};
TvE=function(e){var N;e=g.m((N=e.fulfillmentContent)==null?void 0:N.fulfilledLayout,Br);var y;return e&&((y=e.adLayoutMetadata)==null?void 0:y.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&e.layoutExitNormalTriggers===void 0};
MyE=function(e){var N;return(e==null?void 0:(N=e.adSlotMetadata)==null?void 0:N.slotType)==="SLOT_TYPE_IN_PLAYER"};
FXJ=function(e,N){var y;if((y=e.questions)==null||!y.length||!e.playbackCommands||(N===void 0||!N)&&e.questions.length!==1)return!1;e=g.c(e.questions);for(N=e.next();!N.done;N=e.next()){N=N.value;var w=y=void 0,E=((y=g.m(N,X4))==null?void 0:y.surveyAdQuestionCommon)||((w=g.m(N,Pr))==null?void 0:w.surveyAdQuestionCommon);if(!lK_(E))return!1}return!0};
Sl5=function(e){e=((e==null?void 0:e.playerOverlay)||{}).instreamSurveyAdRenderer;var N;if(e)if(e.playbackCommands&&e.questions&&e.questions.length===1){var y,w=((N=g.m(e.questions[0],X4))==null?void 0:N.surveyAdQuestionCommon)||((y=g.m(e.questions[0],Pr))==null?void 0:y.surveyAdQuestionCommon);N=lK_(w)}else N=!1;else N=!1;return N};
lK_=function(e){if(!e)return!1;e=g.m(e.instreamAdPlayerOverlay,dj);var N=g.m(e==null?void 0:e.skipOrPreviewRenderer,yV),y=g.m(e==null?void 0:e.adInfoRenderer,IQ);return(g.m(e==null?void 0:e.skipOrPreviewRenderer,vr)||N)&&y?!0:!1};
oCJ=function(e){return e.linearAds!=null&&U_(e.adLayoutMetadata)};
b2n=function(e){return e.linearAd!=null&&e.adVideoStart!=null};
hd1=function(e){if(isNaN(Number(e.timeoutSeconds))||!e.text||!e.ctaButton||!g.m(e.ctaButton,g.zR)||!e.brandImage)return!1;var N;return e.backgroundImage&&g.m(e.backgroundImage,iS)&&((N=g.m(e.backgroundImage,iS))==null?0:N.landscape)?!0:!1};
DC=function(e,N,y,w,E,A,T){g.x.call(this);this.wP=e;this.J=N;this.K=w;this.Hk=E;this.j=A;this.N=T};
BvM=function(e,N,y){var w,E=((w=y.adSlots)!=null?w:[]).map(function(p){return g.m(p,gj)});
if(y.V5)if(A6(N.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},N.slotId);
else{if(e.wP.get().C.X().T("h5_check_forecasting_renderer_for_throttled_midroll")){var A=y.aX.filter(function(p){var C;return((C=p.renderer)==null?void 0:C.clientForecastingAdRenderer)!=null});
A.length!==0?cCF(e.N,A,E,N.slotId,y.ssdaiAdsConfig):lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},N.slotId)}else lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},N.slotId);
k$s(e.j,N)}else{var T;w={MY:Math.round(((A=A6(N.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:A.MY)||0),VH:(T=A6(N.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:T.VH};cCF(e.N,y.aX,E,N.slotId,y.ssdaiAdsConfig,w)}};
PIP=function(e,N,y,w,E,A,T){var p=Mb(e.Hk.get(),1);lv(e.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return X8J(e.K.get(),y,w,E,p.clientPlaybackNonce,p.LO,p.daiEnabled,p,A,T)},N)};
IKJ=function(e,N,y,w,E,A,T){N=dfJ(N,A,Number(w.prefetchMilliseconds)||0,T);e=N instanceof U?N:Vw(e,w,E,N,y);return e instanceof U?e:[e]};
vCF=function(e,N,y,w,E){var A=F1(e.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST");w=[new qT({getAdBreakUrl:w.getAdBreakUrl,MY:0,VH:0}),new Lx(!0)];e=N.pauseDurationMs?N.lactThresholdMs?{slotId:A,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Kt(e.J,A),slotFulfillmentTriggers:[new niM(e.J)],slotExpirationTriggers:[new Zp(e.J,E),new QV(e.J,A)],Xh:"core",clientMetadata:new EG(w),adSlotLoggingData:y}:new U("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new U("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return e instanceof U?e:[e]};
zdM=function(e){var N,y;return((N=e.renderer)==null?void 0:(y=N.adBreakServiceRenderer)==null?void 0:y.getAdBreakUrl)!==void 0};
fN=function(e,N,y){if(e.beforeContentVideoIdStartedTrigger)e=e.beforeContentVideoIdStartedTrigger?new kA(yk,N,e.id):new U("Not able to create BeforeContentVideoIdStartedTrigger");else{if(e.layoutIdExitedTrigger){var w;N=(w=e.layoutIdExitedTrigger)!=null&&w.triggeringLayoutId?new vh(yk,e.layoutIdExitedTrigger.triggeringLayoutId,e.id):new U("Not able to create LayoutIdExitedTrigger")}else{if(e.layoutExitedForReasonTrigger){var E,A;((E=e.layoutExitedForReasonTrigger)==null?0:E.triggeringLayoutId)&&((A=
e.layoutExitedForReasonTrigger)==null?0:A.layoutExitReason)?(N=Qg3(e.layoutExitedForReasonTrigger.layoutExitReason),e=N instanceof U?N:new IX(yk,e.layoutExitedForReasonTrigger.triggeringLayoutId,[N],e.id)):e=new U("Not able to create LayoutIdExitedForReasonTrigger")}else{if(e.onLayoutSelfExitRequestedTrigger){var T;N=(T=e.onLayoutSelfExitRequestedTrigger)!=null&&T.triggeringLayoutId?new qp(yk,e.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,e.id):new U("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(e.onNewPlaybackAfterContentVideoIdTrigger)e=
e.onNewPlaybackAfterContentVideoIdTrigger?new Zp(yk,N,e.id):new U("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(e.skipRequestedTrigger){var p;N=(p=e.skipRequestedTrigger)!=null&&p.triggeringLayoutId?new jm(yk,e.skipRequestedTrigger.triggeringLayoutId,e.id):new U("Not able to create SkipRequestedTrigger")}else if(e.slotIdEnteredTrigger){var C;N=(C=e.slotIdEnteredTrigger)!=null&&C.triggeringSlotId?new nt(yk,e.slotIdEnteredTrigger.triggeringSlotId,e.id):new U("Not able to create SlotIdEnteredTrigger")}else if(e.slotIdExitedTrigger){var r;
N=(r=e.slotIdExitedTrigger)!=null&&r.triggeringSlotId?new QV(yk,e.slotIdExitedTrigger.triggeringSlotId,e.id):new U("Not able to create SkipRequestedTrigger")}else if(e.surveySubmittedTrigger){var Y;N=(Y=e.surveySubmittedTrigger)!=null&&Y.triggeringLayoutId?new O_(yk,e.surveySubmittedTrigger.triggeringLayoutId,e.id):new U("Not able to create SurveySubmittedTrigger")}else{if(e.mediaResumedTrigger)e=e.mediaResumedTrigger&&e.id?new mY9(e.id):new U("Not able to create MediaResumedTrigger");else{if(e.closeRequestedTrigger){var M;
N=(M=e.closeRequestedTrigger)!=null&&M.triggeringLayoutId?new Bh(yk,e.closeRequestedTrigger.triggeringLayoutId,e.id):new U("Not able to create CloseRequestedTrigger")}else if(e.slotIdScheduledTrigger){var l;N=(l=e.slotIdScheduledTrigger)!=null&&l.triggeringSlotId?new Kt(yk,e.slotIdScheduledTrigger.triggeringSlotId,e.id):new U("Not able to create SlotIdScheduledTrigger")}else{if(e.mediaTimeRangeTrigger){var F;w=Number((F=e.mediaTimeRangeTrigger)==null?void 0:F.offsetStartMilliseconds);var S;T=Number((S=
e.mediaTimeRangeTrigger)==null?void 0:S.offsetEndMilliseconds);isFinite(w)&&isFinite(T)?(S=T,S===-1&&(S=y),y=w>S?new U("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:w,offsetEndMs:S},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",S===y&&w-500<=S):new de(w,S),e=y instanceof U?y:new VV(yk,N,y,!1,e.id)):e=new U("Not able to create MediaTimeRangeTrigger")}else if(e.contentVideoIdEndedTrigger)e=e.contentVideoIdEndedTrigger?new Xv(yk,N,!1,e.id):new U("Not able to create ContentVideoIdEndedTrigger");
else{if(e.layoutIdEnteredTrigger){var k;N=(k=e.layoutIdEnteredTrigger)!=null&&k.triggeringLayoutId?new dy(yk,e.layoutIdEnteredTrigger.triggeringLayoutId,e.id):new U("Not able to create LayoutIdEnteredTrigger")}else if(e.timeRelativeToLayoutEnterTrigger){var X;N=(X=e.timeRelativeToLayoutEnterTrigger)!=null&&X.triggeringLayoutId?new RX(yk,Number(e.timeRelativeToLayoutEnterTrigger.durationMs),e.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,e.id):new U("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(e.onDifferentLayoutIdEnteredTrigger){var d;
N=(d=e.onDifferentLayoutIdEnteredTrigger)!=null&&d.triggeringLayoutId&&e.onDifferentLayoutIdEnteredTrigger.slotType&&e.onDifferentLayoutIdEnteredTrigger.layoutType?new tc(yk,e.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,e.onDifferentLayoutIdEnteredTrigger.slotType,e.onDifferentLayoutIdEnteredTrigger.layoutType,e.id):new U("Not able to create CloseRequestedTrigger")}else{if(e.liveStreamBreakStartedTrigger)e=e.liveStreamBreakStartedTrigger&&e.id?new gy(yk,e.id):new U("Not able to create LiveStreamBreakStartedTrigger");
else if(e.liveStreamBreakEndedTrigger)e=e.liveStreamBreakEndedTrigger&&e.id?new zK(yk,e.id):new U("Not able to create LiveStreamBreakEndedTrigger");else{if(e.liveStreamBreakScheduledDurationMatchedTrigger){var v;N=(v=e.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&v.breakDurationMs?new iR(Number(e.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,e.id):new U("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(e.liveStreamBreakScheduledDurationNotMatchedTrigger){var V;
N=(V=e.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&V.breakDurationMs?new Dp(Number(e.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,e.id):new U("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(e.newSlotScheduledWithBreakDurationTrigger){var Z;N=(Z=e.newSlotScheduledWithBreakDurationTrigger)!=null&&Z.breakDurationMs?new ft(Number(e.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,e.id):new U("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else N=
e.prefetchCacheExpiredTrigger?new xA(yk,e.id):new U("Not able to convert an AdsControlflowTrigger.");e=N}N=e}e=N}N=e}e=N}N=e}e=N}N=e}e=N}N=e}e=N}return e};
te=function(e,N){N.J>=2&&(e.slot_pos=N.adPodIndex);e.autoplay="1"};
DfF=function(e,N,y,w,E,A,T,p){return N===null?new U("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:N,ActionCompanionAdRenderer:w}):[i2H(e,N,T,A,function(C){var r=C.slotId;C=p(C);var Y=w.adLayoutLoggingData,M=new EG([new ZX(w),new Lj(E)]);r=G5(y.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r);var l={layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xh:"core"};return{layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",tM:new Map,
layoutExitNormalTriggers:[new Zp(y.J,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:M,o9:C(l),adLayoutLoggingData:Y}})]};
gCn=function(e,N,y,w,E,A,T,p){return N===null?new U("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:N,TopBannerImageTextIconButtonedLayoutViewModel:w}):[i2H(e,N,T,A,function(C){var r=C.slotId;C=p(C);var Y=w.adLayoutLoggingData,M=new EG([new xd(w),new Lj(E)]);r=G5(y.N.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r);var l={layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xh:"core"};return{layoutId:r,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
tM:new Map,layoutExitNormalTriggers:[new Zp(y.J,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:M,o9:C(l),adLayoutLoggingData:Y}})]};
uIH=function(e,N,y,w,E,A){if(!A)for(N=g.c(N),A=N.next();!A.done;A=N.next())A=A.value,uS(e,A.renderer,A.config.adPlacementConfig.kind);e=Array.from(e.values()).filter(function(Y){return VyM(Y)});
N=[];A=g.c(e);for(var T=A.next(),p={};!T.done;p={H5:void 0},T=A.next()){p.H5=T.value;T=g.c(p.H5.sZ);for(var C=T.next(),r={};!C.done;r={GN:void 0},C=T.next())r.GN=C.value,C=function(Y,M){return function(l){return Y.GN.Qc(l,M.H5.instreamVideoAdRenderer.elementId,Y.GN.Dz)}}(r,p),r.GN.isContentVideoCompanion?N.push(fK3(y,w,E,p.H5.instreamVideoAdRenderer.elementId,r.GN.associatedCompositePlayerBytesLayoutId,r.GN.adSlotLoggingData,C)):e.length>1?N.push(tyJ(y,w,E,p.H5.instreamVideoAdRenderer.elementId,r.GN.adSlotLoggingData,
function(Y,M){return function(l){return Y.GN.Qc(l,M.H5.instreamVideoAdRenderer.elementId,Y.GN.Dz,Y.GN.associatedCompositePlayerBytesLayoutId)}}(r,p))):N.push(tyJ(y,w,E,p.H5.instreamVideoAdRenderer.elementId,r.GN.adSlotLoggingData,C))}return N};
uS=function(e,N,y){if(N=qlH(N)){N=g.c(N);for(var w=N.next();!w.done;w=N.next())if((w=w.value)&&w.externalVideoId){var E=q2(e,w.externalVideoId);E.instreamVideoAdRenderer||(E.instreamVideoAdRenderer=w,E.b$=y)}else YN("InstreamVideoAdRenderer without externalVideoId")}};
qlH=function(e){var N=[],y=e.sandwichedLinearAdRenderer&&e.sandwichedLinearAdRenderer.linearAd&&g.m(e.sandwichedLinearAdRenderer.linearAd,lS);if(y)return N.push(y),N;if(e.instreamVideoAdRenderer)return N.push(e.instreamVideoAdRenderer),N;if(e.linearAdSequenceRenderer&&e.linearAdSequenceRenderer.linearAds){e=g.c(e.linearAdSequenceRenderer.linearAds);for(y=e.next();!y.done;y=e.next())y=y.value,g.m(y,lS)&&N.push(g.m(y,lS));return N}return null};
VyM=function(e){if(e.instreamVideoAdRenderer===void 0)return YN("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var N=g.c(e.sZ),y=N.next();!y.done;y=N.next()){y=y.value;if(y.Qc===void 0)return!1;if(y.Dz===void 0)return YN("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(e.b$===void 0||y.H8===void 0||e.b$!==y.H8&&y.H8!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(e.instreamVideoAdRenderer.elementId===void 0)return YN("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:e.b$,"matching APSR kind":y.H8}),!1}return!0};
q2=function(e,N){e.has(N)||e.set(N,{instreamVideoAdRenderer:void 0,b$:void 0,adVideoId:N,sZ:[]});return e.get(N)};
ZC=function(e,N,y,w,E,A,T,p,C){E?q2(e,E).sZ.push({jpW:N,H8:y,isContentVideoCompanion:w,Dz:T,associatedCompositePlayerBytesLayoutId:A,adSlotLoggingData:p,Qc:C}):YN("Companion AdPlacementSupportedRenderer without adVideoId")};
xt=function(e){var N=0;e=g.c(e.questions);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y=g.m(y,X4)||g.m(y,Pr)){var w=void 0;N+=((w=y.surveyAdQuestionCommon)==null?void 0:w.durationMilliseconds)||0}return N};
jj=function(e){var N,y,w,E,A=((y=g.m((N=e.questions)==null?void 0:N[0],X4))==null?void 0:y.surveyAdQuestionCommon)||((E=g.m((w=e.questions)==null?void 0:w[0],Pr))==null?void 0:E.surveyAdQuestionCommon),T;N=[].concat(g.B(((T=e.playbackCommands)==null?void 0:T.instreamAdCompleteCommands)||[]),g.B((A==null?void 0:A.timeoutCommands)||[]));var p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn,eM;return{impressionCommands:(p=e.playbackCommands)==null?void 0:p.impressionCommands,errorCommands:(C=e.playbackCommands)==
null?void 0:C.errorCommands,muteCommands:(r=e.playbackCommands)==null?void 0:r.muteCommands,unmuteCommands:(Y=e.playbackCommands)==null?void 0:Y.unmuteCommands,pauseCommands:(M=e.playbackCommands)==null?void 0:M.pauseCommands,rewindCommands:(l=e.playbackCommands)==null?void 0:l.rewindCommands,resumeCommands:(F=e.playbackCommands)==null?void 0:F.resumeCommands,skipCommands:(S=e.playbackCommands)==null?void 0:S.skipCommands,progressCommands:(k=e.playbackCommands)==null?void 0:k.progressCommands,ceZ:(X=
e.playbackCommands)==null?void 0:X.clickthroughCommands,fullscreenCommands:(d=e.playbackCommands)==null?void 0:d.fullscreenCommands,activeViewViewableCommands:(v=e.playbackCommands)==null?void 0:v.activeViewViewableCommands,activeViewMeasurableCommands:(V=e.playbackCommands)==null?void 0:V.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(Z=e.playbackCommands)==null?void 0:Z.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(n=e.playbackCommands)==
null?void 0:(R=n.activeViewTracking)==null?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(O=e.playbackCommands)==null?void 0:(E9=O.activeViewTracking)==null?void 0:E9.activeViewAudioMeasurableCommands,endFullscreenCommands:(Jn=e.playbackCommands)==null?void 0:Jn.endFullscreenCommands,abandonCommands:(eM=e.playbackCommands)==null?void 0:eM.abandonCommands,completeCommands:N}};
xfF=function(e,N,y,w,E,A,T){return function(p,C){return Z29(e,C.slotId,p,A,function(r,Y){var M=C.layoutId;r=T(r);return nN(N,M,Y,E,r,"LAYOUT_TYPE_SURVEY",[new MT(y),w],y.adLayoutLoggingData)})}};
QR5=function(e,N,y,w,E,A,T){if(!jR5(e))return new U("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:e});var p=e.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[nC9(A,N,y,w,function(C){var r=C.slotId;C=T(C);r=G5(E.N.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",r);var Y={layoutId:r,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xh:"core"},M=new vh(E.J,w);return{layoutId:r,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",tM:new Map,layoutExitNormalTriggers:[M],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new ll(p)]),o9:C(Y)}})]};
jR5=function(e){e=g.m(e==null?void 0:e.additionalPlayerOverlay,mfF);if(!e)return!1;var N=e.slidingMessages;return e.title&&N&&N.length!==0?!0:!1};
KX5=function(e,N,y,w,E){var A;if((A=e.playerOverlay)==null||!A.instreamSurveyAdRenderer)return function(){return[]};
if(!Sl5(e))return function(){return new U("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:e})};
var T=e.playerOverlay.instreamSurveyAdRenderer,p=xt(T);return p<=0?function(){return new U("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T})}:function(C,r){var Y=H2_(C,y,w,function(M){var l=M.slotId;
M=r(M);var F=jj(T);l=G5(E.N.get(),"LAYOUT_TYPE_SURVEY",l);var S={layoutId:l,layoutType:"LAYOUT_TYPE_SURVEY",Xh:"core"},k=new vh(E.J,w),X=new jm(E.J,l),d=new O_(E.J,l),v=new OVE(E.J);return{layoutId:l,layoutType:"LAYOUT_TYPE_SURVEY",tM:new Map,layoutExitNormalTriggers:[k,v],layoutExitSkipTriggers:[X],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[d],E2:[],Xh:"core",clientMetadata:new EG([new Yq(T),new Lj(N),new jR(p/1E3),new Hp(F)]),o9:M(S),adLayoutLoggingData:T.adLayoutLoggingData}});
C=QR5(e,y,Y.slotId,w,E,C,r);return C instanceof U?C:[Y].concat(g.B(C))}};
sRM=function(e,N,y,w,E,A,T){T=T===void 0?!1:T;var p=[];try{var C=[];if(y.renderer.linearAdSequenceRenderer)var r=function(k){k=WXH(k.slotId,y,N,E(k),w,A,T);C=k.iN9;return k.h5};
else if(y.renderer.instreamVideoAdRenderer)r=function(k){var X=k.slotId;k=E(k);var d=T,v=y.config.adPlacementConfig,V=O2M(v),Z=V.Db,n=V.t6;V=y.renderer.instreamVideoAdRenderer;var R;if(V==null?0:(R=V.playerOverlay)==null?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var O=Qw(V,d);R=Math.min(Z+O.videoLengthSeconds*1E3,n);d=new ch(0,[O.videoLengthSeconds]);n=O.videoLengthSeconds;var E9=O.playerVars,Jn=O.instreamAdPlayerOverlayRenderer,eM=O.playerOverlayLayoutRenderer,
H=O.adVideoId,a=Rds(y),h=O.tM;O=O.Gn;var K=V==null?void 0:V.adLayoutLoggingData;V=V==null?void 0:V.sodarExtensionData;X=G5(N.N.get(),"LAYOUT_TYPE_MEDIA",X);var aP={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",Xh:"core"};return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA",tM:h,layoutExitNormalTriggers:[new zK(N.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new wK(w),new Pp(n),new dK(E9),new zQ(Z),new il(R),Jn&&new EP(Jn),
eM&&new Aw(eM),new Lj(v),new yS(H),new sR(d),new tw(a),V&&new vp(V),new cp({current:null}),new gK({}),new OP(O)].filter(G$0)),o9:k(aP),adLayoutLoggingData:K}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var Y=Uf5(e,w,y.adSlotLoggingData,r);p.push(Y);for(var M=g.c(C),l=M.next();!l.done;l=M.next()){var F=l.value,S=F(e,E);if(S instanceof U)return S;p.push.apply(p,g.B(S))}}catch(k){return new U(k,{errorMessage:k.message,AdPlacementRenderer:y,numberOfSurveyRenderers:LX_(y)})}return p};
LX_=function(e){e=(e.renderer.linearAdSequenceRenderer||{}).linearAds;return e!=null&&e.length?e.filter(function(N){var y,w;return((y=g.m(N,lS))==null?void 0:(w=y.playerOverlay)==null?void 0:w.instreamSurveyAdRenderer)!=null}).length:0};
WXH=function(e,N,y,w,E,A,T){var p=N.config.adPlacementConfig,C=O2M(p),r=C.Db,Y=C.t6;C=(N.renderer.linearAdSequenceRenderer||{}).linearAds;if(C==null||!C.length)throw new TypeError("Expected linear ads");var M=[],l={St:r,xo:0,lWh:M};C=C.map(function(S){return aKM(e,S,l,y,w,p,E,Y,T)}).map(function(S,k){k=new ch(k,M);
return S(k)});
var F=C.map(function(S){return S.l2});
return{h5:e49(y,e,r,F,p,Rds(N),w,Y,A),iN9:C.map(function(S){return S.xSs})}};
aKM=function(e,N,y,w,E,A,T,p,C){var r=Qw(g.m(N,lS),C),Y=y.St,M=y.xo,l=Math.min(Y+r.videoLengthSeconds*1E3,p);y.St=l;y.xo++;y.lWh.push(r.videoLengthSeconds);var F,S,k=(F=g.m(N,lS))==null?void 0:(S=F.playerOverlay)==null?void 0:S.instreamSurveyAdRenderer;if(r.adVideoId==="nPpU29QrbiU"&&k==null)throw new TypeError("Survey slate media has no survey overlay");return function(X){te(r.playerVars,X);var d,v,V=r.videoLengthSeconds,Z=r.playerVars,n=r.tM,R=r.Gn,O=r.instreamAdPlayerOverlayRenderer,E9=r.playerOverlayLayoutRenderer,
Jn=r.adVideoId,eM=(d=g.m(N,lS))==null?void 0:d.adLayoutLoggingData;d=(v=g.m(N,lS))==null?void 0:v.sodarExtensionData;v=G5(w.N.get(),"LAYOUT_TYPE_MEDIA",e);var H={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",Xh:"adapter"};X={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",tM:n,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"adapter",clientMetadata:new EG([new wK(T),new Pp(V),new dK(Z),new zQ(Y),new il(l),new Db(M),new cp({current:null}),
O&&new EP(O),E9&&new Aw(E9),new Lj(A),new yS(Jn),new sR(X),d&&new vp(d),k&&new Wp(k),new gK({}),new OP(R)].filter(G$0)),o9:E(H),adLayoutLoggingData:eM};V=KX5(g.m(N,lS),A,T,X.layoutId,w);return{l2:X,xSs:V}}};
Qw=function(e,N){if(!e)throw new TypeError("Expected instream video ad renderer");if(!e.playerVars)throw new TypeError("Expected player vars in url encoded string");var y=AE(e.playerVars),w=Number(y.length_seconds);if(isNaN(w))throw new TypeError("Expected valid length seconds in player vars");var E=Number(e.trimmedMaxNonSkippableAdDurationMs);w=isNaN(E)?w:Math.min(w,E/1E3);E=e.playerOverlay||{};E=E.instreamAdPlayerOverlayRenderer===void 0?null:E.instreamAdPlayerOverlayRenderer;var A=e.playerOverlay||
{};A=A.playerOverlayLayoutRenderer===void 0?null:A.playerOverlayLayoutRenderer;var T=y.video_id;T||(T=(T=e.externalVideoId)?T:void 0);if(!T)throw new TypeError("Expected valid video id in IVAR");if(N&&w===0){var p;N=(p=NLM[T])!=null?p:w}else N=w;return{playerVars:y,videoLengthSeconds:N,instreamAdPlayerOverlayRenderer:E,playerOverlayLayoutRenderer:A,adVideoId:T,tM:e.pings?dF(e.pings):new Map,Gn:Pt(e.pings)}};
Rds=function(e){e=Number(e.driftRecoveryMs);return isNaN(e)||e<=0?null:e};
O2M=function(e){var N=e.adTimeOffset||{};e=N.offsetEndMilliseconds;N=Number(N.offsetStartMilliseconds);if(isNaN(N))throw new TypeError("Expected valid start offset");e=Number(e);if(isNaN(e))throw new TypeError("Expected valid end offset");return{Db:N,t6:e}};
y5M=function(e){var N,y=(N=A6(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:N.current;if(!y)return null;N=A6(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var w=e.layoutId,E=A6(e.clientMetadata,"metadata_type_content_cpn"),A=A6(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=A6(e.clientMetadata,"metadata_type_player_underlay_renderer"),p=A6(e.clientMetadata,"metadata_type_ad_placement_config"),C=A6(e.clientMetadata,"metadata_type_video_length_seconds");
var r=eK(e.clientMetadata,"metadata_type_layout_enter_ms")&&eK(e.clientMetadata,"metadata_type_layout_exit_ms")?(A6(e.clientMetadata,"metadata_type_layout_exit_ms")-A6(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{rL:w,contentCpn:E,cT:y,FO:N,instreamAdPlayerOverlayRenderer:A,instreamAdPlayerUnderlayRenderer:T,adPlacementConfig:p,videoLengthSeconds:C,wF:r,inPlayerLayoutId:A6(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:A6(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
A5E=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S){w=F1(w,"SLOT_TYPE_PLAYER_BYTES");e=wMF(E,e,T,y,w,C,r);if(e instanceof U)return e;var k;r=(k=A6(e.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:k.layoutId;if(!r)return new U("Invalid adNotify layout");N=Edn(r,E,A,y,p,N,C,Y,M,l,F,S,T);return N instanceof U?N:[e].concat(g.B(N))};
Edn=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){y=TL9(N,y,w,A,T,p,C,r,Y,M,l);if(y instanceof U)return y;e=J5s(N,e,T,E,y);return e instanceof U?e:[].concat(g.B(e.n$),[e.iz])};
CZH=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){N=TL9(e,N,y,E,A,p,C,r,Y,M,l,F);if(N instanceof U)return N;e=pME(e,y,A,T,w,p.Cx,N);return e instanceof U?e:e.n$.concat(e.iz)};
TL9=function(e,N,y,w,E,A,T,p,C,r,Y,M){var l=m9(w,y,r);return l instanceof wX?new U(l):r.C.X().experiments.gP("html5_refactor_in_player_slot_generation")?function(F){var S=new ch(0,[l.Je]);F=r5E(N,l.layoutId,l.XF,y,Hr(l.playerVars,l.uu,A,C,S),l.Je,E,S,T(F),p.get(l.XF.externalVideoId),M);S=[];if(l.XF.playerOverlay.instreamAdPlayerOverlayRenderer){var k=y5M(F);if(!k)return YN("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,F),{layout:F,n$:[]};
S=[$D1(e,k.contentCpn,k.rL,function(d){return KN(N,d.slotId,"core",k,$2(Y,d))},k.inPlayerSlotId)].concat(g.B(S));
if(k.instreamAdPlayerUnderlayRenderer&&Wr(r)){var X=k.instreamAdPlayerUnderlayRenderer;S=[YR9(e,k.contentCpn,k.rL,function(d){return MA5(N,d.slotId,X,k.adPlacementConfig,k.rL,$2(Y,d))})].concat(g.B(S))}}return{layout:F,
n$:S}}:function(F){var S=new ch(0,[l.Je]);
return{layout:r5E(N,l.layoutId,l.XF,y,Hr(l.playerVars,l.uu,A,C,S),l.Je,E,S,T(F),p.get(l.XF.externalVideoId),M),n$:[]}}};
m9=function(e,N,y){if(!e.playerVars)return new wX("No playerVars available in InstreamVideoAdRenderer.");var w,E;if(e.elementId==null||e.playerVars==null||e.playerOverlay==null||((w=e.playerOverlay)==null?void 0:w.instreamAdPlayerOverlayRenderer)==null&&((E=e.playerOverlay)==null?void 0:E.playerOverlayLayoutRenderer)==null||e.pings==null||e.externalVideoId==null)return new wX("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:e});w=AE(e.playerVars);E=Number(w.length_seconds);
isNaN(E)&&(E=0,YN("Expected valid length seconds in player vars but got NaN"));if(y.HE(N.kind==="AD_PLACEMENT_KIND_START")){if(e.layoutId===void 0)return new wX("Expected server generated layout ID in instreamVideoAdRenderer");N=e.layoutId}else N=e.elementId;return{layoutId:N,XF:e,playerVars:w,uu:e.playerVars,Je:E}};
Hr=function(e,N,y,w,E){e.iv_load_policy=w;N=AE(N);if(N.cta_conversion_urls)try{e.cta_conversion_urls=JSON.parse(N.cta_conversion_urls)}catch(A){YN(A)}y.S_&&(e.ctrl=y.S_);y.N2&&(e.ytr=y.N2);y.Ez&&(e.ytrcc=y.Ez);y.isMdxPlayback&&(e.mdx="1");e.vvt&&(e.vss_credentials_token=e.vvt,y.zN&&(e.vss_credentials_token_type=y.zN),y.mdxEnvironment&&(e.mdx_environment=y.mdxEnvironment));te(e,E);return e};
lX_=function(e){var N=new Map;e=g.c(e);for(var y=e.next();!y.done;y=e.next())(y=y.value.renderer.remoteSlotsRenderer)&&y.hostElementId&&N.set(y.hostElementId,y);return N};
O1=function(e){return e.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
Fbs=function(e){return e!=null};
kj5=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){for(var S=[],k=g.c(e),X=k.next();!X.done;X=k.next())if(X=X.value,!TvE(X)&&!MyE(X)){var d=O1(X)&&!!X.slotEntryTrigger.beforeContentVideoIdStartedTrigger,v=C.HE(d),V=SRM(X,r,w,y.LO,v);if(V instanceof U)return V;var Z=void 0,n={slotId:X.adSlotMetadata.slotId,slotType:X.adSlotMetadata.slotType,slotPhysicalPosition:(Z=X.adSlotMetadata.slotPhysicalPosition)!=null?Z:1,Xh:"core",slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,
slotExpirationTriggers:V.slotExpirationTriggers},R=g.m(X.fulfillmentContent.fulfilledLayout,he);if(R){if(!bS(R))return new U("Invalid PlayerBytesAdLayoutRenderer");Z=M&&!(O1(X)&&X.slotEntryTrigger.beforeContentVideoIdStartedTrigger);V=V.slotFulfillmentTriggers.some(function(O){return O instanceof iR});
v=Z?od5(n,X.adSlotMetadata.triggerEvent,R,y,w,A,r,e,v,l,V,F):bj_(n,X.adSlotMetadata.triggerEvent,R,N,y,w,E,A,T,p,C,r,e,Y,v,X.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof U)return v;V=[];O1(X)&&V.push(new sP({dD:O1(X)&&!!X.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));Z&&V.push(new gK({}));y.Cx&&V.push(new Kx({}));V.push(new UP(d));X=Object.assign({},n,{clientMetadata:new EG(V),fulfilledLayout:v.layout,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push.apply(S,g.B(v.n$));
S.push(X)}else if(d=g.m(X.fulfillmentContent.fulfilledLayout,Br)){if(!ACM(d))return new U("Invalid PlayerUnderlayAdLayoutRenderer");d=h40(d,w,y.LO,A,n,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof U)return d;X=Object.assign({},n,{clientMetadata:new EG([]),fulfilledLayout:d,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push(X)}else if(d=g.m(X.fulfillmentContent.fulfilledLayout,p89)){if(!LoF(d))return new U("Invalid AboveFeedAdLayoutRenderer");d=
c55(d,w,y.LO,A,n,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId);if(d instanceof U)return d;X=Object.assign({},n,{clientMetadata:new EG([]),fulfilledLayout:d,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push(X)}else if(d=g.m(X.fulfillmentContent.fulfilledLayout,CI5)){if(!U_(d.adLayoutMetadata)||!g.m(d.renderingContent,Lt))return new U("Invalid BelowPlayerAdLayoutRenderer");d=c55(d,w,y.LO,A,n,X.adSlotMetadata.triggerEvent,X.adSlotMetadata.triggeringSourceLayoutId);
if(d instanceof U)return d;X=Object.assign({},n,{clientMetadata:new EG([]),fulfilledLayout:d,adSlotLoggingData:X.adSlotMetadata.adSlotLoggingData});S.push(X)}else return new U("Unable to retrieve a client slot ["+n.slotType+"] from a given AdSlotRenderer")}return S};
c55=function(e,N,y,w,E,A,T){var p={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"};N=RQ(e,N,y);if(N instanceof U)return N;y=[];y.push(new Lj(GR(A)));A==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&T!==void 0&&y.push(new FP(T));return Object.assign({},p,{renderingContent:e.renderingContent,tM:new Map([["impression",BL5(e)]])},N,{o9:$2(w,E)(p),clientMetadata:new EG(y),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})};
h40=function(e,N,y,w,E,A,T){if(e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(T=g.m(e.renderingContent,cr))if(T=g.m(T.sidePanel,w8P)){var p={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"};N=RQ(e,N,y);e=N instanceof U?N:Object.assign({},p,{renderingContent:e.renderingContent,tM:new Map([["impression",T.impressionPings||[]],["resume",T.resumePings||[]]])},N,{o9:$2(w,E)(p),clientMetadata:new EG([new Lj(GR(A))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})}else e=
new U("DismissablePanelTextPortraitImageRenderer is missing");else e=new U("SqueezebackPlayerSidePanelRenderer is missing");else e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.m(e.renderingContent,edF)?(T={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"},N=RQ(e,N,y),e=N instanceof U?N:Object.assign({},T,{renderingContent:e.renderingContent,tM:new Map},N,{o9:$2(w,E)(T),clientMetadata:new EG([new Lj(GR(A))]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData})):
e=new U("CounterfactualRenderer is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?e=new U("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?e=new U("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.m(e.renderingContent,kt)?(A={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,
Xh:"core"},N=RQ(e,N,y),e=N instanceof U?N:T?Object.assign({},A,{renderingContent:e.renderingContent,tM:new Map},N,{o9:$2(w,E)(A),clientMetadata:new EG([new FP(T)]),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData}):new U("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):e=new U("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):e.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.m(e.renderingContent,Nv1)?
(A={layoutId:e.adLayoutMetadata.layoutId,layoutType:e.adLayoutMetadata.layoutType,Xh:"core"},N=RQ(e,N,y),e=N instanceof U?N:Object.assign({},A,{renderingContent:e.renderingContent,tM:new Map([])},N,{o9:$2(w,E)(A),adLayoutLoggingData:e.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new EG([])})):e=new U("AdsEngagementPanelSectionListViewModel is missing"):e=new U("LayoutType ["+e.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return e};
od5=function(e,N,y,w,E,A,T,p,C,r,Y,M){if((M==null?void 0:M.MY)===void 0||(M==null?void 0:M.VH)===void 0)return new U("Cached ad break range from cue point is missing");var l=RQ(y,E,w.LO);if(l instanceof U)return l;l={layoutExitMuteTriggers:[],layoutExitNormalTriggers:l.layoutExitNormalTriggers,layoutExitSkipTriggers:[],E2:[],layoutExitUserInputSubmittedTriggers:[]};if(g.m(y.renderingContent,lS))return e=XMn(e,N,y,l,E,A,p,C,w.LO,T,M.MY,M.VH),e instanceof U?e:e.V6===void 0?new U("Expecting associatedInPlayerSlot for single DAI media layout"):
{layout:e.layout,n$:[e.V6]};var F=g.m(y.renderingContent,TR);if(F){if(!U_(y.adLayoutMetadata))return new U("Invalid ad layout metadata");if(!M2(F))return new U("Invalid sequential layout");F=F.sequentialLayouts.map(function(S){return S.playerBytesAdLayoutRenderer});
e=PZH(e,N,y,l,F,E,w,A,T,C,p,r,M.MY,M.VH,Y);return e instanceof U?e:{layout:e.mF,n$:e.n$}}return new U("Not able to convert a sequential layout")};
PZH=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S){var k=dDs(E,l,F);if(k instanceof U)return k;var X=[],d=[];k=g.c(k);for(var v=k.next();!v.done;v=k.next()){var V=v.value;v=e;var Z=E[V.xo],n=V,R=N;V=A;var O=T,E9=p,Jn=C,eM=r,H=Y,a=U1(Z);if(a instanceof U)v=a;else{var h={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,Xh:"adapter"};n=IX1(R,Z,n,V);n instanceof U?v=n:(v=Object.assign({},h,LN,{tM:a,renderingContent:Z.renderingContent,clientMetadata:new EG(n),o9:$2(E9,v)(h),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData}),
v=(Z=s1(H,v,V,O.LO,E9,Jn,eM,void 0,!0))?Z instanceof U?Z:{layout:v,V6:Z}:new U("Expecting associatedInPlayerSlot"))}if(v instanceof U)return v;X.push(v.layout);d.push(v.V6)}E={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,Xh:"core"};N=[new tw(Number(y.driftRecoveryMs)),new zQ(l),new il(F),new Lj(GR(N)),new GQ(M),new gK({})];S&&N.push(new as({}));return{mF:Object.assign({},E,w,{Cm:X,tM:new Map,clientMetadata:new EG(N),o9:$2(p,e)(E)}),n$:d}};
XMn=function(e,N,y,w,E,A,T,p,C,r,Y,M){if(!bS(y))return new U("Invalid PlayerBytesAdLayoutRenderer");var l=U1(y);if(l instanceof U)return l;var F={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,Xh:"core"},S=g.m(y.renderingContent,lS);if(!S)return new U("Invalid rendering content for DAI media layout");S=Qw(S,!1);Y={xV:S,xo:0,St:Y,rp:Math.min(Y+S.videoLengthSeconds*1E3,M),Fi:new ch(0,[S.videoLengthSeconds])};var k;M=(k=Number(y.driftRecoveryMs))!=null?k:void 0;N=IX1(N,
y,Y,E,M);if(N instanceof U)return N;e=Object.assign({},F,w,{tM:l,renderingContent:y.renderingContent,clientMetadata:new EG(N),o9:$2(A,e)(F),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});return(E=s1(T,e,E,C,A,r,p,void 0,!0))?E instanceof U?E:{layout:e,V6:E}:new U("Expecting associatedInPlayerSlot")};
bj_=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k){var X=RQ(y,A,E.LO);if(X instanceof U)return X;if(g.m(y.renderingContent,lS)){C=vds([y],E,C);if(C instanceof U)return C;if(C.length!==1)return new U("Only expected one media layout.");e=z49(e,N,y,X,C[0],void 0,"core",w,A,T,p,r,l,F,S,E.LO,M,void 0,k);return e instanceof U?e:{layout:e.layout,n$:e.V6?[e.V6]:[]}}var d=g.m(y.renderingContent,TR);if(d){if(!U_(y.adLayoutMetadata))return new U("Invalid ad layout metadata");if(!M2(d))return new U("Invalid sequential layout");
d=d.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer});
e=ijP(e,N,y.adLayoutMetadata,X,d,w,A,E,C,T,p,r,Y,M,S,l,F,k);return e instanceof U?e:{layout:e.mF,n$:e.n$}}return new U("Not able to convert a sequential layout")};
ijP=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d){var v=new NT({current:null}),V=vds(E,p,C);if(V instanceof U)return V;C=[];for(var Z=[],n=void 0,R=0;R<E.length;R++){var O=E[R];if(g.m(O.renderingContent,lS)){n=ii(l)&&Du(l)?V[R+1]:void 0;n=z49(e,N,O,LN,V[R],n,"adapter",A,T,r,Y,M,k,X,S,p.LO,F,v,d);if(n instanceof U)return n;C.push(n.layout);n.V6&&Z.push(n.V6);n=V[R]}else if(g.m(O.renderingContent,F4)){var E9=e,Jn=Y;if(bS(O)){var eM=g.m(O.renderingContent,F4);if(eM&&eM.playerVars!==void 0){var H={layoutId:O.adLayoutMetadata.layoutId,
layoutType:O.adLayoutMetadata.layoutType,Xh:"adapter"};eM=AE(eM.playerVars);eM.autoplay="1";O=Object.assign({},H,LN,{renderingContent:O.renderingContent,clientMetadata:new EG([new VS({}),new Lj({kind:"AD_PLACEMENT_KIND_START"}),new cp({current:null}),new dK(eM)]),tM:new Map,o9:$2(Jn,E9)(H),adLayoutLoggingData:O.adLayoutMetadata.adLayoutLoggingData})}else O=new U("Invalid ad intro renderer")}else O=new U("Invalid PlayerBytesAdLayoutRenderer");if(O instanceof U)return O;C.push(O)}else if(g.m(O.renderingContent,
pd))if(X){O=DD5(e,O,Y,GR(N),n);if(O instanceof U)return O;C.push(O);O=s1(k,O,T,p.LO,Y,F,S,v,!1);if(O instanceof U)return O;if(O)Z.push(O);else return new U("Not able to retrieve InPlayer slot for endcap")}else{a:{E9=O.adLayoutMetadata.layoutId;Jn=g.c(A);for(H=Jn.next();!H.done;H=Jn.next()){H=H.value;var a=eM=void 0,h=((eM=H.renderer)==null?void 0:(a=eM.linearAdSequenceRenderer)==null?void 0:a.linearAds)||[];eM=g.c(h);for(a=eM.next();!a.done;a=eM.next())if((a=g.m(a.value,pd))&&a.inPlayerSlotId!==void 0&&
a.inPlayerLayoutId!==void 0&&a.associatedPlayerBytesLayoutId!==void 0&&a.associatedPlayerBytesLayoutId===E9){E9={Zd:a,adPlacementConfig:H.config.adPlacementConfig};break a}}E9=new U("Not able to find associated InPlayer slot for endcap")}if(E9 instanceof U)return E9;O=DD5(e,O,Y,E9.adPlacementConfig,n);if(O instanceof U)return O;C.push(O);O=gdM(O.layoutId,F,T,E9,v,Y);if(O instanceof U)return O;Z.push(O)}}N={layoutId:y.layoutId,layoutType:y.layoutType,Xh:"core"};return{mF:Object.assign({},N,w,{Cm:C,
tM:new Map,clientMetadata:new EG([v]),o9:$2(Y,e)(N)}),n$:Z}};
z49=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v){if(!bS(y))return new U("Invalid PlayerBytesAdLayoutRenderer");var V=U1(y);if(V instanceof U)return V;T={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,Xh:T};a:{var Z=y.adLayoutMetadata.layoutId,n=g.m(y.renderingContent,lS);if(n&&Ae(n)){var R=[];if(F)R.push(new Lj(GR(N)));else{b:{p=g.c(p);for(N=p.next();!N.done;N=p.next()){N=N.value;var O=qlH(N.renderer)||[],E9=g.c(O);for(O=E9.next();!O.done;O=E9.next())if(O=O.value,
O.associatedPlayerBytesLayoutId===Z){O.associatedPlayerBytesLayoutId?(p=O.playerOverlay,E9=p!==void 0&&p.playerOverlayLayoutRenderer!==void 0&&p.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&p.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,p=p!==void 0&&p.instreamAdPlayerOverlayRenderer!==void 0&&p.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&p.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||E9):p=!1;N=p?{instreamVideoAdRenderer:O,adPlacementConfig:N.config.adPlacementConfig}:
new U("Invalid InPlayer shim");break b}}N=new U("Not able to find associated InPlayer slot")}if(N instanceof U){A=N;break a}p=N.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;O=N.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var Jn;E9=(Jn=p==null?void 0:p.inPlayerSlotId)!=null?Jn:O==null?void 0:O.inPlayerSlotId;var eM;Jn=(eM=p==null?void 0:p.inPlayerLayoutId)!=null?eM:O==null?void 0:O.inPlayerLayoutId;if(E9===void 0){A=new U("InPlayer shim slot id is undefined");
break a}if(Jn===void 0){A=new U("InPlayer shim layout id is undefined");break a}R.push(new SR(Jn),new bl(E9),new Db(E.Fi.adPodIndex),new Lj(N.adPlacementConfig));p&&R.push(new EP(p));O&&R.push(new Aw(O))}R.push(new sR(E.Fi),new yS(n.externalVideoId),new wK(C),new Hp({impressionCommands:n.impressionCommands,abandonCommands:n.onAbandonCommands,completeCommands:n.completeCommands,progressCommands:n.adVideoProgressCommands}),new dK(E.Gk),new cp({current:null}),new Pp(E.Txh.Je),new OP(Pt(n.pings)),new ao(E.Fi.adPodIndex));
v&&R.push(new FP(v));(E=VAF(Z,l))&&R.push(new Jw(E));A&&R.push(new Is(A.Gk));n.adNextParams&&R.push(new Qg(n.adNextParams));n.clickthroughEndpoint&&R.push(new HM(n.clickthroughEndpoint));n.legacyInfoCardVastExtension&&R.push(new QS(n.legacyInfoCardVastExtension));n.sodarExtensionData&&R.push(new vp(n.sodarExtensionData));d&&n.adPodSkipTarget&&n.adPodSkipTarget>0&&(R.push(d),R.push(new eR(n.adPodSkipTarget)));(A=r.get(n.externalVideoId))&&R.push(new xq(A));A=R}else A=new U("Invalid vod media renderer")}if(A instanceof
U)return A;e=Object.assign({},T,w,{tM:V,renderingContent:y.renderingContent,clientMetadata:new EG(A),o9:$2(Y,e)(T),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});y=g.m(y.renderingContent,lS);if(!y||!Ae(y))return new U("Invalid meida renderer");M=q2(M,y.externalVideoId);M.instreamVideoAdRenderer=y;M.b$="AD_PLACEMENT_KIND_START";return F?(C=s1(l,e,C,k,Y,X,S,d,!1),C instanceof U?C:VAF(e.layoutId,l)&&C?{layout:Object.assign({},e,{clientMetadata:new EG(A.concat(new px(C)))})}:{layout:e,V6:C}):
{layout:e}};
DD5=function(e,N,y,w,E){if(!bS(N))return new U("Invalid PlayerBytesAdLayoutRenderer");var A=g.m(N.renderingContent,pd);if(!A||A.durationMilliseconds===void 0)return new U("Invalid endcap renderer");var T={layoutId:N.adLayoutMetadata.layoutId,layoutType:N.adLayoutMetadata.layoutType,Xh:"adapter"};w=[new nx(A.durationMilliseconds),new Hp({impressionCommands:void 0,abandonCommands:A.abandonCommands?[{commandExecutorCommand:A.abandonCommands}]:void 0,completeCommands:A.completionCommands}),new Lj(w),
new os("LAYOUT_TYPE_ENDCAP")];if(E){w.push(new ao(E.Fi.adPodIndex-1));w.push(new Db(E.Fi.adPodIndex));var p;w.push(new eR((p=E.adPodSkipTarget)!=null?p:-1))}return Object.assign({},T,LN,{renderingContent:N.renderingContent,clientMetadata:new EG(w),tM:A.skipPings?new Map([["skip",A.skipPings]]):new Map,o9:$2(y,e)(T),adLayoutLoggingData:N.adLayoutMetadata.adLayoutLoggingData})};
s1=function(e,N,y,w,E,A,T,p,C){e=e.filter(function(Y){return Y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Y.adSlotMetadata.triggeringSourceLayoutId===N.layoutId});
if(e.length!==0){if(e.length!==1)return new U("Invalid InPlayer slot association for the given PlayerBytes layout");e=e[0];T=SRM(e,A,y,w,T);if(T instanceof U)return T;var r;A={slotId:e.adSlotMetadata.slotId,slotType:e.adSlotMetadata.slotType,slotPhysicalPosition:(r=e.adSlotMetadata.slotPhysicalPosition)!=null?r:1,Xh:"core",slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers};r=g.m(e.fulfillmentContent.fulfilledLayout,
JCH);if(!r||!an3(r))return new U("Invalid InPlayerAdLayoutRenderer");T={layoutId:r.adLayoutMetadata.layoutId,layoutType:r.adLayoutMetadata.layoutType,Xh:"core"};y=RQ(r,y,w);if(y instanceof U)return y;w=[];C&&w.push(new gK({}));if(r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")w.push.apply(w,g.B(fXJ(e.adSlotMetadata.triggerEvent,N)));else if(r.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")w.push(new Lj(GR(e.adSlotMetadata.triggerEvent))),p&&w.push(p);else return new U("Not able to parse an SDF InPlayer layout");
E=Object.assign({},T,y,{renderingContent:r.renderingContent,tM:new Map,o9:$2(E,A)(T),clientMetadata:new EG(w),adLayoutLoggingData:r.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},A,{fulfilledLayout:E,clientMetadata:new EG([])})}};
fXJ=function(e,N){var y=[];y.push(new Lj(GR(e)));y.push(new FP(N.layoutId));(e=A6(N.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&y.push(new cp(e));(e=A6(N.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&y.push(new NT(e));(e=A6(N.clientMetadata,"metadata_type_remote_slots_data"))&&y.push(new xq(e));(e=A6(N.clientMetadata,"metadata_type_ad_next_params"))&&y.push(new Qg(e));(e=A6(N.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&y.push(new HM(e));(e=
A6(N.clientMetadata,"metadata_type_ad_pod_info"))&&y.push(new sR(e));(N=A6(N.clientMetadata,"metadata_type_ad_video_id"))&&y.push(new yS(N));return y};
gdM=function(e,N,y,w,E,A){function T(r){return aQ(N,r)}
var p=w.Zd.inPlayerSlotId,C={layoutId:w.Zd.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Xh:"core"};y={slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:new dy(T,e),slotFulfillmentTriggers:[new nt(T,p)],slotExpirationTriggers:[new QV(T,p),new Zp(T,y)]};e=Object.assign({},C,{layoutExitNormalTriggers:[new vh(T,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],tM:new Map,clientMetadata:new EG([new rK(w.Zd),
new Lj(w.adPlacementConfig),E]),o9:$2(A,y)(C),adLayoutLoggingData:w.Zd.adLayoutLoggingData});return Object.assign({},y,{clientMetadata:new EG([new ul(e)])})};
VAF=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next())if(y=y.value,y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var w=g.m(y.fulfillmentContent.fulfilledLayout,Br);if(w&&(w=g.m(w.renderingContent,cr))&&w.associatedPlayerBytesLayoutId===e)return y}};
SRM=function(e,N,y,w,E){var A=tAP(fN(e.slotEntryTrigger,y,w),E,e,N);if(A instanceof U)return A;for(var T=[],p=g.c(e.slotFulfillmentTriggers),C=p.next();!C.done;C=p.next()){C=fN(C.value,y,w);if(C instanceof U)return C;T.push(C)}T=u8s(T,E,e,N);N=[];e=g.c(e.slotExpirationTriggers);for(E=e.next();!E.done;E=e.next()){E=fN(E.value,y,w);if(E instanceof U)return E;N.push(E)}return{slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:N}};
tAP=function(e,N,y,w){return N&&y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e instanceof kA?new hc(function(E){return aQ(w,E)},y.adSlotMetadata.slotId):e};
u8s=function(e,N,y,w){return N&&y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?e.map(function(E){return E instanceof nt?new Kt(function(A){return aQ(w,A)},y.adSlotMetadata.slotId):E}):e};
RQ=function(e,N,y){for(var w=[],E=g.c(e.layoutExitNormalTriggers||[]),A=E.next();!A.done;A=E.next()){A=fN(A.value,N,y);if(A instanceof U)return A;w.push(A)}E=[];A=g.c(e.layoutExitSkipTriggers||[]);for(var T=A.next();!T.done;T=A.next()){T=fN(T.value,N,y);if(T instanceof U)return T;E.push(T)}A=[];T=g.c(e.layoutExitMuteTriggers||[]);for(var p=T.next();!p.done;p=T.next()){p=fN(p.value,N,y);if(p instanceof U)return p;A.push(p)}T=[];e=g.c(e.layoutExitUserInputSubmittedTriggers||[]);for(p=e.next();!p.done;p=
e.next()){p=fN(p.value,N,y);if(p instanceof U)return p;T.push(p)}return{layoutExitNormalTriggers:w,layoutExitSkipTriggers:E,layoutExitMuteTriggers:A,layoutExitUserInputSubmittedTriggers:T,E2:[]}};
U1=function(e){var N=g.m(e.renderingContent,lS);if(N==null?0:N.pings)return dF(N.pings);e=g.m(e.renderingContent,pd);return(e==null?0:e.skipPings)?new Map([["skip",e.skipPings]]):new Map};
IX1=function(e,N,y,w,E){N=g.m(N.renderingContent,lS);if(!N)return new U("Invalid rendering content for DAI media layout");e=[new wK(w),new Pp(y.xV.videoLengthSeconds),new dK(y.xV.playerVars),new zQ(y.St),new il(y.rp),new Db(y.xo),new Lj(GR(e)),new yS(y.xV.adVideoId),new sR(y.Fi),N.sodarExtensionData&&new vp(N.sodarExtensionData),new cp({current:null}),new gK({}),new OP(Pt(N.pings))].filter(Fbs);E!==void 0&&e.push(new tw(E));return e};
dDs=function(e,N,y){e=e.map(function(C){return Qw(g.m(C.renderingContent,lS),!1)});
var w=e.map(function(C){return C.videoLengthSeconds}),E=w.map(function(C,r){return new ch(r,w)}),A=N,T=y,p=[];
e.forEach(function(C,r){T=Math.min(A+C.videoLengthSeconds*1E3,y);te(C.playerVars,E[r]);p.push({xV:C,St:A,rp:T,xo:r,Fi:E[r]});A=T});
return p};
vds=function(e,N,y){for(var w=[],E=g.c(e),A=E.next();!A.done;A=E.next())if(A=g.m(A.value.renderingContent,lS)){if(!Ae(A))return new U("Invalid vod media renderer");w.push(qR_(A))}E=w.map(function(M){return M.Je});
A=[];for(var T=0,p=0;p<e.length;p++){var C=g.m(e[p].renderingContent,lS);if(C){var r=new ch(T,E),Y=Hr(w[T].playerVars,w[T].uu,N,y,r);A[p]={Fi:r,adPodSkipTarget:C.adPodSkipTarget,Txh:w[T],Gk:Y};T++}}return A};
qR_=function(e){var N=AE(e.playerVars),y=Number(N.length_seconds);isNaN(y)&&(y=0,YN("Expected valid length seconds in player vars but got NaN"));return{playerVars:N,uu:e.playerVars,Je:y}};
GR=function(e){switch(e){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}};
BL5=function(e){if(g.m(e.renderingContent,aX)){var N;return((N=g.m(e.renderingContent,aX))==null?void 0:N.impressionPings)||[]}if(g.m(e.renderingContent,Lt)){var y;return((y=g.m(e.renderingContent,Lt))==null?void 0:y.impressionPings)||[]}if(g.m(e.renderingContent,s_)){var w;return((w=g.m(e.renderingContent,s_))==null?void 0:w.impressionPings)||[]}return[]};
xD5=function(e,N,y,w,E,A,T,p,C){var r=y.pings;return r?[ZjH(e,A,p,E,function(Y){var M=Y.slotId;Y=C(Y);var l=y.adLayoutLoggingData,F=y.progressCommands;M=G5(N.N.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",M);var S={layoutId:M,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xh:"core"},k=dF(r),X=[new Zp(N.J,A)],d;var v=r==null?void 0:(d=r.activeViewTracking)==null?void 0:d.identifier;return{layoutId:M,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",tM:k,layoutExitNormalTriggers:X,layoutExitSkipTriggers:[],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new Lj(w),new OP(Pt(r)),new Rs(v),new Pp(T/1E3),new Hp({progressCommands:F}),new jR(T/1E3)]),o9:Y(S),adLayoutLoggingData:l}})]:new U("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:y})};
nd5=function(e,N,y,w,E,A,T,p){e=jon(e,y,A,T,w,function(C){var r=C.slotId;C=p(C);r=G5(N.N.get(),"LAYOUT_TYPE_FORECASTING",r);var Y={layoutId:r,layoutType:"LAYOUT_TYPE_FORECASTING",Xh:"core"},M=new Map,l=E.impressionUrls;l&&M.set("impression",l);return{layoutId:r,layoutType:"LAYOUT_TYPE_FORECASTING",tM:M,layoutExitNormalTriggers:[new qp(N.J,r)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new fx(E),new Lj(y)]),o9:C(Y)}});
return e instanceof U?e:[e]};
mDH=function(e,N,y,w,E,A,T){return[Qo5(e,A,w,function(p){var C=p.slotId;p=T(p);C=G5(N.N.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",C);var r={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xh:"core"};return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",tM:new Map,layoutExitNormalTriggers:[new Zp(N.J,A)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new EP(E),new Lj(y)]),o9:p(r),
adLayoutLoggingData:E.adLayoutLoggingData}})]};
Kb9=function(e,N,y,w,E,A,T,p){e=Hjn(e,y,A,T,w,function(C,r){var Y=C.slotId;C=p(C);var M=E.contentSupportedRenderer;M?M.textOverlayAdContentRenderer?(M=G5(N.N.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",Y),r=ew(N,M,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",E,y,C,NC(N,r,Y))):M.enhancedTextOverlayAdContentRenderer?(M=G5(N.N.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",Y),r=ew(N,M,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",E,y,C,NC(N,r,Y))):M.imageOverlayAdContentRenderer?(M=G5(N.N.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
Y),r=NC(N,r,Y),r.push(new RX(N.J,45E3,M)),r=ew(N,M,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",E,y,C,r)):r=new wX("InvideoOverlayAdRenderer without appropriate sub renderer"):r=new wX("InvideoOverlayAdRenderer without contentSupportedRenderer");return r});
return e instanceof U?e:[e]};
R43=function(e,N,y,w,E,A,T,p,C){var r=Number(w.durationMilliseconds);return isNaN(r)?new U("Expected valid duration for AdActionInterstitialRenderer."):function(Y){return Wb5(N,Y.slotId,y,w,r,{impressionCommands:void 0,abandonCommands:w.abandonCommands?[{commandExecutorCommand:w.abandonCommands}]:void 0,completeCommands:w.completionCommands},w.skipPings?new Map([["skip",w.skipPings]]):new Map,T(Y),function(M){return Ojn(e,M,E,function(l,F){var S=l.slotId;l=T(l);S=G5(N.N.get(),"LAYOUT_TYPE_ENDCAP",
S);return nN(N,S,F,y,l,"LAYOUT_TYPE_ENDCAP",[new rK(w),p],w.adLayoutLoggingData)})},C,A-1,w.adLayoutLoggingData,A)}};
Gj1=function(e,N,y,w){if(!y.playerVars)return new U("No playerVars available in AdIntroRenderer.");var E=AE(y.playerVars);E.autoplay="1";return function(A){var T=A.slotId;A=w(A);T=G5(e.N.get(),"LAYOUT_TYPE_MEDIA",T);var p={layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",Xh:"adapter"};return{Ww:{layoutId:T,layoutType:"LAYOUT_TYPE_MEDIA",tM:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"adapter",clientMetadata:new EG([new VS({}),
new Lj(N),new cp({current:null}),new dK(E)]),o9:A(p)},Tq:[new IX(e.J,T,["error"])],rN:[],JO:[],FX:[]}}};
Lb9=function(e,N,y,w,E,A,T,p,C,r){r=r===void 0?!1:r;var Y=xt(E);if(!FXJ(E,r))return new U("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:E});if(Y<=0)return new U("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:E});var M=xfF(e,N,E,A,y,w,T);return M instanceof U?M:function(l){return UDJ(N,l.slotId,y,Y,E,jj(E),T(l),M,p,C)}};
sos=function(e,N,y,w,E,A,T,p){function C(M){return Ojn(e,M,w,r)}
function r(M,l){var F=M.slotId;M=T(M);F=G5(N.N.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",F);return nN(N,F,l,y,M,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new $q(E),A],E.adLayoutLoggingData)}
if(!hd1(E))return new U("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:E});var Y=E.timeoutSeconds*1E3;return function(M){var l=M.slotId,F={impressionCommands:E.impressionCommands,completeCommands:E.timeoutCommands,skipCommands:E.dismissCommands};M=T(M);l=y8(N,l,y,Y,F,new Map,M,C,void 0,w$(N,y,E.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));F=new SR(l.wV);M=new ao(p);return{Ww:{layoutId:l.layoutId,layoutType:l.layoutType,tM:l.tM,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:l.Xh,clientMetadata:new EG([].concat(g.B(l.sL),[F,M])),o9:l.o9,adLayoutLoggingData:l.adLayoutLoggingData},Tq:[],rN:l.layoutExitMuteTriggers,JO:l.layoutExitUserInputSubmittedTriggers,FX:l.E2,V6:l.V6}}};
eaM=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k){e=F1(e,"SLOT_TYPE_PLAYER_BYTES");w=wMF(N,T,w,E,e,r,Y);if(w instanceof U)return w;var X;T=(X=A6(w.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:X.layoutId;if(!T)return new U("Invalid adNotify layout");N=aXP(T,N,y,E,A,C,p,r,M,l,F,S,k);return N instanceof U?N:[w].concat(g.B(N))};
aXP=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){y=NKE(N,y,w,A,T,p,C,r,Y,M,l);ywF(A)?(w=wp1(N,e),e=F1(N.N.get(),"SLOT_TYPE_IN_PLAYER"),A=G5(N.N.get(),"LAYOUT_TYPE_SURVEY",e),p=EU(N,w,p),N=[].concat(g.B(p.slotExpirationTriggers),[new Bh(N.J,A)]),e=y({slotId:p.slotId,slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:N,Xh:p.Xh},{slotId:e,layoutId:A}),E=e instanceof U?e:{iz:Object.assign({},
p,{slotExpirationTriggers:N,clientMetadata:new EG([new ul(e.layout)]),adSlotLoggingData:E}),n$:e.n$}):E=J5s(N,e,p,E,y);return E instanceof U?E:[].concat(g.B(E.n$),[E.iz])};
AwM=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){N=NKE(e,N,y,E,A,T,C,r,Y,M,l,F);ywF(E)?(E=EqH(e,y,T,p),E instanceof U?e=E:(p=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER"),C=G5(e.N.get(),"LAYOUT_TYPE_SURVEY",p),T=[].concat(g.B(E.slotExpirationTriggers),[new Bh(e.J,C)]),p=N({slotId:E.slotId,slotType:E.slotType,slotPhysicalPosition:E.slotPhysicalPosition,Xh:E.Xh,slotEntryTrigger:E.slotEntryTrigger,slotFulfillmentTriggers:E.slotFulfillmentTriggers,slotExpirationTriggers:T},{slotId:p,layoutId:C}),e=p instanceof U?p:{iz:{slotId:E.slotId,
slotType:E.slotType,slotPhysicalPosition:E.slotPhysicalPosition,slotEntryTrigger:AH(e,y,E.slotId,E.slotEntryTrigger),slotFulfillmentTriggers:TB(e,y,E.slotId,E.slotFulfillmentTriggers),slotExpirationTriggers:T,Xh:E.Xh,clientMetadata:new EG([new UP(JH(y)),new ul(p.layout),new sP({dD:e.dD(y)})]),adSlotLoggingData:w},n$:p.n$})):e=pME(e,y,T,p,w,C.Cx,N);return e instanceof U?e:e.n$.concat(e.iz)};
ywF=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(g.m(N.value,Sj))return!0;return!1};
NKE=function(e,N,y,w,E,A,T,p,C,r,Y,M){return function(l,F){if(ii(Y)&&Du(Y))a:{var S=TK9(w,y,Y);if(S instanceof U)F=S;else{for(var k=0,X=[],d=[],v=[],V=[],Z=[],n=[],R=new kq({current:null}),O=new NT({current:null}),E9=!1,Jn=[],eM=0,H=[],a=0;a<w.length;a++){var h=w[a],K=g.m(h,lS);if(K){K=m9(K,y,Y);if(K instanceof wX){F=new U(K);break a}var aP=new ch(eM,S),XF=Hr(K.playerVars,K.uu,T,r,aP);eM++;H[a]={renderer:h,data:K,Fi:aP,Gk:XF}}}eM=-1;for(S=0;S<w.length;S++)if(a=w[S],h=g.m(a,F4)){a=Gj1(N,y,h,p);if(a instanceof
U){F=a;break a}a=a(l);X.push(a.Ww);d=[].concat(g.B(a.Tq),g.B(d));v=[].concat(g.B(a.rN),g.B(v));a.V6&&(Jn=[a.V6].concat(g.B(Jn)))}else if(g.m(a,lS))h=H[S],eM=h.data,a=h.Fi,h=h.Gk,K=H[S+1],aP=void 0,K&&(aP=K.Gk),a=Jw3(N,eM.layoutId,eM.XF,y,h,eM.Je,A,a,p(l),O,C.get(eM.XF.externalVideoId),aP,M),k++,X.push(a.Ww),d=[].concat(g.B(a.Tq),g.B(d)),v=[].concat(g.B(a.rN),g.B(v)),E9||(n.push(O),E9=!0),eM=(eM=eM.XF.adPodSkipTarget)&&eM>0?eM:-1;else if(h=g.m(a,pd)){a=R43(e,N,y,h,A,k,p,O,eM);if(a instanceof U){F=
a;break a}a=a(l);X.push(a.Ww);d=[].concat(g.B(a.Tq),g.B(d));v=[].concat(g.B(a.rN),g.B(v));a.V6&&(Jn=[a.V6].concat(g.B(Jn)))}else if(h=g.m(a,Sj)){if(F===void 0){F=new U("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:h});break a}a=Lb9(e,N,y,A,h,R,p,F,k,R_(Y,"supports_multi_step_on_desktop"));if(a instanceof U){F=a;break a}a=a(l);X.push(a.Ww);a.V6&&Jn.push(a.V6);d=[].concat(g.B(a.Tq),g.B(d));v=[].concat(g.B(a.rN),g.B(v));V=[].concat(g.B(a.JO),g.B(V));
Z=[].concat(g.B(a.FX),g.B(Z));n=[R].concat(g.B(n))}else if(a=g.m(a,oQ)){a=sos(e,N,y,A,a,R,p,k);if(a instanceof U){F=a;break a}a=a(l);X.push(a.Ww);a.V6&&Jn.push(a.V6);v=[].concat(g.B(a.rN),g.B(v))}else{F=new U("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={Cm:X,layoutExitSkipTriggers:d,layoutExitUserInputSubmittedTriggers:V,E2:Z,layoutExitMuteTriggers:v,sL:n,n$:Jn}}}else a:if(k=TK9(w,y,Y),k instanceof U)F=k;else{X=0;d=[];v=[];V=[];Z=[];n=[];R=[];O=new kq({current:null});E9=new NT({current:null});
Jn=!1;H=[];eM=-1;S=g.c(w);for(a=S.next();!a.done;a=S.next())if(a=a.value,g.m(a,F4)){a=Gj1(N,y,g.m(a,F4),p);if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);v=[].concat(g.B(a.Tq),g.B(v));V=[].concat(g.B(a.rN),g.B(V));a.V6&&(H=[a.V6].concat(g.B(H)))}else if(g.m(a,lS)){eM=m9(g.m(a,lS),y,Y);if(eM instanceof wX){F=new U(eM);break a}a=new ch(X,k);a=Jw3(N,eM.layoutId,eM.XF,y,Hr(eM.playerVars,eM.uu,T,r,a),eM.Je,A,a,p(l),E9,C.get(eM.XF.externalVideoId),void 0,M);X++;d.push(a.Ww);v=[].concat(g.B(a.Tq),g.B(v));
V=[].concat(g.B(a.rN),g.B(V));Jn||(R.push(E9),Jn=!0);eM=(eM=eM.XF.adPodSkipTarget)&&eM>0?eM:-1}else if(g.m(a,pd)){a=R43(e,N,y,g.m(a,pd),A,X,p,E9,eM);if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);v=[].concat(g.B(a.Tq),g.B(v));V=[].concat(g.B(a.rN),g.B(V));a.V6&&(H=[a.V6].concat(g.B(H)))}else if(g.m(a,Sj)){if(F===void 0){F=new U("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.m(a,Sj)});break a}a=Lb9(e,N,y,A,g.m(a,Sj),O,p,F,X,R_(Y,"supports_multi_step_on_desktop"));
if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);a.V6&&H.push(a.V6);v=[].concat(g.B(a.Tq),g.B(v));V=[].concat(g.B(a.rN),g.B(V));Z=[].concat(g.B(a.JO),g.B(Z));n=[].concat(g.B(a.FX),g.B(n));R=[O].concat(g.B(R))}else if(g.m(a,oQ)){a=sos(e,N,y,A,g.m(a,oQ),O,p,X);if(a instanceof U){F=a;break a}a=a(l);d.push(a.Ww);a.V6&&H.push(a.V6);V=[].concat(g.B(a.rN),g.B(V))}else{F=new U("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={Cm:d,layoutExitSkipTriggers:v,layoutExitUserInputSubmittedTriggers:Z,
E2:n,layoutExitMuteTriggers:V,sL:R,n$:H}}F instanceof U?l=F:(n=l.slotId,k=F.Cm,X=F.layoutExitSkipTriggers,d=F.layoutExitMuteTriggers,v=F.layoutExitUserInputSubmittedTriggers,V=F.sL,l=p(l),Z=E?E.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",n=E?E.layoutId:G5(N.N.get(),Z,n),R={layoutId:n,layoutType:Z,Xh:"core"},l={layout:{layoutId:n,layoutType:Z,tM:new Map,layoutExitNormalTriggers:[new qp(N.J,n)],layoutExitSkipTriggers:X,layoutExitMuteTriggers:d,layoutExitUserInputSubmittedTriggers:v,E2:[],Xh:"core",
clientMetadata:new EG([new Bp(k)].concat(g.B(V))),o9:l(R)},n$:F.n$});return l}};
TK9=function(e,N,y){var w=[];e=g.c(e);for(var E=e.next();!E.done;E=e.next())if(E=E.value,g.m(E,lS)){E=m9(g.m(E,lS),N,y);if(E instanceof wX)return new U(E);w.push(E.Je)}return w};
Cl1=function(e,N,y,w,E,A,T,p){if(!FXJ(y,p===void 0?!1:p))return new U("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:y});var C=xt(y);if(C<=0)return new U("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:y});var r=new kq({current:null}),Y=xfF(e,N,y,r,w,A,T);return ppF(e,w,A,C,E,function(M,l){var F=M.slotId,S=jj(y);M=T(M);var k,X=(k=w$(N,w,y.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?k:
G5(N.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);F={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xh:"core"};k=Y(X,l);var d=A6(k.clientMetadata,"metadata_type_fulfilled_layout");d||YN("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");S=[new Lj(w),new nx(C),new Hp(S),r];d&&S.push(new os(d.layoutType));return{ixP:{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",tM:new Map,layoutExitNormalTriggers:[new qp(N.J,X)],layoutExitSkipTriggers:[new jm(N.J,
l.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new O_(N.J,l.layoutId)],E2:[],Xh:"core",clientMetadata:new EG(S),o9:M(F)},P9s:k}})};
rwP=function(e){if(!b2n(e))return!1;var N=g.m(e.adVideoStart,ps);return N?g.m(e.linearAd,lS)&&wj(N)?!0:(YN("Invalid Sandwich with notify"),!1):!1};
$Ts=function(e){if(e.linearAds==null)return!1;e=g.m(e.adStart,ps);return e?wj(e)?!0:(YN("Invalid LASR with notify"),!1):!1};
YP5=function(e){if(!oCJ(e))return!1;e=g.m(e.adStart,ps);return e?wj(e)?!0:(YN("Invalid LASR with notify"),!1):!1};
Cs=function(e,N,y,w,E,A,T,p,C,r){this.j=e;this.N=N;this.J=y;this.wP=w;this.yT=E;this.K=A;this.zZ=T;this.Gx=p;this.VT=C;this.loadPolicy=r===void 0?1:r};
X8J=function(e,N,y,w,E,A,T,p,C,r){var Y=[];if(N.length===0&&w.length===0&&y.length===0)return Y;N=N.filter(E1);var M=y.filter(Yl9),l=w.filter(E1),F=new Map,S=lX_(N),k=y.some(function(h){var K;return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),X=y.some(function(h){var K;
return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),d=y.some(function(h){var K;
return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_IN_PLAYER"});
y=y.some(function(h){var K,aP;return(h==null?void 0:(K=h.adSlotMetadata)==null?void 0:K.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(h==null?void 0:(aP=h.adSlotMetadata)==null?void 0:aP.slotType)==="SLOT_TYPE_ABOVE_FEED"});
if(k||X||d||y)r=kj5(M,N,p,E,S,e.yT.get(),e.loadPolicy,F,e.wP.get(),e.j.get(),d,T,C,r),r instanceof U?YN(r,void 0,void 0,{contentCpn:E}):Y.push.apply(Y,g.B(r));r=g.c(N);for(y=r.next();!y.done;y=r.next())y=y.value,X=MRM(e,F,y,E,A,T,k,p,S,C,M),X instanceof U?YN(X,void 0,void 0,{renderer:y.renderer,config:y.config.adPlacementConfig,kind:y.config.adPlacementConfig.kind,contentCpn:E,daiEnabled:T}):Y.push.apply(Y,g.B(X));lbF(e.wP.get())||(A=FZ1(e,l,E,p,S,F),Y.push.apply(Y,g.B(A)));if(e.K===null||T&&!p.mB){var v,
V,Z;e=p.Cx&&N.length===1&&((v=N[0].config)==null?void 0:(V=v.adPlacementConfig)==null?void 0:V.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((Z=N[0].renderer)==null?void 0:Z.adBreakServiceRenderer);if(!Y.length&&!e){var n,R,O,E9;YN("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":N.length,contentCpn:E,"first APR kind":(n=N[0])==null?void 0:(R=n.config)==null?void 0:(O=R.adPlacementConfig)==null?void 0:O.kind,renderer:(E9=N[0])==null?void 0:E9.renderer})}return Y}v=
w.filter(E1);Y.push.apply(Y,g.B(uIH(F,v,e.N.get(),e.K,E,k)));if(!Y.length){var Jn,eM,H,a;YN("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":N.length,contentCpn:E,daiEnabled:T.toString(),"first APR kind":(Jn=N[0])==null?void 0:(eM=Jn.config)==null?void 0:(H=eM.adPlacementConfig)==null?void 0:H.kind,renderer:(a=N[0])==null?void 0:a.renderer})}return Y};
FZ1=function(e,N,y,w,E,A){function T(l){return $2(e.yT.get(),l)}
var p=[];N=g.c(N);for(var C=N.next();!C.done;C=N.next()){C=C.value;var r=C.renderer,Y=r.sandwichedLinearAdRenderer,M=r.linearAdSequenceRenderer;Y&&rwP(Y)?(YN("Found AdNotify with SandwichedLinearAdRenderer"),M=g.m(Y.adVideoStart,ps),Y=g.m(Y.linearAd,lS),uS(A,r,C.config.adPlacementConfig.kind),r=void 0,M=Edn((r=M)==null?void 0:r.layout.layoutId,e.N.get(),e.J.get(),C.config.adPlacementConfig,C.adSlotLoggingData,Y,y,w,T,E,e.loadPolicy,e.wP.get(),e.yT.get()),M instanceof U?YN(M):p.push.apply(p,g.B(M))):
M&&(!M.adLayoutMetadata&&$Ts(M)||M.adLayoutMetadata&&YP5(M))&&(YN("Found AdNotify with LinearAdSequenceRenderer"),uS(A,r,C.config.adPlacementConfig.kind),r=void 0,Y=aXP((r=g.m(M.adStart,ps))==null?void 0:r.layout.layoutId,e.N.get(),e.J.get(),C.config.adPlacementConfig,C.adSlotLoggingData,M.linearAds,U_(M.adLayoutMetadata)?M.adLayoutMetadata:void 0,y,w,T,E,e.loadPolicy,e.wP.get()),Y instanceof U?YN(Y):p.push.apply(p,g.B(Y)))}return p};
MRM=function(e,N,y,w,E,A,T,p,C,r,Y){function M(d){return $2(e.yT.get(),d)}
var l=y.renderer,F=y.config.adPlacementConfig,S=F.kind,k=y.adSlotLoggingData,X=p.mB&&S==="AD_PLACEMENT_KIND_START";X=A&&!X;if(l.adsEngagementPanelRenderer!=null)return ZC(N,y.elementId,S,l.adsEngagementPanelRenderer.isContentVideoEngagementPanel,l.adsEngagementPanelRenderer.adVideoId,l.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.adsEngagementPanelRenderer;d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new jA(O),v,V,O.impressionPings,d,l.adsEngagementPanelRenderer.adLayoutLoggingData,Z)}),[];
if(l.adsEngagementPanelLayoutViewModel)return ZC(N,y.elementId,S,l.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,l.adsEngagementPanelLayoutViewModel.adVideoId,l.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.adsEngagementPanelLayoutViewModel;d=$2(e.yT.get(),d);return $F(n,R,"LAYOUT_TYPE_PANEL",new nj(O),v,V,d,l.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,Z)}),[];
if(l.actionCompanionAdRenderer!=null){if(l.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return DfF(e.N.get(),e.K,e.J.get(),l.actionCompanionAdRenderer,F,k,w,M);ZC(N,y.elementId,S,l.actionCompanionAdRenderer.isContentVideoCompanion,l.actionCompanionAdRenderer.adVideoId,l.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.actionCompanionAdRenderer;d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new ZX(O),v,V,O.impressionPings,d,l.actionCompanionAdRenderer.adLayoutLoggingData,Z)})}else if(l.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(l.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return gCn(e.N.get(),e.K,e.J.get(),l.topBannerImageTextIconButtonedLayoutViewModel,F,k,w,M);
ZC(N,y.elementId,S,l.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,l.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,l.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.topBannerImageTextIconButtonedLayoutViewModel;d=$2(e.yT.get(),d);return $F(n,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new xd(O),v,V,d,l.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,Z)})}else if(l.imageCompanionAdRenderer)ZC(N,
y.elementId,S,l.imageCompanionAdRenderer.isContentVideoCompanion,l.imageCompanionAdRenderer.adVideoId,l.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.imageCompanionAdRenderer;
d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new WM(O),v,V,O.impressionPings,d,l.imageCompanionAdRenderer.adLayoutLoggingData,Z)});
else if(l.bannerImageLayoutViewModel)ZC(N,y.elementId,S,l.bannerImageLayoutViewModel.isContentVideoCompanion,l.bannerImageLayoutViewModel.adVideoId,l.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.bannerImageLayoutViewModel;d=$2(e.yT.get(),d);return $F(n,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new OR(O),v,V,d,l.bannerImageLayoutViewModel.adLayoutLoggingData,Z)});
else if(l.shoppingCompanionCarouselRenderer)ZC(N,y.elementId,S,l.shoppingCompanionCarouselRenderer.isContentVideoCompanion,l.shoppingCompanionCarouselRenderer.adVideoId,l.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,F,k,function(d,v,V,Z){var n=e.J.get(),R=d.slotId,O=l.shoppingCompanionCarouselRenderer;d=$2(e.yT.get(),d);return r$(n,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Ro(O),v,V,O.impressionPings,d,l.shoppingCompanionCarouselRenderer.adLayoutLoggingData,Z)});
else if(l.adBreakServiceRenderer){if(!zdM(y))return[];if(S==="AD_PLACEMENT_KIND_PAUSE")return vCF(e.N.get(),F,k,y.renderer.adBreakServiceRenderer,w);if(S!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&S!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return IKJ(e.N.get(),F,k,y.renderer.adBreakServiceRenderer,w,E,A);p.Cx||YN("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:S,adPlacementConfig:F,daiEnabledForContentVideo:String(A),isServedFromLiveInfra:String(p.Cx),clientPlaybackNonce:p.clientPlaybackNonce});
if(S==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!e.zZ)return new U("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!e.VT)return new U("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");e.VT.R0({adPlacementRenderer:y,contentCpn:w,LO:E});E=e.zZ.get().getCurrentTimeSec(1,!1);return SP5(e.N.get(),y.renderer.adBreakServiceRenderer,F,E,w,k,A)}if(!e.Gx)return new U("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
e.Gx.R0({adPlacementRenderer:y,contentCpn:w,LO:E})}else{if(l.clientForecastingAdRenderer)return nd5(e.N.get(),e.J.get(),F,k,l.clientForecastingAdRenderer,w,E,M);if(l.invideoOverlayAdRenderer)return Kb9(e.N.get(),e.J.get(),F,k,l.invideoOverlayAdRenderer,w,E,M);if(l.instreamAdPlayerOverlayRenderer)return mDH(e.N.get(),e.J.get(),F,k,l.instreamAdPlayerOverlayRenderer,w,M);if((l.linearAdSequenceRenderer||l.instreamVideoAdRenderer)&&X)return sRM(e.N.get(),e.J.get(),y,w,M,r,!e.wP.get().C.X().T("html5_override_ad_video_length_killswitch"));
if(l.linearAdSequenceRenderer&&!X){if(T)return[];uS(N,l,S);if(l.linearAdSequenceRenderer.adLayoutMetadata){if(!oCJ(l.linearAdSequenceRenderer))return new U("Received invalid LinearAdSequenceRenderer.")}else if(l.linearAdSequenceRenderer.linearAds==null)return new U("Received invalid LinearAdSequenceRenderer.");if(g.m(l.linearAdSequenceRenderer.adStart,ps)){YN("Found AdNotify in LinearAdSequenceRenderer");y=g.m(l.linearAdSequenceRenderer.adStart,ps);if(!sg9(y))return new U("Invalid AdMessageRenderer.");
A=l.linearAdSequenceRenderer.linearAds;return eaM(e.j.get(),e.N.get(),e.J.get(),e.yT.get(),F,k,y,U_(l.linearAdSequenceRenderer.adLayoutMetadata)?l.linearAdSequenceRenderer.adLayoutMetadata:void 0,A,w,E,p,M,C,e.loadPolicy,e.wP.get())}return AwM(e.N.get(),e.J.get(),F,k,l.linearAdSequenceRenderer.linearAds,U_(l.linearAdSequenceRenderer.adLayoutMetadata)?l.linearAdSequenceRenderer.adLayoutMetadata:void 0,w,E,p,M,C,e.loadPolicy,e.wP.get(),Y)}if(!l.remoteSlotsRenderer||A){if(l.instreamVideoAdRenderer&&
!X){if(T)return[];uS(N,l,S);return CZH(e.N.get(),e.J.get(),F,k,l.instreamVideoAdRenderer,w,E,p,M,C,e.loadPolicy,e.wP.get(),e.yT.get(),Y)}if(l.instreamSurveyAdRenderer)return Cl1(e.N.get(),e.J.get(),l.instreamSurveyAdRenderer,F,k,w,M,R_(e.wP.get(),"supports_multi_step_on_desktop"));if(l.sandwichedLinearAdRenderer!=null)return b2n(l.sandwichedLinearAdRenderer)?g.m(l.sandwichedLinearAdRenderer.adVideoStart,ps)?(YN("Found AdNotify in SandwichedLinearAdRenderer"),y=g.m(l.sandwichedLinearAdRenderer.adVideoStart,
ps),sg9(y)?(A=g.m(l.sandwichedLinearAdRenderer.linearAd,lS))?A5E(y,A,F,e.j.get(),e.N.get(),e.J.get(),e.yT.get(),k,w,E,p,M,C,e.loadPolicy,e.wP.get()):new U("Missing IVAR from Sandwich"):new U("Invalid AdMessageRenderer.")):AwM(e.N.get(),e.J.get(),F,k,[l.sandwichedLinearAdRenderer.adVideoStart,l.sandwichedLinearAdRenderer.linearAd],void 0,w,E,p,M,C,e.loadPolicy,e.wP.get()):new U("Received invalid SandwichedLinearAdRenderer.");if(l.videoAdTrackingRenderer!=null)return p=R_(e.wP.get(),"enable_h5_shorts_ad_terminal_events")&&
p.e_,xD5(e.N.get(),e.J.get(),l.videoAdTrackingRenderer,F,k,w,E,p,M)}}return[]};
YF=function(e,N,y,w,E,A,T,p){g.x.call(this);var C=this;this.N=e;this.K=N;this.p$=w;this.zZ=E;this.wP=A;this.Pk=T;this.xk=p;this.J=null;y.get().addListener(this);this.addOnDisposeCallback(function(){y.Ss()||y.get().removeListener(C)});
w.get().addListener(this);this.addOnDisposeCallback(function(){w.Ss()||w.get().removeListener(C)})};
bxF=function(e,N,y){var w=e.zZ.get().getCurrentTimeSec(1,!1);e.wP.get().C.X().B9()&&sV(e.Pk.get(),"sdai","onopp.1;evt."+y.event+";start."+y.startSecs.toFixed(3)+";d."+y.Vj.toFixed(3));lv(e.N.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var E=e.K.get(),A=N.adPlacementRenderer.renderer.adBreakServiceRenderer,T=N.contentCpn,p=N.adPlacementRenderer.adSlotLoggingData,C=MC(e.wP.get()),r=e.Pk;if(E.wP.get().C.X().experiments.gP("enable_smearing_expansion_dai")){var Y=g.Y2(E.wP.get().C.X().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var M=g.Y2(E.wP.get().C.X().experiments,"min_prefetch_offset_sec_for_livestream_optimization");C={OT:oq1(y),hC:!1,cueProcessedMs:w*1E3};var l=y.startSecs+y.Vj;if(w===0)C.zJ=new de(0,l*1E3);else{M=y.startSecs-M;var F=M-w;C.zJ=F<=0?new de(M*1E3,l*1E3):new de(Math.floor(w+Math.random()*Math.min(F,Y))*1E3,l*1E3)}Y=C}else Y={OT:oq1(y),hC:!1},l=y.startSecs+y.Vj,y.startSecs<=w?C=new de((y.startSecs-4)*1E3,l*1E3):(M=Math.max(0,y.startSecs-w-10),C=new de(Math.floor(w+
Math.random()*(C?w===0?0:Math.min(M,5):M))*1E3,l*1E3)),Y.zJ=C;E=Vw(E,A,T,Y,p,[new XP(y)]);r.get().C.Z6(Y.zJ.start/1E3-w,y.startSecs-w);return[E]})};
lP=function(e){var N,y=(N=A6(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:N.current;if(!y)return null;N=A6(e.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var w=e.layoutId,E=A6(e.clientMetadata,"metadata_type_content_cpn"),A=A6(e.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=A6(e.clientMetadata,"metadata_type_player_overlay_layout_renderer"),p=A6(e.clientMetadata,"metadata_type_player_underlay_renderer"),C=A6(e.clientMetadata,
"metadata_type_ad_placement_config"),r=A6(e.clientMetadata,"metadata_type_video_length_seconds");var Y=eK(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?A6(e.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):eK(e.clientMetadata,"metadata_type_layout_enter_ms")&&eK(e.clientMetadata,"metadata_type_layout_exit_ms")?(A6(e.clientMetadata,"metadata_type_layout_exit_ms")-A6(e.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{rL:w,contentCpn:E,cT:y,FO:N,instreamAdPlayerOverlayRenderer:A,
playerOverlayLayoutRenderer:T,instreamAdPlayerUnderlayRenderer:p,adPlacementConfig:C,videoLengthSeconds:r,wF:Y,inPlayerLayoutId:A6(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:A6(e.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
cw5=function(e,N){return ha9(e,N)};
kQ9=function(e,N){N=ha9(e,N);if(!N)return null;var y;N.wF=(y=A6(e.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:y.adBreakRemainingLengthSeconds;return N};
ha9=function(e,N){var y,w=(y=A6(e.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:y.current;if(!w)return null;y=xu3(e,N);return{wy:ZTM(e,N),adPlacementConfig:A6(e.clientMetadata,"metadata_type_ad_placement_config"),Oh:y,contentCpn:A6(e.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:A6(e.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:A6(e.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:A6(e.clientMetadata,
"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,wF:void 0,cT:w,rL:e.layoutId,videoLengthSeconds:A6(e.clientMetadata,"metadata_type_video_length_seconds")}};
F7=function(e,N,y,w,E,A,T,p,C){g.x.call(this);this.j=e;this.Z=N;this.L=y;this.K=w;this.J=E;this.N=A;this.yT=T;this.wP=p;this.Hk=C;this.l6=!0};
BKP=function(e,N,y){return YR9(e.J.get(),N.contentCpn,N.rL,function(w){return MA5(e.N.get(),w.slotId,y,N.adPlacementConfig,N.rL,$2(e.yT.get(),w))})};
Sw=function(e,N,y,w,E,A,T,p){g.x.call(this);this.N=e;this.J=N;this.K=y;this.wP=w;this.j=E;this.Hk=A;this.zZ=T;this.d7=p};
oc=function(e){g.x.call(this);this.J=e};
lv=function(e,N,y,w){e.J().sX(N,w);y=y();e=e.J();e.H9.RR("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",N,w,y);N=g.c(y);for(y=N.next();!y.done;y=N.next())a:{w=e;y=y.value;w.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",y);w.H9.S1("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",y);try{var E=w.J;if(g.kw(y.slotId))throw new U("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(ca(E,y))throw new U("Duplicate registration for slot.",{slotId:y.slotId,slotEntryTriggerType:y.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!E.V2.Fs.has(y.slotType))throw new U("No fulfillment adapter factory registered for slot of type: "+y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!E.V2.hc.has(y.slotType))throw new U("No SlotAdapterFactory registered for slot of type: "+y.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");ZF(E,"TRIGGER_CATEGORY_SLOT_ENTRY",y.slotEntryTrigger?[y.slotEntryTrigger]:[]);ZF(E,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
y.slotFulfillmentTriggers);ZF(E,"TRIGGER_CATEGORY_SLOT_EXPIRATION",y.slotExpirationTriggers);var A=w.J,T=y.slotType+"_"+y.slotPhysicalPosition,p=Vk(A,T);if(ca(A,y))throw new U("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");p.set(y.slotId,new VPM(y));A.J.set(T,p)}catch(E9){E9 instanceof U&&E9.ol?(w.H9.a8("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",E9.ol,y),YN(E9,y,void 0,void 0,E9.S$)):(w.H9.a8("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
y),YN(E9,y));break a}ca(w.J,y).Z=!0;try{var C=w.J,r=ca(C,y),Y=y.slotEntryTrigger,M=C.V2.ym.get(Y.triggerType);M&&(M.jw("TRIGGER_CATEGORY_SLOT_ENTRY",Y,y,null),r.qg.set(Y.triggerId,M));for(var l=g.c(y.slotFulfillmentTriggers),F=l.next();!F.done;F=l.next()){var S=F.value,k=C.V2.ym.get(S.triggerType);k&&(k.jw("TRIGGER_CATEGORY_SLOT_FULFILLMENT",S,y,null),r.Ng.set(S.triggerId,k))}for(var X=g.c(y.slotExpirationTriggers),d=X.next();!d.done;d=X.next()){var v=d.value,V=C.V2.ym.get(v.triggerType);V&&(V.jw("TRIGGER_CATEGORY_SLOT_EXPIRATION",
v,y,null),r.D.set(v.triggerId,V))}var Z=C.V2.Fs.get(y.slotType).get().build(C.K,y);r.G=Z;var n=C.V2.hc.get(y.slotType).get().build(C.L,y);n.init();r.N=n}catch(E9){E9 instanceof U&&E9.ol?(w.H9.a8("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",E9.ol,y),YN(E9,y,void 0,void 0,E9.S$)):(w.H9.a8("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",y),YN(E9,y));o_(w,y,!0);break a}w.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",y);w.J.JT(y);for(var R=g.c(w.N),O=R.next();!O.done;O=
R.next())O.value.JT(y);X2(w,y)}};
bP=function(e,N,y,w,E){g.x.call(this);var A=this;this.N=e;this.K=N;this.oJ=y;this.context=E;this.J=new Map;w.get().addListener(this);this.addOnDisposeCallback(function(){w.Ss()||w.get().removeListener(A)})};
k$s=function(e,N){var y=0x8000000000000;var w=0;for(var E=g.c(N.slotFulfillmentTriggers),A=E.next();!A.done;A=E.next())A=A.value,A instanceof VV?(y=Math.min(y,A.J.start),w=Math.max(w,A.J.end)):YN("Found unexpected fulfillment trigger for throttled slot.",N,null,{fulfillmentTrigger:A});w=new de(y,w);y="throttledadcuerange:"+N.slotId;e.J.set(y,N);e.oJ.get().addCueRange(y,w.start,w.end,!1,e);k6(e.context.wP.get())&&(N=w.start,w=w.end,E={},e.context.OP.g4("tcrr",(E.cid=y,E.sm=N,E.em=w,E)))};
hH=function(){g.x.apply(this,arguments);this.l6=!0;this.R$=new Map;this.J=new Map};
cu=function(e,N){e=g.c(e.R$.values());for(var y=e.next();!y.done;y=e.next())if(y.value.layoutId===N)return!0;return!1};
kF=function(e,N){e=g.c(e.J.values());for(var y=e.next();!y.done;y=e.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())if(w=w.value,w.layoutId===N)return w}YN("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.kw(N)),layoutId:N})};
XpH=function(){this.J=new Map};
Pls=function(e,N){this.callback=e;this.slot=N};
Bu=function(){};
dTE=function(e,N,y){this.callback=e;this.slot=N;this.zZ=y};
IbM=function(e,N,y){this.callback=e;this.slot=N;this.zZ=y;this.N=!1;this.J=0};
vqM=function(e,N,y){this.callback=e;this.slot=N;this.zZ=y};
X7=function(e){this.zZ=e};
Pu=function(e){g.x.call(this);this.ri=e;this.Zg=new Map};
d$=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.trigger;A instanceof O_&&A.triggeringLayoutId===N&&y.push(E)}y.length?iF(e.ri(),y):YN("Survey is submitted but no registered triggers can be activated.")};
Ic=function(e,N,y){Pu.call(this,e);var w=this;this.wP=y;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(w)})};
vu=function(e){g.x.call(this);this.J=e;this.l6=!0;this.Zg=new Map;this.L=new Set;this.K=new Set;this.j=new Set;this.Z=new Set;this.N=new Set};
zB=function(e){g.x.call(this);this.J=e;this.Zg=new Map};
iP=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next())E=E.value,E.trigger.J===N.layoutId&&y.push(E);y.length&&iF(e.J(),y)};
Dz=function(e,N,y){g.x.call(this);var w=this;this.J=e;this.context=y;this.Zg=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(w)})};
g$=function(e,N,y,w,E){g.x.call(this);var A=this;this.N=e;this.oJ=N;this.zZ=y;this.Hk=w;this.context=E;this.l6=!0;this.Zg=new Map;this.J=new Set;y.get().addListener(this);this.addOnDisposeCallback(function(){y.Ss()||y.get().removeListener(A)})};
zan=function(e,N,y,w,E,A,T,p,C,r){if(Mb(e.Hk.get(),1).clientPlaybackNonce!==C)throw new U("Cannot register CueRange-based trigger for different content CPN",{trigger:y});e.Zg.set(y.triggerId,{md:new GK(N,y,w,E),cueRangeId:A});e.oJ.get().addCueRange(A,T,p,r,e);k6(e.context.wP.get())&&(C={},e.context.OP.g4("crr",(C.ca=N,C.tt=y.triggerType,C.st=w.slotType,C.lt=E==null?void 0:E.layoutType,C.cid=A,C.sm=T,C.em=p,C)))};
ix_=function(e,N){e=g.c(e.Zg.entries());for(var y=e.next();!y.done;y=e.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;if(N===w.cueRangeId)return y}return""};
V8=function(e,N){g.x.call(this);var y=this;this.j=e;this.N=new Map;this.K=new Map;this.J=null;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(y)});
var w;this.J=((w=N.get().nk)==null?void 0:w.slotId)||null};
DTJ=function(e,N){var y=[];e=g.c(e.values());for(var w=e.next();!w.done;w=e.next())w=w.value,w.slot.slotId===N&&y.push(w);return y};
fs=function(e){g.x.call(this);this.J=e;this.l6=!0;this.Zg=new Map};
QO=function(e,N,y){N=N.layoutId;for(var w=[],E=g.c(e.Zg.values()),A=E.next();!A.done;A=E.next())if(A=A.value,A.trigger instanceof qp){var T;if(T=A.trigger.layoutId===N){T=y;var p=diM.get(A.category);T=p?p===T:!1}T&&w.push(A)}w.length&&iF(e.J(),w)};
tH=function(e){g.x.call(this);this.J=e;this.l6=!0;this.Zg=new Map};
uP=function(e,N,y,w,E){g.x.call(this);var A=this;this.L=e;this.p$=N;this.zZ=y;this.Pk=w;this.J=null;this.l6=!0;this.Zg=new Map;this.K=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.Ss()||N.get().removeListener(A)});
E.get().addListener(this);this.addOnDisposeCallback(function(){E.Ss()||E.get().removeListener(A)})};
VR0=function(e){e.J&&(e.N&&(e.N.stop(),e.N.start()),gq5(e,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))};
gq5=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next())E=E.value,E.trigger.triggerType===N&&y.push(E);y.length>0&&iF(e.L(),y)};
qC=function(e,N,y,w,E){E=E===void 0?!0:E;for(var A=[],T=g.c(e.Zg.values()),p=T.next();!p.done;p=T.next()){p=p.value;var C=p.trigger;if(C.triggerType===N){if(C instanceof iR||C instanceof Dp||C instanceof ft){if(E&&C.breakDurationMs!==y)continue;if(!E&&C.breakDurationMs===y)continue;if(w.has(C.triggerId))continue}A.push(p)}}A.length>0&&iF(e.L(),A)};
fb9=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(!e.prefetchModeConfig||!e.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;e=Number(e.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(e)||e<=0?0:Math.floor(Math.random()*e)};
tRs=function(e){e=e.adPlacementRenderer.config.adPlacementConfig;if(e.prefetchModeConfig&&e.prefetchModeConfig.cacheFetchRefreshDurationMs&&(e=Number(e.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(e)||e<=0)))return e};
Zz=function(e){e.J=null;e.Zg.clear();e.K.clear();e.N&&e.N.stop();e.j&&e.j.stop()};
xF=function(e){g.x.call(this);this.K=e;this.l6=!0;this.Zg=new Map;this.J=new Map;this.N=new Map};
uP_=function(e,N){var y=[];if(N=e.J.get(N.layoutId)){N=g.c(N);for(var w=N.next();!w.done;w=N.next())(w=e.N.get(w.value.triggerId))&&y.push(w)}return y};
jw=function(e){g.x.call(this);this.J=e;this.Zg=new Map};
qP3=function(e,N){for(var y=[],w=g.c(e.Zg.values()),E=w.next();!E.done;E=w.next())E=E.value,E.trigger instanceof hc&&E.trigger.slotId===N&&y.push(E);y.length>=1&&iF(e.J(),y)};
Zx0=function(e,N){var y={slotId:F1(N,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Xh:"surface",clientMetadata:new EG([])},w=Object,E=w.assign;N=G5(N,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",y.slotId);N={layoutId:N,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",tM:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"surface",
clientMetadata:new EG([]),o9:hkJ(!1,y.slotId,y.slotType,y.slotPhysicalPosition,y.Xh,y.slotEntryTrigger,y.slotFulfillmentTriggers,y.slotExpirationTriggers,N,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return E.call(w,{},e,{GZ9:!0,slot:y,layout:N})};
dfJ=function(e,N,y,w){var E=e.kind;w=w?!1:!e.hideCueRangeMarker;switch(E){case "AD_PLACEMENT_KIND_START":return w={OT:new de(-0x8000000000000,-0x8000000000000),hC:w},y!=null&&(w.zJ=new de(-0x8000000000000,-0x8000000000000)),w;case "AD_PLACEMENT_KIND_END":return w={OT:new de(0x7ffffffffffff,0x8000000000000),hC:w},y!=null&&(w.zJ=new de(Math.max(0,N-y),0x8000000000000)),w;case "AD_PLACEMENT_KIND_MILLISECONDS":E=e.adTimeOffset;E.offsetStartMilliseconds||YN("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
E.offsetEndMilliseconds||YN("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");e=Number(E.offsetStartMilliseconds);E=Number(E.offsetEndMilliseconds);E===-1&&(E=N);if(Number.isNaN(e)||Number.isNaN(E)||e>E)return new U("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:e,offsetEndMs:E},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",E===N&&e-500<=E);w={OT:new de(e,E),hC:w};if(y!=null){e=Math.max(0,e-y);if(e===E)return w;w.zJ=new de(e,E)}return w;
default:return new U("AdPlacementKind not supported in convertToRange.",{kind:E,adPlacementConfig:e})}};
oq1=function(e){var N=e.startSecs*1E3;return new de(N,N+e.Vj*1E3)};
xT_=function(e){if(!e||!e.adPlacements&&!e.adSlots)return!1;for(var N=g.c(e.adPlacements||[]),y=N.next();!y.done;y=N.next())if(y=y.value)if(y=y.adPlacementRenderer,y!=null&&(y.config&&y.config.adPlacementConfig&&y.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;e=g.c(e.adSlots||[]);for(N=e.next();!N.done;N=e.next()){var w=y=void 0;if(((y=g.m(N.value,gj))==null?void 0:(w=y.adSlotMetadata)==null?void 0:w.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
ns=function(e){this.wP=e;this.N=new Map;this.J=new Map;this.K=new Map};
F1=function(e,N){if(Q8(e.wP.get())){var y=e.N.get(N)||0;y++;e.N.set(N,y);return N+"_"+y}return g.PX(16)};
G5=function(e,N,y){if(Q8(e.wP.get())){var w=e.J.get(N)||0;w++;e.J.set(N,w);return y+"_"+N+"_"+w}return g.PX(16)};
aQ=function(e,N){if(Q8(e.wP.get())){var y=e.K.get(N)||0;y++;e.K.set(N,y);return N+"_"+y}return g.PX(16)};
js5=function(e){var N=[new FP(e.rL),new hw(e.cT),new Lj(e.adPlacementConfig),new Pp(e.videoLengthSeconds),new jR(e.wF)];e.instreamAdPlayerOverlayRenderer&&N.push(new EP(e.instreamAdPlayerOverlayRenderer));e.playerOverlayLayoutRenderer&&N.push(new Aw(e.playerOverlayLayoutRenderer));e.FO&&N.push(new NT(e.FO));return N};
nq5=function(e,N,y,w,E,A){e=y.inPlayerLayoutId?y.inPlayerLayoutId:G5(A,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);var T,p,C=y.instreamAdPlayerOverlayRenderer?(T=y.instreamAdPlayerOverlayRenderer)==null?void 0:T.adLayoutLoggingData:(p=y.playerOverlayLayoutRenderer)==null?void 0:p.adLayoutLoggingData;T={layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xh:N};return{layoutId:e,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",tM:new Map,layoutExitNormalTriggers:[new vh(function(r){return aQ(A,
r)},y.rL)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:N,clientMetadata:w,o9:E(T),adLayoutLoggingData:C}};
ml=function(e,N){var y=this;this.N=e;this.wP=N;this.J=function(w){return aQ(y.N.get(),w)}};
MA5=function(e,N,y,w,E,A){y=new EG([new TQ(y),new Lj(w)]);N=G5(e.N.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",N);w={layoutId:N,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xh:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",tM:new Map,layoutExitNormalTriggers:[new vh(function(T){return aQ(e.N.get(),T)},E)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:y,o9:A(w),adLayoutLoggingData:void 0}};
KN=function(e,N,y,w,E){var A=js5(w);return nq5(N,y,w,new EG(A),E,e.N.get())};
QsF=function(e,N,y,w,E){var A=js5(w);A.push(new Gj(w.wy));A.push(new UR(w.Oh));return nq5(N,y,w,new EG(A),E,e.N.get())};
r$=function(e,N,y,w,E,A,T,p,C,r){N=G5(e.N.get(),y,N);var Y={layoutId:N,layoutType:y,Xh:"core"},M=new Map;T&&M.set("impression",T);T=[new tc(e.J,E,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];r&&T.push(new IX(e.J,r,["normal"]));return{layoutId:N,layoutType:y,tM:M,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([w,new Lj(A),new FP(E)]),o9:p(Y),adLayoutLoggingData:C}};
$F=function(e,N,y,w,E,A,T,p,C){N=G5(e.N.get(),y,N);var r={layoutId:N,layoutType:y,Xh:"core"},Y=[new tc(e.J,E,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];C&&Y.push(new IX(e.J,C,["normal"]));return{layoutId:N,layoutType:y,tM:new Map,layoutExitNormalTriggers:Y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([w,new Lj(A),new FP(E)]),o9:T(r),adLayoutLoggingData:p}};
NC=function(e,N,y){var w=[];w.push(new uR(e.J,y));N&&w.push(N);return w};
ew=function(e,N,y,w,E,A,T){var p={layoutId:N,layoutType:y,Xh:"core"};return{layoutId:N,layoutType:y,tM:new Map,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[new Bh(e.J,N)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new Kj(w),new Lj(E)]),o9:A(p),adLayoutLoggingData:w.adLayoutLoggingData}};
nN=function(e,N,y,w,E,A,T,p){var C={layoutId:N,layoutType:A,Xh:"core"};return{layoutId:N,layoutType:A,tM:new Map,layoutExitNormalTriggers:[new vh(e.J,y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new Lj(w)].concat(g.B(T))),o9:E(C),adLayoutLoggingData:p}};
w$=function(e,N,y,w){if(e.wP.get().HE(N.kind==="AD_PLACEMENT_KIND_START"))if(y===void 0)YN("Expected SSAP layout ID in renderer",void 0,void 0,{caller:w});else return y};
Wb5=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){e=y8(e,N,y,E,A,T,p,C,M,w$(e,y,w.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),l);N=e.sL;y=new SR(e.wV);w=e.layoutExitSkipTriggers;r>0&&(N.push(y),N.push(new eR(r)),w=[]);N.push(new ao(Y));return{Ww:{layoutId:e.layoutId,layoutType:e.layoutType,tM:e.tM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:e.Xh,clientMetadata:new EG(N),o9:e.o9,adLayoutLoggingData:e.adLayoutLoggingData},
Tq:w,rN:e.layoutExitMuteTriggers,JO:e.layoutExitUserInputSubmittedTriggers,FX:e.E2,V6:e.V6}};
UDJ=function(e,N,y,w,E,A,T,p,C,r){N=y8(e,N,y,w,A,new Map,T,function(Y){return p(Y,C)},void 0,w$(e,y,E.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
e=new O_(e.J,N.wV);y=new SR(N.wV);r=new ao(r);return{Ww:{layoutId:N.layoutId,layoutType:N.layoutType,tM:N.tM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:N.Xh,clientMetadata:new EG([].concat(g.B(N.sL),[y,r])),o9:N.o9,adLayoutLoggingData:N.adLayoutLoggingData},Tq:N.layoutExitSkipTriggers,rN:N.layoutExitMuteTriggers,JO:[].concat(g.B(N.layoutExitUserInputSubmittedTriggers),[e]),FX:N.E2,V6:N.V6}};
y8=function(e,N,y,w,E,A,T,p,C,r,Y){N=r!=null?r:G5(e.N.get(),"LAYOUT_TYPE_MEDIA_BREAK",N);r={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xh:"adapter"};p=p(N);var M=A6(p.clientMetadata,"metadata_type_fulfilled_layout");M||YN("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var l=M?M.layoutId:"";y=[new Lj(y),new nx(w),new Hp(E)];M&&y.push(new os(M.layoutType));Y&&y.push(new Db(Y));return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
tM:A,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new jm(e.J,l)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"adapter",sL:y,o9:T(r),adLayoutLoggingData:C,V6:p,wV:l}};
r5E=function(e,N,y,w,E,A,T,p,C,r,Y){e=mTP(e,N,"core",y,w,E,A,T,p,C,r,void 0,Y);return{layoutId:e.layoutId,layoutType:e.layoutType,tM:e.tM,layoutExitNormalTriggers:e.layoutExitNormalTriggers,layoutExitSkipTriggers:e.layoutExitSkipTriggers,layoutExitMuteTriggers:e.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:e.layoutExitUserInputSubmittedTriggers,E2:e.E2,Xh:e.Xh,clientMetadata:new EG(e.dY),o9:e.o9,adLayoutLoggingData:e.adLayoutLoggingData}};
Jw3=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){N=mTP(e,N,"adapter",y,w,E,A,T,p,C,Y,M,l);w=N.layoutExitSkipTriggers;E=N.dY;y.adPodSkipTarget&&y.adPodSkipTarget>0&&(E.push(r),E.push(new eR(y.adPodSkipTarget)),w=[]);E.push(new ao(p.adPodIndex));y.isCritical&&(w=[new IX(e.J,N.layoutId,["error"])].concat(g.B(w)));return{Ww:{layoutId:N.layoutId,layoutType:N.layoutType,tM:N.tM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:N.Xh,clientMetadata:new EG(E),
o9:N.o9,adLayoutLoggingData:N.adLayoutLoggingData},Tq:w,rN:N.layoutExitMuteTriggers,JO:N.layoutExitUserInputSubmittedTriggers,FX:N.E2}};
mTP=function(e,N,y,w,E,A,T,p,C,r,Y,M,l){var F={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",Xh:y};E=[new Lj(E),new sR(C),new yS(w.externalVideoId),new wK(p),new Hp({impressionCommands:w.impressionCommands,abandonCommands:w.onAbandonCommands,completeCommands:w.completeCommands,progressCommands:w.adVideoProgressCommands}),new dK(A),new cp({current:null}),new Pp(T)];(A=w.playerOverlay.instreamAdPlayerOverlayRenderer)&&E.push(new EP(A));(T=w.playerOverlay.playerOverlayLayoutRenderer)&&E.push(new Aw(T));
M&&E.push(new Is(M));(M=w.playerUnderlay)&&E.push(new TQ(M));p=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");M=(M=A?A.elementId:T==null?void 0:T.layoutId)?M:G5(e.N.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);E.push(new SR(M));E.push(new bl(p));E.push(new Db(C.adPodIndex));w.adNextParams&&E.push(new Qg(w.adNextParams));w.shrunkenPlayerBytesConfig&&E.push(new Cx(w.shrunkenPlayerBytesConfig));w.clickthroughEndpoint&&E.push(new HM(w.clickthroughEndpoint));w.legacyInfoCardVastExtension&&E.push(new QS(w.legacyInfoCardVastExtension));
w.sodarExtensionData&&E.push(new vp(w.sodarExtensionData));Y&&E.push(new xq(Y));E.push(new OP(Pt(w.pings)));C=dF(w.pings);if(l){a:{l=g.c(l);for(Y=l.next();!Y.done;Y=l.next())if(Y=Y.value,Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(A=g.m(Y.fulfillmentContent.fulfilledLayout,Br))&&(A=g.m(A.renderingContent,cr))&&A.associatedPlayerBytesLayoutId===N){l=Y;break a}l=void 0}l&&E.push(new Jw(l))}return{layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",tM:C,layoutExitNormalTriggers:[new qp(e.J,N)],layoutExitSkipTriggers:w.skipOffsetMilliseconds?
[new jm(e.J,M)]:[],layoutExitMuteTriggers:[new jm(e.J,M)],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:y,dY:E,o9:r(F),adLayoutLoggingData:w.adLayoutLoggingData}};
e49=function(e,N,y,w,E,A,T,p,C){w.every(function(Y){return Nx(Y,[],["LAYOUT_TYPE_MEDIA"])})||YN("Unexpect subLayout type for DAI composite layout");
N=G5(e.N.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N);var r={layoutId:N,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xh:"core"};return{layoutId:N,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",tM:new Map,layoutExitNormalTriggers:[new zK(e.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],E2:[],Xh:"core",clientMetadata:new EG([new zQ(y),new il(p),new Bp(w),new Lj(E),new tw(A),new gK({}),new GQ(C)]),o9:T(r)}};
G$0=function(e){return e!=null};
Hu=function(e,N,y){var w=this;this.N=e;this.K=N;this.wP=y;this.J=function(E){return aQ(w.N.get(),E)}};
SP5=function(e,N,y,w,E,A,T){if(!y.prefetchModeConfig)return new U("AdPlacementConfig for Live Prefetch is missing prefetch_config");y=y.prefetchModeConfig;w*=1E3;var p=[];if(!y.breakLengthMs)return new U("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var C=g.c(y.breakLengthMs),r=C.next();!r.done;r=C.next())if(r=r.value,Number(r)>0){var Y=w+Number(y.startTimeOffsetMs),M=Y+Number(y.cacheFetchSmearingDurationMs);r={OT:new de(M,M+Number(r)),hC:!1,zJ:new de(Math.floor(Y+Math.random()*
Number(y.cacheFetchSmearingDurationMs)),M),cueProcessedMs:w?w:Y};Y=[];Y.push(new as({}));M=[];M.push(new xA(e.J));M.push(new jgH(e.J));T&&Y.push(new gK({}));p.push(Vw(e,N,E,r,A,Y,M))}return p};
Vw=function(e,N,y,w,E,A,T){A=A===void 0?[]:A;T=T===void 0?[]:T;var p=F1(e.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),C=[];T=g.c(T);for(var r=T.next();!r.done;r=T.next())C.push(r.value);w.zJ&&w.zJ.start!==w.OT.start&&C.push(new VV(e.J,y,new de(w.zJ.start,w.OT.start),!1));C.push(new VV(e.J,y,new de(w.OT.start,w.OT.end),w.hC));w={getAdBreakUrl:N.getAdBreakUrl,MY:w.OT.start,VH:w.OT.end,cueProcessedMs:w.cueProcessedMs};N=new Hh(e.J,p);A=[new qT(w)].concat(g.B(A));return{slotId:p,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",
slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:C,slotExpirationTriggers:[new Zp(e.J,y),new QV(e.J,p),new mz(e.J,p)],Xh:"core",clientMetadata:new EG(A),adSlotLoggingData:E}};
KZ9=function(e,N,y){var w=[];y=g.c(y);for(var E=y.next();!E.done;E=y.next())w.push(Hx_(e,N,E.value));return w};
Hx_=function(e,N,y){return y.triggeringSlotId!=null&&y.triggeringSlotId===e?y.clone(N):y};
Z29=function(e,N,y,w,E){return WZ5(e,N,y,w,E)};
Ojn=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");return WZ5(e,E,N,y,w)};
WZ5=function(e,N,y,w,E){var A=new dy(e.J,y),T=[new nt(e.J,N)];e=[new QV(e.J,N),new Zp(e.J,w)];return{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(E({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e},y))]),adSlotLoggingData:void 0}};
ppF=function(e,N,y,w,E,A){var T=F1(e.N.get(),"SLOT_TYPE_PLAYER_BYTES"),p=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER"),C=G5(e.N.get(),"LAYOUT_TYPE_SURVEY",p);w=Ks(e,N,y,w);var r=[new nt(e.J,T)];y=[new QV(e.J,T),new Zp(e.J,y),new Bh(e.J,C)];if(w instanceof U)return w;p=A({slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:r,slotExpirationTriggers:y},{slotId:p,layoutId:C});A=p.ixP;p=p.P9s;return[{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:AH(e,N,T,w),slotFulfillmentTriggers:TB(e,N,T,r),slotExpirationTriggers:y,Xh:"core",clientMetadata:new EG([new ul(A),new UP(JH(N)),new sP({dD:e.dD(N)})]),adSlotLoggingData:E},p]};
JH=function(e){return e.kind==="AD_PLACEMENT_KIND_START"};
$D1=function(e,N,y,w,E){E=E?E:F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");y=new dy(e.J,y);var A=[new nt(e.J,E)];e=[new Zp(e.J,N),new QV(e.J,E)];return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e}))])}};
YR9=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_PLAYER_UNDERLAY");y=new dy(e.J,y);var A=[new nt(e.J,E)];e=[new Zp(e.J,N),new QV(e.J,E)];return{slotId:E,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:e}))])}};
wMF=function(e,N,y,w,E,A,T){var p=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER"),C=G5(e.N.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",p);w=Oxs(e,w,A,T,C);if(w instanceof U)return w;T=[new nt(e.J,p)];E=[new Zp(e.J,A),new nt(e.J,E),new Wh(e.J,E)];y=$2(y,{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:T,slotExpirationTriggers:E});e=e.K.get();A={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xh:"core"};N={layoutId:C,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
tM:new Map,layoutExitNormalTriggers:[new RK9(e.J,C,N.durationMs)],layoutExitSkipTriggers:[new UYH(e.J,C,N.durationMs)],E2:[new GHM(e.J,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xh:"core",clientMetadata:new EG([new mZ(N)]),o9:y(A)};return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:T,slotExpirationTriggers:E,clientMetadata:new EG([new ul(N)])}};
Hjn=function(e,N,y,w,E,A){N=Ks(e,N,y,w);if(N instanceof U)return N;var T=N instanceof VV?new KoM(e.J,y,N.J):null;w=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");var p=[new nt(e.J,w)];e=[new Zp(e.J,y),new QV(e.J,w)];A=A({slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:e},T);return A instanceof wX?new U(A):{slotId:w,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:p,slotExpirationTriggers:e,
Xh:"core",clientMetadata:new EG([new ul(A)]),adSlotLoggingData:E}};
Qo5=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER"),A=new kA(e.J,N),T=[new Kt(e.J,E)];e=[new Zp(e.J,N),new QV(e.J,E)];return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e}))]),adSlotLoggingData:y}};
H2_=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");y=new dy(e.J,y);var A=[new nt(e.J,E)],T=[new QV(e.J,E),new Zp(e.J,N)];A={slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:A,slotExpirationTriggers:T};return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:[new nt(e.J,E)],slotExpirationTriggers:[new Zp(e.J,N),new QV(e.J,E)],Xh:"core",clientMetadata:new EG([new ul(w(A))])}};
nC9=function(e,N,y,w,E){var A=F1(e.N.get(),"SLOT_TYPE_IN_PLAYER");y=new Ph(e.J,w,y);w=[new nt(e.J,A)];e=[new Zp(e.J,N)];return{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:w,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(E({slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:y,slotFulfillmentTriggers:w,slotExpirationTriggers:e}))])}};
tyJ=function(e,N,y,w,E,A){var T=F1(e.N.get(),N);return Wu(e,T,N,new dy(e.J,w),[new Zp(e.J,y),new QV(e.J,T),new IX(e.J,w,["error"])],E,A)};
fK3=function(e,N,y,w,E,A,T){var p=F1(e.N.get(),N);return Wu(e,p,N,new IX(e.J,E,["normal"]),[new Zp(e.J,y),new QV(e.J,p),new IX(e.J,w,["error"])],A,T)};
i2H=function(e,N,y,w,E){var A=F1(e.N.get(),N);return Wu(e,A,N,new kA(e.J,y),[new Zp(e.J,y),new QV(e.J,A)],w,E)};
ZjH=function(e,N,y,w,E){y=y?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var A=F1(e.N.get(),y);N=new kA(e.J,N);var T=[new nt(e.J,A)];e=[new QV(e.J,A)];return{slotId:A,slotType:y,slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(E({slotId:A,slotType:y,slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:N,slotFulfillmentTriggers:T,slotExpirationTriggers:e}))]),adSlotLoggingData:w}};
Uf5=function(e,N,y,w){var E=F1(e.N.get(),"SLOT_TYPE_PLAYER_BYTES"),A=new gy(e.J),T=[new Kt(e.J,E)];e=[new Zp(e.J,N)];return{slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(w({slotId:E,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:e})),new gK({})]),adSlotLoggingData:y}};
wp1=function(e,N){return lbF(e.wP.get())?new IX(e.J,N,["normal","error","skipped"]):new IX(e.J,N,["normal"])};
J5s=function(e,N,y,w,E){N=wp1(e,N);e=EU(e,N,y);E=E({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:e.slotExpirationTriggers,Xh:e.Xh});return E instanceof U?E:{iz:Object.assign({},e,{clientMetadata:new EG([new ul(E.layout)]),adSlotLoggingData:w}),n$:E.n$}};
pME=function(e,N,y,w,E,A,T){y=EqH(e,N,y,w);if(y instanceof U)return y;T=T({slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:y.slotEntryTrigger,slotFulfillmentTriggers:y.slotFulfillmentTriggers,slotExpirationTriggers:y.slotExpirationTriggers,Xh:y.Xh});if(T instanceof U)return T;w=[new UP(JH(N)),new ul(T.layout),new sP({dD:e.dD(N)})];A&&w.push(new Kx({}));return{iz:{slotId:y.slotId,slotType:y.slotType,slotPhysicalPosition:y.slotPhysicalPosition,slotEntryTrigger:AH(e,
N,y.slotId,y.slotEntryTrigger),slotFulfillmentTriggers:TB(e,N,y.slotId,y.slotFulfillmentTriggers),slotExpirationTriggers:y.slotExpirationTriggers,Xh:y.Xh,clientMetadata:new EG(w),adSlotLoggingData:E},n$:T.n$}};
AH=function(e,N,y,w){return e.wP.get().HE(JH(N))?new hc(e.J,y):w};
TB=function(e,N,y,w){return e.wP.get().HE(JH(N))?[new Kt(e.J,y)]:w};
EU=function(e,N,y){var w=F1(e.N.get(),"SLOT_TYPE_PLAYER_BYTES"),E=[new nt(e.J,w)];e=[new QV(e.J,w),new Zp(e.J,y)];return{slotId:w,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:E,slotExpirationTriggers:e,Xh:"core"}};
EqH=function(e,N,y,w){N=Ks(e,N,y,w);return N instanceof U?N:EU(e,N,y)};
jon=function(e,N,y,w,E,A){var T=F1(e.N.get(),"SLOT_TYPE_FORECASTING");N=Ks(e,N,y,w);if(N instanceof U)return N;w=[new nt(e.J,T)];e=[new QV(e.J,T),new Zp(e.J,y)];return{slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:w,slotExpirationTriggers:e,Xh:"core",clientMetadata:new EG([new ul(A({slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:N,slotFulfillmentTriggers:w,slotExpirationTriggers:e}))]),adSlotLoggingData:E}};
RaF=function(e,N,y,w,E){var A=!N.hideCueRangeMarker;switch(N.kind){case "AD_PLACEMENT_KIND_START":return new kA(e.J,y);case "AD_PLACEMENT_KIND_MILLISECONDS":return e=dfJ(N,w),e instanceof U?e:E(e.OT,A);case "AD_PLACEMENT_KIND_END":return new Xv(e.J,y,A);default:return new U("Cannot construct entry trigger",{kind:N.kind})}};
Oxs=function(e,N,y,w,E){return RaF(e,N,y,w,function(A,T){return new HVE(e.J,y,A,T,E)})};
Ks=function(e,N,y,w){return RaF(e,N,y,w,function(E,A){return new VV(e.J,y,E,A)})};
Wu=function(e,N,y,w,E,A,T){e=[new Kt(e.J,N)];return{slotId:N,slotType:y,slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:e,slotExpirationTriggers:E,Xh:"core",clientMetadata:new EG([new ul(T({slotId:N,slotType:y,slotPhysicalPosition:1,Xh:"core",slotEntryTrigger:w,slotFulfillmentTriggers:e,slotExpirationTriggers:E}))]),adSlotLoggingData:A}};
OU=function(e,N){g.x.call(this);this.wP=e;this.J=N;this.eventCount=0};
Rc=function(e,N,y,w){OU.call(this,e,N);this.wP=e;this.Hk=y;this.context=w};
GB=function(){this.J=new Map};
sU=function(e,N){var y=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=e;this.result=N.result;this.error=N.error;N.promise&&N.promise.then(function(w){UU(y,w)},function(w){Ls(y,w)})};
Nc=function(e){if(ac(e)){if(e instanceof sU)return e;if(eq(e))return new sU("wait",{promise:e})}return new sU("done",{result:e})};
yA=function(e){return new sU("fail",{error:e})};
wQ=function(e){try{return Nc(e())}catch(N){return yA(N)}};
A$=function(e,N){var y=new sU("wait",{});e.onSuccess.push(function(w){try{var E=N(w);UU(y,E)}catch(A){Ls(y,A)}});
e.onFailure.push(function(w){Ls(y,w)});
Ej(e);return y};
Tm=function(e,N){var y=new sU("wait",{});e.onSuccess.push(function(w){UU(y,w)});
e.onFailure.push(function(w){try{var E=N(w);UU(y,E)}catch(A){Ls(y,A)}});
Ej(e);return y};
UU=function(e,N){if(ac(N)){if(eq(N)){N.then(function(y){UU(e,y)},function(y){Ls(e,y)});
return}if(N instanceof sU){A$(N,function(y){UU(e,y)});
Tm(N,function(y){Ls(e,y)});
return}}e.currentState="done";e.result=N;Ej(e)};
Ls=function(e,N){e.currentState="fail";e.error=N;Ej(e)};
Ej=function(e){if(e.currentState==="done"){var N=e.onSuccess;e.onSuccess=[];e.onFailure=[];N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,y(e.result)}else if(e.currentState==="fail")for(N=e.onFailure,e.onSuccess=[],e.onFailure=[],N=g.c(N),y=N.next();!y.done;y=N.next())y=y.value,y(e.error)};
UT9=function(e){return function(){return GQs(e.apply(this,g.iE.apply(0,arguments)))}};
GQs=function(e){return wQ(function(){return J$(e,e.next())})};
J$=function(e,N){return N.done?Nc(N.value):Tm(A$(N.value.jk,function(y){return J$(e,e.next(y))}),function(y){return J$(e,e.throw(y))})};
CA=function(e){var N=e.hours||0;var y=e.minutes||0,w=e.seconds||0;N=w+y*60+N*3600+(e.days||0)*86400+(e.weeks||0)*604800+(e.months||0)*2629800+(e.years||0)*31557600;N<=0?N={hours:0,minutes:0,seconds:0}:(e=N,N=Math.floor(e/3600),e%=3600,y=Math.floor(e/60),w=Math.floor(e%60),N={hours:N,minutes:y,seconds:w});var E=N.hours===void 0?0:N.hours;y=N.minutes===void 0?0:N.minutes;e=N.seconds===void 0?0:N.seconds;w=E>0;N=[];if(w){E=(new Intl.NumberFormat("en-u-nu-latn")).format(E);var A=["fr"],T="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
E="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(pA)?E.replace(",","\u00a0"):A.includes(pA)?E.replace(",","\u202f"):T.includes(pA)?E.replace(",","."):E;N.push(E)}w=w===void 0?!1:w;y=(["af","be","lt"].includes(pA)||w)&&y<10?LZs().format(y):(new Intl.NumberFormat("en-u-nu-latn")).format(y);N.push(y);y=LZs().format(e);N.push(y);y=":";"da fi id si sr sr-Latn".split(" ").includes(pA)&&(y=".");return N.join(y)};
LZs=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
ssP=function(e,N){var y,w;e=((y=e.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(w=y.videoAuthorizationToken)==null?void 0:w.credentialTransferTokens)||[];for(y=0;y<e.length;++y)if(e[y].scope===N)return e[y].token||void 0};
rQ=function(e){if(e&&e.simpleText)return e.simpleText;var N="";if(e&&e.runs)for(var y=0;y<e.runs.length;y++)e.runs[y].text&&(N+=e.runs[y].text);return N};
$B=function(e){return e?function(){try{return e.apply(this,arguments)}catch(N){g.t0(N)}}:e};
YB=function(){this.K=new Set;this.N=new Set;this.j=new Map;this.client=void 0;this.csn=null};
Mc=function(){YB.instance||(YB.instance=new YB);return YB.instance};
lm=function(){};
FB=function(){this.G=[];this.U=[];this.J=[];this.Kh=[];this.L=[];this.D=[];this.K=new Map;this.Z=new Map;this.N=new Set;this.qg=new Map};
Sq=function(){FB.instance||(FB.instance=new FB);return FB.instance};
ox=function(e,N,y,w){w=w===void 0?{}:w;g.NR(function(){abF.includes(N)||(g.uA(new g.Gh("createClientScreen() called with a non-page VE",N)),N=83769);w.isHistoryNavigation||(e.Kh=[],e.J.push({rootVe:N,key:w.key||""}));e.G=[];e.U=[];w.nD?es0(e,N,y,w):NXH(e,N,y,w)})()};
y65=function(e,N,y){y=y===void 0?0:y;g.NR(function(){N.then(function(w){e.N.has(y)&&e.j&&e.j();var E=g.It(y),A=g.dI(y);if(E&&A){var T;(w==null?0:(T=w.response)==null?0:T.trackingParams)&&g.Rt(e.client,E,A,g.XV(w.response.trackingParams));var p;(w==null?0:(p=w.playerResponse)==null?0:p.trackingParams)&&g.Rt(e.client,E,A,g.XV(w.playerResponse.trackingParams))}})})()};
h$=function(e){var N=Sq();g.NR(function(){var y=g.XV(e);bm(N,y);return y})()};
bm=function(e,N,y,w){w=w===void 0?0:w;g.NR(function(){if(e.N.has(w))return e.G.push([N,y]),!0;var E=g.It(w),A=y||g.dI(w);if(E&&A){if(g.Xj("combine_ve_grafts")){var T=e.K.get(A.toString());T?T.push(N):(e.Z.set(A.toString(),A),e.K.set(A.toString(),[N]));e.Ng||(e.Ng=g.e1(0,function(){c1(e,E)},1200))}else g.Rt(e.client,E,A,N);
return!0}return!1})()};
waF=function(e,N,y,w){w=w===void 0?0:w;var E=g.It(w);N=N||g.dI(w);E&&N&&(e=e.client,w=mj({cttAuthInfo:v7(E)||void 0},E),y={csn:E,ve:N.getAsJson(),clientData:y},E==="UNDEFINED_CSN"?LQ("visualElementStateChanged",w,y):e?kg("visualElementStateChanged",y,e,w):g.$$("visualElementStateChanged",y,w))};
es0=function(e,N,y,w){w=w===void 0?{}:w;e.N.add(w.layer||0);e.j=function(){NXH(e,N,y,w);var T=g.dI(w.layer);if(T){for(var p=g.c(e.G),C=p.next();!C.done;C=p.next())C=C.value,bm(e,C[0],C[1]||T,w.layer);T=g.c(e.U);for(p=T.next();!p.done;p=T.next())p=p.value,waF(e,p[0],p[1])}};
y||g.It(w.layer)||e.j();if(w.nD)for(var E=g.c(w.nD),A=E.next();!A.done;A=E.next())y65(e,A.value,w.layer);else g.t0(Error("Delayed screen needs a data promise."))};
NXH=function(e,N,y,w){w=w===void 0?{}:w;var E=void 0;w.layer||(w.layer=0);E=w.parentLayer!==void 0?w.parentLayer:w.layer;var A=g.It(E);E=g.dI(E);var T=y||E,p;T&&(w.parentCsn!==void 0?p={clientScreenNonce:w.parentCsn,visualElement:T}:A&&A!=="UNDEFINED_CSN"&&(p={clientScreenNonce:A,visualElement:T}));var C,r=g.Lb("EVENT_ID");A==="UNDEFINED_CSN"&&r&&(C={servletData:{serializedServletEventId:r}});g.Xj("combine_ve_grafts")&&A&&c1(e,A);g.Xj("no_client_ve_attach_unless_shown")&&T&&A&&U$(T,A);try{var Y=yg9(e.client,
N,p,w.Ec,w.cttAuthInfo,C,w.implicitGestureType,w.loggingExpectations)}catch(F){Gh3(F,{VM:N,rootVe:E,eas:y,CoW:A,W$B:p,Ec:w.Ec});g.t0(F);return}iO1(Y,N,w.layer,w.cttAuthInfo);A&&A!=="UNDEFINED_CSN"&&E&&!IwE(A)&&E$5(e.client,A,E,!0);e.J[e.J.length-1]&&!e.J[e.J.length-1].csn&&(e.J[e.J.length-1].csn=Y||"");g.nV({clientScreenNonce:Y});lm.instance||(lm.instance=new lm);g.NR(Mc().J).bind(Mc())();var M=g.dI(w.layer);A&&A!=="UNDEFINED_CSN"&&M&&(g.Xj("web_mark_root_visible")||g.Xj("music_web_mark_root_visible"))&&
g.yv(Y,M);e.N.delete(w.layer||0);e.j=void 0;var l;(l=e.qg.get(w.layer))==null||l.forEach(function(F,S){F?bm(e,S,F,w.layer):M&&bm(e,S,M,w.layer)});
E2M(e)};
E2M=function(e){for(var N=0;N<e.L.length;N++){var y=e.L[N];try{y()}catch(w){g.t0(w)}}for(N=e.L.length=0;N<e.D.length;N++){y=e.D[N];try{y()}catch(w){g.t0(w)}}};
c1=function(e,N){if(N===void 0)for(var y=PYM(),w=0;w<y.length;w++)y[w]!==void 0&&c1(e,y[w]);else e.K.forEach(function(E,A){(A=e.Z.get(A))&&g.O$(e.client,N,A,E)}),e.K.clear(),e.Z.clear(),e.Ng=void 0};
kB=function(){};
A60=function(){kB.instance||(kB.instance=new kB);return kB.instance};
TX5=function(e,N,y){var w=new XMLHttpRequest;if(y==null?0:y.Mc)w.onreadystatechange=function(A){y.Mc(w,A)};
var E;w.open((E=N.method)!=null?E:"GET",e,!0);w.responseType="text";w.withCredentials=!0;if(N.headers)for(e=g.c(Object.entries(N.headers)),N=e.next();!N.done;N=e.next())E=g.c(N.value),N=E.next().value,E=E.next().value,w.setRequestHeader(N,E);return w};
B1=function(){};
J6_=function(){var e=navigator;return new Promise(function(N,y){var w;(w=e.webkitTemporaryStorage)!=null&&w.queryUsageAndQuota?e.webkitTemporaryStorage.queryUsageAndQuota(function(E,A){N({usage:E,quota:A})},function(E){y(E)}):y(Error("webkitTemporaryStorage is not supported."))})};
Cl=function(e,N){var y=this;this.handleError=e;this.J=N;this.N=!1;self.document===void 0||self.addEventListener("beforeunload",function(){y.N=!0});
this.K=Math.random()<=.2};
CF5=function(e,N){B1.getInstance().estimate().then(function(y){y=Object.assign({},N,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:pa5(y==null?void 0:y.usage),deviceStorageQuotaMbytes:pa5(y==null?void 0:y.quota)});e.J("idbQuotaExceeded",y)})};
pa5=function(e){return typeof e==="undefined"?"-1":String(Math.ceil(e/1048576))};
$xH=function(){g.m6();return g.HE(0,192)?g.HE(0,190):!(g.Xj("web_watch_cinematics_disabled_by_default")||g.Xj("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&r69())};
MK0=function(e,N){YGJ(e.program,N.pwq)&&(KV("bg_i",void 0,"player_att"),g.XB.initialize(e,function(){KV("bg_l",void 0,"player_att");P1=(0,g.iC)()},N.cspNonce))};
lF0=function(e){e=e===void 0?{}:e;return g.XB.invoke(e)};
YGJ=function(e,N){if(e){var y;g.XB.isLoading()?y=!1:y=!P1||(0,g.iC)()-P1>N;e=y}else e=!1;return e};
F$E=function(e){e=e.split("");dQ.Te(e,26);dQ.gh(e,64);dQ.Te(e,43);dQ.gh(e,57);dQ.nU(e,2);dQ.gh(e,77);dQ.nU(e,2);dQ.Te(e,41);dQ.gh(e,20);return e.join("")};
g.Ix=function(e,N){return e.qg+"timedtext_video?ref=player&v="+N.videoId};
g.SG1=function(e){var N=this;this.videoData=e;e={};this.J=(e.c1a=function(){var y=[];if(g.XB.isInitialized()){var w="";N.videoData&&N.videoData.VY&&(w=N.videoData.VY+("&r1b="+N.videoData.clientPlaybackNonce));var E={};w=(E.atr_challenge=w,E);KV("bg_v",void 0,"player_att");(w=lF0(w))?(KV("bg_s",void 0,"player_att"),y.push("r1a="+w)):(KV("bg_e",void 0,"player_att"),y.push("r1c=2"))}else KV("bg_e",void 0,"player_att"),window.trayride||window.botguard?y.push("r1c=1"):y.push("r1c=4");y.push("r1d="+g.XB.getState());
return y.join("&")},e.c6a=function(y){return"r6a="+(Number(y.c)^C2())},e.c6b=function(y){return"r6b="+(Number(y.c)^Number(g.Lb("CATSTAT",0)))},e);
this.videoData&&this.videoData.VY?this.rK=AE(this.videoData.VY):this.rK={}};
g.o20=function(e){if(e.videoData&&e.videoData.VY){for(var N=[e.videoData.VY],y=g.c(Object.keys(e.J)),w=y.next();!w.done;w=y.next())w=w.value,e.rK[w]&&e.J[w]&&(w=e.J[w](e.rK))&&N.push(w);return N.join("&")}return null};
g.v1=function(e,N){MK0(e,{pwq:g.Y2(N.experiments,"bg_vm_reinit_threshold"),cspNonce:N.cspNonce})};
bnJ=function(){var e=XMLHttpRequest.prototype.fetch;return!!e&&e.length===3};
zm=function(e){e=e===void 0?2592E3:e;if(e>0&&!(OkM()>(0,g.iC)()-e*1E3))return 0;e=g.qI("yt-player-quality");if(typeof e==="string"){if(e=g.q5[e],e>0)return e}else if(e instanceof Object)return e.quality;return 0};
im=function(){var e=g.qI("yt-player-proxima-pref");return e==null?null:e};
hs9=function(){var e=g.qI("yt-player-quality");if(e instanceof Object&&e.quality&&e.previousQuality){if(e.quality>e.previousQuality)return 1;if(e.quality<e.previousQuality)return-1}return 0};
c65=function(){var e={values:{},lY:{}};try{var N=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);e.values=N.values;e.halfLives=N.halfLives}catch(y){}return e};
DM=function(){return g.qI("yt-player-performance-cap")||{}};
gQ=function(){var e;return(e=g.qI("yt-player-performance-cap-active-set"))!=null?e:[]};
k55=function(e){(e===void 0?0:e)?(e=gQ().filter(function(N){return N.startsWith("1")}),g.uY("yt-player-performance-cap-active-set",e,2592E3)):g.uY("yt-player-performance-cap-active-set",[],2592E3)};
BXM=function(e){g.uY("yt-player-watch-later-pending",e)};
XaF=function(){return!!g.qI("yt-player-headers-readable")};
PFH=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(e){return 0}};
g.VA=function(){var e=g.qI("yt-player-caption-language-preferences");return e?e:[]};
fA=function(){var e=g.qI("yt-player-user-settings"),N=new Map;if(e){e=g.c(Object.entries(e));for(var y=e.next();!y.done;y=e.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;N.set(y,w)}}return N};
um=function(){try{var e=window.navigator;if(e.getAutoplayPolicy&&typeof e.getAutoplayPolicy==="function"){var N=document.getElementsByClassName(g.t$.Qlt);var y=N.length>0&&N[0]?e.getAutoplayPolicy(N[0]):e.getAutoplayPolicy("mediaelement");if(dx3[y])return dx3[y]}}catch(w){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"};
qc=function(e){return e.UY||e.IV||e.mutedAutoplay};
IF9=function(e,N){return qc(e)?N!==1&&N!==2&&N!==0?"AUTOPLAY_STATUS_UNAVAILABLE":e.TH?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"};
v2P=function(e,N,y){var w=N.X();e.thirdParty||(e.thirdParty={});w.ancestorOrigins&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{ancestorOrigins:w.ancestorOrigins}));w.T("embeds_enable_autoplay_and_visibility_signals")&&(w.y_!=null&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(w.y_)})),w.zg&&(e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{visibilityFractionSource:w.zg})),
e.thirdParty.embeddedPlayerContext=Object.assign({},e.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:um(),autoplayIntended:qc(N),autoplayStatus:IF9(N,y)}))};
DxF=function(e,N){ER(e,2,N.IS,ZM,3);ER(e,3,N.N0,zs1,3);W8(e,4,N.onesieUstreamerConfig);W8(e,9,N.eL);ER(e,10,N.v4,xB,3);ER(e,15,N.reloadPlaybackParams,in9,3)};
VK_=function(e,N){ER(e,1,N.formatId,jq,3);H8(e,2,N.startTimeMs);H8(e,3,N.durationMs);H8(e,4,N.qO);H8(e,5,N.wQ);ER(e,9,N.qmB,g20,3);ER(e,11,N.vyG,nA,1);ER(e,12,N.A9,nA,1)};
fF3=function(e,N){Ol(e,1,N.videoId);H8(e,2,N.lmt)};
g20=function(e,N){if(N.B0)for(var y=0;y<N.B0.length;y++)ER(e,1,N.B0[y],fF3,3)};
jq=function(e,N){H8(e,1,N.itag);H8(e,2,N.lmt);Ol(e,3,N.xtags)};
QA=function(e){return{itag:f2(e,1),lmt:f2(e,2),xtags:qf(e,3)}};
nA=function(e,N){H8(e,1,N.startTicks);H8(e,2,N.fV);H8(e,3,N.timescale)};
tK5=function(e){return{startTicks:f2(e,1),fV:f2(e,2),timescale:f2(e,3)}};
u25=function(e,N){H8(e,1,N.defaultPolicy);H8(e,2,N.smooth);H8(e,3,N.visibility);H8(e,4,N.BL);H8(e,5,N.performance);H8(e,6,N.speed)};
ZM=function(e,N){H8(e,13,N.timeSinceLastManualFormatSelectionMs);var y=N.lastManualDirection;y!==void 0&&(mX(e,112),mX(e,y<<1^y>>31));H8(e,16,N.Vsq);H8(e,17,N.detailedNetworkType);H8(e,18,N.eq);H8(e,19,N.Wa);H8(e,21,N.wf1);H8(e,23,N.Cr);H8(e,28,N.Sb);H8(e,29,N.C6s);H8(e,34,N.visibility);y=N.playbackRate;if(y!==void 0){var w=new ArrayBuffer(4);(new Float32Array(w))[0]=y;y=(new Uint32Array(w))[0];if(y!==void 0)for(mX(e,285),Qe(e,4),w=0;w<4;)e.view.setUint8(e.pos,y&255),y>>=8,e.pos+=1,w+=1}H8(e,36,N.rr);
ER(e,38,N.mediaCapabilities,qGM,3);H8(e,39,N.RUW);H8(e,40,N.qz);H8(e,44,N.playerState);K2(e,46,N.CY);H8(e,48,N.XY);H8(e,50,N.rE);H8(e,51,N.Ka);H8(e,54,N.ue);K2(e,56,N.dUP);H8(e,57,N.Qv);K2(e,58,N.RY);H8(e,59,N.G4);H8(e,60,N.pG);K2(e,61,N.isPrefetch);H8(e,62,N.RW);W8(e,63,N.sabrLicenseConstraint);H8(e,64,N.QqG);H8(e,66,N.Msq);H8(e,67,N.rmG);H8(e,68,N.qgt);Ol(e,69,N.audioTrackId);K2(e,71,N.Td);ER(e,72,N.Qfl,u25,1);H8(e,74,N.mV);H8(e,75,N.nf)};
qGM=function(e,N){if(N.videoFormatCapabilities)for(var y=0;y<N.videoFormatCapabilities.length;y++)ER(e,1,N.videoFormatCapabilities[y],Zn3,1);if(N.audioFormatCapabilities)for(y=0;y<N.audioFormatCapabilities.length;y++)ER(e,2,N.audioFormatCapabilities[y],xx0,1);ER(e,4,N.perPlaybackAttributes,j_M,3);H8(e,5,N.hdrModeBitmask)};
Zn3=function(e,N){H8(e,1,N.videoCodec);H8(e,3,N.maxHeight);H8(e,4,N.maxWidth);H8(e,11,N.maxFramerate);H8(e,12,N.maxBitrateBps);K2(e,15,N.is10BitSupported)};
xx0=function(e,N){H8(e,1,N.audioCodec);H8(e,2,N.numChannels);H8(e,3,N.maxBitrateBps);H8(e,6,N.spatialCapabilityBitmask)};
j_M=function(e,N){if(N.itagDenylist)for(var y=0;y<N.itagDenylist.length;y++)H8(e,1,N.itagDenylist[y])};
xB=function(e,N){ER(e,1,N.clientInfo,n29,3);W8(e,2,N.PS);W8(e,3,N.playbackCookie);W8(e,4,N.eL);if(N.Y6)for(var y=0;y<N.Y6.length;y++)ER(e,5,N.Y6[y],Q_1,3);if(N.Ds)for(y=0;y<N.Ds.length;y++)H8(e,6,N.Ds[y]);Ol(e,7,N.DGP);ER(e,8,N.tC,mx0,3)};
Hn_=function(e,N){H8(e,1,N.aUG);H8(e,2,N.L$1)};
K$0=function(e,N){var y=N.code;y!==void 0&&(mX(e,8),mX(e,y<<1^y>>31));Ol(e,2,N.message)};
W$0=function(e,N){H8(e,1,N.clientState);ER(e,2,N.TSt,Hn_,1)};
mx0=function(e,N){W8(e,1,N.Cmg);ER(e,2,N.RZh,K$0,3);ER(e,3,N.coldStartInfo,W$0,3)};
Q_1=function(e,N){H8(e,1,N.type);W8(e,2,N.value)};
n29=function(e,N){Ol(e,1,N.hl);Ol(e,12,N.deviceMake);Ol(e,13,N.deviceModel);H8(e,16,N.clientName);Ol(e,17,N.clientVersion);Ol(e,18,N.osName);Ol(e,19,N.osVersion)};
OnM=function(e,N){Ol(e,1,N.name);Ol(e,2,N.value)};
RsE=function(e,N){Ol(e,1,N.url);if(N.QU)for(var y=0;y<N.QU.length;y++)ER(e,2,N.QU[y],OnM,3);W8(e,3,N.postBody);K2(e,4,N.VNk);K2(e,6,N.n8)};
zs1=function(e,N){W8(e,2,N.IW);W8(e,5,N.encryptedClientKey);W8(e,6,N.iv);W8(e,7,N.y4);K2(e,10,N.Dq);K2(e,13,N.M_);K2(e,14,N.zF);W8(e,16,N.Y4q);K2(e,17,N.dw)};
G5H=function(e){return{e7:f2(e,1),cj:f2(e,2),body:uI(e,4)}};
in9=function(e,N){Ol(e,1,N.token)};
Ux0=function(e){return{token:qf(e,1)}};
L$J=function(e){return{RS:f2(e,1),FiB:f2(e,2)}};
NFM=function(e,N){ER(e,1,N.IS,ZM,3);if(N.xL)for(var y=0;y<N.xL.length;y++)ER(e,2,N.xL[y],jq,3);if(N.gT)for(y=0;y<N.gT.length;y++)ER(e,3,N.gT[y],VK_,3);W8(e,5,N.videoPlaybackUstreamerConfig);if(N.kK)for(y=0;y<N.kK.length;y++)ER(e,6,N.kK[y],s_J,3);if(N.DT)for(y=0;y<N.DT.length;y++)ER(e,16,N.DT[y],jq,3);if(N.pH)for(y=0;y<N.pH.length;y++)ER(e,17,N.pH[y],jq,3);if(N.sJ)for(y=0;y<N.sJ.length;y++)ER(e,18,N.sJ[y],jq,3);ER(e,19,N.v4,xB,3);ER(e,21,N.Ag,aFs,3);H8(e,22,N.g8);H8(e,23,N.Wz);if(N.iW)for(y=0;y<N.iW.length;y++)ER(e,
1E3,N.iW[y],eeP,3)};
s_J=function(e,N){ER(e,1,N.formatId,jq,3);H8(e,2,N.KO);H8(e,3,N.sequenceNumber);ER(e,4,N.mZ,nA,1);H8(e,5,N.wC);H8(e,6,N.Nm)};
aFs=function(e,N){if(N.EL)for(var y=0;y<N.EL.length;y++)Ol(e,1,N.EL[y]);W8(e,2,N.v0);Ol(e,3,N.Yh);H8(e,4,N.Bx);H8(e,5,N.Z1);Ol(e,6,N.Lv)};
eeP=function(e,N){if(N.xL)for(var y=0;y<N.xL.length;y++)ER(e,1,N.xL[y],jq,3);if(N.gT)for(y=0;y<N.gT.length;y++)ER(e,2,N.gT[y],VK_,3);Ol(e,3,N.clipId)};
g.m4=function(e,N){ER(e,1,N.IS,ZM,3);W8(e,3,N.videoPlaybackUstreamerConfig);ER(e,5,N.v4,xB,3);ER(e,6,N.Ag,aFs,3)};
EQ5=function(e,N){Ol(e,1,N.cpn);H8(e,2,N.sequenceNumber);Ol(e,3,N.serializedWatchEndpointLoggingContext);if(N.decoderInfo)for(var y=0;y<N.decoderInfo.length;y++)ER(e,6,N.decoderInfo[y],yA1,3);Ol(e,9,N.playerResponseCpn);H8(e,10,N.transitionStitchType);H8(e,12,N.timestampOffsetMsecs);H8(e,15,N.remoteControlMode);if(N.remoteConnectedDevices)for(y=0;y<N.remoteConnectedDevices.length;y++)ER(e,16,N.remoteConnectedDevices[y],wts,3);W8(e,17,N.serializedHouseBrandPlayerServiceLoggingContext)};
yA1=function(e,N){H8(e,1,N.elapsedTimeMs);Ol(e,3,N.videoDecoderName)};
wts=function(e,N){H8(e,1,N.deviceInterface);Ol(e,2,N.deviceVersion);K2(e,3,N.isSleeping)};
AAF=function(e){return{first:f2(e,1),DJ:f2(e,2)}};
TF_=function(e){return{bitrate:f2(e,6),width:f2(e,7),height:f2(e,8),fps:f2(e,25),averageBitrate:f2(e,31),audioSampleRate:f2(e,45),audioChannels:f2(e,46)}};
H1=function(e){return{itagDenylist:xC(e,1)}};
CvE=function(e){return{cu9:f2(e,1),itag:qf(e,3),tF:ZK(e,4,JA9),lmt:f2(e,5),UTt:f2(e,7),xtags:qf(e,15),yMP:ZK(e,23,ptJ),zR:ZK(e,34,H1)}};
JA9=function(e){return{iv:uI(e,5),BPP:tC(e,7)}};
rAs=function(e){return{Rn:xC(e,2),videoId:qf(e,3),Sv:f2(e,4)}};
ptJ=function(e){return{videoId:qf(e,2)}};
$G1=function(e){return{NL:f2(e,3),cz:f2(e,4),C7:f2(e,5),E9Z:tC(e,8),thG:f2(e,10),eO:f2(e,12),vA:f2(e,13),rC:f2(e,14),LK:f2(e,15),MD:f2(e,16)}};
Yp9=function(e){return{targetAudioReadaheadMs:f2(e,1),targetVideoReadaheadMs:f2(e,2),backoffTimeMs:f2(e,4),playbackCookie:uI(e,7),videoId:qf(e,8)}};
MO3=function(e){return{minBandwidthBytesPerSec:f2(e,1),minReadaheadMs:f2(e,2)}};
lkJ=function(e){return{startMinReadaheadPolicy:jy(e,1,MO3),resumeMinReadaheadPolicy:jy(e,2,MO3)}};
Fx1=function(e){return{label:qf(e,1),text:qf(e,2)}};
Sp0=function(e){return{videoId:qf(e,1),formatId:ZK(e,2,QA),debugInfo:jy(e,3,Fx1)}};
oQJ=function(e){return{lH:jy(e,1,Sp0)}};
bv0=function(e){return{M0:f2(e,1),zP:f2(e,2),minReadaheadMs:f2(e,3)}};
heP=function(e){return{qI:f2(e,1),items:jy(e,2,bv0),Fb:f2(e,3)}};
cAM=function(e){return{token:qf(e,1),videoId:qf(e,2)}};
kW1=function(e){return{Mo:f2(e,1)}};
BFM=function(e){return{MNg:qf(e,1),action:f2(e,2),eA:ZK(e,3,kW1)}};
KA=function(e){return{Fl:f2(e,1),Jj:f2(e,2),seekSource:f2(e,3)}};
Pv5=function(e){return{Xy:jy(e,1,XtM),pfq:qf(e,2)}};
dGM=function(e){return{US:qf(e,1),jA:f2(e,2),kWl:f2(e,3),aj:f2(e,4),SO:f2(e,5),bD:f2(e,6)}};
IkJ=function(e){return{Jv:f2(e,1)}};
XtM=function(e){return{clipId:qf(e,1),zn:ZK(e,2,dGM),NQ:ZK(e,3,IkJ)}};
vQP=function(e){return{type:f2(e,1),scope:f2(e,2),value:uI(e,3),sendByDefault:tC(e,4),writePolicy:f2(e,5)}};
zeE=function(e){var N=[];e=g.c(e.split(","));for(var y=e.next();!y.done;y=e.next()){var w=y.value;w&&((y=w.startsWith("!"))&&(w=w.substring(1)),w=w.split("-"),w.length<3||N.push({y$:w[0],platform:w[1],deviceVersion:w[2],Rm:y}))}return N};
gQ9=function(e){return zeE(e).map(function(N){return{deviceInterface:iv1[DGF[N.y$]]||0,deviceVersion:N.deviceVersion||"",isSleeping:N.Rm}})};
g.W1=function(e,N){this.id=e;this.Vl=N;this.captionTracks=[];this.K=this.j=null;this.xtags="";this.L=!1;this.J=null;this.N="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";e=this.Vl.id.split(".");e.length>1&&(this.L=e[1]==="2")};
Oj=function(e,N,y,w,E){this.N=e;this.J=N;this.K=y;this.reason=w;this.JM=E===void 0?0:E};
g.Rx=function(e,N,y,w){return new Oj(g.q5[e]||0,g.q5[N]||0,y,w)};
Uj=function(e){if(Gm&&e.JM)return!1;var N=g.q5.auto;return e.N===N&&e.J===N};
sj=function(e){return LA[e.J||e.N]||"auto"};
VO_=function(e,N){N=g.q5[N];return e.N<=N&&(!e.J||e.J>=N)};
ax=function(e){return"["+e.N+"-"+e.J+", override: "+(e.K+", reason: "+e.reason+"]")};
ed=function(e,N,y){this.videoInfos=e;this.J=N;this.audioTracks=[];if(this.J){e=new Set;y==null||y({ainfolen:this.J.length});N=g.c(this.J);for(var w=N.next();!w.done;w=N.next())if(w=w.value,!w.Vl||e.has(w.Vl.id)){var E=void 0,A=void 0,T=void 0;(T=y)==null||T({atkerr:!!w.Vl,itag:w.itag,xtag:w.J,lang:((E=w.Vl)==null?void 0:E.name)||"",langid:((A=w.Vl)==null?void 0:A.id)||""})}else E=new g.W1(w.id,w.Vl),e.add(w.Vl.id),this.audioTracks.push(E);y==null||y({atklen:this.audioTracks.length})}};
Na=function(){g.x.apply(this,arguments);this.J=null};
qpP=function(e,N,y,w,E,A,T){if(e.J)return e.J;var p={},C=new Set,r={};if(yo(w)){for(var Y in w.J)w.J.hasOwnProperty(Y)&&(e=w.J[Y],r[e.info.Iq]=[e.info]);return r}Y=fk9(N,w,p);A&&E({aftsrt:wD(Y)});for(var M={},l=g.c(Object.keys(Y)),F=l.next();!F.done;F=l.next()){F=F.value;for(var S=g.c(Y[F]),k=S.next();!k.done;k=S.next()){k=k.value;var X=k.itag,d=void 0,v=F+"_"+(((d=k.video)==null?void 0:d.fps)||0);M.hasOwnProperty(v)?M[v]===!0?r[F].push(k):p[X]=M[v]:(d=Ef(N,k,y,w.isLive,C),d!==!0?(T.add(F),p[X]=d,
d==="disablevp9hfr"&&(M[v]="disablevp9hfr")):(r[F]=r[F]||[],r[F].push(k),M[v]=!0))}}A&&E({bfflt:wD(r)});for(var V in r)r.hasOwnProperty(V)&&(w=V,r[w]&&r[w][0].gx()&&(r[w]=r[w],r[w]=tO5(N,r[w],p),r[w]=u1_(r[w],p)));A&&Object.keys(p).length>0&&(N.FZ?E({rjr:Xe(p)}):E(p));N=g.c(C.values());for(w=N.next();!w.done;w=N.next())(w=y.N.get(w.value))&&--w.Yr;A&&E({aftflt:wD(r)});e.J=g.b8(r,function(Z){return!!Z.length});
return e.J};
xG0=function(e,N,y,w,E,A,T,p){p=p===void 0?!1:p;if(N.CC&&T&&T.length>1&&!(N.G4>0||N.U)){for(var C=N.N||!!E,r=C&&N.pX?A:void 0,Y=fk9(N,w),M=[],l=[],F={},S=0;S<T.length;S++){var k=T[S],X=w.K.get(k);if(X&&X.info){var d=X.info;X=d.Iq;if(Ef(N,d,y,w.isLive)){k=d.gx()?M:l;d=g.c(Y[X]);for(var v=d.next();!v.done;v=d.next()){v=v.value;var V=void 0,Z=X+"_"+(((V=v.video)==null?void 0:V.fps)||0);F.hasOwnProperty(Z)?F[Z]===!0&&k.push(v):Ef(N,v,y,w.isLive)&&(k.push(v),F[Z]=!0)}}else C&&A({opfu:k})}}if(M.length&&
l.length)return C&&A({opfm:M[0].itag+","+l[0].itag}),u4(new ed(M,l,r))}return ZvH(e,N,y,w,E,A,p)};
ZvH=function(e,N,y,w,E,A,T){function p(d){return!!M[d]}
var C=N.N||!!E,r=C&&N.pX?A:void 0,Y=new Set,M=qpP(e,N,y,w,A,C,Y);Ai(w)&&(M=j0E(y,M,E,C,A,N),C&&A({enflt:wD(M)}));N.Kx=nQ9(M,N);if(yo(w))return A=g.Ok(Object.values(M),function(d){return!!d.length&&!!d[0].audio}),e=g.Ok(Object.values(M),function(d){return!!d.length&&!!d[0].video}),A&&e||tE(),u4(new ed(e,A,r));
E=Q0F(N);C&&A({audioPrefOrder:E.join("_")});e=[];if(N.PY){E=g.CG(E,p);for(var l=new Set,F=g.c(E),S=F.next();!S.done;S=F.next()){S=g.c(M[S.value]);for(var k=S.next();!k.done;k=S.next())k=k.value,k.Vl&&!l.has(k.Vl.id)&&(l.add(k.Vl.id),e.push(k))}if(e.length===0){if(E.length===0)return C&&A({noaudio:1}),tE();e=M[E[0]]}}else{e=g.Ok(E,p);if(!e)return C&&A({noaudio:1}),tE();e=M[e]}M["9"]&&M.h&&w.Cx&&!N.Bk&&(C&&A({dltvp9:1}),delete M["9"]);if(T){C&&A({bfsflt:wD(M),bfsflta:TD(y)});mG5(y,Y);C&&A({bfsfltb:TD(y)});
for(var X in M)if(M.hasOwnProperty(X)&&(T=X,!(T==="f"||N.aq===0&&Hv1.has(T))))for(Y=g.c(M[T]),E=Y.next();!E.done;E=Y.next())E=E.value,N.NK?KxM(y,T,E):WxH(y,T,E);C&&A({aftsflt:TD(y)})}T=M["1h"]?"1h":"1";y=M["9h"]?"9h":"9";E=M[T];l=M[y];E&&E.length&&(N.J.highestAv1Resolution=E[E.length-1].video.J);l&&l.length&&(N.J.highestVp9Resolution=l[l.length-1].video.J);X=[];Y=[];if(N.jN&&E)X=E,Y=[T],A({forceAv1:T});else if(N.U&&!N.RY)for(Y=Ov0(w)?M["1h"]||M["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],C&&A({newhybpref:Y.join(".")}),
E=g.c(Y),l=E.next();!l.done;l=E.next())X=X.concat(M[l.value]).filter(function(d){return d});
else N.G4>0&&l&&E&&(Y=[T,y],X=E.concat(l).filter(function(d){return d}));
if(X.length&&!N.RY){Ji(X,Y);if(C){C=[];N=g.c(X);for(w=N.next();!w.done;w=N.next())C.push(w.value.itag);A({hbdfmt:C.join(".")})}return u4(new ed(X,e,r))}X=ReH(N);X=g.Ok(X,p);if(!X){if(M[T])return A=M[T],Ji(A),u4(new ed(A,e,r));C&&A({novideo:1});return tE()}N.U2&&(X==="1"||X==="1h")&&M[y]&&(T=p_(M[X]),Y=p_(M[y]),Y>T?X=y:Y===T&&GWs(M[y])&&(X=y));X==="9"&&M.h&&p_(M.h)>p_(M["9"])&&(X="h");N.SR&&w.isLive&&X==="("&&M.H&&p_(M["("])<1440&&(X="H");C&&A({vfmly:C_(X)});N=M[X];if(!N.length)return C&&A({novfmly:C_(X)}),
tE();Ji(N);return u4(new ed(N,e,r))};
nQ9=function(e,N){var y=!(!e.m&&!e.M),w=!(!e.mac3&&!e.MAC3),E=!(!e.meac3&&!e.MEAC3);e=!(!e.i&&!e.I);N.jp=e;return y||w||E||e};
GWs=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.itag&&UGP.has(N.itag))return!0;return!1};
C_=function(e){switch(e){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return e}};
wD=function(e){var N=[],y;for(y in e)if(e.hasOwnProperty(y)){var w=y;N.push(C_(w));w=g.c(e[w]);for(var E=w.next();!E.done;E=w.next())N.push(E.value.itag)}return N.join(".")};
j0E=function(e,N,y,w,E,A){var T={},p={};g.oB(N,function(C,r){C=C.filter(function(Y){var M=Y.itag;if(!Y.BG)return p[M]="noenc",!1;if(A.Y_&&Y.Iq==="(h"&&A.a9)return p[M]="lichdr",!1;if(Y.Iq==="("||Y.Iq==="(h"){if(e.j&&y&&y.flavor==="widevine"){var l=Y.mimeType+"; experimental=allowed";(l=!!Y.BG[y.flavor]&&!!y.J[l])||(p[M]=Y.BG[y.flavor]?"unspt":"noflv");return l}if(!rD(e,$E.CRYPTOBLOCKFORMAT)&&!e.Rq||e.qg)return p[M]=e.qg?"disvp":"vpsub",!1}return y&&Y.BG[y.flavor]&&y.J[Y.mimeType]?!0:(p[M]=y?Y.BG[y.flavor]?
"unspt":"noflv":"nosys",!1)});
C.length&&(T[r]=C)});
w&&Object.entries(p).length&&(A.FZ?E({rjr:Xe(p)}):E(p));return T};
u1_=function(e,N){var y=vQ(e,function(w,E){return E.video.fps>32?Math.min(w,E.video.width):w},Infinity);
y<Infinity&&(e=e.filter(function(w){if(w.video.fps>32||w.video.width<y)return!0;N[w.itag]="hfrfirst";return!1}));
Gk()&&(e=e.filter(function(w){if(w.itag!=="299")return!0;N[w.itag]="ps3hfr1080";return!1}));
return e};
tO5=function(e,N,y){return N=N.filter(function(w){if(w.video.J<=e.jn)return!0;y[w.itag]="maxquality";return!1})};
fk9=function(e,N,y){var w={},E;for(E in N.J)if(N.J.hasOwnProperty(E)){var A=N.J[E].info;if(e.G&&A.video&&A.video.J<e.G)y&&(y[A.itag]="min"+e.G);else{var T=A.Iq;w[T]=w[T]||[];w[T].push(A)}}e=g.c(Object.keys(w));for(N=e.next();!N.done;N=e.next())Ji(w[N.value]);return w};
p_=function(e){return vQ(e,function(N,y){return Math.max(N,y.video.J)},0)};
Ef=function(e,N,y,w,E){E=E===void 0?new Set:E;if(N.Iq==="")return"unkn";if((N.itag==="304"||N.itag==="266")&&e.l9)return"blk2khfr";if(e.Z&&N.video&&N.video.J>e.Z)return"max"+e.Z;if(e.Dl&&N.Iq==="h"&&N.video&&N.video.J>1080)return"blkhigh264";if(N.Iq==="(h"&&!y.Z)return"enchdr";if((w===void 0?0:w)&&Og(N)&&!e.Et)return"blk51live";if((N.Iq==="MAC3"||N.Iq==="mac3")&&!e.j)return"blkac3";if((N.Iq==="MEAC3"||N.Iq==="meac3")&&!e.L)return"blkeac3";if((N.Iq==="M"||N.Iq==="m")&&!e.Kh)return"blkaac51";if((N.Iq===
"so"||N.Iq==="sa")&&!e.qg)return"blkamb";if(!e.Y_&&N.BG&&N.BG.fairplay&&(N.Iq==="("||N.Iq==="(h"||N.Iq==="A"||N.Iq==="MEAC3"))return"cbc";if((N.Iq==="i"||N.Iq==="I")&&!e.Xz)return"blkiamf";if(N.itag==="774"&&!e.i9)return"blkouh";var A,T;if(e.Ut&&(N.Iq==="1"||N.Iq==="1h")&&((A=N.video)==null?0:A.J)&&((T=N.video)==null?void 0:T.J)>e.Ut)return"av1cap";if((w=y.N.get(N.Iq))&&w.Yr>0)return E.add(N.Iq),"byerr";var p;if((p=N.video)==null?0:p.fps>32){if(!y.i9&&!rD(y,$E.FRAMERATE))return"capHfr";if(e.VB&&N.video.J>=
4320)return"blk8khfr";if(mu(N)){if(e.DD&&N.BG&&N.video.J>=1440)return"disablevp9hfr";if(e.im&&g.Kp("appletv5")&&N.BG)return"atv5sfr"}}if(e.JM&&N.JM>e.JM)return"ratecap";e=Lx3(y,N);return e!==!0?e:!0};
Ji=function(e,N){N=N===void 0?[]:N;g.pf(e,function(y,w){var E=w.JM-y.JM;if(!y.gx()||!w.gx())return E;var A=w.video.height*w.video.width-y.video.height*y.video.width;!A&&N&&N.length>0&&(y=N.indexOf(y.Iq)+1,w=N.indexOf(w.Iq)+1,A=y===0||w===0?w||-1:y-w);A||(A=E);return A})};
g.YE=function(e,N){this.N=e;this.j=N===void 0?!1:N;this.K=this.path=this.scheme="";this.J={};this.url=""};
lN=function(e){Ma(e);return e.K};
F9=function(e){return e.N?e.N.startsWith("local"):e.scheme==="local"};
s0_=function(e){Ma(e);return g.c4(e.J,function(N){return N!==null})};
Sd=function(e){Ma(e);var N=decodeURIComponent(e.get("mn")||"").split(",");return e.path==="/videoplayback"&&N.length>1&&!!N[1]};
oh=function(e,N){N=N===void 0?!1:N;Ma(e);if(e.path!=="/videoplayback"){var y=e.clone();y.set("playerfallback","1");return y}var w=e.nC();y=new g.rS(w);var E=e.get("fvip"),A=decodeURIComponent(e.get("mn")||"").split(",");if(E&&A&&A.length>1&&A[1])return w=y.J,e=w.replace(/^[^.]*/,""),g.Yu(y,(w.indexOf("rr")===0?"rr":"r")+E+"---"+A[1]+e),y=new g.YE(y.toString()),y.set("fallback_count","1"),y;if(N)return y=e.clone(),y.set("fallback_count","1"),y;E=y.J.match("\\.a1\\.googlevideo\\.com$");y.J.match("\\.googlevideo\\.com$")?
(g.Yu(y,"redirector.googlevideo.com"),w=y.toString()):y.J.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Yu(y,"www.youtube.com"),w=y.toString()):(y=aLF(w),a_(y)&&(w=y));y=new g.YE(w);y.set("cmo=pf","1");E&&y.set("cmo=td","a1.googlevideo.com");return y};
Ma=function(e){if(e.N){if(!a_(e.N)&&!e.N.startsWith("local"))throw new g.Gh("Untrusted URL",e.N);var N=g.hh(e.N);e.scheme=N.L;e.K=N.J+(N.K!=null?":"+N.K:"");var y=N.N;if(y.startsWith("/videoplayback"))e.path="/videoplayback",y=y.slice(14);else if(y.startsWith("/initplayback"))e.path="/initplayback",y=y.slice(13);else if(y.startsWith("/api/manifest")){var w=y.indexOf("/",12),E=y.indexOf("/",w+1);w>0&&E>0?(e.path=y.slice(0,E),y=y.slice(E+1)):(e.path=y,y="")}else e.path=y,y="";w=e.J;e.J=ak_(y);Object.assign(e.J,
e0P(N.j.toString()));Object.assign(e.J,w);e.J.file==="index.m3u8"&&(delete e.J.file,e.path+="/file/index.m3u8");e.N="";e.url="";e.j&&(N=tgH(),Ma(e),y=e.J[N]||null)&&(y=Np0[0](y),e.set(N,y),e.j||tgH(""))}};
yGP=function(e){Ma(e);var N=e.scheme+(e.scheme?"://":"//")+e.K+e.path;if(s0_(e)){var y=[];g.oB(e.J,function(w,E){w!==null&&y.push(E+"="+w)});
N+="?"+y.join("&")}return N};
ak_=function(e){e=e.split("/");var N=0;e[0]||N++;for(var y={};N<e.length;N+=2)e[N]&&w33(y,e[N],e[N+1]);return y};
e0P=function(e){e=e.split("&");for(var N={},y=0;y<e.length;y++){var w=e[y],E=w.indexOf("=");E>0?w33(N,w.slice(0,E),w.slice(E+1)):w&&(N[w]="")}return N};
w33=function(e,N,y){if(N==="cmo"){var w;(w=y.indexOf("="))>=0?(N="cmo="+y.slice(0,w),y=y.slice(w+1)):(w=y.indexOf("%3D"))>=0&&(N="cmo="+y.slice(0,w),y=y.slice(w+3))}e[N]=y};
bN=function(e){var N=g.m(e,E6n)||e.signatureCipher;e={jQ:!1,Uv:"",xm:"",s:""};if(!N)return e;N=AE(N);e.jQ=!0;e.Uv=N.url;e.xm=N.sp;e.s=N.s;return e};
hi=function(e,N,y,w,E,A,T,p,C,r){this.Ch=e;this.startTime=N;this.duration=y;this.ingestionTime=w;this.sourceURL=E;this.Re=C;this.J=r;this.endTime=N+y;this.N=T||0;this.range=A||null;this.pending=p||!1;this.Re=C||null};
g.c$=function(){this.segments=[];this.J=null;this.N=!0;this.K=""};
AGH=function(e,N){if(N>e.vY())e.segments=[];else{var y=W_(e.segments,function(w){return w.Ch>=N},e);
y>0&&e.segments.splice(0,y)}};
kE=function(e,N,y,w,E){E=E===void 0?!1:E;this.data=e;this.offset=N;this.size=y;this.type=w;this.J=(this.N=E)?0:8;this.dataOffset=this.offset+this.J};
B$=function(e){var N=e.data.getUint8(e.offset+e.J);e.J+=1;return N};
X9=function(e){var N=e.data.getUint16(e.offset+e.J);e.J+=2;return N};
P$=function(e){var N=e.data.getInt32(e.offset+e.J);e.J+=4;return N};
dD=function(e){var N=e.data.getUint32(e.offset+e.J);e.J+=4;return N};
Ih=function(e){var N=e.data;var y=e.offset+e.J;N=N.getUint32(y)*4294967296+N.getUint32(y+4);e.J+=8;return N};
v$=function(e,N){N=N===void 0?NaN:N;if(isNaN(N))var y=e.size;else for(y=e.J;y<e.size&&e.data.getUint8(e.offset+y)!==N;)++y;N=new Uint8Array(e.data.buffer,e.offset+e.J+e.data.byteOffset,y-e.J);e.J=Math.min(y+1,e.size);return P8(N)};
Tps=function(e){return new Uint8Array(e.data.buffer,e.offset+e.data.byteOffset,e.size)};
JGE=function(e){this.offset=0;this.data=new DataView(new ArrayBuffer(e))};
zD=function(e,N,y,w){(new Uint8Array(e.data.buffer,e.offset,w)).set(new Uint8Array(N.buffer,y+N.byteOffset,w));e.offset+=w};
iN=function(e,N,y,w,E,A){this.startSecs=e;this.Vj=N;this.context=y;this.identifier=w;this.event=E;this.J=A};
gD=function(e,N){this.data=e;this.uri=N||"http://youtube.com/streaming/metadata/segment/102015";this.d4=De(this,"Sequence-Number");this.j=De(this,"Segment-Count");this.L=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=De(this,"Ingestion-Walltime-Us")/1E6;this.J=(De(this,"First-Frame-Time-Us")+De(this,"First-Frame-Uncertainty-Us"))/1E6;this.j1=De(this,"Target-Duration-Us")/1E6;this.eY=this.data["Stream-Finished"]==="T";this.K=this.data.Streamable==="T";this.cryptoPeriodIndex=De(this,"Crypto-Period-Index");
this.N=De(this,"Crypto-Period-Seconds")};
C$9=function(e){return e.data["Cuepoint-Type"]?new iN(-(Number(e.data["Cuepoint-Playhead-Time-Sec"])||0),Number(e.data["Cuepoint-Total-Duration-Sec"])||0,e.data["Cuepoint-Context"],e.data["Cuepoint-Identifier"]||"",p35[e.data["Cuepoint-Event"]||""]||"unknown",(Number(e.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
rGJ=function(e){return Number(e.data["Start-Media-Time-Us"])/1E6||0};
De=function(e,N){return Number(e.data[N])||0};
Vo=function(e){return e.data["Stitched-Video-Cpn"]?e.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.$5_=function(e){return e.data["Serialized-State"]?e.data["Serialized-State"]:""};
g.Yg0=function(e){switch(e.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
McP=function(e,N){this.J=e;this.duration=N};
lrJ=function(e,N,y,w,E){this.N=E;this.J=e||0;this.pitch=N||0;this.yaw=y||0;this.roll=w||0;this.crc=E.getUint32(4)};
f_=function(e){var N={};e=e.split("\r\n");for(var y=0;y<e.length;y++){if(e[y].length===0)return N;var w=e[y].match(/([^:]+):\s+([\S\s]+)/);w!=null&&(N[w[1]]=w[2])}return null};
Fu5=function(e,N){var y=g.ti(e,0,1952868452);e=g.ti(e,0,1953658222);if(y&&e){y.skip(1);var w=B$(y)<<16|X9(y);y.skip(4);w&1&&y.skip(8);w&2&&y.skip(4);if(w&8){w=y.J;var E=dD(y);y.data.setUint32(y.offset+w,N>1?Math.ceil(E*N):Math.floor(E*N))}e.skip(1);y=B$(e)<<16|X9(e);if(y&256){w=y&1;E=y&4;var A=y&512,T=y&1024,p=y&2048;y=dD(e);w&&e.skip(4);E&&e.skip(4);w=(A?4:0)+(T?4:0)+(p?4:0);for(E=0;E<y;E++)A=e.J,T=dD(e),e.data.setUint32(e.offset+A,N>1?Math.ceil(T*N):Math.floor(T*N)),e.skip(w)}}};
qa=function(e){e=new DataView(e.buffer,e.byteOffset,e.byteLength);return(e=g.ti(e,0,1836476516))?g.uN(e):NaN};
SgJ=function(e){var N=g.ti(e,0,1937011556);if(!N)return null;N=Ze(e,N.dataOffset+8,1635148593)||Ze(e,N.dataOffset+8,1635135537);if(!N)return null;var y=Ze(e,N.dataOffset+78,1936995172),w=Ze(e,N.dataOffset+78,1937126244);if(!w)return null;N=null;if(y)switch(y.skip(4),B$(y)){default:N=0;break;case 1:N=2;break;case 2:N=1;break;case 3:N=255}var E=y=null,A=null;if(w=Ze(e,w.dataOffset,1886547818)){var T=Ze(e,w.dataOffset,1886546020),p=Ze(e,w.dataOffset,2037673328);if(!p&&(p=Ze(e,w.dataOffset,1836279920),
!p))return null;T&&(T.skip(4),y=P$(T)/65536,A=P$(T)/65536,E=P$(T)/65536);e=Tps(p);e=new DataView(e.buffer,e.byteOffset+8,e.byteLength-8);return new lrJ(N,y,A,E,e)}return null};
Ze=function(e,N,y){for(;xE(e,N);){var w=jd(e,N);if(w.type===y)return w;N+=w.size}return null};
g.ti=function(e,N,y){for(;xE(e,N);){var w=jd(e,N);if(w.type===y)return w;N=n_(w.type)?N+8:N+w.size}return null};
g.Qo=function(e){if(e.data.getUint8(e.dataOffset)){var N=e.data;e=e.dataOffset+4;N=N.getUint32(e)*4294967296+N.getUint32(e+4)}else N=e.data.getUint32(e.dataOffset+4);return N};
jd=function(e,N){var y=e.getUint32(N),w=e.getUint32(N+4);return new kE(e,N,y,w)};
g.uN=function(e){var N=e.data.getUint8(e.dataOffset)?20:12;return e.data.getUint32(e.dataOffset+N)};
o69=function(e){e=new kE(e.data,e.offset,e.size,e.type,e.N);var N=B$(e);e.skip(7);var y=dD(e);if(N===0){N=dD(e);var w=dD(e)}else N=Ih(e),w=Ih(e);e.skip(2);for(var E=X9(e),A=[],T=[],p=0;p<E;p++){var C=dD(e);A.push(C);T.push(dD(e));e.skip(4)}return{timescale:y,Zh:N,N4:w,IDh:A,vx:T}};
xE=function(e,N){if(e.byteLength-N<8)return!1;var y=e.getUint32(N);if(y<8||e.byteLength-N<y)return!1;for(y=4;y<8;y++){var w=e.getInt8(N+y);if(w<48||w>122)return!1}return!0};
n_=function(e){return e===1701082227||e===1836019558||e===1836019574||e===1835297121||e===1835626086||e===1937007212||e===1953653094||e===1953653099||e===1836475768};
bd0=function(e){e.skip(4);return{dGh:v$(e,0),value:v$(e,0),timescale:dD(e),QNq:dD(e),oi9:dD(e),id:dD(e),YA:v$(e),offset:e.offset}};
g.h05=function(e){var N=Ze(e,0,1701671783);if(!N)return null;var y=bd0(N),w=y.dGh;y=f_(y.YA);if(e=Ze(e,N.offset+N.size,1701671783))if(e=bd0(e),e=f_(e.YA),y&&e){N=g.c(Object.keys(e));for(var E=N.next();!E.done;E=N.next())E=E.value,y[E]=e[E]}return y?new gD(y,w):null};
mh=function(e,N){for(var y=Ze(e,0,N);y;){var w=y;w.type=1936419184;w.data.setUint32(w.offset+4,1936419184);y=Ze(e,y.offset+y.size,N)}};
g.H$=function(e,N){for(var y=0,w=[];xE(e,y);){var E=jd(e,y);E.type===N&&w.push(E);y=n_(E.type)?y+8:y+E.size}return w};
cG5=function(e,N){var y=g.ti(e,0,1937011556),w=g.ti(e,0,1953654136);if(!y||!w||e.getUint32(y.offset+12)>=2)return null;var E=new DataView(N.buffer,N.byteOffset,N.length),A=g.ti(E,0,1937011556);if(!A)return null;N=E.getUint32(A.dataOffset+8);w=E.getUint32(A.dataOffset+12);if(w!==1701733217&&w!==1701733238)return null;w=new JGE(e.byteLength+N);zD(w,e,0,y.offset+12);w.data.setInt32(w.offset,2);w.offset+=4;zD(w,e,y.offset+16,y.size-16);zD(w,E,E.byteOffset+A.dataOffset+8,N);zD(w,e,y.offset+y.size,e.byteLength-
(y.offset+y.size));y=g.c([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(E=y.next();!E.done;E=y.next())E=g.ti(e,0,E.value),w.data.setUint32(E.offset,E.size+N);e=g.ti(w.data,0,1953654136);w.data.setUint32(e.offset+16,2);return w.data};
kS0=function(e){var N=g.ti(e,0,1937011556);if(!N)return null;var y=e.getUint32(N.dataOffset+12);if(y!==1701733217&&y!==1701733238)return null;N=Ze(e,N.offset+24+(y===1701733217?28:78),1936289382);if(!N)return null;y=Ze(e,N.offset+8,1935894637);if(!y||e.getUint32(y.offset+12)!==1667392371)return null;N=Ze(e,N.offset+8,1935894633);if(!N)return null;N=Ze(e,N.offset+8,1952804451);if(!N)return null;y=new Uint8Array(16);for(var w=0;w<16;w++)y[w]=e.getInt8(N.offset+16+w);return y};
K_=function(e,N){this.J=e;this.pos=0;this.start=N||0};
W$=function(e){return e.pos>=e.J.byteLength};
L_=function(e,N,y){var w=new K_(y);if(!Of(w,e))return!1;w=Rh(w);if(!GD(w,N))return!1;for(e=0;N;)N>>>=8,e++;N=w.start+w.pos;var E=Uf(w,!0);w=e+(w.start+w.pos-N)+E;w=w>9?BpM(w-9,8):BpM(w-2,1);e=N-e;y.setUint8(e++,236);for(N=0;N<w.length;N++)y.setUint8(e++,w[N]);return!0};
X3F=function(e){var N=new K_(e);N.qk();if(Of(N,[408125543,374648427,174,224]))N=Rh(N);else return null;for(var y=e=null;!W$(N);){var w=Uf(N,!1);if(w===21432)switch(sf(N)){default:e=0;break;case 1:e=1;break;case 3:e=2;break;case 15:e=255}else w===30320?y=Rh(N):ah(N)}if(!y)return null;for(var E,A=w=N=null;!W$(y);)switch(Uf(y,!1)){case 30321:if(sf(y)!==3)return null;break;case 30324:N=el(y);break;case 30323:A=el(y);break;case 30325:w=el(y);break;case 30322:E=Uf(y,!0);E=NZ(y,E);E=new DataView(E.buffer,
E.byteOffset,E.byteLength);break;default:ah(y)}return E?new lrJ(e,N,A,w,E):null};
Rh=function(e){var N=Uf(e,!0),y=e.J.byteOffset+e.pos;y=new DataView(e.J.buffer,y,Math.min(N,e.J.buffer.byteLength-y));y=new K_(y,e.start+e.pos);e.pos+=N;return y};
sf=function(e){for(var N=Uf(e,!0),y=w4(e),w=1;w<N;w++)y=y*256+w4(e);return y};
el=function(e){var N=Uf(e,!0),y=0;N===4?y=e.J.getFloat32(e.pos):N===8&&(y=e.J.getFloat64(e.pos));e.pos+=N;return y};
P$P=function(e){var N=Uf(e,!0);return P8(NZ(e,N))};
w4=function(e){return e.J.getUint8(e.pos++)};
Uf=function(e,N){var y=w4(e);if(y===1){for(N=y=0;N<7;N++)y=y*256+w4(e);return y}for(var w=128,E=0;E<6&&w>y;E++)y=y*256+w4(e),w*=128;return N?y-w:y};
ah=function(e){var N=Uf(e,!0);e.pos+=N};
d59=function(e){if(!GD(e,440786851,!0))return null;var N=e.pos;Uf(e,!1);var y=Uf(e,!0)+e.pos-N;e.pos=N+y;if(!GD(e,408125543,!1))return null;Uf(e,!0);if(!GD(e,357149030,!0))return null;var w=e.pos;Uf(e,!1);var E=Uf(e,!0)+e.pos-w;e.pos=w+E;if(!GD(e,374648427,!0))return null;var A=e.pos;Uf(e,!1);var T=Uf(e,!0)+e.pos-A,p=new Uint8Array(y+12+E+T),C=new DataView(p.buffer);p.set(new Uint8Array(e.J.buffer,e.J.byteOffset+N,y));C.setUint32(y,408125543);C.setUint32(y+4,33554431);C.setUint32(y+8,4294967295);
p.set(new Uint8Array(e.J.buffer,e.J.byteOffset+w,E),y+12);p.set(new Uint8Array(e.J.buffer,e.J.byteOffset+A,T),y+12+E);return p};
EM=function(e){var N=e.pos;e.pos=0;var y=1E6;Of(e,[408125543,357149030,2807729])&&(y=sf(e));e.pos=N;return y};
Irs=function(e,N){var y=e.pos;e.pos=0;if(e.J.getUint8(e.pos)!==160&&!Ad(e)||!GD(e,160))return e.pos=y,NaN;Uf(e,!0);var w=e.pos;if(!GD(e,161))return e.pos=y,NaN;Uf(e,!0);w4(e);var E=w4(e)<<8|w4(e);e.pos=w;if(!GD(e,155))return e.pos=y,NaN;w=sf(e);e.pos=y;return(E+w)*N/1E9};
Ad=function(e){if(!v6F(e)||!GD(e,524531317))return!1;Uf(e,!0);return!0};
v6F=function(e){if(e.qk()){if(!GD(e,408125543))return!1;Uf(e,!0)}return!0};
Of=function(e,N){for(var y=0;y<N.length;y++){if(!GD(e,N[y]))return!1;y!==N.length-1&&Uf(e,!0)}return!0};
GD=function(e,N,y){y=y===void 0?!1:y;if(W$(e))return!1;for(var w=e.pos;Uf(e,!1)!==N;)if(ah(e),w=e.pos,W$(e))return!1;y&&(e.pos=w);return!0};
BpM=function(e,N){N||(N=Math.ceil(Math.log(e+2)/Math.log(2)/7));for(var y=1<<8-N,w=[];w.length<N-1;)w.unshift(e%256),e=Math.floor(e/256);w.unshift(e|y);return w};
NZ=function(e,N){var y=new Uint8Array(e.J.buffer,e.J.byteOffset+e.pos,N);e.pos+=N;return y};
T4=function(e){this.tA=e;this.J={};this.url=""};
z03=function(e,N){var y=N.indexOf("?");if(y>0){var w=e0P(N.substring(y+1));g.oB(w,function(E,A){this.set(A,E)},e);
N=N.substring(0,y)}N=ak_(N);g.oB(N,function(E,A){this.set(A,E)},e)};
idM=function(e){var N=e.tA.nC(),y=[];g.oB(e.J,function(E,A){y.push(A+"="+E)});
if(!y.length)return N;var w=y.join("&");e=s0_(e.tA)?"&":"?";return N+e+w};
Jd=function(e,N){var y=new g.YE(N);(N=y.get("req_id"))&&e.set("req_id",N);g.oB(e.J,function(w,E){y.set(E,null)});
return y};
D5M=function(){this.j=this.N=this.J=this.timedOut=this.started=this.L=this.K=0};
p1=function(e){e.L=(0,g.iC)();e.started=0;e.timedOut=0;e.J=0};
C1=function(e,N){var y=e.started+e.J*4;N&&(y+=e.N);y=Math.max(0,y-3);return Math.pow(1.6,y)};
r4=function(e,N){e[N]||(e[N]=new D5M);return e[N]};
$a=function(e){this.D=this.G=this.L=this.N=0;this.U=this.Z=!1;this.J=e;this.K=e.clone()};
g6M=function(e,N,y){if(F9(e.J))return!1;var w=r4(y,lN(e.J));if(w.timedOut<1&&w.J<1)return!1;w=w.timedOut+w.J;e=Ya(e,N);y=r4(y,lN(e));return y.timedOut+y.J+0<w};
MZ=function(e,N,y){e=N?Ya(e,y):e.J;return new T4(e)};
Ya=function(e,N){N=N?N.DN:!1;e.j||(e.j=oh(e.K,N));return e.j};
lH=function(e,N,y){return lN(N?Ya(e,y):e.J)};
Fs=function(e,N,y,w){N.Z3&&(w===void 0?0:w)>1?N=N.Z3:(y=r4(y,lH(e,e.q2(N,y),N)),N=Math.max(e.L,y.timedOut)+N.hH*(e.N-e.L)+.25*e.G,N=N>3?1E3*Math.pow(1.6,N-3):0);return N===0?!0:e.D+N<(0,g.iC)()};
Vc1=function(e,N,y){e.J.set(N,y);e.K.set(N,y);e.j&&e.j.set(N,y)};
frP=function(e,N,y,w,E){++e.N;N&&++e.L;lN(y.tA).startsWith("redirector.")&&(e.J=e.K.clone(),delete e.j,w.DE&&delete E[lN(e.J)])};
Sl=function(e){return e?(e.itag||"")+";"+(e.lmt||0)+";"+(e.xtags||""):""};
oi=function(e,N,y,w){this.initRange=y;this.indexRange=w;this.J=null;this.K=!1;this.Z=0;this.j=this.d0=this.N=null;this.info=N;this.yl=new $a(e)};
bH=function(e,N){this.start=e;this.end=N;this.length=N-e+1};
hd=function(e){e=e.split("-");var N=Number(e[0]),y=Number(e[1]);if(!isNaN(N)&&!isNaN(y)&&e.length===2&&(e=new bH(N,y),!isNaN(e.start)&&!isNaN(e.end)&&!isNaN(e.length)&&e.length>0))return e};
cx=function(e,N){return new bH(e,e+N-1)};
tcn=function(e){return e.end==null?{start:String(e.start)}:{start:String(e.start),end:String(e.end)}};
ka=function(e){if(!e)return new bH(0,0);var N=Number(e.start);e=Number(e.end);if(!isNaN(N)&&!isNaN(e)&&(N=new bH(N,e),N.length>0))return N};
Bx=function(e,N,y,w,E,A,T,p,C,r,Y,M){w=w===void 0?"":w;this.type=e;this.J=N;this.range=y;this.source=w;this.KO=Y;this.clipId=M===void 0?"":M;this.G=[];this.L="";this.Ch=-1;this.U=this.D=0;this.L=w;this.Ch=E>=0?E:-1;this.startTime=A||0;this.duration=T||0;this.N=p||0;this.K=C>=0?C:this.range?this.range.length:NaN;this.j=this.range?this.N+this.K===this.range.length:r===void 0?!!this.K:r;this.range?(this.o2=this.startTime+this.duration*this.N/this.range.length,this.Z=this.duration*this.K/this.range.length,
this.XT=this.o2+this.Z):ueP(this)};
ueP=function(e){e.o2=e.startTime;e.Z=e.duration;e.XT=e.o2+e.Z};
qg9=function(e,N,y){var w=!(!N||N.J!==e.J||N.type!==e.type||N.Ch!==e.Ch);return y?w&&!!N&&(e.range&&N.range?N.range.end===e.range.end:N.range===e.range)&&N.N+N.K===e.N+e.K:w};
Xs=function(e){return e.type===1||e.type===2};
Px=function(e){return e.type===3||e.type===6};
d4=function(e,N){return e.J===N.J?e.range&&N.range?e.range.start+e.N+e.K===N.range.start+N.N:e.Ch===N.Ch?e.N+e.K===N.N:e.Ch+1===N.Ch&&N.N===0&&e.j:!1};
x5_=function(e,N){return e.Ch!==N.Ch&&N.Ch!==e.Ch+1||e.type!==N.type?!1:d4(e,N)?!0:Math.abs(e.o2-N.o2)<=1E-6&&e.Ch===N.Ch?!1:Zd_(e,N)};
Zd_=function(e,N){return d4(e,N)||Math.abs(e.XT-N.o2)<=1E-6||e.Ch+1===N.Ch&&N.N===0&&e.j?!0:!1};
Ii=function(e){return e.Ch+(e.j?1:0)};
j25=function(e){e.length===1||g.Ip(e,function(y){return!!y.range});
for(var N=1;N<e.length;N++);N=e[e.length-1];return new bH(e[0].range.start+e[0].N,N.range.start+N.N+N.K-1)};
n6H=function(e){for(var N=1;N<e.length;N++)if(!d4(e[N-1],e[N]))return!1;return!0};
Q2n=function(e){var N=0;e=g.c(e);for(var y=e.next();!y.done;y=e.next())N+=y.value.range.length;return N};
vx=function(e){var N={};N.itag=e.J.info.itag;N.type=""+e.type;N.src=""+e.source;N.segsrc=e.L;N.seg=String(e.Ch);e.range&&(N.range=e.range.start+e.N+"-"+(e.range.start+e.N+e.K-1));N.time=e.o2.toFixed(1)+"-"+(e.o2+e.Z).toFixed(1);N.off=String(e.N);N.len=String(e.K);e.j&&(N.end="1");e.eY()&&(N.eos="1");e.clipId&&(N.cid=e.clipId);return N};
m50=function(e){return new Bx(e.type,e.J,e.range,"getEmptyStubBefore"+e.L,e.Ch,e.startTime,0,e.N,0)};
HdE=function(e){return new Bx(e.type,e.J,e.range,"getEmptyStubAfter"+e.L,e.Ch,e.startTime+e.duration,0,e.N+e.K,0)};
Ku0=function(e,N,y,w){return new Bx(e.type,e.J,e.range,"reslice"+e.L,e.Ch,e.startTime,e.duration,N,y,w,e.KO,e.clipId)};
Wu5=function(e,N){return e.J!==N.J?!1:e.range&&N.range?e.range.start+e.N>=N.range.start+N.N&&e.range.start+e.N+e.K<=N.range.start+N.N+N.K:e.Ch===N.Ch&&e.N>=N.N&&(e.N+e.K<=N.N+N.K||N.j)};
Od1=function(e,N){return e.J!==N.J?!1:e.type===4&&N.type===3&&e.J.Yz()?(e=e.J.y5(e),DR(e,function(y){return Od1(y,N)})):e.Ch===N.Ch&&!!N.K&&N.N+N.K>e.N&&N.N+N.K<=e.N+e.K};
z4=function(e,N){var y=N.Ch;e.L="updateWithSegmentInfo";e.Ch=y;if(e.startTime!==N.startTime||e.duration!==N.duration)e.startTime=N.startTime+e.D,e.duration=N.duration,ueP(e)};
iH=function(e,N){var y=this;this.QB=e;this.j=this.J=null;this.L=this.Hf=NaN;this.q2=this.requestId=null;this.lk={UxB:function(){return y.range}};
this.yl=e[0].J.yl;this.N=N||"";this.QB[0].range&&this.QB[0].K>0&&(n6H(e)?(this.range=j25(e),this.K=this.range.length):(this.range=this.QB[this.QB.length-1].range,this.K=Q2n(e)))};
D$=function(e){return!Xs(e.QB[e.QB.length-1])};
g4=function(e){return e.QB[e.QB.length-1].type===4};
g.Vt=function(e,N,y){y=e.q2===null?e.yl.q2(N,y,e.QB[0].type):e.q2;if(e.J){N=y?oh(e.J,N.DN):e.J;var w=new T4(N);w.get("alr")||w.set("alr","yes");e.N&&z03(w,e.N)}else/http[s]?:\/\//.test(e.N)?w=new T4(new g.YE(e.N)):(w=MZ(e.yl,y,N),e.N&&z03(w,e.N));(N=e.range)?w.set("range",N.toString()):e.QB[0].J.SJ()&&e.QB.length===1&&e.QB[0].N&&w.set("range",e.QB[0].N+"-");e.requestId&&w.set("req_id",e.requestId);isNaN(e.Hf)||w.set("headm",e.Hf.toString());isNaN(e.L)||w.set("mffa",e.L+"ms");e.urlParams&&g.oB(e.urlParams,
function(E,A){w.set(A,E)});
return w};
R03=function(e){if(e.range)return e.K;e=e.QB[0];return Math.round(e.Z*e.J.info.JM)};
GS9=function(e,N){return Math.max(0,e.QB[0].o2-N)};
f1=function(e,N,y,w,E,A){A=A===void 0?0:A;oi.call(this,e,N,w,void 0);this.L=y;this.j1=A;this.index=E||new g.c$};
U55=function(e,N,y,w,E){this.Ch=e;this.startSecs=N;this.Vj=y;this.J=w||NaN;this.N=E||NaN};
td=function(e,N,y){for(;e;e=e.parentNode)if(e.attributes&&(!y||e.nodeName===y)){var w=e.getAttribute(N);if(w)return w}return""};
uH=function(e,N){for(;e;e=e.parentNode){var y=e.getElementsByTagName(N);if(y.length>0)return y[0]}return null};
Lu1=function(e){if(!e)return 0;var N=e.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return N?(Number(N[2])|0)*3600+(Number(N[4])|0)*60+(Number(N[6])|0):Number(e)|0};
s29=function(e){return e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?e+"Z":e};
qZ=function(){this.J=[];this.N=null;this.Z=0;this.K=[];this.L=!1;this.G="";this.j=-1};
arE=function(e){var N=e.K;e.K=[];return N};
ez9=function(){this.j=[];this.J=null;this.N={};this.K={}};
EHH=function(e,N){var y=[];N=Array.from(N.getElementsByTagName("SegmentTimeline"));N=g.c(N);for(var w=N.next();!w.done;w=N.next()){w=w.value;var E=w.parentNode.parentNode,A=null;E.nodeName==="Period"?A=NOJ(e):E.nodeName==="AdaptationSet"?(E=E.getAttribute("id")||E.getAttribute("mimetype")||"",A=yX5(e,E)):E.nodeName==="Representation"&&(E=E.getAttribute("id")||"",A=wI1(e,E));if(A==null)return;A.update(w);g.Nd(y,arE(A))}g.Nd(e.j,y);yVM(e.j,function(T){return T.startSecs*1E3+T.J})};
AXE=function(e){e.J&&(e.J.J=[]);g.oB(e.N,function(N){N.J=[]});
g.oB(e.K,function(N){N.J=[]})};
NOJ=function(e){e.J||(e.J=new qZ);return e.J};
yX5=function(e,N){e.N[N]||(e.N[N]=new qZ);return e.N[N]};
wI1=function(e,N){e.K[N]||(e.K[N]=new qZ);return e.K[N]};
xa=function(e){var N=e===void 0?{}:e;e=N.j1===void 0?0:N.j1;var y=N.mA===void 0?!1:N.mA;var w=N.pI===void 0?0:N.pI;var E=N.L$===void 0?0:N.L$;var A=N.ZK===void 0?Infinity:N.ZK;var T=N.TR===void 0?0:N.TR;var p=N.Ta===void 0?!1:N.Ta;N=N.Ym===void 0?!1:N.Ym;g.c$.call(this);this.M3=this.B2=-1;this.eV=e;this.pI=w;this.mA=y;this.L$=E;this.ZK=A;this.TR=T;((this.Ta=p)||isFinite(A)&&this.ZK>0)&&y&&Z$&&(this.N=!1,this.K="postLive");this.Ym=N};
jl=function(e,N){return JO(e.segments,function(y){return N-y.Ch})};
n1=function(e,N,y){y=y===void 0?{}:y;f1.call(this,e,N,"",void 0,void 0,y.j1||0);this.index=new xa(y)};
Qt=function(e,N,y){oi.call(this,e,N);this.L=y;e=this.index=new g.c$;e.N=!1;e.K="d"};
TO9=function(e,N,y){var w=e.index.tK(N),E=e.index.getStartTime(N),A=e.index.getDuration(N);y?A=y=0:y=e.info.JM*A;return new iH([new Bx(3,e,void 0,"otfCreateRequestInfoForSegment",N,E,A,0,y)],w)};
JXF=function(e,N){if(!e.index.isLoaded()){var y=[],w=N.j;N=N.L.split(",").filter(function(Y){return Y.length>0});
for(var E=0,A=0,T=0,p=/^(\d+)/,C=/r=(\d+)/,r=0;r<w;r++){if(T<=0)if(T=N.shift(),A=(A=p.exec(T))?+A[1]/1E3:0)T=(T=C.exec(T))?+T[1]:0,T+=1;else return;y.push(new hi(r,E,A,NaN,"sq/"+(r+1)));E+=A;T--}e.index.append(y)}};
mv=function(e,N){this.info=e;this.J=N;this.N=null;this.j=this.K=-1;this.timestampOffset=0;this.isLocked=this.Z=!1;this.L=this.info.J.hw()&&!this.info.N};
pIJ=function(e,N){e.J.getLength();N=Math.min(N,e.info.K);var y=e.J.split(N),w=y.h3;y=new mv(new Bx(e.info.type,e.info.J,e.info.range,e.info.L,e.info.Ch,e.info.startTime,e.info.duration,e.info.N,N,!1,e.info.KO,e.info.clipId),y.aA);y.j=e.j;y.K=e.K;N=new mv(new Bx(e.info.type,e.info.J,e.info.range,e.info.L,e.info.Ch,e.info.startTime,e.info.duration,e.info.N+N,e.info.K-N,e.info.j,e.info.KO,e.info.clipId),w);N.j=e.j;N.K=e.K;return[y,N]};
g.Hx=function(e,N,y){var w;if(!(w=e.isLocked||N.isLocked||!d4(e.info,N.info)||e.info.j)){if(y=y===void 0?!1:y)y=e.J,w=N.J,y=!(w.SV.length?d6_(y,w.SV[0]):1);w=y}if(w)return null;y=new Bx(e.info.type,e.info.J,e.info.range,e.info.L,e.info.Ch,e.info.startTime,e.info.duration,e.info.N,e.info.K,e.info.j,e.info.KO,e.info.clipId);w=N.info;y.K+=w.K;y.range&&(y.Z+=w.Z);y.XT=w.XT;y.j=w.j;w=new oR;bI(w,e.J);bI(w,N.J);y=new mv(y,w);y.N=N.N||e.N;y.K=e.K!==-1?e.K:N.K;y.j=e.j!==-1?e.j:N.j;return y};
g.K1=function(e){g.R2(e.info.J.info)||e.info.J.info.lm();if(e.K!==-1)return e.K;if(e.N&&rGJ(e.N))return e.K=rGJ(e.N),e.K;if(g.R2(e.info.J.info)){var N=e.iB();for(var y=e.info.J.J,w=NaN,E=NaN,A=0;xE(N,A);){var T=jd(N,A);T.type===1936286840?E=T.data.getUint32(T.dataOffset+8):T.type===1836476516?E=g.uN(T):T.type===1952867444&&isNaN(w)&&(w=g.Qo(T));A=n_(T.type)?A+8:A+T.size}!E&&y&&(E=qa(y));N=w/E}else N=new K_(e.iB()),y=e.L?N:new K_(new DataView(e.info.J.J.buffer)),w=EM(y),y=N.pos,N.pos=0,Ad(N)?GD(N,
231)?(w=sf(N)*w/1E9,N.pos=y,N=w):(N.pos=y,N=NaN):(N.pos=y,N=NaN);e.K=N||e.info.o2;return e.K};
rXP=function(e,N){e.timestampOffset>0&&(N-=e.timestampOffset);var y=g.K1(e)+N;CUJ(e,y);e.timestampOffset=N};
CUJ=function(e,N){g.R2(e.info.J.info)||e.info.J.info.lm();e.K=N;if(g.R2(e.info.J.info)){var y=e.iB();e=e.info.J.J;for(var w=NaN,E=NaN,A=0;xE(y,A);){var T=jd(y,A);isNaN(w)&&(T.type===1936286840?w=T.data.getUint32(T.dataOffset+8):T.type===1836476516&&(w=g.uN(T)));if(T.type===1952867444){!w&&e&&(w=qa(e));var p=g.Qo(T);isNaN(E)&&(E=Math.round(N*w)-p);var C=T;p+=E;if(C.data.getUint8(C.dataOffset)){var r=C.data;C=C.dataOffset+4;r.setUint32(C,Math.floor(p/4294967296));r.setUint32(C+4,p&4294967295)}else C.data.setUint32(C.dataOffset+
4,p)}A=n_(T.type)?A+8:A+T.size}return!0}y=new K_(e.iB());e=e.L?y:new K_(new DataView(e.info.J.J.buffer));w=EM(e);e=y.pos;y.pos=0;if(Ad(y)&&GD(y,231))if(E=Uf(y,!0),N=Math.floor(N*1E9/w),Math.ceil(Math.log(N)/Math.log(2)/8)>E)N=!1;else{for(w=E-1;w>=0;w--)y.J.setUint8(y.pos+w,N&255),N>>>=8;y.pos=e;N=!0}else N=!1;return N};
OM=function(e,N){N=N===void 0?!1:N;var y=Wx(e);e=N?0:e.info.Z;return y||e};
Wx=function(e){g.R2(e.info.J.info)||e.info.J.info.lm();if(e.N&&e.info.type===6)return e.N.j1;if(g.R2(e.info.J.info)){var N=e.iB();var y=0;N=g.H$(N,1936286840);N=g.c(N);for(var w=N.next();!w.done;w=N.next())w=o69(w.value),y+=w.vx[0]/w.timescale;y=y||NaN;if(!(y>=0))a:{y=e.iB();N=e.info.J.J;for(var E=w=0,A=0;xE(y,w);){var T=jd(y,w);if(T.type===1836476516)E=g.uN(T);else if(T.type===1836019558){!E&&N&&(E=qa(N));if(!E){y=NaN;break a}var p=Ze(T.data,T.dataOffset,1953653094),C=p;p=E;var r=Ze(C.data,C.dataOffset,
1952868452);C=Ze(C.data,C.dataOffset,1953658222);var Y=P$(r);P$(r);Y&2&&P$(r);r=Y&8?P$(r):0;var M=P$(C),l=M&1;Y=M&4;var F=M&256,S=M&512,k=M&1024;M&=2048;var X=dD(C);l&&P$(C);Y&&P$(C);for(var d=l=0;d<X;d++){var v=F?P$(C):r;S&&P$(C);Y&&d===0||!k||P$(C);M&&P$(C);l+=v}A+=l/p}w=n_(T.type)?w+8:w+T.size}y=A||NaN}y||g.uA(new g.Gh("Missing duration while parsing bmff",e.info.O2()))}else y=new K_(e.iB()),e=e.L?y:new K_(new DataView(e.info.J.J.buffer)),y=Irs(y,EM(e));return y};
g.$$J=function(e){if(e.info.J.I8())return e.info.duration;e.j===-1&&(e.j=Wx(e));return e.j||e.info.duration};
Y3P=function(e){var N=e.iB();var y=(y=g.ti(N,0,1936286840))?y.data.getUint32(y.dataOffset+8):NaN;isNaN(y)&&(e=e.info.J.J,y=(N=g.ti(N,0,1836476516))?g.uN(N):e?qa(e):NaN);return y};
Mi3=function(e){return e.info.J.info.lm()&&e.J.getUint8(0)===160};
lo0=function(e){if(!e.N){g.R2(e.info.J.info)||e.info.J.info.lm();if(g.R2(e.info.J.info))var N=g.h05(e.iB());else{N=new K_(e.iB());var y=N.pos;N.pos=0;var w=null,E=null;if(Of(N,[408125543,307544935]))for(var A=N.pos+Uf(N,!0);N.pos<A;)if(Uf(N,!1)!==29555)ah(N);else for(var T=N.pos+Uf(N,!0);N.pos<T;)if(Uf(N,!1)!==26568)ah(N);else for(var p=N.pos+Uf(N,!0);N.pos<p;){var C=Uf(N,!1);if(C===17543){if(C=P$P(N),C=f_(C))if(E)for(var r=g.c(Object.keys(C)),Y=r.next();!Y.done;Y=r.next())Y=Y.value,E[Y]=C[Y];else E=
C}else C===17827?(C=P$P(N),w||(w=C)):ah(N)}N.pos=y;N=E?new gD(E,w):null}e.N=N}};
Fa5=function(e){if(g.R2(e.info.J.info))mh(e.iB(),1836019574),mh(e.iB(),1718909296);else{var N=new K_(e.iB());v6F(N);GD(N,524531317,!0);e.J=e.J.split(N.start+N.pos).h3}e.L=!1};
Ri=function(e){if(!e.Z){if(g.R2(e.info.J.info)){var N=e.iB();var y=Ze(N,0,1836019574);if(y){y=y.offset+y.size;var w=new Uint8Array(y);w.set(new Uint8Array(N.buffer,N.byteOffset,y));N=w}else N=null}else N=d59(new K_(e.iB()));N&&(e.info.J.J=N,e.Z=!0)}};
g.G4=function(){this.count=0;this.J=1;this.N=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)};
S31=function(e,N){return N+1<e.count||e.N?e.offsets[N+1]-e.offsets[N]:-1};
UM=function(e){e.offsets.length<e.count+1&&e.resize(e.offsets.length*2)};
L1=function(e,N,y,w){oi.call(this,e,N,y,w);var E=this;this.L=null;this.lk={eS:function(A,T,p,C){return E.eS(A,T,p,C)}};
this.index=new g.G4};
oH5=function(e,N,y,w,E,A){this.displayName=e;this.vssId=N;this.languageCode=y;this.kind=w===void 0?"":w;this.xtags=E===void 0?"":E;this.id=A===void 0?"":A};
hz0=function(e){if(e=e.colorInfo)if(e=e.transferCharacteristics)return bh1[e];return null};
g.sM=function(e,N,y){this.name=e;this.id=N;this.isDefault=y};
cXP=function(e){return ai(function(N,y){return g.VN(N,y,4,1E3)},e,{format:"RAW",
method:"GET",withCredentials:!0})};
g.k69=function(e){var N;e.responseType&&e.responseType!=="text"?e.responseType==="arraybuffer"&&(N=P8(new Uint8Array(e.response))):N=e.responseText;return!N||N.length>2048?"":N.indexOf("https://")===0?N:""};
ai=function(e,N,y){N.match(BO_);return e(N,y).then(function(w){var E=g.k69(w.xhr);return E?ai(e,E,y):w.xhr})};
wt=function(e,N,y){e=e===void 0?"":e;N=N===void 0?null:N;y=y===void 0?!1:y;g.pT.call(this);var w=this;this.sourceUrl=e;this.isLivePlayback=y;this.Wk=this.duration=0;this.isPremiere=this.Ta=this.j=this.isLiveHeadPlayable=this.isLive=this.N=!1;this.ZK=this.L$=0;this.isOtf=this.Cx=!1;this.Et=(0,g.iC)();this.Ng=Infinity;this.J={};this.K=new Map;this.state=this.Ie=0;this.timeline=null;this.isManifestless=!1;this.qg=[];this.Z=null;this.l9=0;this.L="";this.i9=NaN;this.aq=this.pX=this.timestampOffset=this.G=
0;this.zg=this.gf=NaN;this.PY=0;this.Bk=this.D=!1;this.Rq=[];this.Zl={};this.Kh=NaN;this.lk={bzh:function(p){eI(w,p)}};
var E;this.Ut=(E=N)==null?void 0:E.gP("html5_use_network_error_code_enums");XI5=!!N&&N.gP("html5_modern_vp9_mime_type");var A;NX=!((A=N)==null||!A.gP("html5_enable_flush_during_seek"))&&g.O8();var T;yY=!((T=N)==null||!T.gP("html5_enable_reset_audio_decoder"))&&g.O8()};
PUn=function(e){return g.c4(e.J,function(N){return!!N.info.video&&N.info.video.J>=2160})};
Ov0=function(e){return g.c4(e.J,function(N){return!!N.info.video&&N.info.video.isHdr()})};
Ai=function(e){return g.c4(e.J,function(N){return!!N.info.BG})};
g.d$F=function(e){return g.c4(e.J,function(N){return Ug(N.info)})};
Ios=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.projectionType==="EQUIRECTANGULAR":!1})};
vHs=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
zzn=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.projectionType==="MESH":!1})};
ihP=function(e){return g.c4(e.J,function(N){return N.info.video?N.info.video.stereoLayout===1:!1})};
D$_=function(e){return jF5(e.J,function(N){return N.info.video?N.ix():!0})};
yo=function(e){return g.c4(e.J,function(N){return F9(N.yl.J)})};
eI=function(e,N){e.J[N.info.id]=N;e.K.set(Sl(g.Ld(N.info,e.Cx)),N)};
gHM=function(e,N){return Sl({itag:N.itag,lmt:e.Cx?0:N.lmt||0,xtags:N.xtags})};
TE=function(e,N,y){y=y===void 0?0:y;var w=e.mimeType||"",E=e.itag;var A=e.xtags;E=E?E.toString():"";A&&(E+=";"+A);A=E;if(a2(w)){var T=e.width||640;E=e.height||360;var p=e.fps,C=e.qualityLabel,r=e.colorInfo,Y=e.projectionType,M;e.stereoLayout&&(M=Vis[e.stereoLayout]);var l=hz0(e)||void 0;if(r==null?0:r.primaries)var F=fon[r.primaries]||void 0;T=new Zr(T,E,p,Y,M,void 0,C,l,F);w=Eh(w,T,nd[e.itag||""]);NX&&(w+="; enableflushduringseek=true");yY&&(w+="; enableresetaudiodecoder=true")}var S;if(sg(w)){var k=
e.audioSampleRate;M=e.audioTrack;k=new tG(k?+k:void 0,e.audioChannels,e.spatialAudioType,e.isDrc,e.loudnessDb,e.trackAbsoluteLoudnessLkfs,e.audioQuality||"AUDIO_QUALITY_UNKNOWN");M&&(F=M.displayName,E=M.id,M=M.audioIsDefault,F&&(S=new g.sM(F,E||"",!!M)))}var X;e.captionTrack&&(C=e.captionTrack,M=C.displayName,F=C.vssId,E=C.languageCode,p=C.kind,C=C.id,M&&F&&E&&(X=new oH5(M,F,E,p,e.xtags,C)));M=Number(e.bitrate)/8;F=Number(e.contentLength);E=Number(e.lastModified);C=e.drmFamilies;p=e.type;y=y&&F?F/
y:0;e=Number(e.approxDurationMs);if(N&&C){var d={};C=g.c(C);for(r=C.next();!r.done;r=C.next())(r=Am[r.value])&&(d[r]=N[r])}return new QI(A,w,{audio:k,video:T,Vl:S,BG:d,JM:M,RX:y,contentLength:F,lastModified:E,captionTrack:X,streamType:p,approxDurationMs:e})};
Jm=function(e,N,y){y=y===void 0?0:y;var w=e.type;var E=e.itag;var A=e.xtags;A&&(E=e.itag+";"+A);if(a2(w)){var T=(e.size||"640x360").split("x");T=new Zr(+T[0],+T[1],+e.fps,e.projection_type,+e.stereo_layout,void 0,e.quality_label,e.eotf,e.primaries);w=Eh(w,T,nd[e.itag]);NX&&(w+="; enableflushduringseek=true");yY&&(w+="; enableresetaudiodecoder=true")}var p;if(sg(w)){var C=new tG(+e.audio_sample_rate||void 0,+e.audio_channels||0,e.spatial_audio_type,!!e.drc);e.name&&(p=new g.sM(e.name,e.audio_track_id,
e.isDefault==="1"))}var r;e.caption_display_name&&e.caption_vss_id&&e.caption_language_code&&(r=new oH5(e.caption_display_name,e.caption_vss_id,e.caption_language_code,e.caption_kind,e.xtags,e.caption_id));A=Number(e.bitrate)/8;var Y=Number(e.clen),M=Number(e.lmt);y=y&&Y?Y/y:0;if(N&&e.drm_families){var l={};for(var F=g.c(e.drm_families.split(",")),S=F.next();!S.done;S=F.next())S=S.value,l[S]=N[S]}return new QI(E,w,{audio:C,video:T,Vl:p,BG:l,JM:A,RX:y,contentLength:Y,lastModified:M,captionTrack:r,
streamType:e.stream_type,approxDurationMs:Number(e.approx_duration_ms)})};
tiF=function(e){return DR(e,function(N){return"FORMAT_STREAM_TYPE_OTF"===N.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
uQH=function(e){return DR(e,function(N){return"FORMAT_STREAM_TYPE_OTF"===N.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
q35=function(e,N){return e.timeline?yh(e.timeline.j,N):e.qg.length?yh(e.qg,N):[]};
pC=function(e,N,y){N=N===void 0?"":N;y=y===void 0?"":y;e=new g.YE(e,!0);e.set("alr","yes");y&&(y=F$E(decodeURIComponent(y)),e.set(N,encodeURIComponent(y)));return e};
nHE=function(e,N){var y=td(N,"id");y=y.replace(":",";");var w=td(N,"mimeType"),E=td(N,"codecs");w=E?w+'; codecs="'+E+'"':w;E=Number(td(N,"bandwidth"))/8;var A=Number(uH(N,"BaseURL").getAttribute(e.L+":contentLength")),T=e.duration&&A?A/e.duration:0;if(a2(w)){var p=Number(td(N,"width"));var C=Number(td(N,"height")),r=Number(td(N,"frameRate")),Y=ZhM(td(N,e.L+":projectionType"));a:switch(td(N,e.L+":stereoLayout")){case "layout_left_right":var M=1;break a;case "layout_top_bottom":M=2;break a;default:M=
0}p=new Zr(p,C,r,Y,M)}if(sg(w)){var l=Number(td(N,"audioSamplingRate"));var F=Number(td(N.getElementsByTagName("AudioChannelConfiguration")[0],"value"));C=x$5(td(N,e.L+":spatialAudioType"));l=new tG(l,F,C);a:{F=td(N,"lang")||"und";if(C=uH(N,"Role"))if(Y=td(C,"value")||"",g.P4(j8J,Y)){C=F+"."+j8J[Y];r=Y==="main";e=td(N,e.L+":langName")||F+" - "+Y;F=new g.sM(e,C,r);break a}F=void 0}}if(N=uH(N,"ContentProtection"))if(N.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var S={};for(N=
N.firstChild;N!=null;N=N.nextSibling)N instanceof Element&&/SystemURL/.test(N.nodeName)&&(e=N.getAttribute("type"),C=N.textContent,e&&C&&(S[e]=C.trim()))}else S=void 0;return new QI(y,w,{audio:l,video:p,Vl:F,BG:S,JM:E,RX:T,contentLength:A})};
ZhM=function(e){switch(e){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"}};
x$5=function(e){switch(e){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"}};
m$F=function(e,N){N=N===void 0?"":N;e.state=1;e.Et=(0,g.iC)();return cXP(N||e.sourceUrl).then(function(y){if(!e.Ss()){e.Ie=y.status;y=y.responseText;var w=new DOMParser;y=OK(w,gVH(y),"text/xml").getElementsByTagName("MPD")[0];e.Ng=Lu1(td(y,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(y.attributes){w=g.c(y.attributes);for(var E=w.next();!E.done;E=w.next())if(E=E.value,E.value==="http://youtube.com/yt/2012/10/10"){w=E.name.split(":")[1];break b}}w=""}e.L=w;e.isLive=e.Ng<Infinity&&e.isLivePlayback;e.Wk=
Number(td(y,e.L+":earliestMediaSequence"))||0;if(w=Date.parse(s29(td(y,e.L+":mpdResponseTime"))))e.l9=((0,g.iC)()-w)/1E3;e.isLive&&y.getElementsByTagName("SegmentTimeline").length<=0||g.Ip(y.getElementsByTagName("Period"),e.i$P,e);e.state=2;e.publish("loaded");Q8E(e)}return e}).On(function(y){if(y instanceof DJ){var w=y.xhr;
e.Ie=w.status}e.state=3;e.publish("loaderror");return oD(w)})};
Hh9=function(e,N,y){return m$F(new wt(e,N,y),e)};
CC=function(e){return e.isLive&&(0,g.iC)()-e.Et>=e.Ng};
KaJ=function(e){e.Z&&e.Z.stop()};
Q8E=function(e){var N=e.Ng;isFinite(N)&&(CC(e)?e.refresh():(N=Math.max(0,e.Et+N-(0,g.iC)()),e.Z||(e.Z=new g.e6(e.refresh,N,e),g.Q(e,e.Z)),e.Z.start(N)))};
Wa9=function(e){e=e.J;for(var N in e){var y=e[N].index;if(y.isLoaded())return y.vY()+1}return 0};
rt=function(e){return e.pX?e.pX-(e.G||e.timestampOffset):0};
$_=function(e){return e.aq?e.aq-(e.G||e.timestampOffset):0};
Y_=function(e){if(!isNaN(e.i9))return e.i9;var N=e.J,y;for(y in N){var w=N[y].index;if(w.isLoaded()&&!Ug(N[y].info)){N=0;for(y=w.Jx();y<=w.vY();y++)N+=w.getDuration(y);N/=w.Tz();N=Math.round(N/.5)*.5;w.Tz()>10&&(e.i9=N);return N}if(e.isLive&&(w=N[y],w.j1))return w.j1}return NaN};
Oh_=function(e,N){e=QF9(e.J,function(w){return w.index.isLoaded()});
if(!e)return NaN;e=e.index;var y=e.zI(N);return e.getStartTime(y)===N?N:y<e.vY()?e.getStartTime(y+1):NaN};
Rz9=function(e,N){if(!e.J["0"]){var y=new QI("0","fakesb",{video:new Zr(0,0,0,void 0,void 0,"auto")});e.J["0"]=N?new f1(new g.YE("http://www.youtube.com/videoplayback"),y,"fake"):new L1(new g.YE("http://www.youtube.com/videoplayback"),y,new bH(0,0),new bH(0,0))}};
MX=function(e){if(e.isManifestless)for(var N in e.J)e.J[N].index.segments=[]};
l2=function(e,N,y){for(var w in e.J){var E=Ug(e.J[w].info)||e.J[w].info.gx();if(y===E&&(E=e.J[w].index)!=null){var A=jl(E,N);A>=0&&E.segments.splice(A,1)}}};
G6J=function(e){for(var N in e.J)Ug(e.J[N].info)||AGH(e.J[N].index,Infinity)};
Fu=function(e,N,y){for(var w in e.J){var E=e.J[w].index,A=N,T=y;E.mA&&(A&&(E.B2=Math.max(E.B2,A)),T&&(E.M3=Math.max(E.M3||0,T)))}y&&(e.Kh=y/1E3)};
U$M=function(e){e.aq=0;e.pX=0;e.PY=0};
SI=function(e){return e.Bk&&e.isManifestless?e.isLiveHeadPlayable:e.isLive};
Eh=function(e,N,y){oI===null&&(oI=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(XI5&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return oI||y!=="9"&&y!=="("?oI||y!=="9h"&&y!=="(h"||(e='video/webm; codecs="vp9.2"'):e='video/webm; codecs="vp9"',e;if(!oI&&!b2||e!=='video/webm; codecs="vp9"'&&e!=='video/webm; codecs="vp9.2"')return e;
y="00";var w="08",E="01",A="01",T="01";e==='video/webm; codecs="vp9.2"'&&(y="02",w="10",N.primaries==="bt2020"&&(T=E="09"),N.N==="smpte2084"&&(A="16"),N.N==="arib-std-b67"&&(A="18"));return'video/webm; codecs="'+["vp09",y,"51",w,"01",E,A,T,"00"].join(".")+'"'};
cU=function(e,N,y){e=""+e+(N>49?"p60":N>32?"p48":"");N=DM()[e];if(N!=null&&N>0)return N;N=hm.get(e);if(N!=null&&N>0)return N;y=y==null?void 0:y.get(e);return y!=null&&y>0?y:8192};
LaE=function(e){this.Ot=e;this.LX=this.RY=this.Zl=this.L=this.j=this.Kh=this.dT=this.Wk=this.qg=!1;this.G=this.Z=0;this.Dl=!1;this.l9=!0;this.VB=!1;this.G4=0;this.Ej=this.Rq=!1;this.U2=!0;this.Bk=this.Et=!1;this.J={};this.PY=this.disableAv1=this.a9=this.jp=this.Kx=this.SR=this.N=this.U=!1;this.YO=this.Ot.T("html5_disable_aac_preference");this.jn=Infinity;this.aq=0;this.pX=this.Ot.B9();this.Y_=this.Ot.experiments.gP("html5_enable_vp9_fairplay");this.jN=this.Ot.T("html5_force_av1_for_testing");this.Ut=
g.Y2(this.Ot.experiments,"html5_av1_ordinal_cap");this.DD=this.Ot.T("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.CC=this.Ot.T("html5_account_onesie_format_selection_during_format_filter");this.JM=g.Y2(this.Ot.experiments,"html5_max_byterate");this.D=this.Ot.T("html5_sunset_aac_high_codec_family");this.i9=this.Ot.T("html5_sunset_aac_high_codec_family");this.Xz=this.Ot.T("html5_enable_iamf_audio");this.NK=this.Ot.experiments.gP("html5_allow_capability_merge");this.FZ=this.Ot.T("html5_log_format_filter_rejection_reason_as_string");
this.im=this.Ot.T("html5_prefer_vp9_sfr")};
ReH=function(e){if(e.Wk)return["f"];var N="9h 9 h 8 (h ( H *".split(" ");e.Rq&&(N.unshift("1"),N.unshift("1h"));e.RY&&N.unshift("h");e.Ng&&(N=(s8_[e.Ng]||[e.Ng]).concat(N));return N};
Q0F=function(e){var N=["o","a","A"];e.aq===1&&(e.Kh&&(N=["m","M"].concat(N)),e.j&&(N=["mac3","MAC3"].concat(N)),e.L&&(N=["meac3","MEAC3"].concat(N)),e.Xz&&(N=["i","I"].concat(N)));e.qg&&(N=["so","sa"].concat(N));!e.LX||e.Zl||e.K||e.YO||N.unshift("a");e.dT&&!e.D&&N.unshift("ah");e.K&&(N=(s8_[e.K]||[e.K]).concat(N));return N};
k_=function(e,N,y,w){N=N===void 0?{}:N;if(w===void 0?0:w)return N.disabled=1,0;if(rD(e.L,$E.AV1_CODECS)&&rD(e.L,$E.HEIGHT)&&rD(e.L,$E.BITRATE))return N.isCapabilityUsable=1,8192;try{var E=PFH();if(E)return N.localPref=E}catch(p){}w=1080;E=navigator.hardwareConcurrency;E<=2&&(w=480);N.coreCount=E;if(E=g.Y2(e.experiments,"html5_default_av1_threshold"))w=N["default"]=E;!e.T("html5_disable_av1_arm_check")&&SH3()&&(N.isArm=1,w=240);if(e=e.L.Kh)N.mcap=e,w=Math.max(w,e);if(y){var A,T;if(e=(A=y.videoInfos.find(function(p){return Kd(p)}))==
null?void 0:(T=A.N)==null?void 0:T.powerEfficient)w=8192,N.isEfficient=1;
y=y.videoInfos[0].video;A=Math.min(cU("1",y.fps),cU("1",30));N.perfCap=A;w=Math.min(w,A);y.isHdr()&&!e&&(N.hdr=1,w*=.75)}else y=cU("1",30),N.perfCap30=y,w=Math.min(w,y),y=cU("1",60),N.perfCap60=y,w=Math.min(w,y);return N.av1Threshold=w};
BU=function(e,N,y,w){this.flavor=e;this.keySystem=N;this.N=y;this.experiments=w;this.J={};this.Ut=this.keySystemAccess=null;this.zd=this.c5=-1;this.Tg=null;this.K=!!w&&w.gP("edge_nonprefixed_eme");w&&w.gP("html5_enable_vp9_fairplay")};
PU=function(e){return e.K?!1:!e.keySystemAccess&&!!Xu()&&e.keySystem==="com.microsoft.playready"};
dt=function(e){return e.keySystem==="com.microsoft.playready"};
II=function(e){return!e.keySystemAccess&&!!Xu()&&e.keySystem==="com.apple.fps.1_0"};
vU=function(e){return e.keySystem==="com.youtube.fairplay"};
zE=function(e){return e.keySystem==="com.youtube.fairplay.sbdl"};
g.i2=function(e){return e.flavor==="fairplay"};
Xu=function(){var e=window,N=e.MSMediaKeys;U8()&&!N&&(N=e.WebKitMediaKeys);return N&&N.isTypeSupported?N:null};
gt=function(e){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.i$&&!g.O8())return vD("45");if(g.Um||g.S6)return e.gP("edge_nonprefixed_eme");if(g.DT)return vD("47");if(g.k$){if(e.gP("html5_enable_safari_fairplay"))return!1;if(e=g.Y2(e,"html5_safari_desktop_eme_min_version"))return vD(e)}return!0};
aoM=function(e,N,y,w){var E=Ry(),A=(y=E||y&&U8())?["com.youtube.fairplay"]:["com.widevine.alpha"];N&&A.unshift("com.youtube.widevine.l3");E&&w&&A.unshift("com.youtube.fairplay.sbdl");return y?A:e?[].concat(g.B(A),g.B(VY.playready)):[].concat(g.B(VY.playready),g.B(A))};
tm=function(){this.N=this.XA=0;this.J=Array.from({length:fC.length}).fill(0)};
ey0=function(){};
NYJ=function(){this.startTimeMs=(0,g.iC)();this.J=!1};
y__=function(){this.J=new ey0};
wd1=function(e,N,y,w){w=w===void 0?1:w;y>=0&&(N in e.J||(e.J[N]=new tm),e.J[N].jW(y,w))};
Ezn=function(e,N,y,w,E){var A=(0,g.iC)(),T=E?E(N):void 0,p;E=(p=T==null?void 0:T.XA)!=null?p:1;if(E!==0){var C;p=(C=T==null?void 0:T.profile)!=null?C:y;wd1(e,p,A-w,E)}return N};
u2=function(e,N,y,w,E){if(N&&typeof N==="object"){var A=function(T){return Ezn(e,T,y,w,E)};
if(eq(N))return N.then(A);if(A__(N))return A$(N,A)}return Ezn(e,N,y,w,E)};
TYn=function(){};
qX=function(e,N,y,w,E){w=w===void 0?!1:w;g.x.call(this);this.Ot=N;this.useCobaltWidevine=w;this.Fh=E;this.N=[];this.K={};this.J={};this.callback=null;this.L=!1;this.j=[];this.initialize(e,!y)};
pd9=function(e,N){e.callback=N;e.j=[];gt(e.Ot.experiments)?ZT(e):J_J(e)};
ZT=function(e){if(!e.Ss())if(e.N.length===0)e.callback(e.j);else{var N=e.N[0],y=e.K[N],w=Cis(e,y);if(x_&&x_.keySystem===N&&x_.Ass===JSON.stringify(w))e.Fh("remksa",{re:!0}),r_0(e,y,x_.keySystemAccess);else{var E,A;e.Fh("remksa",{re:!1,ok:(A=(E=x_)==null?void 0:E.keySystem)!=null?A:""});x_=void 0;(jI.isActive()?jI.le("emereq",function(){return navigator.requestMediaKeySystemAccess(N,w)}):navigator.requestMediaKeySystemAccess(N,w)).then($B(function(T){r_0(e,y,T,w)}),$B(function(){e.L=!e.L&&e.K[e.N[0]].flavor===
"widevine";
e.L||e.N.shift();ZT(e)}))}}};
r_0=function(e,N,y,w){if(!e.Ss()){w&&(x_={keySystem:N.keySystem,keySystemAccess:y,Ass:JSON.stringify(w)});N.keySystemAccess=y;if(dt(N)){y=v3();w=g.c(Object.keys(e.J[N.flavor]));for(var E=w.next();!E.done;E=w.next())E=E.value,N.J[E]=!!y.canPlayType(E)}else{y=N.keySystemAccess.getConfiguration();if(y.audioCapabilities)for(w=g.c(y.audioCapabilities),E=w.next();!E.done;E=w.next())$b5(e,N,E.value);if(y.videoCapabilities)for(y=g.c(y.videoCapabilities),w=y.next();!w.done;w=y.next())$b5(e,N,w.value)}e.j.push(N);
e.useCobaltWidevine||e.T("html5_enable_vp9_fairplay")&&zE(N)?(e.N.shift(),ZT(e)):e.callback(e.j)}};
$b5=function(e,N,y){e.T("log_robustness_for_drm")?N.J[y.contentType]=y.robustness||!0:N.J[y.contentType]=!0};
Cis=function(e,N){var y={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(e.T("html5_enable_vp9_fairplay")&&vU(N))return y.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),y.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[y];dt(N)&&(y.initDataTypes=["keyids","cenc"]);for(var w=g.c(Object.keys(e.J[N.flavor])),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.indexOf("audio/")===0,T=A?y.audioCapabilities:y.videoCapabilities;N.flavor!==
"widevine"||e.L?T.push({contentType:E}):A?T.push({contentType:E,robustness:"SW_SECURE_CRYPTO"}):(g.i$&&g.Kp("windows nt")&&!e.T("html5_drm_enable_moho")||T.push({contentType:E,robustness:"HW_SECURE_ALL"}),A=E,e.T("html5_enable_cobalt_experimental_vp9_decoder")&&E.includes("vp09")&&(A=E+"; experimental=allowed"),T.push({contentType:A,robustness:"SW_SECURE_DECODE"}),nC(e.Ot)==="MWEB"&&(yf()||WL())&&(e.Fh("swcrypto",{}),T.push({contentType:E,robustness:"SW_SECURE_CRYPTO"})))}return[y]};
J_J=function(e){if(Xu()&&(g.k$||s8&&e.T("html5_drm_support_ios_mweb")))e.j.push(new BU("fairplay","com.apple.fps.1_0","",e.Ot.experiments));else{var N=YVF(),y=g.Ok(e.N,function(w){var E=e.K[w],A=!1,T=!1,p;for(p in e.J[E.flavor])N(p,w)&&(E.J[p]=!0,A=A||p.indexOf("audio/")===0,T=T||p.indexOf("video/")===0);return A&&T});
y&&e.j.push(e.K[y]);e.N=[]}e.callback(e.j)};
YVF=function(){var e=Xu();if(e){var N=e.isTypeSupported;return function(w,E){return N(E,w)}}var y=v3();
return y&&(y.addKey||y.webkitAddKey)?function(w,E){return!!y.canPlayType(w,E)}:function(){return!1}};
MpP=function(e){this.experiments=e;this.J=2048;this.j=0;this.Kh=(this.D=this.T("html5_streaming_resilience"))?.5:.25;var N=N===void 0?0:N;this.K=g.Y2(this.experiments,"html5_media_time_weight_prop")||N;this.L=this.T("html5_app_limited_aware_bwe");this.l9=g.Y2(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.qg=(this.Z=this.experiments.gP("html5_consider_end_stall"))&&QY;this.N=this.experiments.gP("html5_measure_max_progress_handling");this.Ng=this.T("html5_treat_requests_pre_elbow_as_metadata");
this.G=this.T("html5_media_time_weight")||!!this.K;this.U=g.Y2(this.experiments,"html5_streaming_fallback_byterate");this.T("html5_sabr_live_audio_early_return_fix")&&QY&&(this.J=65536)};
lu1=function(e,N){this.J=void 0;this.experimentIds=e?e.split(","):[];this.flags=w2(N||"","&");e={};N=g.c(this.experimentIds);for(var y=N.next();!y.done;y=N.next())e[y.value]=!0;this.experiments=e};
g.Y2=function(e,N){e=e.flags[N];JSON.stringify(e);return Number(e)||0};
ms=function(e,N){return(e=e.flags[N])?e.toString():""};
F5n=function(e){if(e=e.flags.html5_web_po_experiment_ids)if(e=e.replace(/\[ *(.*?) *\]/,"$1"))return e.split(",").map(Number);return[]};
SV1=function(e){if(e.J)return e.J;if(e.experimentIds.length<=1)return e.J=e.experimentIds,e.J;var N=[].concat(g.B(e.experimentIds)).map(function(w){return Number(w)});
N.sort();for(var y=N.length-1;y>0;--y)N[y]-=N[y-1];e.J=N.map(function(w){return w.toString()});
e.J.unshift("v1");return e.J};
bLF=function(e){return oz5.then(e)};
HU=function(e,N,y){this.experiments=e;this.i9=N;this.Rq=y===void 0?!1:y;this.Ng=!!g.nM("cast.receiver.platform.canDisplayType");this.U={};this.G=!1;this.N=new Map;this.Z=!0;this.K=this.j=!1;this.J=new Map;this.Kh=0;this.qg=this.experiments.gP("html5_disable_vp9_encrypted");e=g.nM("cast.receiver.platform.getValue");this.l9=g.Y2(this.experiments,"html5_kaios_max_resolution");this.L=!this.Ng&&e&&e("max-video-resolution-vpx")||null;hyn(this)};
Lx3=function(e,N,y){y=y===void 0?1:y;var w=N.itag;if(w==="0")return!0;var E=N.mimeType;if(N.lm()&&Ry()&&e.experiments.gP("html5_appletv_disable_vp9"))return"dwebm";if(Kd(N)&&e.G)return"dav1";if(N.video&&(N.video.isHdr()||N.video.primaries==="bt2020")&&!(rD(e,$E.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(w==="338"&&!(g.i$?vD(53):g.DT&&vD(64)))return"dopus";
var A;if(e.l9&&KC&&((A=N.video)==null?void 0:A.J)>e.l9)return"kaios";A=y;A=A===void 0?1:A;y={};N.video&&(N.video.width&&(y[$E.WIDTH.name]=N.video.width),N.video.height&&(y[$E.HEIGHT.name]=N.video.height),N.video.fps&&(y[$E.FRAMERATE.name]=N.video.fps*A),N.video.N&&(y[$E.EOTF.name]=N.video.N),N.JM&&(y[$E.BITRATE.name]=N.JM*8*A),N.Iq==="("&&(y[$E.CRYPTOBLOCKFORMAT.name]="subsample"),N.video.projectionType==="EQUIRECTANGULAR"||N.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||N.video.projectionType===
"MESH")&&(y[$E.DECODETOTEXTURE.name]="true");N.audio&&N.audio.numChannels&&(y[$E.CHANNELS.name]=N.audio.numChannels);e.j&&mu(N)&&(y[$E.EXPERIMENTAL.name]="allowed");A=g.c(Object.keys($E));for(var T=A.next();!T.done;T=A.next()){T=$E[T.value];var p;if(p=y[T.name])if(p=!(T===$E.EOTF&&N.mimeType.indexOf("vp09.02")>0)){p=T;var C=N;p=!(e.experiments.gP("html5_ignore_h264_framerate_cap")&&p===$E.FRAMERATE&&p20(C))}if(p)if(rD(e,T))if(e.L){if(e.L[T.name]<y[T.name])return T.name}else E=E+"; "+T.name+"="+y[T.name];
else if(H3(N)&&T===$E.EOTF)return"dvp92"}e.Ng&&N.video&&N.video.J>1080&&N.BG&&(E+="; hdcp=2.2");return w==="227"?"hqcenc":w!=="585"&&w!=="588"&&w!=="583"&&w!=="586"&&w!=="584"&&w!=="587"&&w!=="591"&&w!=="592"||e.experiments.gP("html5_enable_new_hvc_enc")?e.isTypeSupported(E)?!0:"tpus":"newhvc"};
WU=function(){var e=WL()&&!vD(29),N=g.Kp("google tv")&&g.Kp("chrome")&&!vD(30);return e||N?!1:MQ9()};
c_5=function(e,N,y){var w=480;N=g.c(N);for(var E=N.next();!E.done;E=N.next()){E=E.value;var A=E.video.J;A<=1080&&A>w&&Lx3(e,E,y)===!0&&(w=A)}return w};
g.Oh=function(e,N){N=N===void 0?!1:N;return WU()&&e.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!N&&e.canPlayType(v3(),"application/x-mpegURL")?!0:!1};
BY3=function(e){kp3(function(){for(var N=g.c(Object.keys($E)),y=N.next();!y.done;y=N.next())rD(e,$E[y.value])})};
rD=function(e,N){N.name in e.U||(e.U[N.name]=XdJ(e,N));return e.U[N.name]};
XdJ=function(e,N){if(e.L)return!!e.L[N.name];if(N===$E.BITRATE&&e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!e.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(N===$E.AV1_CODECS)return e.isTypeSupported("video/mp4; codecs="+N.valid)&&!e.isTypeSupported("video/mp4; codecs="+N.jL);if(N.video){var y='video/webm; codecs="vp9"';e.isTypeSupported(y)||(y='video/mp4; codecs="avc1.4d401e"')}else y='audio/webm; codecs="opus"',
e.isTypeSupported(y)||(y='audio/mp4; codecs="mp4a.40.2"');return e.isTypeSupported(y+"; "+N.name+"="+N.valid)&&!e.isTypeSupported(y+"; "+N.name+"="+N.jL)};
Pi1=function(e){e.j||(e.j=!0,RI(e))};
RI=function(e){e.K=!0;e.experiments.gP("html5_ssap_update_capabilities_on_change")&&dbF(e)};
IuP=function(e,N){var y=0;e.N.has(N)&&(y=e.N.get(N).sM);e.N.set(N,{sM:y+1,Yr:Math.pow(2,y+1)});RI(e)};
TD=function(e){for(var N=[],y=g.c(e.J.keys()),w=y.next();!w.done;w=y.next()){w=w.value;var E=e.J.get(w);N.push(w+"_"+E.maxWidth+"_"+E.maxHeight)}return N.join(".")};
dbF=function(e){e.D=[];for(var N=g.c(e.J.values()),y=N.next();!y.done;y=N.next()){y=y.value;var w=y.Iq;e.experiments.gP("html5_ssap_force_mp4_aac")&&w!=="a"&&w!=="h"||e.N.has(w)||(!e.G||w!=="1"&&w!=="1h")&&e.D.push(y)}};
mG5=function(e,N){for(var y=new Map,w=g.c(e.J.keys()),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.split("_")[0];N.has(A)||y.set(E,e.J.get(E))}e.J=y};
KxM=function(e,N,y){var w,E=((w=y.video)==null?void 0:w.fps)||0;w=N+"_"+E;var A=!!y.audio,T={itag:y.itag,Iq:N,qG:A};if(A)T.numChannels=y.audio.numChannels;else{var p=y.video;T.maxWidth=p==null?void 0:p.width;T.maxHeight=p==null?void 0:p.height;T.maxFramerate=E;rD(e,$E.BITRATE)&&(T.maxBitrateBps=y.JM*8);T.Oa=p==null?void 0:p.isHdr()}p=e.J.get(w);p?A||(y=Math.max(p.maxWidth||0,p.maxHeight||0)>Math.max(T.maxWidth||0,T.maxHeight||0)?p:T,N={itag:y.itag,Iq:N,qG:A,maxWidth:Math.max(p.maxWidth||0,T.maxWidth||
0),maxHeight:Math.max(p.maxHeight||0,T.maxHeight||0),maxFramerate:E,Oa:y.Oa},rD(e,$E.BITRATE)&&(N.maxBitrateBps=y.maxBitrateBps),e.J.set(w,N)):e.J.set(w,T)};
WxH=function(e,N,y){var w,E=((w=y.video)==null?void 0:w.fps)||0;w=N+"_"+E;var A=!!y.audio,T=e.J.get(w);a:{var p=e.J.get(w),C=!!y.audio;if(p){if(C){var r=!1;break a}var Y;if(!C&&((r=y.video)==null?0:r.height)&&p.maxHeight&&p.maxHeight>=((Y=y.video)==null?void 0:Y.height)){r=!1;break a}}r=!0}r&&(r=y.itag,N=T?T:{itag:r,Iq:N,qG:A},A?N.numChannels=y.audio.numChannels:(A=y.video,N.maxWidth=A==null?void 0:A.width,N.maxHeight=A==null?void 0:A.height,N.maxFramerate=E,rD(e,$E.BITRATE)&&(N.maxBitrateBps=y.JM*
8),N.Oa=A==null?void 0:A.isHdr()),e.J.set(w,N))};
hyn=function(e){var N;(N=navigator.mediaCapabilities)!=null&&N.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(y){y.smooth&&y.powerEfficient&&(e.Kh=2160)})};
GE=function(){g.pT.call(this);this.items={}};
Uh=function(){g.kd.apply(this,arguments)};
LC=function(){g.BM.apply(this,arguments)};
vzE=function(e,N,y){this.encryptedClientKey=N;this.L=y;this.J=new Uint8Array(e.buffer,0,16);this.K=new Uint8Array(e.buffer,16)};
zy1=function(e){e.N||(e.N=new Uh(e.J));return e.N};
sh=function(e){try{return hO(e)}catch(N){return null}};
iLE=function(e,N){if(!N&&e)try{N=JSON.parse(e)}catch(E){}if(N){e=N.clientKey?sh(N.clientKey):null;var y=N.encryptedClientKey?sh(N.encryptedClientKey):null,w=N.keyExpiresInSeconds?Number(N.keyExpiresInSeconds)*1E3+(0,g.iC)():null;e&&y&&w&&(this.J=new vzE(e,y,w));N.onesieUstreamerConfig&&(this.onesieUstreamerConfig=sh(N.onesieUstreamerConfig)||void 0);this.baseUrl=N.baseUrl}};
eV=function(){this.data=new Uint8Array(2048);this.pos=0;aI||(aI=iI("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
N_=function(e,N){e.add(N==null||isNaN(N)?0:N+1)};
yy=function(e){this.J=this.N=0;this.alpha=Math.exp(Math.log(.5)/e)};
ww=function(e){this.N=e===void 0?15:e;this.values=new Float64Array(176);this.J=new Float64Array(11);this.K=new Float64Array(16)};
EI=function(e,N,y,w){y=y===void 0?.5:y;w=w===void 0?0:w;this.resolution=N;this.N=0;this.K=!1;this.s0=!0;this.J=Math.round(e*this.resolution);this.values=Array(this.J);for(e=0;e<this.J;e++)this.values[e]=Infinity;this.L=Db0(this);this.j=y;this.Z=w};
Db0=function(e){for(var N=Array(e.J),y=0;y<e.J;y++)N[y]=y;return N};
AR=function(e,N,y){g.x.call(this);this.policy=e;this.N=N;this.nX=y;this.qg=this.Et=0;this.Kh=-1;this.l9=this.L=0;this.Ng=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.aq=this.Z=(0,g.iC)();this.U=new EI(4,1,.6,.4);this.i9=new EI(4,1,.6,.4);this.G=new EI(20,1,.5,.4);e.Kh?this.K=new ww(e.J):e.N?this.K=new yy(e.J):this.K=new EI(e.J,20,.5,.4);this.Rq=new EI(5,1,.25);this.D=new EI(30,1,.5);e=g.qI("yt-player-bandwidth")||{};N=this.policy.K;if(e.byterate>0)N=e.byterate,this.Ng=!0;else{var w;
y=(((w=navigator.connection)==null?void 0:w.downlink)||0)*64*1024;y>0&&(N=y,this.Ng=!0)}this.K.Kj(this.policy.Z,N);e.delay>0&&this.U.Kj(1,Math.min(e.delay,2));e.stall>0&&this.G.Kj(1,e.stall);e.init>0&&(this.aq=Math.min(e.init,this.aq));e.interruptions&&(this.j=this.j.concat(e.interruptions),this.j.length>16&&this.j.pop());this.Kh=(0,g.iC)();this.policy.G>0&&(this.Zl=new g.e6(this.Bk,this.policy.G,this),g.Q(this,this.Zl),this.Zl.start())};
TX=function(e,N,y,w){e.K.Kj(w===void 0?N:w,y/N);e.Z=(0,g.iC)()};
gz5=function(e){e.L||(e.L=(0,g.iC)());e.policy.D&&(e.Z=(0,g.iC)())};
VpP=function(e,N){if(e.L){var y=N-e.L;if(y<6E4){if(y>1E3){var w=e.interruptions;w.push(Math.ceil(y));w.sort(function(E,A){return A-E});
w.length>16&&w.pop()}e.l9+=y}}e.L=N};
JR=function(e,N,y,w,E,A){A=A===void 0?!1:A;e.Rq.Kj(N,y/N);e.Z=(0,g.iC)();E||e.D.Kj(1,N-w);A||(e.L=0);e.Kh>-1&&(0,g.iC)()-e.Kh>3E4&&fuJ(e)};
pa=function(e,N,y){N=Math.max(N,e.N.J);e.G.Kj(1,y/N)};
Ca=function(e){e=e.U.AT()+e.i9.AT()||0;e=isNaN(e)?.5:e;return e=Math.min(e,5)};
rw=function(e,N,y){isNaN(y)||(e.qg+=y);isNaN(N)||(e.Et+=N)};
Yj=function(e){e=e.K.AT();return e>0?e:1};
M_=function(e,N,y){N=N===void 0?!1:N;y=y===void 0?1048576:y;var w=Yj(e);w=1/((e.G.AT()||0)*e.policy.Ng+1/w);var E=e.Rq.AT();E=E>0?E:1;var A=Math.max(w,E);e.policy.L>0&&E<w&&(A=Math.min(e.policy.L,1),A=(1-A)*w+A*E);if(!N)return A;N=1E-9+Ca(e);y=A*Math.min(1,y/(A*N));e.policy.j||(e=((e.D.percentile(.98)||0)-1)/2,e=Math.max(0,Math.min(1,e)),y*=1-.5*e);return y};
tps=function(e){var N={delay:Ca(e),stall:e.G.AT()||0,byterate:Yj(e),init:e.aq},y=e.j[0];y.stamp=Math.round(e.Z/36E5)*36E5;y.net=Math.ceil(e.l9);y.max=e.interruptions[0]||0;N.interruptions=e.j;return N};
fuJ=function(e){g.uY("yt-player-bandwidth",tps(e),2592E3);e.Kh=(0,g.iC)();e.Ng=!0};
ld=function(e){return(0,g.iC)()-e.Z>=4E3};
ulP=function(e){this.experiments=e;this.J=17;this.K=13E4;this.Z=.5;this.N=!1;this.Kh=this.T("html5_use_histogram_for_bandwidth");this.j=!1;this.L=g.Y2(this.experiments,"html5_auxiliary_estimate_weight");this.Ng=g.Y2(this.experiments,"html5_stall_factor")||1;this.G=g.Y2(this.experiments,"html5_check_for_idle_network_interval_ms");this.U=this.experiments.gP("html5_trigger_loader_when_idle_network");this.D=this.experiments.gP("html5_sabr_fetch_on_idle_network_preloaded_players")};
ZL_=function(e,N){e=e===void 0?{}:e;N=N===void 0?{}:N;g.x.call(this);var y=this;this.values=e;this.lY=N;this.N={};this.K=this.J=0;this.j=new g.e6(function(){qV5(y)},1E4);
g.Q(this,this.j)};
Fn=function(e,N){xb0(e,N);return e.values[N]&&e.lY[N]?e.values[N]/Math.pow(2,e.J/e.lY[N]):0};
xb0=function(e,N){e.values[N]||(N=c65(),e.values=N.values||{},e.lY=N.halfLives||{},e.N=N.values?Object.assign({},N.values):{})};
qV5=function(e){var N=c65();if(N.values){N=N.values;for(var y={},w=g.c(Object.keys(e.values)),E=w.next();!E.done;E=w.next())E=E.value,N[E]&&e.N[E]&&(e.values[E]+=N[E]-e.N[E]),y[E]=Fn(e,E);e.N=y}N=e.lY;y={};y.values=e.N;y.halfLives=N;g.uY("yt-player-memory",y,2592E3)};
fa=function(e,N,y,w,E){g.x.call(this);this.webPlayerContextConfig=N;this.Z3=w;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.MX=this.Xz=this.Ut=this.YB=this.userDisplayName=this.userDisplayImage=this.j_="";this.J={};this.FZ={};this.controlsType="0";this.CC=NaN;this.a9=!1;this.Fr=(0,g.iC)();this.pX=0;this.rk=this.Mk=!1;this.Ci=!0;this.preferGapless=this.al=this.sY=this.K=this.Sw=this.WE=!1;this.Cl=[];this.Js=!1;e=e?g.DA(e):{};N&&N.csiPageType&&(this.csiPageType=N.csiPageType);N&&N.csiServiceName&&
(this.csiServiceName=N.csiServiceName);N&&N.preferGapless&&(this.preferGapless=N.preferGapless);this.experiments=new lu1(N?N.serializedExperimentIds:e.fexp,N?N.serializedExperimentFlags:e.fflags);this.forcedExperiments=N?N.serializedForcedExperimentIds:pO("",e.forced_experiments)||void 0;this.cspNonce=(N==null?0:N.cspNonce)?N.cspNonce:pO("",e.csp_nonce);this.T("web_player_deprecated_uvr_killswitch");try{var A=document.location.toString()}catch(O){A=""}this.im=A;this.ancestorOrigins=(w=window.location.ancestorOrigins)?
Array.from(w):[];this.j=A2(!1,N?N.isEmbed:e.is_embed);if(N&&N.device){if(w=N.device,w.androidOsExperience&&(this.J.caoe=""+w.androidOsExperience),w.androidPlayServicesVersion&&(this.J.capsv=""+w.androidPlayServicesVersion),w.brand&&(this.J.cbrand=w.brand),w.browser&&(this.J.cbr=w.browser),w.browserVersion&&(this.J.cbrver=w.browserVersion),w.cobaltReleaseVehicle&&(this.J.ccrv=""+w.cobaltReleaseVehicle),this.J.c=w.interfaceName||"WEB",this.J.cver=w.interfaceVersion||"html5",w.interfaceTheme&&(this.J.ctheme=
w.interfaceTheme),this.J.cplayer=w.interfacePlayerType||"UNIPLAYER",w.model&&(this.J.cmodel=w.model),w.network&&(this.J.cnetwork=w.network),w.os&&(this.J.cos=w.os),w.osVersion&&(this.J.cosver=w.osVersion),w.platform&&(this.J.cplatform=w.platform),A=ms(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),A==="all"||A==="once")w.chipset&&(this.FZ.cchip=w.chipset),w.cobaltAppVersion&&(this.FZ.ccappver=w.cobaltAppVersion),w.firmwareVersion&&(this.FZ.cfrmver=w.firmwareVersion),w.deviceYear&&(this.FZ.crqyear=
w.deviceYear)}else this.J.c=e.c||"web",this.J.cver=e.cver||"html5",this.J.cplayer="UNIPLAYER";this.loaderUrl=N?this.j||jV1(this)&&N.loaderUrl?N.loaderUrl||"":this.im:this.j||jV1(this)&&e.loaderUrl?pO("",e.loaderUrl):this.im;this.j&&g.jM("yt.embedded_player.embed_url",this.loaderUrl);this.G=Ln(this.loaderUrl,nzs);w=this.loaderUrl;var T=T===void 0?!1:T;this.Ip=UG(Ln(w,QVH),w,T,"Trusted Ad Domain URL");this.LX=A2(!1,e.privembed);this.protocol=this.im.indexOf("http:")===0?"http":"https";this.qg=sG((N?
N.customBaseYoutubeUrl:e.BASE_YT_URL)||"")||sG(this.im)||this.protocol+"://www.youtube.com/";T=N?N.eventLabel:e.el;w="detailpage";T==="adunit"?w=this.j?"embedded":"detailpage":T==="embedded"||this.G?w=Th(w,T,mb5):T&&(w="embedded");this.Rq=w;v3n();T=null;w=N?N.playerStyle:e.ps;A=g.Gw(HL9,w);!w||A&&!this.G||(T=w);this.playerStyle=T;this.Z=g.Gw(HL9,this.playerStyle);this.houseBrandUserStatus=N==null?void 0:N.houseBrandUserStatus;this.Kh=this.Z&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";
this.gf=!this.Kh;this.Zl=A2(!1,e.disableplaybackui);this.disablePaidContentOverlay=A2(!1,N==null?void 0:N.disablePaidContentOverlay);this.disableSeek=A2(!1,N==null?void 0:N.disableSeek);this.enableSpeedOptions=(N==null?void 0:N.enableSpeedOptions)||(v3().defaultPlaybackRate?SV||g.NI||KC?g.DT&&vD("20")||g.i$&&vD("4")||g.oK&&vD("11")||Lp():!(g.oK&&!g.Kp("chrome")||SV||g.Kp("android")||g.Kp("silk")):!1);this.IY=A2(!1,e.enable_faster_speeds);var p;this.supportsVarispeedExtendedFeatures=(p=N==null?void 0:
N.supportsVarispeedExtendedFeatures)!=null?p:!1;this.N=A2(this.playerStyle==="blazer",e.is_html5_mobile_device||N&&N.isMobileDevice);this.Bk=eu()||yf();this.v2=this.T("mweb_allow_background_playback")?!1:this.N&&!this.Z;this.Et=VI();this.E0=g.bd;var C;this.Tg=!!(N==null?0:(C=N.embedsHostFlags)==null?0:C.optOutApiDeprecation);var r;this.sR=!!(N==null?0:(r=N.embedsHostFlags)==null?0:r.allowPfpImaIntegration);this.uo=this.T("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var Y;N?N.hideInfo!==
void 0&&(Y=!N.hideInfo):Y=e.showinfo;this.d2=g.hR(this)&&!this.Tg||A2(!cg(this)&&!kj(this)&&!this.Z,Y);this.Hc=N?!!N.mobileIphoneSupportsInlinePlayback:A2(!1,e.playsinline);p=this.N&&Bg&&Xn!=null&&Xn>0&&Xn<=2.3;C=N?N.useNativeControls:e.use_native_controls;this.U=g.hR(this)&&this.N;r=this.N&&!this.U;C=g.Pg(this)||!p&&A2(r,C)?"3":"1";this.disableOrganicUi=!(N==null||!N.disableOrganicUi);r=N?N.controlsType:e.controls;this.controlsType=this.disableOrganicUi?"0":r!=="0"&&r!==0?C:"0";this.zx=this.N;this.color=
Th("red",N?N.progressBarColor:e.color,K5M);this.hp=this.controlsType==="3";this.PY=!this.j;this.RO=(C=!this.PY&&!kj(this)&&!this.Kh&&!this.Z&&!cg(this))&&!this.hp&&this.controlsType==="1";this.jp=g.dw(this)&&C&&this.controlsType==="0"&&!this.RO&&!(N==null?0:N.embedsEnableEmc3ds);this.Yb=this.TV=p;this.U2=(this.controlsType==="3"||this.N||A2(!1,e.use_media_volume))&&!this.U;this.Ps=s8&&!g.SE(601)?!1:!0;this.Em=this.j||!1;this.VB=kj(this)?"":(this.loaderUrl||e.post_message_origin||"").substring(0,128);
this.widgetReferrer=pO("",N?N.widgetReferrer:e.widget_referrer);var M;N?N.disableCastApi&&(M=!1):M=e.enablecastapi;M=!this.G||A2(!0,M);p=!0;N&&N.disableMdxCast&&(p=!1);this.bb=this.T("enable_cast_for_web_unplugged")&&g.IK(this)&&p||g.ZY(this)&&p||M&&p&&this.controlsType==="1"&&!this.N&&(kj(this)||g.dw(this)||g.vg(this));this.nm=!!window.document.pictureInPictureEnabled||gp();M=N?!!N.supportsAutoplayOverride:A2(!1,e.autoplayoverride);this.CN=!(this.N&&!g.hR(this))&&!g.Kp("nintendo wiiu")||M;this.Pf=
(N?!!N.enableMutedAutoplay:A2(!1,e.mutedautoplay))&&!1;M=(kj(this)||cg(this))&&this.playerStyle==="blazer";this.ll=N?!!N.disableFullscreen:!A2(!0,e.fs);p=g.Yh(g.zX(this))&&g.hR(this);this.Y_=!this.ll&&(M||g.h2())&&!p;M=WL()&&vD(58)&&!yf();p=Gv||typeof MediaSource==="undefined";this.Fo=this.T("uniplayer_block_pip")&&(M||p)||this.T("html5_disable_pip_with_standard_api");M=g.hR(this)&&!this.Tg;var l;N?N.disableRelatedVideos!==void 0&&(l=!N.disableRelatedVideos):l=e.rel;this.NK=M||A2(!this.Z,l);this.Sz=
A2(!1,N?N.enableContentOwnerRelatedVideos:e.co_rel);this.D=yf()&&Xn>0&&Xn<=4.4?"_top":"_blank";this.Rx=g.vg(this);this.yh=A2(this.playerStyle==="blazer",N?N.enableCsiLogging:e.enablecsi);switch(this.playerStyle){case "blogger":l="bl";break;case "gmail":l="gm";break;case "gac":l="ga";break;case "books":l="gb";break;case "docs":case "flix":l="gd";break;case "duo":l="gu";break;case "google-live":l="gl";break;case "google-one":l="go";break;case "play":l="gp";break;case "chat":l="hc";break;case "hangouts-meet":l=
"hm";break;case "photos-edu":case "picasaweb":l="pw";break;default:l="yt"}this.Ng=l;this.l9=pO("",N?N.authorizedUserIndex:e.authuser);this.jn=g.hR(this)&&(this.LX||!lSn()||this.Bk);var F;N?N.disableWatchLater!==void 0&&(F=!N.disableWatchLater):F=e.showwatchlater;this.DD=((l=!this.jn)||!!this.l9&&l)&&A2(!this.Kh,this.G?F:void 0);this.jN=N?N.isMobileDevice||!!N.disableKeyboardControls:A2(!1,e.disablekb);this.loop=A2(!1,e.loop);this.pageId=pO("",N?N.initialDelegatedSessionId:e.pageid);this.m4=A2(!0,
e.canplaylive);this.Kx=A2(!1,e.livemonitor);this.disableSharing=A2(this.Z,N?N.disableSharing:e.ss);(F=N&&this.T("fill_video_container_size_override_from_wpcc")?N.videoContainerOverride:e.video_container_override)?(l=F.split("x"),l.length!==2?F=null:(F=Number(l[0]),l=Number(l[1]),F=isNaN(F)||isNaN(l)||F*l<=0?null:new g.l8(F,l))):F=null;this.Zc=F;this.mute=N?!!N.startMuted:A2(!1,e.mute);this.storeUserVolume=!this.mute&&A2(this.controlsType!=="0",N?N.storeUserVolume:e.store_user_volume);F=N?N.annotationsLoadPolicy:
e.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Th(void 0,F,id);this.captionsLanguagePreference=N?N.captionsLanguagePreference||"":pO("",e.cc_lang_pref);F=Th(2,N?N.captionsLanguageLoadPolicy:e.cc_load_policy,id);this.controlsType==="3"&&F===2&&(F=3);this.dT=F;this.SR=N?N.hl||"en_US":pO("en_US",e.hl);this.region=N?N.contentRegion||"US":pO("US",e.cr);this.hostLanguage=N?N.hostLanguage||"en":pO("en",e.host_language);this.Qk=!this.LX&&Math.random()<g.Y2(this.experiments,"web_player_api_logging_fraction");
this.Wk=!this.LX;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(N==null||!N.deviceIsAudioOnly);this.CC=J2(this.CC,e.ismb);this.gf?(F=e.vss_host||"s.youtube.com",F==="s.youtube.com"&&(F=DW(this.qg)||"www.youtube.com")):F="video.google.com";this.Li=F;gw(this,e,!0);this.aq=new GE;g.Q(this,this.aq);l=N?N.innertubeApiKey:pO("",e.innertube_api_key);M=N?N.innertubeApiVersion:pO("",e.innertube_api_version);F=N?N.innertubeContextClientVersion:pO("",e.innertube_context_client_version);l=g.Lb("INNERTUBE_API_KEY")||
l;M=g.Lb("INNERTUBE_API_VERSION")||M;p=g.Lb("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");C=nC(this);r=typeof this.J.c==="number"?Number(this.J.c):Object.keys(W51).indexOf(this.J.c);this.xI={innertubeApiKey:l,innertubeApiVersion:M,LM:p,pp:C,EC:r,innertubeContextClientVersion:g.Lb("INNERTUBE_CONTEXT_CLIENT_VERSION")||F,Ji:this.hostLanguage,Ff:this.region,Bj:g.Lb("INNERTUBE_HOST_OVERRIDE")||"",mp:!!g.Lb("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),rWP:!!g.Lb("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};
this.Gg=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.L=new HU(this.experiments,this.T("html5_force_hfr_support")?!0:dX(this)||Gk()||oDs()||OLM(this),g.i$&&g.SE(56)||g.DT&&g.SE(54)||this.T("html5_force_vp9_subsample_encryption_support")||OLM(this));F=g.I_(this);l=this.CC;M=this.experiments;p=new ulP(M);F&&(p.N=!0,p.Z=.1);M.gP("html5_media_time_weight")&&(p.N=!1);l&&(p.K=l/8);p.j=zm()>=480;this.schedule=new AR(p,new MpP(this.experiments),E);g.Q(this,this.schedule);var S;this.enableSafetyMode=
(S=N==null?void 0:N.initialEnableSafetyMode)!=null?S:A2(!1,e.enable_safety_mode);E=this.Zl?!1:kj(this)&&this.playerStyle!=="blazer";var k;N?N.disableAutonav!=null&&(k=!N.disableAutonav):k=e.allow_autonav;this.YO=A2(E,!this.Kh&&k);this.sendVisitorIdHeader=N?!!N.sendVisitorIdHeader:A2(!1,e.send_visitor_id_header);var X;this.playerStyle==="docs"&&(N?X=N.disableNativeContextMenu:X=e.disable_native_context_menu);this.disableNativeContextMenu=A2(!1,X);this.pz=dX(this)&&this.T("enable_skip_intro_button");
this.embedConfig=pO("",N?N.serializedEmbedConfig:e.embed_config);this.i9=$h(e,g.hR(this));this.K=this.i9==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(N==null||!N.embedsErrorLinks);this.ul=A2(!1,e.full_window);var d;this.Dl=!((d=this.webPlayerContextConfig)==null?0:d.chromeless);var v;this.livingRoomAppMode=Th("LIVING_ROOM_APP_MODE_UNSPECIFIED",e.living_room_app_mode||(N==null?void 0:(v=N.device)==null?void 0:v.livingRoomAppMode),Ryn);var V;k=J2(NaN,N==null?void 0:(V=N.device)==null?void 0:
V.deviceYear);isNaN(k)||(this.deviceYear=k);this.transparentBackground=N?!!N.transparentBackground:A2(!1,e.transparent_background);this.showMiniplayerButton=N?!!N.showMiniplayerButton:A2(!1,e.show_miniplayer_button);var Z;g.hR(this)&&!(N==null?0:(Z=N.embedsHostFlags)==null?0:Z.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=N?!!N.externalFullscreen:A2(!1,e.external_fullscreen);this.showMiniplayerUiWhenMinimized=N?!!N.showMiniplayerUiWhenMinimized:A2(!1,e.use_miniplayer_ui);
var n;this.Ci=(n=e.show_loop_video_toggle)!=null?n:!0;this.jI=Math.random()<1E-4;this.ub=e.onesie_hot_config||(N==null?0:N.onesieHotConfig)?new iLE(e.onesie_hot_config,N==null?void 0:N.onesieHotConfig):void 0;this.isTectonic=N?!!N.isTectonic:!!e.isTectonic;this.playerCanaryState=y;this.playerCanaryStage=N==null?void 0:N.canaryStage;this.UY=new ZL_;g.Q(this,this.UY);this.Sw=A2(!1,e.force_gvi);this.datasyncId=(N==null?void 0:N.datasyncId)||g.Lb("DATASYNC_ID");this.il=g.Lb("LOGGED_IN",!1);this.vp=(N==
null?void 0:N.allowWoffleManagement)||!1;this.xX=Infinity;this.ib=NaN;this.livingRoomPoTokenId=N==null?void 0:N.livingRoomPoTokenId;this.T("html5_high_res_logging_always")?this.sY=!0:this.sY=Math.random()*100<g.Y2(this.experiments,"html5_high_res_logging_percent");var R;this.al=!!(N==null?0:(R=N.embedsHostFlags)==null?0:R.allowRcat);this.DN=!g.IK(this)&&!Vy(this)};
g.zX=function(e){var N,y;if(!((N=e.webPlayerContextConfig)==null?0:(y=N.embedsHostFlags)==null?0:y.enableLiteUx)||e.LX||e.Z||e.K||e.i9==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";e=g.Y2(e.experiments,"embeds_web_lite_mode");return e===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":e>=0&&e<Gps.length?Gps[e]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
gw=function(e,N,y){y=y===void 0?!1:y;e.Xz=pO(e.Xz,N.video_id);e.Ut=pO(e.Ut,N.eventid);e.Ut&&(BX=e.Ut);for(var w=[],E=g.c(Object.keys(UbF)),A=E.next();!A.done;A=E.next()){A=UbF[A.value];var T=N[A];T!=null&&(T!==e.J[A]&&w.push(A),e.J[A]=T)}!y&&w.length>0&&e.jI&&(w.sort(),g.uA(new g.Gh("Player client parameters changed after startup",w)));e.userAge=J2(e.userAge,N.user_age);e.j_=pO(e.j_,N.user_display_email);e.userDisplayImage=pO(e.userDisplayImage,N.user_display_image);g.eO(e.userDisplayImage)||(e.userDisplayImage=
"");e.userDisplayName=pO(e.userDisplayName,N.user_display_name);e.YB=pO(e.YB,N.user_gender);e.csiPageType=pO(e.csiPageType,N.csi_page_type);e.csiServiceName=pO(e.csiServiceName,N.csi_service_name);e.yh=A2(e.yh,N.enablecsi);e.pageId=pO(e.pageId,N.pageid);if(y=N.enabled_engage_types)e.enabledEngageTypes=new Set(y.split(","));N.living_room_session_po_token&&(e.NG=N.living_room_session_po_token.toString())};
tR=function(e,N){return!e.Z&&WL()&&vD(55)&&e.controlsType==="3"&&!N};
g.ud=function(e){e=DW(e.qg);return e==="www.youtube-nocookie.com"?"www.youtube.com":e};
q_=function(e,N,y){return e.protocol+"://i1.ytimg.com/vi/"+N+"/"+(y||"hqdefault.jpg")};
ZW=function(e){return kj(e)&&!g.IK(e)};
g.Pg=function(e){return e.T("html5_local_playsinline")?s8&&!g.SE(602)&&!("playsInline"in v3()):s8&&!e.Hc||g.Kp("nintendo wiiu")?!0:!1};
nC=function(e){return e.J.c};
g.I_=function(e){return/^TVHTML5/.test(nC(e))};
g.xj=function(e){return nC(e)==="TVHTML5"};
jV1=function(e){return nC(e)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
OLM=function(e){return e.J.cmodel==="CHROMECAST ULTRA/STEAK"||e.J.cmodel==="CHROMECAST/STEAK"};
g.jV=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
dX=function(e){return/web/i.test(nC(e))};
g.na=function(e){return nC(e).toUpperCase()==="WEB"};
Vy=function(e){return nC(e)==="WEB_KIDS"};
g.IK=function(e){return nC(e)==="WEB_UNPLUGGED"};
Qy=function(e){return nC(e)==="TVHTML5_UNPLUGGED"};
g.Pa=function(e){return g.IK(e)||nC(e)==="TV_UNPLUGGED_CAST"||Qy(e)};
g.ZY=function(e){return nC(e)==="WEB_REMIX"};
g.mT=function(e){return nC(e)==="WEB_EMBEDDED_PLAYER"};
g.Ka=function(e){return(e.deviceIsAudioOnly||!g.i$||Gv||e.controlsType==="3"?!1:g.NI?e.j&&g.SE(51):!0)||(e.deviceIsAudioOnly||!g.DT||Gv||e.controlsType==="3"?!1:g.NI?e.j&&g.SE(48):g.SE(38))||(e.deviceIsAudioOnly||!g.oK||Gv||e.controlsType==="3"?!1:g.NI?e.j&&g.SE(37):g.SE(27))||!e.deviceIsAudioOnly&&g.Hg&&!hhs()&&g.SE(11)||!e.deviceIsAudioOnly&&g.k$&&g.SE("604.4")};
L5F=function(e){if(g.dw(e)&&Bg)return!1;if(g.DT){if(!g.SE(47)||!g.SE(52)&&g.SE(51))return!1}else if(g.k$)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
auM=function(e,N){return e.enabledEngageTypes.has(N.toString())||sV5.includes(N)};
kj=function(e){return e.Rq==="detailpage"};
g.dw=function(e){return e.Rq==="embedded"};
Wg=function(e){return e.Rq==="leanback"};
cg=function(e){return e.Rq==="adunit"||e.playerStyle==="gvn"};
g.vg=function(e){return e.Rq==="profilepage"};
g.hR=function(e){return e.j&&g.dw(e)&&!cg(e)&&!e.Z};
OI=function(e){if(!e.userDisplayImage)return"";var N=e.userDisplayImage.split("/");if(N.length===5)return e=N[N.length-1].split("="),e[1]="s20-c",N[N.length-1]=e.join("="),N.join("/");if(N.length===8)return N.splice(7,0,"s20-c"),N.join("/");if(N.length===9)return N[7]+="-s20-c",N.join("/");g.uA(new g.Gh("Profile image not a FIFE URL.",e.userDisplayImage));return e.userDisplayImage};
g.RK=function(e){var N=g.ud(e);ec0.includes(N)&&(N="www.youtube.com");return e.protocol+"://"+N};
g.GX=function(e,N){N=N===void 0?"":N;if(e.Z3){var y=new O3,w,E=e.Z3();E.signedOut?w="":E.token?w=E.token:E.pendingResult.then(function(A){E.signedOut?y.resolve(""):y.resolve(A.token)},function(A){g.uA(new g.Gh("b189348328_oauth_callback_failed",{error:A}));
y.resolve(N)});
return w!==void 0?u4(w):new fp(y)}return u4(N)};
UI=function(e,N){N=N===void 0?"":N;return e.il?Nc(!0):Tm(A$(Nc(g.GX(e,N)),function(y){return Nc(!!y)}),function(){return Nc(!1)})};
DW=function(e){var N=g.uB(e);return(e=Number(g.to(4,e))||null)?N+":"+e:N};
La=function(e,N){N=N===void 0?!1:N;var y=nd[e],w=Ny1[y],E=ycJ[e];if(!E||!w)return null;N=new Zr(N?E.height:E.width,N?E.width:E.height,E.fps);w=Eh(w,N,y);return new QI(e,w,{video:N,JM:E.bitrate/8})};
EAP=function(e){var N=Ny1[nd[e]],y=whM[e];return y&&N?new QI(e,N,{audio:new tG(y.audioSampleRate,y.numChannels)}):null};
sI=function(e){this.J=e};
aK=function(e,N,y,w){if(y)return tE();y={};var E=v3();N=g.c(N);for(var A=N.next();!A.done;A=N.next())if(A=A.value,e.canPlayType(E,A.getInfo().mimeType)||w){var T=A.J.video.quality;if(!y[T]||y[T].getInfo().lm())y[T]=A}e=[];y.auto&&e.push(y.auto);w=g.c(x6);for(E=w.next();!E.done;E=w.next())(E=y[E.value])&&e.push(E);return e.length?u4(e):tE()};
Ac5=function(e){this.itag=e.itag;this.url=e.url;this.codecs=e.codecs;this.width=e.width;this.height=e.height;this.fps=e.fps;this.bitrate=e.bitrate;var N;this.N=((N=e.audioItag)==null?void 0:N.split(","))||[];this.kW=e.kW;this.BG=e.BG||"";this.Vl=e.Vl;this.audioChannels=e.audioChannels;this.J=""};
Ty9=function(e,N,y,w){N=N===void 0?!1:N;y=y===void 0?!0:y;w=w===void 0?{}:w;var E={};e=g.c(e);for(var A=e.next();!A.done;A=e.next()){A=A.value;if(N&&MediaSource&&MediaSource.isTypeSupported){var T=A.type;A.audio_channels&&(T=T+"; channels="+A.audio_channels);if(!MediaSource.isTypeSupported(T)){w[A.itag]="tpus";continue}}if(y||!A.drm_families||A.eotf!=="smpte2084"&&A.eotf!=="arib-std-b67"){T=void 0;var p={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},C=A.type.match(/codecs="([^"]*)"/);
C=C?C[1]:"";A.audio_track_id&&(T=new g.sM(A.name,A.audio_track_id,!!A.is_default));var r=A.eotf;A=new Ac5({itag:A.itag,url:A.url,codecs:C,width:Number(A.width),height:Number(A.height),fps:Number(A.fps),bitrate:Number(A.bitrate),audioItag:A.audio_itag,kW:r?p[r]:void 0,BG:A.drm_families,Vl:T,audioChannels:Number(A.audio_channels)});E[A.itag]=E[A.itag]||[];E[A.itag].push(A)}else w[A.itag]="enchdr"}return E};
Jcs=function(e,N,y,w,E){this.K=e;this.N=N;this.L=y;this.cpn=w;this.Z=E;this.j=0;this.J=""};
phM=function(e,N){e.K.some(function(y){var w;return((w=y.Vl)==null?void 0:w.getId())===N});
e.J=N};
ex=function(e,N,y){e.cpn&&(N=g.Qb(N,{cpn:e.cpn}));y&&(N=g.Qb(N,{paired:y}));return N};
CRn=function(e,N){e=e.itag.toString();N!==null&&(e+=N.itag.toString());return e};
rcJ=function(e){for(var N=[],y=[],w=g.c(e.N),E=w.next();!E.done;E=w.next())E=E.value,E.bitrate<=e.j?N.push(E):y.push(E);N.sort(function(A,T){return T.bitrate-A.bitrate});
y.sort(function(A,T){return A.bitrate-T.bitrate});
e.N=N.concat(y)};
NO=function(e,N,y){this.J=e;this.N=N;this.expiration=y;this.yl=null};
$pE=function(e,N){if(!(Gv||U8()||Ry()))return null;e=Ty9(N,e.T("html5_filter_fmp4_in_hls"));if(!e)return null;N=[];for(var y={},w=g.c(Object.keys(e)),E=w.next();!E.done;E=w.next()){E=g.c(e[E.value]);for(var A=E.next();!A.done;A=E.next()){var T=A.value;T.Vl&&(A=T.Vl.getId(),y[A]||(T=new g.W1(A,T.Vl),y[A]=T,N.push(T)))}}return N.length>0?N:null};
S_5=function(e,N,y,w,E,A,T){if(!(Gv||U8()||Ry()))return tE();var p={},C=Y__(y),r=Ty9(y,e.T("html5_filter_fmp4_in_hls"),e.L.Z,p);if(!r)return T({noplst:1}),tE();MmP(r);y={};var Y=(y.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",y),M;y=[];var l=[],F=[],S=null,k="";w=w&&w.match(/hls_timedtext_playlist/)?new Ac5({itag:"0",url:w,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Vl:new g.sM("English","en",!1)}):null;for(var X=g.c(Object.keys(r)),d=X.next();!d.done;d=X.next())if(d=d.value,!e.T("html5_disable_drm_hfr_1080")||
d!=="383"&&d!=="373"){d=g.c(r[d]);for(var v=d.next();!v.done;v=d.next())if(v=v.value,v.width){for(var V=g.c(v.N),Z=V.next();!Z.done;Z=V.next())if(Z=Z.value,r[Z]){v.J=Z;break}v.J||(v.J=lpJ(r,v));if(V=r[v.J])if(y.push(v),v.BG==="fairplay"&&(M=Y),Z="",v.kW==="PQ"?Z="smpte2084":v.kW==="HLG"&&(Z="arib-std-b67"),Z&&(k=Z),F.push(Fz_(V,[v],w,A,v.itag,v.width,v.height,v.fps,C,void 0,void 0,M,Z)),!S||v.width*v.height*v.fps>S.width*S.height*S.fps)S=v}else l.push(v)}else p[d]="disdrmhfr";F.reduce(function(n,
R){return R.getInfo().isEncrypted()&&n},!0)&&(M=Y);
E=Math.max(E,0);Y=S||{};r=Y.fps===void 0?0:Y.fps;S=Y.width===void 0?0:Y.width;Y=Y.height===void 0?0:Y.height;X=e.T("html5_native_audio_track_switching");F.push(Fz_(l,y,w,A,"93",S,Y,r,C,"auto",E,M,k,X));Object.entries(p).length&&T(p);return aK(e.L,F,tR(e,N),!1)};
Fz_=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){for(var S=0,k="",X=g.c(e),d=X.next();!d.done;d=X.next())d=d.value,k||(k=d.itag),d.audioChannels&&d.audioChannels>S&&(S=d.audioChannels,k=d.itag);E=new QI(E,"application/x-mpegURL",{audio:new tG(0,S),video:new Zr(A,T,p,null,void 0,r,void 0,l),BG:M,ZZ:k});e=new Jcs(e,N,y?[y]:[],w,!!F);e.j=Y?Y:1369843;return new NO(E,e,C)};
Y__=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.url&&(N=N.url.split("expire/"),!(N.length<=1)))return+N[1].split("/")[0];return NaN};
lpJ=function(e,N){for(var y=g.c(Object.keys(e)),w=y.next();!w.done;w=y.next()){w=w.value;var E=e[w][0];if(!E.width&&E.BG===N.BG&&!E.audioChannels)return w}return""};
MmP=function(e){for(var N=new Set,y=g.c(Object.values(e)),w=y.next();!w.done;w=y.next())w=w.value,w.length&&(w=w[0],w.height&&w.codecs.startsWith("vp09")&&N.add(w.height));y=[];if(N.size){w=g.c(Object.keys(e));for(var E=w.next();!E.done;E=w.next())if(E=E.value,e[E].length){var A=e[E][0];A.height&&N.has(A.height)&&!A.codecs.startsWith("vp09")&&y.push(E)}}N=g.c(y);for(y=N.next();!y.done;y=N.next())delete e[y.value]};
y3=function(e,N){this.J=e;this.N=N};
oAM=function(e,N,y,w){var E=[];y=g.c(y);for(var A=y.next();!A.done;A=y.next()){var T=A.value;if(T.url){A=new g.YE(T.url,!0);if(T.s){var p=A,C=T.sp,r=F$E(decodeURIComponent(T.s));p.set(C,encodeURIComponent(r))}p=g.c(Object.keys(w));for(C=p.next();!C.done;C=p.next())C=C.value,A.set(C,w[C]);T=ei(T.type,T.quality,T.itag,T.width,T.height);E.push(new y3(T,A))}}return aK(e.L,E,tR(e,N),!1)};
w8=function(e,N){this.J=e;this.N=N};
btF=function(e,N,y){var w=[];y=g.c(y);for(var E=y.next();!E.done;E=y.next())if((E=E.value)&&E.url){var A=ei(E.type,"medium","0");w.push(new w8(A,E.url))}return aK(e.L,w,tR(e,N),!1)};
hcs=function(e,N){var y=[],w=ei(N.type,"auto",N.itag);y.push(new w8(w,N.url));return aK(e.L,y,!1,!0)};
kKE=function(e){return e&&cc5[e]?cc5[e]:null};
Byn=function(e){if(e=e.commonConfig)this.url=e.url,this.urlQueryOverride=e.urlQueryOverride,e.ustreamerConfig&&(this.eL=sh(e.ustreamerConfig)||void 0)};
XhF=function(e,N){var y;if(N=N==null?void 0:(y=N.watchEndpointSupportedOnesieConfig)==null?void 0:y.html5PlaybackOnesieConfig)e.K4=new Byn(N)};
g.En=function(e){e=e===void 0?{}:e;this.languageCode=e.languageCode||"";this.languageName=e.languageName||null;this.kind=e.kind||"";this.name=e.name===void 0?null:e.name;this.displayName=e.displayName||null;this.id=e.id||null;this.J=e.is_servable||!1;this.isTranslateable=e.is_translateable||!1;this.url=e.url||null;this.vssId=e.vss_id||"";this.isDefault=e.is_default||!1;this.translationLanguage=e.translationLanguage||null;this.xtags=e.xtags||"";this.captionId=e.captionId||""};
g.Tr=function(e){var N={languageCode:e.languageCode,languageName:e.languageName,displayName:g.A3(e),kind:e.kind,name:e.name,id:e.id,is_servable:e.J,is_default:e.isDefault,is_translateable:e.isTranslateable,vss_id:e.vssId};e.xtags&&(N.xtags=e.xtags);e.captionId&&(N.captionId=e.captionId);e.translationLanguage&&(N.translationLanguage=e.translationLanguage);return N};
g.J3=function(e){return e.translationLanguage?e.translationLanguage.languageCode:e.languageCode};
g.PRs=function(e){var N=e.vssId;e.translationLanguage&&N&&(N="t"+N+"."+g.J3(e));return N};
g.A3=function(e){var N=[];if(e.displayName)N.push(e.displayName);else{var y=e.languageName||"";N.push(y);e.kind==="asr"&&y.indexOf("(")===-1&&N.push(" (Automatic Captions)");e.name&&N.push(" - "+e.name)}e.translationLanguage&&N.push(" >> "+e.translationLanguage.languageName);return N.join("")};
zc5=function(e,N,y,w){e||(e=N&&dp0.hasOwnProperty(N)&&IpP.hasOwnProperty(N)?IpP[N]+"_"+dp0[N]:void 0);N=e;if(!N)return null;e=N.match(vA0);if(!e||e.length!==5)return null;if(e=N.match(vA0)){var E=Number(e[3]),A=[7,8,10,5,6];e=!(Number(e[1])===1&&E===8)&&A.indexOf(E)>=0}else e=!1;return y||w||e?N:null};
p3=function(e,N){for(var y={},w=g.c(Object.keys(itE)),E=w.next();!E.done;E=w.next()){E=E.value;var A=N?N+E:E;A=e[A+"_webp"]||e[A];g.eO(A)&&(y[itE[E]]=A)}return y};
C3=function(e){var N={};if(!e||!e.thumbnails)return N;e=e.thumbnails.filter(function(p){return!!p.url});
e.sort(function(p,C){return p.width-C.width||p.height-C.height});
for(var y=g.c(Object.keys(Dps)),w=y.next();!w.done;w=y.next()){var E=Number(w.value);w=Dps[E];for(var A=g.c(e),T=A.next();!T.done;T=A.next())if(T=T.value,T.width>=E){E=gA3(T.url);g.eO(E)&&(N[w]=E);break}}(e=e.pop())&&e.width>=1280&&(e=gA3(e.url),g.eO(e)&&(N["maxresdefault.jpg"]=e));return N};
gA3=function(e){return e.startsWith("//")?"https:"+e:e};
r8=function(e){return e&&e.baseUrl||""};
$K=function(e){e=g.JE(e);for(var N=g.c(Object.keys(e)),y=N.next();!y.done;y=N.next()){y=y.value;var w=e[y];e[y]=Array.isArray(w)?w[0]:w}return e};
VmM=function(e,N){e.botguardData=N.playerAttestationRenderer.botguardData;N=N.playerAttestationRenderer.challenge;N!=null&&(e.VY=N)};
uv5=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=y.interstitials.map(function(T){var p=g.m(T,fpn);if(p)return{is_yto_interstitial:!0,raw_player_response:p};if(T=g.m(T,tm5))return Object.assign({is_yto_interstitial:!0},AE(T))});
w=g.c(w);for(var E=w.next();!E.done;E=w.next())switch(E=E.value,y.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":e.interstitials=e.interstitials.concat({time:0,playerVars:E,UR:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":e.interstitials=e.interstitials.concat({time:0x7ffffffffffff,playerVars:E,UR:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var A=Number(y.podConfig.timeToInsertAtMillis);e.interstitials=e.interstitials.concat({time:A,playerVars:E,
UR:A===0?5:7})}}};
q_J=function(e,N){if(N=N.find(function(y){return!(!y||!y.tooltipRenderer)}))e.tooltipRenderer=N.tooltipRenderer};
Zt5=function(e,N){N.subscribeCommand&&(e.subscribeCommand=N.subscribeCommand);N.unsubscribeCommand&&(e.unsubscribeCommand=N.unsubscribeCommand);N.addToWatchLaterCommand&&(e.addToWatchLaterCommand=N.addToWatchLaterCommand);N.removeFromWatchLaterCommand&&(e.removeFromWatchLaterCommand=N.removeFromWatchLaterCommand);N.getSharePanelCommand&&(e.getSharePanelCommand=N.getSharePanelCommand)};
xp9=function(e,N){N!=null?(e.yy=N,e.hs=!0):(e.yy="",e.hs=!1)};
YK=function(e,N){this.type=e||"";this.id=N||""};
g.MO=function(e){return new YK(e.substring(0,2),e.substring(2))};
g.l0=function(e,N){this.Ot=e;this.author="";this.AV=null;this.playlistLength=0;this.J=this.sessionData=null;this.D={};this.title="";if(N){this.author=N.author||N.playlist_author||"";this.title=N.playlist_title||"";if(e=N.session_data)this.sessionData=w2(e,"&");var y;this.J=((y=N.thumbnail_ids)==null?void 0:y.split(",")[0])||null;this.D=p3(N,"playlist_");this.videoId=N.video_id||void 0;if(y=N.list)switch(N.listType){case "user_uploads":this.playlistId=(new YK("UU","PLAYER_"+y)).toString();break;default:if(e=
N.playlist_length)this.playlistLength=Number(e)||0;this.playlistId=g.MO(y).toString();if(N=N.video)this.videoId=(N[0]||null).video_id||void 0}else N.playlist&&(this.playlistLength=N.playlist.toString().split(",").length)}};
g.Fr=function(e,N){this.Ot=e;this.B1=this.author="";this.AV=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.El=this.lengthText="";this.sessionData=null;this.D={};this.title="";if(N){this.ariaLabel=N.aria_label||void 0;this.author=N.author||"";this.B1=N.B1||"";if(e=N.endscreen_autoplay_session_data)this.AV=w2(e,"&");this.hV=N.hV;this.isLivePlayback=N.live_playback==="1";this.isUpcoming=!!N.isUpcoming;if(e=N.length_seconds)this.lengthSeconds=typeof e==="string"?Number(e):e;this.lengthText=
N.lengthText||"";this.El=N.El||"";this.publishedTimeText=N.publishedTimeText||void 0;if(e=N.session_data)this.sessionData=w2(e,"&");this.shortViewCount=N.short_view_count_text||void 0;this.D=p3(N);this.title=N.title||"";this.videoId=N.docid||N.video_id||N.videoId||N.id||void 0;this.watchUrl=N.watchUrl||void 0}};
jXP=function(e){var N,y,w=(N=e.getWatchNextResponse())==null?void 0:(y=N.contents)==null?void 0:y.twoColumnWatchNextResults,E,A,T,p,C;e=(E=e.getWatchNextResponse())==null?void 0:(A=E.playerOverlays)==null?void 0:(T=A.playerOverlayRenderer)==null?void 0:(p=T.endScreen)==null?void 0:(C=p.watchNextEndScreenRenderer)==null?void 0:C.results;if(!e){var r,Y;e=w==null?void 0:(r=w.endScreen)==null?void 0:(Y=r.endScreen)==null?void 0:Y.results}return e};
g.of=function(e){var N,y,w;e=g.m((N=e.getWatchNextResponse())==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,Sx);return g.m(e==null?void 0:e.playerBar,nAE)};
QXF=function(e){this.J=e.playback_progress_0s_url;this.K=e.playback_progress_2s_url;this.N=e.playback_progress_10s_url};
mp0=function(){if(b0===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(N){}a:{try{var e=!!self.localStorage}catch(N){e=!1}if(e&&(e=g.j6(g.UF()+"::yt-player"))){b0=new nR(e);break a}b0=void 0}}return b0};
g.h3=function(){var e=mp0();if(!e)return{};try{var N=e.get("yt-player-lv");return JSON.parse(N||"{}")}catch(y){return{}}};
g.HtM=function(e){var N=mp0();N&&(e=JSON.stringify(e),N.set("yt-player-lv",e))};
g.cH=function(e){return g.h3()[e]||0};
g.kK=function(e,N){var y=g.h3();N!==y[e]&&(N!==0?y[e]=N:delete y[e],g.HtM(y))};
g.BH=function(e){return g.f(function(N){return N.return(g.WV(KzP(),e))})};
PH=function(e,N,y,w,E,A,T,p){var C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:return C=g.cH(e),C===4?S.return(4):g.D(S,g.e7(),2);case 2:r=S.N;if(!r)throw g.X6("wiac");if(!p||T===void 0){S.u9(3);break}return g.D(S,Wzs(p,T),4);case 4:T=S.N;case 3:return Y=y.lastModified||"0",g.D(S,g.BH(r),5);case 5:return M=S.N,g.c5(S,6),Xr++,g.D(S,g.fl(M,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Lx:!0},function(k){if(A!==void 0&&T!==void 0){var X=""+e+"|"+N.id+"|"+Y+"|"+String(A).padStart(10,
"0");X=g.tg(k.objectStore("media"),T,X)}else X=g.d0.resolve(void 0);var d=Ot3(e,N.gx()),v=Ot3(e,!N.gx()),V={fmts:Rcn(w),format:y||{}};d=g.tg(k.objectStore("index"),V,d);var Z=w.downloadedEndTime===-1;V=Z?k.objectStore("index").get(v):g.d0.resolve(void 0);var n={fmts:"music",format:{}};k=Z&&E&&!N.gx()?g.tg(k.objectStore("index"),n,v):g.d0.resolve(void 0);return g.d0.all([k,V,X,d]).then(function(R){R=g.c(R);R.next();R=R.next().value;Xr--;var O=g.cH(e);if(O!==4&&Z&&E||R!==void 0&&g.GKM(R.fmts))O=1,g.kK(e,
O);return O})}),8);
case 8:return S.return(S.N);case 6:l=g.XH(S);Xr--;F=g.cH(e);if(F===4)return S.return(F);g.kK(e,4);throw l;}})};
g.Up5=function(e){var N,y;return g.f(function(w){if(w.J==1)return g.D(w,g.e7(),2);if(w.J!=3){N=w.N;if(!N)throw g.X6("ri");return g.D(w,g.BH(N),3)}y=w.N;return w.return(g.fl(y,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(E){var A=IDBKeyRange.bound(e+"|",e+"~");return E.objectStore("index").getAll(A).then(function(T){return T.map(function(p){return p?p.format:{}})})}))})};
sX9=function(e,N,y,w,E){var A,T,p;return g.f(function(C){if(C.J==1)return g.D(C,g.e7(),2);if(C.J!=3){A=C.N;if(!A)throw g.X6("rc");return g.D(C,g.BH(A),3)}T=C.N;p=g.fl(T,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(r){var Y=""+e+"|"+N+"|"+y+"|"+String(w).padStart(10,"0");return r.objectStore("media").get(Y)});
return E?C.return(p.then(function(r){if(r===void 0)throw Error("No data from indexDb");return Lz3(E,r)}).catch(function(r){throw new g.Gh("Error while reading chunk: "+r.name+", "+r.message);
})):C.return(p)})};
g.GKM=function(e){return e?e==="music"?!0:e.includes("dlt=-1")||!e.includes("dlt="):!1};
Ot3=function(e,N){return""+e+"|"+(N?"v":"a")};
Rcn=function(e){var N={};return E8((N.dlt=e.downloadedEndTime.toString(),N.mket=e.maxKnownEndTime.toString(),N.avbr=e.averageByteRate.toString(),N))};
eQ0=function(e){var N={},y={};e=g.c(e);for(var w=e.next();!w.done;w=e.next()){var E=w.value,A=E.split("|");E.match(g.apE)?(w=Number(A.pop()),isNaN(w)?y[E]="?":(A=A.join("|"),(E=N[A])?(A=E[E.length-1],w===A.end+1?A.end=w:E.push({start:w,end:w})):N[A]=[{start:w,end:w}])):y[E]="?"}e=g.c(Object.keys(N));for(w=e.next();!w.done;w=e.next())w=w.value,y[w]=N[w].map(function(T){return T.start+"-"+T.end}).join(",");
return y};
d8=function(e){g.pT.call(this);this.J=null;this.K=new m7;this.J=null;this.Z=new Set;this.crossOrigin=e||""};
NjM=function(e,N,y){for(y=If(e,y);y>=0;){var w=e.levels[y];if(w.isLoaded(vH(w,N))&&(w=g.zr(w,N)))return w;y--}return g.zr(e.levels[0],N)};
wrF=function(e,N,y){y=If(e,y);for(var w,E;y>=0;y--)if(w=e.levels[y],E=vH(w,N),!w.isLoaded(E)){w=e;var A=y,T=A+"-"+E;w.Z.has(T)||(w.Z.add(T),w.K.enqueue(A,{qV:A,gC:E}))}yen(e)};
yen=function(e){if(!e.J&&!e.K.isEmpty()){var N=e.K.remove();e.J=Et0(e,N)}};
Et0=function(e,N){var y=document.createElement("img");e.crossOrigin&&(y.crossOrigin=e.crossOrigin);y.src=e.levels[N.qV].nC(N.gC);y.onload=function(){var w=N.qV,E=N.gC;e.J!==null&&(e.J.onload=null,e.J=null);w=e.levels[w];w.loaded.add(E);yen(e);var A=w.columns*w.rows;E*=A;w=Math.min(E+A-1,w.VC()-1);E=[E,w];e.publish("l",E[0],E[1])};
return y};
g.i0=function(e,N,y,w){this.level=e;this.j=N;this.loaded=new Set;this.level=e;this.j=N;e=y.split("#");this.width=Math.floor(Number(e[0]));this.height=Math.floor(Number(e[1]));this.frameCount=Math.floor(Number(e[2]));this.columns=Math.floor(Number(e[3]));this.rows=Math.floor(Number(e[4]));this.J=Math.floor(Number(e[5]));this.K=e[6];this.signature=e[7];this.videoLength=w};
vH=function(e,N){return Math.floor(N/(e.columns*e.rows))};
g.zr=function(e,N){N>=e.T_()&&e.La();var y=vH(e,N),w=e.columns*e.rows,E=N%w;N=E%e.columns;E=Math.floor(E/e.columns);var A=e.La()+1-w*y;if(A<e.columns){var T=A;w=1}else T=e.columns,w=A<w?Math.ceil(A/e.columns):e.rows;return{url:e.nC(y),column:N,columns:T,row:E,rows:w,XL:e.width*T,Qp:e.height*w}};
DG=function(e,N,y,w,E){w=w===void 0?!1:w;E=E===void 0?!1:E;d8.call(this,y);this.isLive=w;this.G=!!E;this.levels=this.N(e,N);this.j=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
AeM=function(e,N,y){return(e=e.levels[N])?e.P8(y):-1};
If=function(e,N){var y=e.j.get(N);if(y)return y;y=e.levels.length;for(var w=0;w<y;w++)if(e.levels[w].width>=N)return e.j.set(N,w),w;e.j.set(N,y-1);return y-1};
g8=function(e,N,y,w){y=y.split("#");y=[y[1],y[2],0,y[3],y[4],-1,y[0],""].join("#");g.i0.call(this,e,N,y,0);this.N=null;this.L=w?2:0};
V3=function(e,N,y,w){DG.call(this,e,0,void 0,N,!(w===void 0||!w));for(e=0;e<this.levels.length;e++)this.levels[e].G1(y)};
TjP=function(e,N,y){N={cpn:N};e.indexOf("/ibw/")===-1&&(N.ibw=y?String(y):"1369843");return{url:g.Qb(e,N),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.t3=function(e,N){g.pT.call(this);var y=this;this.Ot=e;this.adaptiveFormats="";this.YU=this.kh=this.adQueryId=this.NE=null;this.IF={start:NaN,end:NaN};this.cueRanges=this.BG=null;this.pT=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.Xm=void 0;this.ub=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Wk="";this.Kk=!1;this.At=null;this.Pf=this.bb=this.a7=!1;this.j=null;this.Ly=this.xI=!1;this.Fo=
NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.F1=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.DN=0;this.y_=!1;this.bf=this.cycToken=null;this.author="";this.TH=!1;this.Bk=0;this.RO=!1;this.XR=null;this.zk=[];this.jg=this.uf=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.SR=this.WE="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Y_=0;this.Tg=this.Ut=this.N=null;this.zT="";this.loading=!1;this.CC=this.Sz=0;this.Vz=this.pipable=this.rq=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.IV=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Kx=this.isPrivate=this.isListed=this.o4=this.im=!1;this.Ob="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.D7=this.Rq=this.Ta=!1;this.latencyClass="UNKNOWN";this.JD=
this.fA=this.Lu=this.hv=this.cC=this.enablePreroll=this.KA=this.enableServerStitchedDai=this.As=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.jn=0;this.reloadReason="";this.wW=this.O9=this.UY=!1;this.keywords={};this.a9="";this.IY=0;this.uV=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.yh=null;this.vy=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.N8=this.paygated=!1;this.FA=
[];this.d2=!1;this.l9=[];this.E_=null;this.PB=this.racyCheckOk=!1;this.CA={};this.isProximaLatencyEligible=!1;this.VM=0;this.K=null;this.autonavState=1;this.FD=null;this.shortDescription="";this.qg=this.mI=!1;this.jN=this.Xz=this.startSeconds=0;this.E8=this.Pl=this.By=f3;this.t4=this.suggestions=null;this.g6=this.VE=void 0;this.isExternallyHostedPodcast=!1;this.rk=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.A4=void 0;this.Dl=[];this.ll=[];this.hlsFormats=this.Rx=
"";this.qZ=this.hN=this.ul=this.jp=this.VB=this.Ip=this.e$=null;this.zN="vvt";this.j_=!1;this.aT=null;this.ZL="";this.d1=NaN;this.R7=this.yn=this.Yb=this.e0=this.U8=this.Hc=this.nm=this.aC=this.Sy=this.zA="";this.Gg=null;this.zj=!1;this.G={};this.clipStart=0;this.clipEnd=Infinity;this.Ko=!1;this.heartbeatToken="";this.jd=this.tD=NaN;this.NK=this.Qk=this.AA=this.Z4=this.bA=!1;this.al=!0;this.D={};this.captionTracks=[];this.tX=[];this.m5=0;this.jE=[];this.wE=[];this.j$=!1;this.w$={};this.il=new g.W1("und",
new g.sM("Default","und",!0));this.q6=0;this.L=null;this.uo=[];this.i$=!1;this.mL=this.FZ="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Zl=this.xW=this.Z2=this.playerResponse=this.Fg=this.Vp=this.Ps=this.nw=this.Rv=this.sb=this.M6=null;this.lr=!1;this.Ng=null;this.isInlinePlaybackNoAd=this.xX=this.yJ=this.useCobaltWidevine=this.oI=this.qc=!1;this.Nw=!0;this.Js=this.YB=NaN;this.defraggedFromSubfragments=this.JB=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;
this.sabrContextUpdates=new Map;this.wh="";this.po=!1;this.zy=this.T("html5_enable_media_serving_enforcement");this.gatewayExperimentGroup="";this.WV=this.dT=this.CN=!1;this.interstitials=[];this.hs=this.I4=!1;this.yy="";this.allowImaMonetization=!1;this.uF="";this.KT=!1;this.Cl="";this.Em=[];this.yw=[];this.FS="";this.xn=this.U=this.wA=!1;this.m4="";this.pz=this.zM=this.Mk=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.hp=!1;
this.Z3=this.DD=!0;this.errorDetail=this.userGenderAge="";this.Ov=this.lf=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Qm=this.errorReason=this.errorCode=null;this.Oz=this.qE="";this.Ci=!1;this.Wy=[];this.PY=this.aq=this.pX=this.ZK=this.L$=0;this.fetchType=null;this.P0=!0;this.transitionEndpointAtEndOfStream=void 0;this.NJ=this.DE=-1;this.Sw=this.NG=!1;this.sY=null;this.Et="";this.Zc=!1;
this.watchUrl=null;this.Tv=[];this.visibleOnLoadKeys=[];this.nM=[];this.inlineMetricEnabled=this.zx=!1;this.embedsRctn=this.embedsRct="";this.gI=NaN;this.Rr=(0,g.iC)();this.YN=this.TV=0;this.eL=null;this.YO=0;this.xw=this.s6=!1;this.LX=this.Ot.experiments.gP("html5_use_triple_equals");this.SP=!1;this.WD=g.Y2(this.Ot.experiments,"html5_gapless_loop_seek_offset_in_milli");this.JX=0;this.sR={};this.lk={setData:function(w){y.setData(w)},
V0:function(){y.V0()}};
this.NG=this.T("web_new_autonav_countdown");this.Sw=this.T("web_new_big_thumbnail_endscreen");this.setData(N);this.h4=new Na;g.Q(this,this.h4)};
g.ZG=function(e,N,y){N&&N.cpn&&g.uA(new g.Gh("CPN provided in VideoData update",{oyh:N.cpn,b6:e.clientPlaybackNonce,krk:y}));y?(r9(N),e.setData(N),u0(e)&&e.V0()):(N=N||{},Je1(e,N),qO(e,N),prM(e,N),e.publish("dataupdated"))};
prM=function(e,N){e.fflags=pO(e.fflags,N.fflags);var y=N.iv_invideo_url;y&&(e.Wk=NG(y));e.Kk=A2(e.Kk,N.iv_ads_only);if(y=N.cta_conversion_urls)e.jD=y;e.isPharma=A2(e.isPharma,N.is_pharma);e.author=pO(e.author,N.author);e.WE=CS0(N.ttsurl)||e.WE;e.RO=A2(e.RO,N.cc_asr);e.SR=pO(e.SR,N.channel_path);if(y=N.profile_picture)e.profilePicture=pO(e.profilePicture,y);e.videoCountText=pO(e.videoCountText,N.video_count_text);e.autonavState=Th(e.autonavState,N.autonav_state,reF);if(e.T("html5_enable_ssap_entity_id")){var w;
y=!!N.cotn||!((w=e.playerResponse)==null||!w.cotn);w=g.Y2(e.Ot.experiments,"html5_entity_id_simplified_preferred_record_size");e.playerResponse&&!y&&(e.clientPlaybackNonce=$2n(e,e.playerResponse,w)||e.clientPlaybackNonce);e.clientPlaybackNonce||(N.cpn&&e.kN("ssei","uhdc"),e.clientPlaybackNonce=pO(e.clientPlaybackNonce,N.cpn))}else e.clientPlaybackNonce=pO(e.clientPlaybackNonce,N.cpn);e.subscribed=A2(e.subscribed,N.subscribed);e.rawViewCount=J2(e.rawViewCount,N.view_count);e.shortViewCount=pO(e.shortViewCount,
N.short_view_count_text);e.publishedTimeText=pO(e.publishedTimeText||"",N.publishedTimeText);e.lengthText=pO(e.lengthText||"",N.lengthText);e.El=pO(e.El||"",N.El);e.B1=pO(e.B1||"",N.B1);e.title=pO(e.title,N.title);e.subtitle=pO(e.subtitle,N.subtitle);e.expandedTitle=pO(e.expandedTitle,N.expanded_title);e.expandedSubtitle=pO(e.expandedSubtitle,N.expanded_subtitle);e.ypcPreview=pO(e.ypcPreview,N.ypc_preview);e.d$=pO(e.d$,N.ypc_origin);e.j_=A2(e.j_,N.ypc_is_premiere_trailer);e.m4=pO(e.m4,N.ypc_clickwrap_message);
e.paygated=A2(e.paygated,N.paygated);e.zj=A2(e.zj,N.requires_purchase);e.showShareButton=!A2(!e.showShareButton,N.ss);e.DD=A2(e.DD,N.showwatchlater);e.Z3=A2(e.Z3,N.shownotifybutton);e.hp=A2(e.hp,N.copy_share);if(w=N.el)e.eventLabel=w;if(w=N.keywords)e.keywords=Y1M(w.split(","));if(w=N.rvs)e.suggestions=Tk(w).map(function(E){return E.playlist||E.list||E.api?new g.l0(e.Ot,E):new g.Fr(e.Ot,E)});
e.contentCheckOk=A2(e.contentCheckOk,N.cco);e.racyCheckOk=A2(e.racyCheckOk,N.rco);e.isLivingRoomDeeplink=A2(e.isLivingRoomDeeplink,N.is_living_room_deeplink);e.oauthToken=pO(e.oauthToken,N.oauth_token);e.a9=pO(e.a9,N.kpt);e.visitorData=pO(e.visitorData,N.visitor_data);if(w=N.session_data)e.sessionData=w2(w,"&");e.yO=pO(e.yO,N.endscreen_ad_tracking_data);e.WB=A2(e.WB,N.wait_for_vast_info_cards_xml);e.fT=A2(e.fT,N.suppress_creator_endscreen);e.jj=A2(e.jj,N.is_trueview_action);e.Yq=pO(e.Yq,N.tracking_list);
e.qE=pO(e.qE,N.clip);e.Oz=pO(e.Oz,N.clipt);Mj5(e,N)};
$2n=function(e,N,y){var w,E=(w=N.cpnInfo)==null?void 0:w.cpn;e.playerResponseCpn=E!=null?E:"";g.xK(e)&&!E&&e.kN("ssei","eim_"+e.clientPlaybackNonce);var A;return((A=N.cacheMetadata)==null?0:A.isCacheHit)||e.jg||!E?"":(jx.has(E)?y="":(N=lCM.push(E),jx.add(E),N>(y!=null?y:50)&&(y=lCM.shift())&&jx.delete(y),y=E),E!==y&&e.kN("ssei","dcpn_"+E+"_"+y+"_"+e.clientPlaybackNonce),y)};
qO=function(e,N){var y=N.raw_watch_next_response;if(!y){var w=N.watch_next_response;w&&(y=JSON.parse(w))}if(y){e.Zl=y;var E=e.Zl.playerCueRangeSet;E&&g.n3(e,E);var A=e.Zl.playerOverlays;if(A){var T=A.playerOverlayRenderer;if(T){var p=T.autonavToggle;p&&(e.autoplaySwitchButtonRenderer=g.m(p,F9M),e.T("web_player_autonav_use_server_provided_state")&&Q3(e)&&(e.autonavState=e.autoplaySwitchButtonRenderer.enabled?2:1));var C=T.videoDetails;if(C){var r=C.embeddedPlayerOverlayVideoDetailsRenderer;var Y=C.playerOverlayVideoDetailsRenderer;
Y&&(Y.title&&(N.title=g.SY(Y.title)),Y.subtitle&&(N.subtitle=g.SY(Y.subtitle)))}g.dw(e.Ot)&&(e.DD=!!T.addToMenu);S15(e,T.shareButton);T.startPosition&&T.endPosition&&(e.progressBarStartPosition=T.startPosition,e.progressBarEndPosition=T.endPosition);var M=T.gatedActionsOverlayRenderer;M&&(e.t7=g.m(M,otM));var l,F,S,k=g.m((l=e.getWatchNextResponse())==null?void 0:(F=l.playerOverlays)==null?void 0:(S=F.playerOverlayRenderer)==null?void 0:S.infoPanel,bNM);if(k){e.gI=Number(k==null?void 0:k.durationMs)||
NaN;if(k==null?0:k.infoPanelOverviewViewModel)e.Fr=k==null?void 0:k.infoPanelOverviewViewModel;if(k==null?0:k.infoPanelDetailsViewModel)e.ib=k==null?void 0:k.infoPanelDetailsViewModel}e.showSeekingControls=!!T.showSeekingControls}}var X,d,v=(X=e.getWatchNextResponse())==null?void 0:(d=X.contents)==null?void 0:d.twoColumnWatchNextResults;if(v){var V=v.desktopOverlay&&g.m(v.desktopOverlay,hQE);V&&(V.suppressShareButton&&(e.showShareButton=!1),V.suppressWatchLaterButton&&(e.DD=!1))}r&&ces(e,N,r);var Z=
J2(0,N.autoplay_count),n=e.getWatchNextResponse(),R,O=(R=n.contents)==null?void 0:R.twoColumnWatchNextResults,E9,Jn,eM,H=(E9=n.playerOverlays)==null?void 0:(Jn=E9.playerOverlayRenderer)==null?void 0:(eM=Jn.autoplay)==null?void 0:eM.playerOverlayAutoplayRenderer,a=jXP(e),h,K=(h=n.contents)==null?void 0:h.singleColumnWatchNextResults;if(K){var aP;if(((aP=K.autoplay)==null?0:aP.autoplay)&&!K.playlist){var XF=K.autoplay.autoplay.sets,Yw={},v5=new g.Fr(e.X()),U9=null,yT;if(XF){for(var S0=g.c(XF),P=S0.next();!P.done;P=
S0.next()){var I=P.value.autoplayVideoRenderer;if(I&&I.compactVideoRenderer){U9=I.compactVideoRenderer;break}}if(yT=XF[0].autoplayVideo){var z=yT.clickTrackingParams;z&&(Yw.itct=z);Yw.autonav="1";Yw.playnext=String(Z)}}else Yw.feature="related-auto";var t=g.m(yT,g.m0);if(U9){v5.videoId=U9.videoId;var q=U9.shortBylineText;q&&(v5.author=g.SY(q));var y0=U9.title;y0&&(v5.title=g.SY(y0))}else t!=null&&t.videoId&&(v5.videoId=t.videoId);v5.AV=Yw;e.suggestions=[];e.t4=v5}}if(a){for(var An=[],Ts=g.c(a),u=
Ts.next();!u.done;u=Ts.next()){var $J=u.value,SM=void 0,CM=null;if($J.endScreenVideoRenderer){var g_=$J.endScreenVideoRenderer,MM=g_.title;CM=new g.Fr(e.X());CM.videoId=g_.videoId;CM.lengthSeconds=g_.lengthInSeconds||0;var j0=g_.publishedTimeText;j0&&(CM.publishedTimeText=g.SY(j0));var YR=g_.shortBylineText;YR&&(CM.author=g.SY(YR));var H5=g_.shortViewCountText;H5&&(CM.shortViewCount=g.SY(H5));if(MM){CM.title=g.SY(MM);var Zy=MM.accessibility;if(Zy){var CB=Zy.accessibilityData;CB&&CB.label&&(CM.ariaLabel=
CB.label)}}var VF=g_.navigationEndpoint;if(VF){SM=VF.clickTrackingParams;var K9=g.m(VF,g.m0),YY=g.m(VF,g.qu);K9?CM.hV=K9:YY!=null&&(CM.watchUrl=YY.url)}var ng=g_.thumbnailOverlays;if(ng)for(var xR=g.c(ng),Qp=xR.next();!Qp.done;Qp=xR.next()){var hL=Qp.value.thumbnailOverlayTimeStatusRenderer;if(hL)if(hL.style==="LIVE"){CM.isLivePlayback=!0;break}else if(hL.style==="UPCOMING"){CM.isUpcoming=!0;break}}CM.D=C3(g_.thumbnail)}else if($J.endScreenPlaylistRenderer){var MP=$J.endScreenPlaylistRenderer,gR=
MP.navigationEndpoint;if(!gR)continue;var Mg=g.m(gR,g.m0);if(!Mg)continue;var Vb=Mg.videoId;CM=new g.l0(e.X());CM.playlistId=MP.playlistId;CM.playlistLength=Number(MP.videoCount)||0;CM.J=Vb||null;CM.videoId=Vb;var VP=MP.title;VP&&(CM.title=g.SY(VP));var fc=MP.shortBylineText;fc&&(CM.author=g.SY(fc));SM=gR.clickTrackingParams;CM.D=C3(MP.thumbnail)}CM&&(SM&&(CM.sessionData={itct:SM}),An.push(CM))}e.suggestions=An}if(H){e.P0=!!H.preferImmediateRedirect;e.NG=e.NG||!!H.webShowNewAutonavCountdown;e.Sw=
e.Sw||!!H.webShowBigThumbnailEndscreen;if(e.NG||e.Sw){var iq=O||null,Lf=new g.Fr(e.X());Lf.videoId=H.videoId;var m_=H.videoTitle;if(m_){Lf.title=g.SY(m_);var wr=m_.accessibility;if(wr){var Xb=wr.accessibilityData;Xb&&Xb.label&&(Lf.ariaLabel=Xb.label)}}var my=H.byline;my&&(Lf.author=g.SY(my));var Md=H.publishedTimeText;Md&&(Lf.publishedTimeText=g.SY(Md));var M$=H.shortViewCountText;M$&&(Lf.shortViewCount=g.SY(M$));var lU=H.thumbnailOverlays;if(lU)for(var FQ=g.c(lU),wz=FQ.next();!wz.done;wz=FQ.next()){var Ap=
wz.value.thumbnailOverlayTimeStatusRenderer;if(Ap)if(Ap.style==="LIVE"){Lf.isLivePlayback=!0;break}else if(Ap.style==="UPCOMING"){Lf.isUpcoming=!0;break}else if(Ap.style==="DEFAULT"&&Ap.text){Lf.lengthText=g.SY(Ap.text);var Eq=Ap.text.accessibility;if(Eq){var Ay=Eq.accessibilityData;Ay&&Ay.label&&(Lf.El=Ay.label||"")}break}}Lf.D=C3(H.background);var Si=H.nextButton;if(Si){var o8=Si.buttonRenderer;if(o8){var bU=o8.navigationEndpoint;if(bU){var hX=g.m(bU,g.m0);hX&&(Lf.hV=hX)}}}if(H.topBadges){var cI=
H.topBadges[0];if(cI){var kH=g.m(cI,kRF);kH&&kH.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Lf.Qeg=!0)}}var zC=H.alternativeTitle;zC&&(Lf.B1=g.SY(zC));var PB={autonav:"1",playnext:String(Z)};Lf.playlistId&&(PB.autoplay="1");if(iq){var ik,W4,TH,BI,Jy=(ik=iq.autoplay)==null?void 0:(W4=ik.autoplay)==null?void 0:(TH=W4.sets)==null?void 0:(BI=TH[0])==null?void 0:BI.autoplayVideo;if(Jy){var XQ=Jy.clickTrackingParams;XQ&&(PB.itct=XQ);var pV=g.m(Jy,g.m0);pV&&(Lf.FD=pV)}}else if(H){var PI,dO,I8,vI=(PI=H.nextButton)==
null?void 0:(dO=PI.buttonRenderer)==null?void 0:(I8=dO.navigationEndpoint)==null?void 0:I8.clickTrackingParams;vI&&(PB.itct=vI)}PB.itct||(PB.feature="related-auto");Lf.AV=PB;e.suggestions||(e.suggestions=[]);e.t4=Lf}H.countDownSecs!=null&&(e.DE=H.countDownSecs*1E3);H.countDownSecsForFullscreen!=null&&(e.NJ=H.countDownSecsForFullscreen>=0?H.countDownSecsForFullscreen*1E3:-1);e.T("web_autonav_color_transition")&&H.watchToWatchTransitionRenderer&&(e.watchToWatchTransitionRenderer=g.m(H.watchToWatchTransitionRenderer,
BjM))}var CV=jXP(e);if(CV){var z6,Di,iU,rz=CV==null?void 0:(z6=CV[0])==null?void 0:(Di=z6.endScreenVideoRenderer)==null?void 0:(iU=Di.navigationEndpoint)==null?void 0:iU.clickTrackingParams,Do=g.HH(e);rz&&Do&&(Do.sessionData={itct:rz})}e.Zl.currentVideoThumbnail&&(e.D=C3(e.Zl.currentVideoThumbnail));var gO,I1,kf,vB,$i,ci=(gO=e.Zl)==null?void 0:(I1=gO.contents)==null?void 0:(kf=I1.twoColumnWatchNextResults)==null?void 0:(vB=kf.results)==null?void 0:($i=vB.results)==null?void 0:$i.contents;if(ci&&ci[1]){var kp,
Bi,Vc,Tu,XG=(kp=ci[1].videoSecondaryInfoRenderer)==null?void 0:(Bi=kp.owner)==null?void 0:(Vc=Bi.videoOwnerRenderer)==null?void 0:(Tu=Vc.thumbnail)==null?void 0:Tu.thumbnails;XG&&XG.length&&(e.profilePicture=XG[XG.length-1].url)}var gd=r9(N),fh,th=(fh=e.getWatchNextResponse())==null?void 0:fh.onResponseReceivedEndpoints;if(th)for(var tX=g.c(th),Yi=tX.next();!Yi.done;Yi=tX.next()){var MY=Yi.value;g.m(MY,K3)&&(e.lF=g.m(MY,K3));var Jp=g.m(MY,XrP),uU=void 0;if((uU=Jp)==null?0:uU.entityKeys)e.Tv=Jp.entityKeys||
[],Jp.visibleOnLoadKeys&&(e.visibleOnLoadKeys=Jp.visibleOnLoadKeys)}if(e.T("web_key_moments_markers")){var fX=g.WH.getState().entities,q$=g.J5("visibility_override","markersVisibilityOverrideEntity");var Hz=Cj(fX,"markersVisibilityOverrideEntity",q$);e.Dl=(Hz==null?void 0:Hz.videoId)===(e.videoId||gd)&&(Hz==null?0:Hz.visibilityOverrideMarkersKey)?Hz.visibilityOverrideMarkersKey:e.visibleOnLoadKeys;e.visibleOnLoadKeys=[].concat(g.B(e.Dl))}}};
Q3=function(e){var N;return((N=e.autoplaySwitchButtonRenderer)==null?void 0:N.enabled)!==void 0};
On=function(e){return!!(e.K&&e.K.videoInfos&&e.K.videoInfos.length)};
g.sn=function(e){var N=e.U;e.T("html5_gapless_unlimit_format_selection")&&Rf(e)&&(N=!1);var y=!!e.J&&e.J.Cx,w=e.Ot,E=e.wg(),A=Gr(e),T=e.dT,p=N,C=e.isOtf();N=e.Ej();var r=e.Kx,Y=e.getUserAudio51Preference(),M=Un(e),l=new LaE(w);if(w.B9()||w.T("html5_logging_format_selection"))l.N=!0;l.Wk=A;l.dT=T&&w.G;l.aq=Y;g.Kp("windows nt 5.1")&&!g.DT&&(l.RY=!0);if(A=E)A=g.Ka(w)?L5F(w):!1;A&&(l.qg=!0);p&&(l.RY=!0,l.LX=!0);C&&!w.T("html5_otf_prefer_vp9")&&(l.RY=!0);w.playerStyle==="picasaweb"&&(C&&(l.RY=!1),l.l9=
!1);r&&(l.RY=!0);rD(w.L,$E.CHANNELS)&&(w.T("html5_enable_aac51")&&(l.Kh=!0),w.T("html5_enable_ac3")&&(l.j=!0),w.T("html5_enable_eac3")&&(l.L=!0),w.T("html5_enable_ac3_gapless")&&(l.Zl=!0));w.T("html5_block_8k_hfr")&&(l.VB=!0);l.Z=g.Y2(w.experiments,"html5_max_selectable_quality_ordinal");l.G=g.Y2(w.experiments,"html5_min_selectable_quality_ordinal");KC&&(l.jn=480);if(y||E)l.l9=!1;l.Dl=!1;l.disableAv1=M;y=k_(w,l.J,void 0,l.disableAv1);y>0&&y<2160&&(Zo()||w.T("html5_format_hybridization"))&&(l.J.supportsChangeType=
+Zo(),l.G4=y);y>=2160&&(l.Rq=!0);PFH()&&(l.J.serveVp9OverAv1IfHigherRes=0,l.U2=!1);l.Ej=N;l.Bk=g.Um||w9()&&!N?!1:!0;l.U=w.T("html5_format_hybridization");l.SR=w.T("html5_disable_encrypted_vp9_live_non_2k_4k");L3(e)&&(l.PY=e.T("html5_prefer_language_over_codec"));Ry()&&e.playerResponse&&e.playerResponse.playerConfig&&e.playerResponse.playerConfig.webPlayerConfig&&e.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(l.j=!0,l.L=!0);e.U&&e.isAd()&&(e.VE&&(l.Ng=e.VE),e.g6&&(l.K=
e.g6));l.Et=e.isLivePlayback&&e.RV()&&e.Ot.T("html5_drm_live_audio_51");l.a9=e.yJ;return e.sY=l};
Un=function(e){return e.Ot.T("html5_disable_av1")||e.T("html5_gapless_shorts_disable_av1")&&Rf(e)?!0:!1};
PSJ=function(e){jZ("drm_pb_s",void 0,e.Et);e.Ut||e.J&&Ai(e.J);var N={};e.J&&(N=qpP(e.h4,g.sn(e),e.Ot.L,e.J,function(y){return e.publish("ctmp","fmtflt",y)},!0,new Set));
N=new qX(N,e.Ot,e.oI,e.useCobaltWidevine?Ry()?af(e):!1:!1,function(y,w){e.Fh(y,w)});
g.Q(e,N);e.Qk=!1;e.loading=!0;pd9(N,function(y){jZ("drm_pb_f",void 0,e.Et);for(var w=g.c(y),E=w.next();!E.done;E=w.next())switch(E=E.value,E.flavor){case "fairplay":E.Ut=e.Ut;E.c5=e.c5;E.zd=e.zd;break;case "widevine":E.Tg=e.Tg}e.uo=y;if(e.uo.length>0&&(e.L=e.uo[0],e.Ot.B9())){y={};w=g.c(Object.entries(e.L.J));for(E=w.next();!E.done;E=w.next()){var A=g.c(E.value);E=A.next().value;A=A.next().value;var T="unk";(E=E.match(/(.*)codecs="(.*)"/))&&(T=E[2]);y[T]=A}e.Fh("drmProbe",y)}e.V0()})};
d2H=function(e,N){if(N.length===0||e5(e))return null;NK(e,"html5_enable_cobalt_experimental_vp9_decoder")&&(b2=!0);var y=e.BG;var w=e.lengthSeconds,E=e.isLivePlayback,A=e.Ta,T=e.Ot,p=uQH(N);if(E||A){T=T.experiments;w=new wt("",T,!0);w.N=!A;w.Cx=!0;w.isManifestless=!0;w.isLive=!A;w.Ta=A;N=g.c(N);for(E=N.next();!E.done;E=N.next()){var C=E.value;E=TE(C,y);p=bN(C);p=pC(p.Uv||C.url||"",p.xm,p.s);var r=p.get("id");r&&r.includes("%7E")&&(w.D=!0);var Y=void 0;r=(Y=T)==null?void 0:Y.gP("html5_max_known_end_time_rebase");
Y=Number(C.targetDurationSec||5);C=Number(C.maxDvrDurationSec||14400);var M=Number(p.get("mindsq")||p.get("min_sq")||"0"),l=Number(p.get("maxdsq")||p.get("max_sq")||"0")||Infinity;w.L$=w.L$||M;w.ZK=w.ZK||l;var F=!Ug(E);p&&eI(w,new n1(p,E,{j1:Y,mA:F,pI:C,L$:M,ZK:l,TR:300,Ta:A,Ym:r}))}y=w}else if(p==="FORMAT_STREAM_TYPE_OTF"){w=w===void 0?0:w;A=new wt("",T.experiments,!1);A.duration=w||0;T=g.c(N);for(w=T.next();!w.done;w=T.next())w=w.value,N=TE(w,y,A.duration),E=bN(w),(E=pC(E.Uv||w.url||"",E.xm,E.s))&&
(N.streamType==="FORMAT_STREAM_TYPE_OTF"?eI(A,new Qt(E,N,"sq/0")):eI(A,new L1(E,N,ka(w.initRange),ka(w.indexRange))));A.isOtf=!0;y=A}else{w=w===void 0?0:w;A=new wt("",T.experiments,!1);A.duration=w||0;T=g.c(N);for(w=T.next();!w.done;w=T.next())p=w.value,w=TE(p,y,A.duration),N=ka(p.initRange),E=ka(p.indexRange),r=bN(p),(p=pC(r.Uv||p.url||"",r.xm,r.s))&&eI(A,new L1(p,w,N,E));y=A}A=e.isLivePlayback&&!e.Ta&&!e.Rq&&!e.isPremiere;e.T("html5_live_head_playable")&&(!yG(e)&&A&&e.Fh("missingLiveHeadPlayable",
{}),e.Ot.Ng==="yt"&&(y.Bk=!0));return y};
e5=function(e){return Ry()?!af(e):U8()?!(!e.Ut||!e.T("html5_enable_safari_fairplay")&&WU()):!1};
af=function(e){return e.T("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.n3=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next())if(y=y.value,y.cueRangeSetIdentifier){var w=void 0;e.pT.set(y.cueRangeSetIdentifier,(w=y.playerCueRanges)!=null?w:[])}};
wd=function(e){return!(!e.J||!e.J.isManifestless)};
Es=function(e){return e.LX?e.isLowLatencyLiveStream&&e.J!=null&&Y_(e.J)>=5:e.isLowLatencyLiveStream&&e.J!=void 0&&Y_(e.J)>=5};
ICH=function(e){return Ry()&&af(e)?!1:e5(e)&&(g.Pa(e.Ot)?!e.isLivePlayback:e.hlsvp)||!WU()||e.uf?!0:!1};
iNE=function(e){e.loading=!0;e.AA=!1;if(vtP(e))g.Up5(e.videoId).then(function(w){zQF(e,w)}).then(function(){e.V0()});
else{a_(e.U2)||g.uA(new g.Gh("DASH MPD Origin invalid: ",e.U2));var N=e.U2,y=g.Y2(e.Ot.experiments,"dash_manifest_version")||4;N=g.Qb(N,{mpd_version:y});e.isLowLatencyLiveStream&&e.latencyClass!=="NORMAL"||(N=g.Qb(N,{pacing:0}));Hh9(N,e.Ot.experiments,e.isLivePlayback).then(function(w){e.Ss()||(AY(e,w,!0),jZ("mrc",void 0,e.Et),e.V0())},function(w){e.Ss()||(e.loading=!1,e.publish("dataloaderror",new P3("manifest.net.retryexhausted",{backend:"manifest",
rc:w.status},1)))});
jZ("mrs",void 0,e.Et)}};
zQF=function(e,N){var y=N.map(function(C){return C.itag}),w;
if((w=e.playerResponse)!=null&&w.streamingData){w=[];if(e.T("html5_offline_always_use_local_formats")){y=0;for(var E=g.c(N),A=E.next();!A.done;A=E.next()){A=A.value;var T=Object.assign({},A);T.signatureCipher="";w.push(T);T=g.c(e.playerResponse.streamingData.adaptiveFormats);for(var p=T.next();!p.done;p=T.next())if(p=p.value,A.itag===p.itag&&A.xtags===p.xtags){y+=1;break}}y<N.length&&e.Fh("offnpf",{prlen:y,lflen:N.length})}else for(E=g.c(e.playerResponse.streamingData.adaptiveFormats),T=E.next(),
A={};!T.done;A={lR:void 0},T=E.next())if(A.lR=T.value,e.T("html5_fix_multi_audio_offline_playback"))for(T=g.c(N),p=T.next();!p.done;p=T.next())p=p.value,p.itag===A.lR.itag&&p.xtags===A.lR.xtags&&(A.lR=Object.assign({},A.lR),A.lR.url=N.find(function(C){return function(r){return r.itag===C.lR.itag}}(A)).url,A.lR.signatureCipher="",w.push(A.lR));
else y.includes(A.lR.itag)&&(A.lR=Object.assign({},A.lR),A.lR.url=N.find(function(C){return function(r){return r.itag===C.lR.itag}}(A)).url,A.lR.signatureCipher="",w.push(A.lR));
w.length<2&&e.Fh("offmlf",{len:w.length});N=d2H(e,w);Gr(e)&&Rz9(N,!1);AY(e,N);e.Fh("dlr",{})}else e.Fh("offsdm",{cotn:e.xW?e.xW.cotn:"0",cpn:e.clientPlaybackNonce})};
D25=function(e){var N;return!((N=e.Ot.getWebPlayerContextConfig())==null||!N.enableProximaLowLatency)};
TC=function(e){if(!e.isProximaLatencyEligible)return 0;var N=im();return D25(e)?2:N===1?1:e.T("html5_enable_proxima")?2:0};
AY=function(e,N,y){y=y===void 0?!1:y;e.fk=void 0;e.J=N;g.Q(e,N);N.L$=e.L$;N.ZK=e.ZK;N.aq=e.aq;N.pX=e.pX;N.PY=e.PY;e.kX&&(N.U=new $a(e.kX));(e.wg()||g.JY(e))&&e.l9.push("webgl");e.J.isLive||(e.isLivePlayback=!1);var w=N.sourceUrl.split("/");if(e.LX?w.indexOf("manifest_duration")!==-1:w.indexOf("manifest_duration")!=-1)e.yh=Number(w[w.indexOf("manifest_duration")+1]);if(N.N||N.isManifestless)N.subscribe("clienttemp",e.Fh,e),y?N.subscribe("refresh",e.Ow,e):N.subscribe("cuepointsadded",e.z7,e);Ai(N)?
e.Qk=!0:x_=void 0;e.Rq&&(N.j=e.Rq,N.isLive=!0,e.isLivePlayback=!0);N.isPremiere=e.isPremiere;N.isLiveHeadPlayable=e.isLiveHeadPlayable};
VjM=function(e,N){var y=N||ICH(e)||e.isExternallyHostedPodcast;if(!e.J||y)return e.Fh("skipDash",{dm:!!e.J,air:N,dd:e.uf,mss:WU(),"3pp":e.isExternallyHostedPodcast}),tE();Gr(e)&&Rz9(e.J,e.isLivePlayback);NK(e,"html5_enable_cobalt_experimental_vp9_decoder")&&Pi1(e.Ot.L);return u4().then(function(){return xG0(e.h4,g.sn(e),e.Ot.L,e.J,e.L,function(w){return e.publish("ctmp","fmtflt",w)},e.yw,L3(e)&&e.T("html5_enable_server_format_filter")).then(function(w){gt0(e,w);
e.h4.J=null;/^av/.test(e.clientPlaybackNonce)&&e.sY&&e.Fh("av1",e.sY.J)})})};
fC9=function(e,N){if(N&&e.hlsvp)return tE();if(e.hlsFormats){N=pX(e.hlsFormats);var y;if(((y=e.sY)==null?0:y.N)&&N){y=[];for(var w=g.c(N),E=w.next();!E.done;E=w.next())y.push(E.value.itag);e.Fh("hlsfmt",{itags:y.join(".")})}e.e$=$pE(e.Ot,N);y=e.clientPlaybackNonce;var A,T,p,C;return S_5(e.Ot,e.isAd(),N,(C=(A=e.playerResponse)==null?void 0:(T=A.captions)==null?void 0:(p=T.playerCaptionsRenderer)==null?void 0:p.baseUrl)!=null?C:null,e.CC,y,function(r){return e.publish("ctmp","hlsflt",r)}).then(function(r){for(var Y=
0,M=[],l=g.c(r),F=l.next();!F.done;F=l.next()){F=F.value;
var S=void 0;M.push((S=F.getInfo())==null?void 0:S.itag);var k=S=void 0;((S=F.getInfo())==null?void 0:(k=S.audio)==null?void 0:k.numChannels)>Y&&(Y=F.getInfo().audio.numChannels)}Y>2&&e.Fh("hlschl",{mn:Y});var X;((X=e.sY)==null?0:X.N)&&e.Fh("hlsfmtaf",{itags:M.join(".")});var d;if(e.T("html5_enable_vp9_fairplay")&&((d=e.L)==null?0:zE(d)))for(e.Fh("drm",{sbdlfbk:1}),Y=g.c(e.uo),M=Y.next();!M.done;M=Y.next())if(M=M.value,vU(M)){e.L=M;break}CX(e,r)})}return tE()};
tjM=function(e){if(e.isExternallyHostedPodcast&&e.Rx){var N=pX(e.Rx);if(!N[0])return tE();e.H$=N[0];return hcs(e.Ot,N[0]).then(function(y){CX(e,y)})}return e.rk&&e.O9?btF(e.Ot,e.isAd(),e.rk).then(function(y){CX(e,y)}):tE()};
q1M=function(e){if(e.isExternallyHostedPodcast)return tE();var N=pX(e.Rx,e.zT);if(e.hlsvp){var y=TjP(e.hlsvp,e.clientPlaybackNonce,e.CC);N.push(y)}return oAM(e.Ot,e.isAd(),N,u4s(e)).then(function(w){CX(e,w)})};
gt0=function(e,N){e.K=N;if(e.K){N=g.c(e.K.videoInfos);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=y.containerType;w!==0&&(e.w$[w]=y.id)}}rd(e);if(e.L&&e.K&&e.K.videoInfos&&!(e.K.videoInfos.length<=0)&&(N=GS(e.K.videoInfos[0]),e.L.flavor==="fairplay"!==N))for(y=g.c(e.uo),w=y.next();!w.done;w=y.next())if(w=w.value,N===(w.flavor==="fairplay")){e.L=w;break}};
CX=function(e,N){e.jp=N;gt0(e,new ed(g.dn(e.jp,function(y){return y.getInfo()})))};
u4s=function(e){var N={cpn:e.clientPlaybackNonce,c:e.Ot.J.c,cver:e.Ot.J.cver};e.HJ&&(N.ptk=e.HJ,N.oid=e.iF,N.ptchn=e.xT,N.pltype=e.d_,e.ir&&(N.m=e.ir));return N};
g.$I=function(e){return e5(e)&&e.Ut?(e={},e.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",e):e.N&&e.N.BG||null};
ZNM=function(e){var N=YI(e);return N&&N.text?g.SY(N.text):e.paidContentOverlayText};
x29=function(e){var N=YI(e);return N&&N.durationMs?aA(N.durationMs):e.paidContentOverlayDurationMs};
YI=function(e){var N,y,w;return e.playerResponse&&e.playerResponse.paidContentOverlay&&e.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.m((N=e.Zl)==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.playerDisclosure,jQs)||null};
MK=function(e){var N="";if(e.Ob)return e.Ob;e.isLivePlayback&&(N=e.allowLiveDvr?"dvr":e.isPremiere?"lp":e.Rq?"window":"live");e.Ta&&(N="post");return N};
g.lk=function(e,N){return typeof e.keywords[N]!=="string"?null:e.keywords[N]};
ntJ=function(e){return!!e.vp||!!e.aF||!!e.dJ||!!e.Ry||e.N8||e.G.focEnabled||e.G.rmktEnabled};
g.FU=function(e){return!!(e.U2||e.Rx||e.rk||e.hlsvp||e.jJ())};
u0=function(e){if(e.T("html5_onesie")&&e.errorCode)return!1;var N=g.Gw(e.l9,"ypc");e.ypcPreview&&(N=!1);return e.WG()&&!e.loading&&(g.FU(e)||g.Gw(e.l9,"heartbeat")||N)};
pX=function(e,N){e=Tk(e);var y={};if(N){N=g.c(N.split(","));for(var w=N.next();!w.done;w=N.next())(w=w.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(y[w[1]]={width:w[2],height:w[3]})}N=g.c(e);for(w=N.next();!w.done;w=N.next()){w=w.value;var E=y[w.itag];E&&(w.width=E.width,w.height=E.height)}return e};
rd=function(e){var N=e.getAvailableAudioTracks();N=N.concat(e.il);for(var y=0;y<e.tX.length;y++)for(var w=e.tX[y],E=0;E<N.length;E++){var A=N[E],T=A.Vl.id===w.audioTrackId;if(A.Vl.isDefault&&y===e.m5||T){if(w.captionTrackIndices)for(T=0;T<w.captionTrackIndices.length;T++)A.captionTracks[T]=e.captionTracks[w.captionTrackIndices[T]];w.defaultCaptionTrackIndex!==void 0&&(A.K=e.captionTracks[w.defaultCaptionTrackIndex]);w.forcedCaptionTrackIndex!==void 0&&(A.J=e.captionTracks[w.forcedCaptionTrackIndex]);
A.N=w.visibility||"UNKNOWN";A.captionsInitialState=w.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
S15=function(e,N){e.showShareButton=!!N;var y,w,E=((y=g.m(N,g.zR))==null?void 0:y.navigationEndpoint)||((w=g.m(N,g.zR))==null?void 0:w.command);E&&(e.hp=!!g.m(E,QQn))};
Je1=function(e,N){var y=N.raw_embedded_player_response;if(!y){var w=N.embedded_player_response;w&&(y=JSON.parse(w))}y&&(e.nw=y);if(e.nw){e.embeddedPlayerConfig=e.nw.embeddedPlayerConfig||null;if(y=e.nw.videoFlags)y.playableInEmbed&&(e.allowEmbed=!0),y.isPrivate&&(e.isPrivate=!0),y.userDisplayName&&(N.user_display_name=y.userDisplayName),y.userDisplayImage&&(N.user_display_image=y.userDisplayImage);if(y=e.nw.embedPreview){y=y.thumbnailPreviewRenderer;xp9(e,y.controlBgHtml);if(w=y.defaultThumbnail)e.D=
C3(w);e.T("embeds_web_enable_search_button")&&y.searchButton&&(w=g.m(y.searchButton,g.zR))&&(e.yA=g.m(w.navigationEndpoint,g.S5));(w=g.m(y==null?void 0:y.videoDetails,m23))&&ces(e,N,w);w=g.m(y==null?void 0:y.videoDetails,HN5);e.DD=!!y.addToWatchLaterButton;S15(e,y.shareButton);if(w==null?0:w.musicVideoType)e.musicVideoType=w.musicVideoType;var E,A,T,p,C;if(w=g.m((E=e.getEmbeddedPlayerResponse())==null?void 0:(A=E.embedPreview)==null?void 0:(T=A.thumbnailPreviewRenderer)==null?void 0:(p=T.playButton)==
null?void 0:(C=p.buttonRenderer)==null?void 0:C.navigationEndpoint,g.m0))XhF(e,w),e.videoId=w.videoId||e.videoId;y.videoDurationSeconds&&(e.lengthSeconds=aA(y.videoDurationSeconds));y.webPlayerActionsPorting&&Zt5(e,y.webPlayerActionsPorting);if(E=g.m(y==null?void 0:y.playlist,K9_)){e.d2=!0;A=[];T=Number(E.currentIndex);if(E.contents)for(p=0,C=E.contents.length;p<C;p++)if(y=E.contents[p].playlistPanelVideoRenderer){w=y.shortBylineText?g.SY(y.shortBylineText):"";var r=y.title?g.SY(y.title):"";A.push({author:w,
encrypted_id:y.videoId,title:r,channel_path:p===T?N.channel_path:"",profile_picture:p===T?N.profile_picture:"",is_private:p===T?e.isPrivate:!0,is_dni:p===T?e.hs:!1,dni_color:p===T?e.yy:""})}N={index:E.currentIndex,list:E.playlistId,playlist_length:E.totalVideos,video:A};E.titleText&&(N.title=g.SY(E.titleText));E.shortBylineText&&(N.author=g.SY(E.shortBylineText));e.Fg=N}var Y,M,l;if(N=g.m((Y=e.getEmbeddedPlayerResponse())==null?void 0:(M=Y.embedPreview)==null?void 0:(l=M.thumbnailPreviewRenderer)==
null?void 0:l.infoPanel,bNM)){e.gI=Number(N==null?void 0:N.durationMs)||NaN;if(N==null?0:N.infoPanelOverviewViewModel)e.Fr=N==null?void 0:N.infoPanelOverviewViewModel;if(N==null?0:N.infoPanelDetailsViewModel)e.ib=N==null?void 0:N.infoPanelDetailsViewModel}}if(e.nw.previewPlayabilityStatus){if(e.Vp=e.nw.previewPlayabilityStatus,Y=e.Vp,!["OK","LIVE_STREAM_OFFLINE"].includes(Y.status)){e.errorCode=kKE(Y.errorCode);M=Y.errorScreen;if(l=M==null?void 0:M.playerErrorMessageRenderer){e.SE=l;if(N=l.reason)e.errorReason=
g.SY(N);if(l=l.subreason)e.Qm=g.SY(l)}else e.errorReason=Y.reason||null;switch(Y.status){case "LOGIN_REQUIRED":e.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":e.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var F;(M==null?0:(F=M.playerKavRenderer)==null?0:F.kavUrl)?e.errorDetail="4":e.errorDetail="3";break;default:e.errorDetail=Y.isBlockedInRestrictedMode?"5":"0"}}}else e.nw.playabilityStatus&&(e.Ps=e.nw.playabilityStatus,W95(e)&&(e.errorDetail="0",e.Ps&&((F=e.Ps.embeddedPlayerErrorMessageRenderer)?
e.SE=g.m(F,ONM):e.errorReason=e.Ps.reason||null)));(F=e.nw.attestation)&&VmM(e,F);(F=e.nw.permissions)&&F.allowImaMonetization&&(e.allowImaMonetization=!0)}};
ces=function(e,N,y){var w=y.channelThumbnail;w&&(w=w.thumbnails)&&(w=w[0])&&(N.profile_picture=w.url);var E;if(w=g.m((E=g.m(y==null?void 0:y.channelThumbnailEndpoint,RQM))==null?void 0:E.urlEndpoint,g.qu))N.channel_path=w.url;if(E=y.collapsedRenderer)if(E=g.m(E,GRP)){if(w=E.title)N.title=g.SY(w);if(E=E.subtitle)N.subtitle=g.SY(E)}if(y=y.expandedRenderer)if(y=g.m(y,U23)){if(E=y.title)N.expanded_title=g.SY(E);if(E=y.subtitle)N.expanded_subtitle=g.SY(E);if(y=y.subscribeButton)e.subscribeButtonRenderer=
g.m(y,g.o$),e.subscribeButtonRenderer&&(N.ucid=e.subscribeButtonRenderer.channelId,N.subscribed=e.subscribeButtonRenderer.subscribed,e.Z3=!!e.subscribeButtonRenderer.notificationPreferenceToggleButton,e.subscribeButtonRenderer.notificationPreferenceToggleButton&&e.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(N=e.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,N.isToggled?(e.lf=N.toggledServiceEndpoint||null,e.Ov=N.defaultServiceEndpoint||
null):(e.lf=N.defaultServiceEndpoint||null,e.Ov=N.toggledServiceEndpoint||null)))}};
g.bk=function(e){return yG(e)&&!e.allowLiveDvr};
hY=function(e){return yG(e)&&e.allowLiveDvr};
yG=function(e){return e.T("html5_live_head_playable")&&wd(e)&&e.Ot.Ng==="yt"?e.isLiveHeadPlayable:e.isLivePlayback};
g.cF=function(e){return!!e.J&&Ios(e.J)};
g.kI=function(e){return!!e.J&&vHs(e.J)};
g.BF=function(e){return!!e.J&&zzn(e.J)};
g.JY=function(e){return!!e.J&&ihP(e.J)};
g.L9E=function(e){if(e.fT)return null;var N=e.At;N||(N=e.playerResponse&&e.playerResponse.endscreen&&e.playerResponse.endscreen.endscreenUrlRenderer&&e.playerResponse.endscreen.endscreenUrlRenderer.url);return N||null};
g.sQ5=function(e){return e.fT?null:e.playerResponse&&e.playerResponse.endscreen&&e.playerResponse.endscreen.endscreenRenderer||null};
g.XU=function(e){return e.T("enable_wn_infocards")};
g.PF=function(e){var N,y,w,E;return(g.XU(e)?(N=e.Zl)==null?void 0:(y=N.cards)==null?void 0:y.cardCollectionRenderer:(w=e.playerResponse)==null?void 0:(E=w.cards)==null?void 0:E.cardCollectionRenderer)||null};
g.dd=function(e){if(!e.playerResponse||!e.playerResponse.annotations)return null;e=g.c(e.playerResponse.annotations);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.playerAnnotationsExpandedRenderer&&N.playerAnnotationsExpandedRenderer.featuredChannel)return N.playerAnnotationsExpandedRenderer;return null};
I$=function(e){return e.adFormat&&(e.LX?e.adFormat!=="1_5":e.adFormat!="1_5")?"adunit":e.eventLabel||e.Ot.Rq};
g.vF=function(e){return I$(e)==="shortspage"};
Rf=function(e){return e.e_()&&e.X().supportsGaplessShorts()};
VG=function(e){if(e.isAd()&&(e.LX?e.videoId!==e.Ot.Xz:e.videoId!=e.Ot.Xz))return e.Ot.Xz};
tY=function(e){return e.IV||I$(e)==="detailpage"||I$(e)==="shortspage"||e.mutedAutoplay};
uk=function(e){var N=(N=e.T("enable_cleanup_masthead_autoplay_hack_fix"))&&I$(e)==="adunit"?e.rq:tY(e)?I$(e)==="detailpage"||I$(e)==="shortspage"?e.isAutonav||e.jn>0:N||e.adFormat!=="17_8"||e.isAutonav||g.mT(e.Ot)||e.rq?e.im?!1:e.Ot.CN||e.Ot.Pf||!g.hR(e.Ot)?!N&&I$(e)==="adunit"&&e.vp?!1:!0:!1:!1:(e.im?0:e.UY)&&g.hR(e.Ot)?!0:!1;e.T("html5_log_detailpage_autoplay")&&I$(e)==="detailpage"&&e.Fh("autoplay_info",{autoplay:e.IV,autonav:e.isAutonav,wasDompaused:e.im,result:N});return N};
g.qK=function(e){return e.oauthToken||e.Ot.MX};
eq1=function(e){if(e.T("html5_stateful_audio_normalization")){var N=1,y=g.Y2(e.Ot.experiments,"html5_default_ad_gain");y&&e.isAd()&&(N=y);var w;if(y=((w=e.j)==null?void 0:w.audio.N)||e.F1){w=(0,g.iC)();e.DN=2;var E=w-e.Ot.ib<=e.maxStatefulTimeThresholdSec*1E3;e.applyStatefulNormalization&&E?e.DN=4:E||(e.Ot.xX=Infinity,e.Ot.ib=NaN);E=(e.DN===4?g.Ja(e.Ot.xX,e.minimumLoudnessTargetLkfs,e.loudnessTargetLkfs):e.loudnessTargetLkfs)-y;if(e.DN!==4){var A,T,p,C,r=((A=e.playerResponse)==null?void 0:(T=A.playerConfig)==
null?void 0:(p=T.audioConfig)==null?void 0:(C=p.loudnessNormalizationConfig)==null?void 0:C.statelessLoudnessAdjustmentGain)||0;E+=r}E=Math.min(E,0);e.preserveStatefulLoudnessTarget&&(e.Ot.xX=y+E,e.Ot.ib=w);e=Math.min(1,Math.pow(10,E/20))||N}else e=aC0(e)}else e=aC0(e);return e};
aC0=function(e){var N=1,y=g.Y2(e.Ot.experiments,"html5_default_ad_gain");y&&e.isAd()&&(N=y);var w;if(y=((w=e.j)==null?void 0:w.audio.K)||e.Fo)e.DN=1;return Math.min(1,Math.pow(10,-y/20))||N};
Gr=function(e){var N=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],y=nC(e.Ot)==="TVHTML5_SIMPLY"&&e.Ot.J.ctheme==="MUSIC";e.CN||!g.ZY(e.Ot)&&!y||!N.includes(e.musicVideoType)&&!e.isExternallyHostedPodcast||(e.CN=!0);if(N=g.O8())N=/Starboard\/([0-9]+)/.exec(g.zw()),N=(N?parseInt(N[1],10):NaN)<10;y=e.Ot;y=(nC(y)==="TVHTML5_CAST"||nC(y)==="TVHTML5"&&(y.J.cver.startsWith("6.20130725")||y.J.cver.startsWith("6.20130726")))&&e.Ot.J.ctheme==="MUSIC";var w;if(w=!e.CN)y||(y=e.Ot,y=nC(y)===
"TVHTML5"&&y.J.cver.startsWith("7")),w=y;w&&!N&&(N=e.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",y=(e.T("cast_prefer_audio_only_for_atv_and_uploads")||e.T("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&e.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",N||y||e.isExternallyHostedPodcast)&&(e.CN=!0);return e.Ot.deviceIsAudioOnly||e.CN&&e.Ot.G};
Zi=function(e){var N,y,w;return!!((N=e.playerResponse)==null?0:(y=N.playerConfig)==null?0:(w=y.mediaCommonConfig)==null?0:w.splitScreenEligible)};
xI=function(e){var N;return!((N=e.playerResponse)==null||!N.compositePlayabilityStatus)};
N$9=function(e){return isNaN(e)?0:Math.max((Date.now()-e)/1E3-30,0)};
j5=function(e){return!(!e.Ci||!e.Ot.G)&&e.jJ()};
yH_=function(e){return e.enablePreroll&&e.enableServerStitchedDai};
wuE=function(e){return e.T("html5_enable_sabr_from_watch_server")&&e.xw&&!e.kX};
L3=function(e){var N=e.T("html5_enable_sabr_on_drive")&&e.Ot.Ng==="gd";if(e.JD)return e.T("html5_enable_sabr_from_watch_server")&&e.Fh("fds",{fds:!0},!0),!1;if(e.Ot.Ng!=="yt"&&!N)return e.T("html5_enable_sabr_from_watch_server")&&e.Fh("dsvn",{ns:e.Ot.Ng},!0),!1;if(e.cotn||!e.J||e.J.isOtf||e.KA&&!e.T("html5_enable_sabr_csdai"))return!1;if(e.T("html5_use_sabr_requests_for_debugging"))return!0;if(e.T("html5_enable_sabr_from_watch_server")){N=e.xw&&!!e.kX;e.Fh("esfw",{usbc:e.xw,hsu:!!e.kX},!0);if(!e.T("html5_combine_client_check_for_sabr"))return N;
if(N)return!0;e.kN("sabr","esfc")}var y=!e.J.Cx&&!e.RV();N=y&&QY&&e.T("html5_enable_sabr_vod_streaming_xhr");y=y&&!QY&&e.T("html5_enable_sabr_vod_non_streaming_xhr");var w=g.nX(e),E=e.T("html5_enable_sabr_drm_vod_streaming_xhr")&&QY&&e.RV()&&!e.J.Cx&&(e.ub==="1"?!1:!0);(N=N||y||w||E)&&!e.kX&&e.Fh("sabr",{loc:"m"},!0);return N&&!!e.kX};
g.nX=function(e){var N;if(!(N=QY&&e.Cx()&&e.RV()&&(e.ub==="1"?!1:!0)&&e.T("html5_sabr_live_drm_streaming_xhr"))){N=e.Cx()&&!e.RV()&&QY;var y=e.Cx()&&e.latencyClass!=="ULTRALOW"&&!e.isLowLatencyLiveStream&&e.T("html5_sabr_live_normal_latency_streaming_xhr"),w=e.isLowLatencyLiveStream&&e.T("html5_sabr_live_low_latency_streaming_xhr"),E=e.latencyClass==="ULTRALOW"&&e.T("html5_sabr_live_ultra_low_latency_streaming_xhr");N=N&&(y||w||E)}y=N;N=e.enableServerStitchedDai&&y&&e.T("html5_enable_sabr_ssdai_streaming_xhr");
y=!e.enableServerStitchedDai&&y;w=e.Cx()&&!QY&&e.T("html5_enable_sabr_live_non_streaming_xhr");e=QY&&(e.Au()||Zi(e)&&e.T("html5_enable_sabr_for_lifa_eligible_streams"));return N||y||w||e};
g.xK=function(e){return e.po&&L3(e)};
vtP=function(e){var N;if(N=!!e.cotn)N=e.videoId,N=!!N&&g.cH(N)===1;return N&&!e.Ci};
g.QG=function(e){if(!e.J||!e.N||!e.j)return!1;var N=e.J.J,y=!!N[e.N.id]&&F9(N[e.N.id].yl.J);N=!!N[e.j.id]&&F9(N[e.j.id].yl.J);return(e.N.itag==="0"||y)&&N};
md=function(e){return e.Vp?["OK","LIVE_STREAM_OFFLINE"].includes(e.Vp.status):!0};
W95=function(e){return(e=e.Ps)&&e.showError?e.showError:!1};
NK=function(e,N){return e.T(N)?!0:(e.fflags||"").includes(N+"=true")};
EFs=function(e){return e.T("html5_heartbeat_iff_heartbeat_params_filled")};
Mj5=function(e,N){N.inlineMetricEnabled&&(e.inlineMetricEnabled=!0);N.playback_progress_0s_url&&(e.Ry=new QXF(N));if(N=N.video_masthead_ad_quartile_urls)e.aF=N.quartile_0_url,e.r_=N.quartile_25_url,e.LA=N.quartile_50_url,e.g_=N.quartile_75_url,e.ZG=N.quartile_100_url,e.dJ=N.quartile_0_urls,e.vV=N.quartile_25_urls,e.Vw=N.quartile_50_urls,e.Qw=N.quartile_75_urls,e.Ub=N.quartile_100_urls};
Y1M=function(e){var N={};e=g.c(e);for(var y=e.next();!y.done;y=e.next()){y=y.value;var w=y.split("=");w.length===2?N[w[0]]=w[1]:N[y]=!0}return N};
CS0=function(e){if(e){if(stE(e))return e;e=aLF(e);if(stE(e,!0))return e}return""};
g.AHF=function(e){return e.captionsLanguagePreference||e.Ot.captionsLanguagePreference||g.lk(e,"yt:cc_default_lang")||e.Ot.SR};
HF=function(e){return!(!e.isLivePlayback||!e.hasProgressBarBoundaries())};
g.HH=function(e){var N;return e.t4||((N=e.suggestions)==null?void 0:N[0])||null};
g.KX=function(e){return e.hs&&(e.T("embeds_enable_pfp_always_unbranded")||e.Ot.sR)};
WF=function(e,N){e.T("html5_log_autoplay_src")&&Rf(e)&&e.Fh("apsrc",{src:N})};
g.Os=function(e){var N,y;return!!((N=e.embeddedPlayerConfig)==null?0:(y=N.embeddedPlayerFlags)==null?0:y.enableMusicUx)};
g.GC=function(e){var N=e.X(),y=g.R$(N),w=N.VB;(N.T("embeds_web_enable_iframe_api_send_full_embed_url")||N.T("embeds_web_enable_rcat_validation_in_havs")||N.T("embeds_enable_autoplay_and_visibility_signals"))&&g.dw(N)&&(w&&(y.thirdParty=Object.assign({},y.thirdParty,{embedUrl:w})),v2P(y,e));if(w=e.i9)y.clickTracking={clickTrackingParams:w};w=y.client||{};var E="EMBED",A=I$(e);A==="leanback"?E="WATCH":N.T("gvi_channel_client_screen")&&A==="profilepage"?E="CHANNEL":e.Kx?E="LIVE_MONITOR":A==="detailpage"?
E="WATCH_FULL_SCREEN":A==="adunit"?E="ADUNIT":A==="sponsorshipsoffer"&&(E="UNKNOWN");w.clientScreen=E;if(N=e.kidsAppInfo)w.kidsAppInfo=JSON.parse(N);(E=e.IY)&&!N&&(w.kidsAppInfo={contentSettings:{ageUpMode:T$s[E]}});if(N=e.uV)w.unpluggedAppInfo={enableFilterMode:!0};(E=e.unpluggedFilterModeType)&&!N&&(w.unpluggedAppInfo={filterModeType:JH_[E]});if(N=e.Ng)w.unpluggedLocationInfo=N;y.client=w;w=y.request||{};e.NK&&(w.isPrefetch=!0);if(N=e.mdxEnvironment)w.mdxEnvironment=N;if(N=e.mdxControlMode)w.mdxControlMode=
pu0[N];y.request=w;w=y.user||{};if(N=e.Kh)w.credentialTransferTokens=[{token:N,scope:"VIDEO"}];if(N=e.a9)w.delegatePurchases={oauthToken:N},w.kidsParent={oauthToken:N};y.user=w;if(w=e.contextParams)y.activePlayers=[{playerContextParams:w}];if(e=e.clientScreenNonce)y.clientScreenNonce=e;return y};
g.R$=function(e){var N=g.LR(),y=N.client||{};if(e.forcedExperiments){var w=e.forcedExperiments.split(","),E=[];w=g.c(w);for(var A=w.next();!A.done;A=w.next())E.push(Number(A.value));y.experimentIds=E}if(E=e.homeGroupInfo)y.homeGroupInfo=JSON.parse(E);if(E=e.getPlayerType())y.playerType=E;if(E=e.J.ctheme)y.theme=E;if(E=e.livingRoomAppMode)y.tvAppInfo=Object.assign({},y.tvAppInfo,{livingRoomAppMode:E});E=e.deviceYear;e.T("html5_propagate_device_year")&&E&&(y.tvAppInfo=Object.assign({},y.tvAppInfo,{deviceYear:E}));
if(E=e.livingRoomPoTokenId)y.tvAppInfo=Object.assign({},y.tvAppInfo,{livingRoomPoTokenId:E});N.client=y;y=N.user||{};e.enableSafetyMode&&(y=Object.assign({},y,{enableSafetyMode:!0}));e.pageId&&(y=Object.assign({},y,{onBehalfOfUser:e.pageId}));N.user=y;y=e.VB;e.T("embeds_web_enable_iframe_api_send_full_embed_url")||e.T("embeds_web_enable_rcat_validation_in_havs")||e.T("embeds_enable_autoplay_and_visibility_signals")||!y||(N.thirdParty={embedUrl:y});return N};
lzs=function(e,N,y){var w=e.videoId,E=g.GC(e),A=e.X(),T={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(z_()),referer:document.location.toString(),signatureTimestamp:20129};g.m6();e.isAutonav&&(T.autonav=!0);g.HE(0,141)&&(T.autonavState=g.HE(0,140)?"STATE_OFF":"STATE_ON");T.autoCaptionsDefaultOn=g.HE(0,66);uk(e)&&(T.autoplay=!0);A.G&&e.cycToken&&(T.cycToken=e.cycToken);A.enablePrivacyFilter&&(T.enablePrivacyFilter=!0);e.isFling&&(T.fling=!0);var p=e.forceAdsUrl;if(p){var C={},r=[];p=p.split(",");
p=g.c(p);for(var Y=p.next();!Y.done;Y=p.next()){Y=Y.value;var M=Y.split("|");M.length!==3||Y.includes("=")||(M[0]="breaktype="+M[0],M[1]="offset="+M[1],M[2]="url="+M[2]);Y={adtype:"video_ad"};M=g.c(M);for(var l=M.next();!l.done;l=M.next()){var F=g.c(l.value.split("="));l=F.next().value;F=An0(F);Y[l]=F.join("=")}M=Y.url;l=Y.presetad;F=Y.viralresponseurl;var S=Number(Y.campaignid);if(Y.adtype==="in_display_ad")M&&(C.url=M),l&&(C.presetAd=l),F&&(C.viralAdResponseUrl=F),S&&(C.viralCampaignId=String(S));
else if(Y.adtype==="video_ad"){var k={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(Y.offset)||0)}};if(Y=CP9[Y.breaktype])k.breakType=Y;M&&(k.url=M);l&&(k.presetAd=l);F&&(k.viralAdResponseUrl=F);S&&(k.viralCampaignId=String(S));r.push(k)}}T.forceAdParameters={videoAds:r,inDisplayAd:C}}e.isInlinePlaybackNoAd&&(T.isInlinePlaybackNoAd=!0);e.isLivingRoomDeeplink&&(T.isLivingRoomDeeplink=!0);C=e.AU;if(C!=null){C={startWalltime:String(C)};if(r=e.yh)C.manifestDuration=String(r||14400);T.liveContext=
C}if(e.mutedAutoplay&&(T.mutedAutoplay=!0,e.T("embeds_enable_full_length_inline_muted_autoplay"))){C=A.getWebPlayerContextConfig();var X,d;(C==null?0:(X=C.embedsHostFlags)==null?0:X.allowMutedAutoplayDurationMode)&&(C==null?0:(d=C.embedsHostFlags)==null?0:d.allowMutedAutoplayDurationMode.includes(rHn[e.mutedAutoplayDurationMode]))&&(T.mutedAutoplayDurationMode=rHn[e.mutedAutoplayDurationMode])}if(e.im?0:e.UY)T.splay=!0;X=e.vnd;X===5&&(T.vnd=X);X={};if(d=e.isMdxPlayback)X.triggeredByMdx=d;if(d=e.Ez)X.skippableAdsSupported=
d.split(",").includes("ska");if(r=e.N2){d=e.Dy;C=[];r=g.c(zeE(r));for(p=r.next();!p.done;p=r.next()){p=p.value;Y=p.platform;p={applicationState:p.Rm?"INACTIVE":"ACTIVE",clientFormFactor:$Cn[Y]||"UNKNOWN_FORM_FACTOR",clientName:DGF[p.y$]||"UNKNOWN_INTERFACE",clientVersion:p.deviceVersion||"",platform:YU0[Y]||"UNKNOWN_PLATFORM"};Y={};if(d){M=void 0;try{M=JSON.parse(d)}catch(v){g.uA(v)}M&&(Y={params:[{key:"ms",value:M.ms}]},M.advertising_id&&(Y.advertisingId=M.advertising_id),M.limit_ad_tracking!==void 0&&
M.limit_ad_tracking!==null&&(Y.limitAdTracking=M.limit_ad_tracking),p.osName=M.os_name,p.userAgent=M.user_agent,p.windowHeightPoints=M.window_height_points,p.windowWidthPoints=M.window_width_points)}C.push({adSignalsInfo:Y,remoteClient:p})}X.remoteContexts=C}d=e.sourceContainerPlaylistId;C=e.serializedMdxMetadata;if(d||C)r={},d&&(r.mdxPlaybackContainerInfo={sourceContainerPlaylistId:d}),C&&(r.serializedMdxMetadata=C),X.mdxPlaybackSourceContext=r;T.mdxContext=X;X=N.width;X>0&&(T.playerWidthPixels=
Math.round(X));if(N=N.height)T.playerHeightPixels=Math.round(N);y!==0&&(T.vis=y);if(y=A.widgetReferrer)T.widgetReferrer=y.substring(0,128);g.hR(A)&&T&&(T.ancestorOrigins=A.ancestorOrigins);e.defaultActiveSourceVideoId&&(T.compositeVideoContext={defaultActiveSourceVideoId:e.defaultActiveSourceVideoId});if(A=A.getWebPlayerContextConfig())T.encryptedHostFlags=A.encryptedHostFlags;w={videoId:w,context:E,playbackContext:{contentPlaybackContext:T}};e.reloadPlaybackParams&&(w.playbackContext.reloadPlaybackContext=
{reloadPlaybackParams:e.reloadPlaybackParams});e.contentCheckOk&&(w.contentCheckOk=!0);if(E=e.clientPlaybackNonce)w.cpn=E;if(E=e.playerParams)w.params=E;if(E=e.playlistId)w.playlistId=E;e.racyCheckOk&&(w.racyCheckOk=!0);E=e.X();if(T=E.embedConfig)w.serializedThirdPartyEmbedConfig=T;w.captionParams={};T=g.HE(g.m6(),65);e.deviceCaptionsOn!=null?w.captionParams.deviceCaptionsOn=e.deviceCaptionsOn:g.na(E)&&(w.captionParams.deviceCaptionsOn=T!=null?!T:!1);e.p5&&(w.captionParams.deviceCaptionsLangPref=
e.p5);e.zk.length?w.captionParams.viewerSelectedCaptionLangs=e.zk:g.na(E)&&(T=g.VA(),T==null?0:T.length)&&(w.captionParams.viewerSelectedCaptionLangs=T);T=e.fetchType==="onesie"&&e.T("html5_onesie_attach_po_token");A=e.fetchType!=="onesie"&&e.T("html5_non_onesie_attach_po_token");if(T||A)T=e.X(),T.NG&&(w.serviceIntegrityDimensions={},w.serviceIntegrityDimensions.poToken=T.NG);E.T("fetch_att_independently")&&(w.attestationRequest={omitBotguardData:!0});if(E.T("html5_enable_sabr_from_watch_server")||
E.T("html5_report_supports_vp9_encoding"))w.playbackContext||(w.playbackContext={}),w.playbackContext.devicePlaybackCapabilities=MwH(e);return w};
MwH=function(e){var N=!(e==null?0:e.Ej())&&(e==null?void 0:e.Cx())&&w9(),y;if(y=e==null?0:e.T("html5_report_supports_vp9_encoding")){if(e==null)y=0;else{y=g.sn(e);e=e.X().L;var w=La("243");y=w?Ef(y,w,e,!0)===!0:!1}y=y&&!N}return{supportsVp9Encoding:!!y,supportXhr:QY}};
SUP=function(e,N){var y,w,E;return g.f(function(A){if(A.J==1)return y={context:g.R$(e.X()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:e.videoId,cpn:e.clientPlaybackNonce}}]},w=g.eZ(FlE),g.D(A,g.Rg(N,y,w),2);E=A.N;return A.return(E)})};
oF5=function(e,N,y){var w=g.Y2(N.experiments,"bg_vm_reinit_threshold");(!P1||(0,g.iC)()-P1>w)&&SUP(e,y).then(function(E){E&&(E=E.botguardData)&&g.v1(E,N)},function(E){e.Ss()||(E=I2(E),e.Fh("attf",E.details))})};
Us=function(e,N){g.x.call(this);this.app=e;this.state=N};
a$=function(e,N,y){e.state.J.hasOwnProperty(N)||LX(e,N,y);e.state.G[N]=function(){return y.apply(e,g.iE.apply(0,arguments))};
e.state.Z.add(N)};
eX=function(e,N,y){e.state.J.hasOwnProperty(N)||LX(e,N,y);e.app.X().G&&(e.state.U[N]=function(){return y.apply(e,g.iE.apply(0,arguments))},e.state.Z.add(N))};
LX=function(e,N,y){e.state.J[N]=function(){return y.apply(e,g.iE.apply(0,arguments))}};
g.NU=function(e,N,y){return e.state.J[N].apply(e.state.J,g.B(y))};
yL=function(){g.zY.call(this);this.L=new Map};
wZ=function(){g.x.apply(this,arguments);this.element=null;this.Z=new Set;this.G={};this.U={};this.J={};this.D=new Set;this.K=new yL;this.N=new yL;this.j=new yL;this.L=new yL};
bsM=function(e,N,y){typeof e==="string"&&(e={mediaContentUrl:e,startSeconds:N,suggestedQuality:y});a:{if((N=e.mediaContentUrl)&&(N=/\/([ve]|embed)\/([^#?]+)/.exec(N))&&N[2]){N=N[2];break a}N=null}e.videoId=N;return Ec(e)};
Ec=function(e,N,y){if(typeof e==="string")return{videoId:e,startSeconds:N,suggestedQuality:y};N={};y=g.c(hqH);for(var w=y.next();!w.done;w=y.next())w=w.value,e[w]&&(N[w]=e[w]);return N};
cH0=function(e,N,y,w){if(g.W5(e)&&!Array.isArray(e)){N="playlist list listType index startSeconds suggestedQuality".split(" ");y={};for(w=0;w<N.length;w++){var E=N[w];e[E]&&(y[E]=e[E])}return y}N={index:N,startSeconds:y,suggestedQuality:w};typeof e==="string"&&e.length===16?N.list="PL"+e:N.playlist=e;return N};
Au=function(){Us.apply(this,arguments)};
B$E=function(e){a$(e,"cueVideoById",e.jC);a$(e,"loadVideoById",e.p99);a$(e,"cueVideoByUrl",e.OM);a$(e,"loadVideoByUrl",e.NTh);a$(e,"playVideo",e.Z$W);a$(e,"pauseVideo",e.pauseVideo);a$(e,"stopVideo",e.ONs);a$(e,"clearVideo",e.clearVideo);a$(e,"getVideoBytesLoaded",e.EB);a$(e,"getVideoBytesTotal",e.Bn);a$(e,"getVideoLoadedFraction",e.vW);a$(e,"getVideoStartBytes",e.YQ);a$(e,"cuePlaylist",e.cuePlaylist);a$(e,"loadPlaylist",e.Dgq);a$(e,"nextVideo",e.rMl);a$(e,"previousVideo",e.UPk);a$(e,"playVideoAt",
e.Pms);a$(e,"setShuffle",e.setShuffle);a$(e,"setLoop",e.setLoop);a$(e,"getPlaylist",e.Tw);a$(e,"getPlaylistIndex",e.getPlaylistIndex);a$(e,"getPlaylistId",e.getPlaylistId);a$(e,"loadModule",e.Ar);a$(e,"unloadModule",e.OS);a$(e,"setOption",e.hj);a$(e,"getOption",e.Rd);a$(e,"getOptions",e.qj);a$(e,"mute",e.ZxB);a$(e,"unMute",e.BQt);a$(e,"isMuted",e.isMuted);a$(e,"setVolume",e.VVh);a$(e,"getVolume",e.getVolume);a$(e,"seekTo",e.ZqP);a$(e,"getPlayerMode",e.getPlayerMode);a$(e,"getPlayerState",e.rl);a$(e,
"getAvailablePlaybackRates",e.getAvailablePlaybackRates);a$(e,"getPlaybackQuality",function(){return e.getPlaybackQuality(1)});
a$(e,"setPlaybackQuality",e.Xws);a$(e,"getAvailableQualityLevels",e.AQ);a$(e,"getCurrentTime",e.xQ);a$(e,"getDuration",e.zw);a$(e,"addEventListener",e.uO);a$(e,"removeEventListener",e.KiB);a$(e,"getDebugText",e.yf);a$(e,"getVideoData",function(){return kBH(e)});
a$(e,"addCueRange",e.hZ);a$(e,"removeCueRange",e.removeCueRange);a$(e,"setSize",e.setSize);a$(e,"getApiInterface",e.getApiInterface);a$(e,"destroy",e.destroy);a$(e,"mutedAutoplay",e.mutedAutoplay);var N=e.app.X();N.Z||(a$(e,"getVideoEmbedCode",e.getVideoEmbedCode),a$(e,"getVideoUrl",e.UB));a$(e,"getMediaReferenceTime",e.dl);a$(e,"getSize",e.getSize);a$(e,"setFauxFullscreen",e.BmB);N.Z||a$(e,"logImaAdEvent",e.logImaAdEvent);a$(e,"preloadVideoById",e.mP1);a$(e,"wakeUpControls",e.wakeUpControls)};
g.T9=function(e){return(e=Xu0(e.app.jR()))?e.Yp():null};
pD=function(e){var N=g.zX(e.app.X()),y,w=(y=e.app.getVideoData())==null?void 0:y.d2;e=Ju(e.app);return g.Yh(N)&&!w||e?!1:!0};
kBH=function(e,N){var y={};if(N=e.app.Ug(N===void 0?1:N)){N=N.getVideoData();if(N.isPrivate)return{};y.video_id=N.videoId;y.author=N.author;y.title=N.title;y.isPlayable=md(N);y.errorCode=N.errorCode;if(N.N&&N.N.video){y.video_quality=N.N.video.quality;N=N.N.video;var w=[];N.fps>32&&w.push("hfr");N.isHdr()&&w.push("hdr");N.primaries==="bt2020"&&w.push("wcg");y.video_quality_features=w}}if(e=e.getPlaylistId())y.list=e;return y};
CD=function(){Au.apply(this,arguments)};
rZ=function(e,N){var y={};if(e.app.X().Kh){e=g.c(PP1);for(var w=e.next();!w.done;w=e.next())w=w.value,N.hasOwnProperty(w)&&(y[w]=N[w]);if(N=y.qoe_cat)e="",typeof N==="string"&&N.length>0&&(e=N.split(",").filter(function(E){return dCP.includes(E)}).join(",")),y.qoe_cat=e;
Izs(y)}else for(e=g.c(vF5),w=e.next();!w.done;w=e.next())w=w.value,N.hasOwnProperty(w)&&(y[w]=N[w]);return y};
Izs=function(e){var N=e.raw_player_response;if(!N){var y=e.player_response;y&&(N=JSON.parse(y))}delete e.player_response;delete e.raw_player_response;if(N){e.raw_player_response={streamingData:N.streamingData};var w;if((w=N.playbackTracking)==null?0:w.qoeUrl)e.raw_player_response=Object.assign({},e.raw_player_response,{playbackTracking:{qoeUrl:N.playbackTracking.qoeUrl}});var E;if((E=N.videoDetails)==null?0:E.videoId)e.raw_player_response=Object.assign({},e.raw_player_response,{videoDetails:{videoId:N.videoDetails.videoId}})}};
$S=function(e,N,y){var w=e.app.OY(y);if(!w)return 0;e=w-e.app.getCurrentTime(y);return N-e};
is5=function(e){var N=N===void 0?5:N;return e?zq9[e]||N:N};
g.YS=function(){CD.apply(this,arguments)};
DCH=function(e){LX(e,"getInternalApiInterface",e.getInternalApiInterface);LX(e,"addEventListener",e.lO);LX(e,"removeEventListener",e.koP);LX(e,"cueVideoByPlayerVars",e.b2);LX(e,"loadVideoByPlayerVars",e.Fo9);LX(e,"preloadVideoByPlayerVars",e.n9t);LX(e,"getAdState",e.getAdState);LX(e,"sendAbandonmentPing",e.sendAbandonmentPing);LX(e,"setLoopRange",e.setLoopRange);LX(e,"getLoopRange",e.getLoopRange);LX(e,"setAutonavState",e.setAutonavState);LX(e,"seekTo",e.PPl);LX(e,"seekBy",e.Ris);LX(e,"seekToLiveHead",
e.seekToLiveHead);LX(e,"requestSeekToWallTimeSeconds",e.requestSeekToWallTimeSeconds);LX(e,"seekToStreamTime",e.seekToStreamTime);LX(e,"startSeekCsiAction",e.startSeekCsiAction);LX(e,"getStreamTimeOffset",e.getStreamTimeOffset);LX(e,"getVideoData",e.mJ);LX(e,"setInlinePreview",e.setInlinePreview);LX(e,"getAppState",e.getAppState);LX(e,"updateLastActiveTime",e.updateLastActiveTime);LX(e,"setBlackout",e.setBlackout);LX(e,"setUserEngagement",e.setUserEngagement);LX(e,"updateSubtitlesUserSettings",e.updateSubtitlesUserSettings);
LX(e,"getPresentingPlayerType",e.kU);LX(e,"canPlayType",e.canPlayType);LX(e,"updatePlaylist",e.updatePlaylist);LX(e,"updateVideoData",e.updateVideoData);LX(e,"updateEnvironmentData",e.updateEnvironmentData);LX(e,"sendVideoStatsEngageEvent",e.GoG);LX(e,"productsInVideoVisibilityUpdated",e.productsInVideoVisibilityUpdated);LX(e,"setSafetyMode",e.setSafetyMode);LX(e,"isAtLiveHead",function(N){return e.isAtLiveHead(void 0,N)});
LX(e,"getVideoAspectRatio",e.getVideoAspectRatio);LX(e,"getPreferredQuality",e.getPreferredQuality);LX(e,"getPlaybackQualityLabel",e.getPlaybackQualityLabel);LX(e,"setPlaybackQualityRange",e.UGq);LX(e,"onAdUxClicked",e.onAdUxClicked);LX(e,"getFeedbackProductData",e.getFeedbackProductData);LX(e,"getStoryboardFrame",e.getStoryboardFrame);LX(e,"getStoryboardFrameIndex",e.getStoryboardFrameIndex);LX(e,"getStoryboardLevel",e.getStoryboardLevel);LX(e,"getNumberOfStoryboardLevels",e.getNumberOfStoryboardLevels);
LX(e,"getCaptionWindowContainerId",e.getCaptionWindowContainerId);LX(e,"getAvailableQualityLabels",e.getAvailableQualityLabels);LX(e,"addCueRange",e.addCueRange);LX(e,"addUtcCueRange",e.addUtcCueRange);LX(e,"showAirplayPicker",e.showAirplayPicker);LX(e,"dispatchReduxAction",e.dispatchReduxAction);LX(e,"getPlayerResponse",e.Pn);LX(e,"getWatchNextResponse",e.Wn);LX(e,"getHeartbeatResponse",e.cn);LX(e,"getCurrentTime",e.u_);LX(e,"getDuration",e.cW);LX(e,"getPlayerState",e.getPlayerState);LX(e,"getPlayerStateObject",
e.Zo);LX(e,"getVideoLoadedFraction",e.getVideoLoadedFraction);LX(e,"getProgressState",e.getProgressState);LX(e,"getVolume",e.getVolume);LX(e,"setVolume",e.O3);LX(e,"isMuted",e.isMuted);LX(e,"mute",e.Cy);LX(e,"unMute",e.YZ);LX(e,"loadModule",e.loadModule);LX(e,"unloadModule",e.unloadModule);LX(e,"getOption",e.o_);LX(e,"getOptions",e.getOptions);LX(e,"setOption",e.setOption);LX(e,"loadVideoById",e.z8);LX(e,"loadVideoByUrl",e.cA);LX(e,"playVideo",e.yK);LX(e,"loadPlaylist",e.loadPlaylist);LX(e,"nextVideo",
e.nextVideo);LX(e,"previousVideo",e.previousVideo);LX(e,"playVideoAt",e.playVideoAt);LX(e,"getDebugText",e.getDebugText);LX(e,"getWebPlayerContextConfig",e.getWebPlayerContextConfig);LX(e,"notifyShortsAdSwipeEvent",e.notifyShortsAdSwipeEvent);LX(e,"getVideoContentRect",e.getVideoContentRect);LX(e,"setSqueezeback",e.setSqueezeback);LX(e,"toggleSubtitlesOn",e.toggleSubtitlesOn);LX(e,"isSubtitlesOn",e.isSubtitlesOn);LX(e,"reportPlaybackIssue",e.reportPlaybackIssue);LX(e,"setAutonav",e.setAutonav);LX(e,
"isNotServable",e.isNotServable);LX(e,"channelSubscribed",e.channelSubscribed);LX(e,"channelUnsubscribed",e.channelUnsubscribed);LX(e,"togglePictureInPicture",e.togglePictureInPicture);LX(e,"supportsGaplessAudio",e.supportsGaplessAudio);LX(e,"supportsGaplessShorts",e.supportsGaplessShorts);LX(e,"enqueueVideoByPlayerVars",function(N){return void e.enqueueVideoByPlayerVars(N)});
LX(e,"clearQueue",e.clearQueue);LX(e,"getAudioTrack",e.b_);LX(e,"setAudioTrack",e.ozG);LX(e,"getAvailableAudioTracks",e.OB);LX(e,"getMaxPlaybackQuality",e.getMaxPlaybackQuality);LX(e,"getUserPlaybackQualityPreference",e.getUserPlaybackQualityPreference);LX(e,"getSubtitlesUserSettings",e.getSubtitlesUserSettings);LX(e,"resetSubtitlesUserSettings",e.resetSubtitlesUserSettings);LX(e,"setMinimized",e.setMinimized);LX(e,"setOverlayVisibility",e.setOverlayVisibility);LX(e,"confirmYpcRental",e.confirmYpcRental);
LX(e,"queueNextVideo",e.queueNextVideo);LX(e,"handleExternalCall",e.handleExternalCall);LX(e,"logApiCall",e.logApiCall);LX(e,"isExternalMethodAvailable",e.isExternalMethodAvailable);LX(e,"setScreenLayer",e.setScreenLayer);LX(e,"getCurrentPlaylistSequence",e.getCurrentPlaylistSequence);LX(e,"getPlaylistSequenceForTime",e.getPlaylistSequenceForTime);LX(e,"shouldSendVisibilityState",e.shouldSendVisibilityState);LX(e,"syncVolume",e.syncVolume);LX(e,"highlightSettingsMenuItem",e.highlightSettingsMenuItem);
LX(e,"openSettingsMenuItem",e.openSettingsMenuItem);LX(e,"getEmbeddedPlayerResponse",e.getEmbeddedPlayerResponse);LX(e,"getVisibilityState",e.getVisibilityState);LX(e,"isMutedByMutedAutoplay",e.isMutedByMutedAutoplay);e.T("embeds_enable_emc3ds_muted_autoplay")&&LX(e,"isMutedByEmbedsMutedAutoplay",e.isMutedByEmbedsMutedAutoplay);LX(e,"setGlobalCrop",e.setGlobalCrop);LX(e,"setInternalSize",e.setInternalSize);LX(e,"setFauxFullscreen",e.setFauxFullscreen);LX(e,"setAppFullscreen",e.setAppFullscreen)};
lh=function(e,N,y){e=g.MU(e.Rf(),N);return y?(y.addOnDisposeCallback(e),null):e};
g.FT=function(e,N,y){return e.app.X().jN?N:g.SO("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:N,SHORTCUT:y})};
gF1=function(e){e.Rf().element.setAttribute("aria-live","polite")};
g.SX=function(e,N){g.YS.call(this,e,N);DCH(this);eX(this,"addEventListener",this.xF);eX(this,"removeEventListener",this.tVG);eX(this,"cueVideoByPlayerVars",this.wr);eX(this,"loadVideoByPlayerVars",this.JM1);eX(this,"preloadVideoByPlayerVars",this.YYP);eX(this,"loadVideoById",this.z8);eX(this,"loadVideoByUrl",this.cA);eX(this,"playVideo",this.yK);eX(this,"loadPlaylist",this.loadPlaylist);eX(this,"nextVideo",this.nextVideo);eX(this,"previousVideo",this.previousVideo);eX(this,"playVideoAt",this.playVideoAt);
eX(this,"getVideoData",this.eK);eX(this,"seekBy",this.CPt);eX(this,"seekTo",this.Lis);eX(this,"showControls",this.showControls);eX(this,"hideControls",this.hideControls);eX(this,"cancelPlayback",this.cancelPlayback);eX(this,"getProgressState",this.getProgressState);eX(this,"isInline",this.isInline);eX(this,"setInline",this.setInline);eX(this,"setLoopVideo",this.setLoopVideo);eX(this,"getLoopVideo",this.getLoopVideo);eX(this,"getVideoContentRect",this.getVideoContentRect);eX(this,"getVideoStats",this.Xv);
eX(this,"getCurrentTime",this.i_);eX(this,"getDuration",this.cW);eX(this,"getPlayerState",this.LB);eX(this,"getVideoLoadedFraction",this.nB);eX(this,"mute",this.Cy);eX(this,"unMute",this.YZ);eX(this,"setVolume",this.O3);eX(this,"loadModule",this.loadModule);eX(this,"unloadModule",this.unloadModule);eX(this,"getOption",this.o_);eX(this,"getOptions",this.getOptions);eX(this,"setOption",this.setOption);eX(this,"addCueRange",this.addCueRange);eX(this,"getDebugText",this.getDebugText);eX(this,"getStoryboardFormat",
this.getStoryboardFormat);eX(this,"toggleFullscreen",this.toggleFullscreen);eX(this,"isFullscreen",this.isFullscreen);eX(this,"getPlayerSize",this.getPlayerSize);eX(this,"toggleSubtitles",this.toggleSubtitles);eX(this,"setCenterCrop",this.setCenterCrop);eX(this,"setFauxFullscreen",this.setFauxFullscreen);eX(this,"setSizeStyle",this.setSizeStyle);eX(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);eX(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);B$E(this)};
g.oq=function(e){e=e.jR();var N=e.x9.get("endscreen");return N&&N.Ac()?!0:e.qC()};
g.bh=function(e,N){e.getPresentingPlayerType()===3?e.publish("mdxautoplaycancel"):e.Mg("onAutonavCancelled",N)};
g.cb=function(e){var N=hu(e.jR());return e.app.nj&&!e.isFullscreen()||e.getPresentingPlayerType()===3&&N&&N.gk()&&N.GJ()||!!e.getPlaylist()};
g.kS=function(e,N){g.NU(e,"addEmbedsConversionTrackingParams",[N])};
g.XT=function(e){return(e=g.Bb(e.jR()))?e.fM():{}};
g.Vw5=function(e){e=(e=e.getVideoData())&&e.N;return!!e&&!(!e.audio||!e.video)&&e.mimeType!=="application/x-mpegURL"};
g.Pb=function(e,N,y){e=e.Fz().element;var w=JO(e.children,function(E){E=Number(E.getAttribute("data-layer"));return y-E||1});
w<0&&(w=-(w+1));yp(e,N,w);N.setAttribute("data-layer",String(y))};
g.dZ=function(e){var N=e.X();if(!N.YO)return!1;var y=e.getVideoData();if(!y||e.getPresentingPlayerType()===3)return!1;var w=(!y.isLiveDefaultBroadcast||N.T("allow_poltergust_autoplay"))&&!HF(y);w=y.isLivePlayback&&(!N.T("allow_live_autoplay")||!w);var E=y.isLivePlayback&&N.T("allow_live_autoplay_on_mweb");e=e.getPlaylist();e=!!e&&e.gk();var A=y.Zl&&y.Zl.playerOverlays||null;A=!!(A&&A.playerOverlayRenderer&&A.playerOverlayRenderer.autoplay);A=y.hs&&A;return!y.ypcPreview&&(!w||E)&&!g.Gw(y.l9,"ypc")&&
!e&&(!g.hR(N)||A)};
fzP=function(e){e=e.app.nh();if(!e)return!1;var N=e.getVideoData();if(!N.N||!N.N.video||N.N.video.J<1080||N.wA)return!1;var y=/^qsa/.test(N.clientPlaybackNonce),w="r";N.N.id.indexOf(";")>=0&&(y=/^[a-p]/.test(N.clientPlaybackNonce),w="x");return y?(e.Fh("iqss",{trigger:w},!0),!0):!1};
Iq=function(){nO.apply(this,arguments);this.requestHeaders={}};
z9=function(){vb||(vb=new Iq);return vb};
ih=function(e,N){N?e.requestHeaders.Authorization="Bearer "+N:delete e.requestHeaders.Authorization};
g.Dq=function(e,N,y,w){w=w===void 0?!1:w;g.Mu.call(this,N);var E=this;this.C=e;this.l9=w;this.U=new g.fd(this);this.Ng=new g.NE(this,y,!0,void 0,void 0,function(){E.h6()});
g.Q(this,this.U);g.Q(this,this.Ng)};
gZ=function(e){var N=e.C.getRootNode();return e.C.T("web_enable_auto_pip")||e.C.T("web_enable_pip_on_miniplayer")||e.C.T("web_shorts_pip")?ZA(N):document};
tw5=function(e){e.N&&(document.activeElement&&g.Ex(e.element,document.activeElement)&&e.N.focus(),e.N.setAttribute("aria-expanded","false"),e.N=void 0);g.g9(e.U);e.D=void 0};
VL=function(e,N,y){e.e1()?e.rT():e.WY(N,y)};
fD=function(e,N,y,w){w=new g.W({S:"div",dP:["ytp-linked-account-popup-button"],b9:w,V:{role:"button",tabindex:"0"}});N=new g.W({S:"div",B:"ytp-linked-account-popup",V:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{S:"div",B:"ytp-linked-account-popup-title",b9:N},{S:"div",B:"ytp-linked-account-popup-description",b9:y},{S:"div",B:"ytp-linked-account-popup-buttons",W:[w]}]});g.Dq.call(this,e,{S:"div",B:"ytp-linked-account-popup-container",W:[N]},100);var E=this;this.dialog=N;g.Q(this,this.dialog);
w.listen("click",function(){E.rT()});
g.Q(this,w);g.Pb(this.C,this.element,4);this.hide()};
g.uh=function(e,N,y,w){g.Mu.call(this,e);this.priority=N;y&&g.tu(this,y);w&&this.Ja(w)};
g.qU=function(e,N,y,w){e=e===void 0?{}:e;N=N===void 0?[]:N;y=y===void 0?!1:y;w=w===void 0?!1:w;N.push("ytp-menuitem");var E=e;"role"in E||(E.role="menuitem");y||(E=e,"tabindex"in E||(E.tabindex="0"));e={S:y?"a":"div",dP:N,V:e,W:[{S:"div",B:"ytp-menuitem-icon",b9:"{{icon}}"},{S:"div",B:"ytp-menuitem-label",b9:"{{label}}"},{S:"div",B:"ytp-menuitem-content",b9:"{{content}}"}]};w&&e.W.push({S:"div",B:"ytp-menuitem-secondary-icon",b9:"{{secondaryIcon}}"});return e};
g.tu=function(e,N){e.updateValue("label",N)};
Zq=function(e){g.uh.call(this,g.qU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var N=this;this.C=e;this.N=this.J=!1;this.x_=e.X6();e.createServerVe(this.element,this,!0);this.Y(this.C,"settingsMenuVisibilityChanged",function(y){N.nx(y)});
this.Y(this.C,"videodatachange",this.j);this.listen("click",this.onClick);this.j()};
xS=function(e){return e?g.SY(e):""};
jX=function(e){g.x.call(this);this.api=e};
nD=function(e){jX.call(this,e);var N=this;LX(e,"setAccountLinkState",function(y){N.setAccountLinkState(y)});
LX(e,"updateAccountLinkingConfig",function(y){N.updateAccountLinkingConfig(y)});
e.addEventListener("videodatachange",function(y,w){N.onVideoDataChange(w)});
e.addEventListener("settingsMenuInitialized",function(){N.menuItem=new Zq(N.api);g.Q(N,N.menuItem)})};
u7M=function(e){this.api=e;this.J={}};
QL=function(e,N,y,w){N in e.J||(y=new g.wF(y,w,{id:N,priority:2,namespace:"appad"}),e.api.wx([y],1),e.J[N]=y)};
m3=function(e){jX.call(this,e);var N=this;this.events=new g.fd(this);g.Q(this,this.events);this.J=new u7M(this.api);this.events.Y(this.api,"legacyadtrackingpingreset",function(){N.J.J={}});
this.events.Y(this.api,"legacyadtrackingpingchange",function(y){var w=N.J;QL(w,"part2viewed",1,0x8000000000000);QL(w,"engagedview",Math.max(1,y.Y_*1E3),0x8000000000000);if(!y.isLivePlayback){var E=y.lengthSeconds*1E3;Rf(y)&&w.api.T("html5_shorts_gapless_ads_duration_fix")&&(E=w.api.getProgressState().seekableEnd*1E3-y.WD);QL(w,"videoplaytime25",E*.25,E);QL(w,"videoplaytime50",E*.5,E);QL(w,"videoplaytime75",E*.75,E);QL(w,"videoplaytime100",E,0x8000000000000);QL(w,"conversionview",E,0x8000000000000);
QL(w,"videoplaybackstart",1,E);QL(w,"videoplayback2s",2E3,E);QL(w,"videoplayback10s",1E4,E)}});
this.events.Y(this.api,g.AA("appad"),this.N);this.events.Y(this.api,g.TW("appad"),this.N)};
jcn=function(e,N,y){if(!(y in N))return!1;N=N[y];Array.isArray(N)||(N=[N]);N=g.c(N);for(y=N.next();!y.done;y=N.next()){y=y.value;var w={CPN:e.api.getVideoData().clientPlaybackNonce};y=g.Vx(y,w);w=void 0;w=w===void 0?!1:w;(w=UG(Ln(y,qUE),y,w,"Active View 3rd Party Integration URL"))||(w=void 0,w=w===void 0?!1:w,w=UG(Ln(y,Zs_),y,w,"Google/YouTube Brand Lift URL"));w||(w=void 0,w=w===void 0?!1:w,w=UG(Ln(y,xCE),y,w,"Nielsen OCR URL"));g.mK(y,void 0,w)}return!0};
Hb=function(e,N){nFF(e,N).then(function(y){g.mK(N,void 0,void 0,y)})};
KD=function(e,N){N.forEach(function(y){Hb(e,y)})};
nFF=function(e,N){return g.I_(e.api.X())&&Y3(N)&&$3(N)?g.GX(e.api.X(),g.qK(e.api.getVideoData())).then(function(y){var w;y&&(w={Authorization:"Bearer "+y});return w},void 0):u4()};
Qcs=function(e){jX.call(this,e);this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"videoready",function(N){if(e.getPresentingPlayerType()===1){var y,w,E={playerDebugData:{pmlSignal:!!((y=N.getPlayerResponse())==null?0:(w=y.adPlacements)==null?0:w.some(function(A){var T;return A==null?void 0:(T=A.adPlacementRenderer)==null?void 0:T.renderer})),
contentCpn:N.clientPlaybackNonce}};g.$$("adsClientStateChange",E)}})};
Wb=function(e){g.W.call(this,{S:"button",dP:["ytp-button"],V:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{S:"div",B:"ytp-autonav-toggle-button-container",W:[{S:"div",B:"ytp-autonav-toggle-button",V:{"aria-checked":"true"}}]}]});this.C=e;this.N=[];this.J=!1;this.isChecked=!0;e.createClientVe(this.element,this,113681);this.Y(e,"presentingplayerstatechange",this.BV);this.listen("click",this.onClick);this.C.X().T("web_player_autonav_toggle_always_listen")&&
mC3(this);lh(e,this.element,this);this.BV()};
mC3=function(e){e.N.push(e.Y(e.C,"videodatachange",e.BV));e.N.push(e.Y(e.C,"videoplayerreset",e.BV));e.N.push(e.Y(e.C,"onPlaylistUpdate",e.BV));e.N.push(e.Y(e.C,"autonavchange",e.oQ))};
HsH=function(e){e.isChecked=e.isChecked;e.hW("ytp-autonav-toggle-button").setAttribute("aria-checked",String(e.isChecked));var N=e.isChecked?"Autoplay is on":"Autoplay is off";e.updateValue("title",N);e.updateValue("label",N);e.C.xp()};
Kln=function(e){return e.C.X().T("web_player_autonav_use_server_provided_state")&&Q3(e.M7())};
WlM=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"standardControlsInitialized",function(){var y=new Wb(e);g.Q(N,y);e.Bv(y,"RIGHT_CONTROLS_LEFT")})};
Oc=function(e,N){g.uh.call(this,g.qU({role:"menuitemcheckbox","aria-checked":"false"}),N,e,{S:"div",B:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
Rq=function(e,N){e.checked=N;e.element.setAttribute("aria-checked",String(e.checked))};
Osn=function(e){var N=!e.X().ll&&e.getPresentingPlayerType()!==3;return e.isFullscreen()||N};
g.G9=function(e,N,y,w){var E=e.currentTarget;if((y===void 0||!y)&&g.dh(e))return e.preventDefault(),!0;N.pauseVideo();e=E.getAttribute("href");g.mQ(e,w,!0);return!1};
g.Uc=function(e,N,y){if(ZW(N.X())&&N.getPresentingPlayerType()!==2){if(g.dh(y))return N.isFullscreen()&&!N.X().externalFullscreen&&N.toggleFullscreen(),y.preventDefault(),!0}else{var w=g.dh(y);w&&N.pauseVideo();g.mQ(e,void 0,!0);w&&(g.H2(e),y.preventDefault())}return!1};
GBs=function(){var e=RqJ.includes("en")?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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"}}]};e.B="ytp-subtitles-button-icon";return e};
LD=function(){return{S:"div",B:"ytp-spinner-container",W:[{S:"div",B:"ytp-spinner-rotator",W:[{S:"div",B:"ytp-spinner-left",W:[{S:"div",B:"ytp-spinner-circle"}]},{S:"div",B:"ytp-spinner-right",W:[{S:"div",B:"ytp-spinner-circle"}]}]}]}};
sc=function(e){if(document.createRange){var N=document.createRange();N&&(N.selectNodeContents(e),e=window.getSelection())&&(e.removeAllRanges(),e.addRange(N))}};
Nw=function(e){var N=e.T("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Oc.call(this,N,g.aq.Nq);var y=this;this.C=e;this.J=!1;this.N=new g.e6(function(){g.re(y.element,"ytp-menuitem-highlighted")},0);
this.x_=e.X6();this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.K,this);this.listen(e3,this.j);g.Q(this,this.N)};
y9=function(e){jX.call(this,e);var N=this;this.J=!1;e.addEventListener("settingsMenuInitialized",function(){UCM(N)});
e.addEventListener("highlightSettingsMenu",function(y){UCM(N);var w=N.menuItem;y==="menu_item_cinematic_lighting"&&(g.pi(w.element,"ytp-menuitem-highlighted"),g.pi(w.element,"ytp-menuitem-highlight-transition-enabled"),w.N.start())});
LX(e,"updateCinematicSettings",function(y){N.updateCinematicSettings(y)})};
UCM=function(e){e.menuItem||(e.menuItem=new Nw(e.api),g.Q(e,e.menuItem),e.menuItem.GZ(e.J))};
w3=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"applicationvideodatachange",function(y,w){N.qQ(y,w)})};
Ei=function(e){jX.call(this,e);this.events=new g.fd(e);g.Q(this,this.events);LX(e,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));LX(e,"setCreatorEndscreenHideButton",this.J.bind(this))};
Az=function(e,N,y,w){Oc.call(this,"Stable Volume",g.aq.M$);g.pi(this.element,"ytp-drc-menu-item");this.x_=e.X6();this.j=N;this.J=y;this.hasDrcAudioTrack=w;e.addEventListener("videodatachange",this.N.bind(this));e.T("mta_drc_mutual_exclusion_removal")&&this.Y(e,"onPlaybackAudioChange",this.N);e=this.J()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.K,this);Rq(this,e);this.x_.Gi(this)};
Tc=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);e.T("html5_show_drc_toggle")&&e.addEventListener("settingsMenuInitialized",function(){N.menuItem||(N.menuItem=new Az(N.api,N.setDrcUserPreference.bind(N),N.getDrcUserPreference.bind(N),N.N.bind(N)),g.Q(N,N.menuItem))});
LX(this.api,"setDrcUserPreference",function(w){N.setDrcUserPreference(w)});
LX(this.api,"getDrcUserPreference",function(){return N.getDrcUserPreference()});
LX(this.api,"hasDrcAudioTrack",function(){return N.N()});
var y;this.J=(y=g.qI("yt-player-drc-pref"))!=null?y:1;this.updateEnvironmentData()};
Jz=function(e){jX.call(this,e);var N=this;this.J={};this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"videodatachange",function(){N.onVideoDataChange()});
this.events.Y(e,g.AA("embargo"),function(y){N.api.bI(!0);var w,E=(w=N.J[y.id])!=null?w:[];w=g.c(E);for(E=w.next();!E.done;E=w.next()){var A=E.value;N.api.hideControls();N.api.MP("auth",2,"This video isn't available in your current playback area",Xe({embargoed:1,id:y.id,idx:y.N,start:y.start}));E=void 0;(A=(E=A.embargo)==null?void 0:E.onTrigger)&&N.api.Mg("innertubeCommand",A)}})};
LlJ=function(e,N){var y;return(y=N.onEnter)==null?void 0:y.some(e.N)};
sc0=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=void 0,E=Number((w=y.playbackPosition)==null?void 0:w.utcTimeMillis)/1E3,A=void 0;w=E+Number((A=y.duration)==null?void 0:A.seconds);A="embargo_"+E;e.api.addUtcCueRange(A,E,w,"embargo",!1);y.onEnter&&(e.J[A]=y.onEnter.filter(e.N))}};
p5=function(e){jX.call(this,e);var N=this;this.J=[];this.events=new g.fd(e);g.Q(this,this.events);LX(e,"addEmbedsConversionTrackingParams",function(y){N.api.X().uo&&N.addEmbedsConversionTrackingParams(y)});
this.events.Y(e,"veClickLogged",function(y){N.api.hasVe(y)&&(y=Tw(y.visualElement.getAsJspb(),2),N.J.push(y))})};
azP=function(e){jX.call(this,e);LX(e,"isEmbedsShortsMode",function(){return e.isEmbedsShortsMode()})};
eBM=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"initialvideodatacreated",function(y){ox(Sq(),16623);N.J=g.It();var w=e.X().CN&&!y.im;if(tY(y)&&w){ox(Sq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(y.getWatchNextResponse()){var E,A=(E=y.getWatchNextResponse())==null?void 0:E.trackingParams;A&&h$(A)}if(y.getPlayerResponse()){var T;(y=(T=y.getPlayerResponse())==null?void 0:T.trackingParams)&&h$(y)}}else ox(Sq(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),y.getEmbeddedPlayerResponse()&&(T=(A=y.getEmbeddedPlayerResponse())==null?void 0:A.trackingParams)&&h$(T)});
this.events.Y(e,"loadvideo",function(){ox(Sq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:N.J})});
this.events.Y(e,"cuevideo",function(){ox(Sq(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:N.J})});
this.events.Y(e,"largeplaybuttonclicked",function(y){ox(Sq(),27240,y.visualElement)});
this.events.Y(e,"playlistnextbuttonclicked",function(y){ox(Sq(),27240,y.visualElement)});
this.events.Y(e,"playlistprevbuttonclicked",function(y){ox(Sq(),27240,y.visualElement)});
this.events.Y(e,"playlistautonextvideo",function(){ox(Sq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
C5=function(e,N){g.x.call(this);var y=this;this.J=null;this.K=N;N=[];for(var w=0;w<=100;w++)N.push(w/100);N={threshold:N,trackVisibility:!0,delay:1E3};(this.N=window.IntersectionObserver?new IntersectionObserver(function(E){E=E[E.length-1];typeof E.isVisible==="undefined"?document.visibilityState==="visible"&&E.isIntersecting&&E.intersectionRatio>0?y.J=E.intersectionRatio:document.visibilityState==="hidden"?y.J=0:y.J=null:y.J=E.isVisible?E.intersectionRatio:0;typeof y.K==="function"&&y.K(y.J)},N):
null)&&this.N.observe(e)};
y$0=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"applicationInitialized",function(){NQn(N)})};
NQn=function(e){var N=e.api.getRootNode(),y=N;if(!e.api.T("embeds_emc3ds_inview_ks")){var w;y=e.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((w=N.parentElement)==null?void 0:w.parentElement)||N:N}e.J=new C5(y,function(E){E!=null&&(e.api.X().y_=E,e.api.X().zg="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")});
g.Q(e,e.J);e.events.Y(e.api,"videoStatsPingCreated",function(E){var A=e.J;A=A.J==null?null:Math.round(A.J*100)/100;E.inview=A!=null?A:void 0;A=e.api.getPlayerSize();if(A.height>0&&A.width>0){A=[Math.round(A.width),Math.round(A.height)];var T=g.jV();T>1&&A.push(T);A=A.join(":")}else A=void 0;E.size=A})};
w1F=function(e){var N;return((N=((e==null?void 0:e.messageRenderers)||[]).find(function(y){return!!y.timeCounterRenderer}))==null?void 0:N.timeCounterRenderer)||null};
r3=function(e){g.W.call(this,{S:"div",dP:["ytp-player-content","ytp-iv-player-content"],W:[{S:"div",B:"ytp-free-preview-countdown-timer",W:[{S:"span",b9:"{{label}}"},{S:"span",B:"ytp-free-preview-countdown-timer-separator",b9:"\u2022"},{S:"span",b9:"{{duration}}"}]}]});this.api=e;this.J=null;this.K=this.N=0;this.Y(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)};
A$3=function(e,N){e.J||(e.N=N,e.K=(0,g.iC)(),e.J=new g.a1(function(){EBP(e)},null),EBP(e))};
EBP=function(e){var N=Math,y=N.round,w=Math.min((0,g.iC)()-e.K,e.N);N=y.call(N,(e.N-w)/1E3);e.updateValue("duration",CA({seconds:N}));N<=0&&e.J?$8(e):e.J&&e.J.start()};
$8=function(e){e.J&&(e.J.dispose(),e.J=null)};
TQ5=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"basechromeinitialized",function(){N.J=new r3(e);g.Q(N,N.J);g.Pb(e,N.J.element,4);N.J.hide()})};
Y8=function(e){g.W.call(this,{S:"button",dP:["ytp-fullerscreen-edu-button","ytp-button"],W:[{S:"div",dP:["ytp-fullerscreen-edu-text"],b9:"Scroll for details"},{S:"div",dP:["ytp-fullerscreen-edu-chevron"],W:[{S:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],V:{"data-priority":"1"}});this.Lh=e;this.J=new g.NE(this,250,void 0,100);this.K=this.N=!1;e.createClientVe(this.element,this,61214);g.Q(this,
this.J);this.Y(e,"fullscreentoggled",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);this.listen("click",this.onClick);this.GZ()};
Mw=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"updateFullerscreenEduButtonSubtleModeState",function(w){N.updateFullerscreenEduButtonSubtleModeState(w)});
LX(this.api,"updateFullerscreenEduButtonVisibility",function(w){N.updateFullerscreenEduButtonVisibility(w)});
var y=e.X();e.T("external_fullscreen_with_edu")&&y.externalFullscreen&&ZW(y)&&y.controlsType==="1"&&this.events.Y(e,"standardControlsInitialized",function(){N.J=new Y8(e);g.Q(N,N.J);e.Bv(N.J)})};
J$M=function(e){g.W.call(this,{S:"div",B:"ytp-gated-actions-overlay",W:[{S:"div",B:"ytp-gated-actions-overlay-background",W:[{S:"div",B:"ytp-gated-actions-overlay-background-overlay"}]},{S:"button",dP:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],V:{"aria-label":"Close"},W:[g.kl()]},{S:"div",B:"ytp-gated-actions-overlay-bar",W:[{S:"div",B:"ytp-gated-actions-overlay-text-container",W:[{S:"div",B:"ytp-gated-actions-overlay-title",b9:"{{title}}"},{S:"div",B:"ytp-gated-actions-overlay-subtitle",
b9:"{{subtitle}}"}]},{S:"div",B:"ytp-gated-actions-overlay-button-container"}]}]});var N=this;this.api=e;this.background=this.hW("ytp-gated-actions-overlay-background");this.N=this.hW("ytp-gated-actions-overlay-button-container");this.J=[];this.Y(this.hW("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){N.api.Mg("onCloseMiniplayer")});
this.hide()};
Cm3=function(e,N){var y=0;y=0;for(var w={};y<N.length;w={gA:void 0},y++){var E=e.J[y],A=void 0,T=(A=E)==null?void 0:A.element;T||(T=new g.W({S:"button",B:"ytp-gated-actions-overlay-button",V:{tabindex:"0"},W:[{S:"div",B:"ytp-gated-actions-overlay-button-title",b9:"{{buttonText}}"}]}),g.Q(e,T),T.yB(e.N),E={element:T});w.gA=g.m(N[y],p13);var p=A=void 0,C=void 0,r=((A=w.gA)==null?void 0:A.title)||((p=w.gA)==null?void 0:(C=p.titleFormatted)==null?void 0:C.content)||"";T.update({buttonText:r});E.listener&&
T.CX(E.listener);E.listener=T.listen("click",function(Y){return function(){var M,l=g.m((M=Y.gA)==null?void 0:M.onTap,ZL);l&&e.api.Mg("innertubeCommand",l)}}(w));
e.J[y]=E}for(;y<e.J.length;)e.J.pop().element.dispose()};
r$E=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.J=new J$M(this.api);g.Q(this,this.J);this.events.Y(e,"videodatachange",function(){var y,w=(y=N.api.getVideoData())==null?void 0:y.t7;y=N.J;if(w){var E,A,T=((E=w.title)==null?void 0:E.content)||"";E=((A=w.subtitle)==null?void 0:A.content)||"";y.update({title:T,subtitle:E});T=w.thumbnail;A="none";if(T==null?0:T.sources){E=0;T=g.c(T.sources);for(var p=T.next();!p.done;p=T.next())p=p.value,p.width&&p.url&&p.width>
E&&(E=p.width,A="url("+p.url+")")}y.background.style.backgroundImage=A;Cm3(y,w.actionButtons||[]);y.show()}else y.hide()});
g.Pb(this.api,this.J.element,4)};
l3=function(e){jX.call(this,e);var N=this;eX(this.api,"getSphericalProperties",function(){return N.getSphericalProperties()});
eX(this.api,"setSphericalProperties",function(){N.setSphericalProperties.apply(N,g.B(g.iE.apply(0,arguments)))});
a$(this.api,"getSphericalProperties",function(){return N.api.getPresentingPlayerType()===2?{}:N.getSphericalProperties()});
a$(this.api,"setSphericalProperties",function(){var y=g.iE.apply(0,arguments);N.api.getPresentingPlayerType()!==2&&N.setSphericalProperties.apply(N,g.B(y))})};
FC=function(e){jX.call(this,e);LX(e,"createClientVe",this.createClientVe.bind(this));LX(e,"createServerVe",this.createServerVe.bind(this));LX(e,"destroyVe",this.destroyVe.bind(this));LX(e,"hasVe",this.hasVe.bind(this));LX(e,"logClick",this.logClick.bind(this));LX(e,"logVisibility",this.logVisibility.bind(this));LX(e,"setTrackingParams",this.setTrackingParams.bind(this))};
S3=function(e,N,y,w){function E(T){var p=!(T.status!==204&&T.status!==200&&!T.response),C;T={succ:""+ +p,rc:T.status,lb:((C=T.response)==null?void 0:C.byteLength)||0,rt:((0,g.iC)()-A).toFixed(),shost:g.uB(e),trigger:N};$cE(T,e);y&&y(T);w&&!p&&w(new P3("pathprobe.net",T))}
var A=(0,g.iC)();g.zk(e,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:E,onTimeout:E})};
$cE=function(e,N){var y;((y=window.performance)==null?0:y.getEntriesByName)&&(N=performance.getEntriesByName(N))&&N.length&&(N=N[0],e.pedns=(N.domainLookupEnd-N.startTime).toFixed(),e.pecon=(N.connectEnd-N.domainLookupEnd).toFixed(),e.perqs=(N.requestStart-N.connectEnd).toFixed(),Yj5&&(e.perqsa=N.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
oE=function(e,N){this.bk=e;this.policy=N;this.playbackRate=1};
Mq5=function(e,N){var y=Math.min(2.5,Ca(e.bk));e=b3(e);return N-y*e};
hz=function(e,N,y,w,E){E=E===void 0?!1:E;if(e.policy.nm)return Math.ceil(e.policy.nm*N);e.policy.Ci&&(w=Math.abs(w));w/=e.playbackRate;var A=1/M_(e.bk);y=Math.max(.9*(w-3),Ca(e.bk)+e.bk.N.J*A)/A*.8/(N+y);y=Math.min(y,w);e.policy.bb>0&&E&&(y=Math.max(y,e.policy.bb));return lMM(e,y,N)};
lMM=function(e,N,y){return Math.ceil(Math.max(Math.max(e.policy.ib,e.policy.Tv*y),Math.min(Math.min(e.policy.Et,31*y),Math.ceil(N*y))))||e.policy.ib};
F4s=function(e,N,y){y=hz(e,N.J.info.JM,y.J.info.JM,0);var w=Ca(e.bk)+y/M_(e.bk);return Math.max(w,w+e.policy.bf-y/N.J.info.JM)};
b3=function(e){return M_(e.bk,!e.policy.Lm,e.policy.qZ)};
c0=function(e){return b3(e)/e.playbackRate};
k8=function(e,N,y){var w=e.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],E=e.policy.playbackStartPolicy.startMinReadaheadPolicy||[];e=Infinity;N=g.c(N&&w.length>0?w:E);for(w=N.next();!w.done;w=N.next())w=w.value,E=w.minReadaheadMs||0,y<(w.minBandwidthBytesPerSec||0)||e>E&&(e=E);return e<Infinity?e/1E3:e};
B0=function(e,N,y,w){var E=this;this.G=e;this.rP=N;this.policy=y;this.logger=w;this.Ki=[];this.gT=[];this.J=-1;this.TW=null;this.Z=this.timestampOffset=0;this.Yk=null;this.N=10;this.L=new Set;this.lk={Y0:function(A){return E.Y0(A)}};
this.j=N.Cx?0:1;y.t4>0&&(this.N=y.t4)};
hBF=function(e,N,y,w,E){if(!w.info.j){if(y.length===0)y.push(w);else{var A;(e=(A=y.pop())==null?void 0:g.Hx(A,w))?y.push(e):y.push(w)}return E}var T;(y=(T=y.pop())==null?void 0:g.Hx(T,w))||(y=w);if(e.policy.LX&&y.info.N)return e.logger&&e.logger({incompleteSegment:y.info.O2()}),E;T=e.Y0(y);w=T.formatId;E=T.Ch;y=T.clipId;A=T.PL;T=T.startTimeMs;if(!e.policy.Pf&&e.policy.N&&e.Yk){var p=XC(e.Yk,y);T+=p}w={clipId:y,formatId:w,startTimeMs:T,durationMs:A,qO:E,wQ:E,Nl:T,JC:A};E=SjM(N,w.startTimeMs);(y=E>=
0?N[E]:null)&&oB_(e,y,w)?w=y:(E+=1,N.splice(E,0,w));y=0;for(A=E+1;A<N.length;A++){T=e;p=N[A];var C=w,r=p.startTimeMs+p.durationMs,Y=C.startTimeMs+C.durationMs;Y>=r+T.N?T=!0:Y+T.N<p.startTimeMs?T=!1:bAP(T,p.formatId,C.formatId)?(C.durationMs=r-C.startTimeMs,C.JC=C.durationMs,C.wQ=p.wQ,T=!0):(p.startTimeMs=Y,p.Nl=Y,p.qO=C.wQ+1,T=!1);if(!T)break;y++}y&&N.splice(E+1,y);return E};
km0=function(e,N,y){e.policy.LX&&y!=null&&y.CI||(e.Ki=[]);e.policy.Hc?(N=g.T7(e.gT,{startTimeMs:N*1E3},function(w,E){return w.startTimeMs-E.startTimeMs}),e.J!==N&&(e.J=-1,e.K=void 0)):(c$M(e,!0),e.J=SjM(e.gT,N*1E3))};
SjM=function(e,N){e=g.T7(e,{startTimeMs:N},function(y,w){return y.startTimeMs-w.startTimeMs});
return e>=0?e:-e-2};
c$M=function(e,N){if(e.TW){var y=e.TW.Ju();if(y.length!==0){if(e.K&&N){var w=e.K,E=w.info.o2;!AX(y,E)&&w.info.Z>0&&(0,g.iC)()-e.Z<5E3&&(e.logger&&e.logger({dend:w.info.O2()}),y=$EM(y,E,E+.01))}e.policy.Hc&&e.logger&&e.logger({cbri:""+e.J});w=[];for(var A=E=0;E<y.length&&A<e.gT.length;){var T=y.start(E),p=y.end(E),C=e.gT[A].startTimeMs/1E3,r=(e.gT[A].startTimeMs+e.gT[A].durationMs)/1E3;if(C<=p&&r>=T){var Y=0;if(e.Yk){var M=P0(e.Yk,C*1E3);M&&(Y=M.N3/1E3)}M=Object.assign({},e.gT[A]);var l=e.rP.K.get(Sl(e.gT[A].formatId)),
F=Math.max(C,T);T=l.index.zI(F+e.N/1E3-Y);C=l.index.getStartTime(T)+Y;var S=T+ +(Math.abs(C-F)>e.N/1E3);F=S+e.j;S=(l.index.getStartTime(S)+Y)*1E3;A!==e.J||N?(M.qO=F,M.startTimeMs=S):(e.logger&&e.logger({pEvict:"1",og:M.startTimeMs,adj:C*1E3}),M.qO=T+e.j,M.startTimeMs=C*1E3);M.Nl=M.startTimeMs;T=void 0;C=((T=e.K)==null?void 0:T.info.duration)||11;A===e.J&&p<r&&r-p<=C*1.01&&(p=r);T=Math.min(r,p);C=l.index.zI(T-e.N/1E3-Y);F=e.policy;(F.N||F.Ot.T("html5_sabr_include_tail_media_chunk"))&&l.index.VI(C+
1)&&l.index.vU(C+1)+Y<=T&&(C+=1);F=l.index.vU(C)+Y;C-=+(Math.abs(F-T)>e.N/1E3);T=C+e.j;Y=(l.index.vU(C)+Y)*1E3;M.wQ=T;M.durationMs=Y-M.startTimeMs;M.JC=M.durationMs;M.qO<=M.wQ&&w.push(M)}r<p?A+=1:E+=1}e.gT=w}}};
BQ9=function(e){var N=[],y=[].concat(g.B(e.Ki));e.gT.forEach(function(T){N.push(Object.assign({},T))});
for(var w=e.J,E=g.c(e.G.BW()),A=E.next();!A.done;A=E.next())w=hBF(e,N,y,A.value,w);N.forEach(function(T){T.startTimeMs&&(T.startTimeMs+=e.timestampOffset*1E3,T.Nl&&(T.Nl+=e.timestampOffset*1E3))});
return{gT:N,Ki:y}};
oB_=function(e,N,y){var w=N.startTimeMs+N.durationMs,E=y.startTimeMs+y.durationMs;if(y.startTimeMs-w>e.N)return!1;if(bAP(e,N.formatId,y.formatId))return N.durationMs=Math.max(w,E)-N.startTimeMs,N.JC=N.durationMs,N.wQ=Math.max(N.wQ,y.wQ),!0;if(Math.abs(N.startTimeMs-y.startTimeMs)<=e.N){if(N.durationMs>y.durationMs+e.N){e=N.formatId;var A=N.qO,T=N.wQ;N.formatId=y.formatId;N.durationMs=y.durationMs;N.qO=y.qO;N.JC=y.durationMs;N.wQ=y.wQ;y.formatId=e;y.startTimeMs=E;y.Nl=E;y.durationMs=w-E;y.JC=y.durationMs;
y.qO=A;y.wQ=T;return!1}N.formatId=y.formatId;return!0}w>y.startTimeMs&&(N.durationMs=y.startTimeMs-N.startTimeMs,N.JC=N.durationMs,N.clipId===y.clipId&&(N.wQ=y.qO-1));return!1};
bAP=function(e,N,y){return N.itag!==y.itag||N.xtags!==y.xtags?!1:e.rP.Cx||N.lmt===y.lmt};
X13=function(e,N,y){if(e.logger){for(var w=[],E=0;E<N.length;E++){var A=N[E],T=void 0;if((T=A.A9)==null?0:T.startTicks){var p=T=void 0,C=void 0;w.push("i."+((T=A.formatId)==null?void 0:T.itag)+"_st."+(A.startTimeMs+"_psst.")+(((p=A.A9)==null?void 0:p.startTicks)+"_psd.")+((C=A.A9)==null?void 0:C.fV))}T=void 0;w.push("i."+((T=A.formatId)==null?void 0:T.itag)+"_st."+(A.startTimeMs+"_e."+(A.startTimeMs+A.durationMs)+"_d."+A.durationMs)+("_sn."+A.qO)+("_en."+A.wQ))}e.logger({p:""+y,br:w.join(";")})}};
PmM=function(e){e.gT=[];e.Ki=[];e.L.clear();e.J=-1;e.K=void 0};
d3=function(e,N,y,w,E){this.tW=e;this.rP=N;this.videoTrack=y;this.audioTrack=w;this.policy=E;this.seekCount=this.J=0;this.L=!1;this.j=null;this.K=0;this.N=this.rP.isManifestless&&!this.rP.Ta};
dcM=function(e,N,y){if(!e.policy.Z){e=N.J.index;var w=N.N.Ch;e.VI(w)||y&&y.Ch===w?(N.L=!e.VI(w),N.Kh=!e.VI(w)):(N.L=!0,N.Kh=!0)}};
vBJ=function(e){var N=Math.max(e.videoTrack.j.K||0,e.audioTrack.j.K||0);IMJ(e.videoTrack);IMJ(e.audioTrack);e.policy.Z||G6J(e.rP);e.rP.isManifestless&&!e.policy.Z&&(e.N=!0,e.K=0);var y=e.tW;y.policy.Rq||(y.currentTime=N);e.L=!0;e.j=new O3;return e.j};
Dc1=function(e,N,y,w,E){var A=e.policy.LX?E:void 0;if(!N.J.Yz()){if(!(A=y===0||!!N.K.length&&N.K[0]instanceof IE))a:{if(N.K.length&&(A=N.K[0],A instanceof v0&&A.Q2&&A.E_)){A=!0;break a}A=!1}A||e.policy.J||zc(N);return y}var T=i3(N,y);if(!isNaN(T))return T;if(e.tW.lS(y*1E3))return y;E.CI?e.policy.zd&&(e=D2(e.tW,N),zBM(N.j,y+e,!0)):(N.w4(),e.tW.Fc(!1,"sta_"+ +N.J.info.qG()));return w&&(e=T6(w.Ju(),y),!isNaN(e))?(g3(N,e+iA9,A),y):g3(N,y,A)};
Vq5=function(e,N,y,w){if(e.policy.Z)!w||!e.N&&e.policy.SR||g.Jo(function(){V9(e)});
else{if(e.isSeeking()&&e.J){var E=gB_(e,N,y);if(E!==-1){e.videoTrack.L=!1;e.audioTrack.L=!1;e.N=!0;e.K=0;g.Jo(function(){e.tW.Fh("seekreason",{reason:"behindMinSq",tgt:E});f5(e,E)});
return}}y?e.videoTrack.Kh=!1:e.audioTrack.Kh=!1;var A=e.policy.M6||!e.N;i3(e.videoTrack,e.J)>=0&&i3(e.audioTrack,e.J)>=0&&A?((e.videoTrack.L||e.audioTrack.L)&&e.tW.Fh("iterativeSeeking",{status:"done",count:e.seekCount}),e.videoTrack.L=!1,e.audioTrack.L=!1):w&&g.Jo(function(){if(e.N||!e.policy.SR)V9(e);else{var T=N.startTime,p=N.duration;if(!e.policy.Z){var C=y?e.videoTrack.L:e.audioTrack.L,r=e.videoTrack.Z!==-1&&e.audioTrack.Z!==-1,Y=e.J>=T&&e.J<T+p+.1,M=!e.videoTrack.Kh&&!e.audioTrack.Kh,l=e.policy.sb&&
i3(e.videoTrack,T)&&i3(e.audioTrack,T);C&&r&&M&&(Y||l?((y?e.videoTrack:e.audioTrack).L=!1,e.videoTrack.L||e.audioTrack.L||(e.tW.Fh("iterativeSeeking",{status:"done",target:T,originalTime:T+e.tW.w7(),count:e.seekCount}),e.seekCount=0)):e.seekCount<8?(e.seekCount++,e.tW.Fh("iterativeSeeking",{status:"inprogress",count:e.seekCount,target:e.J,actual:T,duration:p,isVideo:y}),e.seek(e.J,{})):(e.tW.Fh("iterativeSeeking",{status:"incomplete",count:e.seekCount,target:e.J,actual:T}),e.seekCount=0,e.videoTrack.L=
!1,e.audioTrack.L=!1,tz(e.tW,T+.1,{l8:!0,BY:"chunkSelectorSynchronizeMedia",Kz:!0})))}}})}};
gB_=function(e,N,y){if(!e.isSeeking())return-1;y=(y?e.videoTrack:e.audioTrack).J.index;var w=y.zI(e.J);return(y.VI(e.rP.L$)||N.Ch===e.rP.L$)&&w<e.rP.L$?e.rP.Ti():-1};
f5=function(e,N,y){e.N&&e.videoTrack.Z!==-1&&e.audioTrack.Z!==-1&&(e.N=!1,e.J=N,tz(e.tW,N+.1,{l8:!0,BY:"chunkSelectorSynchronize",Kz:!0,seekSource:y}))};
V9=function(e){var N=e.videoTrack.Z!==-1,y=e.audioTrack.Z!==-1;if(!N||!y)if(N=!N&&u3(e.videoTrack),y=!y&&u3(e.audioTrack),N||y){y=N?e.videoTrack:e.audioTrack;N=N?e.audioTrack:e.videoTrack;y.Z=u3(y).info.Ch;if(e.policy.Z){var w;N.Z=((w=u3(N))==null?void 0:w.info.Ch)||N.Z}if(N.Z!==-1){var E=Math.max(N.J.index.getStartTime(N.Z),y.J.index.getStartTime(y.Z));$_(e.rP)&&Math.abs(E-$_(e.rP))>432E3&&U$M(e.rP);e.K&&(E=e.K,e.K=0);g.Jo(function(){e.policy.Z||f5(e,E,102)});
e.tW.Fh("initManifestlessSync",{st:E,ost:E+e.tW.w7(),a:e.audioTrack.Z,v:e.videoTrack.Z});e.j&&(e.j.resolve(E+.1),e.j=null);e.policy.Z&&f5(e,E,102)}}};
qw=function(e,N){var y=this;this.qU=e;this.requestNumber=++fM1;this.J=this.now();this.D=this.Ng=NaN;this.G=this.J;this.K=this.Xz=this.L=0;this.Z=this.J;this.Zl=this.U=this.l9=this.jn=this.FZ=this.i9=this.N=this.j=0;this.Kh=this.isActive=!1;this.SR=this.Dl=0;this.lk={iIh:function(){return y.UT}};
this.bk=N.bk;this.snapshot=tps(this.bk);this.policy=this.bk.N;this.Vm=!!N.Vm;this.fd=N.fd;this.J3=N.J3||0;this.eV=N.eV||0;N.CU&&(this.Rq=new eV);var w;this.UT=(w=N.UT)!=null?w:!1;this.Vm||gz5(this.bk)};
tqM=function(e){e.l9=Math.max(e.l9,e.L-e.FZ);e.U=Math.max(e.U,e.G-e.jn);e.i9=0};
Z2=function(e,N,y){VpP(e.bk,N);e.Rq&&(e.Rq.add(Math.ceil(N)-Math.ceil(e.G)),e.Rq.add(Math.max(0,Math.ceil(y/1024)-Math.ceil(e.L/1024))));var w=N-e.G,E=y-e.L;e.Xz=E;e.Zl=Math.max(e.Zl,E/(w+.01)*1E3);e.G=N;e.L=y;e.i9&&y>e.i9&&tqM(e)};
x8=function(e,N){e.url=N;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
j3=function(e,N){qw.call(this,e,N);this.a9=this.Y_=!1;this.Et=this.qg=Infinity;this.Bk=NaN;this.dT=!1;this.VB=NaN;this.pX=this.aq=this.Wk=0;this.lw=N.lw||1;this.bx=N.bx||this.lw;this.F6=N.F6;this.Ch=N.Ch;this.Hf=N.Hf;uBn(this);this.n4(this.J);this.Kx=(this.VB-this.J)/1E3};
qjH=function(e){var N=e.aq||e.Wk;return N?e.snapshot.delay+Math.min(e.eV,(e.D-e.Ng)/1E3)+N:e.Kx};
n5=function(e,N,y){if(!e.Vm){N=Math.max(N,.01);var w=e.J3?Math.max(N,y/e.J3):N,E=e.bk.N.K;E&&(w=N,e.J3&&(w=Math.max(N,y/e.J3*E)));TX(e.bk,N,y,w)}};
ZAH=function(e){return(e.Z-e.J)/1E3};
uBn=function(e){e.Bk=e.J+e.snapshot.delay*1E3;e.dT=!1};
Q9=function(e,N){if(e.F6&&e.Ch!==void 0&&e.Hf!==void 0){var y=Math,w=y.min,E=e.qg;var A=e.F6;var T=e.J;if(xcs(A,e.Ch))A=N;else{var p=0;A.Z0&&(p=.2);A=T+(A.eV+p)*1E3}e.qg=w.call(y,E,A);y=Math;w=y.min;E=e.Et;A=e.F6;T=e.J;p=jxF(A,e.Ch,e.Hf);p!==2&&(N=p?N:T+A.eV*1E3,A.Z0&&(N+=A.eV*1E3));e.Et=w.call(y,E,N);e.qg<=e.J?uBn(e):(e.Bk=e.qg,e.dT=!0)}};
nBP=function(e,N){if(e.b8(N,1)){var y=e.getUint8(N);y=y<128?1:y<192?2:y<224?3:y<240?4:5}else y=0;if(y<1||!e.b8(N,y))return[-1,N];if(y===1)e=e.getUint8(N++);else if(y===2)y=e.getUint8(N++),e=e.getUint8(N++),e=(y&63)+64*e;else if(y===3){y=e.getUint8(N++);var w=e.getUint8(N++);e=e.getUint8(N++);e=(y&31)+32*(w+256*e)}else if(y===4){y=e.getUint8(N++);w=e.getUint8(N++);var E=e.getUint8(N++);e=e.getUint8(N++);e=(y&15)+16*(w+256*(E+256*e))}else y=N+1,e.focus(y),kC(e,y,4)?e=Icn(e).getUint32(y-e.Po,!0):(w=
e.getUint8(y+2)+256*e.getUint8(y+3),e=e.getUint8(y)+256*(e.getUint8(y+1)+256*w)),N+=5;return[e,N]};
mA=function(e){this.qU=e;this.J=new oR};
H0=function(e,N){this.info=e;this.callback=N;this.state=1;this.kP=this.WM=!1;this.To=null};
Qx5=function(e){return g.Ip(e.info.QB,function(N){return N.type===3})};
K5=function(e,N,y,w){var E=this;w=w===void 0?{}:w;this.policy=N;this.qU=y;this.status=0;this.J=new oR;this.N=0;this.Ss=this.j=this.K=!1;this.xhr=new XMLHttpRequest;this.xhr.open(w.method||"GET",e);if(w.headers)for(e=w.headers,N=g.c(Object.keys(e)),y=N.next();!y.done;y=N.next())y=y.value,this.xhr.setRequestHeader(y,e[y]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return E.Mc()};
this.xhr.onload=function(){return E.onDone()};
this.xhr.onerror=function(){return E.onError()};
this.xhr.fetch(function(A){E.J.append(A);E.N+=A.length;A=(0,g.iC)();E.qU.X_(A,E.N)},function(){},w.body||null)};
mc_=function(e,N){this.N=(new TextEncoder).encode(e);this.J=(new TextEncoder).encode(N)};
Wzs=function(e,N){var y,w,E;return g.f(function(A){if(A.J==1){if(!N)return A.return(N);y=W0.X0();w=new g.kd(e.N);return g.D(A,w.encrypt(N,e.J),2)}E=A.N;W0.x$("woe",y,Math.ceil(N.byteLength/16));return A.return(E)})};
Lz3=function(e,N){var y,w,E;return g.f(function(A){if(A.J==1){if(!N)return A.return(N);y=W0.X0();w=new g.kd(e.N);return g.D(A,w.decrypt(N,e.J),2)}E=A.N;W0.x$("wod",y,Math.ceil(N.byteLength/16));return A.return(E)})};
K4n=function(e,N){var y=this;this.J=e;this.qU=N;this.loaded=this.status=0;this.error="";e=hd(this.J.get("range")||"");if(!e)throw Error("bad range");this.range=e;this.N=new oR;HAM(this).then(function(){y.qU.c_()},function(w){y.error=""+w||"unknown_err";
y.qU.c_()})};
HAM=function(e){var N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){if(X.J==1){e.status=200;N=e.J.get("docid");y=GJ(e.J.get("fmtid")||"");w=e.J.get("lmt")||"0";E=+(e.J.get("csz")||0);if(!N||!y||!E)throw Error("Invalid local URL");e.J.get("ck")&&e.J.get("civ")&&(A=new mc_(e.J.get("ck"),e.J.get("civ")));T=e.range;p=Math.floor(T.start/E);C=Math.floor(T.end/E);r=p}if(X.J!=5)return r<=C?g.D(X,sX9(N,y,w,r,A),5):X.u9(0);Y=X.N;if(Y===void 0)throw Error("invariant: data is undefined");M=r*E;l=(r+1)*E;
F=Math.max(0,T.start-M);S=Math.min(T.end+1,l)-(F+M);k=new Uint8Array(Y.buffer,F,S);e.N.append(k);e.loaded+=S;e.loaded<T.length&&e.qU.X_((0,g.iC)(),e.loaded);r++;return X.u9(2)})};
OA0=function(e,N,y,w){var E=this;w=w===void 0?{}:w;this.policy=N;this.qU=y;this.G=w;this.status=0;this.response=void 0;this.N=0;this.L=this.Z=!1;this.errorMessage="";this.D=function(A){if(A)if(E.status=A.status,A.ok&&A.body&&E.status!==204)E.status=E.status||242,E.K=A.body.getReader(),E.Ss()?E.K.cancel().catch(function(){}):(E.responseHeaders=A.headers,E.qU.Fm(),W4M(E));
else E.onDone();else E.onError(Error("null_response"))};
this.U=function(A){var T=(0,g.iC)();E.Ss()||(A.done?(E.K=void 0,E.onDone()):(A=A.value,E.N+=A.length,E.J.append(A),W4M(E),E.qU.X_(T,E.N)))};
this.onError=function(A){E.errorMessage=String(A);E.Z=!0;E.onDone()};
this.J=new oR;this.j=window.AbortController?new AbortController:void 0;this.start(e)};
W4M=function(e){e.K.read().then(e.U,e.onError).then(void 0,r0)};
RBs=function(e,N,y){var w=this;y=y===void 0?{}:y;this.qU=N;this.N=this.status=0;this.Ss=this.J=!1;this.xhr=new XMLHttpRequest;this.xhr.open(y.method||"GET",e);if(y.headers){e=y.headers;N=g.c(Object.keys(e));for(var E=N.next();!E.done;E=N.next())E=E.value,this.xhr.setRequestHeader(E,e[E])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(A){w.Mc(A)};
e=$B(function(A){w.onDone(A)});
this.xhr.addEventListener("load",e,!1);this.xhr.addEventListener("error",e,!1);y.body?this.xhr.send(y.body):this.xhr.send();this.xhr.addEventListener("progress",$B(function(A){w.FI(A)}),!1)};
Oi=function(e,N,y,w,E){if(F9(e.tA))return new K4n(e,y);e=e.nC();return w?bnJ()?new K5(e,N,y,E):new OA0(e,N,y,E):new RBs(e,y,E)};
g.RE=function(e){this.tag=e};
Gm0=function(e,N){g.Gc.apply(null,[6,e,N].concat(g.B(g.iE.apply(2,arguments))))};
Ucn=function(e,N){g.Gc.apply(null,[5,e,N].concat(g.B(g.iE.apply(2,arguments))))};
g.Gc=function(e,N,y){var w=g.iE.apply(3,arguments),E=e===6?"ERROR":"WARNING",A="b"+y;g.t0(new (Function.prototype.bind.apply(g.Gh,[null,A].concat(g.B(w)))),E);w.unshift(A);w=w.join(", ");E=L45.get(N);if(!E){E="ytplog."+N;A=5;try{window.localStorage&&!isNaN(+window.localStorage[E])&&(A=+window.localStorage[E]),window.sessionStorage&&!isNaN(+window.sessionStorage[E])&&(A=+window.sessionStorage[E])}catch(C){}L45.set(N,A);E=A}if(!(e<E)){E=sx_;A=E.J.get(N);A||(A=new aMM,E.J.set(N,A));E=A;A=Date.now();
var T=Math.floor((A-E.N)*.01);T>0&&(E.J=Math.min(E.J+T,10),E.N=A);E.J>0?(E.J--,E=!0):E=!1;if(E)typeof w==="function"&&(w=w()),console.log("plyr."+N,w);else{var p;w=((p=evM.get(N))!=null?p:0)+1;evM.set(N,w);w%100===1&&console.warn("plyr","plyr."+N+" is chatty, dropping logs.")}}};
aMM=function(){this.J=10;this.N=Date.now()};
Ui=function(e,N){g.x.call(this);var y=this;this.policy=e;this.QB=N;this.N=0;this.J=null;this.QT=[];this.K=null;this.lk={Lz:function(){return y.QB}};
this.QB.length===1||g.Ip(this.QB,function(w){return!!w.range})};
L5=function(e,N,y){e.J&&(bI(e.J,N),N=e.J,e.J=null);for(var w=0,E=0,A=g.c(e.QB),T=A.next();!T.done;T=A.next())if(T=T.value,T.range&&w+T.K<=e.N)w+=T.K;else{N.getLength();if(Xs(T)&&!y&&e.N+N.getLength()-E<w+T.K){e.J=N.split(E).h3;return}a:{var p=e;var C=T,r=e.N-w,Y=E,M=N,l=!!y,F=M.getLength()-Y;C.range&&(F=Math.min(C.K-r,F));C=Ku0(C,C.N+r,F,C.range?C.N+r+F===C.range.length:l);Y=hC(M,Y,F);Y=new mv(C,Y);if(p.policy.useUmp&&p.QT.length&&(M=g.Hx(p.QT[p.QT.length-1],Y))){p.QT[p.QT.length-1]=M;p=F;break a}p.QT.push(Y);
p=F}e.N+=p;E+=p;w+=T.K;if(E===N.getLength())break}N.getLength()};
si=function(e,N,y,w,E,A,T,p,C){C=C===void 0?!1:C;g.x.call(this);this.qU=e;this.policy=N;this.R2=y;this.yl=w;this.timing=E;this.logger=A;this.K=T;this.lz=p;this.L=C;this.lastError=null;this.J=0;this.j=!1;this.N=new g.e6(this.wwP,this.policy.sY,this)};
NDF=function(e){e.yl.D=(0,g.iC)();e=aE(e);e.K=(0,g.iC)();e.started+=1};
EE5=function(e,N,y,w){e.timing.KF((0,g.iC)(),N,y);N=e.yl;N.N=0;N.L=0;N.G=0;p1(aE(e));e.policy.By&&w&&(w=aE(e),w.N+=1);if((w=e.lz)!=null&&(e=e.R2.tA,!((0,g.iC)()<w.Z+3E5||F9(e))&&(N=lN(e))&&yiM(N)&&w.N===er(N))){var E;Sd(e)&&(E=lN(oh(e)));g.uY("yt-player-bandaid-host",{primary:N,secondary:E},864E3);w.Z=(0,g.iC)();w$s(w,{primary:N,secondary:E})}};
N4=function(e){if(e.lastError==="ump.spsrejectfailure")e.policy.Z3||e.timing.Kh||frP(e.yl,!1,e.R2,e.policy,e.K);else{if(e.lastError==="net.timeout")e.timing.Ep((0,g.iC)());else{var N=e.timing;Z2(N,(0,g.iC)(),N.L)}if(e.lastError==="net.nocontent")++e.yl.G;else{if((N=e.lastError==="net.timeout"||e.lastError==="net.connect"||e.lastError==="net.closed")&&!F9(e.R2.tA)){var y=aE(e);y.timedOut+=1}else y=aE(e),y.J+=1;e.timing.Kh||frP(e.yl,N,e.R2,e.policy,e.K)}}e.qU.IJ(5)};
yW=function(e,N,y,w,E){return N>=400?(e.lastError="net.badstatus",!0):(E===void 0?0:E)?(e.lastError="ump.spsrejectfailure",!0):y||w!==void 0&&w?!1:(e.lastError=N===204?"net.nocontent":"net.connect",!0)};
wB=function(e,N){if(e.policy.w$)return!1;var y=N.getResponseHeader("content-type"),w=N.rG();e=!w||w<=e.policy.g6;return(!N.zE()||!y||y.indexOf("text/plain")!==-1)&&e};
TD1=function(e,N){var y="";N=N.xJ();N.getLength()<=e.policy.g6&&(y=Ai_(e,N.YX()));return y};
Ai_=function(e,N){var y=P8(N);return a_(y)?(e.logger.debug(function(){return"Redirecting to "+y}),y):""};
aE=function(e){return r4(e.K,lN(e.R2.tA))};
Ji5=function(e){var N=e.timing.gL();N.shost=lN(e.R2.tA);return N};
p$M=function(e,N){return(e==null?void 0:e.maxWidth)>(N==null?void 0:N.maxWidth)||(e==null?void 0:e.maxHeight)>(N==null?void 0:N.maxHeight)};
CNE=function(e,N){for(var y=g.c(N.keys()),w=y.next();!w.done;w=y.next())if(w=N.get(w.value),w.length!==0){g.pf(w,function(p,C){return C.maxFramerate-p.maxFramerate});
for(var E=[w[0]],A=0,T=1;T<w.length;T++)p$M(w[T],E[A])&&(E.push(w[T]),A++);e=e.concat(E)}return e};
$a_=function(e,N){var y=[];N=g.c(N);for(var w=N.next();!w.done;w=N.next()){w=w.value;var E=ris[w]||0;e.J&&E>e.J||y.push(w)}return y};
EY=function(e,N,y){var w=Yfn[e]||[];y.T("html5_shorts_onesie_mismatched_fix")&&(w=Md0[e]||[]);N.push.apply(N,g.B(w));y.T("html5_early_media_for_drm")&&N.push.apply(N,g.B(leF[e]||[]))};
ciM=function(e,N){var y=g.sn(e),w=e.X(),E=w.L;w=w.T("html5_shorts_onesie_mismatched_fix");var A=e.e_();if(w){if(!E.K){if(A&&AI)return AI;if(Tg)return Tg}}else if(Tg&&!E.K)return Tg;var T=[],p=[],C={},r=JI.concat(Fh3);w&&(r=JI.concat(Sf0));e.T("html5_early_media_for_drm")&&(r=r.concat(oEn),e.T("allow_vp9_1080p_mq_enc")&&r.push(b_P));var Y=[].concat(g.B(hv_));if(y.D)for(var M=0;M<Y.length;M++)Y[M].length&&nd[Y[M][0]]==="a"&&(Y[M]=["141"]);if(y.i9)for(M=0;M<Y.length;M++)Y[M].length&&nd[Y[M][0]]==="o"&&
(Y[M]=["774"]);e.T("html5_iamf_audio_onesie_fmt")&&Y.push(["773"]);r=g.c(r);for(var l=r.next();!l.done;l=r.next()){M=!1;l=g.c(l.value);for(var F=l.next();!F.done;F=l.next()){F=F.value;var S=La(F,A&&w);if(S&&S.video&&!(Kd(S)&&!y.Rq&&S.video.J>y.G4)){var k=g.Y2(e.X().experiments,"html5_drm_byterate_soft_cap");k>0&&Cp5(S)&&S.JM>k||(M?(T.push(F),EY(F,T,e)):(S=Ef(y,S,E),S===!0?(M=!0,T.push(F),EY(F,T,e)):C[F]=S))}}}Y=g.c(Y);for(r=Y.next();!r.done;r=Y.next())for(r=g.c(r.value),M=r.next();!M.done;M=r.next())if(M=
M.value,(l=EAP(M))&&l.audio&&(e.T("html5_onesie_51_audio")||!W3(l)&&!Og(l)))if(l=Ef(y,l,E),l===!0){p.push(M);EY(M,p,e);break}else C[M]=l;y.N&&N("orfmts",C);if(w)return E.K&&(E.K=!1,AI=Tg=void 0),A?AI={video:T,audio:p}:Tg={video:T,audio:p};Tg={video:T,audio:p};E.K=!1;return Tg};
g.X$J=function(e,N,y){var w=y.L,E=[],A=[],T=y.T("html5_shorts_onesie_mismatched_fix");e=e.e_();var p=JI.concat(Fh3);T&&(p=JI.concat(Sf0));y.T("html5_early_media_for_drm")&&(p=p.concat(oEn),y.T("allow_vp9_1080p_mq_enc")&&p.push(b_P));var C=[].concat(g.B(hv_));if(N.D)for(var r=0;r<C.length;r++)C[r].length&&nd[C[r][0]]==="a"&&(C[r]=["141"]);if(N.i9)for(r=0;r<C.length;r++)C[r].length&&nd[C[r][0]]==="o"&&(C[r]=["774"]);y.T("html5_iamf_audio_onesie_fmt")&&C.push(["773"]);p=g.c(p);for(r=p.next();!r.done;r=
p.next()){r=g.c(r.value);for(var Y=r.next();!Y.done;Y=r.next()){Y=Y.value;var M=La(Y,e&&T);if(M&&M.video){var l=g.Y2(y.experiments,"html5_drm_byterate_soft_cap");if(!(l>0&&Cp5(M)&&M.JM>l)&&Ef(N,M,w)===!0){E.push({videoCodec:kD3[nd[Y]],maxWidth:M.video.width,maxHeight:M.video.height,maxFramerate:M.video.fps});break}}}}T=g.c(C);for(e=T.next();!e.done;e=T.next())for(e=g.c(e.value),C=e.next();!C.done;C=e.next())if(C=C.value,(p=EAP(C))&&p.audio&&(y.T("html5_onesie_51_audio")||!W3(p)&&!Og(p))&&Ef(N,p,w)===
!0){A.push({audioCodec:BD0[nd[C]],numChannels:p.audio.numChannels});break}return{videoFormatCapabilities:E,audioFormatCapabilities:A}};
pP=function(e){var N={},y=e.JW,w=e.Ot,E=y.getVideoData(),A=zm(0),T=y.getPlayerSize(),p=y.getVisibilityState();A&&(N.Vsq=A,N.lastManualDirection=hs9(),A=OkM()||0,A>0&&(A=(w.T("html5_use_date_now_for_local_storage")?Date.now():(0,g.iC)())-A,w.T("html5_use_date_now_for_local_storage")?A>0&&(N.timeSinceLastManualFormatSelectionMs=A):N.timeSinceLastManualFormatSelectionMs=A));N.wf1=zm();A=w.T("html5_use_streamer_bandwidth_for_low_latency_live")&&E.isLowLatencyLiveStream;if(w.schedule.Ng&&!A){var C;A=w.T("html5_disable_bandwidth_cofactors_for_sabr_live")?
!((C=e.qK)==null||!C.Lm):!1;N.Cr=M_(w.schedule,!A)}C=g.jV();var r=g.q5.medium,Y=Math.floor(r*16/9);A=E.e_()?r:Y;r=E.e_()?Y:r;N.eq=Math.max(T.width*C,A);N.Wa=Math.max(T.height*C,r);N.visibility=p;N.RUW=z_();N.rr=y.wS()*1E3;T=e.JW.mH(!0);var M,l,F,S,k,X;N.Qfl={defaultPolicy:(T==null?void 0:(M=T.xs)==null?void 0:M.J)||0,smooth:(T==null?void 0:(l=T.JT9)==null?void 0:l.J)||0,visibility:(T==null?void 0:(F=T.kIh)==null?void 0:F.J)||0,BL:(T==null?void 0:(S=T.m8)==null?void 0:S.J)||0,performance:(T==null?
void 0:(k=T.FC)==null?void 0:k.J)||0,speed:(T==null?void 0:(X=T.tZG)==null?void 0:X.J)||0};w.T("html5_enable_sabr_drm_hd720p")&&e.sabrLicenseConstraint&&(N.sabrLicenseConstraint=e.sabrLicenseConstraint);if(w.T("html5_onesie_media_capabilities")||w.T("html5_enable_server_format_filter"))N.qz=3;w.T("html5_onesie_audio_only_playback")&&Gr(E)&&(N.qz=1);var d;((d=e.qK)==null?0:d.zg)&&E.Cx()&&e.E1B&&(N.qz=N.qz===void 0?7:N.qz|4);M=E.sY?E.sY:g.sn(E);w.T("html5_onesie_media_capabilities")&&(N.mediaCapabilities=
g.X$J(E,M,w));var v;if((v=e.qK)==null?0:v.J&&v.DD){F=w.L;v=[];l=[];S=new Map;w.T("html5_ssap_update_capabilities_on_change")?(F.D||dbF(F),k=F.D||[]):k=Array.from(F.J.values());k=g.c(k);for(X=k.next();!X.done;X=k.next())d=X.value,d.qG?l.push({audioCodec:BD0[d.Iq],numChannels:d.numChannels,spatialCapabilityBitmask:PNM[d.Iq]}):(T=kD3[d.Iq],X={videoCodec:T,maxWidth:d.maxWidth||0,maxHeight:d.maxHeight||0,maxFramerate:d.maxFramerate||0,is10BitSupported:d.Oa||!1},d.maxBitrateBps&&(X.maxBitrateBps=d.maxBitrateBps,
p=La(d.itag),C=void 0,((C=p)==null?0:C.video)&&Ef(M,p,F)===!0&&(p=p.JM*8,p>X.maxBitrateBps&&(X.maxBitrateBps=p))),d=T+"_"+d.Oa,T=S.get(d)||[],T.push(X),S.set(d,T));v=CNE(v,S);F={};w.T("html5_ssff_denylist_opus_low")&&(F={itagDenylist:[249,350]});N.mediaCapabilities={videoFormatCapabilities:v,audioFormatCapabilities:l,hdrModeBitmask:3,perPlaybackAttributes:F}}var V;if((V=e.qK)==null?0:V.J){N.RY=M.RY;var Z;N.G4=(Z=e.qK)==null?void 0:Z.G4}w.Js&&(N.CY=w.Js);N.Sb=e.F7;N.mV=e.mV;N.nf=e.nf;N.XY=e.XY;if(w.T("html5_fix_time_since_last_seek_reporting")?
e.Vy!==void 0:e.Vy)N.C6s=(0,g.iC)()-e.Vy;e.isPrefetch&&w.T("html5_report_prefetch_requests")&&(N.isPrefetch=!0);QY||(N.dUP=!0);V=Ca(w.schedule)*1E3;V>0&&(N.Qv=V);var n;((n=e.qK)==null?0:n.e$)&&e.pG&&e.pG<Infinity&&(N.pG=e.pG);y=y.getPlaybackRate();y!==1&&(N.playbackRate=y);var R;((R=e.qK)==null?0:R.PY)&&e.ue&&(N.rE=e.rE,N.Ka=e.Ka,N.ue=e.ue);w.T("allow_proxima_live_latency")&&(im()===1&&(N.QqG=1),w.T("html5_sabr_force_proxima")&&(N.Msq=1),R=g.Y2(w.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),
N.qgt=R>0?R:w.schedule.interruptions[0]||0);var O;if((O=e.qK)==null?0:O.Xz)N.Td=e.Td;var E9;((E9=e.qK)==null?0:E9.o4)&&E.E0&&(N.audioTrackId=E.E0);var Jn;if((Jn=e.qK)==null?0:Jn.p5)if(e=JF5())N.detailedNetworkType=daM[e]||daM.other;return N};
CP=function(e,N,y,w,E,A,T){var p={};N&&(p.tC=N);if(!e)return p;p.playbackCookie=y==null?void 0:y.playbackCookie;E&&(p.PS=E);p.Ds=[];p.Y6=[];if(T==null?0:T.size)for(N=g.c(T.values()),y=N.next();!y.done;y=N.next())p.Y6.push(y.value);if((g.xK(e)||e.zy)&&e.sabrContextUpdates.size>0)for(N=g.c(e.sabrContextUpdates.values()),y=N.next();!y.done;y=N.next())Ie9(p,y.value,w);L3(e)&&!g.xK(e)&&e.T("html5_enable_sabr_request_pipelining")&&A&&Ie9(p,A,w);e.wh&&(p.DGP=e.wh);w=e.X().J;p.clientInfo={clientName:vEH[w.c.toUpperCase()]||
0};w.cbrand&&(p.clientInfo.deviceMake=w.cbrand);w.cmodel&&(p.clientInfo.deviceModel=w.cmodel);w.cver&&(p.clientInfo.clientVersion=w.cver);w.cos&&(p.clientInfo.osName=w.cos);w.cosver&&(p.clientInfo.osVersion=w.cosver);w=e.X();w.T("html5_sabr_enable_server_xtag_selection")&&w.SR&&(p.clientInfo.hl=w.SR);e.eL&&(p.eL=e.eL);return p};
Ie9=function(e,N,y){var w=N.type||0;(y==null?0:y.has(w))?e.Y6.push(N):e.Ds.push(w)};
v0=function(e,N,y,w,E,A){var T=A===void 0?{}:A;var p=T.zt===void 0?[]:T.zt;var C=T.a4===void 0?!1:T.a4;var r=T.Ze===void 0?0:T.Ze;var Y=T.poToken===void 0?"":T.poToken;var M=T.lz===void 0?void 0:T.lz;var l=T.Tt===void 0?"":T.Tt;var F=T.Q2===void 0?0:T.Q2;var S=T.E_===void 0?new Uint8Array(0):T.E_;var k=T.dM===void 0?!1:T.dM;A=T.Fb===void 0?0:T.Fb;T=T.tC===void 0?void 0:T.tC;H0.call(this,N,E);var X=this;this.policy=e;this.logger=new g.RE("dash/request");this.pW=this.Ie=0;this.sK=!1;this.M3=this.B2=
null;this.lj=!1;this.E_=this.Q2=null;this.n0=this.b3=!1;this.Q7=null;this.Fb=this.Mo=0;this.ZP=!1;this.lk={IJ:function(v){X.IJ(v)},
vbW:function(){return X.To},
lvt:function(v){X.To=v},
hI9:function(v){X.Ie=v},
AfP:function(v){X.r7.lastError=v},
PM:function(){return X.xhr}};
this.timing=new j3(this,y);this.a4=C;this.Q2=F;this.E_=S;this.R2=g.Vt(this.info,this.policy,w);this.R2.set("rn",this.YK().toString());this.R2.set("rbuf",(r*1E3).toFixed().toString());this.a4&&this.R2.set("smb","1");this.policy.Zc&&Y&&this.R2.set("pot",Y);l&&this.R2.set("bbs",l);this.policy.useUmp&&!F9(this.R2.tA)&&(this.uI=new mA(this),this.R2.set("ump","1"),this.R2.set("srfvp","1"));if(e=this.policy.oS?this.policy.m5&&!isNaN(this.info.Hf)&&this.info.Hf>this.policy.Qw?!1:!0:!1)N=null,this.policy.zM&&
this.policy.o1?N=[1]:k&&(N=[]),N!=null&&(this.policy.Ly&&N.push(2),this.R2.set("defsel",N.join(",")));this.r7=new si(this,this.policy,this.R2,this.info.yl,this.timing,this.logger,w,M);this.zt=p||null;this.kP=zvJ(this);NDF(this.r7);w=void 0;if(this.policy.bA||this.uI||this.policy.aq)w={method:"POST"},p=(0,g.rB)([120,0]),M={},this.policy.zT&&T&&(T=CP(void 0,T),M.v4=T),this.policy.Ry&&this.E_&&(M.videoPlaybackUstreamerConfig=this.E_),this.policy.aq&&(T=this.info.j)&&Object.assign(M,T),Object.keys(M).length>
0?w.body=g.A5(M,g.m4):w.body=p;if(this.Q2&&this.E_){this.R2.set("iwts","1");w={method:"POST"};T={XY:this.Q2*1E3};var d;p=(d=this.info.j)==null?void 0:d.Ag;d=g.A5({IS:T,Ag:p||void 0,videoPlaybackUstreamerConfig:this.E_},g.m4);w.body=d}try{this.xhr=Oi(this.R2,this.policy.U,this.timing,e,w),this.r7.N.start(),A&&(this.n9=new g.e6(this.G8,A,this),this.n9.start(A+(this.timing.bk.U.AT()||0)*1E3)),this.policy.ir&&x8(this.timing,this.nC()),this.logger.debug(function(){return"Sent, itag="+X.R2.get("itag")+
" seg="+X.info.QB[0].Ch+" range="+X.R2.get("range")+" time="+Math.round(X.info.QB[0].o2)+"-"+Math.round(g.Kq(X.info.QB).XT)+" rtp="+(X.timing.KM()-Date.now()).toFixed(0)}),g.Jo(function(){})}catch(v){i_s(this,v,!0)}};
zvJ=function(e){if(!(g4(e.info)&&e.info.UT()&&e.policy.WE&&e.zt)||e.info.yl.N>=2||zm()>0||!XaF())return!1;var N=e.R2.get("aitags");if(!N)return!1;N=GJ(N).split(",");for(var y=[],w=g.c(e.zt),E=w.next();!E.done;E=w.next())E=E.value,g.Gw(N,E)&&y.push(E);if(!y.length)return!1;e.R2.set("altitags",g.RA(y.join(",")));return!0};
i_s=function(e,N,y){y=y===void 0?!1:y;g.t0(N);e.r7.lastError="player.exception";e.errorMessage=N.name+"_"+N.message;y?g.Jo(function(){N4(e.r7)}):N4(e.r7)};
Da_=function(e,N){e.timing.Kh=!0;e.xhr.zE()&&e.timing.Kd();if(e.policy.CC){var y;(y=e.n9)==null||y.stop()}L5(e.To,N,!1)};
gE9=function(e,N){e.info=N;if(e.To){var y=e.To;N=N.QB;(N.length!==y.QB.length||N.length<y.QT.length)&&Ucn("dash/request",260511119,""+N.length,""+y.QB.length,""+y.QT.length);y.QB=N;for(var w=N[0].range,E=new oR,A=0;A<y.QT.length;A++)bI(E,y.QT[A].J);for(A=0;A<y.QT.length;A++){y.QT[A].info=N[A];var T=N[A].range;y.QT[A].J=hC(E,T.start-w.start,T.length)}}e.kP=!1};
VdM=function(e){e.Mo&&(e.xhr.status=e.Mo,e.Ie=e.Mo)};
$X=function(e,N){qw.call(this,e,N);this.aq=!0;this.qg=!1;this.Bk=this.Et=0;this.Wk=NaN};
fes=function(e,N,y){var w=e.J3?Math.max(N,y/e.J3):N,E=e.bk.N.K;E&&(w=N,e.J3&&(w=Math.max(N,y/e.J3*E)));TX(e.bk,N,y,w)};
YX=function(e){this.N={};this.logger=new g.RE(e)};
M4=function(e){YX.call(this,"sabr");this.qU=e};
lO=function(e){g.x.call(this);this.j=e;this.logger=new g.RE("onesie");this.XZ=new Map;this.N=this.J=!1;this.qK=this.rP=null;this.K=!1};
td0=function(e,N,y){e.XZ.get(N).FI=y};
oO=function(e,N){e.XZ.has(N)&&(Fy?e.XZ.get(N).Vs.clear():e.XZ.get(N).QT=new oR,Sr(e,N),e.N=!0)};
u9M=function(e){for(var N=g.c(e.XZ),y=N.next();!y.done;y=N.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;w.CT||oO(e,y)}};
qfF=function(e,N){N=e.XZ.get(N);if(!N)return 0;e=0;if(N.QB.length>0){N=g.c(N.QB);for(var y=N.next();!y.done;y=N.next()){var w=void 0;e+=((w=y.value.range)==null?void 0:w.length)||0}return e}if(N.Yf.length>0)for(y=g.c(N.Yf),w=y.next();!w.done;w=y.next())e+=w.value.kS||0;return e+N.TU};
bO=function(e,N){if(Fy){var y=0;e=e.XZ.get(N);if(e==null||!e.Vs)return 0;e=g.c(e.Vs.values());for(N=e.next();!N.done;N=e.next())y+=N.value.data.getLength();return y}return((y=e.XZ.get(N))==null?void 0:y.QT.getLength())||0};
hI=function(e,N){e=e.XZ.get(N);if(Fy){if(e==null||!e.CT)return!1;N=e.Vs.size>0;return e.MZ.length>0||N}return!(e==null||!e.CT)&&!(e==null||!e.QT.getLength())};
Z_P=function(e,N){var y=e.XZ.get(N),w=qfF(e,N),E=!w&&!!y.bytesReceived;if(Fy){var A;if((A=e.rP)==null?0:A.Cx){e=g.c(y.Vs.values());for(N=e.next();!N.done;N=e.next())if(!N.value.aL)return!1;return E}}else if(A=e.i8(N),E&&e.J&&A!==void 0)return A;return(E||y.bytesReceived===w)&&y.ex+bO(e,N)===y.bytesReceived};
xan=function(e,N,y){e.XZ.set(N,{QT:new oR,ex:0,bytesReceived:0,TU:0,PT:!1,u6:!1,i8:!1,qG:y,kD:[],QB:[],Yf:[],CT:!1,Vs:new Map,lW:new Map,MZ:[]});e.logger.debug(function(){return"[initStream] formatId: "+N})};
jh5=function(e,N,y,w){y.QB.push.apply(y.QB,g.B(w));if(Fy){y.lW.has(N)||y.lW.set(N,[]);var E;(E=y.lW.get(N)).push.apply(E,g.B(w))}else if(y.To)for(e=g.c(w),N=e.next();!N.done;N=e.next())y.To.QB.push(N.value);else{y.To=new Ui(e.qK,[].concat(g.B(y.QB)));var A;((A=e.qK)==null?0:A.zx)&&g.Q(e,y.To)}};
nE9=function(e,N,y){var w,E=(w=e.rP)==null?void 0:w.K.get(N);if(!E)return[];if(y.qk){var A;return((A=E.p_(0,y.clipId))==null?void 0:A.QB)||[]}if(E.I8()){var T=y.startMs,p=y.durationMs,C=1E3,r;if(((r=e.qK)==null?0:r.J)&&y.timeRange){var Y;T=(Y=y.timeRange.startTicks)!=null?Y:-1;var M;p=(M=y.timeRange.fV)!=null?M:-1;var l;C=(l=y.timeRange.timescale)!=null?l:-1}if(y.RH<0||y.ZN<0||p<0||T<0||y.kS<0||C<0)return oO(e,N),[];e=cx(y.RH,y.kS);N=y.Br||0;return[new Bx(3,E,e,"makeSliceInfosMediaBytes",y.ZN-1,T/
C,p/C,N,e.length-N,void 0,y.KO,y.clipId)]}if(y.ZN<0)return oO(e,N),[];var F;return((F=e.rP)==null?0:F.Cx)?(N=E.j1,r=N*E.info.JM,Y=((T=e.qK)==null?0:T.LX)?y.Br:void 0,((C=e.qK)==null?0:C.mL)&&y.timeRange&&!Y&&(p=y.timeRange.startTicks/y.timeRange.timescale),[new Bx(3,E,void 0,"makeSliceInfosMediaBytes",y.ZN,p,N,Y,r,!0,y.KO,y.clipId)]):[]};
Qh9=function(e,N,y){e.rP=N;e.qK=y;N=g.c(e.XZ);for(y=N.next();!y.done;y=N.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;for(var E=g.c(w.kD),A=E.next();!A.done;A=E.next()){A=A.value;var T=nE9(e,y,A);jh5(e,A.mj,w,T)}}};
cT=function(e,N,y,w){e.logger.debug(function(){return"[addStreamData] formatId: "+y+",headerId: "+N+" bytes: "+w.getLength()});
(e=e.XZ.get(y))&&!e.u6&&(Fy?(e.Vs.has(N)||e.Vs.set(N,{data:new oR,M8:0,aL:!1}),bI(e.Vs.get(N).data,w)):bI(e.QT,w),e.bytesReceived+=w.getLength(),e.PT=!0)};
Sr=function(e,N){e.logger.debug(function(){return"[closeStream] formatId: "+N});
var y=e.XZ.get(N);y&&!y.u6&&(y.u6=!0,y.FI&&y.FI(),maM(e)&&e.j.FG())};
maM=function(e){e=g.c(e.XZ.values());for(var N=e.next();!N.done;N=e.next())if(!N.value.u6)return!1;return!0};
kX=function(e,N,y,w,E,A,T,p){g.x.call(this);this.policy=e;this.info=N;this.rP=y;this.qU=E;this.Eo=p;this.logger=new g.RE("sabr");this.uI=new mA(this);this.VP=new M4(this);this.uP=new lO(this);this.state=1;this.vD=!1;this.X$=0;this.clipId="";this.qF=this.d4=-1;this.Gj=0;this.NH=-1;this.ZP=this.Mv=!1;this.l4=0;this.Q3=!1;this.policy.gI?this.Aa=new $X(this,A):this.Aa=new j3(this,A);this.R2=this.policy.Xz?N.Na:H_M(N,this.policy,w);this.R2.set("rn",""+this.YK());this.R2.set("alr","yes");Qh9(this.uP,y,
e);this.r7=new si(this,this.policy,this.R2,N.yl,this.Aa,this.logger,w,T,this.policy.enableServerDrivenRequestCancellation);NDF(this.r7);var C;if((C=this.policy)==null?0:C.zx)g.Q(this,this.uP),g.Q(this,this.r7);e=N.N;N={method:"POST",body:e};e&&(this.Gj=e.length);try{this.xhr=Oi(this.R2,this.policy.U,this.Aa,QY,N),this.policy.ir&&x8(this.Aa,this.nC()),this.r7.N.start()}catch(r){g.uA(r)}};
KhJ=function(e){e.policy.dJ&&e.FU&&!e.Q3?e.Q3=!0:e.Aa.Kd()};
Wh5=function(e,N){var y=-1,w=-1,E=-1,A;if((A=e.Y5)==null?0:A.items)for(e=g.c(e.Y5.items),A=e.next();!A.done;A=e.next())A=A.value,N<A.M0||A.M0<y||(y=A.M0,w=A.zP,E=A.minReadaheadMs);return{g1l:y,zP:w,QD:E}};
O__=function(e){this.J=e;this.D=this.aq=this.G=this.i9=this.j=this.L=this.Z=this.l9=this.U=this.Rq=this.Kh=this.qg=this.Ng=0;this.ticks={}};
BT=function(e){e.Ng||(e.Ng=(0,g.iC)(),Bd("mb_s",e.Ng,e.J))};
Rv5=function(e){e.qg||(e.qg=(0,g.iC)(),Bd("ovfs_rp",e.qg,e.J))};
GDs=function(e){e.Kh||(e.Kh=(0,g.iC)(),Bd("oafs_rp",e.Kh,e.J))};
UaH=function(e){e.L||(e.L=(0,g.iC)(),Bd("vda",e.L,e.J),e.j&&Em(g.yK(),4))};
LhM=function(e){e.j||(e.j=(0,g.iC)(),Bd("ada",e.j,e.J),e.L&&Em(g.yK(),4))};
sh5=function(e){e.i9||(e.i9=(0,g.iC)(),Bd("vis_a",e.i9,e.J))};
aeH=function(e){e.G||(e.G=(0,g.iC)(),Bd("ais_a",e.G,e.J))};
e_9=function(e){e.aq||(e.aq=(0,g.iC)(),Bd("vrb_f",e.aq,e.J))};
N4H=function(e){e.D||(e.D=(0,g.iC)(),Bd("arb_f",e.D,e.J))};
yds=function(e,N,y){var w=N instanceof kX&&!e.K&&!e.N,E=!e.K&&(y==null?void 0:y.info.video);y=!e.N&&(y==null?void 0:y.info.audio);N.state===3?((E||w)&&e.tick("vrr"),(y||w)&&e.tick("arr")):N.state===4?E?(e.K=N.nC(),Em(g.yK(),4)):y&&(e.N=N.nC()):N instanceof v0&&N.RL()&&E&&Em(g.yK(),4)};
wx5=function(e){return!!e.N&&!!e.K};
Xy=function(e,N,y,w,E,A,T){g.pT.call(this);var p=this;this.tW=e;this.rP=N;this.policy=y;this.videoTrack=w;this.audioTrack=E;this.Au=T;this.Ng=this.J=null;this.L=this.G=NaN;this.U=0;this.D=NaN;this.Z=null;this.l9=this.qg=NaN;this.i9=new Map;this.Kh=this.K=this.j=NaN;this.lk={QS9:function(){return p.N}};
this.N=A?1:0};
AdM=function(e,N,y,w){w=w===void 0?!0:w;if(y&&!e.i9.has(N.Ch)){for(var E=N.startTime,A=[],T=0;T<y.J.length;T++){var p=y.J[T],C=E;E=C+y.N[T];A.push({startTime:C,endTime:E,adCpn:p})}e.i9.set(N.Ch,A)}if(e.policy.NG)if(E=e.Ng&&N.Ch===e.Ng.Ch+1,e.Ng=N,A=e.J&&N.Ch===e.J.Ch+1,A=e.J&&E&&A&&e.J.Re.event!=="stop"&&e.J.Re.event!=="predictStart",T=N.Re||null,p=e.videoTrack.J.index.vY(),e.policy.xX&&(p=Math.max(e.videoTrack.J.index.vY(),e.audioTrack.J.index.vY())),p=N.Ch>=p,C=e.rP.isManifestless&&e.policy.lr,
T){var r;if(((r=e.J)==null?void 0:r.Re.event)==="predictStart"&&e.J.Ch<N.Ch&&T.event==="stop"){var Y;e.tW.handleError("ssdai.missingstartcueevent",{lastpredict:((Y=e.J)==null?void 0:Y.Ch)||0,csq:N.Ch},0)}e.J={Re:T,Ch:N.Ch,Y$:!!y,gx:w};p?PT(e,T,N.Ch):C&&(E?A?PT(e,T,N.Ch):T.event==="continue"||T.event==="stop"?EaM(e,N):PT(e,T,N.Ch):PT(e,T,N.Ch))}else A&&EaM(e,N),e.N===4&&dB(e,5,"qend")};
PT=function(e,N,y){N.startSecs+=isNaN(e.U)?0:e.U;e=e.rP;e.qg.push(N);e.publish("cuepointsadded",y)};
T4J=function(e,N,y){if(e.N!==0&&y&&N.QB[0].gx()){var w=N.QB[0].Ch,E=N.QB[0].o2;N=N.isDecorated();IO(e,w,E,N,y)}};
IO=function(e,N,y,w,E){var A;N!==((A=e.J)==null?void 0:A.Ch)||e.N===1||w||e.J.Re.event==="predictStart"||e.Fh("sdai",{undecevt:1,sq:N,mt:y,evt:e.J.Re.event});N>e.L&&(e.L=NaN,e.G=NaN);if(e.J&&e.J.Ch===N)if(w=e.J,!e.policy.IF||E&&w){var T=w.Re;A=E.Wi(T);T.event==="predictStart"&&(e.Kh=N);e.Fh("sdai",{onqevt:T.event,sq:N,mt:y,gab:A,cst:T.startSecs,cueid:e.policy.tX&&(A||T.event==="start")?T.identifier:void 0});if(A)if(T.event!=="predictStart")T.event==="start"&&e.Kh===N-1&&e.Fh("sdai",{gabonstart:N}),
w.Y$?dB(e,4,"cue"):(e.L=N,e.G=y,e.Fh("sdai",{joinad:e.N,sg:e.L,st:e.G.toFixed(3)}),e.D=Date.now(),dB(e,2,"join"),E.lh(w.Re));else{var p=N+Math.max(Math.ceil(-T.J/5E3),1);A=Math.floor(y-T.J/1E3);e.policy.L?e.K=A:e.j=p;e.Fh("sdai",{onpred:y,estsq:p,estmt:A.toFixed(3)});vT(e.tW,A,A,p);e.D=Date.now();dB(e,3,"predict");E.lh(w.Re)}else e.N===1?((p=e.Z)==null?0:p.hI(y))?(vT(e.tW,y,y,N),dB(e,4,"sk2had")):dB(e,5,"nogab"):T.event==="predictStart"&&(e.policy.L&&e.K>0?(y=Math.floor(y-T.J/1E3),e.K!==y&&e.Fh("sdai",
{updateSt:y,old:e.K}),e.K=y):e.j>0&&(y=N+Math.max(Math.ceil(-T.J/5E3),1),e.j!==y&&(e.Fh("sdai",{updateSt:y,old:e.j}),e.j=y)));var C,r;if(e.Au&&T.event==="start"&&((C=e.J)==null?void 0:C.Re.event)!=="predictStart"&&((r=e.J)==null?void 0:r.Ch)===N-1){var Y;e.Fh("sdai",{ovlpst:(Y=e.J)==null?void 0:Y.Re.event,sq:N})}}else e.Fh("sdai",{nulldec:1,sq:N,mt:y.toFixed(3),evt:(w==null?void 0:(T=w.Re)==null?void 0:T.event)||"none"});else e.N===1&&dB(e,5,"noad")};
px3=function(e,N,y){if(e.N===1||e.N===2)return!1;if(e.N!==0&&N===e.audioTrack){if(e.policy.L)return Jds(e.videoTrack,y)||Jds(e.videoTrack,y+1);e=zg(e.videoTrack);if(y>(e?e.Ch:-1))return!1}return!0};
iO=function(e,N,y){return(y<0||y===e.L)&&!isNaN(e.G)?e.G:N};
EaM=function(e,N){if(e.J){var y=e.J.Re.Vj-(N.startTime+e.U-e.J.Re.startSecs);y<=0||(y=new iN(e.J.Re.startSecs-(isNaN(e.U)?0:e.U),y,e.J.Re.context,e.J.Re.identifier,"stop",e.J.Re.J+N.duration*1E3),e.Fh("cuepointdiscontinuity",{segNum:N.Ch}),PT(e,y,N.Ch))}};
dB=function(e,N,y){e.N!==N&&(e.Fh("sdai",{setsst:N,old:e.N,r:y}),e.N=N)};
D0=function(e,N,y,w){(w===void 0?0:w)?dB(e,1,"seek"):N>0&&Math.abs(N-y)>=5&&e.N===4&&dB(e,5,"sk2t."+N.toFixed(2)+";ct."+y.toFixed(2))};
gB=function(e,N,y){this.audio=e;this.video=N;this.reason=y};
VW=function(e,N,y){this.J=e;this.reason=N;this.token=y;this.videoId=void 0};
fP=function(e,N,y){g.x.call(this);this.policy=e;this.j=N;this.Fh=y;this.K=new Map;this.L=0;this.Z=!1;this.J="";this.N=!1};
tI=function(e,N,y){if(y===void 0?0:y)e.Z=!0;++e.L;y=6E4*Math.pow(2,e.L);y=(0,g.iC)()+y;e.K.set(N.info.id,y)};
uO=function(e){for(var N=g.c(e.K.entries()),y=N.next();!y.done;y=N.next()){var w=g.c(y.value);y=w.next().value;w=w.next().value;w<(0,g.iC)()&&e.K.delete(y)}return e.K};
CHH=function(e){return e.Z&&uO(e).size>0};
q4=function(e,N){e.J!==N&&(e.J=N,e.N=!0)};
rd_=function(e,N){var y;N&&(y=g.Ok(e.j.J,function(E){return E.id===N}));
if(!y&&(y=g.Ok(e.j.J,function(E){var A;return!((A=E.Vl)==null||!A.isDefault)}),N)){var w;
e.Fh("iaf",{id:N,sid:(w=y)==null?void 0:w.id})}return y};
xX=function(e,N,y,w,E,A){var T=this;A=A===void 0?[]:A;this.tW=e;this.qg=N;this.policy=y;this.rP=w;this.Z=E;this.VB=A;this.logger=new g.RE("dash/abr");this.J=f3;this.K=this.G=null;this.D=-1;this.aq=!1;this.nextVideo=this.N=null;this.j=[];this.Et=new Set;this.Rq={};this.Ut=new yy(1);this.U=0;this.Bk=this.Kh=this.Ng=!1;this.l9=0;this.Wk=!1;this.i9=new Set;this.Zl=!1;this.lk={QP:function(){Z0(T)}};
this.L=new fP(this.policy,E,function(p,C){T.tW.Fh(p,C)})};
FvE=function(e,N,y){jr(e,N);N=rd_(e.L,y);y||N||(N=$Z5(e));N=N||e.Z.J[0];e.N=e.rP.J[N.id];Z0(e);e.G=e.N;YME(e);MlH(e);e.K=e.nextVideo;e.G=e.N;return l$M(e)};
b1s=function(e,N){if(SMF(e,N))return null;if(N.reason==="m"&&N.isLocked())return e.logger.debug(function(){return"User sets constraint to: "+ax(N)}),jr(e,N),e.U=e.j.length-1,Z0(e),nP(e),e.Kh=e.Kh||e.K!==e.nextVideo,e.K=e.nextVideo,new gB(e.N,e.K,N.reason);
N.reason==="r"&&(e.D=-1);jr(e,N);nP(e);if(N.reason==="r"&&e.nextVideo===e.K)return new gB(e.N,e.nextVideo,N.reason);oaM(e);return null};
h_E=function(e,N,y){e.N=e.rP.J[N];e.G=e.N;return new gB(e.G,e.K,y?"t":"m")};
cdE=function(e,N){if(N.info.video){if(e.K!==N)return e.K=N,l$M(e)}else e.Bk=e.G!==N,e.G=N;return null};
k4J=function(e,N){if(N.J.info.video&&N.j){var y=(N.N+N.K)/N.duration,w=N.J.info.JM;y&&w&&(e.Ut.Kj(1,y/w),e.policy.K&&y/w>1.5&&e.tW.Fh("overshoot",{sq:N.Ch,br:y,max:w}))}};
QW=function(e,N,y){tI(e.L,N,y===void 0?!1:y);e.D=-1;jr(e,e.J)};
B4M=function(e,N){return new gB(e.G,e.K,N||e.J.reason)};
oaM=function(e){if(e.K&&e.nextVideo&&mU(e,e.K.info)<mU(e,e.nextVideo.info)){var N=e.J.reason;e.Ng=e.Ng||N==="r"||N==="u"||N==="v"}};
l$M=function(e){e.aq?e.aq=!1:e.D=(0,g.iC)();e.Ng=!1;e.Zl=!1;return new gB(e.G,e.K,e.J.reason)};
XxM=function(e,N){var y={};N=g.c(N);for(var w=N.next();!w.done;w=N.next())if((w=w.value)&&w.video){var E=w.video.J,A=y[E],T=A&&Kd(A)&&A.video.J>e.policy.G4,p=E<=e.policy.G4?Kd(w):mu(w);if(!A||T||p)y[E]=w}return y};
jr=function(e,N){e.J=N;var y=e.Z.videoInfos;if(!e.J.isLocked()){var w=(0,g.iC)();y=g.CG(y,function(p){if(p.JM>this.policy.JM)return!1;var C=this.rP.J[p.id];return uO(this.L).get(p.id)>w?!1:C.yl.N>4||C.Z>4?(this.logger.debug(function(){return"Remove "+N$(p)+"; 4 load failures"}),!1):this.i9.has(+p.itag)?!1:!0},e);
CHH(e.L)&&(y=g.CG(y,function(p){return p.video.width<=854&&p.video.height<=480}))}y.length||(y=e.Z.videoInfos);
var E=y;e.policy.Yb&&(E=PH0(e,E,N));E=g.CG(E,N.j,N);if(e.J.isLocked()&&e.L.J){var A=g.Ok(y,function(p){return p.id===e.L.J});
A?E=[A]:q4(e.L,"")}e.policy.Yb||(E=PH0(e,E,N));E.length||(E=[y[0]]);E.sort(function(p,C){return mU(e,p)-mU(e,C)});
N={};for(y=1;y<E.length;N={lK:void 0,gi:void 0},y++)N.gi=E[y-1],N.lK=E[y],N.gi.video.width>N.lK.video.width?(g.Uk(E,y),y--):mU(e,N.gi)*e.policy.D>mU(e,N.lK)&&(g.Uk(E,y-1),y--);var T=E[E.length-1];e.Wk=!!e.K&&!!e.K.info&&e.K.info.Iq!==T.Iq;e.logger.debug(function(){return"Constraint: "+ax(e.J)+", "+E.length+" fmts selectable, max selectable fmt: "+N$(T)});
e.j=E;e.Et.clear();N=!1;for(y=0;y<E.length;y++)N?e.Et.add(E[y].itag):E[y].video.J>=1080&&(N=!0);dZ1(e.policy,T,e.rP.Cx)};
PH0=function(e,N,y){var w=y.reason==="m"||y.reason==="s";e.policy.s6&&HT&&g.k$&&(!w||y.J<1080)&&(N=N.filter(function(r){return r.video&&(!r.N||r.N.powerEfficient)}));
if(N.length>0)if(Zo()){var E=XxM(e,N);N=N.filter(function(r){return!!r&&!!r.video&&r.Iq===E[r.video.J].Iq})}else{var A,T,p=(A=N[0])==null?void 0:(T=A.video)==null?void 0:T.J;
if(p){y=N.filter(function(r){return!!r&&!!r.video&&r.video.J===p});
var C=XxM(e,y)[p].Iq;N=N.filter(function(r){return!!r&&!!r.video&&r.Iq===C})}}return N};
I$9=function(e,N){for(var y=0;y+1<e.j.length&&e.j[y].video.quality==="tiny";)y++;var w=c0(e.qg)/e.policy.D;return mU(e,N.info)+mU(e,e.j[y])>w};
Z0=function(e){if(!e.N||!e.policy.j&&!e.N.info.Vl){var N=e.Z.J;e.N&&(N=N.filter(function(w){return w.audio.J===e.N.info.audio.J}),N.length||(N=e.Z.J));
e.N=e.rP.J[N[0].id];if(N.length>1){if(e.policy.RO){if(e.policy.dT)return;var y=g.Ok(N,function(w){return w.audio.audioQuality!=="AUDIO_QUALITY_HIGH"});
y&&(e.N=e.rP.J[y.id])}y=!1;if(y=e.policy.NK?!0:e.J.isLocked()?e.J.J<240:I$9(e,e.N))e.N=e.rP.J[g.Kq(N).id]}}};
nP=function(e){if(!e.nextVideo||!e.policy.j)if(e.J.isLocked())e.nextVideo=e.J.J<=360?e.rP.J[e.j[0].id]:e.rP.J[g.Kq(e.j).id],e.logger.debug(function(){return"Select max fmt: "+N$(e.nextVideo.info)});
else{for(var N=Math.min(e.U,e.j.length-1),y=c0(e.qg),w=mU(e,e.N.info),E=y/e.policy.Ng-w;N>0&&!(mU(e,e.j[N])<=E);N--);for(var A=y/e.policy.D-w;N<e.j.length-1&&!(mU(e,e.j[N+1])>=A);N++);e.nextVideo=e.rP.J[e.j[N].id];e.U!==N&&e.logger.info(function(){return"Adapt to: "+N$(e.nextVideo.info)+", bandwidth: "+y.toFixed(0)+", bandwidth to downgrade: "+E.toFixed(0)+", bandwidth to upgrade: "+A.toFixed(0)+", constraint: "+ax(e.J)});
e.U=N}};
YME=function(e){var N=e.policy.Ng,y=c0(e.qg),w=y/N-mU(e,e.N.info);N=g.Rw(e.j,function(E){return mU(this,E)<w},e);
N<0&&(N=0);e.U=N;e.nextVideo=e.rP.J[e.j[N].id];e.logger.info(function(){return"Initial selected fmt: "+N$(e.nextVideo.info)+", bandwidth: "+y.toFixed(0)+", max video byterate: "+w.toFixed(0)})};
MlH=function(e){if(e.VB.length){var N=e.VB,y=function(w,E){if(w.info.Iq==="f"||N.includes(Sl(g.Ld(w.info,e.rP.Cx))))return w;for(var A={},T=0;T<E.length;A={oo:void 0,IZ:void 0},T++){var p=e.rP.J[E[T].id];if(N.includes(Sl(g.Ld(p.info,e.rP.Cx)))){var C=w.info.Iq,r=p.info.Iq;if(C===r||Zo()){if(w.info.J!==p.info.J)return e.tW.Fh("ombifa",{mismatch:"xtag",f:w.info.id,t:p.info.id}),w;A.oo=w.info.itag;A.IZ=p.info.itag;e.tW.Fh("ombifa",{f:A.oo,t:A.IZ});e.logger.info(function(Y){return function(){return"Initial format selection changed from "+
Y.oo+" to "+Y.IZ+" based on prefetched media."}}(A));
e.aq=!0;return p}e.tW.Fh("ombifa",{mismatch:"efficient",fc:C,tc:r})}}e.tW.Fh("ombifa",{mismatch:"unselectable",fmts:N.join(".")});return w};
e.nextVideo=y(e.nextVideo,e.Z.videoInfos);e.N=y(e.N,e.Z.J)}};
mU=function(e,N){if(!e.Rq[N.id]){var y=e.rP.J[N.id].index.rd(e.l9,15);y=N.RX&&e.K&&e.K.index.isLoaded()?y||N.RX:y||N.JM;e.Rq[N.id]=y}y=e.Rq[N.id];e.Et.has(N.itag)&&(y*=1.5);return y*=Math.max(1,e.Ut.AT()||0)};
vaJ=function(e,N){e=QF9(e.rP.J,function(y){return y.info.itag===N});
if(!e)throw Error("Itag "+N+" from server not known.");return e};
z_M=function(e){var N=[];if(e.J.reason==="m"||e.J.reason==="s")return N;if(D$_(e.rP)){for(var y=Math.max(0,e.U-2);y<e.U&&y<e.j.length;y++)N.push(e.j[y].itag);N.reverse()}return N};
SMF=function(e,N){var y;return e.J.Bw(N)&&(!e.L.J||!e.J.isLocked()||((y=e.nextVideo)==null?void 0:y.info.id)===e.L.J)};
$Z5=function(e){var N=g.Ok(e.Z.J,function(w){return w.audio.J}),y=g.Ok(e.Z.J,function(w){return!w.audio.J});
return N?e.policy.nM?N:y:null};
i1n=function(e){var N=e===void 0?{}:e;e=N.Z0===void 0?!1:N.Z0;var y=N.o1===void 0?!1:N.o1;N=N.oS===void 0?!1:N.oS;return e?N?3:2:y?-1:1};
KP=function(e){this.track=e;this.buffered=[];this.K=this.j=0;this.Z={};this.L=0;this.J=new eV};
DZP=function(e,N,y){e.flush();e.N=y;WT(e,3,N)};
WT=function(e,N,y){var w=[],E=e.track.TW;if(E){E=E.Ju();for(var A=0;A<E.length;A++)w.push(Math.round(E.start(A)*1E3)),w.push(Math.round(E.end(A)*1E3))}E=1;A=w.length;if(A===e.buffered.length){for(var T=0;T<=A&&w[T]===e.buffered[T];T++);T>A?E=0:w[T]>e.buffered[T]&&(T===A-1?E=2:T===A-2&&w[T+1]>e.buffered[T+1]&&(E=3))}e.J.add(N<<3|(y&&4)|E);N=Math.ceil(e.track.wS()*1E3);e.J.add(N-e.L);e.L=N;if(E===1)for(e.J.add(A),T=N=0;T<A;T++)e.J.add(w[T]-N),N=w[T];E===3&&e.J.add(w[A-2]-e.buffered[A-2]);E>=2&&e.J.add(w[A-
1]-e.buffered[A-1]);y&&e.J.add(y);e.buffered=w};
OY=function(e,N,y){var w=this;this.policy=e;this.J=N;this.l9=y;this.j=this.N=0;this.lP=null;this.Ng=new Set;this.D=[];this.indexRange=this.initRange=null;this.U=new O3;this.Kh=this.qg=!1;this.lk={nb9:function(){return w.K},
K4W:function(){return w.chunkSize},
DT1:function(){return w.G},
IS1:function(){return w.Z}};
(N=gaJ(this))?(this.chunkSize=N.csz,this.K=Math.floor(N.clen/N.csz),this.G=N.ck,this.Z=N.civ):(this.chunkSize=e.cC,this.K=0,this.G=g.PX(16),this.Z=g.PX(16));this.L=new Uint8Array(this.chunkSize);this.G&&this.Z&&(this.crypto=new mc_(this.G,this.Z))};
gaJ=function(e){if(e.policy.Rx&&e.policy.Rv)for(var N=g.c(e.policy.Rx),y=N.next(),w={};!y.done;w={oK:void 0,sN:void 0},y=N.next())if(y=g.JE(y.value),w.oK=+y.clen,w.sN=+y.csz,w.oK>0&&w.sN>0&&e.policy.j===y.docid&&e.J.info.id===y.fmtid&&e.J.info.lastModified===+y.lmt)return e={},e.clen=w.oK,e.csz=w.sN,e.ck=y.ck,e.civ=y.civ,e};
RO=function(e){return!!e.lP&&e.lP.eY()};
tl1=function(e,N){if(!RO(e)&&!e.Ss()){if(!(e.qg||(e.qg=!0,e.K>0))){var y=Gg(e);y=PH(e.policy.j,e.J.info,UY(e),y,e.policy.VB);LP(e,y)}if(N.info.type===1){if(e.lP){sY(e,Error("Woffle: Expect INIT slices to always start us off"));return}e.initRange=cx(0,N.J.getLength())}else if(N.info.type===2)e.lP&&e.lP.type===1||sY(e,Error("Woffle: Index before init")),e.indexRange=cx(e.initRange.end+1,N.J.getLength());else if(N.info.type===3){if(!e.lP){sY(e,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(e.lP.type===3&&!d4(e.lP,N.info)&&(e.D=[],N.info.Ch!==Ii(e.lP)||N.info.N!==0))return;if(N.info.j){y=g.c(e.D);for(var w=y.next();!w.done;w=y.next())VlM(e,w.value);e.D=[]}else{e.D.push(N);e.lP=N.info;return}}else{sY(e,Error("Woffle: Unexpected slice type"));return}e.lP=N.info;VlM(e,N);f$_(e)}};
VlM=function(e,N){var y=0,w=N.J.YX();if(e.j<e.K){y=e.K*e.chunkSize;var E,A=(((E=N.info.range)==null?void 0:E.start)||0)+N.info.N;y-=A;if(y>=w.length)return;if(y<0)throw Error("Missing data");e.j=e.K;e.N=0}for(E={};y<w.length;E={s3:void 0})if(E.s3=Math.min(w.length-y,e.L.byteLength-e.N),A=new Uint8Array(w.buffer,w.byteOffset+y,E.s3),e.L.set(A,e.N),e.N+=E.s3,y+=E.s3,e.N===e.L.length){if(N.info===e.lP&&RO(e)&&y===w.length)break;E=Gg(e);E=PH(e.policy.j,e.J.info,UY(e),E,e.policy.VB,e.j,e.L,e.crypto);e.Ng.add(E);
LP(e,E);e.Ss()||(E=Gg(e),e.l9(UY(e),E!==void 0?(E.downloadedEndTime||0)*E.averageByteRate:E.maxKnownEndTime*E.averageByteRate,E.maxKnownEndTime*E.averageByteRate));e.L=new Uint8Array(e.chunkSize);e.N=0;e.j+=1}};
f$_=function(e){if(RO(e))if(e.lP&&e.indexRange)if(e.N){var N=new Uint8Array(e.L.buffer,0,e.N),y=usF(e),w=e.policy.j;Promise.all(e.Ng).then(function(){var E=PH(w,e.lP.J.info,UY(e,!0),y,e.policy.VB,e.j,N,e.crypto);LP(e,E,!0)})}else sY(e,new aO("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else sY(e,new aO("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
Gg=function(e){return{downloadedEndTime:Math.round(e.lP?e.lP.XT:0),maxKnownEndTime:Math.round(e.J.index.f9()),averageByteRate:Math.round(e.J.info.RX)}};
usF=function(e){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(e.J.index.f9()),averageByteRate:Math.round(e.J.info.RX)}};
UY=function(e,N){N===void 0||!N||e.indexRange&&e.initRange&&e.lP||sY(e,new aO("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));N={lmt:e.J.info.lastModified,docid:e.policy.j,fmtid:e.J.info.id,type:e.J.info.mimeType.split(";")[0],csz:e.chunkSize,clen:e.j*e.chunkSize+e.N};e.crypto&&(N.ck=e.G,N.civ=e.Z);var y="local://localhost/videoplayback?"+E8(N),w,E;N={itag:+e.J.info.itag,mimeType:e.J.info.mimeType,bitrate:e.J.info.JM*8,lastModified:String(e.J.info.lastModified),initRange:(w=
e.initRange)==null?void 0:tcn(w),indexRange:(E=e.indexRange)==null?void 0:tcn(E),url:y};if(w=e.J.info.J)N.xtags=w;if(w=e.J.info.video)if(N.quality=w.quality,N.qualityLabel=w.qualityLabel,N.width=w.width,N.height=w.height,w=w.fps)N.fps=w;if(e=e.J.info.audio){if(w=e.sampleRate)N.audioSampleRate=String(w);if(e=e.numChannels)N.audioChannels=e}return N};
LP=function(e,N,y){y=y===void 0?!1:y;N.then(function(w){e.Ng.delete(N);(y||w===4)&&e.U.resolve(w)},function(w){e.U.reject(w)})};
sY=function(e,N){g.cH(e.policy.j)!==4&&(g.kK(e.policy.j,4),g.uA(N),e.U.reject(new aO(N.message)))};
aO=function(e,N){e=Error.call(this,e);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.J=N===void 0?!1:N};
qM5=function(e){e=g.H$(e,1886614376);for(var N=g.c(e),y=N.next();!y.done;y=N.next());return g.dn(e,function(w){return Tps(w)})};
Z10=function(e){var N=vQ(e,function(E,A){return E+A.length},0);
N=new Uint8Array(N);var y=0;e=g.c(e);for(var w=e.next();!w.done;w=e.next())w=w.value,N.set(w,y),y+=w.length;return N};
xZ0=function(e,N,y,w,E,A){this.ids=e;this.J=N;this.N=y;this.j=w;this.K=E;this.Z8=A};
eL=function(e,N,y){this.initData=e;this.contentType=N;this.isPrefetch=y;this.J=this.cryptoPeriodIndex=NaN;this.K=[];this.lm=!1;this.N=null;if((N==null?void 0:N.toLowerCase())==="webm"||e.length===16)this.lm=!0};
na0=function(e){a:{var N=e.initData;try{for(var y=0,w=new DataView(N.buffer);y<w.byteLength-8;){var E=w.getUint32(y);if(E<=1)break;if(w.getUint32(y+4)===1886614376){var A=32;if(w.getUint8(y+8)>0){var T=w.getUint32(y+28);A+=T*16+4}var p=w.getUint32(y+A-4);try{var C=jiM(N.subarray(y+A,y+A+p));if(C!==null){var r=C;break a}}catch(Y){}}y+=E}r=null;break a}catch(Y){r=null;break a}r=void 0}if(r!=null)for(N=ra(qg(r,7)),N==null||e.lm||(e.cryptoPeriodIndex=N),N=ra(qg(r,10)),N!=null&&N>0&&!e.lm&&(e.J=N),r=WW(r,
2,SSH,void 0===hjM?2:4),r=g.c(r),N=r.next();!N.done;N=r.next())e.K.push(g.oN(IN(N.value),4))};
QiJ=function(e){return isNaN(e.cryptoPeriodIndex)?g.oN(e.initData):""+e.cryptoPeriodIndex};
NN=function(e,N,y){var w=y===void 0?{}:y;y=w.videoDuration===void 0?0:w.videoDuration;var E=w.R3===void 0?void 0:w.R3;w=w.RA===void 0?!1:w.RA;this.videoId=e;this.status=N;this.videoDuration=y;this.R3=E;this.RA=w};
mZs=function(e,N,y,w,E){this.videoId=e;this.GF=N;this.N=y;this.bytesDownloaded=w;this.J=E};
yU=function(e){this.J=e;this.offset=0};
wA=function(e){if(e.offset>=e.J.getLength())throw Error();return e.J.getUint8(e.offset++)};
H1P=function(e,N){N=N===void 0?!1:N;var y=wA(e);if(y===1){N=-1;for(y=0;y<7;y++){var w=wA(e);N===-1&&w!==255&&(N=0);N>-1&&(N=N*256+w)}return N}w=128;for(var E=0;E<6&&w>y;E++)y=y*256+wA(e),w*=128;return N?y:y-w};
KvE=function(e){try{var N=H1P(e,!0),y=H1P(e,!1);return{id:N,size:y}}catch(w){return{id:-1,size:-1}}};
Wv_=function(e){for(var N=new yU(e),y=-1,w=0,E=0;!w||!E;){var A=KvE(N),T=A.id;A=A.size;if(T<0)return;if(T===176){if(A!==2)return;w=N.mN()}else if(T===186){if(A!==2)return;E=N.mN()}T===374648427?y=N.mN()+A:T!==408125543&&T!==174&&T!==224&&N.skip(A)}N=B8(e,0,y);y=new DataView(N.buffer);y.setUint16(w,3840);y.setUint16(E,2160);w=new oR([N]);bI(w,e);return w};
O1n=function(e,N,y){var w=this;this.tW=e;this.policy=N;this.Z=y;this.logger=new g.RE("dash");this.N=[];this.J=null;this.qg=-1;this.D=0;this.i9=NaN;this.Ng=0;this.K=NaN;this.U=this.aq=0;this.Wk=-1;this.Rq=this.L=this.j=this.l9=null;this.Ut=this.Bk=NaN;this.G=this.Kh=this.Et=this.VB=null;this.Dl=!1;this.Zl=this.timestampOffset=0;this.lk={BW:function(){return w.N}};
if(this.policy.j){var E=this.Z,A=this.policy.j;this.policy.VB&&e.Fh("atv",{ap:this.policy.VB});this.G=new OY(this.policy,E,function(T,p,C){Ee(e,new NN(w.policy.j,2,{R3:new mZs(A,T,E.info,p,C)}))});
this.G.U.promise.then(function(T){w.G=null;T===1?Ee(e,new NN(w.policy.j,T)):w.tW.Fh("offlineerr",{status:T.toString()})},function(T){var p=(T.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
T instanceof aO&&!T.J?(w.logger.info(function(){return"Assertion failed: "+p}),w.tW.Fh("offlinenwerr",{em:p}),AW(w),Ee(e,new NN(w.policy.j,4))):(w.logger.info(function(){return"Failed to write to disk: "+p}),w.tW.Fh("dldbwerr",{em:p}),AW(w),Ee(e,new NN(w.policy.j,4,{RA:!0})))})}};
R_5=function(e){return e.N.length?e.N[0]:null};
G4F=function(e,N){return e.N.some(function(y){return y.info.Ch===N})};
enn=function(e,N,y,w){w=w===void 0?0:w;if(e.L){var E=e.L.N+e.L.K;if(y.info.N>0)if(y.info.Ch===e.L.Ch&&y.info.N<E){if(y.info.N+y.info.K<=E)return;y=pIJ(y,E-y.info.N)[1]}else if(y.info.Ch>=0&&e.L.Ch>=0&&!d4(e.L,y.info))throw new g.Gh("improper_continuation",e.L.O2(),y.info.O2());x5_(e.L,y.info)||Tb(e,"d")}else if(y.info.N>0)throw new g.Gh("continuation_of_null",y.info.O2());e.L=y.info;e.Z=y.info.J;if(y.info.N===0){if(e.J)if(!e.tW.isOffline()||e.policy.il)e.tW.Fh("slice_not_fully_processed",{buffered:e.J.info.O2(),
push:y.info.O2()});else throw new g.Gh("slice_not_fully_processed",e.J.info.O2(),y.info.O2());JW(e);e.aq=w}else{if(e.aq&&w&&e.aq!==w)throw e=new g.Gh("lmt_mismatch",y.info.Ch,e.aq,w),e.level="WARNING",e;!y.info.J.I8()&&e.j&&(w=y.info,E=e.j.d4,w.L="updateWithEmsg",w.Ch=E)}if(e.J){w=g.Hx(e.J,y);if(!w)throw new g.Gh("failed_to_merge",e.J.info.O2(),y.info.O2());e.J=w}else e.J=y;a:{y=g.R2(e.J.info.J.info);if(e.J.info.type!==3){if(!e.J.info.j)break a;e.J.info.type===6?UZP(e,N,e.J):Lv5(e,e.J);e.J=null}for(;e.J;){w=
e.J.J.getLength();if(e.qg<=0&&e.D===0){var A=e.J.J,T=-1;E=-1;if(y){for(var p=0;p+8<A.getLength();){var C=v53(A,p),r=v53(A,p+4);p+=C||1;if(r===1836019558)T=p;else if(r===1835295092){E=p;break}}E<0&&(T=-1)}else{A=new yU(A);for(C=p=!1;;){r=A.mN();var Y=KvE(A),M=Y.id;Y=Y.size;if(!(M>0))break;if(M!==408125543)if(M===524531317)p=!0,Y>=0&&(E=A.mN()+Y,C=!0);else{if(p&&(M===160||M===163)&&(T<0&&(T=r),C))break;M===163&&(T=Math.max(0,T),E=A.mN()+Y);if(M===160){T<0&&(E=T=A.mN()+Y);break}A.skip(Y)}}T<0&&(E=-1)}if(T<
0)break;e.qg=T;e.D=E-T}if(e.qg>w)break;e.qg?(w=si_(e,e.qg),w.L&&a$3(e,w),UZP(e,N,w),pr(e,w),e.qg=0):e.D&&(w=si_(e,e.D<0?Infinity:e.D),e.D-=w.J.getLength(),pr(e,w))}}e.J&&e.J.info.j&&(pr(e,e.J),e.J=null)};
Lv5=function(e,N){!N.info.J.I8()&&N.info.N===0&&(g.R2(N.info.J.info)||N.info.J.info.lm())&&lo0(N);if(N.info.type===1)try{a$3(e,N),Nt5(e,N)}catch(E){g.t0(E);var y=vx(N.info);y.hms="1";e.tW.handleError("fmt.unparseable",y||{},1)}y=N.info.J;y.Gm(N);e.G&&tl1(e.G,N);if(y.Yz()&&e.policy.J)a:{e=e.tW.rP;N=N.info.clipId;y=g.Ld(y.info,e.Cx);if(N){var w=gHM(e,y);if(e.Zl[w])break a;e.Zl[w]=N}e.Rq.push(y)}};
zBM=function(e,N,y){if(e.N.length!==0&&(y||e.N.some(function(A){return A.info.o2<N}))){y=0;
for(var w=g.c(e.N),E=w.next();!E.done;E=w.next()){E=E.value;if(E.info.o2<N)break;e.tW.Fh("cmat",{max:N,s:E.info.O2()});y+=1}e.N.splice(0,y)}};
AW=function(e){var N;(N=e.G)==null||N.dispose();e.G=null};
ym3=function(e){var N=e.N.reduce(function(y,w){return y+w.J.getLength()},0);
e.J&&(N+=e.J.J.getLength());return N};
wU5=function(e){if(e.Kh&&!e.policy.NE){var N=e.tW;N.rP.isManifestless&&l2(N.rP,e.Kh.Ch,!!e.Z.info.video)}e.Kh=null;e.j=null;e.L=e.VB;e.K=e.L?e.K-e.Ng:NaN;JW(e)};
si_=function(e,N){var y=e.J;N=Math.min(N,y.J.getLength());if(N===y.J.getLength())return e.J=null,y;y=pIJ(y,N);e.J=y[1];return y[0]};
a$3=function(e,N){N.J.getLength();var y=N.iB();if(H3(N.info.J.info)&&N.info.J.info.video.primaries==="bt2020"){var w=new K_(y);Of(w,[408125543,374648427,174,224,21936,21937])&&(w=w.start+w.pos,y.getUint8(w)===129&&y.getUint8(w+1)===1&&y.setUint8(w+1,9))}w=N.info.J.info;mu(w)&&!H3(w)&&(w=N.iB(),(new K_(w)).qk(),L_([408125543,374648427,174,224],21936,w));N.info.J.info.gx()&&(w=N.info.J,w.info&&w.info.video&&w.info.video.projectionType==="MESH"&&!w.N&&(g.R2(w.info)?w.N=SgJ(y):w.info.lm()&&(w.N=X3F(y))));
N.info.J.info.lm()&&N.info.gx()&&(y=N.iB(),(new K_(y)).qk(),L_([408125543,374648427,174,224],30320,y)&&L_([408125543,374648427,174,224],21432,y));if(e.policy.Ih&&N.info.J.info.lm()){y=N.iB();var E=new K_(y);if(Of(E,[408125543,374648427,174,29637])){w=Uf(E,!0);E=E.start+E.pos;for(var A=0;A<w-1;A++)y.setUint8(E+A,0);y.setUint8(E+w-1,1)}}if(e.qG()&&g.R2(N.info.J.info)){w=N.iB();y=g.ti(w,0,1701606260);A=g.ti(w,0,1836476516);if(y&&A){y.skip(2);var T=X9(y),p=dD(y);w=[];E=[];var C=[],r=[];if(T)for(T=0;T<
p;++T)w.push(Ih(y)),E.push(Ih(y)),C.push(X9(y)),r.push(X9(y));else for(T=0;T<p;++T)w.push(P$(y)),E.push(P$(y)),C.push(X9(y)),r.push(X9(y));y=g.uN(A);y=new McP(E[0]/y,w[0]/y)}else y=null;if(y){if(g.R2(N.info.J.info))for(w=N.iB(),E=g.ti(w,0,1701082227);E;)A=E,A.type=1936419184,A.data.setUint32(A.offset+4,1936419184),E=g.ti(w,E.offset+E.size,1701082227);e.Dl=!0;N.info.J.j=y}}N.info.J.I8()||N.info.J.J||N.info.J.indexRange||Ri(N)};
UZP=function(e,N,y){if(y.info.J.I8()){if(e.Dl&&E_M(y)&&(N=y.iB(),N=g.ti(N,0,1953658222))){N.skip(1);var w=B$(N)<<16|X9(N),E=w&1,A=w&4;if(w&256){var T=w&512,p=w&1024;w&=2048;var C=dD(N);C<2||(E&&N.skip(4),A&&N.skip(4),E=dD(N),N.skip((C-1)*(4+(T?4:0)+(p?4:0)+(w?4:0))-4),N.data.setUint32(N.offset+N.J,E))}}if(N=e.l9&&!!e.l9.Z.j)if(N=y.info.gx())N=Y3P(y),T=e.l9,Cr?(p=1/N,N=rA(e,N)>=rA(T)+p):N=e.getDuration()>=T.getDuration(),N=!N;N&&E_M(y)&&(N=e.l9,Cr?(p=Y3P(y),T=1/p,p=rA(e,p),N=rA(N)+T-p):N=N.getDuration()-
e.getDuration(),N=1+N/y.info.duration,Fu5(y.iB(),N))}else{T=!1;e.j||(lo0(y),y.N&&(e.j=y.N,T=!0,A=y.info,w=y.N.d4,A.L="updateWithEmsg",A.Ch=w,A=y.N,A.eY&&(w=e.Z.index,w.N=!A.eY,w.K="emsg"),A=y.info.J.info,w=y.iB(),g.R2(A)?mh(w,1701671783):A.lm()&&L_([408125543],307544935,w)));a:if((A=OM(y,e.policy.pX))&&Mi3(y))p=AmM(e,y),e.U+=p,A-=p,e.Ng+=A,e.K=e.policy.yh?e.K+A:NaN;else{if(e.policy.wh){if(w=C=e.tW.Kz(g.K1(y),1),e.K>=0&&y.info.type!==6){if(e.policy.yh&&isNaN(e.Bk)){g.uA(new g.Gh("Missing duration while processing previous chunk",
y.info.O2()));e.tW.isOffline()&&!e.policy.il||Ttn(e,y,w);Tb(e,"m");break a}var r=C-e.K,Y=r-e.U,M=y.info.Ch,l=e.Rq?e.Rq.Ch:-1,F=e.Ut,S=e.Bk,k=e.policy.Wy&&r>e.policy.Wy,X=Math.abs(Y)>10,d=Math.abs(e.K-w)<1E-7;if(Math.abs(Y)>1E-4){e.Zl+=1;var v=(E=e.j)==null?void 0:Vo(E);E={audio:""+ +e.qG(),sq:M.toFixed(),sliceStart:C,lastSq:l.toFixed(),lastSliceStart:F,lastSliceDuration:S,totalDrift:(r*1E3).toFixed(),segDrift:(Y*1E3).toFixed(),skipRewrite:""+ +(k||X)};if(v==null?0:v.length)E.adCpn=v[0];e.tW.handleError("qoe.avsync",
E);e.Wk=M}k||X||d||(w=e.K);E=AmM(e,y,C);A-=E;e.U=r+E;e.policy.K&&(Y&&!d||E)&&(r=(p=e.j)==null?void 0:Vo(p),e.tW.Fh("discontinuityRewrite",{adCpn:(r==null?0:r.length)?r.join("."):"",itag:y.info.J.info.itag,sq:y.info.Ch,originalStartTime:C,rewrittenStartTime:w,startTimeAdjustment:w-C,segDrift:(Y*1E3).toFixed(),originalDuration:A+E,rewrittenDuration:A,durationAdjustment:E}))}}else w=isNaN(e.K)?y.info.startTime:e.K;Ttn(e,y,w)&&(e.Ng+=A,e.K=w+A,e.policy.Xm&&e.Zl>=e.policy.Xm&&(e.Zl=0,e.tW.P_({resetForRewrites:"count"})))}e.Rq=
y.info;e.Bk=Wx(y);y.K>=0&&(e.Ut=y.K);if(T&&e.j){T=JmE(e,!0);z4(y.info,T);e.J&&z4(e.J.info,T);N=g.c(N);for(p=N.next();!p.done;p=N.next())p=p.value,E=void 0,e.policy.Z&&p.Ch!==((E=e.j)==null?void 0:E.d4)||z4(p,T);(y.info.j||e.J&&e.J.info.j)&&y.info.type!==6||(e.Kh=T,e.policy.Ut?(N=pU0(e.j),e.tW.Q8(e.Z,T,N)):(N=e.tW,N.rP.isManifestless&&C21(N,T,null,!!e.Z.info.video)),e.policy.NG||rm5(e))}}Nt5(e,y);e.timestampOffset&&rXP(y,e.timestampOffset)};
pr=function(e,N){if(N.info.j){e.VB=N.info;if(e.j){var y=e.j,w=JmE(e,!1);y=pU0(y);e.tW.Q8(e.Z,w,y);e.Kh||e.policy.NG||rm5(e);e.Kh=null}JW(e)}e.G&&tl1(e.G,N);if(w=e.SL())if(w=g.Hx(w,N,e.policy.Mk)){e.N.pop();e.N.push(w);return}e.N.push(N)};
pU0=function(e){if(e.Y$()){var N=e.data["Stitched-Video-Id"]?e.data["Stitched-Video-Id"].split(",").slice(0,-1):[],y=Vo(e),w=[];if(e.data["Stitched-Video-Duration-Us"])for(var E=g.c(e.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),A=E.next();!A.done;A=E.next())w.push((Number(A.value)||0)/1E6);E=[];if(e.data["Stitched-Video-Start-Frame-Index"]){A=g.c(e.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var T=A.next();!T.done;T=A.next())E.push(Number(T.value)||0)}E=[];
if(e.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(A=g.c(e.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),T=A.next();!T.done;T=A.next())E.push((Number(T.value)||0)/1E6);e=new xZ0(N,y,w,E,g.$5_(e),g.Yg0(e))}else e=null;return e};
JW=function(e){e.J=null;e.qg=-1;e.D=0;e.j=null;e.i9=NaN;e.Ng=0;e.Kh=null};
Tb=function(e,N){N={rst4disc:N,cd:e.U.toFixed(3),sq:e.Rq?e.Rq.Ch:-1};e.K=NaN;e.U=0;e.Wk=-1;e.Rq=null;e.Ut=NaN;e.Bk=NaN;e.Et=null;e.tW.Fh("mdstm",N)};
Nt5=function(e,N){if(e.Z.info.BG){if(N.info.J.info.lm()){var y=new K_(N.iB());if(Of(y,[408125543,374648427,174,28032,25152,20533,18402])){var w=Uf(y,!0);y=w!==16?null:NZ(y,w)}else y=null;w="webm"}else N.info.G=qM5(N.iB()),y=Z10(N.info.G),w="cenc";y&&y.length&&(y=new eL(y,w),e.policy.d$&&g.R2(N.info.J.info)&&(w=kS0(N.iB()))&&(y.N=w),y.lm=N.info.J.info.lm(),N.N&&N.N.cryptoPeriodIndex&&(y.cryptoPeriodIndex=N.N.cryptoPeriodIndex),N.N&&N.N.N&&(y.J=N.N.N),e.tW.VQ(y))}};
rm5=function(e){var N=e.j,y=C$9(N);y&&(y.startSecs+=e.i9,e.tW.Ya(e.Z,y,N.d4,N.Y$()))};
JmE=function(e,N){var y,w=e.j;if(y=C$9(w))y.startSecs+=e.i9;var E=e.i9;e=N?w.j1:e.Ng;var A=w.Y$()?2:1;return new hi(w.d4,E,e,w.ingestionTime,"sq/"+w.d4,void 0,void 0,N,y,A)};
Ttn=function(e,N,y){if(!CUJ(N,y))return N=vx(N.info),N.smst="1",e.tW.handleError("fmt.unparseable",N||{},1),!1;isNaN(e.i9)&&(e.i9=y);return!0};
AmM=function(e,N,y){var w=0;if(N.info.J.info.lm()&&!Mi3(N))return 0;if(e.l9&&!e.qG()){var E=0;y&&g.R2(N.info.J.info)?E=y-e.K:N.info.J.info.lm()&&(E=e.U);var A=N.info.Ch;y=OM(N,e.policy.pX);var T=e.l9;var p=T.Wk;T=T.U;var C=Math.abs(T-E)>.02;if((A===p||A>p&&A>e.Wk)&&C){w=Math.max(.95,Math.min(1.05,(y-(T-E))/y));if(g.R2(N.info.J.info))Fu5(N.iB(),w);else if(N.info.J.info.lm()&&(A=E-T,!g.R2(N.info.J.info)&&(N.info.J.info.lm(),w=new K_(N.iB()),p=N.L?w:new K_(new DataView(N.info.J.J.buffer)),OM(N,!0)))){var r=
A*1E3,Y=EM(p);p=w.pos;w.pos=0;if(w.J.getUint8(w.pos)===160||Ad(w))if(GD(w,160))if(Uf(w,!0),GD(w,155)){if(A=w.pos,C=Uf(w,!0),w.pos=A,r=r*1E9/Y,Y=sf(w),r=Y+Math.max(-Y*.7,Math.min(Y,r)),r=Math.sign(r)*Math.floor(Math.abs(r)),!(Math.ceil(Math.log(r)/Math.log(2)/8)>C)){w.pos=A+1;for(A=C-1;A>=0;A--)w.J.setUint8(w.pos+A,r&255),r>>>=8;w.pos=p}}else w.pos=p;else w.pos=p;else w.pos=p}w=OM(N,e.policy.pX);w=y-w}w&&N.info.J.info.lm()&&e.tW.Fh("webmDurationAdjustment",{durationAdjustment:w,videoDrift:E+w,audioDrift:T})}return w};
E_M=function(e){return e.info.J.I8()&&e.info.Ch===e.info.J.index.vY()};
rA=function(e,N){N=(N=N===void 0?0:N)?Math.round(e.timestampOffset*N)/N:e.timestampOffset;e.Z.j&&N&&(N+=e.Z.j.J);return N+e.getDuration()};
$X1=function(e,N){N<0||(e.N.forEach(function(y){rXP(y,N)}),e.timestampOffset=N)};
IE=function(e,N,y,w,E){H0.call(this,y,E);var A=this;this.policy=e;this.formatId=N;this.uP=w;this.lastError=null;this.FI=function(){A.Ss()||(A.uP.XZ.has(A.formatId)?(A.isComplete()||A.J.start(),hI(A.uP,A.formatId)&&A.Wg(2),A.uP.u6(A.formatId)&&(Z_P(A.uP,A.formatId)?A.IJ(4):(A.lastError="net.closed",A.IJ(5)))):(A.lastError="player.exception",A.IJ(5)))};
this.J=new g.e6(function(){A.isComplete()||(A.lastError="net.timeout",A.IJ(5))},this.policy.zk);
this.J.start();td0(this.uP,this.formatId,this.FI);g.Jo(this.FI)};
$e=function(e,N,y,w){g.x.call(this);var E=this;this.tW=e;this.policy=N;this.J=y;this.timing=w;this.logger=new g.RE("dash");this.K=[];this.qg=[];this.N=this.TW=null;this.aq=!1;this.Zl=this.Et=0;this.Z=-1;this.Kh=!1;this.i9=-1;this.l9=this.Rq=null;this.Ng=NaN;this.lk={tG:function(){return E.j},
Eb1:function(){return E.K},
Jps:function(){return E.U}};
this.j=new O1n(e,N,y);this.policy.J&&(this.U=new B0(this.j,this.tW.getManifest(),this.policy,function(A){E.policy.d1&&E.Fh("buftl",A)}));
this.policy.Dl&&(this.D=new KP(this));this.JM=y.info.JM;this.G=this.policy.qg?!1:y.by();this.isManifestless=y.by();this.L=this.G;g.Q(this,this.Rq)};
Ye=function(e,N,y){y=y===void 0?!1:y;N&&Cr&&$X1(e.j,N.dc());if(!y){var w;(w=e.U)==null||PmM(w)}e.TW=N;(N=e.U)!=null&&(N.TW=e.TW)};
MN=function(e){var N=e.TW&&e.TW.mM();if(e.policy.YN){if((e=e.U)==null)e=void 0;else{var y;e=(y=e.K)==null?void 0:y.info}return e||null}return N};
Yh3=function(e){for(var N={},y=0;y<e.qg.length;y++)N["r"+y]=e.qg[y];return N};
lz=function(e,N){isNaN(e.Ng)||e.Fh("aswr",{sq:N.info.QB[0].Ch,id:N.info.QB[0].J.info.itag,xtag:N.info.QB[0].J.info.J,ep:Date.now()-e.Ng});e.K.push(N);e.N=g.Kq(N.info.QB);e.qg.push(N.O2());e.qg.length>4&&e.qg.shift()};
MIE=function(e,N){if(N.bZ()){var y=N.O$();y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,e.policy.K&&N instanceof IE&&e.Fh("omblss",{s:w.info.O2()}),Fz(e,N.info.QB,w,N.zm())}};
Fz=function(e,N,y,w){w=w===void 0?0:w;isNaN(e.Ng)||(e.Fh("aswm",{sq:N[0].Ch,id:N[0].J.info.itag,xtag:N[0].J.info.J,ep:Date.now()-e.Ng}),e.Ng=NaN);switch(y.info.type){case 1:case 2:lT0(e,y);break;case 4:var E=y.info.J,A=E.Hb(y),T;((T=e.N)==null?0:T.type===4)&&Wu5(y.info,e.N)&&(e.N=E.y5(e.N).pop());y=g.c(A);for(E=y.next();!E.done;E=y.next())Fz(e,N,E.value,w);break;case 3:y.info.J.info.video?(E=e.timing,E.l9||(E.l9=(0,g.iC)(),Bd("fvb_r",E.l9,E.J))):(E=e.timing,E.Z||(E.Z=(0,g.iC)(),Bd("fab_r",E.Z,E.J)));
enn(e.j,N,y,w);e.policy.J&&FsH(e);break;case 6:enn(e.j,N,y,w),e.N=y.info}};
lT0=function(e,N){if(N.info.type===1)if(N.info.J.info.video){var y=e.timing;y.Rq||(y.Rq=(0,g.iC)(),Bd("vis_r",y.Rq,y.J))}else y=e.timing,y.U||(y.U=(0,g.iC)(),Bd("ais_r",y.U,y.J));Lv5(e.j,N);e=e.tW;e.videoTrack.J.Yz()&&e.audioTrack.J.Yz()&&e.policy.J&&!e.rP.Cx&&(N=e.audioTrack.getDuration(),y=e.videoTrack.getDuration(),Math.abs(N-y)>1&&e.Fh("trBug",{af:""+g.Ld(e.audioTrack.J.info,!1),vf:""+g.Ld(e.videoTrack.J.info,!1),a:""+N,v:""+y}))};
u3=function(e){return R_5(e.j)};
FsH=function(e){e.K.length?e.N=g.Kq(g.Kq(e.K).info.QB):e.j.N.length?e.N=e.j.SL().info:e.N=MN(e)};
SL=function(e,N){var y={gT:[],kK:[]},w;if((e=e.U)==null)e=void 0;else{X13(e,e.gT,"og");c$M(e,N);X13(e,e.gT,"trim");var E=BQ9(e);N=E.gT;E=E.Ki;for(var A=[],T=0;T<E.length;T++){var p=E[T],C=e.policy.Wk&&p.K!==-1?p.K:p.info.startTime,r={startTicks:(C+e.timestampOffset)*1E3,fV:(e.policy.Wk&&p.j!==-1?p.j:p.info.duration)*1E3,timescale:1E3},Y=void 0,M=(Y=e.TW)==null?void 0:Y.Ju();Y=void 0;if(e.policy.P5&&M&&M.length>0){var l=E3(M,C);l>=0&&(Y=(M.end(l)-C+.1)*1E3)}A.push({formatId:g.Ld(p.info.J.info,e.rP.Cx),
KO:p.info.KO,sequenceNumber:p.info.Ch+e.j,mZ:r,wC:p.info.K,Nm:Y})}e={gT:N,kK:A}}return(w=e)!=null?w:y};
i3=function(e,N,y){y=y===void 0?!1:y;if(e.TW){var w=e.TW.Ju(),E=T6(w,N),A=NaN,T=MN(e);T&&(A=T6(w,T.J.index.getStartTime(T.Ch)));if(E===A&&e.N&&e.N.K&&ShM(ol(e),0))return N}e=o_H(e,N,y);return e>=0?e:NaN};
g3=function(e,N,y){e.J.Yz();var w=o_H(e,N);if(w>=0)return w;var E;(E=e.U)==null||km0(E,N,y);y=Math;w=y.min;E=e.j;if(E.G)if(E=E.G,E.lP&&E.lP.type===3)E=E.lP.startTime;else if(E.K>0){var A=E.J.index;A=g.T7(A.offsets.subarray(0,A.count),E.K*E.chunkSize);E=E.J.index.getStartTime(A>=0?A:Math.max(0,-A-2))}else E=0;else E=Infinity;N=w.call(y,N,E);if(e.policy.N){var T,p;y=(T=e.tW.bP())==null?void 0:(p=P0(T,N))==null?void 0:p.clipId;e.N=e.J.Od(N,void 0,y).QB[0]}else e.N=e.policy.qg?null:e.J.Od(N).QB[0];bz(e)&&
(e.TW&&e.TW.abort(),e.policy.Vp&&(T=e.U)!=null&&(T.K=void 0));e.Zl=0;return e.N?e.N.startTime:N};
IMJ=function(e){e.G=!0;e.L=!0;e.Z=-1;g3(e,Infinity)};
hW=function(e){for(var N=0,y=g.c(e.K),w=y.next();!w.done;w=y.next())N+=R03(w.value.info);return N+=ym3(e.j)};
ke=function(e,N){N=N===void 0?!1:N;var y=e.tW.getCurrentTime(),w=e.j.SL(),E=(w==null?void 0:w.info.XT)||0;e.policy.ll&&(w==null?0:w.info.J.by())&&!w.info.j&&(E=w.info.o2);if(e.policy.N&&w&&w.info.clipId){var A,T=(((A=e.tW.bP())==null?void 0:XC(A,w.info.clipId))||0)/1E3;E+=T}if(!e.TW)return e.policy.J&&N&&!isNaN(y)&&w?E-y:0;if((A=MN(e))&&cl(e,A))return A.XT;T=e.TW.Ju(!0);if(N&&w)return A=0,e.policy.J&&(A=ph(T,E+.02)),A+E-y;E=ph(T,y);e.policy.NJ&&A&&(N=E3(T,y),T=E3(T,A.o2-.02),N===T&&(y=A.XT-y,e.policy.K&&
y>E+.02&&e.Fh("abh",{bh:E,bhtls:y}),E=Math.max(E,y)));return E};
bC3=function(e){var N=MN(e);return N?N.XT-e.tW.getCurrentTime():0};
hnM=function(e,N){if(e.K.length){if(e.K[0].info.QB[0].startTime<=N)return;zc(e)}for(var y=e.j,w=y.N.length-1;w>=0;w--)y.N[w].info.startTime>N&&y.N.pop();FsH(e);e.N&&N<e.N.startTime&&(e.Zl=0,e.J.Yz()?e.N=e.J.Od(N,!0).QB[0]:e.N=null)};
Bl=function(e,N,y,w){if(!e.J.index.VI(N,!0))return!1;try{zc(e);for(var E=e.j,A=null,T=E.N.length-1;T>=0;T--){var p=E.N[T];p.info.Ch>=N&&(E.N.pop(),E.K-=OM(p,E.policy.pX),A=p.info)}A&&(E.L=E.N.length>0?E.N[E.N.length-1].info:E.Et,E.N.length!==0||E.L||Tb(E,"r"));E.tW.Fh("mdstm",{rollbk:1,itag:A?A.J.info.itag:"",popped:A?A.Ch:-1,sq:N,lastslc:E.L?E.L.Ch:-1,lastfraget:E.K.toFixed(3)});if(e.policy.J)return e.N=null,!0;w>y?g3(e,w):e.N=e.J.Tn(N-1,!1).QB[0]}catch(C){return N=I2(C),N.details.reason="rollbkerr",
e.tW.handleError(N.errorCode,N.details,N.severity),!1}return!0};
Pl=function(e,N){var y;for(y=0;y<e.K.length&&N!==e.K[y];y++);if(y===e.K.length)Xz(e,N);else{for(;y<e.K.length;)Xz(e,e.K.pop());var w=zg(e);w&&w.J.SJ()&&DR(N.info.QB,function(E){return Od1(E,w)})?(e.N=w,e.policy.K&&e.Fh("cer",{lsr:"lsp",
lsp:w.O2()})):(Px(N.info.QB[0])?(e.N=N.To&&N.To.K?HdE(N.To.K):m50(N.info.QB[0]),e.policy.K&&e.Fh("cer",{lsr:e.N.O2(),lsp:w==null?void 0:w.O2()})):(e.N=null,e.policy.K&&e.Fh("cer",{lsr:"null",lsp:w==null?void 0:w.O2()})),e.tW.isOffline()&&!e.policy.il||Xz(e,N,!0))}};
cl=function(e,N){if(!N)return!1;if(e.policy.N){var y;if((e=(y=e.tW.bP())==null?void 0:dA(y))&&N.clipId!==e)return!1}return N.eY()};
bz=function(e){var N;!(N=e.J.info.Iq==="f")&&(N=e.policy.j)&&(N=e.j,N=!!N.G&&RO(N.G));if(N)return!0;N=MN(e);if(!N)return!1;var y=cl(e,N)&&N.j;return e.isManifestless&&e.i9>0?y||N.Ch>=e.i9:y};
Il=function(e){var N;return bz(e)||cl(e,(N=e.j.SL())==null?void 0:N.info)};
ol=function(e){var N=[],y=MN(e);y&&N.push(y);N=g.aw(N,e.j.Lz());y=g.c(e.K);for(var w=y.next();!w.done;w=y.next()){w=w.value;for(var E=g.c(w.info.QB),A=E.next(),T={};!A.done;T={UJ:void 0},A=E.next())T.UJ=A.value,w.WM&&(N=g.CG(N,function(p){return function(C){return!Wu5(C,p.UJ)}}(T))),(Px(T.UJ)||T.UJ.type===4)&&N.push(T.UJ)}e.N&&!qg9(e.N,g.Kq(N),e.N.J.I8())&&N.push(e.N);
return N};
ShM=function(e,N){if(!e.length)return!1;for(N+=1;N<e.length;N++)if(!Zd_(e[N-1],e[N]))return!1;return!0};
o_H=function(e,N,y){y=y===void 0?!1:y;if(!e.N||!e.N.K)return NaN;e=ol(e);a:{N+=.02;var w=y;w=w===void 0?!1:w;for(var E=-1,A=0;A<e.length;++A){var T=e[A];if(T.o2<=N)if(w)E=A;else if(T.startTime+T.duration>=N){N=A;break a}}N=E}return N<0?NaN:ShM(e,y?N:0)?e[N].startTime:NaN};
vl=function(e){return!(!e.N||e.N.J===e.J)};
cms=function(e){return vl(e)&&e.J.Yz()&&e.N.J.info.JM<e.J.info.JM};
kEn=function(e,N,y){if(e.policy.ll)return ke(e,!0)<y;var w=zg(e);return w&&!cl(e,w)?w.XT>N&&w.XT<N+y:!1};
zg=function(e){var N=e.j.SL();return N?N.info:MN(e)};
Jds=function(e,N){var y;return!((y=e.U)==null||!y.L.has(N))||G4F(e.j,N)};
zc=function(e){for(var N=g.c(e.K),y=N.next();!y.done;y=N.next())Xz(e,y.value);e.K=[];e.N=null};
zb=function(e){var N;(N=e.U)==null||PmM(N)};
Bt3=function(e,N,y){N.WM&&((y===void 0?0:y)||!N.info.QB[0].J.SJ())&&(e.logger.debug(function(){return"Rolling back request with segNum "+N.info.QB[0].Ch}),wU5(e.j))};
Xz=function(e,N,y){Bt3(e,N,y===void 0?!1:y);N.dispose()};
XUF=function(e){return!!e.N&&e.N.Ch!==-1&&e.N.Ch<e.J.index.Jx()};
P2M=function(e){var N=e.N;N&&N.Ch===-1&&(e=e.j.SL())&&Px(e.info)&&(e=e.info.Ch,N.L="updateLastSliceRequested",N.Ch=e)};
dX5=function(e){return DR(e.K,function(N){return N.kP})};
ITM=function(e,N){e.N&&(e.N.J=N)};
iz=function(e,N){return e.TW?AX(e.TW.Ju(),N):!0};
DU=function(e){var N=u3(e);e=e.tW.bP();return N&&e&&N.info.clipId&&!v_1(e,N.info.clipId)?!0:!1};
gA=function(e){var N;return!((N=u3(e))==null||!N.isLocked)};
znM=function(e,N){var y=u3(e);return y&&y.info.type!==6?!px3(N,e,y.info.Ch):!1};
iC_=function(e){var N=MN(e),y,w=(y=e.TW)==null?void 0:y.Ju();y=NaN;N&&w&&bz(e)&&(y=T6(w,(N.o2+N.XT)/2));return!isNaN(y)};
DXJ=function(e){if((e=e.U)==null)e=void 0;else if(e.gT.length===0||e.policy.Hc&&e.J<0)e=null;else{var N=e.gT[e.J]?e.gT[e.J].formatId:null;e=N?(e=e.rP.K.get(Sl(N)))?e.info:null:null}return e||null};
g_H=function(){this.Z0=!1};
VI0=function(e){var N=e===void 0?{}:e;e=N.hasSubfragmentedFmp4===void 0?!1:N.hasSubfragmentedFmp4;N=N.JB===void 0?!1:N.JB;var y=new g_H;y.Z0=e||N;return y};
g.fTM=function(e){this.Ot=e;this.U=new g_H;this.qE=this.wE=!1;this.vy=2;this.Zl=20971520;this.Kx=8388608;this.l9=120;this.Tv=this.Li=this.e0=2;this.al=this.sR=!1;this.a7=1E3;this.Y_=15;this.vp=1;this.D=1.15;this.Ng=1.05;this.Qk=1;this.Lm=this.YO=!1;this.ul=6;this.K=!1;this.E8=100;this.Fo=10;this.lf=6;this.Cl=!1;this.R7=1;this.o1=this.WE=!1;this.ub=2;this.wh=this.AA=!1;this.SR=!0;this.CN=this.a9=this.RO=this.dT=this.NK=!1;this.hp=!0;this.HJ=!1;this.j="";this.Rx=[];this.IY=this.lr=this.Dl=!1;this.G4=
0;this.jN="";this.pz=this.j$=this.uV=this.d1=this.e$=this.j_=this.Z=this.Em=this.MX=this.TV=this.J=this.E0=this.VB=this.i9=this.Vp=this.YN=this.Kh=this.N=this.NG=!1;this.UY=!0;this.A4=this.ll=this.v2=this.fk=this.L=this.Wk=!1;this.Bk=!0;this.c5=this.zd=this.im=this.jn=this.mL=this.yO=this.P5=this.U8=this.NB=this.qg=this.gW=this.xX=this.Ut=this.YB=this.Rq=!1;this.Js=this.Ot.T("html5_trigger_loader_long_poll_on_sabr_backoff");this.By=this.Ot.T("html5_trigger_fallback_count_from_probe");this.J4=g.Y2(this.Ot.experiments,
"html5_min_readbehind_secs");this.KT=g.Y2(this.Ot.experiments,"html5_min_readbehind_cap_secs");this.il=this.Ot.T("html5_offline_reset_media_stream_on_unresumable_slices");this.JM=NaN;this.ib=VU(this,"html5_request_size_min_kb",64)*1024;this.Et=2097152;this.WV=VU(this,"html5_bypass_contention_secs");this.qZ=1048576;this.sY=VU(this,"html5_repredict_interval_ms",1800);this.Vw=VU(this,"html5_head_miss_secs",5);this.bf=VU(this,"html5_min_upgrade_health_secs",10);this.fT=VU(this,"html5_min_seconds_between_format_selections",
8);this.vV=VU(this,"html5_max_buffer_health_for_downgrade_secs",15);this.oS=QY;this.xI=g.Y2(this.Ot.experiments,"html5_min_startup_buffered_media_duration_secs");this.Oz=g.Y2(this.Ot.experiments,"html5_post_interrupt_readahead");this.aC=this.Ot.T("html5_allow_onesie_for_ssap");this.w$=this.Ot.T("html5_disable_classic_alr");this.h4=g.Y2(this.Ot.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.lV=VU(this,"html5_ssdai_failure_retry_limit",3);this.DN=this.Ot.experiments.gP("html5_clone_original_for_fallback_location");
this.U2=g.Y2(this.Ot.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Tg=g.Y2(this.Ot.experiments,"html5_subsegment_readahead_timeout_secs");this.JD=g.Y2(this.Ot.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.rk=g.Y2(this.Ot.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.N8=g.Y2(this.Ot.experiments,"html5_subsegment_readahead_min_load_speed");this.xw=g.Y2(this.Ot.experiments,"html5_subsegment_readahead_load_speed_check_interval");
this.Ko=g.Y2(this.Ot.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.bb=VU(this,"html5_hopeless_secs",15);this.m5=this.Ot.T("html5_restrict_streaming_xhr_on_sqless_requests");this.Qw=g.Y2(this.Ot.experiments,"html5_max_headm_for_streaming_xhr");this.X1=this.Ot.T("html5_pipeline_manifestless_allow_nonstreaming");this.YU=this.Ot.T("html5_prefer_server_bwe3");this.yw=this.Ot.T("html5_last_slice_transition");this.po=this.Ot.T("html5_store_xhr_headers_readable");this.Wy=g.Y2(this.Ot.experiments,
"html5_max_drift_per_track_secs");this.NE=this.Ot.T("html5_no_placeholder_rollbacks");this.F1=this.Ot.T("html5_subsegment_readahead_enable_mffa");this.jp=this.Ot.T("html5_allow_video_keyframe_without_audio");this.d$=this.Ot.T("html5_enable_vp9_fairplay");this.cC=1048576;this.Rv=this.Ot.T("html5_woffle_resume");this.Ci=this.Ot.T("html5_abs_buffer_health");this.AU=this.Ot.T("html5_interruption_resets_seeked_time");this.Dy=g.Y2(this.Ot.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;
this.Sy=this.Ot.T("html5_log_additional_source_buffer_updates");this.aF=this.Ot.T("html5_report_captions_ctmp_qoe");this.m4=this.Ot.T("html5_explicitly_dispose_xhr");this.Mk=!this.Ot.T("html5_encourage_array_coalescing");this.Pl=this.Ot.T("html5_restart_on_unexpected_detach");this.s6=this.Ot.T("html5_filter_non_efficient_formats_for_safari");this.Ot.T("html5_format_hybridization");this.zA=this.Ot.T("html5_abort_before_separate_init");this.Ih=Lp();this.Fg=this.Ot.T("html5_serialize_server_stitched_ad_request");
this.M6=this.Ot.T("html5_skip_buffer_check_seek_to_head");this.Zc=this.Ot.T("html5_attach_po_token_to_bandaid");this.g6=g.Y2(this.Ot.experiments,"html5_max_redirect_response_length")||8192;this.yh=this.Ot.T("html5_rewrite_timestamps_for_webm");this.pX=this.Ot.T("html5_only_media_duration_for_discontinuities");this.hH=g.Y2(this.Ot.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ot.T("html5_onesie_live");this.tD=this.Ot.T("html5_onesie_premieres");this.SE=this.Ot.T("html5_drop_onesie_for_live_mode_mismatch");
this.xn=g.Y2(this.Ot.experiments,"html5_onesie_live_ttl_secs")||8;this.Kk=g.Y2(this.Ot.experiments,"html5_attach_num_random_bytes_to_bandaid");this.zk=g.Y2(this.Ot.experiments,"html5_onesie_request_timeout_ms")||3E3;this.jd=this.Ot.T("html5_update_container_type_on_codec_family_change")||this.Ot.T("html5_use_update_container_type_codec_family");this.yJ=this.Ot.T("html5_dont_call_change_type_on_updating");this.Pf=this.Ot.T("html5_apply_ssap_slice_info_adjustment");this.Xz=this.Ot.T("html5_enable_sabr_host_fallback");
this.jI=this.Ot.T("html5_ssap_enable_legacy_browser_logic");this.I4=this.Ot.T("html5_ssap_enable_delay_init");this.wW=this.Ot.T("html5_gapless_fallback_on_append_error");this.Nw=this.Ot.T("html5_shorts_stop_request_when_buffer_to_end");this.Z4=this.Ot.T("html5_vod_stop_request_when_buffer_to_end");this.aq=this.Ot.T("html5_ssdai_use_post_for_media")&&this.Ot.T("gab_return_sabr_ssdai_config");this.bA=this.Ot.T("html5_use_post_for_media");this.CC=this.Ot.T("html5_use_live_ump_heartbeat");this.useUmp=
this.Ot.T("html5_use_ump");this.nM=this.Ot.Js;this.DE=this.Ot.T("html5_reset_primary_stats_on_redirector_failure");this.Vz=this.Ot.T("html5_remap_to_original_host_when_redirected");this.Z2=this.Ot.T("html5_sabr_support_quality_constraints");this.hv=this.Ot.T("html5_sabr_remove_all_quality_constraints");this.sb=this.Ot.T("html5_iterative_seeking_buffered_time");this.d2=this.Ot.T("html5_use_network_error_code_enums");this.qJ=this.Ot.T("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=
this.Ot.T("html5_enable_server_driven_request_cancellation");this.gI=this.Ot.T("html5_enable_sabr_request_timing");this.DD=this.Ot.T("html5_enable_server_format_filter");this.i$=this.Ot.T("html5_enable_lawnmower");this.fl=this.Ot.B9()?g.Y2(this.Ot.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.xW=g.Y2(this.Ot.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.kh=g.Y2(this.Ot.experiments,"html5_normal_latency_mffa_ms")||NaN;this.Ov=g.Y2(this.Ot.experiments,"html5_mffa_ms_proxima_override")||
this.kh;this.cV=this.Ot.T("html5_live_defrag_only_h264_playbacks");this.zM=this.Ot.T("html5_live_defrag_only_h264_formats");this.ir=this.Ot.T("html5_record_now");this.gf=g.Y2(this.Ot.experiments,"html5_drm_byterate_soft_cap");this.Ip=g.Y2(this.Ot.experiments,"html5_drm_live_byterate_soft_cap");this.G=this.Ot.T("html5_sabr_log_request_creation");this.Gg=this.Ot.T("html5_use_buffer_timeline_for_sabr_request_creation");this.PY=this.Ot.T("html5_sabr_report_request_cancellation_info");this.hN=this.Ot.T("html5_spoof_4k");
this.VE=VU(this,"html5_min_media_duration_for_cabr_slice");this.pT=VU(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.JX=this.Mk?0:VU(this,"html5_min_media_duration_for_append_prop");this.Ly=this.Ot.T("html5_remove_defrag_without_frame_level_streaming");this.Fq=this.Ot.T("html5_consume_all_buffered_bytes_one_poll");this.uf=this.Ot.T("html5_disable_urgent_adaptation");this.XR=this.Ot.T("html5_apply_constraints_in_client_for_sabr");this.Ry=this.Ot.T("html5_send_video_playback_ustreamer_config");
this.Xm=VU(this,"html5_max_discontinuity_rewrite_count");this.nm=VU(this,"html5_fixed_media_duration_for_request");this.Ps=this.Ot.T("html5_apply_fix_for_missing_seg_info_without_logger");this.Fr=VU(this,"html5_sabr_request_limit_per_period");this.LX=this.Ot.T("html5_sabr_live_partial_segment");this.zx=this.Ot.T("html5_sabr_dispose_media_objects");this.kX=this.Ot.T("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.zT=this.Ot.T("html5_enable_d6de4");this.wA=this.Ot.T("html5_ssap_keep_only_ssap_eos_check");
this.Ot.T("html5_high_res_seek_logging");this.uo=this.Ot.T("html5_disable_chunk_synchronization_sabr_seek");this.D7=this.Ot.T("html5_enable_ssap_multi_audio_format_filtering");this.zg=this.Ot.T("html5_enable_sabr_live_captions");this.t4=g.Y2(this.Ot.experiments,"html5_override_micro_discontinuities_threshold_ms");this.jE=this.Ot.T("defer_slice_processing_on_healthy_buffer_sabr");this.Yb=this.Ot.T("html5_byterate_constraints");this.q6=this.Ot.T("html5_refactor_sabr_audio_format_selection_logging");
this.Lu=this.Ot.T("enable_sabr_snackbar_message");this.Ot.T("html5_reinit_source_buffer_by_new_element");this.Ob=this.Ot.T("html5_refactor_sabr_video_format_selection_logging");this.Ub=this.Ot.T("html5_log_slice_info_in_sbu");this.FZ=VU(this,"html5_paced_poll_ms");this.aT=VU(this,"html5_paced_poll_min_health_ms");this.hX=this.Ot.T("html5_disable_sabr_fallback");this.Hc=this.Ot.T("html5_track_current_buffered_range_at_sync");this.Z3=g.Y2(this.Ot.experiments,"html5_enable_sps_retry_backoff_ms");this.y_=
this.Ot.T("html5_sabr_live_timing");this.o4=this.Ot.T("html5_sabr_enable_server_xtag_selection");this.p5=this.Ot.T("html5_send_detailed_network_type");this.Sw=this.Ot.T("html5_sabr_skip_client_audio_init_selection");this.NJ=this.Ot.T("html5_count_updating_slice_for_buffer_health");this.TH=this.Ot.T("html5_report_max_buffer_bytes_limit_to_sabr");this.dJ=this.Ot.T("html5_sabr_live_audio_early_return_fix");this.Sz=this.Ot.T("html5_enable_media_serving_enforcement");this.zy=g.Y2(this.Ot.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");
this.IF=this.Ot.T("html5_check_decorator_on_cuepoint");this.tX=this.Ot.T("html5_cuepoint_identifier_logging");this.yn=this.Ot.B9()};
dZ1=function(e,N,y){y=y===void 0?!1:y;N.video.J>1080&&!e.wE&&(e.Zl=36700160,e.Kx=5242880,e.Et=Math.max(4194304,e.Et),e.wE=!0);N.video.J>2160&&!e.qE&&(e.Zl=104857600,e.JM=13107200,e.qE=!0);g.Y2(e.Ot.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?N.isEncrypted()&&g.O8()&&g.Kp("samsung")&&(g.Kp("kant")||g.Kp("muse"))&&(e.JM=g.Y2(e.Ot.experiments,"html5_samsung_kant_limit_max_bitrate")):N.isEncrypted()&&g.O8()&&g.Kp("kant")&&(e.JM=1310720);e.gf!==0&&N.isEncrypted()&&(e.JM=e.gf);e.Ip!==0&&N.isEncrypted()&&
y&&(e.JM=e.Ip);N.JM&&(e.qZ=Math.max(e.ib,Math.min(e.Et,5*N.JM)))};
fr=function(e){return e.J&&e.MX&&e.playbackStartPolicy};
tW=function(e){return e.N||e.J&&e.DD};
uz=function(e,N,y,w){e.MX&&(e.playbackStartPolicy=N,e.SP=y,e.hK=w)};
VU=function(e,N,y){y=y===void 0?0:y;return g.Y2(e.Ot.experiments,N)||y};
tIM=function(e){var N=e===void 0?{}:e;e=N.o1;var y=N.Z0;var w=N.eV;var E=N.vY;N=N.IX;this.o1=e;this.Z0=y;this.eV=w;this.vY=E;this.IX=N};
xcs=function(e,N){if(N<0)return!0;var y=e.vY();return N<y||N===y&&!e.o1||N===y&&(e=e.IX())&&N===e.Ch?!0:!1};
jxF=function(e,N,y){if(!xcs(e,N))return 0;if(!e.Z0||!isNaN(y)&&y>0)return 2;if(N<0)return 1;y=e.vY();return N<y||N===y&&(e=e.IX())&&N===e.Ch&&!e.pending?2:1};
qN=function(e,N,y){g.x.call(this);this.tW=e;this.policy=N;this.bk=y;this.N=0;this.J=!1;this.delay=new g.e6(this.K,this.policy.fl,this);g.Q(this,this.delay)};
uus=function(e,N){F9(N.J)||(e.yl=N,e.N=0,g.NA(e.delay))};
qhF=function(e,N,y,w,E){var A=this;this.tW=e;this.policy=N;this.bk=y;this.yl=w;this.q2=E;this.done=!1;this.onTimeout=function(){A.done||(A.done=!0,A.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*M_(this.bk)));this.timing=new j3(this,{bk:this.bk,lw:this.size,Vm:!0,fd:function(){},
CU:this.policy.K});e=MZ(this.yl,this.q2,this.policy).tA.clone();Ma(e);e.path!=="/videogoodput"&&(e.path="/videogoodput",e.url="");this.location=new T4(e);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=Oi(this.location,this.policy.U,this.timing,this.policy.oS,{});setTimeout(this.onTimeout,1E4)};
ZC9=function(e,N,y){var w=e.qY();if(e.isComplete()||!w||e.info.yl.q2(N,y))return 0;var E=N.ub;if(!E||w<E)return 0;e=r4(y,lH(e.info.yl,!0,N));return e.J||e.timedOut||e.started?0:2};
xXP=function(e,N,y){if(!(N.h4&&e.isComplete()&&e.canRetry()&&e.info.yl.q2(N,y))||e.info.yl.U)return 0;e=r4(y,lH(e.info.yl,!1,N));return e.K+N.h4*C1(e,!0)>(0,g.iC)()?0:1};
ZU=function(e,N,y,w,E,A,T,p,C,r,Y,M,l,F){F=F===void 0?null:F;g.x.call(this);var S=this;this.tW=e;this.policy=N;this.videoTrack=y;this.audioTrack=w;this.j=E;this.J=A;this.timing=T;this.L=p;this.schedule=C;this.rP=r;this.K=Y;this.Ng=M;this.dM=l;this.E_=F;this.Kh=!1;this.Tt="";this.F6=null;this.Hf=NaN;this.qg=!1;this.N=null;this.Q2=this.D=NaN;this.Fb=this.Z=0;this.logger=new g.RE("dash");this.lk={xY:function(k,X){return S.xY(k,X)}};
this.policy.Kk>0&&(this.Tt=g.PX(this.policy.Kk));this.policy.fl&&(this.U=new qN(this.tW,this.policy,this.schedule),g.Q(this,this.U))};
jI0=function(e,N,y){var w=N.N?N.N.J.yl:N.J.yl;var E=e.j,A;(A=!e.policy.Vz)||(A=lN(w.J)===lN(w.K));A?w=!1:(E=r4(E,lN(w.K)),A=6E4*Math.pow(E.j,1.6),(0,g.iC)()<E.K+A?w=!1:(E.K=(0,g.iC)(),E.j+=1,w.J=w.K.clone(),w=!0));w&&e.tW.Fh("hostch",{},!0);if(xe(e,N,y)){y=e.G(N,y);if(e.N){var T=y.QB[0].J.info.id;w=e.J;E=y.QB[0].Ch;w=E<0&&!isNaN(w.L)?w.L:E;E=iO(e.J,y.QB[0].o2,w);var p=N===e.audioTrack?1:2,C=y.QB[0].J.info.Iq;A=T.split(";")[0];a:{var r=e.J;if(r.J){var Y=r.J.Re.event;if(r.J.Ch===w){r=Y==="predictStart"?
void 0:r.J.Re.event;break a}if(r.J.Ch===w-1){r=Y==="start"||Y==="continue"?Y:void 0;break a}}r=void 0}if(e.policy.aq&&e.J.N!==0){var M=e.N.Ox(E,w,T,p,C,r);w<0&&p===2&&D0(e.J,0,0,!0);if(M){var l;T=((l=M.Ag)==null?void 0:l.Yh)||"";var F;l=((F=M.Ag)==null?void 0:F.Bx)||-1;e.tW.Fh("sdai",{ssdaiinfo:"1",ds:T,skipsq:l,itag:A,f:C,sg:w,st:E.toFixed(3)});y.j=M}}else if(F=e.N.zz(E,w,T,p,C,r),w<0&&p===2&&D0(e.J,0,0,!0),F){l={dec_sq:w,itag:A,st:E.toFixed(3)};if(e.policy.Fg&&N.isRequestPending(w-1)){e.tW.Fh("sdai",
{wt_daistate_on_sg:w-1});return}e.tW.Fh("sdai",l);F&&(y.J=new g.YE(F));e.policy.K&&(F=y.yl.JK("id")||"",l=((M=y.J)==null?void 0:M.get("id"))||"",F!==l&&e.tW.Fh("stmidmismatch",{cid:F,aid:l}))}else e.J.N!==5&&e.tW.Fh("sdai",{nodec_sq:w,itag:A,st:E.toFixed(3)})}e.policy.IY&&y.QB[0].Ch!==-1&&y.QB[0].Ch<e.rP.L$&&(y=N.J.Tn(e.rP.L$,!1));lz(N,jL(e,y));BT(e.timing);var S;(S=e.U)==null||uus(S,y.yl)}};
xe=function(e,N,y){if(e.policy.j_)return!1;var w;var E=e.J,A=((w=N.N)==null?void 0:w.Ch)||-1;E.N===3&&A+1>=E.j?(E.Fh("sdai",{haltrq:A+1,est:E.j}),w=!1):w=E.N!==2;if(!w||!Fs(N.N?N.N.J.yl:N.J.yl,e.policy,e.j,e.tW.kL())||e.tW.isSuspended&&(!ld(e.schedule)||e.tW.cU))return!1;if(e.policy.j&&Xr>=5)return g.NA(e.tW.Pg),!1;if(e.rP.isManifestless){if(N.K.length>0&&N.N&&N.N.Ch===-1||N.K.length>=e.policy.R7||!e.policy.X1&&N.K.length>0&&!e.policy.U.Z0)return!1;if(N.G)return!e.rP.isLive||!isNaN(e.Hf)}if(dX5(N))return e.logger.debug("Pending request with server-selectable format found"),
!1;if(!N.N){if(!N.J.Yz())return!1;g3(N,e.tW.getCurrentTime())}if(u3(N)&&(N.SL()!==u3(N)||e.tW.isSuspended))return!1;E=(w=e.policy.WV)&&!N.K.length&&ke(N,!0)<Math.min(w,ke(y));w=N.K.length+y.K.length;A=!e.policy.qJ&&((N.K.length?N.K[0].RL():!1)||(y.K.length?y.K[0].RL():!1)||e.rP.isLive);(E||A)&&--w;if(w+1>=e.policy.vy)return!1;w=N.N;if(!w)return!0;w.type===4&&w.J.Yz()&&(N.N=g.Kq(w.J.y5(w)),w=N.N);if(!w.eY()&&!w.J.L2(w))return!1;A=e.rP.Ta||e.rP.j;if(e.rP.isManifestless&&A){A=N.J.index.vY();var T=y.J.index.vY();
A=Math.min(A,T);if(N.J.index.Ms()>0&&A>0&&w.Ch>=A)return N.i9=A,y.i9=A,!1}if(w.J.info.audio&&w.type===4||w.eY())return!1;A=!N.L&&!y.L;if(E=!E)E=w.XT,E=!!(y.N&&!cl(y,y.N)&&y.N.XT<E);T=N===e.videoTrack&&e.policy.i9;return E&&(!e.rP.isManifestless||y.N&&y.N.XT&&w.XT)&&A&&!T||e.policy.SR&&!N.L&&y.L?!1:Px(w)&&w.XT>n_0(e,N)?(n_0(e,N),!1):(e=N.TW)&&e.isLocked()?!1:!0};
n_0=function(e,N){var y=e.J;y=y.J?y.J.Re:null;if(e.policy.i9&&y)return y.startSecs+y.Vj+15;N=D2(e.tW,N);e.policy.Y_>0&&(y=((0,g.iC)()-e.tW.Vy)/1E3,N=Math.min(N,e.policy.Y_+e.policy.vp*y));y=e.tW.getCurrentTime()+N;return e.policy.Oz&&(N=QIF(e.tW)+e.policy.Oz,N<y)?(e.tW.Fh("mrl",{ori:y,mod:N},!0),e.policy.AU&&(e=e.tW,y=(0,g.iC)(),e.Vy=y),N):y};
mXs=function(e,N,y){if(y!==0){a:if(N=N.info,y=y===2,N.J)N=null;else{var w=N.QB[0];if(N.range)var E=cx(N.range.start,Math.min(4096,N.K));else{if(N.N&&N.N.indexOf("/range/")>=0||N.yl.JK("defrag")==="1"||N.yl.JK("otf")==="1"){N=null;break a}E=cx(0,4096)}E=new iH([new Bx(5,w.J,E,"createProbeRequestInfo"+w.L,w.Ch)],N.N);E.q2=y;E.J=N.J;N=E}N&&jL(e,N)}};
jL=function(e,N){e.tW.Dr(N);var y=R03(N),w=e.tW.ND();y={bk:e.schedule,lw:y,bx:Mq5(e.L,y),UT:Xs(N.QB[0]),Vm:F9(N.yl.J),CU:e.policy.K,fd:function(T,p){e.tW.Gt(T,p)}};
if(e.schedule.N.G){var E,A;y.J3=(((E=e.videoTrack.J)==null?void 0:E.info.JM)||0)+(((A=e.audioTrack.J)==null?void 0:A.info.JM)||0)}e.F6&&(y.Ch=N.QB[0].Ch,y.Hf=N.Hf,y.F6=e.F6);w={Ze:GS9(N,e.tW.getCurrentTime()),zt:e.policy.WE&&g4(N)&&N.QB[0].J.info.video?z_M(e.K):void 0,a4:e.policy.i9,poToken:e.tW.rf(),lz:e.tW.HZ(),Tt:e.Tt,Q2:isNaN(e.Q2)?null:e.Q2,E_:e.E_,dM:e.dM,Fb:e.Fb,tC:w};return new v0(e.policy,N,y,e.j,function(T,p){try{a:{var C=T.info.QB[0].J,r=C.info.video?e.videoTrack:e.audioTrack;if(!(T.state>=
2)||T.isComplete()||T.qY()||!(!e.tW.TZ||e.tW.isSuspended||ke(r)>3)){var Y=ZC9(T,e.policy,e.j);Y===1&&(e.qg=!0);mXs(e,T,Y);if(T.isComplete()||T.Ss()&&p<3){if(e.policy.K){var M=T.timing.gL();M.rst=T.state;M.strm=T.xhr.zE();M.cncl=T.xhr&&T.r7.j?1:0;e.tW.Fh("rqs",M)}T.sK&&e.tW.Fh("sbwe3",{},!0)}if(!e.Ss()&&T.state>=2){yds(e.timing,T,C);var l=e.tW;e.Q2&&T.Q7&&l&&(e.Q2=NaN,e.tW.xD(T.Q7),e.tW.WC(),e.tW.Fh("cabrUtcSeek",{mediaTimeSeconds:T.Q7}));T.dj&&e.Q2&&T.dj&&!T.dj.action&&(e.tW.ou(e.Q2),e.Q2=NaN,e.tW.Fh("cabrUtcSeekFallback",
{targetUtcTimeSeconds:e.Q2}));T.RS&&e.tW.DI(T.RS);e.policy.CC&&(e.Fb=T.Fb);if(T.state===3){Pl(r,T);g4(T.info)&&nr(e,r,C,!0);if(e.N){var F=T.info.zz();F&&e.N.Xo(T.info.QB[0].Ch,C.info.id,F)}e.tW.Ga()}else if(T.isComplete()&&T.info.QB[0].type===5){if(T.state!==4)T.Q_()&&e.tW.handleError(T.pw(),T.Cz());else{var S=(T.info.QB[0].J.info.video?e.videoTrack:e.audioTrack).K[0]||null;S&&S instanceof v0&&S.qY()&&S.Py(!0)}T.dispose()}else{T.Q_()||HCJ(e,T);var k;((k=T.zR)==null?0:k.itagDenylist)&&e.tW.gF(T.zR.itagDenylist);
if(T.state===4)QU(e,T),e.J&&T4J(e.J,T.info,e.N);else if(e.policy.oS&&T.bZ()&&!T.isComplete()&&!QU(e,T)&&!T.Q_())break a;T.Q_()&&(Kss(e,T),isNaN(e.Q2)||(e.tW.ou(e.Q2),e.Q2=NaN));e.policy.FZ&&!T.isComplete()?mL(e.tW):e.tW.Ga();var X=xXP(T,e.policy,e.j);mXs(e,T,X)}}}}}catch(d){p=e.Kh?1:0,e.Kh=!0,T=dp(p),p=I2(d,p),e.tW.handleError(p.errorCode,p.details,p.severity),T||e.tW.w4()}},w)};
HCJ=function(e,N){if(N.kP&&N.state>=2&&N.state!==3){var y=N.xhr.getResponseHeader("X-Response-Itag");if(y){e.logger.debug(function(){return"Applying streamer-selected format "+y});
var w=vaJ(e.K,y),E=N.info.K;E&&(E-=w.f1(),w.K=!0,N.info.QB[0].J.K=!1,gE9(N,w.p_(E)),Hl(e.tW,e.videoTrack,w),ITM(e.videoTrack,w),e.tW.k5(w.info.video.quality),(E=N.zm())&&w.info.lastModified&&w.info.lastModified!==+E&&Pl(e.videoTrack,N))}else N.kP=!1}};
Kss=function(e,N){var y=N.info.QB[0].J,w=N.pw();if(F9(y.yl.J)){var E=g.b7(N.Cq(),3);e.tW.Fh("dldbrerr",{em:E||"none"})}E=N.info.QB[0].Ch;var A=iO(e.J,N.info.QB[0].o2,E);w==="net.badstatus"&&(e.Z+=1);if(N.canRetry()&&Kr(e.tW)){if(!(N.info.yl.N>=e.policy.lV&&e.N&&N.info.isDecorated()&&w==="net.badstatus"&&e.N.Ok(A,E))){E=(y.info.video&&y.yl.N>1||N.Ie===410||N.Ie===500||N.Ie===503)&&!(uO(e.K.L).size>0)&&!F9(y.yl.J);A=N.Cz();var T=y.info.video?e.videoTrack:e.audioTrack;E&&(A.stun="1");e.tW.handleError(w,
A);e.Ss()||(E&&(e.logger.debug(function(){return"Stunning format "+y.info.id}),QW(e.K,y)),Pl(T,N),e.tW.Ga())}}else T=1,e.N&&N.info.isDecorated()&&w==="net.badstatus"&&e.N.Ok(A,E)&&(T=0),e.rP.isLive&&N.pw()==="net.badstatus"&&e.Z<=e.policy.Fo*2?(G6J(e.rP),e.rP.Ta||e.rP.isPremiere?tz(e.tW,0,{BY:"badStatusWorkaround"}):e.rP.j?tz(e.tW,e.rP.aq,{BY:"badStatusWorkaround",
Kz:!0}):Wl(e.tW)):e.tW.handleError(w,N.Cz(),T)};
QU=function(e,N){if(e.policy.useUmp&&N.Ss())return!1;try{var y=N.info.QB[0].J,w=y.info.video?e.videoTrack:e.audioTrack;if(e.rP.isManifestless&&w){e.Z=0;w.G&&(N.Ss(),N.isComplete()||N.bZ(),w.G=!1);N.W6()&&e.tW.eE.Kj(1,N.W6());var E=N.Ms(),A=N.CR();Fu(e.rP,E,A)}if(N.info.UT()&&!D$(N.info))for(var T=g.c(N.O$()),p=T.next();!p.done;p=T.next())lT0(w,p.value);for(e.tW.getCurrentTime();w.K.length&&w.K[0].state===4;){var C=w.K.shift();MIE(w,C);w.Et=C.yu()}w.K.length&&MIE(w,w.K[0]);var r=!!u3(w);r&&N instanceof
IE&&(y.info.qG()?GDs(e.timing):Rv5(e.timing));return r}catch(Y){N=N.Cz();N.origin="hrhs";a:{e=e.tW;y=Y;if(y instanceof Error){N.msg||(N.msg=""+y.message);N.name||(N.name=""+y.name);if(y instanceof g.Gh&&y.args)for(w=g.c(Object.entries(y.args)),E=w.next();!E.done;E=w.next())A=g.c(E.value),E=A.next().value,A=A.next().value,N["arg"+E]=""+A;g.uA(y);if(y.level==="WARNING"){e.JW.P_(N);break a}}e.handleError("fmt.unplayable",N,1)}return!1}};
WsF=function(e){var N=e.videoTrack.J.index;e.F6=new tIM({o1:e.policy.o1,Z0:e.policy.U.Z0,eV:N.Mz(),vY:function(){return N.vY()},
IX:function(){return N.IX()}})};
nr=function(e,N,y,w){if(!(y.Yz()||y.hw()||y.K||!Fs(y.yl,e.policy,e.j)||y.info.Iq==="f"||e.policy.J)){if(w){w=e.L;var E=y.info;w=lMM(w,E.video?w.policy.e0:w.policy.Li,E.JM)}else w=0;w=y.p_(w);e=jL(e,w);D$(w)&&lz(N,e);y.K=!0}};
Oe=function(e,N,y,w,E,A,T,p){g.x.call(this);var C=this;this.tW=e;this.qK=N;this.videoTrack=y;this.audioTrack=w;this.rP=E;this.D=A;this.isAudioOnly=T;this.G=p;this.N=f3;this.qg=!1;this.logger=new g.RE("sabr");this.U=this.Kh=this.Ng=!1;this.videoInfos=this.L=this.D.videoInfos;this.K=this.l9=this.D.J;this.J=new fP(N,A,function(r,Y){C.tW.Fh(r,Y)});
this.qK.Sw||OC5(this);this.isAudioOnly&&Rnn(this,this.rP.J["0"])};
GEJ=function(e,N){var y=[];N=g.c(N);for(var w=N.next();!w.done;w=N.next())y.push(g.Ld(w.value,e.rP.Cx));return y};
Rnn=function(e,N,y){N!==e.j&&(e.j&&(e.qg=!0),e.j=N,e.vr(N,e.videoTrack,y))};
sI5=function(e,N){e.logger.debug("setConstraint: "+ax(N));tW(e.qK)&&(e.Kh=N.reason==="m"||N.reason==="l"?!0:!1);N.reason==="m"?N.isLocked()&&UX5(e,N.J):LsH(e,N)?Rl(e,N.N,N.J):e.videoInfos=e.L;e.N=N};
LsH=function(e,N){return e.qK.Z2&&N.reason==="b"||e.qK.hv?!1:e.qK.XR?!0:N.reason==="l"||N.reason==="b"||N.reason==="o"};
aTJ=function(e,N){return N.isLocked()&&e.J.N||e.N===void 0?!1:N.Bw(e.N)};
e$E=function(e,N){var y,w=(y=e.j)==null?void 0:y.info.video.J;return e.qg?!0:e.j?N!==w?!0:!e.J.N||e.qK.kX&&e.J.J===e.j.info.itag?!1:!0:!1};
UX5=function(e,N){var y=e.J.J;if(y){e.videoInfos=e.L;var w=g.Ok(e.videoInfos,function(E){return E.id===y});
w&&w.video.J===N?e.videoInfos=[w]:(w=e.videoInfos.map(function(E){return E.id}),e.tW.Fh("sabrpf",{pfid:""+y,
vfids:""+w.join(".")}),Rl(e,N,N),q4(e.J,""))}else Rl(e,N,N)};
Rl=function(e,N,y){e.videoInfos=e.L;e.videoInfos=g.CG(e.videoInfos,function(w){return w.video.J>=N&&w.video.J<=y})};
OC5=function(e){var N=rd_(e.J,e.G);N&&(e.K=[N])};
Nw0=function(e,N,y){if(e.qK.Sw){if(e.G){var w=g.CG(e.K,function(E){return E.id===e.G});
return Ym(w,y).includes(N)}w=g.CG(e.K,function(E){var A;return!((A=E.Vl)==null||!A.isDefault)});
if(w.length>0)return Ym(w,y).includes(N)}return Ym(e.K,y).includes(N)};
Ym=function(e,N){return e.map(function(y){return Sl(g.Ld(y,N))})};
yR1=function(e){var N;if((N=e.N)==null?0:N.isLocked())return e.videoInfos;var y=uO(e.J);N=g.CG(e.videoInfos,function(w){return w.JM>e.qK.JM?!1:!y.has(w.id)});
CHH(e.J)&&(N=g.CG(N,function(w){return w.video.width<=854&&w.video.height<=480}));
return N};
AR5=function(e,N,y,w){var E=e.rP,A=e.JW.getVideoData(),T=g.xK(A),p=e.sJ,C=pP({Ot:A.X(),JW:e.JW,F7:e.F7,qK:e.qK,Vy:e.Vy,pG:e.pG,rE:e.rE,Ka:e.Ka,ue:e.ue,isPrefetch:e.isPrefetch,RW:e.RW,sabrLicenseConstraint:A.sabrLicenseConstraint,XY:e.XY,Td:e.Td,mV:e.mV,nf:e.nf,E1B:!!p}),r=CP(A,e.tC,e.nextRequestPolicy,e.UH,e.PS,e.qXP,e.J5);w&&y&&(w=r.Y6?r.Y6.map(function(k){return k.type}):[],y("ssap",{stmctxt:w.join("_"),
unsntctxt:r.Ds?r.Ds.join("_"):""}));w=e.DT;var Y=e.pH;if(Y===void 0&&w===void 0){var M;Y=wg5(E.Cx,(M=e.Zn)==null?void 0:M.video);var l;w=wg5(E.Cx,(l=e.Zn)==null?void 0:l.audio)}if(A.E_)var F=A.E_;A={IS:C,kK:e.kK,DT:w,pH:Y,sJ:p,videoPlaybackUstreamerConfig:F,v4:r};e.Ag&&(A.Ag=e.Ag);if(T&&N){T=new Map;var S=g.c(E.Rq);for(p=S.next();!p.done;p=S.next())p=p.value,(C=E.Zl[gHM(E,p)]||"")?(T.has(C)||T.set(C,[]),T.get(C).push(p)):y&&y("ssap",{nocid4fmt:(p.itag||"")+"_"+(p.lmt||0)+"_"+(p.xtags||"")});E=new Map;
S=g.c(e.gT);for(p=S.next();!p.done;p=S.next())p=p.value,C=p.startTimeMs||0,r=void 0,M=(r=N)==null?void 0:P0(r,C),r=M.clipId,M=M.N3,r?(E.has(r)||(l=T.get(r)||[],E.set(r,{clipId:r,gT:[],xL:l})),M!==0&&(p.startTimeMs=C-M),E.get(r).gT.push(p)):y&&(r=void 0,y("ssap",{nocid4range:"1",fmt:((r=p.formatId)==null?void 0:r.itag)||"",st:C.toFixed(3),d:(p.durationMs||0).toFixed(3),timeline:Mo(N)}));A.iW=[];E=g.c(E.entries());for(T=E.next();!T.done;T=E.next())T=g.c(T.value),T.next(),T=T.next().value,A.iW.push(T);
if(e.gT.length&&!A.iW.length){y&&y("ssap",{nobfrange:"1",br:Ej5(e.gT),timeline:Mo(N)});return}e.g8&&(A.g8=e.g8);e.Wz&&(A.Wz=e.Wz)}else A.gT=e.gT,A.xL=E.Rq,T&&((S=e.gT)==null?void 0:S.length)>0&&!N&&y&&y("ssap",{bldmistlm:"1"});return A};
wg5=function(e,N){return N?[g.Ld(N.info,e)]:[]};
Ej5=function(e){var N="";e=g.c(e);for(var y=e.next();!y.done;y=e.next()){y=y.value;var w=void 0,E=void 0,A=void 0;N+="fmt."+(((w=y.formatId)==null?void 0:w.itag)||"")+"_"+(((E=y.formatId)==null?void 0:E.lmt)||0)+"_"+(((A=y.formatId)==null?void 0:A.xtags)||"")+";st."+(y.startTimeMs||0).toFixed(3)+";d."+(y.durationMs||0).toFixed(3)+";"}return N};
ls=function(e,N,y){var w=this;this.requestType=e;this.yl=N;this.qU=y;this.N=null;this.lk={xYZ:function(){var E;return(E=w.data)==null?void 0:E.isPrefetch},
PS:function(){var E;return(E=w.data)==null?void 0:E.PS}}};
H_M=function(e,N,y){N=MZ(e.yl,Tw3(e,N,y),N);e.aN()&&N.set("probe","1");return N};
Tw3=function(e,N,y){e.q2===void 0&&(e.q2=e.yl.q2(N,y));return e.q2};
JR1=function(e){var N,y;return((N=e.J)==null?void 0:(y=N.IS)==null?void 0:y.Sb)||0};
pgP=function(e){var N,y;return!!((N=e.J)==null?0:(y=N.IS)==null?0:y.XY)};
Cd0=function(e){var N={},y=[],w=[];if(!e.data)return N;for(var E=0;E<e.data.gT.length;E++){var A=e.data.gT[E],T=void 0;y.push("i."+((T=A.formatId)==null?void 0:T.itag)+"_st."+(A.startTimeMs+"_e."+(A.startTimeMs+A.durationMs)+"_d."+A.durationMs)+("_sn."+A.qO)+("_en."+A.wQ))}for(E=0;E<e.data.kK.length;E++){A=e.data.kK[E];var p=T=void 0,C=void 0,r=void 0;w.push("i."+((T=A.formatId)==null?void 0:T.itag)+"_sn."+A.sequenceNumber+"_sl."+(A.KO||NaN)+"_lb."+A.wC+"_tr.s_"+((p=A.mZ)==null?void 0:p.startTicks)+
"_d_"+((C=A.mZ)==null?void 0:C.fV)+"_t_"+((r=A.mZ)==null?void 0:r.timescale)+"_ed_"+A.Nm)}N.ptime=JR1(e);N.rtype=e.requestType;N.brl=y.join(";");N.ps=w.join(";");return N};
rRn=function(e){if(e.AA)return{yW:g.Y2(e.experiments,"html5_future_encryptor_auto_select_js_max_size_bytes"),QR:g.Y2(e.experiments,"html5_future_encryptor_auto_select_wasm_max_size_bytes")}};
FE=function(e,N){this.uB=e;this.cipher=this.uB.exports.AES128CTRCipher_create(N.byteOffset)};
SD=function(e){return function(N){return{profile:e,XA:Math.ceil(N.byteLength/16)}}};
o9=function(e,N){this.key=e;this.subtleCrypto=N;this.J=!1};
$_5=function(e){var N=globalThis.crypto.subtle;N=N===void 0?window.crypto.subtle:N;return A$(wQ(function(){return N.importKey("raw",e,"AES-CTR",!1,["encrypt"]).catch(function(y){return Promise.reject(y.name+": "+y.message)})}),function(y){return new o9(y,N)})};
bs=function(e){this.J=!1;this.N=new SA(e)};
hJ=function(e,N){this.uB=e;var y=e.MJ(N);this.J=new FE(e,y!=null?y:N);y&&e.free(y.byteOffset)};
YI1=function(e){g.uA("wasm encryptor failed: "+e);throw e;};
cO=function(e,N,y){var w=this;this.key=e;this.j=this.L=!1;this.yW=32768;this.QR=131072;N==null||A$(N,function(E){w.J=new hJ(E,w.key);w.j=E.Um});
if(y==null?0:y.QR)this.QR=y.QR;if(y==null?0:y.yW)this.yW=y.yW};
MVH=function(e,N,y){e.N||(e.N=new bs(e.key));return Tm(e.N.encrypt(N,y),YI1)};
lWM=function(e,N,y){if(!e.K){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return yA("native encryptor unavailable");e.K=$_5(e.key)}return Tm(A$(e.K,function(w){return w.encrypt(N,y)}),YI1)};
km=function(e,N,y){this.J=e;this.uB=N;this.j=y;this.K=!1;this.iv=(0,g.rB)(Xd(16))};
FTM=function(e){e.N||(e.N=new cO(e.J.J,e.uB,e.j));return e.N};
SI5=function(e,N){var y;return g.f(function(w){(0,g.iC)();y=zy1(e.J);return w.return(y.encrypt(N,e.iv))})};
oj9=function(e,N){var y;return g.f(function(w){(0,g.iC)();var E=e.J;E.j||(E.j=new Kq_(E.K));y=E.j;return w.return(Rln(y,N,e.iv))})};
baF=function(e,N,y){var w;return g.f(function(E){(0,g.iC)();w=zy1(e.J);return E.return(w.decrypt(N,y))})};
BO=function(e){g.x.call(this);var N=this;this.ph=e;this.J=new Map;this.j=[];this.N=this.ph.experiments.gP("html5_onesie_trusted_hosts_for_all")||!cM();this.D=g.Y2(this.ph.experiments,"html5_onesie_prewarm_interval_ms");this.U=new g.e6(this.G,this.D,this);this.Z=-1;this.lk={aFZ:function(){return N.J},
Zmh:function(){return N.L},
S0t:function(){return h$F}};
g.Q(this,this.U);w$s(this,g.qI("yt-player-bandaid-host"));this.L=this.load();this.D&&this.L.then(function(){N.G()})};
w$s=function(e,N){var y=N==null?void 0:N.primary;e.K(0,y);y=y?cRs(y):void 0;e.K(2,y);e.K(1,N==null?void 0:N.secondary)};
XE=function(e,N){return new g.YE("https://"+N+e.ph.ub.baseUrl)};
kX5=function(e,N){e="https://"+lN(N.location)+"/initplayback?c="+nC(e.ph)+"&owc=1";S3(e,"pw",function(y){y.ht=N.J})};
PO=function(e,N,y,w){S3("https://"+N+"/videoplayback?probe=1",y,function(E){!w.T("html5_onesie_host_racing")||w.videoData.isLivePlayback||w.T("html5_onesie_probe_ec_hosts")||w.oA||w.n1();e.j.push(E)},function(E){e.j.push(E.details)})};
cRs=function(e){return e.replace(/(\d+)---/g,function(N,y){N=Number(y);return(N===1?2:N-1)+"---"})};
dE=function(e,N){var y,w,E,A,T,p,C,r;return g.f(function(Y){if(Y.J==1){y=XE(e,"redirector.googlevideo.com");y.set("alr","yes");y.set("id",""+Math.round(Math.random()*1E5));if(N===1||N===2)y.set("cmo=sensitive_content","yes"),y.set("sc","yes");N===2&&y.set("cmo=td","c.youtube.com");w={format:"RAW",timeout:5E3};return g.D(Y,g2(y.nC(),w),2)}E=Y.N;if(E.xhr.status!==200||!E.xhr.responseText)return Y.return(Promise.reject(new g.Gh("b204258371_no_host",y.nC(),E.xhr.status)));A=new g.YE(E.xhr.responseText);
T=lN(A);p=A.get("ms");C=XE(e,T);r=A.get("mm");C.set("ms",p);C.set("mm",r);return T&&yiM(T)?N!==2||er(T)?Y.return(C):Y.return(Promise.reject(new g.Gh("b204258371_untrusted",T,p))):Y.return(Promise.reject(new g.Gh("b204258371_invalid",T,p)))})};
BwP=function(e){var N=e.j;e.j=[];return N};
yiM=function(e){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(e)};
er=function(e){var N=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(e)&&!N.test(e)};
XgH=function(e,N){this.location=e;this.J=N};
I9=function(e){this.NA=e;this.N=!1;this.J=[]};
zG=function(e){for(;e.J.length&&!e.J[0].isEncrypted;){var N=e.J.shift(),y=N.videoId,w=N.mj,E=N.formatId,A=N.buffer;N=N.fB;if(A)N=void 0,(N=vO(e.NA.cY,y))==null||cT(N,w,E,A);else if(N)e.NA.cY.Km(y,w,E);else if(w=e.NA,w.J[E].bj=!0,y=vO(w.cY,y),y==null?0:y.XZ.has(E))y==null||Sr(y,E)}};
g.us=function(e){this.data=e;this.J=0;this.j=!1;this.K=0;this.error=!1;this.register=this.N=0;if(is.length===0){is.length=288;is.fill(8);for(e=144;e<280;e++)is[e]=e<=255?9:7;Dj.length=32;Dj.fill(5);gE.length=286;gE.fill(0);for(e=261;e<285;e++)gE[e]=Math.floor((e-261)/4);VB[257]=3;for(e=258;e<285;e++){var N=VB[e-1];N+=1<<gE[e-1];VB[e]=N}VB[285]=258;for(e=0;e<30;e++)fH[e]=e<=3?0:Math.floor((e-2)/2);for(e=tJ[0]=1;e<30;e++)N=tJ[e-1],N+=1<<fH[e-1],tJ[e]=N}e=100+7*this.data.length;this.data[0]===31&&this.data[1]===
139&&(e=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(e)};
g.jD=function(e){for(;!e.j&&!e.error;){var N=e;N.j=!!qo(N,1);switch(qo(N,2)){case 2:var y=[],w=[];w.length=19;w.fill(0);var E=qo(N,5)+257;var A=qo(N,5)+1;for(var T=qo(N,4)+4,p=0;p<T;p++)w[Pd5[p]]=qo(N,3);w=Zj(w);for(T=E+A;y.length<T;){p=d_5(N,w);switch(p){case 16:p=y[y.length-1];var C=qo(N,2)+3;break;case 17:p=0;C=qo(N,3)+3;break;case 18:p=0;C=qo(N,7)+11;break;default:C=1}for(;C>0;C--)y.push(p)}y.length!==T?N.error=!0:(A=y.slice(-A),y.length=E,IW1(N,y,A));break;case 1:IW1(N,is,Dj);break;case 0:xm(N,
N.J&7);y=qo(N,16);E=qo(N,16);(y^E)!==65535&&(N.error=!0);N.output.set(N.data.subarray(N.N,N.N+y),N.K);N.N+=y;N.K+=y;break;default:N.error=!0}e.K>e.output.length&&(e.output=new Uint8Array(e.K*2),e.K=0,e.N=0,e.j=!1,e.J=0,e.register=0)}e.output.length!==e.K&&(e.output=e.output.subarray(0,e.K));return e.error?new Uint8Array(0):e.output};
IW1=function(e,N,y){N=Zj(N);y=Zj(y);for(var w=e.data,E=e.output,A=e.K,T=e.register,p=e.J,C=e.N;;){if(p<15){if(C>w.length){e.error=!0;break}T|=(w[C+1]<<8)+w[C]<<p;C+=2;p+=16}var r=N[T&127];if(r<0)for(T>>=7;r<0;)r=N[(T&1)-r],T>>=1;else T>>=r&15;p-=r&15;r>>=4;if(r<256)E[A++]=r;else if(e.register=T,e.J=p,e.N=C,r>256){T=VB[r];T+=qo(e,gE[r]);C=d_5(e,y);p=tJ[C];p+=qo(e,fH[C]);if(vj9&&T<p)p=A-p,E.copyWithin(A,p,p+T);else for(C=A+T,r=A;r<C;r+=4)E[r]=E[r-p],E[r+1]=E[r-p+1],E[r+2]=E[r-p+2],E[r+3]=E[r-p+3];A+=
T;T=e.register;p=e.J;C=e.N}else break}e.K=A};
d_5=function(e,N){if(e.J<7){var y=e.data,w=e.N;w>y.length&&(e.error=!0);e.register|=(y[w+1]<<8)+y[w]<<e.J;e.N+=2;e.J+=16}y=N[e.register&127];if(y>=0)return xm(e,y&15),y>>4;for(xm(e,7);y<0;)y=N[qo(e,1)-y];return y>>4};
qo=function(e,N){for(;e.J<N;){if(e.N>=e.data.length)return e.error=!0,0;e.register|=e.data[e.N++]<<e.J;e.J+=8}var y=e.register&(1<<N)-1;e.register>>=N;e.J-=N;return y};
xm=function(e,N){e.J-=N;e.register>>=N};
Zj=function(e){for(var N=[],y=g.c(e),w=y.next();!w.done;w=y.next())w=w.value,N[w]||(N[w]=0),N[w]++;var E=N[0]=0;y=[];var A=0;w=0;for(var T=1;T<N.length;T++)N[T]?w=T:N[T]=0,E=E+N[T-1]<<1,y[T]=E,T>7&&(A+=N[T]);for(E=1;E<A;)E<<=1;N=128;w=new Int16Array(128+(E+w)*2);for(A=0;A<e.length;A++)if(T=e[A]){for(var p=y[T]++,C=E=0;C<T;C++)E=E<<1|p>>C&1;p=A<<4|T;if(T<=7)for(C=1<<7-T;C--;)w[C<<T|E]=p;else{C=E&127;T-=7;for(E>>=7;T--;){w[C]||(w[C]=-N,N+=2);var r=E&1;E>>=1;C=r-w[C]}w[C]=p}}return w};
z$F=function(e){var N,y,w,E,A,T,p;return g.f(function(C){switch(C.J){case 1:if(!("DecompressionStream"in window))return C.return(g.jD(new g.us(e)));N=new DecompressionStream("gzip");y=N.writable.getWriter();y.write(e);y.close();w=N.readable.getReader();E=new oR([]);case 2:return g.D(C,w.read(),5);case 5:A=C.N;T=A.value;if(p=A.done){C.u9(4);break}E.append(T);C.u9(2);break;case 4:return C.return(E.YX())}})};
nH=function(e,N){this.J=e;this.uB=N};
ia_=function(e){return Tm(Tm(wQ(function(){return A$(e.uB,function(N){return e.Ln(e.J,N)})}),function(){return e.r5(e.J)}),function(){return e.ZJ(e.J)})};
D_9=function(e,N){return ia_(new nH(e,N))};
QB=function(e){YX.call(this,"onesie");this.cY=e;this.J={};this.K=!0;this.j=null;this.queue=new I9(this);this.L={};this.Z=UT9(function(N,y){var w=this;return function A(){var T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn;return MM_(A,function(eM){switch(eM.J){case 1:g.kJ(eM,2);w.cY.Ii();T=function(H){return function(a){throw{name:H,message:a};}};
p=N.YX();g.c5(eM,4,5);if(!y){eM.u9(7);break}return CE5(eM,Tm(gj1(w.cY,p,w.iv),T("DecryptError")).wait(),8);case 8:C=eM.N;case 7:if(!w.cY.enableCompression){eM.u9(9);break}return CE5(eM,Tm(D_9((M=C)!=null?M:p,w.cY.X().AA),T("DecompressError")).wait(),10);case 10:r=eM.N;case 9:Y=n2((F=(l=r)!=null?l:C)!=null?F:p,G5H);case 5:g.P5(eM,0,2);if(k=(S=w.cY.X())==null?void 0:S.uB)((X=C)==null?void 0:X.buffer)===k.exports.memory.buffer&&k.free(C.byteOffset),((d=r)==null?void 0:d.buffer)===k.exports.memory.buffer&&
k.free(r.byteOffset);g.d_(eM,6);break;case 4:throw V=v=g.XH(eM),new P3("onesie.response.parse",{name:(O=V.name)!=null?O:"unknown",message:(E9=V.message)!=null?E9:"unknown",wasm:((Z=w.cY.X())==null?0:Z.uB)?((n=w.cY.X())==null?0:(R=n.uB)==null?0:R.Um)?"1js":"1":"0",enc:w.K,gz:w.cY.enableCompression,webcrypto:!!cM()});case 6:return VVH(Y),Jn=g.IR(Y.body),eM.return(Jn);case 2:g.P5(eM),g.d_(eM,0)}})}()})};
mp=function(e){var N=e.queue;N.J.length&&N.J[0].isEncrypted&&!N.N&&(N.J.length=0);N=g.c(Object.keys(e.J));for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=e.J[y];if(!w.bj){var E=e.queue;E.J.push({videoId:w.videoId,formatId:y,isEncrypted:!1});E.N||zG(E)}}};
tV5=function(e,N){var y=N.getLength(),w=!1;switch(e.j){case 0:e.cY.T("html5_future_onesie_ump_handler_on_player_response")?Tm(A$(e.Z(N,e.K),function(E){fW5(e.cY,E)}),function(E){e.cY.hA(E)}):e.Ii(N,e.K).then(function(E){fW5(e.cY,E)},function(E){e.cY.hA(E)});
break;case 2:e.lB("ormk");N=N.YX();e.queue.decrypt(N);break;default:w=!0}e.cY.gK&&e.cY.Fh("ombup","id.11;pt."+e.j+";len."+y+(w?";ignored.1":""));e.j=null};
VVH=function(e){if(e.e7!==1)throw new P3("onesie.response.badproxystatus",{st:e.e7,webcrypto:!!cM(),textencoder:!!g.xJ.TextEncoder});if(e.cj!==200)throw new P3("onesie.response.badstatus",{st:e.cj});};
unM=function(e){return new Promise(function(N){setTimeout(N,e)})};
qI9=function(e,N){var y=e.X();y=e.NK&&y.T("html5_onesie_preload_use_content_owner");var w=e.K4,E=ms(N.ph.experiments,"debug_bandaid_hostname");if(E)N=XE(N,E);else if((y===void 0?0:y)&&(w==null?0:w.url)&&!N.N){var A=lN(new g.YE(w.url));N=XE(N,A)}else N=(A=N.J.get(0))==null?void 0:A.location.clone();if(N&&e.videoId){A=sh(e.videoId);e=[];if(A)for(A=g.c(A),y=A.next();!y.done;y=A.next())e.push(y.value.toString(16).padStart(2,"0"));N.set("id",e.join(""));return N}};
Za_=function(e,N,y){y=y===void 0?0:y;var w,E;return g.f(function(A){if(A.J==1)return w=[],w.push(N.load()),y>0&&w.push(unM(y)),g.D(A,Promise.race(w),2);E=qI9(e,N);return A.return(E)})};
x_P=function(e,N,y,w){w=w===void 0?!1:w;e.set("cpn",N.clientPlaybackNonce);e.set("opr","1");var E=N.X();e.set("por","1");cM()||e.set("onem","1");N.startSeconds>0&&e.set("osts",""+N.startSeconds);w||(E.T("html5_onesie_disable_partial_segments")&&e.set("oses","1"),N=E.T("html5_gapless_onesie_no_media_bytes")&&Rf(N)&&N.NK,y&&!N?(N=y.audio,e.set("pvi",y.video.join(",")),E.T("html5_onesie_disable_audio_bytes")||e.set("pai",N.join(",")),QY||e.set("osh","1")):(e.set("oad","0"),e.set("ovd","0"),e.set("oaad",
"0"),e.set("oavd","0")))};
jK1=function(e,N,y,w,E){E=E===void 0?!1:E;var A="https://youtubei.googleapis.com/youtubei/"+N.xI.innertubeApiVersion+"/player",T=[{name:"Content-Type",value:"application/json"}];w&&T.push({name:"Authorization",value:"Bearer "+w});T.push({name:"User-Agent",value:g.zw()});g.Lb("EOM_VISITOR_DATA")?T.push({name:"X-Goog-EOM-Visitor-Id",value:g.Lb("EOM_VISITOR_DATA")}):(y=y.visitorData||g.Lb("VISITOR_DATA"))&&T.push({name:"X-Goog-Visitor-Id",value:y});(y=g.Lb("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&T.push({name:"X-YouTube-Lava-Device-Context",
value:y});(N=ms(N.experiments,"debug_sherlog_username"))&&T.push({name:"X-Youtube-Sherlog-Username",value:N});e=iI(JSON.stringify(e));return{url:A,QU:T,postBody:e,VNk:E,n8:E}};
QKE=function(e,N,y,w,E,A){var T=g.A5(e,RsE,e.n8?void 0:y.uB),p={encryptedClientKey:N.J.encryptedClientKey,Dq:!0,M_:!0,zF:nj1(y,!!e.n8),dw:y.experiments.gP("html5_use_jsonformatter_to_parse_player_response")};if(e.n8)p.Y4q=T;else{e=N.encrypt(T);var C;if(((C=y.uB)==null?void 0:C.exports.memory.buffer)===T.buffer&&e.byteOffset!==T.byteOffset){var r;(r=y.uB)==null||r.free(T.byteOffset)}var Y;e=((Y=y.uB)==null?void 0:Y.F4(e))||e;T=p.IW=e;(0,g.iC)();T=HE0(new m69(N.J.K),T,N.iv);p.y4=T;p.iv=N.iv}N=w.getVideoData();
y=pP({Ot:y,JW:w,F7:N.startSeconds*1E3});E={N0:p,IS:y,onesieUstreamerConfig:E,eL:A,v4:CP(N)};N.reloadPlaybackParams&&(E.reloadPlaybackParams=N.reloadPlaybackParams);return E};
m_n=function(e,N,y){var w,E,A;return g.f(function(T){if(T.J==1)return w=g.A5(N,RsE),g.D(T,SI5(y,w),2);if(T.J!=3)return E=T.N,g.D(T,oj9(y,E),3);A=T.N;return T.return({IW:E,encryptedClientKey:y.J.encryptedClientKey,iv:y.iv,y4:A,Dq:!0,M_:!0,zF:nj1(e,!!N.n8),dw:e.experiments.gP("html5_use_jsonformatter_to_parse_player_response")})})};
HaE=function(e,N,y,w,E,A){var T,p,C,r;return g.f(function(Y){if(Y.J==1)return g.D(Y,m_n(y,e,N),2);T=Y.N;p=w.getVideoData();C=pP({Ot:y,JW:w,F7:p.startSeconds*1E3});r={N0:T,IS:C,onesieUstreamerConfig:E,eL:A,v4:CP(p)};p.reloadPlaybackParams&&(r.reloadPlaybackParams=p.reloadPlaybackParams);return Y.return(r)})};
nj1=function(e,N){e=M_(e.schedule,!0);N=N||!!cM()&&e>1572864;return"DecompressionStream"in window||!N};
KH=function(e,N){g.x.call(this);var y=this;this.JW=e;this.playerRequest=N;this.ph=this.JW.X();this.videoData=this.JW.getVideoData();this.logger=new g.RE("onesie");this.gK=this.ph.B9();this.Fx=this.ph.ub;this.p8=new km(this.Fx.J,this.ph.AA,rRn(this.ph));this.xhr=null;this.state=1;this.P7=new O3;this.h8=!1;this.playerResponse="";this.uI=new mA(this);this.NA=new QB(this);this.nH=this.ph.T("html5_onesie_check_timeout");this.ZY=new g.e6(this.Ba,500,this);this.OJ=new g.e6(this.n1,1E4,this);this.fP=new g.e6(function(){if(!y.isComplete()){var w=
HO(y);y.hA(new P3("net.timeout",w))}},g.Y2(this.ph.experiments,"html5_onesie_request_timeout_ms"));
this.Wd=new g.e6(this.uz9,2E3,this);this.Jc="";this.oA=this.UC=!1;this.Uk=this.JW.HZ();this.t9="";this.vS=this.T("html5_onesie_wait_for_media_availability");this.enableCompression=this.UI=this.Ke=!1;this.dR=[];this.qF=this.d4=-1;g.Q(this.videoData,this);g.Q(this,this.ZY);g.Q(this,this.OJ);g.Q(this,this.Wd);g.Q(this,this.p8);e=WU();QY&&e&&!this.ph.T("html5_disable_onesie_media_bytes")&&(this.ZM=new Map);this.uH=new Map;this.MV=new Map;this.oa=new Map;this.H6=new Map};
vO=function(e,N){var y;return(y=e.ZM)==null?void 0:y.get(N)};
WTH=function(e,N,y){var w;return g.f(function(E){if(E.J==1)return e.lB("oprd_s"),KT3(e)?g.D(E,baF(e.p8,N,y),3):(w=e.p8.decrypt(N,y),E.u9(2));E.J!=2&&(w=E.N);e.lB("oprd_c");return E.return(w)})};
gj1=function(e,N,y){e.lB("oprd_s");N=FTM(e.p8).encrypt(N,y);A$(N,function(){e.lB("oprd_c")});
return N};
OaM=function(e){return e.T("html5_onesie_host_probing")||e.gK?QY:!1};
fW5=function(e,N){e.lB("oprr");e.playerResponse=N;e.UI||(e.vS=!1);WO(e)};
WO=function(e){if(!e.playerResponse)return!1;if(e.Ke)return!0;var N=e.videoData.T("html5_onesie_audio_only_playback")&&Gr(e.videoData);if(e.ZM&&e.vS){if(!e.ZM.has(e.Jc))return!1;var y=e.ZM.get(e.Jc),w;if(w=y){w=!1;for(var E=g.c(y.XZ.keys()),A=E.next();!A.done;A=E.next())if(A=y.XZ.get(A.value))for(var T=g.c(A.Yf),p=T.next();!p.done;p=T.next())p.value.kS>0&&(A.qG?w=!0:N=!0);w=!(N&&w)}if(w)return!1}e.lB("ofr");e.P7.resolve(e.playerResponse);if(!e.nH){var C;(C=e.fP)==null||C.start();e.OJ.start()}return e.Ke=
!0};
GXM=function(e){if(e.ZM&&!e.T("html5_onesie_media_capabilities")){e.lB("ogsf_s");var N=ciM(e.JW.getVideoData(),function(w,E){e.Fh(w,E)}),y=R$P(e.JW);
N.video=$a_(y,N.video);e.lB("ogsf_c");if(N.video.length)return N;e.Fh("ombspf","l."+y.N+";u."+y.J+";o."+y.K+";r."+y.reason)}};
KT3=function(e,N){return e.T("html5_onesie_sync_request_encryption")||(N==null?0:N.n8)||g.mT(e.ph)&&e.T("html5_embed_onesie_use_sync_encryption")?!1:!!cM()};
HO=function(e){if(!e.Aa)return{};var N=e.Aa.gL(),y;N.d=(y=e.Aa.Rq)==null?void 0:y.jY();N.shost=e.Na;N.ty="o";return N};
U_E=function(e,N){var y,w;(w=(e=(y=e.ZM)==null?void 0:y.get(N))==null)||(N=e.K?!1:e.K=!0,w=!N);return!w};
OB=function(e,N,y,w,E,A,T,p,C,r,Y){g.x.call(this);var M=this;this.JW=e;this.tW=N;this.policy=y;this.audioTrack=w;this.videoTrack=E;this.rP=A;this.bk=T;this.Wk=p;this.K=C;this.timing=r;this.D=Y;this.J=[];this.Z={};this.Et=this.Bk=!1;this.UH=new Set;this.L=this.Zl=this.Ng=this.ue=0;this.j=null;this.qg={gT:[],kK:[]};this.l9={gT:[],kK:[]};this.G=null;this.aq=[];this.lk={e4t:function(){return M.J},
w7P:function(){return M.Z},
zJZ:function(){M.J.length=0},
R4g:function(){return M.UH},
cph:function(){return M.Ng},
qfP:function(l){M.Ng=l},
ucq:function(l){M.L=l},
b7:function(l){M.G=l}};
this.videoData=this.JW.getVideoData();this.policy.fl&&(this.Rq=new qN(this.tW,this.policy,this.bk),g.Q(this,this.Rq))};
aW_=function(e,N){N=N===void 0?!1:N;if(LTs(e,N)){e.policy.G&&e.tW.Fh("sabrcrq",{create:1});var y=new ls(0,e.rP.U,e);e.policy.Fr>0&&e.L++;N=sKn(e,y,N);e.J.push(N);var w;(w=e.Rq)==null||uus(w,e.rP.U)}};
wHP=function(e,N){var y=R9(e);if(e.policy.Gg){var w=e.qg;var E=e.l9}else w=GG(e,e.audioTrack),E=GG(e,e.videoTrack);var A=[].concat(g.B(w.gT),g.B(E.gT));eLH(e)&&A.push.apply(A,g.B(e.aq));var T=[].concat(g.B(w.kK),g.B(E.kK)),p=e.tW.ND(),C,r,Y=e.JW,M=e.rP,l=e.N,F=e.UH,S=e.policy,k=e.tW.Vy,X=QIF(e.tW)*1E3,d=(C=e.i9)==null?void 0:C.rE;C=(r=e.i9)==null?void 0:r.Ka;var v;r=Number((v=e.K.j)==null?void 0:v.info.itag)||0;var V;v=Number((V=e.K.Z)==null?void 0:V.info.itag)||0;N={JW:Y,rP:M,gT:A,kK:T,F7:y,nextRequestPolicy:l,
UH:F,qK:S,Vy:k,pG:X,rE:d,Ka:C,ue:e.ue,isPrefetch:N||e.tW.isSuspended,g8:r,Wz:v,tC:p,J5:e.JW.VF()};y=e.tW.rf();A=sh(y);y&&(N.PS=A);if(y=e.JW.F2())N.XY=y*1E3;var Z;y=e.K;A=y.Ng;if((y.qK.N&&y.qK.D7||((Z=y.qK)==null?0:Z.J&&Z.DD))&&!A)for(Z=g.c(y.K),T=Z.next();!T.done;T=Z.next())if(T.value.Vl){A=!0;break}Z=tW(y.qK)&&!A?[]:GEJ(y,y.K);N.DT=Z;Z=e.K;tW(Z.qK)&&!Z.Kh?Z=[]:(y=yR1(Z),y.length===0&&(y=Z.L),Z=GEJ(Z,y));N.pH=Z;N.sJ=eLH(e)?[e.G]:void 0;e.policy.TH&&(N.mV=N85(e.tW,e.audioTrack),N.nf=N85(e.tW,e.videoTrack));
if(e.policy.L){w=y3_(e,w.gT,E.gT);var n;if(E=(n=e.j)==null?void 0:n.cM(w))N.Ag=E}e.policy.Kh&&e.J.length>0&&e.J[0].aK()&&(N.qXP=e.J[0].xH());return N};
R9=function(e){var N,y=e.policy.Z&&((N=e.tW)==null?void 0:N.u$());N=e.tW.getCurrentTime()||0;N=EKP(e,N);var w=e.tW.w7()||0;N+=w;w=hY(e.videoData)||g.bk(e.videoData);var E=0;y?(w&&(E=Number.MAX_SAFE_INTEGER),e.videoData.Rq&&(E=Math.ceil(e.videoData.aq*1E3))):E=Math.ceil(N*1E3);return Math.min(Number.MAX_SAFE_INTEGER,E)};
eLH=function(e){return e.policy.zg&&e.videoData.Cx()&&!!e.G};
EKP=function(e,N){if(e.tW.isSeeking())return N;var y=e.JW.LC();if(!y)return N;y=y.O4();if(y.length===0||AX(y,N))return N;if(!iz(e.videoTrack,N)&&!iz(e.audioTrack,N))return e.tW.Fh("sundrn",{b:0,lt:N}),N;for(var w=N,E=Infinity,A=0;A<y.length;A++)if(!(y.start(A)>N)){var T=N-y.end(A);T<E&&(E=T,w=y.end(A))}return w!==N&&(e.tW.Fh("sundrn",{bre:w,lt:N}),E>=20)?(e.tW.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),N):w};
y3_=function(e,N,y){var w=e.tW.getCurrentTime()||0;N=A30(e,N,w);e=A30(e,y,w);return Math.min(N,e)};
A30=function(e,N,y){e=e.tW.w7()||0;N=g.c(N);for(var w=N.next();!w.done;w=N.next()){var E=w.value;w=E.startTimeMs?E.startTimeMs/1E3-e:0;E=w+(E.durationMs?E.durationMs/1E3:0);if(w<=y&&y<=E)return E}return y};
LTs=function(e,N){if(e.policy.Fr>0){var y=Math.floor((0,g.iC)()/1E4);if(y===e.Zl){if(e.L>=e.policy.Fr){if(e.L===e.policy.Fr){var w={reason:"toomanyrequests"};w.limit=e.L;e.tW.handleError("player.exception",w);e.L+=1}return!1}}else e.Zl=y,e.L=0}N=!N&&!ld(e.bk)&&!e.policy.Js;if(e.tW.isSuspended&&(e.tW.cU||N))return!1;if(e.Kh&&(0,g.iC)()<e.Kh)return e.policy.Js&&g.NA(e.tW.Pg),!1;if(e.J.length>0&&(!e.policy.Kh||e.J.length!==1||!e.J[0].aK()))return!1;var E;if((E=e.rP.U)==null||!Fs(E,e.policy,e.Z,e.tW.kL()))return!1;
E=e.policy.wA&&e.policy.N&&e.tW.bP();if(Il(e.audioTrack)&&Il(e.videoTrack)&&!E)return!1;if(e.policy.N&&e.U&&!e.tW.bP())return e.g4("ssap",{pauseontlm:1}),!1;if(UB(e,e.audioTrack)&&UB(e,e.videoTrack))return e.policy.K&&e.tW.Fh("sabrHeap",{a:""+hW(e.audioTrack),v:""+hW(e.videoTrack)}),!1;if(E=e.policy.L)E=!1,e.D.N===2?E=!0:e.D.N===3&&(R9(e),e.tW.w7(),N=y3_(e,SL(e.audioTrack,e.tW.isSeeking()).gT,SL(e.videoTrack,e.tW.isSeeking()).gT),y=e.D,N>=y.K?(y.Fh("sdai",{haltrq:N,est:y.K}),N=!0):N=!1,N&&(E=!0)),
E&&e.policy.G&&e.tW.Fh("sabrcrq",{waitad:1});if(E)return!1;e.policy.Gg&&(e.qg=GG(e,e.audioTrack),e.l9=GG(e,e.videoTrack));if(!e.N)return e.policy.G&&e.tW.Fh("sabrcrq",{nopolicy:1}),!0;if(e.JW.F2())return e.policy.G&&e.tW.Fh("sabrcrq",{utc:1}),!0;if(e.K.U)return e.policy.G&&e.tW.Fh("sabrcrq",{audio:1}),!0;if(!e.N.targetAudioReadaheadMs||!e.N.targetVideoReadaheadMs)return e.policy.G&&e.tW.Fh("sabrcrq",{noreadahead:1}),!0;if(e.policy.Z&&e.tW.u$())return e.policy.G&&e.tW.Fh("sabrcrq",{seekToHead:1}),
!0;E=Math.min(D2(e.tW,e.audioTrack)*1E3,e.N.targetAudioReadaheadMs);N=Math.min(D2(e.tW,e.videoTrack)*1E3,e.N.targetVideoReadaheadMs);var A=Math.min(E,N);y=ke(e.audioTrack,!0)*1E3;var T=ke(e.videoTrack,!0)*1E3;if(e.policy.Gg){var p=e.JW.getCurrentTime()*1E3;var C=T8H(e.qg.gT,p);p=T8H(e.l9.gT,p)}else C=y,p=T;var r=C<A&&!UB(e,e.audioTrack);A=p<A&&!UB(e,e.videoTrack);!(A=!r&&!A)&&(A=e.policy.N)&&(A=e.tW,!A.k_||SI(A.rP)?A=!1:(r=LH(A.k_),A=J3n(A,r)));if(A||e.policy.Nw&&pH_(e.tW)&&e.videoData.e_()||e.policy.Z4&&
pH_(e.tW))return!1;e.policy.G&&(A=e.tW.N7(),A.car=C,A.vac=p,A.mar=E,A.mvr=N,A.tar=e.N.targetAudioReadaheadMs,A.tvr=e.N.targetVideoReadaheadMs,A.vbu=wO(((w=e.JW.LC())==null?void 0:w.O4())||null),A.abh=y,A.vbh=T,e.tW.Fh("sabrcrq",A));return!0};
GG=function(e,N){R9(e);e.tW.w7();return SL(N,e.tW.isSeeking())};
T8H=function(e,N){var y=0,w=-1;e=g.c(e);for(var E=e.next();!E.done;E=e.next())if(E=E.value,!(E.startTimeMs+E.durationMs<N)){if(w<0&&E.startTimeMs>N||w>=0&&E.qO>w+1)break;y=Math.max(y,E.startTimeMs+E.durationMs);w=Math.max(w,E.wQ)}return Math.max(0,y-N)};
sKn=function(e,N,y){var w={bk:e.bk,fd:function(C,r){e.JW.Gt(C,r)},
UT:e.policy.v2,CU:e.policy.K};e.bk.N.G&&(w.J3=(e.videoTrack.J.info.JM||0)+(e.audioTrack.J.info.JM||0));e.policy.y_&&(w.eV=e.audioTrack.J.index.Mz(),w.UT=!1);var E=Tw3(N,e.policy,e.Z)?2:1;E!==e.Ng&&(e.Ng=E,C0E(e));y=wHP(e,y);if((e.policy.N||e.policy.Kh)&&e.policy.K&&y.UH){for(var A=E="",T=g.c(y.UH),p=T.next();!p.done;p=T.next())p=p.value,e.videoData.sabrContextUpdates.has(p)?E+="_"+p:A+="_"+p;e.tW.Fh("sabrbldrqs",{ctxts:E,misctxts:A})}N.setData(y,e.tW.bP(),e.policy,e.Z)||!e.policy.N&&!e.policy.Kh||
e.tW.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);w=new kX(e.policy,N,e.rP,e.Z,e,w,e.tW.HZ(),e.policy.Pf?e.tW.bP():void 0);BT(e.timing);e.policy.G&&e.tW.Fh("sabrcrq",{rn:w.YK(),probe:N.aN()});return w};
ef=function(e,N){if(N.Ss()||e.Ss())e.policy.uo||(e.policy.Z?sB(e.tW):e.tW.Ga());else{if(e.policy.K&&N.isComplete()&&N instanceof kX){var y=e.tW,w=y.Fh,E,A,T=Object.assign(N.Aa.gL(),{rst:N.state,strm:N.xhr.zE(),d:(E=N.Aa.Rq)==null?void 0:E.jY(),cncl:N.xhr&&N.r7.j?1:0,rqb:N.Gj,cwt:N.l4,swt:(A=N.FU)==null?void 0:A.C7});E=Object.assign(Cd0(N.info),T);w.call(y,"rqs",E)}if(N.isComplete()&&N.aN()&&N instanceof kX)e.policy.jn?N.Mn()?(N.dispose(),e.J.length===0?e.tW.Ga():(e=e.J[0],e instanceof kX&&e.qY()&&
e.Py(!1))):N.Q_()&&e.tW.handleError(N.pw(),N.Cz()):(N.dispose(),e.tW.Ga());else{if(N.V4())N instanceof kX&&yds(e.timing,N),C0E(e),a9(e);else if(N.Q_())y=e.JW.F2(),N instanceof kX&&pgP(N.info)&&y&&e.tW.ou(y),N instanceof KH?e.J.pop():(y=1,N.canRetry()&&Kr(e.tW)&&(r35(e,N),y=0),e.tW.handleError(N.pw(),N.Cz(),y));else{if(e.tW.isSuspended&&!N.isComplete())return;a9(e)}N.Ss()||N instanceof KH||(N.isComplete()?y=xXP(N,e.policy,e.Z):(y=ZC9(N,e.policy,e.Z),y===1&&(e.Bk=!0)),y!==0&&(w=new ls(1,N.info.yl),
w.q2=y===2,sKn(e,w)));e.policy.FZ&&!N.isComplete()?mL(e.tW):e.tW.Ga()}}};
a9=function(e){for(;e.J.length&&e.J[0].U1(e.vE());){var N=e.J.shift();$O5(e,N);if(e.policy.L){var y=e;if(!y.policy.Ut&&N.U1(y.vE())){var w=N.YK();if(y.Ut!==w){var E=N.Ue();N=E.d4;var A=E.qF;E=E.isDecorated;!y.j||A<0||(y.Ut=w,w=iO(y.D,A/1E3,N),A=y.tW.w7()||0,IO(y.D,N,w-A,E,y.j))}}}}e.J.length&&$O5(e,e.J[0])};
$O5=function(e,N){var y=new Set(N.Np(e.vE()));y=g.c(y);for(var w=y.next();!w.done;w=y.next()){var E=w.value;if(!(w=!(N instanceof KH))){w=e.K;var A=w.rP.Cx,T=Ym(w.videoInfos,A);w=Nw0(w,E,A)||T.includes(E)}if(w&&(w=N.Lz(E,e.vE()),A=e.policy.zg&&Ug(w[0].J.info),(!(!A&&e.policy.jE&&w.length>0&&(w[0].J.info.qG()?ke(e.audioTrack):ke(e.videoTrack))>3)||N.isComplete())&&N.bZ(E,e.vE()))){E=N.O$(E,e.vE());if(e.policy.N){T=w[0].J.info;var p=e.tW.bP();if(p&&T){var C=N.xv();p.api.T("html5_ssap_set_format_info_on_video_data")&&
C===dA(p)&&(T.qG()?p.playback.getVideoData().j=T:p.playback.getVideoData().N=T);if(p=Nt(p.timeline,C))if(p=p[0].getVideoData())T.qG()?p.j=T:p.N=T}}E=g.c(E);for(T=E.next();!T.done;T=E.next())if(T=T.value,e.policy.K&&N instanceof KH&&e.tW.Fh("omblss",{s:T.info.O2()}),A)p=e,p.videoData.Cx()&&p.G&&Sl(p.G)===Sl(g.Ld(T.info.J.info,p.rP.Cx))&&p.JW.publish("sabrCaptionsDataLoaded",T,p.Fy.bind(p));else{p=T.info.J.info.qG();var r=T.info.J;if(p){C=void 0;var Y=e.K,M=(C=N.hG(e.vE()))==null?void 0:C.token;Y.U=
!1;r!==Y.Z&&(Y.Z=r,Y.vr(r,Y.audioTrack,M))}else C=void 0,Rnn(e.K,r,(C=N.hG(e.vE()))==null?void 0:C.token);C=p?e.audioTrack:e.videoTrack;N instanceof KH&&(C.G=!1,N instanceof KH&&(p?GDs(e.timing):Rv5(e.timing)));try{Fz(C,w,T)}catch(l){T=I2(l),e.tW.handleError(T.errorCode,T.details,T.severity),C.w4(),e.Fc(!1,"pushSlice"),sB(e.tW)}}}}};
r35=function(e,N){e.policy.Kh?e.J.splice(e.J.indexOf(N)).forEach(function(y){y.dispose()}):(e.J.pop(),N==null||N.dispose())};
Yn5=function(e,N,y){for(var w=[],E=0;E<e.J.length;E++)N&&e.J[E]instanceof KH?w.push(e.J[E]):(e.policy.G&&e.tW.Fh("sabrcrq",{d:e.J[E].YK(),src:y}),e.J[E].dispose());e.J=w};
MxF=function(e,N){N&&N.type&&(e.videoData.sabrContextUpdates.set(N.type,N),N.sendByDefault&&e.UH.add(N.type))};
lG9=function(e,N,y){N.Nh(y.YS,y.version)?e.videoData.wh=y.version||"":e.tW.Fh("ssap",{v:y.version,tlnu:1})};
C0E=function(e){e.UH.clear();if(e.videoData.sabrContextUpdates.size>0)for(var N=g.c(e.videoData.sabrContextUpdates.keys()),y=N.next();!y.done;y=N.next()){y=y.value;var w=void 0;((w=e.videoData.sabrContextUpdates.get(y))==null?0:w.sendByDefault)&&e.UH.add(y)}if(e.policy.Kh&&e.J.length)for(N=g.c(e.J),y=N.next();!y.done;y=N.next())(y=y.value.xH())&&y.type&&y.sendByDefault&&e.UH.add(y.type)};
F05=function(e){e.policy.PY&&(e.i9=void 0,e.ue=0)};
Sn0=function(e,N){if(N.Q_()||N.Ss()){var y=e.tW,w=y.Fh,E=N.state;e=e.vE();var A,T;if((N=(A=N.ZM)==null?void 0:A.get(e))==null)N=void 0;else{A=0;e=N.Np();for(var p=0;p<e.length;p++){var C=void 0;A+=((C=N.XZ.get(e[p]))==null?void 0:C.bytesReceived)||0}N=A}N=(T=N)!=null?T:-1;w.call(y,"sabromb",{s:E,tbytes:N})}else e.J.push(N),N.dR.push(e),BT(e.timing),e.policy.YB&&N.gt&&e.fm(N.gt)};
UB=function(e,N){return e.policy.j$?!e.tW.NT&&u3(N)&&(N.SL()!==u3(N)||e.tW.isSuspended):!1};
oK3=function(e){var N="";e=g.c(e);for(var y=e.next();!y.done;y=e.next()){y=y.value;N+=".cid."+y.clipId;if(y.zn){var w=y.zn;N+=".vid."+w.US+(".pst."+w.jA)+(".ps."+w.bD)+(".lst."+w.kWl)+(".ld."+w.aj)+(".ls."+w.SO)}y.NQ&&(N+=".nonv."+y.NQ.Jv)}return N};
b35=function(e,N,y,w,E){this.tW=e;this.policy=N;this.schedule=y;this.pW=w;this.D=E;this.Ng=NaN;this.N=this.G=this.j=null;this.J=this.L=this.Z=this.startTimeSecs=NaN;this.K=!1;this.U=NaN};
hL5=function(e,N,y,w,E,A){return N.Cl&&N.jp&&y===3?new b35(e,N,w,E,A):null};
c3H=function(e,N){if(e.policy.F1){var y=N.info.JM,w=M_(e.schedule);N=N.index.Mz();y=Math.max(1,w/y);e.U=Math.round(Math.max(((y-1)*N+e.policy.U2)/y,N-e.policy.Tg)*1E3)}};
XH9=function(e,N){var y=Date.now()/1E3,w=y-e.startTimeSecs,E=y-e.Z,A=E>=e.policy.xw,T=!1;if(A){var p=0;!isNaN(N)&&N>e.L&&(p=N-e.L,e.L=N);p/E<e.policy.N8&&(T=!0);e.Z=y}y=w>=e.policy.Tg&&!e.K;if(!A&&!y&&kr5(e,N))return NaN;y&&(e.K=!0);a:{w=T;y=(0,g.iC)()/1E3-(e.pW.AT()||0)-e.G.J-e.policy.U2;A=e.N.startTime;y=A+y;if(w){if(isNaN(N)){yD(e,NaN,"n",N);A=NaN;break a}w=N-e.policy.rk;w<y&&(y=w)}else e.K&&(w=y+e.policy.U2-e.Ng+e.policy.Ko,isNaN(N)||(w=Math.max(w,Math.min(y,N-e.policy.rk))),y=w);A=y=Math.max(y,
A)}e.J=A;if(isNaN(e.J))return e.clear(),NaN;if(!T&&kr5(e,N))return B83(e,N),NaN;if(e.J<=e.N.startTime)return yD(e,NaN,"y",N),e.clear(),NaN;if(!e.D(e.J,!1))return!B83(e,N)&&T&&(yD(e,NaN,"t",N),e.clear()),NaN;T=e.J;yD(e,T,"s",N);e.clear();return T};
B83=function(e,N){return e.D(e.J,!0)?!1:(yD(e,NaN,"ns",N),e.clear(),!0)};
kr5=function(e,N){return isNaN(N)?!0:isNaN(e.J)?!1:N<e.J+(e.K?e.policy.rk:e.policy.JD)};
yD=function(e,N,y,w){var E=e.j.Cz();E.ssr_sk=(N*1E3).toFixed(0);E.ssr_t=(e.J*1E3).toFixed(0);E.ssr_r=y;E.ssr_st=(e.startTimeSecs*1E3).toFixed(0);E.ssr_n=(0,g.iC)().toFixed(0);E.ssr_f=(e.G.J*1E3).toFixed(0);E.ssr_fa=e.K?"1":"0";E.ssr_o=(e.pW.AT()*1E3||0).toFixed(0);E.ssr_v=(w*1E3).toFixed(0);N=e.N.J.index;N.VI(e.N.Ch,!0)&&(E.ssr_ist=(N.getStartTime(e.N.Ch)*1E3).toFixed(0),E.ssr_id=(N.getDuration(e.N.Ch)*1E3).toFixed(0));e.tW.Fh("ssr",E)};
P0M=function(){var e={};if(window.performance){var N=window.performance.memory;N&&(e.jsTotal=N.totalJSHeapSize,e.jsUsed=N.usedJSHeapSize,e.jsLimit=N.jsHeapSizeLimit,e.msTotal=N.totalMediaSourceSize,e.msLimit=N.mediaSourceSizeLimit,e.msUsed=N.usedMediaSourceMemorySize)}var y;if((y=window.h5vcc)==null?0:y.cVal)e.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),e.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),e.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return e};
g.Ev=function(e,N,y,w,E,A,T,p,C,r){p=p===void 0?!1:p;g.x.call(this);var Y=this;this.JW=e;this.schedule=N;this.policy=y;this.rP=w;this.Kh=C;this.PY=r;this.TZ=null;this.Rq=this.aq=this.i9=this.NT=0;this.Sh=this.cU=this.isSuspended=!1;this.Wk="";this.LX={};this.SR=!1;this.Dl=0;this.U=null;this.Kx=this.Zl=!1;this.Vy=0;this.Ut=!1;this.l9=this.VB=0;this.Y_=null;this.wS=function(){return Y.JW.wS()};
this.timing=new O__(this.PY);this.D=new oE(this.schedule,this.policy);this.dT=new g.e6(this.Ga,0,this);this.a9=new g.e6(this.Ga,this.policy.FZ,this);this.Pg=new g.e6(this.Ga,1E3,this);this.jn=new g.e6(this.Ga,void 0,this);this.Bk=new g.e6(function(){Y.policy.Js&&Y.isSuspended||Y.Ga()},1E4,this);
this.pX=new g.e6(this.o9B,250,this);this.Z=this.currentTime=NaN;this.eE=new yy(5);this.qg=this.timestampOffset=NaN;this.logger=new g.RE("dash");this.FZ=Infinity;this.lk={getAudioTrack:function(){return Y.audioTrack},
F$9:function(){return Y.videoTrack},
getManifest:function(){return Y.rP},
MI9:function(){return Y.K},
Ga:function(){Y.Ga()},
bu:function(){Y.NT=0;Y.bu()},
Mhq:function(M){return wg(Y,Y.videoTrack,Y.TZ.N,M)}};
e=C&&C.Np();C&&(Qh9(C,this.rP,this.policy),this.qg=Date.now());this.J=new xX(this,this.D,y,this.rP,E,e);y=FvE(this.J,A,T&&T.id);this.audioTrack=new $e(this,this.policy,y.audio,this.timing);this.videoTrack=new $e(this,this.policy,y.video,this.timing);this.videoTrack.j.l9=this.audioTrack.tG();this.Et={updateend:this.BO,error:this.UUZ};g.Q(this,this.dT);g.Q(this,this.a9);g.Q(this,this.Pg);g.Q(this,this.jn);g.Q(this,this.Bk);y=this.policy.cV&&this.policy.o1?!p20(this.videoTrack.J.info):!1;this.Xz=i1n({Z0:this.policy.U.Z0||
y,o1:this.policy.o1&&!y,oS:this.policy.oS});this.G=hL5(this,this.policy,this.Xz,this.schedule,this.eE,function(M,l){return dO0(Y,M,l)});
this.j=new Xy(this,this.rP,this.policy,this.videoTrack,this.audioTrack,p,this.JW.getVideoData().Au());this.jZ=new d3(this,this.rP,this.videoTrack,this.audioTrack,this.policy);p=this.policy.Ry?this.JW.getVideoData().E_:null;this.L=new ZU(this,this.policy,this.videoTrack,this.audioTrack,this.LX,this.j,this.timing,this.D,this.schedule,this.rP,this.J,this.G,y,p);g.Q(this,this.L);this.N=new Oe(this,this.policy,this.videoTrack,this.audioTrack,this.rP,E,Gr(this.JW.getVideoData()),T==null?void 0:T.id);g.Q(this,
this.N);sI5(this.N,A);this.K=new OB(this.JW,this,this.policy,this.audioTrack,this.videoTrack,this.rP,this.schedule,this.J,this.N,this.timing,this.j);g.Q(this,this.K);this.Ng=this.JW.nX.Bi.Gq;this.policy.Z||IG9(this);this.logger.debug("Created")};
IG9=function(e){var N,y;if((N=e.Ng)==null?0:(y=N.zR)==null?0:y.itagDenylist){var w;e.gF((w=e.Ng)==null?void 0:w.zR.itagDenylist)}var E;if((E=e.Ng)==null?0:E.playbackStartPolicy){var A,T;uz(e.policy,(A=e.Ng)==null?void 0:A.playbackStartPolicy,3,(T=e.Ng)==null?void 0:T.YK())}if(e.policy.pz){N=e.vE();var p;(y=N?(p=e.Ng)==null?void 0:p.MV.get(N):void 0)&&e.K.tp(y)}if(!e.rP.D){var C;p=(C=e.Ng)==null?void 0:C.Oo;(p==null?0:p.NL)&&(p==null?0:p.cz)&&e.rP.Cx&&Fu(e.rP,p.NL,p.cz)}var r;((r=e.Ng)==null?0:r.H6)&&
(C=e.Ng.H6.get(e.vE()||""))&&e.rP&&C.formatId&&(e=e.rP.K.get(Sl(C.formatId)))&&(e.info.debugInfo=C.debugInfo)};
vKs=function(e,N){if(e.policy.N&&!e.policy.aC)return!1;var y=Sl(g.Ld(N.J.info,e.rP.Cx)),w,E=((w=e.Kh)==null?void 0:w.Lz(y))||[];if(E.length===0)return e.Fh("ombmsi",{}),!1;E=new iH(E);if(w=!e.policy.qg||isFinite(e.getCurrentTime())||e.JW.F2()){a:{w=e.getCurrentTime();E=g.c(E.QB);for(var A=E.next();!A.done;A=E.next())if(A=A.value,A.type===3&&w>=A.o2&&w<=A.XT){w=!0;break a}w=!1}w=!w}if(w)return e.Fh("ostmf",{ct:e.getCurrentTime(),a:N.J.info.qG()}),!1;(e=e.Kh)!=null&&(e.XZ.get(y).CT=!0);return!0};
zL5=function(e){if(!e.rP.Cx)return!0;var N=e.JW.getVideoData();if(N.T("html5_skip_live_preroll_onesie")&&e.JW.wq()||N.T("html5_skip_live_preroll_onesie_post_live")&&e.JW.wq()&&(N.Ta||N.isPremiere))return e.Fh("ombpa",{}),!1;var y,w;if(e.policy.SE&&!!((y=e.Ng)==null?0:(w=y.Oo)==null?0:w.E9Z)!==e.rP.Ta)return e.Fh("ombplmm",{}),!1;y=N.Xz||N.liveUtcStartSeconds||N.jN;if(e.rP.Ta&&y)return e.Fh("ombplst",{}),!1;if(e.rP.D)return e.Fh("ombab",{}),!1;y=Date.now();return SI(e.rP)&&!isNaN(e.qg)&&y-e.qg>e.policy.xn*
1E3?(e.Fh("ombttl",{}),!1):e.rP.L$&&e.rP.j||!e.policy.tD&&e.rP.isPremiere||!(TC(N)===0||e.policy.J&&N.T("html5_enable_onesie_media_for_sabr_proxima_optin"))||N.T("html5_disable_onesie_media_for_mosaic")&&xI(N)||N.T("html5_disable_onesie_media_for_ssdai")&&N.isDaiEnabled()&&N.enableServerStitchedDai?!1:!0};
i35=function(e,N){var y=N.J,w=e.rP.Cx;if(zL5(e))if(e.Kh&&e.Kh.XZ.has(Sl(g.Ld(y.info,w)))){if(w=Sl(g.Ld(y.info,w)),vKs(e,N)){var E=new iH(e.Kh.Lz(w)),A=function(T){try{if(T.Q_())e.handleError(T.pw(),T.Cz()),Pl(N,T),g4(T.info)&&nr(e.L,N,y,!0),e.Ga();else if(QU(e.L,T)){var p;(p=e.j)==null||T4J(p,T.info,e.U);e.Ga()}}catch(C){T=I2(C),e.handleError(T.errorCode,T.details,T.severity),e.w4()}};
y.K=!0;D$(E)&&(lz(N,new IE(e.policy,w,E,e.Kh,A)),BT(e.timing))}}else e.Fh("ombfmt",{})};
Aj=function(e,N){N=N||e.videoTrack&&e.videoTrack.N&&e.videoTrack.N.startTime||e.getCurrentTime();var y=Hl,w=e.videoTrack,E=e.J;N=E.nextVideo&&E.nextVideo.index.zI(N)||0;E.l9!==N&&(E.Rq={},E.l9=N,jr(E,E.J));N=!E.J.isLocked()&&E.D>-1&&(0,g.iC)()-E.D<E.policy.fT*1E3;var A=E.nextVideo&&mU(E,E.nextVideo.info)*3<c0(E.qg);if(!N||A)Z0(E),nP(E),E.Kh=E.Kh||E.nextVideo!==E.K;E.nextVideo&&!E.nextVideo.index.isLoaded()&&(E.l9=-1);y(e,w,E.nextVideo);Hl(e,e.audioTrack,e.J.N)};
Tt=function(e,N){e.cU=N;e.policy.i9||(e.logger.debug("Suspended."),e.isSuspended=!0,e.policy.uV&&(e.Pg.stop(),e.a9.stop(),e.dT.stop()),e.policy.Js&&e.Bk.stop())};
vT=function(e,N,y,w){e.policy.L&&e.Fc(!1,"rollback");if(e.rP.isManifestless){var E=Bl(e.audioTrack,w,y,N),A=Bl(e.videoTrack,w,y,N);e.policy.im||(A&&l2(e.rP,w,!0),E&&l2(e.rP,w,!1));e.Fh("sdai",{rollbk2_seg:w,rbt:y.toFixed(3),lt:N.toFixed(3),a:E,v:A});(E||A)&&e.policy.L&&sB(e)}};
DO3=function(e){e.logger.debug("Rebuffering.");e.Sh=!0;if(e.policy.Dl&&e.TZ){var N,y,w,E;e.Fh("lr_rb",{c:e.getCurrentTime(),s:e.isSeeking(),ab:wO(e.TZ.J.Ju()),ala:(N=MN(e.audioTrack))==null?void 0:N.O2(),alr:(y=e.audioTrack.N)==null?void 0:y.O2(),vb:wO(e.TZ.N.Ju()),vla:(w=MN(e.videoTrack))==null?void 0:w.O2(),vlr:(E=e.videoTrack.N)==null?void 0:E.O2()})}e.JW.kL()!==0&&e.Fh("sps_rebuffer",{c:e.getCurrentTime()})};
gKM=function(e){e.policy.a9=!1;try{e.bu()}catch(N){g.t0(N)}};
Vxs=function(e){return e.policy.J&&e.policy.N&&(!Zo()&&e.policy.jI||e.policy.I4)};
ur0=function(e,N,y,w){y=y===void 0?!1:y;w=w===void 0?!1:w;e.policy.i9&&(e.logger.debug("disable updateMetadataWithoutMediaSource"),e.policy.aq&&e.Fh("loader",{setsmb:0}),e.w4(),e.policy.i9=!1);e.logger.debug("attaching media source");fGF(e,w);if(Vxs(e))e.Fh("ssap",{delaysb:1}),e.TZ=N;else{if(!HI(N)){var E=u3(e.videoTrack);E=E?E.info.J:e.videoTrack.J;var A=u3(e.audioTrack);A=A?A.info.J:e.audioTrack.J;e.policy.N&&e.Fh("ssap",{initsb:1,v:E.info.id,vf:E.info.Iq,a:A.info.id,af:A.info.Iq});Sz5(N,E.info,
A.info,e.policy.jN)}tx0(e,N,y,w);try{e.Ga()}catch(T){g.t0(T)}}};
tx0=function(e,N,y,w){y=y===void 0?!1:y;w=w===void 0?!1:w;Ye(e.videoTrack,N.N||null,w);Ye(e.audioTrack,N.J||null,w);e.TZ=N;e.TZ.j=!0;y||e.resume();N.J.H_(e.Et,e);N.N.H_(e.Et,e)};
fGF=function(e,N){N=N===void 0?!1:N;e.TZ&&e.TZ.J&&e.TZ.N&&(e.TZ.J.qB(e.Et,e),e.TZ.N.qB(e.Et,e));Ye(e.audioTrack,null,N);Ye(e.videoTrack,null,N);e.TZ&&(e.TZ.j=!1);e.TZ=null};
qnn=function(e){e.TZ&&e.TZ.u6()&&(e.wb(),e.policy.Pl&&e.handleError("fmt.unplayable",{unexpected:1},1))};
xOn=function(e,N){if(!e.Ss())if(e.policy.J){if(!aTJ(e.N,N)){var y=e.N.N;sI5(e.N,N);var w=!1;w=N.isLocked()&&N.reason==="m"&&e$E(e.N,N.J);var E=e.policy.AA&&N.reason==="l";y=y.J>N.J&&N.reason==="b";w||E||y?(e.JW.P_({reattachOnConstraint:w?"u":E?"drm":"perf",lo:N.N,up:N.J}),e.policy.kX||(e.N.J.N=!1)):(e.policy.kX&&(e.N.J.N=!1),sB(e))}}else if(!SMF(e.J,N)&&e.videoTrack){e.logger.debug(function(){return"Setting constraint: r="+N.reason+" u="+N.J});
y=e.J.J;Z3n(e,b1s(e.J,N));Aj(e);w=N.isLocked()&&N.reason==="m"&&e.J.Kh;E=e.policy.AA&&N.reason==="l"&&vl(e.videoTrack);y=y.J>N.J&&N.reason==="b";var A=e.J.Wk&&!Zo();w||E||y||A?e.JW.P_({reattachOnConstraint:w?"u":E?"drm":A?"codec":"perf"}):sB(e)}};
jf9=function(e,N,y){if((!e.TZ||nh(e.TZ)&&!e.policy.sR)&&!e.jZ.isSeeking()&&(e.policy.J||vl(N)&&N.J.Yz()&&e.J.Ng)){var w=e.getCurrentTime()+F4s(e.D,N,y);e.logger.debug(function(){return"Clearing back to "+w.toFixed(3)});
hnM(N,w)}};
Z3n=function(e,N){N&&(e.logger.debug(function(){return"Logging new format: "+N$(N.video.info)}),nK3(e.JW,new VW(N.video,N.reason)));
if(e.J.Bk){var y=B4M(e.J,"a");e.JW.wJ(new VW(y.audio,y.reason))}};
sB=function(e){g.NA(e.dT)};
mL=function(e){e.policy.FZ&&e.policy.oS&&Math.min(bC3(e.videoTrack),bC3(e.audioTrack))*1E3>e.policy.aT?g.NA(e.a9):e.Ga()};
Qf1=function(e,N){var y=(0,g.iC)()-N,w=ke(e.audioTrack,!0)*1E3,E=ke(e.videoTrack,!0)*1E3;e.logger.debug(function(){return"Appends paused for "+y});
if(e.policy.K&&(e.Fh("apdpe",{dur:y.toFixed(),abuf:w.toFixed(),vbuf:E.toFixed()}),fr(e.policy))){var A=c0(e.D);e.Fh("sdps",{ct:N,ah:w.toFixed(),vh:E.toFixed(),mr:k8(e.D,e.Sh,A),bw:A.toFixed(),js:e.isSeeking(),re:+e.Sh,ps:(e.policy.SP||"").toString(),rn:(e.policy.hK||"").toString()})}};
mOM=function(e){if(e.policy.N&&DU(e.videoTrack)&&DU(e.audioTrack))return"ssap";if(dX5(e.videoTrack))return e.logger.debug("Pausing appends for server-selectable format"),"ssf";if(e.policy.Bk&&gA(e.videoTrack)&&gA(e.audioTrack))return"updateEnd";if(Il(e.audioTrack)||Il(e.videoTrack)&&e.videoTrack.J.info.Iq!=="f")return"";if(e.jZ.isSeeking()){var N=e.D;var y=e.videoTrack;var w=e.audioTrack;if(N.policy.J){var E=N.policy.xI;fr(N.policy)&&(E=k8(N,!1,c0(N)));N=E;y=ke(w,!0)>=N&&ke(y,!0)>=N}else y.K.length||
w.K.length?(E=y.J.info.JM+w.J.info.JM,E=10*(1-c0(N)/E),N=Math.max(E,N.policy.xI),y=ke(w,!0)>=N&&ke(y,!0)>=N):y=!0;if(!y)return"abr";y=e.videoTrack;if(y.K.length>0&&y.j.N.length===1&&R_5(y.j).info.Z<y.Et)return"seek"}if(e.policy.L&&znM(e.videoTrack,e.j)&&znM(e.audioTrack,e.j))return"ssdai";y=!e.policy.ul||e.getCurrentTime()<10;e.policy.J||(y=y||e.videoTrack.J.info.video.J>360);w=fr(e.policy)&&e.policy.Em;if(!e.Sh||!w&&y)return"";y=e.policy.ul;fr(e.policy)&&(y=k8(e.D,e.Sh,c0(e.D)));y=kEn(e.videoTrack,
e.getCurrentTime(),y)||kEn(e.audioTrack,e.getCurrentTime(),y);return fr(e.policy)?y?"mbnm":"":(e.videoTrack.K.length>0||e.audioTrack.K.length>0||xe(e.L,e.videoTrack,e.audioTrack)||xe(e.L,e.audioTrack,e.videoTrack))&&y?"nord":""};
H3P=function(e){if(e.G){var N=e.G.Ga(e.audioTrack,JX(e.TZ.N.Ju()));N&&e.JW.seekTo(N,{l8:!0,BY:"pollSubsegmentReadahead",Kz:!0})}};
L0n=function(e,N,y){if(e.policy.Bk&&gA(N))return!1;if(y.j9())return!0;if(!y.Fw())return!1;var w=u3(N);if(!w||w.info.type===6)return!1;var E=e.policy.JX;if(E&&!w.info.j){var A=w.info.o2-e.getCurrentTime();if(w.info.Z<A*E)return!1}var T;if(e.policy.yO||((T=e.j)==null?0:px3(T,N,w.info.Ch)))e.Rq=0;else return e.jZ.isSeeking()&&sB(e),e.Rq=e.Rq||(0,g.iC)(),!1;if(!wg(e,N,y,w.info))return!1;if(e.rP.N&&w.info.N===0){if(E=K0_(N,y,w))A=MN(N),e.Fh("initchg",{it:w.info.J.info.id,sr:!!A&&A.J===w.info.J,ty:w.info.type,
seg:w.info.Ch});A=g.R2(w.info.J.info);e.policy.YO&&A&&!E&&Fa5(w)}A=e.G&&!!e.G.j&&N.J.info.audio;E=e.rP.isManifestless||w.L;if(!(e.rP.N&&w.info.N!==0||E&&!A)&&W01(e,N,y,w))return!0;if(A)return!1;A=D2(e,N);A=e.getCurrentTime()+A;if(w.info.o2>A)return e.policy.J&&O35(e,N),e.policy.c5&&zBM(N.j,A,!1),!1;RLM(e,N);var p;e.policy.UY&&y===((p=e.TZ)==null?void 0:p.J)&&e.Ut&&(y.AK()===0?(e.Ut=!1,e.policy.UY=!1):e.VB=y.AK());if(!Gr1(e,y,w,N))return!1;e.policy.Bk&&w.info.eY()?(e.JW.X().B9()&&e.Fh("eosl",{ls:w.info.O2()}),
w.isLocked=!0):(N.Of(w),k4J(e.J,w.info),e.logger.debug(function(){return"Appended "+w.info.O2()+", buffered: "+wO(y.Ju())}));
E&&UOn(e,w.info.J.d0);return!0};
O35=function(e,N){N===e.videoTrack?e.aq=e.aq||(0,g.iC)():e.i9=e.i9||(0,g.iC)()};
RLM=function(e,N){N===e.videoTrack?e.aq=0:e.i9=0};
Gr1=function(e,N,y,w){var E=e.policy.Dl?(0,g.iC)():0,A=y.L&&y.info.J.J||void 0,T=y.J;y.L&&(T=sfJ(e,y,T)||T);var p=T.YX();T=e.policy.Dl?(0,g.iC)():0;N=aG1(e,N,p,y.info,A);(w=w.D)!=null&&(A=y.info,E=T-E,T=(0,g.iC)()-T,!w.N||x5_(w.N,A)&&w.N.Ch===A.Ch||w.flush(),w.j+=E,w.K+=T,E=1,!w.N&&A.N&&(E=2),WT(w,E,N),T=Math.ceil(A.N/1024),E===2&&w.J.add(T),w.J.add(Math.ceil((A.N+A.K)/1024)-T),w.N=A);e.l9=0;if(N===0)return e.Zl&&(e.logger.debug("Retry succeed, back to normal append logic."),e.Zl=!1,e.Kx=!1),e.Dl=
0,!0;if(N===2||N===5)return eHH(e,"checked",N,y.info),!1;if(N===1){if(!e.Zl)return e.logger.debug("QuotaExceeded, retrying."),e.Zl=!0,!1;if(!e.Kx)return e.Kx=!0,e.JW.seekTo(e.getCurrentTime(),{BY:"quotaExceeded",Kz:!0}),!1;y.info.gx()?(E=e.policy,E.Zl=Math.floor(E.Zl*.8),E.l9=Math.floor(E.l9*.8)):(E=e.policy,E.Kx=Math.floor(E.Kx*.8),E.l9=Math.floor(E.l9*.8));e.policy.J?tI(e.N.J,y.info.J,!1):QW(e.J,y.info.J)}e.JW.P_({reattachOnAppend:N});return!1};
sfJ=function(e,N,y){var w;if(w=e.policy.hN&&e.TZ&&!e.TZ.U&&!e.JW.PU())N=N.info.J.info,w=N.lm()&&mu(N)&&N.video&&N.video.width<3840&&N.video.width>N.video.height;if(w&&(e.TZ.U=!0,Dr('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return y=Wv_(y),e.policy.K&&e.Fh("sp4k",{s:!!y}),y};
eHH=function(e,N,y,w){var E="fmt.unplayable",A=1;y===5||y===3?(E="fmt.unparseable",e.policy.J?!w.J.info.video||uO(e.N.J).size>0||tI(e.N.J,w.J,!1):!w.J.info.video||uO(e.J.L).size>0||QW(e.J,w.J)):y===2&&(e.Dl<15?(e.Dl++,E="html5.invalidstate",A=0):E="fmt.unplayable");w=vx(w);var T;w.mrs=(T=e.TZ)==null?void 0:Kh(T);w.origin=N;w.reason=y;e.handleError(E,w,A)};
C21=function(e,N,y,w,E){var A=e.rP;var T=e.policy.J,p=!1,C=-1,r;for(r in A.J){var Y=Ug(A.J[r].info)||A.J[r].info.gx();if(w===Y)if(Y=A.J[r].index,Y.VI(N.Ch)){p=Y;var M=N,l=p.o8(M.Ch);l&&l.startTime!==M.startTime?(p.segments=[],p.Co(M),p=!0):p=!1;p?C=N.Ch:!N.pending&&T&&(M=Y.getDuration(N.Ch),M!==N.duration&&(A.publish("clienttemp","mfldurUpdate",{itag:A.J[r].info.itag,seg:N.Ch,od:M,nd:N.duration},!1),Y.Co(N),p=!0))}else Y.Co(N),p=!0}C>=0&&(T={},A.publish("clienttemp","resetMflIndex",(T[w?"v":"a"]=
C,T),!1));A=p;Vq5(e.jZ,N,w,A);e.j.Q8(N,y,w,E);N.Ch===e.rP.L$&&A&&$_(e.rP)&&N.startTime>$_(e.rP)&&(e.rP.aq=N.startTime+(isNaN(e.timestampOffset)?0:e.timestampOffset),e.jZ.isSeeking()&&e.jZ.J<e.rP.Ti()&&e.jZ.seek(e.rP.Ti(),{}))};
wg=function(e,N,y,w){var E=MN(N);!E||E.j||d4(E,w)||(y.abort(),(N=N.D)!=null&&(WT(N,4),N.flush()));if(!y.PZ()||Zo())try{if(e.policy.jd){if(y.WS(w.J.info.containerType,w.J.info.Iq)){if(e.policy.yJ&&y.Vh())return!1;e.Fh("ssap",{chgtp:w.J.info.containerType,cf:w.J.info.Iq,oldtp:y.PZ(),oldcf:y.v6()});y.hY(w.J.info.containerType,w.J.info.Iq,w.J.info.mimeType)}}else y.AY(w.J.info.containerType,w.J.info.mimeType)}catch(A){return y=A,g.uA(y),e.Fh("ctexp",{name:y.name,msg:y.message}),!1}else w.J.info.containerType!==
y.PZ()&&e.Fh("ctu",{ct:Zo(),prev_c:y.PZ(),curr_c:w.J.info.containerType});N=w.J.j;e.policy.hp&&N&&(w=0+N.duration,N=-N.J,0===y.CV()&&w===y.YV()||y.jr(0,w),N!==y.w7()&&(y.lZ(N),Cr&&$X1(e.audioTrack.tG(),y.dc())));return!0};
W01=function(e,N,y,w){w.info.J.Yz();var E=w.info.J.J;if(!E||!y.Fw()||y.QO()===E)return!1;var A=E,T=y.QC();if(e.policy.HJ&&T&&y.isView()&&g.R2(w.info.J.info)){var p=new DataView(E.buffer,E.byteOffset,E.byteLength);(T=cG5(p,T))?A=new Uint8Array(T.buffer,T.byteOffset,T.byteLength):e.Fh("fenc",{})}e.policy.hN&&(T=sfJ(e,w,new oR([A])))&&(A=T.YX());var C;(T=w.info.J.p_(0,w.info.clipId))&&(C=T.QB[0]);if(w===e.Y_){if(e.l9+=1,e.JW.getVideoData().T("html5_shorts_gapless_restart_on_init_seg_retries")&&e.l9>
5)return e.l9=0,e.JW.P_({initSegStuck:1,as:w.info.O2()}),!0}else e.l9=0,e.Y_=w;e.policy.zA&&(y.abort(),(T=N.D)!=null&&(WT(T,4),T.flush()));E=aG1(e,y,A,C,E);var r;(r=N.D)==null||DZP(r,E,C);if(E!==0)return NdF(e,E,w),!0;w.info.gx()?sh5(e.timing):aeH(e.timing);e.logger.debug(function(){return"Appended init for "+w.info.J.info.id});
UOn(e,w.info.J.d0);return y.Vh()};
K0_=function(e,N,y){if(N.QO()==null){e=MN(e);if(!(N=!e||e.J!==y.info.J)){a:if(e=e.G,y=y.info.G,e.length!==y.length)y=!1;else{for(N=0;N<e.length;N++)if(!g.Cf(e[N],y[N])){y=!1;break a}y=!0}N=!y}return N}e=N.QO();y.info.J.hw()&&Ri(y);y=y.info.J.J;return e!==y&&!g.Cf(e,y)};
aG1=function(e,N,y,w,E){var A=0;if(e.policy.N&&w&&w.clipId&&e.k_){var T;A=(((T=e.k_)==null?void 0:XC(T,w.clipId))||0)/1E3}try{e.policy.N&&N.w7()!==A&&N.lZ(A);var p,C=N===((p=e.TZ)==null?void 0:p.J)?e.audioTrack:e.videoTrack;if(e.policy.Bk&&(w==null?0:w.eY())){if((w==null?void 0:w.U)>1)return 6;C.Rq=new g.e6(function(){var Y=u3(C);e.Ss()||Y==null||!Y.isLocked?e.JW.X().B9()&&e.Fh("eosl",{delayA:Y==null?void 0:Y.info.O2()}):yY1(C)?(e.JW.X().B9()&&e.Fh("eosl",{dunlock:Y==null?void 0:Y.info.O2()}),wF5(e,
C===e.audioTrack)):(e.Fh("nue",{ls:Y.info.O2()}),Y.info.U+=1,e.TZ&&e.bu())},1E4,e);
e.JW.X().B9()&&e.Fh("eosl",{delayS:w.O2()});C.Rq.start()}if(e.policy.Sy&&(w==null?0:w.eY())){var r;if((r=C.l9)==null?0:r.isActive())g.yE(C.l9),e.Fh("sbac",{as:w.O2()});C.l9=new g.e6(function(){e.Fh("sbum5s",{as:w.O2()})},5E3,e);
C.l9.start()}e.policy.U8&&(w==null?void 0:w.J)instanceof f1&&w.eY()&&e.Fh("poseos",{itag:w.J.info.itag,seg:w.Ch,lseg:w.J.index.vY(),es:w.J.index.K});N.appendBuffer(y,w,E)}catch(Y){if(Y instanceof DOMException){if(Y.code===11)return 2;if(Y.code===12)return 5;if(Y.code===22||Y.message.indexOf("Not enough storage")===0)return N=Object.assign({name:"QuotaExceededError",buffered:wO(N.Ju()).replace(/,/g,"_"),vheap:hW(e.videoTrack),aheap:hW(e.audioTrack),message:g.b7(Y.message,3),track:e.TZ?N===e.TZ.N?"v":
"a":"u"},P0M()),e.handleError("player.exception",N),1;g.t0(Y)}return 4}return e.TZ.u6()?3:0};
tz=function(e,N,y){e.JW.seekTo(N,y)};
UOn=function(e,N){N&&e.JW.VQ(new eL(N.key,N.type))};
Ee=function(e,N){e.JW.Me(N)};
D2=function(e,N){if(e.Zl&&!e.Sh)return 3;if(e.isSuspended)return 1;var y;if((y=e.TZ)==null?0:y.TZ&&y.TZ.streaming===!1)return 4;y=(N.J.info.audio?e.policy.Kx:e.policy.Zl)/(N.JM*e.policy.Qk);if(e.policy.J4>0&&e.TZ&&nh(e.TZ)&&(N=N.J.info.video?e.TZ.N:e.TZ.J)&&!N.Vh()){N=N.Ju();var w=E3(N,e.getCurrentTime());w>=0&&(N=e.getCurrentTime()-N.start(w),y+=Math.max(0,Math.min(N-e.policy.J4,e.policy.KT)))}e.policy.l9>0&&(y=Math.min(y,e.policy.l9));return y};
N85=function(e,N){return(D2(e,N)+e.policy.zy)*N.JM};
AYE=function(e){e.Wk&&!e.isSuspended&&ld(e.schedule)&&(EI9(e,e.Wk),e.Wk="")};
EI9=function(e,N){S3(N,"cms",function(y){e.policy.K&&e.Fh("pathprobe",y)},function(y){e.JW.handleError(y)})};
Td0=function(e,N){if(e.TZ&&e.TZ.j&&!e.TZ.u6()&&(N.Ze=ke(e.videoTrack),N.N=ke(e.audioTrack),e.policy.K)){var y=hW(e.videoTrack),w=hW(e.audioTrack),E=wO(e.TZ.N.Ju(),"_",5),A=wO(e.TZ.J.Ju(),"_",5);Object.assign(N.J,{lvq:y,laq:w,lvb:E,lab:A})}N.bandwidthEstimate=b3(e.D);var T;(T=e.audioTrack.D)==null||T.flush();var p;(p=e.videoTrack.D)==null||p.flush();e.logger.debug(function(){return Xe(N.J)})};
JYs=function(e,N){e.U=N;e.j&&(e.j.Z=N);e.U.aZ(e.videoTrack.J.info.lm());e.L.N=e.U;e.policy.L&&(e.K.j=e.U)};
pFn=function(e,N){if(e.TZ&&e.TZ.N){if(e.policy.q6){var y=DXJ(e.audioTrack);if(y&&y.qG()){var w=e.JW;w.Tk&&(w.Tk.J=y,w.Eg(w.Tk.videoId).e3(w.Tk))}}e.policy.Ob&&(y=DXJ(e.videoTrack))&&y.gx()&&(w=e.JW,w.WK&&(w.WK.J=y,w.Eg(w.WK.videoId).sW(w.WK)));N-=isNaN(e.timestampOffset)?0:e.timestampOffset;e.getCurrentTime()!==N&&e.resume();e.jZ.isSeeking()&&e.TZ&&!e.TZ.u6()&&(y=e.getCurrentTime()<=N&&N<e.getCurrentTime()+10,w=AX(e.TZ.N.Ju(),e.getCurrentTime()+Jj),y&&w&&(e.jZ.L=!1));e.jZ.isSeeking()||e.policy.Rq||
(e.currentTime=N);g.NA(e.Pg)}};
CkE=function(e,N){var y=ol(e.videoTrack).find(function(w){return w.startTime>=N&&dO0(e,w.startTime,!1)});
return y&&y.startTime<N+y.duration*1.5?y.startTime+.1:0};
dO0=function(e,N,y){if(!(e.videoTrack.J.Yz()&&e.audioTrack.J.Yz()&&e.TZ&&e.TZ.N&&e.TZ.J))return!1;if(y&&e.rP.isManifestless&&(e.videoTrack.Z===-1||e.audioTrack.Z===-1))return!0;var w=i3(e.videoTrack,N,y);if(isNaN(w))return!1;e=i3(e.audioTrack,e.policy.jp?N:w,y);return isNaN(e)?!1:!0};
Wl=function(e){e.w4();e.jZ.isSeeking()&&e.logger.debug("seeking cancelled by seek-to-head");e.G&&c3H(e.G,e.videoTrack.J);sB(e);return vBJ(e.jZ)};
Hl=function(e,N,y,w){(w===void 0?0:w)&&!N.aq&&(Zo()||(w=N.TW,Vxs(e)||!w||w.L_(y.info)||(e.Fh("ssap",{rstonsrvfmt:y.info.mimeType}),e.JW.hT())),N.aq=!0);N.J!==y&&(e.logger.debug(function(){return"Setting target itag: "+y.info.id+" (was "+N.J.info.id+")"}),N.J=y)};
yY1=function(e){var N,y=(N=u3(e))==null?void 0:N.info;return!y||iz(e,Math.min(y.o2+Jj,y.XT))};
rY_=function(e,N){var y;if((y=u3(N))!=null&&y.isLocked&&yY1(N)){if(e.JW.X().B9()){var w;e.Fh("eosl",{munlock:(w=u3(N))==null?void 0:w.info.O2()})}wF5(e,N===e.audioTrack)}};
wF5=function(e,N){if(e.policy.Bk&&e.TZ){var y,w,E=N?(y=e.TZ)==null?void 0:y.J:(w=e.TZ)==null?void 0:w.N;y=N?e.audioTrack:e.videoTrack;N=u3(y);if(N==null?0:N.isLocked){e.JW.X().B9()&&e.Fh("eosl",{unlock:N.info.O2()});var A;(A=y.Rq)==null||A.stop();N.isLocked=!1;y.Of(N);k4J(e.J,N.info);E=E==null?void 0:E.mM();(E==null?void 0:E.O2())!==N.info.O2()&&e.Fh("oue",{bls:E==null?void 0:E.O2(),tls:N.info.O2()})}}};
$KJ=function(e,N){e.timestampOffset!==N&&(e.timestampOffset=N,e.policy.im&&MX(e.rP),e.logger.debug(function(){return"Timestamps will be made relative to "+e.timestampOffset}),e.j.U=e.timestampOffset,e.JW.Ny(e.timestampOffset),e.rP.isManifestless&&(e.rP.timestampOffset=e.timestampOffset),e.videoTrack.lZ(e.timestampOffset),e.audioTrack.lZ(e.timestampOffset))};
QIF=function(e){var N=e.XW().filter(function(w){return w.namespace==="ad"});
N=g.c(N);for(var y=N.next();!y.done;y=N.next())if(y=y.value,y.start/1E3>e.getCurrentTime())return y.start/1E3;return Infinity};
Ys5=function(e){var N=MN(e.videoTrack),y=MN(e.audioTrack);return N&&!iC_(e.videoTrack)?N.startTime:y&&!iC_(e.audioTrack)?y.startTime:NaN};
pH_=function(e){if(e.JW.getVideoData().isLivePlayback)return!1;var N=e.JW.LC();if(!N)return!1;N=N.getDuration();return J3n(e,N)};
J3n=function(e,N){if(!e.TZ||!e.TZ.J||!e.TZ.N)return!1;var y=e.getCurrentTime(),w=e.TZ.J.Ju();e=e.TZ.N.Ju();w=w?T6(w,y):y;y=e?T6(e,y):y;y=Math.min(w,y);return isNaN(y)?!1:y>=N-.01};
NdF=function(e,N,y){e.policy.wW&&Rf(e.JW.getVideoData())?(e.JW.uS()||eHH(e,"sepInit",N,y.info),M53(e.JW,"sie")):eHH(e,"sepInit",N,y.info)};
Kr=function(e){return e.JW.kL()<e.FZ};
g.pW=function(e){this.Yk=e};
CW=function(){g.pT.apply(this,arguments)};
rg=function(e,N,y,w){CW.call(this);var E=this;this.K=-1;this.J={};this.j=new g.e6(this.L,0,this);g.Q(this,this.j);this.N=new g.e6(function(){E.Ss()||(E.j.start(Math.random()*y),E.N.start(N))},e,this);
g.Q(this,this.N);w.subscribe("fairplay_next_need_key_info",this.Z,this)};
li5=function(e){if(!(e.length<=28))for(var N=(0,g.rB)([60,0,75,0,73,0,68,0,62,0]),y=28;y<e.length;){a:if(e.length-y<N.length)var w=!1;else{for(w=0;w<N.length;++w)if(e[y+w]!==N[w]){w=!1;break a}w=!0}if(w){y+=N.length;if(e.length<=y+48)break;N=new Uint8Array(24);for(w=0;w<24;++w)N[w]=e[y+w*2];e=P8(N);e=hO(e);if(!e)break;y=e[0];e[0]=e[3];e[3]=y;y=e[1];e[1]=e[2];e[2]=y;y=e[4];e[4]=e[5];e[5]=y;y=e[6];e[6]=e[7];e[7]=y;return e}y++}};
$4=function(e,N,y){CW.call(this);var w=this;this.K=e;this.J=[];this.lk={ApB:function(){return w.J.length}};
this.j=y.gP("html5_ignore_widevine_key_rotation_license_requests");this.N=new g.e6(function(){w.publish("log_qoe",{wvagt:"timer",reqlen:w.J?w.J.length:-1});if(w.J){if(w.J.length>0){var E=w.J.shift();Fd5(w,E.info)}w.J.length>0&&(E=w.J[0].time-(0,g.iC)(),w.N.start(Math.max(0,E)))}},0);
g.Q(this,this.N);N.subscribe("widevine_set_need_key_info",this.L,this)};
Fd5=function(e,N){a:{var y=N.cryptoPeriodIndex;if(isNaN(y)&&e.K.size>0)y=!0;else{for(var w=g.c(e.K.values()),E=w.next();!E.done;E=w.next())if(E.value.cryptoPeriodIndex===y){y=!0;break a}y=!1}}e.publish("log_qoe",{wvagt:"reqnews",canskip:y});y||e.publish("rotated_need_key_info_ready",N)};
Ss5=function(){var e={};var N=e.url;var y=e.interval;e=e.retries;this.url=N;this.interval=y;this.retries=e};
oIE=function(e,N){this.statusCode=e;this.message=N;this.N=this.heartbeatParams=this.errorMessage=null;this.J={};this.nextFairplayKeyId=null};
bXM=function(e,N,y){y=y===void 0?"":y;g.x.call(this);this.message=e;this.requestNumber=N;this.D_=y;this.onError=this.onSuccess=null;this.J=new g.kv(5E3,2E4,.2)};
hHF=function(e,N,y){e.onSuccess=N;e.onError=y};
kCE=function(e,N,y,w){var E={timeout:3E4,onSuccess:function(A){if(!e.Ss()){jZ("drm_net_r",void 0,e.D_);var T=A.status==="LICENSE_STATUS_OK"?0:9999,p=null;if(A.license)try{p=hO(A.license)}catch(S){g.t0(S)}if(T!==0||p){p=new oIE(T,p);T!==0&&A.reason&&(p.errorMessage=A.reason);if(A.authorizedFormats){T={};for(var C=[],r={},Y=g.c(A.authorizedFormats),M=Y.next();!M.done;M=Y.next())if(M=M.value,M.trackType&&M.keyId){var l=cY3[M.trackType];if(l){l==="HD"&&A.isHd720&&(l="HD720");M.isHdr&&(l+="HDR");T[l]||
(C.push(l),T[l]=!0);var F=null;try{F=hO(M.keyId)}catch(S){g.t0(S)}F&&(r[g.oN(F,4)]=l)}}p.N=C;p.J=r}A.nextFairplayKeyId&&(p.nextFairplayKeyId=A.nextFairplayKeyId);A.sabrLicenseConstraint&&(p.sabrLicenseConstraint=hO(A.sabrLicenseConstraint));A=p}else A=null;if(A)e.onSuccess(A,e.requestNumber);else e.onError(e,"drm.net","t.p;p.i")}},
onError:function(A){if(!e.Ss())if(A&&A.error)A=A.error,e.onError(e,"drm.net.badstatus","t.r;p.i;c."+A.code+";s."+A.status,A.code);else e.onError(e,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){e.onError(e,"drm.net","rt.req."+e.requestNumber)}};
w&&(E.DG="Bearer "+w);g.y7(y,"player/get_drm_license",N,E)};
BdM=function(e,N,y,w){g.pT.call(this);this.videoData=e;this.ph=N;this.D=y;this.sessionId=w;this.L={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.G=this.Kh=!1;this.K=null;this.l9=[];this.j=[];this.U=!1;this.J={};this.qg=NaN;this.status="";this.Z=NaN;this.N=e.L;this.cryptoPeriodIndex=y.cryptoPeriodIndex;e={};Object.assign(e,this.ph.J);e.cpn=this.videoData.clientPlaybackNonce;this.videoData.Kh&&(e.vvt=this.videoData.Kh,this.videoData.mdxEnvironment&&(e.mdx_environment=this.videoData.mdxEnvironment));
this.ph.l9&&(e.authuser=this.ph.l9);this.ph.pageId&&(e.pageid=this.ph.pageId);isNaN(this.cryptoPeriodIndex)||(e.cpi=this.cryptoPeriodIndex.toString());var E=(E=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.zw()))?E[1]:"";E==="ATV"&&(e.cdt=E);this.L=e;this.L.session_id=w;this.Ng=!0;this.N.flavor==="widevine"&&(this.L.hdr="1");this.N.flavor==="playready"&&(N=Number(ms(N.experiments,"playready_first_play_expiration")),!isNaN(N)&&N>=0&&(this.L.mfpe=""+N),this.Ng=!1);N="";g.i2(this.N)?zE(this.N)?(w=y.N)&&(N="https://www.youtube.com/api/drm/fps?ek="+
x3s(w)):(N=y.initData.subarray(4),N=new Uint16Array(N.buffer,N.byteOffset,N.byteLength/2),N=String.fromCharCode.apply(null,N).replace("skd://","https://")):N=this.N.N;this.baseUrl=N;this.fairplayKeyId=Hc(this.baseUrl,"ek")||"";if(N=Hc(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(N);this.i9=this.videoData.T("html5_use_drm_retry");this.l9=y.lm?[g.oN(y.initData,4)]:y.K;Y4(this,{sessioninit:y.cryptoPeriodIndex});this.status="in"};
Iis=function(e,N){Y4(e,{createkeysession:1});e.status="gr";jZ("drm_gk_s",void 0,e.videoData.Et);e.url=XFM(e);try{e.K=N.createSession(e.D,function(y){Y4(e,{m:y})})}catch(y){N="t.g";
y instanceof DOMException&&(N+=";c."+y.code);e.publish("licenseerror","drm.unavailable",1,N,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}e.K&&(PkP(e.K,function(y,w){dKs(e,y,w)},function(y,w,E){if(!e.Ss()){w=void 0;
var A=1;g.i2(e.N)&&g.IK(e.ph)&&e.ph.T("html5_enable_safari_fairplay")&&E===1212433232&&(w="ERROR_HDCP",A=e.ph.T("html5_safari_fairplay_ignore_hdcp")?0:A);e.error("drm.keyerror",A,y,w)}},function(){e.Ss()||(Y4(e,{onkyadd:1}),e.G||(e.publish("sessionready"),e.G=!0))},function(y){e.Nx(y)}),g.Q(e,e.K))};
XFM=function(e){var N=e.baseUrl;Ui9(N)||e.error("drm.net",2,"t.x");if(!Hc(N,"fexp")){var y=["23898307","23914062","23916106","23883098"].filter(function(E){return e.ph.experiments.experiments[E]});
y.length>0&&(e.L.fexp=y.join())}y=g.c(Object.keys(e.L));for(var w=y.next();!w.done;w=y.next())w=w.value,N=X45(N,w,e.L[w]);return N};
dKs=function(e,N,y){if(!e.Ss())if(N){Y4(e,{onkmtyp:y});e.status="km";switch(y){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":vIs(e,N);return;default:e.publish("ctmp","message_type",{t:y,l:N.byteLength})}e.Kh||(jZ("drm_gk_f",void 0,e.videoData.Et),e.Kh=!0,e.publish("newsession",e));if(dt(e.N)&&(N=zHn(N),!N))return;N=new bXM(N,++e.requestNumber,e.videoData.Et);hHF(N,function(w){iXF(e,w)},function(w,E,A){if(!e.Ss()){var T=0,p;
(p=w.J.N>=3)||(p=e.i9&&(0,g.iC)()-e.qg>36E4);p&&(T=1,E="drm.net.retryexhausted");Y4(e,{onlcsrqerr:E,info:A});e.error(E,T,A);e.shouldRetry(dp(T),w)&&DK0(e,w)}});
g.Q(e,N);gIJ(e,N)}else e.error("drm.unavailable",1,"km.empty")};
vIs=function(e,N){Y4(e,{sdpvrq:1});e.Z=Date.now();if(e.N.flavor!=="widevine")e.error("drm.provision",1,"e.flavor;f."+e.N.flavor+";l."+N.byteLength);else{var y={cpn:e.videoData.clientPlaybackNonce};Object.assign(y,e.ph.J);y=g.Qb("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",y);N={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,
N)}),responseType:"arraybuffer"};g.VN(y,N,3,500).then($B(function(w){w=w.xhr;if(!e.Ss()){w=new Uint8Array(w.response);var E=String.fromCharCode.apply(null,w);try{var A=JSON.parse(E)}catch(T){}A&&A.signedResponse?(e.publish("ctmp","drminfo",{provisioning:1}),A=(Date.now()-e.Z)/1E3,e.Z=NaN,e.publish("ctmp","provs",{et:A.toFixed(3)}),e.K&&e.K.update(w)):(A=A&&A.error&&A.error.message,w="e.parse",A&&(w+=";m."+A),e.error("drm.provision",1,w))}}),$B(function(w){e.Ss()||e.error("drm.provision",1,"e."+w.errorCode+
";c."+(w.xhr&&w.xhr.status))}))}};
Mt=function(e){var N;if(N=e.Ng&&e.K!=null)e=e.K,N=!(!e.J||!e.J.keyStatuses);return N};
gIJ=function(e,N){e.status="km";jZ("drm_net_s",void 0,e.videoData.Et);var y=new g.N6(e.ph.xI),w={context:g.M9(y.config_||g.Yp())};w.drmSystem=V5H[e.N.flavor];w.videoId=e.videoData.videoId;w.cpn=e.videoData.clientPlaybackNonce;w.sessionId=e.sessionId;w.licenseRequest=g.oN(N.message);w.drmParams=e.videoData.drmParams;isNaN(e.cryptoPeriodIndex)||(w.isKeyRotated=!0,w.cryptoPeriodIndex=e.cryptoPeriodIndex);var E,A,T=!!((E=e.videoData.N)==null?0:(A=E.video)==null?0:A.isHdr());w.drmVideoFeature=T?"DRM_VIDEO_FEATURE_PREFER_HDR":
"DRM_VIDEO_FEATURE_SDR";if(w.context&&w.context.client){if(E=e.ph.J)w.context.client.deviceMake=E.cbrand,w.context.client.deviceModel=E.cmodel,w.context.client.browserName=E.cbr,w.context.client.browserVersion=E.cbrver,w.context.client.osName=E.cos,w.context.client.osVersion=E.cosver;w.context.user=w.context.user||{};w.context.request=w.context.request||{};e.videoData.Kh&&(w.context.user.credentialTransferTokens=[{token:e.videoData.Kh,scope:"VIDEO"}]);w.context.request.mdxEnvironment=e.videoData.mdxEnvironment||
w.context.request.mdxEnvironment;e.videoData.a9&&(w.context.user.kidsParent={oauthToken:e.videoData.a9});g.i2(e.N)&&(w.fairplayKeyId=g.oN(jPP(e.fairplayKeyId)));g.GX(e.ph,g.qK(e.videoData)).then(function(p){kCE(N,w,y,p);e.status="rs"})}else e.error("drm.net",2,"t.r;ic.0")};
iXF=function(e,N){if(!e.Ss())if(Y4(e,{onlcsrsp:1}),e.status="rr",N.statusCode!==0)e.error("drm.auth",1,"t.f;c."+N.statusCode,N.errorMessage||void 0);else{jZ("drm_kr_s",void 0,e.videoData.Et);if(N.heartbeatParams&&N.heartbeatParams.url&&e.videoData.T("outertube_streaming_data_always_use_staging_license_service")){var y=e.N.N.match(/(.*)youtube.com/g);y&&(N.heartbeatParams.url=y[0]+N.heartbeatParams.url)}N.heartbeatParams&&e.publish("newlicense",N.heartbeatParams);N.N&&(e.j=N.N,e.videoData.i$||e.publish("newlicense",
new Ss5),e.videoData.i$=!0,e.U=DR(e.j,function(w){return w.includes("HDR")}));
N.J&&(e.ph.T("html5_enable_vp9_fairplay")&&zE(e.N)?(y=g.oN(jPP(e.fairplayKeyId),4),e.J[y]={type:N.J[y],status:"unknown"}):e.J=ha(N.J,function(w){return{type:w,status:"unknown"}}));
vU(e.N)&&(N.message=zl_(g.oN(N.message)));e.K&&(Y4(e,{updtks:1}),e.status="ku",e.K.update(N.message).then(function(){jZ("drm_kr_f",void 0,e.videoData.Et);Mt(e)||(Y4(e,{ksApiUnsup:1}),e.publish("keystatuseschange",e))},function(w){w="msuf.req."+e.requestNumber+";msg."+g.b7(w.message,3);
e.error("drm.keyerror",1,w)}));
e.G&&(e.qg=(0,g.iC)());g.i2(e.N)&&e.publish("fairplay_next_need_key_info",e.baseUrl,N.nextFairplayKeyId);e.ph.T("html5_enable_vp9_fairplay")&&zE(e.N)&&e.publish("qualitychange",fiE(e.j));N.sabrLicenseConstraint&&e.publish("sabrlicenseconstraint",N.sabrLicenseConstraint)}};
DK0=function(e,N){var y=N.J.getValue();y=new g.e6(function(){gIJ(e,N)},y);
g.Q(e,y);y.start();g.BC(N.J);Y4(e,{rtyrq:1})};
t53=function(e,N){for(var y=[],w=g.c(Object.keys(e.J)),E=w.next();!E.done;E=w.next())E=E.value,y.push(E+"_"+e.J[E].type+"_"+e.J[E].status);return y.join(N)};
uU3=function(e){var N={};N[e.status]=Mt(e)?t53(e,"."):e.j.join(".");return N};
qsM=function(e,N){switch(e){case "highres":case "hd2880":e="UHD2";break;case "hd2160":case "hd1440":e="UHD1";break;case "hd1080":case "hd720":e="HD";break;case "large":case "medium":case "small":case "light":case "tiny":e="SD";break;default:return""}N&&(e+="HDR");return e};
ZXH=function(e,N){for(var y in e.J)if(e.J[y].status==="usable"&&e.J[y].type===N)return!0;return!1};
xK1=function(e,N){for(var y in e.J)if(e.J[y].type===N)return e.J[y].status};
Y4=function(e,N){var y=y===void 0?!1:y;Xe(N);(y||e.ph.B9())&&e.publish("ctmp","drmlog",N)};
j$E=function(e){var N=e[0];e[0]=e[3];e[3]=N;N=e[1];e[1]=e[2];e[2]=N;N=e[4];e[4]=e[5];e[5]=N;N=e[6];e[6]=e[7];e[7]=N};
fiE=function(e){return g.Gw(e,"UHD2")||g.Gw(e,"UHD2HDR")?"highres":g.Gw(e,"UHD1")||g.Gw(e,"UHD1HDR")?"hd2160":g.Gw(e,"HD")||g.Gw(e,"HDHDR")?"hd1080":g.Gw(e,"HD720")||g.Gw(e,"HD720HDR")?"hd720":"large"};
zHn=function(e){for(var N="",y=0;y<e.length;y+=2)N+=String.fromCharCode(e[y]);e=OK(new DOMParser,tt(N),"text/xml");return e?(e=e.querySelector("Challenge"))&&e.childNodes&&e.childNodes.length!==0?new Uint8Array((0,g.rB)(lZn(e.childNodes[0].nodeValue)).buffer):null:null};
lw=function(e,N,y,w,E,A){A=A===void 0?!1:A;g.x.call(this);this.element=e;this.U=N;this.initData=y;this.J=w;this.N=E;this.D=A;this.sessionId="";this.G=this.Z=this.K=this.L=null;this.j=new g.fd(this);g.Q(this,this.j);nIM(this)};
nIM=function(e){e.J?(e.j.Y(e.J,"message",e.mG),e.j.Y(e.J,"keystatuseschange",e.Nx),e.J.closed&&e.J.closed.then($B(function(){e.onClosed()}),null)):e.N&&(Dw(e.j,e.N,["mskeymessage",
"webkitkeymessage"],e.CZ),Dw(e.j,e.N,["mskeyerror","webkitkeyerror"],e.RU),Dw(e.j,e.N,["mskeyadded","webkitkeyadded"],e.S7))};
PkP=function(e,N,y,w,E){e.L=N;e.K=y;e.Z=w;e.G=E};
Q$J=function(e,N,y){g.t0(y);e.K&&(y instanceof DOMException&&(N+=";n."+y.name+";m."+y.message),e.K(N))};
F$=function(e,N,y,w){w=w===void 0?!1:w;g.x.call(this);this.element=e;this.J=N;this.Fh=y;this.G=w;this.Z={};this.j=null;this.L=new g.fd(this);this.K=this.N=null;g.Q(this,this.L)};
HXJ=function(e,N){N=mK5(N,e.J.Ut);N=e.K.createSession("video/mp4",N);return new lw(null,null,null,null,N,e.G)};
KdJ=function(e,N){for(var y=new Uint8Array(270),w=0;w<135;w++)y[w*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(w);e=e.K.createSession("video/mp4",N,y);return new lw(null,null,null,null,e)};
Wdn=function(e,N){var y=e.Z[N.sessionId];!y&&e.j&&(y=e.j,e.j=null,y.sessionId=N.sessionId,e.Z[N.sessionId]=y);return y};
mK5=function(e,N){var y=e.subarray(4);y=new Uint16Array(y.buffer,y.byteOffset,y.byteLength/2);y=String.fromCharCode.apply(null,y).match(/ek=([0-9a-f]+)/)[1];for(var w="",E=0;E<y.length;E+=2)w+=String.fromCharCode(parseInt(y.substring(E,E+2),16));y=w;w=new ArrayBuffer(y.length*2);E=new Uint16Array(w);for(var A=0;A<y.length;A++)E[A]=y.charCodeAt(A);y=new Uint8Array(w);w=0;A=new ArrayBuffer(e.byteLength+4+y.byteLength+4+N.byteLength);E=new Uint8Array(A);A=new DataView(A);E.set(e);w+=e.byteLength;A.setUint32(w,
y.length,!0);w+=4;E.set(y,w);w+=y.length;A.setUint32(w,N.byteLength,!0);E.set(N,w+4);return E};
Sf=function(){this.keys=[];this.values=[]};
GCJ=function(e,N,y){g.pT.call(this);this.element=e;this.videoData=N;this.ph=y;this.K=[];this.aq=2;this.Zl=this.i9=!1;this.heartbeatParams=null;this.l9=this.D=!1;this.L=null;this.Rq=!1;this.J=this.videoData.L;this.drmSessionId=this.videoData.drmSessionId||g.IJM();this.N=new Map;this.Z=new Sf;this.G=new Sf;this.Kh=new g.fd(this);this.qg=this.ph.T("html5_eme_ignore_teardown_errors");(e=this.element)&&(e.addKey||e.webkitAddKey)||Xu()||gt(y.experiments);this.ph.T("html5_enable_vp9_fairplay")&&zE(this.J)?
y=OXJ:(y=this.videoData.xX,y=this.J.flavor==="fairplay"||y?f3:OXJ);this.U=y;this.j=new F$(this.element,this.J,this.XE.bind(this),this.qg);g.Q(this,this.j);PU(this.J)&&(this.Ng=new F$(this.element,this.J,this.XE.bind(this),this.qg),g.Q(this,this.Ng));g.Q(this,this.Kh);y=this.element;this.J.keySystemAccess?this.Kh.Y(y,"encrypted",this.lBP):Dw(this.Kh,y,PU(this.J)?["msneedkey"]:["needkey","webkitneedkey"],this.XYh);RHn(this);a:switch(y=this.J,e=this.ph.experiments,N=this.N,y.flavor){case "fairplay":if(N=
/\sCobalt\/(\S+)\s/.exec(g.zw())){e=[];N=g.c(N[1].split("."));for(var w=N.next();!w.done;w=N.next())w=parseInt(w.value,10),w>=0&&e.push(w);e=parseFloat(e.join("."))}else e=NaN;e>19.2999?(e=y.c5,y=y.zd,y>=e&&(y=e*.75),N=(e-y)*.5,y=new rg(N,e,e-N-y,this)):y=null;break a;case "widevine":y=new $4(N,this,e);break a;default:y=null}if(this.L=y)g.Q(this,this.L),this.L.subscribe("rotated_need_key_info_ready",this.ej,this),this.L.subscribe("log_qoe",this.T4,this);gt(this.ph.experiments);this.T4({cks:this.J.getInfo()})};
RHn=function(e){var N=e.j.wU();N?N.then($B(function(){UKE(e)}),$B(function(y){if(!e.Ss()){g.t0(y);
var w="t.a";y instanceof DOMException&&(w+=";n."+y.name+";m."+y.message);e.publish("licenseerror","drm.unavailable",1,w,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(e.T4({mdkrdy:1}),e.D=!0);
e.Ng&&(N=e.Ng.wU())};
sO5=function(e,N,y){e.Zl=!0;y=new eL(N,y);e.ph.T("html5_eme_loader_sync")&&(e.Z.get(N)||e.Z.set(N,y));LU_(e,y)};
LU_=function(e,N){if(!e.Ss()){e.T4({onInitData:1});if(e.ph.T("html5_eme_loader_sync")&&e.videoData.K&&e.videoData.K.J){var y=e.G.get(N.initData);N=e.Z.get(N.initData);if(!y||!N)return;N=y;y=N.initData;e.Z.remove(y);e.G.remove(y)}e.T4({initd:N.initData.length,ct:N.contentType});if(e.J.flavor==="widevine")if(e.i9&&!e.videoData.isLivePlayback)oU(e);else{if(!(e.ph.T("vp9_drm_live")&&e.videoData.isLivePlayback&&N.lm)){e.i9=!0;y=N.cryptoPeriodIndex;var w=N.J;na0(N);N.lm||(w&&N.J!==w?e.publish("ctmp","cpsmm",
{emsg:w,pssh:N.J}):y&&N.cryptoPeriodIndex!==y&&e.publish("ctmp","cpimm",{emsg:y,pssh:N.cryptoPeriodIndex}));e.publish("widevine_set_need_key_info",N)}}else e.ej(N)}};
UKE=function(e){if(!e.Ss())if(e.ph.T("html5_drm_set_server_cert")||zE(e.J)){var N=e.j.setServerCertificate();N?N.then($B(function(y){e.ph.B9()&&e.publish("ctmp","ssc",{success:y})}),$B(function(y){e.publish("ctmp","ssce",{n:y.name,
m:y.message})})).then($B(function(){a09(e)})):a09(e)}else a09(e)};
a09=function(e){e.Ss()||(e.D=!0,e.T4({onmdkrdy:1}),oU(e))};
eY3=function(e){return e.J.flavor==="widevine"&&e.videoData.T("html5_drm_cpi_license_key")};
oU=function(e){if((e.Zl||e.ph.T("html5_widevine_use_fake_pssh"))&&e.D&&!e.l9){for(;e.K.length;){var N=e.K[0],y=eY3(e)?QiJ(N):g.oN(N.initData);if(zE(e.J)&&!N.N)e.K.shift();else{if(e.N.get(y))if(e.J.flavor!=="fairplay"||zE(e.J)){e.K.shift();continue}else e.N.delete(y);na0(N);break}}e.K.length&&e.createSession(e.K[0])}};
NAJ=function(e){var N;if(N=g.O8()){var y;N=!((y=e.j.N)==null||!y.getMetrics)}N&&(N=e.j.getMetrics())&&(N=g.IR(N),e.publish("ctmp","drm",{metrics:N}))};
yW5=function(){var e=taP();return!(!e||e==="visible")};
Een=function(e){var N=wl5();N&&document.addEventListener(N,e,!1)};
AWH=function(e){var N=wl5();N&&document.removeEventListener(N,e,!1)};
wl5=function(){if(document.visibilityState)var e="visibilitychange";else{if(!document[Su+"VisibilityState"])return"";e=Su+"visibilitychange"}return e};
TA1=function(e){g.x.call(this);var N=this;this.JW=e;this.P3=0;this.Z=this.N=this.L=!1;this.j=0;this.Ot=this.JW.X();this.videoData=this.JW.getVideoData();this.K=g.Y2(this.Ot.experiments,"html5_delayed_retry_count");this.J=new g.e6(function(){N.JW.hT()},g.Y2(this.Ot.experiments,"html5_delayed_retry_delay_ms"));
g.Q(this,this.J)};
$N0=function(e,N,y){var w=e.videoData.N,E=e.videoData.j;Rf(e.JW.getVideoData())&&e.Ot.T("html5_gapless_fallback_on_qoe_restart")&&M53(e.JW,"pe");if((N==="progressive.net.retryexhausted"||N==="fmt.unplayable"||N==="fmt.decode")&&!e.JW.NO.L&&w&&w.itag==="22")return e.JW.NO.L=!0,e.Qi("qoe.restart",{reason:"fmt.unplayable.22"}),e.JW.TE(),!0;var A=!1;if(e.videoData.isExternallyHostedPodcast){if(A=e.videoData.H$)y.mimeType=A.type,e.Fh("3pp",{url:A.url});y.ns="3pp";e.JW.MP(N,1,"VIDEO_UNAVAILABLE",Xe((new P3(N,
y,1)).details));return!0}var T=e.P3+3E4<(0,g.iC)()||e.J.isActive();if(e.Ot.T("html5_empty_src")&&e.videoData.isAd()&&N==="fmt.unplayable"&&/Empty src/.test(""+y.msg))return y.origin="emptysrc",e.Qi("auth",y),!0;T||bw(e.JW.UP())||(y.nonfg="paused",T=!0,e.JW.pauseVideo());(N==="fmt.decode"||N==="fmt.unplayable")&&(E==null?0:W3(E)||Og(E))&&(IuP(e.Ot.L,E.Iq),y.acfallexp=E.Iq,A=T=!0);!T&&e.K>0&&(e.J.start(),T=!0,y.delayed="1",--e.K);E=e.JW.tW;!T&&((w==null?0:Kd(w))||(w==null?0:mu(w)))&&(IuP(e.Ot.L,w.Iq),
A=T=!0,y.cfallexp=w.Iq);if(e.Ot.T("html5_ssap_ignore_decode_error_for_next_video")&&g.xK(e.videoData)&&N==="fmt.unplayable"&&y.cid&&y.ccid&&bw(e.JW.UP())){if(y.cid!==y.ccid)return y.ignerr="1",e.Qi("ssap.transitionfailure",y),!0;e.Qi("ssap.transitionfailure",y);if(JW3(e.JW,N))return!0}if(!T)return pl3(e,y);if(e.Ot.T("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.xK(e.videoData)&&N==="fmt.unplayable"&&y.cid&&y.ccid&&y.cid!==y.ccid&&bw(e.JW.UP())&&(e.Qi("ssap.transitionfailure",y),JW3(e.JW,
N)))return!0;T=!1;e.L?e.P3=(0,g.iC)():T=e.L=!0;var p=e.videoData;if(p.VB){p=p.VB.a_();var C=Date.now()/1E3+1800;p=p<C}else p=!1;y.e=N;y.bkg=yW5();p&&(y.staleprog="1");e.Qi("qoe.restart",y);if(p&&Cz5(e))return rWF(e),!0;if(!(!g.Kp("philips")||N==="fmt.unplayable"&&E&&E.qg||e.Ot.J.cplatform==="GAME_CONSOLE"))try{window.close()}catch(r){}w&&Kd(w)&&!e.Ot.T("html5_allow_av1_retry_in_session")?(A=e.Ot.L,A.G=!0,RI(A),A=!0):E?T||(N=(N=MN(E.videoTrack)||E.videoTrack.N)?N.J:E.videoTrack.J,N.Z+=1,E.policy.J?
tI(E.N.J,N,!0):QW(E.J,N,!0)):e.videoData.VB&&e.videoData.VB.tj();e.J.isActive()||e.JW.hT(A);return!0};
pl3=function(e,N){if(e.videoData.qg)return!1;e.Ot.pX+=1;if(e.Ot.pX<=10)return!1;N.exiled=""+e.Ot.pX;e.Qi("qoe.start15s",N);e.JW.publish("playbackstalledatstart");return!0};
Cz5=function(e){return e.N?!0:e.Ot.Ng==="yt"?e.videoData.qg?e.videoData.jn<25:!e.videoData.jn:!1};
rWF=function(e){if(!e.N){e.N=!0;var N=e.JW.getPlayerState();N=N.isPaused()||N.isSuspended();e.JW.wK();N&&!j5(e.videoData)||e.JW.publish("signatureexpired")}};
Yen=function(e,N){if((e=e.JW.LC())&&(N.errorCode==="fmt.unplayable"||N.errorCode==="html5.invalidstate")){var y=e.pw();N.details.merr=y?y.toString():"0";N.details.mmsg=e.Cq()}};
MLs=function(e){return e.errorCode==="net.badstatus"&&(e.severity===1||!!e.details.fmt_unav)};
lU_=function(e,N){return e.Ot.T("html5_use_network_error_code_enums")&&N.details.rc===403||N.details.rc==="403"?(e=N.errorCode,e==="net.badstatus"||e==="manifest.net.retryexhausted"):!1};
Se1=function(e,N){if(!lU_(e,N)&&!e.N)return!1;N.details.sts="20129";if(Cz5(e))return dp(N.severity)&&(N=Object.assign({e:N.errorCode},N.details),N=new P3("qoe.restart",N)),e.Qi(N.errorCode,N.details),rWF(e),!0;(0,g.iC)()-e.Ot.Fr>6048E5&&FLM(e,"signature");return!1};
FLM=function(e,N){try{window.location.reload(),e.Qi("qoe.restart",{detail:"pr."+N})}catch(y){}};
oeM=function(e,N){N=N===void 0?"fmt.noneavailable":N;var y=e.Ot.L;y.Z=!1;RI(y);e.Qi("qoe.restart",{e:N,detail:"hdr"});e.JW.hT(!0)};
br5=function(e,N,y,w,E,A){this.videoData=e;this.J=N;this.reason=y;this.N=w;this.token=E;this.videoId=A};
hY5=function(e,N,y){this.ph=e;this.m7=N;this.JW=y;this.U=this.Z=this.J=this.j=this.G=this.N=0;this.L=!1;this.D=g.Y2(this.ph.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.K=new Map};
kbM=function(e,N,y){!e.ph.T("html5_tv_ignore_capable_constraint")&&g.I_(e.ph)&&(y=y.compose(cW0(e,N)));return y};
Xl9=function(e,N){var y,w=BAM(e,(y=N.J)==null?void 0:y.videoInfos);y=e.JW.getPlaybackRate();return y>1&&w?(e=c_5(e.ph.L,N.J.videoInfos,y),new Oj(0,e,!0,"o")):new Oj(0,0,!1,"o")};
BAM=function(e,N){return N&&g.I_(e.ph)?N.some(function(y){return y.video.fps>32}):!1};
PzF=function(e,N){var y=e.JW.g0();e.T("html5_use_video_quality_cap_for_ustreamer_constraint")&&y&&y.Sv>0&&Uj(N.videoData.By)&&(e=y.Sv,N.videoData.By=new Oj(0,e,!1,"u"));return N.videoData.By};
cW0=function(e,N){if(g.I_(e.ph)&&rD(e.ph.L,$E.HEIGHT))var y=N.J.videoInfos[0].video.J;else{var w=!!N.J.J;var E;g.Pg(e.ph)&&(E=window.screen&&window.screen.width?new g.l8(window.screen.width,window.screen.height):null);E||(E=e.ph.Zc?e.ph.Zc.clone():e.m7.aV());(s8||HT||w)&&E.scale(g.jV());w=E;Gr(N.videoData)||j5(N.videoData);N=N.J.videoInfos;if(N.length){E=g.Y2(e.ph.experiments,"html5_override_oversend_fraction")||.85;var A=N[0].video;A.projectionType!=="MESH"&&A.projectionType!=="EQUIRECTANGULAR"&&
A.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Bg||(E=.45);e=g.Y2(e.ph.experiments,"html5_viewport_undersend_maximum");for(A=0;A<N.length;A++){y=N[A];var T=y.video;if(w===null||T.width*E<w.width&&T.height*E<w.height){e&&A&&T.width<w.width*e&&T.height<w.height*e&&(y=N[A-1]);break}}w=y.video;y=new Oj(0,y.itag==="93"?g.q5[u$(w.width,w.height)]:w.J,!1,"r")}else y=f3;y=y.J}y&&(y=Math.max(y,360));return new Oj(0,y,!1,"r")};
dNH=function(e,N){var y;a:if((y=N.J)&&y.videoInfos.length){for(var w=g.c(y.videoInfos),E=w.next();!E.done;E=w.next()){E=E.value;var A=void 0;if((A=E.N)==null?0:A.smooth){y=E.video.J;break a}}y=y.videoInfos[0].video.J}else y=0;SH3()&&!g.I_(e.ph)&&mu(N.J.videoInfos[0])&&(y=Math.min(y,g.q5.large));w=g.Y2(e.ph.experiments,"html5_chipset_soft_cap");w>0&&(y=Math.min(y,w));if(w=g.Y2(e.ph.experiments,"html5_max_vertical_resolution")){e=4320;for(E=0;E<N.J.videoInfos.length;E++)A=N.J.videoInfos[E],A.video.height>
w&&(e=Math.min(e,A.video.J));if(e<4320){for(E=w=0;E<N.J.videoInfos.length;E++)A=N.J.videoInfos[E].video.J,A<e&&(w=Math.max(w,A));w&&(y=Math.min(w,y))}}return new Oj(0,y,!1,"o")};
ve3=function(e,N){var y=4320;!e.ph.N||g.dw(e.ph)||e.ph.T("hls_for_vod")||e.ph.T("mweb_remove_360p_cap")||(y=g.q5.medium);var w=g.Y2(e.ph.experiments,"html5_default_quality_cap");w&&N.J.J&&(e.ph.T("html5_always_apply_default_quality_cap")||!N.videoData.S_&&!N.videoData.BG)&&(y=Math.min(y,w));w=g.Y2(e.ph.experiments,"html5_random_playback_cap");var E=/[a-h]$/;w&&E.test(N.videoData.clientPlaybackNonce)&&(y=Math.min(y,w));if(E=w=g.Y2(e.ph.experiments,"html5_hfr_quality_cap"))a:{E=N.J;if(E.J){E=g.c(E.videoInfos);
for(var A=E.next();!A.done;A=E.next())if(A.value.video.fps>32){E=!0;break a}}E=!1}E&&(y=Math.min(y,w));(w=g.Y2(e.ph.experiments,"html5_live_quality_cap"))&&N.videoData.isLivePlayback&&(y=Math.min(y,w));y=IU9(e,N,y);e=g.Y2(e.ph.experiments,"html5_byterate_soft_cap");return new Oj(0,y===4320?0:y,!1,"d",e)};
zYn=function(e){var N,y,w,E;return g.f(function(A){switch(A.J){case 1:return e.J.J&&typeof((N=navigator.mediaCapabilities)==null?void 0:N.decodingInfo)==="function"?g.D(A,Promise.resolve(),2):A.return(Promise.resolve());case 2:y=g.c(e.J.videoInfos),w=y.next();case 3:if(w.done){A.u9(0);break}E=w.value;return g.D(A,rFM(E),4);case 4:w=y.next(),A.u9(3)}})};
DN1=function(e,N){if(!N.videoData.N||e.T("html5_disable_performance_downgrade"))return!1;Date.now()-e.G>6E4&&(e.N=0);e.N++;e.G=Date.now();if(e.N!==4)return!1;irM(e,N.videoData.N);return!0};
VL5=function(e,N,y,w){if(!N||!y||!N.videoData.N)return!1;var E=g.Y2(e.ph.experiments,"html5_df_downgrade_thresh"),A=e.T("html5_log_media_perf_info");if(!((0,g.iC)()-e.j<5E3?0:A||E>0))return!1;var T=((0,g.iC)()-e.j)/1E3;e.j=(0,g.iC)();y=y.getVideoPlaybackQuality();if(!y)return!1;var p=y.droppedVideoFrames-e.Z,C=y.totalVideoFrames-e.U;e.Z=y.droppedVideoFrames;e.U=y.totalVideoFrames;var r=y.displayCompositedVideoFrames===0?0:y.displayCompositedVideoFrames||-1;A&&e.ph.B9()&&e.JW.Fh("ddf",{dr:y.droppedVideoFrames,
de:y.totalVideoFrames,comp:r});if(w)return e.J=0,!1;if((C-p)/T>e.D||!E||g.I_(e.ph))return!1;e.J=(C>60?p/C:0)>E?e.J+1:0;if(e.J!==3)return!1;irM(e,N.videoData.N);e.JW.Fh("dfd",Object.assign({dr:y.droppedVideoFrames,de:y.totalVideoFrames},geH()));return!0};
irM=function(e,N){var y=N.Iq,w=N.video.fps,E=N.video.J-1,A=e.K;N=""+y+(w>49?"p60":w>32?"p48":"");y=cU(y,w,A);E>0&&(y=Math.min(y,E));if(!hj.has(N)&&gQ().includes(N)){var T=y;y=DM();+y[N]>0&&(T=Math.min(+y[N],T));y[N]!==T&&(y[N]=T,g.uY("yt-player-performance-cap",y,2592E3))}else if(hj.has(N)||A==null){a:{T=T===void 0?!0:T;w=gQ().slice();if(T){if(w.includes(N))break a;w.push(N)}else{if(!w.includes(N))break a;w.splice(w.indexOf(N),1)}g.uY("yt-player-performance-cap-active-set",w,2592E3)}hm.set(N,y)}else hj.add(N),
A==null||A.set(N,y);e.JW.mK()};
cG=function(e,N){if(!N.J.J)return e.L?new Oj(0,360,!1,"b"):f3;for(var y=!1,w=!1,E=g.c(N.J.videoInfos),A=E.next();!A.done;A=E.next())Kd(A.value)?y=!0:w=!0;y=y&&w;w=0;E=g.Y2(e.ph.experiments,"html5_performance_cap_floor");E=e.ph.N?240:E;N=g.c(N.J.videoInfos);for(A=N.next();!A.done;A=N.next()){var T=A.value;if(!y||!Kd(T))if(A=cU(T.Iq,T.video.fps,e.K),T=T.video.J,Math.max(A,E)>=T){w=T;break}}return new Oj(0,w,!1,"b")};
fUs=function(e,N){var y=e.JW.UP();return y.isInline()&&!N.xn?new Oj(0,480,!1,"v"):y.isBackground()&&z_()/1E3>60&&!g.I_(e.ph)?new Oj(0,360,!1,"v"):f3};
tLE=function(e,N,y){if(e.ph.experiments.gP("html5_disable_client_autonav_cap_for_onesie")&&N.fetchType==="onesie"||g.I_(e.ph)&&(zm(-1)>=1080||N.osid))return f3;var w=g.Y2(e.ph.experiments,"html5_autonav_quality_cap"),E=g.Y2(e.ph.experiments,"html5_autonav_cap_idle_secs");return w&&N.isAutonav&&z_()/1E3>E?(y&&(w=IU9(e,y,w)),new Oj(0,w,!1,"e")):f3};
IU9=function(e,N,y){if(e.T("html5_optimality_defaults_chooses_next_higher")&&y)for(e=N.J.videoInfos,N=1;N<e.length;N++)if(e[N].video.J<y)return e[N-1].video.J;return y};
uzE=function(e,N){e.T("html5_log_media_perf_info")&&(e.JW.Fh("perfdb",geH()),e.JW.Fh("sessionperfdb",Object.fromEntries(hm.entries())),e.JW.Fh("playbackperfdb",Object.fromEntries(e.K.entries())),e.JW.Fh("hwc",{nch:navigator.hardwareConcurrency},!0),N&&e.JW.Fh("mcdb",{itags:N.J.videoInfos.filter(function(y){var w;return((w=y.N)==null?void 0:w.smooth)===!1}).map(function(y){return y.itag}).join("-")}))};
geH=function(){return ha(DM(),function(e){return""+e})};
k4=function(e){g.x.call(this);var N=this;this.provider=e;this.J=-1;this.L=!1;this.N=-1;this.playerState=new g.a8;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.j=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.e6(this.send,6E4,this);this.K=!1;this.jsErrorCount=0;this.lk={gs:function(){N.gs()}};
this.gs=function(){N.jsErrorCount++};
g.Q(this,this.delay);window.addEventListener("error",this.gs);window.addEventListener("unhandledrejection",this.gs)};
qe3=function(e){e.J>=0||(e.provider.JW.getVisibilityState()===3?e.L=!0:(e.J=g.BG(e.provider),e.delay.start()))};
ZrF=function(e){if(!(e.N<0)){var N=g.BG(e.provider),y=N-e.j;e.j=N;e.playerState.state===8?e.playTimeSecs+=y:e.playerState.isBuffering()&&!g.G(e.playerState,16)&&(e.rebufferTimeSecs+=y)}};
xNM=function(e){var N;switch((N=e.ph.playerCanaryStage)==null?void 0:N.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"}};
jlM=function(e){return window.PressureObserver&&new window.PressureObserver(e)};
neF=function(e,N){N=N===void 0?jlM:N;g.x.call(this);var y=this;if(this.L=e)try{this.J=N(function(A){y.N=A.at(-1)});
var w;this.K=(w=this.J)==null?void 0:w.observe("cpu",{sampleInterval:2E3}).catch(function(A){A instanceof DOMException&&(y.j=A)})}catch(A){A instanceof DOMException&&(this.j=A)}else{this.J=N(function(A){y.N=A.at(-1)});
var E;this.K=(E=this.J)==null?void 0:E.observe("cpu",{sampleInterval:2E3})}};
Ql9=function(e){var N={},y=window.h5vcc;N.hwConcurrency=navigator.hardwareConcurrency;e.j&&(N.cpe=e.j.message);e.N&&(N.cpt=e.N.time,N.cps=e.N.state);if(y==null?0:y.cVal)N.cb2s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),N.cb5s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),N.cb30s=y.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return N};
mN_=function(e){var N;g.f(function(y){switch(y.J){case 1:if(!e.L)return g.D(y,e.K,3);g.c5(y,4);return g.D(y,e.K,6);case 6:g.B5(y,3);break;case 4:g.XH(y);y.u9(3);break;case 3:(N=e.J)==null||N.disconnect(),g.hn(y)}})};
KL5=function(e,N){N?Hr0.test(e):(e=g.JE(e),Object.keys(e).includes("cpn"))};
OrE=function(e,N,y,w,E,A,T){var p={format:"RAW"},C={};if(r2(e)&&$3()){if(T){var r;((r=WL_.uaChPolyfill)==null?void 0:r.state.type)!==2?T=null:(T=WL_.uaChPolyfill.state.data.values,T={"Synth-Sec-CH-UA-Arch":T.architecture,"Synth-Sec-CH-UA-Model":T.model,"Synth-Sec-CH-UA-Platform":T.platform,"Synth-Sec-CH-UA-Platform-Version":T.platformVersion,"Synth-Sec-CH-UA-Full-Version":T.uaFullVersion});C=Object.assign(C,T);p.withCredentials=!0}(T=g.Lb("EOM_VISITOR_DATA"))?C["X-Goog-EOM-Visitor-Id"]=T:w?C["X-Goog-Visitor-Id"]=
w:g.Lb("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=g.Lb("VISITOR_DATA"));y&&(C["X-Goog-PageId"]=y);(w=N.l9)&&!Qy(N)&&(C["X-Goog-AuthUser"]=w);E&&(C.Authorization="Bearer "+E);N.T("enable_datasync_id_header_in_web_vss_pings")&&N.il&&N.datasyncId&&(C["X-YouTube-DataSync-Id"]=N.datasyncId);T||C["X-Goog-Visitor-Id"]||E||y||w?p.withCredentials=!0:N.T("html5_send_cpn_with_options")&&Hr0.test(e)&&(p.withCredentials=!0)}Object.keys(C).length>0&&(p.headers=C);A&&(p.onFinish=A);return Object.keys(p).length>1?
p:null};
RY9=function(e,N,y,w,E,A,T,p){$3()&&y.token&&(e=pp(e,{ctt:y.token,cttype:y.p7,mdx_environment:y.mdxEnvironment}));w.T("net_pings_low_priority")&&(N||(N={}),N.priority="low");A||p&&w.T("nwl_skip_retry")?(N==null?N={}:KL5(e,w.T("html5_assert_cpn_with_regex")),T?ae().sendAndWrite(e,N):ae().sendThenWrite(e,N,p)):N?(KL5(e,w.T("html5_assert_cpn_with_regex")),w.T("net_pings_use_fetch")?A7E(e,N):g.zk(e,N)):g.mK(e,E)};
Gbn=function(e){for(var N=[],y=0;y<e;y++){for(var w={},E=Math.floor(Math.random()*9*1E8)+1E8,A="",T=0;T<9;T++)A+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];w.videoDecoderName=A;w.elapsedTimeMs=E;N.push(w)}return N};
UNH=function(e){return window.Profiler&&new window.Profiler(e)};
LLJ=function(e){/[^a-zA-Z0-9;.!_-]/.test(e)&&(e=e.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return e};
X$=function(e,N,y){y=y===void 0?UNH:y;g.x.call(this);this.sampleInterval=e;this.maxBufferSize=N;this.L=y;this.encoder=new eV;this.J=[];this.K=0;slJ(this)};
slJ=function(e){var N=e.sampleInterval,y=e.maxBufferSize;if(N>0&&y>0&&!e.N&&e.K<1E7)try{e.j=e.L({sampleInterval:N,maxBufferSize:y});var w;(w=e.j)==null||w.addEventListener("samplebufferfull",function(){return g.f(function(E){if(E.J==1)return g.D(E,e.stop(),2);slJ(e);g.hn(E)})})}catch(E){e.N=LLJ(E.message)}};
PG=function(e,N){var y,w;return!!((y=window.h5vcc)==null?0:(w=y.settings)==null?0:w.set(e,N))};
eM_=function(){var e,N,y,w=(e=window.h5vcc)==null?void 0:(N=e.settings)==null?void 0:(y=N.getPersistentSettingAsString)==null?void 0:y.call(N,"cpu_usage_tracker_intervals");if(w!=null){var E;e=(E=JSON.parse(w))!=null?E:[];E=e.filter(function(r){return r.type==="total"}).map(function(r){return r.seconds});
N=g.c(aU5);for(y=N.next();!y.done;y=N.next())y=y.value,E.indexOf(y)===-1&&e.push({type:"total",seconds:y});var A,T;(A=window.h5vcc)==null||(T=A.settings)==null||T.set("cpu_usage_tracker_intervals_enabled",1);var p,C;(p=window.h5vcc)==null||(C=p.settings)==null||C.set("cpu_usage_tracker_intervals",JSON.stringify(e))}};
NE_=function(){var e=window.H5vccPlatformService,N="";if(e&&e.has("dev.cobalt.coat.clientloginfo")&&(e=e.open("dev.cobalt.coat.clientloginfo",function(){}))){var y=e.send(new ArrayBuffer(0));
y&&(N=String.fromCharCode.apply(String,g.B(new Uint8Array(y))));e.close()}return N};
g.vG=function(e,N){g.x.call(this);var y=this;this.provider=e;this.logger=new g.RE("qoe");this.J={};this.sequenceNumber=1;this.Z=NaN;this.k9="N";this.D=this.OD=this.ql=this.SR=this.L=0;this.pX=this.aq=this.G=this.Et="";this.jn=this.Zl=NaN;this.FZ=0;this.LX=-1;this.PY=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Kx=this.isEmbargoed=this.i9=this.isOffline=this.isBuffering=!1;this.CC=[];this.Kh=null;this.Dl=this.K=this.VB=this.U=!1;this.N=-1;this.Wk=!1;this.U2=new g.e6(this.flB,750,this);this.Ng=
this.adCpn=this.qg=this.contentCpn="";this.adFormat=void 0;this.YO=0;this.NK=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.jp=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.a9=!1;this.Xz=NaN;this.Rq=0;this.dT=!1;this.l9=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Y_=!1;this.lk={nP:function(E){y.nP(E)},
PeG:function(){return y.j},
YI:function(){return y.contentCpn},
jSk:function(){return y.qg},
reportStats:function(){y.reportStats()},
NLh:function(){return y.J.cat},
JK:function(E){return y.J[E]},
NSG:function(){return y.l9}};
var w=g.Y2(this.provider.ph.experiments,"html5_qoe_proto_mock_length");w&&!dg.length&&(dg=Gbn(w));g.Q(this,this.U2);try{navigator.getBattery().then(function(E){y.Kh=E})}catch(E){}g.IU(this,0,"vps",["N"]);
e.ph.B9()&&(this.Rq=(0,g.iC)(),this.Xz=g.hE(function(){var E=(0,g.iC)(),A=E-y.Rq;A>500&&y.Fh("vmlock",{diff:A.toFixed()});y.Rq=E},250));
e.JW.bP()&&N&&(this.l9=N-Math.round(g.BG(e)*1E3));this.provider.videoData.S_&&(this.remoteControlMode=yJF[this.provider.videoData.S_]||0);this.provider.videoData.N2&&(N=gQ9(this.provider.videoData.N2),N==null?0:N.length)&&(this.remoteConnectedDevices=N);if(e.ph.B9()||e.T("html5_log_cpu_info"))this.Ut=new neF(e.T("html5_catch_cpu_info_errors")),g.Q(this,this.Ut);N=g.Y2(e.ph.experiments,"html5_js_self_profiler_sample_interval_ms");e=g.Y2(e.ph.experiments,"html5_js_self_profiler_max_samples");N>0&&e>
0&&(this.Bk=new X$(N,e),g.Q(this,this.Bk))};
g.IU=function(e,N,y,w){var E=e.J[y];E||(E=[],e.J[y]=E);E.push(N.toFixed(3)+":"+w.join(":"))};
wO5=function(e,N){var y=e.adCpn||e.provider.videoData.clientPlaybackNonce,w=e.provider.getCurrentTime(y);g.IU(e,N,"cmt",[w.toFixed(3)]);w=e.provider.eN(y);if(e.j&&w*1E3>e.j.Ij+100&&e.j){var E=e.j;y=E.isAd;w=w*1E3-E.Ij;e.dI=N*1E3-E.ys9-w-E.JsB;E=(0,g.iC)()-w;N=e.dI;w=e.provider.videoData;var A=w.isAd();if(y||A){A=(y?"ad":"video")+"_to_"+(A?"ad":"video");var T={};w.Z&&(T.cttAuthInfo={token:w.Z,videoId:w.videoId});T.startTime=E-N;QQ(A,T);g.nV({targetVideoId:w.videoId,targetCpn:w.clientPlaybackNonce},
A);jZ("pbs",E,A)}else E=e.provider.JW.s4(),E.Z!==w.clientPlaybackNonce?(E.L=w.clientPlaybackNonce,E.N=N):w.e_()||g.uA(new g.Gh("CSI timing logged before gllat",{cpn:w.clientPlaybackNonce}));e.Fh("gllat",{l:e.dI.toFixed(),prev_ad:+y});delete e.j}};
zt=function(e,N){N=N===void 0?NaN:N;N=N>=0?N:g.BG(e.provider);var y=e.provider.JW.gG(),w=y.xS-(e.Zl||0);w>0&&g.IU(e,N,"bwm",[w,(y.RM-(e.jn||0)).toFixed(3)]);isNaN(e.Zl)&&y.xS&&e.isOffline&&e.nP(!1);e.Zl=y.xS;e.jn=y.RM;isNaN(y.bandwidthEstimate)||g.IU(e,N,"bwe",[y.bandwidthEstimate.toFixed(0)]);e.provider.ph.B9()&&Object.keys(y.J).length!==0&&e.Fh("bwinfo",y.J);if(e.provider.ph.B9()||e.provider.ph.T("html5_log_meminfo"))w=P0M(),Object.values(w).some(function(A){return A!==void 0})&&e.Fh("meminfo",
w);
if(e.provider.ph.B9()||e.provider.ph.T("html5_log_cpu_info")){var E;(w=(E=e.Ut)==null?void 0:Ql9(E))&&Object.values(w).some(function(A){return A!=null})&&e.Fh("cpuinfo",w)}e.Bk&&e.Fh("jsprof",e.Bk.flush());
e.Kh&&g.IU(e,N,"bat",[e.Kh.level,e.Kh.charging?"1":"0"]);E=e.provider.JW.getVisibilityState();e.LX!==E&&(g.IU(e,N,"vis",[E]),e.LX=E);wO5(e,N);(E=EmE(e.provider))&&E!==e.FZ&&(g.IU(e,N,"conn",[E]),e.FZ=E);AJn(e,N,y)};
AJn=function(e,N,y){if(!isNaN(y.Ze)){var w=y.Ze;y.N<w&&(w=y.N);g.IU(e,N,"bh",[w.toFixed(3)])}};
TEJ=function(e,N,y){g.GX(e.provider.ph,g.qK(e.provider.videoData)).then(function(w){var E=!1;if(N.includes("&dt=")||N.includes("&cotn=")){if(e.provider.ph.T("kevlar_woffle")||e.provider.ph.T("qoe_nwl_downloads"))E=!0}else e.provider.ph.T("qoe_with_networkless")&&(E=!0);var A=e.provider.ph.T("qoe_send_and_write"),T=e.provider.ph;w=OrE(N,T,e.provider.ph.pageId,e.provider.ph.sendVisitorIdHeader?e.provider.videoData.visitorData:void 0,w);T.T("html5_simplify_pings")&&(w=w||{});w?(w.method="POST",w.postBody=
y,RY9(N,w,{token:e.provider.videoData.Z,p7:e.provider.videoData.zN,mdxEnvironment:e.provider.videoData.mdxEnvironment},T,void 0,E,A&&e.i9)):E?(E=e.provider.ph.T("networkless_ajax"),T={method:"POST",postBody:y},A&&e.i9?ae().sendAndWrite(N,T):E?g.zk(N,{method:"POST",postBody:y}):ae().sendThenWrite(N,T)):(A=y,A=A===void 0?"":A,T2_(N,A)||g.mK(N,void 0,void 0,void 0,A))})};
JJ1=function(e){for(var N=0,y=g.c(Object.keys(e.J)),w=y.next();!w.done;w=y.next())w=w.value,N+=w.length+Number(vQ(e.J[w],function(E,A){return E+A.length},0));
N>96E3&&(new g.e6(e.reportStats,0,e)).start()};
pO3=function(e){e.provider.videoData.NK&&iw(e,"prefetch");e.provider.videoData.jn&&e.Fh("reload",{r:e.provider.videoData.reloadReason,ct:e.provider.videoData.jn});e.provider.videoData.Kx&&iw(e,"monitor");e.provider.videoData.isLivePlayback&&iw(e,"live");QY&&iw(e,"streaming");e.provider.videoData.S_&&e.Fh("ctrl",{mode:e.provider.videoData.S_},!0);if(e.provider.videoData.N2){var N=e.provider.videoData.N2.replace(/,/g,"_");e.Fh("ytp",{type:N},!0)}e.provider.videoData.JF&&(N=e.provider.videoData.JF.replace(/,/g,
"."),e.Fh("ytrexp",{ids:N},!0));var y=e.provider.videoData;N=e.provider.ph.T("enable_white_noise")||e.provider.ph.T("enable_webgl_noop");y=g.JY(y)||g.cF(y)||g.kI(y)||g.BF(y);(N||y)&&(N=(0,g.D3)())&&(e.J.gpu=[N]);j5(e.provider.videoData)&&g.IU(e,g.BG(e.provider),"dt",["1"]);e.provider.ph.B9()&&(N=(0,g.iC)()-e.provider.ph.Fr,e.Fh("playerage",{secs:Math.pow(1.6,Math.round(Math.log(N/1E3)/Math.log(1.6))).toFixed()}));e.K=!0;e.Z=g.hE(function(){e.reportStats()},1E4)};
rJs=function(e,N,y){var w=g.BG(e.provider);CsP(e,w,N,0,y);zt(e,w);JJ1(e)};
CsP=function(e,N,y,w,E){var A=e.provider.ph.J.cbrver;e.provider.ph.J.cbr==="Chrome"&&/^96[.]/.test(A)&&y==="net.badstatus"&&/rc\.500/.test(E)&&$oM(e,3);e.provider.ph.T("html5_use_ump")&&/b248180278/.test(E)&&$oM(e,4);A=e.provider.getCurrentTime(e.adCpn||e.provider.videoData.clientPlaybackNonce);w=w===1?"fatal":"";y=[y,w,A.toFixed(3)];w&&(E+=";a6s."+C2());E&&y.push(YB3(E));g.IU(e,N,"error",y);e.K=!0};
MD0=function(e){e.N>=0||(e.provider.ph.WE||e.provider.JW.getVisibilityState()!==3?e.N=g.BG(e.provider):e.Wk=!0)};
ljH=function(e,N,y,w){if(y!==e.k9){N<e.L||(e.k9==="PL"?e.playTimeSecs+=N-e.L:e.k9==="B"&&e.isBuffering&&(e.isBuffering=!1,e.rebufferTimeSecs+=N-e.SR,!e.Kx&&e.rebufferTimeSecs>=10&&e.playTimeSecs<=180&&(e.J.qoealert=["1"],e.Kx=!0)),y!=="B"||e.k9!=="PL"&&e.k9!=="PB"||(e.isBuffering=!0),e.L=N);e.k9==="PL"&&(y==="B"||y==="S")||e.provider.ph.B9()?zt(e,N):(e.a9||y!=="PL"||(e.a9=!0,AJn(e,N,e.provider.JW.gG())),wO5(e,N));y==="PL"&&g.NA(e.U2);var E=[y];y==="S"&&w&&E.push("ss."+w);g.IU(e,N,"vps",E);e.k9=y;
e.SR=N;e.L=N;e.K=!0}};
iw=function(e,N){var y=e.J.cat||[];y.push(N);e.J.cat=y};
gg=function(e,N,y,w,E,A){var T=g.BG(e.provider);y!==1&&y!==3&&y!==5||g.IU(e,T,"vps",[e.k9]);var p=e.J.xvt||[];p.push("t."+T.toFixed(3)+";m."+A.toFixed(3)+";g."+N+";tt."+y+";np.0;c."+w+";d."+E);e.J.xvt=p};
$oM=function(e,N){if(!e.Dl){var y=e.J.fcnz;y||(y=[],e.J.fcnz=y);y.push(String(N));e.Dl=!0}};
YB3=function(e){/[^a-zA-Z0-9;.!_-]/.test(e)&&(e=e.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return e};
FpH=function(e){this.provider=e;this.G=!1;this.J=0;this.j=-1;this.Qy=NaN;this.K=0;this.segments=[];this.Z=this.L=0;this.previouslyEnded=!1;this.D=this.provider.JW.getVolume();this.U=this.provider.JW.isMuted()?1:0;this.N=VD(this.provider)};
fW=function(e){e.N.startTime=e.K;e.N.endTime=e.J;var N=!1;e.segments.length&&g.Kq(e.segments).isEmpty()?(e.segments[e.segments.length-1].previouslyEnded&&(e.N.previouslyEnded=!0),e.segments[e.segments.length-1]=e.N,N=!0):e.segments.length&&e.N.isEmpty()||(e.segments.push(e.N),N=!0);N?e.N.endTime===0&&(e.previouslyEnded=!1):e.N.previouslyEnded&&(e.previouslyEnded=!0);e.L+=e.J-e.K;e.N=VD(e.provider);e.N.previouslyEnded=e.previouslyEnded;e.previouslyEnded=!1;e.K=e.J};
om5=function(e){SBJ(e);e.Z=g.hE(function(){e.update()},100);
e.Qy=g.BG(e.provider);e.N=VD(e.provider)};
SBJ=function(e){g.k3(e.Z);e.Z=NaN};
bHn=function(e,N,y){y-=e.Qy;return N===e.J&&y>.5};
hM3=function(e,N,y,w){this.ph=N;this.pX=y;this.segments=[];this.experimentIds=[];this.Bk=this.SR=this.isFinal=this.delayThresholdMet=this.a9=this.LX=this.autoplay=this.autonav=!1;this.FZ="yt";this.Z=[];this.G=this.D=null;this.sendVisitorIdHeader=this.Wk=!1;this.U=this.pageId="";this.L=y==="watchtime";this.K=y==="playback";this.qg=y==="atr";this.UY=y==="engage";this.sendVisitorIdHeader=!1;this.uri=this.qg?"/api/stats/"+y:"//"+N.Li+"/api/stats/"+y;w&&(this.SR=w.fs,w.rtn&&(this.G=w.rtn),this.L?(this.playerState=
w.state,w.rti>0&&(this.D=w.rti)):(this.WE=w.mos,this.NG=w.volume,w.at&&(this.adType=w.at)),w.autonav&&(this.autonav=w.autonav),w.inview!=null&&(this.PY=w.inview),w.size&&(this.jn=w.size),w.playerwidth&&(this.playerWidth=w.playerwidth),w.playerheight&&(this.playerHeight=w.playerheight));this.jp=g.DA(N.J);this.U=ms(N.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.U==="all"||this.U==="once")this.dT=g.DA(N.FZ);this.im=N.VB;this.experimentIds=SV1(N.experiments);this.Et=N.SR;this.FZ=N.Ng;this.region=
N.region;this.userAge=N.userAge;this.VB=N.YB;this.CC=z_();this.sendVisitorIdHeader=N.sendVisitorIdHeader;this.l9=N.T("vss_pings_using_networkless")||N.T("kevlar_woffle");this.sY=N.T("vss_final_ping_send_and_write");this.i9=N.T("vss_use_send_and_write");this.pageId=N.pageId;this.Fr=N.T("vss_playback_use_send_and_write");N.livingRoomAppMode&&(this.livingRoomAppMode=N.livingRoomAppMode);this.jN=N.j&&N.T("embeds_append_synth_ch_headers");g.hR(N)&&(this.aq=N.i9);g.Yh(g.zX(N))&&this.Z.push(1);this.accessToken=
g.qK(e);e.sR[this.pX]?this.j=e.sR[this.pX]:e.sR.playback&&(this.j=e.sR.playback);this.adFormat=e.adFormat;this.adQueryId=e.adQueryId;this.autoplay=uk(e);this.K&&(this.LX=(e.T("html5_enable_log_server_autoplay")||e.T("enable_cleanup_masthead_autoplay_hack_fix"))&&e.rq&&I$(e)==="adunit"?!0:!1);this.autonav=e.isAutonav||this.autonav;this.contentVideoId=VG(e);this.clientPlaybackNonce=e.clientPlaybackNonce;this.a9=e.hs;e.Z&&(this.Ng=e.Z,this.Kx=e.zN);e.mdxEnvironment&&(this.mdxEnvironment=e.mdxEnvironment);
this.J=e.Bk;this.Y_=e.Y_;e.N&&(this.NK=e.N.itag,e.j&&e.j.itag!==this.NK&&(this.Dl=e.j.itag));e.J&&yo(e.J)&&(this.offlineDownloadUserChoice="1");this.eventLabel=I$(e);this.Bk=e.im?!1:e.UY;this.YO=e.Sz;if(N=MK(e))this.Js=N;this.DD=e.vy;this.partnerId=e.partnerId;this.eventId=e.eventId;this.playlistId=e.Yq||e.playlistId;this.NB=e.NB;this.S_=e.S_;this.N2=e.N2;this.jI=e.jI;this.subscribed=e.subscribed;this.videoId=e.videoId;this.videoMetadata=e.videoMetadata;this.visitorData=e.visitorData;this.osid=e.osid;
this.cV=e.cV;this.referrer=e.referrer;this.v2=e.Im||e.v2;this.Ut=e.gW;this.lV=e.lV;this.userGenderAge=e.userGenderAge;this.J4=e.J4;this.embedsRct=e.embedsRct;this.embedsRctn=e.embedsRctn;g.hR(this.ph)&&e.mutedAutoplay&&(e.T("embeds_enable_full_length_inline_muted_autoplay")&&e.mutedAutoplayDurationMode===2&&e.limitedPlaybackDurationInSeconds===0&&e.endSeconds===0?this.Z.push(7):this.Z.push(2));e.isEmbedsShortsMode(new g.l8(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.Z.push(3);g.Os(e)&&
this.Z.push(4);this.Zl=e.hK;e.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=e.compositeLiveIngestionOffsetToken)};
cJ5=function(e,N){var y=e.sendVisitorIdHeader?e.visitorData:void 0;return g.GX(e.ph,e.accessToken).then(function(w){return OrE(e.uri,e.ph,e.pageId,y,w,N,e.jN)})};
XOs=function(e,N){return function(){e.ph.T("html5_simplify_pings")?(e.J=e.Rq,e.U2=N(),e.CC=0,e.send()):cJ5(e).then(function(y){var w=kGH(e);w.cmt=w.len;w.lact="0";var E=N().toFixed(3);w.rt=Number(E).toString();w=g.Qb(e.uri,w);e.ph.T("vss_through_gel_double")&&BEs(w);e.l9?(y==null&&(y={}),e.i9?ae().sendAndWrite(w,y):ae().sendThenWrite(w,y)):y?g.zk(w,y):g.mK(w)})}};
kGH=function(e){var N={ns:e.FZ,el:e.eventLabel,cpn:e.clientPlaybackNonce,ver:2,cmt:e.N(e.J),fmt:e.NK,fs:e.SR?"1":"0",rt:e.N(e.U2),adformat:e.adFormat,content_v:e.contentVideoId,euri:e.im,lact:e.CC,live:e.Js,cl:(725027312).toString(),mos:e.WE,state:e.playerState,volume:e.NG};e.subscribed&&(N.subscribed="1");Object.assign(N,e.jp);e.U==="all"?Object.assign(N,e.dT):e.U==="once"&&e.K&&Object.assign(N,e.dT);e.autoplay&&(N.autoplay="1");e.LX&&(N.sautoplay="1");e.a9&&(N.dni="1");!e.L&&e.aq&&(N.epm=Ps5[e.aq]);
e.isFinal&&(N["final"]="1");e.Bk&&(N.splay="1");e.Y_&&(N.delay=e.Y_);e.Et&&(N.hl=e.Et);e.region&&(N.cr=e.region);e.userGenderAge&&(N.uga=e.userGenderAge);e.userAge!==void 0&&e.VB&&(N.uga=e.VB+e.userAge);e.Rq!==void 0&&(N.len=e.N(e.Rq));!e.L&&e.experimentIds.length>0&&(N.fexp=e.experimentIds.toString());e.G!==null&&(N.rtn=e.N(e.G));e.v2&&(N.feature=e.v2);e.S_&&(N.ctrl=e.S_);e.N2&&(N.ytr=e.N2);e.Dl&&(N.afmt=e.Dl);e.offlineDownloadUserChoice&&(N.ODUC=e.offlineDownloadUserChoice);e.Xz&&(N.lio=e.N(e.Xz));
e.L?(N.idpj=e.YO,N.ldpj=e.DD,e.delayThresholdMet&&(N.dtm="1"),e.D!=null&&(N.rti=e.N(e.D)),e.J4&&(N.ald=e.J4),e.compositeLiveIngestionOffsetToken&&(N.clio=e.compositeLiveIngestionOffsetToken)):e.adType!==void 0&&(N.at=e.adType);e.jn&&(e.K||e.L)&&(N.size=e.jn);e.K&&e.Z.length&&(N.pbstyle=e.Z.join(","));e.PY!=null&&(e.K||e.L)&&(N.inview=e.N(e.PY));e.L&&(N.volume=tj(e,g.dn(e.segments,function(w){return w.volume})),N.st=tj(e,g.dn(e.segments,function(w){return w.startTime})),N.et=tj(e,g.dn(e.segments,function(w){return w.endTime})),
DR(e.segments,function(w){return w.playbackRate!==1})&&(N.rate=tj(e,g.dn(e.segments,function(w){return w.playbackRate}))),DR(e.segments,function(w){return w.J!=="-"})&&(N.als=g.dn(e.segments,function(w){return w.J}).join(",")),DR(e.segments,function(w){return w.previouslyEnded})&&(N.pe=g.dn(e.segments,function(w){return""+ +w.previouslyEnded}).join(",")));
N.muted=tj(e,g.dn(e.segments,function(w){return w.muted?1:0}));
DR(e.segments,function(w){return w.visibilityState!==0})&&(N.vis=tj(e,g.dn(e.segments,function(w){return w.visibilityState})));
DR(e.segments,function(w){return w.connectionType!==0})&&(N.conn=tj(e,g.dn(e.segments,function(w){return w.connectionType})));
DR(e.segments,function(w){return w.N!==0})&&(N.blo=tj(e,g.dn(e.segments,function(w){return w.N})));
DR(e.segments,function(w){return!!w.K})&&(N.blo=g.dn(e.segments,function(w){return w.K}).join(","));
DR(e.segments,function(w){return!!w.compositeLiveStatusToken})&&(N.cbs=g.dn(e.segments,function(w){return w.compositeLiveStatusToken}).join(","));
DR(e.segments,function(w){return w.L!=="-"})&&(N.cc=g.dn(e.segments,function(w){return w.L}).join(","));
DR(e.segments,function(w){return w.clipId!=="-"})&&(N.clipid=g.dn(e.segments,function(w){return w.clipId}).join(","));
if(DR(e.segments,function(w){return!!w.j})){var y="au";
e.K&&(y="au_d");N[y]=g.dn(e.segments,function(w){return w.j}).join(",")}$3()&&e.Ng&&(N.ctt=e.Ng,N.cttype=e.Kx,N.mdx_environment=e.mdxEnvironment);
e.UY&&(N.etype=e.Kh!==void 0?e.Kh:0);e.Ut&&(N.uoo=e.Ut);e.livingRoomAppMode&&e.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(N.clram=dos[e.livingRoomAppMode]||e.livingRoomAppMode);e.j?Ijn(e,N):(N.docid=e.videoId,N.referrer=e.referrer,N.ei=e.eventId,N.of=e.cV,N.osid=e.osid,N.vm=e.videoMetadata,e.adQueryId&&(N.aqi=e.adQueryId),e.autonav&&(N.autonav="1"),e.playlistId&&(N.list=e.playlistId),e.jI&&(N.ssrt="1"),e.lV&&(N.upt=e.lV));e.K&&(e.embedsRct&&(N.rct=e.embedsRct),e.embedsRctn&&(N.rctn=
e.embedsRctn),e.compositeLiveIngestionOffsetToken&&(N.clio=e.compositeLiveIngestionOffsetToken));e.Zl&&(N.host_cpn=e.Zl);return N};
Ijn=function(e,N){if(N&&e.j){var y=new Set(["q","feature","mos"]),w=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),E=new Set(["aqi","autonav","list","ssrt","upt"]);e.j.ns==="3pp"&&(N.ns="3pp");for(var A=g.c(Object.keys(e.j)),T=A.next();!T.done;T=A.next())T=T.value,w.has(T)||y.has(T)||E.has(T)&&!e.j[T]||(N[T]=e.j[T])}};
tj=function(e,N){return g.dn(N,e.N).join(",")};
BEs=function(e){e.indexOf("watchtime")!==-1&&g.$$("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:e}})};
vmn=function(e,N){e.attestationResponse&&cJ5(e).then(function(y){y=y||{};y.method="POST";y.postParams={atr:e.attestationResponse};e.l9?e.i9?ae().sendAndWrite(N,y):ae().sendThenWrite(N,y):g.zk(N,y)})};
uw=function(e){g.x.call(this);this.provider=e;this.Z="paused";this.L=NaN;this.G=[10,10,10,40];this.D=this.U=0;this.Kh=this.l9=this.qg=this.Ng=this.K=!1;this.N=this.j=NaN;this.J=new FpH(e)};
gmJ=function(e){if(!e.K){e.provider.videoData.VM===16623&&g.uA(Error("Playback for EmbedPage"));var N=qt(e,"playback");a:{if(e.provider.ph.T("web_player_use_server_vss_schedule")){var y,w=(y=e.provider.videoData.getPlayerResponse())==null?void 0:y.playbackTracking,E=w==null?void 0:w.videostatsScheduledFlushWalltimeSeconds;w=w==null?void 0:w.videostatsDefaultFlushIntervalSeconds;if(E&&E.length>0&&w){y=[];var A=e.provider.videoData.Sz,T=e.provider.videoData.vy,p=-A;E=g.c(E);for(var C=E.next();!C.done;C=
E.next())C=C.value,y.push(C-p),p=C;y.push(w+T-A);y.push(w);e.G=y;break a}}e.G=[10+e.provider.videoData.Sz,10,10,40+e.provider.videoData.vy-e.provider.videoData.Sz,40]}om5(e.J);N.G=Z3(e);e.N>0&&(N.J-=e.N);N.send();e.provider.videoData.HJ&&(N=e.provider.ph,w=e.provider.videoData,y={html5:"1",video_id:w.videoId,cpn:w.clientPlaybackNonce,ei:w.eventId,ptk:w.HJ,oid:w.iF,ptchn:w.xT,pltype:w.d_,content_v:VG(w)},w.ir&&Object.assign(y,{m:w.ir}),N=g.Qb(N.qg+"ptracking",y),zMJ(e,N));e.provider.videoData.Y_||
(iHn(e),DoJ(e),e.Y7());e.K=!0;N=e.J;N.J=N.provider.JW.eN();N.Qy=g.BG(N.provider);!(N.K===0&&N.J<5)&&N.J-N.K>2&&(N.K=N.J);N.G=!0;e.provider.ph.T("html5_log_vss_details")&&e.provider.JW.Fh("vssinit",{})}};
Z3=function(e,N){N=N===void 0?NaN:N;var y=g.BG(e.provider);N=isNaN(N)?y:N;N=Math.ceil(N);var w=e.G[e.U];e.U+1<e.G.length&&e.U++;var E=N+w;e.L=g.b4(function(){if(!e.Ss()){e.L=NaN;var A=VD5(e),T=fjH(e,A);T.D=E;var p=e.D>1E3;!(A.length>1)&&A[0].isEmpty()||p||(T.G=Z3(e,E));T.send();e.D++}},(E-y)*1E3);
return e.j=E};
x4=function(e){g.cL(e.L);e.L=NaN};
VD5=function(e){e.J.update();e=e.J;e.segments.length&&e.J===e.K||fW(e);var N=e.segments;e.segments=[];return N};
qt=function(e,N){var y=tD5(e.provider);Object.assign(y,{state:e.Z});N=new hM3(e.provider.videoData,e.provider.ph,N,y);N.J=e.provider.JW.eN();y=e.provider.videoData.clientPlaybackNonce;N.J=e.provider.JW.UV(y);e.provider.videoData.isLivePlayback||(N.Rq=e.provider.JW.getDuration(y));e.provider.videoData.J&&(y=e.provider.videoData.J.OY(N.J))&&(N.Xz=y-N.J);N.U2=g.BG(e.provider);N.segments=[VD(e.provider)];return N};
fjH=function(e,N){var y=qt(e,"watchtime");uE9(e)&&(y.delayThresholdMet=!0,e.qg=!0);if(e.N>0){for(var w=g.c(N),E=w.next();!E.done;E=w.next())E=E.value,E.startTime-=e.N,E.endTime-=e.N;y.J-=e.N}else y.J=e.J.K1();y.segments=N;return y};
jf=function(e,N){var y=qBn(e,!isNaN(e.j));N&&(e.j=NaN);return y};
qBn=function(e,N){var y=fjH(e,VD5(e));!isNaN(e.j)&&N&&(y.D=e.j);return y};
uE9=function(e){var N;if(N=e.provider.videoData.isLoaded()&&e.provider.videoData.Y_&&e.K&&!e.qg)N=e.J,N=N.L+N.provider.JW.eN()-N.K>=e.provider.videoData.Y_;return!!N};
iHn=function(e){e.provider.videoData.youtubeRemarketingUrl&&!e.l9&&(zMJ(e,e.provider.videoData.youtubeRemarketingUrl),e.l9=!0)};
DoJ=function(e){e.provider.videoData.googleRemarketingUrl&&!e.Kh&&(zMJ(e,e.provider.videoData.googleRemarketingUrl),e.Kh=!0)};
ZHs=function(e){e.provider.ph.T("html5_log_vss_details")&&e.provider.JW.Fh("vssfi",{});if(!e.Ss()&&e.K){e.Z="paused";var N=jf(e);N.isFinal=!0;N.send();e.dispose()}};
xoF=function(e,N){if(!e.Ss())if(g.G(N.state,2)||g.G(N.state,512)){if(e.Z="paused",g.FD(N,2)||g.FD(N,512))g.FD(N,2)&&(e.J.previouslyEnded=!0),e.K&&(x4(e),jf(e).send(),e.j=NaN)}else if(g.G(N.state,8)){e.Z="playing";var y=e.K&&isNaN(e.L)?Z3(e):NaN;!isNaN(y)&&(lp(N,64)<0||lp(N,512)<0)&&(e=qBn(e,!1),e.G=y,e.send())}else e.Z="paused"};
j9P=function(e,N,y){if(!e.Ng){y||(y=qt(e,"atr"));y.attestationResponse=N;try{y.send()}catch(w){if(w.message!=="Unknown Error")throw w;}e.Ng=!0}};
zMJ=function(e,N){var y=e.provider.ph;g.GX(e.provider.ph,g.qK(e.provider.videoData)).then(function(w){var E=e.provider.ph.pageId,A=e.provider.ph.sendVisitorIdHeader?e.provider.videoData.visitorData:void 0,T=e.provider.ph.T("vss_pings_using_networkless")||e.provider.ph.T("kevlar_woffle"),p=e.provider.ph.T("allow_skip_networkless");w=OrE(N,y,E,A,w);RY9(N,w,{token:e.provider.videoData.Z,p7:e.provider.videoData.zN,mdxEnvironment:e.provider.videoData.mdxEnvironment},y,void 0,T&&!p,!1,!0)})};
nmH=function(){this.endTime=this.startTime=-1;this.L="-";this.playbackRate=1;this.visibilityState=0;this.j="";this.N=0;this.compositeLiveStatusToken=this.K=void 0;this.volume=this.connectionType=0;this.muted=!1;this.J=this.clipId="-";this.previouslyEnded=!1};
nW=function(e,N,y){this.videoData=e;this.ph=N;this.JW=y;this.J=void 0};
g.BG=function(e){return Q9s(e)()};
Q9s=function(e){if(!e.J){var N=g.LM(function(w){var E=(0,g.iC)();w&&E<=631152E6&&(e.JW.Fh("ytnerror",{issue:28799967,value:""+E}),E=(new Date).getTime()+2);return E},e.ph.T("html5_validate_yt_now")),y=N();
e.J=function(){return Math.round(N()-y)/1E3};
e.JW.Vt()}return e.J};
tD5=function(e){var N=e.JW.Am()||{};N.fs=e.JW.Xi();N.volume=e.JW.getVolume();N.muted=e.JW.isMuted()?1:0;N.mos=N.muted;N.clipid=e.JW.yG();var y;N.playerheight=((y=e.JW.getPlayerSize())==null?void 0:y.height)||0;var w;N.playerwidth=((w=e.JW.getPlayerSize())==null?void 0:w.width)||0;e=e.videoData;y={};e.N&&(y.fmt=e.N.itag,e.j&&(e.LX?e.j.itag!==e.N.itag:e.j.itag!=e.N.itag)&&(y.afmt=e.j.itag));y.ei=e.eventId;y.list=e.playlistId;y.cpn=e.clientPlaybackNonce;e.videoId&&(y.v=e.videoId);e.xI&&(y.infringe=1);
(e.im?0:e.UY)&&(y.splay=1);(w=MK(e))&&(y.live=w);e.rq&&(y.sautoplay=1);e.IV&&(y.autoplay=1);e.NB&&(y.sdetail=e.NB);e.partnerId&&(y.partnerid=e.partnerId);e.osid&&(y.osid=e.osid);e.hX&&(y.cc=g.PRs(e.hX));return Object.assign(N,y)};
EmE=function(e){var N=JF5();if(N)return moP[N]||moP.other;if(g.I_(e.ph)){e=navigator.userAgent;if(/[Ww]ireless[)]/.test(e))return 3;if(/[Ww]ired[)]/.test(e))return 30}return 0};
VD=function(e){var N=new nmH,y;N.L=((y=tD5(e).cc)==null?void 0:y.toString())||"-";N.playbackRate=e.JW.getPlaybackRate();y=e.JW.getVisibilityState();y!==0&&(N.visibilityState=y);e.ph.a9&&(N.N=1);N.K=e.videoData.Xm;N.compositeLiveStatusToken=e.videoData.compositeLiveStatusToken;y=e.JW.getAudioTrack();y.Vl&&y.Vl.id&&y.Vl.id!=="und"&&(N.j=y.Vl.id);N.connectionType=EmE(e);N.volume=e.JW.getVolume();N.muted=e.JW.isMuted();N.clipId=e.JW.yG()||"-";N.J=e.videoData.X1||"-";return N};
g.QD=function(e,N){g.x.call(this);var y=this;this.provider=e;this.j=!1;this.K=new Map;this.k9=new g.a8;this.lk={Y0s:function(){return y.qoe},
Jm9:function(){return y.J},
z4t:function(){return y.N}};
this.provider.videoData.WG()&&!this.provider.videoData.rk&&(this.J=new uw(this.provider),this.J.N=this.provider.videoData.YO/1E3,g.Q(this,this.J),this.qoe=new g.vG(this.provider,N),g.Q(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.b6=this.provider.videoData.clientPlaybackNonce)&&this.K.set(this.b6,this.J));if(e.ph.playerCanaryState==="canary"||e.ph.playerCanaryState==="holdback")this.N=new k4(this.provider),g.Q(this,this.N)};
HHs=function(e){return!!e.J&&!!e.qoe};
mS=function(e){e.N&&qe3(e.N);e.qoe&&MD0(e.qoe)};
Kpn=function(e){if(e.qoe){e=e.qoe;for(var N=e.provider.videoData,y=e.provider.ph,w=g.c(y.Cl),E=w.next();!E.done;E=w.next())iw(e,E.value);if(e.provider.T("html5_enable_qoe_cat_list"))for(w=g.c(N.Em),E=w.next();!E.done;E=w.next())iw(e,E.value);else N.Cl&&iw(e,e.provider.videoData.Cl);N.Cx()&&(w=N.J,wd(N)&&iw(e,"manifestless"),w&&Y_(w)&&iw(e,"live-segment-"+Y_(w).toFixed(1)));L3(N)?iw(e,"sabr"):e.LG(TC(N));if(Zi(N)||N.Au())N.Au()&&iw(e,"ssa"),iw(e,"lifa");N.gatewayExperimentGroup&&(w=N.gatewayExperimentGroup,
w==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?w="spkadtrt":w==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(w="spkadctrl"),iw(e,w));y.Ng!=="yt"&&(e.J.len=[N.lengthSeconds.toFixed(2)]);N.cotn&&!j5(N)&&e.nP(!0);y.B9()&&(N=NE_())&&e.Fh("cblt",{m:N});if(y.T("html5_log_screen_diagonal")){y=e.Fh;var A;N=((A=window.H5vccScreen)==null?0:A.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;y.call(e,"cbltdiag",{v:N})}}};
WpE=function(e){if(e.provider.JW.bP()){if(e.j)return;e.j=!0}e.J&&gmJ(e.J);if(e.N){e=e.N;var N=g.BG(e.provider);e.J<0&&(e.J=N,e.delay.start());e.N=N;e.j=N}};
OH9=function(e,N){e.J&&(e=e.J,N===58?e.J.update():e.K&&(x4(e),jf(e).send(),e.j=NaN))};
RMs=function(e,N){if(g.FD(N,1024)||g.FD(N,512)||g.FD(N,4)){if(e.N){var y=e.N;y.N>=0||(y.J=-1,y.delay.stop())}e.qoe&&(y=e.qoe,y.U||(y.N=-1))}if(e.provider.videoData.enableServerStitchedDai&&e.b6){var w;(w=e.K.get(e.b6))==null||xoF(w,N)}else e.J&&xoF(e.J,N);if(e.qoe){w=e.qoe;y=N.state;var E=g.BG(w.provider),A=w.getPlayerState(y);ljH(w,E,A,y.seekSource||void 0);A=y.qS;g.G(y,128)&&A&&(A.Hu=A.Hu||"",CsP(w,E,A.errorCode,A.l5,A.Hu));(g.G(y,2)||g.G(y,128))&&w.reportStats(E);y.isPlaying()&&!w.U&&(w.N>=0&&
(w.J.user_intent=[w.N.toString()]),w.U=!0);JJ1(w)}e.N&&(w=e.N,ZrF(w),w.playerState=N.state,w.N>=0&&g.FD(N,16)&&w.seekCount++,N.state.isError()&&w.send());e.provider.JW.bP()&&(e.k9=N.state)};
GGE=function(e){if(e.provider.videoData.enableServerStitchedDai&&e.b6){var N;(N=e.K.get(e.b6))!=null&&fW(N.J)}else e.J&&fW(e.J.J)};
Uo3=function(e){e.N&&e.N.send();if(e.qoe){var N=e.qoe;if(N.K){N.k9==="PL"&&(N.k9="N");var y=g.BG(N.provider);g.IU(N,y,"vps",[N.k9]);N.U||(N.N>=0&&(N.J.user_intent=[N.N.toString()]),N.U=!0);N.provider.ph.B9()&&N.Fh("finalized",{});N.i9=!0;N.reportStats(y)}}if(e.provider.videoData.enableServerStitchedDai)for(N=g.c(e.K.values()),y=N.next();!y.done;y=N.next())ZHs(y.value);else e.J&&ZHs(e.J);e.dispose()};
Lp0=function(e,N){e.J&&j9P(e.J,N)};
s9P=function(e){if(!e.J)return null;var N=qt(e.J,"atr");return function(y){e.J&&j9P(e.J,y,N)}};
aj5=function(e,N,y,w){y.adFormat=y.FZ;var E=N.JW;N=new uw(new nW(y,N.ph,{getDuration:function(){return y.lengthSeconds},
getCurrentTime:function(){return E.getCurrentTime()},
eN:function(){return E.eN()},
UV:function(){return E.UV()},
bP:function(){return E.bP()},
gG:function(){return E.gG()},
getPlayerSize:function(){return E.getPlayerSize()},
getAudioTrack:function(){return y.getAudioTrack()},
getPlaybackRate:function(){return E.getPlaybackRate()},
DR:function(){return E.DR()},
getVisibilityState:function(){return E.getVisibilityState()},
s4:function(){return E.s4()},
Am:function(){return E.Am()},
getVolume:function(){return E.getVolume()},
isMuted:function(){return E.isMuted()},
Xi:function(){return E.Xi()},
yG:function(){return E.yG()},
getProximaLatencyPreference:function(){return E.getProximaLatencyPreference()},
Vt:function(){E.Vt()},
Fh:function(A,T){E.Fh(A,T)},
Yj:function(){return E.Yj()}}));
N.N=w;g.Q(e,N);return N};
e63=function(){this.Ze=0;this.K=this.RM=this.xS=this.N=NaN;this.J={};this.bandwidthEstimate=NaN};
HG=function(e,N,y){g.x.call(this);var w=this;this.ph=e;this.JW=N;this.N=y;this.J=new Map;this.b6="";this.lk={Nk:function(){return Array.from(w.J.keys())}}};
Ng9=function(e,N){e.J.has(N)&&(Uo3(e.J.get(N)),e.J.delete(N))};
yj0=function(){this.J=g.Ep;this.array=[]};
E4s=function(e,N,y){var w=[];for(N=wG1(e,N);N<e.array.length;++N){var E=e.array[N];(E.end<=y||E.contains(y))&&w.push(E);if(E.start>y)break}return w};
Aj5=function(e,N){var y=[];e=g.c(e.array);for(var w=e.next();!w.done&&!(w=w.value,w.contains(N)&&y.push(w),w.start>N);w=e.next());return y};
Tgn=function(e){return e.array.slice(wG1(e,0x7ffffffffffff),e.array.length)};
wG1=function(e,N){e=JO(e.array,function(y){return N-y.start||1});
return e<0?-(e+1):e};
JjJ=function(e,N){var y=NaN;e=g.c(e.array);for(var w=e.next();!w.done;w=e.next())if(w=w.value,w.contains(N)&&(isNaN(y)||w.end<y)&&(y=w.end),w.start>N&&(isNaN(y)||w.start<y)){y=w.start;break}return y};
pG1=function(e,N){e.array=e.array.filter(function(y){return!N.has(y)})};
g.KW=function(e,N,y,w,E){g.x.call(this);this.D=e;this.qg=N;this.Z=y;this.Ng=w;this.j=E;this.K=NaN;this.G=this.U=this.started=!1;this.N=[];this.Kh=new g.e6(this.sync,250,this);g.Q(this,this.Kh);this.L=new g.e6(this.sync,0,this);g.Q(this,this.L);this.J=new yj0};
CwM=function(e){e.started=!0;e.sync()};
rj0=function(e,N){e.started&&(e.sync(),g.G(N.oldState,16)&&(N=JjJ(e.J,Math.max(e.K-2E3,0)),!isNaN(N)&&N<0x7ffffffffffff&&e.L.start()))};
$t5=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=y[1];y[0]===1?e.Ng(g.AA(w.namespace),w):e.Ng(g.TW(w.namespace),w)}};
g.WG=function(e){var N=this;this.JW=e;this.lk={pFW:function(){return N.JW}}};
Ov=function(e){e.JW.dispose()};
YvM=function(e){this.ph=e;this.K=this.N=this.mediaTime=NaN;this.j=this.J=!1;this.L=.001;g.I_(e)&&(this.L=.01)};
RU=function(e,N){return N>e.mediaTime+e.L&&N<e.mediaTime+5};
IYn=function(e,N,y,w,E){if(w=w>1)e.j=!0;if((E===void 0?0:E)||isNaN(e.N))e.N=N;if(e.J)N!==e.mediaTime&&(e.J=!1);else if(N>0&&e.mediaTime===N){E=1500;if(e.ph.T("html5_buffer_underrun_transition_fix")){E=g.Y2(e.ph.experiments,"html5_min_playback_advance_for_steady_state_secs");var A=g.Y2(e.ph.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");E=E>0&&A>0&&Math.abs(N-e.N)<E?A:1500}return y-e.K>(w||!e.j?E:400)}e.mediaTime=N;e.K=y;return!1};
Mf3=function(e,N){this.videoData=e;this.J=N};
l3J=function(e,N,y){return N.v8(y).then(function(){return u4(new Mf3(N,N.K))},function(w){w instanceof Error&&g.uA(w);
var E=zS('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),A=Dr('audio/mp4; codecs="mp4a.40.2"'),T=E||A,p=N.isLivePlayback&&!g.Oh(e.L,!0);w="fmt.noneavailable";p?w="html5.unsupportedlive":T||(w="html5.missingapi");T=p||!T?2:1;E={buildRej:"1",a:N.jJ(),d:!!N.U2,drm:N.RV(),f18:N.Rx.indexOf("itag=18")>=0,c18:E};N.J&&(N.RV()?(E.f142=!!N.J.J["142"],E.f149=!!N.J.J["149"],E.f279=!!N.J.J["279"]):(E.f133=!!N.J.J["133"],E.f140=!!N.J.J["140"],E.f242=!!N.J.J["242"]),E.cAAC=A,E.cAVC=Dr('video/mp4; codecs="avc1.42001E"'),
E.cVP9=Dr('video/webm; codecs="vp9"'));N.L&&(E.drmsys=N.L.keySystem,A=0,N.L.J&&(A=Object.keys(N.L.J).length),E.drmst=A);return new P3(w,E,T)})};
Gt=function(e){this.data=window.Float32Array?new Float32Array(e):Array(e);this.N=this.J=e-1};
FSJ=function(e){return e.data[e.J]||0};
Sv5=function(e){this.L=e;this.K=this.N=0;this.j=new Gt(50)};
LW=function(e,N,y){g.pT.call(this);this.videoData=e;this.experiments=N;this.Z=y;this.N=[];this.j=0;this.K=!0;this.L=!1;this.G=0;y=new o4F;e.latencyClass==="ULTRALOW"&&(y.j=!1);e.Kx?y.N=3:g.bk(e)&&(y.N=2);e.latencyClass==="NORMAL"&&(y.Z=!0);var w=g.Y2(N,"html5_liveness_drift_proxima_override");if(TC(e)!==0&&w){y.J=w;var E;((E=e.J)==null?0:PUn(E))&&y.J--}L3(e)&&N.gP("html5_sabr_parse_live_metadata_playback_boundaries")&&(y.D=!0);if(g.Kp("trident/")||g.Kp("edge/"))E=g.Y2(N,"html5_platform_minimum_readahead_seconds")||
3,y.K=Math.max(y.K,E);g.Y2(N,"html5_minimum_readahead_seconds")&&(y.K=g.Y2(N,"html5_minimum_readahead_seconds"));g.Y2(N,"html5_maximum_readahead_seconds")&&(y.U=g.Y2(N,"html5_maximum_readahead_seconds"));N.gP("html5_force_adaptive_readahead")&&(y.j=!0);if(E=g.Y2(N,"html5_liveness_drift_chunk_override"))y.J=E;Es(e)&&(y.J=(y.J+1)/5,e.latencyClass==="LOW"&&(y.J*=2));if(e.latencyClass==="ULTRALOW"||e.latencyClass==="LOW")y.L=g.Y2(N,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,y.G=g.Y2(N,
"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=y;this.U=this.policy.N!==1;this.J=Uv(this,bW5(this,isNaN(e.liveChunkReadahead)?3:e.liveChunkReadahead,e))};
h6E=function(e,N){if(N)return N=e.videoData,N=bW5(e,isNaN(N.liveChunkReadahead)?3:N.liveChunkReadahead,N),Uv(e,N);if(e.N.length){if(Math.min.apply(null,e.N)>1)return Uv(e,e.J-1);if(e.policy.j)return Uv(e,e.J+1)}return e.J};
cjE=function(e,N){if(!e.N.length)return!1;var y=e.J;e.J=h6E(e,N===void 0?!1:N);if(N=y!==e.J)e.N=[],e.j=0;return N};
aU=function(e,N){return N>=e.Un()-ktM(e)};
Bg_=function(e,N,y){N=aU(e,N);y||N?N&&(e.K=!0):e.K=!1;e.U=e.policy.N===2||e.policy.N===3&&e.K};
XGM=function(e,N){N=aU(e,N);e.L!==N&&e.publish("livestatusshift",N);e.L=N};
ktM=function(e){var N=e.policy.J;e.L||(N=Math.max(N-1,0));return N*ek(e)};
bW5=function(e,N,y){y.Kx&&N--;Es(y)&&(N=1);if(TC(y)!==0&&(e=g.Y2(e.experiments,"html5_live_chunk_readahead_proxima_override"))){N=e;var w;((w=y.J)==null?0:PUn(w))&&N++}return N};
ek=function(e){return e.videoData.J?Y_(e.videoData.J)||5:5};
Uv=function(e,N){N=Math.max(Math.max(1,Math.ceil(e.policy.K/ek(e))),N);return Math.min(Math.min(8,Math.floor(e.policy.U/ek(e))),N)};
o4F=function(){this.K=0;this.U=Infinity;this.j=!0;this.J=2;this.N=1;this.Z=!1;this.G=10;this.D=!1;this.L=1};
wk=function(e){g.x.call(this);this.JW=e;this.J=0;this.N=null;this.Z=this.j=0;this.K={};this.ph=this.JW.X();this.L=new g.e6(this.Ga,1E3,this);this.Dl=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_seek_timeout_delay_ms")});this.i9=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_long_rebuffer_threshold_ms")});this.Kx=y_(this,"html5_seek_set_cmt");this.Et=y_(this,"html5_seek_jiggle_cmt");this.Wk=y_(this,"html5_seek_new_elem");this.Xz=y_(this,"html5_unreported_seek_reseek");this.qg=y_(this,"html5_long_rebuffer_jiggle_cmt");
this.Rq=y_(this,"html5_long_rebuffer_ssap_clip_not_match");this.l9=new NJ({delayMs:2E4});this.Bk=y_(this,"html5_seek_new_elem_shorts");this.VB=y_(this,"html5_seek_new_media_source_shorts_reuse");this.Ut=y_(this,"html5_seek_new_media_element_shorts_reuse");this.Zl=y_(this,"html5_reseek_after_time_jump");this.U=y_(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Ng=y_(this,"html5_gapless_slow_seek");this.D=y_(this,"html5_gapless_slice_append_stuck");this.Kh=y_(this,"html5_gapless_slow_start");
this.G=y_(this,"html5_ads_preroll_lock_timeout");this.Y_=y_(this,"html5_ssap_ad_longrebuffer_new_element");this.a9=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tO:!this.ph.T("html5_report_slow_ads_as_error")});this.dT=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_skip_slow_ad_delay_ms")||5E3,tO:!this.ph.T("html5_skip_slow_buffering_ad")});this.SR=new NJ({delayMs:g.Y2(this.ph.experiments,"html5_slow_start_timeout_delay_ms")});this.aq=y_(this,"html5_slow_start_no_media_source");
g.Q(this,this.L)};
y_=function(e,N){var y=g.Y2(e.ph.experiments,N+"_delay_ms");e=e.ph.T(N+"_cfl");return new NJ({delayMs:y,tO:e})};
PwE=function(e,N){e.J=N};
Ed=function(e,N,y,w,E,A,T,p){N.test(y)?(e.Qi(E,N,T),N.tO||A()):(N.vu&&N.N&&!N.j?(y=(0,g.iC)(),w?N.J||(N.J=y):N.J=0,A=!w&&y-N.N>N.vu,y=N.J&&y-N.J>N.EE||A?N.j=!0:!1):y=!1,y&&(p=Object.assign({},e.N7(N),p),p.wn=T,p.we=E,p.wsuc=w,e.JW.Fh("workaroundReport",p),w&&(N.reset(),e.K[E]=!1)))};
NJ=function(e){var N=e===void 0?{}:e;e=N.delayMs===void 0?0:N.delayMs;var y=N.EE===void 0?1E3:N.EE;var w=N.vu===void 0?3E4:N.vu;N=N.tO===void 0?!1:N.tO;this.J=this.N=this.K=this.startTimestamp=0;this.j=!1;this.L=Math.ceil(e/1E3);this.EE=y;this.vu=w;this.tO=N};
z69=function(e){g.x.call(this);var N=this;this.JW=e;this.Z=this.J=this.tW=this.mediaElement=this.playbackData=null;this.j=0;this.L=this.Ng=this.K=null;this.Kh=!1;this.a9=0;this.U=!1;this.timestampOffset=0;this.G=!0;this.Et=0;this.Wk=this.SR=!1;this.D=0;this.VB=!1;this.qg=0;this.ph=this.JW.X();this.videoData=this.JW.getVideoData();this.policy=new dt1;this.l9=new wk(this.JW);this.Dl=this.Zl=this.aq=this.N=NaN;this.Rq=new g.e6(function(){I3_(N,!1)},2E3);
this.dT=new g.e6(function(){Av(N)});
this.Bk=new g.e6(function(){N.Kh=!0;v4E(N,{})});
this.Kx=NaN;this.i9=new g.e6(function(){var y=N.ph.UY;y.J+=1E4/36E5;y.J-y.K>1/6&&(qV5(y),y.K=y.J);N.i9.start()},1E4);
g.Q(this,this.l9);g.Q(this,this.Rq);g.Q(this,this.Bk);g.Q(this,this.dT);g.Q(this,this.i9)};
g40=function(e,N){e.playbackData=N;e.videoData.isLivePlayback&&(e.Z=new Sv5(function(){a:{if(e.playbackData&&e.playbackData.J.J){if(wd(e.videoData)&&e.tW){var y=e.tW.eE.AT()||0;break a}if(e.videoData.J){y=e.videoData.J.l9;break a}}y=0}return y}),e.J=new LW(e.videoData,e.ph.experiments,function(){return e.ra(!0)}));
To(e.JW)?(N=iWF(e),N.vl?(e.T("html5_sabr_enable_utc_seek_requests")&&L3(e.videoData)&&e.j0(N.vl,N.startSeconds),e.j=N.startSeconds):N.startSeconds>0&&e.seekTo(N.startSeconds,{BY:"seektimeline_startPlayback",seekSource:15}),e.G=!1):DtP(e)||(e.j=e.j||(g.xK(e.videoData)?0:e.videoData.startSeconds)||0)};
f39=function(e,N){(e.tW=N)?Vfn(e,!0):Jv(e)};
tf3=function(e,N){g.NA(e.l9.L);e.T("html5_exponential_memory_for_sticky")&&(N.state.isPlaying()?g.NA(e.i9):e.i9.stop());if(e.mediaElement)if(N.oldState.state===8&&Tp(N.state)&&N.state.isBuffering()){N=e.mediaElement.getCurrentTime();var y=e.mediaElement.O4();var w=e.T("manifestless_post_live_ufph")||e.T("manifestless_post_live")?E3(y,Math.max(N-3.5,0)):E3(y,N-3.5);w>=0&&N>y.end(w)-1.1&&w+1<y.length&&y.start(w+1)-y.end(w)<11&&(w=y.start(w+1)+.2,Math.abs(e.Kx-w)<.2||(e.JW.Fh("seekover",{b:wO(y,"_"),
cmt:N}),e.Kx=w,e.seekTo(w,{l8:!0,BY:"seektimeline_postLiveDisc"})))}else((y=N.state)==null?0:y.state===8)&&!e.Wk&&(e.videoData.limitedPlaybackDurationInSeconds>0?(p$(e.JW,e.getCurrentTime()+e.videoData.limitedPlaybackDurationInSeconds),e.Wk=!0):e.videoData.isLivePlayback&&e.videoData.endSeconds>0&&(p$(e.JW,e.getCurrentTime()+e.videoData.endSeconds),e.Wk=!0))};
qvP=function(e,N){var y=e.getCurrentTime(),w=e.isAtLiveHead(y);if(e.Z&&w){var E=e.Z;if(E.J&&!(y>=E.N&&y<E.K)){var A=E.J.zI(y);A!==-1&&(E.N=E.J.getStartTime(A),E.K=E.N+E.J.getDuration(A),A=(0,g.iC)()/1E3-E.J.OY(A),A-=E.L(),E.j.add(A))}}e.J&&(w&&(E=e.J,A=u$_(e),E.j++,E.j<3||Date.now()-E.G<3E3||(E.G=Date.now(),E.N.push(A),E.N.length>50&&E.N.shift())),E=e.J,Bg_(E,y,N===void 0?!0:N),XGM(E,y),N&&I3_(e,!0));w!==e.SR&&(N=e.getCurrentTime()-e.Dl<=500,y=e.a9>=1E3,N||y||(N=e.JW.Eg(),N.qoe&&(N=N.qoe,y=g.BG(N.provider),
g.IU(N,y,"lh",[w?"1":"0"])),e.SR=w,e.a9++,e.Dl=e.getCurrentTime()))};
I3_=function(e,N){if(e.J){var y=e.J;var w=e.getCurrentTime();!aU(y,w)&&y.eg()?(y.policy.Z&&(y.policy.J=Math.max(y.policy.J+y.policy.L,y.policy.G)),y=Infinity):y=w<y.videoData.Ti()?Math.min(y.videoData.Ti()+10,y.Un()):NaN;if(!isNaN(y)){if(e.tW&&N&&(N=e.Rq.isActive(),w=e.J.Un(),(w=CkE(e.tW,w-e.w7()))&&!N)){e.Rq.start();e.JW.Fh("inBufferPtl",{cmt:e.getCurrentTime(),seekTo:w+e.w7()});e.seekTo(w+e.w7(),{BY:"seektimeline_inBufferSeek"});return}e.seekTo(y,{BY:"seektimeline_pegToLive"})}}};
Vfn=function(e,N){if(e.J&&e.tW){var y=!1;N?y=!0:e.videoData.isLowLatencyLiveStream||e.videoData.latencyClass==="LOW"||e.videoData.latencyClass==="ULTRALOW"?y=cjE(e.J):e.VB&&(e.VB=!1,y=cjE(e.J,!0));y&&(N=e.JW.Eg(),y=e.J,y=ek(y)*y.J,N.qoe&&(N=N.qoe,g.IU(N,g.BG(N.provider),"lra",[y]),N.Fh("live-readahead-seconds",{v:y})));N=e.tW;var w=e.J.J;e=e.J;e=(e.J-1+e.policy.J)*ek(e);y=NaN;var E=N.Xz;E===2||E===-1?Es(N.JW.getVideoData())&&(y=N.policy.xW):(--w,E=N.JW.getVideoData(),E.Cx()&&E.latencyClass!=="ULTRALOW"&&
!E.isLowLatencyLiveStream&&(y=TC(E)!==0?N.policy.Ov:N.policy.kh));w=Math.max(w,0);E=N.L;E.Hf=w;E.D=y;N.G&&(N.G.Ng=e)}};
ZWF=function(e,N){e.j=N};
v4E=function(e,N){xt5(e,N).then(void 0,function(){Jv(e)});
jUM(e).then(function(y){n4M(e,y)},function(){Jv(e)});
e.JW.I0(N);e.ph.B9()&&(N=e.N7(),N["native"]=""+ +e.U,N.tgt=""+e.N,N.otgt=""+(e.N+e.timestampOffset),e.J&&e.T("html5_high_res_seek_logging")&&(N.tht=""+e.J.Z(),N.ht=""+e.J.Un(),N.adft=""+ktM(e.J)),e.T("html5_sabr_parse_live_metadata_playback_boundaries")&&e.videoData.J&&L3(e.videoData)&&(N.minst=""+e.videoData.J.gf,N.cminst=""+(e.videoData.J.Ti()+e.timestampOffset),N.maxst=""+e.videoData.J.zg,N.hts=""+e.videoData.J.Kh,N.cmaxst=""+(e.videoData.J.ra()+e.timestampOffset)),e.JW.Fh("startSeek",N))};
xt5=function(e,N){e.Ng||(e.tW?isFinite(e.N)?e.Ng=e.tW.seek(e.N-e.timestampOffset,N):(yG(e.videoData),e.Ng=Wl(e.tW),g.nX(e.videoData)||(e.N=e.tW.getCurrentTime()+e.timestampOffset)):e.Ng=g.S9(e.N-e.timestampOffset));return e.Ng};
jUM=function(e){var N=e.K;N||(e.K=new O3,N=e.K,Av(e));return N};
C$=function(e,N,y){return isNaN(N)?NaN:g.Ja(N,e.Ti(),e.ra(y))};
Av=function(e){if(e.K)if(e.videoData.isLivePlayback&&e.videoData.K&&!e.videoData.K.J&&e.mediaElement&&e.mediaElement.Rl()>0&&G6(e.mediaElement)>0&&(e.N=C$(e,e.N,!1)),!e.mediaElement||!QU5(e))e.dT.start(750);else if(!isNaN(e.N)&&isFinite(e.N)){var N=e.Zl-(e.N-e.timestampOffset);if(!(N===0||e.T("html5_enable_new_seek_timeline_logic")&&Math.abs(N)<.005))if(N=e.mediaElement.getCurrentTime()-e.N,Math.abs(N)<=e.Et||e.T("html5_enable_new_seek_timeline_logic")&&Math.abs(N)<.005)e.K&&e.K.resolve(e.mediaElement.getCurrentTime());
else{if(e.videoData.cC)e.videoData.cC=!1;else if(!yG(e.videoData)&&e.N>=e.ra()-.1){e.N=e.ra();e.K.resolve(e.ra());e.JW.U7();return}try{var y=e.N-e.timestampOffset;e.mediaElement.seekTo(y);e.l9.J=y;e.Zl=y;e.j=e.N;e.T("html5_enable_new_seek_timeline_logic")&&(e.U=!1)}catch(w){}}}};
QU5=function(e){if(!e.mediaElement||e.mediaElement.Rl()===0||e.mediaElement.hasError())return!1;var N=e.mediaElement.getCurrentTime()>0;if(!(e.videoData.K&&e.videoData.K.J||e.videoData.isLivePlayback)&&e.videoData.RV())return N;if(e.N>=0){var y=e.mediaElement.Gz();if(y.length||!N)return AX(y,e.N-e.timestampOffset)}return N};
n4M=function(e,N){e.L&&(e.L.resolve(N),e.JW.Qt(),e.ph.B9()&&(N=e.N7(),N["native"]=""+ +e.U,N.otgt=""+(e.N+e.timestampOffset),e.JW.Fh("seekEnd",N)));Jv(e)};
Jv=function(e){e.N=NaN;e.Zl=NaN;e.K=null;e.Ng=null;e.L=null;e.Kh=!1;e.U=!1;e.Et=0;e.Rq.stop();e.Bk.stop()};
KS1=function(e,N,y){var w=e.mediaElement,E=N.type;switch(E){case "seeking":var A=w.getCurrentTime()+e.timestampOffset;if(!e.K||e.U&&A!==e.N){var T=!!e.K;e.K=new O3;e.T("html5_enable_new_seek_timeline_logic")&&e.K.then(function(C){n4M(e,C)},function(){Jv(e)});
if(e.videoData.isAd()){var p;U7F({adCpn:e.videoData.clientPlaybackNonce,contentCpn:(p=e.videoData.hK)!=null?p:""},N.J)}e.Zl=A;PwE(e.l9,w.getCurrentTime());e.seekTo(A,{seekSource:104,BY:"seektimeline_mediaElementEvent"});y&&mtE(y,A*1E3,!!T);e.U=!0}break;case "seeked":e.K&&e.K.resolve(e.mediaElement.getCurrentTime());break;case "loadedmetadata":To(e.JW)||HWM(e);Av(e);break;case "progress":Av(e);break;case "pause":e.D=e.getCurrentTime()}e.D&&((E==="play"||E==="playing"||E==="timeupdate"||E==="progress")&&
e.getCurrentTime()-e.D>10&&(e.T("html5_enable_new_media_element_puase_jump")?(e.JW.Qi(new P3("qoe.restart",{reason:"pauseJump"})),e.JW.hT()):e.seekTo(e.D,{BY:"pauseJump"})),E!=="pause"&&E!=="play"&&E!=="playing"&&E!=="progress"&&(e.D=0))};
WSP=function(e){return(hY(e.videoData)||!!e.videoData.liveUtcStartSeconds)&&(!!e.videoData.liveUtcStartSeconds||DtP(e))&&!!e.videoData.J};
DtP=function(e){return!!e.videoData.startSeconds&&isFinite(e.videoData.startSeconds)&&e.videoData.startSeconds>1E9};
iWF=function(e){var N=0,y=NaN,w="";if(!e.G)return{startSeconds:N,vl:y,source:w};e.videoData.Rq?N=e.videoData.aq:yG(e.videoData)&&(N=Infinity);if(g.bk(e.videoData))return{startSeconds:N,vl:y,source:w};e.videoData.startSeconds?(w="ss",N=e.videoData.startSeconds):e.videoData.jN&&(w="stss",N=e.videoData.jN);e.videoData.liveUtcStartSeconds&&(y=e.videoData.liveUtcStartSeconds);if(isFinite(N)&&(N>e.ra()||N<e.Ti())){var E={};E.minSeekableTime=e.Ti();E.maxSeekableTime=e.ra();E.cmt=e.getCurrentTime();E.ss=
N;E.utc=y;E.src=w;e.JW.Fh("startSecondsOutOfBounds",E);e.videoData.Cx()&&(N=C$(e,N,!1))}return{startSeconds:N,vl:y,source:w}};
HWM=function(e){if(e.G)if(g.bk(e.videoData))e.G=!1;else{var N="ss",y=0,w;((w=e.videoData.J)==null?0:w.isManifestless)&&e.videoData.Xz&&!DtP(e)&&(N="mss",y=e.videoData.Xz);(e.videoData.Rq?e.T("html5_prioritize_windowed_st_start_seconds"):e.T("html5_prioritize_st_start_seconds"))&&!y&&e.videoData.jN&&(N="stss",y=e.videoData.jN);!y&&WSP(e)&&(y=e.videoData.liveUtcStartSeconds||e.videoData.Xz,N="utc",y=e.ra()-e.OY(e.ra())+y);y||e.T("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!e.videoData.Cx()||
!e.videoData.jN||(N="stss",y=e.videoData.jN);w={};if(y){if(y>e.ra()||y<e.Ti())w.minSeekableTime=e.Ti(),w.maxSeekableTime=e.ra(),w.cmt=e.getCurrentTime(),w.it=e.OY(e.getCurrentTime()),w.ss=y,w.utc=WSP(e)?e.videoData.liveUtcStartSeconds||e.videoData.Xz:0,e.JW.Fh("startSecondsOutOfBounds",w),e.videoData.Cx()&&(y=C$(e,y,!1));e.seekTo(y,{BY:"seektimeline_startSeconds"});w[N]=y;e.JW.Fh("startSeconds",w);e.G=!1}else e.videoData.Xz&&(w[N]=e.videoData.Xz+e.w7(),e.JW.Fh("startSeconds",w))}};
OWM=function(e,N){e.JW.Fh("sdai",{adj4t:N.toFixed(3)});e.aq=N;N+=1;e.N=N;e.j=N;jUM(e).then(function(y){n4M(e,y)},function(){Jv(e)})};
u$_=function(e){return e.mediaElement?U3(e.mediaElement):0};
dt1=function(){};
rk=function(e){g.x.call(this);this.K=e;this.J=new Map;this.N=new g.e6(this.sample,250,this);g.Q(this,this.N);this.start()};
$7=function(e,N){if((e=e.J.get(N))==null)e=void 0;else{e=e.buffer;for(N=[];e.N!==e.J;)e.N=(e.N+1)%e.data.length,N.push(e.data[e.N]);e=N}return e||[]};
Y7=function(e,N){var y;return((y=e.J.get(N))==null?void 0:FSJ(y.buffer))||0};
R6E=function(e){this.J=e;this.x3=NaN;this.buffer=new Gt(100)};
MJ=function(){this.finished=this.started=!1};
eiM=function(e){function N(E){return y.Sw&&(!w.Ci||!w.Ot.G)||y.Ng!=="yt"&&(w.partnerId===38&&y.playerStyle==="books"||w.partnerId===30&&y.playerStyle==="docs"||w.partnerId===33&&y.playerStyle==="google-live")?Gt3(e,w,E):Ut5(e,w).then(function(){lr(e,w)},function(A){lr(e,w,!0);
throw A;})}
var y=e.X(),w=e.getVideoData();w.Ss();w.loading=!0;return LS1(e)?sUF(e,w).then(function(){lr(e,w)},function(E){E=I2(E);
if(dp(E.severity))return lr(e,w,!0),Promise.reject(E);E.errorCode==="onesie.response.badproxystatus"&&""+E.details.st==="3"&&(a39=!0);e.handleError(E);return N("onesie")}):N("gvi")};
LS1=function(e){var N=e.X();if(N.T("html5_disable_onesie")||!N.T("html5_onesie")||!N.T("html5_onesie_inline")&&e.getVisibilityState()===5||N.Ng!=="yt")return!1;var y=N.ub;if(!y||!y.J)return e.handleError(new P3("onesie.unavailable.hotconfig",{key:"0"})),!1;if(y.J.L<(0,g.iC)()&&(e.Fh("okexp","1"),(y=e.HZ())&&N.T("html5_prefer_trusted_host_on_key_expiration"))){y.N=!0;var w;(N=(w=y.J.get(0))==null?void 0:lN(w.location))&&!er(N)&&y.J.delete(0)}if(a39)return e.Fh("ost3","1"),!1;w={};return Object.keys(w).length>
0?(w.onesie="0",e.handleError(new P3("html5.missingapi",w)),!1):!0};
NkF=function(e){var N=z9();ih(N,e);return g.AC(N,A60())};
sUF=function(e,N){var y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn,eM,H;return g.f(function(a){if(a.J==1)return N.fetchType="onesie",y=lzs(N,e.getPlayerSize(),e.getVisibilityState()),w=new KH(e,y),g.D(a,w.fetch(),2);E=a.N;A={player_response:E};N.loading=!1;T=e.nX.Bi;if(w.ZM){p=g.c(w.ZM.entries());for(C=p.next();!C.done;C=p.next())r=C.value,Y=g.c(r),M=Y.next().value,l=Y.next().value,F=M,S=l,T.J.set(F,S,180),F===N.videoId&&(k=S.Np(),N.yw=k);T.Gq=w}X=g.c(w.uH.entries());for(d=X.next();!d.done;d=
X.next())v=d.value,V=g.c(v),Z=V.next().value,n=V.next().value,R=Z,O=n,T.N.set(R,O,180);g.ZG(N,A,!0);if(N.loading||u0(N))return a.return(Promise.resolve());T.J.removeAll();T.N.removeAll();N.yw=[];E9={};Jn="onesie.response";eM=0;N.errorCode?(Jn="auth",E9.ec=N.errorCode,E9.ed=N.errorDetail,E9.es=N.Qm||"",eM=2):(E9.successButUnplayable="1",E9.disposed=""+ +N.Ss(),E9.afmts=""+ +/adaptiveFormats/.test(E),E9.cpn=N.clientPlaybackNonce);H=new P3(Jn,E9,eM);return a.return(Promise.reject(H))})};
Ut5=function(e,N){var y,w,E,A,T,p,C,r,Y,M,l;return g.f(function(F){switch(F.J){case 1:y=N.isAd(),w=!y,E=y?1:3,A=0;case 2:if(!(A<E)){F.u9(4);break}if(!(A>0)){F.u9(5);break}return g.D(F,XK(5E3),6);case 6:T=new g.Gh("Retrying OnePlatform request",{attempt:A}),g.uA(T);case 5:return g.c5(F,7),g.D(F,yvF(e,N),9);case 9:return F.return();case 7:p=g.XH(F);C=I2(p);r=C.errorCode;Y=e.X();M=Y.T("html5_use_network_error_code_enums")?401:"401";w&&r==="manifest.net.badstatus"&&C.details.rc===M&&(w=!1,A===E-1&&(E+=
1));if(A===E-1)return l=wsn(y,C.details),l.details.backend="op",l.details.originec=r,F.return(Promise.reject(l));if(r==="auth"||r==="manifest.net.retryexhausted")return F.return(Promise.reject(C));e.handleError(C);if(dp(C.severity)){F.u9(4);break}case 3:A++;F.u9(2);break;case 4:return F.return(Promise.reject(wsn(y,{backend:"op"})))}})};
yvF=function(e,N){function y(Jn){Jn.readyState===2&&e.lB("ps_c")}
var w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9;return g.f(function(Jn){switch(Jn.J){case 1:N.fetchType="gp";w=e.X();E=g.GX(w,g.qK(N));if(!E.J){A=E.getValue();Jn.u9(2);break}return g.D(Jn,E.J,3);case 3:A=Jn.N;case 2:return T=A,p=NkF(T),C=lzs(N,e.getPlayerSize(),e.getVisibilityState()),r=g.eZ(E7P),Y=g.qK(N),M=(0,g.iC)(),l=!1,F="empty",S=0,e.lB("psns"),k={Mc:y},g.D(Jn,g.Rg(p,C,r,void 0,k),4);case 4:X=Jn.N;e.lB("psnr");if(N.Ss())return Jn.return();X?"error"in X&&X.error?(l=!0,F="esf:"+X.error.message,
S=X.error.code):X.errorMetadata&&(l=!0,F="its",S=X.errorMetadata.status):l=!0;if(l)return d=0,v=((0,g.iC)()-M).toFixed(),V={},V=w.T("html5_use_network_error_code_enums")?{backend:"op",rc:S,rt:v,reason:F,has_kpt:N.a9?"1":"0",has_mdx_env:N.mdxEnvironment?"1":"0",has_omit_key_flag:g.Lb("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:w.pageId?"1":"0",has_token:Y?"1":"0",has_vvt:N.Kh?"1":"0",is_mdx:N.isMdxPlayback?"1":"0",mdx_ctrl:N.S_||"",token_eq:Y===g.qK(N)?"1":"0"}:{backend:"op",
rc:""+S,rt:v,reason:F,has_kpt:N.a9?"1":"0",has_mdx_env:N.mdxEnvironment?"1":"0",has_omit_key_flag:g.Lb("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:w.pageId?"1":"0",has_token:Y?"1":"0",has_vvt:N.Kh?"1":"0",is_mdx:N.isMdxPlayback?"1":"0",mdx_ctrl:N.S_||"",token_eq:Y===g.qK(N)?"1":"0"},Z="manifest.net.connect",S===429?(Z="auth",d=2):S>200&&(Z="manifest.net.badstatus",S===400&&(d=2)),Jn.return(Promise.reject(new P3(Z,V,d)));N.loading=!1;g.ZG(N,{raw_player_response:X},!0);
n=X;g.dw(N.X())&&n&&n.trackingParams&&h$(n.trackingParams);if(N.errorCode)return R={ec:N.errorCode,ed:N.errorDetail,es:N.Qm||""},Jn.return(Promise.reject(new P3("auth",R,2)));if(!N.loading&&!u0(N))return O=N.isAd()?"auth":"manifest.net.retryexhausted",E9=N.isAd()?2:1,Jn.return(Promise.reject(new P3(O,{successButUnplayable:"1",hasMedia:g.FU(N)?"1":"0"},E9)));g.hn(Jn)}})};
Gt3=function(e,N,y){function w(S){S=I2(S);if(dp(S.severity))return Promise.reject(S);e.handleError(S);return!1}
function E(){return!0}
var A,T,p,C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:var k=e.X(),X=e.getPlayerSize(),d=e.getVisibilityState();e.isFullscreen();var v=window.location.search;if(N.partnerId===38&&k.playerStyle==="books")v=N.videoId.indexOf(":"),v=g.Qb("//play.google.com/books/volumes/"+N.videoId.slice(0,v)+"/content/media",{aid:N.videoId.slice(v+1),sig:N.lM});else if(N.partnerId===30&&k.playerStyle==="docs")v=g.Qb("https://docs.google.com/get_video_info",{docid:N.videoId,authuser:N.Fn,authkey:N.qq,eurl:k.VB});
else if(N.partnerId===33&&k.playerStyle==="google-live")v=g.Qb("//google-liveplayer.appspot.com/get_video_info",{key:N.videoId});else{k.Ng!=="yt"&&g.t0(Error("getVideoInfoUrl for invalid namespace: "+k.Ng));var V={html5:"1",video_id:N.videoId,cpn:N.clientPlaybackNonce,eurl:k.VB,ps:k.playerStyle,el:I$(N),hl:k.SR,list:N.playlistId,agcid:N.YU,aqi:N.adQueryId,sts:20129,lact:z_()};Object.assign(V,k.J);k.forcedExperiments&&(V.forced_experiments=k.forcedExperiments);N.Kh?(V.vvt=N.Kh,N.mdxEnvironment&&(V.mdx_environment=
N.mdxEnvironment)):g.qK(N)&&(V.access_token=g.qK(N));N.adFormat&&(V.adformat=N.adFormat);N.slotPosition>=0&&(V.slot_pos=N.slotPosition);N.breakType&&(V.break_type=N.breakType);N.M6!==null&&(V.ad_id=N.M6);N.sb!==null&&(V.ad_sys=N.sb);N.Rv!==null&&(V.encoded_ad_playback_context=N.Rv);k.captionsLanguagePreference&&(V.cc_lang_pref=k.captionsLanguagePreference);k.dT&&k.dT!==2&&(V.cc_load_policy=k.dT);var Z=g.HE(g.m6(),65);g.na(k)&&Z!=null&&!Z&&(V.device_captions_on="1");k.mute&&(V.mute=k.mute);N.annotationsLoadPolicy&&
k.annotationsLoadPolicy!==2&&(V.iv_load_policy=N.annotationsLoadPolicy);N.yO&&(V.endscreen_ad_tracking=N.yO);(Z=k.aq.get(N.videoId))&&Z.Ge&&(V.ic_track=Z.Ge);N.i9&&(V.itct=N.i9);uk(N)&&(V.autoplay="1");N.mutedAutoplay&&(V.mutedautoplay=N.mutedAutoplay);N.isAutonav&&(V.autonav="1");N.o4&&(V.noiba="1");N.isMdxPlayback&&(V.mdx="1",V.ytr=N.N2);N.mdxControlMode&&(V.mdx_control_mode=N.mdxControlMode);N.Ez&&(V.ytrcc=N.Ez);N.wW&&(V.utpsa="1");N.isFling&&(V.is_fling="1");N.isInlinePlaybackNoAd&&(V.mute="1");
N.vnd&&(V.vnd=N.vnd);N.forceAdsUrl&&(Z=N.forceAdsUrl.split("|").length===3,V.force_ad_params=Z?N.forceAdsUrl:"||"+N.forceAdsUrl);N.NK&&(V.preload=N.NK);X.width&&(V.width=X.width);X.height&&(V.height=X.height);(N.im?0:N.UY)&&(V.splay="1");N.ypcPreview&&(V.ypc_preview="1");VG(N)&&(V.content_v=VG(N));N.Kx&&(V.livemonitor=1);k.l9&&(V.authuser=k.l9);k.pageId&&(V.pageid=k.pageId);k.Ut&&(V.ei=k.Ut);k.j&&(V.iframe="1");N.contentCheckOk&&(V.cco="1");N.racyCheckOk&&(V.rco="1");k.G&&N.AU&&(V.live_start_walltime=
N.AU);k.G&&N.yh&&(V.live_manifest_duration=N.yh);k.G&&N.playerParams&&(V.player_params=N.playerParams);k.G&&N.cycToken&&(V.cyc=N.cycToken);k.G&&N.bf&&(V.tkn=N.bf);d!==0&&(V.vis=d);k.enableSafetyMode&&(V.enable_safety_mode="1");N.a9&&(V.kpt=N.a9);N.IY&&(V.kids_age_up_mode=N.IY);N.kidsAppInfo&&(V.kids_app_info=N.kidsAppInfo);N.uV&&(V.upg_content_filter_mode="1");k.widgetReferrer&&(V.widget_referrer=k.widgetReferrer.substring(0,128));N.Ng?(X=N.Ng.latitudeE7!=null&&N.Ng.longitudeE7!=null?N.Ng.latitudeE7+
","+N.Ng.longitudeE7:",",X+=","+(N.Ng.clientPermissionState||0)+","+(N.Ng.locationRadiusMeters||"")+","+(N.Ng.locationOverrideToken||"")):X=null;X&&(V.uloc=X);N.Li&&(V.internalipoverride=N.Li);k.embedConfig&&(V.embed_config=k.embedConfig);k.Sz&&(V.co_rel="1");k.ancestorOrigins.length>0&&(V.ancestor_origins=Array.from(k.ancestorOrigins).join(","));k.homeGroupInfo!==void 0&&(V.home_group_info=k.homeGroupInfo);k.livingRoomAppMode!==void 0&&(V.living_room_app_mode=k.livingRoomAppMode);k.enablePrivacyFilter&&
(V.enable_privacy_filter="1");N.isLivingRoomDeeplink&&(V.is_living_room_deeplink="1");N.qE&&N.Oz&&(V.clip=N.qE,V.clipt=N.Oz);N.lr&&(V.disable_watch_next="1");N.Zc&&(V.forced_by_var="1");for(var n in V)!Av0.has(n)&&V[n]&&String(V[n]).length>512&&(g.uA(Error("GVI param too long: "+n)),V[n]="");n=k.qg;g.IK(k)&&(n=sG(n.replace(/\b(?:www|web)([.-])/,"tv$1"))||k.qg);k=g.Qb(n+"get_video_info",V);v&&(k=y7n(k,v));v=k}A=v;p=(T=N.isAd())?1:3;C=0;case 2:if(!(C<p)){S.u9(4);break}r=A;if(!(C>0)){S.u9(5);break}return g.D(S,
XK(5E3),6);case 6:Y={playerretry:C,playerretrysrc:y},T||(Y.recover="embedded"),r=Cp(A,Y);case 5:return g.D(S,Tk9(N,r).then(E,w),7);case 7:if(M=S.N)return S.return();C++;S.u9(2);break;case 4:l=T?"auth":"manifest.net.retryexhausted";F=T?2:1;if(!T&&Math.random()<1E-4)try{g.uA(new g.Gh("b/152131571",btoa(A)))}catch(R){}return S.return(Promise.reject(new P3(l,{backend:"gvi"},F)))}})};
Tk9=function(e,N){function y(X){return w(X.xhr)}
function w(X){if(!e.Ss()){X=X?X.status:-1;var d=0,v=((0,g.iC)()-Y).toFixed();v=E.T("html5_use_network_error_code_enums")?{backend:"gvi",rc:X,rt:v}:{backend:"gvi",rc:""+X,rt:v};var V="manifest.net.connect";X===429?(V="auth",d=2):X>200&&(V="manifest.net.badstatus",X===400&&(d=2));return Promise.reject(new P3(V,v,d))}}
var E,A,T,p,C,r,Y,M,l,F,S,k;return g.f(function(X){if(X.J==1){e.fetchType="gvi";E=e.X();var d={};e.Dy&&(d.ytrext=e.Dy);(p=g.v4(d)?void 0:d)?(A={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:p},T=Cp(N,{action_display_post:1})):(A={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},T=N);C={};E.sendVisitorIdHeader&&e.visitorData&&(C["X-Goog-Visitor-Id"]=e.visitorData);(r=ms(E.experiments,"debug_sherlog_username"))&&(C["X-Youtube-Sherlog-Username"]=r);Object.keys(C).length>
0&&(A.headers=C);Y=(0,g.iC)();return g.D(X,ai(g2,T,A).then(void 0,y),2)}M=X.N;if(!M||!M.responseText)return X.return(w(M));e.loading=!1;l=AE(M.responseText);g.ZG(e,l,!0);if(e.errorCode)return F={ec:e.errorCode,ed:e.errorDetail,es:e.Qm||""},X.return(Promise.reject(new P3("auth",F,2)));if(!e.loading&&!u0(e))return S=e.isAd()?"auth":"manifest.net.retryexhausted",k=e.isAd()?2:1,X.return(Promise.reject(new P3(S,{successButUnplayable:"1"},k)));g.hn(X)})};
wsn=function(e,N){return new P3(e?"auth":"manifest.net.retryexhausted",N,e?2:1)};
lr=function(e,N,y){y=y===void 0?!1:y;var w,E,A,T;g.f(function(p){if(p.J==1){w=e.X();if(y&&(!g.mT(w)||I$(N)!=="embedded")||N.lr||I$(N)!=="adunit"&&(g.I_(w)||Vy(w)||g.ZY(w)||g.IK(w)||nC(w)==="WEB_CREATOR"))return p.return();E=g.GX(w,g.qK(N));return E.J?g.D(p,E.J,3):(A=E.getValue(),p.u9(2))}p.J!=2&&(A=p.N);T=A;return p.return(Jv5(e,N,T))})};
Jv5=function(e,N,y){var w,E,A,T,p;return g.f(function(C){if(C.J==1){g.c5(C,2);w=NkF(y);var r=N.X();g.m6();var Y={context:g.GC(N),videoId:N.videoId,racyCheckOk:N.racyCheckOk,contentCheckOk:N.contentCheckOk,autonavState:"STATE_NONE"};I$(N)==="adunit"&&(Y.isAdPlayback=!0);r.embedConfig&&(Y.serializedThirdPartyEmbedConfig=r.embedConfig);r.Sz&&(Y.showContentOwnerOnly=!0);N.PB&&(Y.showShortsOnly=!0);g.HE(0,141)&&(Y.autonavState=g.HE(0,140)?"STATE_OFF":"STATE_ON");if(g.na(r)){var M=g.HE(0,65);M=M!=null?
!M:!1;var l=!!g.qI("yt-player-sticky-caption");Y.captionsRequested=M&&l}var F;if(r=(F=r.getWebPlayerContextConfig())==null?void 0:F.encryptedHostFlags)Y.playbackContext={encryptedHostFlags:r};E=Y;A=g.eZ(ps_);e.lB("wn_s");return g.D(C,g.Rg(w,E,A),4)}if(C.J!=2)return T=C.N,e.lB("wn_r"),!T||"error"in T&&T.error||(p=T,g.dw(N.X())&&p.trackingParams&&h$(p.trackingParams),g.ZG(N,{raw_watch_next_response:T},!1)),g.B5(C,0);g.XH(C);g.hn(C)})};
Crs=function(e){e.lB("vir");e.lB("ps_s");KV("vir",void 0,"video_to_ad");var N=eiM(e);N.then(function(){e.lB("virc");KV("virc",void 0,"video_to_ad");e.lB("ps_r");KV("ps_r",void 0,"video_to_ad")},function(){e.lB("virc");
KV("virc",void 0,"video_to_ad")});
return N};
g.oY=function(e,N,y,w,E,A,T,p,C,r){C=C===void 0?new g.t3(e):C;r=r===void 0?!0:r;g.pT.call(this);var Y=this;this.ph=e;this.playerType=N;this.R9=y;this.m7=w;this.getVisibilityState=A;this.visibility=T;this.nX=p;this.videoData=C;this.Tu=r;this.logger=new g.RE("VideoPlayer");this.BC=new YvM(this.ph);this.FT=null;this.K8=new Sf;this.F_=null;this.NO=new hY5(this.ph,this.m7,this);this.fn=!0;this.TZ=this.tW=null;this.wL=[];this.eh=new MJ;this.yj=this.lQ=null;this.vF=new MJ;this.iE=null;this.uj=this.So=!1;
this.yx=NaN;this.NI=!1;this.playerState=new g.a8;this.dV=[];this.N6=new g.fd;this.Bc=new TA1(this);this.mediaElement=null;this.X2=new g.e6(this.ZXh,15E3,this);this.NR=this.Hr=!1;this.Si=NaN;this.Yg=!1;this.qh=0;this.qL=!1;this.Ux=NaN;this.Wx=new rk(new Map([["bufferhealth",function(){return u$_(Y.ZB)}],
["bandwidth",function(){return Y.Xx()}],
["networkactivity",function(){return Y.ph.schedule.qg}],
["livelatency",function(){return Y.isAtLiveHead()&&Y.isPlaying()?rvH(Y):NaN}],
["rawlivelatency",function(){return rvH(Y)}]]));
this.P3=0;this.loop=!1;this.playbackRate=1;this.F8=0;this.ZB=new z69(this);this.Jk=!1;this.S5=[];this.Cp=this.Kt=0;this.Dm=this.xq=!1;this.RM=this.xS=0;this.l1=-1;this.Qa="";this.QS=new g.e6(this.M4,0,this);this.RP=!1;this.k_=this.Yk=null;this.HxP=[this.N6,this.QS,this.X2,this.Wx];this.WK=this.Tk=null;this.iP=function(){var M=Y.Eg();M.provider.ph.WE||M.provider.JW.getVisibilityState()===3||(M.provider.ph.WE=!0);GGE(M);if(M.N){var l=M.N;l.L&&l.J<0&&l.provider.JW.getVisibilityState()!==3&&qe3(l)}M.qoe&&
(M=M.qoe,M.Wk&&M.N<0&&M.provider.ph.WE&&MD0(M),M.K&&zt(M));Y.tW&&Fx(Y);Y.ph.v2&&!Y.videoData.backgroundable&&Y.mediaElement&&!Y.ox()&&(Y.isBackground()&&Y.mediaElement.Sd()?(Y.Fh("bgmobile",{suspend:1}),Y.wK(!0,!0)):Y.isBackground()||Sk(Y)&&Y.Fh("bgmobile",{resume:1}))};
this.lk={Nx:function(M){Y.Nx(M)},
w1P:function(M){Y.FT=M},
rph:function(){return Y.RE},
LW:function(){return Y.Ce},
E$:function(){return Y.TZ},
sps:function(){return Y.ON},
p71:function(){return Y.A_},
BSl:function(){},
X:function(){return Y.ph},
LC:function(){return Y.mediaElement},
mYt:function(M){Y.KP(M)},
DxP:function(){return Y.m7}};
this.logger.debug(function(){return"creating, type "+N});
this.yb=new g.KW(function(){return Y.getCurrentTime()},function(){return Y.getPlaybackRate()},function(){return Y.getPlayerState()},function(M,l){M!==g.AA("endcr")||g.G(Y.playerState,32)||Y.U7();
E(M,l,Y.playerType)},function(M,l){g.xK(Y.videoData)&&Y.Fh(M,l)});
g.Q(this,this.yb);g.Q(this,this.ZB);$Jn(this,C);this.videoData.subscribe("dataupdated",this.wEG,this);this.videoData.subscribe("dataloaded",this.rU,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Fh,this);this.videoData.subscribe("ctmpstr",this.kN,this);this.qs();Een(this.iP);this.visibility.subscribe("visibilitystatechange",this.iP);this.ON=new g.e6(this.kZ,g.Y2(this.ph.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.A_=
new g.e6(this.kZ,g.Y2(this.ph.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.xi=new g.WG(this)};
$Jn=function(e,N){if(e.playerType===2||e.ph.Ip)N.O9=!0;var y=zc5(N.FZ,N.mL,e.ph.j,e.ph.G);y&&(N.adFormat=y);e.playerType===2&&(N.IV=!0);if(e.isFullscreen()||e.ph.j)y=g.qI("yt-player-autonavstate"),N.autonavState=y||(e.ph.j?2:e.videoData.autonavState);N.endSeconds&&N.endSeconds>N.startSeconds&&p$(e,N.endSeconds)};
Yd9=function(e){Uo3(e.RE);g.JV(e.RE);for(var N=e.Ce,y=g.c(N.J.values()),w=y.next();!w.done;w=y.next())Uo3(w.value);N.J.clear();g.JV(e.Ce)};
Mk5=function(e){var N=e.videoData;Crs(e).then(void 0,function(y){e.videoData!==N||N.Ss()||(y=I2(y),y.errorCode==="auth"&&e.videoData.errorDetail?e.MP(y.errorCode,2,unescape(e.videoData.errorReason),Xe(y.details),e.videoData.errorDetail,e.videoData.Qm||void 0):e.handleError(y))})};
Sd_=function(e){if(!g.G(e.playerState,128))if(e.videoData.isLoaded(),e.logger.debug("finished loading playback data"),e.wL=g.eE(e.videoData.l9),g.FU(e.videoData)){e.R9.tick("bpd_s");br(e).then(function(){e.R9.tick("bpd_c");if(!e.Ss()){e.So&&(e.zi(yO(yO(e.playerState,512),1)),Sk(e));var w=e.videoData;w.endSeconds&&w.endSeconds>w.startSeconds&&p$(e,w.endSeconds);e.eh.finished=!0;hv(e,"dataloaded");e.vF.C9()&&lNE(e);uzE(e.NO,e.yj)}});
e.T("html5_log_media_perf_info")&&e.Fh("loudness",{v:e.videoData.Fo.toFixed(3)},!0);var N,y=(N=e.mediaElement)==null?void 0:N.ut();y&&"disablePictureInPicture"in y&&e.T("html5_disable_pip_with_standard_api")&&(y.disablePictureInPicture=e.ph.Fo&&!e.videoData.backgroundable);FP5(e)}else hv(e,"dataloaded")};
br=function(e){cs(e);e.yj=null;var N=l3J(e.ph,e.videoData,e.ox());e.lQ=N;e.lQ.then(function(y){o7H(e,y)},function(y){e.Ss()||(y=I2(y),e.visibility.isBackground()?(k7(e,"vp_none_avail"),e.lQ=null,e.eh.reset()):(e.eh.finished=!0,e.MP(y.errorCode,y.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Xe(y.details))))});
return N};
o7H=function(e,N){if(!e.Ss()&&!N.videoData.Ss()){e.logger.debug("finished building playback data");e.yj=N;g40(e.ZB,e.yj);if(e.videoData.isLivePlayback){var y=b$P(e.nX.Bi,e.videoData.videoId)||e.tW&&!isNaN(e.tW.qg);y=e.T("html5_onesie_live")&&y;To(e)||e.videoData.Xz>0&&!wd(e.videoData)||y||e.seekTo(e.ra(),{BY:"videoplayer_playbackData",seekSource:18})}if(e.videoData.K.J){if(e.T("html5_sabr_report_missing_url_as_error")&&wuE(e.videoData)){e.handleError(new P3("fmt.missing",{missabrurl:"1"},2));return}e.tW?
g.uA(Error("Duplicated Loader")):(y=g.Y2(e.ph.experiments,"html5_onesie_defer_content_loader_ms"))&&e.wq()&&b$P(e.nX.Bi,e.videoData.uM)?g.b4(function(){e.Ss()||e.tW||hi_(e)},y):hi_(e)}else!e.videoData.K.J&&j5(e.videoData)&&e.Me(new NN(e.videoData.videoId||"",4));
e.yq();zYn(N).then(function(){var w={};e.mK(w);e.ph.B9()&&e.T("html5_log_media_perf_info")&&e.Fh("av1Info",w);Fx(e)})}};
lNE=function(e){e.Ss();e.logger.debug("try finish readying playback");if(e.vF.finished)e.logger.debug("already finished readying");else if(e.eh.finished)if(g.G(e.playerState,128))e.logger.debug("cannot finish readying because of error");else if(e.wL.length)e.logger.debug(function(){return"cannot finish readying because of pending preroll: "+e.wL});
else if(e.yb.started||CwM(e.yb),e.V_())e.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{e.tW&&(e.uj=wx5(e.tW.timing));e.vF.finished||(e.vF.finished=!0);var N=e.T("html5_onesie_live")&&e.tW&&!isNaN(e.tW.qg);!e.videoData.isLivePlayback||e.videoData.Xz>0&&!wd(e.videoData)||N||To(e)||(e.logger.debug("seek to head for live"),e.seekTo(Infinity,{BY:"videoplayer_readying",seekSource:18}),e.isBackground()&&(e.NR=!0));Kpn(e.Eg());e.logger.debug("finished readying playback");
e.publish("playbackready",e);mo("pl_c",e.R9.timerName)||(e.R9.tick("pl_c"),KV("pl_c",void 0,"video_to_ad"));mo("pbr",e.R9.timerName)||(e.R9.tick("pbr"),KV("pbr",void 0,"video_to_ad"))}else e.logger.debug("playback data not loaded")};
p$=function(e,N){e.F_&&cvH(e);e.F_=new g.wF(N*1E3,0x7ffffffffffff);e.F_.namespace="endcr";e.addCueRange(e.F_)};
cvH=function(e){e.removeCueRange(e.F_);e.F_=null};
ko_=function(e,N,y,w,E){var A=e.Eg(E),T=g.xK(e.videoData)?A.getVideoData():e.videoData;T.N=y;var p=g.Bs(e);y=new br5(T,y,N,p?p.itag:"",w);e.ph.experiments.gP("html5_refactor_sabr_video_format_selection_logging")?(y.videoId=E,e.WK=y):A.sW(y);E=e.NO;E.N=0;E.J=0;e.publish("internalvideoformatchange",T,N==="m")};
g.Bs=function(e){var N=Xx(e);return Uj(N)||!e.yj?null:g.Ok(e.yj.J.videoInfos,function(y){return N.j(y)})};
Xx=function(e){if(e.yj){var N=e.NO;var y=e.yj;e=e.De();if(N.JW.UP().isInline())var w=f3;else N.T("html5_exponential_memory_for_sticky")?w=Fn(N.ph.UY,"sticky-lifetime")<.5?"auto":LA[zm()]:w=LA[zm()],w=g.Rx("auto",w,!1,"s");if(Uj(w)){if(w=cW0(N,y).compose(dNH(N,y)).compose(ve3(N,y)).compose(fUs(N,y.videoData)).compose(tLE(N,y.videoData,y)).compose(cG(N,y)).compose(Xl9(N,y)),Uj(e)||N.T("html5_apply_pbr_cap_for_drm"))w=w.compose(PzF(N,y))}else N.T("html5_perf_cap_override_sticky")&&(w=w.compose(cG(N,
y))),N.T("html5_ustreamer_cap_override_sticky")&&(w=w.compose(PzF(N,y)));w=w.compose(Xl9(N,y));N=y.videoData.E8.compose(w).compose(y.videoData.Pl).compose(e)}else N=f3;return N};
R$P=function(e){var N=e.NO;e=e.videoData;var y=fUs(N,e);N.T("html5_disable_client_autonav_cap_for_onesie")||y.compose(tLE(N,e));return y};
Fx=function(e){if(e.videoData.K&&e.videoData.K.J){var N=Xx(e);e.tW&&xOn(e.tW,N)}};
Bk9=function(e){var N;return!!(e.T("html5_native_audio_track_switching")&&g.k$&&((N=e.videoData.N)==null?0:GS(N)))};
Xs3=function(e){if(!Bk9(e))return!1;var N;e=(N=e.mediaElement)==null?void 0:N.audioTracks();return!!(e&&e.length>1)};
dJM=function(e){var N=Prn(e);if(N)return e.videoData.getAvailableAudioTracks().find(function(y){return y.Vl.getName()===N})};
Prn=function(e){var N;if(e=(N=e.mediaElement)==null?void 0:N.audioTracks())for(N=0;N<e.length;++N){var y=e[N];if(y.enabled)return y.label}};
INF=function(e){var N,y=e.videoData.getAvailableAudioTracks(),w=e.videoData.E0;w&&(N=y.find(function(A){return A.getLanguageInfo().id===w}));
if(e.ph.experiments.gP("enable_audio_description_setting")&&g.HE(g.m6(),198)){y=g.c(y);for(var E=y.next();!E.done;E=y.next())if(E=E.value,E.L){N=E;break}}N||(e=e.getAudioTrack(),N=e.Vl.isDefault?void 0:e);return N};
hi_=function(e){for(var N=e.videoData.J,y=g.c(Object.entries({cpn:e.videoData.clientPlaybackNonce,c:e.ph.J.c,cver:e.ph.J.cver})),w=y.next();!w.done;w=y.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;for(var A=g.c(Object.values(N.J)),T=A.next();!T.done;T=A.next())Vc1(T.value.yl,w,E);A=void 0;(A=N.U)==null||Vc1(A,w,E)}y=e.ph;w=e.videoData;N=new g.fTM(y);E=VI0({hasSubfragmentedFmp4:w.hasSubfragmentedFmp4,JB:w.JB});N.U=E;N.l9=w.maxReadAheadMediaTimeMs/1E3||N.l9;E=y.schedule;E.K.AT()===E.policy.K?
N.Y_=10:N.Y_=w.minReadAheadMediaTimeMs/1E3||N.Y_;N.vp=w.readAheadGrowthRateMs/1E3||N.vp;N.sR=!WI();g.I_(y)||!WI()?(E=y.experiments,N.Zl=8388608,N.Kx=524288,N.Li=5,N.Et=1048576,N.Tv=1.5,N.JM=4587520,Gk()&&(N.JM=786432),N.D*=1.1,N.Ng*=1.1,N.YO=!0,N.CN=E.gP("persist_disable_player_preload_on_tv")||E.gP("persist_disable_player_preload_on_tv_for_living_room")||!1):y.N&&(N.D*=1.3,N.Ng*=1.3);g.i$&&g.Kp("crkey")&&(E=y.J.cmodel==="CHROMECAST/ANCHOVY",N.Zl=20971520,N.Kx=1572864,E&&(N.JM=812500,N.sY=1E3,N.e0=
5,N.Et=2097152));g.DT&&(N.YO=!0);y.supportsGaplessAudio()||(N.hp=!1);KC&&(N.NK=!0);N.WE=y.T("html5_peak_shave");w.fetchType==="onesie"&&y.T("html5_disable_peak_shave_for_onesie")&&(N.WE=!1);var p;E=(p=w.J)==null?void 0:Ai(p);if(wd(w)){N.NG=!0;N.y_||(N.Lm=!0);N.pX=!0;N.yh=!0;N.wh=!0;if(w.latencyClass==="ULTRALOW"||w.latencyClass==="LOW"&&!y.T("html5_disable_low_pipeline"))N.R7=2,N.vy=4;N.o1=w.defraggedFromSubfragments;if(w.As||y.T("html5_publish_all_cuepoints"))N.lr=!0;g.bk(w)&&(N.SR=!1);N.IY=g.Pa(y)}w.isAd()&&
(N.ul=0,N.bb=0);N.Cl=y.T("html5_enable_subsegment_readahead_v3")||y.T("html5_ultra_low_latency_subsegment_readahead")&&w.latencyClass==="ULTRALOW";N.K=y.B9();w9()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(y.J.cmodel)&&!y.T("html5_disable_move_pssh_to_moov")&&E&&(N.YO=!1);A=0;y.T("html5_live_use_alternate_bandwidth_window_sizes")&&(A=y.schedule.policy.J,w.isLivePlayback&&(A=g.Y2(y.experiments,w.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":w.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":
"html5_live_normal_latency_bandwidth_window")||A));p=y.schedule;p.N.j=wd(w)?.5:0;if(!p.policy.N&&A&&(p=p.K,A=Math.round(A*p.resolution),A!==p.J)){T=Array(A);var C=Math.min(A,p.K?p.J:p.N),r=p.N-C;r<0&&(r+=p.J);for(var Y=0;Y<C;++Y)T[Y]=p.values[(r+Y)%p.J];for(;Y<A;++Y)T[Y]=Infinity;p.J=A;p.values=T;p.N=C%A;p.K=C===A;p.s0=!0;p.L=Db0(p)}w.isLivePlayback&&(N.xI=g.Y2(y.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,N.Bk=!1);w.RV()&&(N.Bk=!1);Es(w)&&(N.Cl=!0,w.latencyClass===
"LOW"?N.U2=g.Y2(y.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):w.latencyClass==="ULTRALOW"&&(N.U2=g.Y2(y.experiments,"html5_jumbo_ull_subsegment_readahead_target")),N.NE=!0);w.Cx()&&(N.Qk=1.3);N.NK=N.NK||w.WV;N.dT=(N.dT||w.dT)&&y.G;N.RO=y.T("html5_sunset_aac_high_codec_family");N.N=g.xK(w);N.a9=w.U||N.N&&!y.T("html5_enable_ssap_seteos");y.B9()&&(N.Dl=!0);w.U&&!E&&(N.HJ=!0);w.U&&w.isAd()&&(N.D*=1.6,N.Ng*=1.6);j5(w)&&(N.j=w.videoId,N.Ci=!0,N.E8=100,w.Wy&&w.Wy.length>0&&(N.Rx=w.Wy));
N.AA=w.xX;N.G4=k_(y,{},w.K||void 0,Un(w));N.VB=Gr(w)&&g.ZY(y);N.gW=y.T("html5_catch_errors_for_rollback");L3(w)&&(y.T("html5_sabr_allow_video_keyframe_without_audio")&&(N.jp=!0),y.T("html5_sabr_report_partial_segment_estimated_duration")&&(N.P5=!0),N.J=!0,N.E0=y.T("html5_sabr_enable_utc_seek_requests"),N.TV=y.T("html5_sabr_enable_live_clock_offset"),N.Em=y.T("html5_disable_client_resume_policy_for_sabr"),N.uV=y.T("html5_trigger_loader_when_idle_network"),N.fk=y.T("html5_sabr_parse_live_metadata_playback_boundaries"),
N.j$=y.T("html5_enable_platform_backpressure_with_sabr"),N.pz=y.T("html5_consume_onesie_next_request_policy_for_sabr"),N.e$=y.T("html5_sabr_report_next_ad_break_time"),N.d1=y.T("html5_log_high_res_buffer_timeline"),N.c5=y.T("html5_remove_stuck_slices_beyond_max_buffer_limits"),N.YN=y.T("html5_gapless_sabr_btl_last_slice")&&Rf(w),N.Vp=y.T("html5_reset_last_appended_slice_on_seek")&&Rf(w),wd(w)?(N.zd=!0,N.v2=y.T("html5_disable_variability_tracker_for_live"),N.Wk=y.T("html5_sabr_use_accurate_slice_info_params"),
y.T("html5_simplified_backup_timeout_sabr_live")&&(N.al=!0,N.sY=N.a7)):N.jn=y.T("html5_probe_request_on_sabr_request_progress"),N.A4=y.T("html5_serve_start_seconds_seek_for_post_live_sabr"),N.im=y.T("html5_flush_index_on_updated_timestamp_offset"),N.Kh=y.T("html5_enable_sabr_request_pipelining")&&!g.xK(w),N.ll=y.T("html5_ignore_partial_segment_from_live_readahead"),N.U8=y.T("html5_use_non_active_broadcast_for_post_live"),N.Rq=y.T("html5_use_centralized_player_time"),N.YB=y.T("html5_consume_onesie_sabr_seek"),
N.qg=y.T("html5_enable_sabr_seek_loader_refactor"),N.mL=y.T("html5_update_segment_start_time_from_media_header"),w.enableServerStitchedDai&&(N.L=!0,N.NB=y.T("html5_reset_server_stitch_state_for_non_sabr_seek"),N.yO=y.T("html5_remove_ssdai_append_pause"),N.Ut=y.T("html5_consume_ssdai_info_with_streaming"),N.xX=y.T("html5_process_all_cuepoints")));N.Z=N.J&&y.T("html5_sabr_live");rD(y.L,$E.BITRATE)&&(N.JM=NaN);if(p=g.Y2(y.experiments,"html5_request_size_max_kb"))N.Et=p*1024;y.L.j?N.jN="; "+$E.EXPERIMENTAL.name+
"=allowed":y.T("html5_enable_cobalt_tunnel_mode")&&(N.jN="; tunnelmode=true");p=w.serverPlaybackStartConfig;(p==null?0:p.enable)&&(p==null?0:p.playbackStartPolicy)&&(N.MX=!0,uz(N,p.playbackStartPolicy,2));p=INF(e);e.K8.removeAll();a:{y=e.nX.Bi;if(w=e.videoData.videoId)if(E=y.J.get(w)){y.J.remove(w);y=E;break a}y=void 0}e.tW=new g.Ev(e,e.ph.schedule,N,e.videoData.J,e.videoData.K,Xx(e),p,e.videoData.enableServerStitchedDai,y,e.videoData.Et);N=e.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&
e.videoData.isLivePlayback&&e.wq()?!0:e.So&&g.I_(e.ph)&&e.videoData.isLivePlayback;e.tW.initialize(e.getCurrentTime(),Xx(e),N);e.videoData.probeUrl&&(e.tW.Wk=e.videoData.probeUrl);if(e.wL.length||e.So)e.videoData.cotn||Ps(e,!1);f39(e.ZB,e.tW);e.Yk&&(JYs(e.tW,new g.pW(e.Yk)),e.T("html5_check_decorator_on_cuepoint")&&e.Fh("sdai",{sdl:1}));e.k_&&(e.tW.Mf(e.k_),e.ZB.G=!1);g.QG(e.videoData)&&(e=e.tW,e.policy.Fo=e.policy.lf)};
cs=function(e){e.tW&&(e.tW.dispose(),e.tW=null,f39(e.ZB,null));e.fO()?v7M(e):e.IN()};
v7M=function(e){if(e.TZ)if(e.logger.debug("release media source"),e.wb(),e.TZ.L)try{e.ph.B9()&&e.Fh("rms",{l:"vprms",sr:e.fO(),rs:Kh(e.TZ)});e.TZ.clear();var N;(N=e.mediaElement)!=null&&(N.N=e.TZ);e.TZ=null}catch(y){N=new g.Gh("Error while clearing Media Source in VideoPlayer: "+y.name+", "+y.message),N=I2(N),e.handleError(N),e.IN()}else e.IN()};
ziP=function(e,N){N=N===void 0?!1:N;if(e.TZ)return e.TZ.K;e.logger.debug("update media source");a:{N=N===void 0?!1:N;try{g.O8()&&e.videoData.wg()&&kF9(e.mediaElement);var y=e.mediaElement.E$(e.fI(),e.QF())}catch(E){if($N0(e.Bc,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",E);e.MP("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}e.KH(y,!1,!1,N)}var w;return((w=e.E$())==null?void 0:w.K)||null};
i$F=function(e,N){N=N===void 0?!1:N;if(e.tW){var y=e.getCurrentTime()-e.w7();e.tW.seek(y,{CI:N}).On(function(){})}else hi_(e)};
g7E=function(e,N,y,w){y=y===void 0?!1:y;w=w===void 0?!1:w;if(e.TZ&&(!N||e.TZ===N)){e.logger.debug("media source opened");var E=e.getDuration();!E&&wd(e.videoData)&&(E=25200);if(e.TZ.isView){var A=E;e.logger.debug(function(){return"Set media source duration to "+A+", video duration "+E});
A>e.TZ.getDuration()&&DJ9(e,A)}else DJ9(e,E);ur0(e.tW,e.TZ,y,w);e.publish("mediasourceattached")}};
DJ9=function(e,N){if(e.TZ){e.TZ.zV(N);var y;(y=e.tW)!=null&&y.policy.Rq&&(y.Z=N)}};
nK3=function(e,N){ko_(e,N.reason,N.J.info,N.token,N.videoId)};
Vk9=function(e,N){e.ph.experiments.gP("enable_adb_handling_in_sabr")&&(e.pauseVideo(!0),e.jT(),N&&e.MP("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
hv=function(e,N){e.publish("internalvideodatachange",N===void 0?"dataupdated":N,e,e.videoData)};
fNJ=function(e){for(var N=g.c("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),y=N.next();!y.done;y=N.next())e.N6.Y(e.mediaElement,y.value,e.KP,e);e.ph.Gg&&e.mediaElement.pk()&&(e.N6.Y(e.mediaElement,"webkitplaybacktargetavailabilitychanged",e.mUt,e),e.N6.Y(e.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",e.n_B,e))};
uxP=function(e){g.k3(e.yx);tk1(e)||(e.yx=g.hE(function(){return tk1(e)},100))};
tk1=function(e){var N=e.mediaElement;N&&e.Hr&&!e.videoData.qg&&!mo("vfp",e.R9.timerName)&&N.Rl()>=2&&!N.isEnded()&&JX(N.O4())>0&&e.R9.tick("vfp");return(N=e.mediaElement)&&!e.videoData.qg&&N.getDuration()>0&&(N.isPaused()&&N.Rl()>=2&&JX(N.O4())>0&&(mo("pbp",e.R9.timerName)||e.R9.tick("pbp"),!e.videoData.zx||e.NI||N.isSeeking()||(e.NI=!0,e.publish("onPlaybackPauseAtStart"))),N=N.getCurrentTime(),RU(e.BC,N))?(e.oi(),!0):!1};
Z$n=function(e){e.Eg().FI();if(yG(e.videoData)&&Date.now()>e.F8+6283){if(!(!e.isAtLiveHead()||e.videoData.J&&CC(e.videoData.J))){var N=e.Eg();if(N.qoe){N=N.qoe;var y=N.provider.JW.gG(),w=g.BG(N.provider);AJn(N,w,y);y=y.K;isNaN(y)||g.IU(N,w,"e2el",[y.toFixed(3)])}}e.T("html5_alc_live_log_rawlat")?(N=e.videoData,N=g.Pa(N.X())?!0:g.xj(N.X())?N.ub==="6":!1):N=g.Pa(e.ph);N&&e.Fh("rawlat",{l:Y7(e.Wx,"rawlivelatency").toFixed(3)});e.F8=Date.now()}e.videoData.N&&GS(e.videoData.N)&&(N=e.K_())&&N.videoHeight!==
e.Cp&&(e.Cp=N.videoHeight,ko_(e,"a",qdP(e,e.videoData.VB)))};
qdP=function(e,N){if(N.J.video.quality==="auto"&&GS(N.getInfo())&&e.videoData.jp)for(var y=g.c(e.videoData.jp),w=y.next();!w.done;w=y.next())if(w=w.value,w.getHeight()===e.Cp&&w.J.video.quality!=="auto")return w.getInfo();return N.getInfo()};
rvH=function(e){if(!yG(e.videoData))return NaN;var N=0;e.tW&&e.videoData.J&&(N=wd(e.videoData)?e.tW.eE.AT()||0:e.videoData.J.l9);return(0,g.iC)()/1E3-e.OY()-N};
jY1=function(e){e.mediaElement&&e.mediaElement.ox()&&(e.Ux=(0,g.iC)());e.ph.E0?g.b4(function(){xJs(e)},0):xJs(e)};
xJs=function(e){var N;if((N=e.TZ)==null||!N.QI()){if(e.mediaElement)try{e.iE=e.mediaElement.playVideo()}catch(w){k7(e,"err."+w)}if(e.iE){var y=e.iE;y.then(void 0,function(w){e.logger.debug(function(){return"playMediaElement failed: "+w});
if(!g.G(e.playerState,4)&&!g.G(e.playerState,256)&&e.iE===y)if(w&&w.name==="AbortError"&&w.message&&w.message.includes("load"))e.logger.debug(function(){return"ignore play media element failure: "+w.message});
else{var E="promise";w&&w.name&&(E+=";m."+w.name);k7(e,E);e.Jk=!0;e.videoData.im=!0}})}}};
k7=function(e,N){g.G(e.playerState,128)||(e.zi(EV(e.playerState,1028,9)),e.Fh("dompaused",{r:N}),e.publish("onAutoplayBlocked"))};
Sk=function(e,N){N=N===void 0?!1:N;if(!e.mediaElement||!e.videoData.K)return!1;var y=N;y=y===void 0?!1:y;var w=null;var E;if((E=e.videoData.K)==null?0:E.J){w=ziP(e,y);var A;(A=e.tW)==null||A.resume()}else cs(e),e.videoData.VB&&(w=e.videoData.VB.Eb());E=e.mediaElement.Sd();y=!1;E&&E.Bw(w)||(n7F(e,w),y=!0);g.G(e.playerState,2)||(w=e.ZB,N=N===void 0?!1:N,w.L||!(w.j>0)||w.mediaElement&&w.mediaElement.getCurrentTime()>0||(N={BY:"seektimeline_resumeTime",CI:N},w.videoData.qg||(N.seekSource=15),w.seekTo(w.j,
N)));a:{N=y;if(L3(e.videoData)){if(!e.videoData.RV())break a}else if(!g.$I(e.videoData))break a;if(e.mediaElement)if((w=e.videoData.L)&&e.mediaElement.pk()){E=e.mediaElement.ut();if(e.FT)if(E!==e.FT.element)dk(e);else if(N&&w.flavor==="fairplay"&&!Ry())dk(e);else break a;if(e.T("html5_report_error_for_unsupported_tvos_widevine")&&Ry()&&w.flavor==="widevine")e.MP("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{e.FT=new GCJ(E,e.videoData,e.ph);e.FT.subscribe("licenseerror",
e.V8,e);e.FT.subscribe("qualitychange",e.Ck9,e);e.FT.subscribe("heartbeatparams",e.pu,e);e.FT.subscribe("keystatuseschange",e.Nx,e);e.FT.subscribe("ctmp",e.Fh,e);e.T("html5_widevine_use_fake_pssh")&&!e.videoData.isLivePlayback&&w.flavor==="widevine"&&e.FT.VQ(new eL(QY5,"cenc",!1));N=g.c(e.K8.keys);for(w=N.next();!w.done;w=N.next())w=e.K8.get(w.value),e.FT.VQ(w);e.T("html5_eme_loader_sync")||e.K8.removeAll()}}else e.MP("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return y};
n7F=function(e,N){e.R9.tick("vta");KV("vta",void 0,"video_to_ad");e.getCurrentTime()>0&&ZWF(e.ZB,e.getCurrentTime());e.mediaElement.activate(N);e.TZ&&Em(0,4);!e.videoData.qg&&e.playerState.isOrWillBePlaying()&&e.X2.start();if(Bk9(e)){var y;if(N=(y=e.mediaElement)==null?void 0:y.audioTracks())N.onchange=function(){e.publish("internalaudioformatchange",e.videoData,!0)}}};
dk=function(e){e.FT&&(e.FT.dispose(),e.FT=null)};
mJs=function(e){var N=N===void 0?!1:N;e.logger.debug("reattachVideoSource");e.mediaElement&&(e.TZ?(dk(e),e.IN(),ziP(e,N)):(e.videoData.VB&&e.videoData.VB.tj(),e.mediaElement.stopVideo()),e.playVideo())};
H$H=function(e,N){e.ph.T("html5_log_rebuffer_reason")&&(N={r:N,lact:z_()},e.mediaElement&&(N.bh=U3(e.mediaElement)),e.Fh("bufreason",N))};
KP9=function(e,N){if(e.ph.B9()&&e.mediaElement){var y=e.mediaElement.N7();y.omt=(e.mediaElement.getCurrentTime()+e.w7()).toFixed(3);y.ps=e.playerState.state.toString(16);y.rt=(g.BG(e.Eg().provider)*1E3).toFixed();y.e=N;e.S5[e.Kt++%5]=y}try{if(N==="timeupdate"||N==="progress")return}catch(w){}e.logger.debug(function(){return"video element event "+N})};
WPP=function(e){if(e.ph.B9()){e.S5.sort(function(w,E){return+w.rt-+E.rt});
for(var N=g.c(e.S5),y=N.next();!y.done;y=N.next())y=y.value,e.Fh("vpe",Object.assign({t:y.rt},y));e.S5=[];e.Kt=0}};
O$3=function(e){if(g.Kp("cobalt")&&g.Kp("nintendo switch")){var N=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;e.Fh("nxdock",{d:N})}};
Ps=function(e,N){var y;(y=e.tW)==null||Tt(y,N)};
JW3=function(e,N){return g.xK(e.videoData)&&e.k_?e.k_.handleError(N,void 0):!1};
FP5=function(e){NK(e.videoData,"html5_set_debugging_opt_in")&&(e=g.m6(),g.HE(0,183)||(WE(183,!0),e.save()))};
RiM=function(e){return g.xK(e.videoData)&&e.k_?LH(e.k_):e.videoData.ra()};
M53=function(e,N){e.nX.xB()||(e.Fh("sgap",{f:N}),e.nX.clearQueue(!1,N==="pe"))};
To=function(e){return e.T("html5_disable_video_player_initiated_seeks")&&L3(e.videoData)};
Go5=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"isLifaAdPlaying",function(){return N.api.isLifaAdPlaying()});
this.events.Y(e,"serverstitchedvideochange",function(){N.api.isLifaAdPlaying()?(N.playbackRate=N.api.getPlaybackRate(),N.api.setPlaybackRate(1)):N.api.setPlaybackRate(N.playbackRate)});
this.playbackRate=1};
UJ3=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"seekToChapterWithAnimation",function(y){N.seekToChapterWithAnimation(y)});
LX(this.api,"seekToTimeWithAnimation",function(y,w){N.seekToTimeWithAnimation(y,w)});
LX(this.api,"renderChapterSeekingAnimation",function(y,w,E){N.api.renderChapterSeekingAnimation(y,w,E)});
LX(this.api,"setMacroMarkers",function(y){N.setMacroMarkers(e,y)});
LX(this.api,"changeMarkerVisibility",function(y,w,E){N.changeMarkerVisibility(y,w,E)});
LX(this.api,"isSameMarkerTypeVisible",function(y){return N.isSameMarkerTypeVisible(y)})};
LP5=function(e,N,y){var w=e.api.getCurrentTime()*1E3<N?1:-1;e.api.renderChapterSeekingAnimation(w,y);e.api.seekTo(N/1E3,void 0,void 0,void 0,3)};
sYM=function(e,N){var y,w;return(y=Cj(e,"macroMarkersListEntity",N))==null?void 0:(w=y.markersList)==null?void 0:w.markerType};
aN5=function(e,N){var y=g.WH.getState().entities;e=sYM(y,e);N=g.c(N.Dl);for(var w=N.next();!w.done;w=N.next())if(e===sYM(y,w.value))return!0;return!1};
IY=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"videodatachange",function(){N.updateMetadata()});
this.events.Y(e,"presentingplayerstatechange",function(){eNM(N)})};
vs=function(e,N){try{navigator.mediaSession.setActionHandler(e,N)}catch(y){}};
NHP=function(e){vs("play",function(){e.api.playVideo()});
vs("pause",function(){e.api.pauseVideo()});
vs("seekbackward",function(){e.api.seekBy(-5*e.api.getPlaybackRate())});
vs("seekforward",function(){e.api.seekBy(5*e.api.getPlaybackRate())});
vs("seekto",function(N){((N=N.seekTime)||e.api.T("web_player_misc_bugfix_a")&&N!=null)&&e.api.seekTo(N)})};
y9M=function(e){var N,y,w,E;return(N=e.api.getVideoData().getWatchNextResponse())==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:(E=w.browserMediaSession)==null?void 0:E.browserMediaSessionRenderer};
wo_=function(e){var N=[];if(!e||!e.thumbnails)return N;e=g.c(e.thumbnails);for(var y=e.next();!y.done;y=e.next())y=y.value,y.url&&(!y.width||y.width<=0||!y.height||y.height<=0||g.eO(y.url)&&N.push({src:y.url||"",sizes:y.width+"x"+y.height,type:"image/jpeg"}));return N};
eNM=function(e){e=e.api.getPlayerStateObject();e=e.isCued()||e.isError()?"none":e.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=e};
EPP=function(e){var N=e.api.getProgressState().seekableEnd;N&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({duration:N,playbackRate:e.api.getPlaybackRate(),position:e.api.getCurrentTime()})};
zo=function(e){jX.call(this,e);var N=this;this.N=new Map;this.K=this.J=void 0;this.compositeVideoState=null;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"modulecreated",function(y){var w;a:{var E,A,T,p=(E=N.api.getVideoData())==null?void 0:(A=E.getPlayerResponse())==null?void 0:(T=A.overlay)==null?void 0:T.playerControlsOverlayRenderer;if(p&&(E=g.m(p.compositeVideoOverlay,A9F),E==null?0:(w=E.sources)==null?0:w.length))for(w=g.c(E==null?void 0:E.sources),E=w.next();!E.done;E=w.next())if(E=
E.value,E.isActive){w=E;break a}w=void 0}y==="captions"&&(w==null?void 0:w.topLeftCornerX)!==void 0&&(w==null?void 0:w.topLeftCornerY)!==void 0&&(w==null?void 0:w.width)!==void 0&&(w==null?void 0:w.height)!==void 0&&N.api.XU({top:w.topLeftCornerY,right:1-w.topLeftCornerX-w.width,bottom:1-w.topLeftCornerY-w.height,left:w.topLeftCornerX})});
this.events.Y(e,"videodatachange",function(y){var w=N.api.getVideoData();N.J=void 0;N.N.clear();N.api.MK("compositeembargo",1);var E=w==null?void 0:w.pT.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(E==null?0:E.length)?TH1(N,E.filter(function(A){return J9s(N,A)})):(w==null?0:w.cueRanges)&&TH1(N,w.cueRanges.filter(function(A){return J9s(N,A)}));
y==="dataupdated"&&(w==null?void 0:w.compositeLiveStatusToken)!==N.K&&(N.K=w==null?void 0:w.compositeLiveStatusToken,N.api.W_())});
this.events.Y(e,g.AA("compositeembargo"),function(y){var w;if(((w=N.J)==null?void 0:w.id)!==y.id&&(N.api.bI(!0),N.N.has(y.id))){var E=N.N.get(y.id);w=N.api.getVideoData();E=g.c(E);for(var A=E.next();!A.done;A=E.next()){var T=void 0;A=(T=A.value.compositeEmbargo)==null?void 0:T.embargoStatusToken;w.Xm!==A&&(w.Xm=A,N.api.W_());po3(N,y)}}});
this.events.Y(e,g.TW("compositeembargo"),function(y){var w;if(((w=N.J)==null?void 0:w.id)===y.id&&(N.api.bI(!1),N.N.has(y.id))){if(y=N.api.getVideoData())y.Xm=void 0;N.api.W_();po3(N)}});
this.events.Y(e,"heartbeatRequest",function(y){N.compositeVideoState!==null&&(y.playbackState||(y.playbackState={}),y.playbackState.compositeVideoState=N.compositeVideoState)});
this.events.Y(e,"onPlaybackAudioChange",function(){N.api.W_()});
LX(e,"setCompositeParam",function(y){N.compositeVideoState=y})};
po3=function(e,N){var y;((y=e.J)==null?void 0:y.id)!==(N==null?void 0:N.id)&&(e.J&&(e.N.delete(e.J.id),e.api.bl([e.J],1)),e.J=N)};
TH1=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){var w=y.value,E=void 0;y=Number((E=w.playbackRelativePosition)==null?void 0:E.utcTimeMs)/1E3;var A=void 0;E=y+Number((A=w.duration)==null?void 0:A.seconds);A="composite_embargo_"+y;w.onEnter&&(w=w.onEnter.filter(e.j),w.length&&(e.N.set(A,w),e.api.addUtcCueRange(A,y,E,"compositeembargo",!1)))}};
J9s=function(e,N){var y;return(y=N.onEnter)==null?void 0:y.some(e.j)};
CJn=function(e){jX.call(this,e);LX(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));LX(this.api,"updateDownloadState",this.updateDownloadState.bind(this));LX(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));LX(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));LX(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));LX(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));LX(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
ir=function(e){jX.call(this,e);var N=this;LX(e,"getAvailableQualityData",function(){return N.getAvailableQualityData()});
LX(e,"getAvailableQualityDataAndMessaging",function(){return N.getAvailableQualityDataAndMessaging()})};
r9F=function(e,N,y){var w=[],E=N?156595:151874;e=g.c(e);for(var A=e.next();!A.done;A=e.next()){var T=A.value;A=T.video;T={formatId:T.id,qualityLabel:A.qualityLabel,quality:A.quality,isPlayable:N};if(A=y.get(A.qualityLabel))T.paygatedQualityDetails={paygatedIndicatorText:A.paygatedIndicatorText,endpoint:A.endpoint,veType:E,trackingParams:A.trackingParams};w.push(T)}return w};
$l0=function(e){for(var N=0,y=0;y<e.length;y++)if(e[y].paygatedQualityDetails){var w=e[y];e.splice(y,1);e.splice(N,0,w);N++}};
YN5=function(e){var N=new Set,y=new Map,w={};e=g.c(e);for(var E=e.next();!E.done;E=e.next()){E=E.value;var A=E.quality,T=E.isPlayable,p=E.qualityLabel;p&&A&&(T&&y.has(A)&&y.get(A)!==p?N.add(A):T&&y.set(A,p),w[p]||(w[p]=E))}y=[];w=g.c(Object.values(w));for(e=w.next();!e.done;e=w.next())E=e.value,(e=E.quality)&&!N.has(e)&&(E.formatId=void 0),y.push(E);return y};
DN=function(e){jX.call(this,e);var N=this;this.K=1;this.R9=null;this.lk={BLk:function(){return N.K}};
this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"d6de4videobindingchange",function(y){N.BK(y)});
this.events.Y(e,"csiinitialized",function(){MB9(N)})};
MB9=function(e){if(lv9()){e.R9=e.api.s4();e.J=new O3;e.K=2;var N=g.Y2(e.api.X().experiments,"html5_d6de4_defer_timeout_ms");e.R9.oe("pt_pish");N?g.b4(function(){FmF(e)},N):e.api.T("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){FmF(e)}):FmF(e)}};
FmF=function(e){if(lv9()){e.R9=e.api.s4();var N=g.Y2(e.api.X().experiments,"html5_d6de4_cloud_project_number");e.R9.oe("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:N}).then(function(w){e.N=w;var E;(E=e.J)==null||E.resolve();e.R9.oe("pt_pif")}).catch(function(w){gk(w,"player_start");
e.R9.oe("pt_pie");var E;(E=e.J)==null||E.reject(w)})}catch(w){gk(w,"player_start_catch");
e.api.Fh("pfes",{});var y;(y=e.J)==null||y.reject(w)}}};
SNE=function(e,N){if(e.N&&!e.T("html5_disable_d6de4_mint_debug")){var y=N.videoId;e.K=3;e.R9.oe("pt_ms");try{e.N.requestToken(y).then(function(w){e.R9.oe("pt_mf");if(w=sh(w))N.qJ={Cmg:w}}).catch(function(w){e.R9.oe("pt_me");
gk(w,"player_generate");e.handleError(w,N)})}catch(w){gk(w,"player_generate_catch"),e.handleError(w,N)}}};
oP0=function(e,N){e.api.T("html5_enable_d6de4_cold_start_and_error")&&(N.qJ={coldStartInfo:{clientState:e.K}})};
gk=function(e,N){e.message&&g.uA(Error(N+"_"+e.message))};
lv9=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
V_=function(e){g.W.call(this,{S:"button",dP:["ytp-pip-button","ytp-button"],V:{title:"{{title}}","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},W:[d7E()]});var N=this;this.api=e;this.listen("click",this.onClick);var y=this.api.UP(),w=y.subscribe("visibilitystatechange",function(){N.GZ(y.Wp())});
this.addOnDisposeCallback(function(){y.qr(w)});
lh(e,this.element,this);this.GZ(y.Wp())};
f$=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"standardControlsInitialized",function(){N.createButton()});
g.na(this.api.X())&&(this.T("web_enable_auto_pip")||this.T("web_enable_pip_on_miniplayer")||this.T("web_shorts_pip"))&&LX(this.api,"setDocumentPictureInPicture",function(y){N.setDocumentPictureInPicture(y)})};
bZ9=function(e){var N=e.api.getVideoData();e.button.KX(N.mI)};
hNM=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"musicDisableUi",function(){g.pi(N.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
LX(this.api,"musicEnableUi",function(){g.re(N.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
qJ=function(e,N,y){N=N===void 0?!0:N;y=y===void 0?!1:y;g.W.call(this,{S:"div",B:"ytp-suggested-action"});var w=this;this.C=e;this.SR=this.Kh=this.qg=this.Ng=this.j=this.U=this.expanded=this.enabled=this.Wk=!1;this.Et=this.C.T("delhi_modern_web_player")?40:34;this.Dl=new g.e6(function(){w.badge.element.style.width=""},200,this);
this.Zl=new g.e6(function(){tv(w);ur(w)},200,this);
this.dismissButton=new g.W({S:"button",dP:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.Q(this,this.dismissButton);this.K=new g.W({S:"div",B:"ytp-suggested-action-badge-expanded-content-container",W:[{S:"label",B:"ytp-suggested-action-badge-title",b9:"{{badgeLabel}}"},this.dismissButton]});g.Q(this,this.K);this.Rq=new g.W({S:"div",B:"ytp-suggested-action-badge-icon-container",W:[N?{S:"div",B:"ytp-suggested-action-badge-icon"}:""]});g.Q(this,this.Rq);this.badge=new g.W({S:y?"div":
"button",dP:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[this.Rq,this.K]});g.Q(this,this.badge);this.badge.yB(this.element);this.D=new g.NE(this.badge,250,!1,100);g.Q(this,this.D);this.VB=new g.NE(this.K,250,!1,100);g.Q(this,this.VB);this.Kx=new g.a1(this.fWG,null,this);g.Q(this,this.Kx);this.Ut=new g.a1(this.EM,null,this);g.Q(this,this.Ut);g.Q(this,this.Dl);g.Q(this,this.Zl);this.C.createServerVe(this.badge.element,this.badge,!0);this.C.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.Y(this.C,"onHideControls",function(){w.Up(!1)});
this.Y(this.C,"onShowControls",function(){w.Up(!0)});
this.Y(this.badge.element,"click",this.VW);this.Y(this.dismissButton.element,"click",this.UA);this.Y(this.C,"pageTransition",this.Es);this.Y(this.C,"appresize",this.xK);this.Y(this.C,"fullscreentoggled",this.yzZ);this.Y(this.C,"cardstatechange",this.DUW);this.Y(this.C,"annotationvisibility",this.WyB,this);this.Y(this.C,"offlineslatestatechange",this.eUs,this)};
tv=function(e){g.Y1(e.badge.element,"ytp-suggested-action-badge-with-controls",e.qg||!e.U)};
ur=function(e,N){var y=e.xZ();e.expanded!==y&&(e.expanded=y,N===void 0||N?(e.Kx.stop(),e.Ut.stop(),e.Dl.stop(),e.Kx.start()):(e.K.KX(e.expanded),g.Y1(e.badge.element,"ytp-suggested-action-badge-expanded",e.expanded)),e.tv())};
c95=function(e){var N=e.text||"",y=g.H4("ytp-suggested-action-badge-title",e.element);y&&g.AL(y,N);e.badge.element.setAttribute("aria-label",N);e.dismissButton.element.setAttribute("aria-label",e.Bk?e.Bk:"")};
ZN=function(e,N,y,w,E,A){var T={S:"div",B:"ytp-panel"};if(y){var p="ytp-panel-back-button";var C="ytp-panel-title";var r={S:"div",B:"ytp-panel-header",W:[{S:"div",dP:["ytp-panel-back-button-container"],W:[{V:{"aria-label":"Back to previous menu"},S:"button",dP:["ytp-button",p]}]},{S:"span",dP:[C],V:e.T("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,W:[y]}]};if(E){var Y="ytp-panel-options";r.W.push({S:"button",dP:["ytp-button",Y],W:[w]})}T.W=[r]}w=!1;A&&(A={S:"div",
B:"ytp-panel-footer",W:[A]},w=!0,T.W?T.W.push(A):T.W=[A]);g.Mu.call(this,T);this.content=N;w&&T.W?N.yB(this.element,T.W.length-1):N.yB(this.element);this.A8=!1;this.OC=w;y&&(y=this.hW(C),this.Y(this.hW(p),"click",this.NW),this.Y(y,"click",this.NW),this.A8=!0,E&&this.Y(this.hW(Y),"click",E));N.subscribe("size-change",this.b4,this);this.Y(e,"fullscreentoggled",this.b4);this.C=e};
g.x7=function(e,N,y,w,E,A){N=N===void 0?null:N;var T={role:"menu"};N&&(T.id=N);N=new g.Mu({S:"div",B:"ytp-panel-menu",V:T});ZN.call(this,e,N,y,w,E,A);this.menuItems=N;this.items=[];g.Q(this,this.menuItems)};
g.jk=function(e){for(var N=g.c(e.items),y=N.next();!y.done;y=N.next())y.value.unsubscribe("size-change",e.X4,e);e.items=[];try{g.N8(e.menuItems.element)}catch(A){var w,E;g.uA(new g.Gh("Failed to remove menu items from panel menu.",{error:A.message,originalStack:A.stack,childToBeRemoved:(E=(w=e.menuItems.element.firstChild)==null?void 0:w.textContent)!=null?E:"child element not found"}))}e.menuItems.publish("size-change")};
kf9=function(e,N){return N.priority-e.priority};
g.n$=function(e,N){g.Dq.call(this,e,{S:"div",dP:["ytp-popup",N||""]},100,!0);this.J=[];this.G=this.Z=null;this.maxHeight=this.maxWidth=0;this.size=new g.l8(0,0);this.listen("keydown",this.Uq)};
BHH=function(e){var N=e.J[e.J.length-1];if(N){g.k0(e.element,e.maxWidth||"100%",e.maxHeight||"100%");g.$0(N.element,"width","");g.$0(N.element,"height","");g.$0(N.element,"maxWidth","100%");g.$0(N.element,"maxHeight","100%");g.$0(N.content.element,"height","");var y=g.Be(N.element);y.width+=1;y.height+=1;g.$0(N.element,"width",y.width+"px");g.$0(N.element,"height",y.height+"px");g.$0(N.element,"maxWidth","");g.$0(N.element,"maxHeight","");var w=0;N.A8&&(w=g.Be(N.hW("ytp-panel-header")).height);var E=
0;N.OC&&(E=N.hW("ytp-panel-footer"),g.$0(E,"width",y.width+"px"),E=g.Be(E).height);g.$0(N.content.element,"height",y.height-w-E+"px");N.element instanceof HTMLElement&&(w=N.element,E=w.scrollWidth-w.clientWidth,w.offsetWidth-w.clientWidth>0&&E>0&&(y.width+=E,g.$0(N.element,"width",y.width+"px")));e.size=y}};
g.Q_=function(e,N){var y=e.J[e.J.length-1];y!==N&&(e.J.push(N),Xos(e,y,N))};
g.mP=function(e){if(!(e.J.length<=1)){var N=e.J.pop(),y=e.J[0];e.J=[y];Xos(e,N,y,!0)}};
Xos=function(e,N,y,w){PJ5(e);N&&(N.unsubscribe("size-change",e.FR,e),N.unsubscribe("back",e.z4,e));y.subscribe("size-change",e.FR,e);y.subscribe("back",e.z4,e);if(e.Og){g.pi(y.element,w?"ytp-panel-animate-back":"ytp-panel-animate-forward");y.yB(e.element);y.focus();e.element.scrollLeft=0;e.element.scrollTop=0;var E=e.size;BHH(e);g.k0(e.element,E);e.Z=new g.e6(function(){dl5(e,N,y,w)},20,e);
e.Z.start()}else y.yB(e.element),N&&N.detach()};
dl5=function(e,N,y,w){e.Z.dispose();e.Z=null;g.pi(e.element,"ytp-popup-animating");w?(g.pi(N.element,"ytp-panel-animate-forward"),g.re(y.element,"ytp-panel-animate-back")):(g.pi(N.element,"ytp-panel-animate-back"),g.re(y.element,"ytp-panel-animate-forward"));g.k0(e.element,e.size);e.G=new g.e6(function(){g.re(e.element,"ytp-popup-animating");N.detach();g.$1(N.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);e.G.dispose();e.G=null},250,e);
e.G.start()};
PJ5=function(e){e.Z&&g.yE(e.Z);e.G&&g.yE(e.G)};
Hs=function(e){g.n$.call(this,e,"ytp-shopping-product-menu");this.z9=new g.x7(this.C);g.Q(this,this.z9);this.hide();g.Q_(this,this.z9);g.Pb(this.C,this.element,4)};
vP0=function(e,N,y){var w,E=N==null?void 0:(w=N.text)==null?void 0:w.simpleText;E&&(y=IvH(e,y,E,N==null?void 0:N.icon,N==null?void 0:N.secondaryIcon),N.navigationEndpoint&&y.listen("click",function(){e.C.Mg("innertubeCommand",N.navigationEndpoint);e.hide()},e))};
zNs=function(e,N,y){var w,E=N==null?void 0:(w=N.text)==null?void 0:w.simpleText;E&&IvH(e,y,E,N==null?void 0:N.icon).listen("click",function(){var A;(N==null?void 0:(A=N.icon)==null?void 0:A.iconType)==="HIDE"?e.C.publish("featuredproductdismissed"):N.serviceEndpoint&&e.C.Mg("innertubeCommand",N.serviceEndpoint);e.hide()},e)};
IvH=function(e,N,y,w,E){N=new g.uh(g.qU({},[],!1,!!E),N,y);E&&N.updateValue("secondaryIcon",iZE(E));N.setIcon(iZE(w));g.Q(e,N);e.z9.Gi(N,!0);return N};
iZE=function(e){if(!e)return null;switch(e.iconType){case "ACCOUNT_CIRCLE":return{S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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 bl5();case "HIDE":return{S:"svg",V:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"g",W:[{S:"path",V:{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 d1()}};
K$=function(e){qJ.call(this,e,!1,!0);this.isCounterfactual=this.N=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.U=!0;this.overflowButton=new g.W({S:"button",dP:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Q(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.W({S:"img",B:"ytp-suggested-action-badge-img",V:{src:"{{url}}"}});
this.thumbnailImage.hide();g.Q(this,this.thumbnailImage);this.thumbnailIcon=new g.W({S:"div",B:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.Q(this,this.thumbnailIcon);this.banner=new g.W({S:"a",B:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{S:"div",B:"ytp-suggested-action-details",W:[{S:"text",B:"ytp-suggested-action-title",b9:"{{title}}"},{S:"text",B:"ytp-suggested-action-subtitle",b9:"{{subtitle}}"},{S:"text",B:"ytp-suggested-action-metadata-text",
b9:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.Q(this,this.banner);this.banner.yB(this.K.element);this.Y(this.C,"videodatachange",this.onVideoDataChange);this.Y(this.C,g.AA("suggested_action_view_model"),this.uZZ);this.Y(this.C,g.TW("suggested_action_view_model"),this.iXP);this.Y(this.overflowButton.element,"click",this.WO);this.Y(e,"featuredproductdismissed",this.UA);this.C.createServerVe(this.banner.element,this.banner,!0)};
DlM=function(e){e.isInitialized&&(e.enabled=e.isVisible,e.Kh=e.isVisible,ur(e),e.xK(),e.thumbnailImage.KX(e.isVisible),e.shouldHideDismissButton||e.dismissButton.KX(e.isVisible),e.shouldShowOverflowButton&&e.overflowButton.KX(e.isVisible))};
Ws=function(){K$.apply(this,arguments)};
gPE=function(e){jX.call(this,e);this.J=new Ws(this.api);g.Q(this,this.J);g.Pb(this.api,this.J.element,4)};
Od=function(e){jX.call(this,e);var N=this;this.J="";this.K=!0;this.N=this.api.T("html5_enable_audio_track_stickiness_phase_two");var y=new g.fd(e);g.Q(this,y);y.Y(e,"internalaudioformatchange",function(w,E){VB0(N,w,E)});
y.Y(e,"videoplayerreset",function(){fvn(N)});
y.Y(e,"videodatachange",function(w,E){N.onVideoDataChange(w,E)})};
VB0=function(e,N,y){if(y){var w="";tB_(e,N)&&(w=N,e.N||(e.J=N),e.api.T("html5_sabr_enable_server_xtag_selection")&&(y=e.api.getVideoData(void 0,!0)))&&(y.E0=N);if(e.N&&w&&u_M(e,w)){var E;A$(UI(e.api.X(),(E=e.api.getVideoData())==null?void 0:g.qK(E)),function(A){qN5(e,w,A)})}}};
fvn=function(e){if(e.J)ZZ_(e);else{var N;if(e.N&&((N=fA())==null?0:N.size)){var y;A$(UI(e.api.X(),(y=e.api.getVideoData())==null?void 0:g.qK(y)),function(w){if((w=xl5(w))&&u_M(e,w)){var E=e.api.getVideoData(void 0,!0);E&&(E.E0=w)}})}}};
ZZ_=function(e){var N=e.api.getVideoData(void 0,!0);N&&(N.E0=e.J)};
qN5=function(e,N,y){xl5(y)!==N&&(j3_([{settingItemId:RY(y),settingOptionValue:{stringValue:N}}]),A$(e.WI(),function(w){y0H(w,RY(y),{stringValue:N})}))};
nPM=function(e,N){Tm(A$(A$(e.WI(),function(y){return ekM(y,[RY(N)])}),function(y){if(y){y=g.c(y);
for(var w=y.next();!w.done;w=y.next()){var E=w.value;w=E.key;E=E.value;w&&E&&j3_([{settingItemId:w,settingOptionValue:E}])}}}),function(){e.K=!0})};
tB_=function(e,N){e=e.api.getAvailableAudioTracks();e=g.c(e);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.getLanguageInfo().getId()===N)return y;return null};
xl5=function(e){e=RY(e);var N=fA();e=N?N.get(e):void 0;return e&&e.stringValue?e.stringValue:""};
RY=function(e){var N=(484).toString();e&&(N=(483).toString());return N};
u_M=function(e,N){var y;return N.split(".")[0]!==""&&((y=e.api.getVideoData())==null?void 0:!xI(y))};
j3_=function(e){var N=fA();N||(N=new Map);e=g.c(e);for(var y=e.next();!y.done;y=e.next())y=y.value,N.set(y.settingItemId,y.settingOptionValue);N=JSON.stringify(Object.fromEntries(N));g.uY("yt-player-user-settings",N,2592E3)};
g.Go=function(e,N,y,w,E,A,T){g.uh.call(this,g.qU({"aria-haspopup":"true"}),N,e);this.x_=w;this.U=!1;this.K=null;this.options={};this.N=new g.x7(y,void 0,e,E,A,T);g.Q(this,this.N);this.listen("keydown",this.vO);this.listen("click",this.open)};
Q31=function(e){if(e.K){var N=e.options[e.K];N.element.getAttribute("aria-checked");N.element.setAttribute("aria-checked","false");e.K=null}};
ml3=function(e,N){g.Go.call(this,"Sleep timer",g.aq.SLEEP_TIMER,e,N);this.C=e;this.D={};this.Z=this.Rw("Off");this.G=this.J="";e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.j=new g.W({S:"div",dP:["ytp-menuitem-label-wrapper"],W:[{S:"div",b9:"End of video"},{S:"div",dP:["ytp-menuitem-sublabel"],b9:"{{content}}"}]});g.Q(this,this.j);this.listen("click",this.onClick);this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"presentingplayerstatechange",this.GZ);this.Y(e,"settingsMenuVisibilityChanged",this.XGs);e.createClientVe(this.element,this,218889);this.GZ();this.C.Mg("onSleepTimerFeatureAvailable")};
HZH=function(e){var N="Off 10 15 20 30 45 60".split(" "),y;((y=e.C.getVideoData())==null?0:y.isLivePlayback)||N.push("End of video");y=e.C.getPlaylist();var w;y&&((w=y.listId)==null?void 0:w.type)!=="RD"&&N.push("End of playlist");e.Pc(g.dn(N,e.Rw));e.D=g.l7(N,e.Rw,e);N=e.Rw("End of video");e.options[N]&&g.tu(e.options[N],e.j)};
Km1=function(e,N){var y=e.D[N],w=y==="End of video"||y==="End of playlist";y==="Off"&&(e.J="");e.C.getPlayerState()!==0&&e.C.getPlayerState()!==5||!w?(e.Z=N,g.Go.prototype.dQ.call(e,N),e.BI(N),e.C.Mg("onSleepTimerSettingsChanged",y)):e.C.Mg("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
Ud=function(e){jX.call(this,e);var N=this;e.addEventListener("settingsMenuInitialized",function(){N.menuItem||(N.menuItem=new ml3(N.api,N.api.X6()),g.Q(N,N.menuItem))});
e.addEventListener("openSettingsMenuItem",function(y){if(y==="menu_item_sleep_timer"){if(!N.menuItem){var w;(w=N.api.X6())==null||w.WY()}N.menuItem.open()}});
LX(e,"resetSleepTimerMenuSettings",function(){N.resetSleepTimerMenuSettings()});
LX(e,"setSleepTimerTimeLeft",function(y){N.setSleepTimerTimeLeft(y)});
LX(e,"setVideoTimeLeft",function(y){N.setVideoTimeLeft(y)})};
WmF=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"onSnackbarMessage",function(y){switch(y){case 1:y=N.api.getPlayerStateObject(),y.isBuffering()&&g.G(y,8)&&g.G(y,16)&&N.api.Mg("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.sd=function(e,N,y,w,E){N=N===void 0?!1:N;w=w===void 0?!1:w;E=E===void 0?!1:E;g.pT.call(this);this.D=E;this.G=!1;this.j=new iY(this);this.L=this.Z=null;this.K=this.N=!1;g.Q(this,this.j);this.target=e;this.J=N;this.U=y||e;this.G=w;N&&(g.RB&&this.target.setAttribute("draggable","true"),E||(this.target.style.touchAction="none"));L$(this)};
aY=function(e){g.g9(e.j,!e.J)};
L$=function(e){e.L=null;e.Z=null;e.Y(eB("over"),e.IL);e.Y("touchstart",e.ob);e.J&&e.Y(eB("down"),e.CtB)};
OZ0=function(e,N){for(var y=0;y<N.changedTouches.length;y++){var w=N.changedTouches[y];if(w.identifier===e.Z)return w}return null};
eB=function(e){return window.navigator.msPointerEnabled?"MSPointer"+e.charAt(0).toUpperCase()+e.substring(1):"mouse"+e};
Nl=function(e){return e&&RNs?ZA(e)||document:document};
GfM=function(e,N){g.W.call(this,{S:"div",dP:["ytp-overlay","ytp-speedmaster-overlay"],W:[{S:"div",B:"ytp-speedmaster-user-edu",W:[{S:"div",B:"ytp-speedmaster-label",b9:N},{S:"div",B:"ytp-speedmaster-icon",b9:"{{icon}}"}]}]});this.C=e;this.J=this.hW("ytp-speedmaster-user-edu");this.updateValue("icon",o$M());g.pi(this.J,"ytp-speedmaster-has-icon");this.C.createClientVe(this.J,this,173040,!0);this.SY()};
wH=function(e){jX.call(this,e);var N=this;this.j=this.K=!1;this.Zl=g.Y2(this.api.X().experiments,"speedmaster_touch_activation_ms")||500;this.qg=g.Y2(this.api.X().experiments,"speedmaster_cancellation_movement_dp")||10;this.aq=g.Y2(this.api.X().experiments,"speedmaster_playback_rate")||2;this.N=new g.fd(e);g.Q(this,this.N);this.D="2x";this.speedmasterUserEdu=new GfM(e,this.D);g.Q(this,this.speedmasterUserEdu);g.Pb(this.api,this.speedmasterUserEdu.element,4);this.J=new g.sd(this.api.Fz().k$,!0,null,
!1,!0);g.Q(this,this.J);this.delay=new g.e6(this.i9,this.Zl,this);g.Q(this,this.delay);this.N.Y(e,"videodatachange",function(){ym(N)},this);
this.N.Y(e,"presentingplayerstatechange",function(){ym(N)},this);
this.N.Y(e,"autonavvisibility",function(){ym(N)},this);
this.api.UP().subscribe("visibilitystatechange",function(){ym(N)});
this.N.Y(e,"rootnodemousedown",function(y){N.G=y});
this.T("web_speedmaster_spacebar_control")&&(this.N.Y(e,"keyboardserviceglobalkeydown",function(y,w){N.Ng=w;UlP(N,y,!0)},this),this.N.Y(e,"keyboardserviceglobalkeyup",function(y){UlP(N,y,!1)},this))};
EN=function(e){e.delay.stop();e.J.unsubscribe("dragmove",e.Z,e);e.J.unsubscribe("dragend",e.L,e);e.K&&(e.K=!1,e.speedmasterUserEdu.SY(),e.api.setPlaybackRate(e.l9),e.api.showControls(),e.Rq&&e.api.pauseVideo())};
UlP=function(e,N,y){y?N.keyCode!==32||N.repeat||e.K||!e.j||g.NA(e.delay):EN(e)};
ym=function(e){var N,y;var w=!!e.D&&!((N=e.api.getVideoData())==null?0:N.isLivePlayback)&&!e.api.OX()&&e.api.getPresentingPlayerType()!==2&&!g.G(e.api.getPlayerStateObject(),2)&&!((y=g.T9(e.api))==null?0:y.xx())&&!e.api.isEmbedsShortsMode()&&bw(e.api.UP());e.j!==w&&(e.j=w,e.j?e.J.subscribe("dragstart",e.Kh,e):(e.J.unsubscribe("dragstart",e.Kh,e),e.J.unsubscribe("dragmove",e.Z,e),e.J.unsubscribe("dragend",e.L,e),EN(e)))};
Lm5=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);LX(this.api,"addPlayerResponseForAssociation",function(y){N.api.addPlayerResponseForAssociation(y)});
LX(this.api,"finishSegmentByCpn",function(y,w,E){return N.api.finishSegmentByCpn(y,w,E)});
this.events.Y(e,"modulecreated",function(y){if(y==="ad"&&(y=N.api.getVideoData(1))&&(y=y.getPlayerResponse())){var w;y=(w=y.adPlacements)!=null?w:[];w=g.c(y);for(var E=w.next();!E.done;E=w.next()){var A=y=void 0,T=void 0;if(E=(y=E.value.adPlacementRenderer)==null?void 0:(A=y.renderer)==null?void 0:(T=A.instreamVideoAdRenderer)==null?void 0:T.playerVars)y=AE(E),N.api.addPlayerResponseForAssociation({playerVars:y})}}});
this.events.Y(e,"videodatachange",function(y,w){N.onVideoDataChange(y,w)})};
A9=function(e,N,y){g.gs.call(this,N,e);this.J=y};
g.Tf=function(e){R8.call(this);var N=this;this.J=e;this.L={};this.listener=function(y){N.dispatchEvent(new A9(N,y.type,y))}};
av5=function(e){var N=e.getVideoData(),y=e.LC(),w=y.ut(),E=e.X(),A=e.vQ(),T=A.F3Z,p=A.bNs,C=Y7(p,"bandwidth")*8/1024,r=Y7(p,"networkactivity")/1024,Y=Y7(p,"bufferhealth"),M=A.d0,l=A.playerState.state.toString(16),F=y.getCurrentTime().toFixed(2),S=wO(y.O4(),",",3),k="";if(N.isDaiEnabled()){N.enableServerStitchedDai&&(k+=N.Lu?"DS":"SS");k=N.Au()?k+"LIFA, ":k+"DAI, ";var X=A.Ui;X&&(k+=X)}Zi(N)&&!N.Au()&&(k+="LIFAE, ");var d;((d=e.getVideoData(1))==null?0:g.xK(d))?(k+="SSAP, ",(X=A.Ui)&&(k+=X)):L3(N)&&
(k+="SABR, ");if(N.fetchType){switch(N.fetchType){case "onesie":X="o";break;case "gp":X="gp";break;default:X="gvi"}k+="vd:"+X+", "}E.uB&&(k=E.uB.Um?k+"wa, ":k+"w, ");k+="s:"+l+" t:"+F+" b:"+S+" ";y.isSeeking()&&(k+="S");y.isPaused()&&(k+="P");y.isEnded()&&(k+="E");e.isOrchestrationLeader()&&(k+=" L");(y=A.dI)&&(k+=" l:"+y.toFixed());y=A.currentTime;E=N.IF;y&&y>E.start&&y<E.end&&(k+=" as");y=k;k=g.NR(ty)("_start",void 0);E=[];l=g.c(["pl_i","vir","or_p","orfb","pbs"]);for(F=l.next();!F.done;F=l.next())F=
F.value,(S=g.NR(ty)(F,void 0))&&k&&(S-=k,E.push(F+":"+Math.round(S)));k=E.join(" ");E=g.jV();l=g.XT(e).Zhh;F=N.K&&!N.K.J?"display:none":"";if((S=N.clientPlaybackNonce)&&S.length==16){S+="AAAA";X=0;d="";for(var v=0;v<20;v++)if(X=(X<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(S.charAt(v)),v%5==4){for(var V="",Z=0;Z<6;Z++)V="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(X&31)+V,X>>=5;d+=V}S=d.substr(0,4)+" "+d.substr(4,4)+" "+d.substr(8,4)+" "+(d.substr(12,4)+" "+d.substr(16,
4))}else S="";C={video_id_and_cpn:String(N.videoId)+" / "+S,codecs:"",dims_and_frames:"",bandwidth_kbps:C.toFixed(0)+" Kbps",buffer_health_seconds:Y.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:M?"":"display:none",drm:M,debug_info:y,extra_debug_info:"",bandwidth_style:F,network_activity_style:F,network_activity_bytes:r.toFixed(0)+" KB",shader_info:l,shader_info_style:l?"":"display:none",playback_categories:""};r=w.clientWidth+"x"+w.clientHeight+(E>1?"*"+E.toFixed(2):"");Y="-";T.totalVideoFrames&&
(Y=(T.droppedVideoFrames||0)+" dropped of "+T.totalVideoFrames);C.dims_and_frames=r+" / "+Y;e=e.getVolume();T=eq1(N);var n;r=((n=N.j)==null?0:n.audio.J)?"DRC":Math.round(e*T)+"%";n=Math.round(e)+"% / "+r;e=N.Fo.toFixed(1);isFinite(Number(e))&&(n+=" (content loudness "+e+"dB)");C.volume=n;C.resolution=w.videoWidth+"x"+w.videoHeight;if(w=N.N){if(n=w.video)e=n.fps,e>1&&(C.resolution+="@"+e),(e=A.xP1)&&e.video&&(C.resolution+=" / "+e.video.width+"x"+e.video.height,e.video.fps>1&&(C.resolution+="@"+e.video.fps)),
C.codecs=s3M(w),!N.j||w.audio&&w.video?w.ZZ&&(C.codecs+=" / "+w.ZZ+"A"):C.codecs+=" / "+s3M(N.j),n.N||n.primaries?(e=n.N||"unknown",e==="smpte2084"?e+=" (PQ)":e==="arib-std-b67"&&(e+=" (HLG)"),C.color=e+" / "+(n.primaries||"unknown"),C.color_style=""):C.color_style="display:none";if(w.debugInfo)for(C.fmt_debug_info="",w=g.c(w.debugInfo),n=w.next();!n.done;n=w.next())n=n.value,C.fmt_debug_info+=n.label+":"+n.text+" ";C.fmt_debug_info_style=C.fmt_debug_info&&C.fmt_debug_info.length>0?"":"display:none"}w=
N.isLivePlayback;n=N.Ta;C.live_mode_style=w||n?"":"display:none";C.live_latency_style=w?"":"display:none";if(n)C.live_mode="Post-Live"+(wd(N)?" Manifestless":"");else if(w){n=Y7(p,"livelatency");C.live_latency_secs=n.toFixed(2)+"s";w=wd(N)?"Manifestless, ":"";N.Rq&&(w+="Windowed, ");e="Uncertain";if(n>=0&&n<120)if(N.latencyClass&&N.latencyClass!=="UNKNOWN")switch(N.latencyClass){case "NORMAL":e="Optimized for Normal Latency";break;case "LOW":e="Optimized for Low Latency";break;case "ULTRALOW":e="Optimized for Ultra Low Latency";
break;default:e="Unknown Latency Setting"}else e=N.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";w+=e;(n=A.G9t)&&(w+=", seq "+n.sequence);C.live_mode=w}!A.isGapless||Rf(N)&&A.xB||(C.playback_categories+="Gapless ");C.playback_categories_style=C.playback_categories?"":"display:none";C.bandwidth_samples=$7(p,"bandwidth");C.network_activity_samples=$7(p,"networkactivity");C.live_latency_samples=$7(p,"livelatency");C.buffer_health_samples=$7(p,"bufferhealth");A=g.QG(N);
if(N.cotn||A)C.cotn_and_local_media=(N.cotn?N.cotn:"null")+" / "+A;C.cotn_and_local_media_style=C.cotn_and_local_media?"":"display:none";NK(N,"web_player_release_debug")?(C.release_name="youtube.player.web_20250209_00_RC00",C.release_style=""):C.release_style="display:none";C.debug_info&&k.length>0&&C.debug_info.length+k.length<=60?C.debug_info+=" "+k:C.extra_debug_info=k;C.extra_debug_info_style=C.extra_debug_info&&C.extra_debug_info.length>0?"":"display:none";return C};
s3M=function(e){var N=/codecs="([^"]*)"/.exec(e.mimeType);return N&&N[1]?N[1]+" ("+e.itag+")":e.itag};
J9=function(e,N,y,w,E){g.W.call(this,{S:"div",B:"ytp-horizonchart"});this.G=N;this.sampleCount=y;this.j=w;this.Z=E;this.index=0;this.heightPx=-1;this.K=this.N=null;this.J=Math.round(e/y);this.element.style.width=this.J*this.sampleCount+"px";this.element.style.height=this.G+"em"};
pZ=function(e,N){if(e.heightPx===-1){var y=null;try{y=g.sA("CANVAS"),e.N=y.getContext("2d")}catch(p){}if(e.N){var w=e.J*e.sampleCount;e.K=y;e.K.width=w;e.K.style.width=w+"px";e.element.appendChild(e.K)}else for(e.sampleCount=Math.floor(e.sampleCount/4),e.J*=4,y=0;y<e.sampleCount;y++)w=g.sA("SPAN"),w.style.width=e.J+"px",w.style.left=e.J*y+"px",e.element.appendChild(w)}y=e.element.clientHeight||24;y!==e.heightPx&&(e.heightPx=y,e.N&&(y=(window.devicePixelRatio||1)>1?2:1,e.K.height=e.heightPx*y,e.K.style.height=
e.heightPx+"px",e.N.scale(1,y)));N=g.c(N);for(w=N.next();!w.done;w=N.next()){y=e;var E=e.index,A=w.value;for(w=0;w+2<y.j.length&&y.j[w+1]<A;)w++;A=Math.min(1,(A-y.j[w])/(y.j[w+1]-y.j[w]));if(y.N)y.N.fillStyle=y.Z[w],y.N.fillRect(E*y.J,0,y.J,y.heightPx),y.N.fillStyle=y.Z[w+1],y.N.fillRect(E*y.J,y.heightPx*(1-A),y.J,y.heightPx);else{E=y.element.children[E];var T=window.devicePixelRatio||1;A=Math.min(y.heightPx,Math.round(y.heightPx*A*T)/T)||0;E.style.height=A+"px";E.style.backgroundColor=y.Z[w+1];E.style.borderTop=
"solid "+(y.heightPx-A)+"px "+y.Z[w]}e.index=(e.index+1)%e.sampleCount}N=e.index;e.N?e.N.clearRect(N*e.J,0,e.J,e.heightPx):(e=e.element.children[N],e.style.height="0px",e.style.borderTop="")};
CZ=function(e){var N=null;N={S:"button",dP:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],V:{title:"close"},b9:"[X]"};g.W.call(this,{S:"div",dP:["html5-video-info-panel","ytp-sfn"],W:[N,{S:"div",dP:["html5-video-info-panel-content","ytp-sfn-content"],W:[{S:"div",W:[{S:"div",b9:"Video ID / sCPN"},{S:"span",b9:"{{video_id_and_cpn}}",B:"ytp-sfn-cpn"}]},{S:"div",W:[{S:"div",b9:"Viewport / Frames"},{S:"span",b9:"{{dims_and_frames}}"}]},{S:"div",W:[{S:"div",b9:"Current / Optimal Res"},{S:"span",
b9:"{{resolution}}"}]},{S:"div",W:[{S:"div",b9:"Volume / Normalized"},{S:"span",b9:"{{volume}}"}]},{S:"div",W:[{S:"div",b9:"Codecs"},{S:"span",b9:"{{codecs}}"}]},{S:"div",V:{style:"{{shader_info_style}}"},W:[{S:"div",b9:"Shader Info"},{S:"span",b9:"{{shader_info}}"}]},{S:"div",V:{style:"{{color_style}}"},W:[{S:"div",b9:"Color"},{S:"span",b9:"{{color}}"}]},{S:"div",V:{style:"{{drm_style}}"},W:[{S:"div",b9:"Protected"},{S:"span",b9:"{{drm}}"}]},{S:"div",V:{style:"{{bandwidth_style}}"},W:[{S:"div",b9:"Connection Speed"},
{S:"span",W:[{S:"span",b9:"{{bandwidth_chart}}"},{S:"span",b9:"{{bandwidth_kbps}}"}]}]},{S:"div",V:{style:"{{network_activity_style}}"},W:[{S:"div",b9:"Network Activity"},{S:"span",W:[{S:"span",b9:"{{network_activity_chart}}"},{S:"span",b9:"{{network_activity_bytes}}"}]}]},{S:"div",W:[{S:"div",b9:"Buffer Health"},{S:"span",W:[{S:"span",b9:"{{buffer_health_chart}}"},{S:"span",b9:"{{buffer_health_seconds}}"}]}]},{S:"div",V:{style:"{{live_latency_style}}"},W:[{S:"div",b9:"Live Latency"},{S:"span",W:[{S:"span",
b9:"{{live_latency_chart}}"},{S:"span",b9:"{{live_latency_secs}}"}]}]},{S:"div",V:{style:"{{live_mode_style}}"},W:[{S:"div",b9:"Live Mode"},{S:"span",b9:"{{live_mode}}"}]},{S:"div",V:{style:"{{playback_categories_style}}"},W:[{S:"div",b9:"Playback Categories"},{S:"span",b9:"{{playback_categories}}"}]},{S:"div",V:{style:"{{fmt_debug_info_style}}"},W:[{S:"div",b9:"Format Debug Info"},{S:"span",b9:"{{fmt_debug_info}}"}]},{S:"div",W:[{S:"div",b9:"Mystery Text"},{S:"span",b9:"{{debug_info}}"}]},{S:"div",
V:{style:"{{extra_debug_info_style}}"},W:[{S:"div",b9:""},{S:"span",W:[{S:"span",b9:"{{extra_debug_info}}"}]}]},{S:"div",W:[{S:"div",b9:"Date"},{S:"span",b9:"{{date}}"}]},{S:"div",V:{style:"{{cotn_and_local_media_style}}"},W:[{S:"div",b9:"COTN / Local Media"},{S:"span",b9:"{{cotn_and_local_media}}"}]},{S:"div",V:{style:"{{release_style}}"},W:[{S:"div",b9:"Player Release"},{S:"span",b9:"{{release_name}}"}]}]}]});this.Lh=e;this.position=0;this.Z=!0;N?this.Y(this.hW("ytp-sfn-close"),"click",this.hide):
this.Y(this.element,"click",this.hide);e=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];N="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var y=e.map(function(w){return w/4});
this.D={};this.J=new J9(300,1,150,e,N);g.Q(this,this.J);this.updateValue("bandwidth_chart",this.J);this.K=new J9(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.Q(this,this.K);this.updateValue("live_latency_chart",this.K);this.N=new J9(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.Q(this,this.N);this.updateValue("buffer_health_chart",this.N);this.G=new J9(300,1,150,y,N);g.Q(this,this.G);this.updateValue("network_activity_chart",
this.G);this.delay=new g.e6(this.GZ,500,this);g.Q(this,this.delay);this.j=new g.e6(this.U,2E4,this);g.Q(this,this.j)};
yk_=function(e){jX.call(this,e);var N=this;LX(e,"getStatsForNerds",function(){return av5(N.api)});
a$(e,"showVideoInfo",function(){eZM(N,!0)});
a$(e,"hideVideoInfo",function(){eZM(N,!1)});
a$(e,"isVideoInfoVisible",function(){return NCM(N)})};
eZM=function(e,N){var y=NCM(e);e.J||(e.J=new CZ(e.api),g.Q(e,e.J),g.Pb(e.api,e.J.element,4));e.J.KX(N);var w=hu(e.api.jR());w&&w.loaded&&y!==N&&w.DH();N&&e.api.Fh("sfn",{},!0)};
NCM=function(e){var N;return!((N=e.J)==null||!N.Og)};
rH=function(){g.x.call(this);this.N=null;this.startTime=this.duration=0;this.delay=new g.a1(this.J,null,this);g.Q(this,this.delay)};
w6M=function(e,N){if(N.S==="path")return N.V.d;if(N.W)for(var y=0;y<N.W.length;y++){var w=N.W[y];if(w&&typeof w!=="string"&&(w=w6M(e,w)))return w}};
JkP=function(e,N,y){y=w6M(e,y);var w=N.getElementsByTagName("path")[0],E=w.getAttribute("d");if(w.getAttribute("id")){var A=CT();N=N.getElementsByTagName("use");for(var T=0;T<N.length;T++)N[T].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+A);w.setAttribute("id",A)}var p=EyJ(E),C=EyJ(y);Ak5(e,function(r){w.setAttribute("d",TC_(p,C,r))},200)};
Ak5=function(e,N,y){e.N=N;e.startTime=(0,g.iC)();e.duration=y;e.J()};
EyJ=function(e){var N=[];e=e.match(p65);for(var y=0;y<e.length;y++){var w=e[y]===" "?NaN:Number(e[y]);N.push(isNaN(w)?e[y]:w)}return N};
TC_=function(e,N,y){for(var w="",E=0;E<e.length;E++){var A=e[E];w=typeof A==="number"?w+(A+(N[E]-A)*y):w+A}return w};
$P=function(e){g.W.call(this,{S:"button",dP:["ytp-size-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}"},b9:"{{icon}}"});this.api=e;this.gN=null;this.transition=new rH;g.Q(this,this.transition);this.Y(e,"sizestylechange",this.GZ);this.Y(e,"fullscreentoggled",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);e.createClientVe(this.element,this,139116);this.GZ();this.listen("click",this.onClick);lh(e,this.element,
this)};
Con=function(e){jX.call(this,e);var N=this;this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"standardControlsInitialized",function(){N.button=new $P(e);g.Q(N,N.button);e.Bv(N.button,"RIGHT_CONTROLS_RIGHT")})};
YL0=function(e){jX.call(this,e);var N=this,y={};this.Z=(y.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},y.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(w){return rk0(N,w)},y.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(w){return rk0(N,w)},y);
this.j={};this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"videodatachange",function(w,E){if(w!=="dataupdated"||E.videoId!==N.videoId||!$5(N.timelyActions,$hH(E)))N.onVideoDataChange(E)});
this.events.Y(e,"presentingplayerstatechange",function(w){N.rz(w)});
this.events.Y(e,g.AA("timelyAction"),function(w){N.onCueRangeEnter(w.getId())});
this.events.Y(e,g.TW("timelyAction"),function(w){N.onCueRangeExit(w.getId())});
this.K=new g.W({S:"div",dP:["ytp-player-content","ytp-timely-actions-content"]});this.K.hide();LX(e,"insertTimelyActionUi",function(w){N.K.element.children.length>0&&g.N8(N.K.element);w.classList.add("ytp-timely-actions-overlay");N.K.element.appendChild(w)});
g.Q(this,this.K);g.Pb(this.api,this.K.element,4)};
Mzn=function(e){e.timelyActions&&(e.j=e.timelyActions.reduce(function(N,y){if(y.cueRangeId===void 0)return N;N[y.cueRangeId]=0;return N},{}))};
YP=function(e,N){if(e.timelyActions){e=g.c(e.timelyActions);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.cueRangeId===N)return y}};
lDE=function(e,N){if((e=YP(e,N))&&e.onCueRangeExit)return jP(e.onCueRangeExit)};
F25=function(e){if(e.J!==void 0){var N=(N=YP(e,e.J))&&N.onCueRangeEnter?jP(N.onCueRangeEnter):void 0;var y=YP(e,e.J);if(y&&y.additionalTrigger){var w=!1;for(var E=g.c(y.additionalTrigger),A=E.next();!A.done;A=E.next())A=A.value,A.type&&A.args&&e.Z[A.type]!==void 0&&(w=w||e.Z[A.type](A.args))}else w=!0;N&&w&&(e.api.Mg("innertubeCommand",N),e.setTimeout(y),e.j[e.J]!==void 0&&e.j[e.J]++)}};
rk0=function(e,N){return e.N===void 0?!1:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(N.seekLengthMilliseconds)===5E3?e.N===72:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(N.seekLengthMilliseconds)===1E4?e.N===74:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(N.seekLengthMilliseconds)===5E3?e.N===71:N.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(N.seekLengthMilliseconds)===1E4?e.N===73:!1};
$hH=function(e){if(e=e.getWatchNextResponse()){var N,y;e=(N=e.playerOverlays)==null?void 0:(y=N.playerOverlayRenderer)==null?void 0:y.timelyActionsOverlayViewModel;N=g.m(e,SL0);if(N!=null&&N.timelyActions)return N==null?void 0:N.timelyActions.map(function(w){return g.m(w,oyH)}).filter(function(w){return!!w})}};
bJ0=function(e){jX.call(this,e);var N=this;a$(this.api,"getPlaybackRate",function(){return N.api.getPlaybackRate()});
a$(this.api,"setPlaybackRate",function(y){typeof y==="number"&&N.api.setPlaybackRate(y)})};
hZ_=function(e){e=e.nC();if(!e)return!1;e=g.JE(e).exp||"";return e.includes("xpv")||e.includes("xpe")};
ck0=function(e){e=g.c(g.Ml(e,!0));for(var N=e.next();!N.done;N=e.next())if(hZ_(N.value))return!0;return!1};
kP_=function(e,N){e=g.c(g.Ml(e,!0));for(var y=e.next();!y.done;y=e.next())if(y=y.value,hZ_(y)){var w={potc:"1",pot:N};y.url&&(y.url=pp(y.url,w))}};
BC1=function(e){var N=new NR1,y={},w=(y["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",y);return new Bn(N,e,function(){return w})};
F_=function(e){jX.call(this,e);var N=this;this.useLivingRoomPoToken=!1;this.j=new g.lq;this.R9=null;this.G=!1;this.K=null;this.L=!1;var y=e.X().getWebPlayerContextConfig();this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"spsumpreject",function(w,E,A){N.L=E;w&&N.G&&!N.K&&(N.T("html5_generate_content_po_token")&&A?N.pJ(A):N.T("html5_generate_session_po_token")&&X65(N));N.K||N.api.Fh("stp",{s:+N.G,b:+N.L})});
this.events.Y(e,"poTokenVideoBindingChange",function(w){N.pJ(w)});
this.useLivingRoomPoToken=!(y==null||!y.useLivingRoomPoToken);e.addEventListener("csiinitialized",function(){N.R9=e.s4();var w=(N.T("html5_generate_session_po_token")||N.T("html5_generate_content_po_token"))&&!N.useLivingRoomPoToken;try{if(N.T("html5_use_shared_owl_instance"))PoH(N);else if(w){N.R9.oe("pot_isc");N.T("html5_new_wpo_client")||dh5(N);var E=g.Y2(N.api.X().experiments,"html5_webpo_kaios_defer_timeout_ms");E?(N.T("html5_new_wpo_client")&&(N.N=QX()),g.b4(function(){lJ(N)},E)):N.T("html5_webpo_idle_priority_job")?
(N.T("html5_new_wpo_client")&&(N.N=QX()),g.e1(g.yK(),function(){lJ(N)})):lJ(N)}}catch(A){A instanceof Error&&g.uA(A)}});
e.addEventListener("trackListLoaded",this.Qb.bind(this));e.lG(this)};
IDH=function(e){var N=ms(e.experiments,"html5_web_po_request_key");return N?N:g.I_(e)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
zZ0=function(e,N){var y=new O5(N);return Object.assign({},vy5(e,y),{Ss:function(){return y.Ss()},
dispose:function(){return void y.dispose()}})};
SB=function(e,N){if(e.T("html5_webpo_bge_ctmp")){var y,w={hwpo:!!e.J,hwpor:!((y=e.J)==null||!y.isReady())};e.api.Fh(N,w)}};
PoH=function(e){var N,y;g.f(function(w){if(w.J==1)return SB(e,"swpo_i"),e.N=QX(),o3(e),g.D(w,DS(),2);if(w.J!=3)return N=w.N,SB(e,"swpo_co"),g.D(w,spM(N),3);y=w.N;e.J=vy5(e,y);SB(e,"swpo_cc");e.J.ready().then(function(){e.j.resolve();SB(e,"swpo_re")});
g.b4(function(){lJ(e);SB(e,"swpo_si")},0);
g.hn(w)})};
dh5=function(e){var N=e.api.X(),y=IDH(N),w=BC1(y);N=new UJ({XB:y,Gq:w,onEvent:function(E){(E=iJP[E])&&e.R9.oe(E)},
onError:g.uA,Dv:F5n(N.experiments),TK:function(){return void e.api.Fh("itr",{})},
Nmh:N.experiments.gP("html5_web_po_disable_remote_logging")||DhE.includes(g.uB(N.qg)||"")});N.ready().then(function(){return void e.j.resolve()});
g.Q(e,N);e.J=N};
gy1=function(e){var N=e.api.X(),y=BC1(IDH(N)),w=y.BU.bind(y);y.BU=function(p){var C;return g.f(function(r){if(r.J==1)return g.D(r,w(p),2);C=r.N;e.api.Fh("itr",{});return r.return(C)})};
try{var E=new Xa({Gq:y,T3:{maxAttempts:5},EW:{disable:N.experiments.gP("html5_web_po_disable_remote_logging")||DhE.includes(g.uB(N.qg)||""),QV:F5n(N.experiments),Sg1:e.T("wpo_dis_lfdms")?0:1E3},x7h:g.uA});var A=zZ0(e,{f$:E,Gq:y,onError:g.uA});A.ready().then(function(){return void e.j.resolve()});
g.Q(e,E);g.Q(e,A);e.J=A}catch(p){g.uA(p);var T;(T=E)==null||T.dispose()}};
lJ=function(e){var N=e.api.X();e.R9.oe("pot_ist");e.J?e.J.start():e.T("html5_new_wpo_client")&&gy1(e);e.T("html5_bandaid_attach_content_po_token")||(e.T("html5_generate_session_po_token")&&(o3(e),X65(e)),N=g.Y2(N.experiments,"html5_session_po_token_interval_time_ms")||0,N>0&&(e.Z=g.hE(function(){o3(e)},N)),e.G=!0)};
o3=function(e){var N,y,w,E;g.f(function(A){if(!e.T("html5_generate_session_po_token")||e.useLivingRoomPoToken)return A.return();N=e.api.X();y=g.Lb("EOM_VISITOR_DATA")||g.Lb("VISITOR_DATA");w=N.il?N.datasyncId:y;E=ms(N.experiments,"html5_mock_content_binding_for_session_token")||N.livingRoomPoTokenId||w;N.NG=bJ(e,E);g.hn(A)})};
bJ=function(e,N){if(!e.J)return e.N?e.N(N):"";try{var y=e.J.isReady();e.R9.oe(y?"pot_cms":"pot_csms");var w="";w=e.T("html5_web_po_token_disable_caching")?e.J.Gr({qX:N}):e.J.Gr({qX:N,h1:{Lk:N,w9B:150,Xa:!0,W4:!0}});e.R9.oe(y?"pot_cmf":"pot_csmf");if(y){var E;(E=e.K)==null||E.resolve();e.K=null;if(e.L){e.L=!1;var A;(A=e.api.app.nh())==null||A.GR(!1)}}return w}catch(T){return g.uA(T),""}};
X65=function(e){e.J&&(e.K=new O3,e.J.ready().then(function(){e.R9.oe("pot_if");o3(e)}))};
vy5=function(e,N){e.T("html5_web_po_token_disable_caching")||N.Mh(150);var y=!1;N.L3().finally(function(){y=!0});
return{isReady:function(){return y},
Gr:function(w){return N.Gr({qX:w.qX,Ic:!0,Dw:!0,h1:w.h1?{Lk:w.h1.Lk,Xa:w.h1.Xa,W4:w.h1.W4}:void 0})},
ready:function(){return g.f(function(w){if(w.J==1)return g.c5(w,2),g.D(w,N.L3(),4);if(w.J!=2)return g.B5(w,0);g.XH(w);g.hn(w)})},
start:function(){}}};
VzF=function(e){jX.call(this,e);var N=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.fd(e);g.Q(this,this.events);this.events.Y(e,"heartbeatRequest",function(y){if(N.freePreviewUsageDetails.length||N.freePreviewWatchedDuration!==null)y.heartbeatRequestParams||(y.heartbeatRequestParams={}),y.heartbeatRequestParams.unpluggedParams||(y.heartbeatRequestParams.unpluggedParams={}),N.freePreviewUsageDetails.length>0?y.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
N.freePreviewUsageDetails:y.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+N.freePreviewWatchedDuration}});
LX(e,"setFreePreviewWatchedDuration",function(y){N.freePreviewWatchedDuration=y});
LX(e,"setFreePreviewUsageDetails",function(y){N.freePreviewUsageDetails=y})};
h9=function(e){g.x.call(this);this.features=[];var N=this.J,y=new FC(e),w=new nD(e),E=new ir(e),A=new F_(e);var T=g.Pa(e.X())?void 0:new Jz(e);var p=new zo(e),C=new yk_(e),r=new bJ0(e),Y=new l3(e);var M=g.Pa(e.X())?new VzF(e):void 0;var l=e.T("html5_enable_ssap")?new Lm5(e):void 0;var F=e.T("web_cinematic_watch_settings")&&(F=e.X().getWebPlayerContextConfig())!=null&&F.cinematicSettingsAvailable?new y9(e):void 0;var S=new Mw(e);var k=e.T("enable_courses_player_overlay_purchase")?new r$E(e):void 0;
var X=g.na(e.X())?new TQ5(e):void 0;var d=new p5(e);var v=e.X().j?new eBM(e):void 0;var V=g.hR(e.X())?new azP(e):void 0;var Z=e.T("web_player_move_autonav_toggle")&&e.X().YO?new WlM(e):void 0;var n=g.na(e.X())?new UJ3(e):void 0;var R=e.T("web_enable_speedmaster")&&g.na(e.X())?new wH(e):void 0;var O=e.X().ul?void 0:new Con(e);var E9=e.T("report_pml_debug_signal")?new Qcs(e):void 0;var Jn=new CJn(e),eM=new f$(e);var H=e.T("enable_web_player_player_in_bar_feature")&&g.ZY(e.X())?new hNM(e):void 0;var a=
navigator.mediaSession&&window.MediaMetadata&&e.X().DN?new IY(e):void 0;var h=e.T("html5_enable_drc")&&!e.X().Z?new Tc(e):void 0;var K=new m3(e);var aP=g.na(e.X())?new gPE(e):void 0;var XF=e.T("html5_enable_d6de4")?new DN(e):void 0;var Yw=g.na(e.X())&&e.T("web_sleep_timer")?new Ud(e):void 0;var v5=g.hR(e.X())?new y$0(e):void 0;var U9=new Od(e),yT=new w3(e),S0=new Go5(e);var P=e.T("enable_sabr_snackbar_message")?new WmF(e):void 0;var I=e.T("web_enable_timely_actions")?new YL0(e):void 0;N.call(this,
y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n,R,O,E9,Jn,eM,H,void 0,a,h,K,void 0,aP,XF,Yw,v5,void 0,U9,yT,S0,void 0,P,I,new Ei(e))};
co=function(){this.N=this.J=NaN};
fD9=function(e,N){this.ph=e;this.timerName="";this.K=!1;this.N=NaN;this.j=new co;this.J=N||null;this.K=!1};
tzM=function(e,N,y){var w=g.dw(N.Ot)&&!N.Ot.Z;if(N.Ot.yh&&(kj(N.Ot)||N.Ot.Rq==="shortspage"||Wg(N.Ot)||w)&&!e.K){e.K=!0;e.Z=N.clientPlaybackNonce;g.Lb("TIMING_ACTION")||Ua("TIMING_ACTION",e.ph.csiPageType);e.ph.csiServiceName&&Ua("CSI_SERVICE_NAME",e.ph.csiServiceName);if(e.J){w=e.J.s4();for(var E=g.c(Object.keys(w)),A=E.next();!A.done;A=E.next())A=A.value,jZ(A,w[A],e.timerName);w=g.NR(t7F)(e.J.OV);g.nV(w,e.timerName);w=e.J;w.N={};w.OV={}}g.nV({playerInfo:{visibilityState:g.NR(fxH)()},playerType:"LATENCY_PLAYER_HTML5"},
e.timerName);e.L!==N.clientPlaybackNonce||Number.isNaN(e.N)||(mo("_start",e.timerName)?y=g.NR(ty)("_start",e.timerName)+e.N:g.uA(new g.Gh("attempted to log gapless pbs before CSI timeline started",{cpn:N.clientPlaybackNonce})));y&&!mo("pbs",e.timerName)&&e.tick("pbs",y)}};
uhH=function(e,N,y,w,E,A,T){e=(e===y?"video":"ad")+"_to_"+(N===y?"video":"ad");if(e!=="video_to_ad"||A!=null&&A.qg){A=e==="ad_to_video"?A:w;y=A==null?void 0:A.Al;var p={};if(w==null?0:w.Z)p.cttAuthInfo={token:w.Z,videoId:w.videoId};E&&(p.startTime=E);QQ(e,p);var C,r,Y;w={targetVideoId:(C=w==null?void 0:w.videoId)!=null?C:"empty_video",targetCpn:N,adVideoId:(r=A==null?void 0:A.videoId)!=null?r:"empty_video",adClientPlaybackNonce:(Y=y==null?void 0:y.cpn)!=null?Y:A==null?void 0:A.clientPlaybackNonce};
y&&(w.adBreakType=y.adBreakType,w.adType=y.adType);g.nV(w,e);jZ("pbs",T!=null?T:(0,g.iC)(),e)}};
kP=function(e){KKM();H6M();e.timerName=""};
qL9=function(e){if(e.J){var N=e.J;N.N={};N.OV={}}e.K=!1;e.L=void 0;e.N=NaN};
ZJ3=function(e,N){g.pT.call(this);this.Ot=e;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.J=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.D={};this.N=0;if(e=N.session_data)this.sessionData=w2(e,"&");this.index=Math.max(0,Number(N.index)||0);this.loop=!!N.loop;this.startSeconds=Number(N.startSeconds)||0;this.title=N.playlist_title||"";this.description=N.playlist_description||"";this.author=
N.author||N.playlist_author||"";N.video_id&&(this.items[this.index]=N);if(e=N.api)typeof e==="string"&&e.length===16?N.list="PL"+e:N.playlist=e;if(e=N.list)switch(N.listType){case "user_uploads":this.listId=new YK("UU","PLAYER_"+e);break;default:var y=N.playlist_length;y&&(this.length=Number(y)||0);this.listId=g.MO(e);if(e=N.video)this.items=e.slice(0),this.loaded=!0}else if(N.playlist){e=N.playlist.toString().split(",");this.index>0&&(this.items=[]);e=g.c(e);for(y=e.next();!y.done;y=e.next())(y=
y.value)&&this.items.push({video_id:y});this.length=this.items.length;if(e=N.video)this.items=e.slice(0),this.loaded=!0}this.setShuffle(!!N.shuffle);if(e=N.suggestedQuality)this.quality=e;this.D=p3(N,"playlist_");this.K=(N=N.thumbnail_ids)?N.split(","):[]};
xhs=function(e){return!!(e.playlist||e.list||e.api)};
jmH=function(e){var N=e.index+1;return N>=e.length?0:N};
ny9=function(e){var N=e.index-1;return N<0?e.length-1:N};
g.Bo=function(e,N,y,w){N=N!==void 0?N:e.index;N=e.items&&N in e.items?e.items[e.order[N]]:null;var E=null;N&&(y&&(N.autoplay="1"),w&&(N.autonav="1"),E=new g.t3(e.Ot,N),g.Q(e,E),E.d2=!0,E.startSeconds=e.startSeconds||E.clipStart||0,e.listId&&(E.playlistId=e.listId.toString()));return E};
Qm5=function(e,N){e.index=g.Ja(N,0,e.length-1);e.startSeconds=0};
mh9=function(e,N){if(N.video&&N.video.length){e.title=N.title||"";e.description=N.description;e.views=N.views;e.likes=N.likes;e.dislikes=N.dislikes;e.author=N.author||"";var y=N.loop;y&&(e.loop=y);y=g.Bo(e);e.items=[];for(var w=g.c(N.video),E=w.next();!E.done;E=w.next())if(E=E.value)E.video_id=E.encrypted_id,e.items.push(E);e.length=e.items.length;(N=N.index)?e.index=N:e.findIndex(y);e.setShuffle(!1);e.loaded=!0;e.N++;e.J&&e.J()}};
W29=function(e,N){var y,w,E,A,T,p,C;return g.f(function(r){if(r.J==1){y=g.AC();var Y=e.X(),M={context:g.GC(e),playbackContext:{contentPlaybackContext:{ancestorOrigins:Y.ancestorOrigins}}},l=Y.getWebPlayerContextConfig();if(l==null?0:l.encryptedHostFlags)M.playbackContext.contentPlaybackContext.encryptedHostFlags=l.encryptedHostFlags;if(l==null?0:l.hideInfo)M.playerParams={showinfo:!1};Y=Y.embedConfig;l=N.docid||N.video_id||N.videoId||N.id;if(!l){l=N.raw_embedded_player_response;if(!l){var F=N.embedded_player_response;
F&&(l=JSON.parse(F))}if(l){var S,k,X,d,v,V;l=((V=g.m((S=l)==null?void 0:(k=S.embedPreview)==null?void 0:(X=k.thumbnailPreviewRenderer)==null?void 0:(d=X.playButton)==null?void 0:(v=d.buttonRenderer)==null?void 0:v.navigationEndpoint,g.m0))==null?void 0:V.videoId)||null}else l=null}S=(S=l)?S:void 0;k=e.playlistId?e.playlistId:N.list;X=N.listType;if(k){var Z;X==="user_uploads"?Z={username:k}:Z={playlistId:k};HJ5(Y,S,N,Z);M.playlistRequest=Z}else N.playlist?(Z={templistVideoIds:N.playlist.toString().split(",")},
HJ5(Y,S,N,Z),M.playlistRequest=Z):S&&(Z={videoId:S},Y&&(Z.serializedThirdPartyEmbedConfig=Y),M.singleVideoRequest=Z);w=M;E=g.eZ(K2M);g.c5(r,2);return g.D(r,g.Rg(y,w,E),4)}if(r.J!=2)return A=r.N,T=e.X(),N.raw_embedded_player_response=A,T.i9=$h(N,g.hR(T)),T.K=T.i9==="EMBEDDED_PLAYER_MODE_PFL",A&&(p=A,p.trackingParams&&h$(p.trackingParams)),r.return(new g.t3(T,N));C=g.XH(r);C instanceof Error||(C=Error("b259802748"));g.t0(C);return r.return(e)})};
HJ5=function(e,N,y,w){y.index&&(w.playlistIndex=String(Number(y.index)+1));w.videoId=N?N:"";e&&(w.serializedThirdPartyEmbedConfig=e)};
g.Po=function(e,N){X_.get(e);X_.set(e,N)};
g.dH=function(e){g.pT.call(this);this.loaded=!1;this.player=e};
OJJ=function(){this.N=[];this.J=[]};
g.Ml=function(e,N){return N?e.J.concat(e.N):e.J};
g.I3=function(e,N){switch(N.kind){case "asr":RZH(N,e.N);break;default:RZH(N,e.J)}};
RZH=function(e,N){g.Ok(N,function(y){return e.Bw(y)})||N.push(e)};
g.vo=function(e){g.x.call(this);this.Lh=e;this.N=new OJJ;this.j=null;this.L=[];this.U=[]};
g.zf=function(e,N,y){g.vo.call(this,e);this.videoData=N;this.audioTrack=y;this.J=null;this.K=!1;this.L=N.wE;this.U=N.jE;this.K=g.vF(N)};
g.iJ=function(e,N){return Ug(e.info)?N?e.info.itag===N:!0:!1};
g.GP5=function(e,N){if(e.J!=null&&g.Pa(N.X())&&!e.J.isManifestless&&e.J.J.rawcc!=null)return!0;if(!e.Cx())return!1;N=!!e.J&&e.J.isManifestless&&Object.values(e.J.J).some(function(y){return g.iJ(y,"386")});
e=!!e.J&&!e.J.isManifestless&&g.d$F(e.J);return N||e};
g.Dv=function(e,N,y,w,E,A){g.vo.call(this,e);this.videoId=y;this.Cn=E;this.eventId=A;this.Z={};this.J=null;e=w||g.JE(N).hl||"";e=e.split("_").join("-");this.K=pp(N,{hl:e})};
Uh0=function(e,N){this.N=e;this.J=N;this.onFailure=void 0};
L25=function(e,N){return{Yw:e.Yw&&N.Yw,uB:e.uB&&N.uB,sync:e.sync&&N.sync,streaming:e.streaming&&N.streaming}};
Vm=function(e,N){var y=smE,w=this;this.path=e;this.K=N;this.j=y;this.capabilities={Yw:!!this.K,uB:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.L=new Uh0([{name:"compileStreaming",condition:function(E){return!!w.N&&E.streaming},
gE:gH.tU("wmcx",function(){return WebAssembly.compileStreaming(fetch(w.path))}),
onFailure:function(){return w.capabilities.streaming=!1}},
{name:"sync",condition:function(E){return E.sync},
gE:function(){return A$(aDM(w),gH.tU("wmcs",function(E){return new WebAssembly.Module(E)}))},
onFailure:function(){return w.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
gE:function(){return A$(aDM(w),gH.tU("wmca",function(E){return WebAssembly.compile(E)}))},
onFailure:function(){return w.capabilities.uB=!1}}]);
this.Z=new Uh0([{name:"instantiateStreaming",condition:function(E){return E.uB&&E.streaming&&!w.N&&!w.J},
gE:function(E,A){return gH.le("wmix",function(){return WebAssembly.instantiateStreaming(fetch(w.path),A)}).then(function(T){w.J=Nc(T.module);
return{instance:T.instance,Um:!1}})},
onFailure:function(){return w.capabilities.streaming=!1}},
{name:"sync",condition:function(E){return E.uB&&E.sync},
gE:function(E,A){return A$(eVM(w,E),gH.tU("wmis",function(T){return{instance:new WebAssembly.Instance(T,A),Um:!1}}))},
onFailure:function(){return w.capabilities.sync=!1}},
{name:"async",condition:function(E){return E.uB},
gE:function(E,A){return A$(A$(eVM(w,E),gH.tU("wmia",function(T){return WebAssembly.instantiate(T,A)})),function(T){return{instance:T,
Um:!1}})},
onFailure:function(){return w.capabilities.uB=!1}},
{name:"asmjs",condition:function(E){return E.Yw},
gE:function(E,A){return Nc(gH.le("wmij",function(){return w.K(A)}).then(function(T){return{instance:{exports:T},
Um:!0}}))},
onFailure:function(){return w.capabilities.Yw=!1}}],function(E,A,T){return w.j(T,E.instance.exports)})};
wK0=function(e){var N=NTM;return N.instantiate(e?L25(N.capabilities,e):N.capabilities,new yUs)};
aDM=function(e){if(e.N)return e.N;var N=fetch(e.path).then(function(y){return y.arrayBuffer()}).then(function(y){e.N=Nc(y);
return y}).then(void 0,function(y){g.uA(Error("wasm module fetch failure: "+y.message,{cause:y}));
e.N=void 0;throw y;});
e.N=Nc(N);return e.N};
eVM=function(e,N){if(!N.uB)return yA(Error("wasm unavailable"));if(e.J)return e.J;e.J=Tm(A$(e.compile(N),function(y){e.J=Nc(y);return y}),function(y){g.uA(Error("wasm module compile failure: "+y.message,{cause:y}));
e.J=void 0;throw y;});
return e.J};
EM5=function(){};
AUJ=function(){var e=this;this.proc_exit=function(){};
this.fd_write=function(N,y,w){if(!e.exports)return 1;N=new Uint32Array(e.exports.memory.buffer,y,w*2);y=[];for(var E=0;E<w;++E){var A=new Uint8Array(e.exports.memory.buffer,N[E*2],N[E*2+1]);A=g.IR(A);y.push(A)}return y.reduce(function(T,p){return T+p.length},0)}};
yUs=function(){this.env=new EM5;this.wasi_snapshot_preview1=new AUJ};
smE=function(e,N){e.wasi_snapshot_preview1.exports=N;e=Math.floor(Math.random()*256);var y=Math.floor(Math.random()*256),w=0;try{w=N.malloc(16);(new Uint8Array(N.memory.buffer,w,16)).fill(e);if(N.sentinel(w,16,y)!==y*16%256)return!1;for(var E=new Uint8Array(N.memory.buffer,w,16),A=0;A<16;A++)if(E[A]!==(e+y)%256)return!1;return!0}finally{w!==0&&N.free(w)}};
TT_=function(e,N){this.instance=e;this.Um=N;this.exports=this.J=this.instance.exports};
pK_=function(e,N,y){y=y===void 0?!1:y;var w=w===void 0?!0:w;var E=gH.X0();return A$(JU5(e,N,{Yw:y,uB:!0,sync:!0,streaming:!0},w),function(A){gH.x$(A.Um?"winitjs":"winit",E);return A})};
JU5=function(e,N,y,w){w=w===void 0?!0:w;NTM||(NTM=new Vm(e,N));return A$(wK0(y),function(E){return new TT_(E.instance,E.Um,w)})};
CbM=function(e,N){g.x.call(this);var y=this;this.C=e;this.J=N;this.OV={};this.N={};this.K=null;this.j=new Set;this.L=new g.fd(this);this.lk={VIB:function(){return y.J},
RZ:function(){return y.RZ()}};
this.Z=this.C.T("web_player_defer_modules");this.x9=new Map;g.Q(this,this.L);this.L.Y(e,"videodatachange",this.onVideoDataChange)};
g.fZ=function(e){return e.x9.get("captions")};
FYP=function(e,N){switch(N){case "ad":return rUE(e);case "annotations_module":return e.C.isEmbedsShortsMode()?e=!1:(N=e.C,e=N.X(),N=N.getVideoData(),e=e.K||N.jj||e.controlsType==="3"?!1:e.aq.isEmpty()&&e.playerStyle!=="annotation-editor"&&e.playerStyle!=="live-dashboard"?!!N.Wk||!!g.PF(N)||!!g.dd(N):!0),e;case "asmjs":return e.C.X().T("html5_allow_asmjs");case "creatorendscreen":return $V5(e);case "embed":return g.hR(e.C.X());case "endscreen":return g.YD5(e);case "heartbeat":return e.du();case "kids":return Vy(e.C.X());
case "remote":return e.C.X().bb;case "miniplayer":return e.C.X().showMiniplayerUiWhenMinimized;case "offline":return e.C.X().vp;case "captions":return M89(e);case "unplugged":return g.IK(e.C.X());case "ux":return e.C.X().Dl;case "webgl":return lts(e);case "ypc":return e.qC();case "ypc_clickwrap":return e=e.C.getVideoData(),e.Pf&&!e.I4;case "yto":return!!e.C.getVideoData().l9.includes("yto");default:return g.t0(Error("Module descriptor "+N+" does not match")),!1}};
t9=function(e,N,y,w,E){var A;y=y===void 0?!1:y;w=w===void 0?!1:w;var T=e.x9.get(N);if(!T||w)if(E||(E=function(){t9(e,N,y,w)}),A||(A=function(){e.C.Go(N)}),T=T||SDF(e,N,FYP(e,N),E,A))e.x9.set(N,T),T.create(),e.C.publish("modulecreated",N),y&&e.C.Y9("onApiChange")};
bUM=function(e){var N=N===void 0?!1:N;var y,w,E,A,T;return g.f(function(p){if(p.J==1)return(y=e.x9.get("asmjs"))&&!N?p.return(y):(w=X_.get("asmjs"))!=null?(E=w,p.u9(2)):g.D(p,new Promise(function(C,r){oMH(e,"asmjs",function(){var Y=X_.get("asmjs");Y?C(Y):r("cannot load module asmjs")},r)}),3);
p.J!=2&&(E=p.N);A=E;if(!A)return p.return(Promise.reject("cannot load module asmjs"));T=new A(e.C);e.x9.set("asmjs",T);T.create();return p.return(T)})};
kTs=function(e){hVP(e)&&e.Vc();cUs(e)&&(t9(e,"captions",!0),t9(e,"endscreen"),e.w0(),t9(e,"creatorendscreen",!0))};
cUs=function(e){var N=e.C.getVideoData(),y=e.Z&&!N.isInlinePlaybackNoAd;e.C.T("html5_defer_modules_on_ads_only")&&!N.isAd()&&(y=!1);return y};
hVP=function(e){e=e.C.getVideoData();var N;if(N=e.T("web_player_defer_ad")){if(g.Gw(e.l9,"ad")||ntJ(e)||e.enableServerStitchedDai)e=!1;else{N=e.playerResponse;e=e.startSeconds;var y=N==null?void 0:N.adPlacements;if(N=y){N=Number.MAX_VALUE;y=g.c(y);for(var w=y.next();!w.done;w=y.next())if(w=w.value.adPlacementRenderer){var E=void 0,A=(E=w.config)==null?void 0:E.adPlacementConfig;E=void 0;if(((E=A)==null?void 0:E.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var T=E=void 0;A=Number((E=A)==null?void 0:(T=
E.adTimeOffset)==null?void 0:T.offsetStartMilliseconds)||0;T=E=void 0;w=Number(((E=w.renderer)==null?void 0:(T=E.adBreakServiceRenderer)==null?void 0:T.prefetchMilliseconds)||0);w=A-w;w<N&&(N=w)}}N=N-5E3<=e*1E3}e=N?!1:!0}N=e}return N};
M89=function(e){var N=e.C.getVideoData();return!!N.WE||!!N.captionTracks.length||g.GP5(N,e.C)};
g.YD5=function(e){var N=e.C.X();if(N.K||Wg(N)||N.Z||!N.NK&&!N.Rx)return!1;var y=e.C.getPresentingPlayerType();if(y===2)return!1;if(y===3)return N.T("desktop_enable_autoplay");e=e.C.getVideoData();if(!e)return!1;y=!e.isLiveDefaultBroadcast||N.T("allow_poltergust_autoplay");y=e.isLivePlayback&&(!N.T("allow_live_autoplay")||!y);N=e.isLivePlayback&&N.T("allow_live_autoplay_on_mweb");return!y||N};
g.Bb=function(e){return e.x9.get("webgl")};
lts=function(e){var N=e.C.getVideoData();e=e.C.X();var y=g.bkn(),w=e.T("enable_spherical_kabuki"),E;if(((E=e.getWebPlayerContextConfig())==null?0:E.embedsEnableEmc3ds)&&!e.T("embeds_enable_emc3ds_webgl"))return!1;E=g.Ka(e);if(g.BF(N))return y||w||E;if(g.cF(N))return E||y||w;if(g.kI(N))return E||y||!1;if(g.JY(N))return E||!1;y=N.N&&N.N.video&&N.N.video.isHdr();return E&&!g.$I(N)&&!y&&e.T("enable_webgl_noop")};
rUE=function(e){if(e.C.X().K)return!1;e=e.C.getVideoData(1);var N=e.getPlayerResponse();if(N){var y=N.adPlacements;if(y)for(var w=0;w<y.length;w++)if(y[w].adPlacementRenderer)return!0;if(N.adSlots)return!0}return g.xK(e)?!0:!1};
$V5=function(e){if(e.C.isEmbedsShortsMode())return!1;e=e.C;var N=e.X();if(N.K)return!1;var y;if(((y=N.getWebPlayerContextConfig())==null?0:y.embedsEnableEmc3ds)||N.controlsType==="3")return!1;if(N.playerStyle==="creator-endscreen-editor")return!0;y=e.getVideoData();return!!y&&(!!g.L9E(y)||!!g.sQ5(y))};
SDF=function(e,N,y,w,E){try{if(y){var A=X_.get(N);if(A)return new A(e.C);oMH(e,N,w,E)}else e.C.Go(N)}catch(T){e.C.Go(N),g.t0(T)}return null};
uJ=function(e,N,y){if(e.C.X().T("html5_dispose_modules_in_order"))for(var w=g.c(BTM),E=w.next();!E.done;E=w.next()){E=E.value;var A=e.x9.get(E);A&&(y||A.uZ(N))&&(g.JV(A),e.x9.delete(E))}else for(w=g.c(e.x9),E=w.next();!E.done;E=w.next())A=g.c(E.value),E=A.next().value,(A=A.next().value)&&(y||A.uZ(N))&&(g.JV(A),e.x9.delete(E))};
ql=function(e){return e.x9.get("ad")};
XKJ=function(e){if(Vy(e.C.X()))return e.x9.get("kids")};
hu=function(e){if(e.C.X().bb)return e.x9.get("remote")};
g.Zv=function(e){if(g.IK(e.C.X()))return e.x9.get("unplugged")};
Xu0=function(e){if(e.C.X().Dl)return e.x9.get("ux")};
PbM=function(e){if(e.C.X().showMiniplayerUiWhenMinimized)return e.x9.get("miniplayer")};
xP=function(e){if(e.C.X().vp)return e.x9.get("offline")};
g.jB=function(e){return e.x9.get("annotations_module")};
nZ=function(e){return e.x9.get("creatorendscreen")};
It3=function(e,N){var y=e.J.startsWith("https://")?e.J+"lib.wasm":e.J.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return pK_(y,function(w){var E=e.x9.get("asmjs");return E?Promise.resolve(E.Ye(w)):dVF(e).then(function(A){return A.Ye(w)})},N)};
dVF=function(e){var N,y;return g.f(function(w){if(w.J==1)return g.D(w,bUM(e),2);y=N=w.N;return w.return(y)})};
oMH=function(e,N,y,w){if(e.J){var E=vMF[N];zV3(e,e.J+E,function(){e.j.add(E);y.call(e)},w)}};
zV3=function(e,N,y,w){function E(){e.Ss()||w.call(e)}
function A(){e.Ss()||y.call(e)}
for(var T=g.n9("SCRIPT"),p=!1,C,r=0;r<T.length;r++){var Y=T[r];if(Y.src===N||Y.getAttribute("data-original-src")===N)C=Y}C||(C=g.sA("SCRIPT"),C.setAttribute("data-original-src",N),p=!0);var M=C.onload;C.onload=function(k){yb(A);M&&M.apply(window,[k])};
var l=C.onerror;C.onerror=function(k){if(Math.random()<.01){var X=new g.Gh("Unable to load player module",N,document.location&&document.location.origin);g.t0(X)}yb(E);l&&l(k)};
var F=C,S=F.onreadystatechange;F.onreadystatechange=function(k){switch(F.readyState){case "loaded":case "complete":yb(A)}S&&S(k)};
p&&((T=e.C.X().cspNonce)&&C.setAttribute("nonce",T),g.QZ(C,g.vz(N)),T=g.n9("HEAD")[0]||document.body,T.insertBefore(C,T.firstChild),e.addOnDisposeCallback(function(){C.parentNode&&C.parentNode.removeChild(C)}))};
iUM=function(e,N,y,w,E){g.pT.call(this);var A=this;this.target=e;this.Jl=N;this.N=0;this.Z=!1;this.j=new g.ri(NaN,NaN);this.J=new g.fd(this);this.qg=this.K=this.G=null;g.Q(this,this.J);N=w||E?4E3:3E3;this.D=new g.e6(function(){Qm(A,1,!1)},N,this);
g.Q(this,this.D);this.Ng=new g.e6(function(){Qm(A,2,!1)},N,this);
g.Q(this,this.Ng);this.Kh=new g.e6(function(){Qm(A,512,!1)},N,this);
g.Q(this,this.Kh);this.l9=3E3;w||(this.K=this.J.Y(e,"mouseover",this.IL),this.J.Y(e,"mousemove",this.VZ),this.J.Y(e,"mouseleave",this.PtP));Y0?this.J.Y(e,"keypress",this.v1P):this.J.Y(e,"focusin",this.kQ);this.L=this.J.Y(e,"mousedown",this.YR);this.U=this.J.Y(e,"touchstart",this.X3,void 0,!0);Qm(this,640,!0)};
DV3=function(e){Qm(e,4,!1);e.G&&(e.J.CX(e.G),e.G=null,e.K=e.J.Y(e.target,"mouseover",e.IL));e.K&&(e.J.CX(e.K),e.K=e.J.Y(e.target,"mouseover",e.IL))};
Qm=function(e,N,y){e.Ss();var w=!e.N;y?(e.N|=N,N&1&&e.D.start(),N&2&&e.Ng.start()):(e.N&=~N,N&1&&e.D.stop(),N&2&&e.Ng.stop(),N&512&&e.Kh.stop());e.N&512&&!(e.N&128)&&g.NA(e.Kh,e.l9);N=!e.N;w!==N&&e.publish("autohideupdate",N)};
g.Ho=function(e){g.W.call(this,{S:"button",dP:["ytp-large-play-button","ytp-button"],V:{"aria-label":"Play",title:"Play"},W:["{{largePlayButtonChildren}}"]});this.api=e;this.Y(e,"videodatachange",this.GZ);this.Y(e,"basechromeinitialized",this.USh);e=this.api.X();e.U&&mm&&(this.listen("click",this.Qf,this),this.listen("touchstart",this.XEZ,this));g.dw(e)&&g.pi(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.GZ()};
g.KZ=function(e){var N=e.X(),y=["ytp-cued-thumbnail-overlay"];N.Z&&y.push("ytp-exp-contain-thumbnail");N.T("web_player_show_frame_zero_when_cued")&&y.push("ytp-exp-frame0");g.W.call(this,{S:"div",dP:y,W:[{S:"div",B:"ytp-cued-thumbnail-overlay-image"}]});N=this.hW("ytp-cued-thumbnail-overlay");y=new g.Ho(e);g.Q(this,y);y.yB(N);this.j=new g.fd(this);g.Q(this,this.j);this.api=e;this.Z=this.hW("ytp-cued-thumbnail-overlay-image");this.K=y;this.N=new g.NE(this,250);g.Q(this,this.N);this.J=new g.e6(this.GZ,
0,this);g.Q(this,this.J);this.GZ();this.Y(e,"appresize",this.I9);this.Y(e,"presentingplayerstatechange",this.onStateChange);this.Y(e,"ypcStateChanged",this.uTW);kj(e.X())&&this.Y(e,"videoplayerreset",this.onReset)};
gME=function(e){if(!e.api.T("web_player_show_frame_zero_when_cued"))return!1;var N=e.api.getCurrentTime();e=e.api.getPlayerStateObject();e=g.G(e,64)&&g.G(e,1);return N===0&&e};
g.Wo=function(e){g.W.call(this,{S:"div",dP:["ytp-error"],V:{role:"alert"},W:[{S:"div",B:"ytp-error-content",W:[{S:"div",B:"ytp-error-icon-container",W:[{S:"svg",V:{fill:"#fff",viewBox:"0 0 48 48"},W:[{S:"path",V:{d:"M0 0h48v48H0V0z",fill:"none"}},{S:"path",V:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{S:"div",B:"ytp-error-content-wrap",
W:[{S:"div",B:"ytp-error-content-wrap-reason",b9:"{{content}}"},{S:"div",B:"ytp-error-content-wrap-subreason",b9:"{{subreason}}"}]}]}]});this.api=e;this.keys=[];this.K=!1;e.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Og)};
g.ON=function(e){e=e.split(V8F);for(var N=[],y=0;y<e.length;y+=3){var w=e[y++].split("\n");N.push(w[0]);for(var E=1;E<w.length;E++)N.push({S:"br"}),N.push(w[E]);y<e.length&&N.push({S:"a",V:{href:e[y],target:e[y+1]},b9:e[y+2]})}return{S:"span",W:N}};
Gf=function(e,N,y,w,E,A,T){w=w===void 0?!1:w;E=E===void 0?!1:E;T=T===void 0?!0:T;E||(E=e.api.X().j);var p=e.api.getVideoData();N=g.SO(g.R3[N]||"",w?{CPN:p.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);w=[];A&&w.push({S:"h2",b9:A});w.push(N[0]);T&&w.push({S:"br"});w.push({S:"a",V:{href:y,target:E?"_blank":null},B:"ytp-error-link",b9:N[2]});e.K=!0;w.push(N[4]);return{S:"span",W:w}};
ft5=function(e,N){for(var y=e.element.getElementsByTagName("a"),w=0;w<y.length;w++){var E=e.Y(y[w],"click",N);e.keys.push(E)}};
t8H=function(e){for(var N=0;N<e.keys.length;N++)e.CX(e.keys[N]);e.keys=[]};
uqM=function(e){g.W.call(this,{S:"div",B:"ytp-paid-content-overlay",V:{"aria-live":"assertive","aria-atomic":"true"}});this.C=e;this.videoId=null;this.K=!1;this.innertubeCommand=this.k9=this.J=null;var N=e.X();e.T("enable_new_paid_product_placement")&&!g.mT(N)?(this.N=new g.W({S:"a",B:"ytp-paid-content-overlay-link",V:{href:"{{href}}",target:"_blank"},W:[{S:"div",B:"ytp-paid-content-overlay-icon",b9:"{{icon}}"},{S:"div",B:"ytp-paid-content-overlay-text",b9:"{{text}}"},{S:"div",B:"ytp-paid-content-overlay-chevron",
b9:"{{chevron}}"}]}),this.Y(this.N.element,"click",this.onClick)):this.N=new g.W({S:"div",dP:["ytp-button","ytp-paid-content-overlay-text"],b9:"{{text}}"});this.j=new g.NE(this.N,250,!1,100);g.Q(this,this.N);this.N.yB(this.element);g.Q(this,this.j);this.C.createServerVe(this.element,this);this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"presentingplayerstatechange",this.Ik)};
ZU_=function(e,N){var y=ZNM(N),w=x29(N);if(!N.Pf||!e.C.V_())if(e.J||e.C.T("enable_paid_content_overlay_bugfix")){if(N.videoId&&N.videoId!==e.videoId){var E;(E=e.J)==null||g.we(E);!e.C.T("enable_paid_content_overlay_bugfix")||y&&w?(e.videoId=N.videoId,e.K=!!w,e.K&&y&&qDF(e,w,y,N)):e.K=!1}}else y&&w&&!e.C.T("enable_paid_content_overlay_bugfix")&&qDF(e,w,y,N)};
qDF=function(e,N,y,w){e.J&&e.J.dispose();e.J=new g.e6(e.rT,N,e);g.Q(e,e.J);w=YI(w);N=w==null?void 0:w.navigationEndpoint;var E;w=w==null?void 0:(E=w.icon)==null?void 0:E.iconType;var A;E=(A=g.m(N,g.qu))==null?void 0:A.url;e.C.setTrackingParams(e.element,(N==null?void 0:N.clickTrackingParams)||null);N&&!E?(e.innertubeCommand=N,E="#!"):e.innertubeCommand=null;var T;e.N.update({href:(T=E)!=null?T:"#",text:y,icon:w==="MONEY_HAND"?{S:"svg",V:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
W:[{S:"path",V:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:E||e.innertubeCommand?g.cq():null})};
xVn=function(e,N){e.J&&(g.G(N,8)&&e.K?(e.K=!1,e.WY(),e.J.start()):(g.G(N,2)||g.G(N,64))&&e.videoId&&(e.videoId=null))};
UN=function(e){g.W.call(this,{S:"div",B:"ytp-spinner",W:[LD(),{S:"div",B:"ytp-spinner-message",b9:"If playback doesn't begin shortly, try restarting your device."}]});this.api=e;this.message=this.hW("ytp-spinner-message");this.J=new g.e6(this.show,500,this);g.Q(this,this.J);this.Y(e,"presentingplayerstatechange",this.onStateChange);this.Y(e,"playbackstalledatstart",this.N);this.IJ(e.getPlayerStateObject())};
LZ=function(e){var N=[{S:"div",dP:["ytp-unmute-icon"],W:[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{S:"div",dP:["ytp-unmute-text"],b9:"Tap to unmute"}];N.push({S:"div",dP:["ytp-unmute-box"],W:[]});g.Dq.call(this,e,{S:"button",dP:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],W:[{S:"div",B:"ytp-unmute-inner",W:N}]},100);this.J=this.clicked=!1;this.api=e;this.api.createClientVe(this.element,this,51663);this.Y(e,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.Y(e,"presentingplayerstatechange",this.rz);this.listen("click",this.onClick,this);e=e.isMutedByMutedAutoplay()&&
!g.hR(this.api.X());this.KX(e);e&&j53(this);this.K=e};
j53=function(e){e.J||(e.J=!0,e.api.logVisibility(e.element,!0))};
g.sN=function(e){g.fd.call(this);var N=this;this.api=e;this.We=!1;this.bL=null;this.vX=!1;this.MG=null;this.gU=this.Hl=!1;this.K7=this.tY=null;this.NV=NaN;this.kt=this.tV=!1;this.v3=0;this.Mw=[];this.qy=!1;this.r8={height:0,width:0};this.i7=480;this.jVl=["ytp-player-content","html5-endscreen","ytp-overlay"];this.dF={QG:!1};var y=e.X(),w=e.Fz();this.r8=e.getPlayerSize();this.pD=new g.e6(this.OG,0,this);g.Q(this,this.pD);y.disableOrganicUi||(this.ez=new g.KZ(e),g.Q(this,this.ez),g.Pb(e,this.ez.element,
4));if(nM9(this)){var E=new UN(e);g.Q(this,E);E=E.element;g.Pb(e,E,4)}var A=e.getVideoData();this.tT=new iUM(w,function(p){return N.Jl(p)},A,y.zx,!1);
g.Q(this,this.tT);this.tT.subscribe("autohideupdate",this.vg,this);if(!y.disablePaidContentOverlay){var T=new uqM(e);g.Q(this,T);g.Pb(e,T.element,4)}this.w9=new LZ(e);g.Q(this,this.w9);g.Pb(this.api,this.w9.element,2);this.vM=this.api.isMutedByMutedAutoplay();this.Y(e,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.ZV=new g.e6(this.uX,200,this);g.Q(this,this.ZV);this.Cf=A.videoId;this.BD=new g.e6(function(){N.v3=0},350);
g.Q(this,this.BD);this.S8=new g.e6(function(){N.kt||Q5_(N)},350,this);
g.Q(this,this.S8);A=e.getRootNode();A.setAttribute("aria-label","YouTube Video Player");switch(y.color){case "white":g.pi(A,"ytp-color-white")}this.Y(e,"appresize",this.I9);this.Y(e,"presentingplayerstatechange",this.rz);this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"videoplayerreset",this.D7g);this.Y(e,"autonavvisibility",function(){N.GV()});
this.Y(e,"sizestylechange",function(){N.GV()});
this.Y(w,"click",this.SQG,this);this.Y(w,"dblclick",this.dKZ,this);this.Y(w,"mousedown",this.PBP,this);y.Y_&&(this.Y(w,"gesturechange",this.Rvk,this),this.Y(w,"gestureend",this.CBP,this));this.W3=[w.k$];this.ez&&this.W3.push(this.ez.element);E&&this.W3.push(E);this.api.T("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(w.element,this,247482),this.api.logVisibility(w.element,!0))};
mVF=function(e,N){if(!N)return!1;var y=e.api.LC();if(y.pk()&&(y=y.ut())&&g.Ex(y,N))return y.controls;for(y=0;y<e.W3.length;y++)if(g.Ex(e.W3[y],N))return!1;y=g.c(e.jVl);for(var w=y.next();!w.done;w=y.next())if(g.J4(N,w.value))return!1;return N===e.api.getRootNode()?!1:!0};
HUn=function(e){var N=e.api.getPresentingPlayerType()===2&&(e.api.Fz().d8||e.api.X().disableOrganicUi||!1)&&e.api.X().N&&mm&&a3>=11;e=e.api.X().U&&mm;return!(!N&&!e)};
ez=function(e,N){return!e.api.isInline()&&!mVF(e,vE(N))&&g.dh(N)};
Q5_=function(e){e.tT.Cd();if(e.Hl&&e.gU)e.gU=!1;else if(!e.api.X().Zl&&!e.Jm()){var N=e.api.getPlayerStateObject();g.G(N,2)&&g.oq(e.api)||e.O6(N);!e.api.X().Y_||N.isCued()||g.G(N,1024)?e.uX():e.ZV.isActive()?(e.VU(),e.ZV.stop()):e.ZV.start()}};
KYE=function(e,N){var y;if((y=e.api.getVideoData())==null?0:y.mutedAutoplay){var w,E;if((w=N.target)==null?0:(E=w.className)==null?0:E.includes("ytp-info-panel"))return!1}return g.dh(N)&&e.api.isMutedByMutedAutoplay()?(e.api.unMute(),e.api.getPresentingPlayerType()===2&&e.api.playVideo(),N=e.api.getPlayerStateObject(),!g.G(N,4)||g.G(N,8)||g.G(N,2)||e.uX(),!0):!1};
WYH=function(e,N,y){e.api.isFullscreen()?y<1-N&&e.api.toggleFullscreen():y>1+N&&e.api.toggleFullscreen()};
nM9=function(e){var N=WL()&&HL()>=67&&!e.api.X().U;e=e.api.X().disableOrganicUi;return!g.Kp("tizen")&&!KC&&!N&&!e};
Nh=function(e,N){N=N===void 0?2:N;g.pT.call(this);this.api=e;this.J=null;this.bB=new iY(this);g.Q(this,this.bB);this.N=NoP;this.bB.Y(this.api,"presentingplayerstatechange",this.Di);this.J=this.bB.Y(this.api,"progresssync",this.HY);this.UR=N;this.UR===1&&this.HY()};
g.ys=function(e){g.W.call(this,{S:"div",W:[{S:"div",B:"ytp-bezel-text-wrapper",W:[{S:"div",B:"ytp-bezel-text",b9:"{{title}}"}]},{S:"div",B:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},W:[{S:"div",B:"ytp-bezel-icon",b9:"{{icon}}"}]}]});this.C=e;this.N=new g.e6(this.show,10,this);this.J=new g.e6(this.hide,500,this);g.Q(this,this.N);g.Q(this,this.J);this.hide()};
EL=function(e,N,y){if(N<=0){y=Dh();N="muted";var w=0}else y=y?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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"}}]},w=Math.floor(N),N=w+"volume";wC(e,y,N,w+"%")};
OUH=function(e,N){N=N?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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"}}]}:o$M();var y=e.C.getPlaybackRate(),w=g.SO("Speed is $RATE",{RATE:String(y)});wC(e,N,w,y+"x")};
RVF=function(e,N){N=N?"Subtitles/closed captions on":"Subtitles/closed captions off";wC(e,GBs(),N)};
wC=function(e,N,y,w){w=w===void 0?"":w;e.updateValue("label",y===void 0?"":y);e.updateValue("icon",N);g.we(e.J);e.N.start();e.updateValue("title",w);g.Y1(e.element,"ytp-bezel-text-hide",!w)};
GTF=function(e,N){g.W.call(this,{S:"button",dP:["ytp-button","ytp-cards-button"],V:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"span",B:"ytp-cards-button-icon-default",W:[{S:"div",B:"ytp-cards-button-icon",W:[e.X().T("player_new_info_card_format")?cgH():{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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",B:"ytp-cards-button-title",b9:"Info"}]},{S:"span",B:"ytp-cards-button-icon-shopping",W:[{S:"div",B:"ytp-cards-button-icon",W:[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",B:"ytp-svg-shadow",V:{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",B:"ytp-svg-fill",V:{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",B:"ytp-svg-shadow-fill",V:{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",
B:"ytp-cards-button-title",b9:"Shopping"}]}]});this.C=e;this.K=N;this.J=null;this.N=new g.NE(this,250,!0,100);g.Q(this,this.N);g.Y1(this.K,"ytp-show-cards-title",g.hR(e.X()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.d79);this.jt(!0)};
UVP=function(e,N){g.W.call(this,{S:"div",B:"ytp-cards-teaser",W:[{S:"div",B:"ytp-cards-teaser-box"},{S:"div",B:"ytp-cards-teaser-text",W:e.X().T("player_new_info_card_format")?[{S:"button",B:"ytp-cards-teaser-info-icon",V:{"aria-label":"Show cards","aria-haspopup":"true"},W:[cgH()]},{S:"span",B:"ytp-cards-teaser-label",b9:"{{text}}"},{S:"button",B:"ytp-cards-teaser-close-button",V:{"aria-label":"Close"},W:[g.kl()]}]:[{S:"span",B:"ytp-cards-teaser-label",b9:"{{text}}"}]}]});var y=this;this.C=e;this.rQ=
N;this.j=new g.NE(this,250,!1,250);this.J=null;this.U=new g.e6(this.m7q,300,this);this.G=new g.e6(this.B7Z,2E3,this);this.Z=[];this.N=null;this.D=new g.e6(function(){y.element.style.margin="0"},250);
this.onClickCommand=this.K=null;g.Q(this,this.j);g.Q(this,this.U);g.Q(this,this.G);g.Q(this,this.D);e.X().T("player_new_info_card_format")?(g.pi(e.getRootNode(),"ytp-cards-teaser-dismissible"),this.Y(this.hW("ytp-cards-teaser-close-button"),"click",this.Fp),this.Y(this.hW("ytp-cards-teaser-info-icon"),"click",this.VN),this.Y(this.hW("ytp-cards-teaser-label"),"click",this.VN)):this.listen("click",this.VN);this.Y(N.element,"mouseover",this.Wb);this.Y(N.element,"mouseout",this.Us);this.Y(e,"cardsteasershow",
this.s2t);this.Y(e,"cardsteaserhide",this.rT);this.Y(e,"cardstatechange",this.hh);this.Y(e,"presentingplayerstatechange",this.hh);this.Y(e,"appresize",this.EZ);this.Y(e,"onShowControls",this.EZ);this.Y(e,"onHideControls",this.X5);this.listen("mouseenter",this.JL)};
LYJ=function(e){g.W.call(this,{S:"button",dP:[Ak.BUTTON,Ak.TITLE_NOTIFICATIONS],V:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{S:"div",B:Ak.TITLE_NOTIFICATIONS_ON,V:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},W:[g.Pq()]},{S:"div",B:Ak.TITLE_NOTIFICATIONS_OFF,V:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},W:[{S:"svg",V:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{S:"path",V:{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=e;this.J=!1;e.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
s5M=function(e,N){e.J=N;e.element.classList.toggle(Ak.NOTIFICATIONS_ENABLED,e.J);var y=e.api.getVideoData();y?(N=N?y.lf:y.Ov)?(e=e.api.WI())?Oq(e,N):g.t0(Error("No innertube service available when updating notification preferences.")):g.t0(Error("No update preferences command available.")):g.t0(Error("No video data when updating notification preferences."))};
er1=function(e,N,y){var w=w===void 0?800:w;var E=E===void 0?600:E;e=atM(e,N);if(e=g.qm(window,e,"loginPopup","width="+w+",height="+E+",resizable=yes,scrollbars=yes"))S83(function(){y()}),e.moveTo((screen.width-w)/2,(screen.height-E)/2)};
atM=function(e,N){var y=document.location.protocol;return hmF(y+"//"+e+"/signin?context=popup","feature",N,"next",y+"//"+location.hostname+"/post_login")};
g.TP=function(e,N,y,w,E,A,T,p,C,r,Y,M){e=e.charAt(0)+e.substring(1).toLowerCase();y=y.charAt(0)+y.substring(1).toLowerCase();if(N==="0"||N==="-1")N=null;if(w==="0"||w==="-1")w=null;var l=Y.X(),F=l.userDisplayName&&g.dw(l);g.W.call(this,{S:"div",dP:["ytp-button","ytp-sb"],W:[{S:"div",B:"ytp-sb-subscribe",V:F?{title:g.SO("Subscribe as $USER_NAME",{USER_NAME:l.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":OI(l),"data-tooltip-opaque":String(g.hR(l)),tabindex:"0",role:"button"}:
{"aria-label":"Subscribe to channel"},W:[{S:"div",B:"ytp-sb-text",W:[{S:"div",B:"ytp-sb-icon"},e]},N?{S:"div",B:"ytp-sb-count",b9:N}:""]},{S:"div",B:"ytp-sb-unsubscribe",V:F?{title:g.SO("Subscribed as $USER_NAME",{USER_NAME:l.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":OI(l),"data-tooltip-opaque":String(g.hR(l)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},W:[{S:"div",B:"ytp-sb-text",W:[{S:"div",B:"ytp-sb-icon"},y]},w?{S:"div",B:"ytp-sb-count",
b9:w}:""]}],V:{"aria-live":"polite"}});var S=this;this.channelId=T;this.C=Y;this.K=M;var k=this.hW("ytp-sb-subscribe"),X=this.hW("ytp-sb-unsubscribe");A&&g.pi(this.element,"ytp-sb-classic");if(E){p?this.J():this.N();var d=function(){if(l.l9){var V=S.channelId;if(C||r){var Z={c:V};var n;g.XB.isInitialized()&&(n=lF0(Z));Z=n||"";if(n=Y.getVideoData())if(n=n.subscribeCommand){var R=Y.WI();R?(Oq(R,n,{botguardResponse:Z,feature:C}),Y.Mg("SUBSCRIBE",V)):g.t0(Error("No innertube service available when updating subscriptions."))}else g.t0(Error("No subscribe command in videoData."));
else g.t0(Error("No video data available when updating subscription."))}X.focus();X.removeAttribute("aria-hidden");k.setAttribute("aria-hidden","true")}else er1(g.ud(S.C.X()),"sb_button",S.j)},v=function(){var V=S.channelId;
if(C||r){var Z=Y.getVideoData();Oq(Y.WI(),Z.unsubscribeCommand,{feature:C});Y.Mg("UNSUBSCRIBE",V)}k.focus();k.removeAttribute("aria-hidden");X.setAttribute("aria-hidden","true")};
this.Y(k,"click",d);this.Y(X,"click",v);this.Y(k,"keypress",function(V){V.keyCode===13&&d(V)});
this.Y(X,"keypress",function(V){V.keyCode===13&&v(V)});
this.Y(Y,"SUBSCRIBE",this.J);this.Y(Y,"UNSUBSCRIBE",this.N);this.K&&F&&(gF1(Y),lh(Y,k,this),lh(Y,X,this))}else g.pi(k,"ytp-sb-disabled"),g.pi(X,"ytp-sb-disabled")};
wR5=function(e){g.W.call(this,{S:"div",B:"ytp-title-channel",W:[{S:"div",B:"ytp-title-beacon"},{S:"a",B:"ytp-title-channel-logo",V:{href:"{{channelLink}}",target:e.X().D,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{S:"div",B:"ytp-title-expanded-overlay",V:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{S:"div",B:"ytp-title-expanded-heading",W:[{S:"div",B:"ytp-title-expanded-title",W:[{S:"a",b9:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:e.X().D,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{S:"div",B:"ytp-title-expanded-subtitle",b9:"{{expandedSubtitle}}",V:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var N=this;this.api=e;this.channel=this.hW("ytp-title-channel");this.N=this.hW("ytp-title-channel-logo");this.channelName=this.hW("ytp-title-expanded-title");this.Z=this.hW("ytp-title-expanded-overlay");this.K=this.J=this.subscribeButton=null;this.j=!1;e.createClientVe(this.N,this,36925);e.createClientVe(this.channelName,this,
37220);g.hR(this.api.X())&&NlH(this);this.Y(e,"videodatachange",this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.Y(this.channelName,"click",function(y){N.api.logClick(N.channelName);g.qm(window,yP0(N));y.preventDefault()});
this.Y(this.N,"click",this.Fhg);this.GZ()};
E9s=function(e){if(!e.api.X().jn){var N=e.api.getVideoData(),y=new g.TP("Subscribe",null,"Subscribed",null,!0,!1,N.iI,N.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(y.element,e);var w;e.api.setTrackingParams(y.element,((w=N.subscribeButtonRenderer)==null?void 0:w.trackingParams)||null);e.Y(y.element,"click",function(){e.api.logClick(y.element)});
e.subscribeButton=y;g.Q(e,e.subscribeButton);e.subscribeButton.yB(e.Z);e.subscribeButton.hide();var E=new LYJ(e.api);e.J=E;g.Q(e,E);E.yB(e.Z);E.hide();e.Y(e.api,"SUBSCRIBE",function(){N.Z3&&(E.show(),e.api.logVisibility(E.element,!0))});
e.Y(e.api,"UNSUBSCRIBE",function(){N.Z3&&(E.hide(),e.api.logVisibility(E.element,!1),s5M(E,!1))})}};
NlH=function(e){var N=e.api.X();E9s(e);e.updateValue("flyoutUnfocusable","true");e.updateValue("channelTitleFocusable","-1");e.updateValue("shouldHideExpandedTitleForA11y","true");e.updateValue("shouldHideExpandedSubtitleForA11y","true");N.N||N.Bk||(e.Y(e.channel,"mouseenter",e.Ro),e.Y(e.channel,"mouseleave",e.EN),e.Y(e.channel,"focusin",e.Ro),e.Y(e.channel,"focusout",function(y){e.channel.contains(y.relatedTarget)||e.EN()}));
e.K=new g.e6(function(){e.isExpanded()&&(e.api.logVisibility(e.channelName,!1),e.subscribeButton&&(e.subscribeButton.hide(),e.api.logVisibility(e.subscribeButton.element,!1)),e.J&&(e.J.hide(),e.api.logVisibility(e.J.element,!1)),e.channel.classList.remove("ytp-title-expanded"),e.channel.classList.add("ytp-title-show-collapsed"))},500);
g.Q(e,e.K);e.Y(e.channel,APJ,function(){Tln(e)});
e.Y(e.api,"onHideControls",e.vT);e.Y(e.api,"appresize",e.vT);e.Y(e.api,"fullscreentoggled",e.vT)};
Tln=function(e){e.channel.classList.remove("ytp-title-show-collapsed");e.channel.classList.remove("ytp-title-show-expanded")};
JP5=function(e){var N=e.api.getPlayerSize();return g.hR(e.api.X())&&N.width>=524};
yP0=function(e){var N=e.api.X(),y=e.api.getVideoData(),w=g.RK(N)+y.SR;g.Os(y)&&(w="https://music.youtube.com"+y.SR);if(!g.hR(N))return w;N={};g.NU(e.api,"addEmbedsConversionTrackingParams",[N]);return g.Qb(w,N)};
Jk=function(e){var N=g.qU({"aria-haspopup":"true"});g.uh.call(this,N,e);this.listen("keydown",this.J)};
pJ=function(e,N){e.element.setAttribute("aria-haspopup",String(N))};
pRM=function(e,N){g.W.call(this,{S:"div",B:"ytp-user-info-panel",V:{"aria-label":"User info"},W:e.X().l9&&!e.T("embeds_web_always_enable_signed_out_state")?[{S:"div",B:"ytp-user-info-panel-icon",b9:"{{icon}}"},{S:"div",B:"ytp-user-info-panel-content",W:[{S:"div",B:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable}}",role:"text"},b9:"{{watchingAsUsername}}"},{S:"div",B:"ytp-user-info-panel-info",V:{tabIndex:"{{userInfoFocusable2}}",role:"text"},b9:"{{watchingAsEmail}}"}]}]:[{S:"div",B:"ytp-user-info-panel-icon",
b9:"{{icon}}"},{S:"div",B:"ytp-user-info-panel-content",W:[{S:"div",W:[{S:"text",V:{tabIndex:"{{userInfoFocusable}}"},b9:"Signed out"}]},{S:"div",B:"ytp-user-info-panel-login",W:[{S:"a",V:{tabIndex:"{{userInfoFocusable2}}",role:"button"},b9:e.X().jn?"":"Sign in on YouTube"}]}]}]});this.Lh=e;this.J=N;e.X().l9||e.X().jn||this.Y(this.hW("ytp-user-info-panel-login"),"click",this.kE);this.closeButton=new g.W({S:"button",dP:["ytp-collapse","ytp-button"],V:{title:"Close"},W:[g.ij()]});this.closeButton.yB(this.element);
g.Q(this,this.closeButton);this.Y(window,"blur",this.hide);this.Y(document,"click",this.N$);this.GZ()};
rPH=function(e,N,y){g.x7.call(this,e);this.x_=N;this.XS=y;this.getVideoUrl=new Jk(6);this.Kl=new Jk(5);this.sT=new Jk(4);this.N7=new Jk(3);this.nu=new g.uh(g.qU({href:"{{href}}",target:this.C.X().D},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.uh(g.qU(),1,"Stats for nerds");this.KW=new g.Mu({S:"div",dP:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:"false",tabindex:"1"},b9:"{{text}}"});this.T7=new ZN(this.C,this.KW);this.Xd=this.iJ=null;g.hR(this.C.X())&&(this.closeButton=
new g.W({S:"button",dP:["ytp-collapse","ytp-button"],V:{title:"Close"},W:[g.ij()]}),g.Q(this,this.closeButton),this.closeButton.yB(this.element),this.closeButton.listen("click",this.va,this));g.hR(this.C.X())&&(this.A3=new g.uh(g.qU(),8,"Account"),g.Q(this,this.A3),this.Gi(this.A3,!0),this.A3.listen("click",this.UK9,this),e.createClientVe(this.A3.element,this.A3,137682));this.C.X().Ci&&(this.pc=new Oc("Loop",7),g.Q(this,this.pc),this.Gi(this.pc,!0),this.pc.listen("click",this.Lhh,this),e.createClientVe(this.pc.element,
this.pc,28661));g.Q(this,this.getVideoUrl);this.Gi(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.aBP,this);e.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.Q(this,this.Kl);this.Gi(this.Kl,!0);this.Kl.listen("click",this.S2Z,this);e.createClientVe(this.Kl.element,this.Kl,28660);g.Q(this,this.sT);this.Gi(this.sT,!0);this.sT.listen("click",this.cz9,this);e.createClientVe(this.sT.element,this.sT,28658);g.Q(this,this.N7);this.Gi(this.N7,!0);this.N7.listen("click",this.zcG,
this);g.Q(this,this.nu);this.Gi(this.nu,!0);this.nu.listen("click",this.yaB,this);g.Q(this,this.showVideoInfo);this.Gi(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.WsP,this);g.Q(this,this.KW);this.KW.listen("click",this.tnP,this);g.Q(this,this.T7);N=document.queryCommandSupported&&document.queryCommandSupported("copy");OM0("Chromium")>=43&&(N=!0);OM0("Firefox")<=40&&(N=!1);N&&(this.iJ=new g.W({S:"textarea",B:"ytp-html5-clipboard",V:{readonly:"",tabindex:"-1"}}),g.Q(this,this.iJ),
this.iJ.yB(this.element));var w;(w=this.A3)==null||w.setIcon(PCJ());var E;(E=this.pc)==null||E.setIcon({S:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.N7.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{"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.nu.setIcon(bl5());this.showVideoInfo.setIcon(hb0());this.Y(e,"onLoopChange",this.onLoopChange);this.Y(e,"videodatachange",this.onVideoDataChange);CKM(this);this.qa(this.C.getVideoData())};
CJ=function(e,N){var y=!1;if(e.iJ){var w=e.iJ.element;w.value=N;w.select();try{y=document.execCommand("copy")}catch(E){}}y?e.x_.rT():(e.KW.Ja(N,"text"),g.Q_(e.x_,e.T7),sc(e.KW.element),e.iJ&&(e.iJ=null,CKM(e)));return y};
CKM=function(e){var N=!!e.iJ;g.tu(e.N7,N?"Copy debug info":"Get debug info");pJ(e.N7,!N);g.tu(e.sT,N?"Copy embed code":"Get embed code");pJ(e.sT,!N);g.tu(e.getVideoUrl,N?"Copy video URL":"Get video URL");pJ(e.getVideoUrl,!N);g.tu(e.Kl,N?"Copy video URL at current time":"Get video URL at current time");pJ(e.Kl,!N);e.sT.setIcon(N?F19():null);e.getVideoUrl.setIcon(N?Bq():null);e.Kl.setIcon(N?Bq():null)};
$sP=function(e){return g.hR(e.C.X())?e.A3:e.pc};
Mo5=function(e,N){g.n$.call(this,e);this.XS=N;this.j=new g.fd(this);this.Kh=new g.e6(this.Ka1,1E3,this);this.qg=this.K=null;g.Q(this,this.j);g.Q(this,this.Kh);e.createClientVe(this.element,this,28656);g.pi(this.element,"ytp-contextmenu");Y4P(this);this.hide()};
Y4P=function(e){g.g9(e.j);var N=e.C.X();N.playerStyle==="gvn"||N.N||N.Bk||(N=e.C.Fz(),e.j.Y(N,"contextmenu",e.kit),e.j.Y(N,"touchstart",e.tL,null,!0),e.j.Y(N,"touchmove",e.Y4,null,!0),e.j.Y(N,"touchend",e.Y4,null,!0))};
lgs=function(e){e.C.isFullscreen()?g.Pb(e.C,e.element,10):e.yB(gZ(e).body)};
rC=function(e,N,y){y=y===void 0?240:y;g.W.call(this,{S:"button",dP:["ytp-button","ytp-copylink-button"],V:{title:"{{title-attr}}","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-copylink-icon",b9:"{{icon}}"},{S:"div",B:"ytp-copylink-title",b9:"Copy link",V:{"aria-hidden":"true"}}]});this.api=e;this.J=N;this.N=y;this.visible=!1;this.tooltip=this.J.Rf();N=e.X();this.tooltip.element.setAttribute("aria-live","polite");g.Y1(this.element,"ytp-show-copylink-title",g.hR(N));e.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.Y(e,"videodatachange",this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.Y(e,"appresize",this.GZ);this.GZ();this.addOnDisposeCallback(g.MU(this.tooltip,this.element))};
F8M=function(e){var N=e.api.X(),y=e.api.getVideoData(),w=e.api.Fz().getPlayerSize().width;N=N.K;return!!y.videoId&&w>=e.N&&y.hp&&!g.KX(y)&&!e.api.isEmbedsShortsMode()&&!N};
S4P=function(e){e.updateValue("icon",bj());if(e.api.X().N)e.tooltip.AE(e.element,"Link copied to clipboard");else{e.updateValue("title-attr","Link copied to clipboard");e.tooltip.xp();e.tooltip.AE(e.element);var N=e.listen("mouseleave",function(){e.CX(N);e.GZ();e.tooltip.Zk()})}};
o90=function(e,N){return g.f(function(y){if(y.J==1)return g.c5(y,2),g.D(y,navigator.clipboard.writeText(N),4);if(y.J!=2)return y.return(!0);g.XH(y);var w=y.return,E=!1,A=g.sA("TEXTAREA");A.value=N;A.setAttribute("readonly","");var T=e.api.getRootNode();T.appendChild(A);if(Gv){var p=window.getSelection();p.removeAllRanges();var C=document.createRange();C.selectNodeContents(A);p.addRange(C);A.setSelectionRange(0,N.length)}else A.select();try{E=document.execCommand("copy")}catch(r){}T.removeChild(A);
return w.call(y,E)})};
$y=function(e){g.W.call(this,{S:"div",B:"ytp-doubletap-ui-legacy",W:[{S:"div",B:"ytp-doubletap-fast-forward-ve"},{S:"div",B:"ytp-doubletap-rewind-ve"},{S:"div",B:"ytp-doubletap-static-circle",W:[{S:"div",B:"ytp-doubletap-ripple"}]},{S:"div",B:"ytp-doubletap-overlay-a11y"},{S:"div",B:"ytp-doubletap-seek-info-container",W:[{S:"div",B:"ytp-doubletap-arrows-container",W:[{S:"span",B:"ytp-doubletap-base-arrow"},{S:"span",B:"ytp-doubletap-base-arrow"},{S:"span",B:"ytp-doubletap-base-arrow"}]},{S:"div",
B:"ytp-doubletap-tooltip",W:[{S:"div",B:"ytp-seek-icon-text-container",W:[{S:"div",B:"ytp-seek-icon",b9:"{{seekIcon}}"},{S:"div",B:"ytp-chapter-seek-text-legacy",b9:"{{seekText}}"}]},{S:"div",B:"ytp-doubletap-tooltip-label",b9:"{{seekTime}}"}]}]}]});this.C=e;this.j=new g.e6(this.show,10,this);this.N=new g.e6(this.hide,700,this);this.G=this.K=0;this.Ng=this.Z=!1;this.J=this.hW("ytp-doubletap-static-circle");g.Q(this,this.j);g.Q(this,this.N);this.hide();this.U=this.hW("ytp-doubletap-fast-forward-ve");
this.D=this.hW("ytp-doubletap-rewind-ve");this.C.createClientVe(this.U,this,28240);this.C.createClientVe(this.D,this,28239);this.C.logVisibility(this.U,!0);this.C.logVisibility(this.D,!0);this.Z=e.T("web_show_cumulative_seek_time");this.Ng=e.T("web_center_static_circles")};
Yy=function(e,N,y,w){if(w=w===void 0?null:w){var E=N===-1?e.D.visualElement:e.U.visualElement;w={seekData:w};var A=g.It();A&&g.NR(at)(void 0,A,E,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",w,void 0)}e.K=N===e.G?e.K+y:y;e.G=N;E=e.C.Fz().getPlayerSize();e.Z?e.N.stop():g.we(e.N);e.j.start();e.element.setAttribute("data-side",N===-1?"back":"forward");g.pi(e.element,"ytp-time-seeking");e.J.style.width="110px";e.J.style.height="110px";w=E.width*.1-15;N===1?e.Ng?(e.J.style.right=w+"px",e.J.style.left=""):
(e.J.style.right="",e.J.style.left=E.width*.8-30+"px"):N===-1&&(e.Ng?(e.J.style.right="",e.J.style.left=w+"px"):(e.J.style.right="",e.J.style.left=E.width*.1-15+"px"));e.J.style.top=E.height*.5+15+"px";b73(e,e.Z?e.K:y)};
hrJ=function(e,N,y,w){w=w===void 0?null:w;g.we(e.N);e.j.start();switch(N){case -1:N="back";break;case 1:N="forward";break;default:N=""}e.element.setAttribute("data-side",N);e.J.style.width="0";e.J.style.height="0";g.pi(e.element,"ytp-chapter-seek");e.updateValue("seekText",y);e.updateValue("seekTime","");y=e.hW("ytp-seek-icon");if(w){a:if(w){switch(w){case "PREMIUM_STANDALONE":w={S:"svg",V:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},W:[{S:"path",V:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",
fill:"#c00"}},{S:"path",V:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]};
break a;case "PREMIUM_STANDALONE_CAIRO":w={S:"svg",V:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"rect",V:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{S:"rect",V:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{S:"path",V:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
fill:"white"}},{S:"defs",W:[{S:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},W:[{S:"stop",V:{offset:"0.3","stop-color":"#E1002D"}},{S:"stop",V:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}w=void 0}else w=null;e.updateValue("seekIcon",w);y.style.display="inline-block"}else y.style.display="none"};
b73=function(e,N){N=g.SO("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:N.toString()});e.updateValue("seekTime",N)};
cPs=function(e){qJ.call(this,e,!1,!0);this.l9=[];this.Xz=[];this.U=!0;this.badge.element.classList.add("ytp-featured-product");this.i9=new g.W({S:"div",B:"ytp-featured-product-open-in-new"});g.Q(this,this.i9);this.countdownTimer=new g.W({S:"text",B:"ytp-featured-product-countdown",b9:"{{content}}"});this.countdownTimer.hide();g.Q(this,this.countdownTimer);this.N=new g.W({S:"div",B:"ytp-featured-product-trending",W:[{S:"div",B:"ytp-featured-product-trending-icon"},{S:"text",B:"ytp-featured-product-trending-text",
b9:"{{trendingOffer}}"}]});this.N.hide();g.Q(this,this.N);this.overflowButton=new g.W({S:"button",dP:["ytp-featured-product-overflow-icon","ytp-button"],V:{"aria-haspopup":"true"}});this.overflowButton.hide();g.Q(this,this.overflowButton);this.G=new g.W({S:"text",B:"ytp-featured-product-exclusive-countdown",b9:"{{content}}",V:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.Q(this,this.G);this.Z=new g.W({S:"div",B:"ytp-featured-product-exclusive-container",V:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},
W:[{S:"div",B:"ytp-featured-product-exclusive-badge-container",W:[{S:"div",B:"ytp-featured-product-exclusive-badge",W:[{S:"text",B:"ytp-featured-product-exclusive-badge-text",b9:"{{exclusive}}",V:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.Z.hide();g.Q(this,this.Z);this.banner=new g.W({S:"a",B:"ytp-featured-product-container",W:[{S:"div",B:"ytp-featured-product-thumbnail",W:[{S:"img",V:{src:"{{thumbnail}}"}},this.i9]},{S:"div",B:"ytp-featured-product-details",W:[{S:"text",B:"ytp-featured-product-title",
b9:"{{title}}"},this.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",B:"ytp-featured-product-price-container",V:{"aria-label":"{{priceA11yText}}"},W:[{S:"text",B:"ytp-featured-product-price-when-promotion-text-enabled",b9:"{{price}}",V:{"aria-hidden":"true"}},{S:"text",B:"ytp-featured-product-promotion-text",b9:"{{promotionText}}",V:{"aria-hidden":"true"}}]}:{S:"div",V:{"aria-label":"{{priceA11yText}}"},W:[{S:"text",B:"ytp-featured-product-price",b9:"{{price}}",
V:{"aria-hidden":"true"}},{S:"text",B:"ytp-featured-product-sales-original-price",b9:"{{salesOriginalPrice}}",V:{"aria-hidden":"true"}},{S:"text",B:"ytp-featured-product-price-drop-reference-price",b9:"{{priceDropReferencePrice}}",V:{"aria-hidden":"true"}}]},this.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{S:"div",B:"ytp-featured-product-when-promotion-text-enabled",W:[{S:"text",B:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",b9:"{{affiliateDisclaimer}}"},
this.N,{S:"text",B:"ytp-featured-product-vendor-when-promotion-text-enabled",b9:"{{vendor}}"}]}:{S:"div",W:[{S:"text",B:"ytp-featured-product-affiliate-disclaimer",b9:"{{affiliateDisclaimer}}"},this.C.T("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.Z:null,this.N,{S:"text",B:"ytp-featured-product-vendor",b9:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.Q(this,this.banner);this.banner.yB(this.K.element);this.Y(this.C,g.AA("featured_product"),this.mGk);this.Y(this.C,
g.TW("featured_product"),this.BS);this.Y(this.C,"videodatachange",this.onVideoDataChange);this.Y(this.overflowButton.element,"click",this.j6);this.Y(e,"featuredproductdismissed",this.UA)};
kIM=function(e){var N,y;e=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData;var w,E,A;return(e==null||!e.affiliateDisclaimer)&&(e==null?0:(w=e.exclusivesData)==null?0:w.exclusiveOfferLabelText)&&(e==null?0:(E=e.exclusivesData)==null?0:E.expirationTimestampMs)&&(e==null?0:(A=e.exclusivesData)==null?0:A.exclusiveOfferCountdownText)?!0:!1};
XRF=function(e){var N,y,w,E,A=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:(w=y.itemData)==null?void 0:(E=w.exclusivesData)==null?void 0:E.expirationTimestampMs;N=(Number(A)-Date.now())/1E3;if(N>0){if(N<604800){var T,p,C,r;y=(T=e.J)==null?void 0:(p=T.bannerData)==null?void 0:(C=p.itemData)==null?void 0:(r=C.exclusivesData)==null?void 0:r.exclusiveOfferCountdownText;if(y!==void 0)for(T=Date.now(),p=g.c(y),C=p.next();!C.done;C=p.next())if(C=C.value,C!==void 0&&C.text!==void 0&&(r=Number(C.textDisplayStartTimestampMs),
!isNaN(r)&&T>=r)){C.insertCountdown?(N=C.text.replace(/\$0/,String(CA({seconds:N}))),e.G.Ja(N)):e.G.Ja(C.text);e.G.show();break}}var Y,M,l,F;e.Z.update({exclusive:(Y=e.J)==null?void 0:(M=Y.bannerData)==null?void 0:(l=M.itemData)==null?void 0:(F=l.exclusivesData)==null?void 0:F.exclusiveOfferLabelText});e.Z.show();Mh(e);var S;(S=e.pX)==null||S.start()}else Bl1(e)};
Bl1=function(e){var N;(N=e.pX)==null||N.stop();e.G.hide();e.Z.hide();lo(e)};
PKJ=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData;return e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(w==null||!w.priceReplacementText)&&(w==null?0:w.promotionText)?w==null?void 0:w.promotionText.content:null};
ds0=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData,E,A;if(!(w!=null&&w.priceReplacementText||e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(w==null?0:(E=w.dealsData)==null?0:(A=E.sales)==null?0:A.originalPrice)){var T,p;return w==null?void 0:(T=w.dealsData)==null?void 0:(p=T.sales)==null?void 0:p.originalPrice}return null};
Ig1=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData,E,A,T,p;if(!((w==null?0:w.priceReplacementText)||e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(w==null?0:(E=w.dealsData)==null?0:(A=E.sales)==null?0:A.originalPrice))&&(w==null?0:(T=w.dealsData)==null?0:(p=T.priceDrop)==null?0:p.referencePrice)){var C,r;return w==null?void 0:(C=w.dealsData)==null?void 0:(r=C.priceDrop)==null?void 0:r.referencePrice}return null};
v9J=function(e){var N,y,w=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:y.itemData;if(w==null?0:w.priceReplacementText)return w==null?void 0:w.priceReplacementText;if((w==null?0:w.promotionText)&&e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var E;return(w==null?void 0:w.price)+" "+(w==null?void 0:(E=w.promotionText)==null?void 0:E.content)}var A,T;if(w==null?0:(A=w.dealsData)==null?0:(T=A.sales)==null?0:T.originalPrice){var p,C;return w==null?void 0:(p=w.dealsData)==
null?void 0:(C=p.sales)==null?void 0:C.salesPriceAccessibilityLabel}var r,Y;if(w==null?0:(r=w.dealsData)==null?0:(Y=r.priceDrop)==null?0:Y.referencePrice){var M,l;return(w==null?void 0:w.price)+" "+(w==null?void 0:(M=w.dealsData)==null?void 0:(l=M.priceDrop)==null?void 0:l.referencePrice)}return w==null?void 0:w.price};
zrH=function(e){if(e.C.T("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var N,y,w;return e.N.Og?null:(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:(w=y.itemData)==null?void 0:w.vendorName}var E,A,T,p,C,r;return e.N.Og||e.Z.Og||((E=e.J)==null?0:(A=E.bannerData)==null?0:(T=A.itemData)==null?0:T.affiliateDisclaimer)?null:(p=e.J)==null?void 0:(C=p.bannerData)==null?void 0:(r=C.itemData)==null?void 0:r.vendorName};
Ds0=function(e,N){Fh(e);if(N){var y=g.WH.getState().entities;y=Cj(y,"featuredProductsEntity",N);if(y!=null&&y.productsData){N=[];y=g.c(y.productsData);for(var w=y.next();!w.done;w=y.next()){w=w.value;var E=void 0;if((E=w)!=null&&E.identifier&&w.featuredSegments){e.l9.push(w);var A=void 0;E=g.c((A=w)==null?void 0:A.featuredSegments);for(A=E.next();!A.done;A=E.next()){var T=A.value;A=i7P(T.startTimeSec);A!==void 0&&(T=i7P(T.endTimeSec),N.push(new g.wF(A*1E3,T===void 0?0x7ffffffffffff:T*1E3,{id:w.identifier,
namespace:"featured_product"})))}}}e.C.wx(N)}}};
lo=function(e){if(e.trendingOfferEntityKey){var N=g.WH.getState().entities;if(N=Cj(N,"trendingOfferEntity",e.trendingOfferEntityKey)){var y,w,E;N.encodedSkuId!==((y=e.J)==null?void 0:(w=y.bannerData)==null?void 0:(E=w.itemData)==null?void 0:E.encodedOfferSkuId)?Mh(e):(e.N.update({trendingOffer:N.shortLabel+" \u2022 "+N.countLabel}),e.N.show(),e.banner.update({vendor:zrH(e)}))}else Mh(e)}else Mh(e)};
Mh=function(e){e.N.hide();e.banner.update({vendor:zrH(e)})};
Fh=function(e){e.l9=[];e.BS();e.C.MK("featured_product")};
g9n=function(e){var N,y,w,E,A=(N=e.J)==null?void 0:(y=N.bannerData)==null?void 0:(w=y.itemData)==null?void 0:(E=w.hiddenProductOptions)==null?void 0:E.dropTimestampMs;N=(Number(A)-Date.now())/1E3;e.countdownTimer.Ja(CA({seconds:N}));if(N>0){var T;(T=e.Y_)==null||T.start()}};
VoF=function(e){var N;(N=e.Y_)==null||N.stop();e.countdownTimer.hide()};
i7P=function(e){if(e!==void 0&&e.trim()!==""&&(e=Math.trunc(Number(e.trim())),!(isNaN(e)||e<0)))return e};
Z7M=function(e,N,y){g.W.call(this,{S:"div",dP:["ytp-info-panel-action-item"],W:[{S:"div",B:"ytp-info-panel-action-item-disclaimer",b9:"{{disclaimer}}"},{S:"a",dP:["ytp-info-panel-action-item-button","ytp-button"],V:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{S:"div",B:"ytp-info-panel-action-item-icon",b9:"{{icon}}"},{S:"div",B:"ytp-info-panel-action-item-label",b9:"{{label}}"}]}]});this.C=e;this.J=y;this.disclaimer=this.hW("ytp-info-panel-action-item-disclaimer");this.button=
this.hW("ytp-info-panel-action-item-button");this.WG=!1;this.C.createServerVe(this.element,this,!0);this.listen("click",this.onClick);e="";y=g.m(N==null?void 0:N.onTap,ZL);var w=g.m(y,g.qu);this.WG=!1;w?(e=w.url||"",e.startsWith("//")&&(e="https:"+e),this.WG=!0,g.VZ(this.button,g.Ds(e))):(w=g.m(y,fg5))&&!this.J?((e=w.phoneNumbers)&&e.length>0?(e="sms:"+e[0],w.messageText&&(e+="?&body="+encodeURI(w.messageText))):e="",this.WG=!0,g.VZ(this.button,g.Ds(e,[to5]))):(y=g.m(y,uOJ))&&!this.J&&(e=y.phoneNumber?
"tel:"+y.phoneNumber:"",this.WG=!0,g.VZ(this.button,g.Ds(e,[q4_])));var E;if(y=(E=N.disclaimerText)==null?void 0:E.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var A;this.update({label:(A=N.bodyText)==null?void 0:A.content,icon:d1(),disclaimer:y})}else{this.disclaimer.style.display="none";var T;this.update({label:(T=N.bodyText)==null?void 0:T.content,icon:d1()})}this.C.setTrackingParams(this.element,N.trackingParams||null);this.WG&&(this.N={externalLinkData:{url:e}})};
xsH=function(e,N){var y=CT();g.Dq.call(this,e,{S:"div",B:"ytp-info-panel-detail-skrim",W:[{S:"div",B:"ytp-info-panel-detail",V:{role:"dialog",id:y},W:[{S:"div",B:"ytp-info-panel-detail-header",W:[{S:"div",B:"ytp-info-panel-detail-title",b9:"{{title}}"},{S:"button",dP:["ytp-info-panel-detail-close","ytp-button"],V:{"aria-label":"Close"},W:[g.kl()]}]},{S:"div",B:"ytp-info-panel-detail-body",b9:"{{body}}"},{S:"div",B:"ytp-info-panel-detail-items"}]}]},250);this.J=N;this.items=this.hW("ytp-info-panel-detail-items");
this.K=new g.fd(this);this.itemData=[];this.j=y;this.Y(this.hW("ytp-info-panel-detail-close"),"click",this.rT);this.Y(this.hW("ytp-info-panel-detail-skrim"),"click",this.rT);this.Y(this.hW("ytp-info-panel-detail"),"click",function(w){w.stopPropagation()});
g.Q(this,this.K);this.C.createServerVe(this.element,this,!0);this.Y(e,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",e.getVideoData());this.hide()};
jjE=function(e,N){e=g.c(e.itemData);for(var y=e.next();!y.done;y=e.next())y=y.value,y.C.logVisibility(y.element,N)};
ms5=function(e,N){g.W.call(this,{S:"div",B:"ytp-info-panel-preview",V:{"aria-live":"assertive","aria-atomic":"true","aria-owns":N.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-info-panel-preview-text",b9:"{{text}}"},{S:"div",B:"ytp-info-panel-preview-chevron",b9:"{{chevron}}"}]});var y=this;this.C=e;this.k9=this.J=this.videoId=null;this.j=this.showControls=this.N=!1;this.Y(this.element,"click",function(){e.logClick(y.element);e.Jm();VL(N)});
this.K=new g.NE(this,250,!1,100);g.Q(this,this.K);this.C.createServerVe(this.element,this,!0);this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"presentingplayerstatechange",this.q$);this.Y(this.C,"paidcontentoverlayvisibilitychange",this.qW);this.Y(this.C,"infopaneldetailvisibilitychange",this.qW);var w=e.getVideoData()||{};n99(w)&&Qj5(this,w);this.Y(e,"onShowControls",this.wH);this.Y(e,"onHideControls",this.bU)};
Qj5=function(e,N){if(!N.Pf||!e.C.V_()){var y=N.gI||1E4,w=n99(N);e.J?N.videoId&&N.videoId!==e.videoId&&(g.we(e.J),e.videoId=N.videoId,w?(H70(e,y,N),e.WY()):(e.rT(),e.J.dispose(),e.J=null)):w&&(N.videoId&&(e.videoId=N.videoId),H70(e,y,N),e.WY())}};
n99=function(e){var N,y,w,E;return!!((N=e.Fr)==null?0:(y=N.title)==null?0:y.content)||!!((w=e.Fr)==null?0:(E=w.bodyText)==null?0:E.content)};
H70=function(e,N,y){e.J&&e.J.dispose();e.J=new g.e6(e.eih,N,e);g.Q(e,e.J);var w;N=((w=y.Fr)==null?void 0:w.trackingParams)||null;e.C.setTrackingParams(e.element,N);var E;var A,T;if(y==null?0:(A=y.Fr)==null?0:(T=A.title)==null?0:T.content){var p;w=(E=y.Fr)==null?void 0:(p=E.title)==null?void 0:p.content;var C,r;if((C=y.Fr)==null?0:(r=C.bodyText)==null?0:r.content)w+=" \u2022 ";E=w}else E="";var Y,M;y=((Y=y.Fr)==null?void 0:(M=Y.bodyText)==null?void 0:M.content)||"";e.update({text:E+y,chevron:g.cq()})};
K89=function(e,N){e.J&&(g.G(N,8)?(e.N=!0,e.WY(),e.J.start()):(g.G(N,2)||g.G(N,64))&&e.videoId&&(e.videoId=null))};
Sz=function(e){var N=null;try{N=e.toLocaleString("en",{style:"percent"})}catch(y){N=e.toLocaleString(void 0,{style:"percent"})}return N};
om=function(e,N){var y=0;e=g.c(e);for(var w=e.next();!(w.done||w.value.startTime>N);w=e.next())y++;return y===0?y:y-1};
W8_=function(e,N){for(var y=0,w=g.c(e),E=w.next();!E.done;E=w.next()){E=E.value;if(N<E.timeRangeStartMillis)return null;if(N>=E.timeRangeStartMillis&&N<E.timeRangeStartMillis+E.J)break;y++}y+1<e.length&&e[y+1].timeRangeStartMillis<=N&&y++;return y<e.length?y:null};
O71=function(e,N){N=om(e,N)+1;return N<e.length?N:-1};
Rrn=function(e,N){return om(e,N)-1};
GIP=function(e,N){return new g.wF(e,N,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+e})};
L8J=function(e,N,y,w,E,A,T,p){g.fd.call(this);var C=this;this.api=e;this.contextMenu=y;this.tT=w;this.XS=E;this.J=A;this.Z=T;this.progressBar=p;this.L=new g.e6(function(){UsF(C,!1)},1E3);
this.N="";this.K={Pz:!1};this.j=!1;g.Q(this,this.L);this.Y(N,"mousedown",function(){bo(C,!1)});
this.Y(y.element,"mousedown",function(){bo(C,!1)});
this.Y(N,"keydown",this.Nn);this.Y(y.element,"keydown",this.Nn);this.Y(N,"keyup",this.ke);this.Y(y.element,"keyup",this.ke)};
sjF=function(e,N){return N<0?0:Math.floor(Math.min(N,e.api.getDuration())*1E3)};
hk=function(e,N,y){var w=e.api.getCurrentTime(),E=sjF(e,w);e=sjF(e,w+N);return{startMediaTimeMs:E,endMediaTimeMs:e,seekSource:y}};
agJ=function(e){var N,y=(N=e.api.getVideoData())==null?void 0:N.Au();return e.api.getPresentingPlayerType(y)!==2};
bo=function(e,N){e.j=N;g.Y1(e.api.getRootNode(),"ytp-probably-keyboard-focus",N);g.Y1(e.contextMenu.element,"ytp-probably-keyboard-focus",N)};
ky=function(e,N,y,w){var E=g.fZ(e.api.jR());if(E&&E.loaded){var A=e.api.getSubtitlesUserSettings();E=void 0;for(var T=0;T<g.c6.length;T++){var p=g.c6[T];if(p.option===N){E=p.options;break}}T=void 0;for(p=0;p<E.length;p++)E[p].option===A[N]&&(T=p);if(w)if(y){if(T===0)return}else if(T===E.length-1)return;w={};w[N]=E[(T+(y?E.length-1:1))%E.length].option;e.api.updateSubtitlesUserSettings(w);UsF(e,!0);e.L.start()}};
UsF=function(e,N){g.fZ(e.api.jR())&&e.api.setOption("captions","sampleSubtitles",N)};
g.B6=function(e,N){g.W.call(this,{S:"button",dP:["ytp-button","ytp-overflow-button"],V:{title:"More","aria-haspopup":"true","aria-owns":N.element.id},W:[{S:"div",B:"ytp-overflow-icon",W:[{S:"svg",V:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{S:"path",V:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var y=this;this.C=e;this.Lw=N;this.J=this.visible=!1;e.createClientVe(this.element,
this,16499);this.Y(e,"videoplayerreset",this.GZ);this.Y(e,"appresize",this.GZ);this.Y(e,"fullscreentoggled",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);this.GZ();lh(e,this.element,this);this.listen("click",function(){e.logClick(y.element);VL(N,y.element,!1)});
this.Y(N.closeButton,"click",function(){y.focus()})};
e7s=function(e){g.Dq.call(this,e,{S:"div",B:"ytp-overflow-panel",V:{id:CT(),role:"dialog"},W:[{S:"div",B:"ytp-overflow-panel-content",W:[{S:"div",B:"ytp-overflow-panel-action-buttons",b9:"{{buttons}}"}]},{S:"button",dP:["ytp-overflow-panel-close","ytp-button"],V:{title:"Close"},W:[g.kl()]}]},250);this.actionButtons=[];this.J=this.hW("ytp-overflow-panel-content");this.closeButton=this.hW("ytp-overflow-panel-close");this.Y(this.closeButton,"click",this.rT);lh(e,this.closeButton,this);this.listen("click",
this.OF);this.Y(e,"videoplayerreset",this.hide);this.Y(e,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
NV1=function(e,N){e.actionButtons.includes(N)||(e.actionButtons.push(N),e.updateValue("buttons",e.actionButtons))};
yMF=function(e,N){e=g.c(e.actionButtons);for(var y=e.next();!y.done;y=e.next())y.value.nx(N)};
wvH=function(e,N,y){var w=g.Bo(N,y),E=w.LN("default.jpg");g.W.call(this,{S:"a",dP:["ytp-video-menu-item","ytp-button"],V:{role:"menuitemradio","aria-label":w.title,href:e.X().getVideoUrl(w.videoId,N.listId?N.listId.toString():null)},W:[{S:"div",B:"ytp-video-menu-item-index",b9:String(y+1)},{S:"div",B:"ytp-video-menu-item-now-playing",b9:"\u25b6"},{S:"div",B:"ytp-video-menu-item-thumbnail",V:{style:E?"background-image: url("+E+");":void 0}},{S:"div",B:"ytp-video-menu-item-title",b9:w.title},{S:"div",
B:"ytp-video-menu-item-author",b9:w.author}]});this.api=e;this.index=y;this.listen("click",this.onClick)};
ELH=function(e){g.Dq.call(this,e,{S:"div",B:"ytp-playlist-menu",V:{role:"dialog",id:CT()},W:[{S:"div",B:"ytp-playlist-menu-header",W:[{S:"div",B:"ytp-playlist-menu-title",W:[e.X().K?{S:"span",B:"ytp-playlist-menu-title-name",b9:"{{title}}"}:{S:"a",B:"ytp-playlist-menu-title-name",V:{href:"{{playlisturl}}"},b9:"{{title}}"},{S:"button",dP:["ytp-playlist-menu-close","ytp-button"],V:{"aria-label":"Close"},W:[g.kl()]}]},{S:"div",B:"ytp-playlist-menu-subtitle",b9:"{{subtitle}}"}]},{S:"div",B:"ytp-playlist-menu-items",
V:{role:"menu"}}]},250);this.api=e;this.K=this.selected=this.j=this.playlist=null;this.items=this.hW("ytp-playlist-menu-items");this.J=new g.fd(this);this.playlistData=[];this.Y(this.hW("ytp-playlist-menu-close"),"click",this.rT);var N=this.hW("ytp-playlist-menu-title-name");e.X().K||(this.K=this.Y(N,"click",this.Nx9));g.Q(this,this.J);this.hide()};
Xh=function(e,N){g.W.call(this,{S:"button",dP:["ytp-playlist-menu-button","ytp-button"],V:{title:"{{title}}","aria-owns":String(N.element.id),"aria-haspopup":"true","aria-label":"Playlist"},W:[{S:"div",B:"ytp-playlist-menu-button-icon",W:[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{S:"div",B:"ytp-playlist-menu-button-text",b9:"{{text}}"}]});var y=this;this.api=e;this.playlist=null;this.visible=!1;e.createClientVe(this.element,this,70344);this.Y(e,"videodatachange",this.J);this.Y(e,"videoplayerreset",this.J);this.Y(e,"onPlaylistUpdate",this.J);this.Y(e,"presentingplayerstatechange",this.GZ);this.Y(e,"appresize",this.GZ);this.hide();this.J();lh(e,this.element,this);this.listen("click",function(){e.logClick(y.element);VL(N,y.element,!1)})};
AME=function(e,N){g.W.call(this,{S:"div",B:"ytp-promotooltip-wrapper",W:[{S:"div",B:"ytp-promotooltip-container",W:[{S:"div",B:"ytp-promotooltip-content",W:[{S:"div",B:"ytp-promotooltip-title",b9:"{{title}}"},{S:"div",B:"ytp-promotooltip-details",b9:"{{details}}"}]},{S:"div",B:"ytp-promotooltip-buttons",W:[{S:"div",B:"ytp-promotooltip-dismiss-button",b9:"{{dismissButtonText}}",V:{tabindex:"0"}},{S:"div",B:"ytp-promotooltip-accept-button",b9:"{{acceptButtonText}}",V:{tabindex:"0","aria-haspopup":"true"}}]}]},
{S:"div",B:"ytp-promotooltip-pointer"}]});var y=this;this.tooltipRenderer=e;this.C=N;this.J=this.K=null;this.title=this.hW("ytp-promotooltip-title");this.details=this.hW("ytp-promotooltip-details");this.acceptButton=this.hW("ytp-promotooltip-accept-button");this.dismissButton=this.hW("ytp-promotooltip-dismiss-button");this.N=this.Z=!1;this.j=!0;this.Ng=this.G=this.D=this.U=!1;this.lk={Fd:function(w){y.Fd(w)}};
this.KX(!1);e=this.tooltipRenderer.trackingParams||null;if(this.N=!!e)this.C.createServerVe(this.element,this,!0),this.C.setTrackingParams(this.element,e);this.Y(N,"onShowControls",this.hL);this.Y(N,"onHideControls",this.AL);this.Y(N,"resize",this.I9);this.Y(this.acceptButton,"click",this.GWZ);this.Y(this.dismissButton,"click",this.wYk);this.Y(document,"click",this.lU)};
TVH=function(e){var N=document.querySelectorAll('[data-tooltip-target-id="'+e.tooltipRenderer.targetId+'"]');N=N.length>0?N[0]:null;var y=g.H4("ytp-chrome-bottom"),w=g.H4("ytp-ad-module");e.j=!(y==null||!y.contains(N));e.U=!(w==null||!w.contains(N));e.D=!(N==null||!N.hasAttribute("data-tooltip-target-fixed"));return N};
C9E=function(e,N,y){if(!e.Z){if(N){e.tooltipRenderer=N;N=e.tooltipRenderer.text;var w=!1,E;(N==null?0:(E=N.runs)==null?0:E.length)&&N.runs[0].text&&(e.update({title:N.runs[0].text.toString()}),w=!0);g.X0(e.title,w);N=e.tooltipRenderer.detailsText;E=!1;var A;if((N==null?0:(A=N.runs)==null?0:A.length)&&N.runs[0].text){w=N.runs[0].text.toString();A=w.indexOf("$TARGET_ICON");if(A>-1)if(e.tooltipRenderer.targetId){N=[];w=w.split("$TARGET_ICON");var T=new g.r1({S:"span",B:"ytp-promotooltip-details-icon",
W:[JMJ[e.tooltipRenderer.targetId]]});g.Q(e,T);for(var p=[],C=g.c(w),r=C.next();!r.done;r=C.next())r=new g.r1({S:"span",B:"ytp-promotooltip-details-component",b9:r.value}),g.Q(e,r),p.push(r);w.length===2?(N.push(p[0].element),N.push(T.element),N.push(p[1].element)):w.length===1&&(A===0?(N.push(T.element),N.push(p[0].element)):(N.push(p[0].element),N.push(T.element)));A=N.length?N:null}else A=null;else A=w;if(A){if(typeof A!=="string")for(g.N8(e.details),E=g.c(A),A=E.next();!A.done;A=E.next())e.details.appendChild(A.value);
else e.update({details:A});E=!0}}g.X0(e.details,E);E=e.tooltipRenderer.acceptButton;A=!1;var Y,M,l;((Y=g.m(E,g.zR))==null?0:(M=Y.text)==null?0:(l=M.runs)==null?0:l.length)&&g.m(E,g.zR).text.runs[0].text&&(e.update({acceptButtonText:g.m(E,g.zR).text.runs[0].text.toString()}),A=!0);g.X0(e.acceptButton,A);Y=e.tooltipRenderer.dismissButton;M=!1;var F,S,k;((F=g.m(Y,g.zR))==null?0:(S=F.text)==null?0:(k=S.runs)==null?0:k.length)&&g.m(Y,g.zR).text.runs[0].text&&(e.update({dismissButtonText:g.m(Y,g.zR).text.runs[0].text.toString()}),
M=!0);g.X0(e.dismissButton,M)}y&&(e.K=y);e.J=TVH(e);e.G=!1;e.C.X().T("web_player_hide_nitrate_promo_tooltip")||e.KX(!0);pv3(e);e.Og&&!e.Ng&&(e.Ng=!0,e.lk.Fd(0));e.N&&e.C.logVisibility(e.element,e.Og)}};
P6=function(e){e.KX(!1);e.N&&e.C.logVisibility(e.element,e.Og)};
rM1=function(e){var N,y,w,E=((N=g.m(e.acceptButton,g.zR))==null?void 0:(y=N.text)==null?void 0:(w=y.runs)==null?void 0:w.length)&&!!g.m(e.acceptButton,g.zR).text.runs[0].text,A,T,p;N=((A=g.m(e.dismissButton,g.zR))==null?void 0:(T=A.text)==null?void 0:(p=T.runs)==null?void 0:p.length)&&!!g.m(e.dismissButton,g.zR).text.runs[0].text;return E||N};
pv3=function(e){var N;if(!(N=!e.J)){N=e.J;var y=window.getComputedStyle(N);N=y.display==="none"||y.visibility==="hidden"||N.getAttribute("aria-hidden")==="true"}if(N||e.C.isMinimized())e.KX(!1);else if(N=g.Be(e.J),N.width&&N.height){e.C.yg(e.element,e.J);var w=e.C.Fz().getPlayerSize().height;y=g.Be(e.hW("ytp-promotooltip-container")).height;e.j?e.element.style.top=w-y-N.height-12+"px":e.D||(w=e.C.eW().height-y-N.height-12,e.element.style.top=w+"px");w=e.hW("ytp-promotooltip-pointer");var E=g.ce(e.J,
e.C.getRootNode()),A=Number(e.element.style.left.replace(/[^\d\.]/g,""));e=e.C.isFullscreen()?18:12;w.style.left=E.x-A+N.width/2-e+"px";w.style.top=y+"px"}else e.KX(!1)};
dC=function(e){g.W.call(this,{S:"button",dP:["ytp-replay-button","ytp-button"],V:{title:"Replay"},W:[g.vq()]});this.C=e;this.Y(e,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.IJ(e.getPlayerStateObject());lh(this.C,this.element,this)};
Im=function(e,N){N=N===void 0?240:N;g.W.call(this,{S:"button",dP:["ytp-button","ytp-search-button"],V:{title:"Search","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-search-icon",b9:"{{icon}}"},{S:"div",B:"ytp-search-title",b9:"Search"}]});this.api=e;this.N=N;this.visible=!1;this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",B:"ytp-svg-fill",V:{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"}}]});
e.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.J();this.Y(e,"appresize",this.J);this.Y(e,"videodatachange",this.J);lh(e,this.element,this)};
g.v6=function(e,N,y,w){w=w===void 0?240:w;g.W.call(this,{S:"button",dP:["ytp-button","ytp-share-button"],V:{title:"Share","aria-haspopup":"true","aria-owns":y.element.id,"data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-share-icon",b9:"{{icon}}"},{S:"div",B:"ytp-share-title",b9:"Share"}]});this.api=e;this.J=N;this.K=y;this.j=w;this.N=this.visible=!1;this.tooltip=this.J.Rf();e.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Y(e,"videodatachange",this.GZ);
this.Y(e,"videoplayerreset",this.GZ);this.Y(e,"appresize",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);this.GZ();this.addOnDisposeCallback(g.MU(this.tooltip,this.element))};
$r5=function(e){var N=e.api.X(),y=e.api.getVideoData(),w=g.hR(N)&&g.cb(e.api)&&g.G(e.api.getPlayerStateObject(),128);N=N.K||N.disableSharing&&e.api.getPresentingPlayerType()!==2||!y.showShareButton||y.hp||w||g.KX(y)||e.N;w=e.api.Fz().getPlayerSize().width;return!!y.videoId&&w>=e.j&&!N};
Yy3=function(e,N){N.name!=="InvalidStateError"&&N.name!=="AbortError"&&(N.name==="NotAllowedError"?(e.J.Jm(),VL(e.K,e.element,!1)):g.t0(N))};
l_5=function(e,N){var y=CT(),w=e.X();y={S:"div",B:"ytp-share-panel",V:{id:CT(),role:"dialog","aria-labelledby":y},W:[{S:"div",B:"ytp-share-panel-inner-content",W:[{S:"div",B:"ytp-share-panel-title",V:{id:y},b9:"Share"},{S:"a",dP:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:w.D,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},b9:"{{linkText}}"},{S:"label",B:"ytp-share-panel-include-playlist",W:[{S:"input",B:"ytp-share-panel-include-playlist-checkbox",V:{type:"checkbox",
checked:"true"}},"Include playlist"]},{S:"div",B:"ytp-share-panel-loading-spinner",W:[LD()]},{S:"div",B:"ytp-share-panel-service-buttons",b9:"{{buttons}}"},{S:"div",B:"ytp-share-panel-error",b9:"An error occurred while retrieving sharing information. Please try again later."}]},{S:"button",dP:["ytp-share-panel-close","ytp-button"],V:{title:"Close"},W:[g.kl()]}]};g.Dq.call(this,e,y,250);var E=this;this.moreButton=null;this.api=e;this.tooltip=N.Rf();this.K=[];this.Z=this.hW("ytp-share-panel-inner-content");
this.closeButton=this.hW("ytp-share-panel-close");this.Y(this.closeButton,"click",this.rT);this.addOnDisposeCallback(g.MU(this.tooltip,this.closeButton));this.j=this.hW("ytp-share-panel-include-playlist-checkbox");this.Y(this.j,"click",this.GZ);this.J=this.hW("ytp-share-panel-link");this.addOnDisposeCallback(g.MU(this.tooltip,this.J));this.api.createClientVe(this.J,this,164503);this.Y(this.J,"click",function(A){A.preventDefault();E.api.logClick(E.J);var T=E.api.getVideoUrl(!0,!0,!1,!1);T=MTE(E,T);
g.Uc(T,E.api,A)&&E.api.Mg("SHARE_CLICKED")});
this.listen("click",this.uU);this.Y(e,"videoplayerreset",this.hide);this.Y(e,"fullscreentoggled",this.onFullscreenToggled);this.Y(e,"onLoopRangeChange",this.j9q);this.hide()};
Sy_=function(e,N){FOM(e);for(var y=N.links||N.shareTargets,w=0,E={},A=0;A<y.length&&w<2;E={BJ:void 0,hg:void 0},A++){E.BJ=y[A];a:switch(E.BJ.img||E.BJ.iconId){case "facebook":var T={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{S:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{S:"path",V:{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 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":T={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{S:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{S:"path",V:{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 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:T=null}if(T){var p=E.BJ.sname||E.BJ.serviceName;E.hg=new g.W({S:"a",dP:["ytp-share-panel-service-button","ytp-button"],V:{href:E.BJ.url,target:"_blank",title:p},W:[T]});E.hg.listen("click",function(Y){return function(M){var l=Y.BJ.url;if(g.dh(M)){var F=F===void 0?{}:F;F.target=F.target||"YouTube";F.width=F.width||"600";F.height=F.height||"600";var S=F;S||(S={});F=window;var k=l instanceof IA?l:g.Ds(typeof l.href!="undefined"?l.href:String(l));var X=self.crossOriginIsolated!==
void 0,d="strict-origin-when-cross-origin";window.Request&&(d=(new Request("/")).referrerPolicy);var v=d==="unsafe-url";d=S.noreferrer;if(X&&d){if(v)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");d=!1}l=S.target||l.target;X=[];for(var V in S)switch(V){case "width":case "height":case "top":case "left":X.push(V+"="+S[V]);break;case "target":case "noopener":case "noreferrer":break;case "attributionsrc":X.push(V+(S[V]?"="+S[V]:
""));break;default:X.push(V+"="+(S[V]?1:0))}V=X.join(",");mf()&&F.navigator&&F.navigator.standalone&&l&&l!="_self"?(V=g.sA("A"),g.VZ(V,k),V.target=l,d&&(V.rel="noreferrer"),((S=S.attributionsrc)||S==="")&&V.setAttribute("attributionsrc",S),S=document.createEvent("MouseEvent"),S.initMouseEvent("click",!0,!0,F,1),V.dispatchEvent(S),F={}):d?(F=g.qm(F,"",l,V),S=g.vP(k),F&&(F.opener=null,S===""&&(S="javascript:''"),S=tt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
UK(S)+'">'),(k=F.document)&&k.write&&(k.write(ux(S)),k.close()))):((F=g.qm(F,k,l,V))&&S.noopener&&(F.opener=null),F&&S.noreferrer&&(F.opener=null));F&&(F.opener||(F.opener=window),F.focus());M.preventDefault()}}}(E));
E.hg.addOnDisposeCallback(g.MU(e.tooltip,E.hg.element));p==="Facebook"?e.api.createClientVe(E.hg.element,E.hg,164504):p==="Twitter"&&e.api.createClientVe(E.hg.element,E.hg,164505);e.Y(E.hg.element,"click",function(Y){return function(){e.api.logClick(Y.hg.element)}}(E));
e.api.logVisibility(E.hg.element,!0);e.K.push(E.hg);w++}}var C=N.more||N.moreLink,r=new g.W({S:"a",dP:["ytp-share-panel-service-button","ytp-button"],W:[{S:"span",B:"ytp-share-panel-service-button-more",W:[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{S:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{S:"path",V:{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"}}]}]}],V:{href:C,target:"_blank",title:"More"}});r.listen("click",function(Y){var M=C;e.api.logClick(e.moreButton.element);M=MTE(e,M);g.Uc(M,e.api,Y)&&e.api.Mg("SHARE_CLICKED")});
r.addOnDisposeCallback(g.MU(e.tooltip,r.element));e.api.createClientVe(r.element,r,164506);e.Y(r.element,"click",function(){e.api.logClick(r.element)});
e.api.logVisibility(r.element,!0);e.K.push(r);e.moreButton=r;e.updateValue("buttons",e.K)};
MTE=function(e,N){var y={};g.hR(e.api.X())&&(g.NU(e.api,"addEmbedsConversionTrackingParams",[y]),N=g.Qb(N,y));return N};
FOM=function(e){for(var N=g.c(e.K),y=N.next();!y.done;y=N.next())y=y.value,y.detach(),g.JV(y);e.K=[]};
zP=function(e){return e===void 0||e.startSec===void 0||e.endSec===void 0?!1:!0};
oLP=function(e,N){e.startSec+=N;e.endSec+=N};
h7J=function(e){qJ.call(this,e);this.N=this.J=this.isContentForward=this.G=!1;be_(this);this.Y(this.C,"changeProductsInVideoVisibility",this.pGl);this.Y(this.C,"videodatachange",this.onVideoDataChange)};
cM1=function(e){e.Z&&e.Rq.element.removeChild(e.Z.element);e.Z=void 0};
BVM=function(e,N){return N.map(function(y){var w,E;if((y=(w=g.m(y,kdM))==null?void 0:(E=w.thumbnail)==null?void 0:E.thumbnails)&&y.length!==0)return y[0].url}).filter(function(y){return y!==void 0}).map(function(y){y=new g.W({S:"img",
B:"ytp-suggested-action-product-thumbnail",V:{alt:"",src:y}});g.Q(e,y);return y})};
Xv5=function(e,N){e.isContentForward=N;g.Y1(e.badge.element,"ytp-suggested-action-badge-content-forward",N)};
io=function(e){var N=e.isContentForward&&!e.xZ();g.Y1(e.badge.element,"ytp-suggested-action-badge-preview-collapsed",N&&e.J);g.Y1(e.badge.element,"ytp-suggested-action-badge-preview-expanded",N&&e.N)};
DD=function(e,N,y){return new g.wF(e*1E3,N*1E3,{priority:9,namespace:y})};
P9M=function(e){e.C.MK("shopping_overlay_visible");e.C.MK("shopping_overlay_preview_collapsed");e.C.MK("shopping_overlay_preview_expanded");e.C.MK("shopping_overlay_expanded")};
be_=function(e){e.Y(e.C,g.AA("shopping_overlay_visible"),function(){e.iP(!0)});
e.Y(e.C,g.TW("shopping_overlay_visible"),function(){e.iP(!1)});
e.Y(e.C,g.AA("shopping_overlay_expanded"),function(){e.Kh=!0;ur(e)});
e.Y(e.C,g.TW("shopping_overlay_expanded"),function(){e.Kh=!1;ur(e)});
e.Y(e.C,g.AA("shopping_overlay_preview_collapsed"),function(){e.J=!0;io(e)});
e.Y(e.C,g.TW("shopping_overlay_preview_collapsed"),function(){e.J=!1;io(e)});
e.Y(e.C,g.AA("shopping_overlay_preview_expanded"),function(){e.N=!0;io(e)});
e.Y(e.C,g.TW("shopping_overlay_preview_expanded"),function(){e.N=!1;io(e)})};
vLF=function(e){g.W.call(this,{S:"div",B:"ytp-shorts-title-channel",W:[{S:"a",B:"ytp-shorts-title-channel-logo",V:{href:"{{channelLink}}",target:e.X().D,"aria-label":"{{channelLogoLabel}}"}},{S:"div",B:"ytp-shorts-title-expanded-heading",W:[{S:"div",B:"ytp-shorts-title-expanded-title",W:[{S:"a",b9:"{{expandedTitle}}",V:{href:"{{channelTitleLink}}",target:e.X().D,tabIndex:"0"}}]}]}]});var N=this;this.api=e;this.J=this.hW("ytp-shorts-title-channel-logo");this.channelName=this.hW("ytp-shorts-title-expanded-title");
this.subscribeButton=null;e.createClientVe(this.J,this,36925);this.Y(this.J,"click",function(y){N.api.logClick(N.J);g.qm(window,dr5(N));y.preventDefault()});
e.createClientVe(this.channelName,this,37220);this.Y(this.channelName,"click",function(y){N.api.logClick(N.channelName);g.qm(window,dr5(N));y.preventDefault()});
I_9(this);this.Y(e,"videodatachange",this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.GZ()};
I_9=function(e){if(!e.api.X().jn){var N=e.api.getVideoData(),y=new g.TP("Subscribe",null,"Subscribed",null,!0,!1,N.iI,N.subscribed,"channel_avatar",null,e.api,!0);e.api.createServerVe(y.element,e);var w;e.api.setTrackingParams(y.element,((w=N.subscribeButtonRenderer)==null?void 0:w.trackingParams)||null);e.Y(y.element,"click",function(){e.api.logClick(y.element)});
e.subscribeButton=y;g.Q(e,e.subscribeButton);e.subscribeButton.yB(e.element)}};
dr5=function(e){var N=e.api.X(),y=e.api.getVideoData();y=g.RK(N)+y.SR;if(!g.hR(N))return y;N={};g.NU(e.api,"addEmbedsConversionTrackingParams",[N]);return g.Qb(y,N)};
gC=function(e){g.Dq.call(this,e,{S:"button",dP:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{S:"div",B:"ytp-skip-intro-button-text",b9:"Skip Intro"}]},100);var N=this;this.K=!1;this.J=new g.e6(function(){N.hide()},5E3);
this.Js=this.YB=NaN;g.Q(this,this.J);this.G=function(){N.show()};
this.Z=function(){N.hide()};
this.j=function(){var y=N.C.getCurrentTime();y>N.YB/1E3&&y<N.Js/1E3&&N.show()};
this.Y(this.C,"videodatachange",function(y,w){N.vc(y,w)});
this.Y(this.element,"click",function(){N.C.seekTo(N.Js/1E3)});
this.hide()};
Vs=function(e){g.W.call(this,{S:"button",dP:["ytp-airplay-button","ytp-button"],V:{title:"AirPlay","data-priority":"10"},b9:"{{icon}}"});this.C=e;this.listen("click",this.onClick);this.Y(e,"airplayactivechange",this.GZ);this.Y(e,"airplayavailabilitychange",this.GZ);this.GZ();lh(e,this.element,this)};
ie3=function(e){g.W.call(this,{S:"div",B:"ytp-gradient-bottom"});this.N=g.sA("CANVAS");this.J=this.N.getContext("2d",{willReadFrequently:!0});this.K=NaN;this.N.width=1;z7M(this,e.Fz().getPlayerSize().height)};
z7M=function(e,N){if(e.J){N=Math.floor(N*.4);N=Math.max(N,47);var y=N+2;if(e.K!==y){e.K=y;e.N.height=y;e.J.clearRect(0,0,1,y);var w=e.J.createLinearGradient(0,2,0,2+N),E=N-42;w.addColorStop(0,"rgba(0, 0, 0, 0)");w.addColorStop(E/N,"rgba(0, 0, 0, 0.3)");w.addColorStop(1,"rgba(0, 0, 0, 0.68)");e.J.fillStyle=w;e.J.fillRect(0,2,1,N);e.element.style.height=y+"px";try{e.element.style.backgroundImage="url("+e.N.toDataURL()+")"}catch(A){}}}};
fJ=function(e,N,y,w){g.W.call(this,{S:"div",B:"ytp-chapter-container",W:[{S:"button",dP:["ytp-chapter-title","ytp-button"],W:[{S:"span",V:{"aria-hidden":"true"},B:"ytp-chapter-title-prefix",b9:"\u2022"},{S:"div",B:"ytp-chapter-title-content",b9:"{{title}}",V:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:w}},{S:"div",B:"ytp-chapter-title-chevron",W:[{S:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",
fill:"#fff"}}]}]}]}]});this.C=e;this.j=N;this.Z="";this.currentIndex=0;this.N=void 0;this.K=!0;this.Ng=this.hW("ytp-chapter-container");this.J=this.hW("ytp-chapter-title");this.Kh=this.hW("ytp-chapter-title-content");this.updateVideoData("newdata",this.C.getVideoData());this.Y(e,"videodatachange",this.updateVideoData);this.Y(this.Ng,"click",this.onClick);this.Y(e,g.AA(y),this.HY);this.Y(e,"onLoopRangeChange",this.HY);this.Y(e,"innertubeCommand",this.onClickCommand);(e=g.vg(this.C.X()))&&g.Y1(this.J,
"ytp-profile-page",!0);this.C.T("web_player_updated_entrypoint")&&g.Y1(this.element,"ytp-xs-mono-button-style",!0);g.hR(this.C.X())||e||lh(this.C,this.Kh,this)};
tk=function(e,N){fJ.call(this,e,N,"chapterCueRange","View chapter");this.G=""};
Dr5=function(e,N,y,w,E){var A=N.Qp/N.rows,T=Math.min(y/(N.XL/N.columns),w/A),p=N.XL*T,C=N.Qp*T;p=Math.floor(p/N.columns)*N.columns;C=Math.floor(C/N.rows)*N.rows;var r=p/N.columns,Y=C/N.rows,M=-N.column*r,l=-N.row*Y;E&&A<=45&&(Y-=1/T);r-=2/T;e=e.style;e.width=r+"px";e.height=Y+"px";E||(w=(w-Y)/2,y=(y-r)/2,e.marginTop=Math.floor(w)+"px",e.marginBottom=Math.ceil(w)+"px",e.marginLeft=Math.floor(y)+"px",e.marginRight=Math.ceil(y)+"px");e.background="url("+N.url+") "+M+"px "+l+"px/"+p+"px "+C+"px"};
uo=function(e,N){g.W.call(this,{S:"div",B:"ytp-storyboard-framepreview",W:[{S:"div",B:"ytp-storyboard-framepreview-timestamp",b9:"{{timestamp}}"},{S:"div",B:"ytp-storyboard-framepreview-img"}]});this.api=e;this.j=this.hW("ytp-storyboard-framepreview-img");this.N=null;this.K=NaN;this.events=new g.fd(this);this.J=new g.NE(this,100);g.Q(this,this.events);g.Q(this,this.J);this.Y(this.api,"presentingplayerstatechange",this.Z);N&&this.Y(this.element,"click",function(){N.v5()})};
gL5=function(e,N){var y=!!e.N;e.N=N;e.N?(y||(e.events.Y(e.api,"videodatachange",function(){gL5(e,e.api.nO())}),e.events.Y(e.api,"progresssync",e.FI),e.events.Y(e.api,"appresize",e.G)),e.K=NaN,VTP(e),e.J.show(200)):(y&&g.g9(e.events),e.J.hide(),e.J.stop())};
VTP=function(e){var N=e.N,y=e.api.getCurrentTime(),w=e.api.Fz().getPlayerSize(),E=If(N,w.width);E=AeM(N,E,y);e.update({timestamp:g.P2(y)});E!==e.K&&(e.K=E,wrF(N,E,w.width),N=NjM(N,E,w.width),Dr5(e.j,N,w.width,w.height))};
f_E=function(e,N){g.W.call(this,{S:"button",dP:["ytp-fullscreen-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"11","data-title-no-tooltip":"{{data-title-no-tooltip}}"},b9:"{{icon}}"});this.C=e;this.N=N;this.message=null;this.J=g.MU(this.N.Rf(),this.element);this.K=new g.e6(this.Eh,2E3,this);g.Q(this,this.K);this.Y(e,"fullscreentoggled",this.q3);this.Y(e,"presentingplayerstatechange",this.GZ);this.Y(e,"resize",this.GZ);this.listen("click",this.onClick);g.h2()&&
(N=this.C.Fz(),this.Y(N,qH1(),this.rX),this.Y(N,ubn(document),this.bz));e.X().Y_||e.X().U||this.disable();e.createClientVe(this.element,this,139117);this.GZ();this.q3(e.isFullscreen())};
qh=function(e,N){g.W.call(this,{S:"button",dP:["ytp-button","ytp-jump-button"],V:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[N>0?{S:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",dP:["ytp-circle-arrow","ytp-svg-fill"],V:{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",dP:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"7.05",y:"15.05"}}]}:{S:"svg",V:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",dP:["ytp-circle-arrow","ytp-svg-fill"],V:{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",dP:["ytp-jump-button-text","ytp-svg-fill"],V:{x:"6.5",y:"15"}}]}]});var y=this;this.C=e;this.J=N;this.N=new g.e6(function(){y.K?(y.K=!1,y.N.start()):y.element.classList.remove("ytp-jump-spin","backwards")},250);
this.K=!1;(N=N>0)?this.C.createClientVe(this.element,this,36843):this.C.createClientVe(this.element,this,36844);var w=g.SO(N?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.J).toString()});this.update({title:w,"data-title-no-tooltip":w,"aria-keyshortcuts":N?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text");this.j.textContent=Math.abs(this.J).toString();this.listen("click",this.onClick,this);lh(e,this.element,
this)};
tT9=function(e,N){N?e.element.classList.add("ytp-jump-button-enabled"):e.element.classList.remove("ytp-jump-button-enabled");e.C.logVisibility(e.element,N);e.C.xp()};
ZD=function(e,N){fJ.call(this,e,N,"timedMarkerCueRange","View key moments");this.Y(e,g.TW("timedMarkerCueRange"),this.HY);this.Y(e,"updatemarkervisibility",this.updateVideoData)};
u5M=function(e){var N,y=(N=e.C.getVideoData())==null?void 0:N.Dl;if(y)for(e=e.j.Zl,y=g.c(y),N=y.next();!N.done;N=y.next())if(N=e[N.value]){var w=void 0,E=void 0,A=void 0;if(((w=N.onTap)==null?void 0:(E=w.innertubeCommand)==null?void 0:(A=E.changeEngagementPanelVisibilityAction)==null?void 0:A.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return N}};
jz=function(e){var N=e.T("web_enable_pip_on_miniplayer");g.W.call(this,{S:"button",dP:["ytp-miniplayer-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[N?{S:"svg",V:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{S:"g",V:{transform:"translate(96, -96) scale(0.8)"},W:[{S:"path",Az:!0,V:{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"}}]}]}:
d7E()]});this.C=e;this.visible=!1;this.listen("click",this.onClick);this.Y(e,"fullscreentoggled",this.GZ);this.updateValue("title",g.FT(e,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});lh(e,this.element,this);e.createClientVe(this.element,this,62946);this.GZ()};
nJ=function(e,N,y){y=y===void 0?!1:y;g.W.call(this,{S:"button",dP:["ytp-mute-button","ytp-button"],V:e.X().Et?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},b9:"{{icon}}"});this.C=e;this.i9=y;this.J=null;this.j=this.D=this.Z=this.Kh=NaN;this.qg=this.G=null;this.K=[];this.N=[];this.visible=!1;this.U=null;e.T("delhi_modern_web_player")&&this.update({"data-priority":3});
y=this.C.X();this.updateValue("icon",Dh());this.tooltip=N.Rf();this.J=new g.r1({S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"defs",W:[{S:"clipPath",V:{id:"ytp-svg-volume-animation-mask"},W:[{S:"path",V:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{S:"path",V:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{S:"path",B:"ytp-svg-volume-animation-mover",V:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{S:"clipPath",V:{id:"ytp-svg-volume-animation-slash-mask"},
W:[{S:"path",B:"ytp-svg-volume-animation-mover",V:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{S:"path",Az:!0,dP:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],V:{"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",Az:!0,dP:["ytp-svg-fill","ytp-svg-volume-animation-hider"],V:{"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.Q(this,this.J);this.G=this.J.hW("ytp-svg-volume-animation-speaker");this.qg=this.G.getAttribute("d");this.K=g.QM("ytp-svg-volume-animation-mover",this.J.element);this.N=g.QM("ytp-svg-volume-animation-hider",this.J.element);this.l9=new rH;g.Q(this,this.l9);this.Ng=new rH;g.Q(this,this.Ng);this.listen("click",this.nkP);this.Y(e,"appresize",this.eG);this.Y(e,"onVolumeChange",this.onVolumeChange);var w=null;y.Et?this.addOnDisposeCallback(g.MU(N.Rf(),
this.element)):(N="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),w=new g.Dq(e,{S:"span",dP:["ytp-popup","ytp-generic-popup"],V:{tabindex:"0"},W:[N[0],{S:"a",V:{href:"https://support.google.com/youtube/?p=noaudio",target:y.D},b9:N[2]},N[4]]},100,!0),g.Q(this,w),w.hide(),w.subscribe("show",function(E){e.wG(w,E)}),g.Pb(e,w.element,4));
this.message=w;e.createClientVe(this.element,this,28662);this.eG(e.Fz().getPlayerSize());this.setVolume(e.getVolume(),e.isMuted())};
xrM=function(e,N){e.Kh=N;var y=e.qg;N&&(y+=TC_(qy0,Ze9,N));e.G.setAttribute("d",y)};
ja1=function(e,N){e.D=N;for(var y=20*N,w=0;w<e.K.length;w++)e.K[w].setAttribute("transform","translate("+y+", "+y+")");var E;N===1?E=Dh():E=e.J;for(y=0;y<e.N.length;y++){w=e.N[y];var A=void 0;if((A=w)==null?0:A.style)w.style.display=N===0?"none":""}E!==e.U&&(e.updateValue("icon",E),e.U=E)};
g.Qs=function(e,N){g.W.call(this,{S:"button",dP:["ytp-play-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},b9:"{{icon}}"});this.C=e;this.J=null;this.transition=new rH;this.tooltip=N.Rf();g.Q(this,this.transition);e.createClientVe(this.element,this,36842);e.T("embeds_use_parent_visibility_in_ve_logging")?e.logVisibility(this.element,this.L):e.logVisibility(this.element,!0);this.Y(e,"fullscreentoggled",this.onVideoDataChange);this.Y(e,
"presentingplayerstatechange",this.onStateChange);this.Y(e,"videodatachange",this.onVideoDataChange);this.IJ(e.getPlayerStateObject());this.listen("click",this.uX,this);this.addOnDisposeCallback(g.MU(N.Rf(),this.element))};
nLn=function(e){switch(e){case 1:return IM();case 2:return XV1();case 3:return g.vq();case 4:return v$H();default:return null}};
g.m2=function(e,N,y){g.W.call(this,{S:"a",dP:[y?"ytp-next-button":"ytp-prev-button","ytp-button"],V:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},W:[y?X3():Im3()]});var w=this;this.C=e;this.J=y;this.playlist=this.videoData=null;this.G=
!1;this.j=this.Z=this.N=null;this.K=!1;this.tooltip=N.Rf();y?e.createClientVe(this.element,this,6193):e.createClientVe(this.element,this,6194);this.Y(e,"fullscreentoggled",this.onVideoDataChange);this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"onPlaylistUpdate",this.onVideoDataChange);this.Y(e,"onLoopRangeChange",this.onVideoDataChange);this.J||this.Y(e,"appresize",this.n5);this.Y(e,"mdxpreviousnextchange",function(){QaE(w);w.n5()});
this.onVideoDataChange()};
mr0=function(e){e.playlist&&e.playlist.unsubscribe("shuffle",e.onVideoDataChange,e)};
HeM=function(e){return!!e.playlist&&!e.J&&!!e.videoData&&!e.videoData.isLivePlayback&&e.C.getCurrentTime()>=3&&e.C.getPresentingPlayerType()!==2};
KO5=function(e){var N=hu(e.C.jR());return N?e.J?N.gk():N.GJ():!1};
QaE=function(e){var N={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},y=e.playlist!=null&&e.playlist.gk();y=g.cb(e.C)&&(!e.J||y);var w=e.J&&g.dZ(e.C),E=KO5(e),A=e.J&&e.C.getPresentingPlayerType()===5,T=g.FT(e.C,"Next","SHIFT+n"),p=g.FT(e.C,"Previous","SHIFT+p");if(A)N.title="Start video";else if(e.K)N.title="Replay";else if(y){var C=null;e.playlist&&(C=g.Bo(e.playlist,e.J?jmH(e.playlist):ny9(e.playlist)));if(C){if(C.videoId){var r=e.playlist.listId;
N.url=e.C.X().getVideoUrl(C.videoId,r?r.toString():void 0)}N.text=C.title;N.duration=C.lengthText?C.lengthText:C.lengthSeconds?g.P2(C.lengthSeconds):null;N.preview=C.LN("mqdefault.jpg")}e.J?(N.title=T,N["data-title-no-tooltip"]="Next",N["aria-keyshortcuts"]="SHIFT+n"):(N.title=p,N["data-title-no-tooltip"]="Previous",N["aria-keyshortcuts"]="SHIFT+p")}else if(w){if(p=(C=e.videoData)==null?void 0:g.HH(C))N.url=p.ew(),N.text=p.title,N.duration=p.lengthText?p.lengthText:p.lengthSeconds?g.P2(p.lengthSeconds):
null,N.preview=p.LN("mqdefault.jpg");N.title=T;N["data-title-no-tooltip"]="Next";N["aria-keyshortcuts"]="SHIFT+n"}N.disabled=!w&&!y&&!E&&!A;e.update(N);e.G=!!N.url;w||y||e.K||E||A?e.N||(e.N=g.MU(e.tooltip,e.element),e.Z=e.listen("click",e.onClick,e)):e.N&&(e.N(),e.N=null,e.CX(e.Z),e.Z=null);e.tooltip.xp();g.Y1(e.element,"ytp-playlist-ui",e.J&&y)};
Oe3=function(e,N){g.W.call(this,{S:"div",B:"ytp-fine-scrubbing",W:[{S:"div",B:"ytp-fine-scrubbing-draggable",W:[{S:"div",B:"ytp-fine-scrubbing-thumbnails",V:{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",V:{"aria-hidden":"true"},B:"ytp-fine-scrubbing-cursor"},{S:"div",B:"ytp-fine-scrubbing-seek-time",V:{"aria-hidden":"true"},
b9:"{{seekTime}}"},{S:"div",B:"ytp-fine-scrubbing-play",W:[IM()],V:{title:"Play from this position",role:"button"}},{S:"div",B:"ytp-fine-scrubbing-dismiss",W:[g.kl()],V:{title:"Exit precise seeking",role:"button"}}]});var y=this;this.api=e;this.Z=this.hW("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.hW("ytp-fine-scrubbing-dismiss");this.qg=this.hW("ytp-fine-scrubbing-draggable");this.playButton=this.hW("ytp-fine-scrubbing-play");this.thumbnails=[];this.N=[];this.aq=this.J=0;this.Rq=void 0;
this.Ng=NaN;this.Zl=this.D=this.K=this.U=0;this.j=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.Et=0;this.isEnabled=this.i9=!1;WO5(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.MU(N,this.dismissButton));this.addOnDisposeCallback(g.MU(N,this.playButton));this.l9=new g.sd(this.qg,!0);this.l9.subscribe("dragstart",this.Xg,this);this.l9.subscribe("dragmove",this.Yd,this);this.l9.subscribe("dragend",this.iU,this);this.Y(e,"SEEK_COMPLETE",this.IE);e.T("web_fix_fine_scrubbing_false_play")&&
this.Y(e,"rootnodemousedown",function(w){y.Kh=w});
this.Z.addEventListener("keydown",function(){});
g.Q(this,this.l9);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.Z,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
WO5=function(e,N){var y=g.P2(N),w=g.SO("Seek to $PROGRESS",{PROGRESS:g.P2(N,!0)});e.update({ariamin:0,ariamax:Math.floor(e.api.getDuration()),arianow:Math.floor(N),arianowtext:w,seekTime:y})};
R7M=function(e){e.Ng=NaN;e.D=0;e.U=e.K};
LOM=function(e){var N=e.api.nO();if(N){var y=90*e.scale,w=If(N,160*e.scale);if(N=N.levels[w]){e.G=N.width;if(!e.j.length){w=[];for(var E=vH(N,N.La()),A=N.columns*N.rows,T=N.frameCount,p=0;p<=E;p++)for(var C=T<A?Math.ceil(T/N.columns):N.rows,r=0;r<N.rows;r++){var Y=T<N.columns?T:N.columns,M={url:N.nC(p),column:0,columns:Y,row:r,rows:C,XL:N.width*Y,Qp:N.height*C};w.push(M);T-=Y;if(T<=1)break}e.j=w;e.frameCount=N.VC();e.interval=N.J/1E3||e.api.getDuration()/e.frameCount}for(;e.thumbnails.length>e.j.length;)w=
void 0,(w=e.thumbnails.pop())==null||w.dispose();for(;e.thumbnails.length<e.j.length;)w=new Gd5,e.thumbnails.push(w),w.yB(e.Z),g.Q(e,w);for(w=0;w<e.j.length;w++)E=e.thumbnails[w].element,A=e.j[w],T=e.G*e.scale,p=A.Qp/A.rows,C=y/p,E.style.background="url("+A.url+") 0 "+-A.row*A.Qp/A.rows*C+"px/"+T*N.columns+"px "+p*A.rows*C+"px",E.style.width=T*A.columns+"px",E.style.height=y+"px";H6(e,e.api.getCurrentTime());for(y=e.api.getVideoData().ll;e.N.length>y.length;)w=void 0,(w=e.N.pop())==null||w.dispose();
for(;e.N.length<y.length;)w=new Ur9,e.N.push(new Ur9),g.Q(e,w);for(w=0;w<y.length;w++)E=y[w],e.N[w].update({chapterTitle:E.title}),E=Math.round(E.startTime/N.J),A=Math.floor(E/N.rows),g.$0(e.N[w].element,"transform","translateX("+E%N.rows*e.G*e.scale+"px)"),A<e.thumbnails.length&&e.thumbnails[A]&&e.N[w].yB(e.thumbnails[A].element);e.i9=!0}}};
H6=function(e,N){e.Kh&&(e.Kh.QG=!0);e.update({seekTime:g.P2(N)});var y=e.G*e.scale;N=N<e.interval/2?-N*y/e.interval*2+e.J/2:-N*y/e.interval-y/2+e.J/2;N=g.Ja(N,san(e),e.J/2);e.U=N;e.K=e.U;g.$0(e.qg,"transform","translateX("+(e.U-e.J/2)+"px)");g.$0(e.qg,"padding","0px "+e.J/2+"px");g.$0(e.Z,"position","relative")};
a_0=function(e,N){var y=e.G*e.scale;N-=e.J/2;return N>-y?-N/y*e.interval*.5:-(N+y/2)/y*e.interval};
san=function(e){return-((e.Z.offsetWidth||(e.frameCount-1)*e.G*e.scale)-e.J/2)};
Gd5=function(){g.W.call(this,{S:"div",B:"ytp-fine-scrubbing-thumbnail"})};
Ur9=function(){g.W.call(this,{S:"div",B:"ytp-fine-scrubbing-chapter-title",W:[{S:"div",B:"ytp-fine-scrubbing-chapter-title-content",b9:"{{chapterTitle}}"}]})};
eUM=function(e){g.W.call(this,{S:"div",B:"ytp-heat-map-chapter",W:[{S:"svg",B:"ytp-heat-map-svg",V:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{S:"defs",W:[{S:"clipPath",V:{id:"{{id}}"},W:[{S:"path",B:"ytp-heat-map-path",V:{d:"",fill:"white"}}]},{S:"linearGradient",V:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{S:"stop",V:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{S:"stop",V:{offset:"100%",
"stop-color":"white","stop-opacity":"0"}}]}]},{S:"rect",B:"ytp-heat-map-graph",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",B:"ytp-heat-map-hover",V:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{S:"rect",B:"ytp-heat-map-play",V:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{S:"path",B:"ytp-modern-heat-map",V:{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=e;this.U=this.hW("ytp-heat-map-svg");this.Z=this.hW("ytp-heat-map-path");this.j=this.hW("ytp-heat-map-graph");this.G=this.hW("ytp-heat-map-play");this.J=this.hW("ytp-heat-map-hover");this.K=this.hW("ytp-modern-heat-map");this.WG=!1;this.N=60;e=""+g.RP(this);this.update({id:e});e="url(#"+e+")";this.j.setAttribute("clip-path",e);this.G.setAttribute("clip-path",e);this.J.setAttribute("clip-path",
e)};
NMM=function(e,N){N>0&&(e.N=N,e.U.style.height=e.N+"px")};
KJ=function(){g.W.call(this,{S:"div",B:"ytp-chapter-hover-container",W:[{S:"div",B:"ytp-progress-bar-padding"},{S:"div",B:"ytp-progress-list",W:[{S:"div",dP:["ytp-play-progress","ytp-swatch-background-color"]},{S:"div",B:"ytp-progress-linear-live-buffer"},{S:"div",B:"ytp-load-progress"},{S:"div",B:"ytp-hover-progress"},{S:"div",B:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.N=this.hW("ytp-progress-list");this.Z=this.hW("ytp-progress-linear-live-buffer");
this.j=this.hW("ytp-ad-progress-list");this.G=this.hW("ytp-load-progress");this.U=this.hW("ytp-play-progress");this.K=this.hW("ytp-hover-progress");this.J=this.hW("ytp-chapter-hover-container")};
W6=function(e,N){g.$0(e.J,"width",N)};
ysE=function(e,N){g.$0(e.J,"margin-right",N+"px")};
wj5=function(){this.N=this.position=this.K=this.J=this.j=this.width=NaN};
EW5=function(){g.W.call(this,{S:"div",B:"ytp-timed-marker"});this.J=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.Rm=function(e,N){g.Mu.call(this,{S:"div",B:"ytp-progress-bar-container",V:{"aria-disabled":"true"},W:[{S:"div",dP:["ytp-heat-map-container"],W:[{S:"div",B:"ytp-heat-map-edu"}]},{S:"div",dP:["ytp-progress-bar"],V:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{S:"div",B:"ytp-chapters-container"},{S:"div",B:"ytp-timed-markers-container"},{S:"div",B:"ytp-clip-start-exclude"},
{S:"div",B:"ytp-clip-end-exclude"},{S:"div",B:"ytp-scrubber-container",W:[{S:"div",dP:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{S:"div",B:"ytp-scrubber-pull-indicator"},{S:"img",dP:["ytp-decorated-scrubber-button"]}]}]}]},{S:"div",dP:["ytp-fine-scrubbing-container"],W:[{S:"div",B:"ytp-fine-scrubbing-edu"}]},{S:"div",B:"ytp-bound-time-left",b9:"{{boundTimeLeft}}"},{S:"div",B:"ytp-bound-time-right",b9:"{{boundTimeRight}}"},{S:"div",B:"ytp-clip-start",V:{title:"{{clipstarttitle}}"},b9:"{{clipstarticon}}"},
{S:"div",B:"ytp-clip-end",V:{title:"{{clipendtitle}}"},b9:"{{clipendicon}}"}]});this.api=e;this.WE=!1;this.jp=this.CN=this.Bk=this.G=this.Rx=0;this.YO=null;this.aq={};this.Y_={};this.clipEnd=Infinity;this.dT=this.hW("ytp-clip-end");this.FZ=new g.sd(this.dT,!0);this.pX=this.hW("ytp-clip-end-exclude");this.jn=this.hW("ytp-clip-start-exclude");this.clipStart=0;this.SR=this.hW("ytp-clip-start");this.PY=new g.sd(this.SR,!0);this.D=this.VB=0;this.progressBar=this.hW("ytp-progress-bar");this.Kx={};this.Zl=
{};this.Xz=this.hW("ytp-chapters-container");this.NG=this.hW("ytp-timed-markers-container");this.J=[];this.Z=[];this.im={};this.sY=null;this.qg=-1;this.Dl=this.l9=0;this.U=null;this.DD=this.hW("ytp-scrubber-button");this.LX=this.hW("ytp-decorated-scrubber-button");this.Pf=this.hW("ytp-scrubber-container");this.Ut=new g.ri;this.Fr=new wj5;this.K=new fR(0,0);this.c9=null;this.Ng=this.UY=!1;this.Js=null;this.Kh=this.hW("ytp-heat-map-container");this.CC=this.hW("ytp-heat-map-edu");this.j=[];this.heatMarkersDecorations=
[];this.Wk=this.hW("ytp-fine-scrubbing-container");this.U2=this.hW("ytp-fine-scrubbing-edu");this.N=void 0;this.i9=this.NK=this.Rq=!1;this.tooltip=N.Rf();this.addOnDisposeCallback(g.MU(this.tooltip,this.dT));g.Q(this,this.FZ);this.FZ.subscribe("hoverstart",this.fZ,this);this.FZ.subscribe("hoverend",this.tJ,this);this.Y(this.dT,"click",this.Ur);this.addOnDisposeCallback(g.MU(this.tooltip,this.SR));g.Q(this,this.PY);this.PY.subscribe("hoverstart",this.fZ,this);this.PY.subscribe("hoverend",this.tJ,this);
this.Y(this.SR,"click",this.Ur);AsM(this);this.Y(e,"resize",this.I9);this.Y(e,"presentingplayerstatechange",this.KPt);this.Y(e,"videodatachange",this.vc);this.Y(e,"videoplayerreset",this.kZB);this.Y(e,"cuerangesadded",this.gxh);this.Y(e,"cuerangesremoved",this.fMl);this.Y(e,"onLoopRangeChange",this.g3);this.Y(e,"innertubeCommand",this.onClickCommand);this.Y(e,g.AA("timedMarkerCueRange"),this.Ju9);this.Y(e,"updatemarkervisibility",this.u3);this.Y(e,"serverstitchedvideochange",this.VZW);this.updateVideoData(e.getVideoData(),
!0);this.g3(e.getLoopRange());OL(this)&&!this.N&&(this.N=new Oe3(this.api,this.tooltip),e=g.hp(this.element).x||0,this.N.I9(e,this.G),this.N.yB(this.Wk),g.Q(this,this.N),this.Y(this.N.dismissButton,"click",this.v5),this.Y(this.N.playButton,"click",this.Z5),this.Y(this.N.element,"dblclick",this.Z5));this.api.createClientVe(this.Kh,this,139609,!0);this.api.createClientVe(this.CC,this,140127,!0);this.api.createClientVe(this.U2,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
AsM=function(e){if(e.J.length===0){var N=new KJ;e.J.push(N);g.Q(e,N);N.yB(e.Xz,0)}for(;e.J.length>1;)e.J.pop().dispose();W6(e.J[0],"100%");e.J[0].startTime=0;e.J[0].title=""};
TMP=function(e){var N=N===void 0?NaN:N;var y=new eUM(e.api);e.j.push(y);g.Q(e,y);y.yB(e.Kh);N>=0&&(y.element.style.width=N+"px")};
Js0=function(e){for(;e.Z.length;)e.Z.pop().dispose()};
CWn=function(e){var N,y,w,E,A;return(A=g.m((E=g.m((N=e.getWatchNextResponse())==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.decoratedPlayerBarRenderer,Sx))==null?void 0:E.playerBar,pj5))==null?void 0:A.chapters};
rs9=function(e){for(var N=e.J,y=[],w=0;w<N.length;w++)if(!isNaN(N[w].startTime)){var E=N[w].startTime;E=new g.wF(E,w===N.length-1?Infinity:N[w+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+E});y.push(E)}e.api.MK("chapterCueRange");e.api.wx(y)};
bF0=function(e,N){var y,w=(y=e.Kx[N])==null?void 0:y.chapters;w&&($ns(e,w),e.api.getVideoData().ll=e.J,rs9(e));var E;if((y=(E=e.Kx[N])==null?void 0:E.markers)&&N!=="HEATSEEKER"){Js0(e);E=g.c(y);for(y=E.next();!y.done;y=E.next())if(w=y.value,y=new EW5,w=g.m(w,g.YOE)){var A=void 0;y.title=((A=w.title)==null?void 0:A.simpleText)||"";A=void 0;y.timeRangeStartMillis=(A=w.timeRangeStartMillis)!=null?A:NaN;var T=A=void 0;y.onActiveCommand=(T=(A=w)==null?void 0:A.onActiveCommand)!=null?T:void 0;MW9(e,y)}lIs(e,
e.Z);E=e.Z;y=e.im;w=[];for(A=0;A<E.length;A++)!isNaN(E[A].timeRangeStartMillis)&&E[A].onActiveCommand&&(T=GIP(E[A].timeRangeStartMillis,A===E.length-1?Infinity:E[A+1].timeRangeStartMillis),w.push(T),y[T.id]=E[A].onActiveCommand);e.api.wx(w)}var p;if(N=g.m((p=e.Kx[N])==null?void 0:p.heatmap,Fgs)){p=N.heatMarkers||[];var C;E=(C=N.minHeightDp)!=null?C:0;var r;C=(r=N.maxHeightDp)!=null?r:60;r=e.J.length;y=null;for(w=0;w<r;w++){T=e.J[w].startTime;var Y=w===r-1?Infinity:e.J[w+1].startTime;w===e.j.length&&
TMP(e);A=[];y&&A.push(y);for(var M=g.c(p),l=M.next();!l.done;l=M.next()){l=l.value;var F=void 0,S=void 0,k=(S=(F=g.m(l,SOJ))==null?void 0:F.timeRangeStartMillis)!=null?S:-1;k>=T&&k<=Y&&A.push(l)}C>0&&(e.Kh.style.height=C+"px");T=e.j[w];Y=A;l=E;S=C;k=w===0;k=k===void 0?!1:k;NMM(T,S);M=Y;F=T.N;k=k===void 0?!1:k;var X=1E3/M.length,d=[];d.push({x:0,y:100});for(var v=0;v<M.length;v++){var V=void 0,Z=((V=g.m(M[v],SOJ))==null?void 0:V.heatMarkerIntensityScoreNormalized)||0;V=(v+.5)*X;Z=100-g.Ja(Z*100,l/
F*100,S/F*100);v!==0||k||d.push({x:0,y:Z});d.push({x:V,y:Z});v===M.length-1&&d.push({x:1E3,y:Z})}d.push({x:1E3,y:100});M=d;Y=Y.length===0?"":U6P(M);T.api.T("delhi_modern_web_player")?T.K.setAttribute("d",Y):T.Z.setAttribute("d",Y);T.WG=Y!=="";g.Y1(T.api.getRootNode(),"ytp-heat-map",T.WG);g.Y1(T.api.getRootNode(),"ytp-heat-map-played_bar",T.api.T("web_player_heat_map_played_bar")&&Y!=="");T.api.T("delhi_modern_web_player")&&(T.K.style.display="block",T.j.style.display="none",T.J.style.display="none");
A.length>0&&(y=A[A.length-1])}g.GP(e);p=[];N=g.c(N.heatMarkersDecorations||[]);for(E=N.next();!E.done;E=N.next())if(E=g.m(E.value,oWJ))C=E.label,w=y=r=void 0,p.push({visibleTimeRangeStartMillis:(r=E.visibleTimeRangeStartMillis)!=null?r:-1,visibleTimeRangeEndMillis:(y=E.visibleTimeRangeEndMillis)!=null?y:-1,decorationTimeMillis:(w=E.decorationTimeMillis)!=null?w:NaN,label:C?g.SY(C):""});e.heatMarkersDecorations=p}};
MW9=function(e,N){e.Z.push(N);g.Q(e,N);N.yB(e.NG,e.NG.children.length)};
lIs=function(e,N){N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var w=UL(e,y.timeRangeStartMillis/(e.K.J*1E3),LJ(e));g.$0(y.element,"transform","translateX("+w+"px) scaleX(0.6)")}};
$ns=function(e,N){var y=0,w=!1;N=g.c(N);for(var E=N.next();!E.done;E=N.next()){E=E.value;if(g.m(E,hU3)){E=g.m(E,hU3);var A={startTime:NaN,title:null,onActiveCommand:void 0},T=E.title;A.title=T?g.SY(T):"";T=E.timeRangeStartMillis;T!=null&&(A.startTime=T);A.onActiveCommand=E.onActiveCommand;E=A;y===0&&E.startTime!==0&&(e.J[y].startTime=0,e.J[y].title="",e.J[y].onActiveCommand=E.onActiveCommand,y++,w=!0);e.J.length<=y&&(A=new KJ,e.J.push(A),g.Q(e,A),A.yB(e.Xz,e.Xz.children.length));e.J[y].startTime=
E.startTime;e.J[y].title=E.title?E.title:"";e.J[y].onActiveCommand=E.onActiveCommand;e.J[y].index=w?y-1:y}y++}for(;y<e.J.length;)e.J.pop().dispose();g.GP(e);sL(e)};
g.GP=function(e){e.l9=e.J.length-1;e.Dl=0;cs_(e,!0)&&cs_(e,!1);for(var N=0,y=0;y<e.J.length;y++)if(e.J[y].width===0){if(y===e.J.length-1)for(var w=e.J.length-1;w>=0;w--)if(e.J[w].width>0){ysE(e.J[w],0);var E=Math.floor(e.J[w].width);e.J[w].width=E;W6(e.J[w],E+"px");break}e.J[y].width=0;W6(e.J[y],"0")}else y===e.J.length-1?(w=Math.floor(e.J[y].width+N),e.J[y].width=w,W6(e.J[y],w+"px")):(N=e.J[y].width+N,w=Math.round(N),N-=w,e.J[y].width=w,W6(e.J[y],w+"px"));y=0;if(e.j.length===e.J.length)for(N=0;N<
e.j.length;N++)w=e.J[N].width,e.j[N].element.style.width=w+"px",e.j[N].element.style.left=y+"px",y+=w+am(e);e.api.T("delhi_modern_web_player")&&(e.J.length===1?e.J[0].N.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(e.J[0].N.classList.remove("ytp-progress-bar-end"),e.J[0].N.classList.add("ytp-progress-bar-start"),e.J[e.J.length-1].N.classList.add("ytp-progress-bar-end")))};
cs_=function(e,N){var y=0,w=!1,E=e.J.length,A=e.K.J*1E3;A===0&&(A=e.api.getProgressState().seekableEnd*1E3);if(A>0&&e.G>0){for(var T=e.G-am(e)*e.l9,p=e.Dl===0?3:T*e.Dl,C=g.c(e.J),r=C.next();!r.done;r=C.next())r.value.width=0;for(;y<E;){C=A-e.J[y].startTime;y<E-1&&(C=e.J[y+1].startTime-e.J[y].startTime,ysE(e.J[y],am(e)));g.Y1(e.J[y].J,"ytp-exp-chapter-hover-container",e.J.length>1);r=(A===0?0:C/A*T)+e.J[y].width;if(r>p)e.J[y].width=r;else{e.J[y].width=0;var Y=e,M=y,l=Y.J[M-1];l!==void 0&&l.width>0?
l.width+=r:M<Y.J.length-1&&(Y.J[M+1].width+=r);ysE(Y.J[M],0);N&&(e.l9--,C/A>e.Dl&&(e.Dl=C/A),w=!0)}y++}}return w};
sL=function(e){if(e.G){var N=e.api.getProgressState(),y=e.api.getVideoData();if(!(y&&y.enableServerStitchedDai&&y.enablePreroll)||isFinite(N.current)){var w;if(((w=e.api.getVideoData())==null?0:HF(w))&&N.airingStart&&N.airingEnd)var E=e8(e,N.airingStart,N.airingEnd);else if(e.api.getPresentingPlayerType()===2&&e.api.X().T("show_preskip_progress_bar_for_skippable_ads")){var A,T,p;E=(y=(E=e.api.getVideoData())==null?void 0:(A=E.getPlayerResponse())==null?void 0:(T=A.playerConfig)==null?void 0:(p=T.webPlayerConfig)==
null?void 0:p.skippableAdProgressBarDuration)?e8(e,N.seekableStart,y/1E3):e8(e,N.seekableStart,N.seekableEnd)}else E=e8(e,N.seekableStart,N.seekableEnd);A=tF(E,N.loaded,0);N=tF(E,N.current,0);T=e.K.N!==E.N||e.K.J!==E.J;e.K=E;NV(e,N,A);T&&kA_(e);BM5(e)}}};
e8=function(e,N,y){return XjE(e)?new fR(Math.max(N,e.c9.startTimeMs/1E3),Math.min(y,e.c9.endTimeMs/1E3)):new fR(N,y)};
PW1=function(e,N){var y;if(((y=e.c9)==null?void 0:y.type)==="repeatChapter"||(N==null?void 0:N.type)==="repeatChapter")N&&(N=e.J[om(e.J,N.startTimeMs)],g.Y1(N.J,"ytp-repeating-chapter",!1)),e.c9&&(N=e.J[om(e.J,e.c9.startTimeMs)],g.Y1(N.J,"ytp-repeating-chapter",!0)),e.J.forEach(function(w){g.Y1(w.J,"ytp-exp-chapter-hover-container",!e.c9)})};
wT=function(e,N){var y=e.K;y=y.N+N.N*y.getLength();if(e.J.length>1){y=yq(e,N.K,!0);for(var w=0,E=0;E<y;E++)e.J[E].width>0&&(w+=e.J[E].width,w+=am(e));y=(e.J[y].startTime+(N.K-w)/e.J[y].width*((y===e.J.length-1?e.K.J*1E3:e.J[y+1].startTime)-e.J[y].startTime))/1E3||0}return y};
ED=function(e,N,y,w,E){N=N<0?0:Math.floor(Math.min(N,e.api.getDuration())*1E3);y=y<0?0:Math.floor(Math.min(y,e.api.getDuration())*1E3);e=e.progressBar.visualElement;w={seekData:{startMediaTimeMs:N,endMediaTimeMs:y,seekSource:w}};(N=g.It())&&g.NR(at)(void 0,N,e,E,w,void 0)};
dnF=function(e,N,y){if(y>=e.J.length)return!1;var w=e.G-am(e)*e.l9;return Math.abs(N-e.J[y].startTime/1E3)/e.K.J*w<4};
kA_=function(e){e.DD.style.removeProperty("height");for(var N=g.c(Object.keys(e.aq)),y=N.next();!y.done;y=N.next())IIs(e,y.value);AU(e);NV(e,e.D,e.VB)};
LJ=function(e){var N=e.Ut.x;N=g.Ja(N,0,e.G);e.Fr.update(N,e.G);return e.Fr};
JU=function(e){return(e.Ng?135:90)-TT(e)};
TT=function(e){var N=48,y=e.api.X();e.Ng?N=54:g.hR(y)&&!y.N?N=40:e.api.T("delhi_modern_web_player")&&(N=68);return N};
NV=function(e,N,y){e.D=N;e.VB=y;var w=LJ(e),E=e.K.J;var A=e.K;A=A.N+e.D*A.getLength();var T=g.SO("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.P2(A,!0),DURATION:g.P2(E,!0)}),p=om(e.J,A*1E3);p=e.J[p].title;e.update({ariamin:Math.floor(e.K.N),ariamax:Math.floor(E),arianow:Math.floor(A),arianowtext:p?p+" "+T:T});E=e.clipStart;A=e.clipEnd;e.c9&&e.api.getPresentingPlayerType()!==2&&(E=e.c9.startTimeMs/1E3,A=e.c9.endTimeMs/1E3);E=tF(e.K,E,0);p=tF(e.K,A,1);T=e.api.getVideoData();A=g.Ja(N,E,p);y=(T==null?
0:g.QG(T))?1:g.Ja(y,E,p);N=UL(e,N,w);g.$0(e.Pf,"transform","translateX("+N+"px)");pU(e,w,E,A,"PLAY_PROGRESS");(T==null?0:HF(T))?(N=e.api.getProgressState().seekableEnd)&&pU(e,w,A,tF(e.K,N),"LIVE_BUFFER"):pU(e,w,E,y,"LOAD_PROGRESS");if(e.api.T("web_player_heat_map_played_bar")){var C;(C=e.j[0])!=null&&C.G.setAttribute("width",(A*100).toFixed(2)+"%")}};
pU=function(e,N,y,w,E){var A=e.J.length,T=N.J-e.l9*am(e),p=y*T;y=yq(e,p);var C=w*T;T=yq(e,C);E==="HOVER_PROGRESS"&&(T=yq(e,N.J*w,!0),C=N.J*w-vW1(e,N.J*w)*am(e));w=Math.max(p-zUH(e,y),0);for(p=y;p<A;p++)e.J[p].ut(E).style.left=y===p?w+"px":"0";N=UL(e,e.D,N);for(A=y;A<T;A++){p=e.J[A].ut(E);var r=e.J[A].width,Y=A===y?r-w:r;CU(e,p,Y,r);iFM(e,p,Y,r,A,N,E)}A=e.J[T].width;C=g.Ja(C-zUH(e,T),0,A);y===T&&(C-=w);w=e.J[T].ut(E);CU(e,w,C,A);iFM(e,w,C,A,T,N,E);C=e.J.length;for(T+=1;T<C;T++)Dn5(e,T,E);for(T=0;T<
y;T++)Dn5(e,T,E)};
zUH=function(e,N){if(N>=e.J.length)return e.G;for(var y=0,w=0;w<N;)y+=e.J[w].width,w++;return y};
Dn5=function(e,N,y){y=e.J[N].ut(y);CU(e,y,0,e.J[N].width)};
iFM=function(e,N,y,w,E,A,T){e.api.T("enable_cairo_refresh_signature_moments_web")&&T==="PLAY_PROGRESS"&&(y=!w||e.api.X().N?1:y/w,e.jn.clientWidth>0||e.pX.clientWidth>0?(A=N.clientWidth/y,e=-1*e.jn.clientWidth/y):(A/=y,e=-1*e.J[E].element.offsetLeft/y),g.$0(N,"background-size",A+"px"),g.$0(N,"background-position-x",e+"px"))};
CU=function(e,N,y,w,E){E||e.api.X().N?N.style.width=y+"px":g.$0(N,"transform","scalex("+(w?y/w:0)+")")};
yq=function(e,N,y){var w=0;(y===void 0?0:y)&&(N-=vW1(e,N)*am(e));y=g.c(e.J);for(var E=y.next();!E.done;E=y.next()){E=E.value;if(N>E.width)N-=E.width;else break;w++}return w===e.J.length?w-1:w};
UL=function(e,N,y){var w=N*e.K.J*1E3;for(var E=-1,A=g.c(e.J),T=A.next();!T.done;T=A.next())T=T.value,w>T.startTime&&T.width>0&&E++;w=E<0?0:E;E=y.J-am(e)*e.l9;return N*E+am(e)*w+y.j};
vW1=function(e,N){for(var y=e.J.length,w=0,E=g.c(e.J),A=E.next();!A.done;A=E.next())if(A=A.value,A.width!==0)if(N>A.width)N-=A.width,N-=am(e),w++;else break;return w===y?y-1:w};
g.gWM=function(e,N,y,w){var E=e.G!==y,A=e.Ng!==w;e.Rx=N;e.G=y;e.Ng=w;OL(e)&&(N=e.N)!=null&&(N.scale=w?1.5:1);kA_(e);e.J.length===1&&(e.J[0].width=y||0);E&&g.GP(e);e.N&&A&&OL(e)&&(e.N.isEnabled&&(y=e.Ng?135:90,w=y-TT(e),e.Wk.style.height=y+"px",g.$0(e.Kh,"transform","translateY("+-w+"px)"),g.$0(e.progressBar,"transform","translateY("+-w+"px)")),LOM(e.N))};
AU=function(e){var N=!!e.c9&&e.api.getPresentingPlayerType()!==2,y=e.clipStart,w=e.clipEnd,E=!0,A=!0;N&&e.c9?(y=e.c9.startTimeMs/1E3,w=e.c9.endTimeMs/1E3):(E=y>e.K.N,A=e.K.J>0&&w<e.K.J);var T,p;if(((T=e.c9)==null?0:T.postId)||((p=e.c9)==null?void 0:p.type)==="repeatChapter")A=E=!1;g.Y1(e.element,"ytp-loop-range-enabled",N);g.Y1(e.element,"ytp-clip-start-enabled",E);g.Y1(e.element,"ytp-clip-end-enabled",A);N=E?tF(e.K,y,0):0;w=A?tF(e.K,w,1):1;e.SR.style.left=Math.round(N*1E3)/10+"%";e.dT.style.left=
Math.round(w*1E3)/10+"%";e.jn.style.width=Math.round(N*1E3)/10+"%";e.pX.style.left=Math.round(w*1E3)/10+"%";e.pX.style.width=Math.round((1-w)*1E3)/10+"%"};
BM5=function(e){var N;if((N=e.api.getVideoData())==null||!HF(N)){N=LJ(e);pU(e,N,e.D,Math.max(N.N,e.D),"HOVER_PROGRESS");for(var y=yq(e,N.J*e.D,!0),w=yq(e,N.K,!0),E=y;E<=w;E++)g.Y1(e.J[E].K,"ytp-hover-progress-light",N.N>e.D);g.Y1(e.DD,"ytp-scrubber-button-hover",y===w&&e.J.length>1);if(e.api.T("web_player_heat_map_played_bar")){var A;(A=e.j[0])!=null&&A.J.setAttribute("width",(N.N*100).toFixed(2)+"%")}}};
IIs=function(e,N){var y=e.aq[N];N=e.Y_[N];var w=LJ(e),E=tF(e.K,y.start/1E3,0),A=yZH(y,e.Ng)/w.width;var T=tF(e.K,y.end/1E3,1);A!==Number.POSITIVE_INFINITY&&(E=g.Ja(E,0,T-A));T=Math.min(T,E+A);y.color&&(N.style.background=y.color);y=E;N.style.left=Math.max(y*w.J+w.j,0)+"px";CU(e,N,g.Ja((T-y)*w.J+w.j,0,w.width),w.width,!0)};
VWE=function(e,N){var y=N.getId();e.aq[y]===N&&(g.ws(e.Y_[y]),delete e.aq[y],delete e.Y_[y])};
OL=function(e){var N=g.na(e.api.X())&&(e.api.T("web_enable_pip_on_miniplayer")||e.api.T("web_enable_auto_pip")),y;return!((y=e.api.getVideoData())==null?0:y.isLivePlayback)&&!e.api.isMinimized()&&!e.api.isInline()&&(!e.api.Wp()||!N)};
rT=function(e){e.N&&(e.N.disable(),e.Bk=0,e.Kh.style.removeProperty("transform"),e.progressBar.style.removeProperty("transform"),e.Wk.style.removeProperty("height"),e.element.parentElement&&e.element.parentElement.style.removeProperty("height"))};
fIM=function(e,N){var y=N/JU(e)*TT(e);g.$0(e.progressBar,"transform","translateY("+-N+"px)");g.$0(e.Kh,"transform","translateY("+-N+"px)");g.$0(e.Wk,"transform","translateY("+y+"px)");e.Wk.style.height=N+y+"px";e.element.parentElement&&(e.element.parentElement.style.height=TT(e)-y+"px")};
tW9=function(e,N){N?e.U||(e.element.removeAttribute("aria-disabled"),e.U=new g.sd(e.progressBar,!0),e.U.subscribe("hovermove",e.NaZ,e),e.U.subscribe("hoverend",e.JaW,e),e.U.subscribe("dragstart",e.Fsh,e),e.U.subscribe("dragmove",e.KsZ,e),e.U.subscribe("dragend",e.kaW,e),e.Js=e.listen("keydown",e.z0)):e.U&&(e.element.setAttribute("aria-disabled","true"),e.CX(e.Js),e.U.cancel(),e.U.dispose(),e.U=null)};
am=function(e){return e.api.T("delhi_modern_web_player")?4:e.Ng?3:2};
XjE=function(e){var N;return!((N=e.c9)==null||!N.postId)&&e.api.getPresentingPlayerType()!==2};
$M=function(e,N){g.W.call(this,{S:"button",dP:["ytp-remote-button","ytp-button"],V:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},b9:"{{icon}}"});this.C=e;this.x_=N;this.J=null;this.Y(e,"onMdxReceiversChange",this.GZ);this.Y(e,"presentingplayerstatechange",this.GZ);this.Y(e,"appresize",this.GZ);e.createClientVe(this.element,this,139118);this.GZ();this.listen("click",this.N,this);lh(e,this.element,this)};
YM=function(e,N){g.W.call(this,{S:"button",dP:["ytp-button","ytp-settings-button"],V:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":CT(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.zV()]});this.C=e;this.x_=N;this.N=!0;this.listen("click",this.K);this.Y(e,"onPlaybackQualityChange",this.updateBadge);this.Y(e,"videodatachange",this.updateBadge);this.Y(e,"webglsettingschanged",this.updateBadge);this.Y(e,"appresize",this.J);lh(e,this.element,this);this.C.createClientVe(this.element,
this,28663);this.updateBadge();this.J(e.Fz().getPlayerSize())};
upJ=function(e,N){e.N=!!N;e.J(e.C.Fz().getPlayerSize())};
MV=function(e,N){Oc.call(this,"Annotations",g.aq.vB);this.C=e;this.x_=N;this.J=!1;e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.Y(e,"videodatachange",this.GZ);this.Y(e,"onApiChange",this.GZ);this.subscribe("select",this.onSelect,this);this.GZ()};
lb=function(e,N){g.Go.call(this,"Audio track",g.aq.AUDIO,e,N);this.C=e;this.tracks={};g.pi(this.element,"ytp-audio-menu-item");this.countLabel=new g.W({S:"div",W:[{S:"span",b9:"Audio track"},{S:"span",B:"ytp-menuitem-label-count",b9:"{{content}}"}]});e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.Q(this,this.countLabel);g.tu(this,this.countLabel);this.Y(e,"videodatachange",this.GZ);this.Y(e,"onPlaybackAudioChange",this.GZ);this.GZ()};
Fq=function(e,N){Oc.call(this,"Autoplay",g.aq.II);this.C=e;this.x_=N;this.J=!1;this.K=[];this.Y(e,"presentingplayerstatechange",this.N);this.subscribe("select",this.onSelect,this);e.createClientVe(this.element,this,113682);this.N()};
qO3=function(e,N){g.uh.call(this,g.qU({"aria-haspopup":"false"}),0,"More options");this.C=e;this.x_=N;this.Y(this.element,"click",this.onClick);this.x_.Gi(this)};
ZFM=function(e,N){var y;g.na(e.X())&&(y={S:"div",B:"ytp-panel-footer-content",W:[{S:"span",b9:"Adjust download quality from your "},{S:"a",B:"ytp-panel-footer-content-link",b9:"Settings",V:{href:"/account_downloads"}}]});g.Go.call(this,"Quality",g.aq.e6,e,N,void 0,void 0,y);this.C=e;this.qg={};this.D={};this.j={};this.l9=new Set;this.J=this.Z=!1;this.G="unknown";this.Ng="";this.Kh=new g.UE;g.Q(this,this.Kh);this.Z=this.C.T("web_player_use_new_api_for_quality_pullback");this.J=this.C.T("web_player_enable_premium_hbr_playback_cap");
e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.pi(this.N.element,"ytp-quality-menu");this.Y(e,"videodatachange",this.m2);this.Y(e,"videoplayerreset",this.m2);this.Y(e,"onPlaybackQualityChange",this.VX);this.m2();e.createClientVe(this.element,this,137721)};
jHn=function(e,N,y){var w=e.qg[N],E=g.q5[N];return xn0(e,w?w.qualityLabel:E?E+"p":"Auto",N,y)};
nWJ=function(e,N,y,w,E){var A=(N=e.J?e.j[N]:e.D[N])&&N.quality,T=N&&N.qualityLabel;T=T?T:"Auto";w&&(T="("+T);e=xn0(e,T,A||"",E);w&&e.W.push(")");(w=(w=N&&N.paygatedQualityDetails)&&w.paygatedIndicatorText)&&y&&e.W.push({S:"div",B:"ytp-premium-label",b9:w});return e};
xn0=function(e,N,y,w){N={S:"span",dP:w,W:[N]};var E;w="ytp-swatch-color";if(e.Z||e.J)w="ytp-swatch-color-white";y==="highres"?E="8K":y==="hd2880"?E="5K":y==="hd2160"?E="4K":y.indexOf("hd")===0&&y!=="hd720"&&(E="HD");E&&(N.W.push(" "),N.W.push({S:"sup",B:w,b9:E}));return N};
S8=function(e,N,y,w,E){var A={S:"div",B:"ytp-input-slider-section",W:[{S:"input",B:"ytp-input-slider",V:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};E&&A.W.unshift(E);g.W.call(this,A);this.K=e;this.j=N;this.Z=y;this.initialValue=w;this.header=E;this.J=this.hW("ytp-input-slider");this.N=w?w:e;this.init();this.Y(this.J,"input",this.G)};
mnH=function(e,N){e.N=N;e.updateValue("slidervalue",e.N);e.J.valueAsNumber=e.N;QHH(e,N)};
QHH=function(e,N){e.J.style.setProperty("--yt-slider-shape-gradient-percent",(N-e.K)/(e.j-e.K)*100+"%")};
o5=function(e){S8.call(this,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],.05,e.getPlaybackRate(),{S:"div",B:"ytp-speedslider-indicator-container",W:[{S:"div",B:"ytp-speedslider-badge"},{S:"p",B:"ytp-speedslider-text"}]});this.C=e;this.D=HB9(this.Kh,this);g.pi(this.J,"ytp-speedslider");this.U=this.hW("ytp-speedslider-text");this.l9=this.hW("ytp-speedslider-badge");HF5(this);this.Y(this.J,"change",this.qg);this.Y(this.J,"keydown",this.Ng)};
HF5=function(e){e.U.textContent=e.N+"x";e.l9.classList.toggle("ytp-speedslider-premium-badge",e.N>2&&e.C.T("enable_web_premium_varispeed"))};
bb=function(e,N,y,w,E,A,T){g.W.call(this,{S:"div",B:"ytp-slider-section",V:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{S:"div",B:"ytp-slider",W:[{S:"div",B:"ytp-slider-handle"}]}]});this.U=e;this.D=N;this.N=y;this.K=w;this.Ng=E;this.i9=A;this.range=this.K-this.N;this.Rq=this.hW("ytp-slider-section");this.j=this.hW("ytp-slider");this.Kh=this.hW("ytp-slider-handle");this.G=new g.sd(this.j,
!0);this.J=T?T:y;g.Q(this,this.G);this.G.subscribe("dragmove",this.S6,this);this.Y(this.element,"keydown",this.dH);this.Y(this.element,"wheel",this.c$);this.init()};
hU=function(e){bb.call(this,.05,.05,e.getAvailablePlaybackRates()[0],e.getAvailablePlaybackRates()[e.getAvailablePlaybackRates().length-1],150,20,e.getPlaybackRate());this.C=e;this.Z=g.sA("P");this.l9=HB9(this.qg,this);g.pi(this.j,"ytp-speedslider");g.pi(this.Z,"ytp-speedslider-text");e=this.Z;var N=this.j;N.parentNode&&N.parentNode.insertBefore(e,N.nextSibling);KgE(this);this.Y(this.C,"onPlaybackRateChange",this.updateValues)};
KgE=function(e){e.Z.textContent=WgJ(e,e.J)+"x"};
WgJ=function(e,N){e=Number(g.Ja(N,e.N,e.K).toFixed(2));N=Math.floor((e+.001)*100%5+2E-15);var y=e;N!==0&&(y=e-N*.01);return Number(y.toFixed(2))};
OFP=function(e){g.Mu.call(this,{S:"div",B:"ytp-speedslider-component"});e.T("web_settings_use_input_slider")?this.J=new o5(e):this.J=new hU(e);g.Q(this,this.J);this.element.appendChild(this.J.element)};
RUn=function(e){var N=new OFP(e);ZN.call(this,e,N,"Custom");g.Q(this,N)};
GAF=function(e,N){var y=new RUn(e);g.Go.call(this,"Playback speed",g.aq.Ve,e,N,cK(e)?void 0:"Custom",cK(e)?void 0:function(){g.Q_(N,y)});
var w=this;this.Z=!1;g.Q(this,y);this.G=new o5(e);g.Q(this,this.G);e.T("web_settings_menu_icons")&&this.setIcon({S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{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.C=e;this.Z=!1;this.Ng=null;cK(e)?(this.J=g.SO("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.C.getPlaybackRate().toString()}),this.j=this.C.getPlaybackRate()):this.j=this.J=null;this.D=this.C.getAvailablePlaybackRates();this.Y(e,"presentingplayerstatechange",this.GZ);var E;((E=this.C.getVideoData())==null?0:E.Au())&&this.Y(e,"serverstitchedvideochange",this.GZ);this.Y(this.G.J,"change",function(){w.Z=!0;w.GZ()});
this.GZ()};
Lg9=function(e,N){var y=UnH(N);e.J&&(e.Z||N===e.j)?(e.BI(e.J),e.Ja(N.toString())):e.BI(y)};
aI5=function(e){e.Pc(e.D.map(UnH));e.J=null;e.j=null;var N=e.C.getPlaybackRate();if(!e.D.includes(N)||cK(e.C))sHH(e,N),e.BI(e.J)};
sHH=function(e,N){e.j=N;e.J=g.SO("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:N.toString()});N=e.D.map(UnH);N.unshift(e.J);e.Pc(N)};
UnH=function(e){return e.toString()};
cK=function(e){return e.T("web_settings_menu_surface_custom_playback")};
e2E=function(e){return e.T("web_settings_menu_surface_custom_playback")&&e.T("web_settings_use_input_slider")};
yB0=function(e,N,y,w){var E=new g.x7(N,void 0,"Video Override");g.Go.call(this,w.text||"",e,N,y,"Video Override",function(){g.Q_(y,E)});
var A=this;g.pi(this.element,"ytp-subtitles-options-menu-item");this.setting=w.option.toString();e=w.options;this.settings=g.l7(e,this.MN,this);this.Z=E;g.Q(this,this.Z);N=new g.uh({S:"div",B:"ytp-menuitemtitle",b9:"Allow for a different caption style if specified by the video."},0);g.Q(this,N);this.Z.Gi(N,!0);this.j=new g.uh({S:"div",B:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},W:[{S:"div",B:"ytp-menuitem-label",b9:"On"}]},-1);g.Q(this,this.j);this.Z.Gi(this.j,!0);this.Y(this.j.element,
"click",function(){N7F(A,!0)});
this.J=new g.uh({S:"div",B:"ytp-menuitem",V:{role:"menuitemradio",tabindex:"0"},W:[{S:"div",B:"ytp-menuitem-label",b9:"Off"}]},-2);g.Q(this,this.J);this.Z.Gi(this.J,!0);this.Y(this.J.element,"click",function(){N7F(A,!1)});
this.Pc(g.dn(e,this.MN))};
N7F=function(e,N){e.publish("settingChange",e.setting+"Override",!N);e.x_.z4()};
kM=function(e,N){g.x7.call(this,e,void 0,"Options");var y=this;this.mO={};for(var w=0;w<g.c6.length;w++){var E=g.c6[w],A=new yB0(-w,e,N,E);g.Q(this,A);A.subscribe("settingChange",this.FH,this);this.mO[E.option.toString()]=A;this.Gi(A,!0)}e=new g.uh(g.qU(),-g.c6.length,"Reset");g.Q(this,e);e.listen("click",function(){y.FH("reset",!0)});
this.Gi(e,!0)};
BK=function(e,N){g.Go.call(this,"Auto-translate",0,e,N);this.C=e;this.languages={};e.createClientVe(this.element,this,127301);e.logVisibility(this.element,!0)};
w90=function(e,N){e.languages=g.l7(N,e.J,e);e.Pc(g.dn(N,e.J))};
ABs=function(e,N){var y=new kM(e,N),w=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],E;g.na(e.X())&&(E={S:"div",B:"ytp-panel-footer-content",W:[{S:"span",b9:w[0]},{S:"a",B:"ytp-panel-footer-content-link",b9:"Settings",V:{href:"/account_playback"}},{S:"span",b9:w[1]}]});g.Go.call(this,"Subtitles/CC",g.aq.SUBTITLES,e,N,"Options",function(){g.Q_(N,y)},E);
var A=this;this.C=e;this.x_=N;this.tracks={};this.G=new g.e6(function(){EZ0(A,!1)},3E3);
g.Q(this,this.G);this.countLabel=new g.W({S:"div",W:[{S:"span",b9:"Subtitles/CC"},{S:"span",B:"ytp-menuitem-label-count",b9:"{{content}}"}]});g.Q(this,this.countLabel);g.tu(this,this.countLabel);e.T("web_settings_menu_icons")&&this.setIcon(RqJ.includes("en")?{S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{S:"svg",V:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{S:"path",V:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.J=new BK(e,N);g.Q(this,this.J);this.J.subscribe("select",this.Rt,this);this.Z=y;g.Q(this,this.Z);this.Z.subscribe("settingChange",this.FH,this);N.subscribe("show",this.YQB,this);this.Y(e,"videodatachange",this.GZ);this.Y(e,"onApiChange",this.GZ);this.Y(e,"onCaptionsTrackListChanged",
this.GZ);this.Y(e,"captionschanged",this.GZ);e.createClientVe(this.element,this,127300);this.GZ()};
T7s=function(e){return Object.values(e.tracks).find(function(N){return N.languageCode==="en"&&N.kind==="asr"})};
Xq=function(e,N){e.C.setOption("captions","track",N)};
EZ0=function(e,N){e.C.setOption("captions","sampleSubtitles",N)};
JBM=function(e){g.n$.call(this,e,"ytp-settings-menu");var N=this;this.z9=new g.x7(this.C);this.rZ=this.settingsButton=null;this.isInitialized=this.Or=!1;g.Q(this,this.z9);this.hide();g.Q_(this,this.z9);e.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(y){N.iP(y)});
this.Y(e,"highlightSettingsMenu",function(){N.Or=!0;N.WY()});
this.Y(e,"openSettingsMenuItem",function(y){if(y&&(N.Or=!0,N.WY(),y==="menu_item_video_quality_advanced")){var w;(w=N.rZ)==null||w.open()}})};
p9E=function(e,N){e.settingsButton=N;e.element.id=N.element.getAttribute("aria-controls")};
CeM=function(e,N){g.W.call(this,{S:"button",dP:["ytp-subtitles-button","ytp-button"],V:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"4","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[GBs()]});this.C=e;this.tooltip=N.Rf();this.Y(e,"videodatachange",this.GZ);this.Y(e,"appresize",this.GZ);this.Y(e,"promotooltipacceptbuttonclicked",this.k9W);this.Y(e,"onApiChange",this.GZ);this.Y(e,"onCaptionsTrackListChanged",this.GZ);this.Y(e,"captionschanged",this.GZ);
this.C.createClientVe(this.element,this,127299);this.GZ();this.listen("click",this.onClick);this.addOnDisposeCallback(g.MU(N.Rf(),this.element))};
rB_=function(e){return g.fZ(e.C.jR())!=null?g.fZ(e.C.jR()).Px()?!!e.C.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.PK=function(e,N,y){y=y===void 0?350:y;g.W.call(this,{S:"div",dP:["ytp-time-display","notranslate"],W:[{S:"span",B:"ytp-time-wrapper",W:[{S:"span",B:"ytp-time-clip-icon",b9:"{{clipicon}}"},{S:"span",B:"ytp-time-current",b9:"{{currenttime}}"},{S:"span",B:"ytp-time-separator",b9:" / "},{S:"span",B:"ytp-time-duration",b9:"{{duration}}"}]},{S:"span",B:"ytp-clip-watch-full-video-button-separator",b9:"\u2022"},{S:"span",B:"ytp-clip-watch-full-video-button",b9:"{{watchfullvideo}}"}]});var w=this;this.api=
e;this.U=y;this.liveBadge=new g.W({S:"button",dP:["ytp-live-badge","ytp-button"],V:{disabled:"true"},b9:"{{content}}"});this.J=null;this.AB=this.N=!1;this.G=this.Z=null;this.isPremiere=!1;this.c9=this.j=this.K=null;this.D=this.hW("ytp-clip-watch-full-video-button");this.api.T("web_player_updated_entrypoint")&&g.Y1(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.Ja("Live");g.Q(this,this.liveBadge);this.api.T("web_player_updated_entrypoint")||this.api.T("delhi_modern_web_player")?this.liveBadge.yB(this.element.querySelector(".ytp-time-wrapper")):
this.liveBadge.yB(this.element);this.tooltip=N.Rf();this.liveBadge.listen("click",this.onClick.bind(this));this.Y(this.D,"click",this.O$g);this.Y(this.api,"serverstitchedvideochange",function(){$SP(w,w.api.getProgressState().isAtLiveHead)});
this.Y(e,"presentingplayerstatechange",this.HY);this.Y(e,"appresize",this.HY);this.Y(e,"onLoopRangeChange",this.onLoopRangeChange);this.Y(e,"videodatachange",this.onVideoDataChange);(N=e.getVideoData())&&this.updateVideoData(N);this.HY();Y6J(this,e.getLoopRange())};
$SP=function(e,N){var y=e.liveBadge.element,w=e.api.isLifaAdPlaying();y.disabled=w||N;!dT(e)||e.G===N&&e.Z===e.isPremiere||(e.G=N,e.Z=e.isPremiere,e.HY(),N?y.classList.add("ytp-live-badge-is-livehead"):y.classList.remove("ytp-live-badge-is-livehead"),e.liveBadge.Ja(e.isPremiere?"Premiere":"Live"),N?e.J&&(e.J(),e.J=null,y.removeAttribute("title")):(y.title="Skip ahead to live broadcast.",e.J=g.MU(e.tooltip,e.liveBadge.element)))};
Y6J=function(e,N){var y=e.c9!==N;e.c9=N;y&&MsP(e)};
MsP=function(e){e.updateValue("clipicon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{S:"path",V:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
e.AB&&!e.N?e.updateValue("watchfullvideo","Watch live stream"):e.updateValue("watchfullvideo","Watch full video");g.Y1(e.element,"ytp-clip",I5(e));g.Y1(e.element,"ytp-live",dT(e))};
dT=function(e){var N=e.api.X().T("enable_linear_program_progress"),y=!e.api.T("clean_player_style_fix_on_web")||e.api.getPresentingPlayerType()!==2;return e.AB&&!I5(e)&&(!N||!e.N)&&y};
I5=function(e){return!!e.c9&&!!e.c9.postId&&e.api.getPresentingPlayerType()!==2&&(!e.c9.type||e.c9.type==="clips")};
FNE=function(e,N){g.W.call(this,{S:"div",B:"ytp-volume-panel",V:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{S:"div",B:"ytp-volume-slider",W:[{S:"div",B:"ytp-volume-slider-handle"}]}]});var y=this;this.api=e;this.G=N;this.Dk=!1;this.D=this.volume=0;this.Z=null;this.N=this.J=this.isDragging=!1;this.G=N;this.K=e.Nr();this.U=this.hW("ytp-volume-slider");this.Ng=this.hW("ytp-volume-slider-handle");
this.j=new g.sd(this.U,!0);g.Q(this,this.j);this.j.subscribe("dragstart",this.gOq,this);this.j.subscribe("dragmove",this.P$,this);this.j.subscribe("dragend",this.vO1,this);this.Y(e,"onVolumeChange",this.onVolumeChange);this.Y(e,"appresize",this.QX);this.Y(e,"fullscreentoggled",this.bz);this.Y(e,"onShowControls",this.aW);this.Y(e,"onHideControls",this.aW);this.Y(this.element,"keydown",this.ZX);this.Y(this.element,"focus",function(){vK(y,y.J,y.isDragging,!0,y.api.Dk())});
this.Y(this.element,"blur",function(){vK(y,y.J,y.isDragging,!1,y.api.Dk())});
this.QX(e.Fz().getPlayerSize());lB_(this,e.getVolume(),e.isMuted());lh(e,this.element,this)};
lB_=function(e,N,y){var w=Math.floor(N),E=w+"% volume"+(y?" muted":"");y=y?0:N/100;e.updateValue("valuenow",w);e.updateValue("valuetext",E);e.Ng.style.left=(e.K?60:40)*y+"px";e.volume=N};
S6M=function(e,N){g.Y1(e.element,"ytp-volume-control-hover",N);vK(e,N,e.isDragging,e.N,e.api.Dk())};
vK=function(e,N,y,w,E){var A=e.J||e.isDragging||e.N||e.Dk;e.J=N;e.isDragging=y;e.N=w;e.Dk=E;N=e.J||e.isDragging||e.N||e.Dk;A!==N&&(N?e.Z=e.Y(e.element,"wheel",e.Cs):(e.CX(e.Z),e.Z=null),g.Y1(e.G,"ytp-volume-slider-active",N))};
zT=function(e,N){var y=e.X(),w=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];y.K&&w.push("no-link");var E={title:"{{title}}",target:y.D,"data-priority":"5","data-sessionlink":"feature=player-button"};y.K||(E.href="{{url}}");g.W.call(this,{S:"a",dP:w,V:E,b9:"{{logoSvg}}"});this.J=null;this.api=e;this.visible=!1;y.K||(this.J=this.listen("click",this.onClick));this.Y(e,"videodatachange",this.onVideoDataChange);this.Y(e,"videoplayerreset",this.onVideoDataChange);this.Y(e,"onLoopRangeChange",
this.onVideoDataChange);this.Y(e,"appresize",this.I9);this.onVideoDataChange();y.K||this.addOnDisposeCallback(g.MU(N.Rf(),this.element));this.I9()};
oZH=function(e,N,y){g.fd.call(this);var w=this;this.C=e;this.l9=N;this.tT=y;this.Kx=NaN;this.Kh=this.Ut=this.playButton=this.L=this.Z=this.Bk=this.Zl=this.Ng=this.D=this.J=this.VB=this.Dl=null;this.K=new JBM(this.C);this.progressBar=new g.Rm(this.C,this.l9);this.i9=new g.PK(this.C,this.l9);this.qg=new f_E(this.C,this.l9);this.U=new g.a1(this.rH,null,this);y=e.X();this.tT.subscribe("autohideupdate",this.vg,this);var E=!e.getPlayerStateObject().isCued(),A;e.X().T("html5_player_dynamic_bottom_gradient")?
this.VB=A=new ie3(e):A=new g.W({S:"div",B:"ytp-gradient-bottom"});g.Q(this,A);g.Pb(e,A.element,9);this.aq=new g.NE(A,250,E,100);g.Q(this,this.aq);this.j=new g.W({S:"div",B:"ytp-chrome-bottom",W:[{S:"div",B:"ytp-chrome-controls"}]});g.Q(this,this.j);g.Pb(e,this.j.element,9);this.Rq=new g.NE(this.j,250,E,100);g.Q(this,this.Rq);this.Et=this.j.element.children[0];g.Q(this,this.K);g.Pb(e,this.K.element,6);this.K.subscribe("show",function(p){w.C.jt(!p);e.Aj(w.K,p)});
g.Q(this,this.progressBar);this.progressBar.yB(this.j.element,0);E=new uo(e,N);g.Q(this,E);g.Pb(e,E.element,4);E=new g.r1({S:"div",B:"ytp-left-controls"});g.Q(this,E);E.yB(this.Et);e.T("delhi_modern_web_player")||(A=new g.m2(e,N,!1),g.Q(this,A),A.yB(E.element));e.T("web_render_jump_buttons")&&(this.D=new qh(e,g.Y2(e.X().experiments,"web_jump_button_backward_amount")||-10),g.Q(this,this.D),this.D.yB(E.element));y.Zl||(this.playButton=new g.Qs(e,N),g.Q(this,this.playButton),this.playButton.yB(E.element));
e.T("web_render_jump_buttons")&&(this.Ng=new qh(e,g.Y2(e.X().experiments,"web_jump_button_forward_amount")||10),g.Q(this,this.Ng),this.Ng.yB(E.element));e.T("delhi_modern_web_player_remove_nav_buttons")||(e.T("delhi_modern_web_player")&&(A=new g.m2(e,N,!1),g.Q(this,A),A.yB(E.element)),A=new g.m2(e,N,!0),g.Q(this,A),A.yB(E.element));if(!e.T("delhi_modern_web_player")&&(A=new g.W({S:"span",B:"ytp-volume-area"}),g.Q(this,A),A.yB(E.element),!y.U2&&(this.J=new nJ(e,N),g.Q(this,this.J),this.J.yB(A.element),
y.Et&&!y.U))){var T=new FNE(e,this.j.element);this.Ut=T;g.Q(this,T);T.yB(A.element);A=new g.sd(A.element);g.Q(this,A);A.subscribe("hoverstart",function(){var p;(p=w.Ut)==null||S6M(p,!0)});
A=new g.sd(E.element);g.Q(this,A);A.subscribe("hoverend",function(){var p;(p=w.Ut)==null||S6M(p,!1)})}g.Q(this,this.i9);
this.i9.yB(E.element);this.Zl=new tk(e,this.progressBar);g.Q(this,this.Zl);this.Zl.yB(E.element);y.T("web_key_moments_markers")&&(this.Bk=new ZD(e,this.progressBar),g.Q(this,this.Bk),this.Bk.yB(E.element));e.T("delhi_modern_web_player")?(this.N=new g.r1({S:"div",B:"ytp-right-controls",W:[{S:"div",B:ib.RIGHT_CONTROLS_LEFT},{S:"div",B:ib.RIGHT_CONTROLS_RIGHT}]}),e.T("delhi_modern_web_player_right_controls_separate")&&g.pi(this.N.element,"ytp-right-controls-separate")):this.N=new g.r1({S:"div",B:"ytp-right-controls"});
g.Q(this,this.N);this.N.yB(this.Et);e.T("delhi_modern_web_player")&&(this.J=new nJ(e,N),g.Q(this,this.J),this.J.yB(this.N.hW(ib.RIGHT_CONTROLS_LEFT)));this.Wk=new CeM(e,N);g.Q(this,this.Wk);Dt(this,this.Wk,"RIGHT_CONTROLS_LEFT");this.settingsButton=new YM(e,this.K);g.Q(this,this.settingsButton);p9E(this.K,this.settingsButton);Dt(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");E=e.getVideoData();if(y.RO||E.hs&&y.controlsType==="1")this.Z=new zT(e,N),g.Q(this,this.Z),this.Z.yB(this.N.element);y.showMiniplayerButton&&
(this.L=new jz(e),g.Q(this,this.L),Dt(this,this.L,"RIGHT_CONTROLS_RIGHT"));y.bb&&(N=new $M(e,this.K),g.Q(this,N),Dt(this,N,"RIGHT_CONTROLS_RIGHT"));y.Gg&&(N=new Vs(e),g.Q(this,N),Dt(this,N,"RIGHT_CONTROLS_RIGHT"));g.Q(this,this.qg);Dt(this,this.qg,"RIGHT_CONTROLS_RIGHT");g.Q(this,this.U);this.Y(e,"appresize",this.I9);this.Y(e,"fullscreentoggled",this.I9);this.Y(e,"presentingplayerstatechange",this.iN);this.Y(e,"videodatachange",this.onVideoDataChange);this.I9()};
bSF=function(e,N){if(e.C.getPlayerStateObject().isCued()||N){if(N){e.Rq.hide();e.aq.hide();e.J&&e.J.nx(!1);e.Z&&e.Z.nx(!1);e.L&&e.L.nx(!1);if(e.C.T("embeds_use_parent_visibility_in_ve_logging")){var y;(y=e.qg)==null||y.nx(!1);var w;(w=e.settingsButton)==null||w.nx(!1);var E;(E=e.playButton)==null||E.nx(!1)}e.C.Zk(e.ut())}}else if(!N){e.Rq.show();e.aq.show();e.J&&e.J.nx(!0);e.Z&&e.Z.nx(!0);e.L&&e.L.nx(!0);if(e.C.T("embeds_use_parent_visibility_in_ve_logging")){var A;(A=e.qg)==null||A.nx(!0);var T;
(T=e.Wk)==null||T.nx(!0);var p;(p=e.playButton)==null||p.nx(!0)}e.vg()}};
cB3=function(e){var N=e.C.Fz().getPlayerSize().width;return Math.max(N-h2F(e)*2,100)};
h2F=function(e){var N=e.C.Nr(),y=e.C.getVideoData().hs,w=0;e.C.Nr()&&e.C.isEmbedsShortsMode()&&(w=(e.C.Fz().getPlayerSize().width-e.C.getVideoContentRect().width)/2);return 12*(y?0:N?2:1)+w};
kLP=function(e){var N=e.C.Nr()?72:50;e=e.C.X();g.na(e)&&(N=e.T("delhi_modern_web_player")?78:62,g.dw(e)&&(N=54));return N};
Dt=function(e,N,y){e.C.T("delhi_modern_web_player")?N.yB(e.N.hW(ib[y])):N.yB(e.N.element)};
B7s=function(e){qJ.call(this,e,!1);var N=this;this.suggestedActions={};this.Y(this.C,"videodatachange",this.onVideoDataChange);this.Y(this.C,g.AA("suggested_action_button_visible"),function(y){y=y.id;N.text=y;c95(N);N.onClickCommand=N.suggestedActions[y];N.enabled=!0;N.iP()});
this.Y(this.C,g.TW("suggested_action_button_visible"),function(y){N.enabled=!1;N.iP();N.C.removeCueRange(y.id)})};
X9M=function(e){e.suggestedActions={};e.C.MK("suggested_action_button_visible")};
Vq=function(e){g.W.call(this,{S:"div",B:gT.TITLE,W:[{S:"div",B:gT.TEXT,W:[{S:"a",dP:[gT.LINK,gT.SESSIONLINK],V:{target:e.X().D,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},b9:"{{title}}"},{S:"div",B:gT.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=e;this.J=null;this.link=this.hW(gT.LINK);e.createClientVe(this.element,this,23851);this.Y(e,"videodatachange",this.GZ);this.Y(e,"videoplayerreset",this.GZ);this.GZ()};
Pe5=function(e){e.updateValue("channelLink","");e.updateValue("channelName","");g.dw(e.api.X())?e.updateValue("channelTitleFocusable","0"):e.updateValue("channelTitleFocusable","-1")};
g.fU=function(e,N){g.W.call(this,{S:"div",W:[{S:"div",B:"ytp-tooltip-text-wrapper",V:{"aria-hidden":"{{ariaHidden}}"},W:[{S:"div",B:"ytp-tooltip-edu",W:[{S:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",V:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{S:"span",b9:"{{eduText}}"}]},{S:"div",B:"ytp-tooltip-image"},{S:"div",B:"ytp-tooltip-title",W:[{S:"span",b9:"{{title}}"},{S:"div",B:"ytp-tooltip-keyboard-shortcut",
b9:"{{keyBoardShortcut}}"}]},{S:"div",B:"ytp-tooltip-bottom-text",W:[{S:"span",B:"ytp-tooltip-text",b9:"{{text}}"},{S:"div",B:"ytp-tooltip-keyboard-shortcut",b9:"{{keyBoardShortcut}}"}]}]},{S:"div",B:"ytp-tooltip-bg",W:[{S:"div",B:"ytp-tooltip-duration",b9:"{{duration}}"}]}]});var y=this;this.api=e;this.aq=N;this.Ng=function(w){(w=w.relatedTarget)&&g.Ex(y.J,w)||y.SY()};
this.Z=function(w){y.type===3&&y.SY();(w=w.currentTarget)&&w.nodeType===1&&!y.type&&(w.removeEventListener("mouseover",y.Z),w.addEventListener("mouseout",y.Ng),w.removeEventListener("focus",y.Z),w.addEventListener("blur",y.Ng),dSM(y,w,2))};
this.Kh=function(){y.SY()};
this.type=this.J=null;this.D=!1;this.N=null;this.K="";this.U=!0;this.scale=1;this.env=this.api.X();this.i9=this.env.N;this.bg=this.hW("ytp-tooltip-bg");this.Rq=this.hW("ytp-tooltip-edu");this.image=this.hW("ytp-tooltip-image");this.text=this.hW("ytp-tooltip-text");this.bottomText=this.hW("ytp-tooltip-bottom-text");this.title=this.hW("ytp-tooltip-title");this.G=new g.NE(this,100);this.j=NaN;this.IQ=this.api.Fz().getPlayerSize().width;this.qg=new g.e6(this.IlB,250,this);this.l9=new g.e6(this.SY,5E3,
this);g.Q(this,this.G);g.Q(this,this.qg);g.Q(this,this.l9);SV&&(e=this.hW("ytp-tooltip-text"),e.setAttribute("role","text"),e.setAttribute("aria-live","polite"))};
g.MU=function(e,N){if(e.i9)return function(){};
N.addEventListener("mouseover",e.Z);N.addEventListener("focus",e.Z);var y=N.getAttribute("title");y&&!N.hasAttribute("aria-label")&&N.setAttribute("aria-label",y);return function(){e.J===N&&e.SY();N.removeEventListener("mouseover",e.Z);N.removeEventListener("focus",e.Z)}};
dSM=function(e,N,y,w){if(N&&!N.hasAttribute)e=new g.Gh("showElementTooltip called with non-element.",N.toString()),g.t0(e);else{isNaN(e.j)||(e.j=NaN,e.bg.style.background="");e.J=N;e.D=!!w;w?e.K=w:(e.K=N.getAttribute("title"),N.removeAttribute("title"));g.TY(e.element,"ytp-tooltip");var E=N.getAttribute("data-tooltip-image");E&&(e.image.style.backgroundImage="url("+E+")");w?e.update({ariaHidden:"false"}):e.update({ariaHidden:"true"});g.Y1(e.element,"ytp-tooltip-image-enabled",!!E);N=N.getAttribute("data-tooltip-opaque");
g.Y1(e.element,"ytp-tooltip-opaque",!!N);e.type=y;e.api.addEventListener("appresize",e.Kh);e.U&&(IB3(e),e.G.show(0))}};
IB3=function(e){if(e.J){var N=e.J.getAttribute("data-tooltip-text");if(e.K&&e.J.getAttribute("aria-label")!==e.K)var y=e.K;var w=e.J.getAttribute("aria-keyshortcuts"),E=e.J.getAttribute("data-title-no-tooltip");w&&E&&(y=g.SO("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:E,SHORTCUT_KEY:w}));y&&e.J.setAttribute("aria-label",y);if(N&&!e.D){w=e.J;e.updateValue("text",N);y=w.getAttribute("data-duration");e.update({title:e.K,duration:y});w=w.getAttribute("data-preview");E=243*e.scale;var A=
141*e.scale;e.bg.style.width=E+"px";e.bg.style.height=A+"px";e.bg.style.backgroundImage=w?"url("+w+")":"";e.bg.style.backgroundSize=E+"px "+A+"px";g.Ci(e.element,["ytp-text-detail","ytp-preview"]);g.Y1(e.element,"ytp-has-duration",!!y)}else e.updateValue("text",e.K),w&&e.env.T("delhi_modern_web_player")&&(e.updateValue("text",E),e.updateValue("keyBoardShortcut",w.toUpperCase())),g.$1(e.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);vZ5(e,!!N)}};
vZ5=function(e,N,y,w){var E=Math.min(e.IQ,300*e.scale);e.element.style.maxWidth=N?"":E+"px";e.aq.yg(e.element,e.J,y,e.type===1,w);e.element.style.top?g.pi(e.element,"ytp-bottom"):e.element.style.bottom&&g.pi(e.element,"ytp-top");e.type===3&&e.l9.start()};
z25=function(e,N){g.Y1(e.element,"ytp-preview",N>=0);if(!(N<0||N===e.j)){e.j=N;N=243*e.scale;var y=141*e.scale,w=NjM(e.N,e.j,N);Dr5(e.bg,w,N,y,!0);e.qg.start()}};
iSn=function(e){var N=e.J;e.type===3&&e.l9.stop();e.api.removeEventListener("appresize",e.Kh);e.D||N.setAttribute("title",e.K);e.K="";e.J=null;e.updateValue("keyBoardShortcut","")};
gZ_=function(e){g.W.call(this,{S:"button",dP:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.hR(e.X()))},W:[{S:"div",B:"ytp-watch-later-icon",b9:"{{icon}}"},{S:"div",B:"ytp-watch-later-title",b9:"Watch later"}]});this.C=e;this.icon=null;this.visible=this.isRequestPending=this.J=!1;gF1(e);e.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Y(e,"videoplayerreset",this.onReset);this.Y(e,"appresize",
this.YW);this.Y(e,"videodatachange",this.YW);this.Y(e,"presentingplayerstatechange",this.YW);this.YW();e=this.C.X();var N=g.qI("yt-player-watch-later-pending");e.j&&N?(BXM(),DS3(this)):this.GZ(2);g.Y1(this.element,"ytp-show-watch-later-title",g.hR(e));lh(this.C,this.element,this)};
VsP=function(e){var N=e.C.getPlayerSize(),y=e.C.X(),w=e.C.getVideoData(),E=g.hR(y)&&g.cb(e.C)&&g.G(e.C.getPlayerStateObject(),128),A=y.K;return y.DD&&N.width>=240&&!w.isAd()&&w.DD&&!E&&!g.KX(w)&&!e.C.isEmbedsShortsMode()&&!A};
fBM=function(e,N){er1(g.ud(e.C.X()),"wl_button",function(){BXM({videoId:N});window.location.reload()})};
DS3=function(e){if(!e.isRequestPending){e.isRequestPending=!0;e.GZ(3);var N=e.C.getVideoData();N=e.J?N.removeFromWatchLaterCommand:N.addToWatchLaterCommand;var y=e.C.WI(),w=e.J?function(){e.J=!1;e.isRequestPending=!1;e.GZ(2);e.C.X().G&&e.C.Mg("WATCH_LATER_VIDEO_REMOVED")}:function(){e.J=!0;
e.isRequestPending=!1;e.GZ(1);e.C.X().N&&e.C.AE(e.element);e.C.X().G&&e.C.Mg("WATCH_LATER_VIDEO_ADDED")};
Oq(y,N).then(w,function(){e.isRequestPending=!1;e.GZ(4,"An error occurred. Please try again later.");e.C.X().G&&e.C.Mg("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
ts5=function(e,N){if(N!==e.icon){switch(N){case 3:var y=LD();break;case 1:y=bj();break;case 2:y={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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:y={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",
Az:!0,V:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}e.updateValue("icon",y);e.icon=N}};
g.tU=function(){g.sN.apply(this,arguments);this.GQ=(this.cF=g.hR(this.api.X()))&&(this.api.X().N||yf()||eu());this.Lb=48;this.Th=69;this.D8=this.nw=null;this.Yl=[];this.rM=this.oV=this.L0=this.X9=this.XS=null;this.HK=[];this.contextMenu=this.NS=this.overflowButton=this.Lw=this.rQ=this.searchButton=this.copyLinkButton=this.shareButton=this.v_=this.ax=this.title=this.channelAvatar=this.jm=this.tooltip=null;this.h_=!1;this.Cu=this.Gv=this.SS=this.dG=null;this.wZ=this.We=this.vX=!1};
ui0=function(e){var N=e.api.X(),y=g.G(e.api.getPlayerStateObject(),128);return N.j&&y&&!e.api.isFullscreen()};
q6E=function(e){if(e.xx()&&!e.api.isEmbedsShortsMode()&&e.Lw){var N=e.api.T("web_player_hide_overflow_button_if_empty_menu");!e.v_||N&&!VsP(e.v_)||NV1(e.Lw,e.v_);!e.shareButton||N&&!$r5(e.shareButton)||NV1(e.Lw,e.shareButton);!e.copyLinkButton||N&&!F8M(e.copyLinkButton)||NV1(e.Lw,e.copyLinkButton)}else{if(e.Lw){N=e.Lw;for(var y=g.c(N.actionButtons),w=y.next();!w.done;w=y.next())w.value.detach();N.actionButtons=[]}e.searchButton&&!g.Ex(e.ax.element,e.searchButton.element)&&e.searchButton.yB(e.ax.element);
e.v_&&!g.Ex(e.ax.element,e.v_.element)&&e.v_.yB(e.ax.element);e.shareButton&&!g.Ex(e.ax.element,e.shareButton.element)&&e.shareButton.yB(e.ax.element);e.copyLinkButton&&!g.Ex(e.ax.element,e.copyLinkButton.element)&&e.copyLinkButton.yB(e.ax.element)}};
ZSs=function(e,N,y){N=y?N.lastElementChild:N.firstElementChild;for(var w=null;N;){if(lG(N,"display")!=="none"&&N.getAttribute("aria-hidden")!=="true"){var E=void 0;N.tabIndex>=0?E=N:E=ZSs(e,N,y);E&&(w?y?E.tabIndex>w.tabIndex&&(w=E):E.tabIndex<w.tabIndex&&(w=E):w=E)}N=y?N.previousElementSibling:N.nextElementSibling}return w};
xSM=function(e,N,y){if(e.api.T("web_player_nitrate_promo_tooltip")&&e.api.getPresentingPlayerType(!0)!==2){var w=e.api.getVideoData(1);if(w==null?0:w.tooltipRenderer){w=w.tooltipRenderer;var E;if(E=!e.Cu){if(!(N=!N)){var A,T,p;N=((A=w.tooltipDisplayStrategy)==null?void 0:A.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((T=w.promoConfig)==null?void 0:T.promoId)!=="dtip-edu-player-iseecaptions"&&((p=w.promoConfig)==null?void 0:p.promoId)!=="dtip-edu-player-tc-m2"}E=N}E&&(e.Cu=new AME(w,e.api),
g.Q(e,e.Cu),g.Pb(e.api,e.Cu.element,9));var C;(C=e.Cu)==null||C9E(C,w,y)}}};
g.ub=function(e){g.dH.call(this,e);this.chrome=null;this.load()};
jS5=function(){for(var e=qV.length;e<4;e++){var N=g.sA("VIDEO");N.load();qV.push(new g.Tf(N))}};
nZH=function(e,N,y,w){var E=y.getVideoData(),A=N.getVideoData();if(y.getPlayerState().isError())return{msg:"player-error"};var T=A.K;if(N.eN()>w/1E3+1)return{msg:"in-the-past"};if(A.isLivePlayback&&!isFinite(w))return{msg:"live-infinite"};(w=N.LC())&&w.isView()&&(w=w.mediaElement);if(w&&w.JP().length>12&&g.$I(E))return{msg:"played-ranges"};if(!E.K)return null;if(!T)return{msg:"no-pvd-formats"};if(!E.K.J||!T.J)return{msg:"non-dash"};w=T.videoInfos[0];var p=E.K.videoInfos[0];e.G&&Rf(A)&&(w=N.fI(),p=
y.fI());if(!w||!p)return{msg:"no-video-info"};if(e.K&&(Kd(w)||Kd(p)))return{msg:"av1"};N=e.J&&A.e_()&&Zo();if(p.containerType!==w.containerType)if(N)A.Fh("sgap",{ierr:"container"});else return{msg:"container"};if(e.N&&!N&&(p.Iq!==w.Iq||p.Iq===""||w.Iq===""))return{msg:"codec"};if(e.j&&p.video&&w.video&&Math.abs(p.video.width/p.video.height-w.video.width/w.video.height)>.01)return{msg:"ratio"};if(g.$I(A)&&g.$I(E))return{msg:"content-protection"};T=T.J[0];E=E.K.J[0];y=T.audio;var C=E.audio;if(y.sampleRate!==
C.sampleRate&&!g.i$)if(N)A.Fh("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:T.itag,cr:y.sampleRate,ni:E.itag,nr:C.sampleRate};return(y.numChannels||2)!==(C.numChannels||2)?{msg:"channel-count"}:e.L&&A.e_()&&w.video.fps!==p.video.fps?{msg:"fps"}:null};
QSE=function(e,N,y){var w=e.getVideoData(),E=N.getVideoData();if(!w.X().supportsGaplessShorts())return{nq:"env"};if(y.Z){if(w.IV&&!w.isAd()||E.IV&&!E.isAd())return{nq:"autoplay"}}else if(w.IV||E.IV)return{nq:"autoplay"};if(!w.U)return{nq:"client"};if(!e.xB())return{nq:"no-empty"};e=nZH(y,e,N,Infinity);return e!=null?{nq:e.msg}:null};
Zt=function(e){g.x.call(this);this.app=e;this.L=this.j=this.N=this.J=null;this.K=1;this.events=new g.fd(this);this.events.Y(this.app.Lh,g.TW("gaplessshortslooprange"),this.U);g.Q(this,this.events)};
mS3=function(){this.j=this.Z=this.K=this.G=this.L=this.N=this.J=!1};
HSP=function(e){var N=new mS3;N.J=e.T("h5_gapless_support_types_diff");N.L=e.T("h5_gapless_error_on_fps_diff");N.G=e.T("html5_gapless_use_format_info_fix");N.K=e.T("html5_gapless_disable_on_av1")&&!e.T("html5_gapless_enable_on_av1");N.N=e.T("html5_gapless_check_codec_diff_strictly");N.Z=e.T("html5_gapless_on_ad_autoplay");N.j=e.T("html5_gapless_disable_diff_aspect_radio");return N};
g.xM=function(e,N,y,w){w=w===void 0?!1:w;R8.call(this);this.mediaElement=e;this.start=N;this.end=y;this.J=w};
KNM=function(e,N,y,w,E,A){A=A===void 0?0:A;g.x.call(this);var T=this;this.policy=e;this.J=N;this.N=y;this.nX=E;this.L=A;this.j=this.K=null;this.currentVideoDuration=this.Z=-1;this.G=!1;this.P7=new O3;this.iZ=w-N.w7()*1E3;this.P7.then(void 0,function(){});
this.timeout=new g.e6(function(){T.zS("timeout")},1E4);
g.Q(this,this.timeout);this.U=isFinite(w);this.status={status:0,error:null}};
R29=function(e){var N,y,w,E,A,T,p,C,r,Y;return g.f(function(M){if(M.J==1){if(e.Ss())return M.return(Promise.reject(Error(e.status.error||"disposed")));e.timeout.start();N=g.j8.X0();return g.D(M,e.P7,2)}g.j8.x$("gtfta",N);y=e.J.LC();if(y.isEnded())return e.zS("ended_in_finishTransition"),M.return(Promise.reject(Error(e.status.error||"")));if(!e.j||!nh(e.j))return e.zS("next_mse_closed"),M.return(Promise.reject(Error(e.status.error||"")));if(e.N.E$()!==e.j)return e.zS("next_mse_mismatch"),M.return(Promise.reject(Error(e.status.error||
"")));w=WNM(e);E=w.Qo;A=w.Bt;T=w.Vo;e.J.s_(!1,!0);p=OS9(y,E,T,!e.N.getVideoData().isAd());e.N.setMediaElement(p);(C=e.J.NZ())&&e.N.Wm(C.ql,C.OD);e.U&&(e.N.seekTo(e.N.getCurrentTime()+.001,{l8:!0,FM:3,BY:"gapless_pseudo"}),p.play(),u4());r=y.N7();r.cpn=e.J.getVideoData().clientPlaybackNonce;r.st=""+E;r.et=""+T;e.N.Fh("gapless",r);e.J.Fh("gaplessTo",{cpn:e.N.getVideoData().clientPlaybackNonce});Y=e.J.getPlayerType()===e.N.getPlayerType();e.J.Bu(A,!0,!1,Y,e.N.getVideoData().clientPlaybackNonce);e.N.Bu(e.N.getCurrentTime(),
!0,!0,Y,e.J.getVideoData().clientPlaybackNonce);e.N.p4();g.Jo(function(){!e.N.getVideoData().qg&&e.N.getPlayerState().isOrWillBePlaying()&&e.N.oi()});
nU(e,6);e.dispose();return M.return(Promise.resolve())})};
sS9=function(e){if(e.N.getVideoData().K){var N=e.nX.X().T("html5_gapless_suspend_next_loader")&&e.L===1;e.N.KH(e.j,N,GLM(e));nU(e,3);USH(e);var y=LNP(e);N=y.Sr;y=y.Oi;N.subscribe("updateend",e.Hv,e);y.subscribe("updateend",e.Hv,e);e.Hv(N);e.Hv(y)}};
USH=function(e){e.J.unsubscribe("internalvideodatachange",e.Yo,e);e.N.unsubscribe("internalvideodatachange",e.Yo,e);e.nX.X().T("html5_gapless_use_format_info_fix")&&(e.J.unsubscribe("internalvideoformatchange",e.Yo,e),e.N.unsubscribe("internalvideoformatchange",e.Yo,e));e.J.unsubscribe("mediasourceattached",e.Yo,e);e.N.unsubscribe("statechange",e.Dt,e)};
OS9=function(e,N,y,w){e=e.isView()?e.mediaElement:e;return new g.xM(e,N,y,w)};
nU=function(e,N){N<=e.status.status||(e.status={status:N,error:null},N===5&&e.P7.resolve())};
GLM=function(e){return e.nX.X().T("html5_gapless_no_clear_buffer_timeline")&&e.L===1&&L3(e.J.getVideoData())};
WNM=function(e){var N=e.J.LC();N=N.isView()?N.start:0;var y=e.J.getVideoData().isLivePlayback?Infinity:e.J.jo(!0);y=Math.min(e.iZ/1E3,y)+N;var w=e.U?100:0;e=y-e.N.eN()+w;return{A5:N,Qo:e,Bt:y,Vo:Infinity}};
LNP=function(e){return{Sr:e.K.J.KC,Oi:e.K.N.KC}};
Qq=function(e){g.x.call(this);var N=this;this.app=e;this.L=this.N=this.J=null;this.U=!1;this.K=this.j=null;this.G=HSP(this.app.X());this.Z=function(){g.Jo(function(){aBF(N)})}};
eIM=function(e,N,y,w,E){w=w===void 0?0:w;E=E===void 0?0:E;e.xB()||mY(e);e.j=new O3;e.J=N;var A=y,T=E===0;T=T===void 0?!0:T;var p=e.app.nh(),C=p.getVideoData().isLivePlayback?Infinity:p.jo(!0)*1E3;A>C&&(A=C-200,e.U=!0);T&&p.getCurrentTime()>=A/1E3?e.Z():(e.N=p,T&&(T=A,A=e.N,e.app.Lh.addEventListener(g.AA("vqueued"),e.Z),T=isFinite(T)||T/1E3>A.getDuration()?T:0x8000000000000,e.L=new g.wF(T,0x8000000000000,{namespace:"vqueued"}),A.addCueRange(e.L)));T=w/=1E3;A=N.getVideoData().J;w&&A&&e.N&&(p=w,C=0,
N.getVideoData().isLivePlayback&&(T=Math.min(y/1E3,e.N.jo(!0)),C=Math.max(0,T-e.N.getCurrentTime()),p=Math.min(w,N.jo()+C)),T=Oh_(A,p)||w,T!==w&&e.J.Fh("qvaln",{st:w,at:T,rm:C,ct:p}));N=T;w=e.J;w.getVideoData().NK=!0;w.getVideoData().U=!0;w.xN(!0);A={};e.N&&(A=e.N.wS(),T=e.N.getVideoData().clientPlaybackNonce,A={crt:(A*1E3).toFixed(),cpn:T});w.Fh("queued",A);N!==0&&w.seekTo(N+.01,{l8:!0,FM:3,BY:"videoqueuer_queued"});e.K=new KNM(e.G,e.app.nh(),e.J,y,e.app,E);y=e.K;y.status.status!==Infinity&&(nU(y,
1),y.J.subscribe("internalvideodatachange",y.Yo,y),y.N.subscribe("internalvideodatachange",y.Yo,y),y.nX.X().T("html5_gapless_use_format_info_fix")&&(y.J.subscribe("internalvideoformatchange",y.Yo,y),y.N.subscribe("internalvideoformatchange",y.Yo,y)),y.J.subscribe("mediasourceattached",y.Yo,y),y.N.subscribe("statechange",y.Dt,y),y.J.subscribe("newelementrequired",y.u4,y),y.Yo());return e.j};
aBF=function(e){var N,y,w,E,A,T,p,C,r;g.f(function(Y){switch(Y.J){case 1:if(e.Ss()||!e.j||!e.J)return Y.return();e.U&&e.app.nh().U7(!0,!1);y=e.app.X().T("html5_force_csdai_gapful_transition")&&((N=e.app.nh())==null?void 0:N.getVideoData().isDaiEnabled());w=null;if(!e.K||y){Y.u9(2);break}g.c5(Y,3);return g.D(Y,R29(e.K),5);case 5:g.B5(Y,2);break;case 3:w=E=g.XH(Y);case 2:if(!e.J)return Y.return();g.j8.le("vqsp",function(){e.app.w1(e.J)});
if(!e.J)return Y.return();A=e.J.LC();e.app.X().T("html5_gapless_seek_on_negative_time")&&A&&A.getCurrentTime()<-.01&&e.J.seekTo(0);g.j8.le("vqpv",function(){e.app.playVideo()});
if(w||y)e.J?(T=w?w.message:"forced",(p=e.N)==null||p.Fh("gapfulfbk",{r:T}),e.J.E1(T)):(C=e.N)==null||C.Fh("gapsp",{});r=e.j;mY(e);r&&r.resolve();return Y.return(Promise.resolve())}})};
mY=function(e,N){N=N===void 0?!1:N;if(e.N){if(e.L){var y=e.N;e.app.Lh.removeEventListener(g.AA("vqueued"),e.Z);y.removeCueRange(e.L)}e.N=null;e.L=null}e.K&&(e.K.status.status!==6&&(y=e.K,y.status.status!==Infinity&&y.L!==1&&y.zS("Canceled")),e.K=null);e.j=null;e.J&&!N&&e.J!==e.app.NU()&&e.J!==e.app.nh()&&Ov(e.J);e.J&&N&&e.J.IN();e.J=null;e.U=!1};
Nfn=function(e){var N;return((N=e.K)==null?void 0:N.currentVideoDuration)||-1};
yNM=function(e,N,y){if(e.xB())return"qie";if(e.J==null||e.J.JW.Ss()||e.J.getVideoData()==null)return"qpd";if(N.videoId!==e.J.vE())return"vinm";if(Nfn(e)<=0)return"ivd";if(y!==1)return"upt";if((y=e.K)==null)e=void 0;else if(y.getStatus().status!==5)e="niss";else if(nZH(y.policy,y.J,y.N,y.iZ)!=null)e="pge";else{N=LNP(y);e=N.Sr;var w=N.Oi;N=g.Y2(y.nX.X().experiments,"html5_shorts_gapless_next_buffer_in_seconds");y=y.Z+N;w=AX(w.Ju(),y);e=AX(e.Ju(),y);e=!(N>0)||w&&e?null:"neb"}return e!=null?e:null};
wJE=function(){g.pT.call(this);var e=this;this.fullscreen=0;this.j=this.K=this.pictureInPicture=this.J=this.N=this.inline=!1;this.L=function(){e.iP()};
Een(this.L);this.Z=this.getVisibilityState(this.ox(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wp(),this.j3(),this.ly(),this.gN())};
bw=function(e){return!(e.isMinimized()||e.isInline()||e.isBackground()||e.Wp()||e.j3()||e.ly()||e.gN())};
Eo3=function(e,N){g.x.call(this);this.K=this.j=null;this.J=e;this.N=N};
CT9=function(e){var N=e.experiments,y=N.gP.bind(N);ANP=y("html5_use_async_stopVideo");TfP=y("html5_pause_for_async_stopVideo");JNE=y("html5_not_reset_media_source");y("html5_listen_for_audio_output_changed")&&(dEJ=!0);Qc=y("html5_not_reset_media_source");pJs=y("html5_not_reset_media_source");$H=y("html5_retain_source_buffer_appends_for_debugging");RNs=y("web_enable_auto_pip")||y("web_enable_pip_on_miniplayer");y("html5_mediastream_applies_timestamp_offset")&&(Cr=!0);var w=g.Y2(N,"html5_cobalt_override_quic");
w&&PG("QUIC",+(w>0));(w=g.Y2(N,"html5_cobalt_audio_write_ahead_ms"))&&PG("Media.AudioWriteDurationLocal",w);(w=y("html5_cobalt_enable_decode_to_texture"))&&PG("Media.PlayerConfiguration.DecodeToTexturePreferred",w?1:0);(e.B9()||y("html5_log_cpu_info"))&&eM_();Error.stackTraceLimit=50;var E=g.Y2(N,"html5_idle_rate_limit_ms");E&&Object.defineProperty(window,"requestIdleCallback",{value:function(A){return window.setTimeout(A,E)}});
BY3(e.L);Fy=y("html5_use_ump_request_slicer");Yj5=y("html5_record_now");y("html5_disable_streaming_xhr")&&(QY=!1);y("html5_byterate_constraints")&&(Gm=!0);y("html5_use_non_active_broadcast_for_post_live")&&(Z$=!0);y("html5_sunset_aac_high_codec_family")&&(nd["141"]="a")};
rNE=function(e){return e.slice(12).replace(/_[a-z]/g,function(N){return N.toUpperCase().replace("_","")}).replace("Dot",".")};
$FJ=function(e){var N={},y;for(y in e.experiments.flags)if(y.startsWith("cobalt_h5vcc")){var w=rNE(y),E=g.Y2(e.experiments,y);w&&E&&(N[w]=PG(w,E))}return N};
HK=function(e,N,y,w,E){E=E===void 0?[]:E;g.x.call(this);this.ph=e;this.GW=N;this.j=y;this.segments=E;this.J=void 0;this.N=new Map;E.length&&(this.J=E[0])};
YX5=function(e){if(!(e.segments.length<2)){var N=e.segments.shift();if(N){var y=N.J,w=[];if(y.size){y=g.c(y.values());for(var E=y.next();!E.done;E=y.next()){E=g.c(E.value);for(var A=E.next();!A.done;A=E.next()){A=A.value;for(var T=g.c(A.segments),p=T.next();!p.done;p=T.next())(p=KU(p.value))&&w.push(p);A.removeAll()}}}(y=KU(N))&&w.push(y);w=g.c(w);for(y=w.next();!y.done;y=w.next())e.N.delete(y.value);N.dispose()}}};
WK=function(e,N,y,w){if(!e.J||N>y)return!1;N=new HK(e.ph,N,y,e.J,w);w=g.c(w);for(y=w.next();!y.done;y=w.next()){y=y.value;var E=KU(y);E&&E!==KU(e.J)&&e.N.set(E,[y])}e=e.J;e.J.has(N.EY())?e.J.get(N.EY()).push(N):e.J.set(N.EY(),[N]);return!0};
Nt=function(e,N){return e.N.get(N)};
MhP=function(e,N,y){e.N.set(N,y)};
OD=function(e,N,y,w,E,A){return new lEs(y,y+(w||0),!w,N,e,E,A)};
lEs=function(e,N,y,w,E,A,T){g.x.call(this);this.GW=e;this.K=N;this.N=y;this.type=w;this.j=E;this.videoData=A;this.Jv=T;this.J=new Map;rd(A)};
KU=function(e){return e.videoData.clientPlaybackNonce};
FBM=function(e){if(e.J.size)for(var N=g.c(e.J.values()),y=N.next();!y.done;y=N.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())w.value.dispose()}e.J.clear()};
SX9=function(e){this.end=this.start=e};
g.R5=function(){this.J=new Map;this.K=new Map;this.N=new Map};
g.GT=function(e,N,y,w){g.x.call(this);var E=this;this.api=e;this.ph=N;this.playback=y;this.app=w;this.aq=new g.R5;this.N=new Map;this.Z=[];this.L=[];this.K=new Map;this.pX=new Map;this.Ng=new Map;this.Wk=null;this.Xz=NaN;this.dT=this.Y_=null;this.SR=new g.e6(function(){ooE(E,E.Xz,E.Y_||void 0)});
this.events=new g.fd(this);this.a9=15E3;this.qg=new g.e6(function(){E.Rq=!0;E.playback.L4(E.a9);b0E(E);E.tP(!1)},this.a9);
this.Rq=!1;this.G=new Map;this.Kx=[];this.Kh=null;this.jp=new Set;this.Zl=[];this.FZ=[];this.U2=[];this.LX=[];this.J=void 0;this.l9=0;this.Bk=!0;this.D=!1;this.Et=[];this.VB=new Set;this.NK=new Set;this.CC=new Set;this.Bp=0;this.Ut=new Set;this.PY=0;this.g2=this.jn=!1;this.hM=this.j="";this.Dl=null;this.lk={Vgg:function(){return E.N},
fFg:function(){return E.Z},
Qps:function(){return E.K},
nY:function(A){E.onCueRangeEnter(E.N.get(A))},
X2P:function(A){E.onCueRangeExit(E.N.get(A))},
K_1:function(A,T){E.N.set(A,T)},
fvW:function(A){E.hM=A},
Rp:function(){return E.Rp()},
MgG:function(A){return E.Ng.get(A)}};
this.playback.getPlayerType();this.playback.iG(this);this.i9=this.ph.B9();g.Q(this,this.SR);g.Q(this,this.events);g.Q(this,this.qg);this.events.Y(this.api,g.AA("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Y(this.api,g.TW("serverstitchedcuerange"),this.onCueRangeExit)};
BfJ=function(e,N,y,w,E,A,T,p){var C=hIE(e,A,A+E);e.Rq&&e.playback.Fh("sdai",{adaftto:1});y||e.playback.Fh("sdai",{missadcon:1,enter:A,len:E,aid:p});e.U&&!e.U.Lo&&(e.U.Lo=p);e.g2&&e.playback.Fh("sdai",{adfbk:1,enter:A,len:E,aid:p});var r=e.playback;T=T===void 0?A+E:T;A===T&&!E&&e.ph.T("html5_allow_zero_duration_ads_on_timeline")&&e.playback.Fh("sdai",{attl0d:1});A>T&&UD(e,{reason:"enterTime_greater_than_return",GW:A,OQ:T});var Y=r.Ti()*1E3;A<Y&&UD(e,{reason:"enterTime_less_than_minSeekableTime",enterMs:A,
minSkMs:Y},e.ph.T("html5_report_ssdai_timeline_error_as_fatal"));r=r.getDuration()*1E3;T>r&&UD(e,{reason:"parent_return_greater_than_content_duration",OQ:T,UYh:r});r=null;Y=g.T7(e.L,{OQ:A},function(M,l){return M.OQ-l.OQ});
Y>=0&&(r=e.L[Y],r.OQ>A&&cNs(e,N.video_id||"",A,T,r));if(C&&r)for(Y=0;Y<e.Zl.length;Y++){if(e.Zl[Y].identifier===C.identifier){e.Zl.splice(Y,1);break}}else if(C)return e.playback.Fh("sdai",{rejectAttl:1}),p&&!DR(e.LX,function(M){return M===p})&&(e.playback.Fh("sdai",{rejectAdBreakAttl:1}),e.LX.push(p)),LU(e),"";
C="ss_childplayback_"+k29++;e.ph.T("html5_enable_ssap_entity_id")?(N=new g.t3(e.ph,N),Y=N.clientPlaybackNonce):(N.cpn||(N.cpn=g.PX(16)),Y=N.cpn,N=new g.t3(e.ph,N));N.FS=C;y={FS:C,playerType:w,durationMs:E,GW:A,OQ:T,cpn:Y,videoData:N,errorCount:0,ssdaiAdsConfig:y};g.rr(e.L,y,function(M,l){return M.GW===l.GW?M.durationMs-l.durationMs:M.GW-l.GW});
e.K.set(Y,y);e.pX.set(C,y);e.playback.Fh("sdai",{attlDone:T-A,acpn:Y});e.playback.getVideoData().Au()&&e.playback.Fh("sdai",{adSt:A});p?y.TN=p:r?y.TN=r.TN:y.TN=y.cpn;if(A=y.TN)(w=e.Ng.get(A))?(w.push(y),g.pf(w,function(M,l){return M.GW-l.GW})):e.Ng.set(A,[y]);
e.qg.isActive()&&(e.Rq=!1,e.qg.stop(),b0E(e),e.tP(!0));return C};
sD=function(e,N,y){return{ssvc:N,cpn:(y==null?void 0:y.cpn)||"",vid:(y==null?void 0:y.videoData.videoId)||"",ct:(e.playback.getCurrentTime()||0).toFixed(3),cmt:(e.playback.eN()||0).toFixed(3)}};
a5=function(e,N){e.api.MB();e.api.publish("serverstitchedvideochange",N.FS,N.oO)};
Ns=function(e,N,y){var w=e.D,E=e.Rp(),A=e.j;e.j="";var T=N.Ix-y.Ix;Math.abs(T)>.5&&e.playback.Fh("sdai",{ttdtb:1,delta:T,cpn:E.cpn,enter:N.adCpn,exit:y.adCpn,seek:w,skip:A});e.api.T("html5_ssdai_enable_media_end_cue_range")&&e.api.iX();if(N.isAd&&y.isAd){E=!!A;if(N.adCpn&&y.adCpn){var p=e.K.get(N.adCpn);var C=e.K.get(y.adCpn)}E?e.playback.Fh("sdai",{igtransskip:1,enter:N.adCpn,exit:y.adCpn,seek:w,skip:A}):eo(e,C,p,y.Ix,N.Ix,w,E)}else if(!N.isAd&&y.isAd){e.hM=E.cpn;e.api.publish("serverstitchedvideochange");
p=sD(e,"a2c");e.playback.Fh("sdai",p);e.Bp=0;if(p=y.y6)e.l9=p.end;var r;y.adCpn&&(r=e.K.get(y.adCpn));r&&e.playback.T5(r,E,y.Ix,N.Ix,w,!!A)}else if(N.isAd&&!y.isAd){var Y;N.adCpn&&(Y=e.K.get(N.adCpn));Y&&(e.l9=0,e.hM=Y.cpn,a5(e,Y),r=sD(e,"c2a",Y),e.playback.Fh("sdai",r),e.Bp=1,e.playback.T5(E,Y,y.Ix,N.Ix,w,!!A))}};
yi=function(e,N,y){y=y===void 0?0:y;var w=g.T7(e.L,{GW:(N+y)*1E3},function(p,C){return p.GW-C.GW});
w=w<0?(w+2)*-1:w;if(w>=0)for(var E=N*1E3,A=w;A<=w+1&&A<e.L.length;A++){var T=e.L[A];if(E>=T.GW-y*1E3&&E<=T.OQ+y*1E3)return{Lc:T,Xs:N}}return{Lc:void 0,Xs:N}};
PTE=function(e,N){var y="";(N=XJn(e,N))&&(y=N.getId());return y?e.K.get(y):void 0};
XJn=function(e,N){if(e.hM){var y=e.N.get(e.hM);if(y&&y.start-200<=N&&y.end+200>=N)return y}e=g.c(e.N.values());for(y=e.next();!y.done;y=e.next())if(y=y.value,y.start<=N&&y.end>=N)return y};
ooE=function(e,N,y){var w=e.dT||e.app.nh().getPlayerState();wl(e,!0);e.playback.seekTo(N,y);e=e.app.nh();N=e.getPlayerState();w.isOrWillBePlaying()&&!N.isOrWillBePlaying()?e.playVideo():w.isPaused()&&!N.isPaused()&&e.pauseVideo()};
wl=function(e,N){e.Xz=NaN;e.Y_=null;e.SR.stop();e.Wk&&N&&e.Wk.yr();e.dT=null;e.Wk=null};
dF0=function(e){var N=N===void 0?-1:N;var y=y===void 0?Infinity:y;for(var w=[],E=g.c(e.L),A=E.next();!A.done;A=E.next())A=A.value,(A.GW<N||A.OQ>y)&&w.push(A);e.L=w;w=g.c(e.N.values());for(E=w.next();!E.done;E=w.next())E=E.value,E.start>=N&&E.end<=y&&(e.playback.removeCueRange(E),e.N.delete(E.getId()),e.playback.Fh("sdai",{rmAdCR:1}));w=yi(e,N/1E3);N=w.Lc;w=w.Xs;if(N&&(w=w*1E3-N.GW,E=N.GW+w,N.durationMs=w,N.OQ=E,w=e.N.get(N.cpn))){E=g.c(e.Z);for(A=E.next();!A.done;A=E.next())A=A.value,A.start===w.end?
A.start=N.GW+N.durationMs:A.end===w.start&&(A.end=N.GW);w.start=N.GW;w.end=N.GW+N.durationMs}if(N=yi(e,y/1E3).Lc){var T;w="playback_timelinePlaybackId_"+N.FS+"_video_id_"+((T=N.videoData)==null?void 0:T.videoId)+"_durationMs_"+N.durationMs+"_enterTimeMs_"+N.GW+"_parentReturnTimeMs_"+N.OQ;e.iR("Invalid_clearEndTimeMs_"+y+"_that_falls_during_"+w+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
IE5=function(e){e.aq.clearAll();e.N.clear();e.Z=[];e.L=[];e.K.clear();e.pX.clear();e.Ng.clear();e.G.clear();e.Kx=[];e.Kh=null;e.jp.clear();e.Zl=[];e.FZ=[];e.U2=[];e.LX=[];e.Et=[];e.VB.clear();e.NK.clear();e.CC.clear();e.Ut.clear();e.Rq=!1;e.J=void 0;e.l9=0;e.Bk=!0;e.D=!1;e.Bp=0;e.PY=0;e.jn=!1;e.g2=!1;e.j="";e.qg.isActive()&&LU(e)};
zI3=function(e,N,y,w,E,A){if(!e.g2)if(g.vo0(e,y))e.i9&&e.playback.Fh("sdai",{gdu:"undec",seg:y,itag:E});else if(N=E4(e,N,y,w,A),!(e.playback.getVideoData().Au()&&(N==null?0:N.Aw)))return N};
E4=function(e,N,y,w,E){var A=e.G.get(y);if(!A){if(A=i0s(e,N))return A;N=e.ow(y-1,w!=null?w:2);if(E)return e.playback.Fh("sdai",{misscue:E,sq:y,type:w,prevsstate:N==null?void 0:N.Z8,prevrecord:e.G.has(y-1)}),e.G.get(y-1);if((N==null?void 0:N.Z8)===2)return e.playback.Fh("sdai",{adnf:1,sq:y,type:w,prevrecord:e.G.has(y-1)}),e.G.get(y-1)}return A};
i0s=function(e,N){N+=e.U$();if(e.ph.T("html5_lifa_overdecorate_fix"))a:{var y=1;y=y===void 0?0:y;var w=N*1E3;e=g.c(e.L);for(var E=e.next();!E.done;E=e.next()){E=E.value;var A=E.oO?E.oO*1E3:E.GW;if(w>=E.GW-y*1E3&&w<=A+E.durationMs+y*1E3){y={Lc:E,Xs:N};break a}}y={Lc:void 0,Xs:N}}else e.ph.T("html5_use_time_without_threshold_first")&&(y=yi(e,N)),e.ph.T("html5_use_time_without_threshold_first")&&((w=y)==null?0:w.Lc)||(y=yi(e,N,1));var T;return(T=y)==null?void 0:T.Lc};
DFE=function(e,N){N=N===void 0?"":N;var y=sh(N)||void 0;if(!N||!y){var w;e.playback.Fh("sdai",{adcfg:(w=N)==null?void 0:w.length,dcfg:y==null?void 0:y.length})}return y};
goH=function(e){if(e.Et.length)for(var N=g.c(e.Et),y=N.next();!y.done;y=N.next())e.onCueRangeExit(y.value);N=g.c(e.N.values());for(y=N.next();!y.done;y=N.next())e.playback.removeCueRange(y.value);N=g.c(e.Z);for(y=N.next();!y.done;y=N.next())e.playback.removeCueRange(y.value);e.N.clear();e.Z=[];e.aq.clearAll();e.J||(e.Bk=!0)};
eo=function(e,N,y,w,E,A,T){if(N&&y){e.hM=y.cpn;a5(e,y);var p=sD(e,"a2a",y);e.playback.Fh("sdai",p);e.Bp++;e.playback.T5(N,y,w||0,E||0,!!A,!!T)}else e.playback.Fh("sdai",{misspbkonadtrans:1,enter:(y==null?void 0:y.cpn)||"",exit:(N==null?void 0:N.cpn)||"",seek:A,skip:T})};
fEF=function(e,N,y,w){if(w)for(w=0;w<e.Z.length;){var E=e.Z[w];if(E.start<N&&E.end>y){var A=E.end;E.end=N;VhM(e,y,A)}else if(E.start>=N&&E.start<y&&E.end>y)E.start=y;else if(E.end>N&&E.end<=y&&E.start<N)E.end=N;else if(E.start>=N&&E.end<=y){e.playback.removeCueRange(E);if(e.Et.includes(E))e.onCueRangeExit(E);e.Z.splice(w,1);continue}w++}else VhM(e,N,y)};
VhM=function(e,N,y){N=e.QJ(N,y);y=!0;g.rr(e.Z,N,function(T,p){return T.start-p.start});
for(var w=0;w<e.Z.length;){if(w>0){var E=e.Z[w],A=e.Z[w-1];if(Math.round(A.end/1E3)>=Math.round(E.start/1E3)){A.end=E.end;E!==N?e.playback.removeCueRange(E):y=!1;e.Z.splice(w,1);continue}}w++}if(y)for(e.playback.addCueRange(N),N=e.playback.I7("serverstitchedcuerange",36E5),N=g.c(N),y=N.next();!y.done;y=N.next())e.N.delete(y.value.getId())};
AP=function(e,N,y){if(y===void 0||!y){y=g.c(e.Kx);for(var w=y.next();!w.done;w=y.next()){w=w.value;if(N>=w.start&&N<=w.end)return;if(N===w.end+1){w.end+=1;return}}e.Kx.push(new SX9(N))}};
g.vo0=function(e,N){e=g.c(e.Kx);for(var y=e.next();!y.done;y=e.next())if(y=y.value,N>=y.start&&N<=y.end)return!0;return!1};
cNs=function(e,N,y,w,E){var A;N={reason:"overlapping_playbacks",Ey1:N,GW:y,OQ:w,nih:E.FS,Ymq:((A=E.videoData)==null?void 0:A.videoId)||"",Eik:E.durationMs,Bf1:E.GW,mTq:E.OQ};UD(e,N)};
UD=function(e,N,y){e.playback.TD(N,y)};
th5=function(e,N){var y=[];e=e.Ng.get(N);if(!e)return[];e=g.c(e);for(N=e.next();!N.done;N=e.next())N=N.value,N.cpn&&y.push(N.cpn);return y};
uW_=function(e,N,y){var w=0;e=e.Ng.get(y);if(!e)return-1;e=g.c(e);for(y=e.next();!y.done;y=e.next()){if(y.value.cpn===N)return w;w++}return-1};
qXF=function(e,N){var y=0;e=e.Ng.get(N);if(!e)return 0;e=g.c(e);for(N=e.next();!N.done;N=e.next())N=N.value,N.durationMs!==0&&N.OQ!==N.GW&&y++;return y};
Z09=function(e,N,y){var w=!1;if(y&&(y=e.Ng.get(y))){y=g.c(y);for(var E=y.next();!E.done;E=y.next())E=E.value,E.durationMs!==0&&E.OQ!==E.GW&&(E=E.cpn,N===E&&(w=!0),w&&!e.NK.has(E)&&(e.playback.Fh("sdai",{decoratedAd:E}),e.NK.add(E)))}};
b0E=function(e){e.i9&&e.playback.Fh("sdai",{adf:"0_"+((new Date).getTime()/1E3-e.PY)+"_isTimeout_"+e.Rq})};
hIE=function(e,N,y){if(e.Zl.length)for(var w=g.c(e.Zl),E=w.next(),A={};!E.done;A={fW:void 0},E=w.next()){A.fW=E.value;E=A.fW.startSecs*1E3;var T=A.fW.Vj*1E3+E;if(N>E&&N<T||y>E&&y<T)return DR(e.U2,function(p){return function(C){return C.identifier===p.fW.identifier}}(A))||(e.playback.Fh("sdai",{adskip:N}),e.U2.push(A.fW)),A.fW}};
LU=function(e){e.Rq=!1;e.qg.isActive()&&b0E(e);e.qg.stop();e.tP(!1)};
xFE=function(){g.GT.apply(this,arguments)};
mF_=function(e,N,y){g.x.call(this);var w=this;this.api=e;this.timeline=N;this.playback=y;this.Ws=new Map;this.Tx=new Map;this.Q5=new Map;this.events=new g.fd(this);this.Bp=0;this.vz=this.hM="";this.iQ=[];this.sH=new Set;this.TP=new g.e6(function(){w.api.playVideo(1,w.api.T("html5_ssap_keep_media_on_finish_segment"));w.api.Fh("ssap",{nve:""+w.hM});jTF(w,4)},3E4);
this.s7="";this.hE=new Set;this.l7=!0;this.oh=new Map;this.zH=new Set;this.Ai=this.ED=!1;this.pK="";this.Ma=null;this.lk={bmh:function(){return w.Tx},
nY:function(E){if(E=w.Tx.get(E))w.onCueRangeEnter(E)},
onCueRangeEnter:function(E){w.onCueRangeEnter(E)},
IFt:function(){return w.ED}};
this.playback.getPlayerType();no_(this);N.K=void 0;this.events.Y(this.api,g.AA("ssap"),this.onCueRangeEnter);this.events.Y(this.api,"internalAbandon",this.FB);this.api.T("html5_ssap_timeline_handle_error_and_abandon")&&this.events.Y(this.api,"presentingplayerstatechange",this.rz);g.Q(this,this.TP);this.TmP=g.Y2(e.X().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.a5=e.T("html5_disable_ssap_append_pause");this.ED=QTH(this)};
H0n=function(e,N,y,w){for(var E=g.c(w),A=E.next();!A.done;A=E.next()){var T=A.value;T.N||((A=KU(T),T=T.getVideoData(),A&&T&&e.playback.JW.LW().qs(A,T,2),T)?A||(T=void 0,e.api.Fh("ssap",{macac:A,maccc:(T=e.timeline.J)==null?void 0:KU(T)})):(T=void 0,e.api.Fh("ssap",{mvac:A,mvcc:(T=e.timeline.J)==null?void 0:KU(T)})))}return WK(e.timeline,N,y,w)};
WB0=function(e,N){if(!e.sH.has(e.hM)){var y=0,w=0,E=Nt(e.timeline,e.hM);if(E==null?0:E.length)for(E=g.c(E),E=E.next();!E.done;E=E.next()){w=E.value;y=w.EY();w=w.U_();break}if(!(w>0&&w>N*1E3+e.TmP)&&(w=KB5(e,y))){N=!1;y=void 0;w=g.c(w.segments);for(E=w.next();!E.done;E=w.next()){E=E.value;if(N){y=E;break}KU(E)===e.hM&&(N=!0)}w=void 0;if(y)w=KU(y);else if(N){var A;w=(A=e.timeline.J)==null?void 0:KU(A)}if(w)e.finishSegmentByCpn(e.hM,w,2,void 0);else{var T;e.api.Fh("ssap",{mfnc:1,mfncc:(T=e.timeline.J)==
null?void 0:KU(T)})}}}};
QTH=function(e){return e.api.T("html5_force_ssap_gapful_switch")||e.api.T("html5_ssap_enable_legacy_browser_logic")&&!Zo()};
G21=function(e,N,y,w){e.Q5.set(N,w);O0n(e,N,y);RI5(e,y)};
XC=function(e,N){e=Nt(e.timeline,N);return(e==null?0:e.length)?e[0].EY():0};
P0=function(e,N){var y=y===void 0?!1:y;var w=e.timeline.J;if(!w)return{clipId:"",N3:0};var E=UFH(e,N,y);if(E)return{clipId:KU(E)||"",N3:E.EY()};e.api.Fh("mci",{cs:KU(w),mt:N,tl:Mo(e),invt:!!y});return{clipId:"",N3:0}};
LH=function(e){var N=e.timeline.J;if(!N)return 0;e=0;if(N.J.size===0)return(N.U_()-N.EY())/1E3;N=N.J.values();N=g.c(N);for(var y=N.next();!y.done;y=N.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())w=w.value,e+=(w.U_()-w.EY())/1E3}return e};
sTs=function(e,N){return(e=LBM(e,N*1E3))?e.EY():0};
aE9=function(e,N){var y=Nt(e.timeline,N);N=0;if(y==null?0:y.length)for(e=g.c(y),y=e.next();!y.done;y=e.next())y=y.value,N+=(y.U_()-y.EY())/1E3;else return LH(e);return N};
LBM=function(e,N){if(e=Nt(e.timeline,e.hM)){e=g.c(e);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.EY()<=N&&y.U_()>=N)return y}};
ep5=function(e){var N=e.playback.getVideoData();e.hM&&(e=e.Ws.get(e.hM))&&(N=e);return N};
KB5=function(e,N,y){y=y===void 0?!1:y;var w=e.timeline.J;if(w){w=w.J;var E=Array.from(w.keys());g.pf(E);N=g.T7(E,N);N=w.get(E[N<0?(N+2)*-1:N]);if(!y&&N){y=g.c(N);for(N=y.next();!N.done;N=y.next())if(N=N.value,N.EY()!==N.U_())return N;return e.timeline}return N&&N.length>0?N[N.length-1]:void 0}};
UFH=function(e,N,y){y=y===void 0?!1:y;var w=KB5(e,N,y);if(w){if(e=w.segments,e.length){for(var E=g.c(e),A=E.next();!A.done;A=E.next())if(A=A.value,A.EY()<=N&&A.U_()>N)return A;if(y&&w.EY()===w.U_())return e[0]}}else e.api.Fh("ssap",{ctnf:1})};
jTF=function(e,N){var y;if(e.s7)for(y=e.iQ.shift();y&&y!==e.s7;)y=e.iQ.shift();else y=e.iQ.shift();if(y){if(e.sH.has(y))NuP(e,y);else if(N===3||N===4)e.TP.stop(),e.api.playVideo(1,e.api.T("html5_ssap_keep_media_on_finish_segment"));e.Q5.set(e.hM,N);e.api.Fh("ssap",{onvftn:1});RI5(e,y);return!1}e.api.Fh("ssap",{onvftv:1});e.TP.stop();return!0};
NuP=function(e,N){N=Nt(e.timeline,N);if(N==null?0:N.length)e.api.pauseVideo(),e.TP.start(N[0].Jv)};
RI5=function(e,N){var y=e.playback.getVideoData(),w=y.clientPlaybackNonce;e.Ma&&(e.events.CX(e.Ma),e.Ma=null,e.playback.gZ());var E=e.hM,A=!1;if(E==="")E=w,A=!0;else if(E===void 0){var T=e.playback.JW.LW().b6;T&&e.timeline.N.has(T)&&(E=T);e.api.Fh("ssap",{mcc:E+";"+N});e.playback.Qi(new P3("ssap.timelineerror",{e:"missing_current_cpn",pcpn:E,ccpn:N}))}if(E===N)A&&y&&yb9(e,y,A);else{T=e.Q5.get(E);if(!A&&(!T||T!==3&&T!==5&&T!==6&&T!==7)){var p=e.api.iX(e.hM);e.api.Fh("ssap",{nmec:p,cpc:e.hM,ec:N})}T&&
T!==2||e.aM();e.hM=N;e.aM();N=Nt(e.timeline,e.hM);if(N==null?0:N.length){N=N[0];p=N.getType();E!==w&&(e.vz=E,y=e.Ws.get(E));T?e.Q5.delete(E):T=A?1:2;e.api.T("html5_ssap_pacf_qoe_ctmp")&&p===2&&!N.N&&(e.Ma=e.events.Y(e.api,"onVideoProgress",e.qYP));e.api.Fh("ssapt",{ostro:T,pcpn:E,ccpn:e.hM});a:{var C=e.hM;if(!e.Tx.has(C))for(var r=g.c(e.Tx),Y=r.next();!Y.done;Y=r.next()){var M=g.c(Y.value);Y=M.next().value;M=M.next().value;if(M.getId().includes(C)){C=Y;break a}}}Y=C;r=e.api.X().T("html5_ssap_insert_su_before_nonvideo")&&
Y!==e.hM;M=e.playback.JW.LW();if(M.b6!==Y){var l=M.Eg(M.b6);C=M.Eg(Y);M.b6=Y;C!==l&&(l.qoe&&(Y=l.qoe,Y.provider.ph.B9()&&Y.Fh("ssap",{qoesus:"1",vid:Y.provider.videoData.videoId}),r&&(r=g.BG(Y.provider),ljH(Y,r,"SU")),isNaN(Y.Z)||g.k3(Y.Z)),C.resume())}r=Math.max(0,TI(e,E));C=e.playback.getCurrentTime();Y=Math.max(0,C-XC(e,e.hM)/1E3);C=N.getVideoData();M=T===3||T===5||T===6||T===7;e.api.T("html5_ssap_skip_illegal_seeking")&&(l=e.playback.getPlayerState(),l=!g.G(l,8)&&g.G(l,16),M=M||l,l&&e.api.Fh("ssap",
{iis:1}));l=e.playback;var F=E,S=e.hM,k=e.playback.getPlayerState();l.JW.LW().pP(F,S,r,Y,!1,M,k,!0);e.api.Fh("ssapt",{ostri:T,pcpn:E,ccpn:e.hM});var X;r=E;Y=e.hM;M=(X=e.oh.get(E))!=null?X:(0,g.iC)();uhH(r,Y,w,C,M,y);e.oh.delete(E);A?y=void 0:y||e.api.Fh("ssap",{pvdm:E+";"+e.hM,pvdmc:e.hM===w?"1":"0"});e.api.Fh("ssap",{tpac:E+";"+e.hM,tpcc:w,tpv:(C==null?0:C.WG())?"1":"0"},!1,1);e.api.X().T("html5_ssap_cleanup_player_switch_ad_player")&&e.api.MB();e.api.publish("videodatachange","newdata",C,p,y,T);
N.N||e.playback.getVideoData().publish("dataupdated");e.sH.delete(E);e.s7="";C&&p===1?yb9(e,C):e.playback.Fh("ssap",{nis:e.hM});p===2?e.Bp++:e.Bp=0}}};
yb9=function(e,N,y){y=y===void 0?!1:y;if(N.startSeconds&&e.l7){var w=N.startSeconds;N=Nt(e.timeline,N.clientPlaybackNonce);if(N==null?0:N.length)w+=N[0].EY()/1E3,e.api.T("htm5_ssap_ignore_initial_seek_if_too_big")&&w>=e.K1()||(e.playback.seekTo(w,{Gf:!0}),e.l7=!1,e.playback.Fh("ssap",{is:e.hM,co:y?"1":"0",tse:w.toFixed()}))}};
O0n=function(e,N,y){N=Nt(e.timeline,N);if(N!=null&&N.length&&(N=KB5(e,N[0].EY()))){N=g.c(N.segments);for(var w=N.next();!w.done;w=N.next()){w=w.value;if(KU(w)===y)break;if(w=KU(w)){var E=e.Tx.get(w);E&&e.playback.removeCueRange(E);e.Tx.delete(w)}}}};
dA=function(e){return e.playback.getVideoData().clientPlaybackNonce};
v_1=function(e,N){if(e.ED&&e.hM!==N)return!1;if(e.a5)return!0;if(N=e.Tx.get(N))if(N=N.getId().split(","),N.length>1)for(var y=0;y<N.length;y++){var w=y<N.length-1?N[y+1]:"";if(e.sH.has(N[y]))return N[y]===e.hM&&!e.sH.has(w)}return!0};
mtE=function(e,N,y){UFH(e,N)||e.playback.Fh("ssap",{ilgsk:N.toFixed(),mep:y?"1":"0",tl:Mo(e)})};
TI=function(e,N){N=N||e.hM;var y=e.Ws.get(N);return y?y.Bk:N!==dA(e)?0:e.playback.getVideoData().Bk};
Mo=function(e){var N=e.hM;N||(N=e.playback.getVideoData().clientPlaybackNonce);var y,w,E=Array.from((w=(y=e.timeline.J)==null?void 0:y.J.values())!=null?w:[]);y=[];if(E==null?0:E.length)for(w=g.c(E),E=w.next();!E.done;E=w.next())if(E=E.value,E.length&&E[0]&&(E=E[0].segments,E.length)){E=g.c(E);for(var A=E.next();!A.done;A=E.next()){var T=A.value;A="st."+T.EY()+";";A+="et."+T.U_()+";";var p=KU(T);p&&(A+="cpn."+p+";",A+="a."+(N===p?1:0)+";");if(T=T.getVideoData())p=void 0,A+="vid."+((p=T.videoId)!=
null?p:"nvd");y.push(A)}}return(y.length?y.join(","):"empty."+N)+";cpcpn."+e.XH()};
no_=function(e){e.playback.E7(Array.from(e.Tx.values()));e.Tx.clear()};
EOH=function(e,N,y,w){g.x.call(this);var E=this;this.api=e;this.ph=N;this.J=y;this.app=w;this.L=new Map;this.N=[];this.K=this.G=null;this.Ng=NaN;this.Z=this.j=this.D=null;this.U=new g.e6(function(){wZP(E,E.Ng,E.D||void 0)});
this.Kh=[];this.qg=new g.e6(function(){var A=E.Kh.pop();if(A){var T=A.FS,p=A.playerVars;A=A.playerType;p&&(p.prefer_gapless=!0,E.api.preloadVideoByPlayerVars(p,A,NaN,"",T),E.Kh.length&&g.NA(E.qg,4500))}});
this.events=new g.fd(this);this.lk={kVh:function(){return E.N}};
this.J.getPlayerType();g.Q(this,this.U);g.Q(this,this.qg);g.Q(this,this.events);this.events.Y(this.api,g.AA("childplayback"),this.onCueRangeEnter);this.events.Y(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Y(this.api,"presentingplayerstatechange",this.rz)};
pZ9=function(e,N,y,w,E,A){var T=N.cpn,p=N.docid||N.video_id||N.videoId||N.id,C=e.J;A=A===void 0?E+w:A;if(E>A)return JP(e,"enterAfterReturn enterTimeMs="+E+" is greater than parentReturnTimeMs="+A.toFixed(3),T,p),"";var r=C.Ti()*1E3;if(E<r)return JP(e,"enterBeforeMinSeekable enterTimeMs="+E+" is less than parentMinSeekableTimeMs="+r,T,p),"";r=C.getDuration()*1E3;if(A>r)return C="returnAfterDuration parentReturnTimeMs="+A.toFixed(3)+" is greater than parentDurationMs="+r+". And timestampOffset in seconds is "+
C.w7(),JP(e,C,T,p),"";r=null;for(var Y=g.c(e.N),M=Y.next();!M.done;M=Y.next()){M=M.value;if(E>=M.GW&&E<M.OQ)return JP(e,"overlappingEnter",T,p),"";if(A<=M.OQ&&A>M.GW)return JP(e,"overlappingReturn",T,p),"";if(A===M.GW)return JP(e,"outOfOrder",T,p),"";E===M.OQ&&(r=M)}T="cs_childplayback_"+AbF++;p={y6:p7(w,!0),iZ:Infinity,target:null};var l={FS:T,playerVars:N,playerType:y,durationMs:w,GW:E,OQ:A,Qq:p};e.N=e.N.concat(l).sort(function(k,X){return k.GW-X.GW});
r?Tu1(e,r,{y6:p7(r.durationMs,!0),iZ:r.Qq.iZ,target:l}):(N={y6:p7(E,!1),iZ:E,target:l},e.L.set(N.y6,N),C.addCueRange(N.y6));N=!0;if(e.J===e.app.nh()&&(C=C.getCurrentTime()*1E3,C>=l.GW&&C<l.OQ)){var F=e.app.nh().getPlayerState(),S=C-l.GW;yb(function(){JbE(e,l,S/1E3,{},F)});
N=!1}N&&(e.Kh.unshift(l),g.NA(e.qg,0));return T};
p7=function(e,N){return new g.wF(Math.max(0,e-5E3),N?0x8000000000000:e-1,{namespace:"childplayback",priority:9})};
C5_=function(e,N,y,w){e.K=w;e.api.r0(e.J,y,N)};
rb3=function(e,N,y,w){e.K=w;w=N.FS;var E=N.playerVars,A=N.playerType;e.G=N;E&&(e.ph.T("html5_enable_ssap_entity_id")&&(E.cached_load=!0),e.api.enqueueVideoByPlayerVars(E,A,y,w))};
Tu1=function(e,N,y){var w=N.Qq;N.Qq=y;C7(e,N)&&(y=e.app.nh(),w.y6===e.K&&rl(e),y.removeCueRange(w.y6),y.addCueRange(N.Qq.y6))};
rl=function(e){e.G=null;e.K=null;e.api.xB()||e.api.clearQueue()};
$Bn=function(e,N){C7(e,N)||JP(e,"childPlaybackIsNotPresenting");return N.OQ===N.GW+N.durationMs?N.GW+e.app.nh().getCurrentTime()*1E3:N.OQ};
YTM=function(e,N){var y=0;e=g.c(e.N);for(var w=e.next();!w.done;w=e.next()){w=w.value;var E=w.GW/1E3+y,A=E+w.durationMs/1E3;if(E>N)break;if(A>N)return{Lc:w,Xs:N-E};y=A-w.OQ/1E3}return{Lc:null,Xs:N-y}};
wZP=function(e,N,y){y=y===void 0?{}:y;var w=e.Z||e.app.nh().getPlayerState();$9(e,!0);N=isFinite(N)?N:e.J.Un();var E=YTM(e,N);N=E.Xs;var A=(E=E.Lc)&&!C7(e,E)||!E&&e.J!==e.app.nh(),T=N*1E3;T=e.K&&e.K.start<=T&&T<=e.K.end;!A&&T||rl(e);E?JbE(e,E,N,y,w):MFE(e,N,y,w)};
MFE=function(e,N,y,w){var E=e.J;E!==e.app.nh()&&e.app.G5();E.seekTo(N,Object.assign({},{BY:"application_timelinemanager"},y));laF(e,w)};
JbE=function(e,N,y,w,E){var A=C7(e,N);if(!A){N.playerVars.prefer_gapless=!0;e.ph.T("html5_enable_ssap_entity_id")&&(N.playerVars.cached_load=!0);var T=new g.t3(e.ph,N.playerVars);T.FS=N.FS;e.api.Hi(T,N.playerType)}T=e.app.nh();A||T.addCueRange(N.Qq.y6);T.seekTo(y,Object.assign({},{BY:"application_timelinemanager"},w));laF(e,E)};
laF=function(e,N){e=e.app.nh();var y=e.getPlayerState();N.isOrWillBePlaying()&&!y.isOrWillBePlaying()?e.playVideo():N.isPaused()&&!y.isPaused()&&e.pauseVideo()};
$9=function(e,N){e.Ng=NaN;e.D=null;e.U.stop();e.j&&N&&e.j.yr();e.Z=null;e.j=null};
C7=function(e,N){e=e.app.nh();return!!e&&e.getVideoData().FS===N.FS};
Fn5=function(e){var N=e.N.find(function(E){return C7(e,E)});
if(N){var y=e.app.nh();rl(e);var w=new g.a8(8);N=$Bn(e,N)/1E3;MFE(e,N,{},w);y.Fh("forceParentTransition",{childPlayback:1});e.J.Fh("forceParentTransition",{parentPlayback:1})}};
oOE=function(e,N,y){N=N===void 0?-1:N;y=y===void 0?Infinity:y;for(var w=N,E=y,A=g.c(e.L),T=A.next();!T.done;T=A.next()){var p=g.c(T.value);T=p.next().value;p=p.next().value;p.iZ>=w&&p.target&&p.target.OQ<=E&&(e.J.removeCueRange(T),e.L.delete(T))}w=N;E=y;A=[];T=g.c(e.N);for(p=T.next();!p.done;p=T.next())if(p=p.value,p.GW>=w&&p.OQ<=E){var C=e;C.G===p&&rl(C);C7(C,p)&&C.app.G5()}else A.push(p);e.N=A;w=YTM(e,N/1E3);N=w.Lc;w=w.Xs;N&&(w*=1E3,ST_(e,N,w,N.OQ===N.GW+N.durationMs?N.GW+w:N.OQ));(N=YTM(e,y/1E3).Lc)&&
JP(e,"Invalid clearEndTimeMs="+y+" that falls during playback={timelinePlaybackId="+(N.FS+" video_id="+N.playerVars.video_id+" durationMs="+N.durationMs+" enterTimeMs="+N.GW+" parentReturnTimeMs="+N.OQ+"}.Child playbacks can only have duration updated not their start."))};
ST_=function(e,N,y,w){N.durationMs=y;N.OQ=w;w={y6:p7(y,!0),iZ:y,target:null};Tu1(e,N,w);C7(e,N)&&e.app.nh().getCurrentTime()*1E3>y&&(N=$Bn(e,N)/1E3,y=e.app.nh().getPlayerState(),MFE(e,N,{},y))};
JP=function(e,N,y,w){e.J.Fh("timelineerror",{e:N,cpn:y?y:void 0,videoId:w?w:void 0})};
hpF=function(e){e&&e!=="web"&&bIM.includes(e)};
lK=function(e,N){g.x.call(this);var y=this;this.data=[];this.K=e||NaN;this.N=N||null;this.J=new g.e6(function(){Y9(y);Ms(y)});
g.Q(this,this.J)};
cb5=function(e){Y9(e);return e.data.map(function(N){return N.value})};
Y9=function(e){var N=(0,g.iC)();e.data.forEach(function(y){y.expire<N&&FO(e,y,!0)});
e.data=g.CG(e.data,function(y){return!(y.expire<N)})};
FO=function(e,N,y){y&&e.N&&e.N(N.value)};
Ms=function(e){e.J.stop();var N=Infinity;for(var y=g.c(e.data),w=y.next();!w.done;w=y.next())w=w.value,w.expire<N&&(N=w.expire);N&&isFinite(N)&&(N=Math.max(N-Date.now(),100),e.J.start(N))};
So=function(){g.x.call(this);this.J=new lK(5,null);g.Q(this,this.J);this.N=new lK(15,null);g.Q(this,this.N)};
b$P=function(e,N){return N?!!e.J.get(N):!1};
kls=function(e,N){e.dataset.version=N};
P5E=function(e){g.W.call(this,{S:"div",dP:["html5-video-player"],V:{tabindex:e.X().disableOrganicUi?"":"-1",id:e.webPlayerContextConfig?e.webPlayerContextConfig.rootElementId:e.config.attrs.id},W:[{S:"div",B:g.t$.VIDEO_CONTAINER,V:{"data-layer":"0"}}]});var N=this;this.app=e;this.k$=this.hW(g.t$.VIDEO_CONTAINER);this.wj=new g.pK(0,0,0,0);this.fX=null;this.ZE=new g.pK(0,0,0,0);this.ZC=this.VD=this.gg=NaN;this.d8=this.Rs=this.dZ=this.xG=!1;this.WX=NaN;this.ac=!1;this.Ea=null;this.Pq=function(){N.element.focus({preventScroll:!0})};
this.kJ=function(){N.app.Lh.publish("playerUnderlayVisibilityChange","visible");N.fX.classList.remove(g.t$.VIDEO_CONTAINER_TRANSITIONING);N.fX.removeEventListener(e3,N.kJ);N.fX.removeEventListener("transitioncancel",N.kJ)};
var y=this.element.addEventListener,w=this.element.removeEventListener;this.addEventListener=function(A,T,p){y.apply(N.element,[A,T,p])};
this.removeEventListener=function(A,T,p){w.apply(N.element,[A,T,p])};
var E=e.X();E.transparentBackground&&this.o7("ytp-transparent");E.controlsType==="0"&&this.o7("ytp-hide-controls");g.pi(this.element,"ytp-exp-bottom-control-flexbox");g.pi(this.element,"ytp-modern-caption");E.T("enable_new_paid_product_placement")&&!g.mT(E)&&g.pi(this.element,"ytp-exp-ppp-update");E.T("html5_enable_ssap")&&g.pi(this.element,"ytp-ssap");E.T("enable_cairo_refresh_web")&&g.pi(this.element,"ytp-cairo-refresh");g.pi(this.element,"ytp-livebadge-color");E.T("enable_cairo_refresh_signature_moments_web")&&
g.pi(this.element,"ytp-cairo-refresh-signature-moments");E.T("delhi_modern_web_player")&&g.pi(this.element,"ytp-delhi-modern");kls(this.element,Bu0(e));this.hn=!1;this.cQ=new g.l8(NaN,NaN);XZE(this);this.Y(e.Lh,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
XZE=function(e){function N(){e.fX&&oj(e);bK(e)!==e.ac&&e.resize()}
function y(T,p){e.vc(T,p)}
function w(T){T.getVideoData()&&e.updateVideoData(T.getVideoData())}
function E(){e.ZE=new g.pK(0,0,0,0);e.wj=new g.pK(0,0,0,0)}
var A=e.app.Lh;A.addEventListener("initializingmode",E);A.addEventListener("videoplayerreset",w);A.addEventListener("videodatachange",y);A.addEventListener("presentingplayerstatechange",N);e.addOnDisposeCallback(function(){A.removeEventListener("initializingmode",E);A.removeEventListener("videoplayerreset",w);A.removeEventListener("videodatachange",y);A.removeEventListener("presentingplayerstatechange",N)})};
IaJ=function(e){var N=e.app.nh(),y=N=N?N.getVideoData():null;if(N==null?0:g.xK(N))y=e.app.Lh.getVideoData();if(y){if(g.cF(y)||g.kI(y)||g.BF(y))return 16/9;if(On(y)&&y.K.J)return e=y.K.videoInfos[0].video,dBH(e.width,e.height)}return(e=e.fX)?dBH(e.videoWidth,e.videoHeight):16/9};
vOJ=function(e,N,y,w){var E=y,A=dBH(N.width,N.height);e.xG?E=y<A?Infinity:0:isNaN(e.ZC)?isNaN(e.VD)||(E=e.VD):E=e.ZC;isFinite(E)||(E=Math.max(y,A));e=E>A?{width:N.width,height:N.width/E,aspectRatio:E}:E<A?{width:N.height*E,height:N.height,aspectRatio:E}:{width:N.width,height:N.height,aspectRatio:A};w||isNaN(y)||(y>E?e.width=e.height*y:y<E&&(e.height=e.width/y),e.aspectRatio=y);return e};
dBH=function(e,N){return Math.abs(zpn*N-e)<1||Math.abs(zpn/e-N)<1?zpn:e/N};
bK=function(e){if(e.app.getAppState()===1)return!1;if(e.app.getAppState()===6)return!0;var N=e.app.nh();if(!N||N.V_())return!1;e=e.app.Lh.getPlayerStateObject();N=!g.G(e,2)||N&&N.getVideoData().U;var y=g.G(e,1024);return e&&N&&!y&&!e.isCued()};
oj=function(e){var N=e.app.X().controlsType==="3"&&!e.d8&&bK(e)&&!e.app.Xt||!1;e.fX.controls=N;e.fX.tabIndex=N?0:-1;e.app.X().j&&(e.fX.ariaHidden=N||e.app.X().T("video_element_aria_hidden_ks")?"false":"true");N?e.fX.removeEventListener("focus",e.Pq):e.fX.addEventListener("focus",e.Pq)};
iIM=function(e){var N=e.aV(),y=1,w=!1,E=vOJ(e,N,e.getVideoAspectRatio()),A=e.app.X(),T=A.T("enable_desktop_player_underlay"),p=hhs(),C=g.Y2(A.experiments,"player_underlay_min_player_width");C=T&&e.dZ&&e.getPlayerSize().width>C;if(bK(e)){var r=IaJ(e);var Y=isNaN(r)||g.Um||HT&&g.k$||C;Gv&&!g.SE(601)?r=E.aspectRatio:Y=Y||A.controlsType==="3";Y?C?(Y=A.T("place_shrunken_video_on_left_of_player")?16:e.getPlayerSize().width-N.width-16,r=Math.max((e.getPlayerSize().height-N.height)/2,0),Y=new g.pK(Y,r,N.width,
N.height),e.fX.style.setProperty("border-radius","12px")):Y=new g.pK(0,0,N.width,N.height):(y=E.aspectRatio/r,Y=new g.pK((N.width-E.width/y)/2,(N.height-E.height)/2,E.width/y,E.height),y===1&&g.k$&&(r=Y.width-N.height*r,r>0&&(Y.width+=r,Y.height+=r)));g.Y1(e.element,"ytp-fit-cover-video",Math.max(Y.width-E.width,Y.height-E.height)<1);if(p||e.hn)e.fX.style.display="";e.ac=!0}else{Y=-N.height;Gv?Y*=window.devicePixelRatio:g.Hg&&(Y-=window.screen.height);Y=new g.pK(0,Y,N.width,N.height);if(p||e.hn)e.fX.style.display=
"none";e.ac=!1}CK(e.ZE,Y)||(e.ZE=Y,g.IK(A)?(e.fX.style.setProperty("width",Y.width+"px","important"),e.fX.style.setProperty("height",Y.height+"px","important")):g.k0(e.fX,Y.getSize()),w=new g.ri(Y.left,Y.top),g.od(e.fX,Math.round(w.x),Math.round(w.y)),w=!0);N=new g.pK((N.width-E.width)/2,(N.height-E.height)/2,E.width,E.height);CK(e.wj,N)||(e.wj=N,w=!0);g.$0(e.fX,"transform",y===1?"":"scaleX("+y+")");T&&C!==e.Rs&&(C&&(e.fX.addEventListener(e3,e.kJ),e.fX.addEventListener("transitioncancel",e.kJ),e.fX.classList.add(g.t$.VIDEO_CONTAINER_TRANSITIONING)),
e.Rs=C,e.app.Lh.publish("playerUnderlayVisibilityChange",e.Rs?"transitioning":"hidden"));return w};
DB3=function(){this.csn=g.It();this.clientPlaybackNonce=null;this.elements=new Set;this.K=new Set;this.J=new Set;this.N=new Set};
gOP=function(e){if(e.csn!==g.It())if(e.csn==="UNDEFINED_CSN")e.csn=g.It();else{var N=g.It(),y=g.dI();if(N&&y){e.csn=N;for(var w=g.c(e.elements),E=w.next();!E.done;E=w.next())(E=E.value.visualElement)&&E.isClientVe()&&N&&y&&(g.Xj("combine_ve_grafts")?bm(Sq(),E,y):g.NR(g.Rt)(void 0,N,y,E))}if(N)for(e=g.c(e.J),y=e.next();!y.done;y=e.next())(y=y.value.visualElement)&&y.isClientVe()&&g.yv(N,y)}};
g.hP=function(e,N,y,w){g.x.call(this);var E=this;this.logger=new g.RE("App");this.Xt=this.nj=!1;this.LP={};this.Sm=[];this.GU=!1;this.kY=null;this.intentionalPlayback=!1;this.PJ=!0;this.CQ=!1;this.KK=this.Zw=null;this.dC=!0;this.mediaElement=this.c9=null;this.Pr=NaN;this.Ab=!1;this.sQ=this.KJ=this.k_=this.Q6=this.screenLayer=this.playlist=null;this.fQ=[];this.Be=0;this.lk={mxB:function(){return E.UX},
bP:function(){return E.k_},
Mf:function(T){E.k_=T},
Nh:function(T,p){E.k_&&E.k_.Nh(T,p)}};
this.logger.debug("constructor begin");this.config=WI5(N||{});this.webPlayerContextConfig=y;A4E();N=this.config.args||{};this.ph=new fa(N,y,y?y.canaryState:this.config.assets.player_canary_state,w,this);g.Q(this,this.ph);CT9(this.ph);w=$FJ(this.ph);this.ph.B9()&&this.ph.T("html5_record_h5vcc_flags")&&this.fQ.push({key:"h5vcc",value:w});this.ph.experiments.gP("jspb_serialize_with_worker")&&n3J();this.ph.experiments.gP("gzip_gel_with_worker")&&grP();this.ph.N&&!VFF&&(window.addEventListener(SV?"touchstart":
"click",jS5,{capture:!0,passive:!0}),VFF=!0);this.T("html5_onesie")&&(this.lz=new BO(this.ph),g.Q(this,this.lz));this.xu=A2(kj(this.ph)&&!0,N.enablesizebutton);this.zp=A2(!1,N.player_wide);this.visibility=new wJE;g.Q(this,this.visibility);this.T("web_log_theater_mode_visibility")&&this.Gb(A2(!1,N.player_wide));this.nj=A2(!1,N.external_list);this.events=new g.fd(this);g.Q(this,this.events);this.T("start_client_gcf")&&(gW(ua(),{ZT:ro,aB:NxE()}),this.Md=ua().resolve(ro),Ern(this.Md));this.v91=new yL;
g.Q(this,this.v91);this.zr=new DB3;w=new wZ;this.Lh=new g.SX(this,w);g.Q(this,this.Lh);this.template=new P5E(this);g.Q(this,this.template);this.appState=1;this.Fe=fan(this);g.Q(this,w);w={};this.bK=(w.internalvideodatachange=this.qQ,w.playbackready=this.Woh,w.playbackstarted=this.eyB,w.statechange=this.v_l,w);this.pB=new h9(this.Lh);this.HG=tFE(this);w=this.T("html5_load_wasm");N=this.T("html5_allow_asmjs");if(w&&uf5||N)this.ph.AA=It3(this.HG,N),Tm(A$(this.ph.AA,function(T){E.ph.uB=T;var p;(p=E.nh())==
null||p.Fh("wasm",{a:T.Um})}),function(T){g.uA(T);
T="message"in T&&T.message||T.toString()||"";var p;(p=E.nh())==null||p.Fh("wasm",{e:T})});
else if(w&&!uf5){var A;(A=this.nh())==null||A.Fh("wasm",{e:"wasm unavailable"})}this.R9=new fD9(this.ph,this.HG);this.Lh.publish("csiinitialized");A=10;g.I_(this.ph)&&(A=3);Qy(this.ph)&&(A=g.Y2(this.ph.experiments,"tvhtml5_unplugged_preload_cache_size"));A=new lK(A,function(T){T!==E.Ug(T.getPlayerType())&&Ov(T)});
g.Q(this,A);this.UX=new Eo3(A,{});A=qTF(this);this.UX.tH(A.xi);ZI5(this);A={};this.hF=(A.airplayactivechange=this.onAirPlayActiveChange,A.airplayavailabilitychange=this.onAirPlayAvailabilityChange,A.beginseeking=this.AS,A.sabrCaptionsDataLoaded=this.QQ,A.endseeking=this.zK,A.internalAbandon=this.FB,A.internalaudioformatchange=this.e3,A.internalvideodatachange=this.onVideoDataChange,A.internalvideoformatchange=this.sW,A.liveviewshift=this.Pkq,A.playbackstalledatstart=this.Q2W,A.progresssync=this.f_9,
A.onAbnormalityDetected=this.jT,A.onSnackbarMessage=this.onSnackbarMessage,A.onLoadProgress=this.onLoadProgress,A.SEEK_COMPLETE=this.IE,A.SEEK_TO=this.Bag,A.onVideoProgress=this.onVideoProgress,A.onLoadedMetadata=this.onLoadedMetadata,A.onAutoplayBlocked=this.onAutoplayBlocked,A.onPlaybackPauseAtStart=this.QJt,A.playbackready=this.IBg,A.statechange=this.Uw,A.newelementrequired=this.x4,A.heartbeatparams=this.pu,A.videoelementevent=this.KP,A.drmoutputrestricted=this.onDrmOutputRestricted,A.signatureexpired=
this.evh,A.nonfatalerror=this.U7P,A.reloadplayer=this.uSh,A);this.EA=new g.fd(this);g.Q(this,this.EA);this.Bi=new So;g.Q(this,this.Bi);this.C3=this.EV=-1;this.Qx=new g.e6(this.template.resize,16,this.template);g.Q(this,this.Qx);this.Yk=new EOH(this.Lh,this.ph,this.NU(),this);this.qx=new HK(this.ph);this.OH=new Qq(this);g.Q(this,this.OH);this.QL=new Zt(this);g.Q(this,this.QL);hpF(this.ph.J.c);this.events.Y(this.Lh,g.AA("appapi"),this.YgB);this.events.Y(this.Lh,g.TW("appapi"),this.X9s);this.events.Y(this.Lh,
g.AA("appprogressboundary"),this.tpZ);this.events.Y(this.Lh,g.TW("applooprange"),this.JH);this.events.Y(this.Lh,"presentingplayerstatechange",this.rz);this.events.Y(this.Lh,"resize",this.zv1);this.template.yB(jU(document,e));this.events.Y(this.Lh,"offlineslatestatechange",this.ecB);this.T("html5_enable_sabr_live_captions")&&(this.events.Y(this.Lh,"sabrCaptionsTrackChanged",this.Ta9),this.events.Y(this.Lh,"sabrCaptionsBufferedRangesUpdated",this.Lsh));this.HG.C.X().vp&&t9(this.HG,"offline");this.ph.Dl&&
g.Po("ux",g.ub);e=g.Y2(this.ph.experiments,"html5_defer_fetch_att_ms");this.Ir=new g.e6(this.DPl,e,this);g.Q(this,this.Ir);this.M7().WG()&&(g.xh()&&this.M7().l9.push("remote"),xBH(this));this.R9.tick("fs");jbJ(this);this.ph.Dl&&t9(this.HG,"ux",!0);g.hR(this.HG.C.X())&&t9(this.HG,"embed");this.T("web_player_sentinel_is_uniplayer")||g.uA(new g.Gh("Player experiment flags missing","web_player_sentinel_is_uniplayer"));e=this.T("web_player_sentinel_yt_experiments_sync");A=g.Xj("web_player_sentinel_yt_experiments_sync");
e!==A&&g.uA(new g.Gh("b/195699950",{yt:e,player:A}));y||g.uA(new g.Gh("b/179532961"));this.ww=nO5(this);if(y=g.Y2(this.ph.experiments,"html5_block_pip_safari_delay"))this.Ey=new g.e6(this.Ak,y,this),g.Q(this,this.Ey);qR=this.ph.LX;y=g.Y2(this.ph.experiments,"html5_performance_impact_profiling_timer_ms");y>0&&(this.IU=new g.kT(y),g.Q(this,this.IU),this.events.Y(this.IU,"tick",function(){E.DO&&Qb9.x$("apit",E.DO);E.DO=Qb9.X0()}));
this.Lh.publish("applicationInitialized");this.logger.debug("constructor end")};
nO5=function(e){function N(y){y.stack&&y.stack.indexOf("player")!==-1&&(e.nh()||e.NU()).ST(y)}
qi.subscribe("handleError",N);aG.push(N);return function(){qi.unsubscribe("handleError",N);var y=aG.indexOf(N);y!==-1&&aG.splice(y,1)}};
qTF=function(e){var N=new g.t3(e.ph,e.config.args);e.Lh.publish("initialvideodatacreated",N);return g.cR(e,1,N)};
ZI5=function(e){var N=e.NU();N.setPlaybackRate(e.ph.j?1:mBs(e,Number(g.qI("yt-player-playback-rate"))||1));N.H_(e.bK,e);N.bW()};
tFE=function(e){var N="",y=Bu0(e);y.indexOf("//")===0&&(y=e.ph.protocol+":"+y);var w=y.lastIndexOf("/base.js");w!==-1&&(N=y.substring(0,w+1));if(y=Error().stack)if(y=y.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))y=y[1],y.includes(N)||g.uA(Error("Player module URL mismatch: "+(y+" vs "+N+".")));N=new CbM(e.Lh,N);HIF(e,N);return N};
HIF=function(e,N){var y={};y=(y.destroyed=function(){e.onApiChange()},y);
N.K=y};
fan=function(e){if(e.ph.storeUserVolume){e=g.qI("yt-player-volume")||{};var N=e.volume;e={volume:isNaN(N)?100:g.Ja(Math.floor(N),0,100),muted:!!e.muted}}else e={volume:100,muted:e.ph.mute};return e};
k9=function(e){e.mediaElement=e.ph.deviceIsAudioOnly?new g.Tf(g.sA("AUDIO")):qV.pop()||new g.Tf(g.sA("VIDEO"));g.Q(e,e.mediaElement);var N=e.nh();N&&N.setMediaElement(e.mediaElement);try{e.ph.U2?(e.KJ&&e.events.CX(e.KJ),e.KJ=e.events.Y(e.mediaElement,"volumechange",e.Ekh)):(e.mediaElement.Zs(e.Fe.muted),e.mediaElement.setVolume(e.Fe.volume/100))}catch(E){e.zS("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(E&&typeof E==="object"&&"message"in E&&typeof E.message==="string"&&E.message.replace(/[;:,]/g,
"_")));return}g.g9(e.EA);KnM(e);N=e.template;var y=e.mediaElement.ut();N.fX=y;N.d8=!1;N.fX.parentNode||yp(N.k$,N.fX,0);N.ZE=new g.pK(0,0,0,0);iIM(N);oj(N);y=N.fX;g.pi(y,"video-stream");g.pi(y,g.t$.MAIN_VIDEO);var w=N.app.X();w.ll&&y.setAttribute("data-no-fullscreen","true");w.T("html5_local_playsinline")?"playsInline"in v3()&&(y.playsInline=!0):w.Hc&&(y.setAttribute("webkit-playsinline",""),y.setAttribute("playsinline",""));w.TV&&N.fX&&N.Y(y,"click",y.play,y);try{e.mediaElement.activate()}catch(E){e.zS("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(E&&typeof E==="object"&&"message"in E&&typeof E.message==="string"&&E.message.replace(/[;:,]/g,"_")))}};
OI0=function(e){if(!Wn9(e)){var N=e.NU().LC();N&&(N=N.u5(),N instanceof Promise&&N.catch(function(){}));
BR(e,J_(e.getPlayerStateObject()))}};
KnM=function(e){var N=e.mediaElement;gp()?e.EA.Y(N,"webkitpresentationmodechanged",e.Gas):window.document.pictureInPictureEnabled&&(e.EA.Y(N,"enterpictureinpicture",function(){e.bX(!0)}),e.EA.Y(N,"leavepictureinpicture",function(){e.bX(!1)}));
s8&&(e.EA.Y(N,"webkitbeginfullscreen",function(){e.q3(3)}),e.EA.Y(N,"webkitendfullscreen",function(){e.q3(0)}))};
RpM=function(e,N){var y=N.getPlayerType(),w=e.UX.Ug(y);N!==e.NU()&&N!==w&&(w==null||Ov(w),e.UX.N[y]=N)};
GlM=function(e,N){N=N===void 0?!0:N;e.logger.debug("start clear presenting player");var y;if(y=e.sQ){y=e.sQ;var w=e.mediaElement;y=!!w&&w===y.mediaElement}y&&(e.s_(),k9(e));if(y=e.nh())y.s_(!N),y.qB(e.hF,e),y.getPlayerType()!==1&&Ov(y);e.UX.K=null;e.logger.debug("finish clear presenting player")};
g.cR=function(e,N,y,w){var E=e.R9;N===2&&(E=new fD9(e.ph));return new g.oY(e.ph,N,E,e.template,function(A,T,p){e.Lh.publish(A,T,p)},function(){return e.Lh.getVisibilityState()},e.visibility,e,y,w)};
UBs=function(e,N,y,w){e=g.cR(e,N,y,w);e.bW();return e};
XO=function(e,N){return e.As(N)?e.NU():N};
PR=function(e,N){var y=e.nh(),w=e.NU();return y&&N===w&&e.As(N)&&e.As(y)?y:N};
aaE=function(e){e.logger.debug("start application playback");if(e.NU().getPlayerState().isError())e.logger.debug("start application playback done, player in error state");else{var N=dl(e);e.M7().isLoaded();N&&e.yY(6);Ln3(e);hVP(e.HG)||sb_(e)}};
sb_=function(e){if(!dl(e)){var N=ql(e.HG);N&&!N.created&&rUE(e.HG)&&(e.logger.debug("reload ad module"),N.create())}};
Ln3=function(e){e.logger.debug("start presenter playback");var N=e.getVideoData(),y=e.HG;hVP(y)||y.Vc();!uf5&&y.C.T("html5_allow_asmjs")&&dVF(y);t9(y,"embed");t9(y,"kids");t9(y,"remote");t9(y,"miniplayer");t9(y,"offline");t9(y,"unplugged");t9(y,"ypc",!1,!0);t9(y,"ypc_clickwrap",!1,!0);t9(y,"yto",!1,!0);t9(y,"webgl",!1,!0);cUs(y)||(t9(y,"captions",!0),t9(y,"endscreen"),y.RZ()||y.w0(),t9(y,"creatorendscreen",!0));y.Ht();e.Lh.publish("videoready",N)};
Ij=function(e){e=e.M7();e.WG();return tY(e)};
jbJ=function(e){e.logger.debug("start prepare initial playback");e.tI();var N=e.config.args;k9(e);var y=e.M7();e.Lh.Y9("onVolumeChange",e.Fe);if(N&&xhs(N)){var w=ZW(e.ph);w&&!e.nj&&(N.fetch=0);var E=g.hR(e.ph);E&&!e.nj&&(N.fetch=0);vR(e,N);g.hR(e.ph)&&e.R9.tick("ep_pr_s");if(!w||e.nj)if(E&&!e.nj)eJH(e);else if(!y.WG())e.playlist.onReady(function(){zI(e)})}e.w1(e.NU());
g.G(e.NU().getPlayerState(),128)||(N=Thn(!e.ph.deviceIsAudioOnly),N==="fmt.noneavailable"?e.zS("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):N==="html5.missingapi"?e.zS(N,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):y&&y.WG()&&Ij(e)&&(e.ph.CN||e.ph.Pf)?iK(e):y.KT?e.T("embeds_enable_full_length_inline_muted_autoplay")?e.Lh.mutedAutoplay({durationMode:y.mutedAutoplayDurationMode}):e.Lh.mutedAutoplay():g.qI("yt-player-playback-on-reload")?(g.$$("embedsItpPlayedOnReload",{playedOnReload:!0,
isLoggedIn:!!e.ph.l9}),g.uY("yt-player-playback-on-reload",!1),iK(e)):Wg(e.ph)||NJn(e),g.na(e.ph)||nC(e.ph)==="MWEB"?(g.e1(g.yK(),function(){Dg(e)}),g.e1(g.yK(),function(){lc_()})):(Dg(e),lc_()),e.logger.debug("finish prepare initial playback"))};
Dg=function(e){if(!e.T("use_rta_for_player"))if(e.T("fetch_att_independently"))g.NA(e.Ir);else{var N=e.getVideoData().botguardData;N&&g.v1(N,e.ph,e.getVideoData().VY||"")}};
NJn=function(e){e.logger.debug("start initialize to CUED mode");e.Lh.publish("initializingmode");e.yY(2);e.T("embeds_web_enable_defer_loading_remote_js")&&g.mT(e.ph)?g.e1(g.yK(),function(){t9(e.HG,"remote")}):t9(e.HG,"remote");
t9(e.HG,"miniplayer");e.logger.debug("initialized to CUED mode")};
iK=function(e){e.logger.debug("start initialize application playback");var N=e.NU();if(g.G(N.getPlayerState(),128))return!1;var y=N.getVideoData();Ij(e)&&e.ph.Pf&&(qV.length&&e.Xt?(gl(e,{muted:!1,volume:e.Fe.volume},!1),Vi(e,!1)):qV.length||e.Fe.muted||(gl(e,{muted:!0,volume:e.Fe.volume},!1),Vi(e,!0)));Ij(e)&&g.hR(e.ph)&&y.mutedAutoplay&&(gl(e,{muted:!0,volume:e.Fe.volume},!1),Vi(e,!0));y.Ly&&gl(e,{muted:!0,volume:e.Fe.volume},!1);y89(e,1,y,!1);e.Lh.publish("initializingmode");e.w1(e.NU());e.yY(3);
var w;if(!(w=!e.ph.Ps)){if(w=e.sQ){w=e.sQ;var E=e.mediaElement;w=!!E&&E===w.mediaElement}w=w&&e.GU}w&&(e.s_(),k9(e),N.setMediaElement(e.mediaElement));N.yR();if(g.G(N.getPlayerState(),128))return!1;y.zx||BR(e,3);return e.GU=!0};
dl=function(e){e=hu(e.HG);return!!e&&e.loaded};
wY5=function(e,N){if(!e.c9)return!1;var y=e.c9.startTimeMs*.001-1,w=e.c9.endTimeMs*.001;e.c9.type==="repeatChapter"&&w--;return Math.abs(N-y)<=1E-6||Math.abs(N-w)<=1E-6||N>=y&&N<=w};
TJs=function(e){var N=e.nh();N&&Rf(N.getVideoData())&&!N.Nc()&&(N=EUF(e)*1E3-e.getVideoData().WD,e.T("html5_gapless_new_slr")?(e=e.QL,A8M(e.app,"gaplessshortslooprange"),N=new g.wF(0,N,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(e=e.app.nh())&&e.addCueRange(N)):e.setLoopRange({startTimeMs:0,endTimeMs:N,type:"shortsLoop"}))};
J80=function(e){var N=e.NU();if(!(g.G(N.getPlayerState(),64)&&e.M7().isLivePlayback&&e.c9.startTimeMs<5E3)){if(e.c9.type==="repeatChapter"){var y,w=(y=Xu0(e.jR()))==null?void 0:y.Yp(),E;y=(E=e.getVideoData())==null?void 0:E.ll;w instanceof g.sN&&y&&(E=y[om(y,e.c9.startTimeMs)],w.renderChapterSeekingAnimation(0,E.title));isNaN(Number(e.c9.loopCount))?e.c9.loopCount=0:e.c9.loopCount++;e.c9.loopCount===1&&e.Lh.Mg("innertubeCommand",e.getVideoData().xC)}w={BY:"application_loopRangeStart"};if(e.c9.type===
"clips"||e.c9.type==="shortsLoop")w.seekSource=58;N.seekTo(e.c9.startTimeMs*.001,w)}};
mBs=function(e,N){var y=e.Lh.getAvailablePlaybackRates();N=Number(N.toFixed(2));e=y[0];y=y[y.length-1];N<=e?N=e:N>=y?N=y:(e=Math.floor(N*100+.001)%5,N=e===0?N:Math.floor((N-e*.01)*100+.001)/100);return N};
EUF=function(e,N){N=e.Ug(N);if(!N)return 0;N=XO(e,N);return f7(e,N.jo(),N)};
f7=function(e,N,y){if(e.As(y)){y=y.getVideoData();if(tP(e))y=N;else{e=e.Yk;for(var w=g.c(e.N),E=w.next();!E.done;E=w.next())if(E=E.value,y.FS===E.FS){N+=E.GW/1E3;break}w=N;e=g.c(e.N);for(E=e.next();!E.done;E=e.next()){E=E.value;if(y.FS===E.FS)break;var A=E.GW/1E3;if(A<N)w+=E.durationMs/1E3+A-E.OQ/1E3;else break}y=w}return y}return N};
pY5=function(e,N){if(e.getPresentingPlayerType()===3)return J_(hu(e.HG).k9);if((e.getVideoData().enableServerStitchedDai||g.xK(e.getVideoData()))&&N===2){var y,w;return((y=e.Q6)==null?0:y.Wo(e.getCurrentTime()))||((w=e.k_)==null?0:w.Wo())?e.EV:-1}return N!==2||e.As()?e.EV:e.C3};
xBH=function(e){e.logger.debug("reset for new application playback");uK(e);e.setLoopVideo(!1);e.setLoopRange(null);e.Lh.publish("legacyadtrackingpingreset");e.LP={};e.Sm=[];qL9(e.R9);if(e.Q6){var N=e.Q6,y=e.NU();y.getPlayerType();wl(N,!1);dF0(N);IE5(N);N.playback=y}N=e.Yk;e=e.NU();e.getPlayerType()!==1&&JP(N,"invalidParentVideoPlayerType");$9(N,!1);oOE(N);N.J=e};
eJH=function(e,N){var y=(N?N:e.M7()).Fg;e.R9.tick("ep_pr_r");if(y!=null&&(mh9(e.playlist,y),e.CQ))e.playlist.onReady(function(){zI(e,N)})};
vR=function(e,N){e.playlist&&(g.JV(e.playlist),e.playlist=null);N&&(e.nj&&(N.fetch=0),e.playlist=new ZJ3(e.ph,N))};
CL3=function(e){var N,y=Number((N=e.getVideoData().progressBarEndPosition)==null?void 0:N.utcTimeMillis)/1E3;!isNaN(y)&&(N=e.OY())&&(N-=e.getCurrentTime(),y=(y-N)*1E3,N=e.LP.progressEndBoundary,(N==null?void 0:N.start)!==y&&(N&&e.E7([N]),y=new g.wF(y,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),e.NU().addCueRange(y),e.LP.progressEndBoundary=y))};
BR=function(e,N){e.logger.debug(function(){return"set external state "+N});
var y=e.nh();if(y){var w=y.getPlayerType();if(w===2&&!e.As()){e.C3!==N&&(e.C3=N,e.Lh.Y9("onAdStateChange",N));return}if(w===2&&e.As()||w===5||w===6||w===7)if(N===-1||N===0||N===5)return}if(N===0){if(e.c9)return;if((y==null?0:y.ZS())&&g.I_(e.ph)){e.playVideo();return}}e.EV!==N&&(e.EV=N,e.Lh.Y9("onStateChange",N))};
r8M=function(e,N,y,w,E){w=w===void 0?Infinity:w;E=E===void 0?0:E;e.logger.debug(function(){return"Enqueuing playerType="+y+" at time="+w+"\n        videoId="+N.videoId});
var A=e.nh();y=y||A.getPlayerType();(A=y89(e,y,N,!0))||(A=UBs(e,y,N).xi);var T=e.NU();if(y===2&&T){var p=A.getVideoData();T.QH(p.clientPlaybackNonce,p.FZ||"",p.breakType||0,p.Fo,p.videoId||"")}e.r0(A,w,0,E)};
$zJ=function(e,N,y,w,E){var A="";A=e.ph.T("html5_autonav_autoplay_in_preload_key")?qs(e,y,N):Zg(e,y,N.videoId,N.FS);e.logger.debug(function(){return"start preload video "+A+", trigger="+E});
var T="",p=e.nh();if(p&&(T=e.ph.T("html5_autonav_autoplay_in_preload_key")?qs(e,p.getPlayerType(),p.getVideoData()):Zg(e,p.getPlayerType(),p.getVideoData().videoId,p.getVideoData().FS),A===T))return p.xN(!0),N.dispose(),null;N.NK=!0;N=UBs(e,y,N);y===1&&Qy(e.ph)||N.xN(!0);e.UX.J.set(A,N.xi,w||3600);return N};
Yw3=function(e,N,y,w){var E=r9(y);return Zg(e,N,E,w,y.autonav==="1"||y.autonav===!0,y.autoplay==="1"||y.autoplay===!0||y.autoplay===1)};
qs=function(e,N,y){return Zg(e,N,y.videoId,y.FS,y.isAutonav,y.rq)};
Zg=function(e,N,y,w,E,A){E=E===void 0?!1:E;A=A===void 0?!1:A;N=N+"_"+y+"_"+w;e.ph.T("html5_autonav_autoplay_in_preload_key")&&(N+="_"+ +E+ +A);return N};
y89=function(e,N,y,w){var E=e.ph.T("html5_autonav_autoplay_in_preload_key")?qs(e,N,y):Zg(e,N,y.videoId,y.FS);var A=e.UX.J.get(E)||null;if(!A||A.JW.Ss())return null;e.UX.J.remove(E);if(g.G(A.getPlayerState(),128))return Ov(A),null;if(A===e.Ug(N))return e.R9.infoGel({isCacheHit:!0}),A;if((A.getVideoData().oauthToken||y.oauthToken)&&A.getVideoData().oauthToken!==y.oauthToken)return null;N===1&&uK(e);w||e.w1(A,!0);e.R9.infoGel({isCacheHit:!0});return A};
MJ3=function(e,N){var y;return!N||!e.ph.Fo||(y=e.getVideoData())!=null&&y.backgroundable?!1:(e.Ey?e.Ey.start():e.Ak(),!0)};
x9=function(e,N,y){N&&(N=e.Ug(y))&&N===e.NU()&&(N.getVideoData().UY=!0)};
jo=function(e,N,y){y=y===void 0?1:y;e.logger.debug(function(){return"start cue video, vid "+N.videoId+", type "+y});
if(N.WG()){var w=g.cR(e,y,N).xi;e.cancelPlayback(4,y);e.w1(w);w.bW();if(y===1){e.yY(1);if(g.hR(e.ph)&&!md(N)){N.dispose();Ov(e.NU());return}NJn(e)}e.logger.debug("finish cue video")}else e.logger.debug(function(){return"invalid VideoData in cueVideo"}),N.dispose(),(w=e.Ug(y))&&Ov(w),yH_(e.M7())&&y===2&&e.MB()};
lQH=function(e,N,y,w,E){N=cH0(N,y,w,E);(y=g.hR(e.ph)&&!e.ph.Kh)&&!e.nj&&(N.fetch=0);vR(e,N);g.hR(e.ph)&&e.R9.tick("ep_a_pr_s");if(y&&!e.nj)y=e.M7(),W29(y,N).then(function(A){e.CQ=!0;eJH(e,A)});
else e.playlist.onReady(function(){zI(e)});
g.hR(e.ph)&&e.R9.tick("ep_a_pr_r")};
zI=function(e,N){var y=g.hR(e.ph)&&!e.ph.Kh,w=y&&N?N:g.Bo(e.playlist);N=y&&N?N:e.getVideoData();w&&(N.IV&&(e.ph.CN||e.ph.Pf)||!e.PJ?(N=N.UY,w=e.Hi(w,1),N&&x9(e,w)):jo(e,w,1));g.hR(e.ph)&&e.R9.tick("ep_p_l");e.CQ=!1;e.Lh.pC("onPlaylistUpdate")};
Wn9=function(e){if(e.playlist&&g.dw(e.ph)&&e.ZR()){var N=e.ph.T("html5_player_autonav_logging");e.nextVideo(!1,N);return!0}return!1};
FJ9=function(e,N,y,w,E,A,T){N={id:N,namespace:T!=null?T:"appapi"};A==="chapter"?(N.style=y6.CHAPTER_MARKER,N.visible=!0):isNaN(E)||(A==="ad"?N.style=y6.AD_MARKER:(N.style=y6.TIME_MARKER,N.color=E),N.visible=!0);e.Ef([new g.wF(y*1E3,w*1E3,N)],1);return!0};
SwH=function(e,N,y,w,E,A){A=A===void 0?!0:A;var T=e.OY();if(!T)return A&&e.getVideoData().isLivePlayback&&e.Sm.push({id:N,pI1:y,sxP:w}),!1;A=T-e.getCurrentTime();return FJ9(e,N,y-A,w-A,void 0,void 0,E)};
oU0=function(e,N){e.Sm=g.CG(e.Sm,function(T){return T.id!==N});
for(var y=e.NU(),w=y.XW(),E=0;E<w.length;E++){var A=w[E];if(A.getId()===N)return y.removeCueRange(A),n7(e,"cuerangesremoved",[A]),!0}return!1};
A8M=function(e,N,y){var w=e.Ug(y);w&&(N=w.MK(N),y&&e.getPresentingPlayerType()!==y||n7(e,"cuerangesremoved",N))};
bzM=function(e){var N=(0,g.iC)(),y=e.getCurrentTime();e=e.getVideoData();y=1E3*(y-e.startSeconds);e.isLivePlayback&&(y=0);return N-Math.max(y,0)};
gl=function(e,N,y){e.ph.Et&&(e.Fe=N,N.muted||Vi(e,!1),y&&e.ph.storeUserVolume&&!e.ph.U2&&(y={volume:Math.floor(N.volume),muted:N.muted},y.unstorable||(g.uY("yt-player-volume",y),g.uY("yt-player-volume",y,2592E3))),hJM(e),y=g.i$&&e.mediaElement&&!e.mediaElement.cI(),e.ph.U2&&!y||e.Lh.Y9("onVolumeChange",{muted:N.muted,volume:N.volume,unstorable:!e.ph.storeUserVolume}))};
hJM=function(e){var N=e.getVideoData();if(!N.xI){N=e.ph.U2?1:eq1(N);var y=e.mediaElement;y.Zs(e.Fe.muted);try{y.setVolume(e.Fe.volume*N/100)}catch(w){g.uA(new g.Gh("b183742307","multiplier: "+N+", volume: "+e.Fe.volume))}}};
Vi=function(e,N){N!==e.Xt&&(e.Xt=N,e.Lh.pC("onMutedAutoplayChange",N))};
Ju=function(e){return e.Xt&&e.getVideoData().mutedAutoplay};
c8F=function(e){var N=cE(!0);return N&&(N===e.template.element||e.mediaElement&&N===e.mediaElement.ut())?N:null};
BJM=function(e,N){var y=window.screen&&window.screen.orientation;if((e.ph.T("lock_fullscreen2")||e.ph.U)&&y&&y.lock&&(!g.i$||!kn_))if(N){N=y.type.indexOf("portrait")===0;var w=e.template.getVideoAspectRatio(),E=N;w<1?E=!0:w>1&&(E=!1);if(!e.Ab||E!==N){y=y.lock(E?"portrait":"landscape");if(y!=null)y["catch"](function(){});
e.Ab=!0}}else e.Ab&&(e.Ab=!1,y.unlock())};
n7=function(e,N,y){e.Lh.publish(N,y);var w=g.I_(e.ph)||g.IK(e.ph)||g.ZY(e.ph);if(y&&w){switch(N){case "cuerangemarkersupdated":var E="onCueRangeMarkersUpdated";break;case "cuerangesadded":E="onCueRangesAdded";break;case "cuerangesremoved":E="onCueRangesRemoved"}E&&e.Lh.Mg(E,y.map(function(A){return{getId:function(){return this.id},
end:A.end,id:A.getId(),namespace:A.namespace==="ad"?"ad":"",start:A.start,style:A.style,visible:A.visible}}))}};
Qi=function(e,N,y,w,E,A){y=y===void 0?!0:y;var T=e.Ug(E);T&&(T.getPlayerType()===2&&!e.As(T)||g.bk(T.getVideoData()))||(e.getPresentingPlayerType()===3?hu(e.HG).D2("control_seek",N,y):(T&&T===e.NU()&&e.c9&&!wY5(e,N)&&e.setLoopRange(null),e.seekTo(N,y,w,E,A)))};
XYH=function(e,N,y,w){y&&(e.s_(),k9(e));y=e.nh();y.HT(N);var E=e.getVideoData(),A={};A.video_id=E.videoId;A.adformat=E.adFormat;if(!E.isLivePlayback||e.T("html5_reload_live_playback_to_current_time"))A.start=y.getCurrentTime(),A.resume="1";E.isLivePlayback&&wd(E)&&g.Pa(e.ph)&&(A.live_utc_start=y.OY(),A.resume="1");E.Kh&&(A.vvt=E.Kh);E.Z&&(A.vss_credentials_token=E.Z,A.vss_credentials_token_type=E.zN);E.oauthToken&&(A.oauth_token=E.oauthToken);E.Zc&&(A.force_gvi=E.Zc);A.autoplay=1;A.reload_count=E.jn+
1;A.reload_reason=N;E.gW&&(A.unplugged_partner_opt_out=E.gW);E.j_&&(A.ypc_is_premiere_trailer=E.j_);E.playerParams&&(A.player_params=E.playerParams);e.loadVideoByPlayerVars(A,void 0,!0,void 0,void 0,w);N==="signature"&&e.Q6&&sb_(e)};
PL_=function(e,N){e.M7().autonavState=N;g.uY("yt-player-autonavstate",N);e.Lh.publish("autonavchange",N)};
dzn=function(e){var N=e.getVideoData().xI,y=e.ph.a9,w=e.isInline()&&!e.getVideoData().Nw,E=e.mediaElement;N||y||w?E.je():(E.xj(),gl(e,e.Fe))};
uK=function(e){var N=ql(e.jR());N&&N.created&&(e.logger.debug("reset ad module"),N.destroy())};
tP=function(e){return e.getVideoData().enableServerStitchedDai&&!!e.Q6};
IQ1=function(e,N){N.bounds=e.getBoundingClientRect();for(var y=g.c(["display","opacity","visibility","zIndex"]),w=y.next();!w.done;w=y.next())w=w.value,N[w]=lG(e,w);N.hidden=!!e.hidden};
Bu0=function(e){if(e.webPlayerContextConfig){var N=e.webPlayerContextConfig.trustedJsUrl;return N?IG(N).toString():e.webPlayerContextConfig.jsUrl}return e.config.assets&&e.config.assets.js?e.config.assets.js:""};
vU1=function(e,N){var y=e.Ug(1);if(y){if(y.getVideoData().clientPlaybackNonce===N)return y;if((e=e.OH.J)&&e.getVideoData().clientPlaybackNonce===N)return e}return null};
zJs=function(e){return e.name==="TypeError"&&e.stack.includes("/s/player/")&&HL()<=105};
izF=function(e){return e.isTimeout?"NO_BID":"ERR_BID"};
Dz1=function(){var e=null;ik5().then(function(N){return e=N},function(N){return e=izF(N)});
return e};
gU_=function(){var e=XK(1E3,"NO_BID");return ho(GxM([ik5(),e]).On(izF),function(){e.cancel()})};
m8=function(e){return e.YO?g.HE(g.m6(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
HR=function(e){this.player=e;this.K=this.J=1};
tJF=function(e,N,y,w,E,A){N.client||(N.client={});e.player.X().T("h5_remove_url_for_get_ad_break")||(N.client.originalUrl=y);var T=r2(y),p=g.uB(y)?!1:!0;(T||p)&&typeof Intl!=="undefined"&&(N.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);p=g.uB(y)?!1:!0;if(T||p||w!==""){var C={};y=E8(Fj(w)).split("&");var r=new Map;y.forEach(function(Y){Y=Y.split("=");Y.length>1&&r.set(Y[0].toString(),decodeURIComponent(Y[1].toString()))});
r.has("bid")&&(C.bid=r.get("bid"));C.params=[];VJ3.forEach(function(Y){r.has(Y)&&(Y={key:Y,value:r.get(Y)},C.params.push(Y))});
fQH(e,C);N.adSignalsInfo=C}N.client.unpluggedAppInfo||(N.client.unpluggedAppInfo={});N.client.unpluggedAppInfo.enableFilterMode=!1;y=E.J.cosver;y!=null&&y!=="cosver"&&(N.client.osVersion=y);y=E.J.cplatform;y!=null&&y!=="cplatform"&&y!==""&&(N.client.platform=y);y=E.J.cmodel;y!=null&&y!=="cmodel"&&(N.client.deviceModel=y);y=E.J.cplayer;y!=null&&y!=="cplayer"&&(N.client.playerType=y);y=E.J.cbrand;y!=null&&y!=="cbrand"&&(N.client.deviceMake=y);N.user||(N.user={});N.user.lockedSafetyMode=!1;(E.T("embeds_web_enable_iframe_api_send_full_embed_url")||
E.T("embeds_enable_autoplay_and_visibility_signals"))&&g.dw(E)&&v2P(N,A,e.player.getPlayerState(1))};
Zz3=function(e,N){var y=!1;if(N==="")return y;N.split(",").forEach(function(w){var E={},A={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},T="ACTIVE";w[0]==="!"&&(w=w.substring(1),T="INACTIVE");w=w.split("-");w.length<3||(w[0]in uJ_&&(A.clientName=uJ_[w[0]]),w[1]in qwM&&(A.platform=qwM[w[1]]),A.applicationState=T,A.clientVersion=w.length>2?w[2]:"",E.remoteClient=A,e.remoteContexts?e.remoteContexts.push(E):e.remoteContexts=[E],y=!0)});
return y};
jWF=function(e){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in xz_))return!1;e=e.split(RegExp("[:&]"));var N=xz_.FLAG_AUTO_CAPTIONS_DEFAULT_ON,y="f"+(1+Math.floor(N/31)).toString();N=1<<Math.floor(N%31);for(var w=0,E=e.length;w<E;w++){var A=e[w].split("=");if(A[0]===y&&parseInt("0x"+A[1],16)&N)return!0}return!1};
fQH=function(e,N){e=e.player.X();if(g.xj(e)||Qy(e)){e=g.Lb("INNERTUBE_CONTEXT");var y,w;(e==null?0:(y=e.adSignalsInfo)==null?0:y.advertisingId)&&typeof(e==null?void 0:(w=e.adSignalsInfo)==null?void 0:w.limitAdTracking)!=="undefined"&&(N.advertisingId=e.adSignalsInfo.advertisingId,N.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",N.limitAdTracking=e.adSignalsInfo.limitAdTracking)}};
RJP=function(e,N,y,w,E){var A=y.DRIFT_FROM_HEAD_MS&&!Number.isNaN(y.DRIFT_FROM_HEAD_MS)?Math.trunc(y.DRIFT_FROM_HEAD_MS):0,T=nU9.exec(N);T=T!=null&&T.length>=2?T[1]:"";var p=QW5.test(N),C=mzs.exec(N);C=C!=null&&C.length>=2?C[1]:"";var r=Hzn.exec(N);r=r!=null&&r.length>=2&&!Number.isNaN(Number(r[1]))?Number(r[1]):1;var Y=KJE.exec(N);Y=Y!=null&&Y.length>=2?Y[1]:"0";var M=DW(e.player.X().qg),l=e.player.getVideoData(1),F=g.LR(l.i9,!0),S="BISCOTTI_ID"in y?y.BISCOTTI_ID:"";tJF(e,F,N,S.toString(),e.player.X(),
l);l={splay:!1,lactMilliseconds:y.LACT.toString(),playerHeightPixels:Math.trunc(y.P_H),playerWidthPixels:Math.trunc(y.P_W),vis:Math.trunc(y.VIS),signatureTimestamp:20129,autonavState:m8(e.player.X())};w&&(w={},Zz3(w,y.YT_REMOTE)&&(l.mdxContext=w));if(w=WJF.includes(M)?void 0:g.jH("PREF")){for(var k=w.split(RegExp("[:&]")),X=0,d=k.length;X<d;X++){var v=k[X].split("=");if((v[0].toUpperCase()==="SML"||v[0].toUpperCase()==="GSML")&&v.length>1&&v[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}l.autoCaptionsDefaultOn=
jWF(w)}N=Ozn.exec(N);(N=N!=null&&N.length>=2?N[1]:"")&&C&&(F.user.credentialTransferTokens=[{token:N,scope:"VIDEO"}]);N={contentPlaybackContext:l};T={adBlock:Math.trunc(y.AD_BLOCK),params:T,breakIndex:r,breakPositionMs:Y,clientPlaybackNonce:y.CPN,topLevelDomain:M,isProxyAdTagRequest:p,context:F,adSignalsInfoString:E8(Fj(S.toString())),overridePlaybackContext:N};E!==void 0&&(T.cueProcessedMs=Math.round(E).toString());C&&(T.videoId=C);y.LIVE_TARGETING_CONTEXT&&(T.liveTargetingParams=y.LIVE_TARGETING_CONTEXT);
y.AD_BREAK_LENGTH&&(T.breakLengthMs=Math.trunc(y.AD_BREAK_LENGTH*1E3).toString());A&&(T.driftFromHeadMs=A.toString());T.currentMediaTimeMs=Math.round(e.player.getCurrentTime(1)*1E3);(e=e.player.getGetAdBreakContext())&&(T.getAdBreakContext=e);return T};
Gn9=function(){HR.apply(this,arguments)};
UzE=function(e,N,y,w,E){var A=y.m1;var T=y.y6;var p=e.player.X().kX,C=0;y.cueProcessedMs&&T&&!A&&(y=T.end-T.start,y>0&&(C=Math.floor(y/1E3)));var r={AD_BLOCK:E,AD_BREAK_LENGTH:A?A.Vj:C,AUTONAV_STATE:m8(e.player.X()),CA_TYPE:"image",CPN:e.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:e.player.k7()*1E3,LACT:z_(),LIVE_INDEX:A?e.K++:1,LIVE_TARGETING_CONTEXT:A&&A.context?A.context:"",MIDROLL_POS:T?Math.round(T.start/1E3):0,MIDROLL_POS_MS:T?Math.round(T.start):0,VIS:e.player.getVisibilityState(),
P_H:e.player.Fz().aV().height,P_W:e.player.Fz().aV().width,YT_REMOTE:p?p.join(","):""},Y=l4(MR);Object.keys(Y).forEach(function(M){Y[M]!=null&&(r[M.toUpperCase()]=Y[M].toString())});
w!==""&&(r.BISCOTTI_ID=w);w={};Y3(N)&&(w.sts="20129",(e=e.player.X().forcedExperiments)&&(w.forced_experiments=e));return Cp(g.Vx(N,r),w)};
LJ5=function(e,N){var y=e.player.X(),w,E=(w=e.player.getVideoData(1))==null?void 0:w.oauthToken;return g.GX(y,E).then(function(A){if(A&&$3()){var T=z9();ih(T,A)}return g.Rg(e.player.WI(T),N,"/youtubei/v1/player/ad_break").then(function(p){return p})})};
sWs=function(e){this.Pk=e};
aQF=function(e){this.C=e};
euJ=function(e){this.Pk=e};
ySH=function(e){g.x.call(this);this.J=e;this.Ls=NUM(this)};
NUM=function(e){var N=new J0P(e.J.Vi);g.Q(e,N);e=g.c([new sWs(e.J.Pk),new aQF(e.J.C),new euJ(e.J.Pk),new DX(e.J.D3,e.J.iL),new Vg,new uZ(e.J.zo,e.J.mW,e.J.Pk),new gL,new iZ]);for(var y=e.next();!y.done;y=e.next())p7J(N,y.value);e=g.c(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(y=e.next();!y.done;y=e.next())fj(N,y.value,function(){});
return N};
K7=function(e){var N=e.Hk,y=e.wP;e=e.yT;var w=new XpH,E={OP:new ENE(N.get(),y),wP:y};return{H9:new Rc(y,e,N,E),context:E,Kw:w}};
WR=function(e,N,y,w,E){g.x.call(this);this.N=N;this.zZ=y;this.Hk=w;this.p$=E;this.listeners=[];var A=new iY(this);g.Q(this,A);A.Y(e,"internalAbandon",this.FB);this.addOnDisposeCallback(function(){g.g9(A)})};
O4=function(e){this.C=e;this.adVideoId=this.J=this.videoId=this.adCpn=this.contentCpn=null;this.L=!0;this.N=this.K=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
wkM=function(e){e.contentCpn=null;e.adCpn=null;e.videoId=null;e.adVideoId=null;e.adFormat=null;e.j="AD_PLACEMENT_KIND_UNKNOWN";e.actionType="unknown_type";e.K=!1;e.N=!1};
EkM=function(e,N){e=g.c(N);for(N=e.next();!N.done;N=e.next())if((N=N.value.renderer)&&(N.instreamVideoAdRenderer||N.linearAdSequenceRenderer||N.sandwichedLinearAdRenderer||N.instreamSurveyAdRenderer)){jZ("ad_i");g.nV({isMonetized:!0});break}};
ASE=function(e){var N;(N=e.C.getVideoData(1))!=null&&N.qg&&(e.N=!1,N={},e.J&&e.videoId&&(N.cttAuthInfo={token:e.J,videoId:e.videoId}),QQ("video_to_ad",N))};
nL=function(e){e.N=!1;var N={};e.J&&e.videoId&&(N.cttAuthInfo={token:e.J,videoId:e.videoId});QQ("ad_to_video",N);TUM(e)};
TUM=function(e){if(e.K)if(e.j==="AD_PLACEMENT_KIND_START"&&e.actionType==="video_to_ad")qY("video_to_ad");else{var N={adBreakType:oV(e.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:e.videoStreamType};e.actionType==="ad_to_video"?(e.contentCpn&&(N.targetCpn=e.contentCpn),e.videoId&&(N.targetVideoId=e.videoId)):(e.adCpn&&(N.targetCpn=e.adCpn),e.adVideoId&&(N.targetVideoId=e.adVideoId));e.adFormat&&(N.adType=e.adFormat);e.contentCpn&&
(N.clientPlaybackNonce=e.contentCpn);e.videoId&&(N.videoId=e.videoId);e.adCpn&&(N.adClientPlaybackNonce=e.adCpn);e.adVideoId&&(N.adVideoId=e.adVideoId);g.nV(N,e.actionType)}};
Rj=function(e){g.x.call(this);this.C=e;this.J=new Map;this.N=new iY(this);g.Q(this,this.N);this.N.Y(this.C,g.AA("ad"),this.onCueRangeEnter,this);this.N.Y(this.C,g.TW("ad"),this.onCueRangeExit,this)};
JS_=function(e,N,y,w,E){g.wF.call(this,N,y,{id:e,namespace:"ad",priority:E,visible:w})};
GI=function(e){this.C=e};
U4=function(e){this.C=e;g.Y2(this.C.X().experiments,"tv_pacf_logging_sample_rate")};
k6=function(e,N){N=N===void 0?!1:N;return e.C.X().T("html5_ssap_force_ads_ctmp")?!0:(N||e.C.X().B9())&&e.C.X().T("html5_ssap_pacf_qoe_ctmp")};
L7=function(e){var N,y;return(y=(N=e.C.getVideoData(1))==null?void 0:g.xK(N))!=null?y:!1};
R_=function(e,N){return e.C.X().T(N)};
pkH=function(e){return e.C.X().T("substitute_ad_cpn_macro_in_ssdai")};
MC=function(e){var N,y,w;return((N=e.C.getVideoData(1).getPlayerResponse())==null?void 0:(y=N.playerConfig)==null?void 0:(w=y.daiConfig)==null?void 0:w.enableServerStitchedDai)||!1};
lbF=function(e){return e.C.X().T("html5_enable_vod_slar_with_notify_pacf")};
Cu9=function(e){return e.C.X().T("html5_recognize_predict_start_cue_point")};
Wr=function(e){return e.C.X().experiments.gP("enable_desktop_player_underlay")};
rSH=function(e){return e.C.X().experiments.gP("html5_load_empty_player_in_media_break_sub_lra")};
ii=function(e){return e.C.X().experiments.gP("html5_load_ads_instead_of_cue")};
Du=function(e){return e.C.X().experiments.gP("html5_preload_ads")};
Q8=function(e){return e.C.X().experiments.gP("enable_ads_control_flow_deterministic_id_generation")};
$QE=function(e){return e.C.X().experiments.gP("enable_desktop_discovery_video_abandon_pings")||g.xj(e.C.X())};
Yt_=function(e){return e.C.X().experiments.gP("enable_progres_commands_lr_feeds")};
MN3=function(e){return e.C.X().experiments.gP("html5_cuepoint_identifier_logging")};
ll_=function(e){switch(e){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}};
FtH=function(){g.pT.call(this);var e=this;this.J={};this.addOnDisposeCallback(function(){for(var N=g.c(Object.keys(e.J)),y=N.next();!y.done;y=N.next())delete e.J[y.value]})};
s4=function(){if(St5===null){St5=new FtH;z0(BB).N="b";var e=z0(BB),N=Fb(e)=="h"||Fb(e)=="b",y=!(fo(),!1);N&&y&&(e.L=!0,e.Z=new ic_)}return St5};
okJ=function(e,N,y){e.J[N]=y};
b8s=function(e){switch(e){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}};
aj=function(e,N,y){this.zZ=e;this.C=N;this.wP=y;this.N=new Set;this.J=new Map;s4().subscribe("adactiveviewmeasurable",this.tq,this);s4().subscribe("adfullyviewableaudiblehalfdurationimpression",this.KG,this);s4().subscribe("adviewableimpression",this.fG,this);s4().subscribe("adaudioaudible",this.Nf,this);s4().subscribe("adaudiomeasurable",this.k6,this)};
Nr=function(e,N,y){var w=y.Gn,E=y.vK,A=y.listener,T=y.tZ;y=y.OR===void 0?!1:y.OR;if(e.J.has(N))YN("Unexpected registration of layout in LidarApi");else{if(T){if(e.N.has(T))return;e.N.add(T)}e.J.set(N,A);Ar(fo().RJ,"fmd",1);jpn(z0(BB),w);var p=y?N:void 0;okJ(s4(),N,{sy:function(){if(!E)return{};var C=e.C.getPresentingPlayerType(!0),r;return(r=e.C.getVideoData(C))!=null&&r.isAd()?{currentTime:e.zZ.get().getCurrentTimeSec(C,!1,p),duration:E,isPlaying:eT(e.zZ.get(),C).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:e.zZ.get().isMuted()?0:e.zZ.get().getVolume()/100}:{}}})}};
ya=function(e,N){e.J.has(N)?(e.J.delete(N),delete s4().J[N]):YN("Unexpected unregistration of layout in LidarApi")};
hu9=function(e,N){if(e.C.isLifaAdPlaying()){var y=e.C.eW(!0,!0);e.Ld(N,y.width*.5*1.1,y.height*.25*1.1,y.width*.5*.9,y.height*.5*.9)}};
BU_=function(e,N,y){var w={};cSJ(e,w,N,y);kq5(w);w.LACT=wV(function(){return z_().toString()});
w.VIS=wV(function(){return e.getVisibilityState().toString()});
w.SDKV="h.3.0";w.VOL=wV(function(){return e.isMuted()?"0":Math.round(e.getVolume()).toString()});
w.VED="";return w};
Xks=function(e,N){var y={};if(N)return y;if(!e.kind)return g.t0(Error("AdPlacementConfig without kind")),y;if(e.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||e.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!e.adTimeOffset||!e.adTimeOffset.offsetStartMilliseconds)return g.t0(Error("malformed AdPlacementConfig")),y;y.MIDROLL_POS=wV(pY(Math.round(aA(e.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else y.MIDROLL_POS=wV(pY("0"));return y};
wV=function(e){return{toString:function(){return e()}}};
PuP=function(e,N,y){function w(p,C){(C=y[C])&&(A[p]=C)}
function E(p,C){(C=y[C])&&(A[p]=T(C))}
if(!y||g.v4(y))return e;var A=Object.assign({},e),T=N?encodeURIComponent:function(p){return p};
E("DV_VIEWABILITY","doubleVerifyViewability");E("IAS_VIEWABILITY","integralAdsViewability");E("MOAT_INIT","moatInit");E("MOAT_VIEWABILITY","moatViewability");w("GOOGLE_VIEWABILITY","googleViewability");w("VIEWABILITY","viewability");return A};
cSJ=function(e,N,y,w){N.CPN=wV(function(){var E;(E=e.getVideoData(1))?E=E.clientPlaybackNonce:(g.uA(Error("Video data is null.")),E=null);return E});
N.AD_MT=wV(function(){if(w!=null)var E=w;else{var A=y;e.X().T("html5_ssap_use_cpn_to_get_time")||(A=void 0);if(e.X().T("enable_h5_shorts_ad_fill_ad_mt_macro")||e.X().T("enable_desktop_discovery_pings_ad_mt_macro")||g.xj(e.X())){var T=e.getPresentingPlayerType(!0),p;E=((p=e.getVideoData(T))==null?0:p.isAd())?dQ5(e,T,A):0}else E=dQ5(e,2,A)}return Math.round(Math.max(0,E*1E3)).toString()});
N.MT=wV(function(){return Math.round(Math.max(0,e.getCurrentTime(1,!1)*1E3)).toString()});
N.P_H=wV(function(){return e.Fz().aV().height.toString()});
N.P_W=wV(function(){return e.Fz().aV().width.toString()});
N.PV_H=wV(function(){return e.Fz().getVideoContentRect().height.toString()});
N.PV_W=wV(function(){return e.Fz().getVideoContentRect().width.toString()})};
kq5=function(e){e.CONN=wV(pY("0"));e.WT=wV(function(){return Date.now().toString()})};
dQ5=function(e,N,y){return y!==void 0?e.getCurrentTime(N,!1,y):e.getCurrentTime(N,!1)};
Il0=function(){};
vk9=function(e,N,y,w,E){var A,T,p,C,r,Y,M,l,F,S,k,X,d;g.f(function(v){switch(v.J){case 1:A=!!N.scrubReferrer;T=g.Vx(N.baseUrl,PuP(y,A,w));p={};if(!N.headers){v.u9(2);break}C=e.j();if(!C.J){r=C.getValue();v.u9(3);break}return g.D(v,C.J,4);case 4:r=v.N;case 3:Y=r;M=g.c(N.headers);for(l=M.next();!l.done;l=M.next())switch(F=l.value,F.headerType){case "VISITOR_ID":g.Lb("VISITOR_DATA")&&(p["X-Goog-Visitor-Id"]=g.Lb("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Lb("EOM_VISITOR_DATA")&&(p["X-Goog-EOM-Visitor-Id"]=
g.Lb("EOM_VISITOR_DATA"));break;case "USER_AUTH":Y&&(p.Authorization="Bearer "+Y);break;case "PLUS_PAGE_ID":(S=e.L())&&(p["X-Goog-PageId"]=S);break;case "AUTH_USER":k=e.J();!Y&&k&&(p["X-Goog-AuthUser"]=k);break;case "DATASYNC_ID":if(X=void 0,(X=e.K())==null?0:X.gP("enable_datasync_id_header_in_web_vss_pings"))d=e.N(),r2(T)&&g.Lb("LOGGED_IN")&&d&&(p["X-YouTube-DataSync-Id"]=d)}"X-Goog-EOM-Visitor-Id"in p&&"X-Goog-Visitor-Id"in p&&delete p["X-Goog-Visitor-Id"];case 2:g.mK(T,void 0,A,Object.keys(p).length!==
0?p:void 0,"",!0,E),g.hn(v)}})};
zuE=function(e,N,y,w,E){this.j=e;this.L=N;this.J=y;this.N=w;this.K=E};
i8M=function(e,N){this.J=e;this.wP=N};
Ey=function(e,N,y,w,E,A,T){var p=p===void 0?new zuE(function(){var C=e.X(),r=e.getVideoData(1);return g.GX(C,r?g.qK(r):"")},function(){return e.X().pageId},function(){return e.X().l9},function(){var C;
return(C=e.X().datasyncId)!=null?C:""},function(){return e.X().experiments}):p;
this.C=e;this.N=N;this.AM=y;this.Hk=w;this.H9=E;this.wP=A;this.Kw=T;this.j=p;this.PK=null;this.J=new Map;this.K=new i8M(p,this.wP)};
gk5=function(e,N,y,w,E){var A=kF(e.N.get(),y);A?(y=zW(e,DQ5(A),A,void 0,void 0,w),N.hasOwnProperty("baseUrl")?e.j.send(N,y):e.K.send(N,y,{},E)):YN("Trying to ping from an unknown layout",void 0,void 0,{layoutId:y})};
YZ1=function(e,N,y,w,E,A){w=w===void 0?[]:w;var T=kF(e.N.get(),N);if(T){var p=e.AM.get().wz(N,y),C=zW(e,DQ5(T),T,E,A);w.forEach(function(r,Y){r.baseUrl&&(e.K.send(r.baseUrl,C,p,r.attributionSrcMode),r.serializedAdPingMetadata&&e.H9.ZU("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,T,new WoH(r,Y),void 0,void 0,T.adLayoutLoggingData))})}else YN("Trying to track from an unknown layout.",void 0,void 0,{layoutId:N,
trackingType:y})};
kQ=function(e,N){e.C.sendVideoStatsEngageEvent(N,void 0,2)};
Gp=function(e,N){g.$$("adsClientStateChange",N)};
VN5=function(e,N){e.J.has(N.rb())?YN("Trying to register an existing AdErrorInfoSupplier."):e.J.set(N.rb(),N)};
fl0=function(e,N){e.J.delete(N.rb())||YN("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
sV=function(e,N,y){typeof y==="string"?e.C.getVideoData(1).kN(N,y):e.C.getVideoData(1).Fh(N,y)};
DQ5=function(e){var N=A6(e.clientMetadata,"metadata_type_ad_placement_config");e=A6(e.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:N,BA:e}};
zW=function(e,N,y,w,E,A){var T=y?tN0(e):{},p=y?uNs(e,y.layoutId):{},C=qts(e),r,Y=E!=null?E:(r=Mb(e.Hk.get(),2))==null?void 0:r.clientPlaybackNonce;e.C.X().T("enable_player_logging_lr_home_infeed_ads")&&!Y&&(Y=Mb(e.Hk.get(),1).clientPlaybackNonce);E=void 0;if(y){var M;if((M=e.Kw.J.get(y.layoutId))==null?0:M.OR)E=y.layoutId}M={};e=Object.assign({},BU_(e.C,E,w),Xks(N.adPlacementConfig,(y==null?void 0:y.renderingContent)!==void 0),p,T,C,(M.FINAL=wV(function(){return"1"}),M.AD_CPN=wV(function(){return Y||
""}),M));
(y==null?void 0:y.renderingContent)!==void 0||(e.SLOT_POS=wV(function(){return(N.BA||0).toString()}));
y={};A=Object.assign({},e,A);e=g.c(Object.values(Z81));for(w=e.next();!w.done;w=e.next())w=w.value,T=A[w],T!=null&&T.toString()!=null&&(y[w]=T.toString());return y};
tN0=function(e){var N={},y,w=(y=e.PK)==null?void 0:y.Cj/1E3;w!=null&&(N.SURVEY_ELAPSED_MS=wV(function(){return Math.round(w*1E3).toString()}));
N.SURVEY_LOCAL_TIME_EPOCH_S=wV(function(){return Math.round(Date.now()/1E3).toString()});
return N};
uNs=function(e,N){e=e.J.get(N);if(!e)return{};e=e.B6();if(!e)return{};N={};return N.YT_ERROR_CODE=e.J0.toString(),N.ERRORCODE=e.U6.toString(),N.ERROR_MSG=e.errorMessage,N};
qts=function(e){var N={},y=e.C.getVideoData(1);N.ASR=wV(function(){var w;return(w=y==null?void 0:y.kh)!=null?w:null});
N.EI=wV(function(){var w;return(w=y==null?void 0:y.eventId)!=null?w:null});
return N};
AM=function(e,N,y){g.x.call(this);this.C=e;this.hf=N;this.wP=y;this.listeners=[];this.Tp=null;this.J_=new Map;N=new g.fd(this);g.Q(this,N);N.Y(e,"videodatachange",this.b$q);N.Y(e,"serverstitchedvideochange",this.mKG);this.nk=Mb(this)};
Mb=function(e,N){var y=e.C.getVideoData(N);return y?e.v8(y,N||e.C.getPresentingPlayerType(!0)):null};
xQ9=function(e,N,y){var w=e.v8(N,y);e.nk=w;e.listeners.forEach(function(E){E.DZ(w)})};
jn_=function(e){switch(e){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}};
Td=function(e,N,y){g.x.call(this);this.C=e;this.Hk=N;this.wP=y;this.listeners=[];this.VJ=[];this.J=function(){YN("Called 'doUnlockPreroll' before it's initialized.")};
N=new iY(this);y=new g.fd(this);g.Q(this,y);g.Q(this,N);N.Y(e,"progresssync",this.j2k);N.Y(e,"presentingplayerstatechange",this.sJh);N.Y(e,"fullscreentoggled",this.onFullscreenToggled);N.Y(e,"onVolumeChange",this.onVolumeChange);N.Y(e,"minimized",this.Yx);N.Y(e,"overlayvisibilitychange",this.D0);N.Y(e,"shortsadswipe",this.pO);N.Y(e,"resize",this.I9);y.Y(e,g.AA("appad"),this.Qs)};
JM=function(e){L7(e.wP.get())||e.J()};
nk_=function(e,N){e.VJ=e.VJ.filter(function(y){return y!==N})};
pe=function(e,N,y){return e.getCurrentTimeSec(N,y)};
QnH=function(e,N){var y;N=(y=e.Hk.get().J_.get(N))!=null?y:null;if(N===null)return YN("Expected ad video start time on playback timeline"),0;e=e.C.getCurrentTime(2,!0);return e<N?0:e-N};
eT=function(e,N){return e.C.getPlayerStateObject(N)};
mQF=function(e){var N=e.C.Fz().aV();e=e.C.eW(!0,!0);return N.height-(e.height+e.top)};
H8_=function(e){e.C.cueVideoByPlayerVars({videoId:"empty_video"},2)};
uDE=function(e,N){var y=e.C.X();g.Pg(y)||y.controlsType!=="3"||e.C.Fz().f0(N)};
Ce=function(e,N){g.pi(e.C.getRootNode(),N)};
rV=function(e,N){g.re(e.C.getRootNode(),N)};
KtE=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)});
g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)});
g.Q(this,p);var C=nn(function(){return new hH});
g.Q(this,C);w=nn(function(){return new oc(e)});
g.Q(this,w);var r=nn(function(){return new Hu(T,p,A.wP)});
g.Q(this,r);var Y=nn(function(){return new GB});
g.Q(this,Y);this.P9=nn(function(){return new m$(E)});
g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)});
g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)});
g.Q(this,this.oJ);this.Vi=nn(function(){return new GI(N)});
g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)});
g.Q(this,this.wP);var M=nn(function(){return new Mx(A.wP)});
g.Q(this,M);var l=nn(function(){return new Cs(T,r,p,A.wP,M,null,null,null,null)});
g.Q(this,l);this.Hk=nn(function(){return new AM(N,Y,A.wP)});
g.Q(this,this.Hk);var F=K7({Hk:this.Hk,wP:this.wP,yT:M}),S=F.context,k=F.Kw;this.H9=F.H9;this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)});
g.Q(this,this.zZ);this.AM=nn(function(){return new aj(A.zZ,N,A.wP)});
g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,k)});
g.Q(this,this.Pk);this.Sp=new Sw(w,l,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var X=new WR(N,this.Sp,this.zZ,this.Hk);this.gm=nn(function(){return X});
this.ji=X;this.kx=new bP(w,r,this.oJ,this.gm,S);g.Q(this,this.kx);this.PG=new DC(this.wP,w,r,l,this.Hk,this.kx,y);g.Q(this,this.PG);this.V2={F0:new Map,Fs:new Map,ym:new Map,hc:new Map,L9:new Map};this.listeners=[];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:null,iL:{oG:function(){}},
D3:C.get(),zo:this.Hk.get()}};
$L=function(e,N){g.x.call(this);this.uL=N;this.uL.get().addListener(this)};
YL=function(e){this.J=e};
Wt_=function(e,N){if(!e)return{aX:[],adSlots:[],V5:!0,ssdaiAdsConfig:void 0};e.trackingParams&&h$(e.trackingParams);if(e.adThrottled)return{aX:[],adSlots:[],V5:!0,ssdaiAdsConfig:void 0};var y,w=(y=e.adSlots)!=null?y:[],E;y=(E=e.playerAds)!=null?E:[];if(!(y&&y.length||w.length))return{aX:[],adSlots:w,V5:!1,ssdaiAdsConfig:void 0};E=y.map(function(T){return T.adPlacementRenderer}).filter(function(T){return!(!T||!T.renderer)});
if(!E.length&&!w.length)return{aX:[],adSlots:w,V5:!1,ssdaiAdsConfig:void 0};if(N.end>0){var A=N.end.toString();E.forEach(function(T){(T=T.config&&T.config.adPlacementConfig)&&T.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&T.adTimeOffset&&T.adTimeOffset.offsetEndMilliseconds==="-1"&&T.adTimeOffset.offsetEndMilliseconds!==A&&(T.adTimeOffset.offsetEndMilliseconds=A)});
w.map(function(T){return g.m(T,gj)}).forEach(function(T){var p;
(T=T==null?void 0:(p=T.slotEntryTrigger)==null?void 0:p.mediaTimeRangeTrigger)&&T.offsetEndMilliseconds==="-1"&&(T.offsetEndMilliseconds=A)})}return{aX:E,
adSlots:w,V5:!1,ssdaiAdsConfig:e.ssdaiAdsConfig}};
Mr=function(e){g.x.call(this);this.C=e;this.listeners=[];this.J=new iY(this);g.Q(this,this.J);this.J.Y(this.C,"aduxclicked",this.onAdUxClicked);this.J.Y(this.C,"aduxmouseover",this.wX);this.J.Y(this.C,"aduxmouseout",this.bT);this.J.Y(this.C,"muteadaccepted",this.BTh)};
O85=function(e,N,y){N=g.dn(N,function(w){return new t1M(w,y,w.id)});
e.C.Mg("onAdUxUpdate",N)};
l9=function(e,N){e=g.c(e.listeners);for(var y=e.next();!y.done;y=e.next())N(y.value)};
F5=function(e,N){this.N=e;this.K=N===void 0?!1:N;this.J={}};
RuM=function(e,N){var y=e.startSecs+e.Vj;y=y<=0?null:y;if(y===null)return null;switch(e.event){case "start":case "continue":case "stop":break;case "predictStart":if(N)break;return null;default:return null}N=Math.max(e.startSecs,0);return{t5:new de(N,y),Hht:new iN(N,y-N,e.context,e.identifier,e.event,e.J)}};
Gq5=function(){this.J=[]};
ryP=function(e,N,y){var w=g.T7(e.J,N);if(w>=0)return N;N=-w-1;return N>=e.J.length||e.J[N]>y?null:e.J[N]};
ST=function(e,N,y){g.x.call(this);this.C=e;this.wP=N;this.Pk=y;this.listeners=[];this.j=!1;this.IH=[];this.J=null;this.L=new F5(this,Cu9(N.get()));this.K=new Gq5;this.N=null};
UQ3=function(e,N){e.IH.push(N);for(var y=!1,w=g.c(e.listeners),E=w.next();!E.done;E=w.next())y=E.value.Wq(N)||y;e.j=y;MN3(e.wP.get())&&sV(e.Pk.get(),"onci","cpi."+N.identifier+";cpe."+N.event+";cps."+N.startSecs+";cbi."+y)};
snP=function(e,N){Gp(e.Pk.get(),{cuepointTrigger:{event:Lt9(N.event),cuepointId:N.identifier,totalCueDurationMs:N.Vj*1E3,playheadTimeMs:N.J,cueStartTimeMs:N.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:e.C.getVideoData(1).clientPlaybackNonce}})};
Lt9=function(e){switch(e){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 wa(e,"Unexpected cuepoint event")}};
oa=function(e){this.C=e};
alE=function(e,N){e.C.cueVideoByPlayerVars(N,2)};
b9=function(e){this.C=e};
hM=function(e){this.C=e};
ewM=function(e){switch(e){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:wa(e,"unknown transitionReason")}};
Nbs=function(e){this.C=e};
yDM=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)});
g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)});
g.Q(this,p);var C=nn(function(){return new hH});
g.Q(this,C);var r=nn(function(){return new oc(e)});
g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)});
g.Q(this,Y);var M=nn(function(){return new GB});
g.Q(this,M);this.q7=nn(function(){return new Mr(N)});
g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)});
g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)});
g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)});
g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)});
g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)});
g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)});
g.Q(this,this.wP);var l=nn(function(){return new YL(w)});
g.Q(this,l);var F=nn(function(){return new Mx(A.wP)});
g.Q(this,F);this.DM=nn(function(){return new b9(N)});
g.Q(this,this.DM);this.uL=nn(function(){return new Wa});
g.Q(this,this.uL);this.Hk=nn(function(){return new AM(N,M,A.wP)});
g.Q(this,this.Hk);var S=K7({Hk:this.Hk,wP:this.wP,yT:F}),k=S.context,X=S.Kw;this.H9=S.H9;this.p$=nn(function(){return new ST(N,A.wP,A.Pk)});
g.Q(this,this.p$);this.xk=nn(function(){return new hM(N)});
g.Q(this,this.xk);this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)});
g.Q(this,this.zZ);S=nn(function(){return new Cs(T,Y,p,A.wP,F,"SLOT_TYPE_ABOVE_FEED",A.zZ,A.Gx,A.VT)});
g.Q(this,S);this.If=nn(function(){return new OG(A.wP)});
this.AM=nn(function(){return new aj(A.zZ,N,A.wP)});
g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,X)});
g.Q(this,this.Pk);this.KE=new F7(lP,cv,function(v,V,Z,n){return KN(p.get(),v,V,Z,n)},r,Y,p,F,this.wP,this.Hk);
g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var d=new WR(N,this.Sp,this.zZ,this.Hk,this.p$);this.gm=nn(function(){return d});
this.ji=d;this.Gx=new YF(r,Y,this.gm,this.p$,this.zZ,this.wP,this.Pk,this.xk);g.Q(this,this.Gx);this.kx=new bP(r,Y,this.oJ,this.gm,k);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ,A.xk)});
g.Q(this,this.R1);this.PE=nn(function(){return new MG});
g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.oX=new zB(e);g.Q(this,this.oX);this.DW=new Dz(e,this.gm,k);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,k);g.Q(this,this.Kq);this.YL=new V8(e,this.Hk);g.Q(this,this.YL);this.VT=new uP(e,this.p$,this.zZ,this.Pk,this.gm);g.Q(this,this.VT);this.T9=new fs(e);g.Q(this,this.T9);this.EQ=new jw(e);g.Q(this,this.EQ);this.Jy=new tH(e);g.Q(this,this.Jy);this.tN=new xF(e);g.Q(this,this.tN);
this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu});
g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)});
g.Q(this,this.fE);this.G$=nn(function(){return new VYE(A.q7,A.Pk,e,C,A.AM)});
g.Q(this,this.G$);this.dN=nn(function(){return new Lv(A.PG,r,T)});
g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)});
g.Q(this,this.Bo);this.kI=nn(function(){return new TK(e,A.EQ,A.T9,A.Hk,A.xk,A.zZ,A.Pk,M,A.p$,A.AM,A.If,A.s2,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,C,k,X)});
g.Q(this,this.kI);this.zD=nn(function(){return new R9M(A.zZ,A.Pk,A.P9,A.wP,A.AM)});
g.Q(this,this.zD);this.yQ=nn(function(){return new tZ5(A.q7,A.zZ,A.Pk,C,A.AM,A.oX,A.tN,A.P9,A.wP,y)});
g.Q(this,this.yQ);this.q9=nn(function(){return new fh5(A.q7,A.Pk,C)});
g.Q(this,this.q9);this.Ib=new $L(e,this.uL,T);g.Q(this,this.Ib);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_ABOVE_FEED",this.PE],["SLOT_TYPE_FORECASTING",this.PE],
["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE],["SLOT_TYPE_PLAYER_UNDERLAY",this.PE],["SLOT_TYPE_PLAYBACK_TRACKING",this.PE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.v9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.oX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Kq],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Kq],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Kq],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Kq],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.YL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.YL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.tN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.VT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VT]]),hc:new Map([["SLOT_TYPE_ABOVE_FEED",this.SN],
["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE],["SLOT_TYPE_PLAYER_UNDERLAY",this.SN],["SLOT_TYPE_PLAYBACK_TRACKING",this.SN],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.SN]]),L9:new Map([["SLOT_TYPE_ABOVE_FEED",this.G$],["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_PLAYER_BYTES",this.kI],["SLOT_TYPE_PLAYBACK_TRACKING",this.zD],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
this.zD],["SLOT_TYPE_IN_PLAYER",this.yQ],["SLOT_TYPE_PLAYER_UNDERLAY",this.q9]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:this.uL.get(),iL:this.ZW,D3:C.get(),zo:this.Hk.get()}};
wSM=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)});
g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)});
g.Q(this,p);var C=nn(function(){return new hH});
g.Q(this,C);var r=nn(function(){return new oc(e)});
g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)});
g.Q(this,Y);var M=nn(function(){return new GB});
g.Q(this,M);this.q7=nn(function(){return new Mr(N)});
g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)});
g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)});
g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)});
g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)});
g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)});
g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)});
g.Q(this,this.wP);var l=nn(function(){return new YL(w)});
g.Q(this,l);var F=nn(function(){return new Mx(A.wP)});
g.Q(this,F);var S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,null,A.Gx,A.VT)});
g.Q(this,S);this.DM=nn(function(){return new b9(N)});
g.Q(this,this.DM);this.uL=nn(function(){return new Wa});
g.Q(this,this.uL);this.Hk=nn(function(){return new AM(N,M,A.wP)});
g.Q(this,this.Hk);var k=K7({Hk:this.Hk,wP:this.wP,yT:F}),X=k.context,d=k.Kw;this.H9=k.H9;this.p$=nn(function(){return new ST(N,A.wP,A.Pk)});
this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)});
g.Q(this,this.zZ);this.AM=nn(function(){return new aj(A.zZ,N,A.wP)});
g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,d)});
g.Q(this,this.Pk);this.If=nn(function(){return new OG(A.wP)});
g.Q(this,this.If);this.KE=new F7(lP,cv,function(V,Z,n,R){return KN(p.get(),V,Z,n,R)},r,Y,p,F,this.wP,this.Hk);
g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var v=new WR(N,this.Sp,this.zZ,this.Hk,this.p$);this.gm=nn(function(){return v});
this.ji=v;this.Gx=new YF(r,Y,this.gm,this.p$,this.zZ,this.wP,this.Pk);g.Q(this,this.Gx);this.kx=new bP(r,Y,this.oJ,this.gm,X);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ)});
g.Q(this,this.R1);this.PE=nn(function(){return new MG});
g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.oX=new zB(e);g.Q(this,this.oX);this.DW=new Dz(e,this.gm,X);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,X);g.Q(this,this.Kq);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.tN=new xF(e);g.Q(this,this.tN);this.xk=nn(function(){return new hM(N)});
g.Q(this,this.xk);this.EQ=new jw(e);g.Q(this,this.EQ);this.VT=new uP(e,this.p$,this.zZ,this.Pk,this.gm);g.Q(this,this.VT);this.SN=nn(function(){return new Bu});
g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)});
g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)});
g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)});
g.Q(this,this.Bo);this.yQ=nn(function(){return new umM(A.q7,A.zZ,A.Pk,C,A.AM,A.oX,A.tN,A.P9,A.wP,y)});
g.Q(this,this.yQ);this.kI=nn(function(){return new Jc(e,A.EQ,A.T9,A.Pk,A.AM,A.If,A.s2,A.Hk,A.zZ,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,A.xk,X,d)});
g.Q(this,this.kI);this.Ib=new $L(e,this.uL,T);g.Q(this,this.Ib);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE],
["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.v9],["TRIGGER_TYPE_CLOSE_REQUESTED",this.oX],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.tN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.VT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VT]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]),
L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_IN_PLAYER",this.yQ],["SLOT_TYPE_PLAYER_BYTES",this.kI]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:this.uL.get(),iL:this.ZW,D3:C.get(),zo:this.Hk.get()}};
Ec5=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)});
g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)});
g.Q(this,p);var C=nn(function(){return new hH});
g.Q(this,C);var r=nn(function(){return new oc(e)});
g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)});
g.Q(this,Y);var M=nn(function(){return new GB});
g.Q(this,M);this.q7=nn(function(){return new Mr(N)});
g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)});
g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)});
g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)});
g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)});
g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)});
g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)});
g.Q(this,this.wP);var l=nn(function(){return new YL(w)});
g.Q(this,l);var F=nn(function(){return new Mx(A.wP)});
g.Q(this,F);var S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,null,null,null)});
g.Q(this,S);this.DM=nn(function(){return new b9(N)});
g.Q(this,this.DM);this.Hk=nn(function(){return new AM(N,M,A.wP)});
g.Q(this,this.Hk);var k=K7({Hk:this.Hk,wP:this.wP,yT:F}),X=k.context,d=k.Kw;this.H9=k.H9;this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)});
g.Q(this,this.zZ);this.AM=nn(function(){return new aj(A.zZ,N,A.wP)});
g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,d)});
g.Q(this,this.Pk);this.If=nn(function(){return new OG(A.wP)});
g.Q(this,this.If);this.KE=new F7(lP,cv,function(V,Z,n,R){return KN(p.get(),V,Z,n,R)},r,Y,p,F,this.wP,this.Hk);
g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var v=new WR(N,this.Sp,this.zZ,this.Hk);this.gm=nn(function(){return v});
this.ji=v;this.kx=new bP(r,Y,this.oJ,this.gm,X);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ)});
g.Q(this,this.R1);this.PE=nn(function(){return new MG});
g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.DW=new Dz(e,this.gm,X);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,X);g.Q(this,this.Kq);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.xk=nn(function(){return new hM(N)});
g.Q(this,this.xk);this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu});
g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)});
g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)});
g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)});
g.Q(this,this.Bo);this.Q1=nn(function(){return new WkM(A.q7,A.zZ,A.Pk,C,y,A.wP)});
g.Q(this,this.Q1);this.kI=nn(function(){return new Jc(e,A.EQ,A.T9,A.Pk,A.AM,A.If,A.s2,A.Hk,A.zZ,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,A.xk,X,d)});
g.Q(this,this.kI);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Kq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_ABOVE_FEED",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]),L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_IN_PLAYER",
this.Q1],["SLOT_TYPE_PLAYER_BYTES",this.kI]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:null,iL:this.ZW,D3:C.get(),zo:this.Hk.get()}};
ADP=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)});
g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)});
g.Q(this,p);var C=nn(function(){return new hH});
g.Q(this,C);var r=nn(function(){return new oc(e)});
g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)});
g.Q(this,Y);var M=nn(function(){return new GB});
g.Q(this,M);this.Hs=nn(function(){return new Nbs(N)});
g.Q(this,this.Hs);this.q7=nn(function(){return new Mr(N)});
g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)});
g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)});
g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)});
g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)});
g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)});
g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)});
g.Q(this,this.wP);var l=nn(function(){return new YL(w)});
g.Q(this,l);var F=nn(function(){return new Mx(A.wP)});
g.Q(this,F);var S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,null,null,null)});
g.Q(this,S);this.DM=nn(function(){return new b9(N)});
g.Q(this,this.DM);this.Hk=nn(function(){return new AM(N,M,A.wP)});
g.Q(this,this.Hk);var k=K7({Hk:this.Hk,wP:this.wP,yT:F}),X=k.context,d=k.Kw;this.H9=k.H9;this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)});
g.Q(this,this.zZ);this.AM=nn(function(){return new aj(A.zZ,N,A.wP)});
g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,d)});
g.Q(this,this.Pk);this.If=nn(function(){return new OG(A.wP)});
g.Q(this,this.If);this.KE=new F7(cw5,cv,function(V,Z,n,R){return QsF(p.get(),V,Z,n,R)},r,Y,p,F,this.wP,this.Hk);
g.Q(this,this.KE);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var v=new WR(N,this.Sp,this.zZ,this.Hk);this.gm=nn(function(){return v});
this.ji=v;this.kx=new bP(r,Y,this.oJ,this.gm,X);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ)});
g.Q(this,this.R1);this.PE=nn(function(){return new MG});
g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.DW=new Dz(e,this.gm,X);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,X);g.Q(this,this.Kq);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.xk=nn(function(){return new hM(N)});
g.Q(this,this.xk);this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu});
g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)});
g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)});
g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)});
g.Q(this,this.Bo);this.kI=nn(function(){return new Jc(e,A.EQ,A.T9,A.Pk,A.AM,A.If,A.s2,A.Hk,A.zZ,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,A.xk,X,d)});
g.Q(this,this.kI);this.Gs=nn(function(){return new ZVn(A.q7,A.zZ,A.Pk,C,A.Hs,y,A.Hk)});
g.Q(this,this.Gs);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Kq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]),L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_IN_PLAYER",this.Gs],["SLOT_TYPE_PLAYER_BYTES",
this.kI]])};this.listeners=[C.get()];this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:null,iL:this.ZW,D3:C.get(),zo:this.Hk.get()}};
Tb3=function(e,N,y,w,E){g.x.call(this);var A=this,T=nn(function(){return new ns(A.wP)});
g.Q(this,T);var p=nn(function(){return new ml(T,A.wP)});
g.Q(this,p);var C=nn(function(){return new hH});
g.Q(this,C);var r=nn(function(){return new oc(e)});
g.Q(this,r);var Y=nn(function(){return new Hu(T,p,A.wP)});
g.Q(this,Y);var M=nn(function(){return new GB});
g.Q(this,M);this.Hs=nn(function(){return new Nbs(N)});
g.Q(this,this.Hs);this.q7=nn(function(){return new Mr(N)});
g.Q(this,this.q7);this.P9=nn(function(){return new m$(E)});
g.Q(this,this.P9);this.d7=nn(function(){return new O4(N)});
g.Q(this,this.d7);this.oJ=nn(function(){return new Rj(N)});
g.Q(this,this.oJ);this.s2=nn(function(){return new oa(N)});
g.Q(this,this.s2);this.Vi=nn(function(){return new GI(N)});
g.Q(this,this.Vi);this.wP=nn(function(){return new U4(N)});
g.Q(this,this.wP);var l=nn(function(){return new YL(w)});
g.Q(this,l);var F=nn(function(){return new Mx(A.wP)});
g.Q(this,F);this.DM=nn(function(){return new b9(N)});
g.Q(this,this.DM);this.Hk=nn(function(){return new AM(N,M,A.wP)});
g.Q(this,this.Hk);var S=K7({Hk:this.Hk,wP:this.wP,yT:F}),k=S.context,X=S.Kw;this.H9=S.H9;this.p$=nn(function(){return new ST(N,A.wP,A.Pk)});
g.Q(this,this.p$);this.xk=nn(function(){return new hM(N)});
g.Q(this,this.xk);this.zZ=nn(function(){return new Td(N,A.Hk,A.wP)});
g.Q(this,this.zZ);S=nn(function(){return new Cs(T,Y,p,A.wP,F,null,A.zZ,A.Gx,A.VT,3)});
g.Q(this,S);this.If=nn(function(){return new OG(A.wP)});
this.AM=nn(function(){return new aj(A.zZ,N,A.wP)});
g.Q(this,this.AM);this.Pk=nn(function(){return new Ey(N,C,A.AM,A.Hk,A.H9,A.wP,X)});
g.Q(this,this.Pk);this.Sp=new Sw(r,S,y,this.wP,e,this.Hk,this.zZ,this.d7);g.Q(this,this.Sp);var d=new WR(N,this.Sp,this.zZ,this.Hk,this.p$);this.gm=nn(function(){return d});
this.ji=d;this.KE=new F7(kQ9,cv,function(v,V,Z,n){return QsF(p.get(),v,V,Z,n)},r,Y,p,F,this.wP,this.Hk);
g.Q(this,this.KE);this.Gx=new YF(r,Y,this.gm,this.p$,this.zZ,this.wP,this.Pk,this.xk);g.Q(this,this.Gx);this.kx=new bP(r,Y,this.oJ,this.gm,k);g.Q(this,this.kx);this.PG=new DC(this.wP,r,Y,S,this.Hk,this.kx,y);g.Q(this,this.PG);this.R1=nn(function(){return new YQ(l,p,F,A.wP,A.Pk,A.zZ,A.xk)});
g.Q(this,this.R1);this.PE=nn(function(){return new MG});
g.Q(this,this.PE);this.ZW=new Ic(e,this.q7,this.wP);g.Q(this,this.ZW);this.v9=new vu(e);g.Q(this,this.v9);this.DW=new Dz(e,this.gm,k);g.Q(this,this.DW);this.Kq=new g$(e,this.oJ,this.zZ,this.Hk,k);g.Q(this,this.Kq);this.YL=new V8(e,this.Hk);g.Q(this,this.YL);this.VT=new uP(e,this.p$,this.zZ,this.Pk,this.gm);g.Q(this,this.VT);this.T9=new fs(e);g.Q(this,this.T9);this.Jy=new tH(e);g.Q(this,this.Jy);this.EQ=new jw(e);g.Q(this,this.EQ);this.SN=nn(function(){return new Bu});
g.Q(this,this.SN);this.fE=nn(function(){return new X7(A.zZ)});
g.Q(this,this.fE);this.dN=nn(function(){return new Lv(A.PG,r,T)});
g.Q(this,this.dN);this.Bo=nn(function(){return new ec(A.wP,A.Pk,A.T9,A.AM)});
g.Q(this,this.Bo);this.kI=nn(function(){return new TK(e,A.EQ,A.T9,A.Hk,A.xk,A.zZ,A.Pk,M,A.p$,A.AM,A.If,A.s2,A.oJ,A.d7,A.Vi,A.P9,A.DM,A.wP,C,k,X)});
g.Q(this,this.kI);this.yQ=nn(function(){return new xYs(A.q7,A.zZ,A.Pk,C,A.Hs,y,A.wP,A.Hk)});
g.Q(this,this.yQ);this.V2={F0:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.PG],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.KE],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sp],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.kx]]),Fs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.R1],["SLOT_TYPE_FORECASTING",this.PE],["SLOT_TYPE_IN_PLAYER",this.PE],["SLOT_TYPE_PLAYER_BYTES",this.PE]]),ym:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.ZW],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.v9],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.v9],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.v9],["TRIGGER_TYPE_SLOT_ID_EXITED",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.v9],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.v9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.DW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Kq],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Kq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.YL],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.YL],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.T9],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.DW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Jy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.EQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.VT],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
this.VT],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.VT],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.VT],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.VT]]),hc:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.SN],["SLOT_TYPE_FORECASTING",this.SN],["SLOT_TYPE_IN_PLAYER",this.SN],["SLOT_TYPE_PLAYER_BYTES",this.fE]]),L9:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dN],["SLOT_TYPE_FORECASTING",this.Bo],["SLOT_TYPE_PLAYER_BYTES",this.kI],["SLOT_TYPE_IN_PLAYER",this.yQ]])};this.listeners=[C.get()];
this.cg={PG:this.PG,mW:this.wP.get(),Y1:this.P9.get(),f8:this.zZ.get(),Sp:this.Sp,hP:T.get(),rI:null,iL:this.ZW,D3:C.get(),zo:this.Hk.get()}};
pSF=function(e,N,y,w){function E(){return A.N}
g.x.call(this);var A=this;e.X().experiments.gP("html5_dispose_of_manager_before_dependency")?(this.J=JDM(E,e,N,y,w),this.N=(new Qk(this.J)).K(),g.Q(this,this.N),g.Q(this,this.J)):(this.J=JDM(E,e,N,y,w),g.Q(this,this.J),this.N=(new Qk(this.J)).K(),g.Q(this,this.N))};
kL=function(e){return e.J.cg};
JDM=function(e,N,y,w,E){try{var A=N.X();if(g.na(A))var T=new yDM(e,N,y,w,E);else if(g.mT(A))T=new wSM(e,N,y,w,E);else if(Vy(A))T=new Ec5(e,N,y,w,E);else if(g.ZY(A))T=new ADP(e,N,y,w,E);else if(g.IK(A))T=new Tb3(e,N,y,w,E);else throw new TypeError("Unknown web interface");return T}catch(p){return T=N.X(),YN("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:T.J.cplatform,interface:T.J.c,OIB:T.J.cver,qdq:T.J.ctheme,wFk:T.J.cplayer,gyl:T.playerStyle}),new KtE(e,N,y,w,E)}};
CD_=function(e){Hq.call(this,e)};
rD5=function(e,N,y,w,E){sZ.call(this,e,{S:"div",B:"ytp-ad-timed-pie-countdown-container",W:[{S:"svg",B:"ytp-ad-timed-pie-countdown",V:{viewBox:"0 0 20 20"},W:[{S:"circle",B:"ytp-ad-timed-pie-countdown-background",V:{r:"10",cx:"10",cy:"10"}},{S:"circle",B:"ytp-ad-timed-pie-countdown-inner",V:{r:"5",cx:"10",cy:"10"}},{S:"circle",B:"ytp-ad-timed-pie-countdown-outer",V:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",N,y,w,E);this.j=this.hW("ytp-ad-timed-pie-countdown-container");this.K=this.hW("ytp-ad-timed-pie-countdown-inner");
this.Z=this.hW("ytp-ad-timed-pie-countdown-outer");this.N=Math.ceil(2*Math.PI*5);this.hide()};
$1P=function(e,N,y,w,E,A){lj.call(this,e,{S:"div",B:"ytp-ad-action-interstitial",V:{tabindex:"0"},W:[{S:"div",B:"ytp-ad-action-interstitial-background-container"},{S:"div",B:"ytp-ad-action-interstitial-slot",W:[{S:"div",B:"ytp-ad-action-interstitial-instream-info"},{S:"div",B:"ytp-ad-action-interstitial-card",W:[{S:"div",B:"ytp-ad-action-interstitial-image-container"},{S:"div",B:"ytp-ad-action-interstitial-headline-container"},{S:"div",B:"ytp-ad-action-interstitial-description-container"},{S:"div",
B:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",N,y,w);this.ZH=E;this.uC=A;this.navigationEndpoint=this.J=this.skipButton=this.N=this.actionButton=null;this.Zl=this.hW("ytp-ad-action-interstitial-instream-info");this.aq=this.hW("ytp-ad-action-interstitial-image-container");this.D=new jY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-action-interstitial-image");g.Q(this,this.D);this.D.yB(this.aq);this.i9=this.hW("ytp-ad-action-interstitial-headline-container");
this.Z=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-action-interstitial-headline");g.Q(this,this.Z);this.Z.yB(this.i9);this.Kh=this.hW("ytp-ad-action-interstitial-description-container");this.K=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-action-interstitial-description");g.Q(this,this.K);this.K.yB(this.Kh);this.VB=this.hW("ytp-ad-action-interstitial-background-container");this.Bk=new jY(this.api,this.layoutId,this.interactionLoggingClientData,
this.Y1,"ytp-ad-action-interstitial-background",!0);g.Q(this,this.Bk);this.Bk.yB(this.VB);this.Ut=this.hW("ytp-ad-action-interstitial-action-button-container");this.slot=this.hW("ytp-ad-action-interstitial-slot");this.kz=this.hW("ytp-ad-action-interstitial-card");this.j=new iY;g.Q(this,this.j);this.hide()};
YuH=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)};
SuE=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-overlay-slot",W:[{S:"div",B:"ytp-ad-overlay-container"}]},"invideo-overlay",N,y,w);this.D=[];this.VB=this.i9=this.j=this.Ut=this.Zl=null;this.Bk=!1;this.Z=null;this.Kh=0;e=this.hW("ytp-ad-overlay-container");this.aq=new JF(e,45E3,6E3,.3,.4);g.Q(this,this.aq);this.K=MGF(this);g.Q(this,this.K);this.K.yB(e);this.N=lPP(this);g.Q(this,this.N);this.N.yB(e);this.J=FeE(this);g.Q(this,this.J);this.J.yB(e);this.hide()};
MGF=function(e){var N=new g.Mu({S:"div",B:"ytp-ad-text-overlay",W:[{S:"div",B:"ytp-ad-overlay-ad-info-button-container"},{S:"div",B:"ytp-ad-overlay-close-container",W:[{S:"button",B:"ytp-ad-overlay-close-button",W:[g1(ocM)]}]},{S:"div",B:"ytp-ad-overlay-title",b9:"{{title}}"},{S:"div",B:"ytp-ad-overlay-desc",b9:"{{description}}"},{S:"div",dP:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],b9:"{{displayUrl}}"}]});e.Y(N.hW("ytp-ad-overlay-title"),"click",function(y){Bv(e,N.element,y)});
e.Y(N.hW("ytp-ad-overlay-link"),"click",function(y){Bv(e,N.element,y)});
e.Y(N.hW("ytp-ad-overlay-close-container"),"click",e.UZ);N.hide();return N};
lPP=function(e){var N=new g.Mu({S:"div",dP:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{S:"div",B:"ytp-ad-overlay-ad-info-button-container"},{S:"div",B:"ytp-ad-overlay-close-container",W:[{S:"button",B:"ytp-ad-overlay-close-button",W:[g1(ocM)]}]},{S:"div",B:"ytp-ad-overlay-text-image",W:[{S:"img",V:{src:"{{imageUrl}}"}}]},{S:"div",B:"ytp-ad-overlay-title",b9:"{{title}}"},{S:"div",B:"ytp-ad-overlay-desc",b9:"{{description}}"},{S:"div",dP:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
b9:"{{displayUrl}}"}]});e.Y(N.hW("ytp-ad-overlay-title"),"click",function(y){Bv(e,N.element,y)});
e.Y(N.hW("ytp-ad-overlay-link"),"click",function(y){Bv(e,N.element,y)});
e.Y(N.hW("ytp-ad-overlay-close-container"),"click",e.UZ);e.Y(N.hW("ytp-ad-overlay-text-image"),"click",e.pEq);N.hide();return N};
FeE=function(e){var N=new g.Mu({S:"div",B:"ytp-ad-image-overlay",W:[{S:"div",B:"ytp-ad-overlay-ad-info-button-container"},{S:"div",B:"ytp-ad-overlay-close-container",W:[{S:"button",B:"ytp-ad-overlay-close-button",W:[g1(ocM)]}]},{S:"div",B:"ytp-ad-overlay-image",W:[{S:"img",V:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});e.Y(N.hW("ytp-ad-overlay-image"),"click",function(y){Bv(e,N.element,y)});
e.Y(N.hW("ytp-ad-overlay-close-container"),"click",e.UZ);N.hide();return N};
b4M=function(e,N){if(N){var y=g.m(N,IQ)||null;y==null?g.t0(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(N=g.H4("video-ads ytp-ad-module")||null,N==null?g.t0(Error("Could not locate the root ads container element to attach the ad info dialog.")):(e.i9=new g.Mu({S:"div",B:"ytp-ad-overlay-ad-info-dialog-container"}),g.Q(e,e.i9),e.i9.yB(N),N=new GV(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.i9.element,!1),g.Q(e,N),N.init(TV("ad-info-hover-text-button"),y,e.macros),
e.Z?(N.yB(e.Z,0),N.subscribe("f",e.o_h,e),N.subscribe("e",e.UG,e),e.Y(e.Z,"click",e.E_s),e.Y(g.H4("ytp-ad-button",N.element),"click",function(){var w;if(g.m((w=g.m(y.button,g.zR))==null?void 0:w.serviceEndpoint,K1M))e.Bk=e.api.getPlayerState(1)===2,e.api.pauseVideo();else e.api.onAdUxClicked("ad-info-hover-text-button",e.layoutId)}),e.VB=N):g.t0(Error("Ad info button container within overlay ad was not present."))))}else g.uA(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
cD9=function(e,N){if(hw9(e,X5)||e.api.isMinimized())return!1;var y=F3(N.title),w=F3(N.description);if(g.kw(y)||g.kw(w))return!1;e.createServerVe(e.K.element,N.trackingParams||null);e.K.updateValue("title",F3(N.title));e.K.updateValue("description",F3(N.description));e.K.updateValue("displayUrl",F3(N.displayUrl));N.navigationEndpoint&&g.Nd(e.D,N.navigationEndpoint);e.K.show();e.aq.start();e.logVisibility(e.K.element,!0);e.Y(e.K.element,"mouseover",function(){e.Kh++});
return!0};
kUn=function(e,N){if(hw9(e,X5)||e.api.isMinimized())return!1;var y=F3(N.title),w=F3(N.description);if(g.kw(y)||g.kw(w))return!1;e.createServerVe(e.N.element,N.trackingParams||null);e.N.updateValue("title",F3(N.title));e.N.updateValue("description",F3(N.description));e.N.updateValue("displayUrl",F3(N.displayUrl));e.N.updateValue("imageUrl",CC5(N.image));N.navigationEndpoint&&g.Nd(e.D,N.navigationEndpoint);e.Ut=N.imageNavigationEndpoint||null;e.N.show();e.aq.start();e.logVisibility(e.N.element,!0);
e.Y(e.N.element,"mouseover",function(){e.Kh++});
return!0};
BbH=function(e,N){if(e.api.isMinimized())return!1;var y=rgM(N.image),w=y;y.width<X5.width&&(w=X5);if(y.width===0||y.height===0||hw9(e,w))return!1;e.createServerVe(e.J.element,N.trackingParams||null);e.J.updateValue("imageUrl",CC5(N.image));e.J.updateValue("width",y.width);e.J.updateValue("height",y.height);N.navigationEndpoint&&g.Nd(e.D,N.navigationEndpoint);g.$0(e.J.hW("ytp-ad-image-overlay"),"max-width",y.width+"px");e.J.show();e.logVisibility(e.J.element,!0);e.Y(e.J.element,"mouseover",function(){e.Kh++;
e.api.wX("invideo-overlay",e.layoutId)});
e.Y(e.J.element,"mouseout",function(){e.api.bT("invideo-overlay",e.layoutId)});
return!0};
hw9=function(e,N){var y=e.api.Fz().aV(),w=e.api.eW(!0,!1);return(N=$A(y,y.height-(w.height+w.top),N))?(e.Zl&&N&&(y=g.DA(e.macros),y.ERRORCODE=N.U6.toString(),y.ERROR_MSG=N.errorMessage,e.layoutId?Kn(e.Y1,e.Zl,e.layoutId,y):g.t0(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
Bv=function(e,N,y){var w=g.DA(e.macros),E=g.Be(N);w.AW={toString:function(){return E.width.toString()}};
w.AH={toString:function(){return E.height.toString()}};
var A=g.ce(y,N).floor();w.I_X={toString:function(){return A.x.toString()}};
w.NX={toString:function(){return A.x.toString()}};
w.I_Y={toString:function(){return A.y.toString()}};
w.NY={toString:function(){return A.y.toString()}};
w.NM={toString:function(){return e.Kh.toString()}};
N=g.c(e.D);for(y=N.next();!y.done;y=N.next())y=y.value,e.layoutId?Kn(e.Y1,y,e.layoutId,w):g.t0(Error("Missing layoutId for invideo_overlay_ad."));e.api.pauseVideo()};
XSH=function(e,N){e=e.api.getRootNode();g.Y1(e,"ytp-ad-overlay-open",N);g.Y1(e,"ytp-ad-overlay-closed",!N)};
PD3=function(e,N,y,w,E){sZ.call(this,e,{S:"div",B:"ytp-ad-message-overlay",W:[{S:"div",B:"ytp-ad-message-slot"}]},"ad-message",N,y,w,E);var A=this;this.Z=-1;this.K=0;this.Kh=!1;this.i9=this.hW("ytp-ad-message-slot");this.N=new g.Mu({S:"span",B:"ytp-ad-message-container"});this.N.yB(this.i9);g.Q(this,this.N);this.messageText=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,w,"ytp-ad-message-text");g.Q(this,this.messageText);this.messageText.yB(this.N.element);this.j=new g.NE(this.N,
400,!1,100,function(){A.hide()});
g.Q(this,this.j);this.hide()};
d1J=function(e,N){e=e.api.getRootNode();g.Y1(e,"ytp-ad-overlay-open",N);g.Y1(e,"ytp-ad-overlay-closed",!N)};
IPJ=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-underlay-companion",W:[{S:"div",B:"ytp-ad-underlay-side-container",W:[{S:"div",B:"ytp-ad-underlay-image-container"},{S:"div",B:"ytp-ad-underlay-description-container"},{S:"div",B:"ytp-ad-underlay-headline-container"},{S:"div",B:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",N,y,w);this.actionButton=null;this.i9=this.hW("ytp-ad-underlay-image-container");this.K=new jY(this.api,this.layoutId,this.interactionLoggingClientData,
this.Y1,"ytp-ad-underlay-image");g.Q(this,this.K);this.K.yB(this.i9);this.Kh=this.hW("ytp-ad-underlay-headline-container");this.N=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-underlay-headline");g.Q(this,this.N);this.N.yB(this.Kh);this.D=this.hW("ytp-ad-underlay-description-container");this.j=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-underlay-description");g.Q(this,this.j);this.j.yB(this.D);this.Z=this.hW("ytp-ad-underlay-action-button-container");
this.J=this.hW("ytp-ad-underlay-side-container");this.hide()};
vcF=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)};
Pv=function(e,N,y,w,E,A){A=A===void 0?function(){}:A;
lj.call(this,e,{S:"div",B:"ytp-ad-survey-answer"},"survey-answer",N,y,w);this.index=E;this.onSelected=A;this.J=null;this.toggledLoggingParams="";this.answer=this.hW("ytp-ad-survey-answer");this.hide()};
zw5=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",N,y,w);this.button=null;this.J=this.hW("ytp-ad-survey-none-of-the-above");this.hide()};
dV=function(e,N,y,w){var E=["ytp-ad-survey-submit-button"];E.push("ytp-ad-survey-submit-button-rounded");Vv.call(this,e,N,y,w,E,"survey-submit")};
Ia=function(e,N,y,w,E){lj.call(this,e,{S:"div",B:"ytp-ad-survey-player-overlay",W:[{S:"div",B:"ytp-ad-survey-player-overlay-instream-info"},{S:"div",B:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{S:"div",B:"ytp-ad-survey-player-overlay-skip-or-preview"},{S:"div",B:"ytp-ad-survey-player-overlay-submit"}]},{S:"div",B:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",N,y,w);this.j=E;this.N=this.J=null;this.K=this.hW("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.hW("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.hW("ytp-ad-survey-player-overlay-submit");g.Q(this,this.j);this.hide()};
vv=function(e,N,y,w,E,A){A=A===void 0?function(){}:A;
lj.call(this,e,{S:"div",B:"ytp-ad-survey-question",W:[{S:"div",dP:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{S:"div",dP:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{S:"div",dP:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{S:"div",B:"ytp-ad-survey-question-background"}]},E,N,y,w);this.i9=A;this.j=null;this.N=[];this.J=null;this.D=this.api.X().experiments.gP("a11y_h5_associate_survey_question");this.question=this.hW("ytp-ad-survey-question");
this.aq=this.hW("ytp-ad-survey-question-background");this.questionText=this.hW("ytp-ad-survey-question-text");this.answers=this.hW("ytp-ad-survey-answers");this.playerOverlay=this.hW("ytp-ad-survey-question-player-overlay");this.K=Date.now()};
i4M=function(e,N){N=g.SY(N);g.AL(e.questionText,N);e.D&&e.questionText.setAttribute("id",TV("survey-question-text"))};
D1M=function(e,N,y,w){w=new Pv(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,w,e.i9);w.yB(e.answers);w.init(TV("survey-answer"),N,y);e.D&&(N=e.questionText.getAttribute("id"),N!=null&&(w.J!==null?w.J.N.setAttribute("aria-describedby",N):w.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",N)));e.N.push(w)};
VGH=function(e,N){if(N){var y=N.background;y&&g.m(y,gcM)&&(y=(y=g.m(y,gcM).image)&&xl(y)||"",g.kw(y)?g.uA(Error("Found ThumbnailDetails without valid image URL")):g.$0(e.aq,"backgroundImage","url("+y+")"));if(N.durationMilliseconds==null||N.durationMilliseconds===void 0||N.durationMilliseconds===0)g.t0(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(N)));else{e.K=g.s9();e.J=new B2(e.api,N.durationMilliseconds);g.Q(e,e.J);if(e.J&&N.instreamAdPlayerOverlay&&g.m(N.instreamAdPlayerOverlay,
dj))try{var w=new Ia(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.J);w.yB(e.playerOverlay);w.init(TV("survey-player-overlay"),g.m(N.instreamAdPlayerOverlay,dj),e.macros);e.j=w;g.Q(e,w);e.Zq()}catch(E){g.t0(Error("ISAPOR had an error when initializing. Error: "+(E+" SurveyAdQuestionCommon: "+JSON.stringify(N))))}else g.t0(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(N)));e.J&&N.durationMilliseconds&&N.durationMilliseconds>0?(N=new up(e.api,e.J),N.yB(e.playerOverlay),
g.Q(e,N)):g.t0(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(N)))}}else g.t0(Error("addCommonComponents() needs to be called before starting countdown."))};
fP5=function(e){function N(y){return{toString:function(){return y()}}}
e.macros.SURVEY_LOCAL_TIME_EPOCH_S=N(function(){var y=new Date;return(Math.round(y.valueOf()/1E3)+-1*y.getTimezoneOffset()*60).toString()});
e.macros.SURVEY_ELAPSED_MS=N(function(){return(Date.now()-e.K).toString()})};
tGM=function(e,N,y,w,E){vv.call(this,e,N,y,w,"survey-question-multi-select");this.Kh=E;this.noneOfTheAbove=null;this.submitEndpoints=[];this.Z=null;this.hide()};
ukH=function(e,N,y){e.noneOfTheAbove=new zw5(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1);e.noneOfTheAbove.yB(e.answers);e.noneOfTheAbove.init(TV("survey-none-of-the-above"),N,y)};
Z4E=function(e){e.N.forEach(function(N){N.J.toggleButton(!1)});
qu0(e,!0)};
qu0=function(e,N){var y=e.j;e=x1M(e);N=N===void 0?!1:N;y.J&&(e?y.J.hide():y.J.show(),N&&y.J instanceof bp&&!y.J.j&&eW9(y.J,!1));y.N&&(e?y.N.show():y.N.hide())};
x1M=function(e){return e.N.some(function(N){return N.J.isToggled()})||e.noneOfTheAbove.button.isToggled()};
zd=function(e,N,y,w,E){vv.call(this,e,N,y,w,"survey-question-single-select",function(T){A.api.X().T("supports_multi_step_on_desktop")&&E([T])});
var A=this;this.hide()};
i9=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-survey",W:[{S:"div",B:"ytp-ad-survey-questions"}]},"survey",N,y,w);this.questions=[];this.N=[];this.conditioningRules=[];this.J=0;this.Z=this.hW("ytp-ad-survey-questions");this.api.X().T("fix_survey_color_contrast_on_destop")&&this.hW("ytp-ad-survey").classList.add("color-contrast-fix");this.api.X().T("web_enable_speedmaster")&&this.hW("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
Q6F=function(e,N){var y=e.N[N],w;(w=e.K)==null||w.dispose();g.m(y,Pr)?j6E(e,g.m(y,Pr),e.macros):g.m(y,X4)&&nc0(e,g.m(y,X4),e.macros);e.J=N};
j6E=function(e,N,y){var w=new zd(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.j.bind(e));w.yB(e.Z);w.init(TV("survey-question-single-select"),N,y);e.api.X().T("supports_multi_step_on_desktop")?e.K=w:e.questions.push(w);g.Q(e,w)};
nc0=function(e,N,y){var w=new tGM(e.api,e.layoutId,e.interactionLoggingClientData,e.Y1,e.j.bind(e));w.yB(e.Z);w.init(TV("survey-question-multi-select"),N,y);e.api.X().T("supports_multi_step_on_desktop")?e.K=w:e.questions.push(w);g.Q(e,w)};
D_=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-survey-interstitial",W:[{S:"div",B:"ytp-ad-survey-interstitial-contents",W:[{S:"div",B:"ytp-ad-survey-interstitial-logo",W:[{S:"div",B:"ytp-ad-survey-interstitial-logo-image"}]},{S:"div",B:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",N,y,w);this.J=this.actionButton=null;this.interstitial=this.hW("ytp-ad-survey-interstitial");this.N=this.hW("ytp-ad-survey-interstitial-contents");this.text=this.hW("ytp-ad-survey-interstitial-text");
this.logoImage=this.hW("ytp-ad-survey-interstitial-logo-image");this.transition=new g.NE(this,500,!1,300);g.Q(this,this.transition)};
m1M=function(e,N){N=N&&xl(N)||"";if(g.kw(N))g.uA(Error("Found ThumbnailDetails without valid image URL"));else{var y=e.style;e=e.style.cssText;var w=document.implementation.createHTMLDocument("").createElement("DIV");w.style.cssText=e;e=xW3(w.style);y.cssText=[e,'background-image:url("'+N+'");'].join("")}};
H4M=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)};
gV=function(e,N,y,w,E,A){A=A===void 0?0:A;sZ.call(this,e,{S:"div",B:"ytp-preview-ad",W:[{S:"div",B:"ytp-preview-ad__text"}]},"preview-ad",N,y,w,E);var T=this;this.Kh=A;this.N=0;this.j=-1;this.K=this.hW("ytp-preview-ad__text");switch(this.Kh){case 1:this.K.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.NE(this,400,!1,100,function(){T.hide()});
g.Q(this,this.transition);this.hide()};
Va=function(e,N,y,w){lj.call(this,e,{S:"img",B:"ytp-ad-avatar"},"ad-avatar",N,y,w);this.hide()};
KeP=function(e){switch(e.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}};
fe=function(e,N,y,w,E,A){E=E===void 0?!1:E;A=A===void 0?!1:A;lj.call(this,e,{S:"button",B:"ytp-ad-button-vm"},"ad-button",N,y,w);this.buttonText=this.buttonIcon=null;this.hide();this.J=E;this.N=A};
We1=function(e,N,y,w,E){sZ.call(this,e,{S:"div",dP:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{S:"div",B:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{S:"div",B:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",N,y,w,E);this.startMilliseconds=0;this.adAvatar=new Va(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adAvatar);yp(this.element,this.adAvatar.element,0);this.headline=new ip(this.api,this.layoutId,
this.interactionLoggingClientData,this.Y1);g.Q(this,this.headline);this.headline.yB(this.hW("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.description);this.description.yB(this.hW("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new fe(this.api,
this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adButton);this.adButton.yB(this.element);this.hide()};
tM=function(e,N,y,w){lj.call(this,e,{S:"button",B:"ytp-skip-ad-button",W:[{S:"div",B:"ytp-skip-ad-button__text"}]},"skip-button",N,y,w);var E=this;this.N=!1;this.j=this.hW("ytp-skip-ad-button__text");this.transition=new g.NE(this,500,!1,100,function(){E.hide()});
g.Q(this,this.transition);this.J=new JF(this.element,15E3,5E3,.5,.5,!0);g.Q(this,this.J);this.hide()};
O4P=function(e,N,y,w,E){sZ.call(this,e,{S:"div",B:"ytp-skip-ad"},"skip-ad",N,y,w,E);this.skipOffsetMilliseconds=0;this.j=this.isSkippable=!1;var A;if((A=this.api.getVideoData())==null?0:A.isDaiEnabled())this.j=this.api.X().T("clean_player_style_fix_on_web");if(this.j||!this.api.X().experiments.gP("disable_ad_preview_for_instream_ads"))this.N=new gV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J),g.Q(this,this.N),this.N.yB(this.element);this.K=new tM(this.api,this.layoutId,
this.interactionLoggingClientData,this.Y1);g.Q(this,this.K);this.K.yB(this.element);this.hide()};
u9=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-visit-advertiser-link"},"visit-advertiser-link",N,y,w);this.hide();this.api.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")};
qr=function(e,N,y,w,E){lj.call(this,e,{S:"div",B:"ytp-ad-player-overlay-layout",W:[{S:"div",B:"ytp-ad-player-overlay-layout__player-card-container"},{S:"div",B:"ytp-ad-player-overlay-layout__ad-info-container"},{S:"div",B:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{S:"div",B:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",N,y,w);this.N=E;this.i9=this.hW("ytp-ad-player-overlay-layout__player-card-container");this.J=this.hW("ytp-ad-player-overlay-layout__ad-info-container");
this.D=this.hW("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Kh=this.hW("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
Rw3=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-grid-card-text",W:[{S:"div",B:"ytp-ad-grid-card-text__metadata",W:[{S:"div",B:"ytp-ad-grid-card-text__metadata__headline"},{S:"div",B:"ytp-ad-grid-card-text__metadata__description",W:[{S:"div",B:"ytp-ad-grid-card-text__metadata__description__line"},{S:"div",B:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{S:"div",B:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",N,y,w);this.headline=new ip(this.api,this.layoutId,this.interactionLoggingClientData,
this.Y1);g.Q(this,this.headline);this.headline.yB(this.hW("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new fe(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0);g.Q(this,this.moreInfoButton);this.moreInfoButton.yB(this.hW("ytp-ad-grid-card-text__button"))};
Z_=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",N,y,w);this.J=[]};
xL=function(e,N,y,w,E,A,T){sZ.call(this,e,A,T,N,y,w,E);this.playerProgressOffsetMs=0;this.N=!1};
GU1=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)};
U13=function(e,N,y,w,E){xL.call(this,e,N,y,w,E,{S:"div",B:"ytp-display-underlay-text-grid-cards",W:[{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container",W:[{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},
{S:"div",B:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Z_(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adGridCardCollection);this.adGridCardCollection.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new fe(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adButton);this.adButton.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__ad_button"));
this.K=this.hW("ytp-display-underlay-text-grid-cards__content_container");this.j=this.hW("ytp-display-underlay-text-grid-cards__content_container__header")};
jT=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-ad-details-line"},"ad-details-line",N,y,w);this.J=[];this.hide()};
ne=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-image-background",W:[{S:"img",B:"ytp-image-background-image"}]},"image-background",N,y,w);this.hide()};
LeM=function(e,N,y,w,E){sZ.call(this,e,{S:"svg",B:"ytp-timed-pie-countdown",V:{viewBox:"0 0 20 20"},W:[{S:"circle",B:"ytp-timed-pie-countdown__background",V:{r:"10",cx:"10",cy:"10"}},{S:"circle",B:"ytp-timed-pie-countdown__inner",V:{r:"5",cx:"10",cy:"10"}},{S:"circle",B:"ytp-timed-pie-countdown__outer",V:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",N,y,w,E);this.K=this.hW("ytp-timed-pie-countdown__inner");this.N=Math.ceil(2*Math.PI*5);this.hide()};
Qa=function(e,N,y,w){lj.call(this,e,{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout",V:{tabindex:"0"},W:[{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{S:"div",B:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",N,y,w);this.N=null;this.j=this.hW("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.K=new iY;g.Q(this,this.K);this.hide()};
s6J=function(e){var N=g.H4("html5-video-player");N&&g.Y1(N,"ytp-ad-display-override",e)};
aPn=function(e){if(!e.adAvatar||!g.m(e.adAvatar,mO))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!e.headline)return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!e.adBadge||!g.m(e.adBadge,Hv))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!e.adButton||!g.m(e.adButton,Ke))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!e.adInfoRenderer||
!g.m(e.adInfoRenderer,IQ))return g.t0(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;e=e.durationMilliseconds||0;return typeof e!=="number"||e<=0?(g.t0(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+e)),!1):!0};
Wv=function(e,N,y){Hq.call(this,e);this.api=e;this.Y1=N;this.N={};e=new g.W({S:"div",dP:["video-ads","ytp-ad-module"]});g.Q(this,e);KC&&g.pi(e.element,"ytp-ads-tiny-mode");this.L=new k5(e.element);g.Q(this,this.L);g.Pb(this.api,e.element,4);Wr(y)&&(y=new g.W({S:"div",dP:["ytp-ad-underlay"]}),g.Q(this,y),this.K=new k5(y.element),g.Q(this,this.K),g.Pb(this.api,y.element,0));g.Q(this,iln())};
eo1=function(e,N){e=g.zM(e.N,N.id,null);e==null&&g.uA(Error("Component not found for element id: "+N.id));return e||null};
Nc5=function(e){g.dH.call(this,e);var N=this;this.N=null;this.created=!1;this.K=e.X().T("h5_use_refactored_get_ad_break")?new Gn9(this.player):new HR(this.player);this.j=function(){if(N.N!=null)return N.N;var w=new ySH({iL:kL(N.J).iL,zo:kL(N.J).zo,C:N.player,mW:kL(N.J).mW,Pk:N.J.J.Pk,D3:kL(N.J).D3,Vi:N.J.J.Vi});N.N=w.Ls;return N.N};
this.J=new pSF(this.player,this,this.K,this.j);g.Q(this,this.J);var y=e.X();!dX(y)||g.IK(y)||Vy(y)||(g.Q(this,new Wv(e,kL(this.J).Y1,kL(this.J).mW)),g.Q(this,new CD_(e)))};
y1H=function(e){e.created!==e.loaded&&YN("Created and loaded are out of sync")};
A11=function(e){g.dH.prototype.load.call(e);var N=kL(e.J).mW;try{e.player.getRootNode().classList.add("ad-created")}catch(C){YN(C instanceof Error?C:String(C))}var y=e.player.getVideoData(1),w=y&&y.videoId||"",E=y&&y.getPlayerResponse()||{},A=(!e.player.X().experiments.gP("debug_ignore_ad_placements")&&E&&E.adPlacements||[]).map(function(C){return C.adPlacementRenderer}),T=((E==null?void 0:E.adSlots)||[]).map(function(C){return g.m(C,gj)});
E=E.playerConfig&&E.playerConfig.daiConfig&&E.playerConfig.daiConfig.enableDai||!1;y&&y.Cx();A=wA3(A,T,N,kL(e.J).hP);T=y&&y.clientPlaybackNonce||"";y=y&&y.jg||!1;if(k6(N,!0)&&y){var p;N={};(p=e.player.getVideoData())==null||p.Fh("p_cpb",(N.cc=T,N))}p=1E3*e.player.getDuration(1);EGP(e);e.J.J.ji.I$(T,p,y,A.Ad,A.W0,A.Ad,E,w)};
EGP=function(e){var N,y;if(y=(N=e.player.getVideoData(1))==null||!N.jg)N=e.player.X(),y=dX(N)&&!g.Pa(N)&&N.playerStyle==="desktop-polymer";y&&(e=e.player.getInternalApi(),e.addEventListener("updateKevlarOrC3Companion",Ton),e.addEventListener("updateEngagementPanelAction",Jxs),e.addEventListener("changeEngagementPanelVisibility",pi5),window.addEventListener("yt-navigate-start",rxJ))};
Oy=function(e,N){N===e.H1&&(e.H1=void 0)};
Tcn=function(e){var N=kL(e.J).Sp,y=N.j().yU("SLOT_TYPE_PLAYER_BYTES",1);N=Mb(N.Hk.get(),1).clientPlaybackNonce;var w=!1;y=g.c(y);for(var E=y.next();!E.done;E=y.next()){E=E.value;var A=E.slotType==="SLOT_TYPE_PLAYER_BYTES"&&E.slotEntryTrigger instanceof kA?E.slotEntryTrigger.Zf:void 0;A&&A===N&&(w&&YN("More than 1 preroll playerBytes slot detected",E),w=!0)}w||JM(kL(e.J).f8)};
J15=function(e){if(L7(kL(e.J).mW))return!0;var N="";e=g.c(kL(e.J).D3.R$.keys());for(var y=e.next();!y.done;y=e.next()){y=y.value;if(y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&y.Xh==="core")return!0;N+=y.slotType+" "}Math.random()<.01&&YN("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:N});return!1};
pAM=function(e){e=g.c(kL(e.J).D3.R$.values());for(var N=e.next();!N.done;N=e.next())if(N.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
cCF=function(e,N,y,w,E,A){y=y===void 0?[]:y;w=w===void 0?"":w;E=E===void 0?"":E;var T=kL(e.J).mW,p=e.player.getVideoData(1);p&&p.getPlayerResponse();p&&p.Cx();y=wA3(N,y,T,kL(e.J).hP);PIP(kL(e.J).PG,w,y.Ad,y.W0,N,E,A)};
wA3=function(e,N,y,w){N={Ad:[],W0:N};e=g.c(e);for(var E=e.next();!E.done;E=e.next())if((E=E.value)&&E.renderer!=null){var A=E.renderer;if(!y.C.X().T("html5_enable_vod_lasr_with_notify_pacf")){var T=void 0,p=void 0,C=void 0,r=void 0,Y=w;g.m((r=A.sandwichedLinearAdRenderer)==null?void 0:r.adVideoStart,ps)?(T=g.m((C=A.sandwichedLinearAdRenderer)==null?void 0:C.adVideoStart,ps),T=Zx0(T,Y),g.nQ(A.sandwichedLinearAdRenderer.adVideoStart,ps,T)):g.m((p=A.linearAdSequenceRenderer)==null?void 0:p.adStart,ps)&&
(C=g.m((T=A.linearAdSequenceRenderer)==null?void 0:T.adStart,ps),T=Zx0(C,Y),g.nQ(A.linearAdSequenceRenderer.adStart,ps,T))}N.Ad.push(E)}return N};
g.Ra=function(e){if(typeof DOMParser!="undefined")return OK(new DOMParser,gVH(e),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.Gd=function(e){g.x.call(this);this.callback=e;this.J=new XM(0,0,.4,0,.2,1,1,1);this.delay=new g.a1(this.next,window,this);g.Q(this,this.delay)};
g.C15=function(e){var N=e.X();return N.NK&&!N.K&&g.hR(N)?e.isEmbedsShortsMode()?(e=e.eW(),Math.min(e.width,e.height)>=315):!e.xx():!1};
g.Uy=function(e){g.W.call(this,{S:"div",B:"ytp-more-videos-view",V:{tabIndex:"-1"}});var N=this;this.api=e;this.N=!0;this.K=new g.fd(this);this.J=[];this.suggestionData=[];this.columns=this.containerWidth=this.U=this.j=this.scrollPosition=0;this.title=new g.W({S:"h2",B:"ytp-related-title",b9:"{{title}}"});this.previous=new g.W({S:"button",dP:["ytp-button","ytp-previous"],V:{"aria-label":"Show previous suggested videos"},W:[g.hZ()]});this.G=new g.Gd(function(y){N.suggestions.element.scrollLeft=-y});
this.next=new g.W({S:"button",dP:["ytp-button","ytp-next"],V:{"aria-label":"Show more suggested videos"},W:[g.cq()]});g.Q(this,this.K);this.Z=e.X().j;g.Q(this,this.title);this.title.yB(this.element);this.suggestions=new g.W({S:"div",B:"ytp-suggestions"});g.Q(this,this.suggestions);this.suggestions.yB(this.element);g.Q(this,this.previous);this.previous.yB(this.element);this.previous.listen("click",this.cN,this);g.Q(this,this.G);r1_(this);g.Q(this,this.next);this.next.yB(this.element);this.next.listen("click",
this.zB,this);this.K.Y(this.api,"appresize",this.I9);this.K.Y(this.api,"fullscreentoggled",this.bz);this.K.Y(this.api,"videodatachange",this.onVideoDataChange);this.I9(this.api.Fz().getPlayerSize());this.onVideoDataChange()};
r1_=function(e){for(var N={vZ:0};N.vZ<16;N={vZ:N.vZ},++N.vZ){var y=new g.W({S:"a",B:"ytp-suggestion-link",V:{href:"{{link}}",target:e.api.X().D,"aria-label":"{{aria_label}}"},W:[{S:"div",B:"ytp-suggestion-image"},{S:"div",B:"ytp-suggestion-overlay",V:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{S:"div",B:"ytp-suggestion-title",b9:"{{title}}"},{S:"div",B:"ytp-suggestion-author",b9:"{{author_and_views}}"},{S:"div",V:{"data-is-live":"{{is_live}}"},B:"ytp-suggestion-duration",
b9:"{{duration}}"}]}]});g.Q(e,y);var w=y.hW("ytp-suggestion-link");g.$0(w,"transitionDelay",N.vZ/20+"s");e.K.Y(w,"click",function(E){return function(A){var T=E.vZ;if(e.N){var p=e.suggestionData[T],C=p.sessionData;e.Z&&e.api.T("web_player_log_click_before_generating_ve_conversion_params")?(e.api.logClick(e.J[T].element),T=p.ew(),p={},g.kS(e.api,p),T=g.Qb(T,p),g.Uc(T,e.api,A)):g.G9(A,e.api,e.Z,C||void 0)&&e.api.gq(p.videoId,C,p.playlistId)}else A.preventDefault(),document.activeElement.blur()}}(N));
y.yB(e.suggestions.element);e.J.push(y);e.api.createServerVe(y.element,y)}};
$j5=function(e){if(e.api.X().T("web_player_log_click_before_generating_ve_conversion_params"))for(var N=Math.floor(-e.scrollPosition/(e.j+8)),y=Math.min(N+e.columns,e.suggestionData.length)-1;N<=y;N++)e.api.logVisibility(e.J[N].element,!0)};
g.Le=function(e){var N=e.api.Nr()?32:16;N=e.U/2+N;e.next.element.style.bottom=N+"px";e.previous.element.style.bottom=N+"px";N=e.scrollPosition;var y=e.containerWidth-e.suggestionData.length*(e.j+8);g.Y1(e.element,"ytp-scroll-min",N>=0);g.Y1(e.element,"ytp-scroll-max",N<=y)};
M_9=function(e){for(var N=e.suggestionData.length,y=0;y<N;++y){var w=void 0,E=void 0,A=void 0;w=e;var T=w.api.X(),p=w.suggestionData[y],C=w.J[y];A=w.api.isEmbedsShortsMode()?p.shortViewCount||"":p.shortViewCount?p.author+" \u2022 "+p.shortViewCount:p.author;C.element.style.display="";g.$0(C.hW("ytp-suggestion-link"),"display","inline-block");YQ0.test(p.title)&&(C.hW("ytp-suggestion-title").dir="rtl");YQ0.test(A)&&(C.hW("ytp-suggestion-author").dir="rtl");E=p.isLivePlayback?"Live":p.lengthSeconds?
g.P2(p.lengthSeconds):"";var r=p.ew(w.api.isEmbedsShortsMode());if(g.hR(T)&&!T.T("web_player_log_click_before_generating_ve_conversion_params")){var Y={};g.NU(w.api,"addEmbedsConversionTrackingParams",[Y]);r=g.Qb(r,Y)}T.T("web_player_log_click_before_generating_ve_conversion_params")&&(T=(T=p.sessionData)&&T.itct)&&w.api.setTrackingParams(C.element,T);C.update({author_and_views:A,duration:E,link:r,title:p.title,aria_label:p.ariaLabel||p.title,is_live:p.isLivePlayback,aria_hidden:!!p.ariaLabel,blink_rendering_hack:g.i$||
g.oK?"will-change: opacity":void 0});E=C.hW("ytp-suggestion-image");w=w.api.isEmbedsShortsMode()?p.LN("hq2.jpg"):p.LN();E.style.backgroundImage=w?"url("+w+")":""}if(N<16)for(;N<16;++N)g.$0(e.J[N].hW("ytp-suggestion-link"),"display","none");g.Le(e)};
e5P=[];r_=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,N,y){if(e==Array.prototype||e==Object.prototype)return e;e[N]=y.value;return e};
g.pM=yn_(this);YJ("Symbol",function(e){function N(A){if(this instanceof N)throw new TypeError("Symbol is not a constructor");return new y(w+(A||"")+"_"+E++,A)}
function y(A,T){this.J=A;r_(this,"description",{configurable:!0,writable:!0,value:T})}
if(e)return e;y.prototype.toString=function(){return this.J};
var w="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",E=0;return N});
YJ("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var N="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),y=0;y<N.length;y++){var w=g.pM[N[y]];typeof w==="function"&&typeof w.prototype[e]!="function"&&r_(w.prototype,e,{configurable:!0,writable:!0,value:function(){return w5F(N_H(this))}})}return e});
var EJ5=typeof Object.create=="function"?Object.create:function(e){function N(){}
N.prototype=e;return new N},l40=function(){function e(){function y(){}
new y;Reflect.construct(y,[],function(){});
return new y instanceof y}
if(typeof Reflect!="undefined"&&Reflect.construct){if(e())return Reflect.construct;var N=Reflect.construct;return function(y,w,E){y=N(y,w);E&&Reflect.setPrototypeOf(y,E.prototype);return y}}return function(y,w,E){E===void 0&&(E=y);
E=EJ5(E.prototype||Object.prototype);return Function.prototype.apply.call(y,E,w)||E}}(),FE5;
if(typeof Object.setPrototypeOf=="function")FE5=Object.setPrototypeOf;else{var SQ5;a:{var oG9={a:!0},bu0={};try{bu0.__proto__=oG9;SQ5=bu0.a;break a}catch(e){}SQ5=!1}FE5=SQ5?function(e,N){e.__proto__=N;if(e.__proto__!==N)throw new TypeError(e+" is not extensible");return e}:null}var M3=FE5,hos=typeof Object.assign=="function"?Object.assign:function(e,N){for(var y=1;y<arguments.length;y++){var w=arguments[y];
if(w)for(var E in w)lE(w,E)&&(e[E]=w[E])}return e};
YJ("Object.assign",function(e){return e||hos});
FH.prototype.U=function(e){this.N=e};
FH.prototype.return=function(e){this.K={return:e};this.J=this.L};
FH.prototype.u9=function(e){this.J=e};
YJ("globalThis",function(e){return e||g.pM});
YJ("Reflect",function(e){return e?e:{}});
YJ("Reflect.construct",function(){return l40});
YJ("Reflect.setPrototypeOf",function(e){return e?e:M3?function(N,y){try{return M3(N,y),!0}catch(w){return!1}}:null});
YJ("Promise",function(e){function N(T){this.J=0;this.K=void 0;this.N=[];this.G=!1;var p=this.j();try{T(p.resolve,p.reject)}catch(C){p.reject(C)}}
function y(){this.J=null}
function w(T){return T instanceof N?T:new N(function(p){p(T)})}
if(e)return e;y.prototype.N=function(T){if(this.J==null){this.J=[];var p=this;this.K(function(){p.L()})}this.J.push(T)};
var E=g.pM.setTimeout;y.prototype.K=function(T){E(T,0)};
y.prototype.L=function(){for(;this.J&&this.J.length;){var T=this.J;this.J=[];for(var p=0;p<T.length;++p){var C=T[p];T[p]=null;try{C()}catch(r){this.j(r)}}}this.J=null};
y.prototype.j=function(T){this.K(function(){throw T;})};
N.prototype.j=function(){function T(r){return function(Y){C||(C=!0,r.call(p,Y))}}
var p=this,C=!1;return{resolve:T(this.qg),reject:T(this.L)}};
N.prototype.qg=function(T){if(T===this)this.L(new TypeError("A Promise cannot resolve to itself"));else if(T instanceof N)this.i9(T);else{a:switch(typeof T){case "object":var p=T!=null;break a;case "function":p=!0;break a;default:p=!1}p?this.Kh(T):this.Z(T)}};
N.prototype.Kh=function(T){var p=void 0;try{p=T.then}catch(C){this.L(C);return}typeof p=="function"?this.Rq(p,T):this.Z(T)};
N.prototype.L=function(T){this.U(2,T)};
N.prototype.Z=function(T){this.U(1,T)};
N.prototype.U=function(T,p){if(this.J!=0)throw Error("Cannot settle("+T+", "+p+"): Promise already settled in state"+this.J);this.J=T;this.K=p;this.J===2&&this.l9();this.D()};
N.prototype.l9=function(){var T=this;E(function(){if(T.Ng()){var p=g.pM.console;typeof p!=="undefined"&&p.error(T.K)}},1)};
N.prototype.Ng=function(){if(this.G)return!1;var T=g.pM.CustomEvent,p=g.pM.Event,C=g.pM.dispatchEvent;if(typeof C==="undefined")return!0;typeof T==="function"?T=new T("unhandledrejection",{cancelable:!0}):typeof p==="function"?T=new p("unhandledrejection",{cancelable:!0}):(T=g.pM.document.createEvent("CustomEvent"),T.initCustomEvent("unhandledrejection",!1,!0,T));T.promise=this;T.reason=this.K;return C(T)};
N.prototype.D=function(){if(this.N!=null){for(var T=0;T<this.N.length;++T)A.N(this.N[T]);this.N=null}};
var A=new y;N.prototype.i9=function(T){var p=this.j();T.pU(p.resolve,p.reject)};
N.prototype.Rq=function(T,p){var C=this.j();try{T.call(p,C.resolve,C.reject)}catch(r){C.reject(r)}};
N.prototype.then=function(T,p){function C(l,F){return typeof l=="function"?function(S){try{r(l(S))}catch(k){Y(k)}}:F}
var r,Y,M=new N(function(l,F){r=l;Y=F});
this.pU(C(T,r),C(p,Y));return M};
N.prototype.catch=function(T){return this.then(void 0,T)};
N.prototype.pU=function(T,p){function C(){switch(r.J){case 1:T(r.K);break;case 2:p(r.K);break;default:throw Error("Unexpected state: "+r.J);}}
var r=this;this.N==null?A.N(C):this.N.push(C);this.G=!0};
N.resolve=w;N.reject=function(T){return new N(function(p,C){C(T)})};
N.race=function(T){return new N(function(p,C){for(var r=g.c(T),Y=r.next();!Y.done;Y=r.next())w(Y.value).pU(p,C)})};
N.all=function(T){var p=g.c(T),C=p.next();return C.done?w([]):new N(function(r,Y){function M(S){return function(k){l[S]=k;F--;F==0&&r(l)}}
var l=[],F=0;do l.push(void 0),F++,w(C.value).pU(M(l.length-1),Y),C=p.next();while(!C.done)})};
return N});
YJ("Object.setPrototypeOf",function(e){return e||M3});
YJ("Symbol.dispose",function(e){return e?e:Symbol("Symbol.dispose")});
YJ("SuppressedError",function(e){function N(y,w,E){if(!(this instanceof N))return new N(y,w,E);E=Error(E);"stack"in E&&(this.stack=E.stack);this.message=E.message;this.error=y;this.suppressed=w}
if(e)return e;g.b(N,Error);N.prototype.name="SuppressedError";return N});
YJ("Array.prototype.find",function(e){return e?e:function(N,y){return FF3(this,N,y).gM}});
YJ("WeakMap",function(e){function N(C){this.J=(p+=Math.random()+1).toString();if(C){C=g.c(C);for(var r;!(r=C.next()).done;)r=r.value,this.set(r[0],r[1])}}
function y(){}
function w(C){var r=typeof C;return r==="object"&&C!==null||r==="function"}
function E(C){if(!lE(C,T)){var r=new y;r_(C,T,{value:r})}}
function A(C){var r=Object[C];r&&(Object[C]=function(Y){if(Y instanceof y)return Y;Object.isExtensible(Y)&&E(Y);return r(Y)})}
if(function(){if(!e||!Object.seal)return!1;try{var C=Object.seal({}),r=Object.seal({}),Y=new e([[C,2],[r,3]]);if(Y.get(C)!=2||Y.get(r)!=3)return!1;Y.delete(C);Y.set(r,4);return!Y.has(C)&&Y.get(r)==4}catch(M){return!1}}())return e;
var T="$jscomp_hidden_"+Math.random();A("freeze");A("preventExtensions");A("seal");var p=0;N.prototype.set=function(C,r){if(!w(C))throw Error("Invalid WeakMap key");E(C);if(!lE(C,T))throw Error("WeakMap key fail: "+C);C[T][this.J]=r;return this};
N.prototype.get=function(C){return w(C)&&lE(C,T)?C[T][this.J]:void 0};
N.prototype.has=function(C){return w(C)&&lE(C,T)&&lE(C[T],this.J)};
N.prototype.delete=function(C){return w(C)&&lE(C,T)&&lE(C[T],this.J)?delete C[T][this.J]:!1};
return N});
YJ("Map",function(e){function N(){var p={};return p.previous=p.next=p.head=p}
function y(p,C){var r=p[1];return w5F(function(){if(r){for(;r.head!=p[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:C(r)};r=null}return{done:!0,value:void 0}})}
function w(p,C){var r=C&&typeof C;r=="object"||r=="function"?A.has(C)?r=A.get(C):(r=""+ ++T,A.set(C,r)):r="p_"+C;var Y=p[0][r];if(Y&&lE(p[0],r))for(p=0;p<Y.length;p++){var M=Y[p];if(C!==C&&M.key!==M.key||C===M.key)return{id:r,list:Y,index:p,entry:M}}return{id:r,list:Y,index:-1,entry:void 0}}
function E(p){this[0]={};this[1]=N();this.size=0;if(p){p=g.c(p);for(var C;!(C=p.next()).done;)C=C.value,this.set(C[0],C[1])}}
if(function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var p=Object.seal({x:4}),C=new e(g.c([[p,"s"]]));if(C.get(p)!="s"||C.size!=1||C.get({x:4})||C.set({x:4},"t")!=C||C.size!=2)return!1;var r=C.entries(),Y=r.next();if(Y.done||Y.value[0]!=p||Y.value[1]!="s")return!1;Y=r.next();return Y.done||Y.value[0].x!=4||Y.value[1]!="t"||!r.next().done?!1:!0}catch(M){return!1}}())return e;
var A=new WeakMap;E.prototype.set=function(p,C){p=p===0?0:p;var r=w(this,p);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=C:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:p,value:C},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.entry,this.size++);return this};
E.prototype.delete=function(p){p=w(this,p);return p.entry&&p.list?(p.list.splice(p.index,1),p.list.length||delete this[0][p.id],p.entry.previous.next=p.entry.next,p.entry.next.previous=p.entry.previous,p.entry.head=null,this.size--,!0):!1};
E.prototype.clear=function(){this[0]={};this[1]=this[1].previous=N();this.size=0};
E.prototype.has=function(p){return!!w(this,p).entry};
E.prototype.get=function(p){return(p=w(this,p).entry)&&p.value};
E.prototype.entries=function(){return y(this,function(p){return[p.key,p.value]})};
E.prototype.keys=function(){return y(this,function(p){return p.key})};
E.prototype.values=function(){return y(this,function(p){return p.value})};
E.prototype.forEach=function(p,C){for(var r=this.entries(),Y;!(Y=r.next()).done;)Y=Y.value,p.call(C,Y[1],Y[0],this)};
E.prototype[Symbol.iterator]=E.prototype.entries;var T=0;return E});
YJ("Set",function(e){function N(y){this.J=new Map;if(y){y=g.c(y);for(var w;!(w=y.next()).done;)this.add(w.value)}this.size=this.J.size}
if(function(){if(!e||typeof e!="function"||!e.prototype.entries||typeof Object.seal!="function")return!1;try{var y=Object.seal({x:4}),w=new e(g.c([y]));if(!w.has(y)||w.size!=1||w.add(y)!=w||w.size!=1||w.add({x:4})!=w||w.size!=2)return!1;var E=w.entries(),A=E.next();if(A.done||A.value[0]!=y||A.value[1]!=y)return!1;A=E.next();return A.done||A.value[0]==y||A.value[0].x!=4||A.value[1]!=A.value[0]?!1:E.next().done}catch(T){return!1}}())return e;
N.prototype.add=function(y){y=y===0?0:y;this.J.set(y,y);this.size=this.J.size;return this};
N.prototype.delete=function(y){y=this.J.delete(y);this.size=this.J.size;return y};
N.prototype.clear=function(){this.J.clear();this.size=0};
N.prototype.has=function(y){return this.J.has(y)};
N.prototype.entries=function(){return this.J.entries()};
N.prototype.values=function(){return this.J.values()};
N.prototype.keys=N.prototype.values;N.prototype[Symbol.iterator]=N.prototype.values;N.prototype.forEach=function(y,w){var E=this;this.J.forEach(function(A){return y.call(w,A,A,E)})};
return N});
YJ("Math.log2",function(e){return e?e:function(N){return Math.log(N)/Math.LN2}});
YJ("Object.values",function(e){return e?e:function(N){var y=[],w;for(w in N)lE(N,w)&&y.push(N[w]);return y}});
YJ("Object.is",function(e){return e?e:function(N,y){return N===y?N!==0||1/N===1/y:N!==N&&y!==y}});
YJ("Array.prototype.includes",function(e){return e?e:function(N,y){var w=this;w instanceof String&&(w=String(w));var E=w.length;y=y||0;for(y<0&&(y=Math.max(y+E,0));y<E;y++){var A=w[y];if(A===N||Object.is(A,N))return!0}return!1}});
YJ("String.prototype.includes",function(e){return e?e:function(N,y){return D1(this,N,"includes").indexOf(N,y||0)!==-1}});
YJ("Array.from",function(e){return e?e:function(N,y,w){y=y!=null?y:function(p){return p};
var E=[],A=typeof Symbol!="undefined"&&Symbol.iterator&&N[Symbol.iterator];if(typeof A=="function"){N=A.call(N);for(var T=0;!(A=N.next()).done;)E.push(y.call(w,A.value,T++))}else for(A=N.length,T=0;T<A;T++)E.push(y.call(w,N[T],T));return E}});
YJ("Object.entries",function(e){return e?e:function(N){var y=[],w;for(w in N)lE(N,w)&&y.push([w,N[w]]);return y}});
YJ("Number.isFinite",function(e){return e?e:function(N){return typeof N!=="number"?!1:!isNaN(N)&&N!==Infinity&&N!==-Infinity}});
YJ("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
YJ("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
YJ("Number.isInteger",function(e){return e?e:function(N){return Number.isFinite(N)?N===Math.floor(N):!1}});
YJ("Number.isSafeInteger",function(e){return e?e:function(N){return Number.isInteger(N)&&Math.abs(N)<=Number.MAX_SAFE_INTEGER}});
YJ("String.prototype.startsWith",function(e){return e?e:function(N,y){var w=D1(this,N,"startsWith");N+="";var E=w.length,A=N.length;y=Math.max(0,Math.min(y|0,w.length));for(var T=0;T<A&&y<E;)if(w[y++]!=N[T++])return!1;return T>=A}});
YJ("String.prototype.endsWith",function(e){return e?e:function(N,y){var w=D1(this,N,"endsWith");N+="";y===void 0&&(y=w.length);y=Math.max(0,Math.min(y|0,w.length));for(var E=N.length;E>0&&y>0;)if(w[--y]!=N[--E])return!1;return E<=0}});
YJ("Array.prototype.entries",function(e){return e?e:function(){return V0(this,function(N,y){return[N,y]})}});
YJ("Math.imul",function(e){return e?e:function(N,y){N=Number(N);y=Number(y);var w=N&65535,E=y&65535;return w*E+((N>>>16&65535)*E+w*(y>>>16&65535)<<16>>>0)|0}});
YJ("Math.trunc",function(e){return e?e:function(N){N=Number(N);if(isNaN(N)||N===Infinity||N===-Infinity||N===0)return N;var y=Math.floor(Math.abs(N));return N<0?-y:y}});
YJ("Math.clz32",function(e){return e?e:function(N){N=Number(N)>>>0;if(N===0)return 32;var y=0;(N&4294901760)===0&&(N<<=16,y+=16);(N&4278190080)===0&&(N<<=8,y+=8);(N&4026531840)===0&&(N<<=4,y+=4);(N&3221225472)===0&&(N<<=2,y+=2);(N&2147483648)===0&&y++;return y}});
YJ("Math.log10",function(e){return e?e:function(N){return Math.log(N)/Math.LN10}});
YJ("Number.isNaN",function(e){return e?e:function(N){return typeof N==="number"&&isNaN(N)}});
YJ("Array.prototype.keys",function(e){return e?e:function(){return V0(this,function(N){return N})}});
YJ("Array.prototype.values",function(e){return e?e:function(){return V0(this,function(N,y){return y})}});
YJ("Array.prototype.fill",function(e){return e?e:function(N,y,w){var E=this.length||0;y<0&&(y=Math.max(0,E+y));if(w==null||w>E)w=E;w=Number(w);w<0&&(w=Math.max(0,E+w));for(y=Number(y||0);y<w;y++)this[y]=N;return this}});
YJ("Int8Array.prototype.fill",fM);YJ("Uint8Array.prototype.fill",fM);YJ("Uint8ClampedArray.prototype.fill",fM);YJ("Int16Array.prototype.fill",fM);YJ("Uint16Array.prototype.fill",fM);YJ("Int32Array.prototype.fill",fM);YJ("Uint32Array.prototype.fill",fM);YJ("Float32Array.prototype.fill",fM);YJ("Float64Array.prototype.fill",fM);
YJ("Object.fromEntries",function(e){return e?e:function(N){var y={};if(!(Symbol.iterator in N))throw new TypeError(""+N+" is not iterable");N=N[Symbol.iterator].call(N);for(var w=N.next();!w.done;w=N.next()){w=w.value;if(Object(w)!==w)throw new TypeError("iterable for fromEntries should yield objects");y[w[0]]=w[1]}return y}});
YJ("String.prototype.replaceAll",function(e){return e?e:function(N,y){if(N instanceof RegExp&&!N.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return N instanceof RegExp?this.replace(N,y):this.replace(new RegExp(String(N).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),y)}});
YJ("String.prototype.repeat",function(e){return e?e:function(N){var y=D1(this,null,"repeat");if(N<0||N>1342177279)throw new RangeError("Invalid count value");N|=0;for(var w="";N;)if(N&1&&(w+=y),N>>>=1)y+=y;return w}});
YJ("Promise.prototype.finally",function(e){return e?e:function(N){return this.then(function(y){return Promise.resolve(N()).then(function(){return y})},function(y){return Promise.resolve(N()).then(function(){throw y;
})})}});
YJ("String.prototype.padStart",function(e){return e?e:function(N,y){var w=D1(this,null,"padStart");N-=w.length;y=y!==void 0?String(y):" ";return(N>0&&y?y.repeat(Math.ceil(N/y.length)).substring(0,N):"")+w}});
YJ("Array.prototype.findIndex",function(e){return e?e:function(N,y){return FF3(this,N,y).WZ}});
YJ("Math.sign",function(e){return e?e:function(N){N=Number(N);return N===0||isNaN(N)?N:N>0?1:-1}});
YJ("WeakSet",function(e){function N(y){this.J=new WeakMap;if(y){y=g.c(y);for(var w;!(w=y.next()).done;)this.add(w.value)}}
if(function(){if(!e||!Object.seal)return!1;try{var y=Object.seal({}),w=Object.seal({}),E=new e([y]);if(!E.has(y)||E.has(w))return!1;E.delete(y);E.add(w);return!E.has(y)&&E.has(w)}catch(A){return!1}}())return e;
N.prototype.add=function(y){this.J.set(y,!0);return this};
N.prototype.has=function(y){return this.J.has(y)};
N.prototype.delete=function(y){return this.J.delete(y)};
return N});
YJ("Array.prototype.copyWithin",function(e){function N(y){y=Number(y);return y===Infinity||y===-Infinity?y:y|0}
return e?e:function(y,w,E){var A=this.length;y=N(y);w=N(w);E=E===void 0?A:N(E);y=y<0?Math.max(A+y,0):Math.min(y,A);w=w<0?Math.max(A+w,0):Math.min(w,A);E=E<0?Math.max(A+E,0):Math.min(E,A);if(y<w)for(;w<E;)w in this?this[y++]=this[w++]:(delete this[y++],w++);else for(E=Math.min(E,A+w-y),y+=E-w;E>w;)--E in this?this[--y]=this[E]:delete this[--y];return this}});
YJ("Int8Array.prototype.copyWithin",tn);YJ("Uint8Array.prototype.copyWithin",tn);YJ("Uint8ClampedArray.prototype.copyWithin",tn);YJ("Int16Array.prototype.copyWithin",tn);YJ("Uint16Array.prototype.copyWithin",tn);YJ("Int32Array.prototype.copyWithin",tn);YJ("Uint32Array.prototype.copyWithin",tn);YJ("Float32Array.prototype.copyWithin",tn);YJ("Float64Array.prototype.copyWithin",tn);YJ("Array.prototype.at",function(e){return e?e:uE});
YJ("Int8Array.prototype.at",q3);YJ("Uint8Array.prototype.at",q3);YJ("Uint8ClampedArray.prototype.at",q3);YJ("Int16Array.prototype.at",q3);YJ("Uint16Array.prototype.at",q3);YJ("Int32Array.prototype.at",q3);YJ("Uint32Array.prototype.at",q3);YJ("Float32Array.prototype.at",q3);YJ("Float64Array.prototype.at",q3);YJ("String.prototype.at",function(e){return e?e:uE});
YJ("Array.prototype.findLastIndex",function(e){return e?e:function(N,y){return S9s(this,N,y).WZ}});
YJ("Int8Array.prototype.findLastIndex",Z1);YJ("Uint8Array.prototype.findLastIndex",Z1);YJ("Uint8ClampedArray.prototype.findLastIndex",Z1);YJ("Int16Array.prototype.findLastIndex",Z1);YJ("Uint16Array.prototype.findLastIndex",Z1);YJ("Int32Array.prototype.findLastIndex",Z1);YJ("Uint32Array.prototype.findLastIndex",Z1);YJ("Float32Array.prototype.findLastIndex",Z1);YJ("Float64Array.prototype.findLastIndex",Z1);YJ("Number.parseInt",function(e){return e||parseInt});var RD,O9,oJM;RD=RD||{};g.xJ=this||self;O9="closure_uid_"+(Math.random()*1E9>>>0);oJM=0;g.x.prototype.Lm=!1;g.x.prototype.Ss=function(){return this.Lm};
g.x.prototype.dispose=function(){this.Lm||(this.Lm=!0,this.fh())};
g.x.prototype[Symbol.dispose]=function(){this.dispose()};
g.x.prototype.addOnDisposeCallback=function(e,N){this.Lm?N!==void 0?e.call(N):e():(this.fl||(this.fl=[]),N&&(e=e.bind(N)),this.fl.push(e))};
g.x.prototype.fh=function(){if(this.fl)for(;this.fl.length;)this.fl.shift()()};var X5H;g.b(r5,g.x);r5.prototype.share=function(){if(this.Ss())throw Error("E:AD");this.j++;return this};
r5.prototype.dispose=function(){--this.j||g.x.prototype.dispose.call(this)};
X5H=Symbol.dispose;PEM.prototype.jW=function(e,N){this.J.jW("/client_streamz/bg/frs",e,N)};
d30.prototype.jW=function(e,N,y,w,E,A){this.J.jW("/client_streamz/bg/wrl",e,N,y,w,E,A)};
I1n.prototype.J=function(e,N){this.N.aO("/client_streamz/bg/ec",e,N)};
vJP.prototype.jW=function(e,N,y,w){this.J.jW("/client_streamz/bg/el",e,N,y,w)};
z5J.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/cec",e,N,y)};
iME.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/po/csc",e,N,y)};
D31.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/po/ctav",e,N,y)};
gJ1.prototype.J=function(e,N,y){this.N.aO("/client_streamz/bg/po/cwsc",e,N,y)};g.e0(FF,Error);FF.prototype.name="CustomError";var ad1;var tQ=void 0,fB,ifP=typeof TextDecoder!=="undefined",q91,uH5=typeof String.prototype.isWellFormed==="function",tMH=typeof TextEncoder!=="undefined";var d5=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},IdJ=/&/g,vbn=/</g,zfn=/>/g,im_=/"/g,DgP=/'/g,gbM=/\x00/g,dg9=/[\x00&<>"']/;var c1P=Q0(1,!0),i_=Q0(610401301,!1);Q0(899588437,!1);Q0(188588736,!0);Q0(651175828,!1);Q0(653718497,c1P);Q0(660014094,c1P);Q0(722764542,!1);Q0(2147483644,!1);Q0(2147483645,!1);Q0(2147483646,c1P);Q0(2147483647,!0);var DZ=!!g.nM("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var g5,kZ0=g.xJ.navigator;g5=kZ0?kZ0.userAgentData||null:null;var LF3,vQ,DR;LF3=Array.prototype.indexOf?function(e,N){return Array.prototype.indexOf.call(e,N,void 0)}:function(e,N){if(typeof e==="string")return typeof N!=="string"||N.length!=1?-1:e.indexOf(N,0);
for(var y=0;y<e.length;y++)if(y in e&&e[y]===N)return y;return-1};
g.Bc1=Array.prototype.lastIndexOf?function(e,N){return Array.prototype.lastIndexOf.call(e,N,e.length-1)}:function(e,N){var y=e.length-1;
y<0&&(y=Math.max(0,e.length+y));if(typeof e==="string")return typeof N!=="string"||N.length!=1?-1:e.lastIndexOf(N,y);for(;y>=0;y--)if(y in e&&e[y]===N)return y;return-1};
g.$R=Array.prototype.forEach?function(e,N,y){Array.prototype.forEach.call(e,N,y)}:function(e,N,y){for(var w=e.length,E=typeof e==="string"?e.split(""):e,A=0;A<w;A++)A in E&&N.call(y,E[A],A,e)};
g.CG=Array.prototype.filter?function(e,N,y){return Array.prototype.filter.call(e,N,y)}:function(e,N,y){for(var w=e.length,E=[],A=0,T=typeof e==="string"?e.split(""):e,p=0;p<w;p++)if(p in T){var C=T[p];
N.call(y,C,p,e)&&(E[A++]=C)}return E};
g.dn=Array.prototype.map?function(e,N,y){return Array.prototype.map.call(e,N,y)}:function(e,N,y){for(var w=e.length,E=Array(w),A=typeof e==="string"?e.split(""):e,T=0;T<w;T++)T in A&&(E[T]=N.call(y,A[T],T,e));
return E};
vQ=Array.prototype.reduce?function(e,N,y){return Array.prototype.reduce.call(e,N,y)}:function(e,N,y){var w=y;
(0,g.$R)(e,function(E,A){w=N.call(void 0,w,E,A,e)});
return w};
DR=Array.prototype.some?function(e,N){return Array.prototype.some.call(e,N,void 0)}:function(e,N){for(var y=e.length,w=typeof e==="string"?e.split(""):e,E=0;E<y;E++)if(E in w&&N.call(void 0,w[E],E,e))return!0;
return!1};
g.Ip=Array.prototype.every?function(e,N,y){return Array.prototype.every.call(e,N,y)}:function(e,N,y){for(var w=e.length,E=typeof e==="string"?e.split(""):e,A=0;A<w;A++)if(A in E&&!N.call(y,E[A],A,e))return!1;
return!0};Fo[" "]=function(){};var Y0,HT,kn_,XA5,P1E,dj_,SV,KC,I4F;g.oK=u_();g.S6=QPF();g.Um=fq("Edge");g.Hg=g.Um||g.S6;Y0=fq("Gecko")&&!(P_(g.zw(),"WebKit")&&!fq("Edge"))&&!(fq("Trident")||fq("MSIE"))&&!fq("Edge");g.RB=P_(g.zw(),"WebKit")&&!fq("Edge");HT=H_();kn_=GsM();g.NI=R50();XA5=QT();P1E=fq("iPad");dj_=fq("iPod");SV=mf();KC=P_(g.zw(),"KaiOS");
a:{var vGM="",zoM=function(){var e=g.zw();if(Y0)return/rv:([^\);]+)(\)|;)/.exec(e);if(g.Um)return/Edge\/([\d\.]+)/.exec(e);if(g.S6)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e);if(g.RB)return/WebKit\/(\S+)/.exec(e);if(g.oK)return/(?:Version)[ \/]?(\S+)/.exec(e)}();
zoM&&(vGM=zoM?zoM[1]:"");if(g.S6){var sy,ius=g.xJ.document;sy=ius?ius.documentMode:void 0;if(sy!=null&&sy>parseFloat(vGM)){I4F=String(sy);break a}}I4F=vGM}var C_1=I4F,JV9={};var s8,ay;g.DT=qM();s8=QT()||fq("iPod");ay=fq("iPad");g.bd=HMM();g.i$=ZZ();g.k$=xw()&&!mf();var $Ms={},cm=null,YkF=Y0||g.RB||typeof g.xJ.btoa=="function";var kw9=typeof Uint8Array!=="undefined",FfP=!g.S6&&typeof btoa==="function",hX9=/[-_.]/g,ow0={"-":"+",_:"/",".":"="},Xo={};Bm.prototype.isEmpty=function(){return this.J==null};
Bm.prototype.sizeBytes=function(){var e=dr(this);return e?e.length:0};
var X_F;var FW5=void 0;var i7=typeof Symbol==="function"&&typeof Symbol()==="symbol",dMM=new Set,DjJ=z7("jas",void 0,!0,!0),Zd=z7(void 0,"2ex"),wP=z7(void 0,"1oa",!0),Qh=z7(void 0,Symbol(),!0);Math.max.apply(Math,g.B(Object.values({ryq:1,PlZ:2,Cll:4,zDk:8,y3P:16,A3B:32,T41:64,MzW:128,XoZ:256,YHg:512,ZEl:1024,d2h:2048,B2B:4096,Cbh:8192,WvP:16384})));var Dy=i7?DjJ:"LPk",vw5={LPk:{value:0,configurable:!0,writable:!0,enumerable:!1}},IZs=Object.defineProperties;var Xt={},Or,gG_=[];Vh(gG_,55);Or=Object.freeze(gG_);var hjM=Object.freeze({});var gwM=Hm(function(e){return typeof e==="number"}),DM_=Hm(function(e){return typeof e==="string"}),V0M=Hm(function(e){return typeof e==="boolean"}),eq=Hm(function(e){return e!=null&&typeof e==="object"&&typeof e.then==="function"}),ac=Hm(function(e){return!!e&&(typeof e==="object"||typeof e==="function")});var Kf=typeof g.xJ.BigInt==="function"&&typeof g.xJ.BigInt(0)==="bigint";var hK=Hm(function(e){return Kf?e>=V_J&&e<=f4J:e[0]==="-"?fZs(e,t_H):fZs(e,uYE)}),t_H=Number.MIN_SAFE_INTEGER.toString(),V_J=Kf?BigInt(Number.MIN_SAFE_INTEGER):void 0,uYE=Number.MAX_SAFE_INTEGER.toString(),f4J=Kf?BigInt(Number.MAX_SAFE_INTEGER):void 0;var ddF=typeof Uint8Array.prototype.slice==="function",OS=0,RN=0,ay5;var Yb=typeof BigInt==="function"?BigInt.asIntN:void 0,RX_=typeof BigInt==="function"?BigInt.asUintN:void 0,S4=Number.isSafeInteger,Ty=Number.isFinite,Ft=Math.trunc,xMM=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var IF;var zy,YSs;g.J=XmM.prototype;g.J.init=function(e,N,y,w){w=w===void 0?{}:w;this.oR=w.oR===void 0?!1:w.oR;e&&(e=cy(e),this.N=e.buffer,this.L=e.zv,this.j=N||0,this.K=y!==void 0?this.j+y:this.N.length,this.J=this.j)};
g.J.free=function(){this.clear();iV.length<100&&iV.push(this)};
g.J.clear=function(){this.N=null;this.L=!1;this.J=this.K=this.j=0;this.oR=!1};
g.J.reset=function(){this.J=this.j};
g.J.iB=function(){var e=this.Z;e||(e=this.N,e=this.Z=new DataView(e.buffer,e.byteOffset,e.byteLength));return e};
var iV=[];D8.prototype.free=function(){this.J.clear();this.N=this.j=-1;aa.length<100&&aa.push(this)};
D8.prototype.reset=function(){this.J.reset();this.K=this.J.J;this.N=this.j=-1};
var aa=[];g.J=qq.prototype;g.J.toJSON=function(){return vW(this)};
g.J.jY=function(e){return JSON.stringify(vW(this,e))};
g.J.clone=function(){var e=this.wT;return new this.constructor(fm(e,e[Dy]|0,!1))};
g.J.zv=function(){return!!((this.wT[Dy]|0)&2)};
g.J.Av=Xt;g.J.toString=function(){return this.wT.toString()};var VEJ,tEE;jn.prototype.length=function(){return this.J.length};
jn.prototype.end=function(){var e=this.J;this.J=[];return e};var RL=OW(),qQ0=OW(),ZuM=OW(),xj0=OW(),jJ5=OW(),nGF=OW(),QJ9=OW(),mjM=OW();var HfE=UW(function(e,N,y,w,E){if(e.N!==2)return!1;VH(e,EW(N,w,y),E);return!0},md9),KWM=UW(function(e,N,y,w,E){if(e.N!==2)return!1;
VH(e,EW(N,w,y,!0),E);return!0},md9),At=Symbol(),Nm=Symbol(),OfM=Symbol(),UdP=Symbol(),LB,sW;var Hus=py(function(e,N,y){if(e.N!==1)return!1;rG(N,y,vy(e.J));return!0},$x,QJ9),KEH=py(function(e,N,y){if(e.N!==1)return!1;
e=vy(e.J);rG(N,y,e===0?void 0:e);return!0},$x,QJ9),WE3=py(function(e,N,y,w){if(e.N!==1)return!1;
Nq(N,y,w,vy(e.J));return!0},$x,QJ9),Ou_=py(function(e,N,y){if(e.N!==0)return!1;
rG(N,y,XX(e.J));return!0},Yx,jJ5),RoF=py(function(e,N,y){if(e.N!==0)return!1;
e=XX(e.J);rG(N,y,e===0?void 0:e);return!0},Yx,jJ5),GZE=py(function(e,N,y,w){if(e.N!==0)return!1;
Nq(N,y,w,XX(e.J));return!0},Yx,jJ5),Uj9=py(function(e,N,y){if(e.N!==0)return!1;
rG(N,y,Py(e.J));return!0},Mm,xj0),LE_=py(function(e,N,y){if(e.N!==0)return!1;
e=Py(e.J);rG(N,y,e===0?void 0:e);return!0},Mm,xj0),sJH=py(function(e,N,y,w){if(e.N!==0)return!1;
Nq(N,y,w,Py(e.J));return!0},Mm,xj0),a40=py(function(e,N,y){if(e.N!==1)return!1;
rG(N,y,IL(e.J));return!0},function(e,N,y){nRM(e,y,GwM(N))},nGF),e5w=Cy(function(e,N,y){if(e.N!==1&&e.N!==2)return!1;
N=Ur(N,N[Dy]|0,y,!1,!1);if(e.N==2)for(y=Py(e.J)>>>0,y=e.J.J+y;e.J.J<y;)N.push(IL(e.J));else N.push(IL(e.J));return!0},function(e,N,y){N=Jt(GwM,N,!1);
if(N!=null)for(var w=0;w<N.length;w++)nRM(e,y,N[w])},nGF),N_F=py(function(e,N,y){if(e.N!==0)return!1;
rG(N,y,zx(e.J));return!0},efn,qQ0),yn5=py(function(e,N,y,w){if(e.N!==0)return!1;
Nq(N,y,w,zx(e.J));return!0},efn,qQ0),eW=py(function(e,N,y){if(e.N!==2)return!1;
rG(N,y,uV(e));return!0},Nas,ZuM),w5f=Cy(function(e,N,y){if(e.N!==2)return!1;
e=uV(e);Ur(N,N[Dy]|0,y,!1).push(e);return!0},function(e,N,y){N=Jt(kb,N,!0);
if(N!=null)for(var w=0;w<N.length;w++){var E=e,A=y,T=N[w];T!=null&&Wy(E,A,ZM0(T))}},ZuM),EJX=py(function(e,N,y,w){if(e.N!==2)return!1;
Nq(N,y,w,uV(e));return!0},Nas,ZuM),Nn,yz=void 0;
yz=yz===void 0?RL:yz;Nn=new Gx(function(e,N,y,w,E){if(e.N!==2)return!1;w=Dd(void 0,w,!0);Ur(N,N[Dy]|0,y,!0).push(w);VH(e,w,E);return!0},function(e,N,y,w,E){if(Array.isArray(N))for(var A=0;A<N.length;A++)yKP(e,N[A],y,w,E)},yz);
var wM=UW(function(e,N,y,w,E,A){if(e.N!==2)return!1;aF(N,N[Dy]|0,A,y);N=EW(N,w,y);VH(e,N,E);return!0},yKP),AnT=py(function(e,N,y){if(e.N!==2)return!1;
rG(N,y,DdF(e));return!0},function(e,N,y){N=UM9(N);
N!=null&&Wy(e,y,cy(N).buffer)},mjM),T_w=Cy(function(e,N,y){if(e.N!==2)return!1;
e=DdF(e);Ur(N,N[Dy]|0,y,!1).push(e);return!0},function(e,N,y){N=Jt(UM9,N,!1);
if(N!=null)for(var w=0;w<N.length;w++){var E=e,A=y,T=N[w];T!=null&&Wy(E,A,cy(T).buffer)}},mjM),EO=py(function(e,N,y){if(e.N!==0)return!1;
rG(N,y,Py(e.J)>>>0);return!0},function(e,N,y){N=ra(N);
N!=null&&N!=null&&(KB(e,y,0),QH(e.J,N))},OW()),Jnf=py(function(e,N,y){if(e.N!==0)return!1;
rG(N,y,Py(e.J));return!0},function(e,N,y){N=Cm(N);
N!=null&&(N=parseInt(N,10),KB(e,y,0),qS9(e.J,N))},OW());g.b(EbJ,qq);g.b(FZ,qq);var cP=[1,2,3];var p5k=[0,cP,EJX,sJH,yn5];var CEX=[0,Nn,[0,Hus,Ou_]];g.b(S$,qq);var ht=[1,2,3];var rnk=[0,ht,GZE,WE3,wM,CEX];g.b(oA,qq);var $3_=[0,Nn,p5k,rnk];var Y9f=[0,[1,2,3],wM,[0,eW,-1,N_F],wM,[0,eW,-1,Uj9,N_F],wM,[0,eW]];g.b(bx,qq);bx.prototype.jh=function(){var e=WW(this,3,kb,3,void 0,!0);nf(e);return e[void 0]};bx.prototype.J=wW0([0,eW,Y9f,w5f,Nn,$3_,a40,e5w]);g.b(TaE,qq);var FC3=globalThis.trustedTypes,kx;XZ.prototype.toString=function(){return this.J+""};IA.prototype.toString=function(){return this.J};
var bmH=new IA("about:invalid#zClosurez");var q4_=ix("tel"),to5=ix("sms"),obE=[ix("data"),ix("http"),ix("https"),ix("mailto"),ix("ftp"),new zJ(function(e){return/^[^:]*([/?#]|$)/.test(e)})],hfP=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;fy.prototype.toString=function(){return this.J+""};xx.prototype.toString=function(){return this.J+""};mr.prototype.toString=function(){return this.J};var Ky={};g.MM5=String.prototype.repeat?function(e,N){return e.repeat(N)}:function(e,N){return Array(N+1).join(e)};g.J=eU.prototype;g.J.isEnabled=function(){if(!g.xJ.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{B3:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.J.set=function(e,N,y){var w=!1;if(typeof y==="object"){var E=y.SXt;w=y.secure||!1;var A=y.domain||void 0;var T=y.path||void 0;var p=y.B3}if(/[;=\s]/.test(e))throw Error('Invalid cookie name "'+e+'"');if(/[;\r\n]/.test(N))throw Error('Invalid cookie value "'+N+'"');p===void 0&&(p=-1);y=A?";domain="+A:"";T=T?";path="+T:"";w=w?";secure":"";p=p<0?"":p==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+p*1E3)).toUTCString();this.J.cookie=e+"="+N+y+T+p+w+(E!=null?";samesite="+
E:"")};
g.J.get=function(e,N){for(var y=e+"=",w=(this.J.cookie||"").split(";"),E=0,A;E<w.length;E++){A=d5(w[E]);if(A.lastIndexOf(y,0)==0)return A.slice(y.length);if(A==e)return""}return N};
g.J.remove=function(e,N,y){var w=this.get(e)!==void 0;this.set(e,"",{B3:0,path:N,domain:y});return w};
g.J.Nk=function(){return NP(this).keys};
g.J.WP=function(){return NP(this).values};
g.J.isEmpty=function(){return!this.J.cookie};
g.J.clear=function(){for(var e=NP(this).keys,N=e.length-1;N>=0;N--)this.remove(e[N])};
var ZJ=new eU(typeof document=="undefined"?null:document);yM.prototype.compress=function(e){var N,y,w,E;return g.f(function(A){switch(A.J){case 1:return N=new CompressionStream("gzip"),y=(new Response(N.readable)).arrayBuffer(),w=N.writable.getWriter(),g.D(A,w.write((new TextEncoder).encode(e)),2);case 2:return g.D(A,w.close(),3);case 3:return E=Uint8Array,g.D(A,y,4);case 4:return A.return(new E(A.N))}})};
yM.prototype.isSupported=function(e){return e<1024?!1:typeof CompressionStream!=="undefined"};g.b(wi,qq);EA.prototype.setInterval=function(e){this.intervalMs=e;this.D_&&this.enabled?(this.stop(),this.start()):this.D_&&this.stop()};
EA.prototype.start=function(){var e=this;this.enabled=!0;this.D_||(this.D_=setTimeout(function(){e.tick()},this.intervalMs),this.N=this.J())};
EA.prototype.stop=function(){this.enabled=!1;this.D_&&(clearTimeout(this.D_),this.D_=void 0)};
EA.prototype.tick=function(){var e=this;if(this.enabled){var N=Math.max(this.J()-this.N,0);N<this.intervalMs*.8?this.D_=setTimeout(function(){e.tick()},this.intervalMs-N):(this.D_&&(clearTimeout(this.D_),this.D_=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.D_=void 0};g.b(Aa,qq);g.b(TM,qq);g.J=g.ri.prototype;g.J.clone=function(){return new g.ri(this.x,this.y)};
g.J.Bw=function(e){return e instanceof g.ri&&$Y(this,e)};
g.J.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.J.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.J.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.J.scale=function(e,N){this.x*=e;this.y*=typeof N==="number"?N:e;return this};g.J=g.l8.prototype;g.J.clone=function(){return new g.l8(this.width,this.height)};
g.J.aspectRatio=function(){return this.width/this.height};
g.J.isEmpty=function(){return!SU(this)};
g.J.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.J.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.J.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.J.scale=function(e,N){this.width*=e;this.height*=typeof N==="number"?N:e;return this};var HmF="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");ta.prototype.toString=function(){return this.J};
var f9={};new ta(f9,"");var WC1=/^[a-z][a-z\d-]*$/i,OmJ="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),GyM="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),LC9=["action","formaction","href"];var eA5={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.J=qP.prototype;g.J.ut=function(e){return jU(this.J,e)};
g.J.getElementsByTagName=function(e,N){return(N||this.J).getElementsByTagName(String(e))};
g.J.hW=function(e){return g.H4(e,this.J)};
g.J.setProperties=OA;g.J.createElement=function(e){return UA(this.J,e)};
g.J.appendChild=g.ev;g.J.append=function(e,N){Ef9(ZA(e),e,arguments,1)};
g.J.canHaveChildren=function(e){if(e.nodeType!=1)return!1;switch(e.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.J.removeNode=g.ws;g.J.getChildren=function(e){return e.children!=void 0?e.children:Array.prototype.filter.call(e.childNodes,function(N){return N.nodeType==1})};
g.J.contains=g.Ex;g.b(pg,qq);pg.prototype.w8=function(){return lV(this,1)};g.b(Cg,qq);g.b(rs,qq);g.b($v,qq);var pyM=["platform","platformVersion","architecture","model","uaFullVersion"],M8=new rs,Yv=null;g.b(lQ,qq);g.b(rQM,qq);g.b(FS,qq);g.b(Sv,qq);Sv.prototype.T=function(){return AQ(this,rQM,7,!1)!==void 0};
Sv.prototype.cZ=function(){return Tx(this,wi,16)};g.b(oC,qq);oC.prototype.NC=function(e){return bV(this,2,e)};bQ.prototype.NC=function(e){this.J.NC(e);return this};
bQ.prototype.build=function(e,N,y,w,E,A){N=N===void 0?0:N;y=y===void 0?0:y;w=w===void 0?null:w;E=E===void 0?0:E;A=A===void 0?0:A;var T=Tx(this.J,lQ,1);if(AQ(T,$v,11,!1)!==void 0){T=cC(this);var p=new pg;p=bV(p,1,this.N);p=j4(p,2,AK(this.isFinal));y=j4(p,3,pm(y>0?y:void 0));y=j4(y,4,pm(E>0?E:void 0));y=j4(y,5,pm(A>0?A:void 0));E=y.wT;A=E[Dy]|0;y=A&2?y:new y.constructor(fm(E,A,!0));JQ(T,pg,10,y)}T=this.J.clone();y=Date.now().toString();T=j4(T,4,bc(y));e=pB(T,Sv,3,e.slice());w&&(T=new Aa,w=j4(T,13,pm(w)),
T=new TM,w=JQ(T,Aa,2,w),T=new FS,w=JQ(T,TM,1,w),w=bV(w,2,9),JQ(e,FS,18,w));N&&FX(e,14,N);return e};var gf5=function(){if(!g.xJ.addEventListener||!Object.defineProperty)return!1;var e=!1,N=Object.defineProperty({},"passive",{get:function(){e=!0}});
try{var y=function(){};
g.xJ.addEventListener("test",y,N);g.xJ.removeEventListener("test",y,N)}catch(w){}return e}();var APJ=l8M("AnimationEnd"),e3=l8M("TransitionEnd");g.kv.prototype.N=0;g.kv.prototype.reset=function(){this.J=this.K=this.j;this.N=0};
g.kv.prototype.getValue=function(){return this.K};g.b(FDs,qq);var l1w=lx(FDs);g.b(SWH,qq);var As=new function(){this.J=SWH;this.isRepeated=0;this.N=Tx;this.defaultValue=void 0};g.b(PC,g.x);g.J=PC.prototype;g.J.fh=function(){this.P6();this.N.stop();this.i9.stop();g.x.prototype.fh.call(this)};
g.J.dispatch=function(e){if(e instanceof Sv)this.log(e);else try{var N=new Sv,y=e.jY();var w=Sn(N,8,y);this.log(w)}catch(E){}};
g.J.log=function(e){if(this.Rq){e=e.clone();var N=this.Et++;e=FX(e,21,N);this.componentId&&Sn(e,26,this.componentId);N=e;if(cO9(N)==null){var y=Date.now();y=Number.isFinite(y)?y.toString():"0";j4(N,1,bc(y))}WfF(qg(N,15))!=null||FX(N,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),JQ(N,wi,16,y));N=this.J.length-1E3+1;N>0&&(this.J.splice(0,N),this.j+=N);this.J.push(e);this.k0||this.N.enabled||this.N.start()}};
g.J.flush=function(e,N){var y=this;if(this.J.length===0)e&&e();else if(this.l9&&this.D)this.K.N=3,kxH(this);else{var w=Date.now();if(this.Zl>w&&this.qg<w)N&&N("throttled");else{this.network&&(typeof this.network.w8==="function"?YWP(this.K,this.network.w8()):this.K.N=0);var E=this.K.build(this.J,this.j,this.Z,this.z5,this.Kh,this.Ng),A=this.VO();if(A&&this.aq===A)N&&N("stale-auth-token");else{this.J=[];this.N.enabled&&this.N.stop();this.j=0;w=E.jY();var T;this.G&&this.G.isSupported(w.length)&&(T=this.G.compress(w));
var p=hA3(this,w,A),C=function(M){y.L.reset();y.N.setInterval(y.L.getValue());if(M){var l=null;try{var F=JSON.stringify(JSON.parse(M.replace(")]}'\n","")));l=l1w(F)}catch(X){}if(l){M=Number;var S="-1";S=S===void 0?"0":S;var k;F=(k=cO9(l))!=null?k:S;k=M(F);k>0&&(y.qg=Date.now(),y.Zl=y.qg+k);l=As.J?As.N(l,As.J,175237375,!0):As.N(l,175237375,null,!0);if(l=l===null?void 0:l)l=Tw(l,1,-1),l!==-1&&(y.L=new g.kv(l<1?1:l,3E5,.1),y.N.setInterval(y.L.getValue()))}}e&&e();y.Z=0},r=function(M,l){var F=Ek(E,Sv,
3);
var S;var k=(S=WfF(qg(E,14)))!=null?S:void 0;g.BC(y.L);y.N.setInterval(y.L.getValue());M===401&&A&&(y.aq=A);k&&(y.j+=k);l===void 0&&(l=y.isRetryable(M));l&&(y.J=F.concat(y.J),y.k0||y.N.enabled||y.N.start());N&&N("net-send-failed",M);++y.Z},Y=function(){y.network&&y.network.send(p,C,r)};
T?T.then(function(M){p.requestHeaders["Content-Encoding"]="gzip";p.requestHeaders["Content-Type"]="application/binary";p.body=M;p.Pa=2;Y()},function(){Y()}):Y()}}}};
g.J.P6=function(){this.K.isFinal=!0;this.flush();this.K.isFinal=!1};
g.J.isRetryable=function(e){return 500<=e&&e<600||e===401||e===0};ds.prototype.send=function(e,N,y){var w=this,E,A,T,p,C,r,Y,M,l,F;return g.f(function(S){switch(S.J){case 1:return A=(E=w.kF?new AbortController:void 0)?setTimeout(function(){E.abort()},e.timeoutMillis):void 0,g.c5(S,2,3),T=Object.assign({},{method:e.requestType,
headers:Object.assign({},e.requestHeaders)},e.body&&{body:e.body},e.withCredentials&&{credentials:"include"},{signal:e.timeoutMillis&&E?E.signal:null}),g.D(S,fetch(e.url,T),5);case 5:p=S.N;if(p.status!==200){(C=y)==null||C(p.status);S.u9(3);break}if((r=N)==null){S.u9(7);break}return g.D(S,p.text(),8);case 8:r(S.N);case 7:case 3:g.P5(S);clearTimeout(A);g.d_(S,0);break;case 2:Y=g.XH(S);switch((M=Y)==null?void 0:M.name){case "AbortError":(l=y)==null||l(408);break;default:(F=y)==null||F(400)}S.u9(3)}})};
ds.prototype.w8=function(){return 4};g.b(IC,g.x);IC.prototype.Uc=function(){this.L=!0;return this};
IC.prototype.build=function(){this.network||(this.network=new ds);var e=new PC({logSource:this.logSource,VO:this.VO?this.VO:xg5,sessionIndex:this.sessionIndex,QxG:this.g1,Ru:this.j,k0:!1,Uc:this.L,kG:this.kG,network:this.network});g.Q(this,e);if(this.N){var N=this.N,y=cC(e.K);Sn(y,7,N)}e.G=new yM;this.componentId&&(e.componentId=this.componentId);this.z5&&(e.z5=this.z5);this.pageId&&(e.pageId=this.pageId);this.J&&((y=this.J)?(e.experimentIds||(e.experimentIds=new wi),N=e.experimentIds,y=y.jY(),Sn(N,
4,y)):e.experimentIds&&j4(e.experimentIds,4));this.K&&(e.l9=e.D);MnH(e.K);this.network.NC&&this.network.NC(this.logSource);this.network.vz9&&this.network.vz9(e);return e};g.b(vC,g.x);vC.prototype.flush=function(e){e=e||[];if(e.length){for(var N=new TaE,y=[],w=0;w<e.length;w++){var E=e[w],A=g.CcH(E);y.push(A);E.clear()}pB(N,bx,1,y);this.J.dispatch(N);this.J.flush()}};g.J=zN.prototype;g.J.AZ=function(e){var N=g.iE.apply(1,arguments),y=this.Uy(N);y?y.push(new dqM(e)):this.Jn(e,N)};
g.J.Jn=function(e){this.J.set(this.yX(g.iE.apply(1,arguments)),[new dqM(e)])};
g.J.Uy=function(){var e=this.yX(g.iE.apply(0,arguments));return this.J.has(e)?this.J.get(e):void 0};
g.J.hQ=function(){var e=this.Uy(g.iE.apply(0,arguments));return e&&e.length?e[0]:void 0};
g.J.clear=function(){this.J.clear()};
g.J.yX=function(){var e=g.iE.apply(0,arguments);return e?e.join(","):"key"};g.b(iQ,zN);iQ.prototype.K=function(e){var N=g.iE.apply(1,arguments),y=0,w=this.hQ(N);w&&(y=w.J);this.Jn(y+e,N)};g.b(DH,zN);DH.prototype.jW=function(e){this.AZ(e,g.iE.apply(1,arguments))};g.gs.prototype.stopPropagation=function(){this.N=!0};
g.gs.prototype.preventDefault=function(){this.defaultPrevented=!0};g.e0(Vp,g.gs);
Vp.prototype.init=function(e,N){var y=this.type=e.type,w=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;this.target=e.target||e.srcElement;this.currentTarget=N;N=e.relatedTarget;N||(y=="mouseover"?N=e.fromElement:y=="mouseout"&&(N=e.toElement));this.relatedTarget=N;w?(this.clientX=w.clientX!==void 0?w.clientX:w.pageX,this.clientY=w.clientY!==void 0?w.clientY:w.pageY,this.screenX=w.screenX||0,this.screenY=w.screenY||0):(this.clientX=e.clientX!==void 0?e.clientX:e.pageX,this.clientY=
e.clientY!==void 0?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0);this.button=e.button;this.keyCode=e.keyCode||0;this.key=e.key||"";this.charCode=e.charCode||(y=="keypress"?e.keyCode:0);this.ctrlKey=e.ctrlKey;this.altKey=e.altKey;this.shiftKey=e.shiftKey;this.metaKey=e.metaKey;this.pointerId=e.pointerId||0;this.pointerType=e.pointerType;this.state=e.state;this.J=e;e.defaultPrevented&&Vp.cw.preventDefault.call(this)};
Vp.prototype.stopPropagation=function(){Vp.cw.stopPropagation.call(this);this.J.stopPropagation?this.J.stopPropagation():this.J.cancelBubble=!0};
Vp.prototype.preventDefault=function(){Vp.cw.preventDefault.call(this);var e=this.J;e.preventDefault?e.preventDefault():e.returnValue=!1};var I80="closure_listenable_"+(Math.random()*1E6|0);var vfM=0;g.J=uQ.prototype;g.J.add=function(e,N,y,w,E){var A=e.toString();e=this.listeners[A];e||(e=this.listeners[A]=[],this.J++);var T=ZH(e,N,w,E);T>-1?(N=e[T],y||(N.sj=!1)):(N=new zAJ(N,this.src,A,!!w,E),N.sj=y,e.push(N));return N};
g.J.remove=function(e,N,y,w){e=e.toString();if(!(e in this.listeners))return!1;var E=this.listeners[e];N=ZH(E,N,y,w);return N>-1?(tL(E[N]),g.Uk(E,N),E.length==0&&(delete this.listeners[e],this.J--),!0):!1};
g.J.removeAll=function(e){e=e&&e.toString();var N=0,y;for(y in this.listeners)if(!e||y==e){for(var w=this.listeners[y],E=0;E<w.length;E++)++N,tL(w[E]);delete this.listeners[y];this.J--}return N};
g.J.nV=function(e,N,y,w){e=this.listeners[e.toString()];var E=-1;e&&(E=ZH(e,N,y,w));return E>-1?e[E]:null};
g.J.hasListener=function(e,N){var y=e!==void 0,w=y?e.toString():"",E=N!==void 0;return g.c4(this.listeners,function(A){for(var T=0;T<A.length;++T)if(!(y&&A[T].type!=w||E&&A[T].capture!=N))return!0;return!1})};var WC="closure_lm_"+(Math.random()*1E6|0),RC={},f8P=0,GN="__closure_events_fn_"+(Math.random()*1E9>>>0);g.e0(g.Ux,g.x);g.Ux.prototype[I80]=!0;g.J=g.Ux.prototype;g.J.addEventListener=function(e,N,y,w){g.jv(this,e,N,y,w)};
g.J.removeEventListener=function(e,N,y,w){uXs(this,e,N,y,w)};
g.J.dispatchEvent=function(e){var N=this.OE;if(N){var y=[];for(var w=1;N;N=N.OE)y.push(N),++w}N=this.jq;w=e.type||e;if(typeof e==="string")e=new g.gs(e,N);else if(e instanceof g.gs)e.target=e.target||N;else{var E=e;e=new g.gs(w,N);g.VM(e,E)}E=!0;var A;if(y)for(A=y.length-1;!e.N&&A>=0;A--){var T=e.currentTarget=y[A];E=Lg(T,w,!0,e)&&E}e.N||(T=e.currentTarget=N,E=Lg(T,w,!0,e)&&E,e.N||(E=Lg(T,w,!1,e)&&E));if(y)for(A=0;!e.N&&A<y.length;A++)T=e.currentTarget=y[A],E=Lg(T,w,!1,e)&&E;return E};
g.J.fh=function(){g.Ux.cw.fh.call(this);this.HP&&this.HP.removeAll(void 0);this.OE=null};
g.J.listen=function(e,N,y,w){return this.HP.add(String(e),N,!1,y,w)};
g.J.TT=function(e,N,y,w){return this.HP.add(String(e),N,!0,y,w)};
g.J.CX=function(e,N,y,w){this.HP.remove(String(e),N,y,w)};
g.J.nV=function(e,N,y,w){return this.HP.nV(String(e),N,y,w)};
g.J.hasListener=function(e,N){return this.HP.hasListener(e!==void 0?String(e):void 0,N)};var e9=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(e){return e&&AsyncContext.Snapshot.wrap(e)}:function(e){return e};sx.prototype.get=function(){if(this.N>0){this.N--;var e=this.J;this.J=e.next;e.next=null}else e=this.K();return e};var N0;wR.prototype.add=function(e,N){var y=QLn.get();y.set(e,N);this.N?this.N.next=y:this.J=y;this.N=y};
wR.prototype.remove=function(){var e=null;this.J&&(e=this.J,this.J=this.J.next,this.J||(this.N=null),e.next=null);return e};
var QLn=new sx(function(){return new E0},function(e){return e.reset()});
E0.prototype.set=function(e,N){this.J=e;this.scope=N;this.next=null};
E0.prototype.reset=function(){this.next=this.scope=this.J=null};var Ao,T8=!1,jL0=new wR;KD1.prototype.reset=function(){this.context=this.N=this.K=this.J=null;this.j=!1};
var WDP=new sx(function(){return new KD1},function(e){e.reset()});
g.lB.prototype.then=function(e,N,y){return wP1(this,e9(typeof e==="function"?e:null),e9(typeof N==="function"?N:null),y)};
g.lB.prototype.$goog_Thenable=!0;g.J=g.lB.prototype;g.J.finally=function(e){var N=this;e=e9(e);return new Promise(function(y,w){sLs(N,function(E){e();y(E)},function(E){e();
w(E)})})};
g.J.On=function(e,N){return wP1(this,null,e9(e),N)};
g.J.catch=g.lB.prototype.On;g.J.cancel=function(e){if(this.J==0){var N=new cc(e);g.Jo(function(){a8J(this,N)},this)}};
g.J.mSg=function(e){this.J=0;M0(this,2,e)};
g.J.nxg=function(e){this.J=0;M0(this,3,e)};
g.J.Mi=function(){for(var e;e=eS0(this);)NG9(this,e,this.J,this.G);this.Z=!1};
var EY1=b_;g.e0(cc,FF);cc.prototype.name="cancel";g.e0(g.kT,g.Ux);g.J=g.kT.prototype;g.J.enabled=!1;g.J.g7=null;g.J.setInterval=function(e){this.uR=e;this.g7&&this.enabled?(this.stop(),this.start()):this.g7&&this.stop()};
g.J.dSh=function(){if(this.enabled){var e=g.s9()-this.fK;e>0&&e<this.uR*.8?this.g7=this.LH.setTimeout(this.jM,this.uR-e):(this.g7&&(this.LH.clearTimeout(this.g7),this.g7=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.J.start=function(){this.enabled=!0;this.g7||(this.g7=this.LH.setTimeout(this.jM,this.uR),this.fK=g.s9())};
g.J.stop=function(){this.enabled=!1;this.g7&&(this.LH.clearTimeout(this.g7),this.g7=null)};
g.J.fh=function(){g.kT.cw.fh.call(this);this.stop();delete this.LH};g.b(g.Pc,g.x);g.J=g.Pc.prototype;g.J.sendIsolatedPayload=function(e){this.L=e;this.K=1};
g.J.uW=function(){var e=this.N.values();e=[].concat(g.B(e)).filter(function(N){return N.J.size});
e.length&&this.G.flush(e,this.L);Jan(e);this.j=0;this.J.enabled&&this.J.stop()};
g.J.ET=function(e){var N=g.iE.apply(1,arguments);this.N.has(e)||this.N.set(e,new iQ(e,N))};
g.J.kM=function(e){var N=g.iE.apply(1,arguments);this.N.has(e)||this.N.set(e,new DH(e,N))};
g.J.aO=function(e){this.C5(e,1,g.iE.apply(1,arguments))};
g.J.C5=function(e,N){var y=g.iE.apply(2,arguments),w=TiJ(this,e);w&&w instanceof iQ&&(w.K(N,y),AaJ(this))};
g.J.jW=function(e,N){var y=g.iE.apply(2,arguments),w=TiJ(this,e);w&&w instanceof DH&&(w.jW(N,y),AaJ(this))};g.b(dR,Error);dR.prototype.toString=function(){var e="RpcError("+(C8s(this.code)||String(this.code))+")";this.message&&(e+=": "+this.message);return e};raM.prototype.jY=function(e){var N=[];vc(this,e,N);return N.join("")};
var MU3={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},YA1=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var FFM;g.e0(z8,Fcs);z8.prototype.J=function(){return new XMLHttpRequest};
FFM=new z8;var fY=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),kM5=/#|$/,Bi_=/[?&]($|#)/;g.e0(g.Wc,g.Ux);var i9E=/^https?$/i,S9w=["POST","PUT"],P89=[];g.J=g.Wc.prototype;g.J.YF=function(){this.dispose();g.Lq(P89,this)};
g.J.send=function(e,N,y,w){if(this.J)throw Error("[goog.net.XhrIo] Object is active with another request="+this.U+"; newUri="+e);N=N?N.toUpperCase():"GET";this.U=e;this.j="";this.N=0;this.Kh=!1;this.K=!0;this.J=this.i9?this.i9.J():FFM.J();this.J.onreadystatechange=e9((0,g.Gs)(this.ZO,this));try{this.getStatus(),this.qg=!0,this.J.open(N,String(e),!0),this.qg=!1}catch(T){this.getStatus();vY0(this,T);return}e=y||"";y=new Map(this.headers);if(w)if(Object.getPrototypeOf(w)===Object.prototype)for(var E in w)y.set(E,
w[E]);else if(typeof w.keys==="function"&&typeof w.get==="function"){E=g.c(w.keys());for(var A=E.next();!A.done;A=E.next())A=A.value,y.set(A,w.get(A))}else throw Error("Unknown input type for opt_headers: "+String(w));w=Array.from(y.keys()).find(function(T){return"content-type"==T.toLowerCase()});
E=g.xJ.FormData&&e instanceof g.xJ.FormData;!g.Gw(S9w,N)||w||E||y.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");N=g.c(y);for(w=N.next();!w.done;w=N.next())y=g.c(w.value),w=y.next().value,y=y.next().value,this.J.setRequestHeader(w,y);this.l9&&(this.J.responseType=this.l9);"withCredentials"in this.J&&this.J.withCredentials!==this.G&&(this.J.withCredentials=this.G);try{this.Z&&(clearTimeout(this.Z),this.Z=null),this.Ng>0&&(this.getStatus(),this.Z=setTimeout(this.CS.bind(this),
this.Ng)),this.getStatus(),this.D=!0,this.J.send(e),this.D=!1}catch(T){this.getStatus(),vY0(this,T)}};
g.J.CS=function(){typeof RD!="undefined"&&this.J&&(this.j="Timed out after "+this.Ng+"ms, aborting",this.N=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.J.abort=function(e){this.J&&this.K&&(this.getStatus(),this.K=!1,this.L=!0,this.J.abort(),this.L=!1,this.N=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),O0(this))};
g.J.fh=function(){this.J&&(this.K&&(this.K=!1,this.L=!0,this.J.abort(),this.L=!1),O0(this,!0));g.Wc.cw.fh.call(this)};
g.J.ZO=function(){this.Ss()||(this.qg||this.D||this.L?zm_(this):this.qQB())};
g.J.qQB=function(){zm_(this)};
g.J.isActive=function(){return!!this.J};
g.J.isComplete=function(){return g.G8(this)==4};
g.J.getStatus=function(){try{return g.G8(this)>2?this.J.status:-1}catch(e){return-1}};
g.J.getResponseHeader=function(e){if(this.J&&this.isComplete())return e=this.J.getResponseHeader(e),e===null?void 0:e};
g.J.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};et.prototype.send=function(e,N,y){N=N===void 0?function(){}:N;
y=y===void 0?function(){}:y;
dPE(e.url,function(w){w=w.target;U0(w)?N(g.LY(w)):y(w.getStatus())},e.requestType,e.body,e.requestHeaders,e.timeoutMillis,e.withCredentials)};
et.prototype.w8=function(){return 1};yX.prototype.done=function(){this.logger.WJ(this.event,Nv()-this.startTime)};
g.b(wq,r5);g.b(Af,wq);g.J=Af.prototype;g.J.GT=function(){};
g.J.pm=function(){};
g.J.WJ=function(){};
g.J.iR=function(){};
g.J.DU=function(){};
g.J.S3=function(e,N,y){return y};
g.J.py=function(){};
g.J.Qz=function(){};
g.J.sx=function(){};
g.J.U3=function(){};
g.b(Ta,wq);g.J=Ta.prototype;g.J.update=function(e){this.logger.dispose();this.logger=e};
g.J.pm=function(e){this.logger.pm(e)};
g.J.WJ=function(e,N){this.logger.WJ(e,N)};
g.J.iR=function(e){this.logger.iR(e)};
g.J.DU=function(){this.logger.DU()};
g.J.S3=function(e,N,y){return this.logger.S3(e,N,y)};
g.J.py=function(e){this.logger.py(e)};
g.J.Qz=function(e){this.logger.Qz(e)};
g.J.sx=function(e){this.logger.sx(e)};
g.J.U3=function(e){this.logger.U3(e)};
g.J.zf=function(e){this.logger instanceof Cw&&this.logger.zf(e)};
g.J.GT=function(e){this.logger.GT(e)};
g.b(Jf,g.x);g.b(pw,wq);g.J=pw.prototype;g.J.zf=function(e){this.Ao=e};
g.J.GT=function(e){this.metrics.NQW.jW(e,this.vI)};
g.J.pm=function(e){this.metrics.eventCount.J(e,this.vI)};
g.J.WJ=function(e,N){this.metrics.VV.jW(N,e,this.Ao,this.vI)};
g.J.iR=function(e){this.metrics.errorCount.J(e,this.Ao,this.vI)};
g.J.S3=function(e,N,y){function w(T){if(!E.Ss()){var p=Nv()-A;E.metrics.K3s.jW(p,e,N,T,E.Ao,E.vI)}}
var E=this,A=Nv();y.then(function(){w(0)},function(T){T instanceof dR?w(T.code):w(-1)});
return y};
g.J.py=function(e){this.metrics.fKg.J(e,this.Ao,this.vI)};
g.J.Qz=function(e){this.metrics.Lr.J(e,this.Ao,this.vI)};
g.J.sx=function(e){this.metrics.tYW.J(e,this.Ao,this.vI)};
g.b(Cw,pw);Cw.prototype.U3=function(e){var N=this;this.J.dispose();this.N&&this.service.dispose();this.service=this.options.gj("45",this.options.Dv.concat(e));this.J=new Jf(function(){return void N.service.uW()},this.options.IA);
this.metrics=gY5(this.service);this.K=e};
Cw.prototype.DU=function(){fAM(this.J)};g.b(rq,qq);g.b($s,qq);g.b(Ys,qq);var oJ0=lx(Ys),qAM=function(e){return Hm(function(N){return N instanceof e&&!((N.wT[Dy]|0)&2)})}(Ys);
Ys.messageId="bfkj";g.b(tUH,qq);g.b(AV,qq);g.b(Mv,qq);var Z9F=lx(Mv);g.b(Fa,g.x);Fa.prototype.snapshot=function(e){if(this.Ss())throw Error("Already disposed");this.logger.pm("n");var N=this.logger.share();return this.K.then(function(y){var w=y.yv;return new Promise(function(E){var A=new yX(N,"n");w(function(T){A.done();N.GT(T.length);N.DU();N.dispose();E(T)},[e.qX,
e.Tf,e.PH,e.oZ])})})};
Fa.prototype.mD=function(e){var N=this;if(this.Ss())throw Error("Already disposed");this.logger.pm("n");var y=E5(this.logger,function(){return N.j([e.qX,e.Tf,e.PH,e.oZ])},"n");
this.logger.GT(y.length);this.logger.DU();return y};
Fa.prototype.hd=function(e){this.K.then(function(N){var y;(y=N.aDs)==null||y(e)})};
Fa.prototype.lC=function(){return this.logger.share()};
g.b(St,Error);g.b(cn,qq);g.b(ks,qq);Bn.prototype.x0=function(e,N){var y=this,w,E,A,T,p;return g.f(function(C){if(C.J==1){var r=new cn;w=oL(r,1,y.XB);e&&oL(w,2,e);N&&oL(w,3,N);E=y.J();return g.D(C,y.client.create(w,E),2)}A=C.N;T=IN(RF(A,2));if(T.length){r=C.return;var Y=new Uint8Array(T.length);for(var M=0;M<T.length;M++)Y[M]=T[M]+97;if(g.xJ.TextDecoder)Y=(new TextDecoder).decode(Y);else if(Y.length<=8192)Y=String.fromCharCode.apply(null,Y);else{M="";for(var l=0;l<Y.length;l+=8192)M+=String.fromCharCode.apply(null,Array.prototype.slice.call(Y,
l,l+8192));Y=M}Y=oJ0(Y);return r.call(C,Y)}p=Tx(A,Ys,1);if(!p)throw Error("Missing field");return C.return(p)})};
Bn.prototype.BU=function(e){var N=this,y,w;return g.f(function(E){y=N.J();var A=new ks;A=oL(A,1,N.XB);w=oL(A,2,e);A=E.return;var T=N.client;T=U85(T.J,T.N+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",w,y||{},bM5);return A.call(E,T)})};g.b(Xa,g.x);Xa.prototype.snapshot=function(e){var N=this;return g.f(function(y){switch(y.J){case 1:if(N.Ss())throw Error("Already disposed");if(N.N||N.G){y.u9(2);break}return g.D(y,N.L.promise,2);case 2:if(!N.N){y.u9(4);break}return g.D(y,N.N.snapshot(e),5);case 5:return y.return(y.N);case 4:throw N.G;}})};
Xa.prototype.hd=function(e){var N,y;(N=this.N)==null||(y=N.hd)==null||y.call(N,e)};
Xa.prototype.handleError=function(e){if(!this.Ss()){this.G=e;this.L.resolve();var N,y;(y=(N=this.options).x7h)==null||y.call(N,e)}};
Xa.prototype.lC=function(){return this.logger.share()};
var KcH={sf1:432E5,Ei:3E5,eX:10,In:1E4,Fv:3E4,sqs:3E4,MVh:6E4,eC:1E3,WL:6E4,vL:6E5,gr:.25,UM:2,maxAttempts:10};var h5T,eR5=(h5T=Math.imul)!=null?h5T:function(e,N){return e*N|0},vn=[196,
200,224,18];za.prototype.jY=function(){return String(this.J)+","+this.N.join()};
za.prototype.J1=function(e,N){var y=void 0;if(this.N[this.J]!==e){var w=this.N.indexOf(e);w!==-1?(this.N.splice(w,1),w<this.J&&this.J--,this.N.splice(this.J,0,e)):(y=this.N[this.J],this.N[this.J]=e)}this.J=(this.J+1)%this.maxItems;e=aA9("iU5q-!O9@$",this.jY());y&&e&&N(y);return e};var $8E={toString:function(e){var N=[],y=0;e-=-2147483648;N[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(e%52);for(e=Math.floor(e/52);e>0;)N[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(e%62),e=Math.floor(e/62);return N.join("")}};var MvF;g.b(gq,g.x);gq.prototype.Gr=function(e,N){var y=this.HF(e);N==null||N(y);return E5(this.logger,function(){return g.oN(y,2)},this.K)};
MvF=Symbol.dispose;g.b(tf,gq);tf.prototype.HF=function(e,N){var y=this;this.logger.pm(this.J);++this.L>=this.Z&&this.N.resolve();var w=e();e=E5(this.logger,function(){return y.j(w)},"C");
if(e===void 0)throw new St(17,"YNJ:Undefined");if(!(e instanceof Uint8Array))throw new St(18,"ODM:Invalid");N==null||N(e);return e};
g.b(uq,gq);uq.prototype.HF=function(){return this.j};
g.b(qv,gq);qv.prototype.HF=function(){var e=this;return E5(this.logger,function(){return hO(e.j)},"d")};
qv.prototype.Gr=function(){return this.j};
g.b(ZV,gq);ZV.prototype.HF=function(){if(this.j)return this.j;this.j=lHH(this,function(e){return"_"+Yx_(e)});
return lHH(this,function(e){return e})};
g.b(nw,gq);nw.prototype.HF=function(e){var N=e();if(N.length>118)throw new St(19,"DFO:Invalid");e=Math.floor(Date.now()/1E3);var y=[Math.random()*255,Math.random()*255],w=y.concat([this.j&255,this.clientState],[e>>24&255,e>>16&255,e>>8&255,e&255]);e=new Uint8Array(2+w.length+N.length);e[0]=34;e[1]=w.length+N.length;e.set(w,2);e.set(N,2+w.length);N=e.subarray(2);for(w=y=y.length;w<N.length;++w)N[w]^=N[w%y];this.logger.py(this.clientState);return e};var cL3={JQ:3E4,kSB:2E4};g.b(mG,g.x);mG.prototype.Mh=function(e){if(!(e>150))try{this.cache=new JL9(e,this.logger)}catch(N){this.reportError(new St(22,"GBJ:init",N))}};
mG.prototype.reportError=function(e){this.logger.iR(e.code);this.onError(e);return e};
g.b(O5,mG);O5.prototype.L3=function(){return this.j.promise};
O5.prototype.HF=function(e){return Hn(this,Object.assign({},e),!1)};
O5.prototype.Gr=function(e){return Hn(this,Object.assign({},e),!0)};
var kN0=function(e){return Hm(function(N){if(!ac(N))return!1;for(var y=g.c(Object.entries(e)),w=y.next();!w.done;w=y.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;if(!(w in N)){if(E.lUP===!0)continue;return!1}if(!E(N[w]))return!1}return!0})}({f$:function(e){return Hm(function(N){return N instanceof e})}(Xa)},"");g.b(R7,qq);var cnw=lx(R7);PQ_.prototype.getMetadata=function(){return this.metadata};Ga.prototype.getMetadata=function(){return this.metadata};
Ga.prototype.getStatus=function(){return this.status};U5.prototype.G=function(e,N){N=N===void 0?{}:N;return new PQ_(e,this,N)};
U5.prototype.getName=function(){return this.name};var ksM=new U5("/google.internal.waa.v1.Waa/Create",cn,R7,function(e){return e.jY()},cnw);g.b(Lw,qq);var bM5=new U5("/google.internal.waa.v1.Waa/GenerateIT",ks,Lw,function(e){return e.jY()},lx(Lw));var etJ=new Set(["SAPISIDHASH","APISIDHASH"]);var RR_=Promise;g.b(s5,qq);s5.prototype.getValue=function(){var e=qg(this,2);if(Array.isArray(e)||e instanceof qq)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return RF(this,2)};g.b(a7,qq);a7.prototype.getMessage=function(){return Mq(this,2)};
var D8J=lx(a7);ee.prototype.BF=function(e,N){e=="data"?this.K.push(N):e=="metadata"?this.L.push(N):e=="status"?this.Z.push(N):e=="end"?this.j.push(N):e=="error"&&this.N.push(N);return this};
ee.prototype.removeListener=function(e,N){e=="data"?Ah(this.K,N):e=="metadata"?Ah(this.L,N):e=="status"?Ah(this.Z,N):e=="end"?Ah(this.j,N):e=="error"&&Ah(this.N,N);return this};
ee.prototype.cancel=function(){this.J.abort()};
ee.prototype.cancel=ee.prototype.cancel;ee.prototype.removeListener=ee.prototype.removeListener;ee.prototype.on=ee.prototype.BF;g.b(IHn,Error);g.e0(g.T3,Fcs);g.T3.prototype.J=function(){var e=new Jh(this.j,this.K);this.N&&e.setCredentialsMode(this.N);return e};
g.T3.prototype.setCredentialsMode=function(e){this.N=e};
g.e0(Jh,g.Ux);g.J=Jh.prototype;g.J.open=function(e,N){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ng=e;this.D=N;this.readyState=1;pc(this)};
g.J.send=function(e){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.J=!0;var N={headers:this.U,method:this.Ng,credentials:this.L,cache:void 0};e&&(N.body=e);(this.Kh||g.xJ).fetch(new Request(this.D,N)).then(this.wkh.bind(this),this.yz.bind(this))};
g.J.abort=function(){this.response=this.responseText="";this.U=new Headers;this.status=0;this.K&&this.K.cancel("Request was aborted.").catch(function(){});
this.readyState>=1&&this.J&&this.readyState!=4&&(this.J=!1,Cc(this));this.readyState=0};
g.J.wkh=function(e){if(this.J&&(this.j=e,this.N||(this.status=this.j.status,this.statusText=this.j.statusText,this.N=e.headers,this.readyState=2,pc(this)),this.J&&(this.readyState=3,pc(this),this.J)))if(this.responseType==="arraybuffer")e.arrayBuffer().then(this.jqk.bind(this),this.yz.bind(this));else if(typeof g.xJ.ReadableStream!=="undefined"&&"body"in e){this.K=e.body.getReader();if(this.Z){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');
this.response=[]}else this.response=this.responseText="",this.G=new TextDecoder;gv9(this)}else e.text().then(this.bhl.bind(this),this.yz.bind(this))};
g.J.sB=function(e){if(this.J){if(this.Z&&e.value)this.response.push(e.value);else if(!this.Z){var N=e.value?e.value:new Uint8Array(0);if(N=this.G.decode(N,{stream:!e.done}))this.response=this.responseText+=N}e.done?Cc(this):pc(this);this.readyState==3&&gv9(this)}};
g.J.bhl=function(e){this.J&&(this.response=this.responseText=e,Cc(this))};
g.J.jqk=function(e){this.J&&(this.response=e,Cc(this))};
g.J.yz=function(){this.J&&Cc(this)};
g.J.setRequestHeader=function(e,N){this.U.append(e,N)};
g.J.getResponseHeader=function(e){return this.N?this.N.get(e.toLowerCase())||"":""};
g.J.getAllResponseHeaders=function(){if(!this.N)return"";for(var e=[],N=this.N.entries(),y=N.next();!y.done;)y=y.value,e.push(y[0]+": "+y[1]),y=N.next();return e.join("\r\n")};
g.J.setCredentialsMode=function(e){this.L=e};
Object.defineProperty(Jh.prototype,"withCredentials",{get:function(){return this.L==="include"},
set:function(e){this.setCredentialsMode(e?"include":"same-origin")}});g.rS.prototype.toString=function(){var e=[],N=this.L;N&&e.push(ok(N,B_w,!0),":");var y=this.J;if(y||N=="file")e.push("//"),(N=this.U)&&e.push(ok(N,B_w,!0),"@"),e.push(g.RA(y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y=this.K,y!=null&&e.push(":",String(y));if(y=this.N)this.J&&y.charAt(0)!="/"&&e.push("/"),e.push(ok(y,y.charAt(0)=="/"?X5F:PEq,!0));(y=this.j.toString())&&e.push("?",y);(y=this.Z)&&e.push("#",ok(y,d3T));return e.join("")};
g.rS.prototype.resolve=function(e){var N=this.clone(),y=!!e.L;y?g.$u(N,e.L):y=!!e.U;y?N.U=e.U:y=!!e.J;y?g.Yu(N,e.J):y=e.K!=null;var w=e.N;if(y)g.Mk(N,e.K);else if(y=!!e.N){if(w.charAt(0)!="/")if(this.J&&!this.N)w="/"+w;else{var E=N.N.lastIndexOf("/");E!=-1&&(w=N.N.slice(0,E+1)+w)}E=w;if(E==".."||E==".")w="";else if(g.B_(E,"./")||g.B_(E,"/.")){w=c_(E,"/");E=E.split("/");for(var A=[],T=0;T<E.length;){var p=E[T++];p=="."?w&&T==E.length&&A.push(""):p==".."?((A.length>1||A.length==1&&A[0]!="")&&A.pop(),
w&&T==E.length&&A.push("")):(A.push(p),w=!0)}w=A.join("/")}else w=E}y?N.N=w:y=e.j.toString()!=="";y?lX(N,e.j.clone()):y=!!e.Z;y&&(N.Z=e.Z);return N};
g.rS.prototype.clone=function(){return new g.rS(this)};
var B_w=/[#\/\?@]/g,PEq=/[#\?:]/g,X5F=/[#\?]/g,fHs=/[#\?@]/g,d3T=/#/g;g.J=Se.prototype;g.J.add=function(e,N){cN(this);this.K=null;e=ku(this,e);var y=this.J.get(e);y||this.J.set(e,y=[]);y.push(N);this.N=this.N+1;return this};
g.J.remove=function(e){cN(this);e=ku(this,e);return this.J.has(e)?(this.K=null,this.N=this.N-this.J.get(e).length,this.J.delete(e)):!1};
g.J.clear=function(){this.J=this.K=null;this.N=0};
g.J.isEmpty=function(){cN(this);return this.N==0};
g.J.forEach=function(e,N){cN(this);this.J.forEach(function(y,w){y.forEach(function(E){e.call(N,E,w,this)},this)},this)};
g.J.Nk=function(){cN(this);for(var e=Array.from(this.J.values()),N=Array.from(this.J.keys()),y=[],w=0;w<N.length;w++)for(var E=e[w],A=0;A<E.length;A++)y.push(N[w]);return y};
g.J.WP=function(e){cN(this);var N=[];if(typeof e==="string")uSM(this,e)&&(N=N.concat(this.J.get(ku(this,e))));else{e=Array.from(this.J.values());for(var y=0;y<e.length;y++)N=N.concat(e[y])}return N};
g.J.set=function(e,N){cN(this);this.K=null;e=ku(this,e);uSM(this,e)&&(this.N=this.N-this.J.get(e).length);this.J.set(e,[N]);this.N=this.N+1;return this};
g.J.get=function(e,N){if(!e)return N;e=this.WP(e);return e.length>0?String(e[0]):N};
g.J.toString=function(){if(this.K)return this.K;if(!this.J)return"";for(var e=[],N=Array.from(this.J.keys()),y=0;y<N.length;y++){var w=N[y],E=g.RA(w);w=this.WP(w);for(var A=0;A<w.length;A++){var T=E;w[A]!==""&&(T+="="+g.RA(w[A]));e.push(T)}}return this.K=e.join("&")};
g.J.clone=function(){var e=new Se;e.K=this.K;this.J&&(e.J=new Map(this.J),e.N=this.N);return e};g.e0(g.XL,g.x);var I1V=[];g.J=g.XL.prototype;g.J.listen=function(e,N,y,w){Array.isArray(N)||(N&&(I1V[0]=N.toString()),N=I1V);for(var E=0;E<N.length;E++){var A=g.jv(e,N[E],y||this.handleEvent,w||!1,this.N||this);if(!A)break;this.J[A.key]=A}return this};
g.J.TT=function(e,N,y,w){return x80(this,e,N,y,w)};
g.J.CX=function(e,N,y,w,E){if(Array.isArray(N))for(var A=0;A<N.length;A++)this.CX(e,N[A],y,w,E);else y=y||this.handleEvent,w=g.W5(w)?!!w.capture:!!w,E=E||this.N||this,y=HC(y),w=!!w,N=fg(e)?e.nV(N,y,w,E):e?(e=Kg(e))?e.nV(N,y,w,E):null:null,N&&(Ox(N),delete this.J[N.key])};
g.J.removeAll=function(){g.oB(this.J,function(e,N){this.J.hasOwnProperty(N)&&Ox(e)},this);
this.J={}};
g.J.fh=function(){g.XL.cw.fh.call(this);this.removeAll()};
g.J.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};jCH.prototype.isInputValid=function(){return this.K};PN.prototype.isInputValid=function(){return this.J!=3};
PN.prototype.Cq=function(){return this.Z};
PN.prototype.rA=function(){return!0};
PN.prototype.parse=function(e){function N(C){C&128&&dS(A,T,p,"invalid tag");(C&7)!=2&&dS(A,T,p,"invalid wire type");A.K=C>>>3;A.K!=1&&A.K!=2&&A.K!=15&&dS(A,T,p,"unexpected tag");A.J=1;A.N=0;A.j=0}
function y(C){A.j++;A.j==5&&C&240&&dS(A,T,p,"message length too long");A.N|=(C&127)<<(A.j-1)*7;C&128||(A.J=2,A.U=0,typeof Uint8Array!=="undefined"?A.L=new Uint8Array(A.N):A.L=Array(A.N),A.N==0&&E())}
function w(C){A.L[A.U++]=C;A.U==A.N&&E()}
function E(){if(A.K<15){var C={};C[A.K]=A.L;A.G.push(C)}A.J=0}
for(var A=this,T=e instanceof Array?e:new Uint8Array(e),p=0;p<T.length;){switch(A.J){case 3:dS(A,T,p,"stream already broken");break;case 0:N(T[p]);break;case 1:y(T[p]);break;case 2:w(T[p]);break;default:throw Error("unexpected parser state: "+A.J);}A.D++;p++}e=A.G;A.G=[];return e.length>0?e:null};Ik.prototype.isInputValid=function(){return this.J===null};
Ik.prototype.Cq=function(){return this.J};
Ik.prototype.rA=function(){return!1};
Ik.prototype.parse=function(e){this.J!==null&&QC3(this,e,"stream already broken");var N=null;try{var y=this.K;y.K||nvJ(y,e,"stream already broken");y.J+=e;var w=Math.floor(y.J.length/4);if(w==0)var E=null;else{try{var A=lZn(y.J.slice(0,w*4))}catch(T){nvJ(y,y.J,T.message)}y.N+=w*4;y.J=y.J.slice(w*4);E=A}N=E===null?null:this.j.parse(E)}catch(T){QC3(this,e,T.message)}this.N+=e.length;return N};var vJw={INIT:0,AX:1,vR:2,GA:3,jf:4,fJ:5,STRING:6,WR:7,kT:8,ya:9,z$:10,Sj:11,r9:12,L7:13,TX:14,HH:15,bF:16,w_:17,qv:18,W$:19,eF:20};g.J=z3.prototype;g.J.isInputValid=function(){return this.L!=3};
g.J.Cq=function(){return this.D};
g.J.done=function(){return this.L===2};
g.J.rA=function(){return!1};
g.J.parse=function(e){function N(){for(;l<e.length;)if(vN(e[l]))l++,A.K++;else break;return l<r}
function y(){for(var S;;){S=e[l++];if(!S)break;A.K++;switch(A.J){case C.INIT:S==="{"?A.J=C.vR:S==="["?A.J=C.jf:vN(S)||iX(A,e,l);continue;case C.WR:case C.vR:if(vN(S))continue;if(A.J===C.WR)T.push(C.kT);else if(S==="}"){E("{}");A.J=w();continue}else T.push(C.GA);S==='"'?A.J=C.STRING:iX(A,e,l);continue;case C.kT:case C.GA:if(vN(S))continue;S===":"?(A.J===C.GA&&(T.push(C.GA),A.N++),A.J=C.AX):S==="}"?(A.N--,E(),A.J=w()):S===","?(A.J===C.GA&&T.push(C.GA),A.J=C.WR):iX(A,e,l);continue;case C.jf:case C.AX:if(vN(S))continue;
if(A.J===C.jf)if(A.N++,A.J=C.AX,S==="]"){A.N--;if(A.N===0){A.J=C.fJ;return}E("[]");A.J=w();continue}else T.push(C.fJ);S==='"'?A.J=C.STRING:S==="{"?A.J=C.vR:S==="["?A.J=C.jf:S==="t"?A.J=C.ya:S==="f"?A.J=C.r9:S==="n"?A.J=C.bF:S!=="-"&&("0123456789".indexOf(S)!==-1?A.J=C.eF:iX(A,e,l));continue;case C.fJ:if(S===",")T.push(C.fJ),A.J=C.AX,A.N===1&&(M=l);else if(S==="]"){A.N--;if(A.N===0)return;E();A.J=w()}else if(vN(S))continue;else iX(A,e,l);continue;case C.STRING:var k=l;a:for(;;){for(;A.U>0;)if(S=e[l++],
A.U===4?A.U=0:A.U++,!S)break a;if(S==='"'&&!A.G){A.J=w();break}if(S==="\\"&&!A.G&&(A.G=!0,S=e[l++],!S))break;if(A.G)if(A.G=!1,S==="u"&&(A.U=1),S=e[l++])continue;else break;p.lastIndex=l;S=p.exec(e);if(!S){l=e.length+1;break}l=S.index+1;S=e[S.index];if(!S)break}A.K+=l-k;continue;case C.ya:if(!S)continue;S==="r"?A.J=C.z$:iX(A,e,l);continue;case C.z$:if(!S)continue;S==="u"?A.J=C.Sj:iX(A,e,l);continue;case C.Sj:if(!S)continue;S==="e"?A.J=w():iX(A,e,l);continue;case C.r9:if(!S)continue;S==="a"?A.J=C.L7:
iX(A,e,l);continue;case C.L7:if(!S)continue;S==="l"?A.J=C.TX:iX(A,e,l);continue;case C.TX:if(!S)continue;S==="s"?A.J=C.HH:iX(A,e,l);continue;case C.HH:if(!S)continue;S==="e"?A.J=w():iX(A,e,l);continue;case C.bF:if(!S)continue;S==="u"?A.J=C.w_:iX(A,e,l);continue;case C.w_:if(!S)continue;S==="l"?A.J=C.qv:iX(A,e,l);continue;case C.qv:if(!S)continue;S==="l"?A.J=w():iX(A,e,l);continue;case C.W$:S==="."?A.J=C.eF:iX(A,e,l);continue;case C.eF:if("0123456789.eE+-".indexOf(S)!==-1)continue;else l--,A.K--,A.J=
w();continue;default:iX(A,e,l)}}}
function w(){var S=T.pop();return S!=null?S:C.AX}
function E(S){A.N>1||(S||(S=M===-1?A.j+e.substring(Y,l):e.substring(M,l)),A.Ng?A.Z.push(S):A.Z.push(JSON.parse(S)),M=l)}
for(var A=this,T=A.Kh,p=A.qg,C=vJw,r=e.length,Y=0,M=-1,l=0;l<r;)switch(A.L){case 3:return iX(A,e,l),null;case 2:return N()&&iX(A,e,l),null;case 0:if(N()){var F=e[l++];A.K++;if(F==="["){A.L=1;Y=l;A.J=C.jf;continue}else iX(A,e,l)}return null;case 1:return y(),A.N===0&&A.J==C.fJ?(A.L=2,A.j=e.substring(l)):A.j=M===-1?A.j+e.substring(Y):e.substring(M),A.Z.length>0?(F=A.Z,A.Z=[],F):null}return null};D7.prototype.isInputValid=function(){return this.L===null};
D7.prototype.Cq=function(){return this.L};
D7.prototype.rA=function(){return!1};
D7.prototype.parse=function(e){function N(C){A.N=6;A.L="The stream is broken @"+A.J+"/"+T+". Error: "+C+". With input:\n";throw Error(A.L);}
function y(){A.K=new z3({OzW:!0,yV:!0})}
function w(C){if(C)for(var r=0;r<C.length;r++){var Y={};Y[1]=C[r];A.j.push(Y)}}
function E(C){if(C){(A.Z||C.length>1)&&N("extra status: "+C);A.Z=!0;var r={};r[2]=C[0];A.j.push(r)}}
for(var A=this,T=0;T<e.length;){var p;if(p=A.N!==2){a:{for(;T<e.length;){if(!vN(e[T])){p=!0;break a}T++;A.J++}p=!1}p=!p}if(p)return null;switch(A.N){case 6:N("stream already broken");break;case 0:e[T]==="["?(A.N=1,T++,A.J++):N("unexpected input token");break;case 1:e[T]==="["?(A.N=2,y()):e[T]===","||e.slice(T,T+5)=="null,"?A.N=3:e[T]==="]"?(A.N=5,T++,A.J++):N("unexpected input token");break;case 2:p=A.K.parse(e.substring(T));w(p);A.K.done()?(A.N=3,p=A.K.j,A.J+=e.length-T-p.length,e=p,T=0):(A.J+=e.length-
T,T=e.length);break;case 3:e[T]===","||e.slice(T,T+5)=="null,"?(A.N=4,y(),A.K.parse("["),T+=e[T]===","?1:5,A.J++):e[T]==="]"&&(A.N=5,T++,A.J++);break;case 4:p=A.K.parse(e.substring(T));E(p);A.K.done()?(A.N=5,p=A.K.j,A.J+=e.length-T-p.length,e=p,T=0):(A.J+=e.length-T,T=e.length);break;case 5:N("extra input after stream end")}}return A.j.length>0?(e=A.j,A.j=[],e):null};gS.prototype.PM=function(){return this.J};
gS.prototype.getStatus=function(){return this.L};
gS.prototype.Ng=function(e){e=e.target;try{if(e==this.J)a:{var N=g.G8(this.J),y=this.J.N,w=this.J.getStatus(),E=g.LY(this.J);e=[];if(g.s0(this.J)instanceof Array){var A=g.s0(this.J);A.length>0&&A[0]instanceof Uint8Array&&(this.D=!0,e=A)}if(!(N<3||N==3&&!E&&e.length==0))if(w=w==200||w==206,N==4&&(y==8?uX(this,7):y==7?uX(this,8):w||uX(this,3)),this.N||(this.N=m8M(this.J),this.N==null&&uX(this,5)),this.L>2)qk(this);else{if(e.length>this.K){var T=e.length;y=[];try{if(this.N.rA())for(var p=0;p<T;p++){var C=
this.N.parse(Array.from(e[p]));C&&(y=y.concat(C))}else{C="";if(!this.Z){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.Z=new TextDecoder}for(p=0;p<T;p++)C+=this.Z.decode(e[p],{stream:N==4&&p==T-1});y=this.N.parse(C)}e.splice(0,T);y&&this.j(y)}catch(Y){uX(this,5);qk(this);break a}}else if(E.length>this.K){p=E.slice(this.K);this.K=E.length;try{var r=this.N.parse(p);r!=null&&this.j&&this.j(r)}catch(Y){uX(this,5);qk(this);break a}}N==4?(E.length!=
0||this.D?uX(this,2):uX(this,4),qk(this)):uX(this,1)}}}catch(Y){uX(this,6),qk(this)}};g.J=Hg5.prototype;g.J.BF=function(e,N){var y=this.N[e];y||(y=[],this.N[e]=y);y.push(N);return this};
g.J.addListener=function(e,N){this.BF(e,N);return this};
g.J.removeListener=function(e,N){var y=this.N[e];y&&g.Lq(y,N);(e=this.J[e])&&g.Lq(e,N);return this};
g.J.once=function(e,N){var y=this.J[e];y||(y=[],this.J[e]=y);y.push(N);return this};
g.J.fBs=function(e){var N=this.N.data;N&&K_J(e,N);(N=this.J.data)&&K_J(e,N);this.J.data=[]};
g.J.I_t=function(){switch(this.K.getStatus()){case 1:Z7(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Z7(this,"error");break;case 8:Z7(this,"close");break;case 2:Z7(this,"end")}};W_P.prototype.serverStreaming=function(e,N,y,w){var E=this,A=e.substring(0,e.length-w.name.length);return OgJ(function(T){var p=T.Uo,C=T.getMetadata(),r=L_3(E,!1);C=sCH(E,C,r,A+p.getName());var Y=aHM(r,p.N,!0);T=p.J(T.EK);r.send(C,"POST",T);return Y},this.j).call(this,w.G(N,y))};NR1.prototype.create=function(e,N){return U85(this.J,this.N+"/$rpc/google.internal.waa.v1.Waa/Create",e,N||{},ksM)};var z5w=1,WN=new WeakMap;g.b(xu,g.x);xu.prototype.signal=function(){var e=new nc(!1);this.signals.add(e);g.Q(this,e);return e};
xu.prototype.x3=function(e){return je(this,e).x3()};
g.b(nc,g.x);g.J=nc.prototype;g.J.wU=function(){var e=this,N=z5w++;QP(function(){yoM(e,N)});
return N};
g.J.detach=function(e){var N=this;QP(function(){var y=N.slots.get(e);y&&y.YG()})};
g.J.value=function(e){return this.promise(!0,e)};
g.J.x3=function(){return this.kA};
g.J.next=function(e){return this.promise(!1,e)};
g.J.promise=function(e,N){var y=this,w=LD5();QP(function(){if(y.Ss())w.reject(new cc("Signal initially disposed"));else if(N&&N.Ss())w.reject(new cc("Owner initially disposed"));else if(e&&y.wY&&y.qn)w.resolve(y.kA);else if(y.zb.add(w),ho(w.promise,function(){y.zb.delete(w)}),N){var E=function(){w.reject(new cc("Owner asynchronously disposed"))};
ho(w.promise,function(){var A=WN.get(N);A&&g.Lq(A,E)});
AoM(N,E)}});
return w.promise};
g.J.fh=function(){var e=this;g.x.prototype.fh.call(this);QP(function(){for(var N=g.c(e.slots.values()),y=N.next();!y.done;y=N.next())y=y.value.YG,y();e.slots.clear();N=g.c(e.zb);for(y=N.next();!y.done;y=N.next())y.value.reject(new cc("Signal asynchronously disposed"));e.zb.clear()})};
var HN=[],Kc=!1;g.b(OJ,g.x);OJ.prototype.start=function(){var e=this;if(this.Ss())throw new G3("Cannot start a disposed timer.");if(!this.Z){this.j=0;if(this.G){var N=Date.now();this.handle=setInterval(function(){e.j=e.milliseconds>0?Math.trunc((Date.now()-N)/e.milliseconds):e.j+1;var y;(y=e.N)==null||y.resolve();e.N=void 0;if(e.K){var w;(w=e.J)!=null&&mM(je(w,e.K),e)}e.qU.F$(e)},this.milliseconds)}else this.handle=setTimeout(function(){e.state=3;
e.handle=void 0;e.j=1;var y;(y=e.N)==null||y.resolve();e.N=void 0;if(e.K){var w;(w=e.J)!=null&&mM(je(w,e.K),e)}e.qU.F$(e)},this.milliseconds);
this.state=1}};
OJ.prototype.cancel=function(){if(this.Z){this.clear();this.state=2;var e;(e=this.N)==null||e.reject(new Rk);var N;(N=this.qU.KZ)==null||N.call(this);if(this.L){var y;(y=this.J)!=null&&mM(je(y,this.L))}}};
OJ.prototype.fh=function(){this.clear();var e;(e=this.N)==null||e.reject(new G3);this.state=4;g.x.prototype.fh.call(this)};
OJ.prototype.clear=function(){this.G?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.pM.Object.defineProperties(OJ.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return this.state===1}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}},
tick:{configurable:!0,enumerable:!0,get:function(){return this.j}},
U:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.N!=null||(this.N=new g.lq),this.N.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Rk("Timer has been cancelled."));case 4:return Promise.reject(new G3("Timer has been disposed."));default:wa(this.state)}}},
F$:{configurable:!0,enumerable:!0,get:function(){if(this.Ss())throw new G3("Cannot attach a signal to a disposed timer.");this.K||(this.J!=null||(this.J=new xu(this)),this.K=this.J.signal());return this.K}},
KZ:{configurable:!0,enumerable:!0,get:function(){if(this.Ss())throw new G3("Cannot attach a signal to a disposed timer.");this.L||(this.J!=null||(this.J=new xu(this)),this.L=this.J.signal());return this.L}}});
g.b(Rk,FF);g.b(G3,FF);g.b(UJ,mG);g.J=UJ.prototype;g.J.isReady=function(){return!!this.J};
g.J.ready=function(){var e=this;return g.f(function(N){return g.D(N,e.K.promise,0)})};
g.J.x0=function(e){return pc_(this,this.logger.S3("c",e===void 0?1:e,this.Gq.x0(bq().J,null)),new St(10,"JVZ:Timeout"))};
g.J.prefetch=function(){this.state===1&&(this.Kf=this.x0())};
g.J.start=function(){if(this.state===1){this.state=2;var e=new yX(this.logger,"r");this.ready().finally(function(){return void e.done()});
ro_(this)}};
g.J.HF=function(e){$0s(this,e);return Hn(this,Jo1(e),!1)};
g.J.Gr=function(e){$0s(this,e);return Hn(this,Jo1(e),!0)};var FVM={NONE:0,NNt:1},G8H={f6:0,tzh:1,KAg:2,fch:3},tr={gw:"a",DX1:"d",VIDEO:"v"};sJ.prototype.isVisible=function(){return this.cJ?this.UQ>=.3:this.UQ>=.5};var po={oBP:0,zFW:1},OY0={NONE:0,jlh:1,Pbs:2};ak.prototype.getValue=function(){return this.N};
g.b(eb,ak);eb.prototype.K=function(e){this.N===null&&g.di(this.j,e)&&(this.N=e)};
g.b(NL,ak);NL.prototype.K=function(e){this.N===null&&typeof e==="number"&&(this.N=e)};
g.b(y1,ak);y1.prototype.K=function(e){this.N===null&&typeof e==="string"&&(this.N=e)};wn.prototype.disable=function(){this.N=!1};
wn.prototype.enable=function(){this.N=!0};
wn.prototype.isEnabled=function(){return this.N};
wn.prototype.reset=function(){this.J={};this.N=!0;this.K={}};var VC=document,Yn=window;var LG1=!g.S6&&!xw();Co.prototype.now=function(){return 0};
Co.prototype.N=function(){return 0};
Co.prototype.K=function(){return 0};
Co.prototype.J=function(){return 0};g.b($n,Co);$n.prototype.now=function(){return rn()&&Yn.performance.now?Yn.performance.now():Co.prototype.now.call(this)};
$n.prototype.N=function(){return rn()&&Yn.performance.memory?Yn.performance.memory.totalJSHeapSize||0:Co.prototype.N.call(this)};
$n.prototype.K=function(){return rn()&&Yn.performance.memory?Yn.performance.memory.usedJSHeapSize||0:Co.prototype.K.call(this)};
$n.prototype.J=function(){return rn()&&Yn.performance.memory?Yn.performance.memory.jsHeapSizeLimit||0:Co.prototype.J.call(this)};var bY_=rR(function(){var e=!1;try{var N=Object.defineProperty({},"passive",{get:function(){e=!0}});
g.xJ.addEventListener("test",null,N)}catch(y){}return e});htn.prototype.isVisible=function(){return FR(VC)===1};var k83={c1q:"allow-forms",aKs:"allow-modals",S_k:"allow-orientation-lock",drG:"allow-pointer-lock",RnW:"allow-popups",Cv9:"allow-popups-to-escape-sandbox",PvG:"allow-presentation",ZwZ:"allow-same-origin",r1P:"allow-scripts",L39:"allow-top-navigation",TzP:"allow-top-navigation-by-user-activation"},d0s=rR(function(){return BR3()});var iY5=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");cQ.prototype.nC=function(e,N,y){e=e+"//"+N+y;var w=f9n(this)-y.length;if(w<0)return"";this.J.sort(function(r,Y){return r-Y});
y=null;N="";for(var E=0;E<this.J.length;E++)for(var A=this.J[E],T=this.N[A],p=0;p<T.length;p++){if(!w){y=y==null?A:y;break}var C=V9n(T[p],this.K,",$");if(C){C=N+C;if(w>=C.length){w-=C.length;e+=C;N=this.K;break}y=y==null?A:y}}w="";y!=null&&(w=""+N+"trn="+y);return e+w};iM.prototype.setInterval=function(e,N){return Yn.setInterval(e,N)};
iM.prototype.clearInterval=function(e){Yn.clearInterval(e)};
iM.prototype.setTimeout=function(e,N){return Yn.setTimeout(e,N)};
iM.prototype.clearTimeout=function(e){Yn.clearTimeout(e)};g.b(gn,qq);gn.prototype.J=wW0([0,KEH,RoF,-2,LE_]);var RtH={XPW:1,Nd:2,tWt:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};U05.prototype.C4=function(e){if(typeof e==="string"&&e.length!=0){var N=this.RJ;if(N.N){e=e.split("&");for(var y=e.length-1;y>=0;y--){var w=e[y].split("="),E=decodeURIComponent(w[0]);w.length>1?(w=decodeURIComponent(w[1]),w=/^[0-9]+$/g.exec(w)?parseInt(w,10):w):w=1;(E=N.J[E])&&E.K(w)}}}};var TA=null;var Z5=g.xJ.performance,iM_=!!(Z5&&Z5.mark&&Z5.measure&&Z5.clearMarks),uM=rR(function(){var e;if(e=iM_){var N=N===void 0?g.xJ:N;if(TA===null){TA="";try{e="";try{e=N.top.location.hash}catch(w){e=N.location.hash}if(e){var y=e.match(/\bdeid=([\d,]+)/);TA=y?y[1]:""}}catch(w){}}N=TA;e=!!N.indexOf&&N.indexOf("1337")>=0}return e});
qL.prototype.disable=function(){this.J=!1;this.events!==this.N.google_js_reporting_queue&&(uM()&&g.$R(this.events,yfM),this.events.length=0)};
qL.prototype.start=function(e,N){if(!this.J)return null;var y=eO_()||a9_();e=new NqP(e,N,y);N="goog_"+e.label+"_"+e.uniqueId+"_start";Z5&&uM()&&Z5.mark(N);return e};
qL.prototype.end=function(e){if(this.J&&typeof e.value==="number"){var N=eO_()||a9_();e.duration=N-e.value;N="goog_"+e.label+"_"+e.uniqueId+"_end";Z5&&uM()&&Z5.mark(N);!this.J||this.events.length>2048||this.events.push(e)}};wnJ.prototype.YY=function(e,N,y,w,E){E=E||this.J6;try{var A=new cQ;A.J.push(1);A.N[1]=kn("context",e);N.error&&N.meta&&N.id||(N=new Q1(mR(N)));if(N.msg){var T=N.msg.substring(0,512);A.J.push(2);A.N[2]=kn("msg",T)}var p=N.meta||{};if(this.Kb)try{this.Kb(p)}catch(F){}if(w)try{w(p)}catch(F){}w=[p];A.J.push(3);A.N[3]=w;var C=gTP();if(C.N){var r=C.N.url||"";A.J.push(4);A.N[4]=kn("top",r)}var Y={url:C.J.url||""};if(C.J.url){var M=C.J.url.match(fY);var l=iB(M[1],null,M[3],M[4])}else l="";r=[Y,{url:l}];A.J.push(5);
A.N[5]=r;LVH(this.J,E,A,y)}catch(F){try{LVH(this.J,E,{context:"ecmserr",rctx:e,msg:mR(F),url:C&&C.J.url},y)}catch(S){}}return this.Hx};
g.b(Q1,sDn);var jb,no,xn=new qL;jb=new function(){var e="https:";Yn&&Yn.location&&Yn.location.protocol==="http:"&&(e="http:");this.N=e;this.J=.01};
no=new wnJ;Yn&&Yn.document&&(Yn.document.readyState=="complete"?AfF():xn.J&&lM(Yn,"load",function(){AfF()}));var pnE=Date.now(),U7=-1,Rp=-1,dkM,Lo=-1,G0=!1;g.J=s7.prototype;g.J.getHeight=function(){return this.bottom-this.top};
g.J.clone=function(){return new s7(this.top,this.right,this.bottom,this.left)};
g.J.contains=function(e){return this&&e?e instanceof s7?e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom:e.x>=this.left&&e.x<=this.right&&e.y>=this.top&&e.y<=this.bottom:!1};
g.J.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.J.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.J.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.J.scale=function(e,N){N=typeof N==="number"?N:e;this.left*=e;this.right*=e;this.top*=N;this.bottom*=N;return this};yC.prototype.Bw=function(e,N){return!!e&&(!(N===void 0?0:N)||this.volume==e.volume)&&this.K==e.K&&e2(this.J,e.J)&&!0};wm.prototype.ut=function(){return this.G};
wm.prototype.Bw=function(e,N){return this.j.Bw(e.j,N===void 0?!1:N)&&this.G==e.G&&e2(this.K,e.K)&&e2(this.Z,e.Z)&&this.J==e.J&&this.L==e.L&&this.N==e.N&&this.U==e.U};var D3Z={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},IZ={Qe:"start",O5:"firstquartile",YE:"midpoint",It:"thirdquartile",COMPLETE:"complete",ERROR:"error",mu:"metric",PAUSE:"pause",v$:"resume",gH:"skip",JZ:"viewable_impression",UF:"mute",sF:"unmute",A7:"fullscreen",wB:"exitfullscreen",p6:"bufferstart",sS:"bufferfinish",h7:"fully_viewable_audible_half_duration_impression",B$:"measurable_impression",eB:"abandon",bM:"engagedview",iM:"impression",kC:"creativeview",G0:"loaded",
vKZ:"progress",CLOSE:"close",rAZ:"collapse",CIk:"overlay_resize",PIq:"overlay_unmeasurable_impression",ZcP:"overlay_unviewable_impression",LNq:"overlay_viewable_immediate_impression",r3k:"overlay_viewable_end_of_session_impression",K6:"custom_metric_viewable",V9:"audio_audible",Q9:"audio_measurable",M9:"audio_impression"},q7s="start firstquartile midpoint thirdquartile resume loaded".split(" "),ZoH=["start","firstquartile","midpoint","thirdquartile"],vu5=["abandon"],Oo={UNKNOWN:-1,Qe:0,O5:1,YE:2,
It:3,COMPLETE:4,mu:5,PAUSE:6,v$:7,gH:8,JZ:9,UF:10,sF:11,A7:12,wB:13,h7:14,B$:15,eB:16,bM:17,iM:18,kC:19,G0:20,K6:21,p6:22,sS:23,M9:27,Q9:28,V9:29};var rfE={OwP:"addEventListener",roP:"getMaxSize",LSl:"getScreenSize",TNq:"getState",HOP:"getVersion",FAt:"removeEventListener",LW1:"isViewable"};g.J=g.pK.prototype;g.J.clone=function(){return new g.pK(this.left,this.top,this.width,this.height)};
g.J.contains=function(e){return e instanceof g.ri?e.x>=this.left&&e.x<=this.left+this.width&&e.y>=this.top&&e.y<=this.top+this.height:this.left<=e.left&&this.left+this.width>=e.left+e.width&&this.top<=e.top&&this.top+this.height>=e.top+e.height};
g.J.getSize=function(){return new g.l8(this.width,this.height)};
g.J.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.J.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.J.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.J.scale=function(e,N){N=typeof N==="number"?N:e;this.left*=e;this.width*=e;this.top*=N;this.height*=N;return this};var lV9={};XnP.prototype.update=function(e){e&&e.document&&(this.G=Eb(!1,e,this.isMobileDevice),this.J=Eb(!0,e,this.isMobileDevice),dv3(this,e),PqH(this,e))};tp.prototype.cancel=function(){D5().clearTimeout(this.J);this.J=null};
tp.prototype.schedule=function(){var e=this,N=D5(),y=fo().J.J;this.J=N.setTimeout(V1(y,Ko(143,function(){e.N++;e.K.sample()})),CqH())};g.J=uG.prototype;g.J.TM=function(){return!1};
g.J.initialize=function(){return this.isInitialized=!0};
g.J.SU=function(){return this.J.i9};
g.J.FL=function(){return this.J.Ng};
g.J.hA=function(e,N){if(!this.Ng||(N===void 0?0:N))this.Ng=!0,this.i9=e,this.U=0,this.J!=this||ZR(this)};
g.J.getName=function(){return this.J.Zl};
g.J.t$=function(){return this.J.PW()};
g.J.PW=function(){return{}};
g.J.hm=function(){return this.J.U};
g.J.z1=function(){var e=gm();e.J=Eb(!0,this.K,e.isMobileDevice)};
g.J.aQ=function(){PqH(gm(),this.K)};
g.J.WW=function(){return this.j.J};
g.J.sample=function(){};
g.J.isActive=function(){return this.J.Z};
g.J.mC=function(e){var N=this.J;this.J=e.hm()>=this.U?e:this;N!==this.J?(this.Z=this.J.Z,ZR(this)):this.Z!==this.J.Z&&(this.Z=this.J.Z,ZR(this))};
g.J.h$=function(e){if(e.N===this.J){var N=!this.j.Bw(e,this.D);this.j=e;N&&zO9(this)}};
g.J.xb=function(){return this.D};
g.J.dispose=function(){this.l9=!0};
g.J.Ss=function(){return this.l9};g.J=x0.prototype;g.J.observe=function(){return!0};
g.J.unobserve=function(){};
g.J.Ld=function(e){this.L=e};
g.J.dispose=function(){if(!this.Ss()){var e=this.N;g.Lq(e.L,this);e.D&&this.xb()&&vs0(e);this.unobserve();this.qg=!0}};
g.J.Ss=function(){return this.qg};
g.J.t$=function(){return this.N.t$()};
g.J.hm=function(){return this.N.hm()};
g.J.SU=function(){return this.N.SU()};
g.J.FL=function(){return this.N.FL()};
g.J.mC=function(){};
g.J.h$=function(){this.n2()};
g.J.xb=function(){return this.l9};g.J=j2.prototype;g.J.hm=function(){return this.J.hm()};
g.J.SU=function(){return this.J.SU()};
g.J.FL=function(){return this.J.FL()};
g.J.create=function(e,N,y){var w=null;this.J&&(w=this.c8(e,N,y),qW(this.J,w));return w};
g.J.SG=function(){return this.HV()};
g.J.HV=function(){return!1};
g.J.init=function(e){return this.J.initialize()?(qW(this.J,this),this.j=e,!0):!1};
g.J.mC=function(e){e.hm()==0&&this.j(e.SU(),this)};
g.J.h$=function(){};
g.J.xb=function(){return!1};
g.J.dispose=function(){this.L=!0};
g.J.Ss=function(){return this.L};
g.J.t$=function(){return{}};nK.prototype.add=function(e,N,y){++this.K;e=new Dvn(e,N,y);this.J.push(new Dvn(e.N,e.J,e.K+this.K/4096));this.N=!0;return this};uaM.prototype.toString=function(){var e="//pagead2.googlesyndication.com//pagead/gen_204",N=mw(this.J);N.length>0&&(e+="?"+N);return e};He.prototype.update=function(e,N,y){e&&(this.J+=N,this.N+=N,this.j+=N,this.K=Math.max(this.K,this.j));if(y===void 0?!e:y)this.j=0};var nss=[1,.75,.5,.3,0];KK.prototype.update=function(e,N,y,w,E,A){A=A===void 0?!0:A;N=E?Math.min(e,N):N;for(E=0;E<this.N.length;E++){var T=this.N[E],p=N>0&&N>=T;T=!(e>0&&e>=T)||y;this.J[E].update(A&&p,w,!A||T)}};LK.prototype.update=function(e,N,y,w){this.G=this.G!=-1?Math.min(this.G,N.UQ):N.UQ;this.Kh=Math.max(this.Kh,N.UQ);this.qg=this.qg!=-1?Math.min(this.qg,N.wk):N.wk;this.i9=Math.max(this.i9,N.wk);this.Dl.update(N.wk,y.wk,N.J,e,w);this.aq+=e;N.UQ===0&&(this.Zl+=e);this.N.update(N.UQ,y.UQ,N.J,e,w);y=w||y.cJ!=N.cJ?y.isVisible()&&N.isVisible():y.isVisible();N=!N.isVisible()||N.J;this.Bk.update(y,e,N)};
LK.prototype.RN=function(){return this.Bk.K>=this.VB};if(VC&&VC.URL){var gJZ=VC.URL,VM_;if(VM_=!!gJZ){var f1f;a:{if(gJZ){var tMF=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Js=tMF.exec(decodeURIComponent(gJZ));if(Js){f1f=Js[1]&&Js[1].length>1?Js[1].substring(1):"true";break a}}catch(e){}}f1f=""}VM_=f1f.length>0}no.Hx=!VM_};var uHX=new s7(0,0,0,0);var GaM=new s7(0,0,0,0);g.b(yn,g.x);g.J=yn.prototype;
g.J.fh=function(){if(this.Ho.J){if(this.B5.pF){var e=this.Ho.J;e.removeEventListener&&e.removeEventListener("mouseover",this.B5.pF,ML());this.B5.pF=null}this.B5.sI&&(e=this.Ho.J,e.removeEventListener&&e.removeEventListener("mouseout",this.B5.sI,ML()),this.B5.sI=null)}this.cK&&this.cK.dispose();this.vG&&this.vG.dispose();delete this.j4;delete this.Xf;delete this.Ah;delete this.Ho.Gl;delete this.Ho.J;delete this.B5;delete this.cK;delete this.vG;delete this.RJ;g.x.prototype.fh.call(this)};
g.J.wD=function(){return this.vG?this.vG.J:this.position};
g.J.C4=function(e){fo().C4(e)};
g.J.xb=function(){return!1};
g.J.FQ=function(){return new LK};
g.J.Xe=function(){return this.j4};
g.J.TC=function(e){return aV5(this,e,1E4)};
g.J.GZ=function(e,N,y,w,E,A,T){this.zl||(this.jS&&(e=this.iK(e,y,E,T),w=w&&this.Cw.UQ>=(this.cJ()?.3:.5),this.uN(A,e,w),this.Qy=N,e.UQ>0&&-1===this.Bh&&(this.Bh=N),this.gp==-1&&this.RN()&&(this.gp=N),this.He==-2&&(this.He=eg(this.wD())?e.UQ:-1),this.Cw=e),this.Xf(this))};
g.J.uN=function(e,N,y){this.Xe().update(e,N,this.Cw,y)};
g.J.wc=function(){return new sJ};
g.J.iK=function(e,N,y,w){y=this.wc();y.J=N;N=D5().N;N=FR(VC)===0?-1:N.isVisible()?0:1;y.N=N;y.UQ=this.YM(e);y.cJ=this.cJ();y.wk=w;return y};
g.J.YM=function(e){return this.opacity===0&&T0(this.RJ,"opac")===1?0:e};
g.J.cJ=function(){return!1};
g.J.iC=function(){return this.n1k||this.Ug1};
g.J.IL=function(){O7()};
g.J.Y3=function(){O7()};
g.J.TJ=function(){return 0};
g.J.RN=function(){return this.j4.RN()};
g.J.Vu=function(){var e=this.jS;e=(this.hasCompleted||this.Ss())&&!e;var N=fo().N!==2||this.TQG;return this.zl||N&&e?2:this.RN()?4:3};
g.J.Xw=function(){return 0};g.Eo.prototype.next=function(){return g.pF};
g.pF={done:!0,value:void 0};g.Eo.prototype.SW=function(){return this};g.b(Ah0,sJ);var CF=Jh_([void 0,1,2,3,4,8,16]),rM=Jh_([void 0,4,8,16]),q9Z={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:pG("p0",rM),p1:pG("p1",rM),p2:pG("p2",rM),p3:pG("p3",rM),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Jq("mtos1",[0,2,4],!1,rM),mtos2:Jq("mtos2",[0,2,4],!1,rM),mtos3:Jq("mtos3",[0,2,4],!1,rM),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:pG("a0",rM),a1:pG("a1",rM),a2:pG("a2",rM),a3:pG("a3",rM),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:pG("c0",rM),c1:pG("c1",rM),c2:pG("c2",rM),c3:pG("c3",rM),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:pG("qmtos",CF),qnc:pG("qnc",CF),qmv:pG("qmv",CF),qnv:pG("qnv",CF),
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:pG("ss0",rM),ss1:pG("ss1",rM),ss2:pG("ss2",rM),ss3:pG("ss3",rM),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"},ZMT=Object.assign({},q9Z,{avid:pY("audio"),avas:"avas",vs:"vs"}),x3w={atos:"atos",avt:Jq("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(e,N){return function(y){return y[e]===void 0&&N!==void 0?N:y[e]}}("ss",0),
t:"t"};YV.prototype.getValue=function(){return this.N};
YV.prototype.update=function(e,N){e>=32||(this.J&1<<e&&!N?this.N&=~(1<<e):this.J&1<<e||!N||(this.N|=1<<e),this.J|=1<<e)};g.b(Me,LK);
Me.prototype.update=function(e,N,y,w){if(!N.paused){LK.prototype.update.call(this,e,N,y,w);var E=Te(N)&&Te(y),A=(w?Math.min(N.UQ,y.UQ):y.UQ)>=.5;iG(N.volume)&&(this.j=this.j!=-1?Math.min(this.j,N.volume):N.volume,this.Z=Math.max(this.Z,N.volume));A&&(this.l9+=e,this.D+=E?e:0);this.J.update(N.UQ,y.UQ,N.J,e,w,E);this.K.update(!0,e);this.L.update(E,e);this.Ng.update(y.fullscreen,e);this.Kx.update(E&&!A,e);e=Math.floor(N.mediaTime/1E3);this.Rq.update(e,N.isVisible());this.Ut.update(e,N.UQ>=1);this.Wk.update(e,
Te(N))}};MeM.prototype.N=function(e){this.K||(this.J(e)?(e=PM0(this.D,this.j,e),this.L|=e,e=e==0):e=!1,this.K=e)};g.b(FA,MeM);FA.prototype.J=function(){return!0};
FA.prototype.Z=function(){return!1};
FA.prototype.getId=function(){var e=this,N=IB(IZ,function(y){return y==e.j});
return Oo[N].toString()};
FA.prototype.toString=function(){var e="";this.Z()&&(e+="c");this.K&&(e+="s");this.L>0&&(e+=":"+this.L);return this.getId()+e};g.b(Sg,FA);Sg.prototype.N=function(e,N){N=N===void 0?null:N;N!=null&&this.G.push(N);FA.prototype.N.call(this,e)};g.b(oZ,l7_);oZ.prototype.N=function(){return null};
oZ.prototype.K=function(){return[]};g.b(b6,x0);g.J=b6.prototype;g.J.cX=function(){if(this.element){var e=this.element,N=this.N.J.K;try{try{var y=cfP(e.getBoundingClientRect())}catch(r){y=new s7(0,0,0,0)}var w=y.right-y.left,E=y.bottom-y.top,A=osn(e,N),T=A.x,p=A.y;var C=new s7(Math.round(p),Math.round(T+w),Math.round(p+E),Math.round(T))}catch(r){C=uHX.clone()}this.K=C;this.J=iwF(this,this.K)}};
g.J.q_=function(){this.Z=this.N.j.J};
g.J.eQ=function(e){var N=T0(this.RJ,"od")==1;return RO1(e,this.Z,this.element,N)};
g.J.Oc=function(){this.timestamp=O7()};
g.J.n2=function(){this.Oc();this.cX();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var e=this.element;var N=new g.l8(e.videoWidth,e.videoHeight);e=this.J;var y=ap(e),w=e.getHeight(),E=N.width;N=N.height;E<=0||N<=0||y<=0||w<=0||(E/=N,N=y/w,e=e.clone(),E>N?(y/=E,w=(w-y)/2,w>0&&(w=e.top+w,e.top=Math.round(w),e.bottom=Math.round(w+y))):(w*=E,y=Math.round((y-w)/2),y>0&&(y=e.left+y,e.left=Math.round(y),e.right=Math.round(y+w))));this.J=e}this.q_();
e=this.J;y=this.Z;e=e.left<=y.right&&y.left<=e.right&&e.top<=y.bottom&&y.top<=e.bottom?new s7(Math.max(e.top,y.top),Math.min(e.right,y.right),Math.min(e.bottom,y.bottom),Math.max(e.left,y.left)):new s7(0,0,0,0);y=e.top>=e.bottom||e.left>=e.right?new s7(0,0,0,0):e;e=this.N.j;N=E=w=0;if((this.J.bottom-this.J.top)*(this.J.right-this.J.left)>0)if(this.eQ(y))y=new s7(0,0,0,0);else{w=gm().j;N=new s7(0,w.height,w.width,0);var A;w=Ne(y,(A=this.L)!=null?A:this.J);E=Ne(y,gm().J);N=Ne(y,N)}A=y.top>=y.bottom||
y.left>=y.right?new s7(0,0,0,0):NW(y,-this.J.left,-this.J.top);fK()||(E=w=0);this.D=new wm(e,this.element,this.J,A,w,E,this.timestamp,N)};
g.J.getName=function(){return this.N.getName()};var jPw=new s7(0,0,0,0);g.b(hq,b6);g.J=hq.prototype;g.J.observe=function(){this.j();return!0};
g.J.h$=function(){b6.prototype.n2.call(this)};
g.J.Oc=function(){};
g.J.cX=function(){};
g.J.n2=function(){this.j();b6.prototype.n2.call(this)};
g.J.mC=function(e){e=e.isActive();e!==this.U&&(e?this.j():(gm().J=new s7(0,0,0,0),this.J=new s7(0,0,0,0),this.Z=new s7(0,0,0,0),this.timestamp=-1));this.U=e};var $W={},PX9=($W.firstquartile=0,$W.midpoint=1,$W.thirdquartile=2,$W.complete=3,$W);g.b(kV,yn);g.J=kV.prototype;g.J.xb=function(){return!0};
g.J.Ax=function(){return this.I1==2};
g.J.TC=function(e){return aV5(this,e,Math.max(1E4,this.K/3))};
g.J.GZ=function(e,N,y,w,E,A,T){var p=this,C=this.G(this)||{};g.VM(C,E);this.K=C.duration||this.K;this.D=C.isVpaid||this.D;this.Zl=C.isYouTube||this.Zl;D5();this.Dl=!1;E=SJ5(this,N);FM9(this)===1&&(A=E);yn.prototype.GZ.call(this,e,N,y,w,C,A,T);this.rS&&this.rS.K&&g.$R(this.Z,function(r){r.N(p)})};
g.J.uN=function(e,N,y){yn.prototype.uN.call(this,e,N,y);Pf(this).update(e,N,this.Cw,y);this.VB=Te(this.Cw)&&Te(N);this.i9==-1&&this.Ut&&(this.i9=this.Xe().K.J);this.fN.K=0;e=this.RN();N.isVisible()&&$V(this.fN,"vs");e&&$V(this.fN,"vw");iG(N.volume)&&$V(this.fN,"am");Te(N)?$V(this.fN,"a"):$V(this.fN,"mut");this.Iw&&$V(this.fN,"f");N.N!=-1&&($V(this.fN,"bm"),N.N==1&&($V(this.fN,"b"),Te(N)&&$V(this.fN,"umutb")));Te(N)&&N.isVisible()&&$V(this.fN,"avs");this.VB&&e&&$V(this.fN,"avw");N.UQ>0&&$V(this.fN,
"pv");d6(this,this.Xe().K.J,!0)&&$V(this.fN,"gdr");Gu(this.Xe().N,1)>=2E3&&$V(this.fN,"pmx");this.Dl&&$V(this.fN,"tvoff")};
g.J.FQ=function(){return new Me};
g.J.Xe=function(){return this.j4};
g.J.wc=function(){return new Ah0};
g.J.iK=function(e,N,y,w){e=yn.prototype.iK.call(this,e,N,y,w===void 0?-1:w);e.fullscreen=this.Iw;e.paused=this.Ax();e.volume=y.volume;iG(e.volume)||(this.a9++,N=this.Cw,iG(N.volume)&&(e.volume=N.volume));y=y.currentTime;e.mediaTime=y!==void 0&&y>=0?y:-1;return e};
g.J.YM=function(e){return gm(),this.Iw?1:yn.prototype.YM.call(this,e)};
g.J.TJ=function(){return 1};
g.J.getDuration=function(){return this.K};
g.J.Vu=function(){return this.zl?2:bcF(this)?5:this.RN()?4:3};
g.J.Xw=function(){return this.Kx?this.Xe().L.K>=2E3?4:3:2};
g.J.Ld=function(e){this.vG&&this.vG.Ld(e)};var nJV=g.s9();uLJ.prototype.reset=function(){this.J=[];this.N=[]};
var g6=z0(uLJ);g.b(tq,j2);g.J=tq.prototype;g.J.getName=function(){return(this.N?this.N:this.J).getName()};
g.J.t$=function(){return(this.N?this.N:this.J).t$()};
g.J.hm=function(){return(this.N?this.N:this.J).hm()};
g.J.init=function(e){var N=!1;(0,g.$R)(this.K,function(y){y.initialize()&&(N=!0)});
N&&(this.j=e,qW(this.J,this));return N};
g.J.dispose=function(){(0,g.$R)(this.K,function(e){e.dispose()});
j2.prototype.dispose.call(this)};
g.J.SG=function(){return DR(this.K,function(e){return e.TM()})};
g.J.HV=function(){return DR(this.K,function(e){return e.TM()})};
g.J.c8=function(e,N,y){return new b6(e,this.J,N,y)};
g.J.h$=function(e){this.N=e.N};var KM9={threshold:[0,.3,.5,.75,1]};g.b(u6,b6);g.J=u6.prototype;g.J.observe=function(){var e=this;this.Kh||(this.Kh=O7());if(Jfs(298,function(){return WM5(e)}))return!0;
this.N.hA("msf");return!1};
g.J.unobserve=function(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.U?(this.U.unobserve(this.element),this.U=null):this.G&&(this.G.disconnect(),this.G=null)}catch(e){}};
g.J.n2=function(){var e=qe(this);e.length>0&&Zf(this,e);b6.prototype.n2.call(this)};
g.J.cX=function(){};
g.J.eQ=function(){return!1};
g.J.q_=function(){};
g.J.t$=function(){var e={};return Object.assign(this.N.t$(),(e.niot_obs=this.Kh,e.niot_cbk=this.Ng,e))};
g.J.getName=function(){return"nio"};g.b(xV,j2);xV.prototype.getName=function(){return"nio"};
xV.prototype.HV=function(){return!gm().N&&this.J.J.K.IntersectionObserver!=null};
xV.prototype.c8=function(e,N,y){return new u6(e,this.J,N,y)};g.b(jg,uG);jg.prototype.WW=function(){return gm().J};
jg.prototype.TM=function(){var e=R15();this.U!==e&&(this.J!=this&&e>this.J.U&&(this.J=this,ZR(this)),this.U=e);return e==2};nG.prototype.sample=function(){Hf(this,Vn(),!1)};
nG.prototype.j=function(){var e=fK(),N=O7();e?(G0||(U7=N,g.$R(g6.J,function(y){var w=y.Xe();w.Et=l6(w,N,y.I1!=1)})),G0=!0):(this.G=a7M(this,N),G0=!1,dkM=N,g.$R(g6.J,function(y){y.jS&&(y.Xe().U=N)}));
Hf(this,Vn(),!e)};
var Qn=z0(nG);var Nnn=null,MH="",YD=!1;var EnJ=wQ_().Om,Wf=wQ_().Ae;var Jr9={cok:"visible",Fv9:"audible",YTs:"time",Xsg:"timetype"},pQ0={visible:function(e){return/^(100|[0-9]{1,2})$/.test(e)},
audible:function(e){return e=="0"||e=="1"},
timetype:function(e){return e=="mtos"||e=="tos"},
time:function(e){return/^(100|[0-9]{1,2})%$/.test(e)||/^([0-9])+ms$/.test(e)}};
Tn3.prototype.setTime=function(e,N,y){N=="ms"?(this.K=e,this.j=-1):(this.K=-1,this.j=e);this.L=y===void 0?"tos":y;return this};g.b(Uo,FA);Uo.prototype.getId=function(){return this.G};
Uo.prototype.Z=function(){return!0};
Uo.prototype.J=function(e){var N=e.Xe(),y=e.getDuration();return DR(this.U,function(w){if(w.J!=void 0)var E=rr5(w,N);else b:{switch(w.L){case "mtos":E=w.N?N.L.K:N.K.J;break b;case "tos":E=w.N?N.L.J:N.K.J;break b}E=0}E==0?w=!1:(w=w.K!=-1?w.K:y!==void 0&&y>0?w.j*y:-1,w=w!=-1&&E>=w);return w})};g.b(LG,CXH);LG.prototype.J=function(e){var N=new pNM;N.J=r6(e,q9Z);N.N=r6(e,x3w);return N};g.b(so,FA);so.prototype.J=function(e){return bcF(e)};g.b(aZ,l7_);g.b(ea,FA);ea.prototype.J=function(e){return e.Xe().RN()};g.b(NH,Sg);NH.prototype.J=function(e){var N=g.Gw(this.G,T0(fo().RJ,"ovms"));return!e.zl&&(e.I1!=0||N)};g.b(yx,aZ);yx.prototype.N=function(){return new NH(this.J)};
yx.prototype.K=function(){return[new ea("viewable_impression",this.J),new so(this.J)]};g.b(wN,hq);wN.prototype.j=function(){var e=g.nM("ima.admob.getViewability"),N=T0(this.RJ,"queryid");typeof e==="function"&&N&&e(N)};
wN.prototype.getName=function(){return"gsv"};g.b(EH,j2);EH.prototype.getName=function(){return"gsv"};
EH.prototype.HV=function(){var e=gm();fo();return e.N&&!1};
EH.prototype.c8=function(e,N,y){return new wN(this.J,N,y)};g.b(A7,hq);A7.prototype.j=function(){var e=this,N=g.nM("ima.bridge.getNativeViewability"),y=T0(this.RJ,"queryid");typeof N==="function"&&y&&N(y,function(w){g.v4(w)&&e.G++;var E=w.opt_nativeViewVisibleBounds||{},A=w.opt_nativeViewHidden;e.J=kan(w.opt_nativeViewBounds||{});var T=e.N.j;T.J=A?jPw.clone():kan(E);e.timestamp=w.opt_nativeTime||-1;gm().J=T.J;w=w.opt_nativeVolume;w!==void 0&&(T.volume=w)})};
A7.prototype.getName=function(){return"nis"};g.b(T1,j2);T1.prototype.getName=function(){return"nis"};
T1.prototype.HV=function(){var e=gm();fo();return e.N&&!1};
T1.prototype.c8=function(e,N,y){return new A7(this.J,N,y)};g.b(J7,uG);g.J=J7.prototype;g.J.TM=function(){return this.N.x7!=null};
g.J.PW=function(){var e={};this.Rq&&(e.mraid=this.Rq);this.qg&&(e.mlc=1);e.mtop=this.N.Fyh;this.G&&(e.mse=this.G);this.aq&&(e.msc=1);e.mcp=this.N.compatibility;return e};
g.J.w6=function(e){var N=g.iE.apply(1,arguments);try{return this.N.x7[e].apply(this.N.x7,N)}catch(y){WQ(538,y,.01,function(w){w.method=e})}};
g.J.initialize=function(){var e=this;if(this.isInitialized)return!this.FL();this.isInitialized=!0;if(this.N.compatibility===2)return this.G="ng",this.hA("w"),!1;if(this.N.compatibility===1)return this.G="mm",this.hA("w"),!1;gm().U=!0;this.K.document.readyState&&this.K.document.readyState=="complete"?l5M(this):ad(this.K,"load",function(){D5().setTimeout(Ko(292,function(){return l5M(e)}),100)},292);
return!0};
g.J.z1=function(){var e=gm(),N=hEF(this,"getMaxSize");e.J=new s7(0,N.width,N.height,0)};
g.J.aQ=function(){gm().j=hEF(this,"getScreenSize")};
g.J.dispose=function(){S70(this);uG.prototype.dispose.call(this)};var KV0=new function(e,N){this.key=e;this.defaultValue=N===void 0?!1:N;this.valueType="boolean"}("45378663");g.J=Ck.prototype;g.J.yC=function(e){w6(e,!1);jkH(e)};
g.J.qD=function(){};
g.J.o3=function(e,N,y,w){var E=this;e=new kV(Yn,e,y?N:-1,7,this.IK(),this.G7());e.a$=w;M9s(e.RJ);Ar(e.RJ,"queryid",e.a$);e.C4("");yhn(e,function(){return E.J8.apply(E,g.B(g.iE.apply(0,arguments)))},function(){return E.OhP.apply(E,g.B(g.iE.apply(0,arguments)))});
(w=z0(fG).J)&&s7_(e,w);this.K&&(e.Ld(this.K),this.K=null);e.Ho.Gl&&z0(G3P);return e};
g.J.mC=function(e){switch(e.hm()){case 0:if(e=z0(fG).J)e=e.J,g.Lq(e.L,this),e.D&&this.xb()&&vs0(e);$D();break;case 2:mi()}};
g.J.h$=function(){};
g.J.xb=function(){return!1};
g.J.OhP=function(e,N){e.zl=!0;switch(e.TJ()){case 1:dLn(e,N);break;case 2:this.BT(e)}};
g.J.cWB=function(e){var N=e.G(e);N&&(N=N.volume,e.Kx=iG(N)&&N>0);k3_(e,0);return vf(e,"start",fK())};
g.J.sD=function(e,N,y){Hf(Qn,[e],!fK());return this.H2(e,N,y)};
g.J.H2=function(e,N,y){return vf(e,y,fK())};
g.J.uhh=function(e){return o1(e,"firstquartile",1)};
g.J.ihq=function(e){e.Ut=!0;return o1(e,"midpoint",2)};
g.J.al9=function(e){return o1(e,"thirdquartile",3)};
g.J.AWh=function(e){var N=o1(e,"complete",4);Bf(e);return N};
g.J.hGt=function(e){e.I1=3;return vf(e,"error",fK())};
g.J.nt=function(e,N,y){N=fK();if(e.Ax()&&!N){var w=e.Xe(),E=O7();w.U=E}Hf(Qn,[e],!N);e.Ax()&&(e.I1=1);return vf(e,y,N)};
g.J.zGk=function(e,N){N=this.sD(e,N||{},"skip");Bf(e);return N};
g.J.xgk=function(e,N){w6(e,!0);return this.sD(e,N||{},"fullscreen")};
g.J.llP=function(e,N){w6(e,!1);return this.sD(e,N||{},"exitfullscreen")};
g.J.lx=function(e,N,y){N=e.Xe();var w=O7();N.Et=l6(N,w,e.I1!=1);Hf(Qn,[e],!fK());e.I1==1&&(e.I1=2);return vf(e,y,fK())};
g.J.yWG=function(e){Hf(Qn,[e],!fK());return e.N()};
g.J.YH=function(e){Hf(Qn,[e],!fK());this.Tj(e);Bf(e);return e.N()};
g.J.J8=function(){};
g.J.BT=function(){};
g.J.Tj=function(){};
g.J.d3=function(){};
g.J.DY=function(){};
g.J.G7=function(){this.J||(this.J=this.DY());return this.J==null?new oZ:new yx(this.J)};
g.J.IK=function(){return new LG};g.b(bf,FA);bf.prototype.J=function(e){return e.Xw()==4};g.b(h7,Sg);h7.prototype.J=function(e){e=e.Xw();return e==3||e==4};g.b(cB,aZ);cB.prototype.N=function(){return new h7(this.J)};
cB.prototype.K=function(){return[new bf(this.J)]};g.b(kD,CXH);kD.prototype.J=function(e){e&&(e.e===28&&(e=Object.assign({},e,{avas:3})),e.vs===4||e.vs===5)&&(e=Object.assign({},e,{vs:3}));var N=new pNM;N.J=r6(e,ZMT);N.N=r6(e,x3w);return N};io5.prototype.N=function(){return g.nM(this.J)};g.b(BB,Ck);g.J=BB.prototype;g.J.qD=function(e,N){var y=this,w=z0(fG);if(w.J!=null)switch(w.J.getName()){case "nis":var E=f5E(this,e,N);break;case "gsv":E=VbH(this,e,N);break;case "exc":E=tb5(this,e)}E||(N.opt_overlayAdElement?E=void 0:N.opt_adElement&&(E=vn5(this,e,N.opt_adElement,N.opt_osdId)));E&&E.TJ()==1&&(E.G==g.CY&&(E.G=function(A){return y.d3(A)}),gn5(this,E,N));
return E};
g.J.d3=function(e){e.N=0;e.l9=0;if(e.j=="h"||e.j=="n"){fo();e.Wk&&(fo(),Fb(this)!="h"&&Fb(this));var N=g.nM("ima.common.getVideoMetadata");if(typeof N==="function")try{var y=N(e.a$)}catch(E){e.N|=4}else e.N|=2}else if(e.j=="b")if(N=g.nM("ytads.bulleit.getVideoMetadata"),typeof N==="function")try{y=N(e.a$)}catch(E){e.N|=4}else e.N|=2;else if(e.j=="ml")if(N=g.nM("ima.common.getVideoMetadata"),typeof N==="function")try{y=N(e.a$)}catch(E){e.N|=4}else e.N|=2;else e.N|=1;e.N||(y===void 0?e.N|=8:y===null?
e.N|=16:g.v4(y)?e.N|=32:y.errorCode!=null&&(e.l9=y.errorCode,e.N|=64));y==null&&(y={});N=y;e.U=0;for(var w in D3Z)N[w]==null&&(e.U|=D3Z[w]);zEs(N,"currentTime");zEs(N,"duration");iG(y.volume)&&iG()&&(y.volume*=NaN);return y};
g.J.DY=function(){fo();Fb(this)!="h"&&Fb(this);var e=uR_(this);return e!=null?new io5(e):null};
g.J.BT=function(e){!e.J&&e.zl&&Sa(this,e,"overlay_unmeasurable_impression")&&(e.J=!0)};
g.J.Tj=function(e){e.u7&&(e.RN()?Sa(this,e,"overlay_viewable_end_of_session_impression"):Sa(this,e,"overlay_unviewable_impression"),e.u7=!1)};
g.J.J8=function(){};
g.J.o3=function(e,N,y,w){if(WV_()){var E=T0(fo().RJ,"mm"),A={};(E=(A[tr.gw]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",A[tr.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",A)[E])&&jpn(this,E);this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&WQ(1044,Error())}e=Ck.prototype.o3.call(this,e,N,y,w);this.L&&(N=this.Z,e.L==null&&(e.L=new wNJ),N.J[e.a$]=e.L,e.L.L=nJV);return e};
g.J.yC=function(e){e&&e.TJ()==1&&this.L&&delete this.Z.J[e.a$];return Ck.prototype.yC.call(this,e)};
g.J.G7=function(){this.J||(this.J=this.DY());return this.J==null?new oZ:this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new cB(this.J):new yx(this.J)};
g.J.IK=function(){return this.j==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new kD:new LG};
g.J.Ld=function(e,N,y,w,E){N=new s7(y,N+w,y+E,N);(e=Df(g6,e))?e.Ld(N):this.K=N};
var QPf=HQ(193,QpM,void 0,I5J);g.jM("Goog_AdSense_Lidar_sendVastEvent",QPf);var m3k=Ko(194,function(e,N){N=N===void 0?{}:N;e=xLM(z0(BB),e,N);return nn1(e)});
g.jM("Goog_AdSense_Lidar_getViewability",m3k);var HMq=HQ(195,function(){return jDJ()});
g.jM("Goog_AdSense_Lidar_getUrlSignalsArray",HMq);var KF5=Ko(196,function(){return JSON.stringify(jDJ())});
g.jM("Goog_AdSense_Lidar_getUrlSignalsList",KF5);var mLJ=(new Date("2024-01-01T00:00:00Z")).getTime();var WRE=JnF(["//tpc.googlesyndication.com/sodar/",""]);g.b(gN,g.x);gN.prototype.L3=function(){return this.wpc.f()};
gN.prototype.Mh=function(e){this.wpc.c(e)};
gN.prototype.HF=function(e){return this.wpc.m(ULJ(e))};
gN.prototype.Gr=function(e){return this.wpc.mws(ULJ(e))};
g.b(z1,g.x);z1.prototype.snapshot=function(e){return this.f$.s(Object.assign({},e.qX&&{c:e.qX},e.Tf&&{s:e.Tf},e.oZ!==void 0&&{p:e.oZ}))};
z1.prototype.hd=function(e){this.f$.e(e)};
z1.prototype.lC=function(){return this.f$.l()};var GeJ=(new Date).getTime();var a5_="://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(" "),eGE=/\bocr\b/;var yps=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var bK5=0,o0n=0,hG9=0;var t7=null,qH=!1,YbJ=1,nk=Symbol("SIGNAL"),Qx={version:0,cmZ:0,s0:!1,TI:void 0,dO:void 0,Ap:void 0,rF:0,Qh:void 0,n_:void 0,UN:!1,rY:!1,kind:"unknown",xr:function(){return!1},
iD:function(){},
LD:function(){},
dT9:function(){}};var YW=Symbol("UNSET"),Mn=Symbol("COMPUTING"),lW=Symbol("ERRORED");Object.assign({},Qx,{value:YW,s0:!0,error:null,W5:fk,kind:"computed",xr:function(e){return e.value===YW||e.value===Mn},
iD:function(e){if(e.value===Mn)throw Error("Detected cycle in computations.");var N=e.value;e.value=Mn;var y=Ap0(e),w=!1;try{var E=e.Vv();uf(null);w=N!==YW&&N!==lW&&E!==lW&&e.W5(N,E)}catch(A){E=lW,e.error=A}finally{Tm_(e,y)}w?e.value=N:(e.value=E,e.version++)}});var rpM=Object.assign({},Qx,{W5:fk,value:void 0,kind:"signal"});Object.assign({},Qx,{value:YW,s0:!0,error:null,W5:fk,xr:function(e){return e.value===YW||e.value===Mn},
iD:function(e){if(e.value===Mn)throw Error("Detected cycle in computations.");var N=e.value;e.value=Mn;var y=Ap0(e);try{var w=e.source();var E=e.Vv(w,N===YW||N===lW?void 0:{source:e.KyP,value:N});e.KyP=w}catch(A){E=lW,e.error=A}finally{Tm_(e,y)}N!==YW&&E!==lW&&e.W5(N,E)?e.value=N:(e.value=E,e.version++)}});Object.assign({},Qx,{rY:!0,UN:!1,LD:function(e){e.schedule!==null&&e.schedule(e.DYP)},
K$B:!1,yeW:function(){}});lRP(!0);lRP(!1);var FwM=Object.assign({},{attributes:{},handleError:function(e){throw e;}},{reP:!0,
Ljs:!0,HL:!1,zaW:!1,Aeh:!1,RJq:!1});var cpM=Symbol("updater");g.b(HB,g.Ux);HB.prototype.dispose=function(){window.removeEventListener("offline",this.K);window.removeEventListener("online",this.K);this.hx.Zx(this.L);delete HB.instance};
HB.prototype.E4=function(){return this.J};
HB.prototype.Ga=function(){var e=this;this.L=this.hx.kB(function(){var N;return g.f(function(y){if(y.J==1)return e.J?((N=window.navigator)==null?0:N.onLine)?y.u9(3):g.D(y,mI(e),3):g.D(y,mI(e),3);e.Ga();g.hn(y)})},3E4)};WB.prototype.set=function(e,N){N=N===void 0?!0:N;0<=e&&e<52&&Number.isInteger(e)&&this.data[e]!==N&&(this.data[e]=N,this.J=-1)};
WB.prototype.get=function(e){return!!this.data[e]};var R1;g.e0(g.a1,g.x);g.J=g.a1.prototype;g.J.start=function(){this.stop();this.j=!1;var e=PGE(this),N=dW5(this);e&&!N&&this.N.mozRequestAnimationFrame?(this.J=g.jv(this.N,"MozBeforePaint",this.K),this.N.mozRequestAnimationFrame(null),this.j=!0):this.J=e&&N?e.call(this.N,this.K):this.N.setTimeout(mqJ(this.K),20)};
g.J.stop=function(){if(this.isActive()){var e=PGE(this),N=dW5(this);e&&!N&&this.N.mozRequestAnimationFrame?Ox(this.J):e&&N?N.call(this.N,this.J):this.N.clearTimeout(this.J)}this.J=null};
g.J.isActive=function(){return this.J!=null};
g.J.PO=function(){this.j&&this.J&&Ox(this.J);this.J=null;this.Z.call(this.L,g.s9())};
g.J.fh=function(){this.stop();g.a1.cw.fh.call(this)};g.e0(g.e6,g.x);g.J=g.e6.prototype;g.J.GM=0;g.J.fh=function(){g.e6.cw.fh.call(this);this.stop();delete this.J;delete this.N};
g.J.start=function(e){this.stop();this.GM=g.Bc(this.K,e!==void 0?e:this.uR)};
g.J.stop=function(){this.isActive()&&g.xJ.clearTimeout(this.GM);this.GM=0};
g.J.isActive=function(){return this.GM!=0};
g.J.RQ=function(){this.GM=0;this.J&&this.J.call(this.N)};g.E2.prototype[Symbol.iterator]=function(){return this};
g.E2.prototype.next=function(){var e=this.J.next();return{value:e.done?void 0:this.N.call(void 0,e.value),done:e.done}};g.e0(g.MA,g.Ux);g.J=g.MA.prototype;g.J.isPlaying=function(){return this.J==1};
g.J.isPaused=function(){return this.J==-1};
g.J.Y2=function(){this.MA("begin")};
g.J.m$=function(){this.MA("end")};
g.J.onFinish=function(){this.MA("finish")};
g.J.onStop=function(){this.MA("stop")};
g.J.MA=function(e){this.dispatchEvent(e)};var WFf=rR(function(){var e=g.sA("DIV"),N=g.RB?"-webkit":Y0?"-moz":null,y="transition:opacity 1s linear;";N&&(y+=N+"-transition:opacity 1s linear;");N=UgJ({style:y});if(e.nodeType===1&&/^(script|style)$/i.test(e.tagName))throw Error("");e.innerHTML=ux(N);return g.MW(e.firstChild,"transition")!=""});g.e0(ln,g.MA);g.J=ln.prototype;g.J.play=function(){if(this.isPlaying())return!1;this.Y2();this.MA("play");this.startTime=g.s9();this.J=1;if(WFf())return g.$0(this.N,this.Z),this.K=g.Bc(this.rug,void 0,this),!0;this.PR(!1);return!1};
g.J.rug=function(){g.Be(this.N);zG5(this.N,this.G);g.$0(this.N,this.j);this.K=g.Bc((0,g.Gs)(this.PR,this,!1),this.L*1E3)};
g.J.stop=function(){this.isPlaying()&&this.PR(!0)};
g.J.PR=function(e){g.$0(this.N,"transition","");g.xJ.clearTimeout(this.K);g.$0(this.N,this.j);this.endTime=g.s9();this.J=0;if(e)this.onStop();else this.onFinish();this.m$()};
g.J.fh=function(){this.stop();ln.cw.fh.call(this)};
g.J.pause=function(){};var DWs={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};FM("Element","attributes")||FM("Node","attributes");FM("Element","innerHTML")||FM("HTMLElement","innerHTML");FM("Node","nodeName");FM("Node","nodeType");FM("Node","parentNode");FM("Node","childNodes");FM("HTMLElement","style")||FM("Element","style");FM("HTMLStyleElement","sheet");var qbP=V2E("getPropertyValue"),ZK5=V2E("setProperty");FM("Element","namespaceURI")||FM("Node","namespaceURI");var u0M={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var QdF,YQ0,n0E,jdE,mW0;QdF=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]");YQ0=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.OMT=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.or=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]");n0E=/^http:\/\/.*/;g.R5T=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");jdE=/\s+/;mW0=/[\d\u06f0-\u06f9]/;h4.prototype.SW=function(){return new cD(this.N())};
h4.prototype[Symbol.iterator]=function(){return new k1(this.N())};
h4.prototype.J=function(){return new k1(this.N())};
g.b(cD,g.Eo);cD.prototype.next=function(){return this.N.next()};
cD.prototype[Symbol.iterator]=function(){return new k1(this.N)};
cD.prototype.J=function(){return new k1(this.N)};
g.b(k1,h4);k1.prototype.next=function(){return this.K.next()};XM.prototype.clone=function(){return new XM(this.J,this.G,this.K,this.L,this.j,this.Z,this.N,this.U)};
XM.prototype.Bw=function(e){return this.J==e.J&&this.G==e.G&&this.K==e.K&&this.L==e.L&&this.j==e.j&&this.Z==e.Z&&this.N==e.N&&this.U==e.U};de.prototype.clone=function(){return new de(this.start,this.end)};
de.prototype.getLength=function(){return this.end-this.start};(function(){if(kn_){var e=/Windows NT ([0-9.]+)/;return(e=e.exec(g.zw()))?e[1]:"0"}return HT?(e=/1[0|1][_.][0-9_.]+/,(e=e.exec(g.zw()))?e[0].replace(/_/g,"."):"10"):g.NI?(e=/Android\s+([^\);]+)(\)|;)/,(e=e.exec(g.zw()))?e[1]:""):XA5||P1E||dj_?(e=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(e=e.exec(g.zw()))?e[1].replace(/_/g,"."):""):""})();var Kw9=function(){if(g.DT)return Ir(/Firefox\/([0-9.]+)/);if(g.S6||g.Um||g.oK)return C_1;if(g.i$){if(mf()||H_()){var e=Ir(/CriOS\/([0-9.]+)/);if(e)return e}return Ir(/Chrome\/([0-9.]+)/)}if(g.k$&&!mf())return Ir(/Version\/([0-9.]+)/);if(s8||ay){if(e=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.zw()))return e[1]+"."+e[2]}else if(g.bd)return(e=Ir(/Android\s+([0-9.]+)/))?e:Ir(/Version\/([0-9.]+)/);return""}();g.e0(g.zY,g.x);g.J=g.zY.prototype;g.J.subscribe=function(e,N,y){var w=this.N[e];w||(w=this.N[e]=[]);var E=this.Z;this.J[E]=e;this.J[E+1]=N;this.J[E+2]=y;this.Z=E+3;w.push(E);return E};
g.J.unsubscribe=function(e,N,y){if(e=this.N[e]){var w=this.J;if(e=e.find(function(E){return w[E+1]==N&&w[E+2]==y}))return this.qr(e)}return!1};
g.J.qr=function(e){var N=this.J[e];if(N){var y=this.N[N];this.j!=0?(this.K.push(e),this.J[e+1]=function(){}):(y&&g.Lq(y,e),delete this.J[e],delete this.J[e+1],delete this.J[e+2])}return!!N};
g.J.publish=function(e,N){var y=this.N[e];if(y){var w=Array(arguments.length-1),E=arguments.length,A;for(A=1;A<E;A++)w[A-1]=arguments[A];if(this.G)for(A=0;A<y.length;A++)E=y[A],Ww1(this.J[E+1],this.J[E+2],w);else{this.j++;try{for(A=0,E=y.length;A<E&&!this.Ss();A++){var T=y[A];this.J[T+1].apply(this.J[T+2],w)}}finally{if(this.j--,this.K.length>0&&this.j==0)for(;y=this.K.pop();)this.qr(y)}}return A!=0}return!1};
g.J.clear=function(e){if(e){var N=this.N[e];N&&(N.forEach(this.qr,this),delete this.N[e])}else this.J.length=0,this.N={}};
g.J.fh=function(){g.zY.cw.fh.call(this);this.clear();this.K.length=0};g.D6.prototype.set=function(e,N){N===void 0?this.J.remove(e):this.J.set(e,g.ID(N))};
g.D6.prototype.get=function(e){try{var N=this.J.get(e)}catch(y){return}if(N!==null)try{return JSON.parse(N)}catch(y){throw"Storage: Invalid value was encountered";}};
g.D6.prototype.remove=function(e){this.J.remove(e)};g.e0(ge,g.D6);ge.prototype.set=function(e,N){ge.cw.set.call(this,e,RGM(N))};
ge.prototype.N=function(e){e=ge.cw.get.call(this,e);if(e===void 0||e instanceof Object)return e;throw"Storage: Invalid value was encountered";};
ge.prototype.get=function(e){if(e=this.N(e)){if(e=e.data,e===void 0)throw"Storage: Invalid value was encountered";}else e=void 0;return e};g.e0(VE,ge);VE.prototype.set=function(e,N,y){if(N=RGM(N)){if(y){if(y<g.s9()){VE.prototype.remove.call(this,e);return}N.expiration=y}N.creation=g.s9()}VE.cw.set.call(this,e,N)};
VE.prototype.N=function(e,N){var y=VE.cw.N.call(this,e);if(y)if(!N&&g.Gu5(y))VE.prototype.remove.call(this,e);else return y};g.e0(g.fi,VE);g.e0(t4,UWH);t4.prototype[Symbol.iterator]=function(){return g.BD(this.SW(!0)).J()};
t4.prototype.clear=function(){var e=Array.from(this);e=g.c(e);for(var N=e.next();!N.done;N=e.next())this.remove(N.value)};g.e0(un,t4);g.J=un.prototype;g.J.isAvailable=function(){var e=this.J;if(e)try{e.setItem("__sak","1");e.removeItem("__sak");var N=!0}catch(y){N=y instanceof DOMException&&(y.name==="QuotaExceededError"||y.code===22||y.code===1014||y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&e&&e.length!==0}else N=!1;return this.N=N};
g.J.set=function(e,N){qA(this);try{this.J.setItem(e,N)}catch(y){if(this.J.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.J.get=function(e){qA(this);e=this.J.getItem(e);if(typeof e!=="string"&&e!==null)throw"Storage mechanism: Invalid value was encountered";return e};
g.J.remove=function(e){qA(this);this.J.removeItem(e)};
g.J.SW=function(e){qA(this);var N=0,y=this.J,w=new g.Eo;w.next=function(){if(N>=y.length)return g.pF;var E=y.key(N++);if(e)return g.Aq(E);E=y.getItem(E);if(typeof E!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Aq(E)};
return w};
g.J.clear=function(){qA(this);this.J.clear()};
g.J.key=function(e){qA(this);return this.J.key(e)};g.e0(Z6,un);g.e0(Lw5,un);g.e0(x1,t4);x1.prototype.set=function(e,N){this.N.set(this.J+e,N)};
x1.prototype.get=function(e){return this.N.get(this.J+e)};
x1.prototype.remove=function(e){this.N.remove(this.J+e)};
x1.prototype.SW=function(e){var N=this.N[Symbol.iterator](),y=this,w=new g.Eo;w.next=function(){var E=N.next();if(E.done)return E;for(E=E.value;E.slice(0,y.J.length)!=y.J;){E=N.next();if(E.done)return E;E=E.value}return g.Aq(e?E.slice(y.J.length):y.N.get(E))};
return w};ni.prototype.getValue=function(){return this.N};
ni.prototype.clone=function(){return new ni(this.J,this.N)};g.J=QE.prototype;g.J.J1=function(e,N){var y=this.J;y.push(new ni(e,N));e=y.length-1;N=this.J;for(y=N[e];e>0;){var w=e-1>>1;if(N[w].J>y.J)N[e]=N[w],e=w;else break}N[e]=y};
g.J.remove=function(){var e=this.J,N=e.length,y=e[0];if(!(N<=0)){if(N==1)e.length=0;else{e[0]=e.pop();e=0;N=this.J;for(var w=N.length,E=N[e];e<w>>1;){var A=e*2+1,T=e*2+2;A=T<w&&N[T].J<N[A].J?T:A;if(N[A].J>E.J)break;N[e]=N[A];e=A}N[e]=E}return y.getValue()}};
g.J.WP=function(){for(var e=this.J,N=[],y=e.length,w=0;w<y;w++)N.push(e[w].getValue());return N};
g.J.Nk=function(){for(var e=this.J,N=[],y=e.length,w=0;w<y;w++)N.push(e[w].J);return N};
g.J.clone=function(){return new QE(this)};
g.J.isEmpty=function(){return this.J.length===0};
g.J.clear=function(){this.J.length=0};g.b(m7,QE);m7.prototype.enqueue=function(e,N){this.J1(e,N)};HD.GS=void 0;HD.getInstance=function(){return HD.GS?HD.GS:HD.GS=new HD};
HD.prototype.J=0;var Ki={},Gs0=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Ki.assign=function(e){for(var N=Array.prototype.slice.call(arguments,1);N.length;){var y=N.shift();if(y){if(typeof y!=="object")throw new TypeError(y+"must be non-object");for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(e[w]=y[w])}}return e};
Ki.LQ=function(e,N){if(e.length===N)return e;if(e.subarray)return e.subarray(0,N);e.length=N;return e};
var U3q={mT:function(e,N,y,w,E){if(N.subarray&&e.subarray)e.set(N.subarray(y,y+w),E);else for(var A=0;A<w;A++)e[E+A]=N[y+A]},
Oe:function(e){var N,y;var w=y=0;for(N=e.length;w<N;w++)y+=e[w].length;var E=new Uint8Array(y);w=y=0;for(N=e.length;w<N;w++){var A=e[w];E.set(A,y);y+=A.length}return E}},LFM={mT:function(e,N,y,w,E){for(var A=0;A<w;A++)e[E+A]=N[y+A]},
Oe:function(e){return[].concat.apply([],e)}};
Ki.gzG=function(){Gs0?(Ki.iV=Uint8Array,Ki.Xb=Uint16Array,Ki.J7=Int32Array,Ki.assign(Ki,U3q)):(Ki.iV=Array,Ki.Xb=Array,Ki.J7=Array,Ki.assign(Ki,LFM))};
Ki.gzG();var sPw=!0;try{new Uint8Array(1)}catch(e){sPw=!1};var SC={};SC=function(e,N,y,w){var E=e&65535|0;e=e>>>16&65535|0;for(var A;y!==0;){A=y>2E3?2E3:y;y-=A;do E=E+N[w++]|0,e=e+E|0;while(--A);E%=65521;e%=65521}return E|e<<16|0};for(var oG={},Fp,a10=[],SW=0;SW<256;SW++){Fp=SW;for(var eX_=0;eX_<8;eX_++)Fp=Fp&1?3988292384^Fp>>>1:Fp>>>1;a10[SW]=Fp}oG=function(e,N,y,w){y=w+y;for(e^=-1;w<y;w++)e=e>>>8^a10[(e^N[w])&255];return e^-1};var JT={};JT={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 eC=[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],wx=[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],cqE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C6M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$r=Array(576);WD($r);var Yr=Array(60);WD(Yr);var y2=Array(512);WD(y2);var ar=Array(256);WD(ar);var Ny=Array(29);WD(Ny);var Ea=Array(30);WD(Ea);var oVJ,bGP,hx9,SoF=!1;var Bz;Bz=[new kr(0,0,0,0,function(e,N){var y=65535;for(y>e.jz-5&&(y=e.jz-5);;){if(e.MU<=1){bg(e);if(e.MU===0&&N===0)return 1;if(e.MU===0)break}e.zW+=e.MU;e.MU=0;var w=e.En+y;if(e.zW===0||e.zW>=w)if(e.MU=e.zW-w,e.zW=w,My(e,!1),e.I2.qP===0)return 1;if(e.zW-e.En>=e.r4-262&&(My(e,!1),e.I2.qP===0))return 1}e.J1=0;if(N===4)return My(e,!0),e.I2.qP===0?3:4;e.zW>e.En&&My(e,!1);return 1}),
new kr(4,4,8,4,hT),new kr(4,5,16,8,hT),new kr(4,6,32,32,hT),new kr(4,4,16,16,cz),new kr(8,16,32,32,cz),new kr(8,16,128,128,cz),new kr(8,32,128,256,cz),new kr(32,128,258,1024,cz),new kr(32,258,258,4096,cz)];var Fi0={};Fi0=function(){this.input=null;this.jx=this.o$=this.FY=0;this.output=null;this.JY=this.qP=this.UW=0;this.msg="";this.state=null;this.K3=2;this.Z_=0};var keE=Object.prototype.toString;
Xg.prototype.push=function(e,N){var y=this.I2,w=this.options.chunkSize;if(this.ended)return!1;var E=N===~~N?N:N===!0?4:0;typeof e==="string"?y.input=sdn(e):keE.call(e)==="[object ArrayBuffer]"?y.input=new Uint8Array(e):y.input=e;y.FY=0;y.o$=y.input.length;do{y.qP===0&&(y.output=new Ki.iV(w),y.UW=0,y.qP=w);e=lfJ(y,E);if(e!==1&&e!==0)return this.m$(e),this.ended=!0,!1;if(y.qP===0||y.o$===0&&(E===4||E===2))if(this.options.ZF==="string"){var A=Ki.LQ(y.output,y.UW);N=A;A=A.length;if(A<65537&&(N.subarray&&
sPw||!N.subarray))N=String.fromCharCode.apply(null,Ki.LQ(N,A));else{for(var T="",p=0;p<A;p++)T+=String.fromCharCode(N[p]);N=T}this.chunks.push(N)}else N=Ki.LQ(y.output,y.UW),this.chunks.push(N)}while((y.o$>0||y.qP===0)&&e!==1);if(E===4)return(y=this.I2)&&y.state?(w=y.state.status,w!==42&&w!==69&&w!==73&&w!==91&&w!==103&&w!==113&&w!==666?e=pb(y,-2):(y.state=null,e=w===113?pb(y,-3):0)):e=-2,this.m$(e),this.ended=!0,e===0;E===2&&(this.m$(0),y.qP=0);return!0};
Xg.prototype.m$=function(e){e===0&&(this.result=this.options.ZF==="string"?this.chunks.join(""):Ki.Oe(this.chunks));this.chunks=[];this.err=e;this.msg=this.I2.msg};var dx="@@redux/INIT"+Pz(),vVJ="@@redux/REPLACE"+Pz();var zxF=typeof Symbol==="function"&&Symbol.observable||"@@observable";var N5w=[0,AnT,-3,EO];g.b(zz,qq);zz.prototype.getType=function(){return lV(this,11)};var jiM=function(){var e=[0,Jnf,T_w,eW,AnT,eW,-1,EO,AnT,EO,-1,Jnf,EO,T_w,Nn,N5w,eW,-1,EO];return function(N,y){if(aa.length){var w=aa.pop();vR9(w,y);w.J.init(N,void 0,void 0,y);N=w}else N=new D8(N,y);try{var E=new zz,A=E.wT;wG(e)(A,N);var T=E}finally{N.free()}return T}}();var Vg3=-1945370920;var K1M=new g.ig("adInfoDialogEndpoint");var r0J=new g.ig("adPingingEndpoint");var DEE=new g.ig("crossDeviceProgressCommand");var Lt=new g.ig("actionCompanionAdRenderer");var pd=new g.ig("adActionInterstitialRenderer");var yVq=new g.ig("adDurationRemainingRenderer");var IQ=new g.ig("adHoverTextButtonRenderer");var m7P=new g.ig("adInfoDialogRenderer");var ps=new g.ig("adMessageRenderer");var vr=new g.ig("adPreviewRenderer");var aX=new g.ig("adsEngagementPanelRenderer");var w8P=new g.ig("dismissablePanelTextPortraitImageRenderer");var Nv1=new g.ig("adsEngagementPanelSectionListViewModel");var w_X=new g.ig("flyoutCtaRenderer");var s_=new g.ig("imageCompanionAdRenderer");var TS=new g.ig("instreamAdPlayerOverlayRenderer");var gcM=new g.ig("instreamSurveyAdBackgroundImageRenderer");var dj=new g.ig("instreamSurveyAdPlayerOverlayRenderer");var Sj=new g.ig("instreamSurveyAdRenderer"),Pr=new g.ig("instreamSurveyAdSingleSelectQuestionRenderer"),X4=new g.ig("instreamSurveyAdMultiSelectQuestionRenderer"),oH=new g.ig("instreamSurveyAdAnswerRenderer"),Eww=new g.ig("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var lS=new g.ig("instreamVideoAdRenderer");var AVw=new g.ig("textOverlayAdContentRenderer"),T5T=new g.ig("enhancedTextOverlayAdContentRenderer"),JVk=new g.ig("imageOverlayAdContentRenderer");var JG=new g.ig("playerOverlayLayoutRenderer");var Cd=new g.ig("videoInterstitialButtonedCenteredLayoutRenderer");var p89=new g.ig("aboveFeedAdLayoutRenderer");var CI5=new g.ig("belowPlayerAdLayoutRenderer");var JCH=new g.ig("inPlayerAdLayoutRenderer");var he=new g.ig("playerBytesAdLayoutRenderer");var rCF=new g.ig("playerBytesSequenceItemAdLayoutRenderer");var Br=new g.ig("playerUnderlayAdLayoutRenderer");var F4=new g.ig("adIntroRenderer");var TR=new g.ig("playerBytesSequentialLayoutRenderer");var mfF=new g.ig("slidingTextPlayerOverlayRenderer");var oQ=new g.ig("surveyTextInterstitialRenderer");var $fn=new g.ig("videoAdTrackingRenderer");var p_5=new g.ig("simpleAdBadgeRenderer");var yV=new g.ig("skipAdRenderer"),C_Z=new g.ig("skipButtonRenderer");var gj=new g.ig("adSlotRenderer");var cr=new g.ig("squeezebackPlayerSidePanelRenderer");var rVk=new g.ig("timedPieCountdownRenderer");var mO=new g.ig("adAvatarViewModel");var Hv=new g.ig("adBadgeViewModel");var Ke=new g.ig("adButtonViewModel");var $Mw=new g.ig("adDetailsLineViewModel");var Ykf=new g.ig("adDisclosureBannerViewModel");var M0Z=new g.ig("adPodIndexViewModel");var lZV=new g.ig("imageBackgroundViewModel");var Ffw=new g.ig("adGridCardCollectionViewModel");var Skq=new g.ig("adGridCardTextViewModel");var owT=new g.ig("adPreviewViewModel");var bq0=new g.ig("playerAdAvatarLockupCardButtonedViewModel");var hXk=new g.ig("skipAdButtonViewModel");var cV5=new g.ig("skipAdViewModel");var kwk=new g.ig("timedPieCountdownViewModel");var B5f=new g.ig("visitAdvertiserLinkViewModel");var ej=new g.ig("bannerImageLayoutViewModel");var N2=new g.ig("topBannerImageTextIconButtonedLayoutViewModel");var yw=new g.ig("adsEngagementPanelLayoutViewModel");var kt=new g.ig("displayUnderlayTextGridCardsLayoutViewModel");g.S5=new g.ig("browseEndpoint");var X_f=new g.ig("confirmDialogEndpoint");var MuP=new g.ig("rawColdConfigGroup");var YFM=new g.ig("rawHotConfigGroup");g.o4=new g.ig("commandExecutorCommand");g.b(uAM,qq);var W51={qRP:0,SRh:1,o7h:32,X_P:61,MLZ:67,erl:103,WKt:86,Gcq:42,E7q:60,RrW:62,YRt:73,mkh:76,v7s:88,g79:90,QYG:99,Tqk:98,VLG:100,n7P:102,INP:41,Dkk:69,sYs:70,p2B:71,hDl:2,lk1:27,ANDROID:3,ops:54,EpG:14,gpt:91,BzW:55,mrB:24,np1:20,Y_P:18,Urt:21,W3k:104,MYG:30,Drk:29,sVk:28,ilW:101,ppP:34,VY9:36,XIk:38,IOS:5,wcq:15,zfW:92,qnW:40,Ayk:25,hfq:17,l31:19,uHG:64,xOW:66,iEq:26,a3t:22,SnB:33,dOB:68,Rfq:35,yy9:53,cyk:37,OEP:39,DAl:7,sOG:57,p_P:43,JxZ:59,FKq:93,IK1:74,Nqq:75,kch:85,KKh:65,fN1:80,jYl:8,QO9:10,
w_G:58,blk:63,tL9:72,QVh:23,NfW:11,kJg:13,CRW:12,IcW:16,Hlq:56,UkP:31,q$1:77,Gxh:84,BqP:87,EXh:89,oXh:94,DOg:95};g.b(DO,qq);DO.prototype.l_=function(){return Mq(this,3)};
DO.prototype.Sk=function(){return Mq(this,5)};
DO.prototype.K2=function(e){return Sn(this,5,e)};g.b(gx,qq);g.b(qoJ,qq);g.b(V2,qq);g.J=V2.prototype;g.J.getDeviceId=function(){return Mq(this,6)};
g.J.cZ=function(e){var N=WW(this,9,Cm,3,void 0,!0);nf(N,e);return N[e]};
g.J.getPlayerType=function(){return lV(this,36)};
g.J.setHomeGroupInfo=function(e){return JQ(this,qoJ,81,e)};
g.J.clearLocationPlayabilityToken=function(){return j4(this,89)};g.b(fb,qq);fb.prototype.getValue=function(){return Mq(this,yH(this,r2E)===2?2:-1)};
var r2E=[2,3,4,5,6];g.b(tT,qq);tT.prototype.setTrackingParams=function(e){return j4(this,1,iqM(e,!1))};g.b(ug,qq);g.b(qy,qq);qy.prototype.cZ=function(e){var N=WW(this,5,ra,3,void 0,!0);nf(N,e);return N[e]};g.b(ZO,qq);ZO.prototype.getToken=function(){return $f(this,2)};
ZO.prototype.setToken=function(e){return Sn(this,2,e)};g.b(xr,qq);xr.prototype.setSafetyMode=function(e){return bV(this,5,e)};g.b(jC,qq);jC.prototype.JE=function(e){return JQ(this,V2,1,e)};var iS=new g.ig("thumbnailLandscapePortraitRenderer");g.P_V=new g.ig("changeEngagementPanelVisibilityAction");var FKP=new g.ig("continuationCommand");g.dMq=new g.ig("openPopupAction");g.bW=new g.ig("webCommandMetadata");var kRF=new g.ig("metadataBadgeRenderer");var lx0=new g.ig("signalServiceEndpoint");var ZL=new g.ig("innertubeCommand");var yxH=new g.ig("loggingDirectives");var BNs={j1W:"EMBEDDED_PLAYER_MODE_UNKNOWN",KSl:"EMBEDDED_PLAYER_MODE_DEFAULT",fxh:"EMBEDDED_PLAYER_MODE_PFP",t1s:"EMBEDDED_PLAYER_MODE_PFL"};var RQM=new g.ig("channelThumbnailEndpoint");var ONM=new g.ig("embeddedPlayerErrorMessageRenderer");var m23=new g.ig("embeddedPlayerOverlayVideoDetailsRenderer"),GRP=new g.ig("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),U23=new g.ig("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var bNM=new g.ig("embedsInfoPanelRenderer");var IZw=new g.ig("feedbackEndpoint");var vwX=new g.ig("callToActionButtonViewModel");var zXF=new g.ig("interactionLoggingCommandMetadata");var bb5={LKs:"WEB_DISPLAY_MODE_UNKNOWN",CLg:"WEB_DISPLAY_MODE_BROWSER",ZlW:"WEB_DISPLAY_MODE_MINIMAL_UI",rx1:"WEB_DISPLAY_MODE_STANDALONE",PLP:"WEB_DISPLAY_MODE_FULLSCREEN"};g.b(nb,qq);nb.prototype.getPlayerType=function(){return lV(this,7)};
nb.prototype.vE=function(){return Mq(this,19)};
nb.prototype.setVideoId=function(e){return Sn(this,19,e)};g.b(Q2,qq);g.b(Kb,qq);g.b(Wz,qq);
var iqq=[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];var DM5=new g.ig("loggingContext");g.b(Oa,qq);g.b(RG,qq);RG.prototype.vE=function(){return $f(this,yH(this,$g)===1?1:-1)};
RG.prototype.setVideoId=function(e){return en(this,1,$g,cW(e))};
RG.prototype.getPlaylistId=function(){return $f(this,yH(this,$g)===2?2:-1)};
var $g=[1,2];g.b(ZG5,qq);var K3=new g.ig("changeKeyedMarkersVisibilityCommand");var gw0=new g.ig("changeMarkersVisibilityCommand");var XrP=new g.ig("loadMarkersCommand");var V00=new g.ig("suggestedActionDataViewModel");var oyH=new g.ig("timelyActionViewModel");var SL0=new g.ig("timelyActionsOverlayViewModel");var kdM=new g.ig("productListItemRenderer");var fZw=new g.ig("shoppingOverlayRenderer");var HN5=new g.ig("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var t0f=new g.ig("adFeedbackEndpoint");var uFw=new g.ig("menuEndpoint");var uOJ=new g.ig("phoneDialerEndpoint");var fg5=new g.ig("sendSmsEndpoint");var QQn=new g.ig("copyTextEndpoint");var qk5=new g.ig("shareEndpoint"),Zqf=new g.ig("shareEntityEndpoint"),xM0=new g.ig("shareEntityServiceEndpoint"),jwT=new g.ig("webPlayerShareEntityServiceEndpoint");g.qu=new g.ig("urlEndpoint");g.m0=new g.ig("watchEndpoint");var nw5=new g.ig("watchPlaylistEndpoint");g.QwM=new g.ig("offlineOrchestrationActionCommand");var A9F=new g.ig("compositeVideoOverlayRenderer");var mMV=new g.ig("miniplayerRenderer");var jQs=new g.ig("paidContentOverlayRenderer");var HqF=new g.ig("playerMutedAutoplayOverlayRenderer"),KfX=new g.ig("playerMutedAutoplayEndScreenRenderer");var fpn=new g.ig("unserializedPlayerResponse"),Wff=new g.ig("unserializedPlayerResponse");var Oq_=new g.ig("playlistEditEndpoint");var hs;g.zR=new g.ig("buttonRenderer");hs=new g.ig("toggleButtonRenderer");var edF=new g.ig("counterfactualRenderer");var RX5=new g.ig("resolveUrlCommandMetadata");var Gw0=new g.ig("modifyChannelNotificationPreferenceEndpoint");var CAs=new g.ig("pingingEndpoint");var UMk=new g.ig("unsubscribeEndpoint");g.o$=new g.ig("subscribeButtonRenderer");var Lf_=new g.ig("subscribeEndpoint");var p13=new g.ig("buttonViewModel");var yCH=new g.ig("qrCodeRenderer");var Ryn={WWP:"LIVING_ROOM_APP_MODE_UNSPECIFIED",YnG:"LIVING_ROOM_APP_MODE_MAIN",nIs:"LIVING_ROOM_APP_MODE_KIDS",XcG:"LIVING_ROOM_APP_MODE_MUSIC",UOW:"LIVING_ROOM_APP_MODE_UNPLUGGED",mOh:"LIVING_ROOM_APP_MODE_GAMING"};var F9M=new g.ig("autoplaySwitchButtonRenderer");var Sx,pj5,nAE,hU3;Sx=new g.ig("decoratedPlayerBarRenderer");pj5=new g.ig("chapteredPlayerBarRenderer");nAE=new g.ig("multiMarkersPlayerBarRenderer");hU3=new g.ig("chapterRenderer");g.YOE=new g.ig("markerRenderer");var swM=new g.ig("decoratedPlayheadRenderer");var hQE=new g.ig("desktopOverlayConfigRenderer");var ECE=new g.ig("engagementPanelSectionListRenderer");var otM=new g.ig("gatedActionsOverlayViewModel");var SOJ=new g.ig("heatMarkerRenderer");var Fgs=new g.ig("heatmapRenderer");var BjM=new g.ig("watchToWatchTransitionRenderer");var K9_=new g.ig("playlistPanelRenderer");var aZ_=new g.ig("productUpsellSuggestedActionViewModel");var ejk=new g.ig("suggestedActionTimeRangeTrigger"),NrF=new g.ig("suggestedActionsRenderer"),yO_=new g.ig("suggestedActionRenderer");var oWJ=new g.ig("timedMarkerDecorationRenderer");var E6n=new g.ig("cipher");var tm5=new g.ig("playerVars");var wm5=new g.ig("playerVars");var cj=g.xJ.window,ERf,AOX,Gz=(cj==null?void 0:(ERf=cj.yt)==null?void 0:ERf.config_)||(cj==null?void 0:(AOX=cj.ytcfg)==null?void 0:AOX.data_)||{};g.jM("yt.config_",Gz);var aG=[];var Rx0=/^[\w.]*$/,HGM={q:!0,search_query:!0},meM=String(w2);var MR=new function(){var e=window.document;this.J=window;this.N=e};
g.jM("yt.ads_.signals_.getAdSignalsString",function(e){return E8(Fj(e))});g.s9();var Ue0="XMLHttpRequest"in g.xJ?function(){return new XMLHttpRequest}:null;var Trk="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.B(Trk);var eh3={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"},NN9="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.B(Trk)),Cf1=!1,sZE=y7n,TNP=vL;g.b(DJ,FF);fp.prototype.then=function(e,N,y){return this.J?this.J.then(e,N,y):this.K===1&&e?(e=e.call(y,this.N))&&typeof e.then==="function"?e:u4(e):this.K===2&&N?(e=N.call(y,this.N))&&typeof e.then==="function"?e:tE(e):this};
fp.prototype.getValue=function(){return this.N};
fp.prototype.$goog_Thenable=!0;var qR=!1;var Gv=s8||ay;var c7_=/^([0-9\.]+):([0-9\.]+)$/;g.b(lY,FF);lY.prototype.name="BiscottiError";g.b(MI,FF);MI.prototype.name="BiscottiMissingError";var PfJ={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Fc=null;var Ba3=JnF(["data-"]),fS1={};var JOk=0,Su=g.RB?"webkit":Y0?"moz":g.S6?"ms":g.oK?"o":"",pmF=g.nM("ytDomDomGetNextId")||function(){return++JOk};
g.jM("ytDomDomGetNextId",pmF);var Zks={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};BE.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
BE.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
BE.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Xc=g.xJ.ytEventsEventsListeners||{};g.jM("ytEventsEventsListeners",Xc);var nD0=g.xJ.ytEventsEventsCounter||{count:0};g.jM("ytEventsEventsCounter",nD0);var KI1=rR(function(){var e=!1;try{var N=Object.defineProperty({},"passive",{get:function(){e=!0}});
window.addEventListener("test",null,N)}catch(y){}return e}),Q19=rR(function(){var e=!1;
try{var N=Object.defineProperty({},"capture",{get:function(){e=!0}});
window.addEventListener("test",null,N)}catch(y){}return e});var kW;kW=window;g.iC=kW.ytcsi&&kW.ytcsi.now?kW.ytcsi.now:kW.performance&&kW.performance.timing&&kW.performance.now&&kW.performance.timing.navigationStart?function(){return kW.performance.timing.navigationStart+kW.performance.now()}:function(){return(new Date).getTime()};g.e0(zh,g.x);zh.prototype.D=function(e){e.J===void 0&&xH5(e);var N=e.J;e.N===void 0&&xH5(e);this.J=new g.ri(N,e.N)};
zh.prototype.wD=function(){return this.J||new g.ri};
zh.prototype.Ng=function(){if(this.J){var e=(0,g.iC)();if(this.j!=0){var N=this.Z,y=this.J,w=N.x-y.x;N=N.y-y.y;w=Math.sqrt(w*w+N*N)/(e-this.j);this.N[this.K]=Math.abs((w-this.L)/this.L)>.5?1:0;for(y=N=0;y<4;y++)N+=this.N[y]||0;N>=3&&this.G();this.L=w}this.j=e;this.Z=this.J;this.K=(this.K+1)%4}};
zh.prototype.fh=function(){g.k3(this.U);g.d9(this.Kh)};g.b(iY,g.x);iY.prototype.Y=function(e,N,y,w,E){y=g.NR((0,g.Gs)(y,w||this.a9));y={target:e,name:N,callback:y};var A;E&&KI1()&&(A={passive:!0});e.addEventListener(N,y.callback,A);this.G.push(y);return y};
iY.prototype.CX=function(e){for(var N=0;N<this.G.length;N++)if(this.G[N]==e){this.G.splice(N,1);e.target.removeEventListener(e.name,e.callback);break}};
iY.prototype.fh=function(){g.g9(this);g.x.prototype.fh.call(this)};Vf.prototype.clone=function(){var e=new Vf,N;for(N in this)if(this.hasOwnProperty(N)){var y=this[N];e[N]=mF(y)=="object"?g.DA(y):y}return e};var FlE=["att/get"],K2M=["embedded_player"],suP=["account/get_setting_values"],C7X=["share/get_share_panel"],rOF=["share/get_web_player_share_panel"],$dw=["feedback"],YSw=["notification/modify_channel_preference"],E7P=["player"],MEk=["browse/edit_playlist"],NI0=["account/set_setting"],lyw=["subscription/subscribe"],FW_=["subscription/unsubscribe"],ps_=["next","unplugged/watch_next"];var t2;g.fO=rR(function(){try{var e=new Z6;var N=e.isAvailable()?e:null}catch(y){return null}return N?new g.fi(N):null});
t2=rR(function(){var e=new Lw5;return e.isAvailable()?new g.fi(e):null});g.SSF=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.jM("yt.msgs_",g.SSF);nO.prototype.PQ=function(e,N){e={};var y=[];"USER_SESSION_ID"in Gz&&y.push({key:"u",value:g.Lb("USER_SESSION_ID")});if(y=xg5(y))e.Authorization=y,y=N=N==null?void 0:N.sessionIndex,y===void 0&&(y=Number(g.Lb("SESSION_INDEX",0)),y=isNaN(y)?0:y),g.Xj("voice_search_auth_header_removal")||(e["X-Goog-AuthUser"]=y.toString()),"INNERTUBE_HOST_OVERRIDE"in Gz||(e["X-Origin"]=window.location.origin),N===void 0&&"DELEGATED_SESSION_ID"in Gz&&(e["X-Goog-PageId"]=g.Lb("DELEGATED_SESSION_ID"));return e};var lt={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var KO=g.nM("ytglobal.prefsUserPrefsPrefs_")||{};g.jM("ytglobal.prefsUserPrefsPrefs_",KO);var Qf;g.J=LIP.prototype;g.J.get=function(e,N){Rz(e);OF(e);e=KO[e]!==void 0?KO[e].toString():null;return e!=null?e:N?N:""};
g.J.set=function(e,N){Rz(e);OF(e);if(N==null)throw Error("ExpectedNotNull");KO[e]=N.toString()};
g.J.remove=function(e){Rz(e);OF(e);delete KO[e]};
g.J.save=function(){var e=!0;g.Xj("web_secure_pref_cookie_killswitch")&&(e=!1);g.x3(this.J,this.dump(),63072E3,this.N,e)};
g.J.clear=function(){g.mgH(KO)};
g.J.dump=function(){var e=[],N;for(N in KO)KO.hasOwnProperty(N)&&e.push(N+"="+encodeURIComponent(String(KO[N])));return e.join("&")};
g.J.parse=function(e){e=decodeURIComponent(e).split("&");for(var N=0;N<e.length;N++){var y=e[N].split("="),w=y[0];(y=y[1])&&(KO[w]=y.toString())}};var eTH={bluetooth:"CONN_DISCO",cellular:"CONN_CELLULAR_UNKNOWN",ethernet:"CONN_WIFI",none:"CONN_NONE",wifi:"CONN_WIFI",wimax:"CONN_CELLULAR_4G",other:"CONN_UNKNOWN",unknown:"CONN_UNKNOWN","slow-2g":"CONN_CELLULAR_2G","2g":"CONN_CELLULAR_2G","3g":"CONN_CELLULAR_3G","4g":"CONN_CELLULAR_4G"},h85={CONN_DEFAULT:0,CONN_UNKNOWN:1,CONN_NONE:2,CONN_WIFI:3,CONN_CELLULAR_2G:4,CONN_CELLULAR_3G:5,CONN_CELLULAR_4G:6,CONN_CELLULAR_UNKNOWN:7,CONN_DISCO:8,CONN_CELLULAR_5G:9,CONN_WIFI_METERED:10,CONN_CELLULAR_5G_SA:11,
CONN_CELLULAR_5G_NSA:12,CONN_WIRED:30,CONN_INVALID:31},cTJ={EFFECTIVE_CONNECTION_TYPE_UNKNOWN:0,EFFECTIVE_CONNECTION_TYPE_OFFLINE:1,EFFECTIVE_CONNECTION_TYPE_SLOW_2G:2,EFFECTIVE_CONNECTION_TYPE_2G:3,EFFECTIVE_CONNECTION_TYPE_3G:4,EFFECTIVE_CONNECTION_TYPE_4G:5},y4J={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.b(g.Gh,Error);sF.prototype.kB=function(e,N){return az(e,1,N)};
sF.prototype.Ha=function(e){(e=this.J.get(e))&&e()};g.nM("yt.scheduler.instance.timerIdMap_");g.b(N7,sF);N7.prototype.Zx=function(e){if(e===void 0||!Number.isNaN(Number(e))){var N=g.nM("yt.scheduler.instance.cancelJob");N?N(e):g.cL(e)}};
N7.prototype.start=function(){var e=g.nM("yt.scheduler.instance.start");e&&e()};
N7.prototype.pause=function(){var e=g.nM("yt.scheduler.instance.pause");e&&e()};
g.Kk=g.yK();Ag.prototype.set=function(e,N,y,w){y=y||31104E3;this.remove(e);if(this.J)try{this.J.set(e,N,Date.now()+y*1E3);return}catch(A){}var E="";if(w)try{E=escape(g.ID(N))}catch(A){return}else E=escape(N);g.x3(e,E,y,this.N)};
Ag.prototype.get=function(e,N){var y=void 0,w=!this.J;if(!w)try{y=this.J.get(e)}catch(E){w=!0}if(w&&(y=g.jH(e))&&(y=unescape(y),N))try{y=JSON.parse(y)}catch(E){this.remove(e),y=void 0}return y};
Ag.prototype.remove=function(e){this.J&&this.J.remove(e);g.np(e,"/",this.N)};
Ag.prototype.getCreationTime=function(e){return this.J&&(e=(this.J.N(e)||{}).creation,typeof e==="number")?e:null};var Tv=function(){var e;return function(){e||(e=new Ag("ytidb"));return e}}();var Y$=[],pl,M7=!1;var Bj={},Tes=(Bj.AUTH_INVALID="No user identifier specified.",Bj.EXPLICIT_ABORT="Transaction was explicitly aborted.",Bj.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Bj.MISSING_INDEX="Index not created.",Bj.MISSING_OBJECT_STORES="Object stores not created.",Bj.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Bj.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Bj.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Bj.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Bj.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Bj.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Bj.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Bj),Xp={},J4_=(Xp.AUTH_INVALID="ERROR",Xp.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Xp.EXPLICIT_ABORT="IGNORED",
Xp.IDB_NOT_SUPPORTED="ERROR",Xp.MISSING_INDEX="WARNING",Xp.MISSING_OBJECT_STORES="ERROR",Xp.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Xp.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Xp.QUOTA_EXCEEDED="WARNING",Xp.QUOTA_MAYBE_EXCEEDED="WARNING",Xp.UNKNOWN_ABORT="WARNING",Xp.INCOMPATIBLE_DB_VERSION="WARNING",Xp),Pj={},pD0=(Pj.AUTH_INVALID=!1,Pj.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Pj.EXPLICIT_ABORT=!1,Pj.IDB_NOT_SUPPORTED=!1,Pj.MISSING_INDEX=!1,Pj.MISSING_OBJECT_STORES=!1,Pj.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Pj.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Pj.QUOTA_EXCEEDED=!1,Pj.QUOTA_MAYBE_EXCEEDED=!0,Pj.UNKNOWN_ABORT=!0,Pj.INCOMPATIBLE_DB_VERSION=!1,Pj);g.b(g.bC,g.Gh);g.b(hg,g.bC);g.b(cV,Error);var Cn3=["The database connection is closing","Can't start a transaction on a closed database","A mutation operation was attempted on a database that did not allow mutations"];g.d0.all=function(e){return new g.d0(new PV(function(N,y){var w=[],E=e.length;E===0&&N(w);for(var A={eU:0};A.eU<e.length;A={eU:A.eU},++A.eU)g.d0.resolve(e[A.eU]).then(function(T){return function(p){w[T.eU]=p;E--;E===0&&N(w)}}(A)).catch(function(T){y(T)})}))};
g.d0.resolve=function(e){return new g.d0(new PV(function(N,y){e instanceof g.d0?e.then(N,y):N(e)}))};
g.d0.reject=function(e){return new g.d0(new PV(function(N,y){y(e)}))};
g.d0.prototype.then=function(e,N){var y=this,w=e!=null?e:$AM,E=N!=null?N:r4J;return new g.d0(new PV(function(A,T){y.state.status==="PENDING"?(y.J.push(function(){Y2F(y,y,w,A,T)}),y.N.push(function(){M6M(y,y,E,A,T)})):y.state.status==="FULFILLED"?Y2F(y,y,w,A,T):y.state.status==="REJECTED"&&M6M(y,y,E,A,T)}))};
g.d0.prototype.catch=function(e){return this.then(void 0,e)};g.J=hTF.prototype;g.J.add=function(e,N,y){return g.fl(this,[e],{mode:"readwrite",Lx:!0},function(w){return w.objectStore(e).add(N,y)})};
g.J.clear=function(e){return g.fl(this,[e],{mode:"readwrite",Lx:!0},function(N){return N.objectStore(e).clear()})};
g.J.close=function(){this.J.close();var e;((e=this.options)==null?0:e.closed)&&this.options.closed()};
g.J.count=function(e,N){return g.fl(this,[e],{mode:"readonly",Lx:!0},function(y){return y.objectStore(e).count(N)})};
g.J.delete=function(e,N){return g.fl(this,[e],{mode:"readwrite",Lx:!0},function(y){return y.objectStore(e).delete(N)})};
g.J.get=function(e,N){return g.fl(this,[e],{mode:"readonly",Lx:!0},function(y){return y.objectStore(e).get(N)})};
g.J.getAll=function(e,N,y){return g.fl(this,[e],{mode:"readonly",Lx:!0},function(w){return w.objectStore(e).getAll(N,y)})};
g.J.objectStoreNames=function(){return Array.from(this.J.objectStoreNames)};
g.J.getName=function(){return this.J.name};
g.J=Dm.prototype;g.J.add=function(e,N){return vV(this.J.add(e,N))};
g.J.autoIncrement=function(){return this.J.autoIncrement};
g.J.clear=function(){return vV(this.J.clear()).then(function(){})};
g.J.count=function(e){return vV(this.J.count(e))};
g.J.delete=function(e){return e instanceof IDBKeyRange?XD3(this,e):vV(this.J.delete(e))};
g.J.get=function(e){return vV(this.J.get(e))};
g.J.getAll=function(e,N){return"getAll"in IDBObjectStore.prototype?vV(this.J.getAll(e,N)):Pn1(this,e,N)};
g.J.index=function(e){try{return new zT0(this.J.index(e))}catch(N){if(N instanceof Error&&N.name==="NotFoundError")throw new cV(e,this.J.name);throw N;}};
g.J.getName=function(){return this.J.name};
g.J.keyPath=function(){return this.J.keyPath};
q7.prototype.abort=function(){this.J.abort();this.N=!0;throw new g.bC("EXPLICIT_ABORT");};
q7.prototype.objectStore=function(e){e=this.J.objectStore(e);var N=this.K.get(e);N||(N=new Dm(e),this.K.set(e,N));return N};
g.J=zT0.prototype;g.J.count=function(e){return vV(this.J.count(e))};
g.J.delete=function(e){return g.QK(this,{query:e},function(N){return N.delete().then(function(){return g.j1(N)})})};
g.J.get=function(e){return vV(this.J.get(e))};
g.J.getAll=function(e,N){return"getAll"in IDBIndex.prototype?vV(this.J.getAll(e,N)):iiE(this,e,N)};
g.J.keyPath=function(){return this.J.keyPath};
g.J.unique=function(){return this.J.unique};
m1.prototype.delete=function(){return vV(this.cursor.delete()).then(function(){})};
m1.prototype.getValue=function(){return this.cursor.value};
m1.prototype.update=function(e){return vV(this.cursor.update(e))};Kl.prototype.N=function(e,N,y){y=y===void 0?{}:y;return g11(e,N,y)};
Kl.prototype.delete=function(e){e=e===void 0?{}:e;return HV(this.name,e)};
Kl.prototype.open=function(){function e(){var A,T,p,C,r,Y,M,l,F,S;return g.f(function(k){switch(k.J){case 1:return T=(A=Error().stack)!=null?A:"",g.c5(k,2),g.D(k,y.N(y.name,y.options.version,E),4);case 4:for(var X=p=k.N,d=y.options,v=[],V=g.c(Object.keys(d.Ed)),Z=V.next();!Z.done;Z=V.next()){Z=Z.value;var n=d.Ed[Z],R=n.bqs===void 0?Number.MAX_VALUE:n.bqs;!(X.J.version>=n.Bs)||X.J.version>=R||X.J.objectStoreNames.contains(Z)||v.push(Z)}C=v;if(C.length===0){k.u9(5);break}r=Object.keys(y.options.Ed);
Y=p.objectStoreNames();if(y.L<g.PL("ytidb_reopen_db_retries",0))return y.L++,p.close(),lC(new g.bC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:y.name,expectedObjectStores:r,foundObjectStores:Y})),k.return(e());if(!(y.j<g.PL("ytidb_remake_db_retries",1))){k.u9(6);break}y.j++;return g.D(k,y.delete(),7);case 7:return lC(new g.bC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:y.name,expectedObjectStores:r,foundObjectStores:Y})),k.return(e());case 6:throw new hg(Y,r);case 5:return k.return(p);case 2:M=
g.XH(k);if(M instanceof DOMException?M.name!=="VersionError":"DOMError"in self&&M instanceof DOMError?M.name!=="VersionError":!(M instanceof Object&&"message"in M)||M.message!=="An attempt was made to open a database using a lower version than the existing version."){k.u9(8);break}return g.D(k,y.N(y.name,void 0,Object.assign({},E,{upgrade:void 0})),9);case 9:l=k.N;F=l.J.version;if(y.options.version!==void 0&&F>y.options.version+1)throw l.close(),y.K=!1,V6_(y,F);return k.return(l);case 8:throw N(),
M instanceof Error&&!g.Xj("ytidb_async_stack_killswitch")&&(M.stack=M.stack+"\n"+T.substring(T.indexOf("\n")+1)),BV(M,y.name,"",(S=y.options.version)!=null?S:-1);}})}
function N(){y.J===w&&(y.J=void 0)}
var y=this;if(!this.K)throw V6_(this);if(this.J)return this.J;var w,E={blocking:function(A){A.close()},
closed:N,cT1:N,upgrade:this.options.upgrade};return this.J=w=e()};var Om=new Kl("YtIdbMeta",{Ed:{databases:{Bs:1}},upgrade:function(e,N){N(1)&&g.g0(e,"databases",{keyPath:"actualName"})}});var sm,Ll=new function(){}(new function(){});new g.lq;g.b(N9,Kl);N9.prototype.N=function(e,N,y){y=y===void 0?{}:y;return(this.options.shared?QrH:n15)(e,N,Object.assign({},y))};
N9.prototype.delete=function(e){e=e===void 0?{}:e;return(this.options.shared?W7M:mAF)(this.name,e)};var oRq={},RTH=g.yJ("ytGcfConfig",{Ed:(oRq.coldConfigStore={Bs:1},oRq.hotConfigStore={Bs:1},oRq),shared:!1,upgrade:function(e,N){N(1)&&(g.Zm(g.g0(e,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Zm(g.g0(e,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.b(EE,g.x);EE.prototype.fh=function(){for(var e=g.c(this.N),N=e.next();!N.done;N=e.next()){var y=this.J;N=y.indexOf(N.value);N>=0&&y.splice(N,1)}this.N.length=0;g.x.prototype.fh.call(this)};ro.prototype.K2=function(e){this.hotHashData=e;g.jM("yt.gcf.config.hotHashData",this.hotHashData||null)};var bf_=typeof TextEncoder!=="undefined"?new TextEncoder:null,qaM=bf_?function(e){return bf_.encode(e)}:function(e){e=g.hV(e);
for(var N=new Uint8Array(e.length),y=0;y<N.length;y++)N[y]=e[y];return N};var RW_={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},U9F={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};FG.prototype.jY=function(){return{version:this.version,args:this.args}};S7.prototype.toString=function(){return this.topic};var hjq=g.nM("ytPubsub2Pubsub2Instance")||new g.zY;g.zY.prototype.subscribe=g.zY.prototype.subscribe;g.zY.prototype.unsubscribeByKey=g.zY.prototype.qr;g.zY.prototype.publish=g.zY.prototype.publish;g.zY.prototype.clear=g.zY.prototype.clear;g.jM("ytPubsub2Pubsub2Instance",hjq);var hx=g.nM("ytPubsub2Pubsub2SubscribedKeys")||{};g.jM("ytPubsub2Pubsub2SubscribedKeys",hx);var Pi=g.nM("ytPubsub2Pubsub2TopicToKeys")||{};g.jM("ytPubsub2Pubsub2TopicToKeys",Pi);var XzH=g.nM("ytPubsub2Pubsub2IsAsync")||{};
g.jM("ytPubsub2Pubsub2IsAsync",XzH);g.jM("ytPubsub2Pubsub2SkipSubKey",null);var zi=void 0,vi=void 0;var fOJ=g.PL("max_body_size_to_compress",5E5),tCH=g.PL("min_body_size_to_compress",500),VJ=!0,q9=0,ut=0,ZbH=g.PL("compression_performance_threshold_lr",250),xyP=g.PL("slow_compressions_before_abandon_count",4),Dx=!1,go=new Map,f6=1,ug5=!0;g.J=xp.prototype;g.J.writeThenSend=function(e,N){var y=this;N=N===void 0?{}:N;if(Zx(this)&&this.J){var w={url:e,options:N,timestamp:this.now(),status:"NEW",sendCount:0};this.kp.set(w,this.fq).then(function(E){w.id=E;y.nN.E4()&&y.kf(w)}).catch(function(E){y.kf(w);
j7(y,E)})}else this.sendFn(e,N)};
g.J.sendThenWrite=function(e,N,y){var w=this;N=N===void 0?{}:N;if(Zx(this)&&this.J){var E={url:e,options:N,timestamp:this.now(),status:"NEW",sendCount:0};this.gP&&this.gP("nwl_skip_retry")&&(E.skipRetry=y);if(this.nN.E4()||this.gP&&this.gP("nwl_aggressive_send_then_write")&&!E.skipRetry){if(!E.skipRetry){var A=N.onError?N.onError:function(){};
N.onError=function(T,p){return g.f(function(C){if(C.J==1)return g.D(C,w.kp.set(E,w.fq).catch(function(r){j7(w,r)}),2);
A(T,p);g.hn(C)})}}this.sendFn(e,N,E.skipRetry)}else this.kp.set(E,this.fq).catch(function(T){w.sendFn(e,N,E.skipRetry);
j7(w,T)})}else y=this.gP&&this.gP("nwl_skip_retry")&&y,this.sendFn(e,N,y)};
g.J.sendAndWrite=function(e,N){var y=this;N=N===void 0?{}:N;if(Zx(this)&&this.J){var w={url:e,options:N,timestamp:this.now(),status:"NEW",sendCount:0},E=!1,A=N.onSuccess?N.onSuccess:function(){};
w.options.onSuccess=function(T,p){w.id!==void 0?y.kp.jU(w.id,y.fq):E=!0;y.nN.DP&&y.gP&&y.gP("vss_network_hint")&&y.nN.DP(!0);A(T,p)};
this.sendFn(w.url,w.options,void 0,!0);this.kp.set(w,this.fq).then(function(T){w.id=T;E&&y.kp.jU(w.id,y.fq)}).catch(function(T){j7(y,T)})}else this.sendFn(e,N,void 0,!0)};
g.J.Ml=function(){var e=this;if(!Zx(this))throw Error("IndexedDB is not supported: throttleSend");this.N||(this.N=this.hx.kB(function(){var N;return g.f(function(y){if(y.J==1)return g.D(y,e.kp.HW("NEW",e.fq),2);if(y.J!=3)return N=y.N,N?g.D(y,e.kf(N),3):(e.dU(),y.return());e.N&&(e.N=0,e.Ml());g.hn(y)})},this.oP))};
g.J.dU=function(){this.hx.Zx(this.N);this.N=0};
g.J.kf=function(e){var N=this,y;return g.f(function(w){switch(w.J){case 1:if(!Zx(N))throw Error("IndexedDB is not supported: immediateSend");if(e.id===void 0){w.u9(2);break}return g.D(w,N.kp.bxP(e.id,N.fq),3);case 3:(y=w.N)||N.nW(Error("The request cannot be found in the database."));case 2:if(N.Vx(e,N.HD)){w.u9(4);break}N.nW(Error("Networkless Logging: Stored logs request expired age limit"));if(e.id===void 0){w.u9(5);break}return g.D(w,N.kp.jU(e.id,N.fq),5);case 5:return w.return();case 4:e.skipRetry||
(e=Ky_(N,e));if(!e){w.u9(0);break}if(!e.skipRetry||e.id===void 0){w.u9(8);break}return g.D(w,N.kp.jU(e.id,N.fq),8);case 8:N.sendFn(e.url,e.options,!!e.skipRetry),g.hn(w)}})};
g.J.Vx=function(e,N){e=e.timestamp;return this.now()-e>=N?!1:!0};
g.J.Is=function(){var e=this;if(!Zx(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.kp.HW("QUEUED",this.fq).then(function(N){N&&!e.Vx(N,e.SA)?e.hx.kB(function(){return g.f(function(y){if(y.J==1)return N.id===void 0?y.u9(2):g.D(y,e.kp.VK(N.id,e.fq),2);e.Is();g.hn(y)})}):e.nN.E4()&&e.Ml()})};var n6;var SF1={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,
fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,
castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var cOk={},N2F=g.yJ("ServiceWorkerLogsDatabase",{Ed:(cOk.SWHealthLog={Bs:1},cOk),shared:!0,upgrade:function(e,N){N(1)&&g.Zm(g.g0(e,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Hi={},JEs=0;var K6;OE.prototype.requestComplete=function(e,N){N&&(this.N=!0);e=this.removeParams(e);this.J.get(e)||this.J.set(e,N)};
OE.prototype.isEndpointCFR=function(e){e=this.removeParams(e);return(e=this.J.get(e))?!1:e===!1&&this.N?!0:null};
OE.prototype.removeParams=function(e){return e.split("?")[0]};
OE.prototype.removeParams=OE.prototype.removeParams;OE.prototype.isEndpointCFR=OE.prototype.isEndpointCFR;OE.prototype.requestComplete=OE.prototype.requestComplete;OE.getInstance=Re;g.b(Gi,g.Ux);g.J=Gi.prototype;g.J.E4=function(){return this.J.E4()};
g.J.DP=function(e){this.J.J=e};
g.J.ek=function(){var e=window.navigator.onLine;return e===void 0?!0:e};
g.J.TG=function(){this.N=!0};
g.J.listen=function(e,N){return this.J.listen(e,N)};
g.J.K0=function(e){e=mI(this.J,e);e.then(function(N){g.Xj("use_cfr_monitor")&&Re().requestComplete("generate_204",N)});
return e};
Gi.prototype.sendNetworkCheckRequest=Gi.prototype.K0;Gi.prototype.listen=Gi.prototype.listen;Gi.prototype.enableErrorFlushing=Gi.prototype.TG;Gi.prototype.getWindowStatus=Gi.prototype.ek;Gi.prototype.networkStatusHint=Gi.prototype.DP;Gi.prototype.isNetworkAvailable=Gi.prototype.E4;Gi.getInstance=rEF;g.b(g.UE,g.Ux);g.UE.prototype.E4=function(){var e=g.nM("yt.networkStatusManager.instance.isNetworkAvailable");return e?e.bind(this.N)():!0};
g.UE.prototype.DP=function(e){var N=g.nM("yt.networkStatusManager.instance.networkStatusHint").bind(this.N);N&&N(e)};
g.UE.prototype.K0=function(e){var N=this,y;return g.f(function(w){y=g.nM("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(N.N);return g.Xj("skip_network_check_if_cfr")&&Re().isEndpointCFR("generate_204")?w.return(new Promise(function(E){var A;N.DP(((A=window.navigator)==null?void 0:A.onLine)||!0);E(N.E4())})):y?w.return(y(e)):w.return(!0)})};var L6;g.b(sE,xp);sE.prototype.writeThenSend=function(e,N){N||(N={});N=eS(e,N);g.LO()||(this.J=!1);xp.prototype.writeThenSend.call(this,e,N)};
sE.prototype.sendThenWrite=function(e,N,y){N||(N={});N=eS(e,N);g.LO()||(this.J=!1);xp.prototype.sendThenWrite.call(this,e,N,y)};
sE.prototype.sendAndWrite=function(e,N){N||(N={});N=eS(e,N);g.LO()||(this.J=!1);xp.prototype.sendAndWrite.call(this,e,N)};
sE.prototype.awaitInitialization=function(){return this.K.promise};var FH9=g.xJ.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.jM("ytNetworklessLoggingInitializationOptions",FH9);g.N6.prototype.isReady=function(){!this.config_&&$yF()&&(this.config_=g.Yp());return!!this.config_};var k75,EC,T_;k75=g.xJ.ytPubsubPubsubInstance||new g.zY;EC=g.xJ.ytPubsubPubsubSubscribedKeys||{};T_=g.xJ.ytPubsubPubsubTopicToKeys||{};g.Al=g.xJ.ytPubsubPubsubIsSynchronous||{};g.zY.prototype.subscribe=g.zY.prototype.subscribe;g.zY.prototype.unsubscribeByKey=g.zY.prototype.qr;g.zY.prototype.publish=g.zY.prototype.publish;g.zY.prototype.clear=g.zY.prototype.clear;g.jM("ytPubsubPubsubInstance",k75);g.jM("ytPubsubPubsubTopicToKeys",T_);g.jM("ytPubsubPubsubIsSynchronous",g.Al);
g.jM("ytPubsubPubsubSubscribedKeys",EC);var kk9={};g.b(cX,g.x);cX.prototype.append=function(e){if(!this.N)throw Error("This does not support the append operation");e=e.ut();this.ut().appendChild(e)};
g.b(k5,cX);k5.prototype.ut=function(){return this.J};g.b(P45,g.x);var BX=Date.now().toString();var vX={};var V7=Symbol("injectionDeps");ia.prototype.toString=function(){return"InjectionToken("+this.name+")"};
zgJ.prototype.resolve=function(e){return e instanceof Dc?fE(this,e.key,[],!0):fE(this,e,[])};var tl;var q6=window;var nE=g.Xj("web_enable_lifecycle_monitoring")&&Zc()!==0,ujE=g.Xj("web_enable_lifecycle_monitoring");VHE.prototype.cancel=function(){for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N=N.value,N.jobId===void 0||N.rV||this.scheduler.Zx(N.jobId),N.rV=!0;this.N.resolve()};g.J=Q7.prototype;g.J.install=function(e){this.plugins.push(e);return this};
g.J.uninstall=function(){var e=this;g.iE.apply(0,arguments).forEach(function(N){N=e.plugins.indexOf(N);N>-1&&e.plugins.splice(N,1)})};
g.J.transition=function(e,N){var y=this;nE&&DR5(this.state);var w=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(T){return T===y.state&&A.ZF===e}):A.from===y.state&&A.ZF===e});
if(w){this.N&&(fJM(this.N),this.N=void 0);q8P(this,e,N);this.state=e;nE&&x5(this.state);w=w.action.bind(this);var E=this.plugins.filter(function(A){return A[e]}).map(function(A){return A[e]});
w(tHH(this,E),N)}else throw Error("no transition specified from "+this.state+" to "+e);};
g.J.iqh=function(e){var N=g.iE.apply(1,arguments);g.yK();for(var y=g.c(e),w=y.next(),E={};!w.done;E={Lf:void 0},w=y.next())E.Lf=w.value,E10(function(A){return function(){HX(A.Lf.name);WX(function(){return A.Lf.callback.apply(A.Lf,g.B(N))});
KE(A.Lf.name)}}(E))};
g.J.xGB=function(e){var N=g.iE.apply(1,arguments),y,w,E,A;return g.f(function(T){T.J==1&&(g.yK(),y=g.c(e),w=y.next(),E={});if(T.J!=3){if(w.done)return T.u9(0);E.Tl=w.value;E.m6=void 0;A=function(p){return function(){HX(p.Tl.name);var C=WX(function(){return p.Tl.callback.apply(p.Tl,g.B(N))});
eq(C)?p.m6=g.Xj("web_lifecycle_error_handling_killswitch")?C.then(function(){KE(p.Tl.name)}):C.then(function(){KE(p.Tl.name)},function(r){g3M(r);
KE(p.Tl.name)}):KE(p.Tl.name)}}(E);
E10(A);return E.m6?g.D(T,E.m6,3):T.u9(3)}E={Tl:void 0,m6:void 0};w=y.next();return T.u9(2)})};
g.J.jX=function(e){var N=g.iE.apply(1,arguments),y=this,w=e.map(function(E){return{S9:function(){HX(E.name);WX(function(){return E.callback.apply(E,g.B(N))});
KE(E.name)},
priority:mq(y,E)}});
w.length&&(this.N=new VHE(w))};
g.pM.Object.defineProperties(Q7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Ru;g.b(OC,Q7);OC.prototype.L=function(e,N){var y=this;this.J=g.e1(0,function(){y.currentState==="application_navigating"&&y.transition("none")},5E3);
e(N==null?void 0:N.event)};
OC.prototype.Z=function(e,N){this.J&&(g.Kk.Zx(this.J),this.J=null);e(N==null?void 0:N.event)};var h0=[];g.jM("yt.logging.transport.getScrapedGelPayloads",function(){return h0});G_.prototype.storePayload=function(e,N){e=UC(e);this.store[e]?this.store[e].push(N):(this.N={},this.store[e]=[N]);this.J++;g.Xj("more_accurate_gel_parser")&&(N=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(N));return e};
G_.prototype.smartExtractMatchingEntries=function(e){if(!e.keys.length)return[];for(var N=sC(this,e.keys.splice(0,1)[0]),y=[],w=0;w<N.length;w++)this.store[N[w]]&&e.sizeLimit&&(this.store[N[w]].length<=e.sizeLimit?(y.push.apply(y,g.B(this.store[N[w]])),delete this.store[N[w]]):y.push.apply(y,g.B(this.store[N[w]].splice(0,e.sizeLimit))));this.J-=y.length;(e==null?0:e.sizeLimit)&&y.length<(e==null?void 0:e.sizeLimit)&&(e.sizeLimit-=y.length,y.push.apply(y,g.B(this.smartExtractMatchingEntries(e))));
return y};
G_.prototype.extractMatchingEntries=function(e){e=sC(this,e);for(var N=[],y=0;y<e.length;y++)this.store[e[y]]&&(N.push.apply(N,g.B(this.store[e[y]])),delete this.store[e[y]]);this.J-=N.length;return N};
G_.prototype.getSequenceCount=function(e){e=sC(this,e);for(var N=0,y=0;y<e.length;y++){var w=void 0;N+=((w=this.store[e[y]])==null?void 0:w.length)||0}return N};
G_.prototype.getSequenceCount=G_.prototype.getSequenceCount;G_.prototype.extractMatchingEntries=G_.prototype.extractMatchingEntries;G_.prototype.smartExtractMatchingEntries=G_.prototype.smartExtractMatchingEntries;G_.prototype.storePayload=G_.prototype.storePayload;var wE5=g.PL("initial_gel_batch_timeout",2E3),y2s=g.PL("gel_queue_timeout_max_ms",6E4),Eh5=g.PL("gel_min_batch_size",5),J0=void 0,F6H=new au,lw5=new au,N9P=new au,eP3=new au,CQ,FV=!0,bA=1,Ni=new Map,Mi=g.xJ.ytLoggingTransportTokensToCttTargetIds_||{};g.jM("ytLoggingTransportTokensToCttTargetIds_",Mi);var Yg=g.xJ.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.jM("ytLoggingTransportTokensToJspbCttTargetIds_",Yg);var E$={},xRF=!1;var c7=g.xJ.ytLoggingGelSequenceIdObj_||{};g.jM("ytLoggingGelSequenceIdObj_",c7);var RPn=[];var zPM,dM=g.xJ.ytLoggingDocDocumentNonce_;dM||(dM=g.PX(16),g.jM("ytLoggingDocDocumentNonce_",dM));zPM=dM;var dIE={f6:0,yAl:1,EBq:2,Xp:3,gBP:4,cxG:5,OcZ:6,SHARE:7,Q89:8,bis:9,Axs:10,Hch:11,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH",10:"UNPLUGGED_BROWSE",11:"PICTURE_IN_PICTURE"};var bOP=1;g.J=B7.prototype;g.J.getAsJson=function(){var e={};this.J.trackingParams!==void 0?e.trackingParams=this.J.trackingParams:(e.veType=this.J.veType,this.J.veCounter!==void 0&&(e.veCounter=this.J.veCounter),this.J.elementIndex!==void 0&&(e.elementIndex=this.J.elementIndex));this.J.dataElement!==void 0&&(e.dataElement=this.J.dataElement.getAsJson());this.J.youtubeData!==void 0&&(e.youtubeData=this.J.youtubeData);this.J.isCounterfactual&&(e.isCounterfactual=!0);return e};
g.J.getAsJspb=function(){var e=new tT;this.J.trackingParams!==void 0?e.setTrackingParams(this.J.trackingParams):(this.J.veType!==void 0&&j4(e,2,pm(this.J.veType)),this.J.veCounter!==void 0&&j4(e,6,pm(this.J.veCounter)),this.J.elementIndex!==void 0&&j4(e,3,pm(this.J.elementIndex)),this.J.isCounterfactual&&j4(e,5,AK(!0)));if(this.J.dataElement!==void 0){var N=this.J.dataElement.getAsJspb();JQ(e,tT,7,N)}this.J.youtubeData!==void 0&&JQ(e,uAM,8,this.J.jspbYoutubeData);return e};
g.J.toString=function(){return JSON.stringify(this.getAsJson())};
g.J.isClientVe=function(){return!this.J.trackingParams&&!!this.J.veType};
g.J.getLoggingDirectives=function(){return this.J.loggingDirectives};g.jM("yt_logging_screen.getRootVeType",B9s);g.jM("yt_logging_screen.getCurrentCsn",g.It);g.jM("yt_logging_screen.getCttAuthInfo",v7);g.jM("yt_logging_screen.setCurrentScreen",iO1);var Vus="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Qz1=[{e9:function(e){return"Cannot read property '"+e.key+"'"},
lE:{Error:[{Jo:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Jo:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Jo:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Jo:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Jo:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Jo:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Jo:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{e9:function(e){return"Cannot call '"+e.key+"'"},
lE:{TypeError:[{Jo:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Jo:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Jo:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Jo:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Jo:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Jo:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{e9:function(e){return e.key+" is not defined"},
lE:{ReferenceError:[{Jo:/(.*) is not defined/,groups:["key"]},{Jo:/Can't find variable: (.*)/,groups:["key"]}]}}];var qF3={Tr:[],QY:[{callback:fw0,weight:500}]};var iA;var qi=new g.zY;var mIs=new Set,jz5=0,W6M=0,K6H=0,nhM=[],OOM=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var UI5=new g.ig("parallelCommand");var awF=new g.ig("performOnceCommand");var szF=new g.ig("serialCommand");var xg=void 0;var BrF=g.c(kuE({},"Z39Sdf"));BrF.next();BrF.next();var Xmq=g.c(kuE(null,"qqrkLd"));Xmq.next();Xmq.next();g.b(Qu,FG);var BxM=new S7("screen-created",Qu),eY=[],N0F=T0M,Nu=0,H7=new Map,KQ=new Map,W7=new Map;g.e0(g.pT,g.x);g.J=g.pT.prototype;g.J.subscribe=function(e,N,y){return this.Ss()?0:this.MX.subscribe(e,N,y)};
g.J.unsubscribe=function(e,N,y){return this.Ss()?!1:this.MX.unsubscribe(e,N,y)};
g.J.qr=function(e){return this.Ss()?!1:this.MX.qr(e)};
g.J.publish=function(e,N){return this.Ss()?!1:this.MX.publish.apply(this.MX,arguments)};
g.J.H_=function(e,N){for(var y in e)this.subscribe(y,e[y],N)};
g.J.qB=function(e,N){for(var y in e)this.unsubscribe(y,e[y],N)};var zpn=16/9,P7k=[.25,.5,.75,1,1.25,1.5,1.75,2],ddf=P7k.concat([3,4,5,6,7,8,9,10,15]),Iyk=P7k.concat([2.5,3,3.5,4]);var Jg9=1;g.b(g.r1,g.x);g.J=g.r1.prototype;
g.J.createElement=function(e,N){N=N||e.S==="svg";var y=e.B,w=e.dP;if(N){var E=document.createElementNS("http://www.w3.org/2000/svg",e.S);g.Hg&&(e.V||(e.V={}),e.V.focusable="false")}else E=g.sA(e.S);if(y){if(y=$l(this,E,"class",y))Yl(this,E,"class",y),this.a9[y]=E}else if(w){y=g.c(w);for(var A=y.next();!A.done;A=y.next())this.a9[A.value]=E;Yl(this,E,"class",w.join(" "))}w=e.b9;y=e.W;if(w)N=$l(this,E,"child",w),N!==void 0&&E.appendChild(g.aB(N));else if(y)for(w=0,y=g.c(y),A=y.next();!A.done;A=y.next())if(A=
A.value)if(typeof A==="string")A=$l(this,E,"child",A),A!=null&&E.appendChild(g.aB(A));else if(A.element)E.appendChild(A.element);else{var T=A;A=this.createElement(T,N);E.appendChild(A);T.Az&&(T=CT(),A.id=T,A=document.createElementNS("http://www.w3.org/2000/svg","use"),A.setAttribute("class","ytp-svg-shadow"),A.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+T),yp(E,A,w++))}if(e=e.V)for(N=E,w=g.c(Object.keys(e)),y=w.next();!y.done;y=w.next())y=y.value,A=e[y],Yl(this,N,y,typeof A==="string"?
$l(this,N,y,A):A);return E};
g.J.hW=function(e){return this.a9[e]};
g.J.yB=function(e,N){typeof N==="number"?yp(e,this.element,N):e.appendChild(this.element)};
g.J.detach=function(){g.ws(this.element)};
g.J.update=function(e){for(var N=g.c(Object.keys(e)),y=N.next();!y.done;y=N.next())y=y.value,this.updateValue(y,e[y])};
g.J.updateValue=function(e,N){(e=this.jN["{{"+e+"}}"])&&Yl(this,e[0],e[1],N)};
g.J.fh=function(){this.a9={};this.jN={};this.detach();g.x.prototype.fh.call(this)};g.b(g.W,g.r1);g.J=g.W.prototype;g.J.Ja=function(e,N){this.updateValue(N||"content",e)};
g.J.show=function(){this.Og||(g.$0(this.element,"display",""),this.Og=!0)};
g.J.hide=function(){this.Og&&(g.$0(this.element,"display","none"),this.Og=!1)};
g.J.KX=function(e){e?this.show():this.hide()};
g.J.nx=function(e){this.L=e};
g.J.listen=function(e,N,y){return this.Y(this.element,e,N,y)};
g.J.Y=function(e,N,y,w){y=(0,g.Gs)(y,w||this);w={target:e,type:N,listener:y};this.listeners.push(w);e.addEventListener(N,y);return w};
g.J.CX=function(e){var N=this;this.listeners.forEach(function(y,w){y===e&&(y=N.listeners.splice(w,1)[0],y.target.removeEventListener(y.type,y.listener))})};
g.J.focus=function(){this.element.focus()};
g.J.fh=function(){for(;this.listeners.length;){var e=this.listeners.pop();e&&e.target.removeEventListener(e.type,e.listener)}g.r1.prototype.fh.call(this)};g.b(g.Mu,g.W);g.Mu.prototype.subscribe=function(e,N,y){return this.Et.subscribe(e,N,y)};
g.Mu.prototype.unsubscribe=function(e,N,y){return this.Et.unsubscribe(e,N,y)};
g.Mu.prototype.qr=function(e){return this.Et.qr(e)};
g.Mu.prototype.publish=function(e){return this.Et.publish.apply(this.Et,[e].concat(g.B(g.iE.apply(1,arguments))))};var vRk=new WeakSet;g.b(lj,g.Mu);g.J=lj.prototype;g.J.bind=function(e){this.Wk||e.renderer&&this.init(e.id,e.renderer,{},e);return Promise.resolve()};
g.J.init=function(e,N,y){this.Wk=e;this.element.setAttribute("id",this.Wk);this.Kx&&g.pi(this.element,this.Kx);this.Ng=N&&N.adRendererCommands;this.Rq=N.interaction;var w;((w=this.Rq)==null?0:w.onTap)&&g.pi(this.element,"ytp-ad-component--clickable");this.macros=y;this.U=N.trackingParams||null;var E,A;this.G=(A=(E=g.m(N.rendererContext,DM5))==null?void 0:E.loggingDirectives)!=null?A:N.loggingDirectives;this.U!=null?this.createServerVe(this.element,this.U):this.G&&(e=this.element,N=this.G,this.api.createServerVe(e,
this,!0),this.api.setTrackingParams(e,N.trackingParams||null))};
g.J.clear=function(){};
g.J.hide=function(){g.Mu.prototype.hide.call(this);(this.U!=null||this.G)&&this.logVisibility(this.element,!1)};
g.J.show=function(){g.Mu.prototype.show.call(this);if(!this.dT){this.dT=!0;var e=this.Ng&&this.Ng.impressionCommand,N,y=(N=this.Rq)==null?void 0:N.onFirstVisible;e?this.M5(e):y&&(e=jP(y))&&this.M5(e)}(this.U!=null||this.G)&&this.logVisibility(this.element,!0)};
g.J.onClick=function(e){if((this.U||this.G)&&!vRk.has(e)){var N=this.element;this.api.hasVe(N)&&this.Og&&this.api.logClick(N,this.interactionLoggingClientData);vRk.add(e)}var y=this.Ng&&this.Ng.clickCommand,w;N=(w=this.Rq)==null?void 0:w.onTap;if(y)N=this.yP(y),this.M5(N);else{if(w=N)a:{w=this.element;e=e.composedPath();e=g.c(e);for(y=e.next();!y.done;y=e.next()){y=y.value;if(y===w)break;if(y.className.indexOf("ytp-ad-component--clickable")>=0){w=!1;break a}}w=!0}w&&(N=jP(N))&&this.M5(N)}};
g.J.yP=function(e){return e};
g.J.T6=function(e){var N=this.qg;N.G=!0;N.N=e.touches.length;N.J.isActive()&&(N.J.stop(),N.L=!0);e=e.touches;N.Z=dR0(N,e)||e.length!=1;var y=e.item(0);N.Z||!y?(N.U=Infinity,N.D=Infinity):(N.U=y.clientX,N.D=y.clientY);for(y=N.K.length=0;y<e.length;y++){var w=e.item(y);N.K.push(w.identifier)}};
g.J.LS=function(e){var N=this.qg;e=e.changedTouches.item(0);var y;if(y=mf()){y=g.zw();var w="";if(GsM())w=/Windows (?:NT|Phone) ([0-9.]+)/,w=(y=w.exec(y))?y[1]:"0.0";else if(mf())w=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,w=(y=w.exec(y))&&y[1].replace(/_/g,".");else if(H_())w=/Mac OS X ([0-9_.]+)/,w=(y=w.exec(y))?y[1].replace(/_/g,"."):"10";else if(P_(g.zw(),"KaiOS"))w=/(?:KaiOS)\/(\S+)/i,w=(y=w.exec(y))&&y[1];else if(R50())w=/Android\s+([^\);]+)(\)|;)/,w=(y=w.exec(y))&&y[1];else if(nq()?g5.platform===
"Chrome OS":fq("CrOS"))w=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,w=(y=w.exec(y))&&y[1];y=!(g.v_(w||"",8)>=0)}if(y||e&&Math.pow(e.clientX-N.U,2)+Math.pow(e.clientY-N.D,2)>25)N.j=!0};
g.J.Zi=function(e){if(this.qg){var N=this.qg,y=e.changedTouches;y&&N.G&&N.N==1&&!N.j&&!N.L&&!N.Z&&dR0(N,y)&&(N.Ng=e,N.J.start());N.N=e.touches.length;N.N===0&&(N.G=!1,N.j=!1,N.K.length=0);N.L=!1}};
g.J.M5=function(e){this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(new g.Gh("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.J.createServerVe=function(e,N){this.api.createServerVe(e,this);this.api.setTrackingParams(e,N)};
g.J.logVisibility=function(e,N){this.api.hasVe(e)&&this.api.logVisibility(e,N,this.interactionLoggingClientData)};
g.J.fh=function(){this.clear(null);this.CX(this.Dl);for(var e=g.c(this.l9),N=e.next();!N.done;N=e.next())this.CX(N.value);g.Mu.prototype.fh.call(this)};g.b(Vv,lj);
Vv.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.J=N;if(N.text==null&&N.icon==null)g.uA(Error("ButtonRenderer did not have text or an icon set."));else{switch(N.style||null){case "STYLE_UNKNOWN":e="ytp-ad-button-link";break;default:e=null}e!=null&&g.pi(this.element,e);N.text!=null&&(e=g.SY(N.text),g.kw(e)||(this.element.setAttribute("aria-label",e),this.K=new g.Mu({S:"span",B:"ytp-ad-button-text",b9:e}),g.Q(this,this.K),this.K.yB(this.element)));N.accessibilityData&&N.accessibilityData.accessibilityData&&
N.accessibilityData.accessibilityData.label&&!g.kw(N.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",N.accessibilityData.accessibilityData.label);N.icon!=null&&(N=g1(N.icon,this.j),N!=null&&(this.N=new g.Mu({S:"span",B:"ytp-ad-button-icon",W:[N]}),g.Q(this,this.N)),this.Z?yp(this.element,this.N.element,0):this.N.yB(this.element))}};
Vv.prototype.clear=function(){this.hide()};
Vv.prototype.onClick=function(e){lj.prototype.onClick.call(this,e);e=g.c(zb_(this));for(var N=e.next();!N.done;N=e.next())N=N.value,this.layoutId?this.Y1.executeCommand(N,this.layoutId):g.t0(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.b(fT,g.x);fT.prototype.fh=function(){this.N&&g.d9(this.N);this.J.clear();tZ=null;g.x.prototype.fh.call(this)};
fT.prototype.register=function(e,N){N&&this.J.set(e,N)};
var tZ=null;g.b(Zh,lj);
Zh.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);e=N.hoverText||null;N=N.button&&g.m(N.button,g.zR)||null;N==null?g.t0(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,void 0,void 0,void 0,void 0,this.K),g.Q(this,this.button),this.button.init(TV("button"),N,this.macros),e&&this.button.element.setAttribute("aria-label",g.SY(e)),this.button.yB(this.element),this.D&&!g.J4(this.button.element,
"ytp-ad-clickable")&&g.pi(this.button.element,"ytp-ad-clickable"),this.K&&(g.pi(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.T("clean_player_style_fix_on_web")&&g.pi(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),e&&(this.N=new g.Mu({S:"div",B:"ytp-ad-hover-text-container"}),this.Z&&(N=new g.Mu({S:"div",B:"ytp-ad-hover-text-callout"}),N.yB(this.N.element),g.Q(this,N)),g.Q(this,this.N),this.N.yB(this.element),N=uj(e),yp(this.N.element,N,0)),
this.show())};
Zh.prototype.hide=function(){this.button&&this.button.hide();this.N&&this.N.hide();lj.prototype.hide.call(this)};
Zh.prototype.show=function(){this.button&&this.button.show();lj.prototype.show.call(this)};g.b(jY,lj);
jY.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);y=(e=N.thumbnail)&&xl(e)||"";g.kw(y)?Math.random()<.01&&g.uA(Error("Found AdImage without valid image URL")):(this.J?g.$0(this.element,"backgroundImage","url("+y+")"):OA(this.element,{src:y}),OA(this.element,{alt:e&&e.accessibility&&e.accessibility.label||""}),N&&N.adRendererCommands&&N.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())};
jY.prototype.clear=function(){this.hide()};g.b(nT,lj);g.J=nT.prototype;g.J.hide=function(){lj.prototype.hide.call(this);this.K&&this.K.focus()};
g.J.show=function(){this.K=document.activeElement;lj.prototype.show.call(this);this.j.focus()};
g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.N=N;N.dialogMessages||N.title!=null?N.confirmLabel==null?g.t0(Error("ConfirmDialogRenderer.confirmLabel was not set.")):N.cancelLabel==null?g.t0(Error("ConfirmDialogRenderer.cancelLabel was not set.")):V1M(this,N):g.t0(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.J.clear=function(){g.g9(this.J);this.hide()};
g.J.hS=function(){this.hide()};
g.J.Zz=function(){var e=this.N.cancelEndpoint;e&&(this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.J.lT=function(){var e=this.N.confirmNavigationEndpoint||this.N.confirmEndpoint;e&&(this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(Error("Missing layoutId for confirm dialog.")));this.hide()};g.b(Qv,lj);g.J=Qv.prototype;
g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.K=N;if(N.defaultText==null&&N.defaultIcon==null)g.t0(Error("ToggleButtonRenderer must have either text or icon set."));else if(N.defaultIcon==null&&N.toggledIcon!=null)g.t0(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(N.style){switch(N.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":e="ytp-ad-toggle-button-default-style";break;default:e=null}e!=null&&g.pi(this.j,e)}e={};N.defaultText?
(y=g.SY(N.defaultText),g.kw(y)||(e.buttonText=y,this.api.X().experiments.gP("a11y_h5_associate_survey_question")||this.J.setAttribute("aria-label",y),this.api.X().experiments.gP("fix_h5_toggle_button_a11y")&&this.N.setAttribute("aria-label",y))):g.X0(this.i9,!1);N.defaultTooltip&&(e.tooltipText=N.defaultTooltip,this.J.hasAttribute("aria-label")||this.N.setAttribute("aria-label",N.defaultTooltip));N.defaultIcon?(y=g1(N.defaultIcon),this.updateValue("untoggledIconTemplateSpec",y),N.toggledIcon?(this.Kh=
!0,y=g1(N.toggledIcon),this.updateValue("toggledIconTemplateSpec",y)):(g.X0(this.D,!0),g.X0(this.Z,!1)),g.X0(this.J,!1)):g.X0(this.N,!1);g.v4(e)||this.update(e);N.isToggled&&(g.pi(this.j,"ytp-ad-toggle-button-toggled"),this.toggleButton(N.isToggled));mk(this);this.Y(this.element,"change",this.CL);this.show()}};
g.J.onClick=function(e){this.l9.length>0&&(this.toggleButton(!this.isToggled()),this.CL());lj.prototype.onClick.call(this,e)};
g.J.CL=function(){g.Y1(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(var e=g.c(fmE(this,this.isToggled())),N=e.next();!N.done;N=e.next())N=N.value,this.layoutId?this.Y1.executeCommand(N,this.layoutId):g.t0(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);mk(this)};
g.J.clear=function(){this.hide()};
g.J.toggleButton=function(e){g.Y1(this.j,"ytp-ad-toggle-button-toggled",e);this.J.checked=e;mk(this)};
g.J.isToggled=function(){return this.J.checked};g.b(Hq,iY);Hq.prototype.Z=function(e){if(Array.isArray(e)){e=g.c(e);for(var N=e.next();!N.done;N=e.next())N=N.value,N instanceof t1M&&this.j(N)}};g.b(KT,lj);g.J=KT.prototype;g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);N.reasons?N.confirmLabel==null?g.t0(Error("AdFeedbackRenderer.confirmLabel was not set.")):(N.cancelLabel==null&&g.uA(Error("AdFeedbackRenderer.cancelLabel was not set.")),N.title==null&&g.uA(Error("AdFeedbackRenderer.title was not set.")),x7M(this,N)):g.t0(Error("AdFeedbackRenderer.reasons were not set."))};
g.J.clear=function(){Iz(this.Z);Iz(this.D);this.j.length=0;this.hide()};
g.J.hide=function(){this.J&&this.J.hide();this.N&&this.N.hide();lj.prototype.hide.call(this);this.K&&this.K.focus()};
g.J.show=function(){this.J&&this.J.show();this.N&&this.N.show();this.K=document.activeElement;lj.prototype.show.call(this);this.Z.focus()};
g.J.j7=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.J.jft=function(){this.hide()};
Wq.prototype.ut=function(){return this.J.element};
Wq.prototype.getCommand=function(){return this.N};
Wq.prototype.isChecked=function(){return this.K.checked};g.b(OZ,nT);OZ.prototype.hS=function(e){nT.prototype.hS.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
OZ.prototype.Zz=function(e){nT.prototype.Zz.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
OZ.prototype.lT=function(e){nT.prototype.lT.call(this,e);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.b(RM,lj);g.J=RM.prototype;
g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.Z=N;if(N.dialogMessage==null&&N.title==null)g.t0(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{N.confirmLabel==null&&g.uA(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(e=N.closeOverlayRenderer&&g.m(N.closeOverlayRenderer,g.zR)||null)this.J=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.Q(this,this.J),this.J.init(TV("button"),e,this.macros),this.J.yB(this.element);N.title&&(e=g.SY(N.title),this.updateValue("title",e));if(N.adReasons)for(e=N.adReasons,y=0;y<e.length;y++){var w=uj(e[y]);if(!g.kw(w.textContent)){var E=L9("LI");E.appendChild(w);this.aq.appendChild(E)}}else g.X0(this.aq,!1);N.dialogMessage&&(e=uj(N.dialogMessage,!0),this.Bk.appendChild(e));N.confirmLabel&&(e=g.SY(N.confirmLabel),this.updateValue("confirmLabel",e));N.muteAdRenderer&&(N=g.m(N.muteAdRenderer,g.zR)||null)&&
(e=N.navigationEndpoint&&g.m(N.navigationEndpoint,t0f)||null,y=N.navigationEndpoint&&g.m(N.navigationEndpoint,X_f)||null,e==null&&y==null?g.uA(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(e?jv5(this,e):y&&n$5(this,y),this.K=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-info-dialog-mute-button"],"button",!0),g.Q(this,this.K),this.K.init(TV("button"),N,this.macros),this.K.listen("click",
this.Y2P,this),this.K.yB(this.Ut)));Qvn(this)}};
g.J.clear=function(){Iz(this.D);this.hide()};
g.J.hide=function(){this.N?this.N.hide():this.j&&this.j.hide();this.J&&this.J.hide();this.K&&this.K.hide();lj.prototype.hide.call(this);this.Kh&&this.Kh.focus()};
g.J.show=function(){this.J&&this.J.show();this.K&&this.K.show();if(!this.Zl){for(var e=g.c(this.Z&&this.Z.impressionEndpoints||[]),N=e.next();!N.done;N=e.next())N=N.value,this.layoutId?this.Y1.executeCommand(N,this.layoutId):g.t0(Error("Missing layoutId for ad info dialog."));this.Zl=!0}this.Kh=document.activeElement;lj.prototype.show.call(this);this.D.focus()};
g.J.Pb=function(){if(this.Z&&this.Z.confirmServiceEndpoint){var e=this.Z.confirmServiceEndpoint;this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.J.Y2P=function(){var e=this.N?this.N:this.j;e&&!e.Og&&(this.hide(),e.show())};g.b(GV,Zh);GV.prototype.init=function(e,N,y){Zh.prototype.init.call(this,e,N,y);e=N.button&&g.m(N.button,g.zR)||null;e!=null&&(Ol5(this,e,y),this.api.T("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())};
GV.prototype.hide=function(){this.button&&this.button.hide();this.J&&this.J.hide();Zh.prototype.hide.call(this)};
GV.prototype.show=function(){this.button&&this.button.show();Zh.prototype.show.call(this)};
GV.prototype.clear=function(){this.hide()};g.b(UZ,lj);
UZ.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.J=N;this.isTemplated()||g.AL(this.element,F3(this.J));if(N.backgroundImage&&(e=(e=N.backgroundImage.thumbnail)?xl(e):"",y=(y=this.api.getVideoData(1))&&y.al,e&&y&&(this.element.style.backgroundImage="url("+e+")",this.element.style.backgroundSize="100%"),N.style&&N.style.adTextStyle))switch(N.style.adTextStyle.fontSize){case "AD_FONT_SIZE_MEDIUM":this.element.style.fontSize="26px"}(e=g.Ly(N.targetId))&&this.element.setAttribute("data-tooltip-target-id",e);
N&&N.adRendererCommands&&N.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element");this.show()};
UZ.prototype.isTemplated=function(){return this.J.isTemplated||!1};
UZ.prototype.clear=function(){this.hide()};var NoP={seekableStart:0,seekableEnd:1,current:0};g.b(sZ,lj);sZ.prototype.clear=function(){this.dispose()};g.b(g.NE,g.x);g.J=g.NE.prototype;g.J.show=function(e){this.state!==1&&this.state!==2&&(this.state===4&&this.aR(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.J&&this.J()):this.element.Og||(yd(this,!0),this.state=1,e?this.delay.start(e):this.aR()))};
g.J.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Og&&(yd(this,!0),this.state=4,this.delay.start(this.K)))};
g.J.aR=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:yd(this,!1);this.state=3;this.delay.start(this.N);break;case 3:this.state=null;this.J&&this.J();break;case 4:this.element.hide();yd(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.J.stop=function(){for(;this.state!==null&&this.state!==5;)this.delay.stop(),this.aR()};
g.J.fh=function(){this.element.Ss()||this.element.element.removeAttribute("aria-hidden");g.x.prototype.fh.call(this)};g.b(wh,sZ);g.J=wh.prototype;
g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);e=N.durationMilliseconds;typeof e==="number"&&e<0&&g.t0(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+e));this.VB&&(this.j?g.pi(this.N.element,"modern-countdown-next-to-thumbnail"):g.pi(this.N.element,"countdown-next-to-thumbnail"));e=N.durationMilliseconds;this.aq=e==null||e===0?this.J.WU():e;if(N.templatedCountdown)var w=N.templatedCountdown.templatedAdText;else N.staticPreview&&(w=N.staticPreview);
this.K.init(TV("ad-text"),w,y);(w=this.api.getVideoData(1))&&w.al&&N.thumbnail?this.Z.init(TV("ad-image"),N.thumbnail,y):(this.Kh.hide(),this.j&&this.VB&&g.pi(this.K.element,"ytp-ad-preview-text-modern-postroll"))};
g.J.clear=function(){this.hide()};
g.J.hide=function(){this.N.hide();this.K.hide();this.Z.hide();eQ(this);sZ.prototype.hide.call(this)};
g.J.show=function(){aM(this);this.N.show();this.K.show();this.Z.show();sZ.prototype.show.call(this)};
g.J.w2=function(){this.hide()};
g.J.t3=function(){if(this.J!=null){var e=this.J.getProgressState();e!=null&&e.current!=null&&(e=1E3*e.current,!this.Bk&&e>=this.aq?(this.i9.hide(),this.Bk=!0,this.publish("i")):this.K&&this.K.isTemplated()&&(e=Math.max(0,Math.ceil((this.aq-e)/1E3)),e!=this.Ut&&(LT(this.K,{TIME_REMAINING:String(e)}),this.Ut=e)))}};g.b(AF,sZ);g.J=AF.prototype;
g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);if(N.image&&N.image.thumbnail)if(N.headline)if(N.description)if((e=N.actionButton&&g.m(N.actionButton,g.zR))&&e.navigationEndpoint){var w=this.api.getVideoData(2);if(w!=null)if(N.image&&N.image.thumbnail){var E=N.image.thumbnail.thumbnails;E!=null&&E.length>0&&g.kw(g.Ly(E[0].url))&&(E[0].url=w.profilePicture)}else g.uA(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.K.init(TV("ad-image"),N.image,y);this.Z.init(TV("ad-text"),
N.headline,y);this.j.init(TV("ad-text"),N.description,y);this.N.init(TV("button"),e,y);y=sH(this.N.element);G1(this.N.element,y+" This link opens in new tab");this.Kh=e.navigationEndpoint;this.api.OW()||this.show();this.api.X().T("enable_larger_flyout_cta_on_desktop")&&(this.hW("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.hW("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.hW("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.hW("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.hW("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.hW("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.N.element.classList.add("ytp-flyout-cta-action-button-large"),this.N.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.hW("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.Zt.bind(this));this.i9=N.startMs||0;aM(this)}else g.t0(Error("FlyoutCtaRenderer has no valid action button."));else g.t0(Error("FlyoutCtaRenderer has no description AdText."));else g.t0(Error("FlyoutCtaRenderer has no headline AdText."));else g.uA(Error("FlyoutCtaRenderer has no image."))};
g.J.onClick=function(e){sZ.prototype.onClick.call(this,e);this.api.pauseVideo();!g.Ex(this.N.element,e.target)&&this.Kh&&(this.layoutId?this.Y1.executeCommand(this.Kh,this.layoutId):g.t0(Error("Missing layoutId for flyout cta.")))};
g.J.t3=function(){if(this.J){var e=this.J.getProgressState();(e&&e.current||this.aq)&&1E3*e.current>=this.i9&&(eQ(this),g.re(this.element,"ytp-flyout-cta-inactive"),this.N.element.removeAttribute("tabIndex"))}};
g.J.w2=function(){this.clear()};
g.J.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Zt.bind(this))};
g.J.show=function(){this.N&&this.N.show();sZ.prototype.show.call(this)};
g.J.hide=function(){this.N&&this.N.hide();sZ.prototype.hide.call(this)};
g.J.Zt=function(e){e=="hidden"?this.show():this.hide()};g.b(TF,lj);g.J=TF.prototype;
g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.J=N;if(this.J.rectangle)for(e=this.J.likeButton&&g.m(this.J.likeButton,hs),N=this.J.dislikeButton&&g.m(this.J.dislikeButton,hs),this.K.init(TV("toggle-button"),e,y),this.N.init(TV("toggle-button"),N,y),this.Y(this.element,"change",this.r3),this.j.show(100),this.show(),y=g.c(this.J&&this.J.impressionCommands||[]),e=y.next();!e.done;e=y.next())e=e.value,this.layoutId?this.Y1.executeCommand(e,this.layoutId):g.t0(Error("Missing layoutId for instream user sentiment."))};
g.J.clear=function(){this.hide()};
g.J.hide=function(){this.K.hide();this.N.hide();lj.prototype.hide.call(this)};
g.J.show=function(){this.K.show();this.N.show();lj.prototype.show.call(this)};
g.J.r3=function(){v01(this.element,"ytp-ad-instream-user-sentiment-selected");this.J.postMessageAction&&this.api.Mg("onYtShowToast",this.J.postMessageAction);this.j.hide()};
g.J.onClick=function(e){this.l9.length>0&&this.r3();lj.prototype.onClick.call(this,e)};g.b(JF,g.x);g.J=JF.prototype;g.J.fh=function(){this.reset();g.x.prototype.fh.call(this)};
g.J.reset=function(){g.g9(this.j);this.Z=!1;this.J&&this.J.stop();this.L.stop();this.K&&(this.K=!1,this.G.play())};
g.J.start=function(){this.reset();this.j.Y(this.N,"mouseover",this.T1,this);this.j.Y(this.N,"mouseout",this.LL,this);this.Ng&&(this.j.Y(this.N,"focusin",this.T1,this),this.j.Y(this.N,"focusout",this.LL,this));this.J?this.J.start():(this.Z=this.K=!0,g.$0(this.N,{opacity:this.D}))};
g.J.T1=function(){this.K&&(this.K=!1,this.G.play());this.L.stop();this.J&&this.J.stop()};
g.J.LL=function(){this.Z?this.L.start():this.J&&this.J.start()};
g.J.s9=function(){this.K||(this.K=!0,this.U.play(),this.Z=!0)};var L1s=[new pR("b.f_",!1,0),new pR("j.s_",!1,2),new pR("r.s_",!1,4),new pR("e.h_",!1,6),new pR("i.s_",!0,8),new pR("s.t_",!1,10),new pR("p.h_",!1,12),new pR("s.i_",!1,14),new pR("f.i_",!1,16),new pR("a.b_",!1,18),new pR("a.o_",!1),new pR("g.o_",!1,22),new pR("p.i_",!1,24),new pR("p.m_",!1),new pR("i.k_",!0,28),new pR("n.k_",!0,20),new pR("i.f_",!1),new pR("a.s_",!0),new pR("m.c_",!1),new pR("n.h_",!1,26),new pR("o.p_",!1)].reduce(function(e,N){e[N.N]=N;return e},{});g.b(SQ,sZ);g.J=SQ.prototype;
g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);this.Kh=N;(this.i9=am_(this))&&g.uA(Error("hasAdControlInClickCommands_ is true."));if(!N||g.v4(N))g.t0(Error("SkipButtonRenderer was not specified or empty."));else if(!N.message||g.v4(N.message))g.t0(Error("SkipButtonRenderer.message was not specified or empty."));else{e=this.Z?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};N=g1(e);N==null?g.t0(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+e.iconType+".")):
(this.j=new g.Mu({S:"button",dP:[this.Z?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{S:"span",B:this.Z?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[N]}]}),g.Q(this,this.j),this.j.yB(this.K.element),this.N=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,"ytp-ad-skip-button-text"),this.Z&&this.N.element.classList.add("ytp-ad-skip-button-text-centered"),this.N.init(TV("ad-text"),this.Kh.message,y),g.Q(this,this.N),yp(this.j.element,this.N.element,
0));var w=w===void 0?null:w;y=this.api.X();!(this.l9.length>0)&&y.N&&(KC?0:"ontouchstart"in document.documentElement&&(co5()||Sb()))&&(this.CX(this.Dl),w&&this.CX(w),this.l9=[this.Y(this.element,"touchstart",this.T6,this),this.Y(this.element,"touchmove",this.LS,this),this.Y(this.element,"touchend",this.Zi,this)])}};
g.J.clear=function(){this.aq.reset();this.hide()};
g.J.hide=function(){this.K.hide();this.N&&this.N.hide();eQ(this);sZ.prototype.hide.call(this)};
g.J.onClick=function(e){if(this.j!=null){if(e){var N=e||window.event;N.returnValue=!1;N.preventDefault&&N.preventDefault()}var y;if(GvM(e,{contentCpn:((y=this.api.getVideoData(1))==null?void 0:y.clientPlaybackNonce)||""})===0)this.api.Mg("onAbnormalityDetected");else if(sZ.prototype.onClick.call(this,e),this.publish("j"),this.api.Mg("onAdSkip"),this.Bk||!this.i9)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.J.yP=function(e){if(!this.Bk)return this.i9&&YN("SkipButton click commands not pruned while ALC exist"),e;var N,y=(N=g.m(e,g.o4))==null?void 0:N.commands;if(!y)return e;e=[];for(N=0;N<y.length;N++){var w=y[N];w.adLifecycleCommand&&svJ(w.adLifecycleCommand)||w.pingingEndpoint||w.adPingingEndpoint||e.push(w)}return{commandExecutorCommand:{commands:e}}};
g.J.show=function(){this.aq.start();this.K.show();this.N&&this.N.show();aM(this);sZ.prototype.show.call(this);this.Ut&&this.api.X().T("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.J.w2=function(){this.publish("k")};
g.J.t3=function(){};g.b(bp,sZ);g.J=bp.prototype;
g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);e=N&&N.preskipRenderer&&g.m(N.preskipRenderer,vr)||{};(e=g.v4(e)?null:e)?(this.Z=e.durationMilliseconds!=null&&e.durationMilliseconds!==void 0?e.durationMilliseconds:5E3,this.N=new wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J,ms(this.api.X().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&dX(this.api.X())),this.N.init(TV("preskip-component"),e,y),Ez(this.N),g.Q(this,this.N),this.N.yB(this.element)):
N.skipOffsetMilliseconds&&(this.Z=N.skipOffsetMilliseconds);e=N&&N.skippableRenderer&&g.m(N.skippableRenderer,C_Z)||{};e=g.v4(e)?null:e;e==null?g.t0(Error("SkipButtonRenderer was not set in player response.")):(this.K=new SQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J,this.Kh),this.K.init(TV("skip-button"),e,y),g.Q(this,this.K),this.K.yB(this.element),this.api.X().experiments.gP("enable_skip_to_next_messaging")&&(N=g.Ly(N.targetId))&&(y=this.K,y.j!=null&&(y.Ut=!0,y.j.element.setAttribute("data-tooltip-target-id",
N),y.j.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.J.show=function(){this.j&&this.K?this.K.show():this.N&&this.N.show();aM(this);sZ.prototype.show.call(this)};
g.J.w2=function(){};
g.J.clear=function(){this.N&&this.N.clear();this.K&&this.K.clear();eQ(this);sZ.prototype.hide.call(this)};
g.J.hide=function(){this.N&&this.N.hide();this.K&&this.K.hide();eQ(this);sZ.prototype.hide.call(this)};
g.J.t3=function(){1E3*this.J.getProgressState().current>=this.Z&&eW9(this,!0)};g.b(hF,Vv);hF.prototype.init=function(e,N,y){Vv.prototype.init.call(this,e,N,y);e=!1;N.text!=null&&(e=g.SY(N.text),e=!g.kw(e));e?N.navigationEndpoint==null?g.uA(Error("No visit advertiser clickthrough provided in renderer,")):N.style!=="STYLE_UNKNOWN"?g.uA(Error("Button style was not a link-style type in renderer,")):this.show():g.uA(Error("No visit advertiser text was present in the renderer."))};g.b(c2,lj);
c2.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);e=N.text;g.kw(F3(e))?g.uA(Error("SimpleAdBadgeRenderer has invalid or empty text")):(e&&e.text&&(N=e.text,this.K&&!this.N&&(N=this.api.X(),N=e.text+" "+(N&&N.N?"\u2022":"\u00b7")),N={text:N,isTemplated:e.isTemplated},e.style&&(N.style=e.style),e.targetId&&(N.targetId=e.targetId),e=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),e.init(TV("simple-ad-badge"),N,y),e.yB(this.element),g.Q(this,e)),this.show())};
c2.prototype.clear=function(){this.hide()};g.b(kN,JZ);g.b(B2,g.pT);g.J=B2.prototype;g.J.WU=function(){return this.durationMs};
g.J.stop=function(){this.J&&this.bB.CX(this.J)};
g.J.HY=function(e){this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:e.current};this.publish("h")};
g.J.getProgressState=function(){return this.N};
g.J.HO=function(e){g.FD(e,2)&&this.publish("g")};g.b(XD,g.pT);g.J=XD.prototype;g.J.WU=function(){return this.durationMs};
g.J.start=function(){this.J||(this.J=!0,this.D_.start())};
g.J.stop=function(){this.J&&(this.J=!1,this.D_.stop())};
g.J.HY=function(){this.Cj+=100;var e=!1;this.Cj>this.durationMs&&(this.Cj=this.durationMs,this.D_.stop(),e=!0);this.N={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Cj/1E3};this.publish("h");e&&this.publish("g")};
g.J.getProgressState=function(){return this.N};g.b(I4,sZ);g.J=I4.prototype;g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);var w;if(N==null?0:(w=N.templatedCountdown)==null?0:w.templatedAdText){e=N.templatedCountdown.templatedAdText;if(!e.isTemplated){g.uA(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.N=new UZ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);this.N.init(TV("ad-text"),e,{});this.N.yB(this.element);g.Q(this,this.N)}this.show()};
g.J.clear=function(){this.hide()};
g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)};
g.J.w2=function(){this.hide()};
g.J.t3=function(){if(this.J!=null){var e=this.J.getProgressState();if(e!=null&&e.current!=null&&this.N){var N=this.J instanceof B2?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:e.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.J instanceof XD?e.seekableEnd:this.api.getDuration(2,!1);e=e.current;N=this.api.X().experiments.gP("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(N-e,0):N-e;LT(this.N,{FORMATTED_AD_DURATION_REMAINING:String(g.P2(N)),
TIME_REMAINING:String(Math.ceil(N))})}}};
g.J.show=function(){aM(this);sZ.prototype.show.call(this)};g.b(v2,UZ);v2.prototype.onClick=function(e){UZ.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType)};g.b(ip,lj);ip.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(e=N.content){g.AL(this.element,e);var y,w;N=((y=N.interaction)==null?void 0:(w=y.accessibility)==null?void 0:w.label)||e;this.element.setAttribute("aria-label",N)}else g.t0(Error("AdSimpleAttributedString does not have text content"))};
ip.prototype.clear=function(){this.hide()};
ip.prototype.onClick=function(e){lj.prototype.onClick.call(this,e)};g.b(DY,lj);
DY.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});(e=N.label)&&e.content&&!g.kw(e.content)?(this.adBadgeText.init(TV("ad-simple-attributed-string"),new zF(e)),(N=N.adPodIndex)&&N.content&&!g.kw(N.content)&&(this.J=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),this.J.yB(this.element),g.Q(this,this.J),this.J.element.classList.add("ytp-ad-badge__pod-index"),this.J.init(TV("ad-simple-attributed-string"),new zF(N))),this.element.classList.add(this.N?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.t0(Error("No label is returned in AdBadgeViewModel."))};
DY.prototype.show=function(){this.adBadgeText.show();var e;(e=this.J)==null||e.show();lj.prototype.show.call(this)};
DY.prototype.hide=function(){this.adBadgeText.hide();var e;(e=this.J)==null||e.hide();lj.prototype.hide.call(this)};g.b(gh,lj);
gh.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});(e=N.adPodIndex)&&e.content&&!g.kw(e.content)&&(this.J=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),this.J.yB(this.element),g.Q(this,this.J),this.J.init(TV("ad-simple-attributed-string"),new zF(e)),(this.api.X().T("clean_player_style_fix_on_web")?N.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.N||N.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide"));
this.element.classList.add("ytp-ad-pod-index--stark");this.api.T("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()};
gh.prototype.show=function(){var e;(e=this.J)==null||e.show();lj.prototype.show.call(this)};
gh.prototype.hide=function(){var e;(e=this.J)==null||e.hide();lj.prototype.hide.call(this)};g.b(Vd,lj);
Vd.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N!=null&&N.text){var y;if(((y=N.text)==null?0:y.content)&&!g.kw(N.text.content)){this.J=new g.Mu({S:"div",B:"ytp-ad-disclosure-banner__text",b9:N.text.content});g.Q(this,this.J);this.J.yB(this.element);var w,E;e=((w=N.interaction)==null?void 0:(E=w.accessibility)==null?void 0:E.label)||N.text.content;this.element.setAttribute("aria-label",e);var A;if((A=N.interaction)==null?0:A.onTap)this.N=new g.Mu({S:"div",B:"ytp-ad-disclosure-banner__chevron",W:[g.cq()]}),
g.Q(this,this.N),this.N.yB(this.element);this.show()}}else g.t0(Error("No banner text found in AdDisclosureBanner."))};
Vd.prototype.clear=function(){this.hide()};fR.prototype.getLength=function(){return this.J-this.N};g.b(up,g.Mu);up.prototype.HY=function(){var e=this.N.getProgressState(),N=e.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.X().T("show_preskip_progress_bar_for_skippable_ads")&&(N=this.K?this.K/1E3:e.seekableEnd);e=tF(new fR(e.seekableStart,N),e.current,0);this.progressBar.style.width=e*100+"%"};
up.prototype.onStateChange=function(){g.IK(this.api.X())||(this.api.getPresentingPlayerType()===2?this.J===-1&&(this.show(),this.J=this.N.subscribe("h",this.HY,this),this.HY()):this.J!==-1&&(this.hide(),this.N.qr(this.J),this.J=-1))};g.b(qE,lj);
qE.prototype.init=function(e,N,y,w){lj.prototype.init.call(this,e,N,y);y=!0;if(N.skipOrPreviewRenderer){var E=N.skipOrPreviewRenderer;e=g.m(E,yV);E=g.m(E,vr);e?(E=new bp(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,this.Kh),E.yB(this.D),E.init(TV("skip-button"),e,this.macros),g.Q(this,E)):E&&!this.api.X().experiments.gP("disable_ad_preview_for_instream_ads")&&(e=new wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,!1),e.yB(this.D),e.init(TV("ad-preview"),E,
this.macros),Ez(e),g.Q(this,e));if(e=g.m(N.skipOrPreviewRenderer,yV)){y=!1;var A=e.skipOffsetMilliseconds}}N.brandInteractionRenderer&&(e=N.brandInteractionRenderer.brandInteractionRenderer,E=new TF(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),E.yB(this.aq),E.init(TV("instream-user-sentiment"),e,this.macros),g.Q(this,E));if(e=g.m(N,w_X))if(e=g.m(e,w_X))E=new AF(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,!!N.showWithoutLinkedMediaLayout),g.Q(this,E),
E.yB(this.Z),E.init(TV("flyout-cta"),e,this.macros);e=(this.api.X().T("disable_ad_duration_remaining_for_instream_video_ads")||N.adPodIndex!==void 0)&&!1;w=w&&w.videoAdDurationSeconds;if(N.adBadgeRenderer){var T=N.adBadgeRenderer;E=g.m(T,Hv);E!=null?(T=new DY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,e),g.Q(this,T),T.yB(this.J),T.init(TV("ad-badge"),E,this.macros),this.K=T.element):(E=T.simpleAdBadgeRenderer,E==null&&(E={text:{text:"Ad",isTemplated:!1}}),T=new c2(this.api,this.layoutId,
this.interactionLoggingClientData,this.Y1,!0),g.Q(this,T),T.yB(this.J),T.init(TV("simple-ad-badge"),E,this.macros))}N.adPodIndex&&(E=g.m(N.adPodIndex,M0Z),E!=null&&(y=new gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,y),g.Q(this,y),y.yB(this.J),y.init(TV("ad-pod-index"),E)));N.adDurationRemaining&&!N.showWithoutLinkedMediaLayout&&(y=N.adDurationRemaining.adDurationRemainingRenderer,y==null&&(y={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),
w=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,w,e),g.Q(this,w),w.yB(this.J),w.init(TV("ad-duration-remaining"),y,this.macros),e&&w.element.classList.add("ytp-ad-duration-remaining-autohide"));N.adInfoRenderer&&(w=g.m(N.adInfoRenderer,IQ))&&(y=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,e),g.Q(this,y),this.api.X().T("enable_ad_pod_index_autohide")&&this.K!==null?this.J.insertBefore(y.element,this.K.nextSibling):y.yB(this.J),
y.init(TV("ad-info-hover-text-button"),w,this.macros));N.visitAdvertiserRenderer&&(y=g.m(N.visitAdvertiserRenderer,g.zR))&&(E=wiJ(this)&&this.j?this.j:this.J)&&(w=new hF(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,w),w.yB(E),w.init(TV("visit-advertiser"),y,this.macros),OH(w.element),y=sH(w.element),G1(w.element,y+" This link opens in new tab"));!(w=this.api.X())||g.Pg(w)||w.controlsType!="3"&&!w.disableOrganicUi||(A=new up(this.api,this.N,A,e),A.yB(this.Zl),g.Q(this,
A));N.adDisclosureBannerRenderer&&(N=g.m(N.adDisclosureBannerRenderer,Ykf))&&(A=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),A.yB(this.i9),A.init(TV("ad-disclosure-banner"),N),g.Q(this,A));this.api.X().T("enable_updated_html5_player_focus_style")&&g.pi(this.element,"ytp-ad-player-overlay-updated-focus-style");e&&this.api.X().N&&this.J.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()};
qE.prototype.clear=function(){this.hide()};nR.prototype.set=function(e,N,y){y=y!==void 0?Date.now()+y:void 0;this.J.set(e,N,y)};
nR.prototype.get=function(e){return this.J.get(e)};
nR.prototype.remove=function(e){this.J.remove(e)};var KR=null,W2=null,Oz=null,Ct0=null;g.jM("yt.www.ads.eventcache.getLastCompanionData",function(){return KR});
g.jM("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.jM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return W2});
g.jM("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Oz});
g.jM("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Ct0});var $90=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);R4.prototype.handleResponse=function(e,N){if(!N)throw Error("request needs to be passed into ConsistencyService");var y,w;N=((y=N.Yi.context)==null?void 0:(w=y.request)==null?void 0:w.consistencyTokenJars)||[];var E;(e=(E=e.responseContext)==null?void 0:E.consistencyTokenJar)&&this.replace(N,e)};
R4.prototype.replace=function(e,N){e=g.c(e);for(var y=e.next();!y.done;y=e.next())delete this.J[y.value.encryptedTokenJarContents];M7M(this,N)};var zjZ=window.location.hostname.split(".").slice(-2).join("."),IH;Uz.getInstance=function(){IH=g.nM("yt.clientLocationService.instance");IH||(IH=new Uz,g.jM("yt.clientLocationService.instance",IH));return IH};
g.J=Uz.prototype;
g.J.setLocationOnInnerTubeContext=function(e){e.client||(e.client={});if(this.J)e.client.locationInfo||(e.client.locationInfo={}),e.client.locationInfo.latitudeE7=Math.floor(this.J.coords.latitude*1E7),e.client.locationInfo.longitudeE7=Math.floor(this.J.coords.longitude*1E7),e.client.locationInfo.horizontalAccuracyMeters=Math.round(this.J.coords.accuracy),e.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.K||this.locationPlayabilityToken)e.client.locationPlayabilityToken=this.K||
this.locationPlayabilityToken};
g.J.handleResponse=function(e){var N;e=(N=e.responseContext)==null?void 0:N.locationPlayabilityToken;e!==void 0&&(this.locationPlayabilityToken=e,this.J=void 0,g.Lb("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=GF(this))&&this.localStorage.set("yt-location-playability-token",e,15552E3):g.x3("YT_CL",JSON.stringify({loctok:e}),15552E3,zjZ,!0))};
g.J.clearLocationPlayabilityToken=function(e){e==="TVHTML5"?(this.localStorage=GF(this))&&this.localStorage.remove("yt-location-playability-token"):g.np("YT_CL");this.K=void 0;this.N!==-1&&(clearTimeout(this.N),this.N=-1)};
g.J.getCurrentPositionFromGeolocation=function(){var e=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var N=!1,y=1E4;g.Lb("INNERTUBE_CLIENT_NAME")==="MWEB"&&(N=!0,y=15E3);return new Promise(function(w,E){navigator.geolocation.getCurrentPosition(function(A){e.J=A;w(A)},function(A){E(A)},{enableHighAccuracy:N,
maximumAge:0,timeout:y})})};
g.J.createUnpluggedLocationInfo=function(e){var N={};e=e.coords;if(e==null?0:e.latitude)N.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)N.longitudeE7=Math.floor(e.longitude*1E7);if(e==null?0:e.accuracy)N.locationRadiusMeters=Math.round(e.accuracy);return N};
g.J.createLocationInfo=function(e){var N={};e=e.coords;if(e==null?0:e.latitude)N.latitudeE7=Math.floor(e.latitude*1E7);if(e==null?0:e.longitude)N.longitudeE7=Math.floor(e.longitude*1E7);return N};g.J=b65.prototype;g.J.contains=function(e){return Object.prototype.hasOwnProperty.call(this.J,e)};
g.J.get=function(e){if(this.contains(e))return this.J[e]};
g.J.set=function(e,N){this.J[e]=N};
g.J.Nk=function(){return Object.keys(this.J)};
g.J.remove=function(e){delete this.J[e]};sz.prototype.getModuleId=function(e){return e.serviceId.getModuleId()};
sz.prototype.get=function(e){a:{var N=this.mappings.get(e.toString());switch(N.type){case "mapping":e=N.value;break a;case "factory":N=N.value();this.mappings.set(e.toString(),{type:"mapping",value:N});e=N;break a;default:e=wa(N)}}return e};
sz.prototype.registerService=function(e,N){this.mappings.set(e.toString(),{type:"mapping",value:N});return e};
new sz;var vj={},hWs=(vj.WEB_UNPLUGGED="^unplugged/",vj.WEB_UNPLUGGED_ONBOARDING="^unplugged/",vj.WEB_UNPLUGGED_OPS="^unplugged/",vj.WEB_UNPLUGGED_PUBLIC="^unplugged/",vj.WEB_CREATOR="^creator/",vj.WEB_KIDS="^kids/",vj.WEB_EXPERIMENTS="^experiments/",vj.WEB_MUSIC="^music/",vj.WEB_REMIX="^music/",vj.WEB_MUSIC_EMBEDDED_PLAYER="^music/",vj.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",vj);NY.prototype.L=function(e,N,y){N=N===void 0?{}:N;y=y===void 0?lt:y;var w={context:g.LR(e.clickTrackingParams,!1,this.j)};var E=this.N(e);if(E){this.J(w,E,N);var A;N=g.eZ(this.K());(E=(A=g.m(e.commandMetadata,g.bW))==null?void 0:A.apiUrl)&&(N=E);A=FI1(QN(N));e=Object.assign({},{command:e},void 0);w={input:A,bd:mH(A),Yi:w,config:e};w.config.dE?w.config.dE.identity=y:w.config.dE={identity:y};return w}g.t0(new g.Gh("Error: Failed to create Request from Command.",e))};
g.pM.Object.defineProperties(NY.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.b(yQ,NY);g.b(ly,yQ);ly.prototype.L=function(){return{input:"/getDatasyncIdsEndpoint",bd:mH("/getDatasyncIdsEndpoint","GET"),Yi:{}}};
ly.prototype.K=function(){return[]};
ly.prototype.N=function(){};
ly.prototype.J=function(){};var ifw={},ax0=(ifw.GET_DATASYNC_IDS=a4(ly),ifw);var zA={},Ddf=(zA["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",zA["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",zA["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",zA["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",zA["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",zA["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",zA["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
zA["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",zA["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",zA["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",zA["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",zA["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",zA["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",zA["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",zA["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
zA["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",zA["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",zA["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",zA["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",zA["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",zA["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",zA["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
zA["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",zA.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",zA["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",zA["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",zA["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",zA["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",zA["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",zA["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
zA["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",zA["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",zA["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",zA["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",zA["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",zA["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",zA["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",zA["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",zA["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",zA["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",zA.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",zA["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",zA["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",zA["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",zA["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",zA["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",zA["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",zA["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",zA["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",zA["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",zA["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",zA["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",zA["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",zA["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",zA["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",zA["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",zA["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",zA["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",zA["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",zA["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",zA["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",zA["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
zA["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",zA["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",zA["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",zA["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",zA["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",zA["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",zA["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",zA["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",zA["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
zA["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",zA["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",zA["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",zA["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",zA["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",zA["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",zA["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",zA["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",
zA),iW={},IxJ=(iW.auto_search="LATENCY_ACTION_AUTO_SEARCH",iW.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iW.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iW.app_startup="LATENCY_ACTION_APP_STARTUP",iW.browse="LATENCY_ACTION_BROWSE",iW.cast_splash="LATENCY_ACTION_CAST_SPLASH",iW.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iW.channels="LATENCY_ACTION_CHANNELS",iW.chips="LATENCY_ACTION_CHIPS",iW.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iW.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
iW.editor="LATENCY_ACTION_EDITOR",iW.embed="LATENCY_ACTION_EMBED",iW.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iW.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iW.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iW.explore="LATENCY_ACTION_EXPLORE",iW.favorites="LATENCY_ACTION_FAVORITES",iW.home="LATENCY_ACTION_HOME",iW.inboarding="LATENCY_ACTION_INBOARDING",iW.library="LATENCY_ACTION_LIBRARY",iW.live="LATENCY_ACTION_LIVE",iW.live_pagination=
"LATENCY_ACTION_LIVE_PAGINATION",iW.management="LATENCY_ACTION_MANAGEMENT",iW.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iW.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iW.onboarding="LATENCY_ACTION_ONBOARDING",iW.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",iW.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iW.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iW.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iW.prebuffer="LATENCY_ACTION_PREBUFFER",
iW.prefetch="LATENCY_ACTION_PREFETCH",iW.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iW.profile_switcher="LATENCY_ACTION_LOGIN",iW.projects="LATENCY_ACTION_PROJECTS",iW.reel_watch="LATENCY_ACTION_REEL_WATCH",iW.results="LATENCY_ACTION_RESULTS",iW.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iW.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iW.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iW.review="LATENCY_ACTION_REVIEW",iW.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",
iW.search_ui="LATENCY_ACTION_SEARCH_UI",iW.search_suggest="LATENCY_ACTION_SUGGEST",iW.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iW.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iW.seek="LATENCY_ACTION_PLAYER_SEEK",iW.settings="LATENCY_ACTION_SETTINGS",iW.store="LATENCY_ACTION_STORE",iW.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iW.tenx="LATENCY_ACTION_TENX",iW.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iW.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iW.watch="LATENCY_ACTION_WATCH",
iW.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iW["watch,watch7"]="LATENCY_ACTION_WATCH",iW["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iW["watch,watch7ad"]="LATENCY_ACTION_WATCH",iW["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iW.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",iW.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iW.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iW.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iW.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",
iW.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iW.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iW.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iW);Object.assign(IxJ,Ddf);g.b(Xm,FG);var npJ=new S7("aft-recorded",Xm);var gRw=g.xJ.ytLoggingGelSequenceIdObj_||{};g.jM("ytLoggingGelSequenceIdObj_",gRw);var Ig=g.xJ.ytLoggingLatencyUsageStats_||{};g.jM("ytLoggingLatencyUsageStats_",Ig);Pw.prototype.tick=function(e,N,y,w){vw(this,"tick_"+e+"_"+N)||g.$$("latencyActionTicked",{tickName:e,clientActionNonce:N},{timestamp:y,cttAuthInfo:w})};
Pw.prototype.info=function(e,N,y){var w=Object.keys(e).join("");vw(this,"info_"+w+"_"+N)||(e=Object.assign({},e),e.clientActionNonce=N,g.$$("latencyActionInfo",e,{cttAuthInfo:y}))};
Pw.prototype.jspbInfo=function(e,N,y){for(var w="",E=0;E<vW(e).length;E++)vW(e)[E]!==void 0&&(w=E===0?w.concat(""+E):w.concat("_"+E));if(!vw(this,"info_"+w+"_"+N)){Sn(e,2,N);y={cttAuthInfo:y};N=g.Xj("jspb_sparse_encoded_pivot")?new Wz([{}]):new Wz;e!=null?BW(e,nb):e=void 0;en(N,7,iqq,e);y=y===void 0?{}:y;e=!1;g.Lb("ytLoggingEventsDefaultDisabled",!1)&&(e=!0);e=e?null:g.N6;y=y===void 0?{}:y;w=Math.round(y.timestamp||(0,g.iC)());FX(N,1,w<Number.MAX_SAFE_INTEGER?w:0);w=new Kb;y.lact?FX(w,1,isFinite(y.lact)?
y.lact:-1):y.timestamp?FX(w,1,-1):(E=z_(),FX(w,1,isFinite(E)?E:-1));if(y.sequenceGroup&&!g.Xj("web_gel_sequence_info_killswitch")){E=y.sequenceGroup;var A=ohs(E),T=new Q2;FX(T,2,A);Sn(T,1,E);JQ(w,Q2,3,T);y.endOfSequence&&delete gRw[y.sequenceGroup]}JQ(N,Kb,33,w);(y.sendIsolatedPayload?RgM:Gk3)("latencyActionInfo",{endpoint:"log_event",payload:N,cttAuthInfo:y.cttAuthInfo,dangerousLogToVisitorSession:y.dangerousLogToVisitorSession},e)}};
Pw.prototype.span=function(e,N,y){var w=Object.keys(e).join("");vw(this,"span_"+w+"_"+N)||(e.clientActionNonce=N,g.$$("latencyActionSpan",e,{cttAuthInfo:y}))};var DI=window,zH=DI.performance||DI.mozPerformance||DI.msPerformance||DI.webkitPerformance||new vp0;var jeE=!1,D99=!1,Zn={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"},m9E=(0,g.Gs)(zH.clearResourceTimings||zH.webkitClearResourceTimings||zH.mozClearResourceTimings||zH.msClearResourceTimings||zH.oClearResourceTimings||g.CY,zH);var VEw=window;VEw.ytcsi&&(VEw.ytcsi.infoGel=g.nV,VEw.ytcsi.tick=jZ);var Al5="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),JlP=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var rlJ=new ia("INNERTUBE_TRANSPORT_TOKEN");g.b(GH,yQ);GH.prototype.K=function(){return lyw};
GH.prototype.N=function(e){return g.m(e,Lf_)||void 0};
GH.prototype.J=function(e,N,y){y=y===void 0?{}:y;N.channelIds&&(e.channelIds=N.channelIds);N.siloName&&(e.siloName=N.siloName);N.params&&(e.params=N.params);y.botguardResponse&&(e.botguardResponse=y.botguardResponse);y.feature&&(e.clientFeature=y.feature)};
g.pM.Object.defineProperties(GH.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.b(Uq,yQ);Uq.prototype.K=function(){return FW_};
Uq.prototype.N=function(e){return g.m(e,UMk)||void 0};
Uq.prototype.J=function(e,N){N.channelIds&&(e.channelIds=N.channelIds);N.siloName&&(e.siloName=N.siloName);N.params&&(e.params=N.params)};
g.pM.Object.defineProperties(Uq.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fy0=new ia("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.b(LV,yQ);LV.prototype.K=function(){return C7X};
LV.prototype.N=function(e){return g.m(e,Zqf)||g.m(e,xM0)||g.m(e,qk5)};
LV.prototype.J=function(e,N){N.serializedShareEntity&&(e.serializedSharedEntity=N.serializedShareEntity);if(N.clientParamIdentifier){var y;if((y=this.Z)==null?0:y.J(N.clientParamIdentifier))e.clientParams=this.Z.N(N.clientParamIdentifier)}};
LV[V7]=[fy0];g.b(sq,yQ);sq.prototype.K=function(){return $dw};
sq.prototype.N=function(e){return g.m(e,IZw)||void 0};
sq.prototype.J=function(e,N,y){e.feedbackTokens=[];N.feedbackToken&&e.feedbackTokens.push(N.feedbackToken);if(N=N.cpn||y.cpn)e.feedbackContext={cpn:N};e.isFeedbackTokenUnencrypted=!!y.is_feedback_token_unencrypted;e.shouldMerge=!1;y.extra_feedback_tokens&&(e.shouldMerge=!0,e.feedbackTokens=e.feedbackTokens.concat(y.extra_feedback_tokens))};
g.pM.Object.defineProperties(sq.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.b(ag,yQ);ag.prototype.K=function(){return YSw};
ag.prototype.N=function(e){return g.m(e,Gw0)||void 0};
ag.prototype.J=function(e,N){N.params&&(e.params=N.params);N.secondaryParams&&(e.secondaryParams=N.secondaryParams)};g.b(ey,yQ);ey.prototype.K=function(){return MEk};
ey.prototype.N=function(e){return g.m(e,Oq_)||void 0};
ey.prototype.J=function(e,N){N.actions&&(e.actions=N.actions);N.params&&(e.params=N.params);N.playlistId&&(e.playlistId=N.playlistId)};g.b(Nf,yQ);Nf.prototype.K=function(){return rOF};
Nf.prototype.N=function(e){return g.m(e,jwT)};
Nf.prototype.J=function(e,N,y){y=y===void 0?{}:y;N.serializedShareEntity&&(e.serializedSharedEntity=N.serializedShareEntity);y.includeListId&&(e.includeListId=!0)};var tE_=new ia("FETCH_FN_TOKEN"),uo_=new ia("PARSE_FN_TOKEN");g.b(g.ye,g.Gh);var qSk=new ia("NETWORK_SLI_TOKEN");wv.prototype.fetch=function(e,N,y){var w=this,E,A,T;return g.f(function(p){E=pX_(w,e,N);T=(A=w.N)!=null?A:fetch;return p.return(T(E).then(function(C){return w.handleResponse(C,y)}).catch(function(C){g.uA(C);
if((y==null?0:y.KI)&&C instanceof g.ye&&C.errorType===1)return Promise.reject(C)}))})};
wv.prototype.handleResponse=function(e,N){var y,w=(y=this.K)!=null?y:JSON.parse;y=e.text().then(function(E){if((N==null?0:N.eG9)&&e.ok)return gRs(N.eG9,E);E=E.replace(")]}'","");if((N==null?0:N.KI)&&E)try{var A=w(E)}catch(p){throw new g.ye(1,"JSON parsing failed after fetch");}var T;return(T=A)!=null?T:w(E)});
e.redirected||e.ok?this.J&&this.J.success():(this.J&&this.J.Wjk(),y=y.then(function(E){g.uA(new g.Gh("Error: API fetch failed",e.status,e.url,E));return Object.assign({},E,{errorMetadata:{status:e.status}})}));
return y};
wv[V7]=[new Dc(qSk),new Dc(tE_),new Dc(uo_)];var CaM=new ia("NETWORK_MANAGER_TOKEN");var El;JC.prototype.bindInnertubeChallengeFetcher=function(e){this.J.bicf(e)};
JC.prototype.registerChallengeFetchedCallback=function(e){this.J.bcr(e)};
JC.prototype.getLatestChallengeResponse=function(){return this.J.blc()};var MS5=[],p2=!1;Mf.prototype.j=function(){var e=this;return g.f(function(N){return N.J==1?g.D(N,Promise.race([e.J,null]),2):N.return(!!N.N)})};
Mf.prototype.K=function(e,N,y){var w=this,E,A,T;return g.f(function(p){w.J===null&&Fq5(w,YC(w));E=!1;A={};T=function(){var C,r,Y;return g.f(function(M){switch(M.J){case 1:return g.D(M,w.J,2);case 2:C=M.N;A.challenge=C.challenge;if(!C.f$){"c1a"in C.rK&&(A.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");M.u9(3);break}r=Object.assign({},{c:C.challenge,e:e},N);g.c5(M,4);E=!0;if(g.Xj("attbs")&&!g.Xj("attmusi")){Y=C.f$.mD({qX:r});M.u9(6);break}return g.D(M,C.f$.snapshot({qX:r}),7);case 7:Y=M.N;case 6:Y?A.webResponse=
Y:A.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.B5(M,3);break;case 4:g.XH(M),A.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(e==="ENGAGEMENT_TYPE_PLAYBACK"){var l=C.rK,F={};l.c6a&&(F.reportingStatus=String(Number(l.c)^C2()));l.c6b&&(F.broadSpectrumDetectionResult=String(Number(l.c)^Number(g.Lb("CATSTAT",0))));A.adblockReporting=F}return M.return(A)}})};
return p.return(Promise.race([T(),hln(y,function(){var C=Object.assign({},A);E&&(C.error="ATTESTATION_ERROR_VM_TIMEOUT");return C})]))})};var BW0=["APP_STATE","PI"];var abF=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,244189,236208,7282,124448,196088,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,225031,177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,
205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,
139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,
160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,
133658,132971,97615,181262,190762,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,
22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,
22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,
150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,213774,204572,191389,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,
226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,240553,95101,75240,27039,68823,21537,83464,75707,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,
11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,233985,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,
223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,
134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,
194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];FI.prototype.getState=function(){return this.store.getState()};
FI.prototype.dispatch=function(e){return this.store.dispatch(e)};
FI.prototype.subscribe=function(e){return this.store.subscribe(e)};
FI.prototype.replaceReducer=function(e){return this.store.replaceReducer(e)};
FI.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.J=oR.prototype;g.J.getLength=function(){return this.totalLength};
g.J.append=function(e){if(d6_(this,e)){var N=this.SV[this.SV.length-1];this.SV[this.SV.length-1]=new Uint8Array(N.buffer,N.byteOffset,N.length+e.length);c8(this)}else this.SV.push(e);this.totalLength+=e.length};
g.J.split=function(e){for(var N=new oR,y=new oR,w=g.c(this.SV),E=w.next();!E.done;E=w.next())E=E.value,e>=E.length?(N.append(E),e-=E.length):e?(N.append(new Uint8Array(E.buffer,E.byteOffset,e)),y.append(new Uint8Array(E.buffer,E.byteOffset+e,E.length-e)),e=0):y.append(E);return{aA:N,h3:y}};
g.J.isFocused=function(e){return e>=this.Po&&e<this.Po+this.SV[this.Hp].length};
g.J.focus=function(e){if(!this.isFocused(e)){for(e<this.Po&&c8(this);this.Po+this.SV[this.Hp].length<=e&&this.Hp<this.SV.length;)this.Po+=this.SV[this.Hp].length,this.Hp+=1;this.z2=void 0}};
g.J.b8=function(e,N){return e+N<=this.totalLength};
g.J.iB=function(e,N){e=e===void 0?0:e;N=N===void 0?-1:N;if(!this.totalLength||!N)return new DataView(new ArrayBuffer(0));N<0&&(N=this.totalLength-e);this.focus(e);if(!kC(this,e,N)){var y=this.Hp,w=this.Po;this.focus(e+N-1);w=new Uint8Array(this.Po+this.SV[this.Hp].length-w);for(var E=0,A=y;A<=this.Hp;A++)w.set(this.SV[A],E),E+=this.SV[A].length;this.SV.splice(y,this.Hp-y+1,w);c8(this);this.focus(e)}y=this.SV[this.Hp];return new DataView(y.buffer,y.byteOffset+e-this.Po,N)};
g.J.YX=function(e,N){e=this.iB(e===void 0?0:e,N===void 0?-1:N);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};
g.J.getUint8=function(e){this.focus(e);return this.SV[this.Hp][e-this.Po]};var dv,XI,v8;g.rB=function(){function e(w){for(var E=new Uint8Array(w.length),A=0;A<w.length;A++)E[A]=w[A];return E}
function N(w){return new Uint8Array(w)}
var y=new Uint8Array([1]);return y.length===1&&y[0]===1?N:e}();
dv=Array(1024);XI=window.TextDecoder?new TextDecoder:void 0;v8=window.TextEncoder?new TextEncoder:void 0;for(var tSJ={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,
markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,
offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,
votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},fcM={},Zfk=g.c(Object.entries(tSJ)),xdF=Zfk.next();!xdF.done;xdF=Zfk.next()){var jNT=g.c(xdF.value),nRq=jNT.next().value,QNw=jNT.next().value,mdk=nRq,Hf_=QNw;Hf_&&(fcM[Hf_]=mdk)};var ZE1=!1,$d,Yd,MD,lZ,F8;g.b(SA,g.x);
SA.prototype.encrypt=function(e){var N=e.length;e=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+N));for(var y=this.N,w=0;w<N&&this.J<16;)e[w++]^=y[this.J++];for(var E=N-(N-w)%16;w<E;)x69(this),e[w++]^=y[0],e[w++]^=y[1],e[w++]^=y[2],e[w++]^=y[3],e[w++]^=y[4],e[w++]^=y[5],e[w++]^=y[6],e[w++]^=y[7],e[w++]^=y[8],e[w++]^=y[9],e[w++]^=y[10],e[w++]^=y[11],e[w++]^=y[12],e[w++]^=y[13],e[w++]^=y[14],e[w++]^=y[15];if(w<N)for(x69(this),this.J=0;w<N;)e[w++]^=y[this.J++];return e};var bZ=!1;(function(){function e(w){for(var E=new Uint8Array(w.length),A=0;A<w.length;A++)E[A]=w[A];return E}
function N(w){return new Uint8Array(w)}
var y=new Uint8Array([1]);return y.length===1&&y[0]===1?N:e})();
var h5;g.kd.prototype.encrypt=function(e,N){var y=this,w,E;return g.f(function(A){if(A.J==1){w=cM();if(!w)return A.return(y.J(e,N));g.c5(A,3);return g.D(A,y.N(e,N,w),5)}if(A.J!=3)return A.return(A.N);E=g.XH(A);g.uA(E);bZ=!0;return A.return(y.J(e,N))})};
g.kd.prototype.N=function(e,N,y){var w=this,E,A;return g.f(function(T){switch(T.J){case 1:if(w.L){T.u9(2);break}return g.D(T,y.importKey("raw",w.j,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:w.L=T.N;case 2:return E={name:"AES-CTR",counter:N,length:128},g.D(T,y.encrypt(E,w.L,e),4);case 4:return A=T.N,T.return(new Uint8Array(A))}})};
g.kd.prototype.J=function(e,N){this.K||(this.K=new SA(this.j));oo(this.K,N);return this.K.encrypt(e)};
g.kd.prototype.decrypt=function(e,N){return this.encrypt(e,N)};
g.BM.prototype.encrypt=function(e,N){this.J||(this.J=new SA(this.N));oo(this.J,N);return this.J.encrypt(e)};
g.BM.prototype.decrypt=function(e,N){return this.encrypt(e,N)};X8.prototype.reset=function(){n50(this);this.update(this.K)};
X8.prototype.update=function(e){var N=0,y=e.length;this.j+=y;this.N&&this.N+y>=64&&(this.Z.set(e.subarray(0,64-this.N),this.N),N=64-this.N,this.N=0,juF(this,this.Z,0));for(;N+64<=y;N+=64)juF(this,e,N);N<y&&(e=e.subarray(N),this.Z.set(e,this.N),this.N+=e.length)};
var PM=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,
4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];var KW0;KW0={};g.WW5=g.yJ("yt-idb-pref-storage",{Ed:(KW0.prefs={Bs:1},KW0),shared:!1,upgrade:function(e,N){N(1)&&g.Zm(g.g0(e,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var gM;gM={};g.Ofq=(gM.INVALID_ENCODER_VERSION="Invalid encoder version",gM.KEY_CREATION_FAILED="Failed to create encoder key",gM.UNKNOWN_DECODE_ERROR="Failed to decode PES data",gM.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",gM.WRONG_DATA_TYPE="Encoder cannot process the data type",gM);g.J5("","downloadsPageViewConfigurationEntity");g.J5("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.Vz=g.J5("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.J5("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.J5("SMART_DOWNLOADS_ENABLED","settingEntity");g.J5("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");g.J=Io.prototype;g.J.initialize=function(e,N,y){if(e.program){var w,E=(w=e.interpreterUrl)!=null?w:null;if(e.interpreterSafeScript)w=iG0(e.interpreterSafeScript);else{var A;w=(A=e.interpreterScript)!=null?A:null}e.interpreterSafeUrl&&(E=IG(e.interpreterSafeUrl).toString());Egs(this,w,E,e.program,N,y)}else g.uA(Error("Cannot initialize botguard without program"))};
g.J.isInitialized=function(){return this.d9()};
g.J.getState=function(){return this.state};
g.J.isLoading=function(){return this.state===2};
g.J.invoke=function(e){e=e===void 0?{}:e;return this.d9()?this.HB({qX:e}):null};
g.J.dispose=function(){this.yN(null);this.IJ(8)};
g.J.d9=function(){return!!this.f$};
g.J.HB=function(e){return this.f$.mD(e)};
g.J.yN=function(e){g.JV(this.f$);this.f$=e};
g.J.IJ=function(e){this.state=e};g.b(zj,Io);zj.prototype.yN=function(e){var N;(N=vM())==null||N.bgvma();e?(N={bgvma:e.dispose.bind(e),bgvmb:e.snapshot.bind(e),bgvmc:e.mD.bind(e)},g.jM("yt.abuse.playerAttLoader",N),g.jM("yt.abuse.playerAttLoaderRun",function(y){return e.snapshot(y)})):(g.jM("yt.abuse.playerAttLoader",null),g.jM("yt.abuse.playerAttLoaderRun",null))};
zj.prototype.d9=function(){return!!vM()};
zj.prototype.HB=function(e){return vM().bgvmc(e)};iZ.prototype.jh=function(){return"crossDeviceProgressCommand"};
iZ.prototype.A$=function(e){if(e.crossDevicePings){var N=[];e=g.c(e.crossDevicePings);for(var y=e.next();!y.done;y=e.next())N.push({baseUrl:y.value.baseUrl});g.$$("crossDeviceNotificationTransfer",{crossDevicePings:N})}};DX.prototype.jh=function(){return"muteAdEndpoint"};
DX.prototype.A$=function(e,N){switch(e.type){case "SKIP":A00(this.D3,this.iL,N)}};gL.prototype.jh=function(){return"openPopupAction"};
gL.prototype.A$=function(){};Vg.prototype.jh=function(){return"pingingEndpoint"};
Vg.prototype.A$=function(){};var Y$P={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.b(J0P,g.x);var Z81={wIl:"FINAL",hns:"AD_BREAK_LENGTH",lKP:"AD_CPN",uWP:"AH",xrh:"AD_MT",iwP:"ASR",znh:"AW",SPG:"NM",dXG:"NX",Rjs:"NY",LvG:"CONN",B4s:"CPN",FS1:"DV_VIEWABILITY",OOh:"ERRORCODE",uok:"ERROR_MSG",iOl:"EI",BNZ:"GOOGLE_VIEWABILITY",s1P:"IAS_VIEWABILITY",GgG:"LACT",Bkt:"LIVE_TARGETING_CONTEXT",VwG:"I_X",Mwh:"I_Y",sl1:"MT",FN9:"MIDROLL_POS",J3W:"MIDROLL_POS_MS",NK9:"MOAT_INIT",kqG:"MOAT_VIEWABILITY",oKg:"P_H",EKq:"PV_H",BKq:"PV_W",m3t:"P_W",Y$q:"TRIGGER_TYPE",Agq:"SDKV",rgs:"SLOT_POS",noP:"SURVEY_LOCAL_TIME_EPOCH_S",
mAP:"SURVEY_ELAPSED_MS",Nd:"VIS",xkh:"VIEWABILITY",yxh:"VED",zrh:"VOL",aNk:"WT",Kjg:"YT_ERROR_CODE"};uZ.prototype.jh=function(){return"urlEndpoint"};
uZ.prototype.A$=function(e,N,y){var w=this.Pk.get(),E=kF(w.N.get(),N);E?N=zW(w,DQ5(E),E,void 0,void 0,y):(YN("Trying to ping from an unknown layout",void 0,void 0,{layoutId:N}),N={});N=Object.assign({},N);R_(this.J,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(y=Mb(this.zo,2))&&(N.AD_CPN=y.clientPlaybackNonce);N=g.Vx(e.url,N);g.H2(N,void 0,void 0,void 0,e.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};qD.prototype.get=function(){return this.value};
g.b(ZX,qD);ZX.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.b(xd,qD);xd.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.b(jA,qD);jA.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.b(nj,qD);nj.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.b(Qg,qD);Qg.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.b(HM,qD);HM.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.b(Kj,qD);Kj.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.b(WM,qD);WM.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.b(OR,qD);OR.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.b(Ro,qD);Ro.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.b(Gj,qD);Gj.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.b(UR,qD);UR.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.b(Lj,qD);Lj.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.b(sR,qD);sR.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.b(ao,qD);ao.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.b(eR,qD);eR.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.b(NT,qD);NT.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.b(yS,qD);yS.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.b(wK,qD);wK.prototype.getType=function(){return"metadata_type_content_cpn"};
g.b(EP,qD);EP.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.b(Aw,qD);Aw.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.b(TQ,qD);TQ.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.b(Jw,qD);Jw.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.b(px,qD);px.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.b(Cx,qD);Cx.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.b(rK,qD);rK.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.b($q,qD);$q.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.b(Yq,qD);Yq.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.b(MT,qD);MT.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.b(ll,qD);ll.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.b(FP,qD);FP.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.b(SR,qD);SR.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.b(os,qD);os.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.b(bl,qD);bl.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.b(hw,qD);hw.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.b(cp,qD);cp.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.b(kq,qD);kq.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.b(Bp,qD);Bp.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.b(XP,qD);XP.prototype.getType=function(){return"metadata_type_cue_point"};
g.b(Pp,qD);Pp.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.b(dK,qD);dK.prototype.getType=function(){return"metadata_type_player_vars"};
g.b(Is,qD);Is.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.b(vp,qD);vp.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.b(zQ,qD);zQ.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.b(il,qD);il.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.b(Db,qD);Db.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.b(gK,qD);gK.prototype.getType=function(){return"metadata_type_dai"};
g.b(VS,qD);VS.prototype.getType=function(){return"metadata_type_ad_intro"};
g.b(fx,qD);fx.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.b(tw,qD);tw.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.b(ul,qD);ul.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.b(qT,qD);qT.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.b(Zb,qD);Zb.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.b(xq,qD);xq.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.b(jR,qD);jR.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.b(nx,qD);nx.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.b(QS,qD);QS.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.b(mZ,qD);mZ.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.b(Hp,qD);Hp.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.b(Kx,qD);Kx.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.b(Wp,qD);Wp.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.b(OP,qD);OP.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.b(Rs,qD);Rs.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.b(GQ,qD);GQ.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.b(UP,qD);UP.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.b(Lx,qD);Lx.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.b(sP,qD);sP.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.b(as,qD);as.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var diM=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","muted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED","user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","user_cancelled"]]);var tPM=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.b(wX,FF);g.b(U,FF);new Promise(function(){});var S$H=new Map([["unspecified","CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"],["core","CONTROL_FLOW_MANAGER_LAYER_CORE"],["adapter","CONTROL_FLOW_MANAGER_LAYER_ADAPTER"],["surface","CONTROL_FLOW_MANAGER_LAYER_SURFACE"],["external","CONTROL_FLOW_MANAGER_LAYER_EXTERNAL"]]),lLH=new Map([["normal",{mm:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",JN:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{mm:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",JN:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{mm:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",JN:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{mm:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",JN:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{mm:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",JN:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{mm:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",JN:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{mm:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",JN:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.b(lF,g.x);g.J=lF.prototype;g.J.yU=function(e,N){return this.J.yU(e,N)};
g.J.sX=function(e,N){this.H9.RR("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",e,N);for(var y=g.c(this.N),w=y.next();!w.done;w=y.next())w.value.sX(e,N)};
g.J.BE=function(e){if(h6(this.J,e)){this.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",e);this.J.BE(e);for(var N=g.c(this.N),y=N.next();!y.done;y=N.next())y.value.BE(e);c0s(this,e)}};
g.J.ma=function(e){if(h6(this.J,e)){this.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",e);this.J.ma(e);for(var N=g.c(this.N),y=N.next();!y.done;y=N.next())y.value.ma(e);h6(this.J,e)&&ca(this.J,e).L&&o_(this,e,!1)}};
g.J.Nb=function(e){this.H9.S1("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",e);h6(this.J,e)&&(this.J.Nb(e),o_(this,e,!1))};
g.J.Ql=function(e,N){if(h6(this.J,e)){this.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",e,N);for(var y=g.c(this.N),w=y.next();!w.done;w=y.next())w.value.Ql(e,N)}};
g.J.aJ=function(e,N,y){if(h6(this.J,e)){this.H9.A1(Fj0(y),e,N);this.J.aJ(e,N);for(var w=g.c(this.N),E=w.next();!E.done;E=w.next())E.value.aJ(e,N,y);(y=fn(this.J,e))&&N.layoutId===y.layoutId&&gg1(this,e,!1)}};
g.J.xz=function(e,N,y,w){y.ol&&w?(YN(y,e,N,void 0,y.S$),this.H9.a8(w,y.ol,e,N)):YN("adsClientErrorMessage is missing.",e,N);o_(this,e,!0)};
g.J.fh=function(){var e=fL5(this.J);e=g.c(e);for(var N=e.next();!N.done;N=e.next())o_(this,N.value,!1);g.x.prototype.fh.call(this)};
g.J.Lq=function(e,N){this.H9.A1("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",e,N);this.H9.A1("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",e,N);for(var y=g.c(this.N),w=y.next();!w.done;w=y.next())w=w.value,N&&w.Lq(e,N)};VPM.prototype.isActive=function(){switch(this.J){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.b(qx,g.x);g.J=qx.prototype;g.J.yU=function(e,N){N=Vk(this,e+"_"+N);e=[];N=g.c(N.values());for(var y=N.next();!y.done;y=N.next())e.push(y.value.slot);return e};
g.J.JT=function(e){e=ca(this,e);e.J!=="not_scheduled"&&t6(e.slot,e.J,"onSlotScheduled");e.J="scheduled"};
g.J.i5=function(e){e=ca(this,e);e.j="fill_requested";e.G.i5()};
g.J.BE=function(e){e=ca(this,e);e.J!=="enter_requested"&&t6(e.slot,e.J,"onSlotEntered");e.J="entered"};
g.J.Nb=function(e){ca(this,e).j="fill_canceled"};
g.J.ma=function(e){e=ca(this,e);e.J!=="exit_requested"&&t6(e.slot,e.J,"onSlotExited");e.J="scheduled"};
g.J.aJ=function(e,N){e=ca(this,e);e.layout!=null&&e.layout.layoutId===N.layoutId&&(e.J!=="rendering_stop_requested"&&t6(e.slot,e.J,"onLayoutExited"),e.J="entered")};g.b(jK,g.x);jK.prototype.get=function(){Math.random()<.001&&this.Ss()&&YN("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.J());return this.instance};g.b(Qk,g.x);Qk.prototype.K=function(){return this.N};m$.prototype.executeCommand=function(e,N){t5(this.J(),e,N)};Wa.prototype.addListener=function(e){this.listeners.add(e)};
Wa.prototype.removeListener=function(e){this.listeners.delete(e)};var fF={},y6=(fF.AD_MARKER="ytp-ad-progress",fF.CHAPTER_MARKER="ytp-chapter-marker",fF.TIME_MARKER="ytp-time-marker",fF);var qUE=RegExp("^https?://([^.]*\\.moatads\\.com/|e[0-9]+\\.yt\\.srs\\.doubleverify\\.com|pagead2\\.googlesyndication\\.com/pagead/gen_204\\?id=yt3p&sr=1&|pm\\.adsafeprotected\\.com/youtube|pm\\.test-adsafeprotected\\.com/youtube|youtube[0-9]+\\.moatpixel\\.com/)"),HQ9=RegExp("^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://(([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|education)?\\.com/|([A-Za-z0-9-]{1,63}\\.)*(youtube\\.googleapis\\.com)[.]?(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.([a-z]{3}|i)\\.corp\\.google\\.com(:[0-9]+)?/|([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.c\\.googlers\\.com(:[0-9]+)?/|(docs|drive)\\.google\\.com/(a/[^/\\\\%]+/|)|(music|music-green-qa|music-release-qa|yt-music-green\\.corp)\\.youtube\\.com/|(tv|tv-green-qa|tv-green-qa\\.corp|tv-release-qa|tv-release-qa\\.corp|tv-integration-qa|tv-integration-qa\\.corp|yt-tv-autopush\\.corp|yt-tv-integration\\.corp|yt-tv-staging\\.corp)\\.youtube\\.com/|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?/)"),
Zs_=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),LjM=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|docs\\.google\\.com|drive\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),
GOs=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|prod\\.google\\.com|youtube\\.com|youtubekids\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$))"),Wj5=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
xCE=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),OQP=RegExp("^https?://(googleads\\.g\\.doubleclick\\.net/(aclk|pagead/conversion)|www\\.google\\.com/(aclk|pagead/conversion)|www\\.googleadservices\\.com/(aclk|pagead/(aclk|conversion))|www\\.youtube\\.com/pagead/conversion)"),Kj3=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((googleusercontent)|(google)))|((photos|testonly|work)\\.fife\\.usercontent\\.google)|([\\w\\-]+\\.fife\\.usercontent\\.google)|(([1-4]\\.bp\\.blogspot)|(bp[0-3]\\.blogger))|(ccp-lh\\.googleusercontent)|((((cp|ci|gp)[3-6])|(ap[1-2]))\\.(ggpht|googleusercontent))|(gm[1-4]\\.ggpht)|(play-(ti-)?lh\\.googleusercontent)|(gz0\\.googleusercontent)|(((yt[3-4])|(sp[1-3]))\\.(ggpht|googleusercontent)))\\.com)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-us|-eu)?(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
QVH=RegExp("^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|2mdn\\.net|googlesyndication\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|googleads\\.g\\.doubleclick\\.net|prod\\.google\\.com|static\\.doubleclick\\.net|static\\.googleadsserving\\.cn|studioapi\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtube\\-nocookie\\.com|youtubekids\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com)[.]?(:[0-9]+)?/|lightbox-(demos|builder)\\.appspot\\.com/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/ytplayer)"),
nzs=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.google\\.com/culturalinstitute/manage/.*$|^https://www\\.gstatic\\.com/aog_howto|^https://www\\.gstatic\\.com/narrative_cast_receiver/news|^https?://(([A-Za-z0-9-]{1,63}\\.)*(imasdk\\.googleapis\\.com|corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleads\\.g\\.doubleclick\\.net|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|photos\\.google\\.com|get\\.google\\.com|currents\\.google\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|artsandculture\\.google\\.com)[.]?(:[0-9]+)?(/|$)|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|(www\\.|encrypted\\.)?google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/(search|webhp)\\?|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|lightbox-(demos|builder)\\.appspot\\.com/|s0\\.2mdn\\.net/instream/html5/native/|s[01](qa)?\\.2mdn\\.net/ads/richmedia/studio/mu/templates/tetris|www\\.gstatic\\.com/doubleclick/studio/innovation/h5/layouts/tetris)"),
Rj0=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://one\\.google\\.com|https://artsandculture\\.google\\.com)$|^http://[0-9]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?$|^https://((autopush|beta-lookup|daily-[0-6]|manual-qual|preprod|stream)\\.)?meet\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)*(youtube|youtubekids|youtubeeducation)\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sandbox\\.google\\.com$|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com$|^https://(books|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?staging\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.wF.prototype.getId=function(){return this.id};
g.wF.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+N1s(this.start)+", "+N1s(this.end)+"]"};
g.wF.prototype.contains=function(e,N){return e>=this.start&&(e<this.end||e===this.end&&this.start===this.end)&&(N==null||e<N&&N<=this.end)};
var e9M=1;g.wF.prototype.getId=g.wF.prototype.getId;JA.prototype.i5=function(){var e=this,N=0;Qts(this.J,function(){var y=A6(e.slot.clientMetadata,"metadata_type_ad_break_request_data");N=Date.now();sV(e.Pk.get(),"abrs","ct."+N+";cmt."+e.zZ.get().getCurrentTimeSec(1,!1)+";sid."+e.slot.slotId+";");return e.N.get().fetch({cH:y.getAdBreakUrl,JI:new g.wF(y.MY,y.VH),m1:A6(e.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:y.cueProcessedMs})},function(){wqE(e)},function(y){var w=Date.now()-N;
sV(e.Pk.get(),"abrr","ct."+(new Date).getTime()+";cmt."+e.zZ.get().getCurrentTimeSec(1,!1)+";l."+w.toString()+";sid."+e.slot.slotId+";");w=y.aX;w.length>=2&&y.ssdaiAdsConfig&&YN("Unexpected ad placement renderers length",e.slot,null,{length:w.length});w.some(function(E){var A,T,p,C;return!!((A=E.renderer)==null?0:(T=A.linearAdSequenceRenderer)==null?0:(p=T.linearAds)==null?0:p.length)||!((C=E.renderer)==null||!C.instreamVideoAdRenderer)})||wqE(e)})};
JA.prototype.Sa=function(){mi1(this.J)};pv.prototype.i5=function(){var e=this;Qts(this.N,function(){var N=A6(e.slot.clientMetadata,"metadata_type_ad_break_request_data");return N.cueProcessedMs?e.J.get().fetch({cH:N.getAdBreakUrl,JI:new g.wF(N.MY,N.VH),cueProcessedMs:N.cueProcessedMs}):e.J.get().fetch({cH:N.getAdBreakUrl,JI:new g.wF(N.MY,N.VH)})})};
pv.prototype.Sa=function(){mi1(this.N)};Cv.prototype.i5=function(){var e=this.slot.clientMetadata,N,y=(N=this.slot.fulfilledLayout)!=null?N:A6(e,"metadata_type_fulfilled_layout");kO3(this.callback,this.slot,y)};
Cv.prototype.Sa=function(){bF(this.callback,this.slot,new U("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")};$Q.prototype.build=function(e,N){return N.fulfilledLayout||rF(N,{xO:["metadata_type_fulfilled_layout"]})?new Cv(e,N):this.K(e,N)};g.b(YQ,$Q);
YQ.prototype.K=function(e,N){if(rF(N,{xO:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new JA(e,N,this.J,this.N,this.yT,this.wP,this.Pk,this.zZ,this.xk);if(rF(N,{xO:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new pv(e,N,this.J,this.N,this.yT,this.wP);throw new U("Unsupported slot with type: "+N.slotType+" and client metadata: "+T5(N.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.b(MG,$Q);MG.prototype.K=function(e,N){throw new U("Unsupported slot with type: "+N.slotType+" and client metadata: "+T5(N.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.J=Eln.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.init=function(){};
g.J.release=function(){};
g.J.startRendering=function(e){if(e.layoutId!==this.layout.layoutId)this.callback.xz(this.slot,e,new wX("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 N=A6(e.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Ql(this.slot,e),BvM(this.K,
this.slot,N)):YN("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,e)}};
g.J.fC=function(e,N){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.aJ(this.slot,e,N),T15(this),JZ_(this))};g.b(bv,g.pT);g.J=bv.prototype;g.J.W9=function(){return this.N.slot};
g.J.mP=function(){return this.N.layout};
g.J.init=function(){this.K.get().addListener(this)};
g.J.release=function(){this.K.get().removeListener(this);this.dispose()};
g.J.oG=function(){};
g.J.HM=function(){};
g.J.Tm=function(){};
g.J.uh=function(){};
g.J.startRendering=function(e){var N=this;o0(this.N,e,function(){return void N.yL()})};
g.J.yL=function(){this.K.get().yL(this.J)};
g.J.fC=function(e,N){var y=this;o0(this.N,e,function(){var w=y.K.get();O85(w,y.J,3);y.J=[];y.callback.aJ(y.slot,e,N)})};
g.J.fh=function(){this.K.Ss()||this.K.get().removeListener(this);g.pT.prototype.fh.call(this)};
g.pM.Object.defineProperties(bv.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.N.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.N.layout}}});I0.prototype.wz=function(e,N){N=N===void 0?!1:N;var y=(this.K.get(e)||[]).concat();if(N=N&&rZH(e)){var w=this.K.get(N);w&&y.push.apply(y,g.B(w))}iv(this,e,y);this.J.add(e);N&&this.J.add(N)};
I0.prototype.eR=function(e,N){N=N===void 0?!1:N;if(!this.J.has(e)){var y=N&&rZH(e);y&&(N=!this.J.has(y));this.wz(e,N)}};g.b(MY5,JZ);g.b(tA,bv);g.J=tA.prototype;g.J.Pw=function(e,N){Bt("ads-engagement-panel-layout",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)};
g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,yw),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(N,y,w,E,A){return new MY5(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(e,N){this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(Fk0,JZ);g.b(uv,bv);g.J=uv.prototype;g.J.Pw=function(e,N){Bt("banner-image",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)};
g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,ej),this.callback,"metadata_type_banner_image_layout_view_model",function(N,y,w,E,A){return new Fk0(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(e,N){this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(qG,JZ);g.b(Zk,bv);g.J=Zk.prototype;g.J.Pw=function(e,N){Bt("action-companion",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)};
g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,Lt),this.callback,"metadata_type_action_companion_ad_renderer",function(N,y,w,E,A){return new qG(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(bT9,JZ);g.b(xQ,bv);g.J=xQ.prototype;g.J.Pw=function(e,N){Bt("image-companion",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)};
g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,s_),this.callback,"metadata_type_image_companion_ad_renderer",function(N,y,w,E,A){return new bT9(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(cZF,JZ);g.b(jO,bv);g.J=jO.prototype;g.J.Pw=function(e,N){Bt("shopping-companion",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)};
g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(N,y,w,E,A){return new cZF(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(Q6,bv);g.J=Q6.prototype;g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(N,y,w,E,A){return new qG(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(){};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};
g.J.Pw=function(){};g.J=IhF.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.init=function(){this.zZ.get().addListener(this);this.zZ.get().VJ.push(this);var e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:N,vK:e,listener:this})};
g.J.release=function(){this.zZ.get().removeListener(this);nk_(this.zZ.get(),this);X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId)};
g.J.startRendering=function(e){this.callback.Ql(this.slot,e)};
g.J.fC=function(e,N){$QE(this.wP.get())&&!this.J&&(this.vk.eR("abandon"),this.J=!0);this.callback.aJ(this.slot,e,N)};
g.J.Qs=function(e){switch(e.id){case "part2viewed":this.vk.eR("start");this.vk.eR("impression");break;case "videoplaytime25":this.vk.eR("first_quartile");break;case "videoplaytime50":this.vk.eR("midpoint");break;case "videoplaytime75":this.vk.eR("third_quartile");break;case "videoplaytime100":$QE(this.wP.get())?this.J||(this.vk.eR("complete"),this.J=!0):this.vk.eR("complete");fv(this.vk)&&gF(this.vk,Infinity,!0);Yt_(this.wP.get())&&nv(this.N,Infinity,!0);break;case "engagedview":fv(this.vk)||this.vk.eR("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:YN("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.J.onVolumeChange=function(){};
g.J.ys=function(){};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.onFullscreenToggled=function(){};
g.J.pN=function(){};
g.J.Vb=function(){};
g.J.uT=function(e){Yt_(this.wP.get())&&nv(this.N,e*1E3,!1);fv(this.vk)&&gF(this.vk,e*1E3,!1)};
g.J.pO=function(){};
g.J.tq=function(){this.vk.eR("active_view_measurable")};
g.J.fG=function(){this.vk.eR("active_view_viewable")};
g.J.KG=function(){this.vk.eR("active_view_fully_viewable_audible_half_duration")};
g.J.k6=function(){this.vk.eR("audio_measurable")};
g.J.Nf=function(){this.vk.eR("audio_audible")};g.b(mx,bv);g.J=mx.prototype;g.J.init=function(){bv.prototype.init.call(this);var e=A6(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),N={adsClientData:this.layout.o9};this.J.push(new kN(e,this.layout.layoutId,A6(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),N,!0))};
g.J.Jp=function(){this.j||this.zZ.get().resumeVideo(1)};
g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);Ce(this.zZ.get(),"ad-showing");this.callback.Ql(this.slot,e);this.L.H1=this};
g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);rV(this.zZ.get(),"ad-showing");Oy(this.L,this)};
g.J.Pw=function(e){switch(e){case "ad-info-icon-button":(this.j=this.zZ.get().Ax(1))||this.zZ.get().pauseVideo();break;case "visit-advertiser":this.zZ.get().pauseVideo()}};
g.J.fh=function(){bv.prototype.fh.call(this)};g.b(Ht,JZ);g.b(Kv,bv);g.J=Kv.prototype;g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(N,y,w,E,A){return new Ht(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(){};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};
g.J.Pw=function(){};g.b(Wt,JZ);g.b(Op,bv);Op.prototype.init=function(){bv.prototype.init.call(this);this.J.push(new Wt(g.m(this.layout.renderingContent,kt),this.layout.layoutId,{adsClientData:this.layout.o9}))};
Op.prototype.Pw=function(){cu(this.j.get(),this.L)&&kQ(this.Pk.get(),3)};
Op.prototype.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)};
Op.prototype.fh=function(){bv.prototype.fh.call(this)};g.b(R0,JZ);g.b(GW,bv);GW.prototype.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,pd)||A6(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),N=hA(this.vk);this.J.push(new R0(e,N,this.layout.layoutId,{adsClientData:this.layout.o9},!0,!0))};
GW.prototype.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)};
GW.prototype.Pw=function(e,N){if(N===this.layout.layoutId)switch(e){case "skip-button":var y;(e=(y=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&e.wO(this.W9(),this.layout)}};
GW.prototype.fh=function(){bv.prototype.fh.call(this)};Lv.prototype.build=function(e,N,y,w){if(Up(w,{xO:["metadata_type_ad_break_response_data"],K$:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Eln(e,y,w,this.N,this.K,this.J);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.b(iTE,JZ);g.b(sp,bv);g.J=sp.prototype;g.J.Pw=function(e,N){Bt("ads-engagement-panel",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)};
g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,aX),this.callback,"metadata_type_ads_engagement_panel_renderer",function(N,y,w,E,A){return new iTE(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(e,N){N.layoutId===this.layout.layoutId?this.vk.eR("impression"):this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};g.b(a0,bv);g.J=a0.prototype;g.J.Pw=function(e,N){Bt("top-banner-image-text-icon-buttoned",e,this.Z.get().R$,this.Pk.get(),this.j,this.L,this.W9(),this.mP(),N)};
g.J.startRendering=function(e){ct(this.vk,this.W9(),this.mP(),g.m(this.mP().renderingContent,N2),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(N,y,w,E,A){return new Ht(N,y,w,E,A)},this.J);
bv.prototype.startRendering.call(this,e)};
g.J.Ql=function(e,N){this.L===N.layoutId&&(this.j===null?this.j=this.Pk.get().FW():YN("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.fh=function(){SK(this.Jz(),this);bv.prototype.fh.call(this)};VYE.prototype.build=function(e,N,y,w){if(Up(w,DuH())||g.m(w.renderingContent,aX)!==void 0)return new sp(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,ol9())||g.m(w.renderingContent,Lt)!==void 0)return new Zk(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,h9J())||g.m(w.renderingContent,s_)!==void 0)return new xQ(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,kVH()))return new jO(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,duE()))return new Q6(e,y,w,this.q7,this.Pk,this.Jz,
this.AM,this.J);if(Up(w,SZ9())||g.m(w.renderingContent,ej)!==void 0)return new uv(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,glH())||g.m(w.renderingContent,N2)!==void 0)return new a0(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,vl_()))return new Kv(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);if(Up(w,lh_())||g.m(w.renderingContent,yw)!==void 0)return new tA(e,y,w,this.q7,this.Pk,this.Jz,this.AM,this.J);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+
T5(w.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};fh5.prototype.build=function(e,N,y,w){if(Up(w,{xO:["metadata_type_linked_player_bytes_layout_id"],K$:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new Op(e,y,w,this.q7,this.Pk,this.J);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.J=tYn.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.init=function(){};
g.J.release=function(){};
g.J.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.Ql(this.slot,e),this.vk.eR("impression"),QO(this.Mr,e,"normal"))};
g.J.fC=function(e,N){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.aJ(this.slot,e,N)};g.J=qZM.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.init=function(){};
g.J.release=function(){};
g.J.startRendering=function(e){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.Ql(this.slot,e),this.vk.eR("impression"),QO(this.Mr,e,"normal"))};
g.J.fC=function(e,N){e.layoutId!==this.layout.layoutId?this.callback.xz(this.slot,e,new wX("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.aJ(this.slot,e,N)};ec.prototype.build=function(e,N,y,w){if(!this.wP.get().C.X().T("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(Up(w,u3E()))return new tYn(e,y,w,this.Pk,this.Mr)}else if(Up(w,{xO:[],K$:["LAYOUT_TYPE_FORECASTING"]}))return new qZM(e,y,w,this.Pk,this.Mr);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.b(jMH,JZ);g.b(N5,bv);g.J=N5.prototype;g.J.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,JG)||A6(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),N={adsClientData:this.layout.o9};this.J.push(new jMH(e,A6(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,N))};
g.J.Jp=function(){this.j||this.zZ.get().resumeVideo(2)};
g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e);this.L.H1=this};
g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);Oy(this.L,this)};
g.J.Pw=function(e){if(cu(this.Z.get(),this.G))switch(e){case "visit-advertiser-link":kQ(this.Pk.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.zZ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.zZ.get().Ax(2))||this.zZ.get().pauseVideo();break;case "visit-advertiser-link":this.zZ.get().pauseVideo();nl1(this).e5();break;case "skip-button":if(e=nl1(this),
this.layout.renderingContent&&!eK(this.layout.clientMetadata,"metadata_type_dai")||!e.Ex){var N;(e=(N=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:N.current)&&e.wO(this.W9(),this.layout)}else YN("Requesting to skip by LegacyPlayerBytes when components enabled"),e.Aq(this.W9(),this.layout)}};
g.J.fh=function(){bv.prototype.fh.call(this)};g.b(yI,bv);g.J=yI.prototype;g.J.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,TS)||A6(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),N={adsClientData:this.layout.o9},y;(y=!!this.layout.renderingContent)||(y=!wp(this).Ex);this.J.push(new kN(e,this.layout.layoutId,A6(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),N,y))};
g.J.Jp=function(){this.j||this.zZ.get().resumeVideo(2)};
g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e);this.L.H1=this};
g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);Oy(this.L,this)};
g.J.Pw=function(e){if(cu(this.Z.get(),this.G))switch(e){case "visit-advertiser":kQ(this.Pk.get(),3)}switch(e){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j||this.zZ.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.zZ.get().Ax(2))||this.zZ.get().pauseVideo();break;case "visit-advertiser":this.zZ.get().pauseVideo();wp(this).e5();break;case "skip-button":if(e=wp(this),this.layout.renderingContent&&
!eK(this.layout.clientMetadata,"metadata_type_dai")||!e.Ex){var N;(e=(N=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:N.current)&&e.wO(this.W9(),this.layout)}else YN("Requesting to skip by LegacyPlayerBytes"),e.Aq(this.W9(),this.layout)}};
g.J.fh=function(){bv.prototype.fh.call(this)};g.b(muP,JZ);g.b(Eg,bv);g.J=Eg.prototype;g.J.startRendering=function(e){var N=this;o0(this.N,e,function(){N.J.push(new muP(A6(N.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),e.layoutId,e.o9));N.yL();N.callback.Ql(N.slot,e);g.G(eT(N.zZ.get(),1),512)&&N.callback.xz(N.W9(),N.mP(),new wX("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.J.Vb=function(){};
g.J.pN=function(e){if(e.state.isError()){var N;this.callback.xz(this.W9(),this.mP(),new wX("A player error happened during adNotify",{playerErrorCode:(N=e.state.qS)==null?void 0:N.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}};
g.J.onFullscreenToggled=function(){};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.ys=function(){};
g.J.onVolumeChange=function(){};
g.J.Qs=function(){};
g.J.pO=function(){};
g.J.Pw=function(){};g.b(Kkn,JZ);g.b(AG,bv);AG.prototype.init=function(){bv.prototype.init.call(this);var e=g.m(this.layout.renderingContent,Cd),N=hA(this.vk);this.J.push(new Kkn(e,N,this.layout.layoutId,{adsClientData:this.layout.o9}))};
AG.prototype.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)};
AG.prototype.Pw=function(e,N){if(N===this.layout.layoutId)switch(e){case "skip-button":var y;(e=(y=A6(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:y.current)&&e.wO(this.W9(),this.layout)}};
AG.prototype.fh=function(){bv.prototype.fh.call(this)};WkM.prototype.build=function(e,N,y,w){if(e=rp(e,y,w,this.q7,this.zZ,this.Pk,this.N,this.J,this.wP))return e;throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.J=OTs.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.init=function(){this.zZ.get().addListener(this);this.zZ.get().VJ.push(this);var e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),y=A6(this.layout.clientMetadata,"metadata_type_active_view_identifier");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:N,vK:e,listener:this,tZ:y})};
g.J.release=function(){this.zZ.get().removeListener(this);nk_(this.zZ.get(),this);X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId)};
g.J.startRendering=function(e){this.callback.Ql(this.slot,e)};
g.J.fC=function(e,N){M5(this,"abandon");this.callback.aJ(this.slot,e,N)};
g.J.Qs=function(e){switch(e.id){case "part2viewed":this.vk.eR("start");this.vk.eR("impression");break;case "videoplaytime25":this.vk.eR("first_quartile");break;case "videoplaytime50":this.vk.eR("midpoint");break;case "videoplaytime75":this.vk.eR("third_quartile");break;case "videoplaytime100":M5(this,"complete");fv(this.vk)&&gF(this.vk,Infinity,!0);break;case "engagedview":fv(this.vk)||this.vk.eR("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:YN("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.J.onVolumeChange=function(){};
g.J.ys=function(){};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.onFullscreenToggled=function(){};
g.J.pN=function(e){this.J||(g.FD(e,4)&&!g.FD(e,2)?Dk(this.vk,"pause"):lp(e,4)<0&&!(lp(e,2)<0)&&Dk(this.vk,"resume"))};
g.J.Vb=function(){};
g.J.uT=function(e){fv(this.vk)&&gF(this.vk,e*1E3,!1)};
g.J.pO=function(){M5(this,"swipe")};
g.J.tq=function(){this.vk.eR("active_view_measurable")};
g.J.fG=function(){this.vk.eR("active_view_viewable")};
g.J.KG=function(){this.vk.eR("active_view_fully_viewable_audible_half_duration")};
g.J.k6=function(){this.vk.eR("audio_measurable")};
g.J.Nf=function(){this.vk.eR("audio_audible")};R9M.prototype.build=function(e,N,y,w){N=["metadata_type_ad_placement_config"];for(var E=g.c(vt()),A=E.next();!A.done;A=E.next())N.push(A.value);if(Up(w,{xO:N,K$:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return y.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new OTs(e,y,w,this.zZ,this.Pk,this.wP,this.AM):new IhF(e,y,w,this.zZ,this.Pk,this.P9,this.wP,this.AM);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
};var o2={contentCpn:"",YS:new Map};ENE.prototype.g4=function(e,N){var y={};N=Object.assign({},N,(y.cc=this.zo.YI(),y));this.zo.C.Fh(e,N)};var G70,ts;
G70={HwZ:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",JAt:"AUTHENTICATION_MALFORMED",N4h:"AUTHENTICATION_MISSING",Kv9:"BAD_REQUEST",OjW:"CAST_SESSION_DEVICE_MISMATCHED",AAP:"CAST_SESSION_VIDEO_MISMATCHED",hjh:"CAST_TOKEN_EXPIRED",l0h:"CAST_TOKEN_FAILED",ueq:"CAST_TOKEN_MALFORMED",xXq:"CGI_PARAMS_MALFORMED",ijq:"CGI_PARAMS_MISSING",vB1:"DEVICE_FALLBACK",Aoh:"GENERIC_WITH_LINK_AND_CPN",hFB:"ERROR_HDCP",lxB:"LICENSE",x2t:"VIDEO_UNAVAILABLE",SHg:"FORMAT_UNAVAILABLE",ZOl:"GEO_FAILURE",
gXs:"HTML5_AUDIO_RENDERER_ERROR",V1s:"GENERIC_WITHOUT_LINK",M1Z:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Q1t:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Ix1:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",D2k:"HTML5_SPS_UMP_STATUS_REJECTED",bEl:"INVALID_DRM_MESSAGE",VW9:"PURCHASE_NOT_FOUND",MWt:"PURCHASE_REFUNDED",Jgt:"RENTAL_EXPIRED",jOW:"RETRYABLE_ERROR",uAh:"SERVER_ERROR",RMZ:"SIGNATURE_EXPIRED",Hit:"STOPPED_BY_ANOTHER_PLAYBACK",GNh:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",oo9:"STREAMING_NOT_ALLOWED",
Eog:"STREAM_LICENSE_NOT_FOUND",WAZ:"TOO_MANY_REQUESTS",eMP:"TOO_MANY_REQUESTS_WITH_LINK",voB:"TOO_MANY_STREAMS_PER_ENTITLEMENT",VzP:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",lN9:"VIDEO_FORBIDDEN",uF1:"VIDEO_NOT_FOUND",j$9:"BROWSER_OR_EXTENSION_ERROR"};ts={};
g.R3=(ts.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.",ts.DEVICE_FALLBACK="Sorry, this video is not available on this device.",ts.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",ts.LICENSE="Sorry, there was an error licensing this video.",ts.VIDEO_UNAVAILABLE=
"Video unavailable",ts.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",ts.GEO_FAILURE="This video isn't available in your country.",ts.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",ts.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",ts.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",ts.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",
ts.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",ts.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",ts.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",ts.PURCHASE_NOT_FOUND="This video requires payment.",ts.PURCHASE_REFUNDED="This video's purchase has been refunded.",ts.RENTAL_EXPIRED="This video's rental has expired.",ts.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",ts.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",ts.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",ts.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",ts.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",ts.SERVER_ERROR="There was an internal server error. Please try again later.",ts.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",ts.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",ts.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",ts.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",ts.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",ts.TOO_MANY_REQUESTS="Please log in to watch this video.",
ts.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",ts.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",ts.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",ts.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",ts.VIDEO_FORBIDDEN="Access to this video is forbidden.",ts.VIDEO_NOT_FOUND="This video can not be found.",ts.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",ts);var Udw;var LWw=g.zw(),sN_=LWw.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!sN_||sN_.length<2)Udw=void 0;else{var ay_=LWw.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Udw=ay_&&ay_.length===6?Number(ay_[5].replace("_",".")):0}var a3=Udw,mm=a3>=0;g.b(g.fd,iY);g.fd.prototype.Y=function(e,N,y,w,E){return iY.prototype.Y.call(this,e,N,y,w,E)};var uW={},Am=(uW.FAIRPLAY="fairplay",uW.PLAYREADY="playready",uW.WIDEVINE="widevine",uW.CLEARKEY=null,uW.FLASHACCESS=null,uW.UNKNOWN=null,uW.WIDEVINE_CLASSIC=null,uW);tG.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var qn={},$E=(qn.WIDTH={name:"width",video:!0,valid:640,jL:99999},qn.HEIGHT={name:"height",video:!0,valid:360,jL:99999},qn.FRAMERATE={name:"framerate",video:!0,valid:30,jL:9999},qn.BITRATE={name:"bitrate",video:!0,valid:3E5,jL:2E9},qn.EOTF={name:"eotf",video:!0,valid:"bt709",jL:"catavision"},qn.CHANNELS={name:"channels",video:!1,valid:2,jL:99},qn.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",jL:"invalidformat"},qn.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
jL:"nope"},qn.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",jL:"av99.0.05M.08"},qn.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",jL:"invalid"},qn);var efV=["h","H"],Naw=["9","("],yKw=["9h","(h"],wWT=["8","*"],Ebw=["a","A"],AK5=["o","O"],Ta_=["m","M"],JKT=["mac3","MAC3"],pWX=["meac3","MEAC3"],ZI={},s8_=(ZI.h=efV,ZI.H=efV,ZI["9"]=Naw,ZI["("]=Naw,ZI["9h"]=yKw,ZI["(h"]=yKw,ZI["8"]=wWT,ZI["*"]=wWT,ZI.a=Ebw,ZI.A=Ebw,ZI.o=AK5,ZI.O=AK5,ZI.m=Ta_,ZI.M=Ta_,ZI.mac3=JKT,ZI.MAC3=JKT,ZI.meac3=pWX,ZI.MEAC3=pWX,ZI),CcF=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),Hv1=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var L={},nd=(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"]="ah",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["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 xW={},Vis=(xW.STEREO_LAYOUT_UNKNOWN=0,xW.STEREO_LAYOUT_LEFT_RIGHT=1,xW.STEREO_LAYOUT_TOP_BOTTOM=2,xW);var jW,LA;jW={};g.q5=(jW.auto=0,jW.tiny=144,jW.light=144,jW.small=240,jW.medium=360,jW.large=480,jW.hd720=720,jW.hd1080=1080,jW.hd1440=1440,jW.hd2160=2160,jW.hd2880=2880,jW.highres=4320,jW);LA={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var x6="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Zr.prototype.isHdr=function(){return this.N==="smpte2084"||this.N==="arib-std-b67"};QI.prototype.lm=function(){return this.containerType===2};
QI.prototype.isEncrypted=function(){return!!this.BG};
QI.prototype.qG=function(){return!!this.audio};
QI.prototype.gx=function(){return!!this.video};g.b(rO,g.pT);g.J=rO.prototype;g.J.appendBuffer=function(e,N,y){if(this.KC.CV()!==this.appendWindowStart+this.start||this.KC.YV()!==this.appendWindowEnd+this.start||this.KC.w7()!==this.timestampOffset+this.start)this.KC.supports(1),this.KC.jr(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.KC.lZ(this.timestampOffset+this.start);this.KC.appendBuffer(e,N,y)};
g.J.abort=function(){this.KC.abort()};
g.J.remove=function(e,N){this.KC.remove(e+this.start,N+this.start)};
g.J.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.J.clear=function(){this.KC.clear()};
g.J.jr=function(e,N){this.appendWindowStart=e;this.appendWindowEnd=N};
g.J.dc=function(){return this.timestampOffset+this.start};
g.J.CV=function(){return this.appendWindowStart};
g.J.YV=function(){return this.appendWindowEnd};
g.J.lZ=function(e){this.timestampOffset=e};
g.J.w7=function(){return this.timestampOffset};
g.J.Ju=function(e){e=this.KC.Ju(e===void 0?!1:e);return Ch(e,this.start,this.end)};
g.J.Vh=function(){return this.KC.Vh()};
g.J.AK=function(){return this.KC.AK()};
g.J.QI=function(){return this.KC.QI()};
g.J.j9=function(){return this.KC.j9()};
g.J.IC=function(){this.KC.IC()};
g.J.L_=function(e){return this.KC.L_(e)};
g.J.QO=function(){return this.KC.QO()};
g.J.QC=function(){return this.KC.QC()};
g.J.v6=function(){return this.KC.v6()};
g.J.AY=function(e,N,y){this.KC.AY(e,N,y)};
g.J.hY=function(e,N,y){this.KC.hY(e,N,y)};
g.J.WS=function(e,N){return this.KC.WS(e,N)};
g.J.supports=function(e){return this.KC.supports(e)};
g.J.mM=function(){return this.KC.mM()};
g.J.isView=function(){return!0};
g.J.Fw=function(){return this.KC.Fw()?this.isActive:!1};
g.J.isLocked=function(){return this.MC&&!this.isActive};
g.J.N7=function(e){e=this.KC.N7(e);e.vw=this.start+"-"+this.end;return e};
g.J.Iz=function(){return this.KC.Iz()};
g.J.PZ=function(){return this.KC.PZ()};
g.J.un=function(){return this.KC.un()};
g.J.fh=function(){this.KC.qB(this.t8);g.pT.prototype.fh.call(this)};var Cr=!1;g.b(YH,g.pT);g.J=YH.prototype;g.J.appendBuffer=function(e,N,y){this.Yn=!1;y&&(this.R6=y);if(e.length){var w;((w=this.TW)==null?0:w.appendBuffer)?this.TW.appendBuffer(e):this.TW?this.TW.append(e):this.gQ&&this.gQ.webkitSourceAppend(this.id,e)}N&&(N.isEncrypted()&&(this.Pe=this.R6),N.type===3&&(this.lP=N),this.Su.push(N.O2()),this.Su.length>4&&this.Su.shift());this.aH&&(this.aH.length>=2||e.length>1048576?delete this.aH:this.aH.push(e))};
g.J.abort=function(){try{this.TW?this.TW.abort():this.gQ&&this.gQ.webkitSourceAbort(this.id)}catch(e){pJs&&g.t0(new g.Gh("Error while abort the source buffer: "+e.name+", "+e.message))}this.R6=this.lP=null};
g.J.remove=function(e,N,y){this.Yn=!1;var w;if((w=this.TW)==null?0:w.remove)y&&y({b:wO(this.Ju()),s:e,e:N}),this.TW.remove(e,N)};
g.J.removeAll=function(){this.remove(this.CV(),this.YV())};
g.J.clear=function(){this.QI()||(this.abort(),this.removeAll(),this.Pe=this.R6=this.lP=null,this.appendWindowStart=this.timestampOffset=0,this.yc=yc([],[]),this.Yn=!1,this.aH=$H?[]:void 0,this.KU=!0)};
g.J.CV=function(){if(Cr&&this.gx)return this.appendWindowStart;var e;return((e=this.TW)==null?void 0:e.appendWindowStart)||0};
g.J.YV=function(){var e;return((e=this.TW)==null?void 0:e.appendWindowEnd)||0};
g.J.jr=function(e,N){this.TW&&(Cr&&this.gx?(this.appendWindowStart=e,this.TW.appendWindowEnd=N):e>this.CV()?(this.TW.appendWindowEnd=N,this.TW.appendWindowStart=e):(this.TW.appendWindowStart=e,this.TW.appendWindowEnd=N))};
g.J.dc=function(){return this.timestampOffset};
g.J.lZ=function(e){Cr?this.timestampOffset=e:this.supports(1)&&(this.TW.timestampOffset=e)};
g.J.w7=function(){return Cr?this.timestampOffset:this.supports(1)?this.TW.timestampOffset:0};
g.J.Ju=function(e){if(e===void 0?0:e)return this.Yn||this.Vh()||(this.yc=this.Ju(!1),this.Yn=!0),this.yc;try{return this.TW?this.TW.buffered:this.gQ?this.gQ.webkitSourceBuffered(this.id):yc([0],[Infinity])}catch(N){return yc([],[])}};
g.J.Vh=function(){var e;return((e=this.TW)==null?void 0:e.updating)||!1};
g.J.QI=function(){return this.KU};
g.J.j9=function(){return!this.KU&&this.Vh()};
g.J.IC=function(){this.KU=!1};
g.J.L_=function(e){var N=e==null?void 0:e.Iq;e=e==null?void 0:e.containerType;return!N&&!e||N===this.Iq&&e===this.containerType};
g.J.QO=function(){return this.R6};
g.J.QC=function(){return this.Pe};
g.J.WS=function(e,N){return this.containerType!==e||this.Iq!==N};
g.J.AY=function(e,N,y){if(this.containerType!==e||y&&this.WS(e,y))this.supports(4),Zo()&&this.TW.changeType(N),y&&(this.Iq=y);this.containerType=e};
g.J.hY=function(e,N,y){this.containerType&&this.WS(e,N)&&Zo()&&this.TW.changeType(y);this.containerType=e;this.Iq=N};
g.J.mM=function(){return this.lP};
g.J.isView=function(){return!1};
g.J.supports=function(e){switch(e){case 1:var N;return((N=this.TW)==null?void 0:N.timestampOffset)!==void 0;case 0:var y;return!((y=this.TW)==null||!y.appendBuffer);case 2:var w;return!((w=this.TW)==null||!w.remove);case 3:var E,A;return!!(((E=this.TW)==null?0:E.addEventListener)&&((A=this.TW)==null?0:A.removeEventListener));case 4:return!(!this.TW||!this.TW.changeType);default:return!1}};
g.J.Fw=function(){return!this.Vh()};
g.J.isLocked=function(){return!1};
g.J.N7=function(e){e.to=this.w7();e.up=this.Vh();var N,y=((N=this.TW)==null?void 0:N.appendWindowStart)||0,w;N=((w=this.TW)==null?void 0:w.appendWindowEnd)||Infinity;e.aw=y.toFixed(3)+"-"+N.toFixed(3);return e};
g.J.AK=function(){var e;return((e=this.TW)==null?void 0:e.writeHead)||0};
g.J.Iz=function(){for(var e={},N=0;N<this.Su.length;N++)e["s"+N]=this.Su[N];return e};
g.J.fh=function(){this.supports(3)&&(this.TW.removeEventListener("updateend",this.bB),this.TW.removeEventListener("error",this.bB));g.pT.prototype.fh.call(this)};
g.J.PZ=function(){return this.containerType};
g.J.v6=function(){return this.Iq};
g.J.un=function(){return this.aH};
var $H=!1,pJs=!1;xH.prototype.dispose=function(){if(!this.Ss()){if(this.J)try{URL.revokeObjectURL(this.yl)}catch(e){}this.N=!0}};
xH.prototype.Ss=function(){return this.N};
xH.prototype.Bw=function(e){return e!==null&&e.yl===this.yl};
xH.prototype.toString=function(){return"MediaResource {"+this.yl+"}"};g.b(ji,g.x);g.J=ji.prototype;g.J.getDuration=function(){var e;return((e=this.TZ)==null?void 0:e.duration)||this.D};
g.J.zV=function(e){try{this.TZ?this.TZ.duration=e:(this.D=e,this.gQ.webkitSourceSetDuration(e))}catch(N){}};
g.J.u6=function(){try{return Kh(this)==="closed"}catch(e){return!0}};
g.J.Vh=function(){return!!(this.J&&this.J.Vh()||this.N&&this.N.Vh())};
g.J.isAsync=function(){return this.J?!!this.J.supports(0):WI()};
g.J.Mpq=function(){!this.Ss()&&nh(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.J.Vpq=function(){this.dispose()};
g.J.G6=function(e){if(Qc&&!this.j&&e.QI()&&e.Ju().length===0){var N;ma(this.mediaElement,{l:"mswoue",sr:(N=this.mediaElement.JW)==null?void 0:N.fO()},!1);e.IC();this.QI()||(this.mediaElement.CM=!0,this.mediaElement.setCurrentTime(0))}};
g.J.Xq=function(){return!!this.J.supports(2)};
g.J.clear=function(){lYH(this,function(){});
var e;(e=this.J)==null||e.clear();var N;(N=this.N)==null||N.clear()};
g.J.QI=function(){var e,N;return((e=this.N)==null?void 0:e.QI())||((N=this.J)==null?void 0:N.QI())};
g.J.L_=function(e,N){return!!this.J&&!!this.N&&this.J.L_(N)&&this.N.L_(e)};
var Qc=!1;O3.prototype.then=function(e,N){return this.promise.then(e,N)};
O3.prototype.resolve=function(e){this.nG(e)};
O3.prototype.reject=function(e){this.oD(e)};g.b(R8,g.x);g.J=R8.prototype;g.J.Sd=function(){return this.yl};
g.J.activate=function(e){var N="";e&&(X2_(this,e),N=e.yl);if(!this.cI()||N)N&&this.cI()!==N&&(this.bC(N),delete this.N,this.K&&(this.K.reject(),delete this.K),!window.MediaSource&&window.ManagedMediaSource&&this.wu(!(e==null||!e.J))),e&&e.J||this.load(),this.G||(this.addEventListener("volumechange",this.SM),this.G=!0)};
g.J.E$=function(e,N){if(this.N)if(JNE&&HI(this.N)&&!this.N.L_(e,N)){var y;ma(this,{l:"megms",sr:(y=this.JW)==null?void 0:y.fO()});kF9(this);this.stopVideo()}else return this.TZ=this.N,this.N=void 0,this.TZ;e=window.MediaSource?new ji(this,new window.MediaSource,!1):window.ManagedMediaSource?new ji(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new ji(this,new window.WebKitMediaSource,!1):new ji(this,void 0,!1);this.activate(e.K);this.TZ=e;this.CM=!1;return e};
g.J.playVideo=function(){var e=this;this.isEnded()&&this.seekTo(0);!this.cI()&&this.yl&&(g.t0(Error("playVideo without src")),this.bC(this.yl.yl),this.yl.J||this.load());var N=this.play(),y;((y=this.JW)==null?0:y.T("html5_remove_ios_7_hack_force_play"))||!N&&mm&&(a3||0)>=7&&AF5(this,function(){g.b4(function(){BhH(e,e.getCurrentTime(),0)},500)});
return N};
g.J.seekTo=function(e){this.Rl()>0&&(mm&&a3<4&&(e=Math.max(.1,e)),this.setCurrentTime(e))};
g.J.wK=function(){if(!this.N&&this.TZ)if(this.TZ.L)try{var e;ma(this,{l:"mer",sr:(e=this.JW)==null?void 0:e.fO(),rs:Kh(this.TZ)});this.TZ.clear();this.N=this.TZ;this.TZ=void 0}catch(N){e=new g.Gh("Error while clearing Media Source in MediaElement: "+N.name+", "+N.message),g.t0(e),this.stopVideo()}else this.stopVideo()};
g.J.stopVideo=function(){var e=this;if(!this.N){var N;(N=this.TZ)==null||h30(N);if(ANP){if(!this.K){var y=new O3;y.then(void 0,function(){});
this.K=y;TfP&&this.pause();g.b4(function(){e.K===y&&(Lh(e),y.resolve())},200)}}else Lh(this)}};
g.J.K9=function(){var e=this.O4();return JX(e)>0&&this.getDuration()?T6(e,this.getCurrentTime()):0};
g.J.sz=function(){var e=this.getDuration();return e===Infinity?1:e?this.K9()/e:0};
g.J.N7=function(){try{var e=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:wO(this.JP(),",",3),vbu:wO(this.O4()),vbs:wO(this.Gz()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Rl(),vns:""+this.pM(),vec:""+this.pw(),vemsg:this.Cq(),vvol:""+this.getVolume(),vdom:""+ +this.bS(),vsrc:""+ +!!this.cI(),vw:""+e.width,vh:""+e.height}}catch(N){return{}}};
g.J.hasError=function(){return this.pw()>0};
g.J.addEventListener=function(e,N){this.j.listen(e,N,!1,this);this.ao(e)};
g.J.removeEventListener=function(e,N){this.j.CX(e,N,!1,this)};
g.J.dispatchEvent=function(e){if(this.K&&e.type==="pause")return!1;if(JNE){var N,y=((N=e.J)==null?void 0:N.timeStamp)||Infinity;N=y>performance.now()?y-Date.now()+performance.now():y;y=this.N||this.TZ;if((y==null?0:y.QI())||N<=((y==null?void 0:y.Z)||0)){var w;ma(this,{l:"mede",sr:(w=this.JW)==null?void 0:w.fO(),et:e.type});return!1}if(this.CM)return ma(this,{l:"medes",et:e.type}),y&&e.type==="seeking"&&(y.Z=performance.now(),this.CM=!1),!1}return this.j.dispatchEvent(e)};
g.J.xj=function(){this.Z=!1};
g.J.je=function(){this.Z=!0;this.Zs(!0)};
g.J.SM=function(){this.Z&&!this.sV()&&this.Zs(!0)};
g.J.Bw=function(e){return!!e&&e.ut()===this.ut()};
g.J.fh=function(){this.G&&this.removeEventListener("volumechange",this.SM);ANP&&Lh(this);g.x.prototype.fh.call(this)};
var ANP=!1,TfP=!1,JNE=!1,dEJ=!1;g.J=g.a8.prototype;g.J.isPaused=function(){return g.G(this,4)};
g.J.isPlaying=function(){return g.G(this,8)&&!g.G(this,512)&&!g.G(this,64)&&!g.G(this,2)};
g.J.isOrWillBePlaying=function(){return g.G(this,8)&&!g.G(this,2)&&!g.G(this,1024)};
g.J.isCued=function(){return g.G(this,64)&&!g.G(this,8)&&!g.G(this,4)};
g.J.isBuffering=function(){return g.G(this,1)&&!g.G(this,2)};
g.J.isError=function(){return g.G(this,128)};
g.J.isSuspended=function(){return g.G(this,512)};
g.J.C_=function(){return g.G(this,64)&&g.G(this,4)};
g.J.toString=function(){return"PSt."+this.state.toString(16)};
var nF={},Qz=(nF.BUFFERING="buffering-mode",nF.CUED="cued-mode",nF.ENDED="ended-mode",nF.PAUSED="paused-mode",nF.PLAYING="playing-mode",nF.SEEKING="seeking-mode",nF.UNSTARTED="unstarted-mode",nF);g.b(CL,g.x);g.J=CL.prototype;g.J.FF=function(){return this.K};
g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.init=function(){var e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),N=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:N,vK:e,listener:this,OR:this.HE()});VN5(this.Pk.get(),this);e=this.Kw;N=this.layout.layoutId;var y={OR:this.HE()};e.J.set(N,y);this.Zp()};
g.J.Ft=function(){};
g.J.release=function(){X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId);fl0(this.Pk.get(),this);this.Kw.J.delete(this.layout.layoutId);this.Hm()};
g.J.WF=function(){};
g.J.Jf=function(){};
g.J.startRendering=function(e){c3(rY(this));if($z(this,e)){var N=this.J;k6(N.params.OP.wP.get(),!0)&&w2J(N,"p_sr",{});Yz(this);this.Fa(e);this.HE()||this.W8(!1)}};
g.J.Ql=function(e,N){if(N.layoutId===this.layout.layoutId){this.Dg="rendering";this.N=this.zZ.get().isMuted()||this.zZ.get().getVolume()===0;this.eR("impression");this.eR("start");if(this.zZ.get().isMuted()){bi(this,"mute");var y;e=((y=pL(this))==null?void 0:y.muteCommands)||[];Ha(this.P9.get(),e,this.layout.layoutId)}if(this.zZ.get().isFullscreen()){this.wz("fullscreen");var w;y=((w=pL(this))==null?void 0:w.fullscreenCommands)||[];Ha(this.P9.get(),y,this.layout.layoutId)}this.HE()||(w=this.d7.get(),
w.K&&!w.N&&(w.L=!1,w.N=!0,w.actionType!=="ad_to_video"&&(KV("pbs",void 0,w.actionType),g.Xj("finalize_all_timelines")&&WK9(w.actionType))));this.qA(1);this.GK(N);var E;N=((E=pL(this))==null?void 0:E.impressionCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}};
g.J.GP=function(e,N,y){this.G={J0:3,U6:e==="load_timeout"?402:400,errorMessage:N.message};this.eR("error");var w;e=((w=pL(this))==null?void 0:w.errorCommands)||[];Ha(this.P9.get(),e,this.layout.layoutId);this.HE()||this.oY.xz(this.slot,this.layout,N,y)};
g.J.Jh=function(){if(this.Dg==="rendering"){bi(this,"pause");var e,N=((e=pL(this))==null?void 0:e.pauseCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId);this.qA(2)}};
g.J.N9=function(){if(this.Dg==="rendering"){bi(this,"resume");var e,N=((e=pL(this))==null?void 0:e.resumeCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}};
g.J.bV=function(e,N){N=N===void 0?!1:N;if(this.Dg==="rendering"){var y={currentTimeSec:e,flush:N};B3(this.J,"p_ip",y);gF(this.vk,e*1E3,N);this.N||gF(this.vk,e*1E3,N===void 0?!1:N);var w=this.Zj();if(w){w/=1E3;if(e>=w*.25||N)this.eR("first_quartile"),B3(this.J,"p_fq",y);if(e>=w*.5||N)this.eR("midpoint"),B3(this.J,"p_sq",y);if(e>=w*.75||N)this.eR("third_quartile"),B3(this.J,"p_tq",y);this.wP.get().C.X().experiments.gP("enable_progress_command_flush_on_kabuki")?nv(this.j,e*1E3,N):nv(this.j,e*1E3,gN_(this)?
N:!1)}}};
g.J.YI=function(){var e;return((e=Mb(this.Hk.get(),1))==null?void 0:e.clientPlaybackNonce)||""};
g.J.OL=function(e,N){e.layoutId!==this.layout.layoutId?this.oY.xz(this.slot,e,new wX("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"):N()};
g.J.aJ=function(e,N,y){if(N.layoutId===this.layout.layoutId)switch(this.Dg="not_rendering",this.layoutExitReason=void 0,this.HE()||(e=y!=="normal"||this.position+1===this.Z)&&this.W8(e),this.FV(y),this.qA(0),y){case "abandoned":if(V6(this.vk,"impression")){var w,E=((w=pL(this))==null?void 0:w.abandonCommands)||[];Ha(this.P9.get(),E,this.layout.layoutId)}break;case "normal":w=((E=pL(this))==null?void 0:E.completeCommands)||[];Ha(this.P9.get(),w,this.layout.layoutId);break;case "skipped":var A;w=((A=
pL(this))==null?void 0:A.skipCommands)||[];Ha(this.P9.get(),w,this.layout.layoutId)}};
g.J.rb=function(){return this.layout.layoutId};
g.J.B6=function(){return this.G};
g.J.tq=function(){if(this.Dg==="rendering"){this.vk.eR("active_view_measurable");var e,N=((e=pL(this))==null?void 0:e.activeViewMeasurableCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}};
g.J.KG=function(){if(this.Dg==="rendering"){this.vk.eR("active_view_fully_viewable_audible_half_duration");var e,N=((e=pL(this))==null?void 0:e.activeViewFullyViewableAudibleHalfDurationCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}};
g.J.fG=function(){if(this.Dg==="rendering"){this.vk.eR("active_view_viewable");var e,N=((e=pL(this))==null?void 0:e.activeViewViewableCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}};
g.J.Nf=function(){if(this.Dg==="rendering"){this.vk.eR("audio_audible");var e,N=((e=pL(this))==null?void 0:e.activeViewAudioAudibleCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}};
g.J.k6=function(){if(this.Dg==="rendering"){this.vk.eR("audio_measurable");var e,N=((e=pL(this))==null?void 0:e.activeViewAudioMeasurableCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}};
g.J.W8=function(e){this.d7.get().W8(A6(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,e,this.position,this.Z,!1)};
g.J.onFullscreenToggled=function(e){if(this.Dg==="rendering")if(e){this.wz("fullscreen");var N,y=((N=pL(this))==null?void 0:N.fullscreenCommands)||[];Ha(this.P9.get(),y,this.layout.layoutId)}else this.wz("end_fullscreen"),N=((y=pL(this))==null?void 0:y.endFullscreenCommands)||[],Ha(this.P9.get(),N,this.layout.layoutId)};
g.J.onVolumeChange=function(){if(this.Dg==="rendering")if(this.zZ.get().isMuted()){bi(this,"mute");var e,N=((e=pL(this))==null?void 0:e.muteCommands)||[];Ha(this.P9.get(),N,this.layout.layoutId)}else bi(this,"unmute"),e=((N=pL(this))==null?void 0:N.unmuteCommands)||[],Ha(this.P9.get(),e,this.layout.layoutId)};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.ys=function(){};
g.J.Qs=function(){};
g.J.pO=function(){};
g.J.wz=function(e){this.vk.wz(e,!this.N)};
g.J.eR=function(e){this.vk.eR(e,!this.N)};
g.J.HE=function(){var e=A6(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(YN("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.wP.get().HE(e)};g.b(Xl,CL);g.J=Xl.prototype;g.J.Zp=function(){};
g.J.Hm=function(){var e=this.Pk.get();e.PK===this&&(e.PK=null);this.D_.stop()};
g.J.WF=function(){this.D_.stop();CL.prototype.Jh.call(this)};
g.J.Jf=function(){dY(this);CL.prototype.N9.call(this)};
g.J.Zj=function(){return A6(this.mP().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.J.fC=function(e,N){var y=this;this.OL(e,function(){y.Dg!=="rendering_stop_requested"&&(y.Dg="rendering_stop_requested",y.layoutExitReason=N,li(y,N),y.D_.stop())})};
g.J.HY=function(){var e=Date.now(),N=e-this.Lp;this.Lp=e;this.Cj+=N;this.Cj>=this.Zj()?this.I_():(this.bV(this.Cj/1E3),Pd(this,this.Cj))};
g.J.FV=function(){};
g.J.Vb=function(){};
g.b(IV,Xl);g.J=IV.prototype;g.J.pN=function(e){if(this.Dg!=="not_rendering"){e=Fl(this,e);var N=this.zZ.get().getPresentingPlayerType()===2;this.Dg==="rendering_start_requested"?N&&$6(e)&&this.b1():N?g.FD(e,2)?YN("Receive player ended event during MediaBreak",this.W9(),this.mP()):Sp(this,e):this.Ek()}};
g.J.Fa=function(){iR5(this);H8_(this.zZ.get());this.Pk.get().PK=this;mo("pbp")||mo("pbs")||KV("pbp");mo("pbp","watch")||mo("pbs","watch")||KV("pbp",void 0,"watch");this.b1()};
g.J.GK=function(e){this.d7.get();var N=A6(e.clientMetadata,"metadata_type_ad_placement_config").kind,y=this.position===0;e=A6(e.clientMetadata,"metadata_type_linked_in_player_layout_type");e={adBreakType:oV(N),adType:mE9(e)};var w=void 0;y?N!=="AD_PLACEMENT_KIND_START"&&(w="video_to_ad"):w="ad_to_ad";jZ("ad_mbs",void 0,w);g.nV(e,w);dY(this)};
g.J.Ek=function(){this.vC()};
g.J.I_=function(){fYH(this);this.vC()};
g.b(vd,Xl);g.J=vd.prototype;g.J.pN=function(e){this.Dg!=="not_rendering"&&(e=Fl(this,e),Sp(this,e))};
g.J.Fa=function(){YN("Not used in SSAP")};
g.J.GK=function(){dY(this)};
g.J.Ek=function(){YN("Not used in SSAP")};
g.J.I_=function(){fYH(this);this.oY.xP(this.W9(),this.mP(),"normal")};
g.b(zp,vd);zp.prototype.fC=function(e,N){var y=this;this.OL(e,function(){Fe(y.K,N)&&(y.Dg="rendering_stop_requested",y.layoutExitReason=N,li(y,N),y.D_.stop())})};
zp.prototype.startRendering=function(e){c3(rY(this));$z(this,e)&&(Yz(this),this.Pk.get().PK=this)};g.b(gY,CL);g.J=gY.prototype;g.J.Ek=function(){this.vC()};
g.J.pN=function(e){if(this.Dg!=="not_rendering"){e=Fl(this,e);var N=this.zZ.get().getPresentingPlayerType()===2;this.Dg==="rendering_start_requested"?N&&$6(e)&&this.b1():!N||g.FD(e,2)?this.vC():Sp(this,e)}};
g.J.Zp=function(){A6(this.mP().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=A6(this.mP().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.J.Hm=function(){A6(this.mP().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.DF){var e=this.context.OP,N=this.DF,y=this.mP().layoutId;if(k6(e.wP.get(),!0)){var w={};e.g4("mccru",(w.cid=N,w.p_ac=y,w))}this.oJ.get().removeCueRange(this.DF)}this.DF=void 0;var E;(E=this.qe)==null||E.dispose();this.oE&&this.oE.dispose()};
g.J.Fa=function(e){var N=ii(this.wP.get()),y=Du(this.wP.get());if(N&&y&&!this.HE()){y=A6(e.clientMetadata,"metadata_type_preload_player_vars");var w=g.Y2(this.wP.get().C.X().experiments,"html5_preload_wait_time_secs");y&&this.oE&&this.oE.start(w*1E3)}qzH(this,e);iR5(this);N?(y=this.s2.get(),e=A6(e.clientMetadata,"metadata_type_player_vars"),y.C.loadVideoByPlayerVars(e,!1,2)):alE(this.s2.get(),A6(e.clientMetadata,"metadata_type_player_vars"));var E;(E=this.qe)==null||E.start();N||this.s2.get().C.playVideo(2)};
g.J.GK=function(){var e;(e=this.qe)==null||e.stop();this.DF="adcompletioncuerange:"+this.mP().layoutId;this.oJ.get().addCueRange(this.DF,0x7ffffffffffff,0x8000000000000,!1,this,2,2);e=this.context.OP;var N=this.DF,y=this.mP().layoutId;if(k6(e.wP.get(),!0)){var w={};e.g4("mccr",(w.cid=N,w.p_ac=y,w))}(this.adCpn=z3M(this))||YN("Media layout confirmed started, but ad CPN not set.");this.Vi.get().gS("onAdStart",this.adCpn);this.U9=Date.now()};
g.J.Zj=function(){var e;return(e=Mb(this.Hk.get(),2))==null?void 0:e.La9};
g.J.e5=function(){this.vk.wz("clickthrough")};
g.J.fC=function(e,N){var y=this;this.OL(e,function(){if(y.Dg!=="rendering_stop_requested"){y.Dg="rendering_stop_requested";y.layoutExitReason=N;li(y,N);var w;(w=y.qe)==null||w.stop();y.oE&&y.oE.stop();ZRE(y)}})};
g.J.onCueRangeEnter=function(e){if(e!==this.DF)YN("Received CueRangeEnter signal for unknown layout.",this.W9(),this.mP(),{cueRangeId:e});else{var N=this.context.OP,y=this.mP().layoutId;if(k6(N.wP.get(),!0)){var w={};N.g4("mccre",(w.cid=e,w.p_ac=y,w))}this.oJ.get().removeCueRange(this.DF);this.DF=void 0;R_(this.context.wP.get(),"html5_ssap_flush_at_stop_rendering")&&this.HE()||(e=A6(this.mP().clientMetadata,"metadata_type_video_length_seconds"),this.bV(e,!0),this.eR("complete"))}};
g.J.FV=function(e){e!=="abandoned"&&this.Vi.get().gS("onAdComplete");this.Vi.get().gS("onAdEnd",this.adCpn)};
g.J.onCueRangeExit=function(){};
g.J.Vb=function(e){this.Dg==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&e>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.zZ.get().c7(!0),this.bV(e))};
g.J.bV=function(e,N){CL.prototype.bV.call(this,e,N===void 0?!1:N);N=Date.now()-this.U9;var y=e*1E3,w={contentCpn:this.YI(),adCpn:z3M(this)};if(e>=5&&!this.w5){var E=N<1E3?0:1;CR(E,"i.k_",{metadata:w,nA:N,XN:Math.floor(y/1E3)});Ua("IKDSTAT",E);E===0&&xE9(this)&&this.Vi.get().gS("onAbnormalityDetected");this.w5=!0}this.wP.get().C.X().experiments.gP("enable_ik_opt")&&e-this.sC>=5&&(E=N<y*.4?0:1,CR(E,"n.k_",{metadata:w,nA:N,XN:Math.floor(y/1E3)}),Ua("NKDSTAT",E),this.wP.get().C.X().experiments.gP("enable_ik_opt_enf")&&
E===0&&xE9(this)&&this.Vi.get().gS("onAbnormalityDetected"),this.sC=e)};g.b(VO,gY);VO.prototype.pN=function(e){this.Dg!=="not_rendering"&&(e=Fl(this,e),Sp(this,e))};
VO.prototype.Fa=function(){YN("Not used in SSAP")};
g.b(fL,VO);fL.prototype.fC=function(e,N){var y=this;this.OL(e,function(){if(Fe(y.K,N)){y.Dg="rendering_stop_requested";y.layoutExitReason=N;li(y,N);if(R_(y.context.wP.get(),"html5_ssap_flush_at_stop_rendering")&&N==="normal"){var w=A6(y.mP().clientMetadata,"metadata_type_video_length_seconds");y.bV(w,!0)}ZRE(y)}})};
fL.prototype.startRendering=function(e){c3(rY(this));$z(this,e)&&(Yz(this),qzH(this,e))};g.b(ui,g.x);g.J=ui.prototype;g.J.init=function(){var e=A6(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);this.Hk.get().addListener(this);this.DB.init();GV3([this.layout],this.Hk.get());this.t_()};
g.J.t_=function(){var e=A6(this.DB.mP().clientMetadata,"metadata_type_player_vars");e?this.s2.get().addPlayerResponseForAssociation({playerVars:e}):(e=HR_(this.DB.mP()),this.s2.get().addPlayerResponseForAssociation({Al:e}))};
g.J.DZ=function(){};
g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.WF=function(){this.DB.WF()};
g.J.Jf=function(){this.DB.Jf()};
g.J.Aq=function(){YN("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.J.Ql=function(e,N){this.DB.Ql(e,N)};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.Vb=function(e){this.DB.Vb(e)};
g.J.onFullscreenToggled=function(e){this.DB.onFullscreenToggled(e)};
g.J.Yx=function(e){this.DB.Yx(e)};
g.J.ys=function(e){this.DB.ys(e)};
g.J.onVolumeChange=function(){this.DB.onVolumeChange()};
g.J.Qs=function(){};
g.J.pO=function(){};
g.J.D0=function(){};
g.J.Hz=function(){return this.zZ.get().getPresentingPlayerType()===2};
g.J.QW=function(e){e3_({cpn:e,zo:this.Hk.get(),dS:!0});this.layout.layoutId===e&&(qP3(this.EQ,this.slot.slotId),this.lX.Ql(this.slot,this.layout))};
g.J.startRendering=function(e){if(e.layoutId!==this.layout.layoutId)return void YN("wrong layout");this.zZ.get().addListener(this);F2(this.Jz(),this);this.DB.startRendering(this.layout)};
g.J.pN=function(e){this.DB.pN(e)};
g.J.aJ=function(e,N,y){this.DB.aJ(e,N,y)};
g.J.release=function(){this.Hk.get().removeListener(this);this.DB.release();UuH();SK(this.Jz(),this)};
g.J.O8=function(){return R_(this.params.context.wP.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.J.fC=function(e,N){e.layoutId!==this.layout.layoutId?YN("wrong layout"):this.O8()&&this.DB.FF().currentState>=2||(this.DB.fC(this.layout,N),e=R_(this.params.context.wP.get(),"html5_ssap_pass_transition_reason")&&N==="abandoned",this.Hz()&&!e&&(R_(this.params.context.wP.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(N)||YN("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:N})),this.xk.get().finishSegmentByCpn(this.layout.layoutId,
Mb(this.Hk.get(),1).clientPlaybackNonce,cd(N,this.params.context.wP))),this.zZ.get().removeListener(this),this.O8()&&Sc(this.DB.FF())&&this.lX.aJ(this.slot,this.layout,this.DB.FF().J))};
g.J.I6=function(e,N,y){Nh1({cpn:e,zo:this.Hk.get(),dS:!0});this.mP().layoutId!==e||R_(this.params.context.wP.get(),"html5_ssap_pass_transition_reason")&&y===5||(this.DB.FF().currentState<2&&(e=kz(y,this.params.context.wP),e==="error"?this.lX.xz(this.slot,this.layout,new wX("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):QO(this.T9,
this.layout,e)),R_(this.params.context.wP.get(),"html5_ssap_exit_without_waiting_for_transition")||this.lX.aJ(this.slot,this.layout,this.DB.FF().J))};g.b(qb,g.x);g.J=qb.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.DZ=function(){};
g.J.jV=function(){return this.bv[this.PC]};
g.J.nE=function(){return this.PC};
g.J.WF=function(e,N){var y=this.jV();N.layoutId!==xz(y,e,N)?YN("pauseLayout for a PlayerBytes layout that is not currently active",e,N):y.WF()};
g.J.Jf=function(e,N){var y=this.jV();N.layoutId!==xz(y,e,N)?YN("resumeLayout for a PlayerBytes layout that is not currently active",e,N):y.Jf()};
g.J.Aq=function(e,N){var y=this.jV();R3s(this,e,N);GFP(y,e,N)&&this.oz(y.W9(),y.mP(),"skipped")};
g.J.wO=function(e,N){var y=this.jV();UE9(this);LQJ(y,e,N)&&(e=s4M(this,y,e,N),e!==void 0&&(this.HE()?YN("Should not happen. Should delete"):eK5(this,y.W9(),y.mP(),e)))};
g.J.Bd=function(e,N){var y=Object.assign({},Zu(this),{layoutId:N.layoutId}),w=y.layoutId,E=y.dS;if(y.OR){var A={};hG(y.zo,"wrse",(A.ec=w,A.is=E,A.ctp=b$(w),A))}va(this.Tc,e,N)};
g.J.Ql=function(e,N){var y;(y=this.jV())==null||y.Ql(e,N)};
g.J.aJ=function(e,N,y){N.layoutId===this.mP().layoutId&&(this.u8=!1,SK(this.Jz(),this));var w;(w=this.jV())==null||w.aJ(e,N,y)};
g.J.Vb=function(e){var N;(N=this.jV())==null||N.Vb(e)};
g.J.xU=function(e,N,y){this.nE()===-1&&(this.callback.Ql(this.slot,this.layout),this.PC++);var w=this.jV();w?(w.GP(e,N,y),this.HE()&&this.callback.xz(this.slot,this.layout,N,y)):YN("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.nE()),layoutId:this.mP().layoutId})};
g.J.onFullscreenToggled=function(e){var N;(N=this.jV())==null||N.onFullscreenToggled(e)};
g.J.Yx=function(e){var N;(N=this.jV())==null||N.Yx(e)};
g.J.ys=function(e){var N;(N=this.jV())==null||N.ys(e)};
g.J.onVolumeChange=function(){var e;(e=this.jV())==null||e.onVolumeChange()};
g.J.XO=function(e,N,y){z5(this.Tc,e,N,y)};
g.J.Xl=function(e){e.startRendering(e.mP())};
g.J.init=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);if(this.bv.length<1)throw new U("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.bv.length)});if(e=A6(this.mP().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=this;e=g.c(this.bv);for(var N=e.next();!N.done;N=e.next())N=N.value,N.init(),BI0(this.Tc,this.slot,N.mP()),X7F(this.Tc,this.slot,N.mP());
if(this.HE())for(this.Hk.get().addListener(this),GV3(ORM(this),this.Hk.get()),e=ORM(this),e=g.c(e),N=e.next();!N.done;N=e.next())this.t_(N.value)};
g.J.t_=function(e){var N=A6(e.clientMetadata,"metadata_type_player_vars");N?(e.layoutType!=="LAYOUT_TYPE_MEDIA"&&YN("Non-video ad contains playerVars",this.slot,e),this.s2.get().addPlayerResponseForAssociation({playerVars:N})):(e=HR_(e),this.s2.get().addPlayerResponseForAssociation({Al:e}))};
g.J.release=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);if(e=A6(this.mP().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))e.current=null;e=g.c(this.bv);for(var N=e.next();!N.done;N=e.next())N=N.value,PA5(this.Tc,this.slot,N.mP()),N.release();this.HE()&&(this.Hk.get().removeListener(this),UuH())};
g.J.OL=function(e){return e.layoutId!==this.mP().layoutId?(this.callback.xz(this.W9(),e,new wX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.mP().layoutId+("and LayoutType: "+this.mP().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.J.GO=function(){this.zZ.get().addListener(this);F2(this.Jz(),this)};
g.J.pN=function(e){if(e.state.isError()){var N,y;this.xU((N=e.state.qS)==null?void 0:N.errorCode,new wX("There was a player error during this media layout.",{playerErrorCode:(y=e.state.qS)==null?void 0:y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(N=this.jV())&&N.pN(e)};
g.J.HE=function(){var e=A6(this.W9().clientMetadata,"metadata_type_eligible_for_ssap");return e===void 0?(YN("Expected SSAP eligibility in PlayerBytes slots",this.W9(),this.mP()),!1):this.wP.get().HE(e)};
g.J.D0=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.Qs=function(){};
g.J.pO=function(){};
g.b(m5,qb);g.J=m5.prototype;g.J.nZ=function(e,N,y){this.oz(e,N,y)};
g.J.m0=function(e,N){this.oz(e,N,"error")};
g.J.oz=function(e,N,y){var w=this;aYE(this,e,N,y,function(){jp(w,w.nE()+1)})};
g.J.startRendering=function(e){this.OL(e)&&(this.GO(),ASE(this.d7.get()),rSH(this.wP.get())||H8_(this.zZ.get()),this.nE()===-1&&jp(this,this.nE()+1))};
g.J.fC=function(e,N){var y=this;this.u8=!0;this.nE()===this.bv.length?this.callback.aJ(this.slot,this.layout,N):(e=this.jV(),e.fC(e.mP(),N),this.d5=function(){y.callback.aJ(y.slot,y.layout,N)});
this.zZ.get().C.G5();alE(this.s2.get(),{});e=eT(this.zZ.get(),1);e.isPaused()&&!g.G(e,2)&&this.zZ.get().playVideo();this.zZ.get().removeListener(this);this.u8&&Nz_(this)};
g.J.I6=function(){};
g.J.QW=function(){};
g.J.xP=function(){};
g.b(Hd,qb);g.J=Hd.prototype;g.J.nZ=function(e,N,y){e=Object.assign({},Zu(this),{layoutId:N.layoutId,layoutExitReason:y});N=e.layoutId;y=e.layoutExitReason;var w={};hG(e.zo,"prse",(w.xc=N,w.ler=y,w.ctp=b$(N),w))};
g.J.m0=function(){YN("onSubLayoutError in SSAP")};
g.J.oz=function(){YN("exitSubLayoutAndPlayNext in SSAP")};
g.J.jV=function(){return this.G9};
g.J.nE=function(){var e=this;return this.bv.findIndex(function(N){var y;return N.mP().layoutId===((y=e.G9)==null?void 0:y.mP().layoutId)})};
g.J.Xl=function(e){$N(this.G9===void 0,"replacing another adapter");this.G9=e;e.startRendering(e.mP())};
g.J.XO=function(e,N,y){z5(this.Tc,e,N,y);var w;$N(N.layoutId===((w=this.G9)==null?void 0:w.mP().layoutId),"currentAdapter does not match exiting layout",{slot:e?"slot:  "+e.slotType:"",subLayout:rh(N)})&&(this.G9=void 0)};
g.J.release=function(){qb.prototype.release.call(this);$N(this.G9===void 0,"currentAdapter is still active during release");this.G9=void 0};
g.J.Hz=function(){return this.zZ.get().getPresentingPlayerType()===2};
g.J.fC=function(e,N){function y(){KL(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(N)||YN("Composite stopRendering: Unexpected layout exit reason",this.slot,e,{layoutExitReason:N}))}
function w(){this.G9&&Wd(this,this.G9,N);if(this.Hz()&&(!KL(this)||N!=="abandoned")){y.call(this);var A;var T=((A=this.Hk.get().C.getVideoData())==null?void 0:A.clientPlaybackNonce)||"";A=Mb(this.Hk.get(),1).clientPlaybackNonce;this.xk.get().finishSegmentByCpn(T,A,cd(N,this.wP))}yyE(this,N)}
function E(){if(this.G9){var A=this.G9;A.FF().currentState<2&&A.fC(A.mP(),N);A=KL(this)&&N==="abandoned";this.Hz()&&!A&&(y.call(this),this.xk.get().finishSegmentByCpn(this.G9.mP().layoutId,Mb(this.Hk.get(),1).clientPlaybackNonce,cd(N,this.wP)))}}
$N(e.layoutId===this.mP().layoutId,"StopRendering for wrong layout")&&Fe(this.Uf.N,N)&&(this.O8()?w.call(this):E.call(this))};
g.J.aJ=function(e,N,y){qb.prototype.aJ.call(this,e,N,y);N.layoutId===this.mP().layoutId&&this.zZ.get().removeListener(this)};
g.J.YI=function(){return Mb(this.Hk.get(),1).clientPlaybackNonce};
g.J.I6=function(e,N,y){Nh1(Object.assign({},Zu(this),{cpn:e}));if(!KL(this)||y!==5)if(this.O8()){if(this.G9&&this.G9.mP().layoutId!==N){var w=this.G9.mP().layoutId;w!==e&&YN("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:w,exitingCpn:e,enteringCpn:N});e=kz(y,this.wP);Wd(this,this.G9,e)}else this.G9&&YN("onClipExited: active layout is entering again");N===this.YI()&&Ei5(this,y)}else{if(this.G9&&this.G9.mP().layoutId===e)wwF(this,this.G9,y);else{var E;YN("Exiting cpn does not match active cpn",
this.slot,(w=this.G9)==null?void 0:w.mP(),{exitingCpn:e,transitionReason:y,activeCpn:(E=this.G9)==null?void 0:E.mP().layoutId})}N===this.YI()&&(this.G9!==void 0&&(YN("active adapter is not properly exited",this.slot,this.layout,{activeLayout:rh(this.G9.mP())}),wwF(this,this.G9,y)),Ei5(this,y),yyE(this,this.Uf.N.J))}};
g.J.O8=function(){return R_(this.wP.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.J.startRendering=function(e){this.OL(e)&&(e=this.Uf,$N(e.J===1,"tickStartRendering: state is not initial"),e.J=2,this.GO())};
g.J.QW=function(e){e3_(Object.assign({},Zu(this),{cpn:e}));var N=this.bv.find(function(y){return y.mP().layoutId===e});
N?(this.Uf.J!==2&&(qP3(this.EQ,this.slot.slotId),$N(this.Uf.J===2,"Expect started"),this.callback.Ql(this.slot,this.layout)),this.Xl(N),va(this.Tc,this.slot,N.mP())):Ay5(this,e)};
g.J.Aq=function(e,N){R3s(this,e,N);var y=this.jV();y?GFP(y,e,N)&&Tz_(this,"skipped"):Jy3(this,"onSkipRequested")};
g.J.wO=function(e,N){var y;a:{if(y=this.jV()){if(UE9(this),LQJ(y,e,N)&&(e=s4M(this,y,e,N),e!==void 0)){y={Kr:y,yT1:this.bv[e]};break a}}else Jy3(this,"SkipWithAdPodSkip");y=void 0}if(e=y)y=e.Kr,N=e.yT1,e=y.mP().layoutId,this.O8()?Wd(this,y,"skipped"):y.fC(y.mP(),"skipped"),y=N.mP().layoutId,this.xk.get().finishSegmentByCpn(e,y,cd("skipped",this.wP))};
g.J.Bd=function(){YN("Not used in html5_ssap_fix_layout_exit")};
g.J.pN=function(e){var N;(N=this.jV())==null||N.pN(e)};
g.J.xU=function(){YN("Not used in html5_ssap_fix_layout_exit")};
g.J.xP=function(e,N,y){var w;if(((w=this.jV())==null?void 0:w.mP().layoutId)!==N.layoutId)return void YN("requestToExitSubLayout: wrong layout");Tz_(this,y)};g.b(OV,g.x);g.J=OV.prototype;g.J.W9=function(){return this.DB.W9()};
g.J.mP=function(){return this.DB.mP()};
g.J.init=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=this);this.Zp()};
g.J.Zp=function(){this.DB.init()};
g.J.release=function(){var e=A6(this.mP().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");e&&(e.current=null);this.Hm()};
g.J.Hm=function(){this.DB.release()};
g.J.WF=function(){this.DB.WF()};
g.J.Jf=function(){this.DB.Jf()};
g.J.Aq=function(e,N){YN("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.W9(),this.mP(),{requestingSlot:e,requestingLayout:N})};
g.J.startRendering=function(e){e.layoutId!==this.mP().layoutId?this.callback.xz(this.W9(),e,new wX("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.mP().layoutId+("and LayoutType: "+this.mP().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.zZ.get().addListener(this),F2(this.Jz(),this),ASE(this.d7.get()),rSH(this.wP.get())||H8_(this.zZ.get()),this.DB.startRendering(e))};
g.J.fC=function(e,N){this.u8=!0;this.DB.fC(e,N);this.zZ.get().C.G5();alE(this.s2.get(),{});e=eT(this.zZ.get(),1);e.isPaused()&&!g.G(e,2)&&this.zZ.get().playVideo();this.zZ.get().removeListener(this);this.u8&&this.DB.Ek()};
g.J.Ql=function(e,N){this.DB.Ql(e,N)};
g.J.aJ=function(e,N,y){N.layoutId===this.mP().layoutId&&(this.u8=!1,SK(this.Jz(),this));this.DB.aJ(e,N,y);N.layoutId===this.mP().layoutId&&nL(this.d7.get())};
g.J.Vb=function(e){this.DB.Vb(e)};
g.J.pN=function(e){if(e.state.isError()){var N,y;this.xU((N=e.state.qS)==null?void 0:N.errorCode,new wX("There was a player error during this media layout.",{playerErrorCode:(y=e.state.qS)==null?void 0:y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.DB.pN(e)};
g.J.xU=function(e,N,y){this.DB.GP(e,N,y)};
g.J.onFullscreenToggled=function(e){this.DB.onFullscreenToggled(e)};
g.J.Yx=function(e){this.DB.Yx(e)};
g.J.ys=function(e){this.DB.ys(e)};
g.J.onVolumeChange=function(){this.DB.onVolumeChange()};
g.J.D0=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.Qs=function(){};
g.J.pO=function(){};g.J=RV.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.init=function(){this.p$.get().addListener(this);this.zZ.get().addListener(this);var e=A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var N=A6(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.j){var y=this.p$.get().IH.slice(-1)[0];y!==void 0&&(e=y.startSecs*1E3,N=(y.startSecs+y.Vj)*1E3)}this.Ft(e,N);var w;y=(w=this.Hk.get().nk)==null?void 0:w.clientPlaybackNonce;w=this.layout.o9.adClientDataEntry;Gp(this.Pk.get(),{daiStateTrigger:{filledAdsDurationMs:N-e,contentCpn:y,
adClientData:w}});var E=this.p$.get();E=ryP(E.K,e,N);E!==null&&(Gp(this.Pk.get(),{daiStateTrigger:{filledAdsDurationMs:E-e,contentCpn:y,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:w}}),this.xk.get().Qn(E,N))};
g.J.release=function(){this.Hm();this.p$.get().removeListener(this);this.zZ.get().removeListener(this)};
g.J.startRendering=function(){this.Fa();this.callback.Ql(this.slot,this.layout)};
g.J.fC=function(e,N){this.Ph(N);this.driftRecoveryMs!==null&&(UV(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round($Y0(this)-A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.zZ.get().C.k7()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.aJ(this.slot,this.layout,N)};
g.J.Wq=function(){return!1};
g.J.xa=function(e){var N=A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),y=A6(this.layout.clientMetadata,"metadata_type_layout_exit_ms");e*=1E3;if(N<=e&&e<y){var w;Gp(this.Pk.get(),{daiStateTrigger:{filledAdsDurationMs:e-N,contentCpn:(w=this.Hk.get().nk)==null?void 0:w.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.o9.adClientDataEntry}});this.xk.get().Qn(e,y)}};
g.J.Vb=function(e){this.pZ(e);e=pe(this.zZ.get(),2,!0);if(cu(this.L.get(),this.layout.layoutId)){var N=A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),y=this.driftRecoveryMs;if(!(y===null||e*1E3<N+y)){this.driftRecoveryMs=null;var w=$Y0(this),E=this.zZ.get().C.k7(),A=Math.min(e+E,w/1E3);A<=e?UV(this,{driftRecoveryMs:y.toString(),breakDurationMs:Math.round(w-N).toString(),driftFromHeadMs:Math.round(E*1E3).toString()}):(UV(this,{driftRecoveryMs:y.toString(),breakDurationMs:Math.round(w-
N).toString(),driftFromHeadMs:Math.round(E*1E3).toString(),appliedDriftRecoveryMs:Math.round(e*1E3-N).toString(),destinationMs:Math.round(A*1E3-N).toString()}),this.zZ.get().C.seekTo(A,void 0,void 0,1))}}};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.ys=function(){};
g.J.onVolumeChange=function(){};
g.J.Qs=function(){};
g.J.pO=function(){};g.b(LL,RV);g.J=LL.prototype;g.J.Ft=function(e,N){this.Hk.get().addListener(this);if(this.j){var y=e,w=0,E=[];e=this.K.slice();e.sort(function(A,T){return A6(A.mP().clientMetadata,"metadata_type_media_sub_layout_index")-A6(T.mP().clientMetadata,"metadata_type_media_sub_layout_index")});
e.forEach(function(A){var T=y,p=A6(A.mP().clientMetadata,"metadata_type_video_length_seconds"),C=Math.min(T+p*1E3,N);y=C;w++;E.push(p);A.Ft(T,C)})}else this.K.forEach(function(A){A.init()});
this.N!=null&&sV(this.Pk.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.N)};
g.J.Hm=function(){this.Hk.get().removeListener(this);this.J=null;this.K.forEach(function(e){e.release()})};
g.J.Fa=function(){if(this.J)YN("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.N)});else{var e,N=(e=this.Hk.get().nk)==null?void 0:e.layoutId;MZ1(this,N)}};
g.J.Ph=function(e){var N,y,w,E;(w=this.J)==null||(E=w.dK)==null||E.fC((N=this.J)==null?void 0:(y=N.dK)==null?void 0:y.mP(),e);this.J=null};
g.J.DZ=function(e){var N=e.videoId;e=e.layoutId;if(N==="nPpU29QrbiU"){var y,w;sV(this.Pk.get(),"ads_ssmplra_opdcs","vid."+N+";lid."+this.layout.layoutId+";smlid."+this.N+";slrs."+!!this.J+";slrslid."+((y=this.J)==null?void 0:(w=y.dK)==null?void 0:w.mP().layoutId))}if(this.J){var E;if(((E=this.J.dK)==null?void 0:E.mP().layoutId)===e)YN("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:e});else{var A,T;(T=this.J.dK)==null||T.fC((A=this.J.dK)==null?void 0:A.mP(),"normal");
MZ1(this,e)}}};
g.J.I6=function(){};
g.J.QW=function(){};
g.J.pZ=function(){};
g.J.pN=function(){};
g.J.onFullscreenToggled=function(){};g.J=PyP.prototype;g.J.W9=function(){return this.slot};
g.J.mP=function(){return this.layout};
g.J.FF=function(){YN("Should not get exitStateMachine for DAI");return new l$};
g.J.Ft=function(e,N){var y=this;A6(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.FS=lnM(this.slot,this.layout,A6(this.layout.clientMetadata,"metadata_type_player_vars"),e,N,A6(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.xk.get(),this.hf.get(),function(){var w=Object,E=w.assign,A=E_(y.layout);var T=A6(y.slot.clientMetadata,"metadata_type_fulfilled_layout")||y.slot.fulfilledLayout;var p=A6(T.clientMetadata,"metadata_type_sub_layouts")||
T.Cm;T=Object.assign({},E_(T),{adPlacementConfig:A6(T.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(p||[]).map(E_)});return E.call(w,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},A,{compositeLayout:T,hasSurveyOverlay:eK(y.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:A6(y.layout.clientMetadata,"metadata_type_survey_overlay")})},this.Pk.get());
this.zZ.get().addListener(this);e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds");N=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:N,vK:e,listener:this});BI0(this.callback,this.slot,this.layout);X7F(this.callback,this.slot,this.layout)};
g.J.init=function(){var e=A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),N=A6(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Ft(e,N)};
g.J.release=function(){this.zZ.get().removeListener(this);X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId);this.wP.get();PA5(this.callback,this.slot,this.layout)};
g.J.startRendering=function(){var e=this;eK(this.layout.clientMetadata,"metadata_type_survey_overlay")&&sV(this.Pk.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Dg)YN("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:eK(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:A6(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.Dg={lL:null,I3:!1};this.J=!1;if(pkH(this.wP.get())){var N;this.adCpn=
(N=Mb(this.Hk.get(),2))==null?void 0:N.clientPlaybackNonce}this.wP.get().C.X().experiments.gP("html5_disable_sodar_for_tvhtml5")||FoE(this.slot,this.layout,this.If.get());X1(this.layout.tM)&&this.wP.get().C.X().experiments.gP("enable_active_view_lifa_web_video")&&hu9(this.AM.get(),this.layout.layoutId);this.vk.eR("start");if(MC(this.wP.get())){N=eT(this.zZ.get());var y=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),w=pe(this.zZ.get(),2,!1);Sq5(this.vk,this.Dg.lL,N,y,w,function(){return void InP(e,
"teois")},wy(this))}va(this.callback,this.slot,this.layout);
eK(this.layout.clientMetadata,"metadata_type_survey_overlay")&&sV(this.Pk.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.J.fC=function(e,N){var y=this;if(this.Dg){if(MC(this.wP.get()))if(this.FS===null)YN("Unexpected media sub layout exited without a timeline playback ID");else{e=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds");var w=QnH(this.zZ.get(),this.FS);pkH(this.wP.get())&&this.adCpn===void 0&&YN("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:A6(this.layout.clientMetadata,"metadata_type_content_cpn")});$uH(this.vk,w,this.adCpn);em(this.vk,null,this.Dg.lL,e,w,wy(this),
function(E){return void dY5(y,E,"fue")},pkH(this.wP.get()))}this.Dg=null;
z5(this.callback,this.slot,this.layout,this.J&&this.wP.get().C.X().T("dai_layout_log_skip_exit_reason")?"skipped":N)}else YN("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.J.GP=function(){};
g.J.Ek=function(){};
g.J.Vb=function(e){var N=this;if(this.Dg){if(V6(this.vk,"impression")){var y=eT(this.zZ.get()),w=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds");Np(this.vk,y,e,this.Dg.lL,w,function(E){return void dY5(N,E,"tpaqe")})}this.Dg.lL=e}};
g.J.pN=function(e){var N=this;if(this.Dg){MC(this.wP.get())||this.Dg.I3||(this.Dg.I3=!0,e=new g.ME(e.state,new g.a8));var y=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),w=pe(this.zZ.get(),2,!1);aV(this.vk,this.Dg.lL,e,y,w,wy(this),!MC(this.wP.get()),function(){return void InP(N,"teosc")})}};
g.J.onFullscreenToggled=function(e){oiE(this.vk,e)};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.ys=function(){};
g.J.Aq=function(e,N){var y;e=this.Pk.get();var w="ti."+V6(this.vk,"impression")+";ts."+V6(this.vk,"skip")+";hp.",E;var A=!((E=this.vk.K.get("skip"))==null||!E.length);sV(e,"ads_dsr",w+A+";cpn."+A6(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((y=Mb(this.Hk.get(),2))==null?void 0:y.clientPlaybackNonce)+";sl."+(A6(N.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));V6(this.vk,"impression")&&this.vk.eR("skip");N=Mb(this.Hk.get(),1).Au&&this.wP.get().C.X().experiments.gP("html5_lifa_skip_to_content");
this.J=!0;this.xk.get().Ll(N)||(this.J=!1,YN("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.J.onVolumeChange=function(){};
g.J.Ql=function(){};
g.J.aJ=function(){};
g.J.WF=function(){};
g.J.Jf=function(){};
g.J.e5=function(){bV3(this.vk)};
g.J.tq=function(){hK_(this.vk)};
g.J.KG=function(){cy5(this.vk)};
g.J.fG=function(){kH_(this.vk)};
g.J.Nf=function(){Bzn(this.vk)};
g.J.k6=function(){XwM(this.vk)};
g.J.Qs=function(){};
g.J.pO=function(){};g.b(Ac,RV);g.J=Ac.prototype;
g.J.Ft=function(){var e=this;A6(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var N=A6(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),y=A6(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.FS=lnM(this.slot,this.layout,A6(this.layout.clientMetadata,"metadata_type_player_vars"),N,y,A6(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.xk.get(),this.hf.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:N,
exitMs:y,adPlacementConfig:A6(e.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.Pk.get());
var w=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),E=A6(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");X1(this.layout.tM)&&Nr(this.AM.get(),this.layout.layoutId,{Gn:E,vK:w,listener:this})};
g.J.Hm=function(){X1(this.layout.tM)&&ya(this.AM.get(),this.layout.layoutId)};
g.J.Fa=function(){var e=this;if(this.Dg)YN("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Dg={lL:null,I3:!1},FoE(this.slot,this.layout,this.If.get()),this.vk.eR("start"),MC(this.wP.get())){var N=eT(this.zZ.get()),y=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),w=pe(this.zZ.get(),2,!1);Sq5(this.vk,this.Dg.lL,N,y,w,function(){return void vi_(e,"teois")},!1)}};
g.J.Ph=function(){var e=this;if(this.Dg){if(MC(this.wP.get()))if(this.FS===null)YN("Unexpected single media layout exited without a timeline playback ID");else{var N=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),y=QnH(this.zZ.get(),this.FS);$uH(this.vk,y);em(this.vk,null,this.Dg.lL,N,y,!1,function(w){return void zKs(e,w,"fue")})}this.Dg=null}else YN("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.J.pZ=function(e){var N=this;if(this.Dg){if(V6(this.vk,"impression")){var y=eT(this.zZ.get()),w=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds");Np(this.vk,y,e,this.Dg.lL,w,function(E){return void zKs(N,E,"tpaqe")})}this.Dg.lL=e}};
g.J.pN=function(e){var N=this;if(this.Dg){MC(this.wP.get())||this.Dg.I3||(this.Dg.I3=!0,e=new g.ME(e.state,new g.a8));var y=A6(this.layout.clientMetadata,"metadata_type_video_length_seconds"),w=pe(this.zZ.get(),2,!1);aV(this.vk,this.Dg.lL,e,y,w,!1,!MC(this.wP.get()),function(){return void vi_(N,"teosc")})}};
g.J.onFullscreenToggled=function(e){oiE(this.vk,e)};
g.J.e5=function(){bV3(this.vk)};
g.J.tq=function(){hK_(this.vk)};
g.J.KG=function(){cy5(this.vk)};
g.J.fG=function(){kH_(this.vk)};
g.J.Nf=function(){Bzn(this.vk)};
g.J.k6=function(){XwM(this.vk)};TK.prototype.build=function(e,N,y,w){if(eK(y.clientMetadata,"metadata_type_dai")){var E=A6(w.clientMetadata,"metadata_type_ad_placement_config");Up(w,{xO:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),K$:["LAYOUT_TYPE_MEDIA"]})&&E!==void 0?(E=new I0(w.tM,this.Pk,E,w.layoutId,null),E=new Ac(e,y,w,this.Hk,this.xk,this.hf,this.p$,this.zZ,E,this.Pk,this.If,
this.J,this.AM,this.wP)):E=null;if(E)return E;a:{var A,T=(A=w.Cm)!=null?A:A6(w.clientMetadata,"metadata_type_sub_layouts");E=A6(w.clientMetadata,"metadata_type_ad_placement_config");if(Up(w,{xO:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],K$:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&T!==void 0&&E!==void 0){A=[];T=g.c(T);for(var p=T.next();!p.done;p=T.next()){p=p.value;var C=A6(p.clientMetadata,"metadata_type_media_sub_layout_index");if(!Up(p,{xO:"metadata_type_video_length_seconds metadata_type_player_vars metadata_type_layout_enter_ms metadata_type_layout_exit_ms metadata_type_player_bytes_callback_ref metadata_type_content_cpn".split(" "),
K$:["LAYOUT_TYPE_MEDIA"]})||C===void 0){e=null;break a}C=new I0(p.tM,this.Pk,E,p.layoutId,C);A.push(new PyP(N,y,p,this.xk,C,this.zZ,this.hf,this.AM,this.If,this.wP,this.Pk,this.Hk))}N=new I0(w.tM,this.Pk,E,w.layoutId);e=new LL(e,y,w,this.Hk,this.xk,this.p$,this.zZ,N,this.Pk,this.J,A)}else e=null}if(e)return e}else if(e=Cy5(e,N,y,w,this.Jz,this.EQ,this.Mr,this.Pk,this.AM,this.If,this.s2,this.Hk,this.zZ,this.oJ,this.d7,this.Vi,this.P9,this.DM,this.wP,this.xk,this.context,this.Kw))return e;throw new wX("Unsupported layout with type: "+
w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};Jc.prototype.build=function(e,N,y,w){if(e=Cy5(e,N,y,w,this.Jz,this.EQ,this.Mr,this.Pk,this.AM,this.If,this.s2,this.Hk,this.zZ,this.oJ,this.d7,this.Vi,this.P9,this.DM,this.wP,this.xk,this.context,this.Kw))return e;throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.b(iVJ,JZ);g.b(pt,bv);pt.prototype.startRendering=function(e){var N=hA(this.vk),y={adsClientData:this.layout.o9};this.J.push(new iVJ(A6(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),N,this.mP().layoutId,y));bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)};
pt.prototype.Pw=function(e,N){N!==this.layout.layoutId||e!=="survey-interstitial"&&e!=="button"||((e=A6(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?e.Aq(this.slot,this.layout):YN("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
pt.prototype.fh=function(){bv.prototype.fh.call(this)};var ry=new g.l8(320,63);g.b(Mp,JZ);g.b(lR,bv);g.J=lR.prototype;g.J.Vb=function(){};
g.J.pN=function(){};
g.J.onFullscreenToggled=function(){};
g.J.Yx=function(e){e&&iP(this.j,this.layout)};
g.J.D0=function(){};
g.J.ys=function(e){var N=YA(this.layout);if(this.G=$A(e,mQF(this.zZ.get())))N.onErrorCommand&&this.P9.get().executeCommand(N.onErrorCommand,this.layout.layoutId),iP(this.j,this.layout)};
g.J.onVolumeChange=function(){};
g.J.rb=function(){return this.mP().layoutId};
g.J.B6=function(){return this.G};
g.J.Pw=function(e){this.L.Pw(e);e==="in_video_overlay_close_button"&&iP(this.j,this.layout)};
g.J.uh=function(e){e==="invideo-overlay"&&iP(this.j,this.layout)};
g.J.Jp=function(){this.L.Jp()};
g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e);this.Z.H1=this};
g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);Oy(this.Z,this)};
g.J.init=function(){bv.prototype.init.call(this);VN5(this.Pk.get(),this);this.zZ.get().addListener(this);this.J.push(new Mp(YA(this.layout),hA(this.vk),this.layout.layoutId,{adsClientData:this.layout.o9}))};
g.J.release=function(){bv.prototype.release.call(this);this.zZ.get().removeListener(this);fl0(this.Pk.get(),this)};
g.J.Qs=function(){};
g.J.pO=function(){};g.b(Fv,bv);g.J=Fv.prototype;g.J.init=function(){bv.prototype.init.call(this);VN5(this.Pk.get(),this);this.zZ.get().addListener(this);this.J.push(new Mp(YA(this.layout),hA(this.vk),this.layout.layoutId,{adsClientData:this.layout.o9}))};
g.J.Jp=function(){this.L.Jp()};
g.J.startRendering=function(e){bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e);this.Z.H1=this};
g.J.fC=function(e,N){bv.prototype.fC.call(this,e,N);Oy(this.Z,this)};
g.J.Pw=function(e){this.L.Pw(e);e==="in_video_overlay_close_button"&&iP(this.j,this.layout)};
g.J.HM=function(e){if(e==="invideo-overlay"){e=uP_(this.U,this.layout);e=g.c(e);for(var N=e.next();!N.done;N=e.next())N.value.stop()}};
g.J.uh=function(e){e==="invideo-overlay"&&iP(this.j,this.layout)};
g.J.Tm=function(e){if(e==="invideo-overlay"){e=uP_(this.U,this.layout);e=g.c(e);for(var N=e.next();!N.done;N=e.next())N.value.start()}};
g.J.Vb=function(){};
g.J.pN=function(){};
g.J.onFullscreenToggled=function(){};
g.J.Yx=function(e){e&&iP(this.j,this.layout)};
g.J.D0=function(){};
g.J.ys=function(e){var N=YA(this.layout),y=N.contentSupportedRenderer.imageOverlayAdContentRenderer,w=mQF(this.zZ.get());a:{y=y.image;y=y===void 0?null:y;if(y!=null&&(y=y.thumbnail,y!=null&&y.thumbnails!=null&&y.thumbnails.length!=0&&y.thumbnails[0].width!=null&&y.thumbnails[0].height!=null)){y=new g.l8(y.thumbnails[0].width||0,y.thumbnails[0].height||0);break a}y=new g.l8(0,0)}if(this.G=$A(e,w,y))N.onErrorCommand&&this.P9.get().executeCommand(N.onErrorCommand,this.layout.layoutId),iP(this.j,this.layout)};
g.J.onVolumeChange=function(){};
g.J.rb=function(){return this.mP().layoutId};
g.J.B6=function(){return this.G};
g.J.release=function(){bv.prototype.release.call(this);this.zZ.get().removeListener(this);fl0(this.Pk.get(),this)};
g.J.Qs=function(){};
g.J.pO=function(){};Sm.prototype.Pw=function(e){e==="ad-info-hover-text-button"&&((this.J=this.zZ.get().Ax(1))||this.zZ.get().pauseVideo())};
Sm.prototype.Jp=function(){this.J||this.zZ.get().resumeVideo(1)};g.b(fn0,JZ);g.b(oX,bv);g.J=oX.prototype;g.J.init=function(){bv.prototype.init.call(this);this.zZ.get().addListener(this)};
g.J.startRendering=function(e){var N=A6(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.J.push(new fn0(N,this.layout.layoutId,{adsClientData:this.layout.o9}));bv.prototype.startRendering.call(this,e);this.callback.Ql(this.slot,e)};
g.J.Ql=function(){};
g.J.Pw=function(e,N){N!==this.layout.layoutId||e!=="ad-info-icon-button"&&e!=="ad-info-dialog-close-button"||((N=A6(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?e==="ad-info-icon-button"?N.WF(this.slot,this.layout):e==="ad-info-dialog-close-button"&&N.Jf(this.slot,this.layout):YN("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:e}))};
g.J.ys=function(e){e.width<450&&iP(this.j,this.layout)};
g.J.onVolumeChange=function(){};
g.J.Vb=function(){};
g.J.onFullscreenToggled=function(){};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.pN=function(){};
g.J.Qs=function(){};
g.J.pO=function(){};
g.J.fh=function(){bv.prototype.fh.call(this)};
g.J.release=function(){bv.prototype.release.call(this);this.zZ.get().removeListener(this)};tZ5.prototype.build=function(e,N,y,w){if(N=rp(e,y,w,this.q7,this.zZ,this.Pk,this.j,this.J,this.wP))return N;if(Up(w,VZn()))return new Fv(y,w,this.Pk,this.AM,this.q7,e,this.N,this.K,this.zZ,this.P9,this.wP,this.J,new Sm(this.zZ));if(Up(w,giM()))return new lR(y,w,this.Pk,this.AM,this.q7,e,this.N,this.zZ,this.P9,this.wP,this.J,new Sm(this.zZ));if(Up(w,{xO:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],K$:["LAYOUT_TYPE_SURVEY"]}))return new oX(y,w,e,this.q7,this.N,this.zZ,this.wP);if(Up(w,
{xO:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],K$:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new pt(y,w,e,this.q7,this.Pk);if(Up(w,HT5()))return new Eg(y,w,e,this.q7,this.zZ,this.wP);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};umM.prototype.build=function(e,N,y,w){if(N=rp(e,y,w,this.q7,this.zZ,this.Pk,this.j,this.J,this.wP))return N;if(Up(w,VZn()))return new Fv(y,w,this.Pk,this.AM,this.q7,e,this.N,this.K,this.zZ,this.P9,this.wP,this.J,new Sm(this.zZ));if(Up(w,giM()))return new lR(y,w,this.Pk,this.AM,this.q7,e,this.N,this.zZ,this.P9,this.wP,this.J,new Sm(this.zZ));throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.b(bR,yI);bR.prototype.startRendering=function(e){yI.prototype.startRendering.call(this,e);if(e.renderingContent?xu3(e,Mb(this.Hk.get(),2)||void 0):A6(this.layout.clientMetadata,"metadata_ad_video_is_listed"))e=e.renderingContent?ZTM(e,Mb(this.Hk.get(),2)||void 0):A6(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.Hs.get().C.Mg("onAdMetadataAvailable",e)};ZVn.prototype.build=function(e,N,y,w){if(Up(w,qq5())||w.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.m(w.renderingContent,TS)!==void 0)return new bR(e,y,w,this.q7,this.zZ,this.Pk,this.N,this.Hs,this.J,this.Hk);throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};xYs.prototype.build=function(e,N,y,w){if(Up(w,qq5()))return new bR(e,y,w,this.q7,this.zZ,this.Pk,this.N,this.Hs,this.J,this.Hk);if(e=rp(e,y,w,this.q7,this.zZ,this.Pk,this.N,this.J,this.wP))return e;throw new wX("Unsupported layout with type: "+w.layoutType+" and client metadata: "+T5(w.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};nt.prototype.clone=function(e){var N=this;return new nt(function(){return N.triggerId},e)};QV.prototype.clone=function(e){var N=this;return new QV(function(){return N.triggerId},e)};mz.prototype.clone=function(e){var N=this;return new mz(function(){return N.triggerId},e)};Hh.prototype.clone=function(e){var N=this;return new Hh(function(){return N.triggerId},e)};Kt.prototype.clone=function(e){var N=this;return new Kt(function(){return N.triggerId},e)};Wh.prototype.clone=function(e){var N=this;return new Wh(function(){return N.triggerId},e)};g.b(DC,g.x);var NLM={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15,
"i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var LN={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],E2:[],layoutExitUserInputSubmittedTriggers:[]};var id={efW:1,vIZ:2,gI1:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.b(YF,g.x);g.J=YF.prototype;g.J.R0=function(e){if(this.J)YN("Unexpected multiple fetch instructions for the current content");else{this.J=e;e=g.c(this.p$.get().IH);for(var N=e.next();!N.done;N=e.next())bxF(this,this.J,N.value)}};
g.J.Wq=function(e){if(!this.J){var N;(N=this.xk)==null||N.get().Mp(e.identifier);return!1}bxF(this,this.J,e);return!0};
g.J.xa=function(){};
g.J.I$=function(e){this.J&&this.J.contentCpn!==e&&(YN("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.J.contentCpn}),this.J=null)};
g.J.Jg=function(e){this.J&&this.J.contentCpn!==e&&YN("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.J.contentCpn},!0);this.J=null};
g.J.fh=function(){g.x.prototype.fh.call(this);this.J=null};var cv=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],rK5=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.b(F7,g.x);g.J=F7.prototype;g.J.Ql=function(e,N){var y=this;if(N.layoutType==="LAYOUT_TYPE_MEDIA"&&(Nx(N,this.Z)||Nx(N,rK5))){var w=Mb(this.Hk.get(),2),E=this.j(N,w||void 0);E?lv(this.K.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var A=[$D1(y.J.get(),E.contentCpn,E.rL,function(T){return y.L(T.slotId,"core",E,$2(y.yT.get(),T))},E.inPlayerSlotId)];
E.instreamAdPlayerUnderlayRenderer&&Wr(y.wP.get())&&A.push(BKP(y,E,E.instreamAdPlayerUnderlayRenderer));return A}):YN("Expected MediaLayout to carry valid opportunity on entered",e,N)}};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.BE=function(){};
g.J.XI=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.aJ=function(){};g.b(Sw,g.x);Sw.prototype.I$=function(e,N,y,w,E,A,T){var p=this,C=Mb(this.Hk.get(),1);!R_(this.wP.get(),"html5_ssap_play_cached_preroll")&&C.jg?JM(this.zZ.get()):(EkM(this.d7.get(),w),lv(this.N.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return X8J(p.J.get(),w,E,A,e,N,T,C,"")}),Tcn(this.K))};
Sw.prototype.Jg=function(){};g.b(oc,g.x);g.b(bP,g.x);bP.prototype.onCueRangeEnter=function(){};
bP.prototype.onCueRangeExit=function(e){var N=this,y=this.J.get(e);y&&(this.J.delete(e),this.oJ.get().removeCueRange(e),lv(this.N.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var w=N.K.get();w=F1(w.N.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},y,{slotId:w,slotEntryTrigger:y.slotEntryTrigger?Hx_(y.slotId,w,y.slotEntryTrigger):void 0,slotFulfillmentTriggers:KZ9(y.slotId,w,y.slotFulfillmentTriggers),slotExpirationTriggers:KZ9(y.slotId,w,y.slotExpirationTriggers)})]},
y.slotId))};
bP.prototype.I$=function(){for(var e=g.c(this.J.keys()),N=e.next();!N.done;N=e.next())N=N.value,this.oJ.get().removeCueRange(N);this.J.clear()};
bP.prototype.Jg=function(){};g.b(hH,g.x);g.J=hH.prototype;g.J.JT=function(){};
g.J.eZ=function(e){var N=this;g.e1(g.yK(),function(){var y=N.J.get(e);y&&YN("Expected layouts to be properly unscheduled",e,void 0,{slotType:e.slotType,layoutTypes:[].concat(g.B(y)).map(function(w){return w.layoutType})})},0)};
g.J.BE=function(){};
g.J.XI=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(e,N){this.J.has(e)||this.J.set(e,new Set);this.J.get(e).add(N)};
g.J.Lq=function(e,N){this.R$.has(e)&&this.R$.get(e)===N&&YN("Unscheduled a Layout that is currently entered.",e,N);if(this.J.has(e)){var y=this.J.get(e);y.has(N)?(y.delete(N),y.size===0&&this.J.delete(e)):YN("Trying to unscheduled a Layout that was not scheduled.",e,N)}else YN("Trying to unscheduled a Layout that was not scheduled.",e,N)};
g.J.Ql=function(e,N){this.R$.set(e,N)};
g.J.aJ=function(e){this.R$.delete(e)};
g.J.sX=function(){};g.J=Pls.prototype;g.J.init=function(){};
g.J.W9=function(){return this.slot};
g.J.LU=function(){this.callback.BE(this.slot)};
g.J.HU=function(){this.callback.ma(this.slot)};
g.J.release=function(){};Bu.prototype.build=function(e,N){return new Pls(e,N)};g.J=dTE.prototype;g.J.init=function(){};
g.J.W9=function(){return this.slot};
g.J.LU=function(){Ce(this.zZ.get(),"ad-showing");this.callback.BE(this.slot)};
g.J.HU=function(){this.callback.ma(this.slot);rV(this.zZ.get(),"ad-showing")};
g.J.release=function(){};g.J=IbM.prototype;g.J.init=function(){};
g.J.W9=function(){return this.slot};
g.J.LU=function(){Ce(this.zZ.get(),"ad-showing");Ce(this.zZ.get(),"ad-interrupting");this.N=this.zZ.get().isAtLiveHead();this.J=Math.ceil(Date.now()/1E3);this.callback.BE(this.slot)};
g.J.HU=function(){rV(this.zZ.get(),"ad-showing");rV(this.zZ.get(),"ad-interrupting");var e=this.N?Infinity:pe(this.zZ.get(),1,!0)+Math.floor(Date.now()/1E3)-this.J;this.zZ.get().C.seekTo(e,void 0,void 0,1);this.callback.ma(this.slot)};
g.J.release=function(){};g.J=vqM.prototype;g.J.init=function(){};
g.J.W9=function(){return this.slot};
g.J.LU=function(){Ce(this.zZ.get(),"ad-showing");Ce(this.zZ.get(),"ad-interrupting");this.callback.BE(this.slot)};
g.J.HU=function(){JM(this.zZ.get());rV(this.zZ.get(),"ad-showing");rV(this.zZ.get(),"ad-interrupting");this.callback.ma(this.slot)};
g.J.release=function(){JM(this.zZ.get())};X7.prototype.build=function(e,N){if(J6(N,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new dTE(e,N,this.zZ);if(N.slotEntryTrigger instanceof VV&&J6(N,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new IbM(e,N,this.zZ);if(J6(N,[],"SLOT_TYPE_PLAYER_BYTES"))return new vqM(e,N,this.zZ);throw new U("Unsupported slot with type "+N.slotType+" and client metadata: "+(T5(N.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.b(Pu,g.x);Pu.prototype.J=function(e){for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next()){w=w.value;var E=w.trigger;E instanceof jm&&w.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&E.triggeringLayoutId===e&&N.push(w)}N.length?iF(this.ri(),N):YN("Mute requested but no registered triggers can be activated.")};g.b(Ic,Pu);g.J=Ic.prototype;g.J.Pw=function(e,N){if(N)if(e==="skip-button"){e=[];for(var y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next()){w=w.value;var E=w.trigger;E instanceof jm&&w.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&E.triggeringLayoutId===N&&e.push(w)}e.length&&iF(this.ri(),e)}else R_(this.wP.get(),"supports_multi_step_on_desktop")?e==="ad-action-submit-survey"&&d$(this,N):e==="survey-submit"?d$(this,N):e==="survey-single-select-answer-button"&&d$(this,N)};
g.J.oG=function(e){Pu.prototype.J.call(this,e)};
g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof O_||N instanceof jm))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in AdUxUpdateTriggerAdapter.");this.Zg.set(N.triggerId,new GK(e,N,y,w))};
g.J.Ay=function(e){this.Zg.delete(e.triggerId)};
g.J.HM=function(){};
g.J.Tm=function(){};
g.J.uh=function(){};g.b(vu,g.x);g.J=vu.prototype;
g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof nt||N instanceof QV||N instanceof mz||N instanceof Hh||N instanceof Kt||N instanceof Wh||N instanceof uR||N instanceof dy||N instanceof vh||N instanceof IX||N instanceof tc||N instanceof Ph))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in AdsControlFlowEventTriggerAdapter");e=new GK(e,N,y,w);this.Zg.set(N.triggerId,e);N instanceof
Kt&&this.L.has(N.triggeringSlotId)&&iF(this.J(),[e]);N instanceof nt&&this.K.has(N.triggeringSlotId)&&iF(this.J(),[e]);N instanceof dy&&this.N.has(N.triggeringLayoutId)&&iF(this.J(),[e])};
g.J.Ay=function(e){this.Zg.delete(e.triggerId)};
g.J.JT=function(e){this.L.add(e.slotId);for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value,w.trigger instanceof Kt&&e.slotId===w.trigger.triggeringSlotId&&N.push(w);N.length>0&&iF(this.J(),N)};
g.J.eZ=function(e){this.L.delete(e.slotId);for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next()){w=w.value;var E=w.trigger;E instanceof Wh&&E.triggeringSlotId===e.slotId&&N.push(w)}N.length>0&&iF(this.J(),N)};
g.J.XI=function(e){for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next()){w=w.value;var E=w.trigger;E instanceof uR&&E.slotType===e.slotType&&E.J!==e.slotId&&N.push(w)}N.length>0&&iF(this.J(),N)};
g.J.BE=function(e){this.K.add(e.slotId);for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value,w.trigger instanceof nt&&e.slotId===w.trigger.triggeringSlotId&&N.push(w);N.length>0&&iF(this.J(),N)};
g.J.ma=function(e){this.K.delete(e.slotId);this.j.add(e.slotId);for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())if(w=w.value,w.trigger instanceof QV)e.slotId===w.trigger.triggeringSlotId&&N.push(w);else if(w.trigger instanceof Ph){var E=w.trigger;e.slotId===E.slotId&&this.N.has(E.triggeringLayoutId)&&N.push(w)}N.length>0&&iF(this.J(),N)};
g.J.U4=function(e){for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value,w.trigger instanceof mz&&e.slotId===w.trigger.triggeringSlotId&&N.push(w);N.length>0&&iF(this.J(),N)};
g.J.Wf=function(e){for(var N=[],y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value,w.trigger instanceof Hh&&e.slotId===w.trigger.triggeringSlotId&&N.push(w);N.length>0&&iF(this.J(),N)};
g.J.i6=function(e,N){this.Z.add(N.layoutId)};
g.J.Lq=function(e,N){this.Z.delete(N.layoutId)};
g.J.Ql=function(e,N){this.N.add(N.layoutId);for(var y=[],w=g.c(this.Zg.values()),E=w.next();!E.done;E=w.next())if(E=E.value,E.trigger instanceof dy)N.layoutId===E.trigger.triggeringLayoutId&&y.push(E);else if(E.trigger instanceof tc){var A=E.trigger;e.slotType===A.slotType&&N.layoutType===A.layoutType&&N.layoutId!==A.J&&y.push(E)}else E.trigger instanceof Ph&&(A=E.trigger,N.layoutId===A.triggeringLayoutId&&this.j.has(A.slotId)&&y.push(E));y.length>0&&iF(this.J(),y)};
g.J.aJ=function(e,N,y){this.N.delete(N.layoutId);e=[];for(var w=g.c(this.Zg.values()),E=w.next();!E.done;E=w.next())if(E=E.value,E.trigger instanceof vh&&N.layoutId===E.trigger.triggeringLayoutId&&e.push(E),E.trigger instanceof IX){var A=E.trigger;N.layoutId===A.triggeringLayoutId&&A.J.includes(y)&&e.push(E)}e.length>0&&iF(this.J(),e)};
g.J.sX=function(){};
g.J.I$=function(){this.j.clear()};
g.J.Jg=function(){};g.b(zB,g.x);zB.prototype.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof Bh))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in CloseRequestedTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))};
zB.prototype.Ay=function(e){this.Zg.delete(e.triggerId)};g.b(Dz,g.x);Dz.prototype.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof kA||N instanceof Zp))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))};
Dz.prototype.Ay=function(e){this.Zg.delete(e.triggerId)};
Dz.prototype.I$=function(e){for(var N=[],y=N.push,w=y.apply,E=[],A=g.c(this.Zg.values()),T=A.next();!T.done;T=A.next())T=T.value,T.trigger instanceof kA&&T.trigger.Zf===e&&E.push(T);w.call(y,N,g.B(E));y=N.push;w=y.apply;E=[];A=g.c(this.Zg.values());for(T=A.next();!T.done;T=A.next())T=T.value,T.trigger instanceof Zp&&T.trigger.J!==e&&E.push(T);w.call(y,N,g.B(E));N.length&&iF(this.J(),N)};
Dz.prototype.Jg=function(e){for(var N=[],y=N.push,w=y.apply,E=[],A=g.c(this.Zg.values()),T=A.next();!T.done;T=A.next()){T=T.value;var p=T.trigger;p instanceof Zp&&p.J===e&&E.push(T)}w.call(y,N,g.B(E));N.length&&iF(this.J(),N)};g.b(g$,g.x);g.J=g$.prototype;g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");var E="adtriggercuerange:"+N.triggerId;if(N instanceof VV)zan(this,e,N,y,w,E,N.J.start,N.J.end,N.Zf,N.visible);else if(N instanceof Xv)zan(this,e,N,y,w,E,0x7ffffffffffff,0x8000000000000,N.Zf,N.visible);else throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in CueRangeTriggerAdapter");};
g.J.Ay=function(e){var N=this.Zg.get(e.triggerId);N&&this.oJ.get().removeCueRange(N.cueRangeId);this.Zg.delete(e.triggerId)};
g.J.onCueRangeEnter=function(e){var N=ix_(this,e);if(N&&(N=this.Zg.get(N)))if(g.G(eT(this.zZ.get()),32))this.J.add(N.cueRangeId);else{var y=N==null?void 0:N.md.trigger;if(y instanceof VV||y instanceof Xv){if(k6(this.context.wP.get())){var w=N.md.slot,E=N.md.layout,A={};this.context.OP.g4("cre",(A.ca=N.md.category,A.tt=y.triggerType,A.st=w.slotType,A.lt=E==null?void 0:E.layoutType,A.cid=e,A))}iF(this.N(),[N.md])}}};
g.J.onCueRangeExit=function(e){(e=ix_(this,e))&&(e=this.Zg.get(e))&&this.J.delete(e.cueRangeId)};
g.J.pN=function(e){if(lp(e,16)<0){e=g.c(this.J);for(var N=e.next();!N.done;N=e.next())this.onCueRangeEnter(N.value,!0);this.J.clear()}};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.Ql=function(){};
g.J.aJ=function(){};
g.J.sX=function(){};
g.J.Vb=function(){};
g.J.onFullscreenToggled=function(){};
g.J.Yx=function(){};
g.J.D0=function(){};
g.J.ys=function(){};
g.J.onVolumeChange=function(){};
g.J.Qs=function(){};
g.J.pO=function(){};g.b(V8,g.x);g.J=V8.prototype;
g.J.jw=function(e,N,y,w){if(this.N.has(N.triggerId)||this.K.has(N.triggerId))throw new U("Tried to re-register the trigger.");e=new GK(e,N,y,w);if(e.trigger instanceof gy)this.N.set(e.trigger.triggerId,e);else if(e.trigger instanceof zK)this.K.set(e.trigger.triggerId,e);else throw new U("Incorrect TriggerType: Tried to register trigger of type "+e.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.N.has(e.trigger.triggerId)&&e.slot.slotId===this.J&&iF(this.j(),[e])};
g.J.Ay=function(e){this.N.delete(e.triggerId);this.K.delete(e.triggerId)};
g.J.DZ=function(e){e=e.slotId;if(this.J!==e){var N=[];this.J!=null&&N.push.apply(N,g.B(DTJ(this.K,this.J)));e!=null&&N.push.apply(N,g.B(DTJ(this.N,e)));this.J=e;N.length&&iF(this.j(),N)}};
g.J.I6=function(){};
g.J.QW=function(){};g.b(fs,g.x);g.J=fs.prototype;g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof qp))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))};
g.J.Ay=function(e){this.Zg.delete(e.triggerId)};
g.J.Ql=function(){};
g.J.aJ=function(){};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};g.b(tH,g.x);g.J=tH.prototype;g.J.sX=function(e,N){for(var y=[],w=g.c(this.Zg.values()),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.trigger;A.opportunityType===e&&(A.associatedSlotId&&A.associatedSlotId!==N||y.push(E))}y.length&&iF(this.J(),y)};
g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof ngH))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in OpportunityEventTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w))};
g.J.Ay=function(e){this.Zg.delete(e.triggerId)};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.Ql=function(){};
g.J.aJ=function(){};g.b(uP,g.x);g.J=uP.prototype;g.J.jw=function(e,N,y,w){e=new GK(e,N,y,w);if(N instanceof iR||N instanceof ft||N instanceof Dp||N instanceof xA||N instanceof jgH){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");this.Zg.set(N.triggerId,e);y=y.slotId;e=this.K.has(y)?this.K.get(y):new Set;e.add(N);this.K.set(y,e)}else throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in PrefetchTriggerAdapter");};
g.J.Ay=function(e){this.Zg.delete(e.triggerId)};
g.J.JT=function(e){var N=e.slotId;if(this.K.has(N)){e=0;var y=new Set;N=g.c(this.K.get(N));for(var w=N.next();!w.done;w=N.next())if(w=w.value,y.add(w.triggerId),w instanceof ft&&w.breakDurationMs){e=w.breakDurationMs;break}qC(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",e,y)}};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.Ql=function(){};
g.J.aJ=function(){};
g.J.sX=function(){};
g.J.Wq=function(e){if(this.J){this.N&&this.N.stop();this.j&&g.NA(this.j);e=e.Vj*1E3+1E3;for(var N=0,y=g.c(this.Zg.values()),w=y.next();!w.done;w=y.next())w=w.value.trigger,w instanceof iR&&w.breakDurationMs<=e&&w.breakDurationMs>N&&(N=w.breakDurationMs);e=N;if(e>0)return qC(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",e,new Set,!0),qC(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",e,new Set,!1),!0}return!1};
g.J.xa=function(){};
g.J.I$=function(e){this.J&&this.J.contentCpn!==e?(YN("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.J.contentCpn}),Zz(this)):VR0(this)};
g.J.Jg=function(e){this.J&&this.J.contentCpn!==e&&YN("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:e,fetchInstructionsCpn:this.J.contentCpn},!0);Zz(this)};
g.J.R0=function(e){var N=this;if(this.J)YN("Unexpected multiple fetch instructions for the current content");else{this.J=e;e=tRs(e);this.N=new g.e6(function(){VR0(N)},e?e:6E5);
this.N.start();this.j=new g.e6(function(){N.J&&(N.N&&(N.N.stop(),N.N.start()),gq5(N,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},fb9(this.J));
e=this.zZ.get().getCurrentTimeSec(1,!1);for(var y=g.c(this.p$.get().IH),w=y.next();!w.done;w=y.next())w=w.value,sV(this.Pk.get(),"nocache","ct."+Date.now()+";cmt."+e+";d."+w.Vj.toFixed(3)+";tw."+(w.startSecs-e)+";cid."+w.identifier+";")}};
g.J.fh=function(){g.x.prototype.fh.call(this);Zz(this)};g.b(xF,g.x);g.J=xF.prototype;g.J.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof RX))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Zg.set(N.triggerId,new GK(e,N,y,w));e=this.J.has(N.triggeringLayoutId)?this.J.get(N.triggeringLayoutId):new Set;e.add(N);this.J.set(N.triggeringLayoutId,e)};
g.J.Ay=function(e){this.Zg.delete(e.triggerId);if(!(e instanceof RX))throw new U("Incorrect TriggerType: Tried to unregister trigger of type "+e.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var N=this.N.get(e.triggerId);N&&(N.dispose(),this.N.delete(e.triggerId));if(N=this.J.get(e.triggeringLayoutId))N.delete(e),N.size===0&&this.J.delete(e.triggeringLayoutId)};
g.J.JT=function(){};
g.J.eZ=function(){};
g.J.XI=function(){};
g.J.BE=function(){};
g.J.ma=function(){};
g.J.U4=function(){};
g.J.Wf=function(){};
g.J.i6=function(){};
g.J.Lq=function(){};
g.J.sX=function(){};
g.J.Ql=function(e,N){var y=this;if(this.J.has(N.layoutId)){e=this.J.get(N.layoutId);e=g.c(e);var w=e.next();for(N={};!w.done;N={E3:void 0},w=e.next())N.E3=w.value,w=new g.e6(function(E){return function(){var A=y.Zg.get(E.E3.triggerId);iF(y.K(),[A])}}(N),N.E3.durationMs),w.start(),this.N.set(N.E3.triggerId,w)}};
g.J.aJ=function(){};g.b(jw,g.x);jw.prototype.jw=function(e,N,y,w){if(this.Zg.has(N.triggerId))throw new U("Tried to register duplicate trigger for slot.");if(!(N instanceof hc))throw new U("Incorrect TriggerType: Tried to register trigger of type "+N.triggerType+" in VideoTransitionTriggerAdapter.");this.Zg.set(N.triggerId,new GK(e,N,y,w))};
jw.prototype.Ay=function(e){this.Zg.delete(e.triggerId)};Hu.prototype.dD=function(e){return e.kind==="AD_PLACEMENT_KIND_START"};g.b(OU,g.x);g.J=OU.prototype;g.J.logEvent=function(e){this.ZU(e)};
g.J.S1=function(e,N,y){this.ZU(e,void 0,void 0,void 0,N,void 0,void 0,void 0,N.adSlotLoggingData,void 0,void 0,y)};
g.J.A1=function(e,N,y,w){this.ZU(e,void 0,void 0,void 0,N,y?y:void 0,void 0,void 0,N.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,void 0,w)};
g.J.L5=function(e,N,y,w){R_(this.wP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"trigger:",y,"slot:",N,"layout:",w);rX(this.J.get())&&this.ZU(e,void 0,void 0,void 0,N,w?w:void 0,void 0,y,N.adSlotLoggingData,w?w.adLayoutLoggingData:void 0)};
g.J.RR=function(e,N,y,w,E){this.ZU(e,N,y,w,void 0,void 0,void 0,void 0,void 0,void 0,void 0,E)};
g.J.a8=function(e,N,y,w){this.ZU("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,y,w,void 0,void 0,y.adSlotLoggingData,w?w.adLayoutLoggingData:void 0,{errorType:e,errorMessage:N})};
g.J.ZU=function(e,N,y,w,E,A,T,p,C,r,Y,M){var l=this;M=M===void 0?0:M;R_(this.wP.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+e,"slot:",E,"layout:",A,"ping:",T,"Opportunity:",{opportunityType:N,associatedSlotId:y,CXh:w,L_g:p,adSlotLoggingData:C,adLayoutLoggingData:r});try{var F=function(){if(!l.wP.get().C.X().T("html5_disable_client_tmp_logs")&&e!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){e||YN("Empty PACF event type",E,A);var S=rX(l.J.get()),k={eventType:e,eventOrder:++l.eventCount},X={};
E&&(X.slotData=Cn(S,E));A&&(X.layoutData=ogJ(S,A));T&&(X.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:T.J.serializedAdPingMetadata,pingIndex:T.index});p&&(X.triggerData=pn(p.trigger,p.category));N&&(X.opportunityData=bQ3(S,N,y,w));S={organicPlaybackContext:{contentCpn:Mb(l.Hk.get(),1).clientPlaybackNonce}};S.organicPlaybackContext.isLivePlayback=Mb(l.Hk.get(),1).Cx;var d;S.organicPlaybackContext.isMdxPlayback=(d=Mb(l.Hk.get(),1))==null?void 0:d.isMdxPlayback;
var v;if((v=Mb(l.Hk.get(),1))==null?0:v.daiEnabled)S.organicPlaybackContext.isDaiContent=!0;var V;if(d=(V=Mb(l.Hk.get(),2))==null?void 0:V.clientPlaybackNonce)S.adVideoPlaybackContext={adVideoCpn:d};S&&(X.externalContext=S);k.adClientData=X;C&&(k.serializedSlotAdServingData=C.serializedSlotAdServingDataEntry);r&&(k.serializedAdServingData=r.serializedAdServingDataEntry);Y&&(k.errorInfo=Y);g.$$("adsClientStateChange",{adsClientEvent:k})}};
M&&M>0?g.e1(g.yK(),function(){return F()},M):F()}catch(S){R_(this.wP.get(),"html5_log_pacf_logging_errors")&&g.e1(g.yK(),function(){YN(S instanceof Error?S:String(S),E,A,{pacf_message:"exception during pacf logging"})})}};var $gw=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.b(Rc,OU);g.J=Rc.prototype;
g.J.S1=function(e,N,y){OU.prototype.S1.call(this,e,N,y);k6(this.wP.get())&&(y={},this.context.OP.g4("pacf",(y.et=e,y.st=N.slotType,y.si=N.slotId,y)))};
g.J.A1=function(e,N,y,w){var E=$gw.has(e);OU.prototype.A1.call(this,e,N,y,w);k6(this.wP.get(),E)&&(w={},this.context.OP.g4("pacf",(w.et=e,w.st=N.slotType,w.si=N.slotId,w.lt=y==null?void 0:y.layoutType,w.li=y==null?void 0:y.layoutId,w.p_ac=y==null?void 0:y.layoutId,w)))};
g.J.RR=function(e,N,y,w,E){OU.prototype.RR.call(this,e,N,y,w,E);k6(this.wP.get())&&(y={},this.context.OP.g4("pacf",(y.et=e,y.ot=N,y.ss=w==null?void 0:w.length,y)))};
g.J.L5=function(e,N,y,w){OU.prototype.L5.call(this,e,N,y,w);if(k6(this.wP.get())){var E={};this.context.OP.g4("pacf",(E.et=e,E.tt=y.trigger.triggerType,E.tc=y.category,E.st=N.slotType,E.si=N.slotId,E.lt=w==null?void 0:w.layoutType,E.li=w==null?void 0:w.layoutId,E.p_ac=w==null?void 0:w.layoutId,E))}};
g.J.a8=function(e,N,y,w){OU.prototype.a8.call(this,e,N,y,w);if(k6(this.wP.get(),!0)){var E={};this.context.OP.g4("perror",(E.ert=e,E.erm=N,E.st=y.slotType,E.si=y.slotId,E.lt=w==null?void 0:w.layoutType,E.li=w==null?void 0:w.layoutId,E.p_ac=w==null?void 0:w.layoutId,E))}};
g.J.ZU=function(e,N,y,w,E,A,T,p,C,r,Y){if(g.I_(this.wP.get().C.X())){var M=this.wP.get();M=g.Y2(M.C.X().experiments,"H5_async_logging_delay_ms")}else M=void 0;OU.prototype.ZU.call(this,e,N,y,w,E,A,T,p,C,r,Y,M)};GB.prototype.clear=function(){this.J.clear()};sU.prototype.resolve=function(e){UU(this,e)};
sU.prototype.reject=function(e){Ls(this,e)};
sU.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}};
sU.prototype.wait=function(){var e=this;return function y(){return MM_(y,function(w){if(w.J==1)return g.kJ(w,2),g.D(w,{jk:e},4);if(w.J!=2)return w.return(w.N);g.P5(w);return g.d_(w,0)})}()};
var A__=Hm(function(e){return ac(e)?e instanceof sU:!1});var pA=window.tgh||"en";YB.prototype.JE=function(e){this.client=e};
YB.prototype.J=function(){this.clear();this.csn=g.It()};
YB.prototype.clear=function(){this.K.clear();this.N.clear();this.j.clear();this.csn=null};lm.prototype.JE=function(e){g.NR(Mc().JE).bind(Mc())(e)};
lm.prototype.clear=function(){g.NR(Mc().clear).bind(Mc())()};g.J=FB.prototype;g.J.JE=function(e){this.client=e};
g.J.oW=function(e,N){var y=this;N=N===void 0?{}:N;g.NR(function(){var w,E,A,T=((w=g.m(e==null?void 0:e.commandMetadata,g.bW))==null?void 0:w.rootVe)||((E=g.m(e==null?void 0:e.commandMetadata,zXF))==null?void 0:(A=E.screenVisualElement)==null?void 0:A.uiType);if(T){w=g.m(e==null?void 0:e.commandMetadata,RX5);if(w==null?0:w.parentTrackingParams){var p=g.XV(w.parentTrackingParams);if(w.parentCsn)var C=w.parentCsn}else N.clickedVisualElement?p=N.clickedVisualElement:e.clickTrackingParams&&(p=g.XV(e.clickTrackingParams));
a:{w=g.m(e,g.m0);E=g.m(e,nw5);if(w){if(E=ssP(w,"VIDEO")){w={token:E,videoId:w.videoId};break a}}else if(E&&(w=ssP(E,"PLAYLIST"))){w={token:w,playlistId:E.playlistId};break a}w=void 0}N=Object.assign({},{cttAuthInfo:w,parentCsn:C},N);if(g.Xj("expectation_logging")){var r;N.loggingExpectations=((r=g.m(e==null?void 0:e.commandMetadata,zXF))==null?void 0:r.loggingExpectations)||void 0}ox(y,T,p,N)}else g.uA(new g.Gh("Error: Trying to create a new screen without a rootVeType",e))})()};
g.J.clickCommand=function(e,N,y){e=e.clickTrackingParams;y=y===void 0?0:y;e?(y=g.It(y===void 0?0:y))?(AgP(this.client,y,g.XV(e),N),N=!0):N=!1:N=!1;return N};
g.J.stateChanged=function(e,N,y){this.visualElementStateChanged(g.XV(e),N,y===void 0?0:y)};
g.J.visualElementStateChanged=function(e,N,y){y=y===void 0?0:y;y===0&&this.N.has(y)?this.U.push([e,N]):waF(this,e,N,y)};kB.prototype.fetch=function(e,N,y){var w=this,E=TX5(e,N,y);return new Promise(function(A,T){function p(){if(y==null?0:y.KI)try{var r=w.handleResponse(e,E.status,E.response,y);A(r)}catch(Y){T(Y)}else A(w.handleResponse(e,E.status,E.response,y))}
E.onerror=p;E.onload=p;var C;E.send((C=N.body)!=null?C:null)})};
kB.prototype.handleResponse=function(e,N,y,w){y=y.replace(")]}'","");try{var E=JSON.parse(y)}catch(A){g.uA(new g.Gh("JSON parsing failed after XHR fetch",e,N,y));if((w==null?0:w.KI)&&y)throw new g.ye(1,"JSON parsing failed after XHR fetch");E={}}N!==200&&(g.uA(new g.Gh("XHR API fetch failed",e,N,y)),E=Object.assign({},E,{errorMetadata:{status:N}}));return E};B1.getInstance=function(){var e=g.nM("ytglobal.storage_");e||(e=new B1,g.jM("ytglobal.storage_",e));return e};
B1.prototype.estimate=function(){var e,N,y;return g.f(function(w){e=navigator;return((N=e.storage)==null?0:N.estimate)?w.return(e.storage.estimate()):((y=e.webkitTemporaryStorage)==null?0:y.queryUsageAndQuota)?w.return(J6_()):w.return()})};
g.jM("ytglobal.storageClass_",B1);Cl.prototype.iR=function(e){this.handleError(e)};
Cl.prototype.logEvent=function(e,N){switch(e){case "IDB_DATA_CORRUPTED":g.Xj("idb_data_corrupted_killswitch")||this.J("idbDataCorrupted",N);break;case "IDB_UNEXPECTEDLY_CLOSED":this.J("idbUnexpectedlyClosed",N);break;case "IS_SUPPORTED_COMPLETED":g.Xj("idb_is_supported_completed_killswitch")||this.J("idbIsSupportedCompleted",N);break;case "QUOTA_EXCEEDED":CF5(this,N);break;case "TRANSACTION_ENDED":this.K&&Math.random()<=.1&&this.J("idbTransactionEnded",N);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":e=
Object.assign({},N,{hasWindowUnloaded:this.N}),this.J("idbTransactionAborted",e)}};var mg={},KzP=g.yJ("yt-player-local-media",{Ed:(mg.index={Bs:2},mg.media={Bs:2},mg.captions={Bs:5},mg),shared:!1,upgrade:function(e,N){N(2)&&(g.g0(e,"index"),g.g0(e,"media"));N(5)&&g.g0(e,"captions");N(6)&&(VK(e,"metadata"),VK(e,"playerdata"))},
version:5});var Yr5={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},Hj;a:{var KF=g.zw();KF=KF.toLowerCase();if(g.B_(KF,"android")){var M4f=KF.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(M4f){var ldw=parseFloat(M4f[1]);if(ldw<100){Hj=ldw;break a}}var FCM=KF.match("("+Object.keys(Yr5).join("|")+")");Hj=FCM?Yr5[FCM[0]]:0}else Hj=void 0}var Xn=Hj,Bg=Xn>=0;var WL_=window;var r69=rR(function(){var e,N;return(N=(e=window).matchMedia)==null?void 0:N.call(e,"(prefers-reduced-motion: reduce)").matches});var P1;g.XB=new zj;P1=0;var dQ={nU:function(e,N){e.splice(0,N)},
Te:function(e,N){var y=e[0];e[0]=e[N%e.length];e[N%e.length]=y},
gh:function(e){e.reverse()}};var Av0=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var QY=bnJ()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Um?!0:!1;var mb5={y1h:"adunit",ejt:"detailpage",Jol:"editpage",kxh:"embedded",oI9:"leanback",U3h:"previewpage",eDZ:"profilepage",F5:"unplugged",nKg:"playlistoverview",T2P:"sponsorshipsoffer",cgh:"shortspage",m2g:"handlesclaiming",pcP:"immersivelivepage",nBq:"creatormusic",FWk:"immersivelivepreviewpage",A1l:"admintoolyurt",zM1:"shortsaudiopivot",HjW:"consumption"};var Wj,Srf,ib;Wj={};g.t$=(Wj.STOP_EVENT_PROPAGATION="html5-stop-propagation",Wj.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Wj.IV_DRAWER_OPEN="ytp-iv-drawer-open",Wj.MAIN_VIDEO="html5-main-video",Wj.VIDEO_CONTAINER="html5-video-container",Wj.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Wj.HOUSE_BRAND="house-brand",Wj);Srf={};ib=(Srf.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",Srf.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",Srf);var dx3={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var iv1={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},DGF={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"},yJF={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var reF={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.W1.prototype.getLanguageInfo=function(){return this.Vl};
g.W1.prototype.getXtags=function(){if(!this.xtags){var e=this.id.split(";");e.length>1&&(this.xtags=e[1])}return this.xtags};
g.W1.prototype.toString=function(){return this.Vl.name};
g.W1.prototype.getLanguageInfo=g.W1.prototype.getLanguageInfo;Oj.prototype.Bw=function(e){return this.N===e.N&&this.J===e.J&&this.K===e.K&&this.reason===e.reason&&(!Gm||this.JM===e.JM)};
Oj.prototype.isLocked=function(){return this.K&&!!this.N&&this.N===this.J};
Oj.prototype.compose=function(e){if(e.K&&Uj(e))return f3;if(e.K||Uj(this))return e;if(this.K||Uj(e))return this;var N=this.N&&e.N?Math.max(this.N,e.N):this.N||e.N,y=this.J&&e.J?Math.min(this.J,e.J):this.J||e.J;N=Math.min(N,y);var w=0;Gm&&(w=this.JM!==0&&e.JM!==0?Math.min(this.JM,e.JM):this.JM===0?e.JM:this.JM);return Gm&&N===this.N&&y===this.J&&w===this.JM||!Gm&&N===this.N&&y===this.J?this:Gm?new Oj(N,y,!1,y===this.J&&w===this.JM?this.reason:e.reason,w):new Oj(N,y,!1,y===this.J?this.reason:e.reason)};
Oj.prototype.j=function(e){return!e.video||Gm&&this.JM!==0&&this.JM<e.JM?!1:VO_(this,e.video.quality)};
var ob_=g.Rx("auto","hd1080",!1,"l"),OXJ=g.Rx("auto","large",!1,"l"),f3=g.Rx("auto","auto",!1,"p"),Gm=!1;ed.prototype.Sg=function(e){e=e||f3;for(var N=g.CG(this.videoInfos,function(T){return e.j(T)}),y=[],w={},E=0;E<N.length;E++){var A=N[E].video;
w[A.quality]||(y.push(A),w[A.quality]=!0)}return y};
ed.prototype.ME=function(e){e=e||f3;return g.CG(this.videoInfos,function(N){return e.j(N)})};
ed.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var UGP=new Set(["356"]);g.b(Na,g.x);Na.prototype.fh=function(){g.x.prototype.fh.call(this)};g.YE.prototype.set=function(e,N){this.J[e]!==N&&(this.J[e]=N,this.url="")};
g.YE.prototype.get=function(e){Ma(this);return this.J[e]||null};
g.YE.prototype.nC=function(){this.url||(this.url=yGP(this));return this.url};
g.YE.prototype.clone=function(){var e=new g.YE(this.N,this.j);e.scheme=this.scheme;e.path=this.path;e.K=this.K;e.J=g.DA(this.J);e.url=this.url;return e};
var Np0=[ffM];g.J=g.c$.prototype;g.J.Co=function(e){this.segments.push(e)};
g.J.VI=function(e){return!!this.o8(e)};
g.J.getDuration=function(e){return(e=this.o8(e))?e.duration:0};
g.J.zC=function(e){return this.getDuration(e)};
g.J.Mz=function(){return 0};
g.J.Jx=function(){return this.segments.length?this.segments[0].Ch:-1};
g.J.OY=function(e){return(e=this.o8(e))?e.ingestionTime:NaN};
g.J.vY=function(){return this.segments.length?this.segments[this.segments.length-1].Ch:-1};
g.J.xf=function(e){return this.vY()===e&&!this.N&&e>=0};
g.J.f9=function(){var e=this.segments[this.segments.length-1];return e?e.endTime:NaN};
g.J.Ti=function(){return this.segments[0].startTime};
g.J.Tz=function(){return this.segments.length};
g.J.mN=function(){return 0};
g.J.zI=function(e){return(e=this.uw(e))?e.Ch:-1};
g.J.tK=function(e){return(e=this.o8(e))?e.sourceURL:""};
g.J.getStartTime=function(e){return(e=this.o8(e))?e.startTime:0};
g.J.vU=function(e){return this.getStartTime(e)+this.getDuration(e)};
g.J.jP=N3(1);g.J.isLoaded=function(){return this.segments.length>0};
g.J.o8=function(e){if(this.J&&this.J.Ch===e)return this.J;e=g.T7(this.segments,new hi(e,0,0,0,""),function(N,y){return N.Ch-y.Ch});
return this.J=e>=0?this.segments[e]:null};
g.J.uw=function(e){if(this.J&&this.J.startTime<=e&&e<this.J.startTime+this.J.duration)return this.J;e=g.T7(this.segments,{startTime:e},function(N,y){return N.startTime-y.startTime});
return this.J=e>=0?this.segments[e]:this.segments[Math.max(0,-e-2)]};
g.J.append=function(e){if(e.length)if(e=g.eE(e),this.segments.length){var N=this.segments.length?g.Kq(this.segments).endTime:0,y=e[0].Ch-this.vY();y>1&&sPJ(this.segments);for(y=y>0?0:-y+1;y<e.length;y++){var w=e[y];w.startTime=N;w.endTime=w.startTime+w.duration;N+=e[y].duration;this.segments.push(e[y])}}else this.segments=e};
g.J.rd=function(){return 0};kE.prototype.skip=function(e){this.J+=e};JGE.prototype.YX=function(){return new Uint8Array(this.data.buffer)};var OO={},bmF=(OO.predictStart="predictStart",OO.start="start",OO["continue"]="continue",OO.stop="stop",OO),p35={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};gD.prototype.Y$=function(){return!!(this.data["Stitched-Video-Id"]||this.data["Stitched-Video-Cpn"]||this.data["Stitched-Video-Duration-Us"]||this.data["Stitched-Video-Start-Frame-Index"]||this.data["Serialized-State"]||this.data["Is-Ad-Break-Finished"])};
gD.prototype.toString=function(){for(var e="",N=g.c(Object.keys(this.data)),y=N.next();!y.done;y=N.next())y=y.value,e+=y+":"+this.data[y]+";";return e};K_.prototype.qk=function(){var e=this.pos;this.pos=0;var N=!1;try{GD(this,440786851)&&(this.pos=0,GD(this,408125543)&&(N=!0))}catch(y){if(y instanceof RangeError)this.pos=0,N=!1,g.uA(y);else throw y;}this.pos=e;return N};T4.prototype.set=function(e,N){this.tA.get(e);this.J[e]=N;this.url=""};
T4.prototype.get=function(e){return this.J[e]||this.tA.get(e)};
T4.prototype.nC=function(){this.url||(this.url=idM(this));return this.url};$a.prototype.q2=function(e,N){return e.Xz?this.U?this.Z=!0:this.Z=g6M(this,e,N):g6M(this,e,N)};
$a.prototype.JK=function(e){return this.K.get(e)};
$a.prototype.Xo=function(e,N){e.tA===this.J&&(this.J=Jd(e,N));e.tA===this.j&&(this.j=Jd(e,N))};
$a.prototype.Td=function(){return this.J!==this.j&&!this.Z};oi.prototype.Yz=function(){return!!this.J&&this.index.isLoaded()};
oi.prototype.hw=function(){return!1};
oi.prototype.Hb=function(e){return[e]};
oi.prototype.y5=function(e){return[e]};bH.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};g.J=Bx.prototype;g.J.eY=function(){return this.j&&this.J.index.xf(this.Ch)};
g.J.isEncrypted=function(){return this.J.info.isEncrypted()};
g.J.Bw=function(e){return!(!e||e.J!==this.J||e.type!==this.type||(this.range&&e.range?e.range.start!==this.range.start||e.range.end!==this.range.end:e.range!==this.range)||e.Ch!==this.Ch||e.N!==this.N||e.K!==this.K)};
g.J.gx=function(){return!!this.J.info.video};
g.J.O2=function(){var e=vx(this),N="";g.oB(e,function(y,w){N+=w+"_"+y+"_"});
return N.slice(0,-1)};iH.prototype.zz=function(){return this.J?this.J.nC():""};
iH.prototype.isDecorated=function(){return!!(this.J||this.j&&this.j.Ag)};
iH.prototype.UT=function(){return Xs(this.QB[0])};
iH.prototype.Xo=function(e,N){this.yl.Xo(e,N);if(this.J){this.J=Jd(e,N);N=g.c(["acpns","cpn","daistate","skipsq"]);for(var y=N.next();!y.done;y=N.next())this.J.set(y.value,null)}this.requestId=e.get("req_id")};g.b(f1,oi);g.J=f1.prototype;g.J.I8=function(){return!1};
g.J.SJ=function(){return!0};
g.J.by=function(){return!1};
g.J.hw=function(){return!this.L};
g.J.p_=function(){return new iH([new Bx(1,this,this.initRange,"getMetadataRequestInfo")],this.L)};
g.J.rh=function(){return null};
g.J.oF=function(e){this.L2(e);return this.SJ()&&e.K&&!e.j?new iH([new Bx(e.type,e.J,e.range,"liveGetNextRequestInfoBySegment",e.Ch,e.startTime,e.duration,e.N+e.K,NaN,!0)],this.index.tK(e.Ch)):this.Tn(Ii(e),!1)};
g.J.Od=function(e,N){N=N===void 0?!1:N;e=this.index.zI(e);N&&(e=Math.min(this.index.vY(),e+1));return this.Tn(e,!0)};
g.J.Gm=function(e){Ri(e)};
g.J.L2=function(e){return e.K===0?!0:this.index.vY()>e.Ch&&this.index.Jx()<=e.Ch+1};
g.J.update=function(e,N,y){this.index.append(e);AGH(this.index,y);e=this.index;e.N=N;e.K="update"};
g.J.Yz=function(){return this.hw()?!0:oi.prototype.Yz.call(this)};
g.J.Tn=function(e,N){var y=this.index.tK(e),w=this.index.getStartTime(e),E=this.index.getDuration(e),A;N?E=A=0:A=this.info.JM>0?this.info.JM*E:1E3;return new iH([new Bx(3,this,void 0,"liveCreateRequestInfoForSegment",e,w,E,0,A,!N)],y)};
g.J.f1=function(){return this.hw()?0:this.initRange.length};
g.J.ix=function(){return!1};qZ.prototype.update=function(e){var N=void 0;this.N&&(N=this.N);var y=new qZ,w=Array.from(e.getElementsByTagName("S"));if(w.length){var E=+td(e,"timescale")||1,A=(+w[0].getAttribute("t")||0)/E,T=+td(e,"startNumber")||0;y.j=A;var p=N?N.startSecs+N.Vj:0,C=Date.parse(s29(td(e,"yt:segmentIngestTime")))/1E3;y.L=e.parentElement.tagName==="SegmentTemplate";y.L&&(y.G=td(e,"media"));e=N?T-N.Ch:1;y.Z=e>0?0:-e+1;e=g.c(w);for(w=e.next();!w.done;w=e.next()){w=w.value;for(var r=+w.getAttribute("d")/E,Y=(+w.getAttribute("yt:sid")||
0)/E,M=+w.getAttribute("r")||0,l=0;l<=M;l++)if(N&&T<=N.Ch)T++;else{var F=new U55(T,p,r,C+Y,A);y.J.push(F);var S=w;var k=E,X=F.startSecs;F=S.getAttribute("yt:cuepointTimeOffset");var d=S.getAttribute("yt:cuepointDuration");if(F&&d){F=Number(F);X=-F/k+X;k=Number(d)/k;d=S.getAttribute("yt:cuepointContext")||null;var v=S.getAttribute("yt:cuepointIdentifier")||"";S=S.getAttribute("yt:cuepointEvent")||"";S=new iN(X,k,d,v,bmF[S]||"unknown",F)}else S=null;S&&y.K.push(S);T++;p+=r;A+=r;C+=r+Y}}y.J.length&&
(y.N=g.Kq(y.J))}this.Z=y.Z;this.N=y.N||this.N;g.Nd(this.J,y.J);g.Nd(this.K,y.K);this.L=y.L;this.G=y.G;this.j===-1&&(this.j=y.getStreamTimeOffset())};
qZ.prototype.getStreamTimeOffset=function(){return this.j===-1?0:this.j};g.b(xa,g.c$);g.J=xa.prototype;g.J.Mz=function(){return this.eV};
g.J.VI=function(e,N){e=jl(this,e);return e>=0&&(N||!this.segments[e].pending)};
g.J.Jx=function(){return this.mA?this.segments.length?this.uw(this.Ti()).Ch:-1:g.c$.prototype.Jx.call(this)};
g.J.Ti=function(){if(this.Ta)return 0;if(!this.mA)return g.c$.prototype.Ti.call(this);if(!this.segments.length)return 0;var e=Math.max(g.Kq(this.segments).endTime-this.pI,0);return this.L$>0&&this.uw(e).Ch<this.L$?this.o8(this.L$).startTime:e};
g.J.f9=function(){if(this.Ym&&this.M3&&this.M3>0)return this.M3/1E3;if(!this.segments.length)return g.c$.prototype.f9.call(this);var e=this.vY();if(!this.mA||e<=this.segments[this.segments.length-1].Ch)e=this.segments[this.segments.length-1];else{var N=this.segments[this.segments.length-1];e=new hi(e,Math.max(0,N.startTime-(N.Ch-e)*this.eV),this.eV,0,"sq/"+e,void 0,void 0,!0)}return this.Ta?Math.min(this.pI,e.endTime):e.endTime};
g.J.Tz=function(){return this.mA?this.segments.length?this.vY()-this.Jx()+1:0:g.c$.prototype.Tz.call(this)};
g.J.vY=function(){var e=Math.min(this.ZK,Math.max(g.c$.prototype.vY.call(this),this.B2)),N=this.pI*1E3;N=this.M3>0&&this.M3<N;this.Ta&&this.pI>0&&this.B2>0&&!N&&(N=this.uw(this.pI))&&(e=Math.min(N.Ch-1,e));return e};
g.J.IX=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.J.Co=function(e){var N=jl(this,e.Ch);if(N>=0)this.segments[N]=e;else if(this.segments.splice(-(N+1),0,e),this.TR&&e.Ch%(300/this.eV)===0){var y=this.segments[0].Ch,w=Math.floor(this.TR/this.eV);e=e.Ch-w;N=-(N+1)-w;N>0&&e>y&&(this.segments=this.segments.slice(N))}};
g.J.Ms=function(){return this.B2};
g.J.xf=function(e){return Z$?!this.N&&e>=0&&this.vY()<=e:g.c$.prototype.xf.call(this,e)};
g.J.uw=function(e){if(!this.mA)return g.c$.prototype.uw.call(this,e);if(!this.segments.length)return null;var N=this.segments[this.segments.length-1];if(e<this.segments[0].startTime)N=Math.max(0,this.segments[0].Ch-Math.ceil((this.segments[0].startTime-e)/this.eV));else if(e>=N.endTime)N=N.Ch+Math.floor((e-N.endTime)/this.eV+1);else{N=JO(this.segments,function(w){return e<w.startTime?-1:e>=w.endTime?1:0});
if(N>=0)return this.segments[N];var y=-(N+1);N=this.segments[y-1];y=this.segments[y];N=Math.floor((e-N.endTime)/((y.startTime-N.endTime)/(y.Ch-N.Ch-1))+1)+N.Ch}return this.o8(N)};
g.J.o8=function(e){if(!this.mA)return g.c$.prototype.o8.call(this,e);if(!this.segments.length)return null;var N=jl(this,e);if(N>=0)return this.segments[N];var y=-(N+1);N=this.eV;if(y===0)var w=Math.max(0,this.segments[0].startTime-(this.segments[0].Ch-e)*N);else y===this.segments.length?(w=this.segments[this.segments.length-1],w=w.endTime+(e-w.Ch-1)*N):(w=this.segments[y-1],N=this.segments[y],N=(N.startTime-w.endTime)/(N.Ch-w.Ch-1),w=w.endTime+(e-w.Ch-1)*N);return new hi(e,w,N,0,"sq/"+e,void 0,void 0,
!0)};
var Z$=!1;g.b(n1,f1);g.J=n1.prototype;g.J.by=function(){return!0};
g.J.Yz=function(){return!0};
g.J.L2=function(e){return this.SJ()&&e.K&&!e.j||!e.J.index.xf(e.Ch)};
g.J.p_=function(){};
g.J.Od=function(e,N){return typeof e!=="number"||isFinite(e)?f1.prototype.Od.call(this,e,N===void 0?!1:N):new iH([new Bx(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.j1,void 0,this.j1*this.info.JM)],"")};
g.J.Tn=function(e,N){var y=y===void 0?!1:y;if(this.index.VI(e))return f1.prototype.Tn.call(this,e,N);var w=this.index.getStartTime(e),E=Math.round(this.j1*this.info.JM),A=this.j1;N&&(A=E=0);return new iH([new Bx(y?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",e,w,A,void 0,E,!N)],e>=0?"sq/"+e:"")};g.b(Qt,oi);g.J=Qt.prototype;g.J.I8=function(){return!1};
g.J.SJ=function(){return!1};
g.J.by=function(){return!1};
g.J.p_=function(){return new iH([new Bx(1,this,void 0,"otfInit")],this.L)};
g.J.rh=function(){return null};
g.J.oF=function(e){this.L2(e);return TO9(this,Ii(e),!1)};
g.J.Od=function(e,N){N=N===void 0?!1:N;e=this.index.zI(e);N&&(e=Math.min(this.index.vY(),e+1));return TO9(this,e,!0)};
g.J.Gm=function(e){e.info.type===1&&(this.J||(this.J=B8(e.J)),e.N&&e.N.uri==="http://youtube.com/streaming/otf/durations/112015"&&JXF(this,e.N))};
g.J.L2=function(e){return e.K===0?!0:this.index.vY()>e.Ch&&this.index.Jx()<=e.Ch+1};
g.J.f1=function(){return 0};
g.J.ix=function(){return!1};mv.prototype.iB=function(){return this.J.iB()};g.J=g.G4.prototype;g.J.VI=function(e){return e<=this.vY()};
g.J.mN=function(e){return this.offsets[e]};
g.J.getStartTime=function(e){return this.startTicks[e]/this.J};
g.J.vU=function(e){return this.getStartTime(e)+this.getDuration(e)};
g.J.jP=N3(0);g.J.OY=function(){return NaN};
g.J.getDuration=function(e){e=this.zC(e);return e>=0?e/this.J:-1};
g.J.zC=function(e){return e+1<this.count||this.N?this.startTicks[e+1]-this.startTicks[e]:-1};
g.J.Mz=function(){return 0};
g.J.Jx=function(){return 0};
g.J.vY=function(){return this.count-1};
g.J.xf=function(e){return this.vY()===e&&e>=0};
g.J.f9=function(){return this.N?this.startTicks[this.count]/this.J:NaN};
g.J.Ti=function(){return 0};
g.J.Tz=function(){return this.count};
g.J.tK=function(){return""};
g.J.zI=function(e){e=g.T7(this.startTicks.subarray(0,this.count),e*this.J);return e>=0?e:Math.max(0,-e-2)};
g.J.isLoaded=function(){return this.vY()>=0};
g.J.rd=function(e,N){if(e>=this.vY())return 0;var y=0;for(N=this.getStartTime(e)+N;e<this.vY()&&N>this.getStartTime(e);e++)y=Math.max(y,S31(this,e)/this.getDuration(e));return y};
g.J.resize=function(e){e+=2;var N=this.offsets;this.offsets=new Float64Array(e+1);var y=this.startTicks;this.startTicks=new Float64Array(e+1);for(e=0;e<this.count+1;e++)this.offsets[e]=N[e],this.startTicks[e]=y[e]};
g.J.cap=function(e,N){UM(this);this.N=!0;this.startTicks[this.count]=N;this.offsets[this.count]=e};g.b(L1,oi);g.J=L1.prototype;g.J.p_=function(e,N){var y=new Bx(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,N),w=[new Bx(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,N),y];this.info.contentLength>0&&e&&(y=y.range.end+1,e=Math.min(e,this.info.contentLength-y),e>0&&w.push(new Bx(4,this,cx(y,e),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,N)));return new iH(w)};
g.J.Gm=function(e){if(e.info.type===1){if(this.J)return;this.J=B8(e.J)}else if(e.info.type===2){if(this.L||this.index.vY()>=0)return;if(g.R2(this.info)){var N=this.index,y=e.iB();e=e.info.range.start;var w=g.ti(y,0,1936286840);y=o69(w);N.J=y.timescale;var E=y.Zh;N.offsets[0]=y.N4+e+w.size;N.startTicks[0]=E;N.N=!0;e=y.vx.length;for(w=0;w<e;w++){E=N;var A=y.IDh[w],T=y.vx[w];E.count++;UM(E);E.offsets[E.count]=E.offsets[E.count-1]+A;E.startTicks[E.count]=E.startTicks[E.count-1]+T}}else this.L=e.iB()}if(this.info.lm()&&
this.J&&this.L){y=new DataView(this.J.buffer);N=this.index;w=this.L;e=this.indexRange.end;E=new K_(y);y=E;E=y.pos;A={mz:1E6,Yu:1E9,duration:0,MI:0,KQ:0};if(GD(y,408125543))if(A.MI=Uf(y,!0),A.KQ=y.start+y.pos,GD(y,357149030)){for(T=Rh(y);!W$(T);){var p=Uf(T,!1);p===2807729?A.mz=sf(T):p===2807730?A.Yu=sf(T):p===17545?A.duration=el(T):ah(T)}y.pos=E;y=A}else y.pos=E,y=null;else y.pos=E,y=null;if(y!==null){N.J=y.Yu/y.mz;E=new K_(w);w=E;T=y.KQ;E=w.pos;A=[];if(GD(w,475249515)){for(p=Rh(w);GD(p,187);){var C=
Rh(p);if(GD(C,179)){var r=sf(C);if(GD(C,183)){C=Rh(C);for(var Y=T;GD(C,241);)Y=sf(C)+T;A.push({j8:Y,fY:r})}}}if(A.length>0&&e===A[0].j8)for(e=0;e<A.length;e++)A[e].j8+=1;w.pos=E;e=A}else w.pos=E,e=null;if(e!==null){e=g.c(e);for(w=e.next();!w.done;w=e.next())A=w.value,w=N,E=A.j8,A=A.fY,UM(w),w.offsets[w.count]=E,w.startTicks[w.count]=A,w.count++;N.cap(y.MI+y.KQ,y.duration)}}this.L=null}};
g.J.eS=function(e,N,y,w){for(var E=[],A=e;A<=this.index.vY();A++){var T=cx(this.index.mN(A),S31(this.index,A)),p=this.index.getStartTime(A),C=this.index.getDuration(A),r=Math.max(0,N-T.start),Y=Math.min(T.end+1,N+y)-(T.start+r);E.push(new Bx(3,this,T,"getRequestInfoForRange",A,p,C,r,Y,void 0,void 0,w));if(T.start+r+Y>=N+y)break}E.length||g.t0(new g.Gh("b189619593",""+e,""+N,""+y));return new iH(E)};
g.J.Hb=function(e){for(var N=this.y5(e.info),y=e.info.range.start+e.info.N,w=[],E=0;E<N.length;E++){var A=hC(e.J,N[E].range.start+N[E].N-y,N[E].K);w.push(new mv(N[E],A))}return w};
g.J.y5=function(e){for(var N=e.range.start+e.N,y=0;y<this.index.vY()&&N>=this.index.mN(y+1);)y++;return this.eS(y,N,e.K).QB};
g.J.L2=function(e){e.eY();return this.Yz()?!0:e.range.end+1<this.info.contentLength};
g.J.rh=function(e,N){this.L2(e);if(!this.Yz())return N=cx(e.range.end+1,N),N.end+1>this.info.contentLength&&(N=new bH(N.start,this.info.contentLength-1)),new iH([new Bx(4,e.J,N,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,e.clipId)]);e.type===4&&(e=this.y5(e),e=e[e.length-1]);var y=0,w=e.range.start+e.N+e.K;e.type===3&&(e.eY(),y=e.Ch,w===e.range.end+1&&(y+=1));return this.eS(y,w,N)};
g.J.oF=function(){return null};
g.J.Od=function(e,N,y){N=N===void 0?!1:N;e=this.index.zI(e);N&&(e=Math.min(this.index.vY(),e+1));return this.eS(e,this.index.mN(e),0,y)};
g.J.I8=function(){return!0};
g.J.SJ=function(){return!0};
g.J.by=function(){return!1};
g.J.f1=function(){return this.indexRange.length+this.initRange.length};
g.J.ix=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var RH={},fon=(RH.COLOR_PRIMARIES_BT709="bt709",RH.COLOR_PRIMARIES_BT2020="bt2020",RH.COLOR_PRIMARIES_UNKNOWN=null,RH.COLOR_PRIMARIES_UNSPECIFIED=null,RH),GA={},bh1=(GA.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",GA.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",GA.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",GA.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",GA.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,GA.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,GA);g.sM.prototype.getName=function(){return this.name};
g.sM.prototype.getId=function(){return this.id};
g.sM.prototype.getIsDefault=function(){return this.isDefault};
g.sM.prototype.toString=function(){return this.name};
g.sM.prototype.getName=g.sM.prototype.getName;g.sM.prototype.getId=g.sM.prototype.getId;g.sM.prototype.getIsDefault=g.sM.prototype.getIsDefault;var BO_=/action_display_post/;var XI5,NX,yY;g.b(wt,g.pT);g.J=wt.prototype;g.J.isLoading=function(){return this.state===1};
g.J.Q_=function(){return this.state===3};
g.J.i$P=function(e){var N=e.getElementsByTagName("Representation");if(e.getElementsByTagName("SegmentList").length>0||e.getElementsByTagName("SegmentTemplate").length>0){this.Cx=this.N=!0;this.timeline||(this.timeline=new ez9);EHH(this.timeline,e);this.publish("refresh");for(e=0;e<N.length;e++){var y=nHE(this,N[e]);if(!this.J[y.id]){var w=pC(uH(N[e],"BaseURL").textContent),E=uH(N[e],"Initialization"),A=td(E,"sourceURL");E=hd(td(E,"range"));this.J[y.id]=new f1(w,y,A,E)}y=this.J[y.id];w=td(N[e],"id",
"AdaptationSet");w=w!==""?w:td(N[e],"mimetype","AdaptationSet");A=this.timeline;A=A.K[y.info.id]||A.N[w]||A.J||null;w=A.J;!this.G&&A.getStreamTimeOffset()&&(this.G=A.getStreamTimeOffset());if(A.L){E=[];w=g.c(w);for(var T=w.next();!T.done;T=w.next()){T=T.value;var p=y.info.id,C=y.info.JM*8,r=T.Ch;var Y=T.startSecs;var M=A.G.split("$$");for(var l=0;l<M.length;l++)M[l]=M[l].replace("$RepresentationID$",p),M[l]=M[l].replace("$Number$",r.toString()),M[l]=M[l].replace("$Bandwidth$",C.toString()),M[l]=M[l].replace("$Time$",
Y.toString());E.push(new hi(T.Ch,T.startSecs,T.Vj,T.J,M.join("$"),null,T.N))}w=E}else{A=yh(uH(N[e],"SegmentList").getElementsByTagName("SegmentURL"),A.Z);E=[];for(T=0;T<A.length;T++){p=E;C=p.push;r=w[T];Y=void 0;l=A[T];M=l.getAttribute("media");if(l=l.getAttribute("mediaRange")){var F=l.split("-");F[1]&&Number(F[1])>=0?Y=hd(l):M=M+"?range="+l}C.call(p,new hi(r.Ch,r.startSecs,r.Vj,r.J,M,Y,r.N))}w=E}y.update(w,this.isLive,this.Wk)}AXE(this.timeline);return!0}this.duration=Lu1(td(e,"mediaPresentationDuration"));
a:{for(e=0;e<N.length;e++){A=N[e];y=nHE(this,A);w=pC(uH(A,"BaseURL").textContent);E=uH(A,"SegmentBase");A=hd(E.attributes.getNamedItem("indexRange").value);E=hd(E.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);y=new L1(w,y,E,A);if(!y){N=!1;break a}eI(this,y)}N=!0}return N};
g.J.refresh=function(){if(!this.isLoading()&&!this.Ss()){var e=g.Qb(this.sourceUrl,{start_seq:Wa9(this).toString()});m$F(this,e).On(function(){})}};
g.J.resume=function(){Q8E(this)};
g.J.ra=function(){if(this.isManifestless&&this.j&&rt(this))return rt(this);var e=this.J,N=!1,y=NaN,w=NaN,E;for(E in e){var A=e[E],T=A.index;T.isLoaded()&&!Ug(A.info)&&(A.j&&(N=!0),T=T.f9(),A.info.qG()&&(isNaN(y)||T<y)?y=T:A.info.gx()&&(isNaN(w)||T<w)&&(w=T))}return N||isNaN(w)?y:Math.min(y,w)};
g.J.Ti=function(){if(this.isManifestless){if($_(this))return $_(this);if(this.PY){var e=this.OY(this.ra());if(e&&(e-=this.PY,e>0))return this.ra()-e}}e=this.J;for(var N in e){var y=e[N].index;if(y.isLoaded()&&!Ug(e[N].info))return y.Ti()}return 0};
g.J.getStreamTimeOffset=function(){return this.G};
g.J.OY=function(e){for(var N in this.J){var y=this.J[N].index;if(y.isLoaded()){var w=y.zI(e),E=y.OY(w);if(E)return E+e-y.getStartTime(w)}}return NaN};
var oI=null,hfw,b2=!((hfw=navigator.mediaCapabilities)==null||!hfw.decodingInfo),j8J={commentary:1,alternate:2,dub:3,main:4};var hj=new Set,hm=new Map;BU.prototype.clone=function(e){return new BU(this.flavor,e,this.N,this.experiments)};
BU.prototype.N7=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
BU.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 cKX={},VY=(cKX.playready=["com.youtube.playready","com.microsoft.playready"],cKX.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],cKX),UO={},V5H=(UO.widevine="DRM_SYSTEM_WIDEVINE",UO.fairplay="DRM_SYSTEM_FAIRPLAY",UO.playready="DRM_SYSTEM_PLAYREADY",UO),LF={},ky0=(LF.widevine=1,LF.fairplay=2,LF.playready=3,LF);tm.prototype.jW=function(e,N){N=N===void 0?1:N;this.XA+=N;this.N+=e;e/=N;for(var y=0;y<fC.length&&!(e<fC[y]);++y)this.J[y]+=N};
tm.prototype.toString=function(){return""};
var fC=[20,100,500,2E3];g.J=y__.prototype;g.J.isActive=function(){return!0};
g.J.TQ=function(e,N){var y=this;if(N){var w={},E;for(E in N)w={V1:void 0,PD:void 0},N.hasOwnProperty(E)&&(w.V1=e.prototype[E],w.PD=N[E],e.prototype[E]=function(A){return function(){var T=g.iE.apply(0,arguments),p=(0,g.iC)();T=A.V1.apply(this,T);return u2(y,T,A.PD,p)}}(w))}};
g.J.Jw=function(e,N){if(N){var y=this,w={},E;for(E in N)w={Pt:void 0,X8:void 0},N.hasOwnProperty(E)&&(w.X8=e.prototype[E],w.Pt=N[E],e.prototype[E]=function(A){return function(){var T=g.iE.apply(0,arguments),p=this,C=(0,g.iC)(),r=A.X8.apply(p,T);return u2(y,r,null,C,function(Y){return A.Pt.apply(p,[Y].concat(T))})}}(w))}};
g.J.tU=function(e,N){var y=this;return function(){var w=g.iE.apply(0,arguments),E=(0,g.iC)();w=N.apply(null,w);return u2(y,w,e,E)}};
g.J.X0=function(){return new NYJ};
g.J.x$=function(e,N,y){y=y===void 0?1:y;N instanceof NYJ&&(wd1(this,e,(0,g.iC)()-N.startTimeMs,y),N.J=!0)};
g.J.le=function(e,N){var y=(0,g.iC)();N=N();return u2(this,N,e,y)};
g.J.A6=function(){var e={},N;for(N in this.J)if(this.J.hasOwnProperty(N)){var y=this.J[N];if(y.XA===0)y=null;else{for(var w=Math.ceil(y.XA).toFixed(0)+"."+y.N.toFixed(0),E=0;E<fC.length;++E)if(y.J[E]>0)w+="."+fC[E].toFixed(0)+"_"+y.J[E].toFixed(0);else break;y=w}y&&(e[N]=y)}this.J=new ey0;return e};
g.J.toString=function(){return""};g.J=TYn.prototype;g.J.isActive=function(){return!1};
g.J.TQ=function(){};
g.J.Jw=function(){};
g.J.tU=function(e,N){return N};
g.J.X0=function(){};
g.J.x$=function(){};
g.J.le=function(e,N){return N()};
g.J.A6=function(){return{}};
g.J.toString=function(){return""};var sO,BaM,XWT,Pc5,dgk,Idw,aH,gH,W0,Qb9,jI;sO=new TYn;BaM=!!+sa("html5_enable_profiler");XWT=!!+sa("html5_onesie_enable_profiler");Pc5=!!+sa("html5_offline_encryption_enable_profiler");dgk=!!+sa("html5_performance_impact_profiling_timer_ms");Idw=!!+sa("html5_drm_enable_profiler");aH=BaM||XWT||Pc5||dgk||Idw?new y__:sO;g.j8=BaM?aH:sO;gH=XWT?aH:sO;W0=Pc5?aH:sO;Qb9=dgk?aH:sO;jI=Idw?aH:sO;var x_;g.b(qX,g.x);
qX.prototype.initialize=function(e,N){for(var y=this,w=g.c(Object.keys(e)),E=w.next();!E.done;E=w.next()){E=g.c(e[E.value]);for(var A=E.next();!A.done;A=E.next())if(A=A.value,A.BG)for(var T=g.c(Object.keys(A.BG)),p=T.next();!p.done;p=T.next()){var C=p.value;p=C;C=VY[C];!C&&this.T("html5_enable_vp9_fairplay")&&p==="fairplay"&&(C=["com.youtube.fairplay.sbdl"]);if(C){C=g.c(C);for(var r=C.next();!r.done;r=C.next())r=r.value,this.K[r]=this.K[r]||new BU(p,r,A.BG[p],this.Ot.experiments),this.J[p]=this.J[p]||
{},this.J[p][A.mimeType]=!0}}}Ry()&&(this.K["com.youtube.fairplay"]=new BU("fairplay","com.youtube.fairplay","",this.Ot.experiments),this.T("html5_enable_vp9_fairplay")||(this.J.fairplay=this.J.fairplay||{},this.J.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.J.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.N=aoM(N,this.useCobaltWidevine,this.T("html5_enable_safari_fairplay"),this.T("html5_enable_vp9_fairplay")).filter(function(Y){return!!y.K[Y]})};
qX.prototype.T=function(e){return this.Ot.experiments.gP(e)};var vbV={"":"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"};MpP.prototype.T=function(e){return this.experiments.gP(e)};var K5M={RED:"red",FjB:"white"};lu1.prototype.gP=function(e){e=this.flags[e];JSON.stringify(e);return e==="true"};var oz5=Promise.resolve(),kp3=window.queueMicrotask?window.queueMicrotask.bind(window):bLF;HU.prototype.canPlayType=function(e,N){e=e.canPlayType?e.canPlayType(N):!1;Gv?e=e||zfV[N]:Xn===2.2?e=e||im5[N]:WL()&&(e=e||Dgw[N]);return!!e};
HU.prototype.isTypeSupported=function(e){return this.Ng?window.cast.receiver.platform.canDisplayType(e):Dr(e)};
var im5={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Dgw={"application/x-mpegURL":"maybe"},zfV={"application/x-mpegURL":"maybe"};g.b(GE,g.pT);GE.prototype.add=function(e,N){if(!this.items[e]&&(N.Ns||N.Cb||N.Ge)){var y=this.items,w=N;Object.isFrozen&&!Object.isFrozen(N)&&(w=Object.create(N),Object.freeze(w));y[e]=w;this.publish("vast_info_card_add",e)}};
GE.prototype.remove=function(e){var N=this.get(e);delete this.items[e];return N};
GE.prototype.get=function(e){return this.items[e]||null};
GE.prototype.isEmpty=function(){return g.v4(this.items)};g.b(Uh,g.kd);Uh.prototype.J=function(e,N){return g.kd.prototype.J.call(this,e,N)};
Uh.prototype.N=function(e,N,y){var w=this;return g.f(function(E){return E.J==1?g.D(E,g.kd.prototype.N.call(w,e,N,y),2):E.return(E.N)})};
g.b(LC,g.BM);LC.prototype.encrypt=function(e,N){return g.BM.prototype.encrypt.call(this,e,N)};var aI;eV.prototype.add=function(e){if(this.pos+20>this.data.length){var N=new Uint8Array(this.data.length*2);N.set(this.data);this.data=N}for(;e>31;)this.data[this.pos++]=aI[(e&31)+32],e>>=5;this.data[this.pos++]=aI[e|0]};
eV.prototype.jY=function(){return g.IR(this.data.subarray(0,this.pos))};
eV.prototype.reset=function(){this.pos=0};yy.prototype.Kj=function(e,N){var y=Math.pow(this.alpha,e);this.J=N*(1-y)+y*this.J;this.N+=e};
yy.prototype.AT=function(){return this.J/(1-Math.pow(this.alpha,this.N))};ww.prototype.Kj=function(e,N){for(var y=0;y<10;y++){var w=this.J[y],E=w+(y===0?e:0),A=1*Math.pow(2,y);if(E<=A)break;w=Math.min(1,(E-A*.5)/w);for(E=0;E<16;E++)A=this.values[y*16+E]*w,this.values[(y+1)*16+E]+=A,this.J[y+1]+=A,this.values[y*16+E]-=A,this.J[y]-=A}w=y=0;E=8192;N>8192&&(y=Math.ceil(Math.log(N/8192)/Math.log(2)),w=8192*Math.pow(2,y-1),E=w*2);y+2>16?this.values[15]+=e:(N=(N-w)/(E-w),this.values[y]+=e*(1-N),this.values[y+1]+=e*N);this.J[0]+=e};
ww.prototype.AT=function(){var e=e===void 0?this.N:e;var N=N===void 0?.02:N;var y=y===void 0?.98:y;for(var w=this.K,E=0;E<16;E++)w[E]=this.values[E];E=this.J[0];for(var A=1;A<11;A++){var T=this.J[A];if(T===0)break;for(var p=Math.min(1,(e-E)/T),C=0;C<16;C++)w[C]+=this.values[A*16+C]*p;E+=T*p;if(p<1)break}for(A=e=T=0;A<16;A++){p=T+w[A]/E;e+=Math.max(0,Math.min(p,y)-Math.max(T,N))*(A>0?8192*Math.pow(2,A-1):0);if(p>y)break;T=p}return e/(y-N)};EI.prototype.Kj=function(e,N){e=Math.min(this.J,Math.max(1,Math.round(e*this.resolution)));e+this.N>=this.J&&(this.K=!0);for(;e--;)this.values[this.N]=N,this.N=(this.N+1)%this.J;this.s0=!0};
EI.prototype.percentile=function(e){var N=this;if(!this.K&&this.N===0)return 0;this.s0&&(g.pf(this.L,function(y,w){return N.values[y]-N.values[w]}),this.s0=!1);
return this.values[this.L[Math.round(e*((this.K?this.J:this.N)-1))]]||0};
EI.prototype.AT=function(){return this.Z?(this.percentile(this.j-this.Z)+this.percentile(this.j)+this.percentile(this.j+this.Z))/3:this.percentile(this.j)};g.b(AR,g.x);AR.prototype.Bk=function(){var e;(e=this.Zl)==null||e.start();if(ld(this)&&this.policy.U){var N;(N=this.nX)==null||N.Jq()}};ulP.prototype.T=function(e){return this.experiments.gP(e)};g.b(ZL_,g.x);var HL9="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),UbF={enW:"caoe",vpB:"capsv",t_h:"cbrand",f0G:"cbr",bjP:"cbrver",zjl:"cchip",PRZ:"ccappver",Zjh:"ccrv",axB:"cfrmver",kgZ:"c",f3t:"cver",twG:"ctheme",KWs:"cplayer",KNh:"cmodel",x3Z:"cnetwork",d3B:"cos",RDB:"cosver",GqG:"cplatform",kNB:"crqyear"};g.b(fa,g.x);g.J=fa.prototype;g.J.T=function(e){return this.experiments.gP(e)};
g.J.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.J.getVideoUrl=function(e,N,y,w,E,A,T){N={list:N};y&&(E?N.time_continue=y:N.t=y);y=T?"music.youtube.com":g.ud(this);E=y==="www.youtube.com";!A&&w&&E?A="https://youtu.be/"+e:g.IK(this)?(A="https://"+y+"/fire",N.v=e):(A&&E?(A=this.protocol+"://"+y+"/shorts/"+e,w&&(N.feature="share")):(A=this.protocol+"://"+y+"/watch",N.v=e),Gv&&(e=xe_())&&(N.ebc=e));return g.Qb(A,N)};
g.J.getVideoEmbedCode=function(e,N,y,w){N="https://"+g.ud(this)+"/embed/"+N;w&&(N=g.Qb(N,{list:w}));w=y.width;y=y.height;N=UK(N);e=UK(e!=null?e:"YouTube video player");return'<iframe width="'+w+'" height="'+y+'" src="'+N+'" title="'+(e+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.J.supportsGaplessAudio=function(){return g.i$&&!Gv&&HL()>=74||g.DT&&g.SE(68)?!0:!1};
g.J.supportsGaplessShorts=function(){return!this.T("html5_enable_short_gapless")||this.Bk||g.k$?!1:!0};
g.J.getPlayerType=function(){return this.J.cplayer};
g.J.B9=function(){return this.sY};
var ec0=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Gps=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],sV5=[19];var es={},whM=(es["140"]={numChannels:2},es["141"]={numChannels:2},es["251"]={audioSampleRate:48E3,numChannels:2},es["774"]={audioSampleRate:48E3,numChannels:2},es["380"]={numChannels:6},es["328"]={numChannels:6},es["773"]={},es),NS={},Ny1=(NS["1"]='video/mp4; codecs="av01.0.08M.08"',NS["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',NS["9"]='video/webm; codecs="vp9"',NS["("]='video/webm; codecs="vp9"',NS["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',NS.h='video/mp4; codecs="avc1.64001e"',
NS.H='video/mp4; codecs="avc1.64001e"',NS.o='audio/webm; codecs="opus"',NS.a='audio/mp4; codecs="mp4a.40.2"',NS.ah='audio/mp4; codecs="mp4a.40.2"',NS.mac3='audio/mp4; codecs="ac-3"; channels=6',NS.meac3='audio/mp4; codecs="ec-3"; channels=6',NS.i='audio/mp4; codecs="iamf.001.001.Opus"',NS),y$={},ycJ=(y$["337"]={width:3840,height:2160,bitrate:3E7,fps:30},y$["336"]={width:2560,height:1440,bitrate:15E6,fps:30},y$["335"]={width:1920,height:1080,bitrate:75E5,fps:30},y$["702"]={width:7680,height:4320,bitrate:4E7,
fps:60},y$["701"]={width:3840,height:2160,bitrate:2E7,fps:60},y$["700"]={width:2560,height:1440,bitrate:1E7,fps:60},y$["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},y$["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},y$["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},y$["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},y$["409"]={width:1280,height:720,bitrate:1996E3,
fps:60,cryptoblockformat:"subsample"},y$["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},y$["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},y$["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},y$["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},y$["315"]={width:3840,height:2160,bitrate:2E7,fps:60},y$["308"]={width:2560,height:1440,bitrate:1E7,fps:60},y$["303"]=
{width:1920,height:1080,bitrate:5E6,fps:60},y$["302"]={width:1280,height:720,bitrate:25E5,fps:60},y$["299"]={width:1920,height:1080,bitrate:75E5,fps:60},y$["298"]={width:1280,height:720,bitrate:35E5,fps:60},y$["571"]={width:7680,height:4320,bitrate:3E7,fps:60},y$["401"]={width:3840,height:2160,bitrate:15E6,fps:60},y$["400"]={width:2560,height:1440,bitrate:75E5,fps:60},y$["399"]={width:1920,height:1080,bitrate:2E6,fps:60},y$["398"]={width:1280,height:720,bitrate:1E6,fps:60},y$["397"]={width:854,height:480,
bitrate:4E5,fps:30},y$["396"]={width:640,height:360,bitrate:25E4,fps:30},y$["787"]={width:1080,height:608,bitrate:2E5,fps:30},y$["788"]={width:1080,height:608,bitrate:4E5,fps:30},y$["313"]={width:3840,height:2160,bitrate:8E6,fps:30},y$["271"]={width:2560,height:1440,bitrate:4E6,fps:30},y$["248"]={width:1920,height:1080,bitrate:2E6,fps:30},y$["247"]={width:1280,height:720,bitrate:15E5,fps:30},y$["244"]={width:854,height:480,bitrate:52E4,fps:30},y$["243"]={width:640,height:360,bitrate:28E4,fps:30},
y$["137"]={width:1920,height:1080,bitrate:4E6,fps:30},y$["136"]={width:1280,height:720,bitrate:3E6,fps:30},y$["135"]={width:854,height:480,bitrate:1E6,fps:30},y$["385"]={width:1920,height:1080,bitrate:6503313,fps:60},y$["376"]={width:1280,height:720,bitrate:5706960,fps:60},y$["384"]={width:1280,height:720,bitrate:3660979,fps:60},y$["225"]={width:1280,height:720,bitrate:5805E3,fps:30},y$["224"]={width:1280,height:720,bitrate:453E4,fps:30},y$["145"]={width:1280,height:720,bitrate:2682052,fps:30},y$);g.J=sI.prototype;g.J.getInfo=function(){return this.J};
g.J.Eb=function(){return null};
g.J.a_=function(){var e=this.Eb();return e?(e=g.JE(e.yl),Number(e.expire)):NaN};
g.J.tj=function(){};
g.J.getHeight=function(){return this.J.video.height};Jcs.prototype.build=function(){rcJ(this);var e=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],N={};a:if(this.J)var y=this.J;else{y="";for(var w=g.c(this.K),E=w.next();!E.done;E=w.next())if(E=E.value,E.Vl){if(E.Vl.getIsDefault()){y=E.Vl.getId();break a}y||(y=E.Vl.getId())}}w=g.c(this.K);for(E=w.next();!E.done;E=w.next())if(E=E.value,this.Z||!E.Vl||E.Vl.getId()===y)N[E.itag]||(N[E.itag]=[]),N[E.itag].push(E);y=g.c(this.N);for(w=y.next();!w.done;w=y.next())if(w=w.value,E=N[w.J]){E=g.c(E);for(var A=E.next();!A.done;A=
E.next()){var T=e,p=T.push;A=A.value;var C="#EXT-X-MEDIA:TYPE=AUDIO,",r="YES",Y="audio";if(A.Vl){Y=A.Vl;var M=Y.getId().split(".")[0];M&&(C+='LANGUAGE="'+M+'",');(this.J?this.J===Y.getId():Y.getIsDefault())||(r="NO");Y=Y.getName()}M="";w!==null&&(M=w.itag.toString());M=ex(this,A.url,M);C=C+('NAME="'+Y+'",DEFAULT='+(r+',AUTOSELECT=YES,GROUP-ID="'))+(CRn(A,w)+'",URI="'+(M+'"'));p.call(T,C)}}y=g.c(this.L);for(w=y.next();!w.done;w=y.next())w=w.value,E=gb0,w=(T=w.Vl)?'#EXT-X-MEDIA:URI="'+ex(this,w.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+E+'",LANGUAGE="'+T.getId()+'",NAME="'+T.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,w&&e.push(w);y=this.L.length>0?gb0:void 0;w=g.c(this.N);for(E=w.next();!E.done;E=w.next())E=E.value,p=N[E.J],T=void 0,((T=p)==null?void 0:T.length)>0&&(T=E,p=p[0],p="#EXT-X-STREAM-INF:BANDWIDTH="+(T.bitrate+p.bitrate)+',CODECS="'+(T.codecs+","+p.codecs+'",RESOLUTION=')+(T.width+"x"+T.height+',AUDIO="')+(CRn(p,T)+'",')+(y?'SUBTITLES="'+y+'",':"")+"CLOSED-CAPTIONS=NONE",T.fps>1&&(p+=
",FRAME-RATE="+T.fps),T.kW&&(p+=",VIDEO-RANGE="+T.kW),e.push(p),e.push(ex(this,E.url,"")));return e.join("\n")};
var gb0="text";g.b(NO,sI);NO.prototype.a_=function(){return this.expiration};
NO.prototype.Eb=function(){if(!this.yl||this.yl.Ss()){var e=this.N.build();e="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(e);this.yl=new xH(e)}return this.yl};g.b(y3,sI);y3.prototype.Eb=function(){return new xH(this.N.nC())};
y3.prototype.tj=function(){this.N=oh(this.N)};g.b(w8,sI);w8.prototype.Eb=function(){return new xH(this.N)};var w7={},cc5=(w7.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",w7.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",w7.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",w7);g.J=g.En.prototype;g.J.getId=function(){return this.id};
g.J.getName=function(){return this.name};
g.J.isServable=function(){return this.J};
g.J.nC=function(){return this.url};
g.J.getXtags=function(){return this.xtags};
g.J.toString=function(){return this.languageCode+": "+g.A3(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.J.Bw=function(e){return e?this.toString()===e.toString():!1};
g.J.WG=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var dp0={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},IpP={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},vA0=/^(\d*)_((\d*)_?(\d*))$/;var itE={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Dps={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var E6={},V4M=(E6.ALWAYS=1,E6.BY_REQUEST=3,E6.UNKNOWN=void 0,E6),AB={},fdw=(AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",AB.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",AB);var PaE;
PaE=function(e){for(var N=Object.keys(e),y={},w=0;w<N.length;w++){var E=N[w];typeof e[E]==="function"&&(y[E]=e[E])}var A=Object.keys(y);try{deE(y)}catch(p){var T=p}return function(p,C){p=p===void 0?{}:p;if(T)throw T;for(var r=!1,Y={},M=0;M<A.length;M++){var l=A[M],F=p[l],S=(0,y[l])(F,C);if(typeof S==="undefined")throw p=C&&C.type,Error("When called with an action of type "+(p?'"'+String(p)+'"':"(unknown type)")+', the slice reducer for key "'+l+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');Y[l]=
S;r=r||S!==F}return(r=r||A.length!==Object.keys(p).length)?Y:p}}({entities:function(e,N){e=e===void 0?{}:e;
return qC_(e,N)}});
g.WH=new FI;YK.prototype.toString=function(){return this.type+this.id};g.l0.prototype.LN=function(e){e=e||"hqdefault.jpg";var N=this.D[e];if(N)return N;if(e==="sddefault.jpg"||e==="hq720.jpg"||e==="maxresdefault.jpg")return N;if(this.J)return q_(this.Ot,this.J,e)};
g.l0.prototype.ew=function(){return this.Ot.getVideoUrl(this.videoId,this.playlistId)};g.Fr.prototype.LN=function(e){e||(e="hqdefault.jpg");var N=this.D[e];return N?N:e==="pop1.jpg"||e==="pop2.jpg"||e==="sddefault.jpg"||e==="hq720.jpg"||e==="maxresdefault.jpg"?N:q_(this.Ot,this.videoId,e)};
g.Fr.prototype.ew=function(e){return this.watchUrl||this.Ot.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,e)};var b0=void 0;XXH("LMS",function(){return g.f(function(e){return e.return(g.h3())})});var Xr;Xr=0;g.apE=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;XXH("LMDB",function(){var e,N;return g.f(function(y){if(y.J==1)return g.D(y,g.e7(),2);if(y.J!=3){e=y.N;if(!e)throw g.X6("edd");return g.D(y,g.BH(e),3)}N=y.N;return y.return(g.fl(N,["index","media","captions"],{mode:"readonly",Lx:!0},function(w){var E={};w=[g.x$(w.objectStore("index"),{},function(A){E[A.cursor.key]=A.getValue();return g.j1(A)}),
I65(w.objectStore("media")),I65(w.objectStore("captions"))];return g.d0.all(w).then(function(A){var T=g.c(A);T.next();A=T.next().value;T=T.next().value;return{index:E,media:eQ0(A||[]),captions:T}})}))})});g.b(d8,g.pT);d8.prototype.fh=function(){this.J&&(this.J=this.J.onload=null);g.pT.prototype.fh.call(this)};g.J=g.i0.prototype;g.J.getHeight=function(){return this.height};
g.J.Zr=N3(2);g.J.VC=function(){return this.frameCount};
g.J.isDefault=function(){return this.K.indexOf("default")!==-1};
g.J.isLoaded=function(e){return this.loaded.has(e)};
g.J.nC=function(e){var N=this.j;N=N.replace("$N",this.K);N=N.replace("$L",this.level.toString());N=N.replace("$M",e.toString());this.signature&&(N=g.Qb(N,{sigh:this.signature}));return NG(N)};
g.J.P8=function(e){var N=this.VC()-1;return g.Ja(this.J===0?Math.round(e*this.frameCount/this.videoLength):Math.round(e*1E3/this.J),0,N)};
g.J.La=function(){return this.frameCount-1};
g.J.T_=function(){return this.frameCount?0:-1};
g.J.G1=function(){};g.b(DG,d8);DG.prototype.N=function(e,N){var y=[];e=e.split("|");for(var w=e[0],E=1;E<e.length;E++){var A=this.L(E-1,w,e[E],N);(this.G||A.getHeight()<180)&&y.push(A)}return y};
DG.prototype.L=function(e,N,y,w){return new g.i0(e,N,y,w)};g.b(g8,g.i0);g.J=g8.prototype;g.J.VC=function(){return this.N.Tz()};
g.J.P8=function(e){var N=this.rows*this.columns*this.L,y=this.N,w=y.vY();e=y.zI(e);return e>w-N?-1:e};
g.J.La=function(){return this.N.vY()};
g.J.T_=function(){return this.N.Jx()};
g.J.G1=function(e){this.N=e};g.b(V3,DG);V3.prototype.N=function(e,N){return DG.prototype.N.call(this,"$N|"+e,N)};
V3.prototype.L=function(e,N,y){return new g8(e,N,y,this.isLive)};var lCM=[],jx=new Set;g.b(g.t3,g.pT);g.J=g.t3.prototype;
g.J.setData=function(e){e=e||{};var N=e.errordetail;N!=null&&(this.errorDetail=N);var y=e.errorcode;y!=null?this.errorCode=y:e.status==="fail"&&(this.errorCode="auth");var w=e.reason;w!=null&&(this.errorReason=w);var E=e.subreason;E!=null&&(this.Qm=E);this.T("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=e.cpn||(this.Ot.B9()?"r"+g.PX(15):g.PX(16)));this.Kx=A2(this.Ot.Kx,e.livemonitor);Je1(this,e);var A=e.raw_player_response;if(A)this.xW=A;else{var T=e.player_response;
T&&(A=JSON.parse(T))}if(this.T("html5_enable_ssap_entity_id")){var p=e.cached_load;p&&(this.jg=A2(this.jg,p));if(!this.clientPlaybackNonce){var C=e.cpn;C?(this.kN("ssei","shdc"),this.clientPlaybackNonce=C):this.clientPlaybackNonce=this.Ot.B9()?"r"+g.PX(15):g.PX(16)}}A&&(this.playerResponse=A);if(this.playerResponse){var r=this.playerResponse.annotations;if(r)for(var Y=g.c(r),M=Y.next();!M.done;M=Y.next()){var l=M.value.playerAnnotationsUrlsRenderer;if(l){l.adsOnly&&(this.Kk=!0);var F=l.loadPolicy;
F&&(this.annotationsLoadPolicy=V4M[F]);var S=l.invideoUrl;S&&(this.Wk=NG(S));break}}var k=this.playerResponse.attestation;k&&VmM(this,k);var X=this.playerResponse.cotn;X&&(this.cotn=X);var d=this.playerResponse.heartbeatParams;if(d){EFs(this)&&(this.Ko=!0);var v=d.heartbeatToken;v&&(this.drmSessionId=d.drmSessionId||"",this.heartbeatToken=v,this.tD=Number(d.intervalMilliseconds),this.jd=Number(d.maxRetries),this.bA=!!d.softFailOnError,this.Z4=!!d.useInnertubeHeartbeatsForDrm,this.a7=!0);this.heartbeatServerData=
d.heartbeatServerData;var V;this.y_=!((V=d.heartbeatAttestationConfig)==null||!V.requiresAttestation)}var Z=this.playerResponse.messages;Z&&q_J(this,Z);var n=this.playerResponse.overlay;if(n){var R=n.playerControlsOverlayRenderer;if(R)if(xp9(this,R.controlBgHtml),R.mutedAutoplay){var O=g.m(R.mutedAutoplay,HqF);if(O&&O.endScreen){var E9=g.m(O.endScreen,KfX);E9&&E9.text&&(this.uF=g.SY(E9.text))}}else this.mutedAutoplay=!1}var Jn=this.playerResponse.playabilityStatus;if(Jn){var eM=Jn.backgroundability;
eM&&eM.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var H,a;if((H=Jn.offlineability)==null?0:(a=H.offlineabilityRenderer)==null?0:a.offlineable)this.offlineable=!0;var h=Jn.contextParams;h&&(this.contextParams=h);var K=Jn.pictureInPicture;K&&K.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Jn.playableInEmbed&&(this.allowEmbed=!0);var aP=Jn.ypcClickwrap;if(aP){var XF=aP.playerLegacyDesktopYpcClickwrapRenderer,Yw=aP.ypcRentalActivationRenderer;if(XF)this.m4=XF.durationMessage||
"",this.Pf=!0;else if(Yw){var v5=Yw.durationMessage;this.m4=v5?g.SY(v5):"";this.Pf=!0}}var U9=Jn.errorScreen;if(U9){if(U9.playerLegacyDesktopYpcTrailerRenderer){var yT=U9.playerLegacyDesktopYpcTrailerRenderer;this.R7=yT.trailerVideoId||"";var S0=U9.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var P=S0&&S0.ypcTrailerRenderer}else if(U9.playerLegacyDesktopYpcOfferRenderer)yT=U9.playerLegacyDesktopYpcOfferRenderer;else if(U9.ypcTrailerRenderer){P=U9.ypcTrailerRenderer;var I=P.fullVideoMessage;this.nm=
I?g.SY(I):"";var z,t;this.R7=((z=g.m(P,Wff))==null?void 0:(t=z.videoDetails)==null?void 0:t.videoId)||""}yT&&(this.Yb=yT.itemTitle||"",yT.itemUrl&&(this.yn=yT.itemUrl),yT.itemBuyUrl&&(this.U8=yT.itemBuyUrl),this.e0=yT.itemThumbnail||"",this.aC=yT.offerHeadline||"",this.Sy=yT.offerDescription||"",this.Hc=yT.offerId||"",this.zA=yT.offerButtonText||"",this.aT=yT.offerButtonFormattedText||null,this.d1=yT.overlayDurationMsec||NaN,this.nm=yT.fullVideoMessage||"",this.bb=!0);if(P){var q=g.m(P,Wff);if(q)this.Gg=
{raw_player_response:q};else{var y0=g.m(P,wm5);this.Gg=y0?AE(y0):null}this.bb=!0}}}var An=this.playerResponse.playbackTracking;if(An){var Ts=e,u=r8(An.googleRemarketingUrl);u&&(this.googleRemarketingUrl=u);var $J=r8(An.youtubeRemarketingUrl);$J&&(this.youtubeRemarketingUrl=$J);var SM={},CM=r8(An.ptrackingUrl);if(CM){var g_=$K(CM),MM=g_.oid;MM&&(this.iF=MM);var j0=g_.pltype;j0&&(this.d_=j0);var YR=g_.ptchn;YR&&(this.xT=YR);var H5=g_.ptk;H5&&(this.HJ=encodeURIComponent(H5));var Zy=g_.m;Zy&&(this.ir=
Zy)}var CB=r8(An.qoeUrl);if(CB){for(var VF=g.JE(CB),K9=g.c(Object.keys(VF)),YY=K9.next();!YY.done;YY=K9.next()){var ng=YY.value,xR=VF[ng];VF[ng]=Array.isArray(xR)?xR.join(","):xR}this.hH=VF;var Qp=VF.cat;Qp&&(this.T("html5_enable_qoe_cat_list")?this.Em=this.Em.concat(Qp.split(",")):this.Cl=Qp);var hL=VF.live;hL&&(this.Ob=hL);var MP=VF.drm_product;MP&&(this.ub=MP)}var gR=r8(An.videostatsPlaybackUrl);if(gR){var Mg=$K(gR),Vb=Mg.adformat;if(Vb){Ts.adformat=Vb;var VP=this.X(),fc=zc5(Vb,this.mL,VP.j,VP.G);
fc&&(this.adFormat=fc)}var iq=Mg.aqi;iq&&(Ts.ad_query_id=iq);var Lf=Mg.autoplay;Lf&&(this.IV=Lf=="1",this.rq=Lf=="1",WF(this,"vss"));var m_=Mg.autonav;m_&&(this.isAutonav=m_=="1");var wr=Mg.delay;wr&&(this.Y_=aA(wr));var Xb=Mg.ei;Xb&&(this.eventId=Xb);if(Mg.adcontext||Vb)this.IV=!0,WF(this,"ad");var my=Mg.feature;my&&(this.v2=my);var Md=Mg.list;Md&&(this.playlistId=Md);var M$=Mg.of;M$&&(this.cV=M$);var lU=Mg.osid;lU&&(this.osid=lU);var FQ=Mg.referrer;FQ&&(this.referrer=FQ);var wz=Mg.sdetail;wz&&(this.NB=
wz);var Ap=Mg.ssrt;Ap&&(this.jI=Ap=="1");var Eq=Mg.subscribed;Eq&&(this.subscribed=Eq=="1",this.G.subscribed=Eq);var Ay=Mg.uga;Ay&&(this.userGenderAge=Ay);var Si=Mg.upt;Si&&(this.lV=Si);var o8=Mg.vm;o8&&(this.videoMetadata=o8);SM.playback=Mg}var bU=r8(An.videostatsWatchtimeUrl);if(bU){var hX=$K(bU),cI=hX.ald;cI&&(this.J4=cI);SM.watchtime=hX}var kH=r8(An.atrUrl);if(kH){var zC=$K(kH);SM.atr=zC}var PB=r8(An.engageUrl);if(PB){var ik=$K(PB);SM.engage=ik}this.sR=SM;if(An.promotedPlaybackTracking){var W4=
An.promotedPlaybackTracking;W4.startUrls&&(this.dJ=W4.startUrls);W4.firstQuartileUrls&&(this.vV=W4.firstQuartileUrls);W4.secondQuartileUrls&&(this.Vw=W4.secondQuartileUrls);W4.thirdQuartileUrls&&(this.Qw=W4.thirdQuartileUrls);W4.completeUrls&&(this.Ub=W4.completeUrls);W4.engagedViewUrls&&(W4.engagedViewUrls.length>1&&g.uA(new g.Gh("There are more than one engaged_view_urls.")),this.vp=W4.engagedViewUrls[0])}}var TH=this.playerResponse.playerCueRanges;TH&&TH.length>0&&(this.cueRanges=TH);var BI=this.playerResponse.playerCueRangeSet;
BI&&g.n3(this,BI);a:{var Jy=this.playerResponse.adPlacements;if(Jy)for(var XQ=g.c(Jy),pV=XQ.next();!pV.done;pV=XQ.next()){var PI=void 0,dO=void 0,I8=(PI=pV.value.adPlacementRenderer)==null?void 0:(dO=PI.renderer)==null?void 0:dO.videoAdTrackingRenderer;if(I8){var vI=I8;break a}}vI=null}var CV=vI;An&&An.promotedPlaybackTracking&&CV&&g.uA(new g.Gh("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));CV&&(this.N8=!0);var z6=this.playerResponse.playerAds;if(z6)for(var Di=
e,iU=g.c(z6),rz=iU.next();!rz.done;rz=iU.next()){var Do=rz.value;if(Do){var gO=Do.playerLegacyDesktopWatchAdsRenderer;if(gO){var I1=gO.playerAdParams;if(I1){I1.autoplay=="1"&&(this.rq=this.IV=!0);this.kh=I1.encodedAdSafetyReason||null;I1.showContentThumbnail!==void 0&&(this.al=!!I1.showContentThumbnail);Di.enabled_engage_types=I1.enabledEngageTypes;break}}}}var kf=this.playerResponse.playerConfig;if(kf){var vB=kf.manifestlessWindowedLiveConfig;if(vB){var $i=Number(vB.minDvrSequence),ci=Number(vB.maxDvrSequence),
kp=Number(vB.minDvrMediaTimeMs),Bi=Number(vB.maxDvrMediaTimeMs),Vc=Number(vB.startWalltimeMs);$i&&(this.L$=$i);kp&&(this.aq=kp/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this)&&(this.gf=kp/1E3));ci&&(this.ZK=ci);Bi&&(this.pX=Bi/1E3,this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this)&&(this.zg=Bi/1E3));Vc&&(this.PY=Vc/1E3);($i||kp)&&(ci||Bi)&&(this.allowLiveDvr=this.isLivePlayback=this.Rq=!0,this.Ta=!1)}var Tu=kf.daiConfig;if(Tu){if(Tu.enableDai){this.As=
!0;var XG=Tu.enableServerStitchedDai;XG&&(this.enableServerStitchedDai=XG);var gd=Tu.enablePreroll;gd&&(this.enablePreroll=gd)}var fh;if(Tu.daiType==="DAI_TYPE_SS_DISABLED"||((fh=Tu.debugInfo)==null?0:fh.isDisabledUnpluggedChannel))this.Lu=!0;Tu.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.KA=!0)}var th=kf.audioConfig;if(th){var tX=th.loudnessDb;tX!=null&&(this.Fo=tX);var Yi=th.trackAbsoluteLoudnessLkfs;Yi!=null&&(this.F1=Yi);var MY=th.loudnessTargetLkfs;MY!=null&&(this.loudnessTargetLkfs=MY);th.audioMuted&&
(this.xI=!0);th.muteOnStart&&(this.Ly=!0);var Jp=th.loudnessNormalizationConfig;if(Jp){Jp.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Jp.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var uU=Jp.minimumLoudnessTargetLkfs;uU!=null&&(this.minimumLoudnessTargetLkfs=uU);var fX=Jp.maxStatefulTimeThresholdSec;fX!=null&&(this.maxStatefulTimeThresholdSec=fX)}this.T("web_player_audio_playback_from_audio_config")&&th.playAudioOnly&&(this.CN=!0)}var q$=kf.playbackEndConfig;
if(q$){var Hz=q$.endSeconds,LdE=q$.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(Hz&&(this.endSeconds=Hz),LdE&&(this.limitedPlaybackDurationInSeconds=LdE))}var Gb=kf.fairPlayConfig;if(Gb){var s$J=Gb.certificate;s$J&&(this.Ut=sh(s$J));var ai5=Number(Gb.keyRotationPeriodMs);ai5>0&&(this.c5=ai5);var eDs=Number(Gb.keyPrefetchMarginMs);eDs>0&&(this.zd=eDs)}var RR=kf.playbackStartConfig;if(RR){this.pz=Number(RR.startSeconds);var NZn=RR.liveUtcStartSeconds,yun=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>
0;NZn&&!yun&&(this.liveUtcStartSeconds=Number(NZn));var Exn=RR.startPosition;if(Exn){var wbF=Exn.utcTimeMillis;wbF&&!yun&&(this.liveUtcStartSeconds=Number(wbF)*.001);var ES0=Exn.streamTimeMillis;ES0&&(this.jN=Number(ES0)*.001)}this.progressBarStartPosition=RR.progressBarStartPosition;this.progressBarEndPosition=RR.progressBarEndPosition}else{var At5=kf.skippableSegmentsConfig;if(At5){var AuF=At5.introSkipDurationMs;AuF&&(this.Mk=Number(AuF)/1E3);var TZ0=At5.outroSkipDurationMs;TZ0&&(this.zM=Number(TZ0)/
1E3)}}var TGH=kf.skippableIntroConfig;if(TGH){var JuE=Number(TGH.startMs),pb5=Number(TGH.endMs);isNaN(JuE)||isNaN(pb5)||(this.YB=JuE,this.Js=pb5)}var Ch1=kf.streamSelectionConfig;Ch1&&(this.CC=Number(Ch1.maxBitrate));var ru3=kf.vrConfig;ru3&&(this.qc=ru3.partialSpherical=="1");var Je=kf.webDrmConfig;if(Je){Je.skipWidevine&&(this.oI=!0);var $U5=Je.widevineServiceCert;$U5&&(this.Tg=sh($U5));Je.useCobaltWidevine&&(this.useCobaltWidevine=!0);Je.startWithNoQualityConstraint&&(this.xX=!0)}var UH=kf.mediaCommonConfig;
if(UH){var Ue=UH.dynamicReadaheadConfig;if(Ue){this.maxReadAheadMediaTimeMs=Ue.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Ue.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=Ue.readAheadGrowthRateMs||NaN;var Yc1,MXF=UH==null?void 0:(Yc1=UH.mediaUstreamerRequestConfig)==null?void 0:Yc1.videoPlaybackUstreamerConfig;MXF&&(this.E_=sh(MXF));var Jt0=UH==null?void 0:UH.sabrContextUpdates;if(Jt0&&Jt0.length>0)for(var lqM=g.c(Jt0),pP0=lqM.next();!pP0.done;pP0=lqM.next()){var Fd=pP0.value;
if(Fd.type&&Fd.value){var K7M={type:Fd.type,scope:Fd.scope,value:sh(Fd.value)||void 0,sendByDefault:Fd.sendByDefault};this.sabrContextUpdates.set(Fd.type,K7M)}}}var F3s=UH.serverPlaybackStartConfig;F3s&&(this.serverPlaybackStartConfig=F3s);UH.useServerDrivenAbr&&(this.xw=!0);var ScM=UH.requestPipeliningConfig;ScM&&(this.requestPipeliningConfig=ScM)}var oSH=kf.inlinePlaybackConfig;oSH&&(this.Nw=!!oSH.showAudioControls);var Lr=kf.embeddedPlayerConfig;if(Lr){this.embeddedPlayerConfig=Lr;var Cx5=Lr.embeddedPlayerMode;
if(Cx5){var bDP=this.X();bDP.i9=Cx5;bDP.K=Cx5==="EMBEDDED_PLAYER_MODE_PFL"}var hD1=Lr.permissions;hD1&&(this.allowImaMonetization=!!hD1.allowImaMonetization)}var cuE=kf.ssapConfig;cuE&&(this.po=cuE.ssapPrerollEnabled||!1);var se=kf.webPlayerConfig;se&&(se.gatewayExperimentGroup&&(this.gatewayExperimentGroup=se.gatewayExperimentGroup),se.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var Lk=this.playerResponse.streamingData;if(Lk){var rtM=Lk.formats;if(rtM){for(var pN=[],k9n=g.c(rtM),$m1=k9n.next();!$m1.done;$m1=
k9n.next()){var YK0=$m1.value;pN.push(YK0.itag+"/"+YK0.width+"x"+YK0.height)}this.zT=pN.join(",");pN=[];for(var BZH=g.c(rtM),M$5=BZH.next();!M$5.done;M$5=BZH.next()){var CN=M$5.value,rj={itag:CN.itag,type:CN.mimeType,quality:CN.quality},XbH=CN.url;XbH&&(rj.url=XbH);var al=bN(CN),W70=al.Uv,Oi_=al.xm,RTF=al.s;al.jQ&&(rj.url=W70,rj.sp=Oi_,rj.s=RTF);pN.push(g.nY(rj))}this.Rx=pN.join(",")}var lsM=Lk.hlsFormats;if(lsM){var Ph0=kf||null,eD={};if(Ph0){var Fr5=Ph0.audioPairingConfig;if(Fr5&&Fr5.pairs)for(var dU_=
g.c(Fr5.pairs),SKP=dU_.next();!SKP.done;SKP=dU_.next()){var Iq0=SKP.value,oxH=Iq0.videoItag;eD[oxH]||(eD[oxH]=[]);eD[oxH].push(Iq0.audioItag)}}for(var vSM={},zD5=g.c(lsM),by5=zD5.next();!by5.done;by5=zD5.next()){var iDF=by5.value;vSM[iDF.itag]=iDF.bitrate}for(var DUn=[],gS9=g.c(lsM),hS1=gS9.next();!hS1.done;hS1=gS9.next()){var aC=hS1.value,Pe={itag:aC.itag,type:aC.mimeType,url:aC.url,bitrate:aC.bitrate,width:aC.width,height:aC.height,fps:aC.fps},No=aC.audioTrack;if(No){var VXJ=No.displayName;VXJ&&
(Pe.name=VXJ,Pe.audio_track_id=No.id,No.audioIsDefault&&(Pe.is_default="1"))}if(aC.drmFamilies){for(var fq9=[],tXM=g.c(aC.drmFamilies),ct5=tXM.next();!ct5.done;ct5=tXM.next())fq9.push(Am[ct5.value]);Pe.drm_families=fq9.join(",")}var yB=eD[aC.itag];if(yB&&yB.length){Pe.audio_itag=yB.join(",");var uTn=vSM[yB[0]];uTn&&(Pe.bitrate+=uTn)}var qcM=hz0(aC);qcM&&(Pe.eotf=qcM);aC.audioChannels&&(Pe.audio_channels=aC.audioChannels);DUn.push(g.nY(Pe))}this.hlsFormats=DUn.join(",")}var kJ3=Lk.licenseInfos;if(kJ3&&
kJ3.length>0){for(var ZD5={},xU0=g.c(kJ3),BG5=xU0.next();!BG5.done;BG5=xU0.next()){var jq5=BG5.value,nS_=jq5.drmFamily,Qq5=jq5.url;nS_&&Qq5&&(ZD5[Am[nS_]]=Qq5)}this.BG=ZD5}var mU9=Lk.drmParams;mU9&&(this.drmParams=mU9);var HDH=Lk.dashManifestUrl;HDH&&(this.U2=g.Qb(HDH,{cpn:this.clientPlaybackNonce}));var K3M=Lk.hlsManifestUrl;K3M&&(this.hlsvp=K3M);var W35=Lk.probeUrl;W35&&(this.probeUrl=NG(g.Qb(W35,{cpn:this.clientPlaybackNonce})));var ODE=Lk.serverAbrStreamingUrl;ODE&&(this.kX=new g.YE(ODE,!0))}var RD0=
this.playerResponse.trackingParams;RD0&&(this.i9=RD0);var sS=this.playerResponse.videoDetails;if(sS){var dm=e,XPn=sS.videoId;XPn&&(this.videoId=XPn,dm.video_id||(dm.video_id=XPn));var G99=sS.channelId;G99&&(this.G.uid=G99.substring(2));var PxF=sS.title;PxF&&(this.title=PxF,dm.title||(dm.title=PxF));var dmH=sS.lengthSeconds;dmH&&(this.lengthSeconds=Number(dmH),dm.length_seconds||(dm.length_seconds=dmH));var UUs=sS.keywords;UUs&&(this.keywords=Y1M(UUs));var Is_=sS.channelId;Is_&&(this.iI=Is_,dm.ucid||
(dm.ucid=Is_));var L3E=sS.viewCount;L3E&&(this.rawViewCount=Number(L3E));var vxE=sS.author;vxE&&(this.author=vxE,dm.author||(dm.author=vxE));var sqM=sS.shortDescription;sqM&&(this.shortDescription=sqM);var aqJ=sS.isCrawlable;aqJ&&(this.isListed=aqJ);var eFM=sS.musicVideoType;eFM&&(this.musicVideoType=eFM);var zSJ=sS.isLive;zSJ!=null&&(this.isLivePlayback=zSJ);if(zSJ||sS.isUpcoming)this.isPremiere=!sS.isLiveContent;var N3P=sS.thumbnail;N3P&&(this.D=C3(N3P));var yzs=sS.isExternallyHostedPodcast;yzs&&
(this.isExternallyHostedPodcast=yzs);var iy3=sS.viewerLivestreamJoinPosition;if(iy3==null?0:iy3.utcTimeMillis)this.YN=aA(iy3.utcTimeMillis);var w0s=kf||null,DmP=e;sS.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);sS.isUpcoming&&(this.isUpcoming=!0);if(sS.isPostLiveDvr){this.Ta=!0;var E8s=sS.latencyClass;E8s&&(this.latencyClass=fdw[E8s]||"UNKNOWN");sS.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var gxM=!1;if(this.Kx)this.allowLiveDvr=WU()?!0:ay&&a3<5?!1:!0,this.isLivePlayback=
!0;else if(sS.isLive){DmP.livestream="1";this.allowLiveDvr=sS.isLiveDvrEnabled?WU()?!0:ay&&a3<5?!1:!0:!1;this.partnerId=27;sS.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var AzF=sS.latencyClass;AzF&&(this.latencyClass=fdw[AzF]||"UNKNOWN");var T3H=sS.liveChunkReadahead;T3H&&(this.liveChunkReadahead=T3H);var G$=w0s&&w0s.livePlayerConfig;if(G$){G$.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);G$.hasSubfragmentedWebm&&(this.JB=!0);G$.defraggedFromSubfragments&&(this.defraggedFromSubfragments=
!0);var JzP=G$.liveExperimentalContentId;JzP&&(this.liveExperimentalContentId=Number(JzP));var p0s=G$.isLiveHeadPlayable;this.T("html5_live_head_playable")&&p0s!=null&&(this.isLiveHeadPlayable=p0s)}gxM=!0}else sS.isUpcoming&&(gxM=!0);gxM&&(this.isLivePlayback=!0,DmP.adformat&&DmP.adformat.split("_")[1]!=="8"||this.l9.push("heartbeat"),this.a7=!0)}var C3_=sS.isPrivate;C3_!==void 0&&(this.isPrivate=A2(this.isPrivate,C3_))}if(Jn){var rz9=sS||null,$w0=!1,Ul=Jn.errorScreen;$w0=Ul&&(Ul.playerLegacyDesktopYpcOfferRenderer||
Ul.playerLegacyDesktopYpcTrailerRenderer||Ul.ypcTrailerRenderer)?!0:rz9&&rz9.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Jn.status);if(!$w0){this.errorCode=kKE(Jn.errorCode)||"auth";var wE=Ul&&Ul.playerErrorMessageRenderer;if(wE){this.playerErrorMessageRenderer=wE;var Yi0=wE.reason;Yi0&&(this.errorReason=g.SY(Yi0));var V$0=wE.subreason;V$0&&(this.Qm=g.SY(V$0),this.P5=V$0)}else this.errorReason=Jn.reason||null;var fs9=Jn.status;if(fs9==="LOGIN_REQUIRED")this.errorDetail="1";
else if(fs9==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(fs9==="AGE_CHECK_REQUIRED"){var M3E=Jn.errorScreen,l20=M3E&&M3E.playerKavRenderer;this.errorDetail=l20&&l20.kavUrl?"4":"3"}else this.errorDetail=Jn.isBlockedInRestrictedMode?"5":"0"}}var FA9=this.playerResponse.interstitialPods;FA9&&uv5(this,FA9);this.Wk&&this.eventId&&(this.Wk=Cp(this.Wk,{ei:this.eventId}));var t$s=this.playerResponse.captions;if(t$s&&t$s.playerCaptionsTracklistRenderer)a:{var Id=t$s.playerCaptionsTracklistRenderer;
this.captionTracks=[];if(Id.captionTracks)for(var SiH=g.c(Id.captionTracks),uZs=SiH.next();!uZs.done;uZs=SiH.next()){var ve=uZs.value,o8E=CS0(ve.baseUrl);if(!o8E)break a;var qK9={is_translateable:!!ve.isTranslatable,languageCode:ve.languageCode,languageName:ve.name&&g.SY(ve.name),url:o8E,vss_id:ve.vssId,kind:ve.kind};qK9.name=ve.trackName;qK9.displayName=ve.name&&g.SY(ve.name);this.captionTracks.push(new g.En(qK9))}this.tX=Id.audioTracks||[];this.m5=Id.defaultAudioTrackIndex||0;this.wE=[];if(Id.translationLanguages)for(var b5M=
g.c(Id.translationLanguages),ZyF=b5M.next();!ZyF.done;ZyF=b5M.next()){var L2=ZyF.value,SS={};SS.languageCode=L2.languageCode;SS.languageName=g.SY(L2.languageName);if(L2.translationSourceTrackIndices){SS.translationSourceTrackIndices=[];for(var hF0=g.c(L2.translationSourceTrackIndices),xmJ=hF0.next();!xmJ.done;xmJ=hF0.next())SS.translationSourceTrackIndices.push(xmJ.value)}if(L2.excludeAudioTrackIndices){SS.excludeAudioTrackIndices=[];for(var czE=g.c(L2.excludeAudioTrackIndices),jAF=czE.next();!jAF.done;jAF=
czE.next())SS.excludeAudioTrackIndices.push(jAF.value)}this.wE.push(SS)}this.jE=[];if(Id.defaultTranslationSourceTrackIndices)for(var kcH=g.c(Id.defaultTranslationSourceTrackIndices),nx3=kcH.next();!nx3.done;nx3=kcH.next())this.jE.push(nx3.value);this.j$=!!Id.contribute&&!!Id.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.pz=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&
this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Zt5(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var B3E;this.compositeLiveIngestionOffsetToken=(B3E=this.playerResponse.playbackTracking)==null?void 0:B3E.compositeLiveIngestionOffsetToken;var X0M;this.compositeLiveStatusToken=(X0M=this.playerResponse.playbackTracking)==null?void 0:X0M.compositeLiveStatusToken}qO(this,e);e.queue_info&&(this.queueInfo=
e.queue_info);var P31=e.hlsdvr;P31!=null&&(this.allowLiveDvr=Number(P31)===1?WU()?!0:ay&&a3<5?!1:!0:!1);this.adQueryId=e.ad_query_id||null;this.kh||(this.kh=e.encoded_ad_safety_reason||null);this.YU=e.agcid||null;this.M6=e.ad_id||null;this.sb=e.ad_sys||null;this.Rv=e.encoded_ad_playback_context||null;this.xI=A2(this.xI,e.infringe||e.muted);this.qq=e.authkey;this.Fn=e.authuser;this.mutedAutoplay=A2(this.mutedAutoplay,e&&e.playmuted);this.T("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode=
J2(this.mutedAutoplayDurationMode,e&&e.muted_autoplay_duration_mode));this.KT=A2(this.KT,e&&e.mutedautoplay);var EB=e.length_seconds;EB&&(this.lengthSeconds=typeof EB==="string"?aA(EB):EB);if(this.isAd()||this.d2||!g.Yh(g.zX(this.Ot)))this.endSeconds=J2(this.endSeconds,this.zM||e.end||e.endSeconds);else{var GYZ=g.zX(this.Ot),AJ=this.lengthSeconds;switch(GYZ){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":AJ>30?this.limitedPlaybackDurationInSeconds=30:AJ<30&&AJ>10&&(this.limitedPlaybackDurationInSeconds=
10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=AJ*.2}}this.i9=pO(this.i9,e.itct);this.o4=A2(this.o4,e.noiba);this.D7=A2(this.D7,e.is_live_destination);this.isLivePlayback=A2(this.isLivePlayback,e.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Cx();e.isUpcoming&&(this.isUpcoming=A2(this.isUpcoming,e.isUpcoming));this.Ta=A2(this.Ta,e.post_live_playback);this.Rq&&(this.Ta=!1);this.isMdxPlayback=A2(this.isMdxPlayback,
e.mdx);var TG=e.mdx_control_mode;TG&&(this.mdxControlMode=typeof TG==="number"?TG:aA(TG));this.isInlinePlaybackNoAd=A2(this.isInlinePlaybackNoAd,e.is_inline_playback_no_ad);this.jn=J2(this.jn,e.reload_count);this.reloadReason=pO(this.reloadReason,e.reload_reason);this.al=A2(this.al,e.show_content_thumbnail);this.wW=A2(this.wW,e.utpsa);this.cycToken=e.cyc||null;this.bf=e.tkn||null;var dwM=p3(e);Object.keys(dwM).length>0&&(this.D=dwM);this.Kh=pO(this.Kh,e.vvt);this.mdxEnvironment=pO(this.mdxEnvironment,
e.mdx_environment);e.source_container_playlist_id&&(this.sourceContainerPlaylistId=e.source_container_playlist_id);e.serialized_mdx_metadata&&(this.serializedMdxMetadata=e.serialized_mdx_metadata);this.lM=e.osig;this.eventId||(this.eventId=e.eventid);this.osid||(this.osid=e.osid);this.playlistId=pO(this.playlistId,e.list);e.index&&(this.playlistIndex=this.playlistIndex===void 0?J2(0,e.index):J2(this.playlistIndex,e.index));this.y3=e.pyv_view_beacon_url;this.bH=e.pyv_quartile25_beacon_url;this.Mm=
e.pyv_quartile50_beacon_url;this.ij=e.pyv_quartile75_beacon_url;this.V3=e.pyv_quartile100_beacon_url;var I25=e.session_data;!this.Im&&I25&&(this.Im=w2(I25,"&").feature);this.isFling=J2(this.isFling?1:0,e.is_fling)===1;this.vnd=J2(this.vnd,e.vnd);this.forceAdsUrl=pO(this.forceAdsUrl,e.force_ads_url);this.S_=pO(this.S_,e.ctrl);this.N2=pO(this.N2,e.ytr);this.Ez=e.ytrcc;this.JF=e.ytrexp;this.Dy=e.ytrext;this.FZ=pO(this.FZ,e.adformat);this.mL=pO(this.mL,e.attrib);this.slotPosition=J2(this.slotPosition,
e.slot_pos);this.breakType=e.break_type;this.jI=A2(this.jI,e.ssrt);this.videoId=r9(e)||this.videoId;this.Z=pO(this.Z,e.vss_credentials_token);this.zN=pO(this.zN,e.vss_credentials_token_type);this.CN=A2(this.CN,e.audio_only);this.dT=A2(this.dT,e.aac_high);this.WV=A2(this.WV,e.prefer_low_quality_audio);this.xn=A2(this.xn,e.uncap_inline_quality);this.T("html5_enable_qoe_cat_list")?e.qoe_cat&&(this.Em=this.Em.concat(e.qoe_cat.split(","))):this.Cl=pO(this.Cl,e.qoe_cat);this.Ci=A2(this.Ci,e.download_media);
var v85=e.prefer_gapless;this.U=v85!=null?A2(this.U,v85):this.U?this.U:this.Ot.preferGapless&&this.Ot.supportsGaplessShorts();xT_(this.playerResponse)&&this.l9.push("ad");var zFn=e.adaptive_fmts;zFn&&(this.adaptiveFormats=zFn,this.Fh("adpfmts",{},!0));var i5H=e.allow_embed;i5H&&(this.allowEmbed=Number(i5H)===1);var DwM=e.backgroundable;DwM&&(this.backgroundable=Number(DwM)===1);var g8M=e.autonav;g8M&&(this.isAutonav=Number(g8M)===1);var V30=e.autoplay;V30&&(this.IV=this.rq=Number(V30)===1,WF(this,
"c"));var f20=e.iv_load_policy;f20&&(this.annotationsLoadPolicy=Th(this.annotationsLoadPolicy,f20,id));var t3P=e.cc_lang_pref;t3P&&(this.captionsLanguagePreference=pO(t3P,this.captionsLanguagePreference));var uCF=e.cc_load_policy;uCF&&(this.XR=Th(this.XR,uCF,id));var qiE;this.deviceCaptionsOn=(qiE=e.device_captions_on)!=null?qiE:void 0;var Z5P;this.p5=(Z5P=e.device_captions_lang_pref)!=null?Z5P:"";var xwJ;this.zk=(xwJ=e.viewer_selected_caption_langs)!=null?xwJ:[];if(!this.T("html5_enable_ssap_entity_id")){var jEM=
e.cached_load;jEM&&(this.jg=A2(this.jg,jEM))}if(e.dash==="0"||e.dash===0||e.dash===!1)this.uf=!0;var n8J=e.dashmpd;n8J&&(this.U2=g.Qb(n8J,{cpn:this.clientPlaybackNonce}));var QE9=e.delay;QE9&&(this.Y_=aA(QE9));var QAM=this.zM||e.end;if(this.LX?QAM!=null:QAM!=void 0)this.clipEnd=J2(this.clipEnd,QAM);var mw_=e.fmt_list;mw_&&(this.zT=mw_);e.heartbeat_preroll&&this.l9.push("heartbeat");this.Sz=-Math.floor(Math.random()*10);this.vy=-Math.floor(Math.random()*40);var H5E=e.is_listed;H5E&&(this.isListed=
A2(this.isListed,H5E));var KA3=e.is_private;KA3&&(this.isPrivate=A2(this.isPrivate,KA3));var WAs=e.is_dni;WAs&&(this.hs=A2(this.hs,WAs));var O5M=e.dni_color;O5M&&(this.yy=pO(this.yy,O5M));var RF5=e.pipable;RF5&&(this.pipable=A2(this.pipable,RF5));this.mI=(this.Vz=this.pipable&&this.Ot.nm)&&!this.Ot.showMiniplayerButton;var GcP=e.paid_content_overlay_duration_ms;GcP&&(this.paidContentOverlayDurationMs=aA(GcP));var Uws=e.paid_content_overlay_text;Uws&&(this.paidContentOverlayText=Uws);var LA5=e.url_encoded_fmt_stream_map;
LA5&&(this.Rx=LA5);var sE5=e.hls_formats;sE5&&(this.hlsFormats=sE5);var a2J=e.hlsvp;a2J&&(this.hlsvp=a2J);var JJ=e.live_start_walltime;JJ&&(this.AU=typeof JJ==="number"?JJ:aA(JJ));var pH=e.live_manifest_duration;pH&&(this.yh=typeof pH==="number"?pH:aA(pH));var eCM=e.player_params;eCM&&(this.playerParams=eCM);var NBH=e.partnerid;NBH&&(this.partnerId=J2(this.partnerId,NBH));var yI_=e.probe_url;yI_&&(this.probeUrl=NG(g.Qb(yI_,{cpn:this.clientPlaybackNonce})));var mmM=e.pyv_billable_url;mmM&&Rk5(mmM)&&
(this.vp=mmM);var HyM=e.pyv_conv_url;HyM&&Rk5(HyM)&&(this.XD=HyM);Mj5(this,e);this.startSeconds>0?this.T("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.pz||this.Mk||e.start||e.startSeconds)&&this.Fh("lss",{css:this.startSeconds,pcss:this.pz,iss:this.Mk,ps:e.start||void 0,pss:e.startSeconds||void 0}):this.Xz=this.startSeconds=J2(this.startSeconds,this.pz||this.Mk||e.start||e.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var wTE=e.live_utc_start;if(wTE!=
null)this.liveUtcStartSeconds=Number(wTE);else{var Krs=this.startSeconds;Krs&&isFinite(Krs)&&Krs>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var EXH=e.utc_start_millis;EXH&&(this.liveUtcStartSeconds=Number(EXH)*.001)}var AI5=e.stream_time_start_millis;AI5&&(this.jN=Number(AI5)*.001);var WrH=this.Mk||e.start;(this.LX?WrH==null||Number(e.resume)===1:WrH==void 0||e.resume=="1")||this.isLivePlayback||(this.clipStart=J2(this.clipStart,
WrH));var TBE=e.url_encoded_third_party_media;TBE&&(this.rk=Tk(TBE));var Oy5=e.ypc_offer_button_formatted_text;if(Oy5){var JIs=JSON.parse(Oy5);this.aT=JIs!=null?JIs:null;this.ZL=Oy5}var pTH=e.ypc_offer_button_text;pTH&&(this.zA=pTH);var CO0=e.ypc_offer_description;CO0&&(this.Sy=CO0);var rI1=e.ypc_offer_headline;rI1&&(this.aC=rI1);var $43=e.ypc_full_video_message;$43&&(this.nm=$43);var YY_=e.ypc_offer_id;YY_&&(this.Hc=YY_);var Mr3=e.ypc_buy_url;Mr3&&(this.U8=Mr3);var l0H=e.ypc_item_thumbnail;l0H&&
(this.e0=l0H);var FU0=e.ypc_item_title;FU0&&(this.Yb=FU0);var SY9=e.ypc_item_url;SY9&&(this.yn=SY9);var oXH=e.ypc_vid;oXH&&(this.R7=oXH);e.ypc_overlay_timeout&&(this.d1=Number(e.ypc_overlay_timeout));var bPF=e.ypc_trailer_player_vars;bPF&&(this.Gg=AE(bPF));var hCE=e.ypc_original_itct;hCE&&(this.EF=hCE);this.iI=pO(this.iI,e.ucid);e.baseUrl&&(this.G.baseUrl=e.baseUrl);e.uid&&(this.G.uid=e.uid);e.oeid&&(this.G.oeid=e.oeid);e.ieid&&(this.G.ieid=e.ieid);e.ppe&&(this.G.ppe=e.ppe);e.engaged&&(this.G.engaged=
e.engaged);e.subscribed&&(this.G.subscribed=e.subscribed);this.G.focEnabled=A2(this.G.focEnabled,e.focEnabled);this.G.rmktEnabled=A2(this.G.rmktEnabled,e.rmktEnabled);this.hN=e.storyboard_spec||null;this.qZ=e.live_storyboard_spec||null;this.At=e.iv_endscreen_url||null;this.a7=A2(this.a7,e.ypc_license_checker_module);this.bb=A2(this.bb,e.ypc_module);this.Pf=A2(this.Pf,e.ypc_clickwrap_module);this.bb&&this.l9.push("ypc");this.Pf&&this.l9.push("ypc_clickwrap");this.CA={video_id:e.video_id,eventid:e.eventid,
cbrand:e.cbrand,cbr:e.cbr,cbrver:e.cbrver,c:e.c,cver:e.cver,ctheme:e.ctheme,cplayer:e.cplayer,cmodel:e.cmodel,cnetwork:e.cnetwork,cos:e.cos,cosver:e.cosver,cplatform:e.cplatform,user_age:e.user_age,user_display_image:e.user_display_image,user_display_name:e.user_display_name,user_gender:e.user_gender,csi_page_type:e.csi_page_type,csi_service_name:e.csi_service_name,enablecsi:e.enablecsi,enabled_engage_types:e.enabled_engage_types};prM(this,e);var cI0=e.cotn;cI0&&(this.cotn=cI0);if(ICH(this))e5(this)&&
(this.isLivePlayback&&this.U2&&(this.AA=!0),this.Ut&&(this.Qk=!0));else if(vtP(this))this.AA=!0;else{var kgs,BBM,XTJ=((kgs=this.playerResponse)==null?void 0:(BBM=kgs.streamingData)==null?void 0:BBM.adaptiveFormats)||[];if(XTJ.length>0)var $t=d2H(this,XTJ);else{var POM=this.adaptiveFormats;if(POM&&!e5(this)){NK(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(b2=!0);var sl=pX(POM),RSP=this.BG,d4H=this.lengthSeconds,UAF=this.isLivePlayback,Yt=this.Ta,aR=this.Ot,L7V=tiF(sl);if(UAF||Yt){var I0M=
aR==null?void 0:aR.experiments,xs=new wt("",I0M,!0);xs.Cx=!0;xs.isManifestless=!0;xs.N=!Yt;xs.isLive=!Yt;xs.Ta=Yt;for(var vX0=g.c(sl),GJ3=vX0.next();!GJ3.done;GJ3=vX0.next()){var eA=GJ3.value,zC9=Jm(eA,RSP),ou=pC(eA.url,eA.sp,eA.s),iPF=ou.get("id");iPF&&iPF.includes("%7E")&&(xs.D=!0);var D4n=void 0,srw=(D4n=I0M)==null?void 0:D4n.gP("html5_max_known_end_time_rebase"),a6k=Number(eA.target_duration_sec)||5,e8k=Number(eA.max_dvr_duration_sec)||14400,gXM=Number(ou.get("mindsq")||ou.get("min_sq")||"0"),
VrF=Number(ou.get("maxdsq")||ou.get("max_sq")||"0")||Infinity;xs.L$=xs.L$||gXM;xs.ZK=xs.ZK||VrF;var Nx_=!Ug(zC9);ou&&eI(xs,new n1(ou,zC9,{j1:a6k,mA:Nx_,pI:e8k,L$:gXM,ZK:VrF,TR:300,Ta:Yt,Ym:srw}))}var f05=xs}else{if(L7V==="FORMAT_STREAM_TYPE_OTF"){var CH=d4H;CH=CH===void 0?0:CH;var ND=new wt("",aR==null?void 0:aR.experiments,!1);ND.duration=CH||0;for(var trP=g.c(sl),UmE=trP.next();!UmE.done;UmE=trP.next()){var yg=UmE.value,Lr1=Jm(yg,RSP,ND.duration),sA1=pC(yg.url,yg.sp,yg.s);if(sA1)if(Lr1.streamType===
"FORMAT_STREAM_TYPE_OTF")eI(ND,new Qt(sA1,Lr1,"sq/0"));else{var yTw=hd(yg.init),wz5=hd(yg.index);eI(ND,new L1(sA1,Lr1,yTw,wz5))}}ND.isOtf=!0;var uy3=ND}else{var rE=d4H;rE=rE===void 0?0:rE;var $m=new wt("",aR==null?void 0:aR.experiments,!1);$m.duration=rE||0;for(var qYF=g.c(sl),as5=qYF.next();!as5.done;as5=qYF.next()){var wL=as5.value,ErV=Jm(wL,RSP,$m.duration),AT_=hd(wL.init),Txq=hd(wL.index),ZP0=pC(wL.url,wL.sp,wL.s);ZP0&&eI($m,new L1(ZP0,ErV,AT_,Txq))}uy3=$m}f05=uy3}var x40=f05;if(sl.length>0){var jOn=
sl[0];if(this.X().playerStyle==="hangouts-meet"&&jOn.url){var JT_=g.JE(jOn.url);this.TV=this.TV||Number(JT_.expire)}}var pzF=this.isLivePlayback&&!this.Ta&&!this.Rq&&!this.isPremiere;this.T("html5_live_head_playable")&&(!yG(this)&&pzF&&this.Fh("missingLiveHeadPlayable",{}),this.Ot.Ng==="yt"&&(x40.Bk=!0));$t=x40}else $t=null;this.Fh("pafmts",{isManifestFilled:!!$t})}if($t){AY(this,$t);var nXP=!0}else nXP=!1;nXP?this.enableServerStitchedDai=this.enableServerStitchedDai&&wd(this):this.U2&&(this.Ot.Ng===
"yt"&&this.Cx()&&this.T("drm_manifestless_unplugged")&&this.T("html5_deprecate_manifestful_fallback")?this.Fh("deprecateMflFallback",{}):this.AA=!0)}var emF=e.adpings;emF&&(this.NE=emF?AE(emF):null);var QOE=e.feature;QOE&&(this.v2=QOE);var m45=e.referrer;m45&&(this.referrer=m45);this.clientScreenNonce=pO(this.clientScreenNonce,e.csn);this.VM=J2(this.VM,e.root_ve_type);this.IY=J2(this.IY,e.kids_age_up_mode);this.LX||e.kids_app_info==void 0||(this.kidsAppInfo=e.kids_app_info);this.LX&&e.kids_app_info!=
null&&(this.kidsAppInfo=e.kids_app_info);this.uV=A2(this.uV,e.upg_content_filter_mode);this.unpluggedFilterModeType=J2(this.unpluggedFilterModeType,e.unplugged_filter_mode_type);var HPs=e.unplugged_location_info;HPs&&(this.Ng=HPs);var KUP=e.unplugged_partner_opt_out;KUP&&(this.gW=pO("",KUP));this.lr=A2(this.lr,e.disable_watch_next);this.Li=pO(this.Li,e.internal_ip_override);this.I4=!!e.is_yto_interstitial;(this.interstitials.length||this.I4)&&this.l9.push("yto");var WU5=e.FA;WU5&&(this.FA=WU5);var OPJ;
this.Et=(OPJ=e.csi_timer)!=null?OPJ:"";this.Zc=!!e.force_gvi;e.watchUrl&&(this.watchUrl=e.watchUrl);var ba=e.watch_endpoint;this.T("html5_attach_watch_endpoint_ustreamer_config")&&ba&&XhF(this,ba);if(ba==null?0:ba.ustreamerConfig)this.eL=sh(ba.ustreamerConfig);var RCM,Gg5,U4E=ba==null?void 0:(RCM=ba.loggingContext)==null?void 0:(Gg5=RCM.qoeLoggingContext)==null?void 0:Gg5.serializedContextData;U4E&&(this.T0=U4E);g.hR(this.Ot)&&this.Ot.al&&(this.embedsRct=pO(this.embedsRct,e.rct),this.embedsRctn=pO(this.embedsRctn,
e.rctn));this.zx=this.zx||!!e.pause_at_start;e.default_active_source_video_id&&(this.defaultActiveSourceVideoId=e.default_active_source_video_id)};
g.J.X=function(){return this.Ot};
g.J.T=function(e){return this.Ot.T(e)};
g.J.Bf=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.J.hasSupportedAudio51Tracks=function(){var e;return!((e=this.sY)==null||!e.Kx)};
g.J.getUserAudio51Preference=function(){var e=1;Qy(this.Ot)&&this.T("html5_ytv_surround_toggle_default_off")?e=0:g.xj(this.Ot)&&this.isLivePlayback&&this.RV()&&(e=0);var N;return(N=g.qI("yt-player-audio51"))!=null?N:e};
g.J.Ow=function(){this.Ss()||(this.J.N||this.J.unsubscribe("refresh",this.Ow,this),this.z7(-1))};
g.J.z7=function(e){if(!this.isLivePlayback||!this.L||this.L.flavor!=="fairplay"){var N=q35(this.J,this.q6);if(N.length>0){for(var y=g.c(N),w=y.next();!w.done;w=y.next())w=w.value,w.startSecs=Math.max(w.startSecs,this.Ti());this.publish("cuepointupdated",N,e);this.q6+=N.length;if(wd(this)&&this.Ot.B9())for(N=g.c(N),y=N.next();!y.done;y=N.next())y=y.value,this.Fh("cuepoint",{segNum:e,event:y.event,startSecs:y.startSecs,id:y.identifier.slice(-16)}),y.event==="start"&&(y=y.startSecs,this.IF.start=this.Bk,
this.IF.end=y+3)}}};
g.J.V0=function(){this.Ss()||(this.loading=!1,this.publish("dataloaded"))};
g.J.RV=function(){return this.fk!==void 0?this.fk:this.fk=!!this.BG||!!this.J&&Ai(this.J)};
g.J.v8=function(e){var N=this;if(this.Ss())return tE();this.jp=this.VB=this.K=null;NK(this,"html5_high_res_logging_always")&&(this.Ot.sY=!0);return VjM(this,e).then(void 0,function(){return fC9(N,e)}).then(void 0,function(){return tjM(N)}).then(void 0,function(){return q1M(N)})};
g.J.nO=function(){if(this.cotn)return null;var e=g.Pa(this.Ot)||this.T("web_l3_storyboard");if(!this.ul)if(this.playerResponse&&this.playerResponse.storyboards){var N=this.playerResponse.storyboards,y=N.playerStoryboardSpecRenderer;y&&y.spec?this.ul=new DG(y.spec,this.lengthSeconds,void 0,!1,e):(N=N.playerLiveStoryboardSpecRenderer)&&N.spec&&this.J&&(y=nbE(this.J.J).index)&&(this.ul=new V3(N.spec,this.J.isLive,y,e))}else this.hN?this.ul=new DG(this.hN,this.lengthSeconds,void 0,!1,e):this.qZ&&this.J&&
(N=nbE(this.J.J).index)&&(this.ul=new V3(this.qZ,this.J.isLive,N,e));return this.ul};
g.J.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var e=this.playerResponse.storyboards;return(e=e.playerStoryboardSpecRenderer||e.playerLiveStoryboardSpecRenderer)&&e.spec||null}return this.hN||this.qZ};
g.J.ra=function(){return this.J&&!isNaN(this.J.ra())?this.J.ra():wd(this)?0:this.lengthSeconds};
g.J.Ti=function(){return this.J&&!isNaN(this.J.Ti())?this.J.Ti():0};
g.J.getPlaylistSequenceForTime=function(e){if(this.J&&this.N){var N=this.J.J[this.N.id];if(!N)return null;var y=N.index.zI(e);N=N.index.getStartTime(y);return{sequence:y,elapsed:Math.floor((e-N)*1E3)}}return null};
g.J.WG=function(){return!this.Ss()&&!(!this.videoId&&!this.rk)};
g.J.jJ=function(){var e,N,y;return!!this.adaptiveFormats||!!((e=this.playerResponse)==null?0:(N=e.streamingData)==null?0:(y=N.adaptiveFormats)==null?0:y.length)};
g.J.isLoaded=function(){return u0(this)&&!this.AA&&!this.Qk};
g.J.LN=function(e){e||(e="hqdefault.jpg");var N=this.D[e];return N||this.Ot.Kh||e==="pop1.jpg"||e==="pop2.jpg"||e==="sddefault.jpg"||e==="hq720.jpg"||e==="maxresdefault.jpg"?N:q_(this.Ot,this.videoId,e)};
g.J.Cx=function(){return this.isLivePlayback||this.Ta||this.Rq||!(!this.liveUtcStartSeconds||!this.yh)};
g.J.isOtf=function(){return!!this.J&&(this.J.isOtf||!this.Ta&&!this.isLivePlayback&&this.J.N)};
g.J.getAvailableAudioTracks=function(){return this.K?this.K.getAvailableAudioTracks().length>0?this.K.getAvailableAudioTracks():this.e$||[]:[]};
g.J.getAudioTrack=function(){var e=this;if(this.j&&!GS(this.j))return g.Ok(this.getAvailableAudioTracks(),function(w){return w.id===e.j.id})||this.il;
if(this.e$){if(!this.Ip)for(var N=g.c(this.e$),y=N.next();!y.done;y=N.next())if(y=y.value,y.Vl.getIsDefault()){this.Ip=y;break}return this.Ip||this.il}return this.il};
g.J.getPlayerResponse=function(){return this.playerResponse};
g.J.getWatchNextResponse=function(){return this.Zl};
g.J.getHeartbeatResponse=function(){return this.Z2};
g.J.ew=function(){return this.watchUrl?this.watchUrl:this.Ot.getVideoUrl(this.videoId)};
g.J.wg=function(){return!!this.J&&(Ios(this.J)||vHs(this.J)||zzn(this.J))};
g.J.getEmbeddedPlayerResponse=function(){return this.nw};
g.J.e_=function(){return(this.eventLabel||this.Ot.Rq)==="shortspage"};
g.J.isAd=function(){return this.s6||!!this.adFormat};
g.J.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.J.Au=function(){var e,N,y;return this.isDaiEnabled()&&!!((e=this.playerResponse)==null?0:(N=e.playerConfig)==null?0:(y=N.daiConfig)==null?0:y.ssaEnabledPlayback)};
g.J.du=function(){return EFs(this)?this.Ko:this.a7||this.j_};
g.J.qC=function(){return this.bb||this.j_};
g.J.Ej=function(){return NK(this,"html5_samsung_vp9_live")};
g.J.Fh=function(e,N,y){this.publish("ctmp",e,N,y)};
g.J.kN=function(e,N,y){this.publish("ctmpstr",e,N,y)};
g.J.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.J.getGetAdBreakContext=function(e,N){e=e===void 0?NaN:e;N=N===void 0?NaN:N;var y={isSabr:L3(this)},w,E=(w=this.getHeartbeatResponse())==null?void 0:w.adBreakHeartbeatParams;E&&(y.adBreakHeartbeatParams=E);if(this.T("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.J&&!isNaN(e)&&!isNaN(N)){N=e-N;for(var A in this.J.J)if(w=this.J.J[A],w.info.gx()||w.info.qG())if(w=w.index,w.isLoaded()){A=w.zI(N);w=w.OY(A)+N-w.getStartTime(A);this.Fh("gabc",{t:e.toFixed(3),mt:N.toFixed(3),sg:A,igt:w.toFixed(3)});
y.livePlaybackPosition={utcTimeMillis:""+(w*1E3).toFixed(0)};break}}return y};
g.J.isEmbedsShortsMode=function(e,N){if(!g.hR(this.Ot))return!1;var y;if(!this.T("embeds_enable_emc3ds_shorts")&&((y=this.Ot.getWebPlayerContextConfig())==null?0:y.embedsEnableEmc3ds)||(this.Ot.i9||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||N)return!1;var w,E;return!!(((w=this.embeddedPlayerConfig)==null?0:(E=w.embeddedPlayerFlags)==null?0:E.isShortsExperienceEligible)&&e.width<=e.height)};
g.J.fh=function(){g.pT.prototype.fh.call(this);this.NE=null;delete this.jD;delete this.accountLinkingConfig;delete this.J;this.K=this.Z2=this.playerResponse=this.Zl=null;this.Rx=this.adaptiveFormats="";delete this.botguardData;this.Dl=this.suggestions=this.t4=null;this.sabrContextUpdates.clear()};var $Cn={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},YU0={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},CP9={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},T$s={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"},pu0={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},JH_={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"},rHn={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.b(Us,g.x);g.J=Us.prototype;g.J.handleExternalCall=function(e,N,y){var w=this.state.G[e],E=this.state.U[e],A=w;if(E)if(y&&Ln(y,Rj0))A=E;else if(!w)throw Error('API call from an untrusted origin: "'+y+'"');this.logApiCall(e,y);if(A){y=!1;w=g.c(N);for(E=w.next();!E.done;E=w.next())if(String(E.value).includes("javascript:")){y=!0;break}y&&g.uA(Error('Dangerous call to "'+e+'" with ['+N+"]."));return A.apply(this,N)}throw Error('Unknown API method: "'+e+'".');};
g.J.logApiCall=function(e,N,y){var w=this.app.X();w.Qk&&!this.state.D.has(e)&&(this.state.D.add(e),g.$$("webPlayerApiCalled",{callerUrl:w.loaderUrl,methodName:e,origin:N||void 0,playerStyle:w.playerStyle||void 0,embeddedPlayerMode:w.i9,errorCode:y}))};
g.J.publish=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));if(e==="videodatachange"||e==="resize"||e==="cardstatechange")this.state.N.publish.apply(this.state.N,[e].concat(g.B(N))),this.state.j.publish.apply(this.state.j,[e].concat(g.B(N)))};
g.J.Mg=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));this.state.N.publish.apply(this.state.N,[e].concat(g.B(N)))};
g.J.pC=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));this.state.N.publish.apply(this.state.N,[e].concat(g.B(N)));this.state.j.publish.apply(this.state.j,[e].concat(g.B(N)))};
g.J.Y9=function(e){var N=g.iE.apply(1,arguments);this.state.K.publish.apply(this.state.K,[e].concat(g.B(N)));this.state.N.publish.apply(this.state.N,[e].concat(g.B(N)));this.state.j.publish.apply(this.state.j,[e].concat(g.B(N)));this.state.L.publish.apply(this.state.L,[e].concat(g.B(N)))};
g.J.T=function(e){return this.app.X().T(e)};
g.J.fh=function(){if(this.state.element){var e=this.state.element,N;for(N in this.state.J)this.state.J.hasOwnProperty(N)&&(e[N]=null);this.state.element=null}g.x.prototype.fh.call(this)};g.b(yL,g.zY);yL.prototype.publish=function(e){var N=g.iE.apply(1,arguments);if(this.L.has(e))return this.L.get(e).push(N),!0;var y=!1;try{for(N=[N],this.L.set(e,N);N.length;)y=g.zY.prototype.publish.call.apply(g.zY.prototype.publish,[this,e].concat(g.B(N.shift())))}finally{this.L.delete(e)}return y};g.b(wZ,g.x);wZ.prototype.fh=function(){this.L.dispose();this.j.dispose();this.N.dispose();this.K.dispose();this.D=this.J=this.U=this.G=this.Z=void 0};var hqH=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.b(Au,Us);g.J=Au.prototype;g.J.getApiInterface=function(){return Array.from(this.state.Z)};
g.J.uO=function(e,N){this.state.L.subscribe(e,N)};
g.J.KiB=function(e,N){this.state.L.unsubscribe(e,N)};
g.J.getPlayerState=function(e){return pY5(this.app,e)};
g.J.rl=function(){return pY5(this.app)};
g.J.ZqP=function(e,N,y){pD(this)&&(x9(this.app,!0,1),Qi(this.app,e,N,y,1))};
g.J.getCurrentTime=function(e,N,y){var w=this.getPlayerState(e);if(this.app.getAppState()===2&&w===5){var E;return((E=this.app.getVideoData())==null?void 0:E.startSeconds)||0}return this.T("web_player_max_seekable_on_ended")&&w===0?EUF(this.app,e):e?this.app.getCurrentTime(e,N,y):this.app.getCurrentTime(e)};
g.J.xQ=function(){return this.app.getCurrentTime(1)};
g.J.dl=function(){var e=this.app.OY(1);return isNaN(e)?this.getCurrentTime(1):e};
g.J.zw=function(){return this.app.getDuration(1)};
g.J.O3=function(e,N){e=g.Ja(Math.floor(e),0,100);isFinite(e)&&gl(this.app,{volume:e,muted:this.isMuted()},N)};
g.J.VVh=function(e){this.O3(e,!1)};
g.J.Cy=function(e){gl(this.app,{muted:!0,volume:this.getVolume()},e)};
g.J.ZxB=function(){this.Cy(!1)};
g.J.YZ=function(e){Ju(this.app)&&!this.T("embeds_enable_emc3ds_muted_autoplay")||gl(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},e)};
g.J.BQt=function(){Ju(this.app)&&this.T("embeds_enable_emc3ds_muted_autoplay")||this.YZ(!1)};
g.J.getPlayerMode=function(){var e={};this.app.getVideoData().hs&&(e.pfp={enableIma:g.KX(this.app.getVideoData())&&this.app.M7().allowImaMonetization,autoplay:tY(this.app.M7()),mutedAutoplay:this.app.M7().mutedAutoplay});return e};
g.J.yK=function(){var e=this.app.getPresentingPlayerType();if(e===2&&!this.app.As()){var N=ql(this.app.jR());if(!J15(N)||pAM(N))return}e===3?hu(this.app.jR()).D2("control_play"):this.app.X().T("html5_ssap_ignore_play_for_ad")&&g.xK(this.app.M7())&&e===2||this.app.playVideo(e)};
g.J.Z$W=function(){x9(this.app,!0,1);this.yK()};
g.J.pauseVideo=function(e){var N=this.app.getPresentingPlayerType();if(N!==2||this.app.As()||J15(ql(this.app.jR())))N===3?hu(this.app.jR()).D2("control_pause"):this.app.pauseVideo(N,e)};
g.J.ONs=function(){var e=this.app,N=!1;e.ph.PY&&(e.Lh.publish("pageTransition"),N=!0);e.stopVideo(N)};
g.J.clearVideo=function(){};
g.J.getAvailablePlaybackRates=function(){var e=this.app.X();return e.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(e.j?e.ancestorOrigins[0]:window.location.origin)||e.IY?ddf:e.supportsVarispeedExtendedFeatures?Iyk:P7k:[1]};
g.J.getPlaybackQuality=function(e){return(e=this.app.Ug(e))?e.getPlaybackQuality():"unknown"};
g.J.Xws=function(){};
g.J.getAvailableQualityLevels=function(e){return(e=this.app.Ug(e))?(e=g.dn(e.Sg(),function(N){return N.quality}),e.length&&(e[0]==="auto"&&e.shift(),e=e.concat(["auto"])),e):[]};
g.J.AQ=function(){return this.getAvailableQualityLevels(1)};
g.J.EB=function(){return this.vW()};
g.J.Bn=function(){return 1};
g.J.getVideoLoadedFraction=function(e){return this.app.getVideoLoadedFraction(e)};
g.J.vW=function(){return this.getVideoLoadedFraction()};
g.J.YQ=function(){return 0};
g.J.getSize=function(){var e=this.app.Fz().getPlayerSize();return{width:e.width,height:e.height}};
g.J.setSize=function(){this.app.Fz().resize()};
g.J.loadVideoById=function(e,N,y,w){if(!e)return!1;e=Ec(e,N,y);return this.app.loadVideoByPlayerVars(e,w)};
g.J.p99=function(e,N,y){e=this.loadVideoById(e,N,y,1);x9(this.app,e,1)};
g.J.cueVideoById=function(e,N,y,w){e=Ec(e,N,y);this.app.cueVideoByPlayerVars(e,w)};
g.J.jC=function(e,N,y){this.cueVideoById(e,N,y,1)};
g.J.loadVideoByUrl=function(e,N,y,w){e=bsM(e,N,y);return this.app.loadVideoByPlayerVars(e,w)};
g.J.NTh=function(e,N,y){e=this.loadVideoByUrl(e,N,y,1);x9(this.app,e,1)};
g.J.cueVideoByUrl=function(e,N,y,w){e=bsM(e,N,y);this.app.cueVideoByPlayerVars(e,w)};
g.J.OM=function(e,N,y){this.cueVideoByUrl(e,N,y,1)};
g.J.UB=function(){var e=this.app.X();if(e.Kh)return"";var N=this.app.M7(),y=void 0;N.isLivePlayback||(y=Math.floor(this.app.getCurrentTime(1)));return e.getVideoUrl(N.videoId,this.getPlaylistId()||void 0,y)};
g.J.yf=function(){return this.app.getDebugText()};
g.J.getVideoEmbedCode=function(){var e=this.app.X();if(e.Kh)return"";var N=this.app.M7();return e.getVideoEmbedCode(N.isPrivate?"":N.title,this.app.M7().videoId,this.app.Fz().getPlayerSize(),this.getPlaylistId()||void 0)};
g.J.hZ=function(e,N,y){return FJ9(this.app,e,N,y)};
g.J.removeCueRange=function(e){return oU0(this.app,e)};
g.J.loadPlaylist=function(e,N,y,w){this.app.loadPlaylist(e,N,y,w)};
g.J.Dgq=function(e,N,y,w){this.loadPlaylist(e,N,y,w);x9(this.app,!0,1)};
g.J.cuePlaylist=function(e,N,y,w){this.app.cuePlaylist(e,N,y,w)};
g.J.nextVideo=function(e,N){this.app.nextVideo(e,N)};
g.J.rMl=function(){this.nextVideo();x9(this.app,!0,1)};
g.J.previousVideo=function(e){this.app.previousVideo(e)};
g.J.UPk=function(){this.previousVideo();x9(this.app,!0,1)};
g.J.playVideoAt=function(e){this.app.playVideoAt(e)};
g.J.Pms=function(e){this.playVideoAt(e);x9(this.app,!0,1)};
g.J.setShuffle=function(e){var N=this.app.getPlaylist();N&&N.setShuffle(e)};
g.J.setLoop=function(e){var N=this.app.getPlaylist();N&&(N.loop=e)};
g.J.Tw=function(){var e=this.app.getPlaylist();if(!e)return null;for(var N=[],y=0;y<e.getLength();y++){var w=g.Bo(e,y);w&&N.push(w.videoId)}return N};
g.J.getPlaylistIndex=function(){var e=this.app.getPlaylist();return e?e.index:-1};
g.J.getPlaylistId=function(){var e=this.app.getPlaylist();return e&&e.listId?e.listId.toString():null};
g.J.Ar=function(e){e==="captions"&&(e=g.fZ(this.app.jR()))&&!e.loaded&&e.load()};
g.J.OS=function(e){e==="captions"&&(e=g.fZ(this.app.jR()))&&e.loaded&&e.XfP()};
g.J.hj=function(e,N,y){if(!N)return null;var w=this.app.jR();return e==="captions"?(e=g.fZ(w))&&e.uv(N,y):null};
g.J.Rd=function(e,N,y){return this.app.NU().getVideoData().isPrivate&&this.app.X().j?{}:this.hj(e,N,y)};
g.J.qj=function(e){var N=this.app.jR();if(e==="captions"){var y;return((y=g.fZ(N))==null?void 0:y.getOptions())||null}return e?null:(e=[],g.fZ(N)&&e.push("captions"),e)};
g.J.getVolume=function(){return this.app.Fe.volume};
g.J.isMuted=function(){return this.app.Fe.muted};
g.J.destroy=function(){this.app.dispose()};
g.J.logImaAdEvent=function(e,N){var y=this.app.X();g.KX(this.app.getVideoData())&&this.app.M7().allowImaMonetization&&(e={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:N,embedUrl:g.SA1(this.app.X().loaderUrl),eventType:e,youtubeHost:g.uB(this.app.X().qg)||""},e.embeddedPlayerMode=y.i9,g.$$("embedsAdEvent",e))};
g.J.mutedAutoplay=function(e){var N=this.app.X(),y,w,E;((y=N.getWebPlayerContextConfig())==null?0:(w=y.embedsHostFlags)==null?0:(E=w.allowMutedAutoplayDurationMode)==null?0:E.length)&&!N.K&&this.app.mutedAutoplay(e)};
g.J.preloadVideoById=function(e,N,y,w){var E,A;((E=this.app.X().getWebPlayerContextConfig())==null?0:(A=E.embedsHostFlags)==null?0:A.allowPreloadVideoById)&&e&&(e=Ec(e,N,y),this.app.preloadVideoByPlayerVars(e,w))};
g.J.mP1=function(e,N,y){this.preloadVideoById(e,N,y,1)};
g.J.setFauxFullscreen=function(e){g.h2();this.app.q3(e?2:0)};
g.J.BmB=function(e){var N,y;((N=this.app.X().getWebPlayerContextConfig())==null?0:(y=N.embedsHostFlags)==null?0:y.allowSetFauxFullscreen)&&this.setFauxFullscreen(e)};
g.J.wakeUpControls=function(){var e=g.T9(this);e&&e.Cd()};var dCP="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.b(CD,Au);g.J=CD.prototype;g.J.xF=function(e,N){this.state.j.subscribe(e,N)};
g.J.tVG=function(e,N){this.state.j.unsubscribe(e,N)};
g.J.cueVideoByPlayerVars=function(e,N){this.app.cueVideoByPlayerVars(e,N)};
g.J.wr=function(e,N){N=N===void 0?1:N;this.cueVideoByPlayerVars(rZ(this,e),N)};
g.J.loadVideoByPlayerVars=function(e,N,y,w,E){this.app.loadVideoByPlayerVars(e,y,N,w,E)};
g.J.JM1=function(e,N,y,w){y=y===void 0?1:y;this.loadVideoByPlayerVars(rZ(this,e),N,y,w)};
g.J.preloadVideoByPlayerVars=function(e,N,y,w,E){y=y===void 0?NaN:y;this.app.preloadVideoByPlayerVars(e,N,y,w===void 0?"":w,E===void 0?"":E)};
g.J.YYP=function(e,N,y,w){N=N===void 0?1:N;this.preloadVideoByPlayerVars(rZ(this,e),N,y,w)};
g.J.z8=function(e,N,y){this.loadVideoById(e,N,y,1)};
g.J.cA=function(e,N,y){this.loadVideoByUrl(e,N,y,1)};
g.J.LB=function(e){return this.getPlayerState(e)};
g.J.eK=function(e){e=e===void 0?1:e;var N=kBH(this,e);if(e=this.app.Ug(e)){e=e.getVideoData();N.backgroundable=e.backgroundable;N.eventId=e.eventId;N.cpn=e.clientPlaybackNonce;N.isLive=e.isLivePlayback;N.isWindowedLive=e.Rq;N.isManifestless=wd(e);N.allowLiveDvr=e.allowLiveDvr;N.isListed=e.isListed;e.liveUtcStartSeconds!=null&&(N.liveUtcStartSeconds=e.liveUtcStartSeconds);e.RV()&&(N.isEncrypted=!0);if(e.K)for(var y=g.c(e.K.videoInfos),w=y.next();!w.done;w=y.next()){var E=void 0;if((E=w.value.video)==
null?0:E.isHdr()){N.isHdr=!0;break}}var A,T;N.isMultiChannelAudio=!!((A=e.j)==null?0:(T=A.audio)==null?0:T.isMultiChannelAudio())}return N};
g.J.seekBy=function(e,N,y,w,E){pD(this)&&Qi(this.app,this.app.getCurrentTime()+e,N,y,E,w)};
g.J.CPt=function(e,N,y){this.seekBy(e,N,y,void 0,1)};
g.J.seekTo=function(e,N,y,w,E){pD(this)&&Qi(this.app,e,N,y,w,E)};
g.J.Lis=function(e,N,y,w){this.seekTo(e,N,y,w===void 0?1:w)};
g.J.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.J.i_=function(e,N){return this.getCurrentTime(e===void 0?1:e,N)};
g.J.kU=function(){var e=this.app.getPresentingPlayerType(!0);e===2&&this.app.As()&&(e=1);return e};
g.J.getDuration=function(e,N){if(this.kU()===3){var y;return((y=hu(this.app.jR()).getProgressState())==null?void 0:y.duration)||0}return e?this.app.getDuration(e,N):this.app.getDuration(e)};
g.J.cW=function(e,N){return this.getDuration(e===void 0?1:e,N)};
g.J.nB=function(e){return this.getVideoLoadedFraction(e)};
g.J.loadModule=function(e){if(e==="annotations_module"){var N=g.jB(this.app.jR());N&&!N.loaded&&N.load()}this.Ar(e)};
g.J.unloadModule=function(e){if(e==="annotations_module"){var N=g.jB(this.app.jR());N&&N.loaded&&N.unload()}this.OS(e)};
g.J.getOption=function(e,N,y,w){return(w=this.app.Ug(w))&&w.getVideoData().isPrivate&&this.app.X().j?{}:this.setOption(e,N,y)};
g.J.o_=function(e,N,y){return this.getOption(e,N,y,1)};
g.J.getOptions=function(e){var N=this.app.jR();switch(e){case "ad":var y,w;return((y=ql(N))==null?void 0:(w=y.getOptions)==null?void 0:w.call(y))||null;case "remote":var E,A;return((E=hu(N))==null?void 0:(A=E.getOptions)==null?void 0:A.call(E))||null;case "annotations_module":var T,p;return((T=g.jB(N))==null?void 0:(p=T.getOptions)==null?void 0:p.call(T))||null;case "creatorendscreen":var C,r;return((C=nZ(N))==null?void 0:(r=C.getOptions)==null?void 0:r.call(C))||null;case "unplugged":var Y,M;return((Y=
g.Zv(N))==null?void 0:(M=Y.getOptions)==null?void 0:M.call(Y))||null;case "kids":var l,F;return((l=XKJ(N))==null?void 0:(F=l.getOptions)==null?void 0:F.call(l))||null}if(!e){e=this.qj();if(!e)return e;ql(N)&&e.push("ad");hu(N)&&e.push("remote");g.jB(N)&&e.push("annotations_module");nZ(N)&&e.push("creatorendscreen");g.Zv(N)&&e.push("unplugged");XKJ(N)&&e.push("kids");return e}return this.qj(e)};
g.J.setOption=function(e,N,y){if(!N)return null;var w=this.app.jR();switch(e){case "ad":return(e=ql(w))&&e.uv&&e.uv(N,y);case "kids":return(e=XKJ(w))&&e.uv(N,y);case "remote":return(e=hu(w))&&e.uv(N,y);case "unplugged":return(e=g.Zv(w))&&e.uv(N,y);case "annotations_module":return(e=g.jB(w))&&e.uv(N,y);case "creatorendscreen":return(e=nZ(w))&&e.uv(N,y)}return this.hj(e,N,y)};
g.J.addCueRange=function(e,N,y,w,E){return FJ9(this.app,e,N,y,w,E)};
g.J.getDebugText=function(e){return this.app.getDebugText(e)};
g.J.getCurrentBroadcastId=function(){return null};
g.J.handleGlobalKeyDown=function(e,N,y,w,E,A,T,p){N=N===void 0?!1:N;y=y===void 0?!1:y;w=w===void 0?!1:w;E=E===void 0?!1:E;var C=g.T9(this);C&&C.handleGlobalKeyDown(e,N,y,w,E,A,T,p)};
g.J.handleGlobalKeyUp=function(e,N,y,w,E,A,T){N=N===void 0?!1:N;y=y===void 0?!1:y;w=w===void 0?!1:w;E=E===void 0?!1:E;var p=g.T9(this);p&&p.handleGlobalKeyUp(e,N,y,w,E,A,T)};
g.J.setSizeStyle=function(e,N){this.app.setSizeStyle(e,N)};
g.J.showControls=function(){var e=g.T9(this);e&&e.showControls(!0)};
g.J.hideControls=function(){var e=g.T9(this);e&&e.showControls(!1)};
g.J.getVideoContentRect=function(e){e=this.app.Fz().getVideoContentRect(e);return{left:e.left,top:e.top,width:e.width,height:e.height}};
g.J.toggleFullscreen=function(){function e(y){g.uA(y)}
var N=this.app.X();if(N.externalFullscreen){if(!g.mT(N))return this.isFullscreen()?kh(window.document.documentElement):bY(window.document.documentElement).catch(e)}else if(g.h2()||N.U)return this.isFullscreen()?kh(cE()):N.controlsType!=="3"&&g.h2()?bY(this.app.Fz().element).catch(e):(N=this.app.LC().ut())?bY(N).catch(e):Promise.reject(Error("Media element missing"));this.Y9("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.J.isFullscreen=function(){return this.app.isFullscreen()};
g.J.Xi=function(){return this.app.Xi()};
g.J.cancelPlayback=function(){var e=ql(this.app.jR());e&&e.created&&e.destroy();(e=this.app.nh())&&e.stopVideo();(e=this.app.jR().x9.get("endscreen"))&&e.o1B()&&g.bh(this.app.Lh,!0)};
g.J.getProgressState=function(e){if(this.kU()===3)return hu(this.app.jR()).getProgressState();var N=this.app.getVideoData(),y=this.app.Ug(e)||this.app.nh(),w=y.getPlayerType();a:{var E=this.app.getVideoData();var A;if((A=E.progressBarStartPosition)==null?0:A.utcTimeMillis)if(E=Number(E.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(E)){E=$S(this,E,e);break a}E=0}var T;a:{A=this.app.getVideoData();if((T=A.progressBarEndPosition)==null?0:T.utcTimeMillis)if(T=Number(A.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(T)){T=$S(this,T,e);break a}T=0}A=this.getCurrentTime(e);e=this.getDuration(e);var p=this.app.OY(w),C=this.app.isAtLiveHead(w),r=this.app.K9();var Y=this.app;var M=Y.Ug(w);M?(M=XO(Y,M),Y=f7(Y,M.jH(),M)):Y=0;M=EUF(this.app,w);y=y.w7();var l=this.app.getVideoData().YN;w=!l||isNaN(l)?0:$S(this,l,w);return{airingStart:E,airingEnd:T,allowSeeking:this.app.Bf(),clipEnd:N.clipEnd,clipStart:N.clipStart,current:A,displayedStart:-1,duration:e,ingestionTime:p,isAtLiveHead:C,loaded:r,seekableStart:Y,
seekableEnd:M,offset:y,viewerLivestreamJoinMediaTime:w}};
g.J.isInline=function(){return this.app.isInline()};
g.J.setInline=function(e){this.app.setInline(e)};
g.J.Xv=function(){return this.app.NU().N7(!0)};
g.J.toggleSubtitles=function(){var e=g.fZ(this.app.jR());e&&e.P6P()};
g.J.getPlayerSize=function(){var e=this.app.Fz().getPlayerSize();return{width:e.width,height:e.height}};
g.J.setCenterCrop=function(e){this.app.Fz().setCenterCrop(e)};
g.J.getLoopVideo=function(){return this.app.getLoopVideo()};
g.J.setLoopVideo=function(e){this.app.setLoopVideo(e)};
var PP1="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public qoe_cat raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
vF5="adformat allow_embed authuser autohide autonav autoplay c cbr cbrver cc_load_policy controls cos cosver cr csi_page_type cver cyc dash dashmpd disablekb el enablecastapi enablecsi end external_fullscreen external_list fs hl host_language innertube_api_key innertube_api_version innertube_context_client_version iurl iurlhq iurlmq iv_load_policy jsapicallback length_seconds live_playback live_storyboard_spec loaderUrl osig override_hl pageid partnerid pipable player_params player_wide playsinline plid postid profile_picture ps rel show_miniplayer_button showinfo showwatchlater start startSeconds status storyboard_spec suggestedQuality timestamp title tkn token transparent_background ucid url_encoded_fmt_stream_map use_miniplayer_ui use_native_controls videoId video_id vss_host watermark".split(" ");var TL={},zq9=(TL["api.invalidparam"]=2,TL.auth=150,TL["drm.auth"]=150,TL["heartbeat.net"]=150,TL["heartbeat.servererror"]=150,TL["heartbeat.stop"]=150,TL["html5.unsupportedads"]=5,TL["fmt.noneavailable"]=5,TL["fmt.decode"]=5,TL["fmt.unplayable"]=5,TL["html5.missingapi"]=5,TL["html5.unsupportedlive"]=5,TL["drm.unavailable"]=5,TL["mrm.blocked"]=151,TL["embedder.identity.denied"]=152,TL);g.b(g.YS,CD);g.J=g.YS.prototype;g.J.isExternalMethodAvailable=function(e,N){return this.state.G[e]?!0:!!(this.state.U[e]&&N&&Ln(N,Rj0))};
g.J.getBandwidthEstimate=function(){return M_(this.app.X().schedule)};
g.J.reportPlaybackIssue=function(e){e=e===void 0?"":e;var N=this.app.nh();N&&(e={gpu:(0,g.D3)(),d:e},N.handleError(new P3("feedback",e)))};
g.J.getInternalApi=function(){return Object.assign({},this.state.J)};
g.J.getInternalApiInterface=function(){return g.Xw(this.state.J)};
g.J.queueNextVideo=function(e,N,y,w,E){y=y===void 0?NaN:y;this.app.queueNextVideo(e,N,y,w===void 0?"":w,E===void 0?"":E)};
g.J.Zo=function(e){e=this.app.getPlayerStateObject(e);return{isBuffering:g.G(e,1),isCued:e.isCued(),isDomPaused:g.G(e,1024),isEnded:g.G(e,2),isError:g.G(e,128),isOrWillBePlaying:e.isOrWillBePlaying(),isPaused:e.isPaused(),isPlaying:e.isPlaying(),isSeeking:g.G(e,16),isUiSeeking:g.G(e,32),isUnstarted:g.G(e,64)}};
g.J.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.J.startSeekCsiAction=function(){this.app.s4().j.J=(0,g.iC)()};
g.J.u_=function(e,N,y){return this.getCurrentTime(e===void 0?1:e,N,y)};
g.J.seekToStreamTime=function(e,N,y,w){var E=this.app;N=N===void 0?!0:N;var A=E.Ug(1),T=0;A&&A.getStreamTimeOffset()&&!A.w7()&&(T=A.getStreamTimeOffset());Qi(E,e-T,N,y,1,w)};
g.J.getStreamTimeOffset=function(){return this.app.NU().getStreamTimeOffset()};
g.J.seekToLiveHead=function(e,N){var y=this.app.NU().getVideoData();y&&y.isLivePlayback&&Qi(this.app,Infinity,e,N,1)};
g.J.requestSeekToWallTimeSeconds=function(e,N){this.app.NU().j0(e,N)};
g.J.PPl=function(e,N,y,w,E){this.seekTo(e,N,y,w===void 0?1:w,E)};
g.J.Ris=function(e,N,y,w){this.seekBy(e,N,y,w,1)};
g.J.setVolume=function(e,N){this.O3(e,N===void 0?!0:N)};
g.J.mute=function(e){this.Cy(e===void 0?!0:e)};
g.J.unMute=function(e){this.YZ(e===void 0?!0:e)};
g.J.syncVolume=function(){var e=fan(this.app);gl(this.app,{volume:e.volume,muted:e.muted},!1)};
g.J.getAvailableQualityLabels=function(){return g.dn(this.app.NU().Sg(),function(e){return e.qualityLabel})};
g.J.channelSubscribed=function(){this.Mg("SUBSCRIBE",this.app.M7().iI)};
g.J.channelUnsubscribed=function(){this.Mg("UNSUBSCRIBE",this.app.M7().iI)};
g.J.setScreenLayer=function(e){this.app.setScreenLayer(e)};
g.J.getCurrentPlaylistSequence=function(){return this.app.nh().getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.J.getPlaylistSequenceForTime=function(e){return this.app.nh().getPlaylistSequenceForTime(e)};
g.J.shouldSendVisibilityState=function(){return!0};
g.J.confirmYpcRental=function(){this.app.NU().Go("ypc_clickwrap")};
g.J.setHomeGroupInfo=function(e){this.app.X().homeGroupInfo=e};
g.J.setConnectedRemoteApps=function(e){this.app.X().kX=e};
g.J.setLivingRoomAppMode=function(e){this.app.X().livingRoomAppMode=Th("LIVING_ROOM_APP_MODE_UNSPECIFIED",e,Ryn)};
g.J.setEnablePrivacyFilter=function(e){this.app.X().enablePrivacyFilter=e===void 0?!1:e};
g.J.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.J.addUtcCueRange=function(e,N,y,w,E){return SwH(this.app,e,N,y,w,E)};
g.J.mJ=function(e){e=e===void 0?1:e;var N=this.eK(e);if(e=this.app.Ug(e)){e=e.getVideoData();N.hasProgressBarBoundaries=e.hasProgressBarBoundaries();N.isPremiere=e.isPremiere;N.itct=e.i9;N.playerResponseCpn=e.playerResponseCpn;var y;var w=e.hasProgressBarBoundaries()&&((y=e.progressBarStartPosition)==null?0:y.utcTimeMillis)?aA(e.progressBarStartPosition.utcTimeMillis):null;N.progressBarStartPositionUtcTimeMillis=w;var E;y=e.hasProgressBarBoundaries()&&((E=e.progressBarEndPosition)==null?0:E.utcTimeMillis)?
aA(e.progressBarEndPosition.utcTimeMillis):null;N.progressBarEndPositionUtcTimeMillis=y;N.ypcOriginalItct=e.EF;N.ypcPreview=e.ypcPreview;N.paidContentOverlayText=ZNM(e);N.paidContentOverlayDurationMs=x29(e);e.J&&yo(e.J)&&(N.usingLocalMedia="true");N.transitionEndpointAtEndOfStream=e.transitionEndpointAtEndOfStream}return N};
g.J.getAdState=function(){return this.app.getAdState()};
g.J.isNotServable=function(e){if(e!==this.app.config.args.video_id)return!1;var N=(e=this.app.NU().getPlayerState())?e.qS:null;return!!(e&&N&&g.G(e,128)&&is5(N.errorCode)===5)};
g.J.supportsGaplessAudio=function(){return this.app.X().supportsGaplessAudio()};
g.J.supportsGaplessShorts=function(){return this.app.X().supportsGaplessShorts()};
g.J.enqueueVideoByPlayerVars=function(e,N,y,w){y=y===void 0?Infinity:y;this.app.enqueueVideoByPlayerVars(e,N,y,w===void 0?"":w)};
g.J.clearQueue=function(){this.app.clearQueue()};
g.J.Yp=function(){return g.T9(this)};
g.J.sendAbandonmentPing=function(){var e;(e=this.app.nh())==null||e.sendAbandonmentPing()};
g.J.setAutonavState=function(e,N){N=N===void 0?!1:N;if(this.T("web_player_autonav_use_server_provided_state")&&!N&&(N=this.app.M7(),N==null?0:Q3(N))){if(this.T("web_player_autonav_server_provided_state_pause_killswitch"))return;if(e===3)N.autonavState!==3&&(N.Fq=N.autonavState);else if(N.Fq!==void 0)e=N.Fq,N.Fq=void 0;else return}PL_(this.app,e)};
g.J.setAutonav=function(e,N){this.setAutonavState(e?2:1,N===void 0?!1:N)};
g.J.setLoopRange=function(e){this.app.setLoopRange(e)};
g.J.getLoopRange=function(){return this.app.getLoopRange()};
g.J.hasSupportedAudio51Tracks=function(){return this.app.NU().hasSupportedAudio51Tracks()};
g.J.setUserAudio51Preference=function(e,N){this.app.NU().setUserAudio51Preference(e,N===void 0?!1:N)};
g.J.getUserAudio51Preference=function(){return this.app.NU().getUserAudio51Preference()};
g.J.setProximaLatencyPreference=function(e){this.app.NU().setProximaLatencyPreference(e)};
g.J.getProximaLatencyPreference=function(){return this.app.NU().getProximaLatencyPreference()};
g.J.isProximaLatencyEligible=function(){return this.app.NU().isProximaLatencyEligible()};
g.J.getAppState=function(){return this.app.getAppState()};
g.J.updateLastActiveTime=function(){dW()};
g.J.setBlackout=function(e){this.app.setBlackout(e)};
g.J.setUserEngagement=function(e){this.app.X().rk!==e&&(this.app.X().rk=e,this.app.NU().yq())};
g.J.updateSubtitlesUserSettings=function(e,N){N=N===void 0?!0:N;g.fZ(this.app.jR()).zs(e,N)};
g.J.getCaptionWindowContainerId=function(){var e=g.fZ(this.app.jR());return e?e.getCaptionWindowContainerId():""};
g.J.toggleSubtitlesOn=function(){var e=g.fZ(this.app.jR());e&&e.V$()};
g.J.isSubtitlesOn=function(){var e=g.fZ(this.app.jR());return e?e.isSubtitlesOn():!1};
g.J.getPlayerResponse=function(e){return(e=this.app.Ug(e))?e.getVideoData().getPlayerResponse():null};
g.J.Pn=function(){return this.getPlayerResponse(1)};
g.J.getEmbeddedPlayerResponse=function(){return this.app.NU().getVideoData().getEmbeddedPlayerResponse()};
g.J.getWatchNextResponse=function(e){return(e=this.app.Ug(e))?e.getVideoData().getWatchNextResponse():null};
g.J.Wn=function(){return this.getWatchNextResponse(1)};
g.J.getHeartbeatResponse=function(e){return(e=this.app.Ug(e))?e.getVideoData().getHeartbeatResponse():null};
g.J.cn=function(){return this.getHeartbeatResponse(1)};
g.J.getStoryboardFrame=function(e,N){var y=this.app.nO();if(!y)return null;N=y.levels[N];return N?(e=g.zr(N,e))?{column:e.column,columns:e.columns,height:e.Qp,row:e.row,rows:e.rows,url:e.url,width:e.XL}:null:null};
g.J.getStoryboardFrameIndex=function(e,N){var y=this.app.nO();if(!y)return-1;N=y.levels[N];if(!N)return-1;e-=this.w7();return N.P8(e)};
g.J.getStoryboardLevel=function(e){var N=this.app.nO();return N?(N=N.levels[e])?{index:e,intervalMs:N.J,maxFrameIndex:N.La(),minFrameIndex:N.T_()}:null:null};
g.J.getNumberOfStoryboardLevels=function(){var e=this.app.nO();return e?e.levels.length:0};
g.J.b_=function(){return this.getAudioTrack(1)};
g.J.getAudioTrack=function(e){return(e=this.app.Ug(e))?e.getAudioTrack():this.app.getVideoData().il};
g.J.setAudioTrack=function(e,N,y){this.kU()===3&&hu(this.app.jR()).D2("control_set_audio_track",e);return(y=this.app.Ug(y))?y.qM(e,N):!1};
g.J.ozG=function(e,N){return this.setAudioTrack(e,N,1)};
g.J.OB=function(){return this.getAvailableAudioTracks(1)};
g.J.getAvailableAudioTracks=function(e){return this.app.Ug(e).getAvailableAudioTracks()};
g.J.getMaxPlaybackQuality=function(){var e=this.app.NU();return e.getVideoData().N?sj(e.aG()):"unknown"};
g.J.getUserPlaybackQualityPreference=function(){return this.app.NU().getUserPlaybackQualityPreference()};
g.J.getSubtitlesUserSettings=function(){var e=g.fZ(this.app.jR());return e?e.Gw():null};
g.J.resetSubtitlesUserSettings=function(){g.fZ(this.app.jR()).hiP()};
g.J.setMinimized=function(e){this.app.setMinimized(e)};
g.J.setOverlayVisibility=function(e){this.publish("overlayvisibilitychange",e)};
g.J.setInlinePreview=function(e){this.app.setInlinePreview(e)};
g.J.setSqueezeback=function(e){this.app.setSqueezeback(e)};
g.J.setGlobalCrop=function(e){this.app.Fz().setGlobalCrop(e)};
g.J.setAppFullscreen=function(e){this.app.q3(e?4:0)};
g.J.UP=function(){return this.app.UP()};
g.J.getVisibilityState=function(){return this.UP().getVisibilityState(this.ox(),this.Xi()||g.Pg(this.app.X()),this.isMinimized(),this.isInline(),this.app.Wp(),this.app.j3(),this.app.ly(),this.app.gN())};
g.J.isMutedByMutedAutoplay=function(){return this.app.Xt};
g.J.isMutedByEmbedsMutedAutoplay=function(){return Ju(this.app)};
g.J.setInternalSize=function(e,N){this.app.Fz().setInternalSize(new g.l8(e,N))};
g.J.w7=function(){var e=this.app.Ug();return e?e.w7():0};
g.J.isMinimized=function(){return this.app.isMinimized()};
g.J.Wp=function(){return this.app.Wp()};
g.J.ox=function(){var e=this.app.nh();return!!e&&e.ox()};
g.J.setSafetyMode=function(e){this.app.X().enableSafetyMode=e};
g.J.canPlayType=function(e){return this.app.canPlayType(e)};
g.J.updatePlaylist=function(e){if(e){var N=this.getPlaylistId(),y=!1;N&&N!==e.list&&(y=!0);e.external_list!==void 0&&(this.app.nj=A2(!1,e.external_list));var w=e.video;(N=this.app.getPlaylist())&&!y?this.isFullscreen()&&((y=w[N.index])&&y.encrypted_id!==g.Bo(N).videoId||(e.index=N.index)):vR(this.app,{list:e.list,index:e.index,playlist_length:w.length});mh9(this.app.getPlaylist(),e);this.pC("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.J.updateVideoData=function(e,N){g.ZG(this.app.NU().getVideoData(),e,N)};
g.J.updateEnvironmentData=function(e){gw(this.app.X(),e,!1)};
g.J.GoG=function(e){this.app.sendVideoStatsEngageEvent(e,1)};
g.J.productsInVideoVisibilityUpdated=function(e){this.publish("changeProductsInVideoVisibility",e)};
g.J.isAtLiveHead=function(e,N){return this.app.isAtLiveHead(e,N===void 0?!0:N)};
g.J.getVideoAspectRatio=function(){return this.app.Fz().getVideoAspectRatio()};
g.J.getPreferredQuality=function(){var e=this.app.nh();return e?e.getPreferredQuality():"unknown"};
g.J.getPlaybackQualityLabel=function(e){if(e=this.app.Ug(e)){var N,y;return((y=(N=e.getVideoData().N)==null?void 0:N.video)==null?void 0:y.qualityLabel)||""}return""};
g.J.setPlaybackQualityRange=function(e,N,y,w){(w=this.app.Ug(w))&&w.wM(g.Rx(e,N||e,!0,"m"),!0,y)};
g.J.UGq=function(e,N,y){this.setPlaybackQualityRange(e,N,y,1)};
g.J.onAdUxClicked=function(e,N){this.publish("aduxclicked",e,N)};
g.J.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.J.dispatchReduxAction=function(e){g.WH.dispatch(e)};
g.J.highlightSettingsMenuItem=function(e){this.publish("highlightSettingsMenu",e)};
g.J.openSettingsMenuItem=function(e){this.publish("openSettingsMenuItem",e)};
g.J.lO=function(e,N){this.state.N.subscribe(e,N)};
g.J.koP=function(e,N){this.state.N.unsubscribe(e,N)};
g.J.b2=function(e,N){this.cueVideoByPlayerVars(e,N===void 0?1:N)};
g.J.Fo9=function(e,N,y,w){this.loadVideoByPlayerVars(e,N,y===void 0?1:y,w)};
g.J.n9t=function(e,N,y,w){this.preloadVideoByPlayerVars(e,N===void 0?1:N,y,w)};
g.J.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.J.Nr=function(){return g.T9(this).Nr()};
g.J.xx=function(){return g.T9(this).xx()};
g.J.Dk=function(){return g.T9(this).Dk()};
g.J.Rf=function(){return this.Yp().Rf()};
g.J.Zk=function(){var e=g.iE.apply(0,arguments),N;(N=this.Rf()).Zk.apply(N,g.B(e))};
g.J.xp=function(){this.Rf().xp()};
g.J.Mj=function(){this.Rf().Mj()};
g.J.SY=function(){this.Rf().hide()};
g.J.ze=function(e,N,y,w,E,A,T,p){this.Rf().ze(e,N,y,w,E,A,T,p)};
g.J.AE=function(e,N){this.Rf().AE(e,N)};
g.J.yg=function(e,N,y,w,E){this.Yp().yg(e,N,y,w,E)};
g.J.jt=function(e){this.Rf().setEnabled(e)};
g.J.Bv=function(e,N){this.Yp().Bv(e,N)};
g.J.wG=function(e,N){this.Yp().wG(e,N)};
g.J.hO=function(e,N){this.Yp().hO(e,N)};
g.J.Jm=function(){this.Yp().Jm()};
g.J.Aj=function(e,N){this.Yp().Aj(e,N)};
g.J.rj=N3(4);g.J.L8=N3(6);g.J.jy=N3(9);g.J.f2=N3(12);g.J.renderChapterSeekingAnimation=function(e,N,y){this.Yp().renderChapterSeekingAnimation(e,N,y)};
g.J.v5=function(){this.Yp().v5()};
g.J.getWebPlayerContextConfig=function(){return this.app.X().getWebPlayerContextConfig()};
g.J.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.J.rf=function(){var e=this.app.nh();return e?e.rf():""};g.b(g.SX,g.YS);g.J=g.SX.prototype;g.J.gq=function(e,N,y,w,E,A,T){return this.app.gq(e,N,y,w,E,A,T)};
g.J.ZR=function(){return this.app.ZR()};
g.J.J$=N3(14);g.J.jR=function(){return this.app.jR()};
g.J.OX=function(){var e=this.jR().x9.get("endscreen");return!!e&&e.OX()};
g.J.getRootNode=function(){return this.Fz().element};
g.J.X=function(){return this.app.X()};
g.J.bY=N3(17);g.J.WI=function(e){return this.app.WI(e)};
g.J.X6=function(){var e;return((e=g.T9(this))==null?void 0:e.X6())||null};
g.J.vQ=function(){var e;return(e=this.app.nh())==null?void 0:e.vQ()};
g.J.getPlayerStateObject=function(e){return this.app.getPlayerStateObject(e)};
g.J.Fz=function(){return this.app.Fz()};
g.J.getPlaylist=function(){return this.app.getPlaylist()};
g.J.getVideoData=function(e,N){N=N===void 0?!1:N;var y=this.app.Ug(e);if(!y)return null;y=y.getVideoData();if(N)var w=y;else if(y.enableServerStitchedDai&&e===2||g.xK(y)&&e!==1)a:{y=this.app;N=y.getVideoData();if(y.Q6){e=y.Q6;y=y.getCurrentTime();if(e.g2)var E=void 0;else{var A=void 0;e.hM&&(A=e.K.get(e.hM));if(!A){A=PTE(e,y*1E3);var T=(E=A)==null?void 0:E.cpn;e.hM?T&&e.hM!==T&&e.playback.Fh("sdai",{cpcnm:T+"_"+e.hM,cmt:y.toFixed(3)}):e.playback.Fh("sdai",{cpcna:T,cmt:y.toFixed(3)})}E=(w=A)==null?
void 0:w.videoData}N=E||N}else if(y.k_&&y.nh()){w=y.k_.getVideoData(e);break a}w=N}else w=y;return w};
g.J.K_=function(){var e;return((e=this.app.nh())==null?void 0:e.K_())||null};
g.J.nO=function(e){return this.app.nO(e)};
g.J.gN=function(){return this.app.gN()};
g.J.isHdr=function(){var e=this.app.nh();return e?e.isHdr():!1};
g.J.iS=function(){return this.app.iS()};
g.J.isEmbedsShortsMode=function(){var e=g.T9(this),N=this.getVideoData();e=e?e.r8:this.getPlayerSize();var y=!!this.getPlaylist();return!(!N||!N.isEmbedsShortsMode(new g.l8(e.width,e.height),y))};
g.J.Tb=function(e){this.app.Tb(e)};
g.J.MP=function(e,N,y,w,E){this.app.zS(e,N,y,w,E)};
g.J.qo=function(e,N){this.app.qo(e,N)};
g.J.playVideo=function(e,N){try{if(this.getPresentingPlayerType()===3){hu(this.app.jR()).D2("control_play");return}if(!e&&this.getPresentingPlayerType()===2){var y=ql(this.app.jR());if(y&&pAM(y))return}}catch(w){g.t0(w)}this.app.playVideo(e,N)};
g.J.stopVideo=function(e){this.app.Ug(e).stopVideo()};
g.J.wK=function(e){this.app.Ug(e).wK()};
g.J.addEventListener=function(e,N){this.state.K.subscribe(e,N)};
g.J.removeEventListener=function(e,N){this.state.K.unsubscribe(e,N)};
g.J.rO=function(e){this.app.rO(e)};
g.J.setPlaybackQuality=function(e,N){this.setPlaybackQualityRange(e,e,N)};
g.J.Sg=function(){var e={},N=this.app.nh().Sg();N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,e[y.quality]=y;return e};
g.J.ME=function(){return this.app.nh().ME()};
g.J.bJ=N3(22);g.J.gV=function(e){this.app.gV(e);e&&PL_(this.app,e)};
g.J.getVideoUrl=function(e,N,y,w){var E=this.getPresentingPlayerType(),A=E===2;if(w&&A||E===3)A=!1,E=1;w=this.getVideoData(E);if(!w)return"";var T;e||w.isLivePlayback||(T=Math.floor(this.getCurrentTime(E)));e=A?void 0:this.getPlaylistId()||void 0;N&&e==="WL"&&(e=void 0);return this.app.getVideoUrl(w.videoId,e,T,N,y)};
g.J.X7=N3(24);g.J.pE=N3(29);g.J.bI=function(e){var N;(N=this.app.nh())==null||N.bI(e)};
g.J.t1=N3(34);g.J.DK=N3(39);g.J.aE=function(e,N){this.jR().aE(e,N)};
g.J.CO=function(){var e=g.jB(this.jR());return!!e&&e.CO()};
g.J.fz=function(){var e=g.jB(this.jR());return!!e&&e.fz()};
g.J.P4=function(e,N,y){var w=g.jB(this.jR());w&&w.P4(e,N,y)};
g.J.C8=N3(40);g.J.W_=function(){var e;(e=this.app.nh())!=null&&e.JW.W_()};
g.J.f0=function(e){this.pC("onVideoAreaChange");this.pC(e?"onShowControls":"onHideControls")};
g.J.eW=function(e,N){var y=g.T9(this);if(y)return y.eW(e,N);e=this.app.Fz().aV();return new g.pK(0,0,e.width,e.height)};
g.J.hB=function(){var e=this.jR().x9.get("heartbeat");return!!e&&e.hB()};
g.J.Bf=function(){var e=this.X();if(e.Zl||e.disableSeek)return!1;var N=this.app.nh();if(!N)return!1;var y=N.getVideoData();if(!y.WG()||g.bk(y)||this.getPresentingPlayerType()===2&&!this.app.As()||y.Au()&&this.getPresentingPlayerType(!0)===2||N.V_()&&this.getPresentingPlayerType()!==3)return!1;e=g.zX(e);return g.Yh(e)&&!y.d2||Ju(this.app)?!1:!0};
g.J.qL=function(){var e=this.app.nh();return e?e.Nj():!1};
g.J.isLifaAdPlaying=function(){var e,N=(e=this.getVideoData())==null?void 0:e.Au();return this.getPresentingPlayerType(N)===2};
g.J.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.J.aS=function(){var e;(e=this.app.nh())==null||e.aS()};
g.J.sendVideoStatsEngageEvent=function(e,N,y){this.app.sendVideoStatsEngageEvent(e,y,N)};
g.J.wx=function(e,N,y){this.app.Ef(e,N,y)};
g.J.bl=function(e,N){this.app.E7(e,N)};
g.J.MK=function(e,N){A8M(this.app,e,N)};
g.J.lJ=N3(43);g.J.iX=function(e){return this.app.iX(e)};
g.J.Go=function(e,N){var y;(y=this.app.Ug(N))==null||y.Go(e)};
g.J.V_=function(){var e=this.app.Ug();return e?e.V_():!0};
g.J.jJ=function(){var e=this.getVideoData();return!!e&&(e.jJ()||!!e.hlsFormats||!!e.U2)};
g.J.getPlaybackRate=function(){return this.app.NU().getPlaybackRate()};
g.J.setPlaybackRate=function(e,N){this.app.setPlaybackRate(e,N)};
g.J.LC=function(){return this.app.LC()};
g.J.s4=function(){return this.app.s4()};
g.J.FW=function(e){return this.app.FW(e)};
g.J.createClientVe=function(e,N,y,w){this.X().Wk&&this.app.zr.createClientVe(e,N,y,w===void 0?!1:w)};
g.J.createServerVe=function(e,N,y){this.X().Wk&&this.app.zr.createServerVe(e,N,y===void 0?!1:y)};
g.J.setTrackingParams=function(e,N){this.X().Wk&&this.app.zr.setTrackingParams(e,N)};
g.J.logClick=function(e,N){this.X().Wk&&(this.app.zr.click(e,N),this.publish("veClickLogged",e))};
g.J.logVisibility=function(e,N,y){this.X().Wk&&this.app.zr.KX(e,N,y)};
g.J.hasVe=function(e){return this.X().Wk?this.app.zr.hasVe(e):!1};
g.J.destroyVe=function(e){this.X().Wk&&this.app.zr.destroyVe(e)};
g.J.getPresentingPlayerType=function(e){return this.app.getPresentingPlayerType(e)};
g.J.G5=function(){this.app.G5()};
g.J.IT=N3(45);g.J.yY=function(e){this.app.yY(e)};
g.J.Z$=function(){this.app.Z$()};
g.J.O1=function(){return this.app.O1()};
g.J.addPlayerResponseForAssociation=function(e){this.app.addPlayerResponseForAssociation(e)};
g.J.finishSegmentByCpn=function(e,N,y){return this.app.finishSegmentByCpn(e,N,y)};
g.J.r$=function(e,N,y,w,E,A,T){return this.app.r$(e,N,y,w,E,A,T)};
g.J.tB=function(e,N,y,w,E,A,T){return this.app.tB(e,N,y,w,E,A,T)};
g.J.ws=function(){return this.app.ws()};
g.J.Mp=function(e){this.app.Mp(e)};
g.J.Qn=function(e,N){N=N===void 0?Infinity:N;this.app.Qn(e===void 0?-1:e,N)};
g.J.XU=function(e){var N;(N=g.fZ(this.jR()))==null||N.XU(e)};
g.J.mX=function(e,N,y){this.app.mX(e,N,y)};
g.J.k7=function(){return this.app.k7()};
g.J.r0=function(e,N,y){this.app.r0(e,N,y===void 0?0:y)};
g.J.xB=function(){return this.app.xB()};
g.J.As=function(){return this.app.As()};
g.J.Hi=function(e,N,y){return this.app.Hi(e,N,y)};
g.J.Fh=function(e,N,y,w){y=y===void 0?!1:y;var E;(E=this.app.Ug(w))==null||E.Fh(e,N,y)};
g.J.wX=function(e,N){this.publish("aduxmouseover",e,N)};
g.J.bT=function(e,N){this.publish("aduxmouseout",e,N)};
g.J.UG=function(e,N){this.publish("muteadaccepted",e,N)};
g.J.OW=function(){return this.app.Fz().OW()};
g.J.c7=function(e){this.app.Fz().c7(e)};
g.J.Ll=function(e){return e?this.app.Eu():(e=this.app.nh())?e.Ll():!1};
g.J.lG=function(e){this.app.lG(e)};
g.J.Y7=function(){this.app.NU().Y7()};
g.J.TE=function(){var e;(e=this.app.nh())==null||e.TE()};
g.J.MB=function(){this.app.MB()};
g.J.getGetAdBreakContext=function(){var e=this.app.NU();return e.getVideoData().getGetAdBreakContext(e.getCurrentTime(),e.w7())};
g.J.Z6=function(e,N){var y;(y=this.app.nh())==null||y.Z6(e,N)};
g.J.l$=function(){var e;return((e=this.app.nh())==null?void 0:e.l$())||!1};var vb;g.b(Iq,nO);Iq.prototype.PQ=function(e,N){e=nO.prototype.PQ.call(this,e,N);return Object.assign({},e,this.requestHeaders)};g.b(g.Dq,g.Mu);g.J=g.Dq.prototype;g.J.show=function(){var e=this.e1();g.Mu.prototype.show.call(this);this.l9&&(this.U.Y(window,"blur",this.rT),this.U.Y(gZ(this),"click",this.Eq));e||this.publish("show",!0)};
g.J.hide=function(){var e=this.e1();g.Mu.prototype.hide.call(this);tw5(this);e&&this.publish("show",!1)};
g.J.WY=function(e,N){this.N=e;this.Ng.show();N?(this.D||(this.D=this.U.Y(this.C,"appresize",this.Va)),this.Va()):this.D&&(this.U.CX(this.D),this.D=void 0)};
g.J.h6=function(){this.N&&this.element&&(this.N.getAttribute("aria-haspopup"),this.N.setAttribute("aria-expanded","true"),this.focus())};
g.J.Va=function(){var e=g.T9(this.C);this.N&&e.yg(this.element,this.N)};
g.J.rT=function(){var e=this.e1();tw5(this);this.Ng.hide();e&&this.publish("show",!1)};
g.J.Eq=function(e){var N=vE(e);N&&(g.Ex(this.element,N)||this.N&&g.Ex(this.N,N)||!g.dh(e))||this.rT()};
g.J.e1=function(){return this.Og&&this.Ng.state!==4};g.b(fD,g.Dq);fD.prototype.WY=function(){g.Dq.prototype.WY.call(this);this.dialog.focus()};g.b(g.uh,g.Mu);g.uh.prototype.setIcon=function(e){this.updateValue("icon",e)};
g.uh.prototype.updateValue=function(e,N){g.Mu.prototype.updateValue.call(this,e,N);this.publish("size-change")};g.aq={M$:15,psP:14,PZh:13,Xp:12,DX:11,II:10,Nq:9,vB:8,AUDIO:7,SUBTITLES:6,SLEEP_TIMER:5,Ve:4,e6:3,EIt:2,REMOTE:1,G4P:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SLEEP_TIMER",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.b(Zq,g.uh);Zq.prototype.nx=function(e){this.N&&this.C.logVisibility(this.element,this.J&&e)};
Zq.prototype.j=function(){var e,N,y=(e=this.C.getVideoData())==null?void 0:(N=e.accountLinkingConfig)==null?void 0:N.linked;if(y&&!this.J){var w;e=(w=this.C.getVideoData())==null?void 0:w.accountLinkingConfig;this.setIcon(Bq());var E;g.tu(this,xS(e==null?void 0:(E=e.menuData)==null?void 0:E.connectedMenuLabel));var A,T,p;this.K=new fD(this.C,xS(e==null?void 0:(A=e.menuData)==null?void 0:A.connectedDialogTitle),xS(e==null?void 0:(T=e.menuData)==null?void 0:T.connectedDialogMessage),xS(e==null?void 0:
(p=e.menuData)==null?void 0:p.confirmButtonText));g.Q(this,this.K);var C;w=(e==null?void 0:(C=e.menuData)==null?void 0:C.trackingParams)||null;(this.N=!!w)&&this.C.setTrackingParams(this.element,w);this.x_.Gi(this);this.J=!0}else!y&&this.J&&(this.x_.MS(this),this.J=!1)};
Zq.prototype.onClick=function(){this.N&&this.C.logClick(this.element);this.x_.rT();this.K&&this.K.WY()};g.b(jX,g.x);jX.prototype.T=function(e){return this.api.T(e)};g.b(nD,jX);nD.prototype.onVideoDataChange=function(e){if(!e.accountLinkingConfig){var N,y=(N=e.getPlayerResponse())==null?void 0:N.accountLinkingConfig;e.accountLinkingConfig=y}var w;if(N=(w=e.accountLinkingConfig)==null?void 0:w.alsParam)e.X1=N};
nD.prototype.setAccountLinkState=function(e){this.api.getVideoData().X1=e;this.api.W_()};
nD.prototype.updateAccountLinkingConfig=function(e){var N=this.api.getVideoData(),y=N.accountLinkingConfig;y&&(y.linked=e);this.api.publish("videodatachange","dataupdated",N,this.api.getPresentingPlayerType())};g.b(m3,jX);
m3.prototype.N=function(e){var N=e.getId(),y=this.api.getVideoData(1),w=!this.api.isInline();if(!y.inlineMetricEnabled&&!this.api.T("enable_player_logging_lr_home_infeed_ads")||w){if(N==="part2viewed"){if(y.y3&&g.mK(y.y3),y.aF&&Hb(this,y.aF),y.dJ)for(var E={CPN:this.api.getVideoData().clientPlaybackNonce},A=g.c(y.dJ),T=A.next();!T.done;T=A.next())Hb(this,g.Vx(T.value,E))}else N==="conversionview"?this.api.Y7():N==="engagedview"&&y.vp&&(E={CPN:this.api.getVideoData().clientPlaybackNonce},g.mK(g.Vx(y.vp,
E)));y.XD&&(E=y.XD,A=e.getId(),E=pp(E,{label:A}),g.mK(E));switch(N){case "videoplaytime25":y.r_&&Hb(this,y.r_);y.vV&&KD(this,y.vV);y.bH&&g.mK(y.bH);break;case "videoplaytime50":y.LA&&Hb(this,y.LA);y.Vw&&KD(this,y.Vw);y.Mm&&g.mK(y.Mm);break;case "videoplaytime75":y.g_&&Hb(this,y.g_);y.Qw&&KD(this,y.Qw);y.ij&&g.mK(y.ij);break;case "videoplaytime100":y.ZG&&Hb(this,y.ZG),y.Ub&&KD(this,y.Ub),y.V3&&g.mK(y.V3)}(E=this.api.getVideoData().NE)&&jcn(this,E,e.getId())&&jcn(this,E,e.getId()+"gaia")}if(y.inlineMetricEnabled&&
!w)switch(N){case "videoplaybackstart":var p,C=(p=y.Ry)==null?void 0:p.J;C&&Hb(this,C);break;case "videoplayback2s":(p=(C=y.Ry)==null?void 0:C.K)&&Hb(this,p);break;case "videoplayback10s":var r;(p=(r=y.Ry)==null?void 0:r.N)&&Hb(this,p)}this.api.bl([e],1)};g.b(Qcs,jX);g.b(Wb,g.W);g.J=Wb.prototype;
g.J.BV=function(){var e;if(e=this.C.getPresentingPlayerType()!==3&&g.dZ(this.C)&&this.C.Fz().getPlayerSize().width>=400)if(e=this.M7(),this.C.X().T("client_respect_autoplay_switch_button_renderer"))e=!!e.autoplaySwitchButtonRenderer;else{var N,y,w,E;e=!!((N=e.getWatchNextResponse())==null?0:(y=N.contents)==null?0:(w=y.twoColumnWatchNextResults)==null?0:(E=w.autoplay)==null?0:E.autoplay)!==!1}if(e)this.J||(this.J=!0,this.KX(this.J),this.C.X().T("web_player_autonav_toggle_always_listen")||mC3(this),
N=this.M7(),this.oQ(N.autonavState),this.C.logVisibility(this.element,this.J));else if(this.J=!1,this.KX(this.J),!this.C.X().T("web_player_autonav_toggle_always_listen"))for(this.C.X().T("web_player_autonav_toggle_always_listen"),N=g.c(this.N),y=N.next();!y.done;y=N.next())this.CX(y.value)};
g.J.oQ=function(e){Kln(this)?this.isChecked=e!==1:((e=e!==1)||(g.m6(),e=g.Xj("web_autonav_allow_off_by_default")&&!g.HE(0,141)&&g.Lb("AUTONAV_OFF_BY_DEFAULT")?!1:!g.HE(0,140)),this.isChecked=e);HsH(this)};
g.J.onClick=function(){this.isChecked=!this.isChecked;this.C.gV(this.isChecked?2:1);HsH(this);if(Kln(this)){var e=this.M7().autoplaySwitchButtonRenderer;this.isChecked&&(e==null?0:e.onEnabledCommand)?this.C.Mg("innertubeCommand",e.onEnabledCommand):!this.isChecked&&(e==null?0:e.onDisabledCommand)&&this.C.Mg("innertubeCommand",e.onDisabledCommand)}this.C.logClick(this.element)};
g.J.getValue=function(){return this.isChecked};
g.J.M7=function(){return this.C.getVideoData(1)};g.b(WlM,jX);g.b(Oc,g.uh);Oc.prototype.onClick=function(){this.enabled&&(Rq(this,!this.checked),this.publish("select",this.checked))};
Oc.prototype.getValue=function(){return this.checked};
Oc.prototype.setEnabled=function(e){(this.enabled=e)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var RqJ=["en-CA","en","es-MX","fr-CA"];g.b(Nw,Oc);Nw.prototype.GZ=function(e){e?this.J||(this.x_.Gi(this),this.J=!0):this.J&&(this.x_.MS(this),this.J=!1);this.J&&Rq(this,$xH())};
Nw.prototype.j=function(){g.re(this.element,"ytp-menuitem-highlight-transition-enabled")};
Nw.prototype.K=function(e){var N=$xH();e!==N&&(N=g.m6(),WE(190,e),WE(192,!0),N.save(),this.C.Mg("cinematicSettingsToggleChange",e))};
Nw.prototype.fh=function(){this.J&&this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(y9,jX);y9.prototype.updateCinematicSettings=function(e){this.J=e;var N;(N=this.menuItem)==null||N.GZ(e);this.api.publish("onCinematicSettingsVisibilityChange",e)};g.b(w3,jX);w3.prototype.qQ=function(e,N){N=N.clipConfig;e==="dataloaded"&&N&&N.startTimeMs!=null&&N.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(N.startTimeMs)),endTimeMs:Math.floor(Number(N.endTimeMs)),postId:N.postId,type:"clips"})};g.b(Ei,jX);Ei.prototype.setCreatorEndscreenVisibility=function(e){var N;(N=nZ(this.api.jR()))==null||N.KX(e)};
Ei.prototype.J=function(e){function N(w){w==="creatorendscreen"&&(w=nZ(y.api.jR()))&&w.nzZ(y.hideButton)}
var y=this;this.hideButton=e;this.events.Y(this.api,"modulecreated",N);N("creatorendscreen")};g.b(Az,Oc);Az.prototype.K=function(e){this.j(e?1:0)};
Az.prototype.N=function(){var e=this.hasDrcAudioTrack(),N=this.J()===1&&e;Rq(this,N);this.setEnabled(e)};
Az.prototype.fh=function(){this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(Tc,jX);Tc.prototype.getDrcUserPreference=function(){return this.J};
Tc.prototype.setDrcUserPreference=function(e){g.uY("yt-player-drc-pref",e,31536E3);e!==this.J&&(this.J=e,this.updateEnvironmentData(),this.N()&&this.api.TE())};
Tc.prototype.updateEnvironmentData=function(){this.api.X().Js=this.J===1};
Tc.prototype.N=function(){var e,N,y=(e=this.api.getVideoData())==null?void 0:(N=e.K)==null?void 0:N.J;if(!y)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.T("mta_drc_mutual_exclusion_removal")){var w=this.api.getAudioTrack().Vl.id;return DR(y,function(E){var A;return E.audio.J&&((A=E.Vl)==null?void 0:A.id)===w})}return DR(y,function(E){var A;
return((A=E.audio)==null?void 0:A.J)===!0})};g.b(Jz,jX);Jz.prototype.onVideoDataChange=function(){var e=this,N=this.api.getVideoData();this.api.MK("embargo",1);var y=N==null?void 0:N.pT.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(y==null?0:y.length)?sc0(this,y.filter(function(w){return LlJ(e,w)})):(N==null?0:N.cueRanges)&&sc0(this,N.cueRanges.filter(function(w){return LlJ(e,w)}))};
Jz.prototype.N=function(e){return e.embargo!==void 0};
Jz.prototype.fh=function(){jX.prototype.fh.call(this);this.J={}};g.b(p5,jX);
p5.prototype.addEmbedsConversionTrackingParams=function(e){var N=this.api.X(),y=N.widgetReferrer,w=N.VB,E=this.J,A="",T=N.getWebPlayerContextConfig();T&&(A=T.embedsIframeOriginParam||"");y.length>0&&(e.embeds_widget_referrer=y);w.length>0&&(e.embeds_referring_euri=w);N.j&&A.length>0&&(e.embeds_referring_origin=A);T&&T.embedsFeature&&(e.feature=T.embedsFeature);E.length>0&&(N.T("embeds_web_enable_lite_experiment_control_arm_logging")?E.unshift(28572):g.Yh(g.zX(N))&&E.unshift(159628),N=E.join(","),N=
g.O8()?N:g.b7(N,4),e.source_ve_path=N);this.J.length=0};g.b(azP,jX);g.b(eBM,jX);g.b(C5,g.x);C5.prototype.fh=function(){g.x.prototype.fh.call(this);this.J=null;this.N&&this.N.disconnect()};g.b(y$0,jX);g.b(r3,g.W);r3.prototype.show=function(){g.W.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
r3.prototype.onVideoDataChange=function(e){var N,y,w=(N=this.api.getVideoData())==null?void 0:(y=N.getPlayerResponse())==null?void 0:y.playabilityStatus;w&&(N=w1F(w),g.G(this.api.getPlayerStateObject(),128)||e==="dataloaderror"||!N?(this.N=0,$8(this),this.hide()):(e=(N.remainingTimeSecs||0)*1E3,e>0&&(this.show(),this.updateValue("label",rQ(N.label)),A$3(this,e))))};
r3.prototype.fh=function(){$8(this);g.W.prototype.fh.call(this)};g.b(TQ5,jX);g.b(Y8,g.W);Y8.prototype.onClick=function(){this.Lh.logClick(this.element);this.Lh.Mg("onFullerscreenEduClicked")};
Y8.prototype.GZ=function(){this.Lh.isFullscreen()?this.N?this.J.hide():this.J.show():this.hide();this.Lh.logVisibility(this.element,this.Lh.isFullscreen()&&!this.N)};g.b(Mw,jX);Mw.prototype.updateFullerscreenEduButtonSubtleModeState=function(e){var N;(N=this.J)!=null&&(g.Y1(N.element,"ytp-fullerscreen-edu-button-subtle",e),e&&!N.K&&(N.element.setAttribute("title","Scroll for details"),lh(N.Lh,N.element,N),N.K=!0))};
Mw.prototype.updateFullerscreenEduButtonVisibility=function(e){var N;(N=this.J)!=null&&(N.N=e,N.GZ())};g.b(J$M,g.W);g.b(r$E,jX);g.b(l3,jX);l3.prototype.getSphericalProperties=function(){var e=g.Bb(this.api.jR());return e?e.getSphericalProperties():{}};
l3.prototype.setSphericalProperties=function(e){if(e){var N=g.Bb(this.api.jR());N&&N.setSphericalProperties(e,!0)}};g.b(FC,jX);g.J=FC.prototype;g.J.createClientVe=function(e,N,y,w){this.api.createClientVe(e,N,y,w===void 0?!1:w)};
g.J.createServerVe=function(e,N,y){this.api.createServerVe(e,N,y===void 0?!1:y)};
g.J.setTrackingParams=function(e,N){this.api.setTrackingParams(e,N)};
g.J.logClick=function(e,N){this.api.logClick(e,N)};
g.J.logVisibility=function(e,N,y){this.api.logVisibility(e,N,y)};
g.J.hasVe=function(e){return this.api.hasVe(e)};
g.J.destroyVe=function(e){this.api.destroyVe(e)};var Yj5=!1;oE.prototype.setPlaybackRate=function(e){this.playbackRate=Math.max(1,e)};
oE.prototype.getPlaybackRate=function(){return this.playbackRate};B0.prototype.Y0=function(e){var N=g.Ld(e.info.J.info,this.rP.Cx),y=e.info.Ch+this.j,w=e.info.startTime*1E3;if(this.policy.Wk)try{w=this.policy.Wk?g.K1(e)*1E3:e.info.startTime*1E3}catch(T){Math.random()>.99&&this.logger&&(w=B8(e.J).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:e.info.O2(),encodedDataView:g.oN(w,4)})),w=e.info.startTime*1E3}var E=e.info.clipId,A=this.policy.Wk?g.$$J(e)*1E3:e.info.duration*1E3;this.policy.Wk&&(w<0||A<0)&&(this.logger&&(this.logger({missingSegInfo:e.info.O2(),
startTimeMs:w,durationMs:A}),this.policy.Ps||(w<0&&(w=e.info.startTime*1E3),A<0&&(A=e.info.duration*1E3))),this.policy.Ps&&(w<0&&(w=e.info.startTime*1E3),A<0&&(A=e.info.duration*1E3)));return{formatId:N,Ch:y,startTimeMs:w,clipId:E,PL:A}};
B0.prototype.lZ=function(e){this.timestampOffset=e};d3.prototype.seek=function(e,N){e!==this.J&&(this.seekCount=0);this.J=e;var y=this.videoTrack.N,w=this.audioTrack.N,E=this.audioTrack.TW,A=Dc1(this,this.videoTrack,e,this.videoTrack.TW,N);N=Dc1(this,this.audioTrack,this.policy.jp?e:A,E,N);e=Math.max(e,A,N);this.L=!0;this.rP.isManifestless&&(dcM(this,this.videoTrack,y),dcM(this,this.audioTrack,w));return e};
d3.prototype.isSeeking=function(){return this.L};
d3.prototype.xD=function(e){this.K=e};
var iA9=2/24;var fM1=0;g.J=qw.prototype;g.J.Fm=function(){this.Ng=this.now();VpP(this.bk,this.Ng);this.qU.Fm()};
g.J.X_=function(e,N){var y=this.policy.N?(0,g.iC)():0;Z2(this,e,N);e-this.Z<10&&this.N>0||this.F9(e,N);this.qU.X_(e,N);this.policy.N&&(e=(0,g.iC)()-y,this.SR+=e,this.Dl=Math.max(e,this.Dl))};
g.J.F9=function(e,N){var y=(e-this.Z)/1E3,w=N-this.K;this.Vm||(rw(this.bk,y,w),this.fd(y,w));this.Z=e;this.K=N};
g.J.c_=function(){this.i9&&tqM(this);this.qU.c_()};
g.J.nI=function(e){this.i9||(this.i9=this.L-this.Xz+e,this.FZ=this.L,this.jn=this.G)};
g.J.Kd=function(e,N){e=e===void 0?this.G:e;N=N===void 0?this.L:N;this.N>0||(this.D=e,this.N=N,this.Kh=this.isActive=!0)};
g.J.Dd=function(){return this.eV||2};
g.J.Ct=function(){};
g.J.gL=function(){var e,N={rn:this.requestNumber,rt:(this.G-this.J).toFixed(),lb:this.L,stall:(1E3*this.j).toFixed(),ht:(this.Ng-this.J).toFixed(),elt:(this.D-this.J).toFixed(),elb:this.N,d:(e=this.Rq)==null?void 0:e.jY()};this.url&&$cE(N,this.url);this.policy.N&&(N.mph=this.Dl.toFixed(),N.tph=this.SR.toFixed());N.ulb=this.l9;N.ult=this.U;N.abw=this.Zl;return N};
g.J.now=function(){return(0,g.iC)()};
g.J.deactivate=function(){this.isActive&&(this.isActive=!1)};g.b(j3,qw);g.J=j3.prototype;g.J.gL=function(){var e=qw.prototype.gL.call(this);e.pb=this.lw;e.pt=(1E3*this.Kx).toFixed();e.se=this.pX;return e};
g.J.df=function(){var e=this.qU;this.Ut||(this.Ut=e.df?e.df():1);return this.Ut};
g.J.yD=function(){return this.F6?this.df()!==1:!1};
g.J.KF=function(e,N,y){if(!this.Y_){this.Y_=!0;if(!this.Vm){Z2(this,e,N);this.F9(e,N);var w=this.df();this.pX=y;if(!this.policy.L||!this.Vm)if(w===2&&this.policy.L){w=e-this.D<this.Dd()*1E3+50;y=this.U?this.l9/(this.U/1E3):Math.max(this.policy.U,y||this.Zl);var E=this.J3*1.3;w&&y<E||(this.U?TX(this.bk,this.U/1E3,this.l9,this.aq||this.policy.Kh):TX(this.bk,N/y,N,.01));pa(this.bk,N,w?0:this.j)}else w===2?this.Vm||(this.U?TX(this.bk,this.U/1E3,this.l9,this.aq||this.policy.Kh):TX(this.bk,N/Math.max(this.policy.U,
y||this.Zl),N,.01),pa(this.bk,N,this.j)):w===1&&(w=(e-this.J)/1E3,!(w<=this.policy.j)&&this.policy.j||this.a9||this.policy.qg||!(this.N>0)||n5(this,w,N),this.N>0&&pa(this.bk,N,this.j));e=(e-this.J)/1E3||.01;this.policy.Ng&&!(this.N>0)||JR(this.bk,e,this.K,qjH(this),this.UT)}this.deactivate()}};
g.J.Iu=function(e,N,y){y&&(this.Ut=2);e<0&&this.eV&&(e=this.eV);N?this.Wk+=e:this.aq+=e};
g.J.Dd=function(){return this.aq||this.Wk||qw.prototype.Dd.call(this)};
g.J.F9=function(e,N){var y=(e-this.Z)/1E3,w=N-this.K,E=this.df();this.isActive?E===1&&((w>0||this.policy.Z)&&(y>.2||w<1024)?(this.j+=y,w>0&&y>.2&&n5(this,this.J3?y:.05,w),this.a9=!0):w>0&&(n5(this,y,w),this.a9=!0)):N&&N>=this.policy.J&&this.Kd(e,N);qw.prototype.F9.call(this,e,N)};
g.J.Ep=function(e){if(!this.Vm){Z2(this,e,this.L);var N=(e-this.J)/1E3;this.df()!==2&&this.N>0&&(this.j+=(e-this.Z)/1E3,pa(this.bk,this.K,this.j));JR(this.bk,N,this.K,qjH(this),this.UT,!0);e=(e-this.Z)/1E3;rw(this.bk,e,0);this.fd(e,0)}};
g.J.Kd=function(e,N){e=e===void 0?this.G:e;N=N===void 0?this.L:N;if(!(this.N>0)&&(qw.prototype.Kd.call(this,e,N),this.df()===1)){N=(this.Ng-this.J)/1E3;var y=(e-this.Ng)/1E3;this.F6&&Q9(this,this.now());this.dT||this.Vm||(this.eV&&(y=Math.max(0,y-this.eV)),e=this.bk,e.U.Kj(1,N),e.i9.Kj(1,y))}};
g.J.mY=function(){this.F6&&Q9(this,this.now());return this.Bk};
g.J.RL=function(){var e;if(e=this.K>this.bx)e=(e=this.K)?e>=this.policy.J:!1;return e};
g.J.KM=function(){return this.VB};
g.J.n4=function(e){e=e===void 0?this.now():e;if(this.F6){Q9(this,e);if(this.Ut?this.yD():this.qg!==this.Et){var N=this.Et;if(e<N){this.VB=this.Et;return}}else N=this.qg;N=Math.max(N,this.Bk)}else N=this.Bk;var y=this.lw-this.K;y<0&&(y=0);y=(y*this.snapshot.stall+y/this.snapshot.byterate)*1E3;this.VB=y=this.N>0?y+e:y+Math.max(e,N)};
g.J.e8=function(){return this.now()-this.D};
g.J.AG=function(){return(this.K-this.N)*1E3/this.e8()||0};
g.J.nR=function(){return this.D};mA.prototype.feed=function(e){bI(this.J,e);this.Ga()};
mA.prototype.Ga=function(){if(this.j){if(!this.J.getLength())return;var e=this.J.split(this.K-this.N),N=e.aA;e=e.h3;if(!this.qU.nI(this.j,N,this.N,this.K))return;this.N+=N.getLength();this.J=e;this.N===this.K&&(this.j=this.K=this.N=void 0)}for(;;){var y=0;e=g.c(nBP(this.J,y));N=e.next().value;y=e.next().value;y=g.c(nBP(this.J,y));e=y.next().value;y=y.next().value;if(N<0||e<0)break;if(!this.J.b8(y,e)){if(!this.qU.nI||!this.J.b8(y,1))break;y=this.J.split(y).h3;this.qU.nI(N,y,0,e)&&(this.j=N,this.N=
y.getLength(),this.K=e,this.J=new oR([]));break}e=this.J.split(y).h3.split(e);y=e.h3;this.qU.D$(N,e.aA);this.J=y}};
mA.prototype.dispose=function(){this.J=new oR};g.J=H0.prototype;g.J.W6=function(){return 0};
g.J.Ms=function(){return null};
g.J.CR=function(){return null};
g.J.C9=function(){return this.state>=1};
g.J.isComplete=function(){return this.state>=3};
g.J.Q_=function(){return this.state===5};
g.J.onStateChange=function(){};
g.J.IJ=function(e){var N=this.state;this.state=e;this.onStateChange(N);this.callback&&this.callback(this,N)};
g.J.Wg=function(e){e&&this.state<e?this.IJ(e):this.callback&&this.callback(this,this.state)};
g.J.Ss=function(){return this.state===-1};
g.J.O2=function(){var e="";this.info.QB.forEach(function(N){e+=N.O2()+"."});
return e.slice(0,-1)};
g.J.dispose=function(){this.Ss()||(this.info.QB[0].J.K=!1,this.IJ(-1))};
g.J.zm=function(){return 0};g.J=K5.prototype;g.J.Mc=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.qU.Fm()};
g.J.onError=function(){this.K=!0;this.onDone()};
g.J.onDone=function(){this.Ss||(this.j=!0,this.qU.c_())};
g.J.uJ=function(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED};
g.J.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(N){return""}};
g.J.rG=function(){return+this.getResponseHeader("content-length")};
g.J.BP=function(){return this.N};
g.J.CG=function(){return this.status>=200&&this.status<300&&!!this.N};
g.J.MO=function(){return this.J.getLength()>0};
g.J.Qg=function(){var e=this.J;this.J=new oR;return e};
g.J.xJ=function(){return this.J};
g.J.abort=function(){this.Ss=!0;this.xhr.abort()};
g.J.zE=function(){return!0};
g.J.GH=function(){return this.K};
g.J.Cq=function(){return""};g.J=K4n.prototype;g.J.getResponseHeader=function(e){return e==="content-type"?this.J.get("type"):""};
g.J.abort=function(){};
g.J.uJ=function(){return!0};
g.J.rG=function(){return this.range.length};
g.J.BP=function(){return this.loaded};
g.J.CG=function(){return!!this.loaded};
g.J.MO=function(){return!!this.N.getLength()};
g.J.Qg=function(){var e=this.N;this.N=new oR;return e};
g.J.xJ=function(){return this.N};
g.J.zE=function(){return!0};
g.J.GH=function(){return!!this.error};
g.J.Cq=function(){return this.error};g.J=OA0.prototype;g.J.start=function(e){var N={credentials:"include",cache:"no-store"};Object.assign(N,this.G);this.j&&(N.signal=this.j.signal);e=new Request(e,N);fetch(e).then(this.D,this.onError).then(void 0,r0)};
g.J.onDone=function(){this.Ss()||this.qU.c_()};
g.J.getResponseHeader=function(e){return this.responseHeaders?this.responseHeaders.get(e):null};
g.J.uJ=function(){return!!this.responseHeaders};
g.J.BP=function(){return this.N};
g.J.rG=function(){return+this.getResponseHeader("content-length")};
g.J.CG=function(){return this.status>=200&&this.status<300&&!!this.N};
g.J.MO=function(){return!!this.J.getLength()};
g.J.Qg=function(){this.MO();var e=this.J;this.J=new oR;return e};
g.J.xJ=function(){this.MO();return this.J};
g.J.Ss=function(){return this.L};
g.J.abort=function(){this.K&&this.K.cancel().catch(function(){});
this.j&&this.j.abort();this.L=!0};
g.J.zE=function(){return!0};
g.J.GH=function(){return this.Z};
g.J.Cq=function(){return this.errorMessage};g.J=RBs.prototype;g.J.onDone=function(){if(!this.Ss){this.status=this.xhr.status;try{this.response=this.xhr.response,this.N=this.response.byteLength}catch(e){}this.J=!0;this.qU.c_()}};
g.J.Mc=function(){this.xhr.readyState===2&&this.qU.Fm()};
g.J.FI=function(e){this.Ss||(this.status=this.xhr.status,this.J||(this.N=e.loaded),this.qU.X_((0,g.iC)(),e.loaded))};
g.J.uJ=function(){return this.xhr.readyState>=2};
g.J.getResponseHeader=function(e){try{return this.xhr.getResponseHeader(e)}catch(N){return g.uA(Error("Could not read XHR header "+e)),""}};
g.J.rG=function(){return+this.getResponseHeader("content-length")};
g.J.BP=function(){return this.N};
g.J.CG=function(){return this.status>=200&&this.status<300&&this.J&&!!this.N};
g.J.MO=function(){return this.J&&!!this.response&&!!this.response.byteLength};
g.J.Qg=function(){this.MO();var e=this.response;this.response=void 0;return new oR([new Uint8Array(e)])};
g.J.xJ=function(){this.MO();return new oR([new Uint8Array(this.response)])};
g.J.abort=function(){this.Ss=!0;this.xhr.abort()};
g.J.zE=function(){return!1};
g.J.GH=function(){return!1};
g.J.Cq=function(){return""};g.RE.prototype.info=function(){};
g.RE.prototype.debug=function(){};
g.RE.prototype.J=N3(46);var L45=new Map,evM=new Map,sx_=new function(){var e=this;this.J=new Map;this.lk={F4Z:function(){return e.J}}};g.b(Ui,g.x);Ui.prototype.O$=function(){if(!this.QT.length)return[];var e=this.QT;this.QT=[];this.K=g.Kq(e).info;return e};
Ui.prototype.uQ=function(){return this.QT};
Ui.prototype.fh=function(){g.x.prototype.fh.call(this);this.J=null;this.QT.length=0;this.QB.length=0;this.K=null};g.b(si,g.x);g.J=si.prototype;
g.J.wwP=function(){if(!this.Ss()){var e=(0,g.iC)(),N=!1;if(this.policy.al){e=e-(this.timing.N>0?this.timing.D:this.timing.J)-this.timing.Dd()*1E3;var y=C1(aE(this),!1);e>=2E3*y?N=!0:e>=this.policy.a7*y&&(this.J=this.policy.ub)}else if(this.timing.N>0){if(this.L){this.policy.jn&&(this.J=0);return}var w=this.timing.KM();this.timing.n4();var E=this.timing.KM();E-w>=this.policy.sY*.8?(this.J++,this.logger.debug(function(){return"Mispredicted by "+(E-w).toFixed(0)}),N=this.J>=5):this.J=0}else{var A=e-
this.timing.mY();
this.policy.ub&&A>0&&(this.J+=1);N=C1(aE(this),!1)*this.policy.Vw;(N=A>N*1E3)&&this.logger.debug(function(){return"Elbow late by "+A.toFixed(3)})}this.J>0&&this.qU.BM();
N?this.Py(!1):this.N.start()}};
g.J.Py=function(e){this.j=!0;e&&!this.policy.By&&(e=aE(this),e.N+=1);this.qU.oC();this.lastError="net.timeout";N4(this)};
g.J.canRetry=function(e){var N=aE(this);e=e?this.policy.lV:this.policy.Fo;return N.timedOut<this.policy.E8&&N.J<e};
g.J.pw=function(){return this.lastError};
g.J.qY=function(){return this.J};
g.J.dispose=function(){this.N.dispose();g.x.prototype.dispose.call(this)};var JB={},kD3=(JB["1h"]=8,JB["9h"]=4,JB["1"]=8,JB["9"]=4,JB["("]=4,JB.h=2,JB.H=2,JB),pS={},BD0=(pS.o=3,pS.O=3,pS.so=3,pS.a=1,pS.ah=1,pS.A=1,pS.m=1,pS.M=1,pS.sa=1,pS.mac3=7,pS.MAC3=7,pS.meac3=5,pS.MEAC3=5,pS),CS={},PNM=(CS.o=0,CS.O=0,CS.a=0,CS.ah=0,CS.A=0,CS.m=1,CS.M=1,CS.mac3=1,CS.MAC3=1,CS.meac3=1,CS.MEAC3=1,CS.so=4,CS.sa=4,CS);var vEH={WEB:1,MWEB:2,TVHTML5:7,WEB_UNPLUGGED:41,WEB_EMBEDDED_PLAYER:56,TVHTML5_AUDIO:57,TV_UNPLUGGED_CAST:58,TVHTML5_KIDS:59,WEB_MUSIC:61,WEB_CREATOR:62,TVHTML5_UNPLUGGED:65,WEB_REMIX:67,TVHTML5_SIMPLY:75,WEB_KIDS:76,TVHTML5_SIMPLY_EMBEDDED_PLAYER:85,WEB_MUSIC_EMBEDDED_PLAYER:86,WEB_MUSIC_ANALYTICS:31,WEB_GAMING:32,WEB_EXPERIMENTS:42,WEB_HEROES:60,WEB_UNPLUGGED_ONBOARDING:69,WEB_UNPLUGGED_OPS:70,WEB_UNPLUGGED_PUBLIC:71,TVHTML5_VR:72,TVHTML5_FOR_KIDS:93};var Tg,AI,JI=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],Fh3=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],Sf0=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],oEn=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],b_P=["412","359"],hv_=[["140"],["251"],["380"],["328"]],r7={},Yfn=(r7["398"]="397 396 395 394 788 787".split(" "),
r7["247"]=["780","779","244","243","242"],r7["136"]=["135","134","133","160"],r7["141"]=["140"],r7["251"]=["250"],r7["774"]=["251","250"],r7),$Z={},Md0=($Z["135"]=["134","133","160"],$Z["243"]=["242"],$Z["781"]=["780","779"],$Z["777"]=["776","775"],$Z["396"]=["395","394"],$Z["141"]=["140"],$Z["251"]=["250"],$Z),YZ={},leF=(YZ["274"]=["317","273","318","280","279"],YZ["145"]=["144","222","223","143","142"],YZ["141"]=["149"],YZ["140"]=["149"],YZ["380"]=["381"],YZ["328"]=["329"],YZ),MS={},ris=(MS["133"]=
240,MS["134"]=360,MS["135"]=480,MS["136"]=720,MS["137"]=1080,MS["242"]=240,MS["243"]=360,MS["244"]=480,MS["247"]=720,MS["248"]=1080,MS["298"]=720,MS["299"]=1080,MS["302"]=720,MS["303"]=1080,MS["395"]=240,MS["396"]=360,MS["397"]=480,MS["398"]=720,MS["399"]=1080,MS);var daM={unknown:0,other:0,bluetooth:117,wifi:116,cellular:120,ethernet:118,wimax:119,none:122};g.b(v0,H0);g.J=v0.prototype;g.J.YK=function(){return this.timing.requestNumber};
g.J.nC=function(){return this.R2.nC()};
g.J.Cz=function(){var e=Ji5(this.r7);if(this.uI){var N=this.uI,y=N.J.getLength();e.ulen=y;y>0&&(N=N.J.getUint8(0),e.ubyte=N,y===1&&N===0&&(e.b248180278=!0))}this.Ie&&(e.rc=this.policy.d2?this.Ie:this.Ie.toString());this.policy.CC&&this.Wh&&(e.tr=this.Wh);e.itag=this.info.QB[0].J.info.itag;e.ml=""+ +this.info.QB[0].J.Yz();e.sq=""+this.info.QB[0].Ch;this.R2&&(e.ifi=""+ +Sd(this.info.yl.K));this.Ie!==410&&this.Ie!==500&&this.Ie!==503||(e.fmt_unav="true");var w;(y=this.errorMessage||((w=this.xhr)==null?
void 0:w.Cq()))&&(e.msg=y);this.a4&&(e.smb="1");this.info.isDecorated()&&(e.sdai="1");return e};
g.J.yu=function(){return ZAH(this.timing)};
g.J.Cq=function(){return this.xhr.Cq()||""};
g.J.RL=function(){return this.isComplete()||this.timing.RL()};
g.J.X_=function(){!this.Ss()&&this.xhr&&(this.Ie=this.xhr.status,this.policy.VE&&this.To&&this.vP(!1),this.bZ()?this.Wg(2):!this.lj&&this.RL()&&(this.Wg(),this.lj=!0))};
g.J.Fm=function(){if(!this.Ss()&&this.xhr){if(!this.pW&&this.xhr.uJ()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var e=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.pW=((0,g.iC)()-e)/1E3}this.xhr.uJ()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.po&&!XaF()&&g.uY("yt-player-headers-readable",!0,2592E3);e=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var N=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),y;(y=this.n9)==null||y.stop();this.B2=e||this.B2;
this.M3=N||this.M3}};
g.J.c_=function(){var e=this.xhr;if(!this.Ss()&&e){this.Ie=e.status;e=this.XP(e);if(this.policy.CC){var N;(N=this.n9)==null||N.stop()}e===5?N4(this.r7):this.IJ(e);this.r7.N.stop()}};
g.J.XP=function(e){var N=this;VdM(this);if(yW(this.r7,this.xhr.status,this.Mo?this.timing.Kh||this.n0:this.xhr.CG(),!1,this.ZP))return 5;var y="";wB(this.r7,this.xhr)&&(y=TD1(this.r7,this.xhr));if(y)return p1(aE(this.r7)),this.info.Xo(this.R2,y),3;y=e.BP();if(this.uI){this.vP(!0);VdM(this);if(yW(this.r7,this.xhr.status,this.timing.Kh||this.n0,!1,this.ZP))return 5;if(!this.b3){if(this.n0)return p1(aE(this.r7)),3;this.r7.lastError="net.closed";return 5}}else{if(yW(this.r7,this.xhr.status,this.xhr.CG(),
!1,this.ZP))return 5;var w=this.info.K;if(w&&w!==y||e.GH())return this.r7.lastError="net.closed",5;this.vP(!0)}w=Qx5(this)?e.getResponseHeader("X-Bandwidth-Est"):0;if(e=Qx5(this)?e.getResponseHeader("X-Bandwidth-Est3"):0)this.sK=!0,this.policy.YU&&(w=e);EE5(this.r7,y,w?Number(w):0,this.info.QB[0].type===5);this.logger.debug(function(){var E=N.timing;return"Succeeded, rtpd="+(E.Kx*1E3+E.J-Date.now()).toFixed(0)});
return 4};
g.J.canRetry=function(){this.Ss();var e=this.info.isDecorated();return this.r7.canRetry(e)};
g.J.onStateChange=function(){this.isComplete()&&(this.policy.m4?this.oC():this.timing.deactivate())};
g.J.Py=function(e){this.r7.Py(e)};
g.J.BM=function(){this.callback&&this.callback(this,this.state)};
g.J.qY=function(){return this.r7.qY()};
g.J.dispose=function(){H0.prototype.dispose.call(this);this.r7.dispose();var e;(e=this.n9)==null||e.dispose();this.policy.m4||this.oC()};
g.J.oC=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.J.O$=function(){if(!this.uQ().length)return[];this.WM=!0;return this.To.O$()};
g.J.bZ=function(){if(this.state<1)return!1;if(this.To&&this.To.QT.length)return!0;var e;return((e=this.xhr)==null?0:e.MO())?!0:!1};
g.J.uQ=function(){this.vP(!1);return this.To?this.To.uQ():[]};
g.J.vP=function(e){try{if(e||this.xhr.uJ()&&this.xhr.MO()&&!wB(this.r7,this.xhr)&&!this.kP)this.To||(this.To=new Ui(this.policy,this.info.QB)),this.xhr.MO()&&(this.uI?this.uI.feed(this.xhr.Qg()):L5(this.To,this.xhr.Qg(),e&&!this.xhr.MO()))}catch(N){this.uI?i_s(this,N):g.uA(N)}};
g.J.D$=function(e,N){switch(e){case 21:e=N.split(1).h3;Da_(this,e);break;case 22:this.b3=!0;L5(this.To,new oR([]),!0);break;case 43:if(e=qf(new DK(N),1))this.info.Xo(this.R2,e),this.n0=!0;break;case 45:N=KA(new DK(N));e=N.Fl;N=N.Jj;e&&N&&(this.Q7=e/N);break;case 44:this.dj=BFM(new DK(N));var y,w,E;!this.timing.Kh&&((y=this.dj)==null?void 0:y.action)===4&&((w=this.dj)==null?0:(E=w.eA)==null?0:E.Mo)&&(this.Mo=this.dj.eA.Mo);break;case 53:this.policy.CC&&(e=heP(new DK(N)).Fb)&&(this.n9||(this.Fb=e,this.n9=
new g.e6(this.G8,e,this)),this.n9.start());break;case 60:this.zR=H1(new DK(N));break;case 58:if(e=L$J(new DK(N)))this.RS=e,e.RS===3&&(this.ZP=!0)}};
g.J.nI=function(e,N,y,w){y||this.timing.nI(w);if(e!==21)return!1;if(e=this.policy.VE)if(w=N.getLength()+y===w,e*=this.info.QB[0].J.info.JM,!w&&N.getLength()<e)return!1;if(!y){if(N.getLength()===1)return!0;N=N.split(1).h3}Da_(this,N);return!0};
g.J.BP=function(){return this.xhr.BP()};
g.J.W6=function(){return this.pW};
g.J.df=function(){return this.yD()?2:1};
g.J.yD=function(){if(!this.policy.U.Z0||!isNaN(this.info.Hf)&&this.info.Hf>0)return!1;if(!this.xhr.uJ())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.uI)var e=!this.info.K;else this.xhr.rG()?e=!1:(e=this.xhr.getResponseHeader("content-type"),e=e==="audio/mp4"||e==="video/mp4"||e==="video/webm");if(!e)return!1;if(isNaN(this.info.Hf)){e=this.xhr.getResponseHeader("x-head-seqnum");var N=this.timing.policy.D?1:0;if(!e)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
else if(Number(e)>this.info.QB[0].Ch+N)return!1}return!0};
g.J.zm=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.J.Ms=function(){this.xhr&&(this.B2=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.B2};
g.J.CR=function(){this.xhr&&(this.M3=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.M3};
g.J.pw=function(){return this.r7.pw()};
g.J.G8=function(){if(!this.Ss()&&this.xhr){this.Wh="heartbeat";var e=this.r7;e.J+=2;this.BM()}};g.b($X,qw);g.J=$X.prototype;g.J.F9=function(e,N){var y=(e-this.Z)/1E3,w=N-this.K;this.N>0?w>0&&(this.qg&&(y>.2||w<1024?(this.j+=y,y>.2&&fes(this,.05,w)):fes(this,y,w)),this.aq&&(this.Et+=w,this.Bk+=y)):N>this.policy.J&&this.Kd(e,N);qw.prototype.F9.call(this,e,N)};
g.J.KF=function(e,N){Z2(this,e,N);this.F9(e,N);this.qg&&(N=this.K*this.snapshot.stall+this.K/this.snapshot.byterate,this.N>0&&pa(this.bk,this.Et,this.j),e=(e-this.J)/1E3||.01,this.policy.Ng&&!(this.N>0)||JR(this.bk,e,this.K,N,!1))};
g.J.Ep=function(e){Z2(this,e,this.L);var N=(e-this.Z)/1E3;rw(this.bk,N,0);this.fd(N,0);!this.qg&&this.N>0||(N=this.K*this.snapshot.stall+this.K/this.snapshot.byterate,this.N>0&&(this.j+=(e-this.Z)/1E3,pa(this.bk,this.Et,this.j)),JR(this.bk,((e-this.J)/1E3||.01)*this.policy.l9,this.K,N,!1,!0))};
g.J.q5=function(e){e=e.uK||2147483647;(e&2)!==2&&(this.aq=!1);(e&1)===1&&(this.qg=!0)};
g.J.Jb=function(e){e=e.uK||2147483647;(e&2)===2&&(this.aq=!1);(e&1)===1&&(this.qg=!1)};
g.J.nR=function(){return this.D};
g.J.e8=function(){var e=this.aq?this.now()-this.Z:0;return Math.max(this.Bk*1E3+e,1)};
g.J.AG=function(){return this.Et*1E3/this.e8()};
g.J.Kd=function(e,N){e=e===void 0?this.G:e;N=N===void 0?this.L:N;this.N>0||(qw.prototype.Kd.call(this,e,N),N=this.bk,e=(e-this.Ng)/1E3,N.U.Kj(1,(this.Ng-this.J)/1E3),N.i9.Kj(1,e))};
g.J.Ct=function(e){this.Wk=e};
g.J.gL=function(){var e=qw.prototype.gL.call(this);e.rbw=this.AG();e.rbe=+this.aq;e.gbe=+this.qg;e.ackt=(this.Wk-this.J).toFixed();return e};
g.J.n4=function(){};
g.J.KM=function(){return NaN};
g.J.mY=function(){return this.J+this.snapshot.delay*1E3};YX.prototype.D$=function(e,N){N.getLength();switch(e){case 20:e=new DK(N);e={mj:f2(e,1),videoId:qf(e,2),itag:f2(e,3),lmt:f2(e,4),xtags:qf(e,5),RH:f2(e,6),qk:tC(e,8),ZN:f2(e,9),Poh:f2(e,10),startMs:f2(e,11),durationMs:f2(e,12),kS:f2(e,14),timeRange:ZK(e,15,tK5),KO:f2(e,16),Br:f2(e,17),clipId:qf(e,1E3)};this.nF(e);break;case 21:this.EG(N,!1);break;case 22:this.Km(N);break;case 31:e=n2(N,$G1);this.gD(e);break;case 52:e=n2(N,cAM);this.Q0(e);break;default:this.dX(e,N)}};
YX.prototype.nF=function(){};
YX.prototype.dX=function(){};g.b(M4,YX);g.J=M4.prototype;
g.J.dX=function(e,N){N.getLength();switch(e){case 35:this.tp(N);break;case 44:this.fu(N);break;case 43:this.MQ(N);break;case 53:this.gX(N);break;case 55:e=new DK(N);(e={timeline:ZK(e,1,Pv5),ziq:ZK(e,2,vQP)},e.timeline)&&e.timeline.Xy&&this.qU.J9(e.timeline.Xy,e.timeline.pfq,e.ziq);break;case 56:this.Ku();break;case 57:this.qf(N);break;case 42:this.Zu(N);break;case 45:this.fm(N);break;case 59:this.tb(N);break;case 51:this.bQ(N);break;case 49:this.q5(N);break;case 50:this.Jb(N);break;case 47:this.jl(N);
break;case 58:this.DI(N);break;case 61:this.qU.Aa.Ct((0,g.iC)());break;case 66:this.Yy(N);break;case 46:this.N5(N);break;case 67:this.onSnackbarMessage(N)}};
g.J.bQ=function(e){e=new DK(e);e={N1Z:jy(e,1,QA),JfZ:jy(e,2,QA)};this.qU.bQ(e)};
g.J.tb=function(e){var N=new DK(e);e=xC(N,1);var y=xC(N,2);N=xC(N,3);this.qU.tb(e,y,N)};
g.J.fm=function(e){e=KA(new DK(e));this.qU.fm(e)};
g.J.jl=function(e){e=n2(e,lkJ);this.qU.jl(e)};
g.J.Zu=function(e){e=new DK(e);e={videoId:qf(e,1),formatId:ZK(e,2,QA),endTimeMs:f2(e,3),GJg:f2(e,4),mimeType:qf(e,5),Hj:ZK(e,6,AAF),indexRange:ZK(e,7,AAF),GF:ZK(e,8,TF_)};this.qU.Zu(e)};
g.J.qf=function(e){e=vQP(new DK(e));this.qU.qf(e)};
g.J.Ku=function(){this.qU.Ku()};
g.J.tp=function(e){e=Yp9(new DK(e));this.qU.tp(e)};
g.J.gX=function(e){e=heP(new DK(e));this.qU.gX(e)};
g.J.fu=function(e){e=BFM(new DK(e));this.qU.fu(e)};
g.J.MQ=function(e){e={redirectUrl:qf(new DK(e),1)};this.qU.MQ(e)};
g.J.EG=function(e){var N=e.getUint8(0);if(e.getLength()!==1){e=e.split(1).h3;var y=this.N[N]||null;y&&cT(this.qU.uP,N,y,e)}};
g.J.Km=function(e){e=e.getUint8(0);var N=this.N[e]||null;N&&this.qU.Km(e,N)};
g.J.Q0=function(e){this.qU.Q0(e)};
g.J.nF=function(e){var N=e.mj,y=e.qk,w=e.RH,E=e.Br,A=e.KO,T=e.ZN,p=e.startMs,C=e.durationMs,r=e.timeRange,Y=e.kS,M=e.clipId,l=Sl(e);e=CcF.has(nd[""+e.itag]);this.N[N]=l;this.qU.Iu(l,e,{mj:N,qk:!!y,RH:w!=null?w:-1,ZN:T!=null?T:-1,startMs:p!=null?p:-1,durationMs:C!=null?C:-1,kS:Y,Br:E,KO:A,clipId:M,timeRange:r})};
g.J.q5=function(e){e={uK:f2(new DK(e),1)};this.qU.q5(e)};
g.J.Jb=function(e){e={uK:f2(new DK(e),1)};this.qU.Jb(e)};
g.J.gD=function(e){this.qU.gD(e)};
g.J.DI=function(e){e=L$J(new DK(e));this.qU.DI(e)};
g.J.Yy=function(e){e={wI:ZK(new DK(e),1,oQJ)};this.qU.Yy(e)};
g.J.onSnackbarMessage=function(e){e=f2(new DK(e),1);this.qU.onSnackbarMessage(e)};
g.J.N5=function(e){e={reloadPlaybackParams:ZK(new DK(e),1,Ux0)};this.qU.N5(e)};g.b(lO,g.x);g.J=lO.prototype;g.J.Np=function(){return Array.from(this.XZ.keys())};
g.J.Of=function(e){e=this.XZ.get(e);var N=e.QT;e.ex+=N.getLength();e.QT=new oR;return N};
g.J.u6=function(e){return this.XZ.get(e).u6};
g.J.i8=function(e){return this.XZ.get(e).i8};
g.J.Iu=function(e,N,y,w){this.XZ.get(e)||xan(this,e,N);N=this.XZ.get(e);if(this.rP){e=nE9(this,e,y);if(w)for(var E=g.c(e),A=E.next();!A.done;A=E.next()){A=A.value;var T=w;A.D=T;A.startTime+=T;A.o2+=T;A.XT+=T}jh5(this,y.mj,N,e)}else y.qk?N.TU=y.kS:N.Yf.push(y),N.kD.push(y)};
g.J.Lz=function(e){var N;return((N=this.XZ.get(e))==null?void 0:N.QB)||[]};
g.J.Wg=function(){for(var e=g.c(this.XZ.values()),N=e.next();!N.done;N=e.next())N=N.value,N.PT&&(N.FI&&N.FI(),N.PT=!1)};
g.J.Km=function(e,N){this.logger.debug(function(){return"[onMediaEnd] formatId: "+N});
var y=this.XZ.get(N);if(Fy){if(y&&!y.u6){if(y.Vs.get(e))y.Vs.get(e).aL=!0;else{var w;((w=this.qK)==null?0:w.LX)&&y.Vs.set(e,{data:new oR,M8:0,aL:!0})}y.i8=!0}}else y&&!y.i8&&(y.i8=!0)};
g.J.O$=function(e){if(Fy){var N=this.XZ.get(e);if(N)for(var y=g.c(N.Vs),w=y.next();!w.done;w=y.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;var A=N.lW.get(w);if(Xs(A[0])){if(!E.aL)continue;var T=A,p=E.data;p.getLength();A=0;var C=[];T=g.c(T);for(var r=T.next();!r.done;r=T.next()){r=r.value;var Y=r.K,M=hC(p,A,Y);A+=Y;C.push(new mv(r,M))}N.MZ.push.apply(N.MZ,g.B(C))}else if(E.data.getLength()>0||!A[0].range&&E.aL)p=void 0,A=A[0],C=E.M8,T=E.data,A.range||(p=E.aL),r=T.getLength(),p=new mv(Ku0(A,
A.N+C,r,p),T),E.M8+=p.info.K,N.MZ.push(p);N.Vs.get(w).data=new oR;E.aL&&N.Vs.delete(w)}e=this.XZ.get(e);if(!e)return[];N=e.MZ;e.MZ=[];y=g.c(N);for(w=y.next();!w.done;w=y.next())e.ex+=w.value.info.K;return N||[]}y=(N=this.XZ.get(e))==null?void 0:N.To;if(!y)return[];this.vP(e,y);return y.O$()};
g.J.bZ=function(e){if(Fy)return hI(this,e);var N,y,w;return!!((y=(N=this.XZ.get(e))==null?void 0:N.To)==null?0:(w=y.uQ())==null?0:w.length)||hI(this,e)};
g.J.vP=function(e,N){for(;hI(this,e);){var y=this.Of(e);var w=e;w=this.XZ.get(w).u6&&!bO(this,w);L5(N,y,w&&Z_P(this,e))}};
g.J.fh=function(){g.x.prototype.fh.call(this);for(var e=g.c(this.XZ.keys()),N=e.next();!N.done;N=e.next())Sr(this,N.value);var y;if((y=this.qK)==null?0:y.zx)for(e=g.c(this.XZ.values()),N=e.next();!N.done;N=e.next())N=N.value,N.Vs.clear(),N.lW.clear(),N.MZ.length=0,N.QB.length=0,N.kD.length=0,N.Yf.length=0;this.XZ.clear()};
var Fy=!1;g.b(kX,g.x);g.J=kX.prototype;g.J.X_=function(){!this.Ss()&&this.xhr&&(this.vP(!1),ef(this.qU,this))};
g.J.Fm=function(){};
g.J.c_=function(){if(!this.Ss()&&this.xhr){var e=this.XP();e===5?N4(this.r7):this.IJ(e);this.r7.N.stop();var N;(N=this.Yc)==null||N.stop()}};
g.J.XP=function(){var e="";wB(this.r7,this.xhr)&&(e=TD1(this.r7,this.xhr));if(e)return this.info.yl.Xo(this.R2,e),3;this.vP(!0);if(yW(this.r7,this.xhr.status,this.xhr.CG(),this.info.aN(),this.ZP))return 5;if(this.vD)return 3;EE5(this.r7,this.xhr.BP(),0,this.aN());this.policy.PY&&F05(this.qU);return 4};
g.J.vP=function(e){var N=this.xhr;if((e||!wB(this.r7,this.xhr))&&N.MO()){e=N.Qg();var y=e.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+y});
this.uI.feed(e)}};
g.J.D$=function(e,N){this.xhr.zE()&&e===21&&KhJ(this);this.VP.D$(e,N)};
g.J.nI=function(e,N,y,w){y||(this.Aa.nI(w),this.policy.dJ&&e===21&&KhJ(this));if(e!==21)return!1;this.Aa.Kh=!0;e=N.getLength();y||(this.NH=N.getUint8(0),N=N.split(1).h3);var E=this.policy.pT,A=this.VP.N[this.NH],T=this.rP.K.get(A);if(E&&T&&(E*=T.info.JM,e+y!==w&&e<E))return!1;cT(this.uP,this.NH,A,N);return!0};
g.J.tp=function(e){this.qU.tp(e)};
g.J.gX=function(e){if(this.policy.enableServerDrivenRequestCancellation){var N;(N=this.Yc)==null||N.dispose();this.Y5=e;e.qI&&(this.Yc=new g.e6(this.HA,e.qI,this));this.HA()}};
g.J.HA=function(){var e;if((e=this.Y5)!=null&&e.items){var N;(N=this.Yc)==null||N.start();if(this.Aa.N>0){this.policy.al&&this.r7.N.stop();e=this.Aa.e8();N=this.Aa.AG();var y=Wh5(this,e);if(!(N>y.zP||y.QD>0&&this.info.Io()>y.QD)){this.X$=(0,g.iC)();var w;(w=this.Yc)==null||w.stop();this.policy.PY&&(w=this.qU,e={rE:Math.round(N*e/1E3),Ka:e},w.policy.PY&&(w.i9=e,w.ue++));this.Py(!1)}}}};
g.J.Py=function(e){this.r7.Py(e)};
g.J.fu=function(e){this.qU.fu(e,this.YK())};
g.J.MQ=function(e){this.vD=!0;this.info.yl.Xo(this.R2,e.redirectUrl)};
g.J.q5=function(e){this.Aa instanceof $X&&this.Aa.q5(e)};
g.J.Jb=function(e){this.Aa instanceof $X&&this.Aa.Jb(e)};
g.J.J9=function(e,N,y){this.qU.J9(e,N,y,this.YK())};
g.J.Zu=function(e){var N=e.formatId,y=Sl({itag:N.itag,lmt:N.lmt,xtags:N.xtags}),w,E,A=new bH(((w=e.Hj)==null?void 0:w.first)||0,((E=e.Hj)==null?void 0:E.DJ)||0),T,p;w=new bH(((T=e.indexRange)==null?void 0:T.first)||0,((p=e.indexRange)==null?void 0:p.DJ)||0);if(!this.rP.K.get(y)){y=e.GF||{};if(this.policy.jI){var C,r;e=(C=e.mimeType)!=null?C:"";C=(r=N.itag)!=null?r:0;r=nd[""+C];y.mimeType=r!=="9"&&r!=="9h"?e:'video/webm; codecs="'+["vp09",r==="9h"?"02":"00","51",r==="9h"?"10":"08","01.01.01.01.00"].join(".")+
'"'}else y.mimeType=e.mimeType;y.itag=N.itag;y.lastModified=""+(N.lmt||0);y.xtags=N.xtags;N=this.rP;r=pC("");C=TE(y,null);eI(N,new L1(r,C,A,w))}};
g.J.fm=function(e){this.qU.fm(e)};
g.J.onSnackbarMessage=function(e){if(this.policy.Lu)this.qU.onSnackbarMessage(e)};
g.J.gD=function(e){this.FU=e;this.l4=(0,g.iC)();this.qU.gD(e)};
g.J.tb=function(e,N,y){this.qU.tb(e,N,y)};
g.J.qf=function(e){e.scope===2&&(this.csP=e);this.qU.qf(e)};
g.J.Ku=function(){this.Mv=!0;this.qU.Ku()};
g.J.bQ=function(e){this.policy.DD&&this.qU.bQ(e)};
g.J.jl=function(e){this.qU.jl(e,this.YK())};
g.J.DI=function(e){e.RS===3&&(this.ZP=!0);this.qU.DI(e)};
g.J.Yy=function(e){this.qU.Yy(e)};
g.J.N5=function(e){this.qU.N5(e)};
g.J.canRetry=function(){this.Ss();return this.r7.canRetry(!1)};
g.J.dispose=function(){if(!this.Ss()){g.x.prototype.dispose.call(this);this.r7.dispose();var e;(e=this.Yc)==null||e.dispose();this.IJ(-1);this.oC()}};
g.J.IJ=function(e){this.state=e;ef(this.qU,this)};
g.J.aN=function(){return this.info.aN()};
g.J.aK=function(){return this.Mv};
g.J.xH=function(){return this.csP};
g.J.Iu=function(e,N,y){y.clipId&&(this.clipId=y.clipId);this.policy.L&&!N&&(this.d4=y.ZN,this.qF=y.startMs);var w=0;this.policy.Pf&&this.Eo&&this.clipId&&(w=XC(this.Eo,this.clipId)/1E3);this.uP.Iu(e,N,y,w);this.policy.y_&&this.FU&&this.Aa instanceof j3&&(w=this.FU.NL,this.Aa.Iu(y.durationMs/1E3,N,w>0&&y.ZN+1>=w));this.uP.XZ.get(e).CT=!0};
g.J.Km=function(e,N){this.uP.Km(e,N)};
g.J.Q0=function(e){this.requestIdentifier=e};
g.J.O$=function(e){return this.uP.O$(e)};
g.J.Lz=function(e){return this.uP.Lz(e)};
g.J.bZ=function(e){return this.uP.bZ(e)};
g.J.Np=function(){return this.uP.Np()};
g.J.df=function(){return 1};
g.J.YK=function(){return this.Aa.requestNumber};
g.J.hG=function(){return this.requestIdentifier};
g.J.xv=function(){return this.clipId};
g.J.nC=function(){return this.R2.nC()};
g.J.FG=function(){this.oC()};
g.J.oC=function(){this.Aa.deactivate();var e;(e=this.xhr)==null||e.abort()};
g.J.isComplete=function(){return this.state>=3};
g.J.V4=function(){return this.state===3};
g.J.Q_=function(){return this.state===5};
g.J.Mn=function(){return this.state===4};
g.J.U1=function(){return this.isComplete()};
g.J.C9=function(){return this.state>=1};
g.J.qY=function(){return this.policy.jn?this.r7.qY():0};
g.J.BM=function(){this.policy.jn&&ef(this.qU,this)};
g.J.Yv=function(){return JR1(this.info)};
g.J.pw=function(){return this.r7.pw()};
g.J.Cz=function(){var e=Ji5(this.r7);Object.assign(e,Cd0(this.info));e.req="sabr";e.rn=this.YK();var N;if((N=this.xhr)==null?0:N.status)e.rc=this.policy.d2?this.xhr.status:this.xhr.status.toString();var y;(N=(y=this.xhr)==null?void 0:y.Cq())&&(e.msg=N);this.X$&&(y=Wh5(this,this.X$-this.Aa.nR()),e.letm=y.g1l,e.mrbps=y.zP,e.mram=y.QD);return e};
g.J.Ue=function(){return{d4:this.d4,qF:this.qF,isDecorated:this.info.isDecorated()}};O__.prototype.tick=function(e,N){this.ticks[e]=N?window.performance.timing.navigationStart+N:(0,g.iC)()};g.b(Xy,g.pT);g.J=Xy.prototype;
g.J.Q8=function(e,N,y,w){var E=!1;this.policy.Ut&&(E=y?this.l9===e.Ch:this.qg===e.Ch);if(this.Z&&w&&!E){w=[];E=[];var A=[],T=void 0,p=0;N&&(w=N.J,E=N.N,A=N.j,T=N.K,p=N.Z8,this.policy.yn&&this.Fh("sdai",{sq:e.Ch,ssvicpns:w.join("."),ssvid:E.join(".")}));this.policy.Ut&&(y?this.l9=e.Ch:this.qg=e.Ch);this.Z.O7(e.Ch,e.startTime,this.N,w,E,A,y,p,T)}if(this.policy.Ut){if(y||this.policy.xX){this.N===1&&dB(this,5,"noad");var C;e.Ch!==((C=this.J)==null?void 0:C.Ch)&&(AdM(this,e,N,y),isNaN(e.startTime)||IO(this,
e.Ch,iO(this,e.startTime,e.Ch),!!N,this.Z))}}else y&&AdM(this,e,N)};
g.J.Ya=function(e,N,y){var w=this.videoTrack.J.index.vY()<=N;this.J={Re:e,Ch:N,Y$:y};w&&PT(this,e,N)};
g.J.f_=function(){this.Z&&this.Z.f_()};
g.J.Fh=function(e,N){this.tW.Fh(e,N)};
g.J.Ll=function(e,N){var y=this.videoTrack.J.index.zI(e);if(y>=0){var w;var E=((w=N.Yk.ow(y,2))==null?void 0:w.Yh)||"";if(this.policy.L||E)return N.Af(e,y),vT(this.tW,e,e,y),this.Fh("sdai",{cmskpad:1,t:e.toFixed(3),sq:y}),!0}this.Fh("sdai",{cmskpad:0,t:e.toFixed(3),sq:y});return!1};g.b(fP,g.x);fP.prototype.mK=function(e,N,y){y=y===void 0?{}:y;this.policy.G4=k_(e,y,this.j,N===void 0?!1:N)};xX.prototype.gF=function(e){var N=this;if(this.policy.i$){var y=new Set(e);y.size===this.i9.size&&[].concat(g.B(y)).every(function(w){return N.i9.has(w)})||(this.tW.Fh("lwnmow",{itagDenylist:[].concat(g.B(e)).join(",")}),this.tW.Bm(!!y.size),this.D=-1,this.i9=y,jr(this,this.J),this.Zl=!0)}};
xX.prototype.mK=function(e,N,y){y=y===void 0?{}:y;var w=this.policy.G4;this.L.mK(e,N===void 0?!1:N,y);if(w!==this.policy.G4){jr(this,this.J);nP(this);var E,A;w>this.policy.G4&&((E=this.K)==null?0:Kd(E.info))&&((A=this.nextVideo)==null||!Kd(A.info))&&(this.Ng=!0)}};KP.prototype.lZ=function(e){this.timestampOffset=e;this.flush()};
KP.prototype.flush=function(){if(this.J.pos>0){var e={a:this.track.qG(),u:this.J.jY(),pd:Math.round(this.j),ad:Math.round(this.K)},N=this.N;if(N){var y=N.J.info;e.itag=y.itag;y.J&&(e.xtags=y.J);e.sq=N.Ch;e.st=N.startTime;e.sd=N.duration;this.track.policy.Ub&&(e.si=N.O2());N.j&&(e.esl=N.N+N.K);N.eY()&&(e.eos=1)}isNaN(this.timestampOffset)||(e.to=this.timestampOffset);var w;if(N=(w=this.track.TW)==null?void 0:w.N7({})){for(var E in N)this.Z[E]!==N[E]&&(e["sb_"+E]=N[E]);this.Z=N}this.track.Fh("sbu",
e);this.J.reset();this.buffered=[];this.L=this.K=this.j=0;this.timestampOffset=this.N=void 0}};OY.prototype.dispose=function(){this.Kh=!0};
OY.prototype.Ss=function(){return this.Kh};
g.b(aO,Error);var QY5=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);yU.prototype.skip=function(e){this.offset+=e};
yU.prototype.mN=function(){return this.offset};g.J=O1n.prototype;g.J.BW=function(){return this.N};
g.J.SL=function(){return this.N.length?this.N[this.N.length-1]:null};
g.J.w4=function(){this.N=[];JW(this);AW(this)};
g.J.Of=function(e){this.Et=this.N.shift().info;e.info.Bw(this.Et)};
g.J.Lz=function(){return g.dn(this.N,function(e){return e.info})};
g.J.qG=function(){return!!this.Z.info.audio};
g.J.getDuration=function(){return this.Z.index.f9()};g.b(IE,H0);g.J=IE.prototype;g.J.onStateChange=function(){this.Ss()&&(oO(this.uP,this.formatId),this.J.dispose())};
g.J.Cz=function(){var e=qfF(this.uP,this.formatId),N;var y=((N=this.uP.XZ.get(this.formatId))==null?void 0:N.bytesReceived)||0;var w;N=((w=this.uP.XZ.get(this.formatId))==null?void 0:w.ex)||0;return{expected:e,received:y,bytesShifted:N,sliceLength:bO(this.uP,this.formatId),isAnyMediaEndReceived:this.uP.i8(this.formatId)}};
g.J.yu=function(){return 0};
g.J.RL=function(){return!0};
g.J.O$=function(){return this.uP.O$(this.formatId)};
g.J.uQ=function(){return[]};
g.J.bZ=function(){return this.uP.bZ(this.formatId)};
g.J.pw=function(){return this.lastError};
g.J.qY=function(){return 0};g.b($e,g.x);g.J=$e.prototype;g.J.qG=function(){return!!this.J.info.audio};
g.J.SL=function(){return this.j.SL()};
g.J.Of=function(e){this.j.Of(e);var N;(N=this.U)!=null&&(N.L.add(e.info.Ch),N.J=hBF(N,N.gT,N.Ki,e,N.J),N.K=e,N.Z=(0,g.iC)());this.JM=Math.max(this.JM,e.info.J.info.JM||0)};
g.J.getDuration=function(){if(this.policy.N){var e=this.tW.bP();if(e)return LH(e)}return this.J.index.f9()};
g.J.w4=function(){zc(this);this.j.w4()};
g.J.tG=function(){return this.j};
g.J.isRequestPending=function(e){return this.K.length?e===this.K[this.K.length-1].info.QB[0].Ch:!1};
g.J.lZ=function(e){var N;(N=this.U)==null||N.lZ(e);var y;(y=this.D)==null||y.lZ(e)};
g.J.Fh=function(e,N){this.tW.Fh(e,N)};
g.J.wS=function(){return this.tW.wS()};
g.J.dispose=function(){var e;(e=this.D)==null||e.flush();g.x.prototype.dispose.call(this)};g.b(qN,g.x);qN.prototype.K=function(){this.N++>15||(this.J=!this.J,new qhF(this.tW,this.policy,this.bk,this.yl,this.J),this.delay.start())};
g.J=qhF.prototype;g.J.Fm=function(){};
g.J.X_=function(){};
g.J.c_=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.BP()===this.size)this.tW.Fh("rqs",this.getInfo());else{var e="net.connect";this.xhr.status>200?e="net.badstatus":this.xhr.uJ()&&(e="net.closed");this.onError(e)}};
g.J.onError=function(e){var N=this;this.tW.handleError(e,this.getInfo());S3("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(y){N.tW.Fh("pathprobe",y)},function(y){N.tW.handleError(y.errorCode,y.details)})};
g.J.getInfo=function(){var e=this.timing.gL();e.shost=lN(this.location.tA);e.pb=this.size;return e};g.b(ZU,g.x);
ZU.prototype.G=function(e,N){if(e.G){this.rP.isLive?(e=this.rP.L$&&this.rP.j?e.J.Tn(this.rP.L$,!1):e.J.Od(Infinity),e.Hf=this.Hf):e=e.J.Tn(0,!1);if(this.Ng){var y=this.Ng;e.Hf===0&&(e.L=y.U)}else e.L=this.D;return e}y=e.N;if(!y.J.Yz())return y.J.I8()?(e=hz(this.L,e.J.info.JM,N.J.info.JM,0),e=y.J.rh(y,e)):e=y.J.oF(y),e;var w=y.XT-this.tW.getCurrentTime(),E=!y.range||y.K===0&&y.N===0?0:y.range.length-(y.N+y.K),A=y.J;this.xY(e,w)&&E===0&&(this.rP.isManifestless?A=e.J:(A=y.startTime+Jj,y.K&&(A+=y.duration),
g3(e,A),y=e.N,A=y.J));A.I8()?(E=this.K,N=hz(this.L,A.info.JM,N.J.info.JM,w,E.j.length>0&&E.U===0&&this.tW.Sh),w=vl(e),e=y.J.rh(y,N),(N=e.K)&&e.QB.length>1&&(w||e.yl.N||e.QB[0].J!==y.J?e=y.J.rh(y,e.QB[0].K):(w=e.QB[e.QB.length-1],A=w.K/N,!w.j&&A<.4&&(e=y.J.rh(y,N-w.K))))):(y.Ch<0&&(N=vx(y),N.pr=""+e.K.length,this.tW.isSeeking()&&(N.sk="1"),N.snss=y.L,this.tW.Fh("nosq",N)),e=A.oF(y));if(this.policy.i9)for(y=g.c(e.QB),N=y.next();!N.done;N=y.next())N.value.type=6;return e};
ZU.prototype.xY=function(e,N){if(!vl(e)||!e.J.Yz())return!1;var y=this.K.Zl||cms(e)||N<=this.policy.vV||this.K.Ng;this.logger.debug(function(){return"ready to adapt: "+y+", upgrade pending: "+cms(e)+", health: "+N});
return y};
ZU.prototype.fh=function(){g.x.prototype.fh.call(this)};
var Jj=2/24;g.b(Oe,g.x);Oe.prototype.vr=function(e,N,y){var w;var E=((w=this.N)==null?void 0:w.reason)==="m"?"m":this.N&&LsH(this,this.N)?this.N.reason:"a";this.tW.vr(new VW(e,E,y));Hl(this.tW,N,e,!0)};
Oe.prototype.QP=function(e,N){for(var y=g.c(this.l9),w=y.next();!w.done;w=y.next())if(w=w.value,w.id===e)return this.qK.Sw||(this.K=[w]),this.Z=this.rP.J[e],tW(this.qK)&&(this.Ng=!0),new VW(this.Z,N?"t":"m");this.K=[];return null};
Oe.prototype.mK=function(e,N,y){y=y===void 0?{}:y;this.J.mK(e,N===void 0?!1:N,y)};ls.prototype.setData=function(e,N,y,w){var E=this;w=w===void 0?{}:w;if(y==null?0:y.Xz)this.Na=H_M(this,y,w),e.Td=this.yl.Td();if(this.aN())return!0;this.data=e;this.J=AR5(e,N,function(A,T){var p;(p=E.qU)==null||p.g4(A,T)},y==null?void 0:y.K);
if(!this.J)return!1;this.N=g.A5(this.J,NFM);return!0};
ls.prototype.aN=function(){return this.requestType===1};
ls.prototype.Io=function(){var e;return((e=this.qU)==null?void 0:e.Io())||0};
ls.prototype.isDecorated=function(){var e;return!((e=this.data)==null||!e.Ag)};FE.prototype.encrypt=function(e){this.uB.exports.AES128CTRCipher_encrypt(this.cipher,e.byteOffset,e.byteLength);return e};
FE.prototype.Ss=function(){return this.cipher===0};
FE.prototype.dispose=function(){this.uB.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};o9.prototype.encrypt=function(e,N){return Nc(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:N},this.key,e).catch(function(y){return Promise.reject(y.name+": "+y.message)}).then(function(y){return new Uint8Array(y)}))};
o9.prototype.Ss=function(){return this.J};
o9.prototype.dispose=function(){this.J=!0};
gH.Jw(o9,{encrypt:SD("oan2")});bs.prototype.encrypt=function(e,N){oo(this.N,N);return Nc(this.N.encrypt(e))};
bs.prototype.Ss=function(){return this.J};
bs.prototype.dispose=function(){this.J=!0};
gH.Jw(bs,{encrypt:SD("oap")});hJ.prototype.encrypt=function(e,N){var y=this.uB.MJ(N),w=this.J;w.uB.exports.AES128CTRCipher_setCounter(w.cipher,(y!=null?y:N).byteOffset);N=this.uB.MJ(e);this.J.encrypt(N!=null?N:e);y&&this.uB.free(y.byteOffset);return N?Nc(this.uB.F4(N)):Nc(e)};
hJ.prototype.Ss=function(){return this.J.Ss()};
hJ.prototype.dispose=function(){this.J.dispose()};
gH.Jw(hJ,{encrypt:SD("oalw")});cO.prototype.encrypt=function(e,N){var y=this,w=yA("");e.length<=this.QR&&this.J&&!this.j&&(w=Tm(w,function(){return y.J?y.J.encrypt(e,N):yA("wasm unavailable")}));
e.length<=this.yW&&(this.J&&this.j&&(w=Tm(w,function(){return y.J?y.J.encrypt(e,N):yA("wasm unavailable")})),w=Tm(w,function(){return MVH(y,e,N)}));
return Tm(Tm(w,function(){return lWM(y,e,N)}),function(){return MVH(y,e,N)})};
cO.prototype.Ss=function(){return this.L};
cO.prototype.dispose=function(){this.L=!0;var e;(e=this.K)==null||A$(e,g.JV);g.JV(this.J);g.JV(this.N)};km.prototype.encrypt=function(e){(0,g.iC)();return(new LC(this.J.J)).encrypt(e,this.iv)};
km.prototype.decrypt=function(e,N){(0,g.iC)();return(new LC(this.J.J)).decrypt(e,N)};
km.prototype.Ss=function(){return this.K};
km.prototype.dispose=function(){this.K=!0;g.JV(this.N)};g.b(BO,g.x);BO.prototype.K=function(e,N){if(N){N=N instanceof g.YE?N:XE(this,N);var y;((y=this.J.get(e))==null?void 0:lN(y.location))!==lN(N)&&this.J.set(e,new XgH(N,e))}else this.J.delete(e)};
BO.prototype.load=function(){var e=this,N,y,w,E,A,T,p,C,r,Y;return g.f(function(M){switch(M.J){case 1:N=e.J.get(0);g.c5(M,2);var l;if(l=N&&!e.N)l=lN(N.location),l=e.N===er(l);if(l){M.u9(4);break}return g.D(M,dE(e,e.N?2:0),5);case 5:if(y=M.N)e.K(0,y),Sd(y)&&e.K(1,oh(y));case 4:g.B5(M,3);break;case 2:w=g.XH(M);g.uA(w);if(!e.N){M.u9(3);break}e.N=!1;return g.D(M,e.load(),7);case 7:return M.return();case 3:if(!e.ph.experiments.gP("html5_onesie_probe_ec_hosts")){M.u9(0);break}g.c5(M,9);E=e;A=E.K;T=3;return g.D(M,
dE(e,1),11);case 11:return A.call(E,T,M.N),p=e,C=p.K,r=4,g.D(M,dE(e,2),12);case 12:C.call(p,r,M.N);g.B5(M,0);break;case 9:Y=g.XH(M),g.uA(Y),g.hn(M)}})};
BO.prototype.G=function(){var e=this,N,y;return g.f(function(w){g.NA(e.U);N=g.Y2(e.ph.experiments,"html5_onesie_prewarm_max_lact_ms");if(z_()>=N)return w.return();(y=e.J.get(0))&&kX5(e,y);g.hn(w)})};
var h$F={WNs:0,hMg:1,D3l:2,lcP:3,UXk:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};I9.prototype.decrypt=function(e){var N=this,y,w,E,A,T,p;return g.f(function(C){switch(C.J){case 1:if(N.J.length&&!N.J[0].isEncrypted)return C.return();N.N=!0;N.NA.lB("omd_s");y=new Uint8Array(16);cM()?w=new Uh(e):E=new LC(e);case 2:if(!N.J.length||!N.J[0].isEncrypted){C.u9(4);break}A=N.J.shift();if(!w){T=E.decrypt(A.buffer.YX(),y);C.u9(5);break}return g.D(C,w.decrypt(A.buffer.YX(),y),6);case 6:T=C.N;case 5:p=T;for(var r=0;r<y.length;r++)if(y[r]===255)y[r]=0;else{y[r]+=1;break}r=N.NA;var Y=A.videoId,
M=A.mj,l=A.formatId,F=new oR([p]),S;(S=vO(r.cY,Y))==null||cT(S,M,l,F);C.u9(2);break;case 4:N.NA.lB("omd_c"),zG(N),N.N=!1,N.NA.Bq(),g.hn(C)}})};
I9.prototype.enqueue=function(e,N,y,w,E){this.J.push({videoId:e,mj:N,formatId:y,buffer:w,isEncrypted:E});this.N||zG(this)};var vj9=!!Uint8Array.prototype.copyWithin,is=[],Dj=[],Pd5=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],VB=[],gE=[],tJ=[],fH=[];nH.prototype.ZJ=function(e){return g.jD(new g.us(e))};
nH.prototype.r5=function(e){function N(T){if(!T.done)return A.append(T.value),E.read().then(function(p){return N(p)})}
if(!("DecompressionStream"in window))return yA("native decompression unavailable");var y=new DecompressionStream("gzip"),w=y.writable.getWriter();w.write(e).then(function(){return w.close()});
var E=y.readable.getReader(),A=new oR([]);return Tm(A$(A$(Nc(E.read()),N),function(){return A.YX()}),function(T){return yA(T.message)})};
nH.prototype.Ln=function(e,N){var y=void 0,w=N.MJ(e);w&&(y=w.byteOffset,e=w);w=N.exports.getInflatedSize(e.byteOffset,e.length);if(w===0)return yA("bad compressed input");var E=N.malloc(w);if(N.exports.inflateGzip(e.byteOffset,e.length,E))return N.free(E),yA("inflateGzip failed");y&&N.free(y);return Nc(new Uint8Array(N.exports.memory.buffer,E,w))};
gH.Jw(nH,{ZJ:function(e){return{profile:"gzjb",XA:Math.ceil(e.byteLength/16)}},
r5:function(e){return{profile:"gznb",XA:Math.ceil(e.byteLength/16)}},
Ln:function(e){return{profile:"gzwb",XA:Math.ceil(e.byteLength/16)}}});g.b(QB,YX);g.J=QB.prototype;g.J.Bq=function(){this.cY.Bq()};
g.J.dX=function(e,N){switch(e){case 10:var y=n2(N,CvE);e=y.cu9;var w=!1;switch(e){case 0:this.K=!y.tF.BPP;this.iv=y.tF.iv;break;case 2:break;case 23:var E=this.cY;y=y.yMP;E.lB("omp_r");y.videoId&&(E.Jc=y.videoId);E.Jc!==E.videoData.videoId&&(E.videoData.uM=E.Jc,E.Fh("ompp","vid."+E.Jc));E.UI=!0;break;case 24:y=this.cY;y.lB("omp_c");y.UI=!1;y.vS=!1;var A=(E=y.ZM)==null?void 0:E.get(y.Jc);y.notifySubscribers(y.Jc);A!=null&&(A.J=!0);WO(y);break;default:w=!0}this.cY.gK&&this.cY.Fh("ombup","id.10;pt."+
e+";len."+N.getLength()+(w?";ignored.1":""));this.j=e;break;case 11:tV5(this,N);break;case 12:this.EG(N,!0);break;case 37:N=n2(N,rAs);(N.Rn||N.Sv)&&N.videoId&&this.cY.uH.set(N.videoId,N);break;case 60:this.Hq(N);break;case 47:this.T("html5_server_playback_start_policy")&&(N=n2(N,lkJ),this.cY.playbackStartPolicy=N);break;case 35:this.tp(N);break;case 45:this.fm(N);break;case 66:this.Yy(N);break;default:this.cY.gK&&this.cY.Fh("ombup","id."+e+";len."+N.getLength()+";ignored.1")}};
g.J.gD=function(e){this.cY.gD(e)};
g.J.Hq=function(e){e=n2(e,H1);this.cY.Hq(e)};
g.J.fm=function(e){e=n2(e,KA);this.cY.fm(e)};
g.J.nF=function(e){var N=e.mj,y=e.qk,w=e.RH,E=e.KO,A=e.ZN,T=e.startMs,p=e.durationMs,C=e.timeRange,r=e.kS,Y=Sl(e),M=CcF.has(nd[""+e.itag]);y&&this.lB(M?"oais_r":"ovis_r");var l=this.J[Y]!==void 0;this.cY.gK&&this.cY.Fh("ombup","id.20;hid."+N+";fid."+Y);var F=e.videoId||"";this.N[N]=Y;this.L[N]=F;l||(this.J[Y]={videoId:F,bj:!1,qG:M,headers:[]});this.J[Y].headers.push(e);this.cY.Iu(F,Y,M,{mj:N,qk:!!y,RH:w!=null?w:-1,ZN:A!=null?A:-1,startMs:T!=null?T:-1,durationMs:p!=null?p:-1,kS:r!=null?r:0,KO:E,timeRange:C})};
g.J.EG=function(e,N){var y=e.getUint8(0);this.cY.gK&&this.cY.Fh("ombup","id."+(N?12:21)+";len."+e.getLength()+";hid."+y);if(e.getLength()!==1){e=e.split(1).h3;var w=this.N[y]||null,E=this.L[y]||"";w&&(this.oe(this.J[w].qG?"oafs_r":"ovfs_r"),this.queue.enqueue(E,y,w,e,N))}};
g.J.Km=function(e){var N=e.getUint8(0);this.cY.gK&&this.cY.Fh("ombup","id.22;len."+e.getLength()+";hid."+N);e=this.N[N]||null;var y=this.L[N]||"";if(e)if(this.T("html5_use_ump_request_slicer")){var w=this.queue;w.J.push({videoId:y,mj:N,formatId:e,isEncrypted:!1,fB:!0});w.N||zG(w)}else this.cY.Km(y,N,e)};
g.J.Q0=function(e){this.cY.Q0(e)};
g.J.Ii=function(e,N){var y=this,w,E,A,T,p,C,r,Y,M,l;return g.f(function(F){switch(F.J){case 1:y.cY.Ii();w=e.YX();if(!N){A=w;F.u9(2);break}return g.D(F,WTH(y.cY,w,y.iv),3);case 3:A=F.N;case 2:E=A;if(!y.cY.enableCompression){F.u9(4);break}p=(T=performance)==null?void 0:T.now();return g.D(F,z$F(E),5);case 5:E=F.N,y.cY.Fh("decompression",{ds:"DecompressionStream"in window,rt:((C=performance)==null?NaN:C.now())-p});case 4:try{r=n2(E,G5H)}catch(S){return Y=S instanceof Error?{name:S.name,message:S.message}:
{},Y.webcrypto=""+ +!!cM(),Y.enc=""+ +y.K,M=new P3("onesie.response.parse",Y),F.return(Promise.reject(M))}VVH(r);l=g.IR(r.body);return F.return(l)}})};
g.J.tp=function(e){this.T("html5_consume_onesie_next_request_policy_for_sabr")&&(e=n2(e,Yp9),this.cY.tp(e))};
g.J.Yy=function(e){e={wI:ZK(new DK(e),1,oQJ)};this.cY.Yy(e)};
g.J.lB=function(e){this.cY.lB(e)};
g.J.oe=function(e){return this.cY.oe(e)};
g.J.T=function(e){return this.cY.T(e)};g.b(KH,g.x);g.J=KH.prototype;g.J.xv=function(){return""};
g.J.Np=function(e){var N,y;return((y=(N=this.ZM)==null?void 0:N.get(e))==null?void 0:y.Np())||[]};
g.J.bZ=function(e,N){var y;return!((y=vO(this,N))==null||!y.bZ(e))};
g.J.O$=function(e,N){var y;return((y=vO(this,N))==null?void 0:y.O$(e))||[]};
g.J.Lz=function(e,N){var y;return((y=vO(this,N))==null?void 0:y.Lz(e))||[]};
g.J.IJ=function(e){this.state=e;this.notifySubscribers()};
g.J.aN=function(){return!1};
g.J.aK=function(){return!1};
g.J.xH=function(){};
g.J.lB=function(e){this.JW.lB(e)};
g.J.oe=function(e){return this.JW.oe(e)};
g.J.nI=function(e,N,y,w){y||this.Aa.nI(w);return!1};
g.J.D$=function(e,N){this.NA.D$(e,N)};
g.J.CF=function(){this.lB("orfb");this.oA=!0;if(OaM(this)&&this.xhr){var e={rc:this.xhr.status,lb:this.xhr.BP(),rt:(1E3*ZAH(this.Aa)).toFixed(),shost:g.uB(this.t9),trigger:"o1"};this.Fh("pathprobe",Xe(e))}};
g.J.Ii=function(){this.lB("opr_r");this.h8=!0};
g.J.Iu=function(e,N,y,w){if(this.ZM){if(!this.ZM.has(e)){var E=new lO(this);this.ZM.set(e,E);g.Q(this,E)}var A;(A=this.ZM.get(e))==null||A.Iu(N,y,w);WO(this);y||(this.d4=w.ZN,this.qF=w.startMs)}else WO(this)};
g.J.gD=function(e){this.Oo=e;e.MD!=null&&this.JW.LG(e.MD)};
g.J.Hq=function(e){this.zR=e};
g.J.tp=function(e){e.videoId&&this.MV.set(e.videoId,e)};
g.J.Bq=function(){if(this.ZM)for(var e=g.c(this.ZM.keys()),N=e.next();!N.done;N=e.next()){var y=void 0;(y=this.ZM.get(N.value))==null||y.Wg()}};
g.J.fm=function(e){this.gt=e};
g.J.Yy=function(e){if(e==null?0:e.wI)if(e=e.wI.lH){e=g.c(e);for(var N=e.next();!N.done;N=e.next())N=N.value,N.videoId&&this.H6.set(N.videoId,N)}};
g.J.Fh=function(e,N,y){this.JW.Fh(e,N,y===void 0?!1:y)};
g.J.Km=function(e,N,y){var w;(w=vO(this,e))==null||w.Km(N,y)};
g.J.Q0=function(e){this.oa.set(e.videoId,e)};
g.J.fetch=function(){var e=this,N,y,w,E,A,T,p,C,r,Y,M,l,F,S,k,X,d,v,V,Z,n;return g.f(function(R){switch(R.J){case 1:e.logger.debug("Onesie fetch started.");e.nH?e.ZY.start():e.OJ.start();e.lB("or_i");N=e.ph.experiments.gP("html5_onesie_verbose_timing");y={};w=(0,g.iC)();E=function(O){N&&(y[O]=(0,g.iC)()-w)};
E("loc_s");if(A=qI9(e.videoData,e.Uk)){R.u9(2);break}E("loc_async");T=g.Y2(e.ph.experiments,"html5_onesie_redirector_timeout_ms");return g.D(R,Za_(e.videoData,e.Uk,T),3);case 3:A=R.N;case 2:if(!A)return e.logger.info("Onesie URL creation failed."),p={url:"0"},C=new P3("onesie.unavailable.hotconfig",p),e.hA(C),R.return(e.P7);e.Na=lN(A);E("loc_e");r=g.GX(e.ph,g.qK(e.videoData));Y=!!r.J;if(!Y){M=r.getValue();R.u9(4);break}return g.D(R,r.J,5);case 5:M=R.N;case 4:l=M;e.T("html5_log_onesie_empty_oauth")&&
!l&&e.Fh("no_token",{async:Y});E("oauth");F=jK1(e.playerRequest,e.ph,e.videoData,l,er(e.Na));g.c5(R,6);if(!KT3(e,F)){E("or_s_sync");e.j5=QKE(F,e.p8,e.ph,e.JW,e.Fx.onesieUstreamerConfig,(S=e.videoData.K4)==null?void 0:S.eL);R.u9(8);break}E("or_s_async");return g.D(R,HaE(F,e.p8,e.ph,e.JW,e.Fx.onesieUstreamerConfig,(k=e.videoData.K4)==null?void 0:k.eL),9);case 9:e.j5=R.N;case 8:g.B5(R,7);break;case 6:return X=g.XH(R),e.logger.info("Failed to create OnesieRequestProto."),e.hA(X),R.return(e.P7);case 7:return E("or_e"),
N&&e.Fh("oreqvt",y),e.enableCompression=e.j5.N0.zF,e.lB("osor"),d=VI0(),v=g.A5(e.j5,DxF),V={method:"POST",body:v,headers:{"Content-Type":"text/plain",Referer:location.origin}},Z=e.T("html5_onesie_media_capabilities"),x_P(A,e.videoData,GXM(e),Z),e.logger.debug("Starting Onesie network request."),e.gK&&e.Fh("ombrs","1"),n=e.JW.X().schedule,e.Aa=new j3(e,{bk:n,CU:e.gK,fd:function(O,E9){e.JW.Gt(O,E9)},
UT:!0}),A.set("rn",""+e.Aa.requestNumber),e.t9=A.nC(),x8(e.Aa,e.t9),e.lB("or_p"),e.xhr=Oi(new T4(A),d,e.Aa,QY,V),e.Wd.start(),R.return(e.P7)}})};
g.J.df=function(){return 2};
g.J.Fm=function(){this.lB("orh_r")};
g.J.X_=function(){!this.oA&&this.xhr.BP()&&this.CF();if(this.Ke&&!this.nH){var e;(e=this.fP)==null||e.start()}this.vP()};
g.J.c_=function(e){e=e===void 0?!1:e;this.logger.debug("onXhrDone");this.vP();if(!(this.Ss()||this.state>=4)){var N=HO(this),y=this.xhr;N.rc=y.status;e&&(N.ab=!0);if(y.Cq()){var w="onesie.net";N.msg=y.Cq()}else y.status>=400?w="onesie.net.badstatus":y.CG()?this.h8||(w="onesie.response.noplayerresponse"):w=y.status===204?"onesie.net.nocontent":"onesie.net.connect";w?this.hA(new P3(w,N)):(this.lB("or_fs"),this.Aa.KF((0,g.iC)(),y.BP(),0),this.IJ(4),this.gK&&this.Fh("rqs",N));this.gK&&this.Fh("ombre",
"ok."+ +!w);this.vS=!1;WO(this);mp(this.NA);if(!this.nH){this.OJ.stop();var E;(E=this.fP)==null||E.stop()}var A;if(e=(A=this.Uk)==null?void 0:BwP(A))for(A=0;A<e.length;A++)this.Fh("pathprobe",e[A])}};
g.J.FG=function(){if(this.playerResponse&&this.xhr&&this.ZM)for(var e=g.c(this.ZM.entries()),N=e.next();!N.done;N=e.next())if(N=g.c(N.value),N.next(),N.next().value.N){this.xhr.abort();this.c_(!0);break}};
g.J.X=function(){return this.ph};
g.J.T=function(e){return this.ph.T(e)};
g.J.uz9=function(){if(OaM(this)&&this.Uk&&(!this.oA||this.T("html5_onesie_probe_ec_hosts"))){var e=this.Uk;if(e.ph.experiments.gP("html5_onesie_probe_ec_hosts")){var N,y=(N=e.J.get(3))==null?void 0:lN(N.location);y&&PO(e,y,"osc",this);var w;(y=(w=e.J.get(4))==null?void 0:lN(w.location))&&PO(e,y,"ocy",this)}else{var E;(w=(E=e.J.get(1))==null?void 0:lN(E.location))&&PO(e,w,"o2",this);(w=(y=e.J.get(2))==null?void 0:lN(y.location))&&PO(e,w,"o3",this)}}};
g.J.Ba=function(){if(!this.Ss()&&!this.isComplete()){if(this.Ke){if((0,g.iC)()-this.Aa.G>1E3){var e;(e=this.Aa)==null||e.Ep((0,g.iC)());e=HO(this);if(this.ph.B9()&&this.xhr instanceof K5){var N=this.xhr;e.xrs=N.xhr.readyState;e.xpb=N.J.getLength();e.xdc=N.j}this.hA(new P3("net.timeout",e))}}else(0,g.iC)()-this.Aa.J>1E4&&((N=this.Aa)==null||N.Ep((0,g.iC)()),this.n1());this.isComplete()||this.ZY.start()}};
g.J.n1=function(){this.logger.info("Onesie request timed out");this.vS=!1;if(!WO(this)){var e=HO(this);e.timeout="1";this.hA(new P3("onesie.request",e))}};
g.J.hA=function(e){var N=this;e=I2(e);this.Ke?this.JW.Qi(e):(this.P7.reject(e),this.Ke=!0);mp(this.NA);this.nH||this.OJ.stop();this.lB("or_fe");var y,w;(y=this.Uk)==null||(w=BwP(y))==null||w.forEach(function(E){N.Fh("pathprobe",E)});
this.IJ(5);this.dispose()};
g.J.isComplete=function(){return this.state>=3};
g.J.Mn=function(){return this.state===4};
g.J.U1=function(e){var N,y;return this.isComplete()||!!((N=this.ZM)==null?0:(y=N.get(e))==null?0:y.J)};
g.J.V4=function(){return!1};
g.J.Q_=function(){return this.state===5};
g.J.notifySubscribers=function(e){for(var N=0;N<this.dR.length;N++)e&&this.dR[N].vE()!==e||ef(this.dR[N],this)};
g.J.Yv=function(){var e,N;return((e=this.j5)==null?void 0:(N=e.IS)==null?void 0:N.Sb)||0};
g.J.fh=function(){this.playerResponse="";var e;(e=this.xhr)==null||e.abort();mp(this.NA);this.uI.dispose();var N;(N=this.fP)==null||N.dispose();this.IJ(-1);this.dR=[];g.x.prototype.fh.call(this)};
g.J.vP=function(){try{var e=this.xhr;e.BP()>102400&&!this.UC&&(this.lB("or100k"),this.UC=!0);if(e.MO()){var N=e.Qg(),y=N.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+y});
this.gK&&this.Fh("ombrss","len."+y);this.uI.feed(N)}if(this.ZM)for(var w=g.c(this.ZM.keys()),E=w.next();!E.done;E=w.next()){var A=E.value;e=void 0;(e=this.ZM.get(A))==null||e.Wg();this.notifySubscribers(A)}}catch(T){this.hA(T)}};
g.J.YK=function(){return this.Aa.requestNumber};
g.J.hG=function(e){return this.oa.get(e)};
g.J.Ue=function(){return{d4:this.d4,qF:this.qF,isDecorated:!1}};g.b(OB,g.x);g.J=OB.prototype;g.J.Fc=function(e,N){this.Kh=void 0;F05(this);Yn5(this,e,N)};
g.J.lS=function(e){if(this.J.length===0)return!1;var N=this.J[0];return N instanceof KH?e===this.tW.getCurrentTime()*1E3:!(N instanceof kX&&pgP(N.info))&&Math.abs(N.Yv()-e)<50};
g.J.tp=function(e){this.N=e;this.Kh=(0,g.iC)()+(e.backoffTimeMs||0)};
g.J.fu=function(e,N){if(e.action===void 0){var y=this.JW.F2();y!==void 0&&this.tW.ou(y)}else if(e.action!==0||!this.Et)switch(e.action===0&&this.policy.hX&&(e.action=2),y={},y.reason=e.MNg,y.action=e.action,y.rn=N,e.action){case 1:this.policy.L&&this.j&&this.j.Ok(void 0,void 0,y);break;case 0:this.Et=!0;this.videoData.Au()&&this.policy.L&&this.j&&this.j.Ok(void 0,void 0,y,!1);this.tW.qH(y);break;case 2:this.tW.handleError("sabr.config",y,1);break;case 5:Vk9(this.JW,!0);break;case 6:Vk9(this.JW,!1);
break;case 3:this.policy.Xz&&((e=this.rP.U)!=null&&(e.U=!0),this.tW.handleError("sabr.hostfallback",y))}};
g.J.J9=function(e,N,y,w){if(this.policy.N){this.tW.Fh("ssap",{rn:w,v:N,tl:oK3(e)});var E=this.tW.bP();e={YS:e,context:y,version:N};MxF(this,y);E?lG9(this,E,e):(this.tW.Fh("ssap",{cacheclips:1,rn:w,v:N}),this.U=e)}};
g.J.qf=function(e){var N=this.policy.Kh||this.policy.Sz||this.policy.N;this.tW.Fh("ssap",{onsbrctxt:e.type,dflt:e.sendByDefault,enable:N?1:0});N&&MxF(this,e);this.policy.Sz&&this.JW.qf(e)};
g.J.Ku=function(){};
g.J.fm=function(e){if(e.Fl!==void 0&&e.Jj){var N=e.Fl/e.Jj;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.qg||this.policy.YB||this.policy.uo)this.tW.jZ.N=!1;this.tW.Kz(N,1);if(this.JW.getCurrentTime()!==N){var y={BY:"sabr_seek",CI:!0,Gf:!0};e.seekSource&&(y.seekSource=e.seekSource);tz(this.tW,N+.1,y)}}};
g.J.onSnackbarMessage=function(e){this.JW.publish("onSnackbarMessage",e)};
g.J.gD=function(e){e.NL&&e.cz&&Fu(this.rP,e.NL,e.cz);this.policy.fk&&(e.eO&&e.vA&&(this.rP.gf=e.eO/e.vA),e.rC&&e.LK&&(this.rP.zg=e.rC/e.LK));e.MD!=null&&this.JW.LG(e.MD);this.policy.TV&&e.C7&&(e=((0,g.iC)()-e.C7)/1E3,this.tW.eE.Kj(1,e))};
g.J.DI=function(e){this.tW.DI(e)};
g.J.tb=function(e,N,y){this.policy.K&&this.tW.Fh("sabrctxtplc",{start:e?e.join("_"):"",stop:N?N.join("_"):"",discard:y?y.join("_"):""});if(e){e=g.c(e);for(var w=e.next();!w.done;w=e.next())this.UH.add(w.value)}if(N)for(N=g.c(N),e=N.next();!e.done;e=N.next())e=e.value,this.UH.has(e)&&this.UH.delete(e);if(y)for(y=g.c(y),N=y.next();!N.done;N=y.next())N=N.value,this.videoData.sabrContextUpdates.has(N)&&(this.videoData.sabrContextUpdates.delete(N),N===3&&(this.videoData.wh=""))};
g.J.bQ=function(){};
g.J.b7=function(e){this.G=e};
g.J.Fy=function(e){this.aq=e};
g.J.jl=function(e,N){uz(this.policy,e,4,N)};
g.J.Yy=function(e){if(e==null?0:e.wI)if(e=e.wI.lH){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.formatId){var y=this.rP.K.get(Sl(N.formatId));y&&y.info&&(y.info.debugInfo=N.debugInfo)}}};
g.J.N5=function(e){(e=e==null?void 0:e.reloadPlaybackParams)&&this.JW.publish("reloadplayer",e)};
g.J.vE=function(){return this.JW.vE()||""};
g.J.Io=function(){var e=ke(this.audioTrack,!0)*1E3,N=ke(this.videoTrack,!0)*1E3;return Math.min(e,N)};
g.J.g4=function(e,N){this.tW.Fh(e,N)};
g.J.Dr=function(e){Z3n(this.tW,cdE(this.Wk,e))};
g.J.fh=function(){g.x.prototype.fh.call(this);this.N=void 0;Yn5(this,!0,"i");this.J=[]};b35.prototype.Ga=function(e,N){if(this.j)return XH9(this,N);if(N=u3(e)){var y=N.N;y&&y.K&&y.J&&(e=e.K.length?e.K[0]:null)&&e.state>=2&&!e.Q_()&&e.info.Hf===0&&(this.j=e,this.G=y,this.N=N.info,this.Z=this.startTimeSecs=Date.now()/1E3,this.L=this.N.startTime)}return NaN};
b35.prototype.clear=function(){this.N=this.G=this.j=null;this.J=this.L=this.Z=this.startTimeSecs=NaN;this.K=!1};g.b(g.Ev,g.x);g.J=g.Ev.prototype;g.J.initialize=function(e,N,y){this.logger.debug(function(){return"Initialized, t="+e});
e=e||0;this.policy.J||(N=B4M(this.J),nK3(this.JW,new VW(N.video,N.reason)),this.JW.wJ(new VW(N.audio,N.reason)));this.rP.isManifestless&&WsF(this.L);this.G&&c3H(this.G,this.videoTrack.J);N=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var w=!this.rP.isManifestless;this.policy.A4&&(w=w||this.rP.Ta);this.policy.Rq||(this.currentTime=w?e:N);this.policy.qg&&this.seek(this.getCurrentTime(),{}).On(function(){});
if(this.policy.J){var E;((E=this.Ng)==null?0:U_E(E,this.vE()||""))&&zL5(this)&&vKs(this,this.videoTrack)&&vKs(this,this.audioTrack)&&(Sn0(this.K,this.Ng),this.policy.Z&&IG9(this))}else this.Kh&&(i35(this,this.videoTrack),i35(this,this.audioTrack),u9M(this.Kh),delete this.Kh);y?(this.policy.CN?(this.SR=y,Tt(this,y)):Tt(this,!1),g.NA(this.Pg)):(y=this.getCurrentTime()===0,nr(this.L,this.videoTrack,this.videoTrack.J,y),nr(this.L,this.audioTrack,this.audioTrack.J,y),this.policy.J&&aW_(this.K,!0),this.policy.qg||
this.seek(this.getCurrentTime(),{}).On(function(){}),this.timing.tick("gv"));
(this.rP.L$||this.rP.ZK||this.rP.aq||this.rP.pX||this.rP.PY)&&this.JW.HS(this.rP)};
g.J.resume=function(){if(this.isSuspended||this.Sh){this.logger.debug("Resumed.");this.cU=this.Sh=this.isSuspended=!1;try{this.Ga()}catch(e){g.t0(e)}}};
g.J.Nc=function(){return!this.policy.a9};
g.J.wb=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;this.logger.debug("detaching media source");fGF(this);this.JW.fO()&&(this.Z=NaN);e?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.aq&&this.Fh("loader",{setsmb:1}),this.policy.i9=!0,this.w4()):(this.policy.CN?Tt(this,this.SR):Tt(this,!1),N||this.w4())};
g.J.setAudioTrack=function(e,N,y){y=y===void 0?!1:y;if(!this.Ss()){var w=!isNaN(N);y&&w&&(this.audioTrack.Ng=Date.now(),this.policy.UY&&(this.Ut=!0));if(this.policy.J){var E=this.N.QP(e.id,w);this.logger.debug(function(){return"Logging new audio format: "+E.J.info.id});
this.JW.wJ(E)}else{var A=h_E(this.J,e.id,w);this.logger.debug(function(){return"Logging new audio format: "+A.audio.info.id});
this.JW.wJ(new VW(A.audio,A.reason))}if(w&&(y=this.audioTrack.J.index.zI(N),this.Fh("setAudio",{id:e.id,cmt:N,sq:y}),y>=0)){this.policy.J&&(this.N.U=!0,this.Fc(!0,"mosaic"));Bl(this.audioTrack,y,NaN,NaN);!this.policy.im&&this.rP.isLive&&l2(this.rP,y,!1);return}this.JW.P_()}};
g.J.setPlaybackRate=function(e){e!==this.D.getPlaybackRate()&&this.D.setPlaybackRate(e)};
g.J.fH=function(e){var N=this.K.G;this.K.b7(e);this.Fh("scfidc",{curr:Sl(N),"new":Sl(e)});e&&Sl(e)!==Sl(N)&&(this.Fc(!1,"caption change"),this.Ga())};
g.J.tE=function(e){this.K.Fy(e)};
g.J.vr=function(e){var N=e.J.info.qG();this.logger.debug(function(){return"New "+(N?"audio":"video")+" format from SABR: "+N$(e.J.info)});
N?this.JW.wJ(e):nK3(this.JW,e)};
g.J.Dr=function(e){Px(e.QB[e.QB.length-1])&&Z3n(this,cdE(this.J,e.QB[0].J))};
g.J.rf=function(){return this.JW.rf()};
g.J.ND=function(){return this.JW.ND()};
g.J.DI=function(e){this.JW.X().B9()&&this.Fh("sps",{status:e.RS||""});if(e.RS===1)this.JW.videoData.JX=0;else if(e.RS===2||e.RS===3){var N=!1;if(e.RS===3){N=this.JW.kL();var y;this.FZ=(y=e.FiB)!=null?y:Infinity;this.JW.videoData.JX=N+1;(N=Kr(this))&&this.GR(!0)}this.JW.Du(!0,N)}};
g.J.HZ=function(){return this.JW.HZ()};
g.J.XW=function(){return this.JW.XW()};
g.J.k5=function(e){this.JW.k5(e)};
g.J.o9B=function(){var e,N=(e=this.JW.LC())==null?void 0:e.getCurrentTime();N?this.JW.Fh("rms",{cta:N}):g.NA(this.pX)};
g.J.Ga=function(){qnn(this);if(this.TZ&&nh(this.TZ)&&!this.TZ.Vh()&&(!this.policy.Rq||isFinite(this.getCurrentTime()))){var e=MN(this.videoTrack);e=this.policy.yw&&e&&e.eY();this.rP.isManifestless&&this.rP.j&&rt(this.rP)?(this.Z=rt(this.rP),this.TZ.zV(this.Z)):SI(this.rP)&&!e?isNaN(this.Z)?(this.Z=this.getCurrentTime()+3600,this.TZ.zV(this.Z)):this.Z<=this.getCurrentTime()+1800&&(this.Z=Math.max(this.Z+1800,this.getCurrentTime()+3600),this.TZ.zV(this.Z)):this.TZ.isView||(e=Math.max(this.audioTrack.getDuration(),
this.videoTrack.getDuration()),(!isFinite(this.Z)||this.Z!==e)&&e>0&&(this.TZ.zV(e),this.Z=e))}if(!this.Ss())if(CC(this.rP)&&this.rP.Q_()){var N=this.rP;this.handleError("manifest.net.retryexhausted",N.Ut?{rc:N.Ie}:{rc:N.Ie.toString()},1)}else if(this.policy.J)a:{try{a9(this.K);this.rP.isManifestless&&this.policy.Z&&V9(this.jZ);if(Vxs(this)&&this.TZ&&!HI(this.TZ)&&this.videoTrack.aq&&this.audioTrack.aq){this.Fh("ssap",{delaysb:1,v:this.videoTrack.J.info.id,vf:this.videoTrack.J.info.Iq,a:this.audioTrack.J.info.id,
af:this.audioTrack.J.info.Iq});var y=this.TZ,w=this.videoTrack.J,E=this.audioTrack.J;!HI(y)&&E&&w&&(Sz5(y,w.info,E.info,this.policy.jN),tx0(this,y))}var A;((A=this.TZ)==null?0:HI(A))&&this.bu();this.policy.J||Aj(this);aW_(this.K)}catch(p){g.uA(p);N=p;if(N.message.includes("changeType")){this.Fh("ssap",{exp:N.name,msg:N.message,s:N.stack});break a}this.handleError("fmt.unplayable",{exp:N.name,msg:N.message,s:N.stack},1)}AYE(this);g.NA(this.Bk)}else if(!this.rP.N||!XUF(this.videoTrack)&&!XUF(this.audioTrack)||
(this.videoTrack.L||this.audioTrack.L)&&this.policy.SR?y=!1:(this.w4(),this.JW.seekTo(Infinity,{BY:"checkLoaderTracksSync",Kz:!0}),y=!0),!y){qnn(this);this.rP.isManifestless&&(P2M(this.videoTrack),P2M(this.audioTrack),V9(this.jZ),(y=u3(this.videoTrack))&&y.N&&(y=y.N.K&&!this.policy.o1,this.Fh(y===this.policy.U.Z0?"strm":"strmbug",{strm:y,sfmp4:this.policy.U.Z0,dfs:this.policy.o1},!0)));if(this.TZ)this.bu();else if(this.policy.j){var T;y=!1;if(this.policy.Fq)for(w=g.c([this.videoTrack,this.audioTrack]),
E=w.next();!E.done;E=w.next()){A=E.value;for(E=u3(A);E&&A.SL()!==MN(A);E=u3(A))A.Of(E);y=y||!!E}else(N=u3(this.videoTrack))&&this.videoTrack.Of(N),(T=u3(this.audioTrack))&&this.audioTrack.Of(T);bz(this.videoTrack)&&bz(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(N||T||y)&&sB(this)}Aj(this);nr(this.L,this.videoTrack,this.videoTrack.J,!1);nr(this.L,this.audioTrack,this.audioTrack.J,!1);this.policy.uf||jf9(this,this.videoTrack,this.audioTrack);jI0(this.L,this.videoTrack,
this.audioTrack);jI0(this.L,this.audioTrack,this.videoTrack);AYE(this);this.G&&(N=this.G,N.j?(T=N.Z+N.policy.xw,N.K||(T=Math.min(T,N.startTimeSecs+N.policy.Tg)),N=Math.max(0,T*1E3-Date.now())):N=NaN,isNaN(N)||g.NA(this.jn,N));g.NA(this.Bk)}};
g.J.qH=function(e){this.JW.qH(e)};
g.J.bu=function(){var e=this;if(this.TZ){var N=this.TZ.J,y=this.TZ.N;rY_(this,this.audioTrack);rY_(this,this.videoTrack);var w=mOM(this);if(w){if(this.policy.oS){if(!N.QO()){var E=u3(this.audioTrack);if(E){if(!wg(this,this.audioTrack,N,E.info))return;W01(this,this.audioTrack,N,E)}}if(!y.QO()&&(E=u3(this.videoTrack))){if(!wg(this,this.videoTrack,y,E.info))return;W01(this,this.videoTrack,y,E)}}this.NT||(this.NT=(0,g.iC)(),this.logger.debug(function(){return"Appends pause start "+e.NT+" reason "+w}),
this.policy.K&&this.Fh("apdps",{r:w}))}else if(this.NT&&(Qf1(this,this.NT),this.NT=0),H3P(this),E=!1,this.policy.N&&DU(this.videoTrack)||!L0n(this,this.videoTrack,y)||(E=!0,UaH(this.timing),e_9(this.timing)),this.TZ&&!this.TZ.u6()&&(this.policy.N&&DU(this.audioTrack)||!L0n(this,this.audioTrack,N)||(E=!0,LhM(this.timing),N4H(this.timing)),!this.Ss()&&this.TZ)){if(!this.policy.a9&&bz(this.videoTrack)&&bz(this.audioTrack)&&nh(this.TZ)&&!this.TZ.Vh()){y=!1;
y=MN(this.audioTrack);if(this.policy.N){var A;N=(A=this.k_)==null?void 0:P0(A,y.o2*1E3);y=!(!N||N.clipId!==y.clipId);this.Fh("ssap",{eos:y})}else A=y.J,y=A===this.rP.J[A.info.id];y&&(this.logger.debug("Setting EOS"),oN3(this.TZ),fuJ(this.schedule))}E&&!this.TZ.isAsync()&&sB(this)}}};
g.J.BO=function(e){var N,y=e===((N=this.TZ)==null?void 0:N.J)?this.audioTrack:this.videoTrack,w;(w=y.l9)==null||w.stop();var E;if((E=u3(y))==null?0:E.isLocked){if(this.JW.X().B9()){var A;this.Fh("eosl",{ounlock:(A=u3(y))==null?void 0:A.info.O2()})}var T;wF5(this,e===((T=this.TZ)==null?void 0:T.J))}var p;if(this.policy.UY&&e===((p=this.TZ)==null?void 0:p.J)&&this.VB){N=this.VB-this.getCurrentTime();var C;this.JW.Fh("asl",{l:N,xtag:(C=MN(this.audioTrack))==null?void 0:C.J.info.J});this.Ut=!1;this.VB=
0}e.QI()&&e.Ju().length===0&&(e.IC(),this.TZ&&!this.TZ.QI()&&(this.JW.X().B9()&&this.JW.Fh("rms",{ld:"seek"}),this.TZ.Z=performance.now(),this.JW.TF(),this.JW.X().B9()&&g.NA(this.pX)));var r;(r=y.D)!=null&&WT(r,0);this.policy.Dl&&this.policy.Sy&&this.TZ&&(y=e.mM())&&y.eY()&&!AX(e.Ju(),Math.min(y.o2+Jj,y.XT))&&this.Fh("sbunb",{st:y.o2,et:y.XT});this.policy.FZ?mL(this):this.Ga()};
g.J.UUZ=function(e){if(this.TZ){var N=MN(e===this.TZ.J?this.audioTrack:this.videoTrack);if(e=e.un())for(var y=0;y<e.length;y++)this.Fh("appendedbuffer",{i:y,b:g.oN(e[y].subarray(0,4096),3)});e=void 0;N&&(e=vx(N),this.policy.N&&this.k_&&this.k_.XH()&&(e.ccid=this.k_.XH()));this.handleError("fmt.unplayable",e,1)}};
g.J.VQ=function(e){this.JW.VQ(e)};
g.J.Q8=function(e,N,y){if(this.rP.isManifestless){e=!!e.info.video;C21(this,N,y,e,!0);var w;if(((w=this.JW.getVideoData())==null?0:w.enableServerStitchedDai)&&N.J){a:{w=this.rP;var E=N.Ch;for(A in w.J)if(!Ug(w.J[A].info)&&w.J[A].info.gx()===!e){y=void 0;var A=((y=w.J[A].index.o8(E))==null?void 0:y.J)||0;break a}A=0}A!==0&&A!==N.J&&this.handleError("ssdai.avsync",{sq:N.Ch,a:e?A:N.J,v:e?N.J:A},0)}}};
g.J.Ya=function(e,N,y,w){e.info.video&&this.j.Ya(N,y,w)};
g.J.gF=function(e){this.J.gF(e)};
g.J.Qr=N3(19);g.J.Mf=function(e){this.k_=e;var N;(N=this.audioTrack.U)!=null&&(N.Yk=e);(N=this.videoTrack.U)!=null&&(N.Yk=e);N=this.K;N.U&&(N.tW.Fh("ssap",{addcacheclips:1,v:N.U.version,tl:oK3(N.U.YS)}),lG9(N,e,N.U),N.U=void 0)};
g.J.bP=function(){return this.k_};
g.J.u$=function(){return this.videoTrack.G||this.audioTrack.G};
g.J.seek=function(e,N){if(this.Ss())return oD();if(this.u$())return oD("seeking to head");if(this.policy.qg&&!isFinite(e))return vBJ(this.jZ),g.S9(Infinity);qnn(this);this.Vy=(0,g.iC)();this.policy.J||Aj(this,e);this.TZ&&this.TZ.J&&this.TZ.N&&!this.JW.getVideoData().hv&&(this.TZ.J.isLocked()||this.TZ.N.isLocked())&&this.JW.P_({reattachOnLockedBuffer:1,vsb:""+this.TZ.N.isLocked(),asb:""+this.TZ.J.isLocked()});var y=this.getCurrentTime(),w=this.jZ.seek(e,N);this.policy.Rq||(this.currentTime=w);D0(this.j,
e,y,this.policy.NB&&!N.CI);sB(this);return g.S9(w)};
g.J.lS=function(e){return this.policy.J&&this.K.lS(e)};
g.J.Fc=function(e,N){this.K.Fc(e,N)};
g.J.getCurrentTime=function(){if(this.policy.Rq){var e=this.w7()||0;return this.JW.getCurrentTime()-e}return this.currentTime};
g.J.QF=function(){return this.audioTrack.J.info};
g.J.fI=function(){return this.videoTrack.J.info};
g.J.LV=function(){return this.audioTrack.J.info.Iq};
g.J.T2=function(){return this.videoTrack.J.info.Iq};
g.J.fh=function(){try{this.wb(),zc(this.audioTrack),zc(this.videoTrack),zb(this.audioTrack),zb(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.x.prototype.fh.call(this)}catch(e){g.t0(e)}};
g.J.handleError=function(e,N,y){y=y===void 0?0:y;var w=dp(y);e==="fmt.unplayable"&&this.rP.isLive&&(this.policy.oS=!1,MX(this.rP));N=new P3(e,N,y);g.RP(this);Xe(N.details);this.JW.handleError(N);e!=="html5.invalidstate"&&N.errorCode!=="fmt.unplayable"&&e!=="fmt.unparseable"&&w&&this.dispose()};
g.J.N7=function(){var e=MN(this.audioTrack),N=MN(this.videoTrack);e={lct:this.getCurrentTime().toFixed(3),lsk:this.jZ.isSeeking(),lmf:this.J.J.isLocked(),lbw:Yj(this.schedule).toFixed(3),lhd:Ca(this.schedule).toFixed(3),lst:((this.schedule.G.AT()||0)*1E9).toFixed(3),laa:e?e.O2():"",lva:N?N.O2():"",lar:this.audioTrack.N?this.audioTrack.N.O2():"",lvr:this.videoTrack.N?this.videoTrack.N.O2():"",laq:""+hW(this.audioTrack),lvq:""+hW(this.videoTrack)};this.TZ&&!this.TZ.u6()&&this.TZ.J&&this.TZ.N&&(e.lab=
wO(this.TZ.J.Ju()),e.lvb=wO(this.TZ.N.Ju()));this.NT&&(e.lapt=((0,g.iC)()-this.NT).toFixed(0),e.lapr=mOM(this));this.i9&&(e.lapmabht=((0,g.iC)()-this.i9).toFixed(0),e.lapmabh=D2(this,this.audioTrack).toFixed(0));this.aq&&(e.lapmvbht=((0,g.iC)()-this.aq).toFixed(0),e.lapmvbh=D2(this,this.videoTrack).toFixed(0));this.Rq&&(e.lapsdai=((0,g.iC)()-this.Rq).toFixed(0));return e};
g.J.w4=function(){try{this.policy.J&&this.K.Fc(!1,"pending"),this.audioTrack.w4(),this.videoTrack.w4()}catch(e){g.t0(e)}this.policy.j=""};
g.J.Xx=function(){return b3(this.D)};
g.J.Fh=function(e,N,y){this.JW.Fh(e,N,y===void 0?!1:y)};
g.J.vE=function(){return this.JW.vE()};
g.J.Kz=function(e,N){e/=N;isNaN(this.timestampOffset)&&$KJ(this,e-Math.min(e,this.policy.Dy));return(e-this.timestampOffset)*N};
g.J.w7=function(){return this.timestampOffset};
g.J.isSeeking=function(){return this.jZ.isSeeking()};
g.J.f_=function(){this.j.f_()};
g.J.mK=function(e,N,y){N=N===void 0?!1:N;y=y===void 0?{}:y;this.policy.J?this.N.mK(e,N,y):this.J.mK(e,N,y)};
g.J.QM=function(e,N){if(!this.U)return!1;var y=this.videoTrack.J.index.zI(e);return this.U.QM(e,N,y)};
g.J.Ll=function(e,N){if(this.U&&this.j.Ll(e,this.U))return $KJ(this,this.timestampOffset-N),sB(this),this.policy.L&&(MX(this.rP),zb(this.audioTrack),zb(this.videoTrack),this.w4()),!0;N=this.videoTrack.J.index.zI(e);this.handleError("ad.skipfailed",{dec:!!this.U,t:e.toFixed(3),sq:N});return!1};
g.J.getManifest=function(){return this.rP};
g.J.isOffline=function(){return!!this.JW.getVideoData().cotn};
g.J.Gt=function(e,N){this.JW.Gt(e,N)};
g.J.j0=function(e){if(this.policy.E0)this.policy.J&&this.K.Fc(!0,"utc"),this.Ga();else{var N=this.JW.getVideoData().E_;if(N){var y=this.L;y.Q2=e;y.E_=N;Wl(this)}}};
g.J.ou=function(e){this.videoTrack.G=!1;this.audioTrack.G=!1;this.jZ.N=!1;this.JW.ou(e)};
g.J.xD=function(e){this.jZ.xD(e-this.w7())};
g.J.WC=function(){this.JW.WC()};
g.J.GR=function(e){e!==this.policy.j_&&((this.policy.j_=e)||this.Ga())};
g.J.EJ=function(e,N){var y=this.audioTrack.TW,w=this.videoTrack.TW;y&&w&&(y.remove(e,N),w.remove(e,N))};
g.J.P_=function(e){this.JW.P_(e)};
g.J.Bm=function(e){this.JW.Bm(e)};
g.J.kL=function(){return this.JW.kL()};g.J=g.pW.prototype;g.J.zz=function(e,N,y,w,E,A){return this.Yk.zz(e,N,y,w,E,A)};
g.J.Ox=function(e,N,y,w,E,A){return this.Yk.Ox(e,N,y,w,E,A)};
g.J.cM=function(e){return this.Yk.cM(e)};
g.J.lh=function(e){this.Yk.lh(e)};
g.J.Ok=function(e,N,y,w){return this.Yk.Ok(e,N,y,w)};
g.J.f_=function(){this.Yk.f_()};
g.J.QM=function(e,N,y){return this.Yk.QM(e,N,y)};
g.J.Af=function(e,N){this.Yk.Af(e,N)};
g.J.My=function(){this.Yk.My()};
g.J.HQ=N3(48);g.J.Xo=function(e,N,y){this.Yk.Xo(e,N,y)};
g.J.r6=N3(51);g.J.O7=function(e,N,y,w,E,A,T,p,C){this.Yk.O7(e,N,y,w,E,A,T,p,C)};
g.J.aZ=function(e){this.Yk.aZ(e)};
g.J.Wi=function(e){return this.Yk.Wi(e)};
g.J.hI=function(e){return this.Yk.hI(e)};g.b(CW,g.pT);g.b(rg,CW);rg.prototype.Z=function(e,N){if(e&&N){var y=Number(Hc(e,"cpi"))*1+1;isNaN(y)||y<=0||y<this.K?(this.j.stop(),this.N.stop(),this.K=-1,this.J={}):(y>this.K&&(this.K=y,g.v4(this.J)||(this.J={},this.j.stop(),this.N.stop())),this.J[N]=e,g.NA(this.N))}};
rg.prototype.L=function(){for(var e=g.c(Object.keys(this.J)),N=e.next();!N.done;N=e.next()){var y=N.value;N=this.publish;for(var w=this.K,E=this.J[y].match(fY),A=[],T=g.c(E[6].split("&")),p=T.next();!p.done;p=T.next())p=p.value,p.indexOf("cpi=")===0?A.push("cpi="+w.toString()):p.indexOf("ek=")===0?A.push("ek="+g.RA(y)):A.push(p);E[6]="?"+A.join("&");y="skd://"+E.slice(2).join("");E=y.length*2;w=new Uint8Array(E+4);w[0]=E%256;w[1]=(E-w[0])/256;for(E=0;E<y.length;++E)w[E*2+4]=y.charCodeAt(E);N.call(this,
"rotated_need_key_info_ready",new eL(w,"fairplay",!0))}this.J={}};
rg.prototype.fh=function(){this.J={};CW.prototype.fh.call(this)};g.b($4,CW);
$4.prototype.L=function(e){var N;a:{if((N=e.cryptoPeriodIndex)&&this.J.length>0)for(var y=g.c(this.J),w=y.next();!w.done;w=y.next())if(N===w.value.info.cryptoPeriodIndex){N=!0;break a}N=!1}if(!N){N=(0,g.iC)();a:{y=e.cryptoPeriodIndex;if(!isNaN(y)){w=g.c(this.K.values());for(var E=w.next();!E.done;E=w.next())if(Math.abs(E.value.cryptoPeriodIndex-y)<=1){y=!0;break a}}y=!1}y?(y=e.J,y=Math.max(0,Math.random()*((isNaN(y)?120:y)-30))*1E3):y=0;this.publish("log_qoe",{wvagt:"delay."+y,cpi:e.cryptoPeriodIndex,reqlen:this.J.length,
ignore:this.j});y<=0?Fd5(this,e):this.j||(this.J.push({time:N+y,info:e}),g.NA(this.N,y))}};
$4.prototype.fh=function(){this.J=[];CW.prototype.fh.call(this)};var le={},cY3=(le.DRM_TRACK_TYPE_AUDIO="AUDIO",le.DRM_TRACK_TYPE_SD="SD",le.DRM_TRACK_TYPE_HD="HD",le.DRM_TRACK_TYPE_UHD1="UHD1",le);g.b(bXM,g.x);g.b(BdM,g.pT);g.J=BdM.prototype;g.J.Nx=function(e){var N=this;this.Ss()||e.size<=0||(e.forEach(function(y,w){var E=dt(N.N)?w:y;w=new Uint8Array(dt(N.N)?y:w);dt(N.N)&&j$E(w);y=g.oN(w,4);j$E(w);w=g.oN(w,4);N.J[y]?N.J[y].status=E:N.J[w]?N.J[w].status=E:N.J[y]={type:"",status:E}}),t53(this,","),Y4(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.J.error=function(e,N,y,w){this.Ss()||(this.publish("licenseerror",e,N,y,w),e==="drm.provision"&&(e=(Date.now()-this.Z)/1E3,this.Z=NaN,this.publish("ctmp","provf",{et:e.toFixed(3)})));dp(N)&&this.dispose()};
g.J.shouldRetry=function(e,N){return this.i9&&this.G?!1:!e&&this.requestNumber===N.requestNumber};
g.J.fh=function(){this.J={};g.pT.prototype.fh.call(this)};
g.J.N7=function(){var e={ctype:this.D.contentType||"",length:this.D.initData.length,requestedKeyIds:this.l9,cryptoPeriodIndex:this.cryptoPeriodIndex};this.K&&(e.keyStatuses=this.J);return e};
g.J.getInfo=function(){var e=this.j.join();if(Mt(this)){var N=new Set,y;for(y in this.J)this.J[y].status!=="usable"&&N.add(this.J[y].type);e+="/UKS."+Array.from(N)}return e+="/"+this.cryptoPeriodIndex};
g.J.nC=function(){return this.url};g.b(lw,g.x);g.J=lw.prototype;g.J.mG=function(e){if(this.L){var N=e.messageType||"license-request";this.L(new Uint8Array(e.message),N)}};
g.J.Nx=function(){this.G&&this.G(this.J.keyStatuses)};
g.J.onClosed=function(){this.Ss()||g.Kp("xboxone")&&this.K&&this.K("closed")};
g.J.CZ=function(e){this.L&&this.L(e.message,"license-request")};
g.J.RU=function(e){if(this.K){if(this.N){var N=this.N.error.code;e=this.N.error.systemCode}else N=e.errorCode,e=e.systemCode;this.K("t.prefixedKeyError;c."+N+";sc."+e,N,e)}};
g.J.S7=function(){this.Z&&this.Z()};
g.J.update=function(e){var N=this;if(this.J)return(jI.isActive()?jI.le("emeupd",function(){return N.J.update(e)}):this.J.update(e)).then(null,$B(function(y){Q$J(N,"t.update",y)}));
this.N?this.N.update(e):this.element.addKey?this.element.addKey(this.U.keySystem,e,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.U.keySystem,e,this.initData,this.sessionId);return u4()};
g.J.fh=function(){this.J&&(this.D?this.J.close().catch(g.uA):this.J.close());this.element=null;g.x.prototype.fh.call(this)};g.b(F$,g.x);g.J=F$.prototype;g.J.wU=function(){var e=this;if(this.J.keySystemAccess)return(jI.isActive()?jI.le("emenew",function(){return e.J.keySystemAccess.createMediaKeys()}):this.J.keySystemAccess.createMediaKeys()).then(function(y){if(!e.Ss())if(e.N=y,jI.isActive())jI.le("emeset",function(){return e.element.setMediaKeys(y)});
else{var w;(w=e.element)==null||w.setMediaKeys(y)}});
if(PU(this.J))this.K=new (Xu())(this.J.keySystem);else if(II(this.J)){this.K=new (Xu())(this.J.keySystem);var N;(N=this.element)==null||N.webkitSetMediaKeys(this.K)}else jI.isActive()&&this.Fh("emev",{v:"01b"}),Dw(this.L,this.element,["keymessage","webkitkeymessage"],this.XK),Dw(this.L,this.element,["keyerror","webkitkeyerror"],this.Y8),Dw(this.L,this.element,["keyadded","webkitkeyadded"],this.nS);return null};
g.J.setServerCertificate=function(){return this.N.setServerCertificate?this.J.flavor==="widevine"&&this.J.Tg?this.N.setServerCertificate(this.J.Tg):zE(this.J)&&this.J.Ut?this.N.setServerCertificate(this.J.Ut):null:null};
g.J.createSession=function(e,N){var y=e.initData;if(this.J.keySystemAccess){N&&N("createsession");var w=this.N.createSession();vU(this.J)?y=mK5(y,this.J.Ut):zE(this.J)&&(y=li5(y)||new Uint8Array(0));N&&N("genreq");var E=jI.isActive()?jI.le("emegen",function(){return w.generateRequest(e.contentType,y)}):w.generateRequest(e.contentType,y);
var A=new lw(null,null,null,w,null,this.G);E.then(function(){N&&N("genreqsuccess")},$B(function(p){Q$J(A,"t.generateRequest",p)}));
return A}if(PU(this.J))return KdJ(this,y);if(II(this.J))return HXJ(this,y);if((E=this.element)==null?0:E.generateKeyRequest)this.element.generateKeyRequest(this.J.keySystem,y);else{var T;(T=this.element)==null||T.webkitGenerateKeyRequest(this.J.keySystem,y)}return this.j=new lw(this.element,this.J,y,null,null,this.G)};
g.J.XK=function(e){var N=Wdn(this,e);N&&N.CZ(e)};
g.J.Y8=function(e){var N=Wdn(this,e);N&&N.RU(e)};
g.J.nS=function(e){var N=Wdn(this,e);N&&N.S7(e)};
g.J.getMetrics=function(){if(this.N&&this.N.getMetrics)try{var e=this.N.getMetrics()}catch(N){}return e};
g.J.fh=function(){this.K=this.N=null;var e;(e=this.j)==null||e.dispose();e=g.c(Object.values(this.Z));for(var N=e.next();!N.done;N=e.next())N.value.dispose();this.Z={};g.x.prototype.fh.call(this);delete this.element};g.J=Sf.prototype;g.J.get=function(e){e=this.findIndex(e);return e!==-1?this.values[e]:null};
g.J.remove=function(e){e=this.findIndex(e);e!==-1&&(this.keys.splice(e,1),this.values.splice(e,1))};
g.J.removeAll=function(){this.keys=[];this.values=[]};
g.J.set=function(e,N){var y=this.findIndex(e);y!==-1?this.values[y]=N:(this.keys.push(e),this.values.push(N))};
g.J.findIndex=function(e){return g.Rw(this.keys,function(N){return g.Cf(e,N)})};g.b(GCJ,g.pT);g.J=GCJ.prototype;g.J.lBP=function(e){this.T4({onecpt:1});e.initData&&sO5(this,new Uint8Array(e.initData),e.initDataType)};
g.J.XYh=function(e){this.T4({onndky:1});sO5(this,e.initData,e.contentType)};
g.J.VQ=function(e){this.T4({onneedkeyinfo:1});this.ph.T("html5_eme_loader_sync")&&(this.G.get(e.initData)||this.G.set(e.initData,e));LU_(this,e)};
g.J.ej=function(e){this.K.push(e);oU(this)};
g.J.createSession=function(e){var N=eY3(this)?QiJ(e):g.oN(e.initData);this.N.get(N);this.l9=!0;e=new BdM(this.videoData,this.ph,e,this.drmSessionId);this.N.set(N,e);e.subscribe("ctmp",this.XE,this);e.subscribe("keystatuseschange",this.Nx,this);e.subscribe("licenseerror",this.V8,this);e.subscribe("newlicense",this.i4,this);e.subscribe("newsession",this.zL,this);e.subscribe("sessionready",this.oU,this);e.subscribe("fairplay_next_need_key_info",this.AJ,this);this.ph.T("html5_enable_vp9_fairplay")&&e.subscribe("qualitychange",
this.zX,this);this.ph.T("html5_enable_sabr_drm_hd720p")&&e.subscribe("sabrlicenseconstraint",this.HC1,this);Iis(e,this.j)};
g.J.i4=function(e){this.Ss()||(this.T4({onnelcswhb:1}),e&&!this.heartbeatParams&&(this.heartbeatParams=e,this.publish("heartbeatparams",e)))};
g.J.zL=function(){this.Ss()||(this.T4({newlcssn:1}),this.K.shift(),this.l9=!1,oU(this))};
g.J.oU=function(){if(PU(this.J)&&(this.T4({onsnrdy:1}),this.aq--,this.aq===0)){var e=this.Ng,N,y;(N=e.element)==null||(y=N.msSetMediaKeys)==null||y.call(N,e.K)}};
g.J.Nx=function(e){if(!this.Ss()){!this.Rq&&this.videoData.T("html5_log_drm_metrics_on_key_statuses")&&(NAJ(this),this.Rq=!0);this.T4({onksch:1});var N=this.zX;if(!Mt(e)&&g.Um&&e.N.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var y="large";else{y=[];var w=!0;if(Mt(e))for(var E=g.c(Object.keys(e.J)),A=E.next();!A.done;A=E.next())A=A.value,e.J[A].status==="usable"&&y.push(e.J[A].type),e.J[A].status!=="unknown"&&(w=!1);if(!Mt(e)||w)y=e.j;y=fiE(y)}N.call(this,y);this.publish("keystatuseschange",
e)}};
g.J.XE=function(e,N){this.Ss()||this.publish("ctmp",e,N)};
g.J.AJ=function(e,N){this.Ss()||this.publish("fairplay_next_need_key_info",e,N)};
g.J.V8=function(e,N,y,w){this.Ss()||(this.videoData.T("html5_log_drm_metrics_on_error")&&NAJ(this),this.publish("licenseerror",e,N,y,w))};
g.J.De=function(){return this.U};
g.J.zX=function(e){var N=g.Rx("auto",e,!1,"l");if(this.videoData.xX){if(this.U.Bw(N))return}else if(VO_(this.U,e))return;this.U=N;this.publish("qualitychange");this.T4({updtlq:e})};
g.J.HC1=function(e){this.videoData.sabrLicenseConstraint=e};
g.J.fh=function(){this.J.keySystemAccess&&this.element&&(this.qg?this.element.setMediaKeys(null).catch(g.uA):this.element.setMediaKeys(null));this.element=null;this.K=[];for(var e=g.c(this.N.values()),N=e.next();!N.done;N=e.next())N=N.value,N.unsubscribe("ctmp",this.XE,this),N.unsubscribe("keystatuseschange",this.Nx,this),N.unsubscribe("licenseerror",this.V8,this),N.unsubscribe("newlicense",this.i4,this),N.unsubscribe("newsession",this.zL,this),N.unsubscribe("sessionready",this.oU,this),N.unsubscribe("fairplay_next_need_key_info",
this.AJ,this),this.ph.T("html5_enable_vp9_fairplay")&&N.unsubscribe("qualitychange",this.zX,this),N.dispose();this.N.clear();this.Z.removeAll();this.G.removeAll();this.heartbeatParams=null;g.pT.prototype.fh.call(this)};
g.J.N7=function(){for(var e={systemInfo:this.J.N7(),sessions:[]},N=g.c(this.N.values()),y=N.next();!y.done;y=N.next())e.sessions.push(y.value.N7());return e};
g.J.getInfo=function(){return this.N.size<=0?"no session":""+this.N.values().next().value.getInfo()+(this.L?"/KR":"")};
g.J.T4=function(e,N){N=N===void 0?!1:N;this.Ss()||(Xe(e),(this.ph.B9()||N)&&this.publish("ctmp","drmlog",e))};g.b(TA1,g.x);g.J=TA1.prototype;g.J.PU=function(){return!!this.P3};
g.J.uy=function(){return this.N};
g.J.handleError=function(e){var N=this;Yen(this,e);if((e.errorCode!=="html5.invalidstate"&&e.errorCode!=="fmt.unplayable"&&e.errorCode!=="fmt.unparseable"||!$N0(this,e.errorCode,e.details))&&!Se1(this,e)){if(this.Ot.Ng!=="yt"&&lU_(this,e)&&this.videoData.TV&&(0,g.iC)()/1E3>this.videoData.TV&&this.Ot.Ng==="hm"){var y=Object.assign({e:e.errorCode},e.details);y.stalesigexp="1";y.expire=this.videoData.TV;y.init=this.videoData.Rr/1E3;y.now=(0,g.iC)()/1E3;y.systelapsed=((0,g.iC)()-this.videoData.Rr)/1E3;
e=new P3(e.errorCode,y,2);this.JW.MP(e.errorCode,2,"SIGNATURE_EXPIRED",Xe(e.details))}if(dp(e.severity)){var w;y=(w=this.JW.tW)==null?void 0:w.J.J;if(this.Ot.T("html5_use_network_error_code_enums"))if(MLs(e)&&y&&y.isLocked())var E="FORMAT_UNAVAILABLE";else if(this.Ot.Z||e.errorCode!=="auth"||e.details.rc!==429)e.errorCode==="ump.spsrejectfailure"&&(E="HTML5_SPS_UMP_STATUS_REJECTED");else{E="TOO_MANY_REQUESTS";var A="6"}else MLs(e)&&y&&y.isLocked()?E="FORMAT_UNAVAILABLE":this.Ot.Z||e.errorCode!=="auth"||
e.details.rc!=="429"?e.errorCode==="ump.spsrejectfailure"&&(E="HTML5_SPS_UMP_STATUS_REJECTED"):(E="TOO_MANY_REQUESTS",A="6");this.JW.MP(e.errorCode,e.severity,E,Xe(e.details),A)}else this.JW.publish("nonfatalerror",e),w=/^pp/.test(this.videoData.clientPlaybackNonce),this.Qi(e.errorCode,e.details),w&&e.errorCode==="manifest.net.connect"&&(e="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.iC)(),S3(e,"manifest",function(T){N.Z=!0;N.Fh("pathprobe",T)},function(T){N.Qi(T.errorCode,
T.details)}))}};
g.J.Fh=function(e,N){this.JW.Eg().Fh(e,N)};
g.J.Qi=function(e,N){N=Xe(N);this.JW.Eg().Qi(e,N)};hY5.prototype.mH=function(e,N){return(N===void 0?0:N)?{FC:e?cG(this,e):f3,xs:e?ve3(this,e):f3,JT9:e?dNH(this,e):f3,kIh:e?fUs(this,e.videoData):f3,m8:e?tLE(this,e.videoData,e):f3,tZG:e?Xl9(this,e):f3}:{FC:e?cG(this,e):f3}};
hY5.prototype.T=function(e){return this.ph.T(e)};g.b(k4,g.x);k4.prototype.onError=function(e){if(e!=="player.fatalexception"||this.provider.T("html5_exception_to_health"))e==="sabr.fallback"&&(this.encounteredSabrFallback=!0),e.match(t4X)?this.networkErrorCount++:this.nonNetworkErrorCount++};
k4.prototype.send=function(){if(!(this.K||this.J<0)){ZrF(this);var e=g.BG(this.provider)-this.J,N="PLAYER_PLAYBACK_STATE_UNKNOWN",y=this.playerState.qS;this.playerState.isError()?N=y&&y.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.G(this.playerState,2)?N="PLAYER_PLAYBACK_STATE_ENDED":g.G(this.playerState,64)?N="PLAYER_PLAYBACK_STATE_UNSTARTED":g.G(this.playerState,16)||g.G(this.playerState,32)?N="PLAYER_PLAYBACK_STATE_SEEKING":g.G(this.playerState,1)&&g.G(this.playerState,
4)?N="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.G(this.playerState,1)?N="PLAYER_PLAYBACK_STATE_BUFFERING":g.G(this.playerState,4)?N="PLAYER_PLAYBACK_STATE_PAUSED":g.G(this.playerState,8)&&(N="PLAYER_PLAYBACK_STATE_PLAYING");y=vbV[MK(this.provider.videoData)];a:switch(this.provider.ph.playerCanaryState){case "canary":var w="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":w="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:w="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var E=xNM(this.provider),
A=this.N<0?e:this.N-this.J;e=this.provider.ph.Fr+36E5<(0,g.iC)();N={started:this.N>=0,stateAtSend:N,joinLatencySecs:A,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:w,playerCanaryStage:E,isAd:this.provider.videoData.isAd(),liveMode:y,hasDrm:!!g.$I(this.provider.videoData),isGapless:this.provider.videoData.U,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:L3(this.provider.videoData)};e||g.$$("html5PlayerHealthEvent",N);this.K=!0;this.dispose()}};
k4.prototype.fh=function(){this.K||this.send();window.removeEventListener("error",this.gs);window.removeEventListener("unhandledrejection",this.gs);g.x.prototype.fh.call(this)};
var t4X=/\bnet\b/;g.b(neF,g.x);neF.prototype.fh=function(){mN_(this);g.x.prototype.fh.call(this)};var Hr0=/[?&]cpn=/;g.b(X$,g.x);X$.prototype.flush=function(){var e={};this.N&&(e.pe=this.N);this.J.length>0&&(e.pt=this.J.join("."));this.J=[];return e};
X$.prototype.stop=function(){var e=this,N,y,w;return g.f(function(E){if(E.J==1)return g.c5(E,2),g.D(E,(N=e.j)==null?void 0:N.stop(),4);if(E.J!=2)return(y=E.N)&&e.logTrace(y),g.B5(E,0);w=g.XH(E);e.N=LLJ(w.message);g.hn(E)})};
X$.prototype.logTrace=function(e){this.encoder.reset();this.encoder.add(1);this.encoder.add(e.resources.length);for(var N=g.c(e.resources),y=N.next();!y.done;y=N.next()){y=y.value.replace("https://www.youtube.com/s/","");this.encoder.add(y.length);for(var w=0;w<y.length;w++)this.encoder.add(y.charCodeAt(w))}this.encoder.add(e.frames.length);N=g.c(e.frames);for(y=N.next();!y.done;y=N.next()){y=y.value;this.encoder.add(y.name.length);for(w=0;w<y.name.length;w++)this.encoder.add(y.name.charCodeAt(w));
N_(this.encoder,y.resourceId);N_(this.encoder,y.line);N_(this.encoder,y.column)}this.encoder.add(e.samples.length);N=g.c(e.samples);for(y=N.next();!y.done;y=N.next())y=y.value,this.encoder.add(Math.trunc(y.timestamp)),N_(this.encoder,y.stackId);this.encoder.add(e.stacks.length);e=g.c(e.stacks);for(N=e.next();!N.done;N=e.next())N=N.value,this.encoder.add(N.frameId),N_(this.encoder,N.parentId);e=this.encoder.jY();this.K+=e.length;this.K<1E7&&this.J.push(e)};
X$.prototype.fh=function(){this.stop();g.x.prototype.fh.call(this)};var aU5=[2,5,30];g.D3=rR(function(){var e="";try{var N=g.sA("CANVAS").getContext("webgl");N&&(N.getExtension("WEBGL_debug_renderer_info"),e=N.getParameter(37446),e=e.replace(/[ :]/g,"_"))}catch(y){}return e});g.b(g.vG,g.x);g.J=g.vG.prototype;g.J.flB=function(){var e=g.BG(this.provider);wO5(this,e)};
g.J.BQ=function(){return this.dI};
g.J.NZ=function(){return{ql:this.ql,OD:this.OD}};
g.J.Wm=function(e,N){this.ql=e;this.OD=N};
g.J.LG=function(e){if(!this.Y_){this.Y_=!0;var N="";switch(e){case 1:N="proximaui";break;case 2:N=D25(this.provider.videoData)?"proximawpcc":this.provider.videoData.T("html5_enable_proxima")||this.provider.videoData.T("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:N="proximaauto"}N!==""&&iw(this,N)}};
g.J.HS=function(e){this.J.lwc=[[e.L$?e.L$.toFixed():"",e.ZK?e.ZK.toFixed():"",e.aq?(e.aq*1E3).toFixed():"",e.pX?(e.pX*1E3).toFixed():"",e.PY?(e.PY*1E3).toFixed():""].join(":")]};
g.J.reportStats=function(e){e=e===void 0?NaN:e;if(!this.Ss()&&(e=e>=0?e:g.BG(this.provider),["PL","B","S"].indexOf(this.k9)>-1&&(!g.v4(this.J)||e>=this.L+30)&&(g.IU(this,e,"vps",[this.k9]),this.L=e),!g.v4(this.J))){this.sequenceNumber===7E3&&g.uA(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){zt(this,e);if(this.provider.T("html5_record_h5vcc_flags")){var N=this.provider.JW.Yj();N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,this.Fh(y.key,y.value)}N=e;y=this.provider.JW.DR();
var w=y.droppedVideoFrames||0,E=y.totalVideoFrames||0,A=w-this.ql,T=E&&!this.OD;w>y.totalVideoFrames||A>5E3?rJs(this,"html5.badframedropcount","df."+w+";tf."+y.totalVideoFrames):(A>0||T)&&g.IU(this,N,"df",[A]);this.ql=w;this.OD=E;this.D>0&&(g.IU(this,e,"glf",[this.D]),this.D=0);aH.isActive()&&(e=aH.A6(),Object.keys(e).length>0&&this.Fh("profile",e));this.dT&&iw(this,"lwnmow");this.provider.ph.B9()&&this.provider.T("html5_record_now")&&this.Fh("now",{wt:(0,g.iC)()});e={};this.provider.videoData.N&&
(e.fmt=this.provider.videoData.N.itag,(N=this.provider.videoData.j)&&N.itag!==e.fmt&&(e.afmt=N.itag));e.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(e.adcpn=this.adCpn);this.Ng&&(e.addocid=this.Ng);this.contentCpn&&(e.ccpn=this.contentCpn);this.qg&&(e.cdocid=this.qg);this.provider.videoData.cotn&&(e.cotn=this.provider.videoData.cotn);e.el=I$(this.provider.videoData);e.content_v=VG(this.provider.videoData);e.ns=this.provider.ph.Ng;e.fexp=SV1(this.provider.ph.experiments).toString();
e.cl=(725027312).toString();(N=this.provider.videoData.adFormat||this.adFormat)&&(e.adformat=N);(N=MK(this.provider.videoData))&&(e.live=N);this.provider.videoData.RV()&&(e.drm=1,this.provider.videoData.L&&(e.drm_system=ky0[this.provider.videoData.L.flavor]||0),this.provider.videoData.ub&&(e.drm_product=this.provider.videoData.ub));$3()&&this.provider.videoData.Z&&(e.ctt=this.provider.videoData.Z,e.cttype=this.provider.videoData.zN,this.provider.videoData.mdxEnvironment&&(e.mdx_environment=this.provider.videoData.mdxEnvironment));
this.provider.videoData.isDaiEnabled()?(e.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.fA&&(e.dai_fallback="1")):this.provider.videoData.FS?e.dai="cs":this.provider.videoData.Lu&&(e.dai="disabled");e.seq=this.sequenceNumber++;if(this.provider.videoData.hH){if(N=this.provider.videoData.hH,e&&N)for(N.ns==="3pp"&&(e.ns="3pp"),this.jp.has(N.ns)&&iw(this,"hbps"),N.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=N.shbpslc),y=g.c(Object.keys(N)),w=
y.next();!w.done;w=y.next())w=w.value,this.NK.has(w)||(e[w]=N[w])}else e.event="streamingstats",e.docid=this.provider.videoData.videoId,e.ei=this.provider.videoData.eventId;this.isEmbargoed&&(e.embargoed="1");Object.assign(e,this.provider.ph.J);if(N=e.seq)N={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+N,serializedWatchEndpointLoggingContext:this.provider.videoData.T0},this.serializedHouseBrandPlayerServiceLoggingContext&&(N.serializedHouseBrandPlayerServiceLoggingContext=hO(this.serializedHouseBrandPlayerServiceLoggingContext)||
void 0),this.provider.videoData.playerResponseCpn&&(N.playerResponseCpn=this.provider.videoData.playerResponseCpn),dg.length&&(N.decoderInfo=dg),this.provider.JW.bP()&&(N.transitionStitchType=4,this.l9&&(N.timestampOffsetMsecs=this.l9)),this.remoteControlMode&&(N.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(N.remoteConnectedDevices=this.remoteConnectedDevices),N=g.A5(N,EQ5),N=g.oN(N,4),this.J.qclc=[N];e=g.Qb("//"+this.provider.ph.Li+"/api/stats/qoe",e);y=N="";w=g.c(Object.keys(this.J));
for(E=w.next();!E.done;E=w.next())E=E.value,this.J[E]===null?g.uA(new g.Gh("Stats report key has invalid value",E)):(E="&"+E+"="+this.J[E].join(","),E.length>100?y+=E:N+=E);TEJ(this,e+N,y.replace(/ /g,"%20"))}this.J={}}};
g.J.Bm=function(e){this.dT=e};
g.J.Kg=function(){if(this.provider.videoData.L){var e=this.provider.videoData.L;iw(this,"eme-"+(e.keySystemAccess?"final":PU(e)?"ms":vU(e)?"ytfp":II(e)?"safarifp":"nonfinal"))}};
g.J.sW=function(e){var N=g.BG(this.provider);if(!this.provider.ph.experiments.gP("html5_refactor_sabr_video_format_selection_logging")||e.J.id!==this.Et){var y=[e.J.id,e.N,this.Et,e.reason];e.token&&y.push(e.token);g.IU(this,N,"vfs",y);this.Et=e.J.id;y=this.provider.JW.getPlayerSize();if(y.width>0&&y.height>0){y=[Math.round(y.width),Math.round(y.height)];var w=g.jV();w>1&&y.push(w);g.IU(this,N,"view",y)}this.VB||(this.provider.ph.B9()&&iw(this,"rqs2"),this.provider.videoData.J&&yo(this.provider.videoData.J)&&
(this.J.preload=["1"]));this.K=this.VB=!0}e.reason==="m"&&++this.YO===100&&$oM(this,2);g.IU(this,N,"vps",[this.k9]);this.reportStats(N)};
g.J.e3=function(e){var N=g.BG(this.provider);if(this.provider.ph.experiments.gP("html5_refactor_sabr_audio_format_selection_logging")){N=e.J;var y=[N.audio&&N.video?N.ZZ?N.ZZ:"":N.id];N.Vl&&N.Vl.id&&y.push(N.Vl.id);N=y.join(";");N!==this.G&&(y=[N,this.G,e.reason],e.token&&y.push(e.token),g.IU(this,g.BG(this.provider),"afs",y),this.G=N)}else e.J.id!==this.G&&(y=[e.J.id,this.G,e.reason],e.token&&y.push(e.token),g.IU(this,N,"afs",y),this.G=e.J.id)};
g.J.yk=N3(55);g.J.bI=function(e){this.isEmbargoed=e};
g.J.t1=N3(33);g.J.DK=N3(38);g.J.onPlaybackRateChange=function(e){var N=g.BG(this.provider);e&&e!==this.PY&&(g.IU(this,N,"rate",[e]),this.PY=e);this.reportStats(N)};
g.J.pE=N3(28);g.J.getPlayerState=function(e){if(g.G(e,128))return"ER";if(g.G(e,2048))return"B";if(g.G(e,512))return"SU";if(g.G(e,16)||g.G(e,32))return"S";if(e.isOrWillBePlaying()&&g.G(e,64))return"B";var N=utw[J_(e)];g.I_(this.provider.ph)&&N==="B"&&this.provider.JW.getVisibilityState()===3&&(N="SU");N==="B"&&g.G(e,4)&&(N="PB");return N};
g.J.fh=function(){g.x.prototype.fh.call(this);g.k3(this.Z);g.k3(this.Xz)};
g.J.nP=function(e){this.isOffline=e;g.IU(this,g.BG(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.J.Fh=function(e,N,y){var w=this.J.ctmp||[],E=this.CC.indexOf(e)!==-1;E||this.CC.push(e);if(!y||!E){var A=typeof N!=="string"?Xe(N):N;A=YB3(A);if(!y&&!/^t[.]/.test(A)){var T=g.BG(this.provider)*1E3;A="t."+T.toFixed()+";"+A}w.push(e+":"+A);this.logger.debug(function(){return"ctmp "+e+" "+A});
this.J.ctmp=w;JJ1(this);return T}};
g.J.rJ=function(e,N,y){this.j={ys9:Number(this.Fh("glrem",{nst:e.toFixed(),rem:N.toFixed(),ca:+y})),Ij:e,JsB:N,isAd:y}};
g.J.QH=function(e,N,y){g.IU(this,g.BG(this.provider),"ad_playback",[e,N,y])};
g.J.Z6=function(e,N){var y=g.BG(this.provider)*1E3,w=this.J.daism||[];w.push("t."+y.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(N*1E3).toFixed(0));this.J.daism=w};
g.J.resume=function(){var e=this;this.provider.ph.B9()&&this.Fh("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.Z)?pO3(this):this.Z=g.hE(function(){e.reportStats()},1E4)};
var Fi={},utw=(Fi[5]="N",Fi[-1]="N",Fi[3]="B",Fi[0]="EN",Fi[2]="PA",Fi[1]="PL",Fi[-1E3]="ER",Fi[1E3]="N",Fi),dg=[];FpH.prototype.K1=function(){return this.J};
FpH.prototype.update=function(){if(this.G){var e=this.provider.JW.UV(this.provider.videoData.clientPlaybackNonce)||0,N=g.BG(this.provider);e>=this.provider.JW.getDuration()-.1&&(this.previouslyEnded=!0);if(e!==this.J||bHn(this,e,N)){var y;if(!(y=e<this.J||e-this.J>N-this.Qy+2||bHn(this,e,N))){y=this.provider.JW.getVolume();var w=y!==this.D,E=this.provider.JW.isMuted()?1:0;E!==this.U?(this.U=E,y=!0):(!w||this.j>=0||(this.D=y,this.j=N),y=N-this.j,this.j>=0&&y>2?(this.j=-1,y=!0):y=!1)}y&&(fW(this),this.K=
e);this.Qy=N;this.J=e}}};hM3.prototype.send=function(e){var N=this;if(!this.Wk){var y=kGH(this),w=g.Qb(this.uri,y);this.ph.T("vss_through_gel_double")&&BEs(w);this.qg&&!this.ph.T("html5_simplify_pings")?vmn(this,w):cJ5(this,e).then(function(E){N.qg&&(E=E||{},E.method="POST",E.postParams={atr:N.attestationResponse});RY9(w,E,{token:N.Ng,p7:N.Kx,mdxEnvironment:N.mdxEnvironment},N.ph,e,N.l9,N.isFinal&&N.sY||N.i9||N.K&&N.Fr)});
this.Wk=!0}};
hM3.prototype.N=function(e){e===void 0&&(e=NaN);return Number(e.toFixed(3)).toString()};
var Ss={},dos=(Ss.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Ss.LIVING_ROOM_APP_MODE_MAIN=1,Ss.LIVING_ROOM_APP_MODE_KIDS=2,Ss.LIVING_ROOM_APP_MODE_MUSIC=3,Ss.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Ss.LIVING_ROOM_APP_MODE_GAMING=5,Ss),oS={},Ps5=(oS.EMBEDDED_PLAYER_MODE_UNKNOWN=0,oS.EMBEDDED_PLAYER_MODE_DEFAULT=1,oS.EMBEDDED_PLAYER_MODE_PFP=2,oS.EMBEDDED_PLAYER_MODE_PFL=3,oS);g.b(uw,g.x);g.J=uw.prototype;g.J.FI=function(){this.J.update();uE9(this)&&(iHn(this),DoJ(this),this.Y7())};
g.J.fh=function(){g.x.prototype.fh.call(this);x4(this);SBJ(this.J)};
g.J.N7=function(){return kGH(qt(this,"playback"))};
g.J.Y7=function(){this.provider.videoData.G.eventLabel=I$(this.provider.videoData);this.provider.videoData.G.playerStyle=this.provider.ph.playerStyle;this.provider.videoData.vp&&(this.provider.videoData.G.feature="pyv");this.provider.videoData.G.vid=this.provider.videoData.videoId;var e=this.provider.videoData.G;var N=this.provider.videoData;N=N.isAd()||!!N.vp;e.isAd=N};
g.J.FW=function(e){var N=qt(this,"engage");N.Kh=e;return XOs(N,Q9s(this.provider))};nmH.prototype.isEmpty=function(){return this.endTime===this.startTime};nW.prototype.T=function(e){return this.ph.T(e)};
nW.prototype.getCurrentTime=function(e){if(this.T("html5_ssap_current_time_for_logging_refactor")){var N=this.JW.bP();if(N&&(e=e||N.XH()))return TI(N,e)}else if(g.xK(this.videoData)){var y=this.JW.bP();if(y)return e=this.JW.getCurrentTime(),y=(((N=P0(y,e*1E3))==null?void 0:N.N3)||0)/1E3,e-y}return this.JW.getCurrentTime()};
nW.prototype.eN=function(e){if(this.T("html5_ssap_current_time_for_logging_refactor")){var N=this.JW.bP();if(N&&(e=e||N.XH()))return TI(N,e)}else if(g.xK(this.videoData)){var y=this.JW.bP();if(y)return e=this.JW.eN(),y=(((N=P0(y,e*1E3))==null?void 0:N.N3)||0)/1E3,e-y}return this.JW.eN()};
var moP={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.b(g.QD,g.x);g.J=g.QD.prototype;g.J.FI=function(){if(this.provider.videoData.enableServerStitchedDai&&this.b6){var e;(e=this.K.get(this.b6))==null||e.FI()}else this.J&&this.J.FI()};
g.J.bI=function(e){this.qoe&&this.qoe.bI(e)};
g.J.t1=N3(32);g.J.DK=N3(37);g.J.Z6=function(e,N){this.qoe&&this.qoe.Z6(e,N)};
g.J.Qi=function(e,N){this.qoe&&rJs(this.qoe,e,N);if(this.N)this.N.onError(e)};
g.J.sW=function(e){this.qoe&&this.qoe.sW(e)};
g.J.e3=function(e){this.qoe&&this.qoe.e3(e)};
g.J.onPlaybackRateChange=function(e){if(this.qoe)this.qoe.onPlaybackRateChange(e);this.J&&fW(this.J.J)};
g.J.yk=N3(54);g.J.Fh=function(e,N,y){this.qoe&&this.qoe.Fh(e,N,y)};
g.J.rJ=function(e,N,y){this.qoe&&this.qoe.rJ(e,N,y)};
g.J.LG=function(e){var N;(N=this.qoe)==null||N.LG(e)};
g.J.HS=function(e){var N;(N=this.qoe)==null||N.HS(e)};
g.J.Bm=function(e){this.qoe&&this.qoe.Bm(e)};
g.J.QH=function(e,N,y){this.qoe&&this.qoe.QH(e,N,y)};
g.J.pE=N3(27);g.J.BQ=function(){if(this.qoe)return this.qoe.BQ()};
g.J.N7=function(){if(this.provider.videoData.enableServerStitchedDai&&this.b6){var e,N;return(N=(e=this.K.get(this.b6))==null?void 0:e.N7())!=null?N:{}}return this.J?this.J.N7():{}};
g.J.NZ=function(){var e;return(e=this.qoe)==null?void 0:e.NZ()};
g.J.Wm=function(e,N){var y;(y=this.qoe)==null||y.Wm(e,N)};
g.J.FW=function(e){return this.J?this.J.FW(e):function(){}};
g.J.Y7=function(){this.J&&this.J.Y7()};
g.J.getVideoData=function(){return this.provider.videoData};
g.J.resume=function(){this.qoe&&this.qoe.resume()};g.b(HG,g.x);
HG.prototype.qs=function(e,N,y){if(this.J.has(e)){var w=this.J.get(e);if(N.videoId&&!HHs(w))this.N.Fh("ssap",{rlc:e}),Ng9(this,e);else return}if(!this.J.has(e)){w=new nW(N,this.ph,this.JW);var E=Math.round(g.BG(this.N.provider)*1E3);w=new g.QD(w,E);HHs(w)||this.N.Fh("nqv",{vv:N.videoId});E=this.N.getVideoData();this.J.set(e,w);if(w.qoe){var A=w.qoe,T=E.videoId||"";A.contentCpn=E.clientPlaybackNonce;A.qg=T}Kpn(w);y===2&&(this.ph.T("html5_log_ad_playback_docid")?(y=this.N,y.qoe&&(y=y.qoe,w=N.FZ||"",
E=N.breakType||0,N=N.videoId||"",A=this.ph.Ng||"yt",g.IU(y,g.BG(y.provider),"ad_playback",[e,w,E,N,A]))):this.N.QH(e,N.FZ||"",N.breakType||0))}};
HG.prototype.pP=function(e,N,y,w,E,A,T,p){if(e!==N){var C=this.Eg(e),r=this.Eg(N),Y,M=e===((Y=C.getVideoData())==null?void 0:Y.clientPlaybackNonce),l;Y=N===((l=r.getVideoData())==null?void 0:l.clientPlaybackNonce);var F;l=M?((F=C.getVideoData())==null?void 0:F.videoId)||"":"nvd";var S;F=Y?((S=r.getVideoData())==null?void 0:S.videoId)||"":"nvd";M&&(C=C.qoe)!=null&&(gg(C,4,A?4:E?2:0,N,F,y),C.reportStats());Y&&(mS(r),(N=r.qoe)!=null&&(gg(N,4,A?5:E?3:1,e,l,w),N.reportStats()),RMs(r,new g.ME(T,r.k9)),
WpE(r));p&&Ng9(this,e)}};
HG.prototype.Eg=function(e){e=e||this.b6;return this.J.get(e)||this.N};g.b(g.KW,g.x);g.J=g.KW.prototype;
g.J.wx=function(e,N){this.sync();N&&this.J.array.length>=2E3&&this.I7("captions",1E4);N=this.J;if(e.length>1&&e.length>N.array.length)N.array=N.array.concat(e),N.array.sort(N.J);else for(var y=g.c(e),w=y.next();!w.done;w=y.next())w=w.value,!N.array.length||N.J(w,N.array[N.array.length-1])>0?N.array.push(w):g.rr(N.array,w,N.J);e=g.c(e);for(N=e.next();!N.done;N=e.next())N=N.value,N.namespace==="ad"&&this.j("ssap",{acrsid:N.getId(),acrsst:N.start,acrset:N.end,acrscpt:N.playerType});this.K=NaN;this.sync()};
g.J.bl=function(e){e.length>1E4&&g.uA(new g.Gh("Over 10k cueRanges removal occurs with a sample: ",e[0]));if(!this.Ss()){for(var N=g.c(e),y=N.next();!y.done;y=N.next())(y=y.value)&&y.namespace==="ad"&&this.j("ssap",{rcrid:y.getId(),rcst:y.start,rcet:y.end,rcpt:y.playerType});var w=new Set(e);this.N=this.N.filter(function(E){return!w.has(E)});
pG1(this.J,w);this.sync()}};
g.J.I7=function(e,N){var y=(isNaN(this.K)?g.G(this.Z(),2)?0x8000000000000:this.D()*1E3:this.K)-N;N=this.XW().filter(function(w){return w.namespace===e&&w.end<y});
this.bl(N);return N};
g.J.XW=function(){return this.Ss()?[]:this.J.array};
g.J.reset=function(){this.started=!1;this.L.stop();this.J.array=[];this.N=[];this.sync()};
g.J.MK=function(e){var N=this.XW().filter(function(y){return y.namespace===e});
this.bl(N);return N};
g.J.lJ=N3(42);
g.J.iX=function(e,N){var y=[],w=Aj5(this.J,0x7ffffffffffff),E=[];this.j("ssap",{mecrs:w.length,cpn:N});w=g.c(w);for(var A=w.next();!A.done;A=w.next())A=A.value,A.active&&(this.j("ssap",{acre:A.id,st:A.start,et:A.end,cpn:N,cpt:A.playerType,pt:e}),N&&N===A.K?(E.push(A),this.j("ssap",{acrec:A.id,st:A.start,et:A.end,pt:e})):A.playerType===e&&(E.push(A),this.j("ssap",{acret:A.id,st:A.start,et:A.end})));y=y.concat(this.Ty(E));$t5(this,y);y=[];N=[];w=g.c(this.N);for(A=w.next();!A.done;A=w.next())A=A.value,
A.active&&A.playerType===e&&A.start===0x7ffffffffffff&&N.push(A);y=y.concat(this.Gy(N));$t5(this,y);return E.length};
g.J.Ty=function(e){var N=[];if(!e.length)return N;for(var y=0;y<e.length;y++){var w=e[y];w.active&&this.N.indexOf(w)===-1&&(this.N.push(w),N.push([1,w]))}return N};
g.J.Gy=function(e){var N=[];if(!e.length)return N;e.sort(g.Ep);e=g.c(e);for(var y=e.next();!y.done;y=e.next())y=y.value,this.N.splice(this.N.indexOf(y),1),N.push([2,y]);return N};
g.J.sync=function(){this.G=!0;if(!this.U){for(var e=3;this.G&&e;)this.G=!1,this.U=!0,this.XJ(),this.U=!1,e--;this.Z().isPlaying()&&(e=JjJ(this.J,this.K),!isNaN(e)&&e<0x7ffffffffffff&&(e=(e-this.K)/this.qg(),this.L.start(e)))}};
g.J.XJ=function(){if(this.started&&!this.Ss()){this.L.stop();var e=this.Z();g.G(e,32)&&this.Kh.start();for(var N=g.G(this.Z(),2)?0x8000000000000:this.D()*1E3,y=g.G(e,2),w=[],E=[],A=g.c(this.N),T=A.next();!T.done;T=A.next())T=T.value,T.active&&(y?T.end<0x8000000000000:!T.contains(N))&&E.push(T);w=w.concat(this.Gy(E));A=E=null;y?(e=Aj5(this.J,0x7ffffffffffff),E=e.filter(function(p){return p.end<0x8000000000000}),A=Tgn(this.J)):e=this.K<=N&&Tp(e)?E4s(this.J,this.K,N):Aj5(this.J,N);
w=w.concat(this.Ty(e));E&&(w=w.concat(this.Gy(E)));A&&(w=w.concat(this.Ty(A)));this.K=N;$t5(this,w)}};
g.J.fh=function(){this.N=[];this.J.array=[];g.x.prototype.fh.call(this)};
g.j8.TQ(g.KW,{wx:"crmacr",Ty:"crmncr",Gy:"crmxcr",XJ:"crmis",bl:"crmrcr"});g.J=g.WG.prototype;g.J.addCueRange=function(e){this.JW.addCueRange(e)};
g.J.Ef=function(e,N){this.JW.Ef(e,N)};
g.J.IR=function(){this.JW.IR()};
g.J.Xq=function(){return this.JW.Xq()};
g.J.Vn=function(){return this.JW.Vn()};
g.J.Oy=function(e,N){this.JW.Oy(e,N)};
g.J.I7=function(e,N){return this.JW.I7(e,N)};
g.J.yr=function(e){this.JW.yr(e)};
g.J.n3=function(){return this.JW.n3()};
g.J.getAudioTrack=function(){return this.JW.getAudioTrack()};
g.J.getAvailableAudioTracks=function(){return this.JW.getAvailableAudioTracks()};
g.J.Sg=function(){return this.JW.Sg()};
g.J.ME=function(){return this.JW.ME()};
g.J.XW=function(){return this.JW.XW()};
g.J.LV=function(){return this.JW.LV()};
g.J.eN=function(){return this.JW.eN()};
g.J.getCurrentTime=function(){return this.JW.getCurrentTime()};
g.J.T2=function(){return this.JW.T2()};
g.J.fI=function(){return this.JW.fI()};
g.J.N7=function(e){return this.JW.N7(e)};
g.J.getDuration=function(e){return this.JW.getDuration(e)};
g.J.Un=function(){return this.JW.Un()};
g.J.OY=function(){return this.JW.OY()};
g.J.Nj=function(){return this.JW.Nj()};
g.J.k7=function(){return this.JW.k7()};
g.J.K9=function(){return this.JW.K9()};
g.J.bY=N3(16);g.J.wS=function(){return this.JW.wS()};
g.J.ZS=function(){return this.JW.ZS()};
g.J.jo=function(e){return this.JW.jo(e)};
g.J.LC=function(){return this.JW.LC()};
g.J.E$=function(){return this.JW.E$()};
g.J.Ti=function(){return this.JW.Ti()};
g.J.jH=function(){return this.JW.jH()};
g.J.hT=function(e,N,y){return this.JW.hT(e,N,y)};
g.J.bJ=N3(21);g.J.getPlaybackQuality=function(){return this.JW.getPlaybackQuality()};
g.J.getPlaybackRate=function(){return this.JW.getPlaybackRate()};
g.J.getPlayerState=function(){return this.JW.getPlayerState()};
g.J.getPlayerType=function(){return this.JW.getPlayerType()};
g.J.getPlaylistSequenceForTime=function(e){return this.JW.getPlaylistSequenceForTime(e)};
g.J.FW=function(e){return this.JW.FW(e)};
g.J.rf=function(){return this.JW.rf()};
g.J.getPreferredQuality=function(){return this.JW.getPreferredQuality()};
g.J.NZ=function(){return this.JW.NZ()};
g.J.getProximaLatencyPreference=function(){return this.JW.getProximaLatencyPreference()};
g.J.aG=function(){return this.JW.aG()};
g.J.getStreamTimeOffset=function(){return this.JW.getStreamTimeOffset()};
g.J.U$=function(){return this.JW.U$()};
g.J.w7=function(){return this.JW.w7()};
g.J.vQ=function(){return this.JW.vQ()};
g.J.getUserAudio51Preference=function(){return this.JW.getUserAudio51Preference()};
g.J.getUserPlaybackQualityPreference=function(){return this.JW.getUserPlaybackQualityPreference()};
g.J.getVideoData=function(){return this.JW.getVideoData()};
g.J.K_=function(){return this.JW.K_()};
g.J.vE=function(){return this.JW.vE()};
g.J.tP=function(e){this.JW.tP(e)};
g.J.handleError=function(e){this.JW.handleError(e)};
g.J.BZ=function(e){this.JW.BZ(e)};
g.J.E1=function(e){this.JW.E1(e)};
g.J.lJ=N3(41);g.J.V_=function(){return this.JW.V_()};
g.J.hasSupportedAudio51Tracks=function(){return this.JW.hasSupportedAudio51Tracks()};
g.J.wq=function(){return this.JW.wq()};
g.J.ox=function(){return this.JW.ox()};
g.J.isAtLiveHead=function(e,N){return this.JW.isAtLiveHead(e,N)};
g.J.Nc=function(){return this.JW.Nc()};
g.J.isGapless=function(){return this.JW.isGapless()};
g.J.isHdr=function(){return this.JW.isHdr()};
g.J.C_=function(){return this.JW.C_()};
g.J.Bz=function(){return this.JW.Bz()};
g.J.l$=function(){return this.JW.l$()};
g.J.isProximaLatencyEligible=function(){return this.JW.isProximaLatencyEligible()};
g.J.xB=function(){return this.JW.xB()};
g.J.uy=function(){return this.JW.uy()};
g.J.Gp=function(){this.JW.Gp()};
g.J.GR=function(e){this.JW.GR(e)};
g.J.S4=function(e){this.JW.S4(e)};
g.J.tS=function(){this.JW.tS()};
g.J.Jq=function(){this.JW.Jq()};
g.J.oi=function(){this.JW.oi()};
g.J.Wr=function(){this.JW.Wr()};
g.J.ST=function(e){this.JW.ST(e)};
g.J.yk=N3(53);g.J.pE=N3(26);g.J.p4=function(){this.JW.p4()};
g.J.pauseVideo=function(e){this.JW.pauseVideo(e)};
g.J.fH=function(e){this.JW.fH(e)};
g.J.tE=function(e){this.JW.tE(e)};
g.J.playVideo=function(e,N){return this.JW.playVideo(e,N)};
g.J.QH=function(e,N,y,w,E){this.JW.QH(e,N,y,w,E)};
g.J.t1=N3(31);g.J.DK=N3(36);g.J.Bu=function(e,N,y,w,E){this.JW.Bu(e,N,y,w,E)};
g.J.Fh=function(e,N,y){this.JW.Fh(e,N,y)};
g.J.bI=function(e){this.JW.bI(e)};
g.J.Z6=function(e,N){this.JW.Eg().Z6(e,N)};
g.J.rJ=function(e,N,y){this.JW.rJ(e,N,y)};
g.J.Qi=function(e){this.JW.Qi(e)};
g.J.YJ=function(e,N,y){this.JW.YJ(e,N,y)};
g.J.L4=function(e){this.JW.L4(e)};
g.J.TD=function(e,N){this.JW.TD(e,N)};
g.J.T5=function(e,N,y,w,E,A,T,p){this.JW.T5(e,N,y,w,E,A,T,p)};
g.J.HT=function(e){this.JW.HT(e)};
g.J.wK=function(e,N){this.JW.wK(e,N)};
g.J.EJ=function(e,N){this.JW.EJ(e,N)};
g.J.removeCueRange=function(e){this.JW.removeCueRange(e)};
g.J.E7=function(e){this.JW.E7(e)};
g.J.MK=function(e){return this.JW.yb.MK(e)};
g.J.IN=function(e){this.JW.IN(e)};
g.J.s_=function(e,N,y){this.JW.s_(e,N,y)};
g.J.QK=function(){this.JW.QK()};
g.J.j0=function(e,N){this.JW.j0(e,N)};
g.J.gZ=function(){this.JW.gZ()};
g.J.seekTo=function(e,N){this.JW.seekTo(e,N)};
g.J.sendAbandonmentPing=function(){this.JW.sendAbandonmentPing()};
g.J.sendVideoStatsEngageEvent=function(e,N){this.JW.sendVideoStatsEngageEvent(e,N)};
g.J.U7=function(e,N){this.JW.U7(e,N)};
g.J.setLoop=function(e){this.JW.setLoop(e)};
g.J.Ou=function(){this.JW.Ou()};
g.J.setMediaElement=function(e){this.JW.setMediaElement(e)};
g.J.KH=function(e,N,y,w){this.JW.KH(e,N,y,w)};
g.J.setPlaybackRate=function(e){this.JW.setPlaybackRate(e)};
g.J.MP=function(e,N,y,w,E,A){this.JW.MP(e,N,y,w,E,A)};
g.J.Wm=function(e,N){this.JW.Wm(e,N)};
g.J.Go=function(e){this.JW.Go(e)};
g.J.setProximaLatencyPreference=function(e){this.JW.setProximaLatencyPreference(e)};
g.J.Mf=function(e){this.JW.Mf(e)};
g.J.bW=function(){this.JW.bW()};
g.J.iG=function(e){this.JW.iG(e)};
g.J.setUserAudio51Preference=function(e,N){this.JW.setUserAudio51Preference(e,N)};
g.J.wM=function(e,N,y){this.JW.wM(e,N,y)};
g.J.fO=function(){return this.JW.fO()};
g.J.aS=function(){this.JW.aS()};
g.J.Ll=function(){return this.JW.Ll()};
g.J.xN=function(e){this.JW.xN(e)};
g.J.yR=function(){this.JW.yR()};
g.J.z3=function(e){this.JW.z3(e)};
g.J.stopVideo=function(){this.JW.stopVideo()};
g.J.subscribe=function(e,N,y){return this.JW.subscribe(e,N,y)};
g.J.H_=function(e,N){this.JW.H_(e,N)};
g.J.togglePictureInPicture=function(){this.JW.togglePictureInPicture()};
g.J.iX=function(e,N){return this.JW.yb.iX(e,N)};
g.J.unsubscribe=function(e,N,y){return this.JW.unsubscribe(e,N,y)};
g.J.qB=function(e,N){this.JW.qB(e,N)};
g.J.qM=function(e,N){return this.JW.qM(e,N)};
g.J.Y7=function(){this.JW.Y7()};
g.J.yq=function(){this.JW.yq()};
g.J.yd=function(e){this.JW.yd(e)};
g.J.TE=function(){this.JW.TE()};Gt.prototype.add=function(e){this.J=(this.J+1)%this.data.length;this.data[this.J]=e};
Gt.prototype.forEach=function(e){for(var N=this.J+1;N<this.data.length;N++)e(this.data[N]||0);for(N=0;N<=this.J;N++)e(this.data[N]||0)};
Gt.prototype.clear=function(){for(var e=this.data.length,N=0;N<e;N++)this.data[N]=0;this.N=this.J=this.data.length-1};g.b(LW,g.pT);LW.prototype.eg=function(){return this.U};
LW.prototype.Un=function(){return this.policy.D&&this.videoData.J?this.videoData.J.zg:Math.max(this.Z()-ek(this)*this.J,this.videoData.Ti())};g.b(wk,g.x);wk.prototype.Ga=function(){var e=this,N=this.JW.LC(),y=this.JW.getPlayerState();if(N&&!y.isError()){var w=N.getCurrentTime(),E=y.state===8&&w>this.J,A=g.G(y,8)&&g.G(y,16),T=this.JW.UP().isBackground()||y.isSuspended();Ed(this,this.Dl,A&&!T,E,"qoe.slowseek",function(){},"timeout");
var p=isFinite(this.J);p=A&&p&&Pp1(N,this.J);var C=!w||Math.abs(w-this.J)>10,r=this.ph.T("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),Y=w===0&&this.N&&[11,10].includes(this.N);Ed(this,this.Kx,p&&C&&!T&&(!r||!Y),E,"qoe.slowseek",function(){N.seekTo(e.J)},"set_cmt");
C=p&&AX(N.O4(),this.J);var M=this.JW.tW;p=!M||M.Nc();var l=function(){N.seekTo(e.J+.001)};
Ed(this,this.Et,C&&p&&!T,E,"qoe.slowseek",l,"jiggle_cmt");p=function(){return e.JW.hT()};
Ed(this,this.Wk,C&&!T,E,"qoe.slowseek",p,"new_elem");C=Tp(y);r=y.isBuffering();var F=N.O4(),S=E3(F,w),k=S>=0&&F.end(S)>w+5,X=C&&r&&k;Y=this.JW.getVideoData();Ed(this,this.Bk,w<.002&&this.J<.002&&A&&g.I_(this.ph)&&g.vF(Y)&&!T,E,"qoe.slowseek",p,"slow_seek_shorts");Ed(this,this.Ng,Y.e_()&&A&&!T&&!Y.qg,E,"qoe.slowseek",p,"slow_seek_gapless_shorts");Ed(this,this.qg,X&&!T,C&&!r,"qoe.longrebuffer",l,"jiggle_cmt");Ed(this,this.l9,X&&!T,C&&!r,"qoe.longrebuffer",p,"new_elem_nnr");if(M){var d=M.getCurrentTime();
A=N.JP();A=Yz3(A,d);A=!M.isSeeking()&&w===A;Ed(this,this.Xz,C&&r&&A&&!T,C&&!r&&!A,"qoe.longrebuffer",function(){N.seekTo(d)},"seek_to_loader")}A={};
l=E3(F,Math.max(w-3.5,0));X=l>=0&&w>F.end(l)-1.1;var v=l>=0&&l+1<F.length?F.start(l+1)-F.end(l):9999;A.mindex=S;A.disIndex=l;A.isdisc=l>=0&&X&&v<11;A.close2edge=X;A.gapsize=v;A.buflen=F.length;this.N&&(A.seekSour=this.N);if(l=this.JW.bP()){X=l.XH();v=X!==P0(l,w*1E3).clipId;var V=g.Y2(this.ph.experiments,"html5_ssap_skip_seeking_offset_ms"),Z=(XC(l,X)+V)/1E3;Ed(this,this.Rq,v&&C&&r&&!T,C&&!r,"qoe.longrebuffer",function(){N.seekTo(Z)},"ssap_clip_not_match")}Ed(this,this.i9,C&&r&&!T,C&&!r,"qoe.longrebuffer",
function(){},"timeout",A);
A=y.isSuspended();A=this.JW.wq()&&!A;Ed(this,this.G,A,!A,"qoe.start15s",function(){e.JW.Go("ad")},"ads_preroll_timeout");
l=w-this.j<.5;var n;A=!((n=this.JW.bP())==null||!n.Wo());v=(X=Y.isAd()||A&&this.ph.experiments.gP("html5_ssap_skip_slow_ad"))&&C&&!r&&l;n=function(){var R=e.JW,O=g.xK(R.videoData)&&R.k_,E9=R.nX.getVideoData();(E9&&R.videoData.isAd()&&E9.FS===R.getVideoData().FS||!R.videoData.As)&&!O?R.MP("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+R.videoData.videoId):NK(R.videoData,"html5_ssap_skip_slow_ad")&&O&&R.k_.Wo()&&(R.Qi(new P3("ssap.transitionfailure",{cpn:P0(R.k_,R.eN()).clipId,pcpn:R.k_.XH(),
cmt:R.eN()})),R=R.k_,O=R.playback.eN(),(O=LBM(R,O))&&WB0(R,O.U_()/1E3))};
Ed(this,this.a9,v,!v,"ad.rebuftimeout",n,"skip_slow_ad");l=X&&r&&AX(N.O4(),w+5)&&l;Ed(this,this.dT,l&&!T,!l,"ad.rebuftimeout",n,"skip_slow_ad_buf");n=y.isOrWillBePlaying()&&g.G(y,64)&&!T;Ed(this,this.SR,n,E,"qoe.start15s",function(){},"timeout");
n=!!M&&!M.TZ&&y.isOrWillBePlaying();Ed(this,this.aq,n,E,"qoe.start15s",p,"newElemMse");n=ph(F,0);l=g.G(y,16)||g.G(y,32);l=!T&&y.isOrWillBePlaying()&&r&&!l&&(g.G(y,64)||w===0)&&n>5;Ed(this,this.VB,g.vF(Y)&&l,C&&!r,"qoe.longrebuffer",function(){e.JW.P_()},"reset_media_source");
Ed(this,this.Ut,g.vF(Y)&&l,C&&!r,"qoe.longrebuffer",p,"reset_media_element");this.j===0&&(this.Z=w);l=r&&this.J===0&&w>1&&w===this.Z;Ed(this,this.Zl,g.vF(Y)&&l,C&&!r,"qoe.slowseek",function(){N.seekTo(0)},"reseek_after_time_jump");
T=y.isOrWillBePlaying()&&!T;k=this.JW.jo()-w<6&&!k&&this.JW.au();Ed(this,this.U,Y.e_()&&T&&r&&k,C&&!r,"qoe.longrebuffer",function(){e.JW.hT(!1,!0)},"handoff_end_long_buffer_reload");
M=(M==null?void 0:Ys5(M))||NaN;M=F.length>1||!isNaN(M)&&M-.1<=w;Ed(this,this.D,Rf(Y)&&T&&r&&M,C&&!r,"qoe.longrebuffer",p,"gapless_slice_append_stuck");M=S>=0&&F.end(S)>=2;T=Rf(Y)&&this.JW.RP&&M&&!Y.qg&&T&&(r||g.G(y,8)&&g.G(y,16));Ed(this,this.Kh,T,E,"qoe.start15s",p,"gapless_slow_start");y=!!(A&&n>5&&y.isPlaying()&&w<.1);Ed(this,this.Y_,y,w>.5&&C,"qoe.longrebuffer",p,"ssap_stuck_in_ad_beginning");this.j=w;this.L.start()}};
wk.prototype.Qi=function(e,N,y){N=this.N7(N);N.wn=y;N.wdup=this.K[e]?"1":"0";this.JW.Qi(new P3(e,N));this.K[e]=!0};
wk.prototype.N7=function(e){e=Object.assign(this.JW.N7(!0),e.N7());this.J&&(e.stt=this.J.toFixed(3));this.JW.getVideoData().isLivePlayback&&(e.ct=this.JW.getCurrentTime().toFixed(3),e.to=this.JW.w7().toFixed(3));delete e.uga;delete e.euri;delete e.referrer;delete e.fexp;delete e.vm;return e};
NJ.prototype.reset=function(){this.J=this.N=this.K=this.startTimestamp=0;this.j=!1};
NJ.prototype.test=function(e){if(!this.L||this.N)return!1;if(!e)return this.reset(),!1;e=(0,g.iC)();if(!this.startTimestamp)this.startTimestamp=e,this.K=0;else if(this.K>=this.L)return this.N=e,!0;this.K+=1;return!1};
NJ.prototype.N7=function(){var e={},N=(0,g.iC)();this.startTimestamp&&(e.wsd=(N-this.startTimestamp).toFixed());this.N&&(e.wtd=(N-this.N).toFixed());this.J&&(e.wssd=(N-this.J).toFixed());return e};g.b(z69,g.x);g.J=z69.prototype;g.J.setMediaElement=function(e){(this.mediaElement=e)?(this.mediaElement&&(this.L||this.j||!this.mediaElement.eb()||this.seekTo(.01,{BY:"seektimeline_setupMediaElement"})),Av(this)):Jv(this)};
g.J.getCurrentTime=function(){if(To(this.JW)){if(!isNaN(this.N))return this.N}else if(!isNaN(this.N)&&isFinite(this.N))return this.N;return this.mediaElement&&QU5(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.j||0};
g.J.F2=function(){return this.Ut};
g.J.eN=function(){return this.getCurrentTime()-this.w7()};
g.J.Un=function(){return this.J?this.J.Un():Infinity};
g.J.isAtLiveHead=function(e){if(!this.J)return!1;e===void 0&&(e=this.getCurrentTime());return aU(this.J,e)};
g.J.eg=function(){return!!this.J&&this.J.eg()};
g.J.seekTo=function(e,N){var y=N===void 0?{}:N;N=y.E6===void 0?!1:y.E6;var w=y.bN===void 0?0:y.bN;var E=y.l8===void 0?!1:y.l8;var A=y.FM===void 0?0:y.FM;var T=y.BY===void 0?"":y.BY;var p=y.seekSource===void 0?void 0:y.seekSource;var C=y.Kz===void 0?!1:y.Kz;var r=y.CI===void 0?!1:y.CI;y=y.Gf===void 0?!1:y.Gf;C&&(e+=this.w7());L3(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&p===29&&(this.Ut=void 0);C=e<this.aq&&!!this.tW;var Y=L3(this.videoData)&&r;if(C&&!Y&&(this.JW.Fh("sdai",{sk2bk:e.toFixed(3),
mt:(e-this.timestampOffset).toFixed(3),lstadj:this.aq.toFixed(3)}),this.aq=NaN,this.timestampOffset-=1E3,(Y=this.tW)!=null)){$KJ(Y,Y.timestampOffset-1E3);var M=Y.rP,l=new Set;for(k in M.J){var F=M.J[k].index,S=F.IX();S&&!l.has(S)&&(S.startTime+=1E3,S.endTime=S.startTime+S.duration,l.add(S));F.segments.length&&(S=F.segments[F.segments.length-1],F.segments=[],F.segments.push(S))}Y.U&&Y.U.My();D0(Y.j,0,0,!0)}var k=e;(Y=L3(this.videoData))&&r?k=!0:(M=this.T("html5_always_allow_sqless_sync")&&this.videoData.Cx(),
(Y||M)&&T==="chunkSelectorSynchronize"?k=!0:(Y=!isFinite(k)||(this.J?aU(this.J,k):k>=this.ra())||!g.bk(this.videoData),Y||(k={st:k,mst:this.ra()},this.J&&this.T("html5_high_res_seek_logging")&&(k.ht=this.J.Un(),k.adft=ktM(this.J)),this.JW.Fh("seeknotallowed",k)),k=Y));if(!k)return this.K&&(this.K=null,jUM(this)),g.S9(this.getCurrentTime());k=.005;r&&this.T("html5_sabr_seek_no_shift_tolerance")&&(k=0);if(Math.abs(e-this.N)<=k&&this.Kh)return this.L;T&&(k=e,(this.ph.B9()||this.T("html5_log_seek_reasons"))&&
this.JW.Fh("seekreason",{reason:T,tgt:k}));p&&(this.l9.N=p);this.Kh&&Jv(this);this.L||(this.L=new O3);e&&!isFinite(e)&&Vfn(this,!1);(T=y||C)||(T=e,T=!(this.videoData.isLivePlayback&&this.videoData.K&&!this.videoData.K.J&&!(this.mediaElement&&this.mediaElement.Rl()>0&&G6(this.mediaElement)>0)||wd(this.videoData)&&this.Ti()===this.ra(!1)?0:isFinite(T)||!wd(this.videoData)));T||(e=C$(this,e,E));e&&!isFinite(e)&&Vfn(this,!1);this.j=e;this.Et=A;this.N=e;this.D=0;this.J&&(E=this.J,A=e,Bg_(E,A,!1),XGM(E,
A));E=this.JW;A=e;T={E6:N,seekSource:p};E.ZB.j=A;y=E.BC;y.mediaTime=A;y.J=!0;T.E6&&E.z3(T);T=A>E.videoData.endSeconds&&A>E.videoData.limitedPlaybackDurationInSeconds;E.F_&&T&&isFinite(A)&&cvH(E);A<E.ra()-.01&&(T=wY(E.playerState,2),g.G(T,8)&&(T=wY(T,4)),E.zi(T));E.publish("SEEK_TO",E,A);this.L&&(N?w&&this.Bk.start(w):(N={CI:r,seekSource:p},this.Kh=!0,v4E(this,N)));(N=this.JW.F_)&&e>N.start&&cvH(this.JW);return this.L};
g.J.ra=function(e){if(!this.videoData.isLivePlayback)return RiM(this.JW);var N;return HF(this.videoData)&&((N=this.mediaElement)==null?0:N.isPaused())&&this.videoData.J?(e=this.getCurrentTime(),N$9(this.OY(e)*1E3)+e):this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this.videoData)&&this.videoData.J?e?this.videoData.J.Kh||0:this.videoData.J.zg||0:wd(this.videoData)&&this.videoData.Rq&&this.videoData.J?this.videoData.J.ra()+this.timestampOffset:this.videoData.K&&this.videoData.K.J?!e&&
this.J?this.J.Un():RiM(this.JW)+this.timestampOffset:this.mediaElement?Ry()?N$9(this.mediaElement.dA().getTime()):G6(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.J.Ti=function(){if(g.xK(this.videoData)){var e=this.JW;g.xK(e.videoData);var N,y;return(y=(N=e.k_)==null?void 0:N.Ti())!=null?y:e.videoData.Ti()}if(this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this.videoData)){var w;return((w=this.videoData.J)==null?void 0:w.gf)||0}N=this.videoData?this.videoData.Ti()+this.timestampOffset:this.timestampOffset;return HF(this.videoData)&&this.videoData.J&&(y=Number((e=this.videoData.progressBarStartPosition)==null?void 0:e.utcTimeMillis)/1E3,e=
this.getCurrentTime(),e=this.OY(e)-e,!isNaN(y)&&!isNaN(e))?Math.max(N,y-e):N};
g.J.TF=function(){this.L||this.seekTo(this.j,{BY:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.J.u$=function(){return this.Kh&&!isFinite(this.N)};
g.J.fh=function(){f39(this,null);this.l9.dispose();g.x.prototype.fh.call(this)};
g.J.N7=function(){var e={};this.tW&&Object.assign(e,this.tW.N7());this.mediaElement&&Object.assign(e,this.mediaElement.N7());return e};
g.J.Ny=function(e){this.timestampOffset=e};
g.J.getStreamTimeOffset=function(){return wd(this.videoData)?0:this.videoData.J?this.videoData.J.getStreamTimeOffset():0};
g.J.w7=function(){return this.timestampOffset};
g.J.OY=function(e){return this.videoData&&this.videoData.J?this.videoData.J.OY(e-this.timestampOffset):NaN};
g.J.sz=function(){if(!this.mediaElement)return 0;if(hY(this.videoData)){var e=this.mediaElement,N=e.O4();e=(JX(N)>0&&e.getDuration()?N.end(N.length-1):0)+this.timestampOffset-this.Ti();N=this.ra()-this.Ti();return Math.max(0,Math.min(1,e/N))}return this.mediaElement.sz()};
g.J.wJ=function(e){this.Z&&(this.Z.J=e)};
g.J.j0=function(e,N){this.JW.Fh("requestUtcSeek",{time:e});L3(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.Ut=e);var y;(y=this.tW)==null||y.j0(e);N&&(this.qg=N)};
g.J.ou=function(e){L3(this.videoData)&&this.T("html5_sabr_enable_utc_seek_requests")&&(this.Ut=void 0);if(this.qg)this.JW.Fh("utcSeekingFallback",{source:"streamTime",timeSeconds:this.qg}),this.JW.seekTo(this.qg,{BY:"utcSeekingFallback_streamTime"}),this.qg=0;else{var N=this.getCurrentTime();isNaN(N)||(e=this.OY(N)-e,N-=e,this.JW.Fh("utcSeekingFallback",{source:"estimate",timeSeconds:N}),this.JW.seekTo(N,{BY:"utcSeekingFallback_estimate"}))}};
g.J.WC=function(){this.qg=0};
g.J.T=function(e){return this.ph&&this.ph.T(e)};g.b(rk,g.x);rk.prototype.start=function(){this.N.start()};
rk.prototype.stop=function(){this.N.stop()};
rk.prototype.clear=function(){for(var e=g.c(this.J.values()),N=e.next();!N.done;N=e.next())N.value.clear()};
rk.prototype.sample=function(){for(var e=g.c(this.K),N=e.next();!N.done;N=e.next()){var y=g.c(N.value);N=y.next().value;y=y.next().value;this.J.has(N)||this.J.set(N,new R6E(qrk.has(N)));this.J.get(N).update(y())}this.N.start()};
var qrk=new Set(["networkactivity"]);R6E.prototype.update=function(e){this.J?(this.buffer.add(e-this.x3||0),this.x3=e):this.buffer.add(e)};
R6E.prototype.clear=function(){this.buffer.clear();this.x3=0};MJ.prototype.C9=function(){return this.started};
MJ.prototype.start=function(){this.started=!0};
MJ.prototype.reset=function(){this.finished=this.started=!1};var a39=!1;g.b(g.oY,g.pT);g.J=g.oY.prototype;g.J.fh=function(){this.logger.debug("dispose");g.k3(this.yx);AWH(this.iP);this.visibility.unsubscribe("visibilitystatechange",this.iP);Yd9(this);cs(this);g.Kk.Zx(this.Si);this.s_();this.yj=null;g.JV(this.videoData);g.JV(this.Bc);g.JV(this.ON);g.JV(this.A_);g.pq(this.HxP);this.F_=null;g.pT.prototype.fh.call(this)};
g.J.QH=function(e,N,y,w,E){if(this.ph.T("html5_log_ad_playback_docid")){var A=this.Eg();if(A.qoe){A=A.qoe;var T=this.ph.Ng||"yt";g.IU(A,g.BG(A.provider),"ad_playback",[e,N,y,E,T])}}else this.Eg().QH(e,N,y);this.T("html5_log_media_perf_info")&&this.Fh("adloudness",{ld:w.toFixed(3),cpn:e})};
g.J.LV=function(){var e;return(e=this.tW)==null?void 0:e.LV()};
g.J.T2=function(){var e;return(e=this.tW)==null?void 0:e.T2()};
g.J.fI=function(){var e;return(e=this.tW)==null?void 0:e.fI()};
g.J.QF=function(){var e;return(e=this.tW)==null?void 0:e.QF()};
g.J.RV=function(){return this.videoData.RV()};
g.J.fO=function(){return this.T("html5_not_reset_media_source")&&!this.RV()&&!this.videoData.isLivePlayback&&g.vF(this.videoData)&&!this.ph.supportsGaplessShorts()};
g.J.bW=function(){if(this.videoData.U){var e;if(!(e=this.videoData.g6)){var N;e=(N=this.nX.nh())==null?void 0:N.LV()}this.videoData.g6=e;if(!(e=this.videoData.VE)){var y;e=(y=this.nX.nh())==null?void 0:y.T2()}this.videoData.VE=e}if(W95(this.videoData)||!md(this.videoData))y=this.videoData.errorDetail,this.MP(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),y,y,this.videoData.Qm||void 0);this.T("html5_generate_content_po_token")&&this.pJ();this.T("html5_enable_d6de4")&&this.BK();
if(this.T("html5_ssap_cleanup_player_switch_ad_player")||this.T("html5_ssap_cleanup_ad_player_on_new_data"))if(y=this.nX.M7())this.Qa=y.clientPlaybackNonce};
g.J.LW=function(){return this.Ce};
g.J.qs=function(){!this.RE||this.RE.Ss();this.RE=new g.QD(new nW(this.videoData,this.ph,this));this.Ce=new HG(this.ph,this,this.RE)};
g.J.getVideoData=function(){return this.videoData};
g.J.X=function(){return this.ph};
g.J.mH=function(e){return this.NO.mH(this.yj,e===void 0?!1:e)};
g.J.Eg=function(e){if(e)a:{for(var N=this.Ce,y=g.c(N.J.values()),w=y.next();!w.done;w=y.next())if(w=w.value,w.getVideoData().videoId===e){e=w;break a}e=N.N}else e=this.Ce.Eg();return e};
g.J.UP=function(){return this.visibility};
g.J.K_=function(){return this.mediaElement&&this.mediaElement.pk()?this.mediaElement.ut():null};
g.J.LC=function(){return this.mediaElement};
g.J.Vn=function(){if(this.T("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.X().Z&&this.X().houseBrandUserStatus&&this.Fh("hbut",{status:this.X().houseBrandUserStatus});if(this.videoData.WG())return!0;this.MP("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.J.xN=function(e){(e=e===void 0?!1:e)||g.xK(this.videoData)||mS(this.Eg());this.So=e;!this.Vn()||this.eh.C9()?g.I_(this.ph)&&this.videoData.isLivePlayback&&this.eh.C9()&&!this.eh.finished&&!this.So&&this.rU():(this.eh.start(),e=this.Eg(),g.BG(e.provider),e.qoe&&pO3(e.qoe),this.rU())};
g.J.rU=function(){if(this.videoData.isLoaded()){var e=this.Bc;g.Y2(e.Ot.experiments,"html5_player_min_build_cl")>0&&g.Y2(e.Ot.experiments,"html5_player_min_build_cl")>725027312&&FLM(e,"oldplayer");Sd_(this)}else this.videoData.AA||this.videoData.Qk?this.So&&g.I_(this.ph)&&this.videoData.isLivePlayback||(this.videoData.AA?iNE(this.videoData):(e=this.Eg(),e.qoe&&(e=e.qoe,iw(e,"protected"),e.provider.videoData.L?e.Kg():e.provider.videoData.subscribe("dataloaded",e.Kg,e)),PSJ(this.videoData))):!this.videoData.loading&&
this.Tu&&Mk5(this)};
g.J.iG=function(e){this.Yk=e;this.tW&&(JYs(this.tW,new g.pW(e)),this.T("html5_check_decorator_on_cuepoint")&&this.Fh("sdai",{sdsstm:1}))};
g.J.Mf=function(e){this.k_=e;this.tW&&this.tW.Mf(e)};
g.J.bY=N3(15);g.J.isFullscreen=function(){return this.visibility.isFullscreen()};
g.J.isBackground=function(){return this.visibility.isBackground()};
g.J.TE=function(){var e=this;this.logger.debug("Updating for format change");br(this).then(function(){return Sk(e)});
this.playerState.isOrWillBePlaying()&&this.playVideo()};
g.J.yR=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.xN();this.Vn()&&!g.G(this.playerState,128)&&(this.vF.C9()||(this.vF.start(),this.videoData.zx?this.zi(yO(this.playerState,4)):this.zi(yO(yO(this.playerState,8),1))),lNE(this))};
g.J.Bz=function(){return this.eh.finished};
g.J.sendAbandonmentPing=function(){g.G(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.kZ(!0),Yd9(this),g.Kk.Zx(this.Si))};
g.J.U7=function(e,N){e=e===void 0?!0:e;(N===void 0||N)&&this.mediaElement&&this.mediaElement.pause();this.zi(e?new g.a8(14):new g.a8)};
g.J.W_=function(){GGE(this.Eg())};
g.J.MP=function(e,N,y,w,E,A){this.logger.debug(function(){return"set player error: ec="+e+", detail="+E});
var T,p;g.di(G70,y)?T=y:y?p=y:T="GENERIC_WITHOUT_LINK";w=(w||"")+(";a6s."+C2());if(e==="auth"||e==="drm.auth"||e==="heartbeat.stop")y&&(w+=";r."+y.replaceAll(" ","_")),A&&(w+="sr."+A.replaceAll(" ","_"));N={errorCode:e,errorDetail:E,errorMessage:p||g.R3[T]||"",Se:T,Qm:A||"",Hu:w,l5:N,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=e;hv(this,"dataloaderror");this.zi(Nb(this.playerState,128,N));g.Kk.Zx(this.Si);cs(this);this.wK()};
g.J.Go=function(e){this.wL=this.wL.filter(function(N){return e!==N});
this.logger.debug(function(){return"set preroll ready for "+e});
g.xK(this.videoData)&&!this.V_()&&this.R9.oe("pl_pr");this.vF.C9()&&lNE(this)};
g.J.V_=function(){var e;(e=!!this.wL.length)||(e=this.yb.J.array[0],e=!!e&&e.start<=-0x8000000000000);return e};
g.J.eg=function(){return this.ZB.eg()};
g.J.isPlaying=function(){return this.playerState.isPlaying()};
g.J.C_=function(){return this.playerState.C_()&&this.videoData.zx};
g.J.getPlayerState=function(){return this.playerState};
g.J.fH=function(e){var N;(N=this.tW)==null||N.fH(e)};
g.J.tE=function(e){var N;(N=this.tW)==null||N.tE(e)};
g.J.getPlayerType=function(){return this.playerType};
g.J.getPreferredQuality=function(){if(this.yj){var e=this.yj;e=e.videoData.E8.compose(e.videoData.Pl);e=sj(e)}else e="auto";return e};
g.J.bJ=N3(20);g.J.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.J.setMediaElement=function(e){this.logger.debug("set media element");if(this.mediaElement&&e.ut()===this.mediaElement.ut()&&(e.isView()||this.mediaElement.isView())){if(e.isView()||!this.mediaElement.isView())g.g9(this.N6),this.mediaElement=e,this.mediaElement.JW=this,fNJ(this),this.ZB.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.s_();if(!this.playerState.isError()){var N=wY(this.playerState,512);g.G(N,8)&&!g.G(N,2)&&(N=yO(N,1));e.isView()&&(N=wY(N,64));this.zi(N)}this.mediaElement=
e;this.mediaElement.JW=this;!g.I_(this.ph)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);fNJ(this);this.ZB.setMediaElement(this.mediaElement);this.T("html5_prewarm_media_source")&&!this.Bc.PU()&&cF5(this.mediaElement)}};
g.J.s_=function(e,N,y){e=e===void 0?!1:e;N=N===void 0?!1:N;y=y===void 0?!1:y;this.logger.debug("remove media element");if(this.mediaElement){var w=this.getCurrentTime();w>0&&(this.ZB.j=w);this.ZB.setMediaElement(null);!e&&this.fO()?v7M(this):this.IN(y);this.tW&&(sB(this.tW),Ps(this,N));this.X2.stop();if(this.mediaElement&&(!(this.vF.C9()||this.T("html5_preroll_su_report_fix")&&this.wq())||this.playerState.isError()||g.G(this.playerState,2)||this.zi(yO(this.playerState,512)),this.mediaElement)){g.g9(this.N6);
if(e||!this.mediaElement.isView())this.R9.d6("mesv_s"),this.mediaElement.stopVideo(),dk(this);this.mediaElement=this.mediaElement.JW=null}}};
g.J.playVideo=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;var y=this,w,E,A,T,p,C;return g.f(function(r){if(r.J==1){y.logger.debug("start play video");var Y=window.google_image_requests;Y&&Y.length>10&&(window.google_image_requests=Y.slice(-10));if(g.G(y.playerState,128))return r.return();if(y.Bc.uy())return y.publish("signatureexpired"),r.return();y.mediaElement&&mS(y.Eg());y.yR();(g.G(y.playerState,64)||e)&&y.zi(yO(y.playerState,8));return y.vF.finished&&y.mediaElement?y.yj||!y.lQ?r.u9(2):
g.D(r,y.lQ,3):r.return()}if(r.J!=2&&g.G(y.playerState,128))return r.return();if(!y.videoData.K)return y.videoData.isLivePlayback&&!g.Oh(y.ph.L,!0)?(w="html5.unsupportedlive",E=2):(w=y.videoData.RV()?"fmt.unplayable":"fmt.noneavailable",E=1),g.uA(Error("selectableFormats")),y.MP(w,E,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),r.return();if(y.ox()&&y.videoData.K.J)return y.logger.debug("rebuild playbackData for airplay"),r.return(br(y));if(To(y))Y=y.ZB,yG(Y.videoData)?!Y.isAtLiveHead(Y.getCurrentTime())&&
Y.eg()&&Y.JW.seekTo(Infinity,{BY:"seektimeline_peggedToLive",seekSource:34}):g.xK(Y.videoData)&&Y.getCurrentTime()<Y.Ti()&&Y.JW.seekTo(Y.Ti(),{BY:"seektimeline_outOfWindow"});else if(yG(y.videoData)){if(A=y.getCurrentTime()<y.Ti()-15,T=g.bk(y.videoData)&&y.playerState.isPaused(),p=g.G(y.playerState,1024),Y=y.ZB,Y.videoData.Cx()&&g.nX(Y.videoData)||p||!A&&!T||(T?(y.logger.debug("seek to head for live because of live-only"),y.seekTo(Infinity,{BY:"videoplayer_unpauseLiveOnly",seekSource:102})):(y.logger.debug("seek to min seekable for live because of out of window"),
y.seekTo(y.Ti(),{BY:"videoplayer_outOfWindow",seekSource:102}))),!y.isAtLiveHead(void 0,!0)&&y.eg()&&(y.logger.debug("seek to head for live because pegged to live"),C={BY:"videoplayer_peggedToLive",seekSource:34},y.seekTo(Infinity,C)),g.G(y.playerState,256)&&y.videoData.qg&&y.ZB.u$())return y.zi(EV(y.playerState,8,4)),r.return()}else g.xK(y.videoData)&&y.getCurrentTime()<y.Ti()-0&&y.seekTo(y.Ti(),{BY:"videoplayer_outOfWindow"});g.G(y.playerState,4)&&g.G(y.playerState,16)&&y.zi(EV(y.playerState,9,
4));if(Sk(y,N))return jY1(y),r.return();xJs(y);g.hn(r)})};
g.J.P_=function(e){this.logger.debug("reset media source");e&&this.Qi(new P3("qoe.restart",e));this.zi(yO(this.playerState,2048));this.IN();e=this.videoData.J&&Ai(this.videoData.J);var N=this.mediaElement&&this.mediaElement.isView();e||N?(this.tW&&gKM(this.tW),this.hT()):(Sk(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.J.Sg=function(){if(!this.yj)return[];var e=kbM(this.NO,this.yj,this.De());return this.yj.J.Sg(e)};
g.J.ME=function(){if(!this.yj)return[];var e=kbM(this.NO,this.yj,this.De());return this.yj.J.ME(e)};
g.J.De=function(){var e=this.FT?this.FT.De():On(this.videoData)&&this.videoData.J&&Ai(this.videoData.J)?this.videoData.xX?f3:OXJ:f3;this.Dm&&(e=e.compose(ob_));return e};
g.J.aG=function(){return this.yj?kbM(this.NO,this.yj,this.De()):f3};
g.J.g0=function(){var e=this.vE(),N=this.nX.M7().videoId;return this.nX.Bi.g0(e)||this.nX.Bi.g0(N)};
g.J.wM=function(e,N,y){if(this.T("html5_enable_qoe_video_format_intent")){var w;if((w=this.Eg().qoe)!=null){var E=e.J,A=g.BG(w.provider);g.IU(w,A,"vfi",[E===0?"":""+E,E===0?"A":"M"])}}this.videoData.E8=e;if(this.yj&&N&&(N=this.NO,w=this.yj,w.J.J)){var T=w.J.videoInfos[0].video.J;E=T!==0&&e.J===T;A=zm()>T;T=N.T("html5_dont_save_under_1080")&&T<1080;if(!E||!A&&!T){var p;E=BAM(N,(p=w.J)==null?void 0:p.videoInfos);p=N.JW.getPlaybackRate();p>1&&E&&(p=c_5(N.ph.L,w.J.videoInfos,p),e.J!==0&&p<e.J&&N.JW.setPlaybackRate(1));
var C,r;e=g.q5[sj(e)];p=((C=w.videoData.N)==null?void 0:(r=C.video)==null?void 0:r.J)||0;g.uY("yt-player-quality",{quality:e,previousQuality:p},31104E3);N.ph.schedule.policy.j=zm()>=480;if(N.T("html5_exponential_memory_for_sticky")){C=N.ph.UY;r=1;var Y=Y===void 0?!1:Y;xb0(C,"sticky-lifetime");C.values["sticky-lifetime"]&&C.lY["sticky-lifetime"]||(C.values["sticky-lifetime"]=0,C.lY["sticky-lifetime"]=0);Y&&Fn(C,"sticky-lifetime")>.0625&&(r=C.lY["sticky-lifetime"]*2);C.values["sticky-lifetime"]+=1*
Math.pow(2,C.J/r);C.lY["sticky-lifetime"]=r;C.j.start()}if(N.T("html5_perf_cap_override_sticky")){Y=N.K;C=N.T("html5_perserve_av1_perf_cap");C=C===void 0?!1:C;if(C===void 0?0:C){r=DM();N=g.c(Object.keys(r));for(e=N.next();!e.done;e=N.next())e=e.value,e.indexOf("1")!==0&&delete r[e];g.uY("yt-player-performance-cap",r,2592E3)}else g.Zw("yt-player-performance-cap");k55(C);if(C){C=g.c(hm.keys());for(r=C.next();!r.done;r=C.next())r=r.value,r.startsWith("1")||hm.delete(r);C=g.c(hj.values());for(r=C.next();!r.done;r=
C.next())r=r.value,r.startsWith("1")||hj.delete(r);C=g.c(Y.keys());for(r=C.next();!r.done;r=C.next())r=r.value,r.startsWith("1")||Y.delete(r)}else hm.clear(),hj.clear(),Y.clear()}}}this.tW&&(Y=this.tW,y=y||"",Y.policy.J?q4(Y.N.J,y):q4(Y.J.L,y));this.yq()};
g.J.getUserPlaybackQualityPreference=function(){return this.videoData.K&&!this.videoData.K.J?sj(this.videoData.E8):LA[zm()]};
g.J.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.J.setUserAudio51Preference=function(e,N){this.getUserAudio51Preference()!==e&&(this.Fh("toggle51",{pref:e}),g.uY("yt-player-audio51",e,N?31536E3:2592E3),this.TE())};
g.J.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
g.J.setProximaLatencyPreference=function(e){var N=this.getProximaLatencyPreference();this.Fh("proxima",{pref:e});g.uY("yt-player-proxima-pref",e,31536E3);N!==e&&(e=this.ZB,e.VB=!0,e.JW.seekTo(Infinity,{BY:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.J.getProximaLatencyPreference=function(){var e;return(e=im())!=null?e:0};
g.J.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.J.pJ=function(){this.videoData.videoId?this.nX.pJ(this.videoData):this.Fh("povid",{})};
g.J.BK=function(){this.videoData.videoId?this.nX.BK(this.videoData):this.Fh("piavid",{})};
g.J.yq=function(){if(!this.Ss()&&!g.G(this.playerState,128)&&this.videoData.K){if(this.videoData.K.J)Fx(this);else{var e=Xx(this),N=this.videoData;a:{var y=this.videoData.jp;if(e.J){for(var w=g.c(y),E=w.next();!E.done;E=w.next()){E=E.value;var A=E.getInfo(),T=g.q5[A.video.quality];if((!e.K||A.video.quality!=="auto")&&T<=e.J){y=E;break a}}y=y[y.length-1]}else y=y[0]}N.VB=y;ko_(this,e.reason,qdP(this,this.videoData.VB))}if(this.T("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.ZB.G=
!1,this.playVideo()}};
g.J.qM=function(e,N){if(this.Ss()||g.G(this.playerState,128))return!1;var y,w=!((y=this.videoData.K)==null||!y.J);y=w&&N?this.getCurrentTime()-this.w7():NaN;if(this.ph.experiments.gP("html5_record_audio_format_intent")){var E=this.Eg();if(E.qoe){E=E.qoe;var A=[e.Vl.id,isNaN(y)?"m":"t"];g.IU(E,g.BG(E.provider),"afi",A)}}if(w)return N&&(w=u$_(this.ZB),this.Fh("aswh",{id:e.id,xtags:e.xtags,bh:w.toFixed(3)})),this.tW.setAudioTrack(e,y,N),!0;if(Xs3(this)){a:{N=this.mediaElement.audioTracks();for(w=0;w<
N.length;++w)if(y=N[w],y.label===e.Vl.getName()){if(y.enabled){N=!1;break a}N=y.enabled=!0;break a}N=void 0}N&&this.Fh("hlsaudio",{id:e.id})}else{a:if(N=this.videoData,N.j&&!GS(N.j)||e===N.Ip||!N.jp||N.jp.length<=0)N=!1;else{w=g.c(N.jp);for(y=w.next();!y.done;y=w.next()){y=y.value;if(!(y instanceof NO)){N=!1;break a}E=e.Vl.getId();y.N&&(phM(y.N,E),y.yl=null)}N.Ip=e;N=!0}N&&Sk(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Fh("hlsaudio",{id:e.id}))}return!0};
g.J.getAvailableAudioTracks=function(){return g.xK(this.videoData)&&this.k_?ep5(this.k_).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.J.getAudioTrack=function(){if(Xs3(this)){var e=dJM(this);if(e)return e}return this.videoData.getAudioTrack()};
g.J.Jq=function(){if(this.videoData.T("html5_trigger_loader_when_idle_network")&&!this.videoData.Cx()&&L3(this.videoData)){var e;(e=this.tW)!=null&&e.Ga()}};
g.J.tS=function(){if(Rf(this.videoData)&&this.videoData.T("html5_gapless_append_early")){var e;(e=this.tW)!=null&&e.Ga()}};
g.J.wb=function(e){e=e===void 0?!1:e;if(this.tW){var N=this.tW,y=N.wb;var w=this.videoData;w=w.T("html5_ssdai_use_post_for_media")&&w.enableServerStitchedDai?!1:wd(w)&&w.As&&!w.isAd();y.call(N,w,e)}};
g.J.IN=function(e){e=e===void 0?!1:e;this.TZ&&(this.logger.debug("remove media source"),h30(this.TZ),this.wb(e),this.TZ.dispose(),this.TZ=null)};
g.J.E$=function(){return this.TZ};
g.J.KH=function(e,N,y,w){function E(T){try{g7E(A,T,N,y)}catch(p){g.uA(p),A.handleError(new P3("fmt.unplayable",{msi:"1",ename:p&&typeof p==="object"&&"name"in p?String(p.name):void 0},1))}}
var A=this;N=N===void 0?!1:N;y=y===void 0?!1:y;i$F(this,w===void 0?!1:w);this.TZ=e;this.fO()&&Kh(this.TZ)==="open"?E(this.TZ):lYH(this.TZ,E)};
g.J.VQ=function(e){this.logger.debug("onNeedKeyInfo");this.K8.set(e.initData,e);this.FT&&(this.FT.VQ(e),this.T("html5_eme_loader_sync")||this.K8.remove(e.initData))};
g.J.k5=function(e){this.videoData.By=g.Rx("auto",e,!1,"u");Fx(this)};
g.J.wJ=function(e){var N=e.reason,y=e.J.info,w=e.token,E=e.videoId,A=this.Eg(E),T=g.xK(this.videoData)?A.getVideoData():this.videoData;if(y!==T.j){var p=!T.j;T.j=y;N!=="m"&&N!=="t"&&(N=p?"i":"a");var C=N==="m"||N==="t";this.ph.experiments.gP("html5_refactor_sabr_audio_format_selection_logging")?this.Tk=new br5(T,y,N,"",w,E):A.e3(new br5(T,y,N,"",w));this.publish("internalaudioformatchange",T,!p&&C)}this.ZB.wJ(e.J.index)};
g.J.Me=function(e){this.publish("localmediachange",e)};
g.J.mK=function(e){e=e===void 0?{}:e;var N;(N=this.tW)==null||N.mK(this.ph,Un(this.videoData),e)};
g.J.uy=function(){return this.Bc.uy()};
g.J.HT=function(e){this.Qi(new P3("staleconfig",{reason:e}))};
g.J.handleError=function(e){this.Bc.handleError(e)};
g.J.PU=function(){return this.Bc.PU()};
g.J.ou=function(e){this.ZB.ou(e)};
g.J.hT=function(e,N,y){e=e===void 0?!1:e;N=N===void 0?!1:N;y=y===void 0?!1:y;var w=this,E,A,T;return g.f(function(p){if(p.J==1){w.tW&&w.tW.f_();w.tW&&w.tW.Ss()&&cs(w);if(w.T("html5_enable_vp9_fairplay")&&w.RV()&&(E=w.videoData.J)!=null)for(var C in E.J)E.J.hasOwnProperty(C)&&(E.J[C].J=null,E.J[C].K=!1);w.zi(yO(w.playerState,2048));w.T("html5_ssap_keep_media_on_finish_segment")&&g.xK(w.videoData)?w.publish("newelementrequired",y):w.publish("newelementrequired");return e?g.D(p,br(w),2):p.u9(2)}w.videoData.Cx()&&
((A=w.tW)==null?0:A.qg)&&!To(w)&&((T=w.isAtLiveHead())&&yG(w.videoData)?w.seekTo(Infinity,{BY:"videoPlayer_getNewElement"}):w.videoData.Ta&&w.tW&&(C=w.tW,C.rP.Cx&&(C.rP.Ta||C.rP.j||C.rP.isPremiere?(C.seek(0,{BY:"loader_resetSqless"}),C.videoTrack.G=!0,C.audioTrack.G=!0,C.videoTrack.L=!0,C.audioTrack.L=!0):SI(C.rP)&&Wl(C))));N&&w.seekTo(0,{seekSource:105});g.G(w.playerState,8)&&(w.T("html5_ssap_keep_media_on_finish_segment")&&g.xK(w.videoData)?w.playVideo(!1,y):w.playVideo());g.hn(p)})};
g.J.BZ=function(e){this.Fh("hgte",{ne:+e});this.videoData.U=!1;e&&this.hT();this.tW&&gKM(this.tW)};
g.J.E1=function(e){this.Fh("newelem",{r:e});this.hT()};
g.J.pauseVideo=function(e){e=e===void 0?!1:e;if((g.G(this.playerState,64)||g.G(this.playerState,2))&&!e)if(g.G(this.playerState,8))this.zi(EV(this.playerState,4,8));else if(this.C_())Sk(this);else return;g.G(this.playerState,128)||(e?this.zi(yO(this.playerState,256)):this.zi(EV(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.bk(this.videoData)&&this.tW&&Ps(this,!1)};
g.J.stopVideo=function(){this.pauseVideo();this.tW&&(Ps(this,!1),this.tW.w4())};
g.J.wK=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;if(this.fO()&&N){var y;(y=this.mediaElement)==null||y.wK()}else{var w;(w=this.mediaElement)==null||w.stopVideo()}dk(this);cs(this);g.G(this.playerState,128)||(e?this.zi(wY(wY(yO(this.playerState,4),8),16)):this.zi(Nb(this.playerState)));this.videoData.videoId&&this.ph.aq.remove(this.videoData.videoId)};
g.J.seekTo=function(e,N){N=N===void 0?{}:N;this.logger.debug(function(){return"SeekTo "+e+", "+JSON.stringify(N)});
g.G(this.playerState,2)&&Sk(this);N.PYs&&this.zi(yO(this.playerState,2048));N.seekSource!==58&&N.seekSource!==60||!this.T("html5_update_vss_during_gapless_seeking")||OH9(this.Eg(),N.seekSource);this.ZB.seekTo(e,N);this.yb.sync()};
g.J.z3=function(e){this.R9.j.AS();g.G(this.playerState,32)||(this.zi(yO(this.playerState,32,e==null?void 0:e.seekSource)),g.G(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.HY()};
g.J.yr=function(e){e=e==null?void 0:e.seekSource;g.G(this.playerState,32)?(this.zi(EV(this.playerState,16,32,e)),this.publish("endseeking",this)):g.G(this.playerState,2)||this.zi(yO(this.playerState,16,e));this.R9.j.zK(this.videoData,this.playerState.isPaused())};
g.J.I0=function(e){this.yr(e)};
g.J.Qt=function(){this.publish("SEEK_COMPLETE")};
g.J.jT=function(){this.publish("onAbnormalityDetected")};
g.J.qf=function(e){var N=this.nX,y=this.videoData.clientPlaybackNonce,w=this.playerType;if(e.scope===4){var E=e.type;if(E){var A=N.NU(),T=A.getVideoData().clientPlaybackNonce;w===1&&(T=y);(N=vU1(N,T))?(y=N.getVideoData())&&(e.writePolicy===2&&y.sabrContextUpdates.has(E)||y.sabrContextUpdates.set(E,e)):A.Fh("scuset",{ncpf:"1",ccpn:T,crcpn:y})}else g.uA(Error("b/380308491: contextUpdateType is undefined"))}};
g.J.VF=function(){if(this.nX.M7().zy&&this.playerType===2)return this.nX.VF("")};
g.J.getCurrentTime=function(){return this.ZB.getCurrentTime()};
g.J.F2=function(){return this.ZB.F2()};
g.J.eN=function(){return this.ZB.eN()};
g.J.UV=function(e){return this.k_&&(e=e||this.k_.XH())?TI(this.k_,e):this.eN()};
g.J.Un=function(){return this.ZB.Un()};
g.J.getPlaylistSequenceForTime=function(e){return this.videoData.getPlaylistSequenceForTime(e-this.w7())};
g.J.K9=function(){var e=NaN;this.mediaElement&&(e=this.mediaElement.K9());return e>=0?e:this.getCurrentTime()};
g.J.OY=function(){var e;return((e=this.videoData.J)==null?0:e.OY)?this.videoData.J.OY(this.getCurrentTime()-this.w7()):this.mediaElement&&(e=this.mediaElement.dA())&&(e=e.getTime(),!isNaN(e))?e/1E3+this.getCurrentTime():NaN};
g.J.getDuration=function(e){return g.xK(this.videoData)&&this.k_?e?aE9(this.k_,e):LH(this.k_):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.w7():this.ra()?this.ra():0};
g.J.gG=function(){var e=new e63;if(this.tW){var N=this.ph.schedule,y=this.ph.B9();y=y===void 0?!1:y;e.xS=N.qg;e.RM=N.Et;e.bandwidthEstimate=M_(N);if(y){y=(N.U.AT()*1E3).toFixed();var w=(N.i9.AT()*1E3).toFixed(),E=Ca(N).toFixed(2),A=((N.G.AT()||0)*1E9).toFixed(2),T=N.K.AT().toFixed(0),p=N.Rq.AT().toFixed(0),C=N.D.percentile(.5).toFixed(2),r=N.D.percentile(.92).toFixed(2),Y=N.D.percentile(.96).toFixed(2),M=N.D.percentile(.98).toFixed(2);N.J?N.J.reset():N.J=new eV;N.J.add(N.l9);N.J.add(N.interruptions.length);
for(var l=0,F=N.interruptions.length-1;F>=0;F--){var S=N.interruptions[F];N.J.add(S-l);l=S}l=0;for(F=N.j.length-1;F>=0;F--){S=N.j[F];var k=S.stamp/36E5;N.J.add(k-l);l=k;N.J.add(S.net/1E3);N.J.add(S.max)}N=N.J.jY();e.J={ttr:y,ttm:w,d:E,st:A,bw:T,abw:p,v50:C,v92:r,v96:Y,v98:M,"int":N}}Td0(this.tW,e)}else this.mediaElement&&(e.Ze=U3(this.mediaElement));e.xS=this.xS;e.RM=this.RM;e.K=this.isAtLiveHead()&&this.isPlaying()?rvH(this):NaN;return e};
g.J.Gt=function(e,N){this.RM+=e;this.xS+=N};
g.J.sz=function(){return this.mediaElement?g.bk(this.videoData)?1:hY(this.videoData)?this.isAtLiveHead()||this.eg()?1:this.ZB.sz():this.mediaElement.sz():0};
g.J.vQ=function(){var e=this.getCurrentTime();if(this.FT){var N="IT/"+(this.FT.J.getInfo()+"/"+sj(this.De()));N+="/"+this.FT.getInfo()}else N="";var y=this.isGapless(),w=this.xB(),E=this.BQ(),A=g.Bs(this),T=this.getPlayerState(),p=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var C=0;var r="";if(this.Yk){if(this.Yk.g2){r="D,";break a}C=this.Yk.MH();r=this.Yk.XH().substring(0,4)}else this.k_&&(C=this.k_.MH(),r=this.k_.XH().substring(0,4));C>0?(C="AD"+C+", ",r&&(C+=r+", "),r=C):r=""}return{currentTime:e,
d0:N,isGapless:y,xB:w,dI:E,xP1:A,playerState:T,G9t:p,bNs:this.Wx,Ui:r,F3Z:this.DR()}};
g.J.N7=function(e){var N={};if(e===void 0?0:e){Object.assign(N,this.Eg().N7());this.mediaElement&&(Object.assign(N,this.mediaElement.N7()),Object.assign(N,this.DR()));this.tW&&Object.assign(N,this.tW.N7());this.FT&&(N.drm=JSON.stringify(this.FT.N7()));N.state=this.playerState.state.toString(16);g.G(this.playerState,128)&&(N.debug_error=JSON.stringify(this.playerState.qS));this.V_()&&(N.prerolls=this.wL.join(","));this.videoData.CC&&(N.ismb=this.videoData.CC);this.videoData.latencyClass!=="UNKNOWN"&&
(N.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(N.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)N.is_mosaic=1;this.videoData.cotn&&(N.is_offline=1,N.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(N.playerResponseCpn=this.videoData.playerResponseCpn);this.nX.isOrchestrationLeader()&&(N.leader=1);this.videoData.isLivePlayback&&(this.videoData.J&&
Y_(this.videoData.J)&&(N.segduration=Y_(this.videoData.J)),e=this.ZB,N.lat=e.Z?FSJ(e.Z.j):0,N.liveutcstart=this.videoData.liveUtcStartSeconds);N.relative_loudness=this.videoData.Fo.toFixed(3);if(e=g.Bs(this))N.optimal_format=e.video.qualityLabel;N.user_qual=zm();N.release_version="youtube.player.web_20250209_00_RC00";g.xK(this.videoData)&&this.k_&&(N.ssap=Mo(this.k_))}N.debug_videoId=this.videoData.videoId;return N};
g.J.addCueRange=function(e){this.Ef([e])};
g.J.removeCueRange=function(e){this.yb.bl([e])};
g.J.Wr=function(){this.yb.sync()};
g.J.I7=function(e,N){return this.yb.I7(e,N)};
g.J.Ef=function(e,N){this.yb.wx(e,N)};
g.J.E7=function(e){this.yb.bl(e)};
g.J.S4=function(e){var N=this.yb;e.length<=0||N.Ss()||(e=N.J,e.array.sort(e.J))};
g.J.XW=function(){return this.yb.XW()||[]};
g.J.Nj=function(){return this.qL};
g.J.ox=function(){return this.visibility.ox()};
g.J.aS=function(){this.mediaElement&&this.mediaElement.aS()};
g.J.wEG=function(){hv(this)};
g.J.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.J.KP=function(e){var N=e.target.cI();if(this.mediaElement&&this.mediaElement.cI()&&this.mediaElement.cI()===N){KP9(this,e.type);switch(e.type){case "error":var y=s3(this.mediaElement)||"",w=this.mediaElement.Cq();if(y==="capability.changed"){this.T("html5_restart_on_capability_change")?(this.Fh("capchg",{msg:w}),this.hT(!0)):br(this);return}if(this.mediaElement.hasError()&&($N0(this.Bc,y,{msg:w})||g.xK(this.videoData)&&this.k_&&(w=this.playerState.qS,this.k_.handleError(y,w==null?void 0:w.l5))))return;
if(this.isBackground()&&this.mediaElement.pw()===4){this.wK();k7(this,"unplayable");return}break;case "durationchange":y=this.mediaElement.getDuration();isFinite(y)&&(!this.TZ||y>0)&&y!==1&&this.zV(y);break;case "ratechange":this.tW&&this.tW.setPlaybackRate(this.mediaElement.getPlaybackRate());CwM(this.yb);this.Eg().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":O$3(this);this.publish("onLoadedMetadata");uxP(this);y=this.OY();this.videoData.YN&&(this.videoData.YN=y);break;
case "loadstart":uxP(this);break;case "progress":case "suspend":this.HY();this.publish("onLoadProgress",this,this.sz());break;case "playing":this.R9.d6("plev");this.NR&&!To(this)&&(this.NR=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{BY:"videoplayer_onPlaying"})));break;case "timeupdate":y=this.mediaElement&&!this.mediaElement.getCurrentTime();w=this.mediaElement&&this.mediaElement.Rl()===0;if(y&&(!this.Hr||w))return;this.Hr=this.Hr||!!this.mediaElement.getCurrentTime();
tk1(this);this.HY();if(!this.mediaElement||this.mediaElement.cI()!==N)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.JP().length>0&&this.mediaElement.O4().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.tW)return;this.T("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Rl()>2||!this.mediaElement.isSeeking()&&AX(this.mediaElement.O4(),this.mediaElement.getCurrentTime()))&&
(y=this.mediaElement.N7(),y.bh=U3(this.mediaElement).toFixed(3),this.Fh("uwe",y));g.xK(this.videoData)&&this.k_&&WB0(this.k_,this.mediaElement.getCurrentTime());break;case "resize":O$3(this);this.videoData.N&&this.videoData.N.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.Jk&&g.G(this.playerState,8)&&!g.G(this.playerState,1024)&&this.getCurrentTime()===0&&g.k$){k7(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.cI()===
N){KS1(this.ZB,e,this.k_||void 0);this.publish("videoelementevent",e);N=this.playerState;w=this.BC;var E=this.mediaElement;y=this.videoData.clientPlaybackNonce;var A=g.xK(this.videoData)&&this.k_?LH(this.k_):void 0;if(!g.G(N,128)){var T=N.state;E=E?E:e.target;var p=E.getCurrentTime();if(!g.G(N,64)||e.type!=="ended"&&e.type!=="pause"){A=A||E.getDuration();A=E.isEnded()||p>1&&Math.abs(p-A)<1.1;var C=e.type==="pause"&&E.isEnded();p=e.type==="ended"||e.type==="waiting"||e.type==="timeupdate"&&!g.G(N,
4)&&!RU(w,p);if(C||A&&p)E.pM()>0&&E.cI()&&(T=14);else switch(e.type){case "error":s3(E)&&(T|=128);break;case "pause":g.G(N,256)?(T^=256)||(T=64):g.G(N,32)||g.G(N,2)||g.G(N,4)||(T=4,g.G(N,1)&&g.G(N,8)&&(T|=1));break;case "playing":p=T;T=(T|8)&-1093;p&4?(T|=1,ep(w,E,!0)):RU(w,E.getCurrentTime())&&(T&=-2);g.G(N,1)&&ep(w,E)&&(T|=1);break;case "seeking":T|=16;g.G(N,8)&&(T|=1);T&=-3;break;case "seeked":T&=-17;ep(w,E,!0);break;case "waiting":g.G(N,2)||(T|=1);ep(w,E);break;case "timeupdate":p=g.G(N,16),A=
g.G(N,4),(g.G(N,8)||p)&&!A&&RU(w,E.getCurrentTime())&&(T=8),ep(w,E)&&(T|=1)}}w=T;T=null;w&128&&(T=e.target,E=s3(T),p=1,E?(E==="capability.changed"&&(p=2),A="GENERIC_WITHOUT_LINK",C=T.N7(),C.mediaElem="1",/AUDIO_RENDERER/.test(T.Cq())&&(A="HTML5_AUDIO_RENDERER_ERROR"),T={errorCode:E,errorMessage:g.R3[A]||"",Se:A,Hu:Xe(C),l5:p,cpn:N.qS?N.qS.cpn:""}):T=null,T&&(T.cpn=y));N=Nb(N,w,T)}!g.G(this.playerState,1)&&g.G(N,1)&&H$H(this,"evt"+e.type);this.zi(N)}}};
g.J.mUt=function(e){e=e.J.availability==="available";e!==this.qL&&(this.qL=e,this.publish("airplayavailabilitychange"))};
g.J.n_B=function(){var e=(0,g.iC)(),N=this.mediaElement.ox();this.Fh("airplay",{ia:N});!N&&!isNaN(this.Ux)&&e-this.Ux<2E3||(this.Ux=e,N!==this.ox()&&(e=this.visibility,e.J!==N&&(e.J=N,e.iP()),this.Fh("airplay",{rbld:N}),this.TE()),this.publish("airplayactivechange"))};
g.J.tP=function(e){if(this.tW){var N=this.tW,y=N.j,w=N.getCurrentTime(),E=Date.now()-y.D;y.D=NaN;y.Fh("sdai",{adfetchdone:e,d:E});e&&!isNaN(y.G)&&y.N!==3&&vT(y.tW,w,y.G,y.L);y.policy.L?y.K=NaN:y.j=NaN;dB(y,4,y.N===3?"adfps":"adf");sB(N)}};
g.J.oi=function(){g.k3(this.yx);this.X2.stop();this.videoData.qg=!0;this.ph.Mk=!0;this.ph.pX=0;var e=this.Bc;if(e.videoData.N){var N=e.Ot.L,y=e.videoData.N.Iq;N.N.has(y)&&(N.N.delete(y),RI(N))}e.J.stop();this.IR();g.G(this.playerState,8)&&this.zi(wY(this.playerState,65));this.So=!1;WpE(this.Eg());g.NA(this.ON);this.publish("playbackstarted");(e=g.nM("yt.scheduler.instance.clearPriorityThreshold"))?e():Em(0,0)};
g.J.IR=function(){var e=this.nX.M7(),N={},y={};!mo("pbs",this.R9.timerName)&&zH.measure&&zH.getEntriesByName&&(zH.getEntriesByName("mark_nr")[0]?O6E("mark_nr"):O6E());e.videoId&&(N.videoId=e.videoId);e.clientPlaybackNonce&&!this.T("web_player_early_cpn")&&(N.clientPlaybackNonce=e.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(y.isPausedOnLoad=!0);y.itag=e.N?Number(e.N.itag):-1;e.NK&&(y.preloadType=String(this.uj?2:1));N.liveStreamMode=vbV[MK(e)];N.playerInfo=y;this.R9.infoGel(N);
if(this.tW){e=this.tW.timing;window&&window.performance&&window.performance.getEntriesByName&&(e.K&&(N=window.performance.getEntriesByName(e.K),N.length&&(N=N[0],e.tick("vri",N.fetchStart),e.tick("vdns",N.domainLookupEnd),e.tick("vreq",N.requestStart),e.tick("vrc",N.responseEnd))),e.N&&(N=window.performance.getEntriesByName(e.N),N.length&&(N=N[0],e.tick("ari",N.fetchStart),e.tick("adns",N.domainLookupEnd),e.tick("areq",N.requestStart),e.tick("arc",N.responseEnd))));e=e.ticks;for(var w in e)e.hasOwnProperty(w)&&
this.R9.tick(w,e[w])}};
g.J.YJ=function(e,N,y){e=(e+(this.l1===3?.3:0))/N;N=Math.floor(e*4);N>this.l1&&(this.Fh("vpq",{q:N,cpn:y||this.videoData.clientPlaybackNonce,ratio:e.toFixed(3)}),this.l1=N)};
g.J.gZ=function(){this.l1=-1};
g.J.HY=function(e){var N=this;e=e===void 0?!1:e;if(this.mediaElement&&this.videoData){qvP(this.ZB,this.isPlaying());var y=this.getCurrentTime();!this.tW||g.G(this.playerState,4)&&g.bk(this.videoData)||g.G(this.playerState,32)&&L3(this.videoData)||pFn(this.tW,y);this.T("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.YJ(y,this.videoData.lengthSeconds);y>5&&(this.ZB.j=y);var w=g.w0();w?g.Kk.Zx(this.Si):g.cL(this.Si);var E=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!E||HF(this.videoData))&&
!g.G(this.playerState,128)){var A=function(){if(N.mediaElement&&!g.G(N.playerState,128)){N.ph.B9()&&KP9(N,"pfx");var T=N.getCurrentTime();N.T("html5_buffer_underrun_transition_fix")&&(T-=N.w7());var p=U3(N.mediaElement),C=g.G(N.playerState,8),r=RU(N.BC,T),Y=IYn(N.BC,T,(0,g.iC)(),p);C&&r?N.zi(wY(N.playerState,1)):C&&Y?(C=N.getDuration(),r=yG(N.videoData),C&&Math.abs(C-T)<1.1?(N.Fh("setended",{ct:T,bh:p,dur:C,live:r}),N.mediaElement.ZS()?(N.logger.debug("seek to 0 because of looping"),N.seekTo(0,{BY:"videoplayer_loop",
seekSource:37})):N.U7()):(N.playerState.isBuffering()||H$H(N,"progress_fix"),N.zi(yO(N.playerState,1)))):(C&&!r&&!Y&&T>0&&(C=(Date.now()-N.P3)/1E3,r=N.getDuration(),T>r-1&&N.Fh("misspg",{t:T.toFixed(2),d:r.toFixed(2),r:C.toFixed(2),bh:p.toFixed(2)})),N.playerState.isPaused()&&N.playerState.isBuffering()&&U3(N.mediaElement)>5&&N.zi(wY(N.playerState,1)));N.HY()}};
this.mediaElement.JP().length===0?this.Si=w?g.Kk.kB(A,100):g.b4(A,100):this.Si=w?g.Kk.kB(A,500):g.b4(A,500)}this.videoData.Bk=y;this.k_&&this.k_.aM();!e&&this.isPlaying()&&Z$n(this);VL5(this.NO,this.yj,this.LC(),this.isBackground())&&Fx(this);this.publish("progresssync",this,e);E&&HF(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.J.M4=function(){this.MP("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.J.BQ=function(){return this.Eg().BQ()};
g.J.Xx=function(){return this.tW?this.tW.Xx():M_(this.ph.schedule,!0)};
g.J.zi=function(e){if(!g.A_(this.playerState,e)){this.logger.debug(function(){return"Setting state "+e.toString()});
var N=new g.ME(e,this.playerState);this.playerState=e;WPP(this);var y=!this.dV.length;this.dV.push(N);var w=this.mediaElement&&this.mediaElement.isSeeking();w=N.oldState.state===8&&!w;g.FD(N,1)&&w&&g.G(this.playerState,8)&&!g.G(this.playerState,64)&&this.tW&&(DO3(this.tW),this.mediaElement&&U3(this.mediaElement)>=5&&DN1(this.NO,this.yj)&&Fx(this));(w=g.Y2(this.ph.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.G(e,1)&&(g.G(e,8)||g.G(e,16))?this.QS.start(w):this.QS.stop();(lp(N,8)<0||
g.FD(N,1024))&&this.X2.stop();!g.FD(N,8)||this.videoData.qg||g.G(N.state,1024)||this.X2.start();g.G(N.state,8)&&lp(N,16)<0&&!g.G(N.state,32)&&!g.G(N.state,2)&&this.playVideo();g.G(N.state,2)&&hY(this.videoData)&&(this.zV(this.getCurrentTime()),this.HY(!0));g.FD(N,2)&&(this.kZ(!0),this.ph.B9()&&this.T("html5_sabr_parse_live_metadata_playback_boundaries")&&L3(this.videoData)&&this.videoData.J&&(w={minst:""+this.videoData.J.gf,cminst:""+(this.videoData.J.Ti()+this.w7()),maxst:""+this.videoData.J.zg,
hts:""+this.videoData.J.Kh,cmaxst:""+(this.videoData.J.ra()+this.w7())},this.Fh("sabrSeekableBoundaries",w)));g.FD(N,128)&&this.wK();this.videoData.J&&this.videoData.isLivePlayback&&!this.xq&&(lp(N,8)<0?KaJ(this.videoData.J):g.FD(N,8)&&this.videoData.J.resume());tf3(this.ZB,N);RMs(this.Eg(),N);if(y&&!this.Ss())try{for(var E=g.c(this.dV),A=E.next();!A.done;A=E.next()){var T=A.value;rj0(this.yb,T);this.publish("statechange",T)}}finally{this.dV.length=0}}};
g.J.Vt=function(){this.R9.tick("qoes")};
g.J.TF=function(){this.ZB.TF()};
g.J.V8=function(e,N,y,w){a:{var E=this.Bc;w=w===void 0?"LICENSE":w;y=y.substring(0,256);var A=dp(N);e==="drm.keyerror"&&this.FT&&this.FT.N.keys.length>1&&E.j<96&&(e="drm.sessionlimitexhausted",A=!1);if(A)if(E.videoData.N&&E.videoData.N.video.isHdr())oeM(E,e);else{if(E.JW.MP(e,N,w,y),pl3(E,{detail:y}))break a}else E.Qi(e,{detail:y});e==="drm.sessionlimitexhausted"&&(E.Fh("retrydrm",{sessionLimitExhausted:1}),E.j++,mJs(E.JW))}};
g.J.Ck9=function(){var e=this,N=g.Y2(this.ph.experiments,"html5_license_constraint_delay"),y=w9();N&&y?(N=new g.e6(function(){e.yq();hv(e)},N),g.Q(this,N),N.start()):(this.yq(),hv(this))};
g.J.pu=function(e){this.publish("heartbeatparams",e)};
g.J.Nx=function(e){this.Fh("keystatuses",uU3(e));var N="auto",y=!1;this.videoData.N&&(N=this.videoData.N.video.quality,y=this.videoData.N.video.isHdr());if(this.T("html5_drm_check_all_key_error_states")){var w=qsM(N,y);w=Mt(e)?ZXH(e,w):e.j.includes(w)}else{a:{N=qsM(N,y);for(w in e.J)if(e.J[w].status==="output-restricted"){var E=e.J[w].type;if(N===""||E==="AUDIO"||N===E){w=!0;break a}}w=!1}w=!w}if(this.T("html5_enable_vp9_fairplay")){if(y)if(e.U){var A;if((A=this.FT)==null?0:zE(A.J))if((y=this.FT)==
null)y=0;else{N=A=void 0;E=g.c(y.N.values());for(var T=E.next();!T.done;T=E.next())T=T.value,A||(A=xK1(T,"SD")),N||(N=xK1(T,"AUDIO"));y.T4({sd:A,audio:N});y=A==="output-restricted"||N==="output-restricted"}else y=!w;if(y){this.Fh("drm",{dshdr:1});oeM(this.Bc);return}}else{this.videoData.yJ||(this.videoData.yJ=!0,this.Fh("drm",{dphdr:1}),this.hT(!0));return}var p;if((p=this.FT)==null?0:zE(p.J))return}else if(p=e.U&&w,y&&!p){oeM(this.Bc);return}w||ZXH(e,"AUDIO")&&ZXH(e,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
e=uU3(e),this.Dm?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.T("html5_report_fatal_drm_restricted_error_killswitch")||this.MP("drm.keyerror",2,void 0,"info."+e)):(this.Dm=!0,this.Qi(new P3("qoe.restart",Object.assign({},{retrydrm:1},e))),Fx(this),mJs(this)))};
g.J.ZXh=function(){if(!this.videoData.qg&&this.mediaElement&&!this.isBackground()){var e="0";this.mediaElement.Rl()>0&&U3(this.mediaElement)>=5&&this.videoData.K&&this.videoData.K.J&&(this.zi(yO(this.playerState,1)),H$H(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),e="1");WPP(this);var N=this.videoData.K;e={restartmsg:e,mfmt:!On(this.videoData),mdrm:!(!(N&&N.videoInfos&&N.videoInfos.length&&N.videoInfos[0].BG)||this.FT),mfmtinfo:!this.videoData.N,prerolls:this.V_()?this.wL.join(","):
"0"};if(this.FT){N=this.FT;if(N.N.size<=0){var y="ns;";N.D||(y+="nr;");N=y+="ql."+N.K.length}else N=uU3(N.N.values().next().value),N=Xe(N);e.drmp=N}var w;Object.assign(e,((w=this.tW)==null?void 0:w.N7())||{});var E;Object.assign(e,((E=this.mediaElement)==null?void 0:E.N7())||{});this.Eg().Qi("qoe.start15s",Xe(e));this.publish("loadsofttimeout")}};
g.J.zV=function(e){this.videoData.lengthSeconds!==e&&(this.videoData.lengthSeconds=e,hv(this))};
g.J.kZ=function(e,N){var y=this;e=e===void 0?!1:e;if(!this.Yg)if(mo("att_s","player_att")||KV("att_s",void 0,"player_att"),this.T("use_rta_for_player"))(function(){var E,A,T,p;return g.f(function(C){switch(C.J){case 1:if(!(E=e)){C.u9(2);break}return g.D(C,g.k_n(),3);case 3:E=!C.N;case 2:if(E)return C.return();g.c5(C,4);A=s9P(y.Eg());if(!A)throw Error();T={};return g.D(C,g.cl0((T.cpn=y.videoData.clientPlaybackNonce,T.encryptedVideoId=y.videoData.videoId||"",T),3E4),6);case 6:p=C.N;if(y.Yg)throw Error();
if(!p.challenge)throw g.uA(Error("Not sending attestation ping; no attestation challenge string")),Error();y.Yg=!0;var r=[p.challenge];p.error?r.push("r1c="+p.error):p.webResponse&&r.push("r1a="+p.webResponse);var Y;((Y=p.adblockReporting)==null?void 0:Y.reportingStatus)!==void 0&&r.push("r6a="+p.adblockReporting.reportingStatus);var M;((M=p.adblockReporting)==null?void 0:M.broadSpectrumDetectionResult)!==void 0&&r.push("r6b="+p.adblockReporting.broadSpectrumDetectionResult);A(r.join("&"));KV("att_f",
void 0,"player_att");g.B5(C,0);break;case 4:g.XH(C),KV("att_e",void 0,"player_att"),g.hn(C)}})})().then(function(){N==null||N()});
else{var w=new g.SG1(this.videoData);if("c1a"in w.rK&&!g.XB.isInitialized()){KV("att_wb",void 0,"player_att");this.qh===2&&Math.random()<.01&&g.uA(Error("Botguard not available after 2 attempts"));if(e)return;if(this.qh<5){g.NA(this.A_);this.qh++;return}}(w=g.o20(w))?(KV("att_f",void 0,"player_att"),Lp0(this.Eg(),w),this.Yg=!0):KV("att_e",void 0,"player_att")}};
g.J.jo=function(e){e=e===void 0?!1:e;if(yG(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.eg()||g.bk(this.videoData)))e=this.getCurrentTime();else if(g.xK(this.videoData)&&this.k_){e=this.k_;var N=this.getCurrentTime();e=(e=UFH(e,N*1E3))?(e.U_()-e.EY())/1E3:0}else e=this.ra(e);return e};
g.J.jH=function(){return g.xK(this.videoData)?this.videoData.Ti():this.Ti()};
g.J.ra=function(e){return this.ZB.ra(e===void 0?!1:e)};
g.J.Ti=function(){return this.ZB.Ti()};
g.J.w7=function(){return this.ZB?this.ZB.w7():0};
g.J.getStreamTimeOffset=function(){return this.ZB?this.ZB.getStreamTimeOffset():0};
g.J.U$=function(){var e=0;this.ph.T("web_player_ss_media_time_offset")&&(e=this.getStreamTimeOffset()===0?this.w7():this.getStreamTimeOffset());return e};
g.J.setPlaybackRate=function(e){var N;this.playbackRate!==e&&BAM(this.NO,(N=this.videoData.K)==null?void 0:N.videoInfos)&&(this.playbackRate=e,Fx(this));this.playbackRate=e;this.mediaElement&&this.mediaElement.setPlaybackRate(e)};
g.J.getPlaybackRate=function(){return this.playbackRate};
g.J.getPlaybackQuality=function(){var e="unknown";if(this.videoData.N&&(e=this.videoData.N.video.quality,e==="auto"&&this.mediaElement)){var N=this.K_();N&&N.videoHeight>0&&(e=u$(N.videoWidth,N.videoHeight))}return e};
g.J.isHdr=function(){return!!(this.videoData.N&&this.videoData.N.video&&this.videoData.N.video.isHdr())};
g.J.Y7=function(){this.Eg().Y7()};
g.J.sendVideoStatsEngageEvent=function(e,N){var y=this.Eg();y.J?(y=qt(y.J,"engage"),y.Kh=e,y.send(N)):N&&N()};
g.J.FW=function(e){return this.Eg().FW(e)};
g.J.isAtLiveHead=function(e,N){N=N===void 0?!1:N;return yG(this.videoData)&&(this.fn||N)?this.ZB.isAtLiveHead(e):!1};
g.J.k7=function(){var e=this.ra(),N=this.getCurrentTime(),y;(y=!yG(this.videoData))||(y=this.ZB,y=!(y.J&&y.J.K));return y||this.eg()||isNaN(e)||isNaN(N)?0:Math.max(0,e-N)};
g.J.yd=function(e){(this.fn=e)||this.X2.stop();this.videoData.J&&(e?this.videoData.J.resume():KaJ(this.videoData.J));if(this.tW){var N=this.videoData.T("html5_disable_preload_for_ssdai_with_preroll")&&this.wq()&&this.videoData.isLivePlayback;e&&!N?this.tW.resume():Ps(this,!0)}g.G(this.playerState,2)||e?g.G(this.playerState,512)&&e&&this.zi(wY(this.playerState,512)):this.zi(yO(this.playerState,512));N=this.Eg();N.qoe&&(N=N.qoe,g.IU(N,g.BG(N.provider),"stream",[e?"A":"I"]))};
g.J.ST=function(e){e={n:e.name,m:e.message};this.Eg().Qi("player.exception",Xe(e))};
g.J.pE=N3(25);g.J.yk=N3(52);g.J.bI=function(e){this.Eg().bI(e)};
g.J.LG=function(e){this.Eg().LG(e)};
g.J.Bm=function(e){this.Eg().Bm(e)};
g.J.t1=N3(30);g.J.DK=N3(35);g.J.HS=function(e){this.Eg().HS(e)};
g.J.Gp=function(){this.Fh("hidden",{},!0)};
g.J.DR=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.J.Nc=function(){return this.tW?this.tW.Nc():!0};
g.J.setLoop=function(e){this.loop=e;this.mediaElement&&!g.I_(this.ph)&&this.mediaElement.setLoop(e);this.tW&&this.T("html5_loop_skip_set_end_of_stream")&&(e?this.tW.policy.a9=!0:gKM(this.tW))};
g.J.ZS=function(){return this.mediaElement&&!g.I_(this.ph)?this.mediaElement.ZS():this.loop};
g.J.Ny=function(e){this.Fh("timestamp",{o:e.toString()});this.ZB.Ny(e)};
g.J.lB=function(e){this.R9.tick(e)};
g.J.oe=function(e){return this.R9.oe(e)};
g.J.d6=function(e){this.R9.d6(e)};
g.J.Fh=function(e,N,y){y=y===void 0?!1:y;this.Eg().Fh(e,N,y)};
g.J.kN=function(e,N,y){y=y===void 0?!1:y;this.Eg().Fh(e,N,y)};
g.J.Qi=function(e){this.Eg().Qi(e.errorCode,Xe(e.details));e=e.errorCode;if(this.videoData.isLivePlayback&&(e==="qoe.longrebuffer"||e==="qoe.slowseek")||e==="qoe.restart"){e=this.tW?Yh3(this.tW.videoTrack):{};var N,y;this.Fh("lasoe",Object.assign(this.tW?Yh3(this.tW.audioTrack):{},(N=this.TZ)==null?void 0:(y=N.J)==null?void 0:y.Iz()));var w,E;this.Fh("lvsoe",Object.assign(e,(w=this.TZ)==null?void 0:(E=w.N)==null?void 0:E.Iz()))}};
g.J.rJ=function(e,N,y){this.Eg().rJ(e,N,y)};
g.J.T5=function(e,N,y,w,E,A,T,p){var C;if((C=this.videoData.J)==null?0:C.isLive){var r=N.playerType===2?N:e,Y=e.videoData.videoId,M=N.videoData.videoId;if(Y&&M){C=this.Eg();if(C.qoe){var l=C.qoe,F=e.cpn,S=N.cpn,k=r.videoData.FZ,X=l.provider.videoData.clientPlaybackNonce,d=l.provider.videoData.videoId,v=S!==X&&M!==d;X=F!==X&&Y!==d;l.reportStats();l.adCpn&&l.adCpn!==F||(l.adCpn=X?F:"",l.Ng=X?Y:"",l.adFormat=X?k:void 0,gg(l,2,A?4:E?2:0,S,M,w),l.reportStats(),l.adCpn=v?S:"",l.Ng=v?M:"",l.adFormat=v?k:
void 0,gg(l,2,A?5:E?3:1,F,Y,y),l.reportStats())}y=e.cpn;if(C.K.has(y)){if(E=C.K.get(y),jf(E,!0).send(),x4(E),y!==C.provider.videoData.clientPlaybackNonce){ZHs(E);var V;(V=C.J)==null||VD5(V);C.K.delete(y)}}else C.b6=C.provider.videoData.clientPlaybackNonce,C.b6&&C.J&&(C.K.set(C.b6,C.J),jf(C.J).send(),x4(C.J));V=N.cpn;r=r.videoData;w-=this.U$();if(C.K.has(V)){w=C.K.get(V);var Z=w.K&&isNaN(w.L)?Z3(w):NaN;w=qBn(w,!1);isNaN(Z)||(w.G=Z);w.send()}else w=aj5(C,C.provider,r,w),C.K.set(V,w),xoF(w,new g.ME(yO(new g.a8,
8),new g.a8)),gmJ(w),(Z=C.J)==null||x4(Z);C.b6=V;this.T("html5_unify_csi_server_stitched_transition_logging")?uhH(e.cpn,N.cpn,this.videoData.clientPlaybackNonce,N.videoData,T,void 0,p):(Z=this.videoData.clientPlaybackNonce,C=N.videoData,e=(e.cpn===Z?"video":"ad")+"_to_"+(N.cpn===Z?"video":"ad"),Z={},C.Z&&(Z.cttAuthInfo={token:C.Z,videoId:C.videoId}),T&&(Z.startTime=T),QQ(e,Z),g.nV({targetVideoId:C.videoId,targetCpn:N.cpn,isSsdai:!0},e),jZ("pbs",p!=null?p:(0,g.iC)(),e))}}};
g.J.Yj=function(){var e=this.nX,N=e.fQ;e.fQ=[];return N};
g.J.qH=function(e){this.videoData.JD=!0;this.Qi(new P3("sabr.fallback",e));this.hT(!0)};
g.J.Oy=function(e,N){this.videoData.fA=!0;if(N===void 0||N)this.Qi(new P3("qoe.restart",e)),this.hT(!0);this.videoData.Au()&&this.T("html5_reload_caption_on_ssdai_fallback")&&this.nX.oy()};
g.J.L4=function(e){this.Fh("sdai",{aftimeout:e});this.Qi(new P3("ad.fetchtimeout",{timeout:e}))};
g.J.TD=function(e,N){this.Fh("timelineerror",e);e=new P3("dai.timelineerror",e);N?this.MP("dai.timelineerror",1,"RETRYABLE_ERROR",Xe(e.details)):this.Qi(e)};
g.J.wS=function(){return g.BG(this.Eg().provider)};
g.J.getPlayerSize=function(){return this.m7.getPlayerSize()};
g.J.aV=function(){return this.m7.aV()};
g.J.s4=function(){return this.R9};
g.J.Am=function(){return this.nX.Am()};
g.J.getVolume=function(){return this.nX.getVolume()};
g.J.Xi=function(){return this.nX.Xi()};
g.J.isMuted=function(){return this.nX.isMuted()};
g.J.yG=function(){return this.nX.yG()};
g.J.Ou=function(){this.xq=!0};
g.J.T=function(e){return this.ph.T(e)};
g.J.Bu=function(e,N,y,w,E){this.Fh("xvt",{m:e,g:N?1:0,tt:y?1:0,np:w?1:0,c:E})};
g.J.QK=function(){var e;(e=this.tW)==null||e.resume()};
g.J.wq=function(){return g.Gw(this.wL,"ad")};
g.J.Ll=function(){var e=this.getCurrentTime(),N=e-this.w7();var y=this.mediaElement?JX(this.mediaElement.O4()):0;y=Math.floor(Math.max(y-N,0))+100;var w;if(!this.T("html5_ssdai_disable_seek_to_skip")&&((w=this.tW)==null?0:w.QM(N,this.ra())))return this.Fh("sdai",{skipad:1,ct:N.toFixed(3),adj:0}),!0;var E;return((E=this.tW)==null?0:E.Ll(N,y))?(this.Fh("sdai",{skipad:1,ct:N.toFixed(3),adj:y.toFixed(3)}),L3(this.videoData)&&this.tW.seek(N+y,{seekSource:89,BY:"videoplayer_skipServerStitchedAd"}),OWM(this.ZB,
e),!0):!1};
g.J.B9=function(){return this.ph.B9()};
g.J.rf=function(){if(this.T("html5_generate_content_po_token"))return this.videoData.Ih||"";this.nX.xt();return this.ph.NG||""};
g.J.ND=function(){if(this.videoData.videoId)return this.videoData.qJ};
g.J.vE=function(){return this.videoData.videoId};
g.J.HZ=function(){return this.nX.lz};
g.J.l$=function(){return this.So};
g.J.au=function(){return this.nX.au()};
g.J.j0=function(e,N){this.ZB.j0(e,N)};
g.J.WC=function(){this.ZB.WC()};
g.J.Du=function(e,N){var y=this.T("html5_generate_content_po_token")?this.videoData:void 0;this.nX.Du(e,N,y)};
g.J.EJ=function(e,N){var y;(y=this.tW)==null||y.EJ(e,N)};
g.J.Xq=function(){var e=this.E$();return!!e&&e.Xq()};
g.J.bP=function(){return this.k_};
g.J.Wm=function(e,N){this.Eg().Wm(e,N)};
g.J.NZ=function(){return this.Eg().NZ()};
g.J.kL=function(){return this.videoData.JX};
g.J.xB=function(){return this.nX.xB()};
g.J.uS=function(){return this.nX.uS(this)};
g.J.p4=function(){this.RP=!0};
g.J.n3=function(){return this.Qa};
g.J.GR=function(e){var N;(N=this.tW)==null||N.GR(e)};g.b(Go5,jX);g.b(UJ3,jX);g.J=UJ3.prototype;g.J.seekToChapterWithAnimation=function(e){var N=this;if(g.T9(this.api)&&!(e<0)){var y=this.api.getVideoData(),w=y.ll;if(w&&e<w.length){w=g.c(w);for(var E=w.next();!E.done;E=w.next())if(E=E.value,E.index===e){LP5(this,E.startTime,E.title);return}}this.T("web_key_moments_markers")&&(y=y.nM)&&e<y.length&&y.forEach(function(A,T){T===e&&LP5(N,A.timeRangeStartMillis,A.title)})}};
g.J.seekToTimeWithAnimation=function(e,N){g.T9(this.api)&&LP5(this,e,N)};
g.J.setMacroMarkers=function(e,N){N={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:N}}}}}};e=e.getVideoData();e.getWatchNextResponse();e&&e.getWatchNextResponse()==null&&(qO(e,{raw_watch_next_response:N}),e.publish("dataupdated"))};
g.J.changeMarkerVisibility=function(e,N,y){var w=this.api.getVideoData();if(w){var E=!1;if(e)for(e=g.c(N),N=e.next();!N.done;N=e.next()){N=N.value;var A=w.Dl;if(A&&!A.includes(N))switch(y){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":aN5(N,w)||(E=!0,A=void 0,(A=w.Dl)==null||A.push(N));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":A.length===0&&(E=!0,A=void 0,(A=w.Dl)==null||A.push(N));break;default:E=!0,A=void 0,(A=w.Dl)==null||A.push(N)}}else for(y=
g.c(N),e=y.next();!e.done;e=y.next())e=e.value,w.visibleOnLoadKeys.includes(e)||g.Lq(w.Dl,e)&&(E=!0);E&&this.api.publish("updatemarkervisibility")}};
g.J.isSameMarkerTypeVisible=function(e){var N=this.api.getVideoData();return N?aN5(e,N):!1};g.b(IY,jX);
IY.prototype.updateMetadata=function(){var e=this,N=this.api.getVideoData();if(N!=null&&N.WG()){var y=this.api.X(),w=[],E="";if(!y.Kh){var A=y9M(this);g.ZY(y)&&A?(w=wo_(A.thumbnailDetails),A.album&&(E=rQ(A.album))):w=[{src:N.LN("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}var T;((T=this.api.getVideoData())==null?0:T.U)&&EPP(this);eNM(this);NHP(this);navigator.mediaSession.metadata=new MediaMetadata({title:N.title,artist:N.author,artwork:w,album:E});y=N=null;g.cb(this.api)&&(N=function(){e.api.nextVideo()},
y=function(){e.api.previousVideo()});
vs("nexttrack",N);vs("previoustrack",y)}};
IY.prototype.fh=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var e=g.c("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),N=e.next();!N.done;N=e.next())vs(N.value,null);var y;((y=this.api.getVideoData())==null?0:y.U)&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});jX.prototype.fh.call(this)};g.b(zo,jX);zo.prototype.j=function(e){return e.compositeEmbargo!==void 0};
zo.prototype.fh=function(){jX.prototype.fh.call(this);this.N.clear()};g.b(CJn,jX);g.J=CJn.prototype;g.J.queueOfflineAction=function(e,N,y,w){var E=this,A,T;return g.f(function(p){return p.J==1?(A=xP(E.api.jR()))?g.D(p,A.cD([e],N,y,w),3):p.u9(2):p.J!=2&&(T=p.N,T.length)?p.return(T[0]):p.return(Promise.reject())})};
g.J.updateDownloadState=function(e,N){var y=xP(this.api.jR());return y?y.updateDownloadState(e,N):Promise.reject()};
g.J.pauseVideoDownload=function(e){var N=xP(this.api.jR());N&&N.h9(e)};
g.J.resumeVideoDownload=function(e){var N=this,y;return g.f(function(w){return(y=xP(N.api.jR()))?w.return(y.gO(e)):w.return(Promise.reject())})};
g.J.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.J.refreshAllStaleEntities=function(e){e===void 0&&(e=14400);var N=xP(this.api.jR());return N?N.refreshAllStaleEntities(e):Promise.reject()};
g.J.setUpPositionSyncInterval=function(e){var N=xP(this.api.jR());N&&N.setUpPositionSyncInterval(e)};g.b(ir,jX);ir.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
ir.prototype.getAvailableQualityData=function(){var e=this.api.getVideoData();if(!e)return[];var N=[],y,w,E=(y=e.getPlayerResponse())==null?void 0:(w=y.playabilityStatus)==null?void 0:w.paygatedQualitiesMetadata;w=(E==null?void 0:E.qualityDetails)||[];y=new Map;y=g.W5(w)&&!Array.isArray(w)?new Map(Object.entries(w)):new Map(w.map(function(T){return[T.key,T.value]}));
if(w=E==null?void 0:E.restrictedAdaptiveFormats){E=[];w=g.c(w);for(var A=w.next();!A.done;A=w.next())A=A.value,A=ei(A.mimeType,A.quality,A.itag.toString(),A.width.toString(),A.height.toString(),A.qualityLabel),E.push(A);e=g.sn(e);Ji(E);w=[];E=g.c(E);for(A=E.next();!A.done;A=E.next())A=A.value,Ef(e,A,this.api.X().L)===!0&&w.push(A);N=N.concat(r9F(w,!1,y))}e=this.api.ME();N=N.concat(r9F(e,!0,y));y=[];if(this.api.T("web_player_enable_premium_hbr_in_h5_api"))return N=YN5(N),$l0(N),N;e={};N=g.c(N);for(E=
N.next();!E.done;E=N.next())E=E.value,w=E.quality,e[w]||(E.formatId=void 0,y.push(E),e[w]=!0);return y};var be={},ZmF=(be["internal-error"]=-1,be["non-recoverable-error"]=-2,be["api-disabled-by-application"]=-3,be["invalid-argument"]=-4,be["token-provider-invalid"]=-5,be);g.b(DN,jX);DN.prototype.BK=function(e){var N=this;if(lv9())if(!this.N&&this.J){oP0(this,e);try{this.J.then(function(){SNE(N,e)},function(y){gk(y,"player_update");
N.handleError(y,e)})}catch(y){gk(y,"player_update_catch"),this.handleError(y,e)}}else this.N?SNE(this,e):this.api.Fh("pf",{m:this.N?1:0,
p:this.J?1:0})};
DN.prototype.handleError=function(e,N){g.uA(e);if(this.api.T("html5_enable_d6de4_cold_start_and_error")){var y=0;e.mediaIntegrityErrorName?y||(y=ZmF[e.mediaIntegrityErrorName]):e.code&&(y=e.code());N.qJ={RZh:{code:y}}}};g.b(V_,g.W);V_.prototype.GZ=function(e){e=e?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":e,title:e});this.api.xp()};
V_.prototype.onClick=function(){this.api.togglePictureInPicture()};g.b(f$,jX);f$.prototype.createButton=function(){var e=this;this.button=new V_(this.api);g.Q(this,this.button);this.api.Bv(this.button);this.events.Y(this.api,"videodatachange",function(){bZ9(e)});
bZ9(this)};
f$.prototype.setDocumentPictureInPicture=function(e){this.api.UP().bX(e);e=this.api.Wp();var N=PbM(this.api.jR());N&&(e?N.load():N.unload());this.api.publish("documentpictureinpicturechange")};g.b(hNM,jX);g.b(qJ,g.W);g.J=qJ.prototype;g.J.VW=function(){};
g.J.UA=function(){};
g.J.Iy=function(){return!0};
g.J.fWG=function(){if(this.expanded){this.VB.show();var e=this.K.element.scrollWidth}else e=this.K.element.scrollWidth,this.VB.hide();this.FZ=this.Et+e;g.Y1(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?this.Et:this.FZ)+"px";this.Ut.start()};
g.J.EM=function(){this.badge.element.style.width=(this.expanded?this.FZ:this.Et)+"px";this.Dl.start()};
g.J.tv=function(){this.j&&this.C.logVisibility(this.badge.element,this.Iy());this.Ng&&this.C.logVisibility(this.dismissButton.element,this.Iy()&&this.xZ())};
g.J.Up=function(e){this.qg=e;ur(this);tv(this);this.xK()};
g.J.eUs=function(){g.Y1(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.J.xZ=function(){return this.Kh||this.qg||!this.U};
g.J.xK=function(){this.Iy()?this.D.show():this.D.hide();this.tv()};
g.J.Es=function(){this.enabled=!1;this.xK()};
g.J.vJ=function(e){e?this.Ng&&this.C.logClick(this.dismissButton.element):this.j&&this.C.logClick(this.badge.element)};
g.J.WyB=function(){this.xK()};
g.J.DUW=function(e){this.SR=e===1;this.xK();g.Y1(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.J.yzZ=function(){g.Y1(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.C.isFullscreen());this.xK()};g.b(ZN,g.Mu);ZN.prototype.b4=function(){this.publish("size-change")};
ZN.prototype.focus=function(){this.content.focus()};
ZN.prototype.NW=function(){this.publish("back")};g.b(g.x7,ZN);g.J=g.x7.prototype;g.J.Gi=function(e,N){if(N===void 0?0:N)this.items.push(e),this.menuItems.element.appendChild(e.element);else{N=g.T7(this.items,e,kf9);if(N>=0)return;N=~N;g.ES(this.items,N,0,e);yp(this.menuItems.element,e.element,N)}e.subscribe("size-change",this.X4,this);this.menuItems.publish("size-change")};
g.J.MS=function(e){e.unsubscribe("size-change",this.X4,this);this.Ss()||(g.Lq(this.items,e),this.menuItems.element.removeChild(e.element),this.menuItems.publish("size-change"))};
g.J.X4=function(){this.menuItems.publish("size-change")};
g.J.focus=function(){for(var e=0,N=0;N<this.items.length;N++){var y=this.items[N].element;if(y.getAttribute("role")==="menuitemradio"){if(y.getAttribute("aria-checked")==="true"){e=N;break}}else break}this.items[e].focus()};
g.J.P2=function(){return this.items.length};g.b(g.n$,g.Dq);g.J=g.n$.prototype;g.J.show=function(){g.Dq.prototype.show.call(this);this.FR()};
g.J.hide=function(){g.Dq.prototype.hide.call(this);this.J.length>1&&g.mP(this)};
g.J.FR=function(){PJ5(this);this.Og&&(BHH(this),g.k0(this.element,this.size))};
g.J.z4=function(){var e=this.J.pop();Xos(this,e,this.J[this.J.length-1],!0)};
g.J.Uq=function(e){if(!e.defaultPrevented)switch(e.keyCode){case 27:this.rT();e.preventDefault();break;case 37:this.J.length>1&&this.z4();e.preventDefault();break;case 39:e.preventDefault()}};
g.J.focus=function(){this.J.length&&this.J[this.J.length-1].focus()};
g.J.fh=function(){g.Dq.prototype.fh.call(this);this.Z&&this.Z.dispose();this.G&&this.G.dispose()};g.b(Hs,g.n$);Hs.prototype.open=function(e,N){this.initialize(e.items)&&this.WY(N,!!N)};
Hs.prototype.initialize=function(e){g.jk(this.z9);if(e===void 0||e.length===0)return!1;var N=e.length;e=g.c(e);for(var y=e.next();!y.done;y=e.next())this.Gi(y.value,N--);return!0};
Hs.prototype.Gi=function(e,N){e.menuNavigationItemRenderer?vP0(this,e.menuNavigationItemRenderer,N):e.menuServiceItemRenderer&&zNs(this,e.menuServiceItemRenderer,N)};g.b(K$,qJ);g.J=K$.prototype;g.J.VW=function(e){e.target!==this.dismissButton.element&&e.target!==this.overflowButton.element&&(this.vJ(),this.onClickCommand&&this.C.Mg("innertubeCommand",this.onClickCommand))};
g.J.UA=function(){this.enabled=!1;this.D.hide()};
g.J.Iy=function(){return!!this.J&&this.enabled};
g.J.onVideoDataChange=function(e,N){this.pg(N);if(this.J){this.Nt();a:if(!this.isCounterfactual){var y,w,E;this.banner.update({title:(y=this.J)==null?void 0:y.title,subtitle:(w=this.J)==null?void 0:w.subtitle,metadata:(E=this.J)==null?void 0:E.metadataText});var A;this.onClickCommand=g.m((A=this.J)==null?void 0:A.onTap,ZL);var T;if(e=g.m((T=this.J)==null?void 0:T.onOverflow,ZL))this.G=g.m(e,uFw);var p;if((p=this.J)==null?0:p.thumbnailImage){var C,r;T=((C=this.J)==null?void 0:(r=C.thumbnailImage)==
null?void 0:r.sources)||[];if(T.length===0)break a;this.thumbnailImage.update({url:T[0].url})}else{var Y;if((Y=this.J)==null?0:Y.thumbnailIconName){var M;this.thumbnailIcon.update({icon:(M=this.J)==null?void 0:M.thumbnailIconName})}}var l;this.shouldShowOverflowButton=!((l=this.J)==null||!l.shouldShowOverflowButton);var F;this.shouldHideDismissButton=!((F=this.J)==null||!F.shouldHideDismissButton)}var S;this.banner.element.setAttribute("aria-label",((S=this.J)==null?void 0:S.a11yLabel)||"");var k;
this.Bk=(k=this.J)==null?void 0:k.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;DlM(this)}};
g.J.uZZ=function(){this.isVisible=!0;DlM(this)};
g.J.iXP=function(){this.isVisible=!1;DlM(this)};
g.J.tv=function(){qJ.prototype.tv.call(this);this.N&&this.C.logVisibility(this.banner.element,this.isVisible)};
g.J.vJ=function(){qJ.prototype.vJ.call(this,!1);this.N&&this.C.logClick(this.banner.element)};
g.J.WO=function(e){this.Z||(this.Z=new Hs(this.C),g.Q(this,this.Z));var N,y;if((N=this.G)==null?0:(y=N.menu)==null?0:y.menuRenderer)this.Z.open(this.G.menu.menuRenderer,e.target),e.preventDefault()};
g.J.pg=function(){};
g.J.Nt=function(){};
g.J.fh=function(){this.C.MK("suggested_action_view_model");qJ.prototype.fh.call(this)};g.b(Ws,K$);
Ws.prototype.pg=function(e){var N,y,w;this.productUpsellSuggestedActionViewModel=g.m((N=e.getWatchNextResponse())==null?void 0:(y=N.playerOverlays)==null?void 0:(w=y.playerOverlayRenderer)==null?void 0:w.suggestedActionViewModel,aZ_);var E;if((E=this.productUpsellSuggestedActionViewModel)==null?0:E.content){var A;this.J=g.m((A=this.productUpsellSuggestedActionViewModel)==null?void 0:A.content,V00)}var T,p;if(this.N=!!((T=this.productUpsellSuggestedActionViewModel)==null?0:(p=T.loggingDirectives)==null?
0:p.trackingParams)){var C,r;this.C.setTrackingParams(this.banner.element,((C=this.productUpsellSuggestedActionViewModel)==null?void 0:(r=C.loggingDirectives)==null?void 0:r.trackingParams)||null)}var Y;this.isCounterfactual=!((Y=this.productUpsellSuggestedActionViewModel)==null||!Y.isCounterfactualServing)};
Ws.prototype.Nt=function(){var e=[],N,y=g.c(((N=this.productUpsellSuggestedActionViewModel)==null?void 0:N.ranges)||[]);for(N=y.next();!N.done;N=y.next()){var w=N.value;w&&(N=Number(w.startTimeMilliseconds),w=Number(w.endTimeMilliseconds),isNaN(N)||isNaN(w)||e.push(new g.wF(N,w,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.C.wx(e)};g.b(gPE,jX);g.b(Od,jX);Od.prototype.onVideoDataChange=function(e,N){var y=this;if(!xI(N)&&(e==="newdata"&&fvn(this),this.N&&e==="dataloaded")){var w;A$(UI(this.api.X(),(w=this.api.getVideoData())==null?void 0:g.qK(w)),function(E){var A=xl5(E);A&&(A=tB_(y,y.J||A))&&y.api.setAudioTrack(A,!0);y.K&&(y.K=!1,nPM(y,E))})}};
Od.prototype.WI=function(){var e=this;if(g.I_(this.api.X())){var N,y=g.GX(this.api.X(),(N=this.api.getVideoData())==null?void 0:g.qK(N));return A$(Nc(y),function(w){var E=z9();ih(E,w);return e.api.WI(E)})}return Nc(this.api.WI())};g.b(g.Go,g.uh);g.J=g.Go.prototype;g.J.open=function(){g.Q_(this.x_,this.N)};
g.J.BI=function(e){Q31(this);var N=this.options[e];N&&(N.element.setAttribute("aria-checked","true"),this.Ja(this.CE(e)),this.K=e)};
g.J.Pc=function(e){g.jk(this.N);for(var N={},y=!1,w=0;w<e.length;w++){var E=e[w],A=this.options[E],T=E===this.K;T&&(y=!0);A&&A.priority===-w?(g.tu(this.options[E],this.CE(E,!0)),delete this.options[E]):A=this.Wv(E,-w,T);N[E]=A;this.N.Gi(A,!0)}y||(this.K=null);e=g.c(Object.keys(this.options));for(y=e.next();!y.done;y=e.next())this.options[y.value].dispose();this.options=N};
g.J.Wv=function(e,N,y,w){var E=this;y={S:"div",dP:["ytp-menuitem",w?"ytp-menuitem-with-footer":""],V:{tabindex:"0",role:"menuitemradio","aria-checked":y?"true":"false"},W:[{S:"div",dP:["ytp-menuitem-label"],b9:"{{label}}"}]};w&&(w={S:"div",B:"ytp-menuitem-footer",W:[w]},y.W?y.W.push(w):y.W=[w]);N=new g.uh(y,N,this.CE(e,!0));N.listen("click",function(){E.HR(e)});
return N};
g.J.enable=function(e){this.U?e||(this.U=!1,this.TA(!1)):e&&(this.U=!0,this.TA(!0))};
g.J.TA=function(e){e?this.x_.Gi(this):this.x_.MS(this)};
g.J.dQ=function(e){this.publish("select",e)};
g.J.HR=function(e){this.dQ(e)};
g.J.CE=function(e){return e.toString()};
g.J.vO=function(e){e.defaultPrevented||e.keyCode!==39||(this.open(),e.preventDefault())};
g.J.fh=function(){this.U&&this.x_.MS(this);g.uh.prototype.fh.call(this);for(var e=g.c(Object.keys(this.options)),N=e.next();!N.done;N=e.next())this.options[N.value].dispose()};g.b(ml3,g.Go);g.J=ml3.prototype;g.J.GZ=function(){var e=this.Rw("Off");this.C.getPresentingPlayerType()!==2?(HZH(this),this.BI(this.Z),this.J&&(this.Z===e?this.J="":this.setSleepTimerTimeLeft(this.J)),this.G&&this.setVideoTimeLeft(this.G),this.enable(!0)):(this.Pc([]),this.enable(!1))};
g.J.dQ=function(e){Km1(this,e);this.x_.z4()};
g.J.Rw=function(e){switch(e){case "Off":return"Off";case "End of video":return"End of video";case "End of playlist":return"End of playlist";default:return(e.toString()+" Minutes").toLowerCase()}};
g.J.onVideoDataChange=function(e){e==="dataloaded"&&HZH(this)};
g.J.XGs=function(e){this.C.logVisibility(this.element,e)};
g.J.onClick=function(){this.C.logClick(this.element)};
g.J.resetSleepTimerMenuSettings=function(){Km1(this,this.Rw("Off"))};
g.J.setSleepTimerTimeLeft=function(e){this.J=e;this.Ja(e)};
g.J.setVideoTimeLeft=function(e){this.G=e;this.j.Ja(e)};g.b(Ud,jX);Ud.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
Ud.prototype.setSleepTimerTimeLeft=function(e){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(e)};
Ud.prototype.setVideoTimeLeft=function(e){this.menuItem&&this.menuItem.setVideoTimeLeft(e)};g.b(WmF,jX);g.b(g.sd,g.pT);g.J=g.sd.prototype;g.J.Y=function(e,N){this.j.Y(this.U,e,N,void 0,!this.J)};
g.J.cancel=function(){this.K&&(this.K=!1,this.publish("dragend",0,0,null));this.N&&(this.N=!1,this.publish("hoverend",0,0,null),aY(this),L$(this))};
g.J.IL=function(e){aY(this);this.Y(eB("move"),this.Bb);this.Y(eB("out"),this.Y3);this.Y("touchstart",this.ob);this.J&&this.Y(eB("down"),this.G_);var N=e.target;e=new g.ri(e.pageX,e.pageY);this.N=!0;this.publish("hoverstart",e.x,e.y,N);this.publish("hovermove",e.x,e.y,N)};
g.J.Bb=function(e){var N=e.target;e=new g.ri(e.pageX,e.pageY);if(this.L){var y=this.L;this.L=null;if(y.relatedTarget===N&&$Y(new g.ri(y.pageX,y.pageY),e))return}this.publish("hovermove",e.x,e.y,N)};
g.J.Y3=function(e){var N=new g.ri(e.pageX,e.pageY),y=e.relatedTarget;try{if(y&&g.Ex(this.target,y)){this.L=e;this.publish("hovermove",N.x,N.y,y);return}}catch(w){}aY(this);L$(this);this.N=!1;this.publish("hoverend",N.x,N.y,y)};
g.J.CtB=function(e){this.IL(e);this.G_(e)};
g.J.G_=function(e){if(typeof e.button!=="number"||e.button===0){aY(this);this.j.Y(Nl(e.target),eB("move"),this.RyW);this.j.Y(Nl(e.target),eB("up"),this.ge);var N=e.target;if(g.RB)this.Y("dragstart",this.SC);else if(e.preventDefault(),(g.Hg||Y0)&&N)a:{for(var y=N;y;){if(TPM(y)||y.getAttribute("tabindex")==="-1"){y.focus();break a}y=y.parentElement}Nl(N).activeElement.blur()}this.K=!0;e=new g.ri(e.pageX,e.pageY);this.publish("dragstart",e.x,e.y,N);this.publish("dragmove",e.x,e.y,N)}};
g.J.SC=function(e){e.preventDefault()};
g.J.RyW=function(e){var N=e.target;N===Nl(e.target)&&(N=null);e=new g.ri(e.pageX,e.pageY);this.publish("hovermove",e.x,e.y,N);this.publish("dragmove",e.x,e.y,N)};
g.J.ge=function(e){aY(this);this.K=!1;var N=vE(e),y=e.target;e=new g.ri(e.pageX,e.pageY);N&&g.Ex(this.target,N)?(this.Y(eB("move"),this.Bb),this.Y(eB("out"),this.Y3),this.Y(eB("down"),this.G_),this.Y("touchstart",this.ob),this.publish("dragend",e.x,e.y,y)):(L$(this),this.N=!1,this.publish("dragend",e.x,e.y,y),this.publish("hoverend",e.x,e.y,y))};
g.J.ob=function(e){var N=e.changedTouches[0];N&&(aY(this),this.D||(this.Y("touchmove",this.ZNs),this.Y("touchend",this.nL),this.Y("touchcancel",this.nL),this.Z=N.identifier,e=e.target,this.N||(this.N=!0,this.publish("hoverstart",N.pageX,N.pageY,e)),this.publish("hovermove",N.pageX,N.pageY,e),this.J&&(this.K=!0,this.publish("dragstart",N.pageX,N.pageY,e),this.publish("dragmove",N.pageX,N.pageY,e))))};
g.J.ZNs=function(e){var N=OZ0(this,e);N&&(this.J&&e.preventDefault(),e=e.target,this.publish("hovermove",N.pageX,N.pageY,e),this.J&&this.publish("dragmove",N.pageX,N.pageY,e))};
g.J.nL=function(e){var N=OZ0(this,e);if(N){aY(this);L$(this);this.N=!1;var y=e.target;this.J&&(this.G||e.preventDefault(),this.K=!1,this.publish("dragend",N.pageX,N.pageY,y));this.publish("hoverend",N.pageX,N.pageY,y)}};
g.J.fh=function(){this.J&&(g.RB&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");aY(this);g.pT.prototype.fh.call(this)};
var RNs=!1;g.b(GfM,g.W);GfM.prototype.SY=function(){g.$0(this.element,"display","none");this.C.logVisibility(this.J,!1)};g.b(wH,jX);wH.prototype.Kh=function(e,N){this.Ss()||(this.U=[e,N],this.J.subscribe("dragmove",this.Z,this),this.J.subscribe("dragend",this.L,this),this.K||g.NA(this.delay))};
wH.prototype.i9=function(){if(this.j){this.K=!0;this.l9=this.api.getPlaybackRate();this.Rq=this.api.getPlayerStateObject().isPaused();var e=this.speedmasterUserEdu;g.$0(e.element,"display","");e.C.logVisibility(e.J,!0);this.api.setPlaybackRate(this.aq);this.api.hideControls();this.api.playVideo();this.G&&(this.G.QG=!0);this.Ng&&(this.Ng.Pz=!0)}};
wH.prototype.Z=function(e,N){if(!this.K){e=[e,N];var y=this.U;y&&e&&y.length===2&&e.length===2?(N=Math.abs(y[0]-e[0]),y=Math.abs(y[1]-e[1]),N=Math.sqrt(N*N+y*y)):N=-1;N<this.qg?this.U=e:EN(this)}};
wH.prototype.L=function(){EN(this)};g.b(Lm5,jX);Lm5.prototype.onVideoDataChange=function(e){e==="newdata"&&this.api.jR().createSubtitlesModuleIfNeeded()};g.b(A9,g.gs);A9.prototype.preventDefault=function(){g.gs.prototype.preventDefault.call(this);this.J&&this.J.preventDefault()};
A9.prototype.stopPropagation=function(){g.gs.prototype.stopPropagation.call(this);this.J&&this.J.stopPropagation()};g.b(g.Tf,R8);g.J=g.Tf.prototype;g.J.pk=function(){return!0};
g.J.isView=function(){return!1};
g.J.eb=function(){return!1};
g.J.ut=function(){return this.J};
g.J.cI=function(){return this.J.src};
g.J.bC=function(e){var N=this.getPlaybackRate();this.J.src=e;this.setPlaybackRate(N)};
g.J.Wu=function(){this.J.removeAttribute("src")};
g.J.getPlaybackRate=function(){try{return this.J.playbackRate>=0?this.J.playbackRate:1}catch(e){return 1}};
g.J.setPlaybackRate=function(e){this.getPlaybackRate()!==e&&(this.J.playbackRate=e);return e};
g.J.ZS=function(){return this.J.loop};
g.J.setLoop=function(e){this.J.loop=e};
g.J.canPlayType=function(e,N){return this.J.canPlayType(e,N)};
g.J.isPaused=function(){return this.J.paused};
g.J.isSeeking=function(){return this.J.seeking};
g.J.isEnded=function(){return this.J.ended};
g.J.sV=function(){return this.J.muted};
g.J.Zs=function(e){VI();this.J.muted=e};
g.J.JP=function(){return this.J.played||yc([],[])};
g.J.O4=function(){try{var e=this.J.buffered}catch(N){}return e||yc([],[])};
g.J.Gz=function(){return this.J.seekable||yc([],[])};
g.J.dA=function(){var e=this.J;return e.getStartDate?e.getStartDate():null};
g.J.getCurrentTime=function(){return this.J.currentTime};
g.J.setCurrentTime=function(e){this.J.currentTime=e};
g.J.getDuration=function(){return this.J.duration};
g.J.load=function(){var e=this.J.playbackRate;try{this.J.load()}catch(N){}this.J.playbackRate=e};
g.J.pause=function(){this.J.pause()};
g.J.play=function(){var e=this.J.play();if(!e||!e.then)return null;e.then(void 0,function(){});
return e};
g.J.Rl=function(){return this.J.readyState};
g.J.pM=function(){return this.J.networkState};
g.J.pw=function(){return this.J.error?this.J.error.code:null};
g.J.Cq=function(){return this.J.error?this.J.error.message:""};
g.J.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.J instanceof window.HTMLVideoElement&&this.J.getVideoPlaybackQuality)return this.J.getVideoPlaybackQuality();if(this.J){var e=this.J,N=e.webkitDroppedFrameCount;if(e=e.webkitDecodedFrameCount)return{droppedVideoFrames:N||0,totalVideoFrames:e}}return{}};
g.J.ox=function(){return!!this.J.webkitCurrentPlaybackTargetIsWireless};
g.J.aS=function(){return!!this.J.webkitShowPlaybackTargetPicker()};
g.J.togglePictureInPicture=function(){var e=this.J,N=window.document;window.document.pictureInPictureEnabled?this.J!==N.pictureInPictureElement?e.requestPictureInPicture():N.exitPictureInPicture():gp()&&e.webkitSetPresentationMode(e.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.J.wD=function(){var e=this.J;return new g.ri(e.offsetLeft,e.offsetTop)};
g.J.getSize=function(){return g.Be(this.J)};
g.J.setSize=function(e){g.k0(this.J,e)};
g.J.getVolume=function(){return this.J.volume};
g.J.setVolume=function(e){VI();this.J.volume=e};
g.J.ao=function(e){this.L[e]||(this.J.addEventListener(e,this.listener),this.L[e]=this.listener)};
g.J.setAttribute=function(e,N){this.J.setAttribute(e,N)};
g.J.removeAttribute=function(e){this.J.removeAttribute(e)};
g.J.hasAttribute=function(e){return this.J.hasAttribute(e)};
g.J.LT=N3(57);g.J.R4=N3(59);g.J.CH=N3(61);g.J.D9=N3(63);g.J.u5=function(){return kh(this.J)};
g.J.o7=function(e){g.pi(this.J,e)};
g.J.Vr=function(e){return g.MW(this.J,e)};
g.J.bS=function(){return g.Ex(document.body,this.J)};
g.J.audioTracks=function(){var e=this.J;if("audioTracks"in e)return e.audioTracks};
g.J.fh=function(){for(var e=g.c(Object.keys(this.L)),N=e.next();!N.done;N=e.next())N=N.value,this.J.removeEventListener(N,this.L[N]);R8.prototype.fh.call(this)};
g.J.wu=function(e){this.J.disableRemotePlayback=e};g.b(J9,g.W);g.b(CZ,g.W);CZ.prototype.show=function(){g.W.prototype.show.call(this);this.GZ();this.Lh.T("html5_enable_moving_s4n_window")&&g.I_(this.Lh.X())&&this.U()};
CZ.prototype.hide=function(){g.W.prototype.hide.call(this);this.delay.stop();this.j.stop()};
CZ.prototype.GZ=function(){var e=(0,g.iC)(),N=av5(this.Lh);pZ(this.J,N.bandwidth_samples);pZ(this.G,N.network_activity_samples);pZ(this.K,N.live_latency_samples);pZ(this.N,N.buffer_health_samples);var y={};N=g.c(Object.entries(N));for(var w=N.next();!w.done;w=N.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;this.D[w]!==E&&(y[w]=" "+String(E));this.D[w]=E}this.update(y);e=(0,g.iC)()-e>25?5E3:500;this.delay.start(e)};
CZ.prototype.U=function(){this.Z?(this.position+=1,this.position>15&&(this.Z=!1)):(--this.position,this.position<=0&&(this.Z=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.j.start(2E4)};g.b(yk_,jX);g.b(rH,g.x);rH.prototype.J=function(){var e=(0,g.iC)()-this.startTime;e=e<this.duration?e/this.duration:1;this.N(PD(xg_,e));e<1&&this.delay.start()};
var xg_=new XM(0,0,.4,0,.2,1,1,1),p65=/[0-9.-]+|[^0-9.-]+/g;g.b($P,g.W);$P.prototype.onClick=function(){var e=this.api.app;var N=e.T("web_log_theater_mode_visibility")?!e.gN():!e.zp;e.Lh.Mg("SIZE_CLICKED",N);this.api.logClick(this.element)};
$P.prototype.GZ=function(){this.KX(this.api.iS()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Og){var e=this.api.gN();this.gN!==e&&this.Gb(e)}this.api.logVisibility(this.element,this.Og)};
$P.prototype.Gb=function(e){var N=e?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.gN==null?this.updateValue("icon",N):JkP(this.transition,this.element,
N);this.gN=e;N=g.FT(this.api,"Default view","t");var y=g.FT(this.api,"Theater mode","t");this.updateValue("title",e?N:y);this.update({"data-title-no-tooltip":e?"Default view":"Theater mode"});this.api.xp()};g.b(Con,jX);g.b(YL0,jX);g.J=YL0.prototype;g.J.onVideoDataChange=function(e){this.bl();this.videoId=e.videoId;this.N=this.J=void 0;this.timelyActions=$hH(e);Mzn(this);this.clearTimeout();this.wx()};
g.J.rz=function(e){var N=e.oldState,y=e.state,w=y.seekSource;!g.G(N,16)&&g.G(y,16)?this.I0(w!=null?w:void 0):g.G(N,16)&&!g.G(y,16)&&this.Qt();e=e.state;e=!e.isCued()&&!g.G(e,1024);this.K.KX(e)};
g.J.wx=function(){var e=this.XW();e&&this.api.wx(e)};
g.J.bl=function(){this.api.MK("timelyAction",1);if(this.J!==void 0)this.onCueRangeExit(this.J)};
g.J.XW=function(){if(this.timelyActions){for(var e=[],N=g.c(this.timelyActions),y=N.next();!y.done;y=N.next())y=y.value,y=y.startTimeMilliseconds!=null&&y.endTimeMilliseconds!=null&&y.cueRangeId!=null?new g.wF(Number(y.startTimeMilliseconds),Number(y.endTimeMilliseconds),{id:y.cueRangeId,namespace:"timelyAction"}):void 0,y&&e.push(y);return e}};
g.J.onCueRangeEnter=function(e){var N=YP(this,e);N&&this.j[e]!==void 0&&(N.maxShowCount===void 0||(N==null?void 0:N.maxShowCount)>this.j[e])&&(this.J=e,F25(this))};
g.J.onCueRangeExit=function(e){var N=lDE(this,e);N&&this.J===e&&this.api.Mg("innertubeCommand",N);this.clearTimeout();this.J=void 0};
g.J.onTimeout=function(e){this.J!==void 0&&(e==null?void 0:e.cueRangeId)===this.J&&(e=lDE(this,this.J))&&this.api.Mg("innertubeCommand",e)};
g.J.I0=function(e){this.N=e};
g.J.Qt=function(){F25(this);this.N=void 0};
g.J.setTimeout=function(e){var N=this,y=Number(e==null?void 0:e.maxVisibleDurationMilliseconds);y&&(this.clearTimeout(),this.L=setTimeout(function(){N.onTimeout(e)},y))};
g.J.clearTimeout=function(){this.L&&clearTimeout(this.L);this.L=void 0};
g.J.fh=function(){this.timelyActions=this.N=this.J=this.videoId=void 0;this.j={};this.bl();this.clearTimeout();jX.prototype.fh.call(this)};g.b(bJ0,jX);var hB={},iJP=(hB[1]="pot_ss",hB[2]="pot_sf",hB[3]="pot_se",hB[4]="pot_xs",hB[5]="pot_xf",hB[6]="pot_xe",hB),DhE=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.b(F_,jX);F_.prototype.fh=function(){this.Z&&(g.k3(this.Z),this.Z=void 0);jX.prototype.fh.call(this)};
F_.prototype.xt=function(){(this.J?!this.J.isReady():this.N)&&o3(this)};
F_.prototype.Qb=function(e,N,y){var w=this;if(ck0(e)){var E=y||"",A;if((A=this.J)==null?0:A.isReady())N=bJ(this,E),kP_(e,N);else{var T=new g.lq;N.push(T.promise);this.j.promise.then(function(){var p=bJ(w,E);kP_(e,p);T.resolve()})}}};
F_.prototype.pJ=function(e){var N=this;if(this.J||this.N)e.Ih=bJ(this,e.videoId),this.J&&!this.J.isReady()&&(this.K=new O3,this.j.promise.then(function(){N.R9.oe("pot_if");e.Ih=bJ(N,e.videoId)}))};g.b(VzF,jX);g.b(h9,g.x);h9.prototype.J=function(){for(var e=g.c(g.iE.apply(0,arguments)),N=e.next();!N.done;N=e.next())(N=N.value)&&this.features.push(N)};
h9.prototype.fh=function(){for(var e=this.features.length-1;e>=0;e--)this.features[e].dispose();this.features.length=0;g.x.prototype.fh.call(this)};co.prototype.AS=function(){this.N=(0,g.iC)()};
co.prototype.reset=function(){this.J=this.N=NaN};
co.prototype.zK=function(e,N){if(e.clientPlaybackNonce&&!isNaN(this.J)){if(Math.random()<.01){N=N?"pbp":"pbs";var y={startTime:this.J};e.Z&&(y.cttAuthInfo={token:e.Z,videoId:e.videoId});QQ("seek",y);g.nV({clientPlaybackNonce:e.clientPlaybackNonce},"seek");isNaN(this.N)||jZ("pl_ss",this.N,"seek");jZ(N,(0,g.iC)(),"seek")}this.reset()}};g.J=fD9.prototype;g.J.reset=function(){qY(this.timerName)};
g.J.tick=function(e,N){jZ(e,N,this.timerName)};
g.J.oe=function(e){return Hw(e,this.timerName)};
g.J.d6=function(e){Bd(e,void 0,this.timerName)};
g.J.infoGel=function(e){g.nV(e,this.timerName)};g.b(ZJ3,g.pT);g.J=ZJ3.prototype;g.J.gk=function(e){return this.loop||!!e||this.index+1<this.length};
g.J.GJ=function(e){return this.loop||!!e||this.index-1>=0};
g.J.setShuffle=function(e){this.shuffle=e;e=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var N=0;N<this.items.length;N++)this.order.push(N);this.index=e;this.N++;if(this.shuffle){e=this.order[this.index];for(N=1;N<this.order.length;N++){var y=Math.floor(Math.random()*(N+1)),w=this.order[N];this.order[N]=this.order[y];this.order[y]=w}for(N=0;N<this.order.length;N++)this.order[N]===e&&(this.index=N);this.N++}this.publish("shuffle")};
g.J.LN=function(e){e=e||"hqdefault.jpg";var N=this.D[e];if(N||this.Ot.Kh||e==="sddefault.jpg"||e==="hq720.jpg"||e==="maxresdefault.jpg")return N;if(this.K.length)return q_(this.Ot,this.K[0],e)};
g.J.getLength=function(){return this.length};
g.J.findIndex=function(e){if(e&&(e=e.videoId,!this.items[this.index]||this.items[this.index].video_id!==e))for(var N=0;N<this.items.length;N++)if(this.items[N].video_id===e){this.index=N;break}};
g.J.onReady=function(e){this.J=e;this.loaded&&g.b4(this.J,0)};
g.J.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.J.ew=function(){return this.Ot.getVideoUrl(g.Bo(this).videoId,this.getPlaylistId())};
g.J.fh=function(){this.J=null;g.pq(this.items);g.pT.prototype.fh.call(this)};var X_=new Map;g.b(g.dH,g.pT);g.J=g.dH.prototype;g.J.create=function(){};
g.J.load=function(){this.loaded=!0};
g.J.unload=function(){this.loaded=!1};
g.J.uv=function(){};
g.J.uZ=function(){return!0};
g.J.fh=function(){this.loaded&&this.unload();g.pT.prototype.fh.call(this)};
g.J.N7=function(){return{}};
g.J.getOptions=function(){return[]};g.b(g.vo,g.x);g.J=g.vo.prototype;g.J.PF=N3(66);g.J.Ul=function(){};
g.J.B_=function(){};
g.J.OA=function(){return""};
g.J.RD=N3(67);g.J.Qb=function(e,N){var y=this;if(this.Lh.X().T("html5_dispatch_tracklist_loaded_event")){this.j&&(this.j.reject(),this.j=null);var w=[];this.Lh.publish("trackListLoaded",this.N,w,N);w.length?(N=new g.lq,N.promise.then(e.Qb,function(){}),this.j=N,Promise.all(w).then(N.resolve,N.reject).finally(function(){y.j=null})):e.Qb()}else e.Qb()};
g.J.oy=function(){};
g.J.fh=function(){this.j&&(this.j.reject(),this.j=null);this.B_();g.x.prototype.fh.call(this)};g.b(g.zf,g.vo);g.zf.prototype.PF=N3(65);g.zf.prototype.Ul=function(e){if(this.audioTrack)for(var N=g.c(this.audioTrack.captionTracks),y=N.next();!y.done;y=N.next())g.I3(this.N,y.value);this.Qb(e,this.videoData.videoId)};
g.zf.prototype.OA=function(e,N){var y=e.nC(),w={fmt:N};if(N==="srv3"||N==="3"||N==="json3")g.O8()?Object.assign(w,{xorb:2,xobt:1,xovt:1}):Object.assign(w,{xorb:2,xobt:3,xovt:3});e.translationLanguage&&(w.tlang=g.J3(e));this.K&&(w.xosf="1");Object.assign(w,this.Lh.X().J);return pp(y,w)};
g.zf.prototype.B_=function(){this.J&&this.J.abort()};g.jFX=new Map;g.b(g.Dv,g.vo);g.Dv.prototype.PF=N3(64);
g.Dv.prototype.Ul=function(e){var N=this,y=this.K,w={type:"list",tlangs:1,v:this.videoId,vssids:1};this.Cn&&(w.asrs=1);y=pp(y,w);this.B_();this.J=g.zk(y,{format:"RAW",onSuccess:function(E){N.J=null;if((E=E.responseXML)&&E.firstChild){for(var A=E.getElementsByTagName("track"),T=0;T<A.length;T++){var p=A[T],C=p.getAttribute("lang_code"),r=p.getAttribute("lang_translated"),Y=p.getAttribute("name"),M=p.getAttribute("kind"),l=p.getAttribute("id"),F=p.getAttribute("lang_default")==="true",S=p.getAttribute("cantran")===
"true";p=p.getAttribute("vss_id");g.I3(N.N,new g.En({languageCode:C,languageName:r,name:Y,kind:M,id:l,is_servable:!0,is_translateable:S,vss_id:p,is_default:F}))}E=E.getElementsByTagName("target");A=E.length;for(T=0;T<A;T++)C={languageCode:E[T].getAttribute("lang_code"),languageName:E[T].getAttribute("lang_translated"),languageOriginal:E[T].getAttribute("lang_original"),id:E[T].getAttribute("id"),isDefault:E[T].getAttribute("lang_default")==="true"},N.Z[C.languageCode]=C.languageName,N.L.push(C)}N.Qb(e,
N.videoId)},
withCredentials:!0})};
g.Dv.prototype.OA=function(e,N){var y=this.K;N={v:this.videoId,type:"track",lang:e.languageCode,name:e.getName(),kind:e.kind,fmt:N};var w=this.Lh.X();w.T("captions_url_add_ei")&&(N.ei=this.eventId);e.translationLanguage&&(N.tlang=g.J3(e));Object.assign(N,w.J);return y=pp(y,N)};
g.Dv.prototype.B_=function(){this.J&&this.J.abort()};Uh0.prototype.K=function(){for(var e=g.iE.apply(0,arguments),N=this,y=yA("empty"),w=[],E={Mu:0};E.Mu<this.N.length&&y.currentState!=="done";E={Dc:void 0,Mu:E.Mu},E.Mu++)E.Dc=this.N[E.Mu],E.Dc.condition.apply(E.Dc,g.B(e))&&(y=Tm(Tm(y,function(A){return function(){if(!A.Dc.condition.apply(A.Dc,g.B(e)))throw"condition failed";var T=A.Dc.gE.apply(A.Dc,g.B(e));return N.J===void 0||N.J===null?T:A$(Nc(T),function(p){if(!N.J.apply(N,[p].concat(g.B(e))))throw"verification failed";return p})}}(E)),function(A){return function(T){T!==
"empty"&&T!=="condition failed"&&T!=="verification failed"&&T!=="error"&&(A.Dc.onFailure&&A.Dc.onFailure.apply(A.Dc,[T].concat(g.B(e))),N.onFailure&&N.onFailure.apply(N,[T,
A.Mu,A.Dc].concat(g.B(e))),w.push(T));throw"error";}}(E)));
return Tm(y,function(){return yA(w)})};Vm.prototype.preload=function(e){e=e?L25(this.capabilities,e):this.capabilities;return e.uB?A$(eVM(this,e),function(){}):Nc()};
Vm.prototype.compile=function(e){return Tm(this.L.K(e),function(N){throw Error("wasm module compile failure: "+N.map(function(y){return y.message}).join(", "),{cause:N});
})};
Vm.prototype.instantiate=function(e,N){return Tm(this.Z.K(e,N),function(y){throw Error("wasm module instantiation failure: "+y.map(function(w){return w.message}).join(", "),{cause:y});
})};EM5.prototype.emscripten_notify_memory_growth=function(){};var NTM;g.J=TT_.prototype;g.J.malloc=function(e){return this.J.malloc(e)};
g.J.free=function(e){this.J.free(e)};
g.J.realloc=function(e,N){return this.J.realloc(e,N)};
g.J.MJ=function(e){if(e.buffer!==this.exports.memory.buffer){var N=this.malloc(e.byteLength);N=new Uint8Array(this.exports.memory.buffer,N,e.byteLength);N.set(e);return N}};
g.J.F4=function(e){if(e.buffer===this.exports.memory.buffer){var N=e.slice();this.free(e.byteOffset);return N}};
var uf5="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);gH.Jw(TT_,{MJ:function(e){return{profile:"copyj2w",XA:e===void 0?0:Math.ceil(e.byteLength/16)}},
F4:function(e){return{profile:"copyw2j",XA:e===void 0?0:Math.ceil(e.byteLength/16)}}});g.b(CbM,g.x);g.J=CbM.prototype;g.J.createSubtitlesModuleIfNeeded=function(){M89(this)&&t9(this,"captions");return!!g.fZ(this)};
g.J.RZ=function(){return g.xK(this.C.getVideoData())&&!this.C.O1().K};
g.J.qC=function(){return this.C.getVideoData().qC()};
g.J.du=function(){return this.C.getVideoData().du()};
g.J.Ht=function(){var e=this.x9.get("heartbeat");t9(this,"heartbeat",!1,!0,this.Ht);!e&&this.x9.has("heartbeat")&&this.C.publish("offlineslatestatechange")};
g.J.w0=function(){t9(this,"annotations_module",!0,void 0,this.w0);var e=this.x9.get("annotations_module");if(e)for(var N in this.K)if(this.K.hasOwnProperty(N)){var y=N;e.subscribe(y,this.K[y])}};
g.J.Vc=function(){if(!this.x9.get("ad"))try{rUE(this)?t9(this,"ad",!1,!0,this.Vc):this.C.Go("ad")}catch(e){this.C.Go("ad"),g.t0(e)}};
g.J.s4=function(){return this.N};
g.J.Am=function(){var e={},N=g.fZ(this);N&&Object.assign(e,N.Am());return e};
g.J.aE=function(e,N){Object.assign(this.N,e||null);Object.assign(this.OV,N||null)};
g.J.onVideoDataChange=function(){var e=this.C.getVideoData();this.C.T("enable_wn_infocards")&&g.PF(e)&&!g.jB(this)&&this.w0()};
g.J.fh=function(){g.x.prototype.fh.call(this);uJ(this,1,!0);for(var e=g.c(Object.entries(vMF)),N=e.next();!N.done;N=e.next()){var y=g.c(N.value);N=y.next().value;y=y.next().value;this.j.has(y)&&X_.delete(N)}this.j.clear()};
var c9={},vMF=(c9.ad="ad.js",c9.annotations_module="annotations_module.js",c9.asmjs="asmjs.js",c9.creatorendscreen="annotations_module.js",c9.embed="embed.js",c9.endscreen="endscreen.js",c9.heartbeat="heartbeat.js",c9.kids="kids.js",c9.remote="remote.js",c9.miniplayer="miniplayer.js",c9.offline="offline.js",c9.captions="captions.js",c9.unplugged="unplugged.js",c9.ux="ux.js",c9.webgl="webgl.js",c9.ypc="ypc.js",c9.ypc_clickwrap="ypc_clickwrap.js",c9.yto="yto.js",c9),BTM="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.b(iUM,g.pT);g.J=iUM.prototype;g.J.VZ=function(e){e=new g.ri(e.pageX,e.pageY);if(!$Y(e,this.j)){var N=2;this.Z&&(N|=8);this.j=e;Qm(this,N,!0)}};
g.J.PtP=function(){this.Z&&Qm(this,8,!0);Qm(this,2,!1)};
g.J.IL=function(e){var N=new g.ri(e.pageX,e.pageY);$Y(N,this.j)||(this.j=N,(e=e.target)&&this.Jl(e)&&(Qm(this,4,!0),this.J.CX(this.K),this.K=this.J.Y(this.target,"mouseover",this.Y3),this.G=this.J.Y(this.target,"mouseout",this.Y3)))};
g.J.Y3=function(e){e=e.relatedTarget;e&&this.Jl(e)||(this.j=new g.ri(NaN,NaN),DV3(this))};
g.J.v1P=function(){Qm(this,1,!0)};
g.J.kQ=function(e){e=e.target;e instanceof Element&&!(e.tabIndex>0)||Qm(this,1,!0)};
g.J.YR=function(){this.Z=!0;this.J.CX(this.L);this.L=this.J.Y(document,"mouseup",this.M1)};
g.J.M1=function(){this.Z=!1;Qm(this,8,!1);this.J.CX(this.L);this.L=this.J.Y(this.target,"mousedown",this.YR)};
g.J.X3=function(e){if(e=(e=e.changedTouches)&&e[0])this.qg=e.identifier,this.J.CX(this.U),this.U=this.J.Y(this.target,"touchend",this.QZ,void 0,!0),Qm(this,1024,!0)};
g.J.QZ=function(e){if(e=e.changedTouches)for(var N=0;N<e.length;N++){var y=e[N];if(y.identifier===this.qg){var w=y;break}}w&&(this.J.CX(this.U),this.U=this.J.Y(this.target,"touchstart",this.X3,void 0,!0),Qm(this,1024,!1))};
g.J.Cd=function(){Qm(this,2,!0)};
g.J.resize=function(){g.i$&&DV3(this)};
g.J.toString=function(){return g.pT.prototype.toString.call(this)};g.b(g.Ho,g.W);g.J=g.Ho.prototype;g.J.USh=function(){this.GZ()};
g.J.GZ=function(){var e=this.api.getVideoData(),N=this.api.X(),y=!!this.api.isEmbedsShortsMode();g.Y1(this.element,"ytp-shorts-mode",y);y?N=[{S:"svg",V:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},W:[{S:"path",V:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
fill:"#f00","fill-rule":"evenodd"}},{S:"path",V:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.KX(e)?N=[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{S:"path",B:"ytp-dni-large-play-button-bg",V:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{S:"path",V:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:e.hs&&e.yy?N=[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{S:"path",B:"ytp-dni-large-play-button-bg",
V:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{S:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:N.Z?(g.Y1(this.element,"ytp-touch-device",N.N),N=[N.Z?{S:"svg",V:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},W:[{S:"path",B:"ytp-large-play-button-bg",V:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{S:"path",V:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{S:"path",B:"ytp-large-play-button-bg",V:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{S:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):N=[{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{S:"path",B:"ytp-large-play-button-bg",V:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{S:"path",V:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",N);e.hs&&e.yy&&this.hW("ytp-dni-large-play-button-bg").setAttribute("fill",e.yy?e.yy:"#1f1f1f")};
g.J.show=function(){g.W.prototype.show.call(this);this.api.X().T("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.J.Qf=function(){this.api.getVideoData().mutedAutoplay||(this.api.Z$(),this.api.playVideo())};
g.J.XEZ=function(e){this.api.getVideoData().mutedAutoplay||e.preventDefault()};g.b(g.KZ,g.W);g.J=g.KZ.prototype;g.J.show=function(){var e=this;this.Og||(this.j.Y(this.api,"videodatachange",function(){g.NA(e.J)}),this.j.Y(this.api,"videoplayerreset",function(){g.NA(e.J)}));
g.W.prototype.show.call(this)};
g.J.hide=function(){this.j&&g.g9(this.j);g.W.prototype.hide.call(this)};
g.J.I9=function(){g.NA(this.J)};
g.J.onStateChange=function(){g.NA(this.J)};
g.J.uTW=function(){g.NA(this.J)};
g.J.onReset=function(){this.N.stop();this.hide();g.NA(this.J)};
g.J.GZ=function(){var e=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(e.isPlaying()||e.isPaused()))var N=!0;else(N=this.api.jR().x9.get("ypc"))&&N.qb?N=!0:(N=this.api.X(),N=g.G(e,2)&&g.oq(this.api)&&N.Rx?!0:!1);N?(N=!0,this.K.hide()):this.api.T("web_player_show_frame_zero_when_cued")&&gME(this)?(N=!0,this.K.hide()):(this.K.show(),N=e.isCued()&&this.api.getPresentingPlayerType()!==2||g.G(e,2)&&!g.oq(this.api)&&!this.api.ZR()||g.G(e,1024)?!0:!1);var y=this.api.getVideoData();
N&&!y.SP?(this.N.show(),this.MZl(this.api.getPlaylist(),y)):(this.N.hide(),g.G(e,1)||this.N.stop())};
g.J.MZl=function(){var e=g.iE.apply(0,arguments),N=this.api.X(),y,w=(y=this.api.getVideoData())==null?void 0:y.videoId;if(N.T("web_player_show_frame_zero_when_cued")&&w&&gME(this))var E="https://i.ytimg.com/vi/"+w+"/frame0.jpg";else for(e=g.c(e),y=e.next();!y.done;y=e.next())if(y=y.value,!(!y||y instanceof g.t3&&!y.videoId)){E=this.api.Fz().getPlayerSize();var A=g.jV();w=E.width*A;A*=E.height;if(w>1280||A>720)if(E=y.LN("maxresdefault.jpg"))break;if(w>640||A>480)if(E=y.LN("maxresdefault.jpg"))break;
if(w>320||A>180)if(E=y.LN("sddefault.jpg")||y.LN("hqdefault.jpg")||y.LN("mqdefault.jpg"))break;if(E=y.LN("default.jpg"))break}g.mT(N)&&(N=new Image,N.addEventListener("load",function(){se1()}),N.src=E?E:"",this.api.s4().tick("ftr"));
this.Z.style.backgroundImage=E?"url("+E+")":""};g.b(g.Wo,g.W);g.Wo.prototype.resize=function(){};
g.Wo.prototype.N=function(e){var N=this;this.K=!1;t8H(this);var y=e.Se,w=this.api.X();y!=="GENERIC_WITHOUT_LINK"||w.Z?y==="TOO_MANY_REQUESTS"?(w=this.api.getVideoData(),this.Ja(Gf(this,"TOO_MANY_REQUESTS_WITH_LINK",w.ew(),void 0,void 0,void 0,!1))):y!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||w.Z?this.api.X().T("html5_enable_bandaid_error_screen")&&y==="HTML5_SPS_UMP_STATUS_REJECTED"&&!w.Z?(w=w.hostLanguage,e="//support.google.com/youtube?p=videoError",w&&(e=g.Qb(e,{hl:w})),this.Ja(Gf(this,"HTML5_SPS_UMP_STATUS_REJECTED",
e))):this.api.X().T("enable_adb_handling_in_sabr")&&y==="BROWSER_OR_EXTENSION_ERROR"&&!w.Z?(w=w.hostLanguage,e="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",w&&(e=g.Qb(e,{hl:w})),this.Ja(Gf(this,"BROWSER_OR_EXTENSION_ERROR",e))):this.Ja(g.ON(e.errorMessage)):this.Ja(Gf(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(e=w.hostLanguage,y="//support.google.com/youtube/?p=player_error1",e&&(y=g.Qb(y,
{hl:e})),this.Ja(Gf(this,"GENERIC_WITH_LINK_AND_CPN",y,!0)),w.PY&&!w.j&&ft5(this,function(A){if(g.G9(A,N.api,!ZW(N.api.X()))){A={as3:!1,html5:!0,player:!0,cpn:N.api.getVideoData().clientPlaybackNonce};var T=N.api;T.pC("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:A});T.isFullscreen()&&T.toggleFullscreen()}}));
if(this.K){var E=this.hW("ytp-error-link");E&&(this.api.createClientVe(E,this,216104),this.api.logVisibility(E,!0),ft5(this,function(){N.api.logClick(E)}))}};
var V8F=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.b(uqM,g.W);g.J=uqM.prototype;g.J.onClick=function(e){this.innertubeCommand?(this.C.Mg("innertubeCommand",this.innertubeCommand),e.preventDefault()):g.G9(e,this.C,!0);this.C.logClick(this.element)};
g.J.onVideoDataChange=function(e,N){ZU_(this,N);this.k9&&xVn(this,this.k9)};
g.J.Ik=function(e){var N=this.C.getVideoData();this.videoId!==N.videoId&&ZU_(this,N);this.J&&xVn(this,e.state);this.k9=e.state};
g.J.WY=function(){this.j.show();this.C.publish("paidcontentoverlayvisibilitychange",!0);this.C.logVisibility(this.element,!0)};
g.J.rT=function(){this.j.hide();this.C.publish("paidcontentoverlayvisibilitychange",!1);this.C.logVisibility(this.element,!1)};g.b(UN,g.W);UN.prototype.hide=function(){this.J.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
UN.prototype.onStateChange=function(e){this.IJ(e.state)};
UN.prototype.IJ=function(e){(g.G(e,128)||this.api.l$()?0:g.G(e,16)||g.G(e,1))?this.J.start():this.hide()};
UN.prototype.N=function(){this.message.style.display="block"};g.b(LZ,g.Dq);LZ.prototype.onMutedAutoplayChange=function(e){this.K&&(e?(j53(this),this.WY()):(this.J&&this.logClick(),this.rT()))};
LZ.prototype.rz=function(e){this.api.isMutedByMutedAutoplay()&&g.FD(e,2)&&this.rT()};
LZ.prototype.onClick=function(){this.api.unMute();this.logClick()};
LZ.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.b(g.sN,g.fd);g.J=g.sN.prototype;g.J.init=function(){var e=this.api,N=e.getPlayerStateObject();this.r8=e.getPlayerSize();this.zi(N);this.GV();this.I9();this.api.publish("basechromeinitialized",this);this.SH()&&this.api.publish("standardControlsInitialized")};
g.J.onVideoDataChange=function(e,N){var y=this.Cf!==N.videoId;if(y||e==="newdata"){e=this.api;e.isFullscreen()||(this.r8=e.getPlayerSize());var w;((w=this.api.getVideoData(1))==null?0:g.xK(w))&&this.H7()}y&&(this.Cf=N.videoId,y=this.tT,y.l9=3E3,Qm(y,512,!0),this.GV());this.api.T("web_render_jump_buttons")&&N.showSeekingControls&&(this.i7=572)};
g.J.D7g=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.J.B4=function(){var e=this.api.CO()&&this.api.fz(),N=this.api.ws();return this.vX||e||this.vM||N};
g.J.H7=function(){var e=!this.B4();g.Y1(this.api.getRootNode(),"ytp-menu-shown",!e);var N;((N=this.api.getVideoData(1))==null?0:g.xK(N))&&g.Y1(this.api.getRootNode(),"ytp-hide-controls",!e)};
g.J.Jl=function(e){try{if(!g.Ex(this.api.getRootNode(),e))return!1}catch(N){return!1}for(;e&&!TPM(e);)e=e===this.api.getRootNode()?null:e.parentElement||null;return!!e};
g.J.vg=function(e){var N=this.api.getRootNode();g.Y1(N,"ytp-autohide",e);g.Y1(N,"ytp-autohide-active",!0);this.pD.start(e?250:100);e&&(this.Hl=!1,g.re(N,"ytp-touch-mode"));this.gU=!e;this.api.f0(!e)};
g.J.OG=function(){var e=this.api.getRootNode();g.Y1(e,"ytp-autohide-active",!1)};
g.J.ras=function(){this.kt=!0};
g.J.ZCt=function(e){if(this.api.X().T("player_doubletap_to_seek")||this.api.X().U)this.kt=!1,this.K7&&this.CX(this.K7),this.v3===0&&ez(this,e)?(this.VU(),this.S8.start(),this.K7=this.Y(this.api.Fz(),"touchmove",this.ras,void 0,!0)):this.S8.stop();HUn(this)&&ez(this,e)&&!this.api.X().U&&Q5_(this);var N=this.w9.e1();if(!g.hR(this.api.X())&&SV&&KYE(this,e))N&&e.preventDefault();else if(this.Hl=!0,g.pi(this.api.getRootNode(),"ytp-touch-mode"),this.tT.Cd(),this.api.X().T("player_doubletap_to_seek")||this.api.X().U)if(N=
this.api.getPlayerStateObject(),!(!this.api.Bf()||g.G(N,2)&&g.oq(this.api)||g.G(N,64))){N=Date.now()-this.NV;this.v3+=1;if(N<=350){this.tV=!0;N=this.api.getPlayerSize().width/3;var y=this.api.getRootNode().getBoundingClientRect(),w=e.targetTouches[0].clientX-y.left;y=e.targetTouches[0].clientY-y.top;var E=(this.v3-1)*10;w>0&&w<N?(this.mw(-1,w,y,E),this.api.seekBy(-10*this.api.getPlaybackRate())):w>N*2&&w<N*3&&(this.mw(1,w,y,E),this.api.seekBy(10*this.api.getPlaybackRate()));e.preventDefault()}else mm&&
this.api.X().U&&ez(this,e)&&e.preventDefault();this.NV=Date.now();this.BD.start()}};
g.J.PBP=function(){this.dF.QG=!1;this.api.publish("rootnodemousedown",this.dF)};
g.J.SQG=function(e){if(this.api.X().T("web_fix_fine_scrubbing_false_play")){if(KYE(this,e)||this.dF.QG)return}else if(this.dF.QG||KYE(this,e))return;HUn(this)||!ez(this,e)||this.S8.isActive()||(Q5_(this),e.preventDefault());this.tV&&(this.tV=!1)};
g.J.VU=function(){};
g.J.O6=function(){};
g.J.mw=function(){};
g.J.renderChapterSeekingAnimation=function(){};
g.J.uX=function(){var e=this.api.getPlayerStateObject();g.G(e,2)&&g.oq(this.api)||(e.isOrWillBePlaying()?this.api.pauseVideo():(this.ez&&(e.isCued()||g.G(e,1024))&&!this.api.X().T("embeds_play_button_state_check_ks")&&this.api.publish("largeplaybuttonclicked",this.ez.K.element),this.api.Z$(),this.api.playVideo(),this.ez&&document.activeElement===this.ez.K.element&&((e=this.SH())==null?e=0:e.playButton?(e.playButton.focus(),e=!0):e=!1,e||this.api.getRootNode().focus())))};
g.J.dKZ=function(e){var N=this,y=this.api.getPresentingPlayerType();if(!mVF(this,vE(e)))if(e=this.api.X(),(this.api.X().T("player_doubletap_to_seek")||this.api.X().U)&&this.tV)this.tV=!1;else if(e.Y_&&y!==3)try{this.api.toggleFullscreen().catch(function(w){N.sU(w)}),this.api.T("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.Fz().element)}catch(w){this.sU(w)}};
g.J.sU=function(e){String(e).includes("fullscreen error")?g.uA(e):g.t0(e)};
g.J.Rvk=function(e){WYH(this,.3,e.scale);e.preventDefault()};
g.J.CBP=function(e){WYH(this,.1,e.scale)};
g.J.I9=function(){var e=this.api.Fz().getPlayerSize(),N=this.api.getRootNode(),y=e.width>=650;this.tT.resize();g.Y1(N,"ytp-fullscreen",this.api.isFullscreen());g.Y1(N,"ytp-large-width-mode",y);g.Y1(N,"ytp-small-mode",this.xx());g.Y1(N,"ytp-tiny-mode",this.mx());g.Y1(N,"ytp-big-mode",this.Nr());this.MG&&this.MG.resize(e)};
g.J.rz=function(e){this.zi(e.state);this.GV()};
g.J.L8=N3(5);g.J.JG=function(){var e=!!this.Cf&&!this.api.OX()&&!this.qy,N=this.api.getPresentingPlayerType()===2,y=this.api.X();if(N){if(P1E&&y.T("enable_visit_advertiser_support_on_ipad_mweb"))return!1;N=ql(this.api.jR());e&&(N&&N.player?e=(e=N.player.getVideoData(2))?e.isListed&&!g.Pa(N.player.X()):!1:(YN("showInfoBarDuringAd: this is null"),e=!1));return e}return e&&(y.d2||this.api.isFullscreen()||y.ul)};
g.J.GV=function(){var e=this.JG();this.bL!==e&&(this.bL=e,g.Y1(this.api.getRootNode(),"ytp-hide-info-bar",!e))};
g.J.zi=function(e){var N=e.isCued()||this.api.V_()&&this.api.getPresentingPlayerType()!==3;N!==this.isCued&&(this.isCued=N,this.tY&&this.CX(this.tY),this.tY=this.Y(this.api.Fz(),"touchstart",this.ZCt,void 0,N));var y=this.tT,w=e.isPlaying()&&!g.G(e,32)||this.api.hB();Qm(y,128,!w);y=this.tT;w=this.api.getPresentingPlayerType()===3;Qm(y,256,w);y=this.api.getRootNode();g.G(e,2)?w=[Qz.ENDED]:(w=[],g.G(e,8)?w.push(Qz.PLAYING):g.G(e,4)&&w.push(Qz.PAUSED),g.G(e,1)&&!g.G(e,32)&&w.push(Qz.BUFFERING),g.G(e,
32)&&w.push(Qz.SEEKING),g.G(e,64)&&w.push(Qz.UNSTARTED));g.Cf(this.Mw,w)||(g.$1(y,this.Mw),this.Mw=w,g.Ci(y,w));w=this.api.X();var E=g.G(e,2);a:{var A=this.api.X();var T=A.controlsType;switch(T){case "2":case "0":A=!1;break a}A=T==="3"&&!g.G(e,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:pAM(ql(this.api.jR())))||this.api.ws()||g.hR(A)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Y1(y,"ytp-hide-controls",!A);g.Y1(y,"ytp-native-controls",w.controlsType==="3"&&!N&&!E&&!this.vM);g.G(e,
128)&&!g.hR(w)?(this.MG||(this.MG=new g.Wo(this.api),g.Q(this,this.MG),g.Pb(this.api,this.MG.element,4)),this.MG.N(e.qS),this.MG.show()):this.MG&&(this.MG.dispose(),this.MG=null)};
g.J.Jm=function(){return this.api.CO()&&this.api.fz()?(this.api.P4(!1,!1),!0):this.api.OX()?(g.bh(this.api,!0),!0):!1};
g.J.onMutedAutoplayChange=function(e){this.vM=e;this.H7()};
g.J.Nr=function(){return!1};
g.J.xx=function(){return!this.Nr()&&(this.api.getPlayerSize().width<this.i7||this.api.getPlayerSize().height<290)};
g.J.mx=function(){return this.xx()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.J.Dk=function(){return this.Hl};
g.J.X6=function(){return null};
g.J.iH=function(){return null};
g.J.eW=function(){var e=this.api.Fz().getPlayerSize();return new g.pK(0,0,e.width,e.height)};
g.J.handleGlobalKeyDown=function(){return!1};
g.J.handleGlobalKeyUp=function(){return!1};
g.J.yg=function(){};
g.J.showControls=function(e){e!==void 0&&this.api.Fz().f0(e)};
g.J.Cd=function(){};
g.J.SH=function(){return null};g.b(Nh,g.pT);g.J=Nh.prototype;g.J.WU=function(){return 1E3*this.api.getDuration(this.UR,!1)};
g.J.stop=function(){this.J&&this.bB.CX(this.J)};
g.J.HY=function(){var e=this.api.getProgressState(this.UR);this.N={seekableStart:e.seekableStart,seekableEnd:e.seekableEnd,current:this.api.getCurrentTime(this.UR,!1)};this.publish("h")};
g.J.getProgressState=function(){return this.N};
g.J.Di=function(e){g.FD(e,2)&&this.publish("g")};g.b(g.ys,g.W);g.ys.prototype.show=function(){g.W.prototype.show.call(this);g.NA(this.J)};
g.ys.prototype.hide=function(){this.N.stop();g.W.prototype.hide.call(this)};
g.ys.prototype.O6=function(e){e?g.G(this.C.getPlayerStateObject(),64)||wC(this,IM(),"Play"):(e=this.C.getVideoData(),e.isLivePlayback&&!e.allowLiveDvr?wC(this,v$H(),"Stop live playback"):wC(this,XV1(),"Pause"))};g.b(GTF,g.W);g.J=GTF.prototype;g.J.jt=function(e){e?this.J=lh(this.C,this.element,null):(this.J=this.J,this.J(),this.J=null)};
g.J.WY=function(){this.C.X().T("player_new_info_card_format")&&g.J4(this.C.getRootNode(),"ytp-cards-teaser-shown")&&!g.hR(this.C.X())||(this.N.show(),g.CE("iv-button-shown"))};
g.J.rT=function(){g.CE("iv-button-hidden");this.N.hide()};
g.J.e1=function(){return this.Og&&this.N.state!==4};
g.J.fh=function(){this.J&&this.J();g.W.prototype.fh.call(this)};
g.J.d79=function(){g.CE("iv-button-mouseover")};
g.J.onClicked=function(e){this.C.CO();var N=g.J4(this.C.getRootNode(),"ytp-cards-teaser-shown");g.CE("iv-teaser-clicked",N);var y;if((y=this.C.getVideoData())==null?0:g.XU(y)){var w;e=(w=this.C.getVideoData())==null?void 0:g.PF(w);(e==null?0:e.onIconTapCommand)&&this.C.Mg("innertubeCommand",e.onIconTapCommand)}else w=e.screenX===0&&e.screenY===0,this.C.P4(!this.C.fz(),w,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.b(UVP,g.W);g.J=UVP.prototype;g.J.hh=function(){this.C.CO()&&this.C.fz()&&this.e1()&&this.rT()};
g.J.VN=function(){this.rT();!this.C.CO()&&this.C.X().T("enable_error_corrections_infocards_icon_web")&&this.rQ.rT();g.CE("iv-teaser-clicked",this.J!=null);if(this.onClickCommand)this.C.Mg("innertubeCommand",this.onClickCommand);else{var e;((e=this.C.getVideoData())==null?0:g.XU(e))||this.C.P4(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.J.JL=function(){g.CE("iv-teaser-mouseover");this.J&&this.J.stop()};
g.J.s2t=function(e){this.C.X().T("player_new_info_card_format")&&!g.hR(this.C.X())?this.rQ.rT():this.C.X().T("enable_error_corrections_infocards_icon_web")&&this.rQ.WY();this.J||!e||this.C.fz()||this.N&&this.N.isActive()||(this.WY(e),g.CE("iv-teaser-shown"))};
g.J.WY=function(e){this.onClickCommand=e.onClickCommand;this.updateValue("text",e.teaserText);this.element.setAttribute("dir",g.bn(e.teaserText));this.j.show();this.N=new g.e6(function(){g.pi(this.C.getRootNode(),"ytp-cards-teaser-shown");this.C.T("player_new_info_card_format")&&!g.hR(this.C.X())&&this.rQ.rT();this.EZ()},0,this);
this.N.start();this.rQ.jt(!1);this.J=new g.e6(this.rT,580+e.durationMs,this);this.J.start();this.Z.push(this.listen("mouseover",this.Wb,this));this.Z.push(this.listen("mouseout",this.Us,this))};
g.J.EZ=function(){if(!this.C.X().T("player_new_info_card_format")&&g.hR(this.C.X())&&this.Og){var e=this.rQ.element.offsetLeft,N=g.H4("ytp-cards-button-icon"),y=this.C.isFullscreen()?54:36;if(N){var w=e+N.offsetLeft;this.element.style.marginRight=this.rQ.element.offsetParent.offsetWidth-e-N.offsetLeft-y+"px";this.element.style.marginLeft=w+"px"}}};
g.J.X5=function(){g.hR(this.C.X())&&this.C.xx()&&this.Og&&this.D.start()};
g.J.Wb=function(){this.G.stop();this.J&&this.J.isActive()&&this.U.start()};
g.J.Us=function(){this.U.stop();this.J&&!this.J.isActive()&&this.G.start()};
g.J.m7q=function(){this.J&&this.J.stop()};
g.J.B7Z=function(){this.rT()};
g.J.Fp=function(){this.rT()};
g.J.rT=function(){!this.J||this.K&&this.K.isActive()||(g.CE("iv-teaser-hidden"),this.j.hide(),g.re(this.C.getRootNode(),"ytp-cards-teaser-shown"),this.K=new g.e6(function(){for(var e=g.c(this.Z),N=e.next();!N.done;N=e.next())this.CX(N.value);this.Z=[];this.J&&(this.J.dispose(),this.J=null);this.rQ.jt(!0);!this.C.CO()&&this.C.X().T("enable_error_corrections_infocards_icon_web")&&this.rQ.rT()},330,this),this.K.start())};
g.J.e1=function(){return this.Og&&this.j.state!==4};
g.J.fh=function(){var e=this.C.getRootNode();e&&g.re(e,"ytp-cards-teaser-shown");g.pq(this.N,this.K,this.J);g.W.prototype.fh.call(this)};var kZ={},Ak=(kZ.BUTTON="ytp-button",kZ.TITLE_NOTIFICATIONS="ytp-title-notifications",kZ.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",kZ.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",kZ.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",kZ);g.b(LYJ,g.W);LYJ.prototype.onClick=function(){this.api.logClick(this.element);var e=!this.J;this.updateValue("label",e?"Stop getting notified about every new video":"Get notified about every new video");this.updateValue("pressed",e);s5M(this,e)};g.jM("yt.pubsub.publish",g.CE);g.b(g.TP,g.W);g.TP.prototype.j=function(){window.location.reload()};
g.TP.prototype.J=function(){g.pi(this.element,"ytp-sb-subscribed")};
g.TP.prototype.N=function(){g.re(this.element,"ytp-sb-subscribed")};g.b(wR5,g.W);g.J=wR5.prototype;g.J.Fhg=function(e){this.api.logClick(this.N);var N=this.api.X();N.N||N.Bk?JP5(this)&&(this.isExpanded()?this.EN():this.Ro()):g.qm(window,yP0(this));e.preventDefault()};
g.J.vT=function(){Tln(this);this.channel.classList.remove("ytp-title-expanded")};
g.J.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.J.Ro=function(){if(JP5(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.K&&this.K.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var e=this.api.getVideoData();this.J&&e.Z3&&e.subscribed&&(this.J.show(),
this.api.logVisibility(this.J.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.J.EN=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.K&&this.K.start()};
g.J.GZ=function(){var e=this.api.X();this.KX(!this.api.isEmbedsShortsMode());var N=this.api.getVideoData(),y=this.api.X(),w=this.api.getVideoData();this.j=!1;var E=!!w.videoId&&!!w.SR&&!!w.profilePicture;this.api.getPresentingPlayerType()===2?this.j=E&&!!w.isListed&&!!w.author:g.hR(y)&&(this.j=E&&!g.KX(w)&&!y.K&&!(y.U&&this.api.getPlayerSize().width<200));y=N.profilePicture;e=g.hR(e)?N.expandedTitle:N.author;y=y===void 0?"":y;e=e===void 0?"":e;this.j?(this.G!==y&&(this.N.style.backgroundImage="url("+
y+")",this.G=y),this.updateValue("channelLogoLabel",g.SO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:e})),g.pi(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.re(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.N,this.j&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=N.iI);this.updateValue("expandedTitle",N.expandedTitle);this.updateValue("expandedSubtitle",N.expandedSubtitle)};
g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.N,this.j&&e)};g.b(Jk,g.uh);Jk.prototype.J=function(e){e.defaultPrevented||e.keyCode!==39||(this.element.click(),e.preventDefault())};g.b(pRM,g.W);g.J=pRM.prototype;g.J.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.J.hide=function(){g.W.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.J.N$=function(e){var N=vE(e),y=g.Ex(this.closeButton.element,N),w=g.Ex(this.element,N);e=this.J&&g.Ex(this.J,N)&&g.dh(e);N&&(w||e)&&!y||this.hide()};
g.J.kE=function(){er1(g.ud(this.Lh.X()),"user_info_panel",function(){window.location.reload()})};
g.J.GZ=function(){var e=this.Lh.X(),N={USER_NAME:e.userDisplayName,USER_EMAIL:e.j_};this.updateValue("icon",PCJ());this.updateValue("watchingAsUsername",g.SO("Watching as $USER_NAME",N));e.j_?this.updateValue("watchingAsEmail",g.SO("($USER_EMAIL)",N)):this.updateValue("watchingAsEmail","")};g.b(rPH,g.x7);g.J=rPH.prototype;g.J.va=function(){this.x_.rT()};
g.J.tnP=function(){sc(this.KW.element)};
g.J.zcG=function(){CJ(this,this.C.getDebugText(!0))&&wC(this.XS,bj())};
g.J.cz9=function(){CJ(this,this.C.getVideoEmbedCode())&&wC(this.XS,F19());this.C.logClick(this.sT.element);xN("EMBED",this.C.getVideoData().videoId,this.C.getPlaylistId()||"")};
g.J.aBP=function(){CJ(this,this.C.getVideoUrl(!0,!0))&&wC(this.XS,Bq());this.C.logClick(this.getVideoUrl.element);xN("COPY_PASTE",this.C.getVideoData().videoId,this.C.getPlaylistId()||"")};
g.J.S2Z=function(){CJ(this,this.C.getVideoUrl(!1,!0))&&wC(this.XS,Bq());this.C.logClick(this.Kl.element);xN("COPY_PASTE",this.C.getVideoData().videoId,this.C.getPlaylistId()||"")};
g.J.onLoopChange=function(e){var N;(N=this.pc)==null||Rq(N,e)};
g.J.Lhh=function(){this.C.setLoopVideo(this.pc.getValue());this.x_.rT();this.C.logClick(this.pc.element)};
g.J.yaB=function(e){this.C.reportPlaybackIssue();if(g.G9(e,this.C,!ZW(this.C.X()))){e=this.C;var N=e.app.getFeedbackProductData();e.pC("onFeedbackStartRequest",N);e.isFullscreen()&&e.toggleFullscreen()}this.x_.rT()};
g.J.WsP=function(){g.NU(this.C,"isVideoInfoVisible",[])?g.NU(this.C,"hideVideoInfo",[]):g.NU(this.C,"showVideoInfo",[]);this.x_.rT()};
g.J.UK9=function(){this.A3&&(this.Xd||(this.Xd=new pRM(this.C,this.A3.element),g.Q(this,this.Xd),g.Pb(this.C,this.Xd.element,4)),this.Xd.show(),this.x_.rT(),this.C.logClick(this.A3.element))};
g.J.onVideoDataChange=function(e,N){this.qa(N)};
g.J.qa=function(e){var N=this.C.X(),y=this.C.getPresentingPlayerType()===2,w=!y||e.isListed;w=!N.Kh&&!!e.videoId&&w;N.playerStyle!=="play"?N="https://support.google.com/youtube/?p=report_playback":(N={contact_type:"playbackissue",html5:1,ei:e.eventId,v:e.videoId,p:"movies_playback"},e.N&&(N.fmt=e.N.itag),e.clientPlaybackNonce&&(N.cpn=e.clientPlaybackNonce),e.partnerId&&(N.partnerid=e.partnerId),N=g.Qb("//support.google.com/googleplay/",N));this.sT.KX(w&&e.allowEmbed);this.getVideoUrl.KX(w);this.Kl.KX(w&&
!e.isLivePlayback);this.nu.Ja(N,"href");var E;(E=this.pc)==null||E.KX(!e.isLivePlayback&&!y);var A;(A=this.A3)==null||A.KX(!y)};
g.J.nx=function(e){g.x7.prototype.nx.call(this,e);this.C.logVisibility(this.sT.element,e);this.C.logVisibility(this.getVideoUrl.element,e);this.C.logVisibility(this.Kl.element,e);this.pc&&this.C.logVisibility(this.pc.element,e);this.A3&&this.C.logVisibility(this.A3.element,e)};g.b(Mo5,g.n$);g.J=Mo5.prototype;g.J.tL=function(e){var N=vE(e);if(!(N&&(JL(N,"a")||JL(N,null,"ytp-no-contextmenu"))||this.Og)){var y;this.qg=(e=(y=e.touches)==null?void 0:y.item(0))?new g.ri(e.clientX,e.clientY):new g.ri(0,0);this.Kh.start()}};
g.J.Y4=function(){this.Kh.stop()};
g.J.Ka1=function(){this.open(this.qg)};
g.J.h6=function(){if(this.K&&$sP(this.K)){var e=$sP(this.K).element;e.tabIndex=-1;e.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.J.show=function(){this.K||(this.K=new rPH(this.C,this,this.XS),g.Q(this,this.K),g.Q_(this,this.K));this.K.onLoopChange(this.C.getLoopVideo());g.n$.prototype.show.call(this);this.C.logVisibility(this.element,!0);this.K.nx(!0)};
g.J.hide=function(){Y4P(this);g.n$.prototype.hide.call(this);this.C.logVisibility(this.element,!1);this.K&&this.K.nx(!1)};
g.J.kit=function(e){var N=vE(e);this.Og||N&&(JL(N,"a")||JL(N,null,"ytp-no-contextmenu"))||(e.preventDefault(),this.open(new g.ri(e.pageX,e.pageY)))};
g.J.WY=function(e){if(e){var N=e.getBoundingClientRect();this.open(new g.ri(N.x,N.y))}g.n$.prototype.WY.call(this,e)};
g.J.open=function(e){lgs(this);var N=this.C.getVideoData();g.Y1(this.element,"ytp-dni",N.hs);this.element.style.left="";this.element.style.top="";e.x++;e.y++;g.n$.prototype.WY.call(this);var y=gZ(this).body;N=new s7(0,Infinity,Infinity,0);var w=xY(y);for(var E=w.J.body,A=w.J.documentElement,T=yQ1(w.J);y=FGE(y);)if((!g.RB||y.clientHeight!=0||y!=E)&&y!=E&&y!=A&&F0(y,"overflow")!="visible"){var p=g.hp(y),C=new g.ri(y.clientLeft,y.clientTop);p.x+=C.x;p.y+=C.y;N.top=Math.max(N.top,p.y);N.right=Math.min(N.right,
p.x+y.clientWidth);N.bottom=Math.min(N.bottom,p.y+y.clientHeight);N.left=Math.max(N.left,p.x)}E=T.scrollLeft;T=T.scrollTop;N.left=Math.max(N.left,E);N.top=Math.max(N.top,T);w=NPJ(w.J.defaultView||window);N.right=Math.min(N.right,E+w.width);N.bottom=Math.min(N.bottom,T+w.height);w=N.top>=0&&N.left>=0&&N.bottom>N.top&&N.right>N.left?N:null;N=this.size;e=e.clone();N=N.clone();w&&(T=N,E=5,(E&65)==65&&(e.x<w.left||e.x>=w.right)&&(E&=-2),(E&132)==132&&(e.y<w.top||e.y>=w.bottom)&&(E&=-5),e.x<w.left&&E&1&&
(e.x=w.left),E&16&&(A=e.x,e.x<w.left&&(e.x=w.left),e.x+T.width>w.right&&(T.width=Math.min(w.right-e.x,A+T.width-w.left),T.width=Math.max(T.width,0))),e.x+T.width>w.right&&E&1&&(e.x=Math.max(w.right-T.width,w.left)),e.y<w.top&&E&4&&(e.y=w.top),E&32&&(A=e.y,e.y<w.top&&(e.y=w.top),e.y+T.height>w.bottom&&(T.height=Math.min(w.bottom-e.y,A+T.height-w.top),T.height=Math.max(T.height,0))),e.y+T.height>w.bottom&&E&4&&(e.y=Math.max(w.bottom-T.height,w.top)));w=new g.pK(0,0,0,0);w.left=e.x;w.top=e.y;w.width=
N.width;w.height=N.height;g.od(this.element,new g.ri(w.left,w.top));g.g9(this.j);this.j.Y(gZ(this),"contextmenu",this.q2q);this.j.Y(this.C,"fullscreentoggled",this.onFullscreenToggled);this.j.Y(this.C,"pageTransition",this.Ks)};
g.J.q2q=function(e){if(!e.defaultPrevented){var N=vE(e);g.Ex(this.element,N)||this.rT();this.C.X().disableNativeContextMenu&&e.preventDefault()}};
g.J.onFullscreenToggled=function(){this.rT();lgs(this)};
g.J.Ks=function(){this.rT()};g.b(rC,g.W);rC.prototype.onClick=function(){var e=this,N,y,w,E;return g.f(function(A){if(A.J==1)return N=e.api.X(),y=e.api.getVideoData(),w=e.api.getPlaylistId(),E=N.getVideoUrl(y.videoId,w,void 0,!0),g.D(A,o90(e,E),2);A.N&&S4P(e);e.api.logClick(e.element);g.hn(A)})};
rC.prototype.GZ=function(){this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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=F8M(this);g.Y1(this.element,"ytp-copylink-button-visible",this.visible);
this.KX(this.visible);this.tooltip.xp();this.api.logVisibility(this.element,this.visible&&this.L)};
rC.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};
rC.prototype.fh=function(){g.W.prototype.fh.call(this);g.re(this.element,"ytp-copylink-button-visible")};g.b($y,g.W);$y.prototype.show=function(){g.W.prototype.show.call(this);g.NA(this.N)};
$y.prototype.hide=function(){this.j.stop();this.K=0;this.hW("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.re(this.element,"ytp-chapter-seek");g.re(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
$y.prototype.mw=function(e,N,y,w){this.K=e===this.G?this.K+w:w;this.G=e;var E=e===-1?this.D:this.U;E&&this.C.logClick(E);this.Z?this.N.stop():g.we(this.N);this.j.start();this.element.setAttribute("data-side",e===-1?"back":"forward");var A=3*this.C.Fz().getPlayerSize().height;E=this.C.Fz().getPlayerSize();E=E.width/3-3*E.height;this.J.style.width=A+"px";this.J.style.height=A+"px";e===1?(this.J.style.left="",this.J.style.right=E+"px"):e===-1&&(this.J.style.right="",this.J.style.left=E+"px");var T=A*
2.5;A=T/2;var p=this.hW("ytp-doubletap-ripple");p.style.width=T+"px";p.style.height=T+"px";e===1?(e=this.C.Fz().getPlayerSize().width-N+Math.abs(E),p.style.left="",p.style.right=e-A+"px"):e===-1&&(e=Math.abs(E)+N,p.style.right="",p.style.left=e-A+"px");p.style.top="calc((33% + "+Math.round(y)+"px) - "+A+"px)";if(y=this.hW("ytp-doubletap-ripple"))y.classList.remove("ytp-doubletap-ripple"),y.classList.add("ytp-doubletap-ripple");b73(this,this.Z?this.K:w)};g.b(cPs,qJ);g.J=cPs.prototype;g.J.j6=function(e){this.aq||(this.aq=new Hs(this.C),g.Q(this,this.aq));var N,y;if((N=this.dT)==null?0:(y=N.menu)==null?0:y.menuRenderer)this.aq.open(this.dT.menu.menuRenderer,e.target),e.preventDefault()};
g.J.Iy=function(){return!!this.J};
g.J.xZ=function(){return!!this.J};
g.J.VW=function(e){e.target===this.overflowButton.element?e.preventDefault():(this.jn&&this.C.Mg("innertubeCommand",this.jn),this.vJ(!1))};
g.J.UA=function(){this.vJ(!0);var e,N;((e=this.J)==null?0:(N=e.bannerData)==null?0:N.dismissedStatusKey)&&this.Xz.push(this.J.bannerData.dismissedStatusKey);this.BS()};
g.J.Es=function(){this.BS();Fh(this)};
g.J.mGk=function(e){var N=this,y;if(e.id!==((y=this.J)==null?void 0:y.identifier)){this.BS();y=g.c(this.l9);for(var w=y.next();!w.done;w=y.next()){var E=w.value,A=void 0,T=void 0;if((w=(A=E)==null?void 0:(T=A.bannerData)==null?void 0:T.itemData)&&E.identifier===e.id){T=A=void 0;var p=((A=E)==null?void 0:(T=A.bannerData)==null?void 0:T.dismissedStatusKey)||"";if(this.Xz.includes(p))break;this.J=E;this.banner.element.setAttribute("aria-label",w.accessibilityLabel||"");w.trackingParams&&(this.j=!0,this.C.setTrackingParams(this.badge.element,
w.trackingParams));this.D.show();ur(this);this.i9.KX(!w.stayInApp);VoF(this);Bl1(this);lo(this);this.jn=g.m(w.onTapCommand,ZL);if(E=g.m(w.menuOnTap,ZL))this.dT=g.m(E,uFw);E=void 0;this.banner.update({thumbnail:(E=(w.thumbnailSources||[])[0])==null?void 0:E.url,title:w.productTitle,price:w.priceReplacementText?w.priceReplacementText:w.price,salesOriginalPrice:ds0(this),priceDropReferencePrice:Ig1(this),promotionText:PKJ(this),priceA11yText:v9J(this),affiliateDisclaimer:w.affiliateDisclaimer,vendor:zrH(this)});
p=T=A=E=void 0;((E=w)==null?0:(A=E.hiddenProductOptions)==null?0:A.showDropCountdown)&&((T=w)==null?0:(p=T.hiddenProductOptions)==null?0:p.dropTimestampMs)&&(this.Y_=new g.e6(function(){g9n(N)},1E3),this.i9.hide(),this.countdownTimer.show(),g9n(this));
this.C.T("web_player_enable_featured_product_banner_exclusives_on_desktop")&&kIM(this)&&(this.pX=new g.e6(function(){XRF(N)},1E3),XRF(this))}}}};
g.J.BS=function(){this.J&&(this.J=void 0,this.xK())};
g.J.onVideoDataChange=function(e,N){var y=this;e==="dataloaded"&&Fh(this);var w,E,A;e=g.m((w=N.getWatchNextResponse())==null?void 0:(E=w.playerOverlays)==null?void 0:(A=E.playerOverlayRenderer)==null?void 0:A.productsInVideoOverlayRenderer,fZw);this.overflowButton.show();this.dismissButton.hide();var T=e==null?void 0:e.featuredProductsEntityKey;this.trendingOfferEntityKey=e==null?void 0:e.trendingOfferEntityKey;this.l9.length||(Ds0(this,T),lo(this));var p;(p=this.PY)==null||p.call(this);this.PY=g.WH.subscribe(function(){Ds0(y,
T);lo(y)})};
g.J.fh=function(){Fh(this);VoF(this);Bl1(this);qJ.prototype.fh.call(this)};g.b(Z7M,g.W);Z7M.prototype.onClick=function(){this.C.logClick(this.element,this.N)};g.b(xsH,g.Dq);g.J=xsH.prototype;g.J.show=function(){g.Dq.prototype.show.call(this);this.C.publish("infopaneldetailvisibilitychange",!0);this.C.logVisibility(this.element,!0);jjE(this,!0)};
g.J.hide=function(){g.Dq.prototype.hide.call(this);this.C.publish("infopaneldetailvisibilitychange",!1);this.C.logVisibility(this.element,!1);jjE(this,!1)};
g.J.getId=function(){return this.j};
g.J.P2=function(){return this.itemData.length};
g.J.onVideoDataChange=function(e,N){if(N){var y,w,E,A;this.update({title:((y=N.ib)==null?void 0:(w=y.title)==null?void 0:w.content)||"",body:((E=N.ib)==null?void 0:(A=E.bodyText)==null?void 0:A.content)||""});var T;e=((T=N.ib)==null?void 0:T.trackingParams)||null;this.C.setTrackingParams(this.element,e);T=g.c(this.itemData);for(e=T.next();!e.done;e=T.next())e.value.dispose();this.itemData=[];var p;if((p=N.ib)==null?0:p.ctaButtons)for(N=g.c(N.ib.ctaButtons),p=N.next();!p.done;p=N.next())if(p=g.m(p.value,
vwX))p=new Z7M(this.C,p,this.J),p.WG&&(this.itemData.push(p),p.yB(this.items))}};
g.J.fh=function(){this.hide();g.Dq.prototype.fh.call(this)};g.b(ms5,g.W);g.J=ms5.prototype;g.J.onVideoDataChange=function(e,N){Qj5(this,N);this.k9&&K89(this,this.k9)};
g.J.q$=function(e){var N=this.C.getVideoData();this.videoId!==N.videoId&&Qj5(this,N);K89(this,e.state);this.k9=e.state};
g.J.qW=function(e){(this.j=e)?this.hide():this.J&&this.show()};
g.J.wH=function(){this.N||this.WY();this.showControls=!0};
g.J.bU=function(){this.N||this.rT();this.showControls=!1};
g.J.WY=function(){var e;if((e=this.C)==null?0:e.T("embeds_web_enable_info_panel_sizing_fix")){var N;e=(N=this.C)==null?void 0:N.getPlayerSize();N=e.width<380;var y;e=e.height<(((y=this.C)==null?0:y.isEmbedsShortsMode())?400:280);var w,E;if((((w=this.C)==null?0:w.getPlayerStateObject().isCued())||((E=this.C)==null?0:g.G(E.getPlayerStateObject(),1024)))&&N&&e)return}this.J&&!this.j&&(this.K.show(),this.C.publish("infopanelpreviewvisibilitychange",!0),this.C.logVisibility(this.element,!0))};
g.J.rT=function(){this.J&&!this.j&&(this.K.hide(),this.C.publish("infopanelpreviewvisibilitychange",!1),this.C.logVisibility(this.element,!1))};
g.J.eih=function(){this.N=!1;this.showControls||this.rT()};var nb_={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(nb_).reduce(function(e,N){e[nb_[N]]=N;return e},{});
var QFk={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(QFk).reduce(function(e,N){e[QFk[N]]=N;return e},{});
var mgF={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(mgF).reduce(function(e,N){e[mgF[N]]=N;return e},{});var Hmf,KCZ;Hmf=[{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"}];KCZ=[{option:0,text:Sz(0)},{option:.25,text:Sz(.25)},{option:.5,text:Sz(.5)},{option:.75,text:Sz(.75)},{option:1,text:Sz(1)}];
g.c6=[{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:Hmf},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Sz(.5)},{option:-1,text:Sz(.75)},{option:0,text:Sz(1)},{option:1,text:Sz(1.5)},{option:2,
text:Sz(2)},{option:3,text:Sz(3)},{option:4,text:Sz(4)}]},{option:"background",text:"Background color",options:Hmf},{option:"backgroundOpacity",text:"Background opacity",options:KCZ},{option:"windowColor",text:"Window color",options:Hmf},{option:"windowOpacity",text:"Window opacity",options:KCZ},{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:Sz(.25)},{option:.5,text:Sz(.5)},{option:.75,text:Sz(.75)},{option:1,text:Sz(1)}]}];var WCZ=[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.b(L8J,g.fd);g.J=L8J.prototype;
g.J.Nn=function(e){e.repeat||(this.K.Pz=!1);var N=!1,y=e.keyCode,w=vE(e),E=!e.altKey&&!e.ctrlKey&&!e.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||WCZ.includes(y)),A=!1,T=!1,p=this.api.X();e.defaultPrevented?(E=!1,T=!0):p.jN&&!this.api.isMutedByEmbedsMutedAutoplay()&&(E=!1);if(y===9)N=!0;else{if(w)switch(y){case 32:case 13:if(w.tagName==="BUTTON"||w.tagName==="A"||w.tagName==="INPUT")N=!0,E=!1;else if(E){var C=w.getAttribute("role");!C||C!=="option"&&C!=="button"&&C.indexOf("menuitem")!==0||
(N=!0,w.click(),A=!0)}this.api.T("enable_key_press_enter_logging")&&(w=g.It(),C=hP0(247608),w&&C&&g.NR(at)(void 0,w,C,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",void 0,void 0));break;case 37:case 39:case 36:case 35:N=w.getAttribute("role")==="slider";break;case 38:case 40:C=w.getAttribute("role"),w=y===38?w.previousSibling:w.nextSibling,C==="slider"?N=!0:E&&(C==="option"?(w&&w.getAttribute("role")==="option"&&w.focus(),A=N=!0):C&&C.indexOf("menuitem")===0&&(w&&w.hasAttribute("role")&&w.getAttribute("role").indexOf("menuitem")===
0&&w.focus(),A=N=!0))}if(E&&!A)switch(y){case 38:A=Math.min(this.api.getVolume()+5,100);EL(this.XS,A,!1);this.api.setVolume(A);T=A=!0;break;case 40:A=Math.max(this.api.getVolume()-5,0);EL(this.XS,A,!0);this.api.setVolume(A);T=A=!0;break;case 36:this.api.Bf()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),T=A=!0);break;case 35:this.api.Bf()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),T=A=!0)}}N&&bo(this,!0);(N||T)&&this.tT.Cd();(A||
E&&this.handleGlobalKeyDown(y,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code,e.repeat))&&e.preventDefault();p.G&&(e={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,handled:e.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Y9("onKeyPress",e))};
g.J.ke=function(e){var N=e.keyCode;(!this.api.T("web_player_spacebar_control_bugfix")||this.api.T("web_player_spacebar_control_bugfix")&&!this.j)&&this.handleGlobalKeyUp(N,e.shiftKey,e.ctrlKey,e.altKey,e.metaKey,e.key,e.code)&&e.preventDefault()};
g.J.handleGlobalKeyUp=function(e,N,y,w,E,A,T){this.api.publish("keyboardserviceglobalkeyup",{keyCode:e,shiftKey:N,ctrlKey:y,altKey:w,metaKey:E,key:A,code:T});N=!1;if(this.K.Pz)return N;(y=g.Bb(this.api.jR()))&&(y=y.ud)&&y.Og&&(y.FJ(e),N=!0);switch(e){case 9:bo(this,!0);N=!0;break;case 32:if(this.api.T("web_speedmaster_spacebar_control")&&(!this.api.T("web_player_spacebar_control_bugfix")&&!this.j||this.api.T("web_player_spacebar_control_bugfix"))&&!this.api.X().jN){var p,C;e=(p=this.progressBar)==
null?void 0:(C=p.N)==null?void 0:C.isEnabled;N=this.uX(e)}}return N};
g.J.handleGlobalKeyDown=function(e,N,y,w,E,A,T,p){p||(this.K.Pz=!1);var C=!1,r=this.api.X();if(r.jN&&!this.api.isMutedByEmbedsMutedAutoplay())return C;var Y=g.Bb(this.api.jR());if(Y&&(Y=Y.ud)&&Y.Og)switch(e){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:C=Y.pn(e)}r.Z||C||(C=A||String.fromCharCode(e).toLowerCase(),this.N+=C,"awesome".indexOf(this.N)===0?(C=!0,7===this.N.length&&v01(this.api.getRootNode(),"ytp-color-party")):(this.N=C,C="awesome".indexOf(this.N)===0));if(!C&&(!this.api.isMutedByEmbedsMutedAutoplay()||
WCZ.includes(e))){var M=this.api.getVideoData(),l,F;Y=(l=this.progressBar)==null?void 0:(F=l.N)==null?void 0:F.isEnabled;l=M?M.ll:[];F=HT?w:y;switch(e){case 80:N&&!r.Zl&&(wC(this.XS,Im3(),"Previous"),this.api.previousVideo(),C=!0);break;case 78:N&&!r.Zl&&(wC(this.XS,X3(),"Next"),this.api.nextVideo(),C=!0);break;case 74:this.api.Bf()&&(this.api.startSeekCsiAction(),this.J?this.api.T("enable_key_press_seek_logging")?(C=hk(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),Yy(this.J,
-1,10,C)):Yy(this.J,-1,10):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0);break;case 76:this.api.Bf()&&(this.api.startSeekCsiAction(),this.J?this.api.T("enable_key_press_seek_logging")?(C=hk(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),Yy(this.J,1,10,C)):Yy(this.J,1,10):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0);break;case 37:this.api.Bf()&&(this.api.startSeekCsiAction(),F?(F=Rrn(l,this.api.getCurrentTime()*1E3),F!==-1&&this.J!=null&&(hrJ(this.J,-1,l[F].title),this.api.seekTo(l[F].startTime/1E3,void 0,void 0,void 0,53),C=!0)):(this.J?this.api.T("enable_key_press_seek_logging")?(C=hk(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),Yy(this.J,-1,5,C)):Yy(this.J,-1,5):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0));break;case 39:this.api.Bf()&&(this.api.startSeekCsiAction(),F?(F=O71(l,this.api.getCurrentTime()*1E3),F!==-1&&this.J!=null&&(hrJ(this.J,1,l[F].title),this.api.seekTo(l[F].startTime/1E3,void 0,void 0,void 0,52),C=!0)):(this.J!=null?this.api.T("enable_key_press_seek_logging")?(C=hk(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),Yy(this.J,1,5,C)):Yy(this.J,1,5):wC(this.XS,{S:"svg",V:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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),C=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),EL(this.XS,this.api.getVolume(),!1)):(this.api.mute(),EL(this.XS,0,!0));C=!0;break;case 32:C=this.api.T("web_speedmaster_spacebar_control")?!this.api.X().Zl:this.uX(Y);break;case 75:C=this.uX(Y);break;case 190:N?r.enableSpeedOptions&&agJ(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C+.25,!0),OUH(this.XS,!1),C=!0):this.api.Bf()&&(this.step(1),C=!0);break;case 188:N?
r.enableSpeedOptions&&agJ(this)&&(C=this.api.getPlaybackRate(),this.api.setPlaybackRate(C-.25,!0),OUH(this.XS,!0),C=!0):this.api.Bf()&&(this.step(-1),C=!0);break;case 70:Osn(this.api)&&(this.api.toggleFullscreen().catch(function(){}),C=!0);
break;case 27:Y?(this.progressBar.v5(),C=!0):this.Z()&&(C=!0)}if(r.controlsType!=="3")switch(e){case 67:g.fZ(this.api.jR())&&(r=this.api.getOption("captions","track"),this.api.toggleSubtitles(),RVF(this.XS,!r||r&&!r.displayName),C=!0);break;case 79:ky(this,"textOpacity");break;case 87:ky(this,"windowOpacity");break;case 187:case 61:ky(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:ky(this,"fontSizeIncrement",!0,!0)}var S;N||y||w||(e>=48&&e<=57?S=e-48:e>=96&&e<=105&&(S=e-96));S!=null&&this.api.Bf()&&
(this.api.startSeekCsiAction(),r=this.api.getProgressState(),this.api.seekTo(S/10*(r.seekableEnd-r.seekableStart)+r.seekableStart,void 0,void 0,void 0,81),C=!0);C&&this.tT.Cd()}this.j||this.api.publish("keyboardserviceglobalkeydown",{keyCode:e,shiftKey:N,ctrlKey:y,altKey:w,metaKey:E,key:A,code:T,repeat:p},this.K);return C};
g.J.step=function(e){this.api.Bf();if(this.api.getPlayerStateObject().isPaused()){var N=this.api.getVideoData().N;N&&(N=N.video)&&this.api.seekBy(e/(N.fps||30),void 0,void 0,e>0?77:78)}};
g.J.uX=function(e){if(!this.api.X().Zl){var N;var y,w=(N=this.api.getVideoData())==null?void 0:(y=N.getPlayerResponse())==null?void 0:y.playabilityStatus;if(w){var E;N=((E=g.m(w.miniplayer,mMV))==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else N=!1;N&&this.api.Mg("onExpandMiniplayer");e?this.progressBar.Z5():(e=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.XS.O6(e),e?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.J.fh=function(){g.we(this.L);g.fd.prototype.fh.call(this)};g.b(g.B6,g.W);g.B6.prototype.f2=N3(11);
g.B6.prototype.GZ=function(){var e=this.C.X(),N=e.K||this.C.T("web_player_hide_overflow_button_if_empty_menu")&&this.Lw.isEmpty();e=g.hR(e)&&g.cb(this.C)&&g.G(this.C.getPlayerStateObject(),128);var y=this.C.getPlayerSize();this.visible=this.C.xx()&&!e&&y.width>=240&&!g.KX(this.C.getVideoData())&&!N&&!this.J&&!this.C.isEmbedsShortsMode();g.Y1(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.C.xp();this.C.logVisibility(this.element,this.visible&&this.L)};
g.B6.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.C.logVisibility(this.element,this.visible&&e)};
g.B6.prototype.fh=function(){g.W.prototype.fh.call(this);g.re(this.element,"ytp-overflow-button-visible")};g.b(e7s,g.Dq);g.J=e7s.prototype;g.J.OF=function(e){e=vE(e);g.Ex(this.element,e)&&(g.Ex(this.J,e)||g.Ex(this.closeButton,e)||VL(this))};
g.J.rT=function(){g.Dq.prototype.rT.call(this);this.C.Zk(this.element)};
g.J.show=function(){this.Og&&this.C.publish("OVERFLOW_PANEL_OPENED");g.Dq.prototype.show.call(this);this.element.setAttribute("aria-modal","true");yMF(this,!0)};
g.J.hide=function(){g.Dq.prototype.hide.call(this);this.element.removeAttribute("aria-modal");yMF(this,!1)};
g.J.onFullscreenToggled=function(e){!e&&this.e1()&&VL(this)};
g.J.isEmpty=function(){return this.actionButtons.length===0};
g.J.focus=function(){for(var e=g.c(this.actionButtons),N=e.next();!N.done;N=e.next())if(N=N.value,N.Og){N.focus();break}};g.b(wvH,g.W);wvH.prototype.onClick=function(e){g.G9(e,this.api)&&this.api.playVideoAt(this.index)};g.b(ELH,g.Dq);g.J=ELH.prototype;g.J.show=function(){g.Dq.prototype.show.call(this);this.J.Y(this.api,"videodatachange",this.BR);this.J.Y(this.api,"onPlaylistUpdate",this.BR);this.BR()};
g.J.hide=function(){g.Dq.prototype.hide.call(this);g.g9(this.J);this.updatePlaylist(null)};
g.J.BR=function(){this.updatePlaylist(this.api.getPlaylist());this.api.X().K&&(this.hW("ytp-playlist-menu-title-name").removeAttribute("href"),this.K&&(this.CX(this.K),this.K=null))};
g.J.Mb=function(){var e=this.playlist,N=e.author,y=N?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",w={CURRENT_POSITION:String(e.index+1),PLAYLIST_LENGTH:String(e.getLength())};N&&(w.AUTHOR=N);this.update({title:e.title,subtitle:g.SO(y,w),playlisturl:this.api.getVideoUrl(!0)});N=e.N;if(N===this.j)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[e.index];else{y=g.c(this.playlistData);for(w=y.next();!w.done;w=y.next())w.value.dispose();
y=e.getLength();this.playlistData=[];for(w=0;w<y;w++){var E=new wvH(this.api,e,w);this.playlistData.push(E);E.yB(this.items)}this.selected=this.playlistData[e.index];this.j=N}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.J.Nx9=function(e){var N=this.api.getVideoUrl(!0);g.Uc(N,this.api,e)};
g.J.updatePlaylist=function(e){this.playlist!==e?(this.playlist&&this.playlist.unsubscribe("shuffle",this.Mb,this),this.playlist=e,this.j=null,e?(e.subscribe("shuffle",this.Mb,this),this.Mb()):this.Og&&this.hide()):this.playlist&&this.Mb()};
g.J.focus=function(){this.selected.focus()};
g.J.fh=function(){this.hide();g.Dq.prototype.fh.call(this)};g.b(Xh,g.W);Xh.prototype.hide=function(){g.W.prototype.hide.call(this);this.nx(!1);this.api.xp()};
Xh.prototype.GZ=function(){var e=g.hR(this.api.X());g.Y1(this.element,"ytp-playlist-menu-button-tiny",this.api.Fz().getPlayerSize().width<400&&!e);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.SO("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.SO("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Og||(this.show(),
this.api.xp()),this.visible=!0,this.nx(!0)):this.Og&&this.hide()};
Xh.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};
Xh.prototype.J=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.GZ,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.GZ,this);this.GZ()};g.b(AME,g.W);g.J=AME.prototype;g.J.hL=function(){this.j?C9E(this):pv3(this)};
g.J.AL=function(){this.j?(P6(this),this.G=!0):pv3(this)};
g.J.GWZ=function(){this.Z=!0;this.Fd(1);this.C.publish("promotooltipacceptbuttonclicked",this.acceptButton);P6(this);this.N&&this.C.logClick(this.acceptButton)};
g.J.wYk=function(){this.Z=!0;this.Fd(2);P6(this);this.N&&this.C.logClick(this.dismissButton)};
g.J.lU=function(e){if(this.C.getPresentingPlayerType()===1||this.C.getPresentingPlayerType()===2&&this.U){var N=!0,y=g.H4("ytp-ad-overlay-ad-info-dialog-container"),w=g.H4("ytp-ad-player-overlay-layout"),E=vE(e);if(this.K&&E&&g.Ex(this.K,E))this.K=null;else{this.C.getPresentingPlayerType()===1&&E&&Array.from(E.classList).forEach(function(C){if(C.startsWith("ytp-ad")||C.startsWith("ytp-skip-ad"))N=!1});
var A=rM1(this.tooltipRenderer),T;if(((T=this.tooltipRenderer.dismissStrategy)==null?void 0:T.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")A&&(N=N&&!g.Ex(this.element,E));else{var p;((p=this.tooltipRenderer.dismissStrategy)==null?void 0:p.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(N=A?!1:N&&g.Ex(this.element,E))}this.J&&this.Og&&!y&&!w&&(!E||N&&g.dh(e))&&(this.Z=!0,P6(this))}}};
g.J.Fd=function(e){var N=this.tooltipRenderer.promoConfig;if(N){switch(e){case 0:var y;if((y=N.impressionEndpoints)==null?0:y.length)var w=N.impressionEndpoints[0];break;case 1:w=N.acceptCommand;break;case 2:w=N.dismissCommand}var E;e=(E=g.m(w,IZw))==null?void 0:E.feedbackToken;w&&e&&(E={feedbackTokens:[e]},e=this.C.WI(),(e==null?0:SE9(w,e.c6))&&Oq(e,w,E))}};
g.J.I9=function(){this.G||(this.J||(this.J=TVH(this)),C9E(this))};
var JMJ={"ytp-settings-button":g.zV()};g.b(dC,g.W);dC.prototype.onStateChange=function(e){this.IJ(e.state)};
dC.prototype.IJ=function(e){this.KX(g.G(e,2))};
dC.prototype.onClick=function(){this.C.getPlayerStateObject().isOrWillBePlaying();this.C.playVideo()};g.b(Im,g.W);Im.prototype.onClick=function(e){this.api.logClick(this.element);var N=g.Qb(this.api.X().qg,{focusSearch:"true"}),y={};g.NU(this.api,"addEmbedsConversionTrackingParams",[y]);N=g.Qb(N,y);var w;(y=(w=this.api.getVideoData().yA)==null?void 0:w.params)&&(N=g.Qb(N,{bp:y}));g.qm(window,N);e.preventDefault()};
Im.prototype.J=function(){if(this.api.T("embeds_web_enable_search_button")){var e=this.api.X();var N=this.api.getVideoData(),y=this.api.Fz().getPlayerSize().width;e=g.hR(e)&&y>=this.N&&!e.K&&!N.isAd()&&!this.api.isEmbedsShortsMode()}else e=!1;this.visible=e;this.KX(this.visible);g.Y1(this.element,"ytp-search-button-visible",this.visible);g.Y1(this.element,"ytp-show-search-title",!this.api.xx());this.api.logVisibility(this.element,this.visible&&this.L)};
Im.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.b(g.v6,g.W);g.J=g.v6.prototype;g.J.jy=N3(8);g.J.onClick=function(){var e=this,N=this.api.X(),y=this.api.getVideoData(this.api.getPresentingPlayerType()),w=this.api.getPlaylistId();N=this.api.T("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):N.getVideoUrl(y.videoId,w,void 0,!0);if(navigator.share)try{var E=navigator.share({title:y.title,url:N});E instanceof Promise&&E.catch(function(A){Yy3(e,A)})}catch(A){A instanceof Error&&Yy3(this,A)}else this.J.Jm(),VL(this.K,this.element,!1);
this.api.logClick(this.element)};
g.J.GZ=function(){var e=this.api.X(),N=this.api.isEmbedsShortsMode();g.Y1(this.element,"ytp-show-share-title",g.hR(e)&&!N);this.J.Nr()&&N?(e=(this.api.Fz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$0(this.element,"right",e+"px")):N&&g.$0(this.element,"right","0px");this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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=$r5(this);g.Y1(this.element,"ytp-share-button-visible",this.visible);this.KX(this.visible);this.tooltip.xp();this.api.logVisibility(this.element,$r5(this)&&this.L)};
g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};
g.J.fh=function(){g.W.prototype.fh.call(this);g.re(this.element,"ytp-share-button-visible")};g.b(l_5,g.Dq);g.J=l_5.prototype;g.J.uU=function(e){e=vE(e);g.Ex(this.Z,e)||g.Ex(this.closeButton,e)||VL(this)};
g.J.rT=function(){g.Dq.prototype.rT.call(this);this.tooltip.Zk(this.element);this.api.logVisibility(this.J,!1);for(var e=g.c(this.K),N=e.next();!N.done;N=e.next())N=N.value,this.api.hasVe(N.element)&&this.api.logVisibility(N.element,!1)};
g.J.show=function(){var e=this.Og;g.Dq.prototype.show.call(this);this.GZ();e||this.api.Mg("onSharePanelOpened")};
g.J.j9q=function(){this.Og&&this.GZ()};
g.J.GZ=function(){var e=this;g.pi(this.element,"ytp-share-panel-loading");g.re(this.element,"ytp-share-panel-fail");var N=this.api.getVideoData(),y=this.api.getPlaylistId()&&this.j.checked;N.getSharePanelCommand&&Oq(this.api.WI(),N.getSharePanelCommand,{includeListId:y}).then(function(w){e.Ss()||(g.re(e.element,"ytp-share-panel-loading"),Sy_(e,w))});
N=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",N);this.updateValue("linkText",N);this.updateValue("shareLinkWithUrl",g.SO("Share link $URL",{URL:N}));sc(this.J);this.api.logVisibility(this.J,!0)};
g.J.onFullscreenToggled=function(e){!e&&this.e1()&&VL(this)};
g.J.focus=function(){this.J.focus()};
g.J.fh=function(){g.Dq.prototype.fh.call(this);FOM(this)};g.b(h7J,qJ);g.J=h7J.prototype;g.J.fh=function(){P9M(this);qJ.prototype.fh.call(this)};
g.J.VW=function(e){e.target!==this.dismissButton.element&&(this.vJ(!1),this.C.Mg("innertubeCommand",this.onClickCommand))};
g.J.UA=function(){this.Wk=!0;this.vJ(!0);this.xK()};
g.J.pGl=function(e){this.G=e;this.xK()};
g.J.onVideoDataChange=function(e,N){if(e=!!N.videoId&&this.videoId!==N.videoId)this.videoId=N.videoId,this.Wk=!1,this.qg=!0,this.U=this.Kh=!1,P9M(this),Xv5(this,!1),this.N=this.J=!1,io(this),cM1(this);if(e||!N.videoId)this.Ng=this.j=!1;var y,w;if(N==null?0:(y=N.getPlayerResponse())==null?0:(w=y.videoDetails)==null?0:w.isLiveContent)this.iP(!1);else{var E,A,T;N=g.m((E=N.getWatchNextResponse())==null?void 0:(A=E.playerOverlays)==null?void 0:(T=A.playerOverlayRenderer)==null?void 0:T.productsInVideoOverlayRenderer,
fZw);this.G=this.enabled=!1;if(N){if(E=N==null?void 0:N.featuredProductsEntityKey){A=g.WH.getState().entities;var p;if((p=Cj(A,"featuredProductsEntity",E))==null?0:p.productsData){this.iP(!1);return}}this.enabled=!0;if(!this.j){var C;p=(C=N.badgeInteractionLogging)==null?void 0:C.trackingParams;(this.j=!!p)&&this.C.setTrackingParams(this.badge.element,p||null)}if(!this.Ng){var r;if(this.Ng=!((r=N.dismissButton)==null||!r.trackingParams)){var Y;this.C.setTrackingParams(this.dismissButton.element,((Y=
N.dismissButton)==null?void 0:Y.trackingParams)||null)}}N.isContentForward&&(C=N.productsData,Xv5(this,!0),cM1(this),C=BVM(this,C),r=[],C.length>0&&r.push(C[0]),C.length>1&&(Y=new g.W({S:"div",B:"ytp-suggested-action-more-products-icon"}),g.Q(this,Y),r.push(Y),r.push.apply(r,g.B(C.slice(1)))),this.Z=new g.W({S:"div",W:r,B:"ytp-suggested-action-content-forward-container"}),g.Q(this,this.Z),this.Rq.element.append(this.Z.element));this.text=g.SY(N.text);var M;if(C=(M=N.dismissButton)==null?void 0:M.a11yLabel)this.Bk=
g.SY(C);this.onClickCommand=N.onClickCommand;this.timing=N.timing;this.wx()}c95(this);ur(this);this.xK()}};
g.J.Iy=function(){return!this.G&&this.enabled&&!this.Wk&&!this.C.xx()&&!this.SR&&(this.U||this.qg)};
g.J.Up=function(e){qJ.prototype.Up.call(this,e);if(this.J||this.N)this.timing&&zP(this.timing.preview)&&(this.J=!1,io(this),this.N=!1,io(this),this.C.MK("shopping_overlay_preview_collapsed"),this.C.MK("shopping_overlay_preview_expanded"),e=DD(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),zP(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.C.MK("shopping_overlay_expanded"),e.end=this.timing.expanded.endSec*1E3),this.C.wx([e])),
this.Kh=!0,ur(this);io(this)};
g.J.iP=function(e){(this.U=e)?(tv(this),ur(this,!1)):(P9M(this),this.Zl.start());this.xK()};
g.J.wx=function(e){var N=this.timing;e=(e===void 0?0:e)+this.C.getCurrentTime();var y=[],w=N.visible,E=N.preview;N=N.expanded;zP(w)&&(oLP(w,e),y.push(DD(w.startSec,w.endSec,"shopping_overlay_visible")));zP(E)&&(oLP(E,e),w=E.startSec+1,y.push(DD(E.startSec,w,"shopping_overlay_preview_collapsed")),y.push(DD(w,E.endSec,"shopping_overlay_preview_expanded")));zP(N)&&(oLP(N,e),y.push(DD(N.startSec,N.endSec,"shopping_overlay_expanded")));this.C.wx(y)};g.b(vLF,g.W);
vLF.prototype.GZ=function(){var e=this.api.X();this.KX(g.hR(e)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Og);var N=this.api.getVideoData(),y=!1;this.api.getPresentingPlayerType()===2?y=!!N.videoId&&!!N.isListed&&!!N.author&&!!N.SR&&!!N.profilePicture:g.hR(e)&&(y=!!N.videoId&&!!N.SR&&!!N.profilePicture&&!g.KX(N)&&!e.K&&!(e.U&&this.api.getPlayerSize().width<200));var w=N.profilePicture;e=g.hR(e)?N.expandedTitle:N.author;w=w===void 0?
"":w;e=e===void 0?"":e;y?(this.N!==w&&(this.J.style.backgroundImage="url("+w+")",this.N=w),this.updateValue("channelLogoLabel",g.SO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:e})),g.pi(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.re(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.J,y&&this.L);this.api.logVisibility(this.channelName,y&&this.L);this.subscribeButton&&(this.subscribeButton.channelId=N.iI);this.updateValue("expandedTitle",N.expandedTitle)};g.b(gC,g.Dq);gC.prototype.show=function(){g.Dq.prototype.show.call(this);this.J.start()};
gC.prototype.hide=function(){g.Dq.prototype.hide.call(this);this.J.stop()};
gC.prototype.vc=function(e,N){e==="dataloaded"&&((this.YB=N.YB,this.Js=N.Js,isNaN(this.YB)||isNaN(this.Js))?this.K&&(this.C.MK("intro"),this.C.removeEventListener(g.AA("intro"),this.G),this.C.removeEventListener(g.TW("intro"),this.Z),this.C.removeEventListener("onShowControls",this.j),this.hide(),this.K=!1):(this.C.addEventListener(g.AA("intro"),this.G),this.C.addEventListener(g.TW("intro"),this.Z),this.C.addEventListener("onShowControls",this.j),e=new g.wF(this.YB,this.Js,{priority:9,namespace:"intro"}),
this.C.wx([e]),this.K=!0))};g.b(Vs,g.W);Vs.prototype.onClick=function(){this.C.aS()};
Vs.prototype.GZ=function(){var e=!0;g.hR(this.C.X())&&(e=e&&this.C.Fz().getPlayerSize().width>=480);this.KX(e);this.updateValue("icon",this.C.ox()?{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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.b(ie3,g.W);ie3.prototype.fh=function(){this.J=null;g.W.prototype.fh.call(this)};g.b(fJ,g.W);fJ.prototype.onClick=function(){this.C.Mg("innertubeCommand",this.N)};
fJ.prototype.D=function(e){e!==this.Z&&(this.update({title:e,ariaLabel:e}),this.Z=e);e?this.show():this.hide()};
fJ.prototype.U=function(){this.J.disabled=this.N==null;g.Y1(this.J,"ytp-chapter-container-disabled",this.J.disabled);this.HY()};g.b(tk,fJ);tk.prototype.onClickCommand=function(e){g.m(e,K3)&&this.HY()};
tk.prototype.updateVideoData=function(e,N){var y,w,E;e=g.m((y=N.getWatchNextResponse())==null?void 0:(w=y.playerOverlays)==null?void 0:(E=w.playerOverlayRenderer)==null?void 0:E.decoratedPlayerBarRenderer,Sx);y=g.m(e==null?void 0:e.playerBarActionButton,g.zR);this.C.T("web_player_updated_entrypoint")&&(this.G=rQ(y==null?void 0:y.text));this.N=y==null?void 0:y.command;fJ.prototype.U.call(this)};
tk.prototype.HY=function(){var e=this.C.T("web_player_updated_entrypoint")?this.G:"",N=this.j.J,y,w=((y=this.C.getLoopRange())==null?void 0:y.type)==="clips";if(N.length>1&&!w){e=this.C.getProgressState().current*1E3;y=om(N,e);e=N[y].title||"Chapters";if(y!==this.currentIndex||this.K)this.C.Mg("innertubeCommand",N[y].onActiveCommand),this.currentIndex=y;this.K=!1}else this.K=!0;fJ.prototype.D.call(this,e)};g.b(uo,g.W);uo.prototype.Z=function(e){g.G(e.state,32)?gL5(this,this.api.nO()):this.Og&&(g.G(e.state,16)||g.G(e.state,1))||this.J.hide()};
uo.prototype.FI=function(){var e=this.api.getPlayerStateObject();(g.G(e,32)||g.G(e,16))&&VTP(this)};
uo.prototype.G=function(){this.K=NaN;VTP(this)};
uo.prototype.hide=function(){this.N&&gL5(this,null);g.W.prototype.hide.call(this)};g.b(f_E,g.W);g.J=f_E.prototype;g.J.onClick=function(){var e=this;if(this.C.X().Y_||this.C.X().U){this.C.logClick(this.element);try{this.C.toggleFullscreen().catch(function(N){e.sU(N)})}catch(N){this.sU(N)}}else VL(this.message,this.element,!0)};
g.J.sU=function(e){String(e).includes("fullscreen error")?g.uA(e):g.t0(e);this.rX()};
g.J.rX=function(){this.disable();this.message.WY(this.element,!0)};
g.J.bz=function(){cE()===this.C.getRootNode()?this.K.start():(this.K.stop(),this.message&&this.message.hide())};
g.J.Eh=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var e=window.screen.width*.9,N=window.screen.height*.9,y=Math.max(window.outerWidth,window.innerWidth),w=Math.max(window.outerHeight,window.innerHeight);if(y>w!==e>N){var E=y;y=w;w=E}e>y&&N>w&&this.rX()}};
g.J.disable=function(){var e=this;if(!this.message){var N=(oz(["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.Dq(this.C,{S:"div",dP:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:"0"},W:[N[0],{S:"a",V:{href:"https://support.google.com/youtube/answer/6276924",
target:this.C.X().D},b9:N[2]},N[4]]},100,!0);this.message.hide();g.Q(this,this.message);this.message.subscribe("show",function(y){e.N.wG(e.message,y)});
g.Pb(this.C,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.J)();this.J=null}};
g.J.GZ=function(){var e=Osn(this.C),N=this.C.X().U&&this.C.getPlayerSize().width<250;this.KX(e&&!N);var y;((y=this.C.X())==null?0:y.T("embeds_use_parent_visibility_in_ve_logging"))?this.C.logVisibility(this.element,this.Og&&this.L):this.C.logVisibility(this.element,this.Og)};
g.J.q3=function(e){if(e){var N={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"g",B:"ytp-fullscreen-button-corner-2",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-3",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-0",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{S:"g",
B:"ytp-fullscreen-button-corner-1",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};e=g.FT(this.C,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.C.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(y){g.uA(y)})}else N={S:"svg",
V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"g",B:"ytp-fullscreen-button-corner-0",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-1",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-2",W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{S:"g",B:"ytp-fullscreen-button-corner-3",
W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},e=g.FT(this.C,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});e=this.message?null:e;this.update({title:e,icon:N});this.N.Rf().xp()};
g.J.fh=function(){this.message||((0,this.J)(),this.J=null);g.W.prototype.fh.call(this)};
g.J.nx=function(e){g.W.prototype.nx.call(this,e);var N;((N=this.C.X())==null?0:N.T("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Og&&e)};g.b(qh,g.W);qh.prototype.onClick=function(){this.C.logClick(this.element);this.C.seekBy(this.J,!0);var e=this.J>0?1:-1,N=Math.abs(this.J),y=this.C.Yp().X9;y&&Yy(y,e,N);this.N.isActive()?this.K=!0:(e=["ytp-jump-spin"],this.J<0&&e.push("backwards"),this.element.classList.add.apply(this.element.classList,g.B(e)),g.NA(this.N))};g.b(ZD,fJ);ZD.prototype.onClickCommand=function(e){g.m(e,gw0)&&this.HY()};
ZD.prototype.updateVideoData=function(){var e,N;this.N=(e=u5M(this))==null?void 0:(N=e.onTap)==null?void 0:N.innertubeCommand;fJ.prototype.U.call(this)};
ZD.prototype.HY=function(){var e="",N=this.j.Z,y,w=(y=u5M(this))==null?void 0:y.headerTitle;y=w?g.SY(w):"";var E;w=((E=this.C.getLoopRange())==null?void 0:E.type)==="clips";N.length>1&&!w&&(e=this.C.getProgressState().current*1E3,E=W8_(N,e),e=E!=null?N[E].title:y,E!=null&&E!==this.currentIndex&&(this.C.Mg("innertubeCommand",N[E].onActiveCommand),this.currentIndex=E));fJ.prototype.D.call(this,e)};g.b(jz,g.W);jz.prototype.onClick=function(){this.C.Mg("onCollapseMiniplayer");this.C.logClick(this.element)};
jz.prototype.GZ=function(){this.visible=!this.C.isFullscreen();this.KX(this.visible);this.C.logVisibility(this.element,this.visible&&this.L)};
jz.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.C.logVisibility(this.element,this.visible&&e)};g.b(nJ,g.W);g.J=nJ.prototype;g.J.eG=function(e){this.visible=e.width>=300||this.i9;this.KX(this.visible);this.C.logVisibility(this.element,this.visible&&this.L)};
g.J.nkP=function(){this.C.X().Et?this.C.isMuted()?this.C.unMute():this.C.mute():VL(this.message,this.element,!0);this.C.logClick(this.element)};
g.J.onVolumeChange=function(e){this.setVolume(e.volume,e.muted)};
g.J.setVolume=function(e,N){var y=this,w=N?0:e/100,E=this.C.X();e=w===0?1:e>50?1:0;if(this.Z!==e){var A=this.Kh;isNaN(A)?xrM(this,e):Ak5(this.l9,function(p){xrM(y,A+(y.Z-A)*p)},250);
this.Z=e}w=w===0?1:0;if(this.j!==w){var T=this.D;isNaN(T)?ja1(this,w):Ak5(this.Ng,function(p){ja1(y,T+(y.j-T)*p)},250);
this.j=w}E.Et&&(E=g.FT(this.C,"Mute","m"),w=g.FT(this.C,"Unmute","m"),this.updateValue("title",N?w:E),this.update({"data-title-no-tooltip":N?"Unmute":"Mute"}),this.tooltip.xp())};
g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.C.logVisibility(this.element,this.visible&&e)};
var qy0=["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"],Ze9=["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.b(g.Qs,g.W);g.J=g.Qs.prototype;g.J.onStateChange=function(e){this.IJ(e.state);var N;((N=this.C.X())==null?0:N.T("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Og&&this.L)};
g.J.IJ=function(e){var N=g.bk(this.C.getVideoData()),y=!1;e.isOrWillBePlaying()?e=N?4:2:g.G(e,2)?(e=3,y=N):e=1;this.element.disabled=y;if(this.J!==e){N=null;switch(e){case 2:N=g.FT(this.C,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:N="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:N=g.FT(this.C,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:N="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}e===
3?this.update({title:N,icon:nLn(e)}):(this.update({title:N}),(N=nLn(e))&&this.J&&this.J!==3?JkP(this.transition,this.element,N):this.updateValue("icon",N));this.tooltip.xp();this.J=e}};
g.J.onVideoDataChange=function(){g.Y1(this.element,"ytp-play-button-playlist",g.cb(this.C))};
g.J.uX=function(e){this.C.logClick(this.element);if(this.C.getPlayerStateObject().isOrWillBePlaying())this.C.pauseVideo();else{if(this.C.isMinimized()&&this.C.getPlayerStateObject().isCued()){var N={},y;if((y=this.C.getVideoData())==null?0:y.Z)N.cttAuthInfo={token:this.C.getVideoData().Z,videoId:this.C.getVideoData().videoId};QQ("direct_playback",N);this.C.s4().timerName="direct_playback"}else this.J===3&&kP(this.C.s4());this.C.playVideo()}this.C.isMinimized()&&(e==null?void 0:e.type)==="click"&&
this.element.blur()};
g.J.nx=function(e){g.W.prototype.nx.call(this,e);var N;((N=this.C.X())==null?0:N.T("embeds_use_parent_visibility_in_ve_logging"))&&this.C.logVisibility(this.element,this.Og&&e)};g.b(g.m2,g.W);g.J=g.m2.prototype;g.J.onVideoDataChange=function(){mr0(this);this.j&&(this.CX(this.j),this.j=null);this.videoData=this.C.getVideoData(1);if(this.playlist=this.C.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.Y(this.C,"progresssync",this.xE);this.K=HeM(this);QaE(this);this.n5(this.C.Fz().getPlayerSize())};
g.J.n5=function(e){e=e===void 0?this.C.Fz().getPlayerSize():e;var N,y=((N=this.C.getLoopRange())==null?void 0:N.type)==="clips";e=(g.cb(this.C)||this.J&&g.dZ(this.C)&&!this.C.T("web_hide_next_button")||KO5(this))&&!y&&(this.J||e.width>=400);this.KX(e);this.C.logVisibility(this.element,e)};
g.J.onClick=function(e){this.C.logClick(this.element);var N=!0;this.G?N=g.G9(e,this.C):e.preventDefault();N&&(this.J&&this.C.getPresentingPlayerType()===5?this.C.publish("ytoprerollinternstitialnext"):this.J?(kP(this.C.s4()),this.C.publish("playlistnextbuttonclicked",this.element),this.C.nextVideo(!0)):this.K?this.C.seekTo(0):(kP(this.C.s4()),this.C.publish("playlistprevbuttonclicked",this.element),this.C.previousVideo(!0)))};
g.J.xE=function(){var e=HeM(this);e!==this.K&&(this.K=e,QaE(this))};
g.J.fh=function(){this.N&&(this.N(),this.N=null);mr0(this);g.W.prototype.fh.call(this)};g.b(Oe3,g.W);g.J=Oe3.prototype;g.J.ye=function(e){this.Xg(e.pageX);this.Yd(e.pageX+e.deltaX);R7M(this)};
g.J.Xg=function(e){this.Ng=e-this.aq};
g.J.Yd=function(e){e-=this.aq;!isNaN(this.Ng)&&this.thumbnails.length>0&&(this.D=e-this.Ng,this.thumbnails.length>0&&this.D!==0&&(this.K=this.U+this.D,e=a_0(this,this.K),this.K<=this.J/2&&this.K>=san(this)?(this.api.seekTo(e,!1,void 0,void 0,25),g.$0(this.qg,"transform","translateX("+(this.K-this.J/2)+"px)"),WO5(this,e)):this.K=this.U))};
g.J.iU=function(){this.Kh&&(this.Kh.QG=!0);var e=(0,g.iC)()-this.Et<300;if(Math.abs(this.D)<5&&!e){this.Et=(0,g.iC)();e=this.Ng+this.D;var N=this.J/2-e;this.Xg(e);this.Yd(e+N);R7M(this);this.api.logClick(this.Z)}R7M(this)};
g.J.IE=function(){H6(this,this.api.getCurrentTime())};
g.J.play=function(e){this.api.seekTo(a_0(this,this.K),void 0,void 0,void 0,26);this.api.playVideo();e&&this.api.logClick(this.playButton)};
g.J.onExit=function(e){this.api.seekTo(this.Zl,void 0,void 0,void 0,63);this.api.playVideo();e&&this.api.logClick(this.dismissButton)};
g.J.I9=function(e,N){this.aq=e;this.J=N;H6(this,this.api.getCurrentTime())};
g.J.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Zl=this.api.getCurrentTime(),WO5(this,this.Zl),g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Rq=this.Y(this.element,"wheel",this.ye),this.logVisibility(this.isEnabled))};
g.J.disable=function(){this.isEnabled=!1;this.hide();g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Rq&&this.CX(this.Rq);this.logVisibility(this.isEnabled)};
g.J.reset=function(){this.disable();this.j=[];this.i9=!1};
g.J.logVisibility=function(e){this.api.logVisibility(this.element,e);this.api.logVisibility(this.Z,e);this.api.logVisibility(this.dismissButton,e);this.api.logVisibility(this.playButton,e)};
g.J.fh=function(){for(;this.N.length;){var e=void 0;(e=this.N.pop())==null||e.dispose()}g.W.prototype.fh.call(this)};
g.b(Gd5,g.W);g.b(Ur9,g.W);g.b(eUM,g.W);g.b(KJ,g.W);KJ.prototype.ut=function(e){return e==="PLAY_PROGRESS"?this.U:e==="LOAD_PROGRESS"?this.G:e==="LIVE_BUFFER"?this.Z:this.K};wj5.prototype.update=function(e,N,y,w){y=y===void 0?0:y;this.width=N;this.j=y;this.J=N-y-(w===void 0?0:w);this.position=g.Ja(e,y,y+this.J);this.K=this.position-y;this.N=this.K/this.J};g.b(EW5,g.W);g.b(g.Rm,g.Mu);g.J=g.Rm.prototype;
g.J.u3=function(){var e=!1,N=this.api.getVideoData();if(!N)return e;this.api.MK("timedMarkerCueRange");Js0(this);for(var y=g.c(N.Dl),w=y.next();!w.done;w=y.next()){w=w.value;var E=void 0,A=(E=this.Zl[w])==null?void 0:E.markerType;E=void 0;var T=(E=this.Zl[w])==null?void 0:E.markers;if(!T)break;if(A==="MARKER_TYPE_TIMESTAMPS"){e=g.c(T);for(A=e.next();!A.done;A=e.next()){E=A.value;A=new EW5;T=void 0;A.title=((T=E.title)==null?void 0:T.simpleText)||"";A.timeRangeStartMillis=Number(E.startMillis);A.J=
Number(E.durationMillis);var p=T=void 0;A.onActiveCommand=(p=(T=E.onActive)==null?void 0:T.innertubeCommand)!=null?p:void 0;MW9(this,A)}lIs(this,this.Z);e=this.Z;A=this.im;E=[];T=null;for(p=0;p<e.length;p++){var C=e[p].timeRangeStartMillis;if(!isNaN(C)&&e[p].onActiveCommand){var r=void 0,Y=(r=e[p].J)!=null?r:1E4;T&&T.end>C&&(T.end=C);C=GIP(C,C+Y);E.push(C);T=C;A[C.id]=e[p].onActiveCommand}}this.api.wx(E);this.sY=this.Zl[w];e=!0}else if(A==="MARKER_TYPE_HEATMAP"){w=this.Zl[w];Y=r=E=C=p=T=void 0;if(w&&
w.markers){A=(E=(Y=w.markersMetadata)==null?void 0:(r=Y.heatmapMetadata)==null?void 0:r.minHeightDp)!=null?E:0;E=(T=(C=w.markersMetadata)==null?void 0:(p=C.heatmapMetadata)==null?void 0:p.maxHeightDp)!=null?T:60;T=this.J.length;p=null;for(C=0;C<T;C++){Y=this.J[C].startTime;var M=C===T-1?Infinity:this.J[C+1].startTime;C===this.j.length&&TMP(this);r=[];p&&r.push(p);for(var l=g.c(w.markers),F=l.next();!F.done;F=l.next()){F=F.value;var S=Number(F.startMillis);S>=Y&&S<=M&&r.push(F)}E>0&&(this.Kh.style.height=
E+"px");Y=this.j[C];M=r;F=A;var k=E,X=C===0;X=X===void 0?!1:X;NMM(Y,k);l=M;S=Y.N;X=X===void 0?!1:X;var d=1E3/l.length,v=[];v.push({x:0,y:100});for(var V=0;V<l.length;V++){var Z=(V+.5)*d,n=100-g.Ja((l[V].intensityScoreNormalized||0)*100,F/S*100,k/S*100);V!==0||X||v.push({x:0,y:n});v.push({x:Z,y:n});V===l.length-1&&v.push({x:1E3,y:n})}v.push({x:1E3,y:100});l=v;M=M.length===0?"":U6P(l);Y.api.T("delhi_modern_web_player")?Y.K.setAttribute("d",M):Y.Z.setAttribute("d",M);Y.WG=M!=="";g.Y1(Y.api.getRootNode(),
"ytp-heat-map",Y.WG);Y.api.T("delhi_modern_web_player")&&(Y.K.style.display="block",Y.j.style.display="none",Y.J.style.display="none");r.length>0&&(p=r[r.length-1])}g.GP(this)}E=void 0;A=[];if(w=(E=w.markersDecoration)==null?void 0:E.timedMarkerDecorations)for(w=g.c(w),E=w.next();!E.done;E=w.next())E=E.value,C=p=T=void 0,A.push({visibleTimeRangeStartMillis:(T=E.visibleTimeRangeStartMillis)!=null?T:-1,visibleTimeRangeEndMillis:(p=E.visibleTimeRangeEndMillis)!=null?p:-1,decorationTimeMillis:(C=E.decorationTimeMillis)!=
null?C:NaN,label:E.label?g.SY(E.label):""});w=A;this.heatMarkersDecorations=w}}N.nM=this.Z;g.Y1(this.element,"ytp-timed-markers-enabled",e);return e};
g.J.I9=function(){g.GP(this);sL(this);lIs(this,this.Z);if(this.N){var e=g.hp(this.element).x||0;this.N.I9(e,this.G)}};
g.J.onClickCommand=function(e){if(e=g.m(e,K3)){var N=e.key;e.isVisible&&N&&bF0(this,N)}};
g.J.Ju9=function(e){this.api.Mg("innertubeCommand",this.im[e.id])};
g.J.HY=function(){sL(this);var e=this.api.getCurrentTime();(e<this.clipStart||e>this.clipEnd)&&this.Ur()};
g.J.z0=function(e){if(!e.defaultPrevented){var N=!1;switch(e.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);N=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);N=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);N=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);N=!0;break;case 38:this.api.T("enable_key_press_seek_logging")&&ED(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);N=!0;break;case 40:this.api.T("enable_key_press_seek_logging")&&ED(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),N=!0}N&&e.preventDefault()}};
g.J.vc=function(e,N){this.updateVideoData(N,e==="newdata")};
g.J.kZB=function(){this.vc("newdata",this.api.getVideoData())};
g.J.updateVideoData=function(e,N){N=N===void 0?!1:N;var y=!!e&&e.WG();if(y&&(HF(e)||XjE(this)?this.UY=!1:this.UY=e.allowLiveDvr,g.Y1(this.api.getRootNode(),"ytp-enable-live-buffer",!(e==null||!HF(e))),this.api.T("enable_custom_playhead_parsing"))){var w,E,A,T=g.m((w=e.getWatchNextResponse())==null?void 0:(E=w.playerOverlays)==null?void 0:(A=E.playerOverlayRenderer)==null?void 0:A.decoratedPlayerBarRenderer,Sx);if(T==null?0:T.progressColor)for(w=0;w<this.J.length;w++)this.J[w].ut("PLAY_PROGRESS").style.background=
g.jQ(T.progressColor);T=g.m(T==null?void 0:T.playhead,swM);var p,C;w=(T==null?void 0:(p=T.playheadImage)==null?void 0:p.thumbnails)&&(T==null?void 0:(C=T.playheadImage)==null?void 0:C.thumbnails[0].url);g.Y1(this.Pf,"ytp-decorated-scrubber-container",!!w);var r;if(T==null?0:(r=T.loggingDirectives)==null?0:r.trackingParams){var Y;this.api.setTrackingParams(this.LX,T==null?void 0:(Y=T.loggingDirectives)==null?void 0:Y.trackingParams);this.api.createServerVe(this.LX,this)}w&&(this.LX.src=w)}tW9(this,
this.api.Bf());if(N){if(y){N=e.clipEnd;this.clipStart=e.clipStart;this.clipEnd=N;AU(this);for(NV(this,this.D,this.VB);this.j.length>0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.Kx={};var M;(M=this.N)==null||M.reset();rT(this);g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-exp",OL(this))}else this.Ur();this.SY()}if(e){var l;M=((l=this.c9)==null?void 0:l.type)==="clips";if(l=!e.isLivePlayback){l=this.api.getVideoData();N=g.of(l);y=CWn(l);var F;l=N!=null||y!=null&&y.length>0||((F=l.Tv)==
null?void 0:F.length)>0}if(l&&!M){F=this.api.getVideoData();M=g.of(F);l=!1;if(M==null?0:M.markersMap){l=this.api.getVideoData();var S;l.A4=((S=M.visibleOnLoad)==null?void 0:S.key)||l.A4;S=g.c(M.markersMap);for(M=S.next();!M.done;M=S.next())M=M.value,M.key&&M.value&&(this.Kx[M.key]=M.value,M.value.onChapterRepeat&&(l.xC=M.value.onChapterRepeat));l.A4!=null&&bF0(this,l.A4);l=!0}var k;if(((k=F.Tv)==null?void 0:k.length)>0){k=g.WH.getState().entities;S=g.c(F.Tv);for(M=S.next();!M.done;M=S.next())if(M=
M.value,y=void 0,N=(y=Cj(k,"macroMarkersListEntity",M))==null?void 0:y.markersList,p=y=void 0,((y=N)==null?void 0:y.markerType)==="MARKER_TYPE_TIMESTAMPS"||((p=N)==null?void 0:p.markerType)==="MARKER_TYPE_HEATMAP")this.Zl[M]=N;l=this.u3()||l}!l&&(k=CWn(F))&&($ns(this,k),F.ll=this.J,rs9(this));PW1(this,null);e.lF&&this.j.length===0&&(e=e.lF,k=e.key,e.isVisible&&k&&bF0(this,k))}else AsM(this),Js0(this)}sL(this)};
g.J.KPt=function(e){this.U&&!g.G(e.state,32)&&this.api.getPresentingPlayerType()!==3&&this.U.cancel();var N;((N=this.N)==null?0:N.isEnabled)&&g.G(e.state,8)&&this.api.pauseVideo();e=this.api.getPresentingPlayerType()===2||!this.api.Bf()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Y1(this.DD,"ytp-hide-scrubber-button",e)};
g.J.g3=function(e){var N=!!this.c9!==!!e,y=this.c9;this.c9=e;PW1(this,y);(e==null?void 0:e.type)!=="clips"&&e||(e?(this.updateValue("clipstarticon",B00()),this.updateValue("clipendicon",B00()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",lmM()),this.updateValue("clipendicon",M1s()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),N&&(this.updateVideoData(this.api.getVideoData(),
!0),g.GP(this)),AU(this));NV(this,this.D,this.VB)};
g.J.NaZ=function(e,N,y){var w=g.hp(this.element),E=LJ(this).J,A=y?y.getAttribute("data-tooltip"):void 0,T=y?y.getAttribute("data-position"):void 0,p=y?y.getAttribute("data-offset-y"):void 0;p=p?Number(p):0;T&&(e=tF(this.K,Number(y.getAttribute("data-position")),0)*E+g.hp(this.progressBar).x);this.Ut.x=e-w.x;this.Ut.y=N-w.y;e=LJ(this);y=wT(this,e);N=0;var C;if((C=this.api.getVideoData())==null?0:HF(C))(C=this.api.getProgressState().seekableEnd)&&y>C&&(y=C,e.position=tF(this.K,C)*LJ(this).J),N=this.K.N;
XjE(this)&&(N=this.K.N);C=A||g.P2(this.UY?y-this.K.J:y-N);N=e.position+this.Rx;y-=this.api.w7();var r;if((r=this.N)==null||!r.isEnabled)if(this.api.nO()){if(this.J.length>1){r=yq(this,this.Ut.x,!0);if(!this.c9)for(w=0;w<this.J.length;)g.Y1(this.J[w].J,"ytp-exp-chapter-hover-effect",w===r),w++;if(this.j.length>1)for(w=0;w<this.J.length;w++)g.Y1(this.j[w].element,"ytp-heatmap-hover",w===r)}if(this.Z.length>0)for(r=this.Ut.x,w=g.c(this.Z),E=w.next();!E.done;E=w.next())E=E.value,T=UL(this,E.timeRangeStartMillis/
(this.K.J*1E3),LJ(this)),g.Y1(E.element,"ytp-timed-marker-hover",T<=r&&T+6>=r);w=this.tooltip.scale;p=(isNaN(p)?0:p)-45*w;this.api.T("web_key_moments_markers")?this.sY?(r=W8_(this.Z,y*1E3),r=r!=null?this.Z[r].title:""):(r=om(this.J,y*1E3),r=this.J[r].title):(r=om(this.J,y*1E3),r=this.J[r].title);r||(p+=16*w);this.tooltip.scale===.6&&(this.api.T("web_cairo_modern_miniplayer")?(p=this.api.Fz().getPlayerSize().height-225,p=r?p+110:p+110+16,this.api.T("web_cairo_modern_miniplayer_inset_progress_bar")&&
(p-=12)):p=r?110:126);w=om(this.J,y*1E3);this.qg=dnF(this,y,w)?w:dnF(this,y,w+1)?w+1:-1;g.Y1(this.api.getRootNode(),"ytp-progress-bar-snap",this.qg!==-1&&this.J.length>1);w=!1;E=g.c(this.heatMarkersDecorations);for(T=E.next();!T.done;T=E.next()){T=T.value;var Y=y*1E3;Y>=T.visibleTimeRangeStartMillis&&Y<=T.visibleTimeRangeEndMillis&&(r=T.label,C=g.P2(T.decorationTimeMillis/1E3),w=!0)}this.NK!==w&&(this.NK=w,this.api.logVisibility(this.CC,this.NK));g.Y1(this.api.getRootNode(),"ytp-progress-bar-decoration",
w);w=160*this.tooltip.scale*2;E=r.length*(this.Ng?8.55:5.7);E=E<=w?E:w;T=E<160*this.tooltip.scale;w=3;!T&&E/2>e.position&&(w=1);!T&&E/2>this.G-e.position&&(w=2);this.api.X().U&&(p-=10);this.j.length&&this.j[0].WG&&(p-=14*(this.Ng?2:1),this.Rq||(this.Rq=!0,this.api.logVisibility(this.Kh,this.Rq)));var M;if(OL(this)&&(((M=this.N)==null?0:M.isEnabled)||this.Bk>0)){var l;p-=((l=this.N)==null?0:l.isEnabled)?JU(this):this.Bk}M=void 0;OL(this)&&!this.api.T("web_player_hide_fine_scrubbing_edu")&&(M="Pull up for precise seeking",
this.i9||(this.i9=!0,this.api.logVisibility(this.U2,this.i9)));this.tooltip.ze(N,y,C,!!A,p,r,w,M)}else this.tooltip.ze(N,y,C,!!A,p);g.pi(this.api.getRootNode(),"ytp-progress-bar-hover");BM5(this)};
g.J.JaW=function(){this.SY();g.re(this.api.getRootNode(),"ytp-progress-bar-hover");this.Rq&&(this.Rq=!1,this.api.logVisibility(this.Kh,this.Rq));this.i9&&(this.i9=!1,this.api.logVisibility(this.U2,this.i9))};
g.J.Fsh=function(e,N){OL(this)&&this.N&&(this.N.i9?H6(this.N,this.api.getCurrentTime()):LOM(this.N),this.N.show(),g.Y1(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.N.isEnabled));this.YO&&(this.YO.dispose(),this.YO=null);this.CN=N;this.jp=this.api.getCurrentTime();this.J.length>1&&this.qg!==-1?this.api.seekTo(this.J[this.qg].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(wT(this,LJ(this)),!1,void 0,void 0,7);g.pi(this.element,"ytp-drag");(this.WE=this.api.getPlayerStateObject().isOrWillBePlaying())&&
this.api.pauseVideo()};
g.J.kaW=function(){if(OL(this)&&this.N){var e=JU(this);this.Bk>=e*.5?(this.N.enable(),H6(this.N,this.api.getCurrentTime()),fIM(this,e)):rT(this)}if(g.G(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var N;if((N=this.N)==null?0:N.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.J.length>1&&this.qg!==-1)this.api.T("html5_enable_progress_bar_slide_seek_logging")&&ED(this,this.jp,this.J[this.qg].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.J[this.qg].startTime/1E3,void 0,void 0,void 0,7);else{e=wT(this,LJ(this));this.api.T("html5_enable_progress_bar_slide_seek_logging")&&ED(this,this.jp,e,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(e,void 0,void 0,void 0,7);N=g.c(this.heatMarkersDecorations);for(var y=N.next();!y.done;y=N.next())y=y.value,e*1E3>=y.visibleTimeRangeStartMillis&&e*1E3<=y.visibleTimeRangeEndMillis&&
this.api.logClick(this.CC)}g.re(this.element,"ytp-drag");this.WE&&!g.G(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.J.KsZ=function(e,N){e=LJ(this);e=wT(this,e);this.api.seekTo(e,!1,void 0,void 0,7);var y;OL(this)&&((y=this.N)==null?0:y.i9)&&(H6(this.N,e),this.N.isEnabled||(y=JU(this),this.Bk=g.Ja(this.CN-N-10,0,y),fIM(this,this.Bk)))};
g.J.SY=function(){this.tooltip.Mj()};
g.J.fZ=function(){this.c9||(this.updateValue("clipstarticon",YmP()),this.updateValue("clipendicon",YmP()),g.pi(this.element,"ytp-clip-hover"))};
g.J.tJ=function(){this.c9||(this.updateValue("clipstarticon",lmM()),this.updateValue("clipendicon",M1s()),g.re(this.element,"ytp-clip-hover"))};
g.J.Ur=function(){this.clipStart=0;this.clipEnd=Infinity;AU(this);NV(this,this.D,this.VB)};
g.J.gxh=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())if(N=N.value,N.visible){var y=N.getId();if(!this.aq[y]){var w=g.sA("DIV");N.tooltip&&w.setAttribute("data-tooltip",N.tooltip);this.aq[y]=N;this.Y_[y]=w;g.TY(w,N.style);IIs(this,y);this.api.X().T("disable_ad_markers_on_content_progress_bar")||this.J[0].j.appendChild(w)}}else VWE(this,N)};
g.J.fMl=function(e){e=g.c(e);for(var N=e.next();!N.done;N=e.next())VWE(this,N.value)};
g.J.v5=function(e){this.N&&(this.N.onExit(e!=null),rT(this))};
g.J.Z5=function(e){this.N&&(this.N.play(e!=null),rT(this))};
g.J.VZW=function(){tW9(this,this.api.Bf())};
g.J.fh=function(){tW9(this,!1);g.Mu.prototype.fh.call(this)};g.b($M,g.W);$M.prototype.isActive=function(){return!!this.C.getOption("remote","casting")};
$M.prototype.GZ=function(){var e=!1;this.C.getOptions().includes("remote")&&(e=this.C.getOption("remote","receivers").length>1);this.KX(e&&this.C.Fz().getPlayerSize().width>=400);this.C.logVisibility(this.element,this.Og);var N=1;e&&this.isActive()&&(N=2);if(this.J!==N){this.J=N;switch(N){case 1:this.updateValue("icon",{S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{S:"path",Az:!0,V:{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.$73())}g.Y1(this.element,"ytp-remote-button-active",this.isActive())}};
$M.prototype.N=function(){if(this.C.getOption("remote","quickCast"))this.C.setOption("remote","quickCast",!0);else{var e=this.x_,N=this.element;if(e.e1())e.rT();else{e.initialize();a:{var y=g.c(e.z9.items);for(var w=y.next();!w.done;w=y.next())if(w=w.value,w.priority===1){y=w;break a}y=null}y&&(y.open(),e.WY(N));e.WY(N)}}this.C.logClick(this.element)};g.b(YM,g.W);YM.prototype.J=function(e){var N=this.C.X(),y=400;this.C.T("web_player_small_hbp_settings_menu")&&N.Z?y=300:N.U&&(y=200);e=this.N&&e.width>=y;this.KX(e);this.C.T("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,e&&this.L):this.C.logVisibility(this.element,e)};
YM.prototype.K=function(){if(this.x_.Og)this.x_.rT();else{var e=g.fZ(this.C.jR());e&&!e.loaded&&(e.uv("tracklist",{includeAsr:!0}).length||e.load());this.C.logClick(this.element);this.x_.WY(this.element)}};
YM.prototype.updateBadge=function(){var e=this.C.isHdr(),N=this.C.getPresentingPlayerType(),y=N!==2&&N!==3,w=g.XT(this.C),E=y&&!!g.Bb(this.C.jR());N=E&&w.displayMode===1;w=E&&w.displayMode===2;y=(E=N||w)||!y?null:this.C.getPlaybackQuality();g.Y1(this.element,"ytp-hdr-quality-badge",e);g.Y1(this.element,"ytp-hd-quality-badge",!e&&(y==="hd1080"||y==="hd1440"));g.Y1(this.element,"ytp-4k-quality-badge",!e&&y==="hd2160");g.Y1(this.element,"ytp-5k-quality-badge",!e&&y==="hd2880");g.Y1(this.element,"ytp-8k-quality-badge",
!e&&y==="highres");g.Y1(this.element,"ytp-3d-badge-grey",!e&&E&&N);g.Y1(this.element,"ytp-3d-badge",!e&&E&&w)};g.b(MV,Oc);MV.prototype.isLoaded=function(){var e=g.jB(this.C.jR());return e!==void 0&&e.loaded};
MV.prototype.GZ=function(){g.jB(this.C.jR())!==void 0&&this.C.getPresentingPlayerType()!==3?this.J||(this.x_.Gi(this),this.J=!0):this.J&&(this.x_.MS(this),this.J=!1);Rq(this,this.isLoaded())};
MV.prototype.onSelect=function(e){this.isLoaded();e?this.C.loadModule("annotations_module"):this.C.unloadModule("annotations_module");this.C.publish("annotationvisibility",e)};
MV.prototype.fh=function(){this.J&&this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(lb,g.Go);lb.prototype.GZ=function(){var e=this.C.getAvailableAudioTracks();e.length>1?(this.Pc(g.dn(e,this.J)),this.tracks=g.l7(e,this.J,this),this.countLabel.Ja(e.length?" ("+e.length+")":""),this.publish("size-change"),this.BI(this.J(this.C.getAudioTrack())),this.enable(!0)):this.enable(!1)};
lb.prototype.dQ=function(e){g.Go.prototype.dQ.call(this,e);this.C.setAudioTrack(this.tracks[e]);this.x_.z4()};
lb.prototype.J=function(e){return e.toString()};g.b(Fq,Oc);
Fq.prototype.N=function(){var e=this.C.getPresentingPlayerType();if(e!==2&&e!==3&&g.dZ(this.C))this.J||(this.x_.Gi(this),this.J=!0,this.K.push(this.Y(this.C,"videodatachange",this.N)),this.K.push(this.Y(this.C,"videoplayerreset",this.N)),this.K.push(this.Y(this.C,"onPlaylistUpdate",this.N)),this.K.push(this.Y(this.C,"autonavchange",this.j)),e=this.C.getVideoData(),this.j(e.autonavState),this.C.logVisibility(this.element,this.J));else if(this.J){this.x_.MS(this);this.J=!1;e=g.c(this.K);for(var N=e.next();!N.done;N=
e.next())this.CX(N.value)}};
Fq.prototype.j=function(e){Rq(this,e!==1)};
Fq.prototype.onSelect=function(e){this.C.gV(e?2:1);this.J&&(this.C.logVisibility(this.element,this.J),this.C.logClick(this.element))};
Fq.prototype.fh=function(){this.J&&this.x_.MS(this);Oc.prototype.fh.call(this)};g.b(qO3,g.uh);qO3.prototype.onClick=function(e){e.preventDefault();var N,y;(N=g.T9(this.C))==null||(y=N.X6())==null||y.rT();var w,E;(w=g.T9(this.C))==null||(E=w.iH())==null||E.WY(e.target)};g.b(ZFM,g.Go);g.J=ZFM.prototype;
g.J.m2=function(){var e=this.C.getPresentingPlayerType();if(e!==2&&e!==3){this.qg=this.C.Sg();e=this.C.getAvailableQualityLevels();if(this.J){this.j={};var N=g.NU(this.C,"getAvailableQualityData",[]);N=g.c(N);for(var y=N.next();!y.done;y=N.next())y=y.value,this.j[y.qualityLabel]=y;N=Object.keys(this.j);e[e.length-1]==="auto"&&N.push("auto");this.l9=new Set(e)}else if(this.Z){y=g.NU(this.C,"getAvailableQualityData",[]);N=[];y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,this.D[w.quality]=
w,w.quality&&N.push(w.quality);e[e.length-1]==="auto"&&N.push("auto")}else N=e;g.Vw5(this.C)&&this.C.jJ()&&N.unshift("missing-qualities");fzP(this.C)&&N.unshift("inline-survey");this.Pc(N);e=this.C.getVideoData().cotn?!0:!1;y=this.Kh.E4();y=!g.na(this.C.X())||!(e===void 0?0:e)||!(y===void 0||y);e=this.N;y=y===void 0?!1:y;e.OC&&g.Y1(e.hW("ytp-panel-footer"),"ytp-panel-hide-footer",y===void 0?!1:y);if(N.length){this.VX();this.enable(!0);return}}this.enable(!1)};
g.J.VX=function(){if(this.J){var e=this.C.getPreferredQuality();this.l9.has(e)&&(this.G=this.C.getPlaybackQuality(),this.Ng=this.C.getPlaybackQualityLabel(),e==="auto"?(this.BI(e),this.Ja(this.CE(e))):this.BI(this.Ng))}else e=this.C.getPreferredQuality(),this.options[e]&&(this.G=this.C.getPlaybackQuality(),this.BI(e),e==="auto"&&this.Ja(this.CE(e)))};
g.J.dQ=function(e){if(e!=="missing-qualities"){g.Go.prototype.dQ.call(this,e);var N=this.J?this.j[e]:this.D[e];var y=N==null?void 0:N.quality,w=N==null?void 0:N.formatId,E=N==null?void 0:N.paygatedQualityDetails;N=E==null?void 0:E.endpoint;if(E){var A;E=(A=this.options[e])==null?void 0:A.element;this.C.logClick(E)}if(this.J){var T,p;if((T=g.m(N,g.dMq))==null?0:(p=T.popup)==null?0:p.notificationActionRenderer)this.C.Mg("innertubeCommand",N);else if(N){this.C.Mg("innertubeCommand",N);return}w?this.C.setPlaybackQuality(y,
w):this.C.setPlaybackQuality(y)}else{if(this.Z){var C,r;if((C=g.m(N,g.dMq))==null?0:(r=C.popup)==null?0:r.notificationActionRenderer)this.C.Mg("innertubeCommand",N);else if(N){this.C.Mg("innertubeCommand",N);return}}this.C.setPlaybackQuality(e)}this.x_.rT();this.m2()}};
g.J.open=function(){for(var e=g.c(Object.values(this.options)),N=e.next();!N.done;N=e.next()){N=N.value;var y=void 0;this.C.hasVe((y=N)==null?void 0:y.element)&&(y=void 0,this.C.logVisibility((y=N)==null?void 0:y.element,!0))}g.Go.prototype.open.call(this);this.C.logClick(this.element)};
g.J.Wv=function(e,N,y){var w=this;if(e==="missing-qualities")return new g.uh({S:"a",dP:["ytp-menuitem"],V:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.C.X().D,tabindex:"0",role:"menuitemradio"},W:[{S:"div",dP:["ytp-menuitem-label"],b9:"{{label}}"}]},N,this.CE(e));if(e!=="inline-survey"){var E,A=(E=this.J?this.j[e]:this.D[e])==null?void 0:E.paygatedQualityDetails;E=A==null?void 0:A.veType;A=A==null?void 0:A.trackingParams;N=g.Go.prototype.Wv.call(this,e,N,y);A?(this.C.createServerVe(N.element,
this,!0),this.C.setTrackingParams(N.element,A)):E&&this.C.createClientVe(N.element,this,E,!0);return N}e=[{S:"span",b9:"Looks good?"}];y=g.c([!0,!1]);A=y.next();for(E={};!A.done;E={IG:void 0},A=y.next())E.IG=A.value,A=new g.W({S:"span",B:"ytp-menuitem-inline-survey-response",W:[E.IG?kv5():Sm5()],V:{tabindex:"0",role:"button"}}),A.listen("click",function(T){return function(){var p=w.C.app.nh();p&&(p.Fh("iqsr",{tu:T.IG}),p.getVideoData().wA=!0);w.x_.rT();w.m2()}}(E)),e.push(A);
return new g.uh({S:"div",B:"ytp-menuitem",V:{"aria-disabled":"true"},W:[{S:"div",dP:["ytp-menuitem-label"],W:e}]},N)};
g.J.CE=function(e,N){N=N===void 0?!1:N;if(e==="missing-qualities")return{S:"div",b9:"Missing options?"};if(e==="inline-survey")return"";var y=this.Z||this.J?[nWJ(this,e,N,!1)]:[jHn(this,e)];var w=this.C.getPreferredQuality();N||w!=="auto"||e!=="auto"||(y.push(" "),this.J?y.push(nWJ(this,this.Ng,N,!0,["ytp-menu-label-secondary"])):this.Z?y.push(nWJ(this,this.G,N,!0,["ytp-menu-label-secondary"])):y.push(jHn(this,this.G,["ytp-menu-label-secondary"])));return{S:"div",W:y}};g.b(S8,g.W);S8.prototype.init=function(){this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.j);this.updateValue("stepvalue",this.Z);this.updateValue("slidervalue",this.N);QHH(this,this.N)};
S8.prototype.G=function(){mnH(this,Number(this.J.value));this.J.focus()};g.b(o5,S8);o5.prototype.G=function(){S8.prototype.G.call(this);this.U&&HF5(this)};
o5.prototype.qg=function(){this.D()};
o5.prototype.Kh=function(){this.C.setPlaybackRate(this.N,!0)};
o5.prototype.Ng=function(e){if(!e.defaultPrevented){switch(e.code){case "ArrowDown":var N=-this.Z;break;case "ArrowUp":N=this.Z;break;default:return}mnH(this,Math.min(this.j,Math.max(Number((this.N+N).toFixed(2)),this.K)));this.D();HF5(this);e.preventDefault()}};g.b(bb,g.W);g.J=bb.prototype;g.J.init=function(){this.Vg(this.J);this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.K)};
g.J.dH=function(e){if(!e.defaultPrevented){switch(e.keyCode){case 37:case 40:var N=-this.U;break;case 39:case 38:N=this.U;break;default:return}this.Vg(this.J+N);e.preventDefault()}};
g.J.c$=function(e){var N=this.J;N+=(e.deltaX||-e.deltaY)<0?-this.D:this.D;this.Vg(N);e.preventDefault()};
g.J.S6=function(e){e=(e-g.hp(this.j).x)/this.Ng*this.range+this.N;this.Vg(e)};
g.J.Vg=function(e,N){N=N===void 0?"":N;e=g.Ja(e,this.N,this.K);N===""&&(N=e.toString());this.updateValue("valuenow",e);this.updateValue("valuetext",N);this.Kh.style.left=(e-this.N)/this.range*(this.Ng-this.i9)+"px";this.J=e};
g.J.focus=function(){this.Rq.focus()};g.b(hU,bb);hU.prototype.qg=function(){this.C.setPlaybackRate(this.J,!0)};
hU.prototype.Vg=function(e){bb.prototype.Vg.call(this,e,WgJ(this,e).toString());this.Z&&(KgE(this),this.l9())};
hU.prototype.updateValues=function(){var e=this.C.getPlaybackRate();WgJ(this,this.J)!==e&&(this.Vg(e),KgE(this))};g.b(OFP,g.Mu);OFP.prototype.focus=function(){this.J.focus()};g.b(RUn,ZN);g.b(GAF,g.Go);g.J=GAF.prototype;g.J.CE=function(e){return e==="1"?"Normal":e.toLocaleString()};
g.J.GZ=function(){var e,N=(e=this.C.getVideoData())==null?void 0:e.Au();e=this.C.getPresentingPlayerType(N);this.enable(e!==2&&e!==3);aI5(this)};
g.J.Pc=function(e){g.Go.prototype.Pc.call(this,e);this.G&&this.G.J.focus()};
g.J.TA=function(e){g.Go.prototype.TA.call(this,e);e?(this.Ng=this.Y(this.C,"onPlaybackRateChange",this.onPlaybackRateChange),aI5(this),Lg9(this,this.C.getPlaybackRate())):(this.CX(this.Ng),this.Ng=null)};
g.J.onPlaybackRateChange=function(e){var N=this.C.getPlaybackRate();!this.Z&&this.D.includes(N)||sHH(this,N);Lg9(this,e)};
g.J.Wv=function(e,N,y){return e===this.J&&e2E(this.C)?g.Go.prototype.Wv.call(this,e,N,y,{S:"div",B:"ytp-speed-slider-menu-footer",W:[this.G]}):g.Go.prototype.Wv.call(this,e,N,y)};
g.J.dQ=function(e){g.Go.prototype.dQ.call(this,e);e===this.J?this.C.setPlaybackRate(this.j,!0):this.C.setPlaybackRate(Number(e),!0);e2E(this.C)&&e===this.J||this.x_.z4()};
g.J.HR=function(e){var N=e===this.J;this.Z=!1;N&&cK(this.C)&&!e2E(this.C)?(e=new RUn(this.C),g.Q_(this.x_,e)):g.Go.prototype.HR.call(this,e)};g.b(yB0,g.Go);g.J=yB0.prototype;g.J.BI=function(e){g.Go.prototype.BI.call(this,e)};
g.J.MN=function(e){return e.option.toString()};
g.J.getOption=function(e){return this.settings[e]};
g.J.CE=function(e){return this.getOption(e).text||""};
g.J.dQ=function(e){g.Go.prototype.dQ.call(this,e);this.publish("settingChange",this.setting,this.settings[e].option)};g.b(kM,g.x7);kM.prototype.GI=function(e){for(var N=g.c(Object.keys(e)),y=N.next();!y.done;y=N.next()){var w=y.value;if(y=this.mO[w]){var E=e[w].toString();w=!!e[w+"Override"];y.options[E]&&(y.BI(E),y.j.element.setAttribute("aria-checked",String(!w)),y.J.element.setAttribute("aria-checked",String(w)))}}};
kM.prototype.FH=function(e,N){this.publish("settingChange",e,N)};g.b(BK,g.Go);BK.prototype.J=function(e){return e.languageCode};
BK.prototype.CE=function(e){return this.languages[e].languageName||""};
BK.prototype.dQ=function(e){this.publish("select",e);this.C.logClick(this.element);g.mP(this.x_)};g.b(ABs,g.Go);g.J=ABs.prototype;g.J.nJ=function(e){return g.v4(e)?"__off__":e.displayName};
g.J.CE=function(e){return e==="__off__"?"Off":e==="__translate__"?"Auto-translate":e==="__contribute__"?"Add subtitles/CC":e==="__correction__"?"Suggest caption corrections":(e==="__off__"?{}:this.tracks[e]).displayName};
g.J.dQ=function(e){if(e==="__translate__")this.J.open();else if(e==="__contribute__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var N=g.Ix(this.C.X(),this.C.getVideoData());g.H2(N)}else if(e==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();var y=T7s(this);Xq(this,y);g.Go.prototype.dQ.call(this,this.nJ(y));var w,E;y=(N=this.C.getVideoData().getPlayerResponse())==null?void 0:(w=N.captions)==null?void 0:(E=w.playerCaptionsTracklistRenderer)==
null?void 0:E.openTranscriptCommand;this.C.Mg("innertubeCommand",y);this.x_.z4();this.j&&this.C.logClick(this.j)}else{if(e==="__correction__"){this.C.pauseVideo();this.C.isFullscreen()&&this.C.toggleFullscreen();N=T7s(this);Xq(this,N);g.Go.prototype.dQ.call(this,this.nJ(N));var A,T;N=(y=this.C.getVideoData().getPlayerResponse())==null?void 0:(A=y.captions)==null?void 0:(T=A.playerCaptionsTracklistRenderer)==null?void 0:T.openTranscriptCommand;this.C.Mg("innertubeCommand",N)}else this.C.logClick(this.element),
Xq(this,e==="__off__"?{}:this.tracks[e]),g.Go.prototype.dQ.call(this,e);this.x_.z4()}};
g.J.GZ=function(){var e=this.C.getOptions();e=e&&e.indexOf("captions")!==-1;var N=this.C.getVideoData(),y=N&&N.j$,w,E=!((w=this.C.getVideoData())==null||!g.QG(w));w={};if(e||y){var A;if(e){var T=this.C.getOption("captions","track");w=this.C.getOption("captions","tracklist",{includeAsr:!0});var p=E?[]:this.C.getOption("captions","translationLanguages");this.tracks=g.l7(w,this.nJ,this);E=g.dn(w,this.nJ);var C,r;T7s(this)&&((A=N.getPlayerResponse())==null?0:(C=A.captions)==null?0:(r=C.playerCaptionsTracklistRenderer)==
null?0:r.openTranscriptCommand)&&E.push("__correction__");if(p.length&&!g.v4(T)){if((A=T.translationLanguage)&&A.languageName){var Y=A.languageName;A=p.findIndex(function(M){return M.languageName===Y});
AVs(p,A)}w90(this.J,p);E.push("__translate__")}A=this.nJ(T)}else this.tracks={},E=[],A="__off__";E.unshift("__off__");this.tracks.__off__={};y&&E.unshift("__contribute__");this.tracks[A]||(this.tracks[A]=T,E.push(A));this.Pc(E);this.BI(A);T&&T.translationLanguage?this.J.BI(this.J.J(T.translationLanguage)):Q31(this.J);e&&this.Z.GI(this.C.getSubtitlesUserSettings());this.countLabel.Ja(w&&w.length?" ("+w.length+")":"");this.publish("size-change");this.C.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.J.Rt=function(e){var N=this.C.getOption("captions","track");N=g.DA(N);N.translationLanguage=this.J.languages[e];Xq(this,N)};
g.J.FH=function(e,N){if(e==="reset")this.C.resetSubtitlesUserSettings();else{var y={};y[e]=N;this.C.updateSubtitlesUserSettings(y)}EZ0(this,!0);this.G.start();this.Z.GI(this.C.getSubtitlesUserSettings())};
g.J.YQB=function(e){e||g.we(this.G)};
g.J.fh=function(){g.we(this.G);g.Go.prototype.fh.call(this)};
g.J.open=function(){g.Go.prototype.open.call(this);this.options.__correction__&&!this.j&&(this.j=this.options.__correction__.element,this.C.createClientVe(this.j,this,167341),this.C.logVisibility(this.j,!0))};g.b(JBM,g.n$);g.J=JBM.prototype;
g.J.initialize=function(){if(!this.isInitialized){var e=this.C.X();this.isInitialized=!0;try{this.rZ=new ZFM(this.C,this)}catch(y){g.uA(Error("QualityMenuItem creation failed"))}g.Q(this,this.rZ);var N=new ABs(this.C,this);g.Q(this,N);e.K||(N=new MV(this.C,this),g.Q(this,N));e.enableSpeedOptions&&(N=new GAF(this.C,this),g.Q(this,N));(g.hR(e)||e.Z)&&(e.N||e.Bk)&&(N=new qO3(this.C,this),g.Q(this,N));e.YO&&!e.T("web_player_move_autonav_toggle")&&(e=new Fq(this.C,this),g.Q(this,e));e=new lb(this.C,this);
g.Q(this,e);this.C.publish("settingsMenuInitialized");upJ(this.settingsButton,this.z9.P2())}};
g.J.Gi=function(e){this.initialize();this.z9.Gi(e);upJ(this.settingsButton,this.z9.P2())};
g.J.MS=function(e){this.Og&&this.z9.P2()<=1&&this.hide();this.z9.MS(e);upJ(this.settingsButton,this.z9.P2())};
g.J.WY=function(e){this.initialize();this.z9.P2()>0&&g.n$.prototype.WY.call(this,e)};
g.J.rT=function(){this.Or?this.Or=!1:g.n$.prototype.rT.call(this)};
g.J.show=function(){g.n$.prototype.show.call(this);g.pi(this.C.getRootNode(),"ytp-settings-shown")};
g.J.hide=function(){g.n$.prototype.hide.call(this);g.re(this.C.getRootNode(),"ytp-settings-shown")};
g.J.iP=function(e){this.C.logVisibility(this.element,e);this.C.publish("settingsMenuVisibilityChanged",e)};g.b(CeM,g.W);g.J=CeM.prototype;g.J.onClick=function(){if(rB_(this)&&(this.C.toggleSubtitles(),this.C.logClick(this.element),!this.isEnabled())){var e=!1,N=g.HE(g.m6(),65);g.na(this.C.X())&&N!=null&&(e=!N);e&&this.C.X().T("web_player_nitrate_promo_tooltip")&&this.C.publish("showpromotooltip",this.element)}};
g.J.k9W=function(e){var N,y;(N=g.T9(this.C))==null||(y=N.X6())==null||y.WY(e)};
g.J.isEnabled=function(){return!!this.C.getOption("captions","track").displayName};
g.J.GZ=function(){var e=rB_(this),N=300;this.C.X().U&&(N=480);if(this.C.X().Z){this.updateValue("title",g.FT(this.C,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var y=e}else{if(e)(y=this.hW("ytp-subtitles-button-icon"))==null||y.setAttribute("fill-opacity","1"),this.updateValue("title",g.FT(this.C,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var w;(w=this.hW("ytp-subtitles-button-icon"))==
null||w.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}y=!0}this.tooltip.xp();y=y&&this.C.Fz().getPlayerSize().width>=N;this.KX(y);this.C.T("embeds_use_parent_visibility_in_ve_logging")?this.C.logVisibility(this.element,y&&this.L):this.C.logVisibility(this.element,y);e?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};
g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.C.X().T("embeds_use_parent_visibility_in_ve_logging")&&this.C.logVisibility(this.element,this.Og&&e)};g.b(g.PK,g.W);g.J=g.PK.prototype;
g.J.HY=function(){var e=this.api.Fz().getPlayerSize().width,N=this.U;this.api.X().U&&(N=400);N=e>=N&&(!dT(this)||!g.G(this.api.getPlayerStateObject(),64));this.KX(N);g.Y1(this.element,"ytp-time-display-allow-autohide",N&&e<400);e=this.api.getProgressState();if(N){N=this.api.getPresentingPlayerType();var y=this.api.getCurrentTime(N,!1);this.N&&(y-=e.airingStart);I5(this)&&(y-=this.c9.startTimeMs/1E3);y=g.P2(y);this.K!==y&&(this.updateValue("currenttime",y),this.K=y);N=I5(this)?g.P2((this.c9.endTimeMs-
this.c9.startTimeMs)/1E3):g.P2(this.api.getDuration(N,!1));this.j!==N&&(this.updateValue("duration",N),this.j=N)}$SP(this,e.isAtLiveHead);Y6J(this,this.api.getLoopRange())};
g.J.onLoopRangeChange=function(e){var N=this.c9!==e;this.c9=e;N&&(this.HY(),MsP(this))};
g.J.O$g=function(){this.api.setLoopRange(null)};
g.J.onVideoDataChange=function(e,N,y){this.updateVideoData((this.api.X().T("enable_topsoil_wta_for_halftime")||this.api.X().T("enable_topsoil_wta_for_halftime_live_infra"))&&y===2?this.api.getVideoData(1):N);this.HY();MsP(this)};
g.J.updateVideoData=function(e){this.AB=e.isLivePlayback&&!e.Kx;this.N=HF(e);this.isPremiere=e.isPremiere;g.Y1(this.element,"ytp-live",dT(this))};
g.J.onClick=function(e){e.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())};
g.J.fh=function(){this.J&&this.J();g.W.prototype.fh.call(this)};g.b(FNE,g.W);g.J=FNE.prototype;g.J.bz=function(){var e=this.api.Nr();this.K!==e&&(this.K=e,lB_(this,this.api.getVolume(),this.api.isMuted()))};
g.J.QX=function(e){this.KX(e.width>=350)};
g.J.ZX=function(e){if(!e.defaultPrevented){var N=e.keyCode,y=null;N===37?y=this.volume-5:N===39?y=this.volume+5:N===36?y=0:N===35&&(y=100);y!==null&&(y=g.Ja(y,0,100),y===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(y)),e.preventDefault())}};
g.J.Cs=function(e){var N=e.deltaX||-e.deltaY;e.deltaMode?this.api.setVolume(this.volume+(N<0?-10:10)):this.api.setVolume(this.volume+g.Ja(N/10,-10,10));e.preventDefault()};
g.J.gOq=function(){vK(this,this.J,!0,this.N,this.api.Dk());this.D=this.volume;this.api.isMuted()&&this.api.unMute()};
g.J.P$=function(e){var N=this.K?78:52,y=this.K?18:12;e-=g.hp(this.U).x;this.api.setVolume(g.Ja((e-y/2)/(N-y),0,1)*100)};
g.J.vO1=function(){vK(this,this.J,!1,this.N,this.api.Dk());this.volume===0&&(this.api.mute(),this.api.setVolume(this.D))};
g.J.onVolumeChange=function(e){lB_(this,e.volume,e.muted)};
g.J.aW=function(){vK(this,this.J,this.isDragging,this.N,this.api.Dk())};
g.J.fh=function(){g.W.prototype.fh.call(this);g.re(this.G,"ytp-volume-slider-active")};g.b(zT,g.W);
zT.prototype.onVideoDataChange=function(){var e=this.api.X();this.I9();this.visible=!!this.api.getVideoData().videoId&&!g.KX(this.api.getVideoData(1));this.KX(this.visible);this.api.logVisibility(this.element,this.visible&&this.L);if(this.visible){var N=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",N)}e.K&&(this.J&&(this.CX(this.J),this.J=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.pi(this.element,"no-link"));
N=this.api.X();e=this.api.getVideoData();var y="";N.K||(N=g.ud(N),N.indexOf("www.")===0&&(N=N.substring(4)),y=g.Os(e)?"Watch on YouTube Music":N==="youtube.com"?"Watch on YouTube":g.SO("Watch on $WEBSITE",{WEBSITE:N}));this.updateValue("title",y)};
zT.prototype.onClick=function(e){this.api.T("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var N=this.api.X(),y=this.api.getVideoUrl(!g.dh(e),!1,!0,!0);if(g.hR(N)){var w={};g.hR(N)&&g.NU(this.api,"addEmbedsConversionTrackingParams",[w]);y=g.Qb(y,w)}g.Uc(y,this.api,e);this.api.T("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
zT.prototype.I9=function(){var e={S:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{S:"path",Az:!0,B:"ytp-svg-fill",V:{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 "}}]},
N=28666,y=this.api.getVideoData();this.api.isEmbedsShortsMode()?e={S:"svg",V:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{S:"path",V:{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.Os(y)&&(e={S:"svg",V:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{S:"path",V:{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",V:{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",V:{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",V:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{S:"path",V:{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",V:{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",V:{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",V:{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",V:{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",V:{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",V:{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",V:{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"}}]},N=216163);g.Os(y)?g.pi(this.element,"ytp-youtube-music-button"):g.re(this.element,"ytp-youtube-music-button");e.V=Object.assign({},e.V,{"aria-hidden":"true"});this.updateValue("logoSvg",e);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,N,!0)};
zT.prototype.nx=function(e){g.W.prototype.nx.call(this,e);this.api.logVisibility(this.element,this.visible&&e)};g.b(oZH,g.fd);g.J=oZH.prototype;g.J.FI=function(){if(this.C.T("web_player_max_seekable_on_ended")||!g.G(this.C.getPlayerStateObject(),2))this.progressBar.HY(),this.i9.HY()};
g.J.vg=function(){this.iN();this.tT.N?this.FI():this.progressBar.SY()};
g.J.rH=function(){this.FI();this.U.start()};
g.J.iN=function(){var e;if(e=!this.C.X().N){e=this.progressBar;var N=2*g.jV()*e.G;e=e.K.getLength()*1E3/e.api.getPlaybackRate()/N<300}e=e&&this.C.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;N=!e;this.tT.N||(e=N=!1);N?this.Kh||(this.Kh=this.Y(this.C,"progresssync",this.FI)):this.Kh&&(this.CX(this.Kh),this.Kh=null);e?this.U.isActive()||this.U.start():this.U.stop()};
g.J.I9=function(){var e=this.C.Nr(),N=this.C.Fz().getPlayerSize(),y=h2F(this),w=Math.max(N.width-y*2,100);if(this.Kx!==N.width||this.Dl!==e){this.Kx=N.width;this.Dl=e;var E=cB3(this);this.j.element.style.width=E+"px";this.j.element.style.left=y+"px";g.gWM(this.progressBar,y,E,e);this.C.Rf().IQ=E}y=this.K;w=Math.min(570*(e?1.5:1),w);e=Math.min(413*(e?1.5:1),Math.round((N.height-kLP(this))*.82));y.maxWidth=w;y.maxHeight=e;y.FR();this.iN();this.C.X().T("html5_player_dynamic_bottom_gradient")&&z7M(this.VB,
N.height)};
g.J.onVideoDataChange=function(){var e=this.C.getVideoData();this.Et.style.background=e.hs?e.yy:"";this.Ng&&tT9(this.Ng,e.showSeekingControls);this.D&&tT9(this.D,e.showSeekingControls)};
g.J.ut=function(){return this.j.element};g.b(B7s,qJ);g.J=B7s.prototype;g.J.VW=function(e){e.target!==this.dismissButton.element&&(this.onClickCommand&&this.C.Mg("innertubeCommand",this.onClickCommand),this.UA())};
g.J.UA=function(){this.enabled=!1;this.D.hide()};
g.J.onVideoDataChange=function(e,N){e==="dataloaded"&&X9M(this);e=[];var y,w,E,A;if(N=(A=g.m((y=N.getWatchNextResponse())==null?void 0:(w=y.playerOverlays)==null?void 0:(E=w.playerOverlayRenderer)==null?void 0:E.suggestedActionsRenderer,NrF))==null?void 0:A.suggestedActions)for(y=g.c(N),w=y.next();!w.done;w=y.next())(w=g.m(w.value,yO_))&&g.m(w.trigger,ejk)&&e.push(w);if(e.length!==0){y=[];e=g.c(e);for(w=e.next();!w.done;w=e.next())if(w=w.value,E=g.m(w.trigger,ejk))A=(A=w.title)?g.SY(A):"View Chapters",
N=E.timeRangeStartMillis,E=E.timeRangeEndMillis,N!=null&&E!=null&&w.tapCommand&&(y.push(new g.wF(N,E,{priority:9,namespace:"suggested_action_button_visible",id:A})),this.suggestedActions[A]=w.tapCommand);this.C.wx(y)}};
g.J.Iy=function(){return this.enabled};
g.J.iP=function(){this.enabled?this.Zl.start():tv(this);this.xK()};
g.J.fh=function(){X9M(this);qJ.prototype.fh.call(this)};var B9={},gT=(B9.CHANNEL_NAME="ytp-title-channel-name",B9.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",B9.LINK="ytp-title-link",B9.SESSIONLINK="yt-uix-sessionlink",B9.SUBTEXT="ytp-title-subtext",B9.TEXT="ytp-title-text",B9.TITLE="ytp-title",B9);g.b(Vq,g.W);Vq.prototype.onClick=function(e){this.api.logClick(this.element);var N=this.api.X(),y=this.api.getVideoUrl(!g.dh(e),!1,!0);g.hR(N)&&(N={},g.NU(this.api,"addEmbedsConversionTrackingParams",[N]),y=g.Qb(y,N));g.Uc(y,this.api,e)};
Vq.prototype.GZ=function(){var e=this.api.getVideoData(),N=this.api.X();this.updateValue("title",e.title);var y={S:"a",B:gT.CHANNEL_NAME,V:{href:"{{channelLink}}",target:"_blank"},b9:"{{channelName}}"};this.api.X().K&&(y={S:"span",B:gT.CHANNEL_NAME,b9:"{{channelName}}",V:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",y);Pe5(this);this.api.getPresentingPlayerType()===2&&(y=this.api.getVideoData(),y.videoId&&y.isListed&&y.author&&y.SR&&y.profilePicture?(this.updateValue("channelLink",
y.SR),this.updateValue("channelName",y.author),this.updateValue("channelTitleFocusable","0")):Pe5(this));y=N.externalFullscreen||!this.api.isFullscreen()&&N.ul;g.Y1(this.link,gT.FULLERSCREEN_LINK,y);N.Kh||!e.videoId||y||g.KX(e)||N.K?this.J&&(this.updateValue("url",null),this.CX(this.J),this.J=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.J||(this.J=this.Y(this.link,"click",this.onClick)));N.K&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.hR(N)?e.expandedTitle:
e.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.b(g.fU,g.W);g.J=g.fU.prototype;g.J.setEnabled=function(e){if(this.type!=null)if(e)switch(this.type){case 3:case 2:IB3(this);this.G.show();break;default:this.G.show()}else this.G.hide();this.U=e};
g.J.ze=function(e,N,y,w,E,A,T,p){if(!this.i9||this.env.U){this.type===3&&this.SY();this.type!==1&&(g.TY(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.U&&this.G.show(),this.N&&this.N.dispose(),(this.N=this.api.nO())&&this.N.subscribe("l",this.hJ,this));if(p){var C=g.Be(this.bg).height||141;this.Rq.style.bottom=C+2+"px"}this.update({text:y,title:A!=null?A:"",eduText:p!=null?p:""});g.Y1(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!A);this.api.isInline()&&g.pi(this.bottomText,
"ytp-modern-tooltip-text");g.Y1(this.element,"ytp-text-detail",!!w);y=-1;this.N&&(y=If(this.N,243*this.scale),this.env.T("web_l3_storyboard")&&this.N.levels.length===4&&(y=this.N.levels.length-1),y=AeM(this.N,y,N));z25(this,y);if(T)switch(N=g.Be(this.element).width,T){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=N+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=N/2+"px",this.title.style.textAlign="center"}vZ5(this,
!!w,e,E)}};
g.J.Mj=function(){this.type===1&&this.SY()};
g.J.AE=function(e,N){if(this.type)if(this.type===3)this.SY();else return;dSM(this,e,3,N)};
g.J.xp=function(){this.J&&!this.D&&this.J.hasAttribute("title")&&(this.K=this.J.getAttribute("title")||"",this.J.removeAttribute("title"),this.U&&IB3(this))};
g.J.hJ=function(e,N){e<=this.j&&this.j<=N&&(e=this.j,this.j=NaN,z25(this,e))};
g.J.IlB=function(){wrF(this.N,this.j,243*this.scale)};
g.J.SY=function(){switch(this.type){case 2:var e=this.J;e.removeEventListener("mouseout",this.Ng);e.addEventListener("mouseover",this.Z);e.removeEventListener("blur",this.Ng);e.addEventListener("focus",this.Z);iSn(this);break;case 3:iSn(this);break;case 1:this.N&&(this.N.unsubscribe("l",this.hJ,this),this.N=null),this.api.removeEventListener("videoready",this.Kh),this.qg.stop()}this.type=null;this.U&&this.G.hide()};
g.J.Zk=function(){if(this.J)for(var e=0;e<arguments.length;e++)g.Ex(arguments[e],this.J)&&this.SY()};
g.J.fh=function(){this.type!=null&&this.SY();this.N&&this.N.dispose();g.W.prototype.fh.call(this)};g.b(gZ_,g.W);g.J=gZ_.prototype;g.J.YW=function(){this.visible=VsP(this);this.KX(this.visible);this.icon&&ts5(this,this.icon);this.C.logVisibility(this.element,this.visible&&this.L)};
g.J.vE=function(){return this.C.getVideoData().videoId};
g.J.onClick=function(){this.C.logClick(this.element);var e=this.C.X(),N=this.vE();e.l9?DS3(this):fBM(this,N)};
g.J.onReset=function(){this.isRequestPending=this.J=!1;this.GZ(2);this.YW()};
g.J.GZ=function(e,N){var y=this.C.X();ts5(this,e);N?this.update({title:N,image:null}):y.userDisplayName?(e={USER_NAME:y.userDisplayName},this.update({title:this.J?g.SO("Added as $USER_NAME",e):g.SO("Watch later as $USER_NAME",e),image:OI(y)})):this.update({title:"Watch later",image:null});this.C.xp()};
g.J.nx=function(e){g.W.prototype.nx.call(this,e);this.C.logVisibility(this.element,this.visible&&e)};g.b(g.tU,g.sN);g.J=g.tU.prototype;
g.J.init=function(){var e=this;this.XS=new g.ys(this.api);this.X9=new $y(this.api);this.oV=new g.W({S:"div",B:"ytp-chrome-top"});this.tooltip=new g.fU(this.api,this);this.channelAvatar=new wR5(this.api);this.title=new Vq(this.api);this.ax=new g.r1({S:"div",B:"ytp-chrome-top-buttons"});this.rQ=new GTF(this.api,this.oV.element);this.NS=this.api.X().controlsType==="1"?new oZH(this.api,this,this.tT):null;this.contextMenu=new Mo5(this.api,this.XS);this.dG=new g.W({S:"div",V:{tabindex:"0"}});this.SS=new g.W({S:"div",
V:{tabindex:"0"}});var N=this.api.Fz(),y=this.api.X(),w=this.api.getVideoData();this.cF&&(g.pi(this.api.getRootNode(),"ytp-embed"),g.pi(this.api.getRootNode(),"ytp-embed-playlist"),this.GQ&&(g.pi(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.pi(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.Lb=60,this.Th=89);this.api.X().K&&g.pi(this.api.getRootNode(),"ytp-embed-pfl");this.api.X().N&&(g.pi(this.api.getRootNode(),"ytp-mobile"),this.api.X().U&&g.pi(this.api.getRootNode(),"ytp-embed-mobile"));
w&&w.videoId&&(this.nw=w&&w.getEmbeddedPlayerResponse());g.Q(this,this.XS);g.Pb(this.api,this.XS.element,4);g.Q(this,this.X9);g.Pb(this.api,this.X9.element,4);w=new g.W({S:"div",B:"ytp-gradient-top"});g.Q(this,w);g.Pb(this.api,w.element,1);this.L0=new g.NE(w,250,!0,100);g.Q(this,this.L0);g.Q(this,this.oV);g.Pb(this.api,this.oV.element,1);this.rM=new g.NE(this.oV,250,!0,100);g.Q(this,this.rM);g.Q(this,this.tooltip);g.Pb(this.api,this.tooltip.element,4);var E=new ELH(this.api);g.Q(this,E);g.Pb(this.api,
E.element,5);E.subscribe("show",function(C){e.hO(E,C)});
this.HK.push(E);this.jm=new Xh(this.api,E);g.Q(this,this.jm);!this.cF&&this.jm.yB(this.oV.element);g.Q(this,this.channelAvatar);this.channelAvatar.yB(this.oV.element);g.Q(this,this.title);this.title.yB(this.oV.element);this.cF&&(w=new vLF(this.api),g.Q(this,w),w.yB(this.oV.element));g.Q(this,this.ax);this.ax.yB(this.oV.element);var A=new l_5(this.api,this);g.Q(this,A);g.Pb(this.api,A.element,5);A.subscribe("show",function(C){e.hO(A,C)});
this.HK.push(A);this.searchButton=new Im(this.api);g.Q(this,this.searchButton);this.searchButton.yB(this.ax.element);this.v_=new gZ_(this.api);g.Q(this,this.v_);this.v_.yB(this.ax.element);this.shareButton=new g.v6(this.api,this,A);g.Q(this,this.shareButton);this.shareButton.yB(this.ax.element);this.copyLinkButton=new rC(this.api,this);g.Q(this,this.copyLinkButton);this.copyLinkButton.yB(this.ax.element);this.cF&&this.jm.yB(this.ax.element);g.Q(this,this.rQ);this.rQ.yB(this.ax.element);y.pz&&(w=new gC(this.api),
g.Q(this,w),g.Pb(this.api,w.element,4));y.K||(w=new UVP(this.api,this.rQ),g.Q(this,w),w.yB(this.ax.element));this.Lw=new e7s(this.api);g.Q(this,this.Lw);g.Pb(this.api,this.Lw.element,5);this.Lw.subscribe("show",function(){e.hO(e.Lw,e.Lw.e1())});
this.HK.push(this.Lw);this.overflowButton=new g.B6(this.api,this.Lw);g.Q(this,this.overflowButton);this.overflowButton.yB(this.ax.element);this.NS&&g.Q(this,this.NS);y.controlsType==="3"&&(w=new dC(this.api),g.Q(this,w),g.Pb(this.api,w.element,9));g.Q(this,this.contextMenu);this.contextMenu.subscribe("show",this.aI,this);this.api.T("show_preskip_progress_bar_for_skippable_ads")||(w=new up(this.api,new Nh(this.api)),g.Q(this,w),g.Pb(this.api,w.element,4));this.dG.listen("focus",this.KB,this);g.Q(this,
this.dG);this.SS.listen("focus",this.tQ,this);g.Q(this,this.SS);var T;(this.Gv=y.zx?null:new L8J(this.api,N,this.contextMenu,this.tT,this.XS,this.X9,function(){return e.Jm()},(T=this.NS)==null?void 0:T.progressBar))&&g.Q(this,this.Gv);
this.cF||(this.jK=new cPs(this.api),g.Q(this,this.jK),g.Pb(this.api,this.jK.element,4),this.An=new h7J(this.api),g.Q(this,this.An),g.Pb(this.api,this.An.element,4));this.Lg=new B7s(this.api);g.Q(this,this.Lg);g.Pb(this.api,this.Lg.element,4);if(this.cF){var p=new xsH(this.api,this.api.X().Bk);g.Q(this,p);g.Pb(this.api,p.element,5);p.subscribe("show",function(C){e.hO(p,C)});
N=new ms5(this.api,p);g.Q(this,N);g.Pb(this.api,N.element,4)}this.W3.push(this.XS.element);this.Y(this.api,"fullscreentoggled",this.bz);this.Y(this.api,"offlineslatestatechange",function(){e.api.hB()&&Qm(e.tT,128,!1)});
this.Y(this.api,"cardstatechange",function(){e.H7()});
this.Y(this.api,"resize",this.Kh1);this.Y(this.api,"videoplayerreset",this.onReset);this.Y(this.api,"showpromotooltip",this.HX1);g.sN.prototype.init.call(this)};
g.J.Rf=function(){return this.tooltip};
g.J.SH=function(){return this.NS};
g.J.hO=function(e,N){N?this.D8=e:this.D8=null;this.H7()};
g.J.wG=function(e,N){if(N)this.Yl.push(e);else for(N=this.Yl.length;N>=0;N--)if(this.Yl[N]===e){this.Yl.splice(N,1);break}Qm(this.tT,64,this.Yl.length>0)};
g.J.B4=function(){this.api.CO()&&this.api.fz();return!!this.D8||ui0(this)||g.sN.prototype.B4.call(this)};
g.J.rj=N3(3);g.J.jy=N3(7);g.J.f2=N3(10);
g.J.H7=function(){var e=!this.B4(),N=e&&this.api.CO()&&!g.G(this.api.getPlayerStateObject(),2)&&!g.KX(this.api.getVideoData())&&!this.api.X().K&&!this.api.isEmbedsShortsMode(),y=this.cF&&g.cb(this.api)&&g.G(this.api.getPlayerStateObject(),128);e||y?(this.rM.show(),this.L0.show()):(this.rM.hide(),this.L0.hide(),this.api.Zk(this.oV.element));N?this.rQ.WY():this.rQ.rT();this.NS&&bSF(this.NS,this.wZ||!e);this.api.T("web_player_hide_overflow_button_if_empty_menu")&&q6E(this);g.sN.prototype.H7.call(this)};
g.J.yg=function(e,N,y,w,E){e.style.left="";e.style.top="";e.style.bottom="";var A=g.Be(e),T=w||this.NS&&g.Ex(this.NS.ut(),N),p=w=null;y!=null&&T||(w=g.Be(N),p=g.ce(N,this.api.getRootNode()),y==null&&(y=p.x+w.width/2));y-=A.width/2;T?(N=this.NS,w=h2F(N),p=cB3(N),T=this.api.Fz().getPlayerSize().height,y=g.Ja(y,w,w+p-A.width),A=T-kLP(N)-A.height):g.Ex(this.oV.element,N)?(N=this.api.Fz().getPlayerSize().width,y=g.Ja(y,12,N-A.width-12),A=this.Nr()?this.Th:this.Lb,this.api.X().playerStyle==="gvn"&&(A+=
20),this.cF&&(A-=this.Nr()?26:18)):(N=this.api.Fz().getPlayerSize(),y=g.Ja(y,12,N.width-A.width-12),A=p.y>(N.height-w.height)/2?p.y-A.height-12:p.y+w.height+12);e.style.top=A+(E||0)+"px";e.style.left=y+"px"};
g.J.vg=function(e){e&&(this.api.Zk(this.oV.element),this.NS&&this.api.Zk(this.NS.ut()));this.GQ&&(g.Y1(this.contextMenu.element,"ytp-autohide",e),g.Y1(this.contextMenu.element,"ytp-autohide-active",!0));g.sN.prototype.vg.call(this,e)};
g.J.OG=function(){g.sN.prototype.OG.call(this);this.GQ&&(g.Y1(this.contextMenu.element,"ytp-autohide-active",!1),this.GQ&&(this.contextMenu.hide(),this.Lw&&this.Lw.hide()))};
g.J.eW=function(e,N){var y=this.api.Fz().getPlayerSize();y=new g.pK(0,0,y.width,y.height);if(e||this.tT.N&&!this.B4()){if(this.api.X().d2||N)e=this.Nr()?this.Th:this.Lb,y.top+=e,y.height-=e;this.NS&&(y.height-=kLP(this.NS))}return y};
g.J.bz=function(e){var N=this.api.getRootNode();e?N.parentElement?(N.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.X().externalFullscreen||(N.parentElement.insertBefore(this.dG.element,N),N.parentElement.insertBefore(this.SS.element,N.nextSibling))):g.t0(Error("Player not in DOM.")):(N.setAttribute("aria-label","YouTube Video Player"),this.dG.detach(),this.SS.detach());this.I9();this.GV()};
g.J.Nr=function(){var e=this.api.X();return this.api.isFullscreen()&&!e.U||!1};
g.J.showControls=function(e){this.vX=!e;this.H7()};
g.J.I9=function(){var e=this.Nr();this.tooltip.scale=e?1.5:1;this.contextMenu&&g.Y1(this.contextMenu.element,"ytp-big-mode",e);this.H7();this.api.T("web_player_hide_overflow_button_if_empty_menu")||q6E(this);this.GV();var N=this.api.isEmbedsShortsMode();N&&e?(e=(this.api.Fz().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$0(this.oV.element,"padding-left",e+"px"),g.$0(this.oV.element,"padding-right",e+"px")):N&&(g.$0(this.oV.element,"padding-left",""),g.$0(this.oV.element,"padding-right",
""));g.sN.prototype.I9.call(this)};
g.J.JG=function(){if(ui0(this)&&!g.cb(this.api))return!1;var e=this.api.getVideoData();return!g.hR(this.api.X())||this.api.getPresentingPlayerType()===2||!this.nw||((e=this.nw||e.nw)?(e=e.embedPreview)?(e=e.thumbnailPreviewRenderer,e=e.videoDetails&&g.m(e.videoDetails,m23)||null):e=null:e=null,e&&e.collapsedRenderer&&e.expandedRenderer)?g.sN.prototype.JG.call(this):!1};
g.J.GV=function(){g.sN.prototype.GV.call(this);this.api.logVisibility(this.title.element,!!this.bL);this.jm&&this.jm.nx(!!this.bL);this.channelAvatar.nx(!!this.bL);this.overflowButton&&this.overflowButton.nx(this.xx()&&!!this.bL);this.shareButton&&this.shareButton.nx(!this.xx()&&!!this.bL);this.v_&&this.v_.nx(!this.xx()&&!!this.bL);this.searchButton&&this.searchButton.nx(!this.xx()&&!!this.bL);this.copyLinkButton&&this.copyLinkButton.nx(!this.xx()&&!!this.bL);if(!this.bL){this.api.Zk(this.oV.element);
for(var e=0;e<this.HK.length;e++){var N=this.HK[e];N.e1()&&N.rT()}}};
g.J.zi=function(e){this.NS&&bSF(this.NS,this.B4());this.H7();g.sN.prototype.zi.call(this,e)};
g.J.handleGlobalKeyDown=function(e,N,y,w,E,A,T,p){return this.Gv?this.Gv.handleGlobalKeyDown(e,N,y,w,E,A,T,p):!1};
g.J.handleGlobalKeyUp=function(e,N,y,w,E,A,T){return this.Gv?this.Gv.handleGlobalKeyUp(e,N,y,w,E,A,T):!1};
g.J.Jm=function(){if(this.contextMenu.Og)return this.contextMenu.rT(),!0;if(this.Yl.length)return this.Yl[this.Yl.length-1].rT(),!0;if(this.D8)return this.D8.rT(),!0;this.NS&&this.api.Zk(this.NS.ut());this.ax&&this.api.Zk(this.ax.element);return g.sN.prototype.Jm.call(this)};
g.J.Aj=function(e,N){this.We=N;this.wG(e,N);this.aI()};
g.J.aI=function(){var e=this.We||this.contextMenu.e1();this.h_!==e&&(this.h_=e,this.api.Mg("onAutonavPauseRequest",this.h_))};
g.J.KB=function(){ZSs(this,this.api.getRootNode(),!0).focus()};
g.J.tQ=function(){ZSs(this,this.api.getRootNode(),!1).focus()};
g.J.X6=function(){return this.NS&&this.NS.K};
g.J.Cd=function(){this.tT.Cd()};
g.J.VU=function(){this.XS.hide()};
g.J.O6=function(e){this.XS.O6(!e.isOrWillBePlaying())};
g.J.mw=function(e,N,y,w){this.X9.mw(e,N,y,w)};
g.J.renderChapterSeekingAnimation=function(e,N,y){hrJ(this.X9,e,N,y)};
g.J.Kh1=function(){xSM(this,!0)};
g.J.onReset=function(){q6E(this)};
g.J.HX1=function(e){xSM(this,!1,e)};
g.J.iH=function(){return this.contextMenu};
g.J.Bv=function(e,N){var y;if((y=this.NS)!=null){var w=Number(e.element.getAttribute("data-priority"))||0,E=0,A=y.N.element;N&&y.C.T("delhi_modern_web_player")&&(A=y.N.hW(ib[N]));N=g.c(A.children);for(y=N.next();!(y.done||w<(Number(y.value.getAttribute("data-priority"))||0));y=N.next())E++;e.yB(A,E)}};
g.J.v5=function(){var e,N=(e=this.NS)==null?void 0:e.progressBar;if(N){var y;((y=N.N)==null?0:y.isEnabled)&&N.v5()}};g.b(g.ub,g.dH);g.ub.prototype.uZ=function(){return!1};
g.ub.prototype.create=function(){var e=this.player.X();g.ZY(e)&&e.N||e.disableOrganicUi?this.chrome=new g.sN(this.player):this.chrome=new g.tU(this.player);g.Q(this,this.chrome);this.chrome.init();this.player.Go("ux")};
g.ub.prototype.Yp=function(){return this.chrome};var qV=[],VFF=!1;g.b(Zt,g.x);Zt.prototype.G=function(){this.J!=null&&this.app.getVideoData()!==this.J&&u0(this.J)&&r8M(this.app,this.J,void 0,void 0,this.K)};
Zt.prototype.Z=function(){if(this.J!=null&&this.app.getVideoData()!==this.J&&this.N!=null&&this.j!=null&&this.L!=null&&u0(this.J)){var e=QSE(this.N,this.j,this.L);e==null?r8M(this.app,this.J,void 0,void 0,this.K):(this.N.Fh("sgap",e),this.N.getVideoData().U&&this.N.BZ(!1))}};
Zt.prototype.U=function(e){var N=this.app.nh();if(N){var y=this.app.getCurrentTime();Math.abs(y-e.end/1E3)>5&&N.Fh("glrs",{cmt:y});N.seekTo(0,{seekSource:58});N.Fh("glrre",{cmt:y})}};
Zt.prototype.fh=function(){this.J=null;g.x.prototype.fh.call(this)};g.b(g.xM,R8);g.J=g.xM.prototype;g.J.isView=function(){return!0};
g.J.eb=function(){var e=this.mediaElement.getCurrentTime();if(e<this.start)try{var N=this.mediaElement.O4(),y=T6(N,e);return!(this.start<y)}catch(w){}return!1};
g.J.JP=function(){return Ch(this.mediaElement.JP(),this.start,this.end)};
g.J.O4=function(){return Ch(this.mediaElement.O4(),this.start,this.end)};
g.J.Gz=function(){return Ch(this.mediaElement.Gz(),this.start,this.end)};
g.J.getCurrentTime=function(){return this.mediaElement.getCurrentTime()-this.start};
g.J.setCurrentTime=function(e){this.mediaElement.setCurrentTime(e+this.start)};
g.J.getDuration=function(){return isFinite(this.end)&&!this.J?this.end-this.start:this.mediaElement.getDuration()-this.start};
g.J.play=function(){if(this.eb()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(e){}}return this.mediaElement.play()};
g.J.N7=function(){var e=R8.prototype.N7.call(this);e.view=this.start+"-"+this.end;return e};
g.J.addEventListener=function(e,N){this.mediaElement.addEventListener(e,N)};
g.J.removeEventListener=function(e,N){this.mediaElement.removeEventListener(e,N)};
g.J.Sd=function(){return this.mediaElement.Sd()};
g.J.activate=function(e){this.mediaElement.activate(e)};
g.J.E$=function(){return this.mediaElement.E$()};
g.J.playVideo=function(){return this.mediaElement.playVideo()};
g.J.xj=function(){this.mediaElement.xj()};
g.J.je=function(){this.mediaElement.je()};
g.J.pk=function(){return this.mediaElement.pk()};
g.J.ut=function(){return this.mediaElement.ut()};
g.J.cI=function(){return this.mediaElement.cI()};
g.J.bC=function(e){this.mediaElement.bC(e)};
g.J.Wu=function(){this.mediaElement.Wu()};
g.J.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.J.setPlaybackRate=function(e){return this.mediaElement.setPlaybackRate(e)};
g.J.ZS=function(){return this.mediaElement.ZS()};
g.J.setLoop=function(e){this.mediaElement.setLoop(e)};
g.J.canPlayType=function(e,N){return this.mediaElement.canPlayType(e,N)};
g.J.isPaused=function(){return this.mediaElement.isPaused()};
g.J.isSeeking=function(){return this.mediaElement.isSeeking()};
g.J.isEnded=function(){return this.mediaElement.isEnded()};
g.J.sV=function(){return this.mediaElement.sV()};
g.J.Zs=function(e){this.mediaElement.Zs(e)};
g.J.dA=function(){return this.mediaElement.dA()};
g.J.load=function(){this.mediaElement.load()};
g.J.pause=function(){this.mediaElement.pause()};
g.J.Rl=function(){return this.mediaElement.Rl()};
g.J.pM=function(){return this.mediaElement.pM()};
g.J.pw=function(){return this.mediaElement.pw()};
g.J.Cq=function(){return this.mediaElement.Cq()};
g.J.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.J.ox=function(){return this.mediaElement.ox()};
g.J.aS=function(){return this.mediaElement.aS()};
g.J.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.J.wD=function(){return this.mediaElement.wD()};
g.J.getSize=function(){return this.mediaElement.getSize()};
g.J.setSize=function(e){this.mediaElement.setSize(e)};
g.J.getVolume=function(){return this.mediaElement.getVolume()};
g.J.setVolume=function(e){this.mediaElement.setVolume(e)};
g.J.setAttribute=function(e,N){this.mediaElement.setAttribute(e,N)};
g.J.removeAttribute=function(e){this.mediaElement.removeAttribute(e)};
g.J.hasAttribute=function(e){return this.mediaElement.hasAttribute(e)};
g.J.LT=N3(56);g.J.R4=N3(58);g.J.CH=N3(60);g.J.D9=N3(62);g.J.u5=function(){return this.mediaElement.u5()};
g.J.o7=function(e){this.mediaElement.o7(e)};
g.J.Vr=function(e){return this.mediaElement.Vr(e)};
g.J.bS=function(){return this.mediaElement.bS()};
g.J.stopVideo=function(){this.mediaElement.stopVideo()};
g.J.ao=function(e){this.mediaElement.ao(e)};
g.J.audioTracks=function(){return this.mediaElement.audioTracks()};
g.J.wu=function(e){this.mediaElement.wu(e)};g.b(KNM,g.x);g.J=KNM.prototype;g.J.getStatus=function(){return this.status};
g.J.Yo=function(){var e=this.J.getVideoData(),N=this.N.getVideoData(),y;if((y=e.K)&&!(y=!e.J)){y=e.J;for(var w=!1,E=!1,A=g.c(Object.values(y.J)),T=A.next();!T.done;T=A.next())T=T.value,T.info.audio&&T.index.isLoaded()&&(w=!0),T.info.video&&T.index.isLoaded()&&(E=!0);y.J["0"]&&(E=!0);y=w&&E}if(y)if(this.J.LC()){A=nZH(this.policy,this.J,this.N,this.iZ);T=WNM(this);y=T.A5;E=T.Qo;w=T.Bt;T=T.Vo;if(!this.G){var p=this.N.eN()*1E3,C=this.J.eN();C=(w-y-C)*1E3;A&&A.msg==="in-the-past"&&(C=0);e=e.isAd();this.N.rJ(p,
C,e);this.G=!0}A?(N="cannot_apply"+A.msg,delete A.msg,this.zS(N,A)):this.status.status===2?sS9(this):(e=this.J.E$())&&HI(e)&&(!nh(e)&&g.O8()?this.zS("mse_closed"):N.J&&Ai(N.J)&&e.N&&!e.N.QC()?this.zS("encr_upgrade"):(N=this.J.LC(),N.isEnded()?this.zS("elem_ended"):E<0?this.zS("next_player_future"):(this.Z=w,this.currentVideoDuration=w-y,this.K=bR9(e,y,w,!0),this.j=bR9(e,E,T,!1),e=this.N.getVideoData().clientPlaybackNonce,this.J.Fh("gaplessPrep",{cpn:e}),this.J.KH(this.K,!1,GLM(this),this.nX.X().T("html5_shorts_gapless_keep_pending_requests")&&
Rf(this.J.getVideoData())),this.J.setMediaElement(OS9(N,y,w,!this.J.getVideoData().isAd())),nU(this,2),sS9(this))))}else this.zS("no-elem")};
g.J.Hv=function(e){var N=e===LNP(this).Sr,y=N?this.K.J:this.K.N;N=N?this.j.J:this.j.N;if(y.isActive&&!N.isActive){var w=this.Z;AX(e.Ju(),w-.01)&&(nU(this,4),y.isActive=!1,y.MC=y.MC||y.isActive,(this.L===1?this.J:this.N).Fh("sbh",{}),N.isActive=!0,N.MC=N.MC||N.isActive,this.L!==0&&(this.J.getVideoData().hv=!0));e=this.j.N;if(this.j.J.isActive&&e.isActive&&(nU(this,5),this.L!==0)){e=this.N.fI();y=this.J.fI();this.J.Fh("sbs",{citag:y==null?void 0:y.itag,nitag:e==null?void 0:e.itag});this.N.Fh("gitags",
{pitag:y==null?void 0:y.itag,citag:e==null?void 0:e.itag});var E;(E=this.N)==null||E.tS()}}};
g.J.u4=function(){this.au()&&this.zS("player-reload-after-handoff")};
g.J.zS=function(e,N){N=N===void 0?{}:N;if(!this.Ss()&&this.status.status!==6){var y=this.status.status>=4&&e!=="player-reload-after-handoff";this.status={status:Infinity,error:e};if(this.J&&this.N){var w=this.N.getVideoData().clientPlaybackNonce;this.J.Qi(new P3("dai.transitionfailure",Object.assign(N,{cpn:w,transitionTimeMs:this.iZ,msg:e})));this.J.BZ(y)}this.P7.reject(e);this.dispose()}};
g.J.au=function(){return this.status.status>=4&&this.status.status<6};
g.J.fh=function(){USH(this);this.J.unsubscribe("newelementrequired",this.u4,this);if(this.K){var e=this.K.N;this.K.J.KC.unsubscribe("updateend",this.Hv,this);e.KC.unsubscribe("updateend",this.Hv,this)}g.x.prototype.fh.call(this)};
g.J.Dt=function(e){g.FD(e,128)&&this.zS("player-error-event")};g.b(Qq,g.x);Qq.prototype.clearQueue=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;this.j&&this.j.reject("Queue cleared");this.app.X().T("html5_gapless_fallback_on_qoe_restart_v2")||N&&this.N&&this.N.BZ(!1);mY(this,e)};
Qq.prototype.xB=function(){return!this.J};
Qq.prototype.au=function(){var e;return((e=this.K)==null?void 0:e.au())||!1};
Qq.prototype.fh=function(){mY(this);g.x.prototype.fh.call(this)};g.b(wJE,g.pT);g.J=wJE.prototype;g.J.getVisibilityState=function(e,N,y,w,E,A,T,p){return e?4:yW5()?3:N?2:y?1:w?5:E?7:A?8:T?9:p?10:0};
g.J.q3=function(e){this.fullscreen!==e&&(this.fullscreen=e,this.iP())};
g.J.setMinimized=function(e){this.N!==e&&(this.N=e,this.iP())};
g.J.setInline=function(e){this.inline!==e&&(this.inline=e,this.iP())};
g.J.bX=function(e){this.pictureInPicture!==e&&(this.pictureInPicture=e,this.iP())};
g.J.setSqueezeback=function(e){this.K!==e&&(this.K=e,this.iP())};
g.J.Gb=function(e){this.j!==e&&(this.j=e,this.iP())};
g.J.ox=function(){return this.J};
g.J.Xi=function(){return this.fullscreen!==0};
g.J.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.J.EU=function(){return this.fullscreen};
g.J.isMinimized=function(){return this.N};
g.J.isInline=function(){return this.inline};
g.J.isBackground=function(){return yW5()};
g.J.Wp=function(){return this.pictureInPicture};
g.J.j3=function(){return!1};
g.J.ly=function(){return this.K};
g.J.gN=function(){return this.j};
g.J.iP=function(){this.publish("visibilitychange");var e=this.getVisibilityState(this.ox(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Wp(),this.j3(),this.ly(),this.gN());e!==this.Z&&this.publish("visibilitystatechange");this.Z=e};
g.J.fh=function(){AWH(this.L);g.pT.prototype.fh.call(this)};g.b(Eo3,g.x);g.J=Eo3.prototype;g.J.NU=function(){return this.j};
g.J.tH=function(e){this.j=e};
g.J.nh=function(){return this.K};
g.J.w1=function(e){this.K=e};
g.J.Ug=function(e){return this.N[e]||null};
g.J.fh=function(){for(var e=g.c(Object.values(this.N)),N=e.next();!N.done;N=e.next())Ov(N.value);g.x.prototype.fh.call(this)};g.b(HK,g.x);g.J=HK.prototype;g.J.enqueue=function(e,N){if(e.j!==this)return!1;if(this.segments.length===0||(N===void 0?0:N))this.J=e;this.segments.push(e);return!0};
g.J.EY=function(){return this.GW||0};
g.J.U_=function(){return this.j||0};
g.J.removeAll=function(){for(;this.segments.length;){var e=void 0;(e=this.segments.pop())==null||e.dispose()}this.N.clear();this.K=void 0};
g.J.fh=function(){this.removeAll();g.x.prototype.fh.call(this)};
g.b(lEs,g.x);g.J=lEs.prototype;g.J.EY=function(){return this.GW};
g.J.U_=function(){return this.K};
g.J.getType=function(){return this.type};
g.J.getVideoData=function(){return this.videoData};
g.J.qa=function(e){rd(e);this.videoData=e};
g.J.fh=function(){FBM(this);g.x.prototype.fh.call(this)};g.R5.prototype.ow=function(e,N){if(N===1)return this.J.get(e);if(N===2)return this.K.get(e);if(N===3)return this.N.get(e)};
g.R5.prototype.r6=N3(50);g.R5.prototype.O7=function(e,N,y,w){y={Yh:w,Z8:y};N?this.K.set(e,y):this.J.set(e,y)};
g.R5.prototype.clearAll=function(){this.J.clear();this.K.clear();this.N.clear()};
g.b(g.GT,g.x);g.J=g.GT.prototype;g.J.QJ=function(e,N,y){return new g.wF(e,N,{id:y,namespace:"serverstitchedcuerange",priority:9})};
g.J.Lt=function(e){var N=e.oO?e.oO*1E3:e.GW,y=this.N.get(e.cpn);y&&this.playback.removeCueRange(y);this.N.delete(e.cpn);this.K.delete(e.cpn);y=this.L.indexOf(e);y>=0&&this.L.splice(y,1);y=[];for(var w=g.c(this.Z),E=w.next();!E.done;E=w.next())E=E.value,E.end<=N?this.playback.removeCueRange(E):y.push(E);this.Z=y;VhM(this,0,N+e.durationMs)};
g.J.onCueRangeEnter=function(e){this.Et.push(e);var N=e.getId();this.playback.Fh("sdai",{oncueEnter:1,cpn:N,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});var y=N==="";this.Ut.add(e.N);var w=this.K.get(N);if(y){var E;if(this.playback.getVideoData().Au()&&((E=this.J)==null?0:E.qd)&&this.j){this.Bp=0;this.J=void 0;this.Dl&&(this.events.CX(this.Dl),this.Dl=null);this.j="";this.Bk=!0;return}}else if(this.playback.Fh("sdai",{enterAdCueRange:1}),
this.playback.getVideoData().Au()&&(w==null?0:w.Aw))return;if(this.Bk&&!this.J)this.Bk=!1,!y&&w&&(y=this.playback.getCurrentTime(),Ns(this,{y6:e,isAd:!0,W2:!0,Ix:y,adCpn:N},{isAd:!1,W2:!1,Ix:y}),this.hM=w.cpn,a5(this,w),e=sD(this,"midab",w),this.playback.Fh("sdai",e),this.Bp=1),this.D=!1;else if(this.J){if(this.J.W2)this.playback.Fh("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.J.adCpn,transitionTime:this.J.Ix,cpn:N,currentTime:this.playback.getCurrentTime()}),w=this.playback.getCurrentTime(),
e={y6:e,isAd:!y,W2:!0,Ix:w,adCpn:N},N={y6:this.J.y6,isAd:this.J.isAd,W2:!1,Ix:w,adCpn:this.J.adCpn},this.J.y6&&this.Ut.delete(this.J.y6.N),Ns(this,e,N);else{if(this.J.y6===e){this.playback.Fh("sdai",{same_cue_range_pair_enter:1,acpn:this.J.adCpn,transitionTime:this.J.Ix,cpn:N,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:e.start,cueRangeEndTime:e.end});this.J=void 0;return}if(this.J.adCpn===N){N&&this.playback.Fh("sdai",{dchtsc:N});this.J=void 0;return}e={y6:e,isAd:!y,W2:!0,Ix:this.playback.getCurrentTime(),
adCpn:N};Ns(this,e,this.J)}this.J=void 0;this.D=!1}else this.J={y6:e,isAd:!y,W2:!0,Ix:this.playback.getCurrentTime(),adCpn:N}};
g.J.onCueRangeExit=function(e){var N=e.getId();this.playback.Fh("sdai",{oncueExit:1,cpn:N,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});var y=N==="",w=this.K.get(N);if(this.playback.getVideoData().Au()&&!y&&w){if(w.Aw)return;w.Aw=!0;this.G.clear();if(this.ph.T("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.Xq()){var E=w.GW;this.playback.EJ(E/1E3,(E+w.durationMs)/1E3)}else this.playback.Fh("lifa",{remove:0})}if(this.Ut.has(e.N))if(this.Ut.delete(e.N),
this.Et=this.Et.filter(function(A){return A!==e}),this.Bk&&(this.D=this.Bk=!1,this.playback.Fh("sdai",{cref:1})),this.J){if(this.J.W2){if(this.J.y6===e){this.playback.Fh("sdai",{same_cue_range_pair_exit:1,
acpn:this.J.adCpn,transitionTime:this.J.Ix,cpn:N,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:e.start,cueRangeEndTime:e.end});this.J=void 0;return}if(this.J.adCpn===N){N&&this.playback.Fh("sdai",{dchtsc:N});this.J=void 0;return}N={y6:e,isAd:!y,W2:!1,Ix:this.playback.getCurrentTime(),adCpn:N};Ns(this,this.J,N)}else if(this.playback.Fh("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.J.adCpn,transitionTime:this.J.Ix,upcomingCpn:N,contentCpn:this.playback.getVideoData().clientPlaybackNonce,
currentTime:this.playback.getCurrentTime()}),this.J.adCpn===N)return;this.J=void 0;this.D=!1}else this.J={y6:e,isAd:!y,W2:!1,Ix:this.playback.getCurrentTime(),adCpn:N};else this.playback.Fh("sdai",{ignore_single_exit:1})};
g.J.Rp=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,GW:0,playerType:1,OQ:0,videoData:this.playback.getVideoData(),errorCount:0}};
g.J.Wo=function(){if(this.g2)return!1;var e=void 0;this.hM&&(e=this.K.get(this.hM));return this.playback.getVideoData().Au()?!!e&&!e.Aw:!!e};
g.J.seekTo=function(e,N,y,w){e=e===void 0?0:e;N=N===void 0?{}:N;y=y===void 0?!1:y;w=w===void 0?null:w;if(this.playback.getVideoData().Au()&&e<=this.l9/1E3)this.playback.pauseVideo(),this.l9=0,this.D=!0,this.playback.hT(),this.playback.seekTo(e),this.playback.playVideo();else if(this.D=!0,y)ooE(this,e,N);else{y=this.app.nh();var E=y===this.Wk?this.dT:null;wl(this,!1);this.Xz=e;this.Y_=N;w!=null&&this.SR.start(w);y&&(this.dT=E||y.getPlayerState(),y.z3(),this.Wk=y)}};
g.J.fh=function(){wl(this,!1);dF0(this);IE5(this);g.x.prototype.fh.call(this)};
g.J.aZ=function(e){this.jn=e;this.playback.Fh("sdai",{swebm:e})};
g.J.Xo=function(e,N,y){if(y&&N){var w=this.G.get(e);if(w){w.locations||(w.locations=new Map);var E=Number(N.split(";")[0]);y=new g.YE(y);this.i9&&this.playback.Fh("sdai",{hdlredir:1,itag:N,seg:e,hostport:lN(y)});w.locations.set(E,y)}}};
g.J.Ox=function(e,N,y,w,E,A){var T=w===3,p=zI3(this,e,N,w,y,A);if(!p){AP(this,N,T);var C=g.vo0(this,N)?"undec":"ncp";this.playback.Fh("sdai",{gvprp:C,mt:e,seg:N,tt:w,itag:y,ce:A});return null}T||this.G.set(N,p);A=p.TN;var r;w=((r=this.ow(N-1,w,E))==null?void 0:r.Yh)||"";w===""&&this.playback.Fh("sdai",{eds:1});r=DFE(this,p.ssdaiAdsConfig);E=this.playback.getVideoData();var Y;T=((Y=E.N)==null?void 0:Y.containerType)||0;Y=E.w$[T];p=p.SI&&N>=p.SI?p.SI:void 0;Y={EL:A?th5(this,A):[],v0:r,Yh:w,Bx:p,Z1:aA(Y.split(";")[0]),
Lv:Y.split(";")[1]||""};p={Ag:Y};this.i9&&(e={gvprpro:"v",sq:N,mt:e.toFixed(3),itag:y,acpns:((C=Y.EL)==null?void 0:C.join("_"))||"none",abid:A},this.playback.Fh("sdai",e));return p};
g.J.cM=function(e){a:{if(!this.g2){var N=i0s(this,e);if(!(this.playback.getVideoData().Au()&&(N==null?0:N.Aw)))break a}N=void 0}var y=N;if(!y)return this.playback.Fh("sdai",{gvprp:"ncp",mt:e}),null;N=y.TN;var w=DFE(this,y.ssdaiAdsConfig);y=y.SI&&y.S2&&e>=y.S2?y.SI:void 0;var E=this.playback.getVideoData(),A,T=((A=E.N)==null?void 0:A.containerType)||0;A=E.w$[T];A={EL:N?th5(this,N):[],v0:w,Bx:y,Z1:aA(A.split(";")[0]),Lv:A.split(";")[1]||""};if(this.ph.T("html5_use_time_without_threshold_first")){var p;
e={gvprpro:"v",mt:e.toFixed(3),acpns:((p=A.EL)==null?void 0:p.join("_"))||"none",abid:N};this.playback.Fh("sdai",e)}return A};
g.J.zz=function(e,N,y,w,E,A){var T=Number(y.split(";")[0]),p=w===3;e=zI3(this,e,N,w,y,A);this.i9&&this.playback.Fh("sdai",{gdu:1,seg:N,itag:T,pb:""+!!e});if(!e)return AP(this,N,p),null;e.locations||(e.locations=new Map);if(!e.locations.has(T)){var C,r;A=(C=e.videoData.getPlayerResponse())==null?void 0:(r=C.streamingData)==null?void 0:r.adaptiveFormats;if(!A)return this.playback.Fh("sdai",{gdu:"noadpfmts",seg:N,itag:T}),AP(this,N,p),null;C=A.find(function(l){return l.itag===T});
if(!C||!C.url){var Y=e.videoData.videoId;e=[];var M=g.c(A);for(w=M.next();!w.done;w=M.next())e.push(w.value.itag);this.playback.Fh("sdai",{gdu:"nofmt",seg:N,vid:Y,itag:T,fullitag:y,itags:e.join(",")});AP(this,N,p);return null}e.locations.set(T,new g.YE(C.url,!0))}A=e.locations.get(T);if(!A)return this.playback.Fh("sdai",{gdu:"nourl",seg:N,itag:T}),AP(this,N,p),null;A=new T4(A);this.jn&&(A.get("dvc")?this.playback.Fh("sdai",{dvc:A.get("dvc")||""}):A.set("dvc","webm"));(w=(M=this.ow(N-1,w,E))==null?
void 0:M.Yh)&&A.set("daistate",w);e.SI&&N>=e.SI&&A.set("skipsq",""+e.SI);(M=this.playback.getVideoData().clientPlaybackNonce)&&A.set("cpn",M);M=[];e.TN&&(M=th5(this,e.TN),M.length>0&&A.set("acpns",M.join(",")));p||this.G.set(N,e);p=null;p=A.get("aids");w=A.nC();(w==null?void 0:w.length)>2048&&this.playback.Fh("sdai",{urltoolong:1,sq:N,itag:T,len:w.length});this.i9&&(w&&(A=e.cpn,E=e.TN,Z09(this,A,E),E&&!this.CC.has(E)&&(A=uW_(this,A,E),C=qXF(this,E),this.playback.Fh("sdai",{iofa:A}),this.playback.Fh("sdai",
{noawnzd:C-A}),this.playback.Fh("sdai",{acpns:M.join("."),aids:(Y=p)==null?void 0:Y.replace(/,/g,".")}),this.CC.add(E))),this.playback.Fh("sdai",{gdu:"v",seg:N,itag:y,ast:e.GW.toFixed(3),alen:e.durationMs.toFixed(3),acpn:e.cpn,avid:e.videoData.videoId}));return w};
g.J.QM=function(e,N,y){var w=E4(this,e,y);return(w=w?(w.GW+w.durationMs)/1E3:0)&&N>w?(this.Af(e,y,!0),this.playback.seekTo(w),!0):!1};
g.J.Af=function(e,N,y){y=y===void 0?!1:y;var w=E4(this,e,N);if(w){var E=void 0,A=w.TN;if(A){this.playback.Fh("sdai",{skipadonsq:N,sts:y,abid:A,acpn:w.cpn,avid:w.videoData.videoId});y=this.Ng.get(A);if(!y)return;y=g.c(y);for(A=y.next();!A.done;A=y.next())A=A.value,A.SI=N,A.S2=e,A.GW>w.GW&&(E=A)}this.j=w.cpn;goH(this);e=this.playback.getCurrentTime();eo(this,w,E,e,e,!1,!0)}};
g.J.My=function(){for(var e=g.c(this.L),N=e.next();!N.done;N=e.next())N=N.value,N.SI=NaN,N.S2=NaN;goH(this);this.playback.Fh("sdai",{rsac:"resetSkipAd",sac:this.j});this.j=""};
g.J.ow=function(e,N,y){return this.aq.ow(e,N,y)};
g.J.r6=N3(49);
g.J.O7=function(e,N,y,w,E,A,T,p,C){w.length>0&&this.playback.Fh("sdai",{onssinfo:1,sq:e,start:N.toFixed(3),cpns:w.join(","),ds:E.join(","),isVideo:T?1:0});C&&this.aq.O7(e,T,p,C);p=L3(this.playback.getVideoData())&&this.ph.T("html5_process_all_cuepoints");if(T||p){if(w.length&&E.length)for(this.j&&this.j===w[0]&&this.playback.Fh("sdai",{skipfail:1,sq:e,acpn:this.j}),e=N+this.U$(),T=0;T<w.length;T++)if(C=w[T],p=e,e=p+E[T],C=this.K.get(C))p-=A[T],C.oO=C.oO!=null?Math.min(C.oO,p):p;if(w.length&&E.length)for(N=
(N+this.U$())*1E3,y=0;y<w.length;y++)if(e=w[y],T=E[y]*1E3,e===this.playback.getVideoData().clientPlaybackNonce)fEF(this,N,N+T,!1),N+=T;else{this.VB.has(e)||(this.playback.Fh("sdai",{adCpnFromEmsg:1}),this.VB.add(e));p=0;y<A.length&&(p=A[y]*1E3);C=this.N.get(e);var r=!1;C?(C.start=N-p,C.end=N+T,this.playback.Wr()):(C=this.QJ(N-p,N+T,e),this.N.set(e,C),this.playback.Fh("sdai",{newAdCR:1,cpn:e,startTime:C.start,endTime:C.end}),r=!0);N=C.end;fEF(this,C.start,C.end,!0);if(r)for(this.playback.addCueRange(C),
e=this.playback.I7("serverstitchedcuerange",36E5),e=g.c(e),T=e.next();!T.done;T=e.next())this.N.delete(T.value.getId())}else y!==5&&y!==4||fEF(this,(N+this.U$())*1E3,(N+this.U$())*1E3+5E3,!1)}};
g.J.HQ=N3(47);g.J.U$=function(){return this.playback.U$()};
g.J.iR=function(e){this.playback.Fh("timelineerror",{e:e})};
g.J.tP=function(e){this.Rq&&this.Kh&&this.Zl.push(this.Kh);e&&this.Kh&&this.FZ.push(this.Kh);this.Kh=null;this.playback.tP(e)};
g.J.lh=function(e){if(this.g2||e.identifier&&this.jp.has(e.identifier))this.i9&&this.playback.Fh("sdai",{startnoad:e.identifier}),LU(this);else if(DR(this.Zl,function(y){return y.identifier===e.identifier}))this.playback.Fh("sdai",{timedoutcp:1}),this.qg.start(0);
else if(DR(this.FZ,function(y){return y.identifier===e.identifier}))this.playback.Fh("sdai",{fetchedcp:1}),LU(this);
else if(this.qg.isActive()){var N;this.playback.Fh("sdai",{racingcp:((N=this.Kh)==null?void 0:N.identifier)+"_"+e.identifier})}else this.PY=(new Date).getTime()/1E3,this.i9&&this.playback.Fh("sdai",{adf:1}),(N=5E3,e.event==="predictStart")&&(N-=e.J),this.a9=Math.max(N,15E3),this.Rq=!1,this.qg.start(this.a9),this.Kh=e,this.aq.clearAll(),this.Kx=[]};
g.J.Ok=function(e,N,y,w){y=y||{reason:"disablessdai"};if(e&&N){if(!E4(this,e,N))return!1;y.sq=N}if(this.g2)return!1;this.g2=!0;this.Bp>0&&(this.Bp=0,this.hM="",this.api.publish("serverstitchedvideochange"));this.playback.Oy(y,w);return!0};
g.J.f_=function(){this.playback.Fh("sdai",{rstdaist:1});this.aq.clearAll()};
g.J.Mp=function(e){var N;if(e!==((N=this.Kh)==null?void 0:N.identifier))this.playback.Fh("sdai",{ignorenoad:e});else{this.jp.add(e);var y;((y=this.Kh)==null?void 0:y.identifier)===e&&LU(this)}};
g.J.MH=function(){return this.Bp};
g.J.XH=function(){return this.hM};
g.J.Wi=function(e){if(this.playback.getVideoData().Au()&&(this.ph.T("html5_lifa_no_gab_on_predict_start")&&e.event==="predictStart"||this.ph.T("html5_lifa_no_gab_on_continue_or_stop")&&(e.event==="continue"||e.event==="stop")))return this.api.Fh("sdai",{cuepoint_skipped:e.event}),!1;var N=ql(this.api.jR());if(N=N?N.Wi(e):!1)this.U={KY:e.identifier,TO:e.startSecs};else if(this.U&&this.U.KY===e.identifier&&e.startSecs>this.U.TO+1){this.api.Fh("sdai",{cueStChg:e.identifier,oldSt:this.U.TO.toFixed(3),
newSt:e.startSecs.toFixed(3),abid:this.U.Lo});if(this.U.Lo){var y=e.startSecs-this.U.TO,w=this.Ng.get(this.U.Lo);if(w){w=g.c(w);for(var E=w.next();!E.done;E=w.next())E=E.value,E.GW>=0&&(E.GW+=y*1E3,this.ph.T("html5_ssdai_update_timeline_on_start_time_change")&&(E.OQ+=y*1E3),this.playback.getVideoData().Au()&&this.playback.Fh("sdai",{newApEt:E.GW,newApPrt:E.OQ,acpn:E.cpn}))}}this.U.TO=e.startSecs}return N};
g.J.hI=function(e){return this.g2?!1:!!i0s(this,e)};
g.J.Eu=function(e){var N=this;this.playback.pauseVideo();var y=this.playback.getCurrentTime(),w=this.K.get(this.hM),E=this.N.get(this.hM);if(w){this.j=this.hM;this.D=!1;w.Aw=!0;var A=this.playback.getCurrentTime();this.J={y6:E,isAd:!0,W2:!1,Ix:A,adCpn:this.hM,qd:w,RIG:e};this.playback.getVideoData().Au()&&this.playback.T5(w,this.Rp(),A,this.playback.getCurrentTime(),!1,!0,e,(0,g.iC)());if(E==null?0:E.start)this.l9=A*1E3-E.start;this.G.clear();this.playback.hT();this.hM=this.Rp().cpn;this.api.publish("serverstitchedvideochange");
this.playback.seekTo(y,{seekSource:89,BY:"lifa_skip"});this.playback.playVideo();this.Dl||(this.Dl=this.events.Y(this.api,"progresssync",function(){N.Lt(w)}));
return!0}this.playback.Fh("sdai",{skipFail:y});return!1};
var k29=0;g.b(xFE,g.GT);g.J=xFE.prototype;g.J.Lt=function(e){var N=this.N.get(e.cpn);N&&this.playback.removeCueRange(N);this.N.delete(e.cpn);this.K.delete(e.cpn);e=this.L.indexOf(e);e>=0&&this.L.splice(e,1)};
g.J.onCueRangeEnter=function(e){var N=e.getId();this.playback.Fh("sdai",{oncueEnter:1,cpn:N,start:e.start,end:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});N=this.K.get(N);this.playback.Fh("sdai",{enterAdCueRange:1});var y=this.hM||this.Rp().cpn,w;y=(w=this.K.get(y))!=null?w:this.Rp();N&&(e={y6:e,fR:y,pR:N,Fk:this.playback.getCurrentTime()},this.pP(e))};
g.J.onCueRangeExit=function(e){for(var N=this.playback.getCurrentTime()*1E3,y=e.getId(),w=g.c(this.N.values()),E=w.next();!E.done;E=w.next())if(E=E.value,E.getId()!==y&&N>=E.start&&N<=E.end)return;if(N=this.K.get(y))e={y6:e,fR:N,pR:this.Rp(),Fk:this.playback.getCurrentTime()},this.pP(e)};
g.J.pP=function(e){this.j||this.D||this.aM(this.hM);var N=e.fR,y=e.pR;if(y.cpn===this.hM)this.playback.Fh("sdai",{igtranssame:1,enter:y.cpn,exit:N.cpn});else{var w=this.D,E=!!this.j;this.j="";e=e.Fk;var A=N.playerType===2?N.GW/1E3+N.videoData.Bk:this.Rp().videoData.Bk;if(N.playerType===2&&y.playerType===2)E?this.playback.Fh("sdai",{igtransskip:1,enter:y.cpn,exit:N.cpn,seek:w,skip:this.j}):eo(this,N,y,A,e,w,E);else{this.hM=y.cpn;if(N.playerType===1&&y.playerType===2){this.l9=0;a5(this,y);var T=sD(this,
"c2a",y);this.playback.Fh("sdai",T);this.Bp++}else if(N.playerType===2&&y.playerType===1){T=N.videoData.Bk;this.api.publish("serverstitchedvideochange");var p=sD(this,"a2c");this.playback.Fh("sdai",p);this.Bp=0;this.l9=T}this.playback.T5(N,y,A,e,w,E)}this.j="";this.D=!1}};
g.J.seekTo=function(e,N,y,w){e=e===void 0?0:e;N=N===void 0?{}:N;y=y===void 0?!1:y;w=w===void 0?null:w;this.aM(this.hM);g.GT.prototype.seekTo.call(this,e,N,y,w)};
g.J.Af=function(e,N,y){y=y===void 0?!1:y;var w=E4(this,e,N);if(w){var E=void 0,A=w.TN;if(A){this.playback.Fh("sdai",{skipadonsq:N,sts:y,abid:A,acpn:w.cpn,avid:w.videoData.videoId});y=this.Ng.get(A);if(!y)return;y=g.c(y);for(A=y.next();!A.done;A=y.next())A=A.value,A.SI=N,A.S2=e,A.GW>w.GW&&(E=A)}this.aM(this.hM);this.j=w.cpn;goH(this);e=this.playback.getCurrentTime();eo(this,w,E,e,e,!1,!0)}};
g.J.O7=function(e,N,y,w,E,A,T,p,C){w.length>0&&this.playback.Fh("sdai",{onssinfo:1,sq:e,start:N.toFixed(3),cpns:w.join(","),ds:E.join(","),isVideo:T?1:0});C&&this.aq.O7(e,T,p,C);y=L3(this.playback.getVideoData())&&this.ph.T("html5_process_all_cuepoints");if(T||y){if(w.length&&E.length)for(this.j&&this.j===w[0]&&this.playback.Fh("sdai",{skipfail:1,sq:e,acpn:this.j}),e=N+this.U$(),T=0;T<w.length;T++)if(p=w[T],y=e,e=y+E[T],p=this.K.get(p))y-=A[T],p.oO=p.oO!=null?Math.min(p.oO,y):y;if(w.length&&E.length)for(T=
(N+this.U$())*1E3,N=0;N<w.length;N++)if(y=w[N],p=E[N]*1E3,y!==this.playback.getVideoData().clientPlaybackNonce){this.VB.has(y)||(this.playback.Fh("sdai",{adCpnFromEmsg:1}),this.VB.add(y));C=0;N<A.length&&(C=A[N]*1E3);if(e=this.N.get(y))e.start=T-C,e.end=T+p,this.playback.Wr();else for(e=this.QJ(T-C,T+p,y),this.N.set(y,e),this.playback.Fh("sdai",{newAdCR:1,cpn:y,startTime:e.start,endTime:e.end}),this.playback.addCueRange(e),T=this.playback.I7("serverstitchedcuerange",36E5),T=g.c(T),y=T.next();!y.done;y=
T.next())this.N.delete(y.value.getId());T=e.end}}};
g.J.aM=function(e){var N=e||this.hM,y=this.K.get(N);if(y){e=y.videoData;var w,E;N=y.oO||((E=(w=this.N.get(N))==null?void 0:w.start)!=null?E:0)/1E3;w=this.playback.getCurrentTime()-N;e.Bk=w>0?w:0}else this.Rp().videoData.Bk=this.playback.getCurrentTime()};g.b(mF_,g.x);g.J=mF_.prototype;
g.J.Nh=function(e,N){N=N===void 0?"":N;if(this.timeline.K===N)return!0;var y=this.timeline.J,w=y==null?void 0:y.getVideoData();if(!y||!w)return this.api.Fh("ssap",{htsm:y?0:1}),!1;if(this.api.T("html5_ssap_clear_timeline_before_update")){var E=this.timeline,A;(A=E.J)==null||FBM(A);E.N.clear()}E=KU(y);var T=!1;A=[];var p=new Map;y=[];var C=[],r=0,Y=0,M=0,l=[];e=g.c(e);for(var F=e.next();!F.done;F=e.next())a:{var S=void 0,k=void 0,X=F.value,d=X.clipId;if(d){if(X.zn){M=X.zn.aj||0;F=X.zn.SO||1;var v=
Number(((X.zn.jA||0)/(X.zn.bD||1)*1E3).toFixed(0));M=F=v+Number((M/F*1E3).toFixed(0))}else F=v=M,this.hE.has(d)||this.sH.add(d);var V=(k=p.get(d))!=null?k:0,Z=this.timeline.K;k=!1;if(Z&&this.api.T("html5_ssap_clear_timeline_before_update")){if(Z=this.Tx.get(d))Z.start=v,Z.end=F,k=!0}else{if(Z){var n=d;Z=v;var R=F,O=V,E9=Nt(this.timeline,n);if(E9!=null&&E9.length){O<E9.length&&(E9[O].GW=Z,E9[O].K=R);if(n=this.Tx.get(n))n.start=Z,n.end=R;Z=!0}else Z=!1}if(Z){p.set(d,V+1);T=!0;break a}}l.push(d);!k&&
X.zn&&(l=this.QJ(v,F,l.join(",")),this.Tx.set(d,l),y.push(l),l=[]);if(((S=X.zn)==null?void 0:S.US)===w.videoId){k=S=void 0;X=d;d=w;X!==d.clientPlaybackNonce&&this.api.Fh("ssap",{cnm:1,cid:X,cpn:d.clientPlaybackNonce});if(this.api.T("html5_ssap_clear_timeline_before_update"))d.YO=v,X=OD(this.timeline,1,v,F-v,d),A.push(X),v=WK(this.timeline,v,F,[X]),T=T||v;else if(Z=[],d&&(d.YO=v,Z=(k=Nt(this.timeline,X))!=null?k:[]),!this.timeline.K&&Z.length&&V===0){T=Z[0];T.GW=v;T.K=F;d=(S=this.timeline.J)==null?
void 0:S.J;if((S=d==null?void 0:d.get(0))&&d)for(k=0;k<S.length;k++)if(Z=S[k],Z.EY()!==Z.U_()){Z.GW=v;Z.j=F;S.splice(k,1);d.has(v)?d.get(v).push(Z):d.set(v,[Z]);break}A.push(T);p.set(X,V+1);T=!0}else X=OD(this.timeline,1,v,F-v,d),A.push(X),v=WK(this.timeline,v,F,[X]),T=T||v;C.length&&(C=H0n(this,r||0,Y,C),T=T||C);Y=r=F;C=[]}else V=void 0,S=this.Ws.get(d),k=S!=null?S:new g.t3(this.api.X(),{cpn:d}),k.s6=!0,this.sH.has(d)&&this.Ws.set(d,k),r=Math.min(v,r),Y=Math.max(F,Y),this.api.Fh("ssap",{e:v,d:F-
v,c:d,p:S?1:0}),k.YO=v,F=OD(this.timeline,2,v,F-v,k,(V=X.NQ)==null?void 0:V.Jv),C.push(F)}else this.api.Fh("ssap",{cm:1})}C.length&&(w=H0n(this,r||0,Y,C),T=T||w);E&&A.length&&(MhP(this.timeline,E,A),this.api.T("html5_ssap_clear_timeline_before_update")&&(w=A[A.length-1].U_(),(E=this.timeline.J)!=null&&(E.K=w)));y.length&&this.playback.Ef(y);if(T){this.timeline.K=N;w=this.playback.XW();N=[];w=g.c(w);for(y=w.next();!y.done;y=w.next()){y=y.value;if(y.K){if(this.api.T("html5_ssap_fix_ad_completion_cue_range")&&
y.start===0x7ffffffffffff)continue;E=XC(this,y.K);if(E===y.N3)continue;y.start=y.start-y.N3+E;y.end=y.end-y.N3+E;y.N3=E;N.push(y)}this.api.T("html5_ssap_fix_cue_range_updates")||this.playback.S4(N)}this.api.T("html5_ssap_fix_cue_range_updates")&&this.playback.S4(N);this.api.Fh("ssap",{tu:Mo(this)});N=ql(this.api.jR());this.api.Fh("ssap",{am:N?1:0})}else this.api.Fh("ssap",{tnu:1});return!0};
g.J.addPlayerResponseForAssociation=function(e){var N=new g.t3(this.api.X(),e.playerVars);N.playerResponseCpn?N.clientPlaybackNonce=N.playerResponseCpn:this.api.Fh("ssap",{eim:this.playback.getVideoData().clientPlaybackNonce});N.s6=!0;if(e=e.Al)N.Al=e,N.clientPlaybackNonce=e.cpn;e=N.clientPlaybackNonce;this.api.Fh("ssap",{aprfa:e+"_"+N.videoId});if(e){this.Ws.set(e,N);var y=Nt(this.timeline,e),w=!1;if(y==null?0:y.length){y=g.c(y);for(var E=y.next();!E.done;E=y.next())E=E.value,N.YO=E.EY(),E.qa(N),
E.N&&(w=!0)}else w=!N.videoId;if(!w){if(!HHs(this.playback.JW.Eg(N.videoId))){var A;this.api.Fh("ssap",{nlc:e,nlcc:(A=this.timeline.J)==null?void 0:KU(A)})}this.playback.JW.LW().qs(e,N,2)}}};
g.J.FB=function(){this.Ai=!0;this.api.T("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.hM,dA(this),5)};
g.J.rz=function(e){if(g.FD(e,128)){var N;e=(N=e.state.qS)==null?void 0:N.errorCode;this.finishSegmentByCpn(this.hM,dA(this),7,e)}};
g.J.finishSegmentByCpn=function(e,N,y,w){if(this.hM===N)return[];this.Ai&&(y=5,this.Ai=!1);this.api.Fh("ssap",{fsbc:e+";"+N,fsbcr:y,fsbct:this.api.getCurrentTime().toFixed(),fsbce:w!=null?w:""});if(this.api.T("html5_ssap_timeline_handle_error_and_abandon")&&(y===5||y===7))return G21(this,e,N,y),[];this.s7=N;var E=!1;if(this.sH.has(e)&&(E=jTF(this,y),!E))return[e];var A=Nt(this.timeline,N);if(A){A.sort(function(C,r){return C.EY()-r.EY()});
var T=g.c(A);for(A=T.next();!A.done;A=T.next()){A=A.value;var p=this.playback.getCurrentTime()*1E3;if(A.EY()>=p){this.Q5.set(e,y);O0n(this,e,N);this.oh.set(e,(0,g.iC)());if(y=this.Tx.get(N))for(y=y.getId().split(","),y=g.c(y),T=y.next();!T.done;T=y.next())T=T.value,T!==N&&this.sH.has(T)&&(this.sH.delete(T),this.hE.add(T));this.aM();N=A.EY()/1E3;A=void 0;y=(A=g.Y2(this.api.X().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?A:0;this.api.T("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(N+
y/1E3,{CI:!0}):this.playback.seekTo(N+y/1E3);this.ED?(this.api.Fh("ssap",{gpfreload:this.hM}),QTH(this)||(this.ED=!1),this.playback.hT(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"))):w&&this.playback.hT(!1,!1,this.api.T("html5_ssap_keep_media_on_finish_segment"));E&&this.api.playVideo(1,this.api.T("html5_ssap_keep_media_on_finish_segment"));return[e]}}}return[]};
g.J.K1=function(){var e=this.timeline.J;if(!e)return 0;var N=e.U_();e=g.c(e.J.values());for(var y=e.next();!y.done;y=e.next()){y=g.c(y.value);for(var w=y.next();!w.done;w=y.next())w=w.value,w.U_()>N&&(N=w.U_())}return N/1E3};
g.J.Ti=function(){var e=this.playback.getCurrentTime()*1E3;var N=LBM(this,e);if(!N){var y=Nt(this.timeline,this.hM);if(y){y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,w.EY()>e&&(N=w)}}return N&&N.getType()===1?N.EY()/1E3:0};
g.J.getVideoData=function(e){if(e===2&&!this.Wo()){if(this.vz&&this.Ws.has(this.vz))return this.Ws.get(this.vz);this.api.Fh("ssap",{lpanf:""+dA(this)});return null}return ep5(this)};
g.J.Wo=function(){var e=Nt(this.timeline,this.hM);return(e==null?0:e.length)?e[0].getType()===2:!1};
g.J.ws=function(){var e=Nt(this.timeline,this.hM);return(e==null?0:e.length)?e[0].N:!1};
g.J.seekTo=function(e,N){N=N===void 0?{}:N;var y=sTs(this,this.playback.getCurrentTime());this.playback.seekTo(e+y/1E3,N)};
g.J.QJ=function(e,N,y){return new g.wF(e,N,{id:y,namespace:"ssap",priority:9})};
g.J.onCueRangeEnter=function(e){if(!this.zH.has(e.getId())){this.api.Fh("ssap",{oce:1,cpn:e.getId(),st:e.start,et:e.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.eN()||0).toFixed(3)});for(var N=e.getId().split(","),y=0;y<N.length&&this.s7&&N[y]!==this.s7;){var w=N[y];this.sH.has(w)&&(this.sH.delete(w),this.hE.add(w));y++}if(N.length>y+1)for(w=y+1;w<N.length;w++)this.iQ.push(N[w]);N=N[y];this.sH.has(N)&&NuP(this,N);this.hE.has(N)||RI5(this,N);N=g.c(this.Tx.values());for(y=
N.next();!y.done;y=N.next())y=y.value,y.start<=e.start&&!this.zH.has(e.getId())&&this.zH.add(y.getId())}};
g.J.MH=function(){return this.Bp};
g.J.XH=function(){return this.hM};
g.J.handleError=function(e,N){N=N===void 0?0:N;if(e!=="fmt.decode"&&e!=="fmt.unplayable"||!this.Wo()||this.pK===this.hM)return!1;this.pK=this.hM;if(this.api.T("html5_enable_ssap_gapful_switch"))this.ED=!0,this.api.Fh("ssap",{gpfonerr:e}),this.playback.hT();else{this.playback.Fh("ssap",{skiperr:e,acpn:this.hM});var y=this.playback.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.hM,y,N===1||N===2?7:6,e)}return!0};
g.J.aM=function(e){var N=e||this.hM;if(e=this.Ws.get(N)||this.playback.getVideoData())N=this.playback.getCurrentTime()-XC(this,N)/1E3,e.Bk=N>0?N:0};
g.J.qYP=function(e){var N=this.Ws.get(this.hM);N&&this.playback.YJ(e-N.YO/1E3,N.lengthSeconds,this.hM)};
g.J.fh=function(){this.api.X().B9()&&this.api.Fh("ssap",{di:""+this.hM,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.Ws.clear();this.sH.clear();this.zH.clear();this.Q5.clear();this.oh.clear();this.hE.clear();this.iQ=[];no_(this);this.s7="";g.g9(this.events);g.x.prototype.fh.call(this)};g.b(EOH,g.x);g.J=EOH.prototype;g.J.onCueRangeEnter=function(e){if(this.J===this.app.nh()){var N=this.L.get(e);N?rb3(this,N.target,N.iZ,e):this.Qi("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:e.toString()})}else if(N=this.N.find(function(E){return E.Qq.y6===e})){var y=N.Qq,w=y.target;
y=y.iZ;w?rb3(this,w,y,e):C5_(this,N.OQ,y,e)}};
g.J.onQueuedVideoLoaded=function(){var e=this.G;rl(this);if(e){if(!C7(this,e)){var N=this.app.nh();this.Qi("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:N==null?void 0:N.getVideoData().clientPlaybackNonce,ccpn:""+e.playerVars.cpn})}this.app.nh().addCueRange(e.Qq.y6)}};
g.J.seekTo=function(e,N,y,w){e=e===void 0?0:e;N=N===void 0?{}:N;w=w===void 0?null:w;if(y===void 0?0:y)wZP(this,e,N);else{y=this.app.nh()||null;var E=y===this.j?this.Z:null;$9(this,!1);this.Ng=e;this.D=N;w!=null&&this.U.start(w);y&&(this.Z=E||y.getPlayerState(),y.z3(),this.j=y)}};
g.J.rz=function(e){g.FD(e,128)&&Fn5(this)};
g.J.isManifestless=function(){return wd(this.J.getVideoData())};
g.J.fh=function(){$9(this,!1);oOE(this);g.x.prototype.fh.call(this)};
g.J.Qi=function(e,N){this.J.Qi(new P3(e,N))};
var AbF=0;var bIM="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_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.b(lK,g.x);g.J=lK.prototype;g.J.get=function(e){Y9(this);var N=this.data.find(function(y){return y.key===e});
return N?N.value:null};
g.J.set=function(e,N,y){this.remove(e,!0);Y9(this);e={key:e,value:N,expire:Infinity};y&&isFinite(y)&&(y*=1E3,e.expire=(0,g.iC)()+y);for(this.data.push(e);this.data.length>this.K;)(y=this.data.shift())&&FO(this,y,!0);Ms(this)};
g.J.remove=function(e,N){N=N===void 0?!1:N;var y=this.data.find(function(w){return w.key===e});
y&&(FO(this,y,N),g.sk(this.data,function(w){return w.key===e}),Ms(this))};
g.J.removeAll=function(e){if(e=e===void 0?!1:e)for(var N=g.c(this.data),y=N.next();!y.done;y=N.next())FO(this,y.value,e);this.data=[];Ms(this)};
g.J.fh=function(){var e=this;g.x.prototype.fh.call(this);this.data.forEach(function(N){FO(e,N,!0)});
this.data=[]};g.b(So,g.x);So.prototype.g0=function(e){if(e)return this.N.get(e)};
So.prototype.fh=function(){this.J.removeAll();this.N.removeAll();g.x.prototype.fh.call(this)};g.Omw=rR(function(){var e=window.AudioContext||window.webkitAudioContext;try{return new e}catch(N){return N.name}});g.b(P5E,g.W);g.J=P5E.prototype;g.J.o7=function(){g.Ci(this.element,g.iE.apply(0,arguments))};
g.J.s_=function(){this.fX&&(this.fX.removeEventListener("focus",this.Pq),g.ws(this.fX),this.fX=null)};
g.J.tI=function(){this.Ss();var e=this.app.X();e.Ps||this.o7("tag-pool-enabled");e.Z&&this.o7(g.t$.HOUSE_BRAND);e.playerStyle==="gvn"&&(this.o7("ytp-gvn"),this.element.style.backgroundColor="transparent");e.PY&&(this.WX=g.Jl("yt-dom-content-change",this.resize,this));this.Y(window,"orientationchange",this.resize,this);this.Y(window,"resize",this.resize,this)};
g.J.f0=function(e){g.Pg(this.app.X());this.d8=!e;oj(this)};
g.J.resize=function(){if(this.fX){var e=this.aV();if(!e.isEmpty()){var N=!g.Fw(e,this.wj.getSize()),y=iIM(this);N&&(this.wj.width=e.width,this.wj.height=e.height);e=this.app.X();(y||N||e.PY)&&this.app.Lh.publish("resize",this.getPlayerSize())}}};
g.J.vc=function(e,N){this.updateVideoData(N)};
g.J.updateVideoData=function(e){if(this.fX){var N=this.app.X();Gv&&(this.fX.setAttribute("x-webkit-airplay","allow"),e.title?this.fX.setAttribute("title",e.title):this.fX.removeAttribute("title"));this.fX.setAttribute("controlslist","nodownload");N.Yb&&e.videoId&&(this.fX.poster=e.LN("default.jpg"))}N=g.lk(e,"yt:bgcolor");this.k$.style.backgroundColor=N?N:"";this.gg=CO(g.lk(e,"yt:stretch"));this.VD=CO(g.lk(e,"yt:crop"),!0);g.Y1(this.element,"ytp-dni",e.hs);this.resize()};
g.J.setGlobalCrop=function(e){this.ZC=CO(e,!0);this.resize()};
g.J.setCenterCrop=function(e){this.xG=e;this.resize()};
g.J.q3=function(){};
g.J.getPlayerSize=function(){var e=this.app.X(),N=this.app.Lh.isFullscreen(),y=e.externalFullscreen&&g.hR(e);if(N&&WL()&&!y)return new g.l8(window.outerWidth,window.outerHeight);y=!isNaN(this.cQ.width)&&!isNaN(this.cQ.height);var w=this.app.X().T("kevlar_player_enable_squeezeback_fullscreen_sizing");if(N&&!y&&w)return new g.l8(this.element.clientWidth,this.element.clientHeight);if(N||e.Em){if(window.matchMedia){e="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Ea&&this.Ea.media===
e||(this.Ea=window.matchMedia(e));var E=this.Ea&&this.Ea.matches}if(E)return new g.l8(window.innerWidth,window.innerHeight)}else if(y)return this.cQ.clone();return new g.l8(this.element.clientWidth,this.element.clientHeight)};
g.J.aV=function(){var e=this.app.X().T("enable_desktop_player_underlay"),N=this.getPlayerSize(),y=g.Y2(this.app.X().experiments,"player_underlay_min_player_width");return e&&this.dZ&&N.width>y?(e=g.Y2(this.app.X().experiments,"player_underlay_video_width_fraction"),new g.l8(Math.min(N.height*this.getVideoAspectRatio(),N.width*e),Math.min(N.height,N.width*e/this.getVideoAspectRatio()))):N};
g.J.getVideoAspectRatio=function(){return isNaN(this.gg)?IaJ(this):this.gg};
g.J.getVideoContentRect=function(e){var N=this.aV();e=vOJ(this,N,this.getVideoAspectRatio(),e);return new g.pK((N.width-e.width)/2,(N.height-e.height)/2,e.width,e.height)};
g.J.c7=function(e){this.dZ=e;this.resize()};
g.J.OW=function(){return this.Rs};
g.J.onMutedAutoplayChange=function(){oj(this)};
g.J.setInternalSize=function(e){g.Fw(this.cQ,e)||(this.cQ=e,this.resize())};
g.J.fh=function(){this.WX&&g.pE(this.WX);this.s_();g.W.prototype.fh.call(this)};g.J=DB3.prototype;g.J.click=function(e,N){this.elements.has(e);this.J.has(e);var y=g.It();y&&e.visualElement&&g.AZ(y,e.visualElement,N)};
g.J.createClientVe=function(e,N,y,w){var E=this;w=w===void 0?!1:w;this.elements.has(e);this.elements.add(e);y=hP0(y);e.visualElement=y;var A=g.It(),T=g.dI();A&&T&&(g.Xj("combine_ve_grafts")?bm(Sq(),y,T):g.NR(g.Rt)(void 0,A,T,y));N.addOnDisposeCallback(function(){E.elements.has(e)&&E.destroyVe(e)});
w&&this.N.add(e)};
g.J.createServerVe=function(e,N,y){var w=this;y=y===void 0?!1:y;this.elements.has(e);this.elements.add(e);N.addOnDisposeCallback(function(){w.destroyVe(e)});
y&&this.N.add(e)};
g.J.destroyVe=function(e){this.elements.has(e);this.elements.delete(e);this.K.delete(e);this.J.delete(e);this.N.delete(e)};
g.J.oW=function(e,N){this.clientPlaybackNonce!==N&&(this.clientPlaybackNonce=N,ox(Sq(),e),gOP(this))};
g.J.setTrackingParams=function(e,N){this.elements.has(e);N&&(e.visualElement=g.XV(N))};
g.J.KX=function(e,N,y){this.elements.has(e);N?this.J.add(e):this.J.delete(e);var w=g.It(),E=e.visualElement;this.N.has(e)?w&&E&&(N?g.w1(w,[E]):g.EZ(w,[E])):N&&!this.K.has(e)&&(w&&E&&g.yv(w,E,void 0,y),this.K.add(e))};
g.J.hasVe=function(e){return this.elements.has(e)};g.b(g.hP,g.x);g.hP.create=function(e,N,y,w){try{var E=typeof e==="string"?e:"player"+g.RP(e),A=Xi[E];if(A){try{A.dispose()}catch(p){g.t0(p)}Xi[E]=null}var T=new g.hP(e,N,y,w);T.addOnDisposeCallback(function(){Xi[E]=null;T.ww&&T.ww()});
return Xi[E]=T}catch(p){throw g.t0(p),(p&&p instanceof Error?p:Error(String(p))).stack;}};
g.J=g.hP.prototype;g.J.UP=function(){return this.visibility};
g.J.tH=function(e){var N=this.NU();if(e!==N){e.getVideoData().autonavState=N.getVideoData().autonavState;N.qB(this.bK,this);var y=N.getPlaybackRate();Ov(N);this.UX.tH(e);e.setPlaybackRate(y);e.H_(this.bK,this);xBH(this)}};
g.J.WI=function(){this.kY||(this.kY=g.AC(z9(),A60()));return this.kY};
g.J.s_=function(e){if(this.mediaElement){this.KJ&&(this.events.CX(this.KJ),this.KJ=null);g.g9(this.EA);var N=this.nh();N&&N.s_(!0,!1,e);this.template.s_();try{this.T("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Wu()}catch(y){g.uA(y)}this.mediaElement=null}};
g.J.w1=function(e,N){if(e!==this.nh()){this.logger.debug(function(){return"start set presenting player, type "+e.getPlayerType()+", vid "+e.getVideoData().videoId});
var y=null,w=this.nh();w&&(y=w.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),uJ(this.HG,3),n7(this,"cuerangesremoved",w.XW()),this.OH&&!e.isGapless()&&w.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),w=e.fO()&&w.fO(),this.R9.d6("iv_s"),GlM(this,w));e.getPlayerType()===1&&this.tH(e);RpM(this,e);this.UX.w1(e);this.mediaElement&&e.setMediaElement(this.mediaElement);e.H_(this.hF,this);e.uy()?XYH(this,"setPresenting",!1):(this.vc("newdata",e,e.getVideoData()),
y&&!g.A_(y,e.getPlayerState())&&this.Uw(new g.ME(e.getPlayerState(),y)),N=N&&this.T("html5_player_preload_ad_fix")&&e.getPlayerType()===1,e.Bz()&&!N&&this.vc("dataloaded",e,e.getVideoData()),(N=(N=e.getVideoData().N)&&N.video)&&this.Lh.Y9("onPlaybackQualityChange",N.quality),n7(this,"cuerangesadded",e.XW()),N=e.getPlayerState(),g.G(N,2)?OI0(this):g.G(N,8)?e.playVideo():e.C_()&&e.pauseVideo(),N=this.NU(),e.getPlayerType()===2&&(e.getVideoData().hK=N.getVideoData().clientPlaybackNonce),e.getPlayerType()!==
2||this.As()||(y=e.getVideoData(),N.QH(y.clientPlaybackNonce,y.FZ||"",y.breakType||0,y.Fo,y.videoId||"")),this.logger.debug("finish set presenting player"))}};
g.J.G5=function(){if(this.NU()!==this.nh()){var e=this.nh();this.logger.debug(function(){return"release presenting player, type "+(e==null?void 0:e.getPlayerType())+", vid "+(e==null?void 0:e.getVideoData().videoId)});
this.w1(this.NU())}};
g.J.Ug=function(e){if(e)if(e===1)e=this.NU();else if(this.getVideoData().enableServerStitchedDai&&e===2)e=this.getVideoData().enablePreroll?this.UX.Ug(2)||this.nh():this.nh();else if(g.xK(this.getVideoData())&&e===2){if(e=this.T("html5_ssap_return_content_player_during_preroll"))if(e=this.k_)e=this.k_,e=e.hM===""?!0:e.Wo();e=e?this.nh():this.UX.Ug(2)||this.nh()}else e=this.UX.Ug(e)||null;else e=this.nh();return e};
g.J.NU=function(){return this.UX.NU()};
g.J.nh=function(){return this.UX.nh()};
g.J.IT=N3(44);g.J.Woh=function(){dl(this)||(this.logger.debug("application playback ready"),this.yY(5))};
g.J.IBg=function(e){if(!dl(this)){this.logger.debug("playback ready");hJM(this);var N=e.getPlayerState();e.C_()?this.pauseVideo():N.isOrWillBePlaying()&&this.playVideo()}};
g.J.canPlayType=function(e){return zS(e)};
g.J.X=function(){return this.ph};
g.J.getVideoData=function(){return this.nh().getVideoData()};
g.J.Qr=N3(18);g.J.M7=function(){return this.NU().getVideoData()};
g.J.getVideoLoadedFraction=function(e){e=this.Ug(e);return e?g.QG(e.getVideoData())?1:(e=e.LC())?e.sz():0:0};
g.J.Fz=function(){return this.template};
g.J.jR=function(){return this.HG};
g.J.s4=function(){return this.R9};
g.J.Tb=function(e){var N=this.Ug(1);N&&N.U7(e)};
g.J.Am=function(){var e=this.HG.Am();this.Lh.publish("videoStatsPingCreated",e);return e};
g.J.getVolume=function(){return Math.round(this.Lh.getVolume())};
g.J.isMuted=function(){return this.Lh.isMuted()};
g.J.yG=function(){if(this.NU()===this.nh()&&this.c9)return this.c9.postId};
g.J.DPl=function(){var e=this;this.T("use_rta_for_player")||(g.I_(this.ph)?g.GX(this.ph,g.qK(this.getVideoData())).then(function(N){ih(z9(),N);oF5(e.getVideoData(),e.ph,e.WI())}):oF5(this.getVideoData(),this.ph,this.WI()))};
g.J.pJ=function(e){this.Lh.publish("poTokenVideoBindingChange",e)};
g.J.BK=function(e){this.Lh.publish("d6de4videobindingchange",e)};
g.J.xt=function(){this.wv&&this.wv.xt()};
g.J.lG=function(e){this.wv=e};
g.J.rO=function(e){if(e===1){this.R9.tick("vr");var N=this.nh();N.IR();tzM(this.R9,N.getVideoData(),bzM(this));kTs(this.HG)}N=this.ph;(Wg(N)&&N.G||g.IK(N))&&(this.As()||this.Lh.Y9("onAdStateChange",e))};
g.J.setLoopVideo=function(e){var N=this.nh();N===this.NU()&&N.ZS()!==e&&(N.setLoop(e),this.Lh.Mg("onLoopChange",e))};
g.J.getLoopVideo=function(){return this.nh().ZS()};
g.J.setLoopRange=function(e){var N=!1;!!this.c9!==!!e?N=!0:this.c9&&e&&(N=this.c9.startTimeMs!==e.startTimeMs||this.c9.endTimeMs!==e.endTimeMs||this.c9.postId!==e.postId||this.c9.type!==e.type);if(N){(N=this.nh())&&Rf(N.getVideoData())&&N.Fh("slr",{et:(e==null?void 0:e.endTimeMs)||-1});N=this.NU();N.MK("applooprange");if(e){var y=new g.wF(e.startTimeMs,e.endTimeMs,{id:"looprange",namespace:"applooprange"});N.addCueRange(y)}else{this.M7().clipConfig=void 0;var w;((y=this.c9)==null?void 0:y.type)!==
"repeatChapter"||isNaN(Number((w=this.c9)==null?void 0:w.loopCount))||(y={loopCount:String(this.c9.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.$$("repeatChapterLoopEvent",y))}this.c9=e;this.Lh.Mg("onLoopRangeChange",e||void 0);this.NU()===this.nh()&&(this.JH(),N.JW.W_())}};
g.J.getLoopRange=function(){return this.c9};
g.J.JH=function(){var e="",N=this.NU();this.c9?N!==this.nh()?e="pnea":wY5(this,N.getCurrentTime())&&(this.c9.loopCount=0,e="ilr"):e="nlr";var y=this.nh();if(y&&Rf(y.getVideoData()))if(this.T("html5_gapless_log_loop_range_info")){var w,E;y.Fh("slrre",{rej:e,ct:N.getCurrentTime(),lst:(w=this.c9)==null?void 0:w.startTimeMs,let:(E=this.c9)==null?void 0:E.endTimeMs})}else y.Fh("slrre",{});e||J80(this)};
g.J.setPlaybackRate=function(e,N){if(!isNaN(e)){e=mBs(this,e);var y=this.NU();y.getPlaybackRate()!==e&&(y.setPlaybackRate(e),N&&!this.ph.j&&g.uY("yt-player-playback-rate",e),this.Lh.Y9("onPlaybackRateChange",e))}};
g.J.getCurrentTime=function(e,N,y){N=N===void 0?!0:N;if(this.getPresentingPlayerType()===3)return hu(this.HG).getCurrentTime();var w=e===2&&this.getVideoData().enableServerStitchedDai,E=g.xK(this.getVideoData());e=w||E?this.nh():this.Ug(e);if(!e)return 0;if(E&&this.k_)return N=this.k_,e=e.getCurrentTime(),y?y=TI(N,y):(y=sTs(N,e),y=e-y/1E3),y;if(N){if(w&&this.Q6&&(y=this.Q6.l9/1E3,y!==0))return y;y=PR(this,e);return f7(this,y.getCurrentTime(),y)}w&&this.Q6?(y=this.Q6,e=e.getCurrentTime(),y=(y=XJn(y,
e*1E3))?e-y.start/1E3:e):y=e.getCurrentTime();return y};
g.J.K9=function(){var e=this.Ug();if(!e)return 0;e=PR(this,e);return f7(this,e.K9(),e)};
g.J.getDuration=function(e,N){N=N===void 0?!0:N;var y=this.getVideoData(),w=e===2&&y.enableServerStitchedDai,E=g.xK(y);var A=w||E?this.nh():this.Ug(e);if(!A)return 0;if(y.hasProgressBarBoundaries()&&!w&&!E){var T,p=Number((T=y.progressBarStartPosition)==null?void 0:T.utcTimeMillis),C;y=Number((C=y.progressBarEndPosition)==null?void 0:C.utcTimeMillis);if(!isNaN(p)&&!isNaN(y))return(y-p)/1E3}if(E&&this.k_)return N=aE9(this.k_,this.k_.XH()),e===1&&N===0?A.getDuration():N;if(N)return A=XO(this,A),f7(this,
A.getDuration(),A);w&&this.Q6?(e=this.Q6,A=A.getCurrentTime(),A=(A=PTE(e,A*1E3))?A.durationMs/1E3:0):A=A.getDuration();return A};
g.J.OY=function(e){var N=this.Ug(e);return N?this.As(N)?(N=XO(this,N),N.OY()-N.getCurrentTime()+this.getCurrentTime(e)):N.OY():0};
g.J.O1=function(){return this.qx};
g.J.addPlayerResponseForAssociation=function(e){this.k_&&this.k_.addPlayerResponseForAssociation(e)};
g.J.finishSegmentByCpn=function(e,N,y){return this.k_?this.k_.finishSegmentByCpn(e,N,y):[]};
g.J.tI=function(){this.template.tI();var e=this.Lh;e.state.element=this.template.element;var N=e.state.element,y;for(y in e.state.J)e.state.J.hasOwnProperty(y)&&(N[y]=e.state.J[y]);(e=ubn(this.template.element))&&this.events.Y(this.template,e,this.onFullscreenChange);this.events.Y(window,"resize",this.cah)};
g.J.getDebugText=function(e){var N=this.NU().N7(e),y=this.nh(),w=this.NU();if(y&&y!==w){y=y.N7(e);w=g.c(Object.keys(y));for(var E=w.next();!E.done;E=w.next())E=E.value,N["ad"+E]=y[E];if(e){y=N;w={};if(E=jU(document,"movie_player"))w.bounds=E.getBoundingClientRect(),w["class"]=E.className;E={};var A=g.H4("video-ads");A?(IQ1(A,E),E.html=A.outerHTML):E.missing=1;A={};var T=g.H4("videoAdUiSkipContainer"),p=g.H4("ytp-ad-skip-button-container"),C=g.H4("ytp-skip-ad-button"),r=T||p||C;r?(IQ1(r,A),A.ima=T?
1:0,A.bulleit=p?1:0,A.component=C?1:0):A.missing=1;w=JSON.stringify({player:w,videoAds:E,skipButton:A});y.ad_skipBtnDbgInfo=w}}e&&this.mediaElement&&(N["0sz"]=""+(+SU(this.mediaElement.getSize())===0),N.op=this.mediaElement.Vr("opacity"),y=this.mediaElement.wD().y+this.mediaElement.getSize().height,N.yof=""+(+y<=0),N.dis=this.mediaElement.Vr("display"));e&&((e=(0,g.D3)())&&(N.gpu=e),(e=this.ph.playerStyle)&&(N.ps=e),this.ph.Bk&&(N.webview=1));N.debug_playbackQuality=this.Lh.getPlaybackQuality(1);
N.debug_date=(new Date).toString();N.origin=window.origin;N.timestamp=Date.now();delete N.uga;delete N.q;return JSON.stringify(N,null,2)};
g.J.getFeedbackProductData=function(){var e={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.X().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250209_00_RC00"},N=this.getPlayerStateObject().qS;N&&(e.player_error_code=N.errorCode,e.player_error_details=JSON.stringify(N.errorDetail));return e};
g.J.getPresentingPlayerType=function(e){if(this.appState===1)return 1;if(dl(this))return 3;var N;if(e&&((N=this.Q6)==null?0:N.Wo(this.getCurrentTime())))return 2;var y;return g.xK(this.getVideoData())&&((y=this.k_)==null?0:y.Wo())?2:this.nh().getPlayerType()};
g.J.ws=function(){return g.xK(this.getVideoData())&&this.k_?this.k_.ws():!1};
g.J.getPlayerStateObject=function(e){return this.getPresentingPlayerType()===3?hu(this.HG).k9:this.Ug(e).getPlayerState()};
g.J.getAppState=function(){return this.appState};
g.J.KP=function(e){switch(e.type){case "loadedmetadata":this.Qx.start();e=g.c(this.Sm);for(var N=e.next();!N.done;N=e.next())N=N.value,SwH(this,N.id,N.pI1,N.sxP,void 0,!1);this.Sm=[];break;case "loadstart":this.R9.d6("gv");break;case "progress":case "timeupdate":JX(e.target.O4())>=2&&this.R9.d6("l2s");break;case "playing":g.Hg&&this.Qx.start();if(g.I_(this.ph))e=!1;else{var y=this.nh();N=g.Bb(this.jR());e=this.mediaElement.Vr("display")==="none"||SU(this.mediaElement.getSize())===0;var w=bK(this.template),
E=y.getVideoData();y=g.ZY(this.ph);E=Gr(E);N=!w||N||y||E||this.ph.a9;e=e&&!N}e&&(e=this.nh(),e.Gp(),this.getVideoData().jn||(this.getVideoData().jn=1,this.x4(),e.playVideo()))}};
g.J.onLoadProgress=function(e,N){this.Lh.pC("onLoadProgress",N)};
g.J.Q2W=function(){this.Lh.publish("playbackstalledatstart")};
g.J.QQ=function(e,N){this.Lh.publish("sabrCaptionsDataLoaded",e,N)};
g.J.Ta9=function(e){var N;(N=this.nh())==null||N.fH(e)};
g.J.Lsh=function(e){var N;(N=this.nh())==null||N.tE(e)};
g.J.onVideoProgress=function(e,N){e=PR(this,e.xi);N=f7(this,e.getCurrentTime(),e);this.Lh.Y9("onVideoProgress",N)};
g.J.onAutoplayBlocked=function(){this.Lh.Y9("onAutoplayBlocked");var e,N=(e=this.nh())==null?void 0:e.getVideoData();N&&(N.TH=!0);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.hR(this.ph)&&(e={autoplayBrowserPolicy:um(),autoplayIntended:qc(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.$$("embedsAutoplayStatusChanged",e))};
g.J.f_9=function(){this.Lh.publish("progresssync")};
g.J.QJt=function(){this.Lh.pC("onPlaybackPauseAtStart")};
g.J.v_l=function(e){if(this.getPresentingPlayerType()===1){g.FD(e,1)&&!g.G(e.state,64)&&this.M7().isLivePlayback&&this.NU().isAtLiveHead()&&this.Lh.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.FD(e,2)){if(this.c9&&this.c9.endTimeMs>=(this.getDuration()-1)*1E3){J80(this);return}OI0(this)}if(g.G(e.state,128)){var N=e.state;this.cancelPlayback(5);N=N.qS;JSON.stringify({errorData:N,debugInfo:this.getDebugText(!0)});this.Lh.Y9("onError",is5(N.errorCode));this.Lh.pC("onDetailedError",{errorCode:N.errorCode,
errorDetail:N.errorDetail,message:N.errorMessage,messageKey:N.Se,cpn:N.cpn});(0,g.iC)()-this.ph.Fr>6048E5&&this.Lh.pC("onReloadRequired")}N={};if(e.state.isPlaying()&&!e.state.isBuffering()&&!mo("pbresume","ad_to_video")&&mo("_start","ad_to_video")){var y=this.getVideoData();N.clientPlaybackNonce=y.clientPlaybackNonce;y.videoId&&(N.videoId=y.videoId);g.nV(N,"ad_to_video");jZ("pbresume",void 0,"ad_to_video");kTs(this.HG)}this.Lh.publish("applicationplayerstatechange",e)}};
g.J.Uw=function(e){this.getPresentingPlayerType()!==3&&this.Lh.publish("presentingplayerstatechange",e)};
g.J.rz=function(e){BR(this,J_(e.state));g.G(e.state,1024)&&this.Lh.isMutedByMutedAutoplay()&&(gl(this,{muted:!1,volume:this.Fe.volume},!1),Vi(this,!1))};
g.J.qQ=function(e,N,y){e==="newdata"&&xBH(this);this.Lh.publish("applicationvideodatachange",e,y)};
g.J.e3=function(e,N){this.Lh.pC("onPlaybackAudioChange",this.Lh.getAudioTrack().Vl.name);this.Lh.publish("internalaudioformatchange",this.Lh.getAudioTrack().Vl.id,N)};
g.J.sW=function(e){var N=this.nh().getVideoData();e===N&&this.Lh.Y9("onPlaybackQualityChange",e.N.video.quality)};
g.J.MB=function(){var e=this.UX.Ug(2);if(e){var N=e.getVideoData();e=e.n3();var y;(y=this.nh())==null||y.Fh("ssdai",{cleanaply:1,acpn:N==null?void 0:N.clientPlaybackNonce,avid:N.videoId,ccpn:e,sccpn:this.M7().clientPlaybackNonce===e?1:0,isDai:this.M7().enableServerStitchedDai?1:0});delete this.UX.N[2]}};
g.J.onVideoDataChange=function(e,N,y){this.vc(e,N.xi,y)};
g.J.vc=function(e,N,y){this.logger.debug(function(){return"on video data change "+e+", player type "+N.getPlayerType()+", vid "+y.videoId});
this.ph.B9()&&N.Fh("vdc",{type:e,vid:y.videoId||"",cpn:y.clientPlaybackNonce||""});N===this.NU()&&(this.ph.MX=y.oauthToken);if(N===this.NU()){this.getVideoData().enableServerStitchedDai&&!this.Q6?(this.T("html5_check_decorator_on_cuepoint")&&this.NU().Fh("sdai",{initSstm:1}),this.Q6=this.T("html5_enable_ssdai_transition_with_only_enter_cuerange")?new xFE(this.Lh,this.ph,this.NU(),this):new g.GT(this.Lh,this.ph,this.NU(),this)):!this.getVideoData().enableServerStitchedDai&&this.Q6&&(this.Q6.dispose(),
this.Q6=null);var w,E;!g.xK(this.getVideoData())||e!=="newdata"&&e!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((w=this.qx.J)==null?void 0:(E=w.getVideoData())==null?void 0:E.clientPlaybackNonce)?!g.xK(this.getVideoData())&&this.k_&&(this.k_.dispose(),this.k_=null):(YX5(this.qx),this.T("html5_ssap_cleanup_ad_player_on_new_data")&&this.MB(),w=OD(this.qx,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.qx.enqueue(w,!0),WK(this.qx,0,this.getDuration(1)*1E3,[w]),MhP(this.qx,this.getVideoData().clientPlaybackNonce,
[w]),this.k_&&(this.k_.dispose(),this.k_=null),this.k_=new mF_(this.Lh,this.qx,this.NU()),this.UX.NU().Mf(this.k_))}if(e==="newdata")this.logger.debug("new video data, destroy modules"),uJ(this.HG,2),this.Lh.publish("videoplayerreset",N);else{if(!this.mediaElement)return;e==="dataloaded"&&(this.NU()===this.nh()?(gw(y.Ot,y.CA),aaE(this)):Ln3(this));N.getPlayerType()===1&&(this.ph.Et&&dzn(this),this.getVideoData().isLivePlayback&&!this.ph.m4&&this.zS("html5.unsupportedlive",2,"DEVICE_FALLBACK"),y.isLoaded()&&
((ntJ(y)||this.getVideoData().NE)&&this.Lh.publish("legacyadtrackingpingchange",this.getVideoData()),y.hasProgressBarBoundaries()&&CL3(this)));this.Lh.publish("videodatachange",e,y,N.getPlayerType())}this.Lh.Y9("onVideoDataChange",{type:e,playertype:N.getPlayerType()});this.JH();(w=y.VM)?this.zr.oW(w,y.clientPlaybackNonce):gOP(this.zr)};
g.J.Gh=function(){vR(this,null);this.Lh.pC("onPlaylistUpdate")};
g.J.tpZ=function(e){delete this.LP[e.getId()];this.NU().removeCueRange(e);a:{e=this.getVideoData();var N,y,w,E,A,T,p,C,r,Y,M=((N=e.Zl)==null?void 0:(y=N.contents)==null?void 0:(w=y.singleColumnWatchNextResults)==null?void 0:(E=w.autoplay)==null?void 0:(A=E.autoplay)==null?void 0:A.sets)||((T=e.Zl)==null?void 0:(p=T.contents)==null?void 0:(C=p.twoColumnWatchNextResults)==null?void 0:(r=C.autoplay)==null?void 0:(Y=r.autoplay)==null?void 0:Y.sets);if(M)for(N=g.c(M),y=N.next();!y.done;y=N.next())if(y=
y.value,E=w=void 0,y=y.autoplayVideo||((w=y.autoplayVideoRenderer)==null?void 0:(E=w.autoplayEndpointRenderer)==null?void 0:E.endpoint),w=g.m(y,g.m0),A=E=void 0,y!=null&&((E=w)==null?void 0:E.videoId)===e.videoId&&((A=w)==null?0:A.continuePlayback)){e=y;break a}e=null}(N=g.m(e,g.m0))&&this.Lh.Mg("onPlayVideo",{sessionData:{autonav:"1",itct:e==null?void 0:e.clickTrackingParams},videoId:N.videoId,watchEndpoint:N})};
g.J.yY=function(e){var N=this;e!==this.appState&&(this.logger.debug(function(){return"app state change "+N.appState+" -> "+e}),e===2&&this.getPresentingPlayerType()===1&&(BR(this,-1),BR(this,5)),this.appState=e,this.Lh.publish("appstatechange",e))};
g.J.zS=function(e,N,y,w,E){this.NU().MP(e,N,y,w,E)};
g.J.qo=function(e,N){this.NU().handleError(new P3(e,N))};
g.J.isAtLiveHead=function(e,N){N=N===void 0?!1:N;var y=this.Ug(e);if(!y)return!1;e=XO(this,y);y=PR(this,y);return e!==y?e.isAtLiveHead(f7(this,y.getCurrentTime(),y),!0):e.isAtLiveHead(void 0,N)};
g.J.k7=function(){var e=this.Ug();return e?XO(this,e).k7():0};
g.J.seekTo=function(e,N,y,w,E){N=N!==!1;if(w=this.Ug(w))this.appState===2&&iK(this),this.As(w)?tP(this)?this.Q6.seekTo(e,{seekSource:E},N,y):this.Yk.seekTo(e,{seekSource:E},N,y):g.xK(this.getVideoData())&&this.k_?this.k_.seekTo(e,{E6:!N,bN:y,BY:"application",seekSource:E}):w.seekTo(e,{E6:!N,bN:y,BY:"application",seekSource:E})};
g.J.seekBy=function(e,N,y,w){this.seekTo(this.getCurrentTime()+e,N,y,w)};
g.J.IE=function(){this.Lh.Y9("SEEK_COMPLETE")};
g.J.jT=function(){this.Lh.Mg("onAbnormalityDetected")};
g.J.onSnackbarMessage=function(e){this.Lh.Mg("onSnackbarMessage",e)};
g.J.Bag=function(e,N){e=e.xi;var y=e.getVideoData();if(this.appState===1||this.appState===2)y.startSeconds=N;this.appState===2?g.G(e.getPlayerState(),512)||iK(this):this.Lh.Y9("SEEK_TO",N)};
g.J.onAirPlayActiveChange=function(){this.Lh.publish("airplayactivechange");this.ph.T("html5_external_airplay_events")&&this.Lh.pC("onAirPlayActiveChange",this.Lh.ox())};
g.J.onAirPlayAvailabilityChange=function(){this.Lh.publish("airplayavailabilitychange");this.ph.T("html5_external_airplay_events")&&this.Lh.pC("onAirPlayAvailabilityChange",this.Lh.qL())};
g.J.showAirplayPicker=function(){var e;(e=this.nh())==null||e.aS()};
g.J.AS=function(){this.Lh.publish("beginseeking")};
g.J.zK=function(){this.Lh.publish("endseeking")};
g.J.getStoryboardFormat=function(e){return(e=this.Ug(e))?XO(this,e).getVideoData().getStoryboardFormat():null};
g.J.nO=function(e){return(e=this.Ug(e))?XO(this,e).getVideoData().nO():null};
g.J.As=function(e){e=e||this.nh();var N=!1;if(e){e=e.getVideoData();if(tP(this))e=e===this.Q6.playback.getVideoData();else a:if(N=this.Yk,e===N.J.getVideoData()&&N.N.length)e=!0;else{N=g.c(N.N);for(var y=N.next();!y.done;y=N.next())if(e.FS===y.value.FS){e=!0;break a}e=!1}N=e}return N};
g.J.r$=function(e,N,y,w,E,A,T){this.logger.debug(function(){return"Adding video to timeline id="+e.video_id+"\n        lengthMs="+w+" enterTimeMs="+E});
var p="",C=tP(this),r;(r=this.nh())==null||r.Fh("appattl",{sstm:this.Q6?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:C});p=C?BfJ(this.Q6,e,N,y,w,E,A,T):pZ9(this.Yk,e,y,w,E,A);this.logger.debug(function(){return"Video added to timeline id="+e.video_id+" timelinePlaybackId="+p});
return p};
g.J.tB=function(e,N,y,w,E,A,T){if(tP(this)){var p=BfJ(this.Q6,e,N,y,w,E,A,T);this.logger.debug(function(){return"Remaining video added to timeline id="+e.video_id+" timelinePlaybackId="+p})}return""};
g.J.Mp=function(e){var N;(N=this.Q6)==null||N.Mp(e)};
g.J.Qn=function(e,N){e=e===void 0?-1:e;N=N===void 0?Infinity:N;tP(this)||oOE(this.Yk,e,N)};
g.J.mX=function(e,N,y){if(tP(this)){var w=this.Q6,E=w.pX.get(e);E?(y===void 0&&(y=E.OQ),E.durationMs=N,E.OQ=y):w.iR("Invalid_timelinePlaybackId_"+e+"_specified")}else{w=this.Yk;E=null;for(var A=g.c(w.N),T=A.next();!T.done;T=A.next())if(T=T.value,T.FS===e){E=T;break}E?(y===void 0&&(y=E.OQ),ST_(w,E,N,y)):JP(w,"InvalidTimelinePlaybackId timelinePlaybackId="+e)}};
g.J.enqueueVideoByPlayerVars=function(e,N,y,w){y=y===void 0?Infinity:y;w=w===void 0?"":w;this.As();e=new g.t3(this.ph,e);w&&(e.FS=w);r8M(this,e,N,y)};
g.J.queueNextVideo=function(e,N,y,w,E){y=y===void 0?NaN:y;y=this.preloadVideoByPlayerVars(e,N===void 0?1:N,y,w===void 0?"":w,E===void 0?"":E);e=this.nh();y&&e&&(N=y.xi,this.T("html5_check_queue_on_data_loaded")?this.X().supportsGaplessShorts()&&e.getVideoData().U&&(y=this.QL,w=this.OH.G,y.j!==N&&(y.N=e,y.j=N,y.K=1,y.J=N.getVideoData(),y.L=w,y.J.isLoaded()?y.Z():y.J.subscribe("dataloaded",y.Z,y))):(N=QSE(e,N,this.OH.G),N!=null?(e.Fh("sgap",N),e.getVideoData().U&&e.BZ(!1)):(e=y.getVideoData(),N=this.QL,
N.J!==e&&(N.J=e,N.K=1,e.isLoaded()?N.G():N.J.subscribe("dataloaded",N.G,N)))))};
g.J.r0=function(e,N,y,w){var E=this;y=y===void 0?0:y;w=w===void 0?0:w;var A=this.nh();A&&XO(this,A).Ou();eIM(this.OH,e,N,y,w).then(function(){E.Lh.pC("onQueuedVideoLoaded")},function(){})};
g.J.xB=function(){return this.OH.xB()};
g.J.uS=function(e){return this.OH.J===e.xi};
g.J.clearQueue=function(e,N){e=e===void 0?!1:e;N=N===void 0?!1:N;this.logger.debug("Clearing queue");this.OH.clearQueue(e,N)};
g.J.loadVideoByPlayerVars=function(e,N,y,w,E,A){N=N===void 0?1:N;var T=this.NU();if(N===2&&this.M7().enableServerStitchedDai&&T&&!T.wq())return T.Fh("lvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:N}),!1;var p=!1;T=new g.t3(this.ph,e);T.reloadPlaybackParams=A;g.mT(this.ph)&&!T.IV&&kP(this.R9);var C;A=this.R9;var r=(C=T.Et)!=null?C:"";A.timerName=r;this.R9.oe("pl_i");this.T("web_player_early_cpn")&&T.clientPlaybackNonce&&this.R9.infoGel({clientPlaybackNonce:T.clientPlaybackNonce});if(MwH(T).supportsVp9Encoding===
!1){var Y;(Y=this.nh())==null||Y.Fh("noVp9",{})}if(this.X().supportsGaplessShorts()){C=yNM(this.OH,T,N);if(C==null){BR(this,-1);e=this.OH;e.app.X().T("html5_gapless_new_slr")?A8M(e.app,"gaplessshortslooprange"):e.app.setLoopRange(null);e.app.getVideoData().cC=!0;var M;(M=e.J)==null||M.QK();var l;(l=e.J)!=null&&mS(l.JW.Eg());y={BY:"gapless_to_next_video",seekSource:60};var F;(F=e.app.nh())==null||F.seekTo(Nfn(e),y);if(!e.app.getPlayerStateObject(N).isPlaying()){var S;(S=e.app.nh())==null||S.playVideo(!0)}e.Z();
return!0}F=this.T("html5_shorts_gapless_preload_fallback");S=this.OH.J;F&&S&&!S.JW.Ss()&&(M=S.getVideoData(),M=this.ph.T("html5_autonav_autoplay_in_preload_key")?qs(this,N,M):Zg(this,N,M.videoId,M.FS),this.UX.J.set(M,S,3600));this.OH.clearQueue(F);var k;(k=this.nh())==null||k.Fh("sgap",{f:C})}if(E){for(;T.FA.length&&T.FA[0].isExpired();)T.FA.shift();p=T.FA.length-1;p=p>0&&E.N(T.FA[p])&&E.N(T.FA[p-1]);T.FA.push(E)}y||(e&&xhs(e)?(ZW(this.ph)&&!this.nj&&(e.fetch=0),vR(this,e)):this.playlist&&vR(this,
null),e&&(this.nj=A2(!1,e.external_list)));this.Lh.publish("loadvideo");N=this.Hi(T,N,w);p&&this.zS("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+T.FA.join()).replace(/[;:,]/g,"_"));return N};
g.J.preloadVideoByPlayerVars=function(e,N,y,w,E){N=N===void 0?1:N;y=y===void 0?NaN:y;w=w===void 0?"":w;E=E===void 0?"":E;var A="";if(this.ph.T("html5_autonav_autoplay_in_preload_key"))A=Yw3(this,N,e,E);else{var T=r9(e);A=Zg(this,N,T,E)}if(this.UX.J.get(A))return this.logger.debug(function(){return"already preloaded "+A}),null;
e=new g.t3(this.ph,e);E&&(e.FS=E);return $zJ(this,e,N,y,w)};
g.J.setMinimized=function(e){this.visibility.setMinimized(e);(e=PbM(this.HG))&&(this.isMinimized()?e.load():e.unload());this.Lh.publish("minimized")};
g.J.setInline=function(e){this.visibility.setInline(e)};
g.J.setInlinePreview=function(e){this.visibility.setInline(e)};
g.J.bX=function(e){MJ3(this,e)||this.visibility.bX(e)};
g.J.setSqueezeback=function(e){this.visibility.setSqueezeback(e)};
g.J.Ak=function(){var e,N=(e=this.mediaElement)==null?void 0:e.ut();N&&((this.T("html5_disable_pip_with_standard_api")||this.T("html5_pip_visibility_on_resize"))&&document.exitFullscreen().catch(function(){}),kh(N).catch(function(y){g.uA(y)}))};
g.J.Gas=function(){this.mediaElement.ut();this.mediaElement.ut().webkitPresentationMode==="picture-in-picture"?this.bX(!0):this.bX(!1)};
g.J.togglePictureInPicture=function(){var e=this.nh();e&&e.togglePictureInPicture()};
g.J.Hi=function(e,N,y){N=N===void 0?1:N;this.logger.debug(function(){return"start load video, id "+e.videoId+", type "+N});
mo("_start",this.R9.timerName)||g.NR(VQ)(void 0,this.R9.timerName);var w=!1,E=y89(this,N,e,!1);E?(w=!0,e.dispose()):(E=UBs(this,N,e,y).xi,(this.T("html5_onesie")||this.T("html5_load_before_stop"))&&E.Vn()&&E.xN(),this.Qx.stop(),N===1&&N!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,N),this.w1(E));E===this.NU()&&(this.ph.MX=e.oauthToken);if(!E.Vn())return!1;if(E===this.NU())return this.yY(1),y=iK(this),w&&this.T("html5_player_preload_ad_fix")&&E.getPlayerType()===1&&
E.Bz()&&this.vc("dataloaded",E,E.getVideoData()),y;E.yR();return!0};
g.J.cueVideoByPlayerVars=function(e,N){var y=this;N=N===void 0?1:N;var w=this.NU();if(this.M7().enableServerStitchedDai&&w&&!w.wq()&&e&&Object.keys(e).length>0)w.Fh("qvonss",{vid:(e==null?void 0:e.videoId)||"",ptype:N});else if(e&&xhs(e))if(this.PJ=!0,vR(this,e),(e=g.Bo(this.playlist))&&e.WG())jo(this,e,N);else this.playlist.onReady(function(){zI(y)});
else{N||(N=this.getPresentingPlayerType());N===1&&this.Gh();w=new g.t3(this.ph,e);var E=g.hR(this.ph)&&!this.ph.Kh&&N===1&&!w.isAd()&&!w.FZ;this.Lh.publish("cuevideo");E?(this.nh().getVideoData().loading=!0,W29(w,e?e:{}).then(function(A){jo(y,A,N)}),w.dispose()):jo(this,w,N)}};
g.J.gq=function(e,N,y,w,E,A,T){if(!e&&!y)throw Error("Playback source is invalid");if(kj(this.ph)||g.Pa(this.ph))return N=N||{},N.lact=z_(),N.vis=this.Lh.getVisibilityState(),this.Lh.Mg("onPlayVideo",{videoId:e,watchEndpoint:A,sessionData:N,listId:y}),!1;qL9(this.R9);this.R9.reset();e={video_id:e};w&&(e.autoplay="1");w&&(e.autonav="1");A&&(e.player_params=A.playerParams);T&&(e.oauth_token=T);y?(e.list=y,this.loadPlaylist(e)):this.loadVideoByPlayerVars(e,1);return!0};
g.J.cuePlaylist=function(e,N,y,w){this.PJ=!0;lQH(this,e,N,y,w)};
g.J.loadPlaylist=function(e,N,y,w){this.PJ=!1;lQH(this,e,N,y,w)};
g.J.ZR=function(){return this.Lh.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.gk())};
g.J.J$=N3(13);
g.J.nextVideo=function(e,N){var y=g.HH(this.NU().getVideoData());g.dZ(this.Lh)&&y?this.gq(y.videoId,N?y.AV:y.sessionData,y.playlistId,N,void 0,y.FD||void 0):this.nj?this.Lh.pC("onPlaylistNext"):this.getPresentingPlayerType()===3?hu(this.HG).nextVideo():!this.playlist||ZW(this.ph)&&!this.Lh.isFullscreen()||(this.playlist.gk(e)&&Qm5(this.playlist,jmH(this.playlist)),this.playlist.loaded?(e=N&&this.ph.T("html5_player_autonav_logging"),N&&this.Lh.publish("playlistautonextvideo"),this.Hi(g.Bo(this.playlist,void 0,
N,e),1)):this.PJ=!1)};
g.J.previousVideo=function(e){this.nj?this.Lh.pC("onPlaylistPrevious"):this.getPresentingPlayerType()===3?hu(this.HG).Pu():!this.playlist||ZW(this.ph)&&!this.Lh.isFullscreen()||(this.playlist.GJ(e)&&Qm5(this.playlist,ny9(this.playlist)),this.playlist.loaded?this.Hi(g.Bo(this.playlist),1):this.PJ=!1)};
g.J.playVideoAt=function(e){this.nj?this.Lh.pC("onPlaylistIndex",e):this.playlist&&(this.playlist.loaded?this.Hi(g.Bo(this.playlist,e),1):this.PJ=!1,Qm5(this.playlist,e))};
g.J.getPlaylist=function(){return this.playlist};
g.J.X7=N3(23);g.J.YgB=function(e){this.Lh.Y9("onCueRangeEnter",e.getId())};
g.J.X9s=function(e){this.Lh.Y9("onCueRangeExit",e.getId())};
g.J.oy=function(){var e=g.fZ(this.jR());e&&e.oy()};
g.J.Ef=function(e,N,y){var w=this.Ug(N);if(w){var E=this.M7();if(g.xK(E)){if(this.k_)if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&w.getPlayerType()===2&&this.k_.Wo()&&(w=this.NU()),N===1)for(var A=XC(this.k_,E.clientPlaybackNonce),T=g.c(e),p=T.next();!p.done;p=T.next())p=p.value,p.start+=A,p.end+=A,p.N3=A,p.K=E.clientPlaybackNonce;else if(this.T("html5_ssap_enable_cpn_triggered_media_end")&&N===2)for(this.getPresentingPlayerType(),E=g.c(e),A=E.next();!A.done;A=E.next())A.value.K=this.k_.XH();
E=g.c(e);for(A=E.next();!A.done;A=E.next())T=void 0,A.value.playerType=(T=N)!=null?T:1}w.Ef(e,y);N&&this.getPresentingPlayerType()!==N||n7(this,"cuerangesadded",e)}};
g.J.E7=function(e,N){var y=this.Ug(N);y&&(y.E7(e),N&&this.getPresentingPlayerType()!==N||n7(this,"cuerangesremoved",e))};
g.J.iX=function(e){var N=this.nh()||this.NU(),y=this.getPresentingPlayerType();return this.T("html5_ssap_enable_cpn_triggered_media_end")?N.iX(y,e):N.iX(y)};
g.J.eyB=function(){function e(){var w=N.screenLayer||(N.isMinimized()?3:0),E=g.It(w);if(E&&E!=="UNDEFINED_CSN"){var A=N.ph.T("web_player_attach_player_response_ve"),T=N.ph.T("web_playback_associated_ve");w={cpn:N.getVideoData().clientPlaybackNonce,csn:E};N.getVideoData().i9&&(A||T)&&(A=g.XV(N.getVideoData().i9),g.yv(E,A),T&&(w.playbackVe=A.getAsJson()));N.getVideoData().queueInfo&&(w.queueInfo=N.getVideoData().queueInfo);E={};N.T("web_playback_associated_log_ctt")&&N.getVideoData().Z&&(E.cttAuthInfo=
{token:N.getVideoData().Z,videoId:N.getVideoData().videoId});g.$$("playbackAssociated",w,E)}else g.uA(new g.Gh("CSN Missing or undefined during playback association"))}
var N=this,y=this.nh();this.getPresentingPlayerType();tzM(this.R9,y.getVideoData(),bzM(this));Ij(this)&&this.ph.j&&I$(this.M7())==="embedded"&&this.dC&&Math.random()<.01&&g.$$("autoplayTriggered",{intentional:this.intentionalPlayback});this.dC=!1;kTs(this.HG);this.T("web_player_defer_ad")&&sb_(this);this.Lh.pC("onPlaybackStartExternal");(this.ph.T("mweb_client_log_screen_associated"),Vy(this.ph))||e();y={};this.getVideoData().Z&&(y.cttAuthInfo={token:this.getVideoData().Z,videoId:this.getVideoData().videoId});
y.sampleRate=20;QQ("player_att",y);if(this.getVideoData().botguardData||this.T("fetch_att_independently"))g.na(this.ph)||nC(this.ph)==="MWEB"?g.e1(g.yK(),function(){Dg(N)}):Dg(this);
this.JH();TJs(this);this.T("embeds_enable_autoplay_and_visibility_signals")&&g.hR(this.ph)&&(y={autoplayBrowserPolicy:um(),autoplayIntended:qc(this.getVideoData()),autoplayStatus:IF9(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.$$("embedsAutoplayStatusChanged",y))};
g.J.FB=function(){this.Lh.publish("internalAbandon");uK(this)};
g.J.onApiChange=function(){var e=this.nh();this.ph.G&&e?this.Lh.Y9("onApiChange",e.getPlayerType()):this.Lh.Y9("onApiChange")};
g.J.Ekh=function(){var e=this.mediaElement;e={volume:g.Ja(Math.floor(e.getVolume()*100),0,100),muted:e.sV()};e.muted||Vi(this,!1);this.Fe=g.DA(e);this.Lh.Y9("onVolumeChange",e)};
g.J.mutedAutoplay=function(e){var N=this.getVideoData().videoId;isNaN(this.Pr)&&(this.Pr=this.getVideoData().startSeconds);if(!this.T("embeds_enable_full_length_inline_muted_autoplay"))N&&(this.loadVideoByPlayerVars({video_id:N,playmuted:!0,start:this.Pr}),this.Lh.pC("onMutedAutoplayStarts"));else if((e==null?0:e.videoId)||N)this.loadVideoByPlayerVars({video_id:(e==null?0:e.videoId)?e==null?void 0:e.videoId:N,playmuted:!0,start:this.Pr,muted_autoplay_duration_mode:e==null?void 0:e.durationMode}),
this.Lh.pC("onMutedAutoplayStarts")};
g.J.onFullscreenChange=function(){var e=c8F(this);this.q3(e?1:0);BJM(this,!!e)};
g.J.q3=function(e){var N=!!e,y=!!this.EU()!==N;this.visibility.q3(e);this.template.q3(N);this.T("html5_media_fullscreen")&&!N&&this.mediaElement&&c8F(this)===this.mediaElement.ut()&&this.mediaElement.u5();this.template.resize();y&&this.R9.tick("fsc");y&&(this.Lh.publish("fullscreentoggled",N),e=this.M7(),N={fullscreen:N,videoId:e.d$||e.videoId,time:this.getCurrentTime()},this.Lh.getPlaylistId()&&(N.listId=this.Lh.getPlaylistId()),this.Lh.Y9("onFullscreenChange",N))};
g.J.Xi=function(){return this.visibility.Xi()};
g.J.isFullscreen=function(){return this.visibility.isFullscreen()};
g.J.EU=function(){return this.visibility.EU()};
g.J.cah=function(){if(this.nh()){var e=window.screen.width*window.screen.height,N=window.outerHeight*window.outerWidth;this.T("html5_disable_pip_with_standard_api")&&(this.Be=Math.max(this.Be,e,N));var y=this.EU();y!==0&&y!==1||this.q3(c8F(this)?1:0);if(this.T("html5_pip_visibility_on_resize"))e=y!==0&&N/this.Be<.33,this.visibility.bX(e),MJ3(this,e);else if(this.T("html5_disable_pip_with_standard_api"))this.bX(N/e<.33);else{var w;this.mediaElement&&((w=this.getVideoData())==null||!w.backgroundable)&&
this.ph.Fo&&N/e<.33&&this.mediaElement.u5()}}};
g.J.Pkq=function(e){this.getPresentingPlayerType()!==3&&this.Lh.publish("liveviewshift",e)};
g.J.playVideo=function(e,N){this.logger.debug(function(){return"play video, player type "+e});
var y=this.Ug(e);y&&(this.appState===2?(g.mT(this.ph)&&kP(this.R9),iK(this)):g.G(y.getPlayerState(),2)?(N=36,this.getVideoData().e_()&&(N=37),this.seekTo(0,void 0,void 0,void 0,N)):y.playVideo(!1,N))};
g.J.pauseVideo=function(e,N){(e=this.Ug(e))&&e.pauseVideo(N)};
g.J.stopVideo=function(e){e=e===void 0?!1:e;this.logger.debug(function(){return"stop video"});
var N=this.NU().getVideoData(),y=new g.t3(this.ph,{video_id:N.d$||N.videoId,oauth_token:N.oauthToken});y.D=g.DA(N.D);var w;!e||(w=this.webPlayerContextConfig)!=null&&w.disableStaleness||(y.SP=!0);this.cancelPlayback(6);jo(this,y,1)};
g.J.cancelPlayback=function(e,N){var y=this;this.logger.debug(function(){return"start cancel playback, type "+N});
var w=this.Ug(N);w?N===2&&w.getPlayerType()===1&&(yH_(this.M7())||g.xK(this.getVideoData()))?w.Fh("canclpb",{r:"no_adpb_ssdai"}):(this.ph.B9()&&w.Fh("canclpb",{r:e}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+y.appState}):(w===this.nh()&&(this.logger.debug("cancel playback, destroy modules"),uJ(this.HG,e)),N===1&&(w.stopVideo(),uK(this)),w.wK(void 0,e!==6),n7(this,"cuerangesremoved",w.XW()),w.JW.yb.reset(),this.OH&&w.isGapless()&&
(w.s_(!0),w.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.J.sendVideoStatsEngageEvent=function(e,N,y){(N=this.Ug(N))&&auM(this.ph,e)?N.sendVideoStatsEngageEvent(e,y):y&&y()};
g.J.FW=function(e){var N=this.Ug();return N&&auM(this.ph,e)?N.FW(e):null};
g.J.updatePlaylist=function(){!ZW(this.ph)&&g.hR(this.ph)&&eJH(this);this.Lh.pC("onPlaylistUpdate")};
g.J.setSizeStyle=function(e,N){this.xu=e;this.T("web_log_theater_mode_visibility")?this.Gb(N):this.zp=N;this.Lh.publish("sizestylechange",e,N);this.template.resize()};
g.J.Gb=function(e){this.visibility.Gb(e)};
g.J.gN=function(){return this.T("web_log_theater_mode_visibility")?this.visibility.gN():this.zp};
g.J.isMinimized=function(){return this.visibility.isMinimized()};
g.J.isInline=function(){return this.visibility.isInline()};
g.J.Wp=function(){return this.visibility.Wp()};
g.J.j3=function(){return this.visibility.j3()};
g.J.ly=function(){return this.visibility.ly()};
g.J.iS=function(){return this.xu};
g.J.getAdState=function(){if(this.getPresentingPlayerType()===3)return hu(this.HG).getAdState();if(!this.As()){var e=ql(this.jR());if(e)return e.getAdState()}return-1};
g.J.zv1=function(e){var N=this.template.getVideoContentRect();CK(this.KK,N)||(this.KK=N,(N=this.nh())&&N.yq(),(N=this.NU())&&N===this.nh()&&N.yq(),this.EU()===1&&this.Ab&&BJM(this,!0));this.Zw&&g.Fw(this.Zw,e)||(this.Lh.publish("appresize",e),this.Zw=e)};
g.J.Bf=function(){return this.Lh.Bf()};
g.J.evh=function(){this.getPresentingPlayerType()===2&&this.Yk.isManifestless()?Fn5(this.Yk):(this.Q6&&(dF0(this.Q6),uK(this)),XYH(this,"signature"))};
g.J.uSh=function(e){e&&XYH(this,"reloadPlayerEvent",void 0,e)};
g.J.x4=function(e){this.s_(e);k9(this)};
g.J.U7P=function(e){if(e.errorCode==="manifest.net.badstatus"){var N=this.ph.experiments.gP("html5_use_network_error_code_enums")?401:"401";e.details.rc===N&&this.Lh.Mg("onPlayerRequestAuthFailed")}};
g.J.pu=function(e){this.Lh.publish("heartbeatparams",e)};
g.J.gV=function(e){this.Lh.Mg("onAutonavChangeRequest",e!==1)};
g.J.LC=function(){return this.mediaElement};
g.J.setBlackout=function(e){if(this.ph.a9!==e){this.ph.a9=e;var N=this.nh();N&&(N.JW.W_(),this.ph.Et&&dzn(this),N.bI(e))}};
g.J.ecB=function(){var e=this.nh();if(e){var N=!this.Lh.hB();e.yd(N)}};
g.J.onLoadedMetadata=function(){this.Lh.pC("onLoadedMetadata")};
g.J.onDrmOutputRestricted=function(){this.Lh.pC("onDrmOutputRestricted")};
g.J.Z$=function(){this.intentionalPlayback=!0};
g.J.fh=function(){this.HG.dispose();this.pB.dispose();this.Yk.dispose();this.Q6&&this.Q6.dispose();this.qx.removeAll();this.qx.dispose();this.k_&&this.k_.dispose();Ov(this.NU());this.s_();this.UX.dispose();g.pq(this.playlist);g.x.prototype.fh.call(this)};
g.J.T=function(e){return this.ph.T(e)};
g.J.setScreenLayer=function(e){this.screenLayer=e};
g.J.getInternalApi=function(){return this.Lh.getInternalApi()};
g.J.createSubtitlesModuleIfNeeded=function(){return this.HG.createSubtitlesModuleIfNeeded()};
g.J.isOrchestrationLeader=function(){var e=xP(this.HG);return e?e.isOrchestrationLeader():!1};
g.J.getVideoUrl=function(e,N,y,w,E){if(this.c9&&this.c9.postId)return e=this.ph.getVideoUrl(e),e=KY(e,"v"),e.replace("/watch","/clip/"+this.c9.postId);var A=this.Lh.isEmbedsShortsMode()||this.ph.Rq==="shortspage",T=g.Os(this.getVideoData());return this.ph.getVideoUrl(e,N,y,w,E,A,T)};
g.J.au=function(){return this.OH.au()};
g.J.Du=function(e,N,y){this.Lh.publish("spsumpreject",e,N,y)};
g.J.Jq=function(){try{for(var e=g.c(Object.values(this.UX.N)),N=e.next();!N.done;N=e.next()){var y=N.value;y.JW.Ss()||y.Jq()}if(this.T("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var w=g.c(cb5(this.UX.J)),E=w.next();!E.done;E=w.next()){var A=E.value;A.JW.Ss()||A.Jq()}this.NU().Jq()}catch(T){g.uA(T)}};
g.J.Eu=function(){if(this.Q6){var e=(0,g.iC)();return this.Q6.Eu(e)}return!1};
g.J.VF=function(e){var N=this.NU();e&&(N=vU1(this,e));if(N){var y=N.getVideoData();e=new Map;y=g.c(y.sabrContextUpdates);for(var w=y.next();!w.done;w=y.next()){var E=g.c(w.value);w=E.next().value;E=E.next().value;var A,T;if(T=E.scope===4)(A=N)==null?A=0:(T=void 0,A=!((T=A.JW.tW)==null||!T.K.UH.has(w))),T=A;T&&e.set(w,E)}return e}this.NU().Fh("scuget",{ncpf:"1",ccpn:e})};
var Xi={};var Rfw={Tr:[{LI:/Unable to load player module/,weight:20},{LI:/Failed to fetch/,weight:500},{LI:/XHR API fetch failed/,weight:10},{LI:/JSON parsing failed after XHR fetch/,weight:10},{LI:/Retrying OnePlatform request/,weight:10},{LI:/CSN Missing or undefined during playback association/,weight:100},{LI:/Non-recoverable error. Do not retry./,weight:0},{LI:/Internal Error. Retry with an exponential backoff./,weight:0},{LI:/API disabled by application./,weight:0}],QY:[{callback:zJs,weight:500}]};var QW5=/[&\?]action_proxy=1/,nU9=/[&\?]token=([\w-]*)/,mzs=/[&\?]video_id=([\w-]*)/,Hzn=/[&\?]index=([\d-]*)/,KJE=/[&\?]m_pos_ms=([\d-]*)/,Ozn=/[&\?]vvt=([\w-]*)/,VJ3="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),WJF="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),uJ_={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"},qwM={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},xz_={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};HR.prototype.aE=function(e){this.player.s4().tick(e)};
HR.prototype.fetch=function(e,N){var y=this;if(!e.match(/\[BISCOTTI_ID\]/g))return this.N(e,N);var w=this.J===1;w&&this.aE("a_bid_s");var E=Dz1();if(E!==null)return w&&this.aE("a_bid_f"),this.N(e,N,E);E=gU_();w&&ho(E,function(){y.aE("a_bid_f")});
return E.then(function(A){return y.N(e,N,A)})};
HR.prototype.N=function(e,N,y){var w=this,E=N===void 0?{}:N;N=E.m1;var A=E.y6;var T=E.cueProcessedMs;y=y===void 0?"":y;var p=this.player.getVideoData(1);E=this.player.X().kX;var C=0;if(T&&A&&!N){var r=A.end-A.start;r>0&&(C=Math.floor(r/1E3))}C=N?N.Vj:C;var Y={AD_BLOCK:this.J++,AD_BREAK_LENGTH:C,AUTONAV_STATE:m8(this.player.X()),CA_TYPE:"image",CPN:p.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.k7()*1E3,LACT:z_(),LIVE_INDEX:N?this.K++:1,LIVE_TARGETING_CONTEXT:N&&N.context?N.context:"",MIDROLL_POS:A?
Math.round(A.start/1E3):0,MIDROLL_POS_MS:A?Math.round(A.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Fz().aV().height,P_W:this.player.Fz().aV().width,YT_REMOTE:E?E.join(","):""},M=l4(MR);Object.keys(M).forEach(function(F){M[F]!=null&&(Y[F.toUpperCase()]=M[F].toString())});
y!==""&&(Y.BISCOTTI_ID=y);y={};Y3(e)&&(y.sts="20129",(N=this.player.X().forcedExperiments)&&(y.forced_experiments=N));var l=Cp(g.Vx(e,Y),y);return l.split("?").length!==2?oD(Error("Invalid AdBreakInfo URL")):g.GX(this.player.X(),p==null?void 0:p.oauthToken).then(function(F){if(F&&$3()){var S=z9();ih(S,F)}F=w.player.WI(S);S=RJP(w,l,Y,p.isMdxPlayback,T);return g.Rg(F,S,"/youtubei/v1/player/ad_break").then(function(k){return k})})};
HR.prototype.reset=function(){this.K=this.J=1};g.b(Gn9,HR);
Gn9.prototype.N=function(e,N,y){N=N===void 0?{}:N;var w=N.m1;var E=N.y6;var A=N.cueProcessedMs;y=y===void 0?"":y;N=this.J;this.J++;var T=this.player.X().T("h5_disable_macro_substitution_in_get_ad_break")?e:UzE(this,e,{m1:w,y6:E,cueProcessedMs:A},y,N);if(T.split("?").length!==2)return Math.random()<.1&&g.uA(Error("Invalid AdBreakInfo URL")),oD(Error("Invalid AdBreakInfo URL"));var p=this.player.getVideoData(1).isMdxPlayback,C=y;y=nU9.exec(T);y=y!=null&&y.length>=2?y[1]:"";e=QW5.test(T);var r=mzs.exec(T);
r=r!=null&&r.length>=2?r[1]:"";var Y=Hzn.exec(T);Y=Y!=null&&Y.length>=2&&!Number.isNaN(Number(Y[1]))?Number(Y[1]):1;var M=KJE.exec(T);M=M!=null&&M.length>=2?M[1]:"0";var l=DW(this.player.X().qg),F=g.LR(this.player.getVideoData(1).i9,!0);tJF(this,F,T,C===""?"":C,this.player.X(),this.player.getVideoData(1));C={splay:!1,lactMilliseconds:String(z_()),playerHeightPixels:Math.trunc(this.player.Fz().aV().height),playerWidthPixels:Math.trunc(this.player.Fz().aV().width),vis:Math.trunc(this.player.getVisibilityState()),
signatureTimestamp:20129,autonavState:m8(this.player.X())};if(p){p={};var S=this.player.X().kX;Zz3(p,S?S.join(","):"")&&(C.mdxContext=p)}if(p=WJF.includes(l)?void 0:g.jH("PREF")){S=p.split(RegExp("[:&]"));for(var k=0,X=S.length;k<X;k++){var d=S[k].split("=");if((d[0].toUpperCase()==="SML"||d[0].toUpperCase()==="GSML")&&d.length>1&&d[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn=jWF(p)}T=Ozn.exec(T);(T=T!=null&&T.length>=2?T[1]:"")&&r&&(F.user.credentialTransferTokens=
[{token:T,scope:"VIDEO"}]);T={contentPlaybackContext:C};C=this.player.getVideoData(1).getGetAdBreakContext();p=this.player.getVideoData(1).clientPlaybackNonce;S=A!==void 0?Math.round(A).toString():void 0;k=(w==null?0:w.context)?w.context:void 0;X=0;A&&E&&!w&&(E=E.end-E.start,E>0&&(X=Math.floor(E/1E3)));w=(w=Math.trunc((w?w.Vj:X)*1E3))?String(w):void 0;E=this.player.k7()*1E3;E=Number.isNaN(E)?0:Math.trunc(E);N={adBlock:N,params:y,breakIndex:Y,breakPositionMs:M,clientPlaybackNonce:p,topLevelDomain:l,
isProxyAdTagRequest:e,context:F,overridePlaybackContext:T,cueProcessedMs:S,videoId:r?r:void 0,liveTargetingParams:k,breakLengthMs:w,driftFromHeadMs:E?String(E):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:C?C:void 0};return LJ5(this,N)};var Gyq={N2P:"replaceUrlMacros",akP:"onAboutThisAdPopupClosed",yoh:"executeCommand"};sWs.prototype.jh=function(){return"adPingingEndpoint"};
sWs.prototype.A$=function(e,N,y){gk5(this.Pk.get(),e,N,y)};aQF.prototype.jh=function(){return"changeEngagementPanelVisibilityAction"};
aQF.prototype.A$=function(e){this.C.Mg("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:e})};euJ.prototype.jh=function(){return"loggingUrls"};
euJ.prototype.A$=function(e,N,y){e=g.c(e);for(var w=e.next();!w.done;w=e.next())w=w.value,gk5(this.Pk.get(),w.baseUrl,N,y,w.attributionSrcMode)};g.b(ySH,g.x);g.b(WR,g.x);g.J=WR.prototype;g.J.addListener=function(e){this.listeners.push(e)};
g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})};
g.J.I$=function(e,N,y,w,E,A,T,p){if(e==="")YN("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(e!==this.J||y){this.J=e;this.zZ.get().I$(e,N,y,w,E,A,T,p);this.Hk.get().I$(e,N,y,w,E,A,T,p);var C;(C=this.p$)==null||C.get().I$(e,N,y,w,E,A,T,p);this.N.I$(e,N,y,w,E,A,T,p);C=g.c(this.listeners);for(var r=C.next();!r.done;r=C.next())r.value.I$(e,N,y,w,E,A,T,p)}else YN("Duplicate content video loaded signal")};
g.J.FB=function(){this.J&&this.Jg(this.J)};
g.J.Jg=function(e){this.J=void 0;for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.Jg(e)};O4.prototype.W8=function(e,N,y,w,E){wkM(this);this.L=!N&&y===0;var A=this.C.getVideoData(1),T=this.C.getVideoData(2);A&&(this.contentCpn=A.clientPlaybackNonce,this.videoId=A.videoId,this.J=A.Z);T&&(this.adCpn=T.clientPlaybackNonce,this.adVideoId=T.videoId,this.adFormat=T.adFormat);this.j=e;w<=0?(wkM(this),this.L=!N&&y===0):(this.actionType=this.L?N?"unknown_type":"video_to_ad":N?"ad_to_video":"ad_to_ad",this.videoStreamType=E?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
(this.K=!0,mo("_start",this.actionType)&&TUM(this)))};
O4.prototype.reset=function(){return new O4(this.C)};g.b(Rj,g.x);Rj.prototype.addCueRange=function(e,N,y,w,E,A,T){A=A===void 0?3:A;T=T===void 0?1:T;this.J.has(e)?YN("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:e}):(e=new JS_(e,N,y,w,A),this.J.set(e.id,{y6:e,listener:E,UR:T}),this.C.wx([e],T))};
Rj.prototype.removeCueRange=function(e){var N=this.J.get(e);N?(this.C.bl([N.y6],N.UR),this.J.delete(N.y6.id)):YN("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:e})};
Rj.prototype.onCueRangeEnter=function(e){if(this.J.has(e.id))this.J.get(e.id).listener.onCueRangeEnter(e.id)};
Rj.prototype.onCueRangeExit=function(e){if(this.J.has(e.id))this.J.get(e.id).listener.onCueRangeExit(e.id)};
g.b(JS_,g.wF);GI.prototype.rO=function(e){this.C.rO(e)};
GI.prototype.gS=function(e){var N=g.iE.apply(1,arguments);e==="onAdStart"||e==="onAdEnd"?this.C.Y9.apply(this.C,[e].concat(g.B(N))):this.C.Mg.apply(this.C,[e].concat(g.B(N)))};U4.prototype.HE=function(e){return e&&L7(this)};var St5=null;g.b(FtH,g.pT);FtH.prototype.sy=function(e){return this.J.hasOwnProperty(e)?this.J[e].sy():{}};
g.jM("ytads.bulleit.getVideoMetadata",function(e){return s4().sy(e)});
g.jM("ytads.bulleit.triggerExternalActivityEvent",function(e,N,y){var w=s4();y=ll_(y);y!==null&&w.publish(y,{queryId:e,viewabilityString:N})});g.J=aj.prototype;g.J.wz=function(e,N){if(!this.J.has(e))return{};if(N==="seek"){N=this.C.X().T("html5_dai_enable_active_view_creating_completed_adblock");N=N===void 0?!1:N;var y=z0(BB).qD(e,{});y?Bf(y):N&&(e=z0(BB).o3(null,O7(),!1,e),e.I1=3,Qks([e]));return{}}N=b8s(N);if(N===null)return{};var w=this.C.K_();if(!w)return{};var E=this.C.getPresentingPlayerType(!0);if((y=this.C.getVideoData(E))==null||!y.isAd())return{};y={opt_adElement:w,opt_fullscreen:this.zZ.get().isFullscreen()};return QpM(N,e,y)};
g.J.Ld=function(e,N,y,w,E){this.J.has(e)&&(w<=0||E<=0||z0(BB).Ld(e,N,y,w,E))};
g.J.tq=function(e){var N;(N=this.J.get(e.queryId))==null||N.tq()};
g.J.KG=function(e){var N;(N=this.J.get(e.queryId))==null||N.KG()};
g.J.fG=function(e){var N;(N=this.J.get(e.queryId))==null||N.fG()};
g.J.Nf=function(e){var N;(N=this.J.get(e.queryId))==null||N.Nf()};
g.J.k6=function(e){var N;(N=this.J.get(e.queryId))==null||N.k6()};Il0.prototype.send=function(e,N,y,w){try{vk9(this,e,N,y,w===void 0?!1:w)}catch(E){}};g.b(zuE,Il0);i8M.prototype.send=function(e,N,y,w){var E=!1;try{if(w==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||w==="ATTRIBUTION_SRC_MODE_XHR_OPTION")E=!0,e=pL0(e);w=E;var A=e.match(fY);if(A[1]==="https")var T=e;else A[1]="https",T=iB("https",A[2],A[3],A[4],A[5],A[6],A[7]);var p=NmM(T);A=[];var C=OGE(T)&&this.wP.get().C.X().experiments.gP("add_auth_headers_to_remarketing_google_dot_com_ping");if(Y3(T)||C)A.push({headerType:"USER_AUTH"}),A.push({headerType:"PLUS_PAGE_ID"}),A.push({headerType:"VISITOR_ID"}),A.push({headerType:"EOM_VISITOR_ID"}),
A.push({headerType:"AUTH_USER"}),A.push({headerType:"DATASYNC_ID"});this.J.send({baseUrl:T,scrubReferrer:p,headers:A},N,y,w)}catch(r){}};Ey.prototype.FW=function(){return this.C.FW(1)};g.b(AM,g.x);g.J=AM.prototype;g.J.YI=function(){return this.C.getVideoData(1).clientPlaybackNonce};
g.J.addListener=function(e){this.listeners.push(e)};
g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})};
g.J.I$=function(){this.J_.clear();this.Tp=null;this.hf.get().clear()};
g.J.Jg=function(){};
g.J.b$q=function(e,N,y,w,E){N.videoId==="nPpU29QrbiU"&&this.C.Fh("ads_ssm_vdc_s",{pt:y,dvt:e});MC(this.wP.get())&&e!=="dataloaded"||xQ9(this,N,y);if(L7(this.wP.get())&&e==="newdata"&&E!==void 0){e=this.YI();var A=N.clientPlaybackNonce,T={};hG(this,"rte",(T.ec=A,T.xc=w==null?void 0:w.clientPlaybackNonce,T.tr=E,T.pt=y,T.ia=A!==e,T.ctp=b$(A),T));N=N.clientPlaybackNonce;w=w==null?void 0:w.clientPlaybackNonce;E=jn_(E);if(E!==1)if(w!==void 0)for(y=g.c(this.listeners),e=y.next();!e.done;e=y.next())e.value.I6(w,
N,E);else YN("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:N,transitionReason:String(E)});E=g.c(this.listeners);for(w=E.next();!w.done;w=E.next())w.value.QW(N)}};
g.J.mKG=function(e,N){e!==void 0&&(this.Tp=e,N===void 0?YN("Expected ad video start time on SS video changed"):this.J_.set(e,N));var y=this.C.getPresentingPlayerType(!0),w=this.C.getVideoData(y);this.C.getVideoData(1).Fh("ads_ssvc",{pt:y,cpn:w==null?void 0:w.clientPlaybackNonce,crtt:this.C.getCurrentTime(1,!1),atlh:this.C.isAtLiveHead(),adstt:N});w?xQ9(this,w,y):YN("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.C.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:e})};
g.J.v8=function(e,N){var y=e.author,w=e.clientPlaybackNonce,E=e.isListed,A=e.FS,T=e.title,p=e.S_,C=e.N2,r=e.isMdxPlayback,Y=e.zN,M=e.mdxEnvironment,l=e.isAutonav,F=e.rq,S=e.IV,k=e.jg,X=e.videoId||"",d=e.profilePicture||"",v=e.iI||"",V=e.e_()||!1,Z=e.Au()||!1;e=e.Ez||void 0;A=this.hf.get().J.get(A)||{layoutId:null,slotId:null};var n=this.C.getVideoData(1),R=n.Cx();n=n.getPlayerResponse();N=1E3*this.C.getDuration(N);var O=1E3*this.C.getDuration(1),E9,Jn,eM=(n==null?void 0:(E9=n.playerConfig)==null?
void 0:(Jn=E9.daiConfig)==null?void 0:Jn.enableDai)||!1,H,a;E9=(n==null?void 0:(H=n.playerConfig)==null?void 0:(a=H.daiConfig)==null?void 0:a.enablePreroll)||!1;return Object.assign({},A,{videoId:X,author:y,clientPlaybackNonce:w,La9:N,LO:O,daiEnabled:eM,mB:E9,isListed:E,Cx:R,profilePicture:d,title:T,iI:v,S_:p,N2:C,Ez:e,isMdxPlayback:r,zN:Y,mdxEnvironment:M,isAutonav:l,rq:F,IV:S,jg:k,e_:V,Au:Z})};
g.J.fh=function(){this.listeners.length=0;this.nk=null;g.x.prototype.fh.call(this)};g.b(Td,g.x);g.J=Td.prototype;g.J.I$=function(){var e=this;L7(this.wP.get())||(this.J=$T(function(){e.C.Ss()||e.C.Go("ad",1)}))};
g.J.Jg=function(){};
g.J.addListener=function(e){this.listeners.push(e)};
g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})};
g.J.uT=function(){};
g.J.playVideo=function(){this.C.playVideo()};
g.J.pauseVideo=function(){this.C.pauseVideo()};
g.J.resumeVideo=function(e){this.Ax(e)&&this.C.playVideo()};
g.J.Ax=function(e){return this.C.getPlayerState(e)===2};
g.J.getCurrentTimeSec=function(e,N,y){var w=this.Hk.get().Tp;if(e===2&&!N&&w!==null)return QnH(this,w);R_(this.wP.get(),"html5_ssap_use_cpn_to_get_time")||(y=void 0);return y!==void 0?this.C.getCurrentTime(e,N,y):this.C.getCurrentTime(e,N)};
g.J.getVolume=function(){return this.C.getVolume()};
g.J.isMuted=function(){return this.C.isMuted()};
g.J.getPresentingPlayerType=function(){return this.C.getPresentingPlayerType(!0)};
g.J.getPlayerState=function(e){return this.C.getPlayerState(e)};
g.J.isFullscreen=function(){return this.C.isFullscreen()};
g.J.isAtLiveHead=function(){return this.C.isAtLiveHead()};
g.J.c7=function(e){this.C.c7(e)};
g.J.j2k=function(){var e=this.C.getPresentingPlayerType(!0),N=this.getCurrentTimeSec(e,!1);if(e===2){e=g.c(this.listeners);for(var y=e.next();!y.done;y=e.next())y.value.Vb(N)}else if(e===1)for(e=g.c(this.VJ),y=e.next();!y.done;y=e.next())y.value.uT(N)};
g.J.sJh=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.pN(e,this.getPresentingPlayerType())};
g.J.onFullscreenToggled=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.onFullscreenToggled(e)};
g.J.onVolumeChange=function(){for(var e=g.c(this.listeners),N=e.next();!N.done;N=e.next())N.value.onVolumeChange()};
g.J.Yx=function(){for(var e=this.C.isMinimized(),N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.Yx(e)};
g.J.D0=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.D0(e)};
g.J.I9=function(){for(var e=this.C.Fz().aV(),N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.ys(e)};
g.J.Qs=function(e){for(var N=g.c(this.listeners),y=N.next();!y.done;y=N.next())y.value.Qs(e)};
g.J.pO=function(){for(var e=g.c(this.listeners),N=e.next();!N.done;N=e.next())N.value.pO()};g.b(KtE,g.x);g.b($L,g.x);$L.prototype.fh=function(){this.uL.Ss()||this.uL.get().removeListener(this);g.x.prototype.fh.call(this)};YL.prototype.fetch=function(e){var N=e.JI;return this.J.fetch(e.cH,{m1:e.m1===void 0?void 0:e.m1,y6:N,cueProcessedMs:e.cueProcessedMs===void 0?0:e.cueProcessedMs}).then(function(y){return Wt_(y,N)})};g.b(Mr,g.x);g.J=Mr.prototype;g.J.addListener=function(e){this.listeners.push(e)};
g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})};
g.J.yL=function(e){O85(this,e,1)};
g.J.onAdUxClicked=function(e,N){l9(this,function(y){y.Pw(e,N)})};
g.J.wX=function(e){l9(this,function(N){N.HM(e)})};
g.J.bT=function(e){l9(this,function(N){N.Tm(e)})};
g.J.BTh=function(e){l9(this,function(N){N.uh(e)})};F5.prototype.reduce=function(e){switch(e.event){case "unknown":return}var N=e.identifier;var y=this.J[N];y?N=y:(y={pV:null,jO:-Infinity},N=this.J[N]=y);y=e.startSecs+e.J/1E3;if(!(y<N.jO))if(N.jO=y,N.pV){if(y<N.pV.end){a:{y=N.pV;switch(e.event){case "start":case "continue":case "stop":break;default:e=null;break a}e=y.start+e.Vj;e=y.end<=e?null:e}if(e!==null)for(N.pV.end=e,N=this.N,g.rr(N.K.J,e*1E3),N=g.c(N.listeners),y=N.next();!y.done;y=N.next())y.value.xa(e)}}else if(e=RuM(e,this.K))y=e.Hht,N.pV=
e.t5,UQ3(this.N,y)};
F5.prototype.updateTime=function(){};g.b(ST,g.x);g.J=ST.prototype;
g.J.I$=function(){this.L=new F5(this,Cu9(this.wP.get()));this.K=new Gq5;var e=this.C.getVideoData(1);if(!e.enableServerStitchedDai){var N=this.C.getVideoData(1),y;((y=this.N)==null?void 0:y.clientPlaybackNonce)!==N.clientPlaybackNonce&&(this.N!=null&&this.N.unsubscribe("cuepointupdated",this.iT,this),N.subscribe("cuepointupdated",this.iT,this),this.N=N)}this.IH.length=0;var w;N=((w=e.J)==null?void 0:q35(w,0))||[];w=g.c(N);for(N=w.next();!N.done;N=w.next())N=N.value,this.Wi(N)&&YN("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:N.identifier,cuePointEvent:N.event,contentCpn:e.clientPlaybackNonce})};
g.J.Jg=function(){};
g.J.addListener=function(e){this.listeners.push(e)};
g.J.removeListener=function(e){this.listeners=this.listeners.filter(function(N){return N!==e})};
g.J.Wi=function(e){snP(this,e);this.L.reduce(e);e=this.j;this.j=!1;return e};
g.J.iT=function(e){var N=this.C.getVideoData(1).isDaiEnabled();if(N||!g.Pa(this.C.X())){e=g.c(e);for(var y=e.next();!y.done;y=e.next())if(y=y.value,snP(this,y),N)this.L.reduce(y);else if(this.C.getCurrentTime(1)!==0&&y.event==="start")if(this.wP.get().C.X().experiments.gP("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.J==null?0:y.startSecs+y.Vj>=this.J.startSecs&&y.startSecs<=this.J.startSecs+this.J.Vj)){var w=void 0;MN3(this.wP.get())&&y.identifier!==((w=this.J)==null?void 0:w.identifier)&&
sV(this.Pk.get(),"ocud","cpi."+y.identifier+";cpe."+y.event+";cps."+y.startSecs+";");w=void 0;y.identifier!==((w=this.J)==null?void 0:w.identifier)&&YN("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.J=y,UQ3(this,y)}};
g.J.fh=function(){this.N!=null&&(this.N.unsubscribe("cuepointupdated",this.iT,this),this.N=null);this.listeners.length=0;this.IH.length=0;g.x.prototype.fh.call(this)};oa.prototype.addPlayerResponseForAssociation=function(e){this.C.addPlayerResponseForAssociation(e)};g.J=hM.prototype;g.J.r$=function(e,N,y,w,E,A,T){return this.C.r$(e,N,y,w,E,A,T)};
g.J.Qn=function(e,N){this.C.Qn(e,N)};
g.J.mX=function(e,N,y){this.C.mX(e,N,y)};
g.J.Mp=function(e){this.C.Mp(e)};
g.J.tB=function(e,N,y,w,E,A,T){this.C.tB(e,N,y,w,E,A,T)};
g.J.Ll=function(e){return this.C.Ll(e)};
g.J.finishSegmentByCpn=function(e,N,y){y=ewM(y);this.C.finishSegmentByCpn(e,N,y)};g.b(yDM,g.x);g.b(wSM,g.x);g.b(Ec5,g.x);g.b(ADP,g.x);g.b(Tb3,g.x);g.b(pSF,g.x);pSF.prototype.K=function(){return this.N};g.b(CD_,Hq);
CD_.prototype.j=function(e){var N=e.content;if(N.componentType==="shopping-companion")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,shoppingCompanionCarouselRenderer:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="action-companion")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);
this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:e&&e.videoId,actionCompanionAdRenderer:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N.renderer&&(N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId})),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="image-companion")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion",
{contentVideoId:e&&e.videoId,imageCompanionAdRenderer:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId}),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="top-banner-image-text-icon-buttoned")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion",
{contentVideoId:e&&e.videoId,topBannerImageTextIconButtonedLayoutViewModel:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N.renderer&&(N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId})),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="banner-image")switch(e.actionType){case 1:case 2:e=this.J.getVideoData(1);this.J.Mg("updateKevlarOrC3Companion",
{contentVideoId:e&&e.videoId,bannerImageLayoutViewModel:N.renderer,layoutId:N.layoutId,macros:N.macros,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});break;case 3:N=this.J.getVideoData(1),this.J.Mg("updateKevlarOrC3Companion",{contentVideoId:N&&N.videoId}),this.J.Mg("updateKevlarOrC3Companion",{})}else if(N.componentType==="ads-engagement-panel")switch(N=N.renderer,e.actionType){case 1:case 2:this.J.Mg("updateEngagementPanelAction",N.addAction);this.J.Mg("changeEngagementPanelVisibility",
N.expandAction);break;case 3:this.J.Mg("changeEngagementPanelVisibility",N.hideAction),this.J.Mg("updateEngagementPanelAction",N.removeAction)}else if(N.componentType==="ads-engagement-panel-layout"){var y=N.renderer;switch(e.actionType){case 1:case 2:this.J.Mg("updateEngagementPanelAction",{action:jP(y.addAction),layoutId:N.layoutId,onLayoutVisibleCallback:N.J,interactionLoggingClientData:N.interactionLoggingClientData});this.J.Mg("changeEngagementPanelVisibility",jP(y.expandAction));break;case 3:this.J.Mg("changeEngagementPanelVisibility",
jP(y.hideAction)),this.J.Mg("updateEngagementPanelAction",{action:jP(y.removeAction)})}}};g.b(rD5,sZ);g.J=rD5.prototype;g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);g.$0(this.K,"stroke-dasharray","0 "+this.N);this.K.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.Z.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.j.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.J.clear=function(){this.hide()};
g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)};
g.J.show=function(){aM(this);sZ.prototype.show.call(this)};
g.J.w2=function(){this.hide()};
g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e!=null&&e.current!=null&&g.$0(this.K,"stroke-dasharray",e.current/e.seekableEnd*this.N+" "+this.N)}};g.b($1P,lj);g.J=$1P.prototype;
g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);if(N.image&&N.image.thumbnail)if(N.headline)if(N.description)if(N.backgroundImage&&N.backgroundImage.thumbnail)if(N.actionButton&&g.m(N.actionButton,g.zR))if(e=N.durationMilliseconds||0,typeof e!=="number"||e<=0)g.t0(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+e));else if(N.navigationEndpoint){var w=this.api.getVideoData(2);if(w!=null){var E=N.image.thumbnail.thumbnails;E!=null&&
E.length>0&&g.kw(g.Ly(E[0].url))&&(E[0].url=w.profilePicture,g.kw(g.Ly(w.profilePicture))&&Gm0("VideoPlayer",239976093,"Expected non-empty profile picture."));E=N.backgroundImage.thumbnail.thumbnails;E!=null&&E.length>0&&g.kw(g.Ly(E[0].url))&&(E[0].url=w.LN());E=N.headline;E!=null&&g.kw(g.Ly(E.text))&&(E.text=w.author)}this.D.init(TV("ad-image"),N.image,y);this.Z.init(TV("ad-text"),N.headline,y);this.K.init(TV("ad-text"),N.description,y);this.Bk.init(TV("ad-image"),N.backgroundImage,y);w=["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.Z.element.classList.add("ytp-ad-action-interstitial-headline-light");this.K.element.classList.add("ytp-ad-action-interstitial-description-light");w.push("ytp-ad-action-interstitial-action-button-dark");this.api.X().N&&(w.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),w.push("ytp-ad-action-interstitial-action-button-dark"));this.api.X().T("enable_unified_action_endcap_on_web")&&
!this.api.X().N&&(w.push("ytp-ad-action-interstitial-action-button-unified"),this.Ut.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.VB.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.kz.classList.add("ytp-ad-action-interstitial-card-unified"),this.Kh.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-description-unified"),
this.i9.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.aq.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Zl.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,w);g.Q(this,this.actionButton);this.actionButton.yB(this.Ut);
this.actionButton.init(TV("button"),g.m(N.actionButton,g.zR),y);OH(this.actionButton.element);w=sH(this.actionButton.element);G1(this.actionButton.element,w+" This link opens in new tab");this.navigationEndpoint=N.navigationEndpoint;this.j.Y(this.aq,"click",this.dn,this);this.j.Y(this.Kh,"click",this.dn,this);!this.api.X().T("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.X().N||this.j.Y(this.i9,"click",this.dn,this);this.J=this.ZH?new B2(this.api,e):new XD(e);g.Q(this,this.J);if(N.skipButton){(e=
g.m(N.skipButton,C_Z))&&this.J&&(this.skipButton=new SQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J,this.uC),g.Q(this,this.skipButton),this.skipButton.yB(this.element),this.skipButton.init(TV("skip-button"),e,y));y=this.api.T("disable_ad_preview_for_instream_ads");if(e=N.adBadgeRenderer)if(e=g.m(e,p_5))w=new c2(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0,y),w.yB(this.Zl),w.init(TV("simple-ad-badge"),e,this.macros),g.Q(this,w);if(e=N.adInfoRenderer)if(e=
g.m(e,IQ))y=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,y),y.yB(this.Zl),y.init(TV("ad-info-hover-text-button"),e,this.macros),g.Q(this,y)}else N.nonskippableOverlayRenderer&&(e=g.m(N.nonskippableOverlayRenderer,vr))&&this.J&&(this.N=new wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J,!1),g.Q(this,this.N),this.N.yB(this.element),this.N.init(TV("ad-preview"),e,y));N.countdownRenderer&&(N=N.countdownRenderer,g.m(N,rVk)&&this.J&&
(y=new rD5(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.J),g.Q(this,y),y.yB(this.element),y.init(TV("timed-pie-countdown"),g.m(N,rVk),this.macros)));this.show();this.element.focus()}else g.t0(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.t0(Error("AdActionInterstitialRenderer has no button."));else g.t0(Error("AdActionInterstitialRenderer has no background AdImage."));else g.t0(Error("AdActionInterstitialRenderer has no description AdText."));else g.t0(Error("AdActionInterstitialRenderer has no headline AdText."));
else g.t0(Error("AdActionInterstitialRenderer has no image."))};
g.J.clear=function(){g.g9(this.j);this.hide()};
g.J.show=function(){YuH(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.N&&this.N.show();lj.prototype.show.call(this)};
g.J.hide=function(){YuH(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.N&&this.N.hide();lj.prototype.hide.call(this)};
g.J.dn=function(){this.navigationEndpoint&&(this.layoutId?this.Y1.executeCommand(this.navigationEndpoint,this.layoutId):g.t0(Error("Missing layoutId for ad action interstitial.")))};var ocM={iconType:"CLOSE"},X5=new g.l8(320,63);g.b(SuE,lj);g.J=SuE.prototype;
g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);this.j=N;this.D=g.eE(this.j.onClickCommands||[]);this.Zl=this.j.onErrorCommand||null;if(e=this.j.contentSupportedRenderer)e=this.j.contentSupportedRenderer,N=this.j.adInfoRenderer||null,g.m(e,AVw)?(this.Z=g.H4("ytp-ad-overlay-ad-info-button-container",this.K.element),b4M(this,N),e=cD9(this,g.m(e,AVw))):g.m(e,T5T)?(this.Z=g.H4("ytp-ad-overlay-ad-info-button-container",this.N.element),b4M(this,N),e=kUn(this,g.m(e,T5T))):g.m(e,JVk)?(this.Z=
g.H4("ytp-ad-overlay-ad-info-button-container",this.J.element),b4M(this,N),e=BbH(this,g.m(e,JVk))):(g.t0(Error("InvideoOverlayAdRenderer content could not be initialized.")),e=!1);e&&(this.show(),XSH(this,!0))};
g.J.clear=function(){XSH(this,!1);this.aq.reset();this.Kh=0;this.K.hide();this.logVisibility(this.K.element,!1);this.N.hide();this.logVisibility(this.N.element,!1);this.J.hide();this.logVisibility(this.J.element,!1);this.hide();this.dispose()};
g.J.pEq=function(){this.Ut&&(this.layoutId?this.Y1.executeCommand(this.Ut,this.layoutId):g.t0(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.J.UZ=function(){a:{if(this.j&&this.j.closeButton&&this.j.closeButton.buttonRenderer){var e=this.j.closeButton.buttonRenderer;if(e.serviceEndpoint){e=[e.serviceEndpoint];break a}}e=[]}e=g.c(e);for(var N=e.next();!N.done;N=e.next())N=N.value,this.layoutId?this.Y1.executeCommand(N,this.layoutId):g.t0(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.J.o_h=function(){this.Bk||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.J.UG=function(){this.Bk||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.UG("invideo-overlay")};
g.J.E_s=function(e){e.target===this.Z&&g.H4("ytp-ad-button",this.VB.element).click()};g.b(PD3,sZ);g.J=PD3.prototype;g.J.init=function(e,N,y){sZ.prototype.init.call(this,e,N,y);e=N.durationMs;this.K=e==null||e===0?0:e+this.J.getProgressState().current*1E3;if(N.text)var w=N.text.templatedAdText;else N.staticMessage&&(w=N.staticMessage);this.messageText.init(TV("ad-text"),w,y);this.messageText.yB(this.N.element);this.j.show(100);this.show()};
g.J.clear=function(){this.hide()};
g.J.hide=function(){d1J(this,!1);sZ.prototype.hide.call(this);this.N.hide();this.messageText.hide();eQ(this)};
g.J.show=function(){d1J(this,!0);sZ.prototype.show.call(this);aM(this);this.N.show();this.messageText.show()};
g.J.w2=function(){this.hide()};
g.J.t3=function(){if(this.J!=null){var e=this.J.getProgressState();e!=null&&e.current!=null&&(e=1E3*e.current,!this.Kh&&e>=this.K?(this.j.hide(),this.Kh=!0):this.messageText&&this.messageText.isTemplated()&&(e=Math.max(0,Math.ceil((this.K-e)/1E3)),e!==this.Z&&(LT(this.messageText,{TIME_REMAINING:String(e)}),this.Z=e)))}};g.b(IPJ,lj);g.J=IPJ.prototype;
g.J.init=function(e,N,y){lj.prototype.init.call(this,e,N,{});N.image&&N.image.thumbnail?N.headline?N.description?N.actionButton&&g.m(N.actionButton,g.zR)?(this.K.init(TV("ad-image"),N.image,y),this.N.init(TV("ad-text"),N.headline,y),this.j.init(TV("ad-text"),N.description,y),e=["ytp-ad-underlay-action-button"],this.api.X().T("use_blue_buttons_for_desktop_player_underlay")&&e.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,
e),N.backgroundColor&&g.$0(this.element,"background-color",g.jQ(N.backgroundColor)),g.Q(this,this.actionButton),this.actionButton.yB(this.Z),this.actionButton.init(TV("button"),g.m(N.actionButton,g.zR),y),N=g.Y2(this.api.X().experiments,"player_underlay_video_width_fraction"),this.api.X().T("place_shrunken_video_on_left_of_player")?(y=this.J,g.re(y,"ytp-ad-underlay-left-container"),g.pi(y,"ytp-ad-underlay-right-container"),g.$0(this.J,"margin-left",Math.round((N+.02)*100)+"%")):(y=this.J,g.re(y,"ytp-ad-underlay-right-container"),
g.pi(y,"ytp-ad-underlay-left-container")),g.$0(this.J,"width",Math.round((1-N-.04)*100)+"%"),this.api.OW()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.FN.bind(this)),this.api.addEventListener("resize",this.pA.bind(this))):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.t0(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.J.show=function(){vcF(!0);this.actionButton&&this.actionButton.show();lj.prototype.show.call(this)};
g.J.hide=function(){vcF(!1);this.actionButton&&this.actionButton.hide();lj.prototype.hide.call(this)};
g.J.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.FN.bind(this));this.api.removeEventListener("resize",this.pA.bind(this));this.hide()};
g.J.onClick=function(e){lj.prototype.onClick.call(this,e);this.actionButton&&g.Ex(this.actionButton.element,e.target)&&this.api.pauseVideo()};
g.J.FN=function(e){e==="transitioning"?(this.J.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.J.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.J.classList.remove("ytp-ad-underlay-clickable"))};
g.J.pA=function(e){e.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):e.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.$0(this.N.element,"font-size",e.width/40+"px")};g.b(Pv,lj);
Pv.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);N.toggledLoggingParams&&(this.toggledLoggingParams=N.toggledLoggingParams);N.answer&&g.m(N.answer,g.zR)?(e=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),e.yB(this.answer),e.init(TV("ytp-ad-survey-answer-button"),g.m(N.answer,g.zR),y),e.show()):N.answer&&g.m(N.answer,hs)&&(this.J=new Qv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,
["ytp-ad-survey-answer-toggle-button"]),this.J.yB(this.answer),g.Q(this,this.J),this.J.init(TV("survey-answer-button"),g.m(N.answer,hs),y));this.show()};
Pv.prototype.M5=function(e){this.layoutId?Kn(this.Y1,e,this.layoutId,this.macros):g.t0(new g.Gh("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
Pv.prototype.onClick=function(e){lj.prototype.onClick.call(this,e);if(this.api.X().T("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
Pv.prototype.clear=function(){this.hide()};g.b(zw5,lj);zw5.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);N.answer&&g.m(N.answer,hs)&&(this.button=new Qv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.yB(this.J),this.button.init(TV("survey-none-of-the-above-button"),g.m(N.answer,hs),y));this.show()};g.b(dV,Vv);dV.prototype.init=function(e,N,y){Vv.prototype.init.call(this,e,N,y);e=!1;N.text&&(N=g.SY(N.text),e=!g.kw(N));e||g.uA(Error("No submit text was present in the renderer."))};
dV.prototype.onClick=function(e){this.publish("l");Vv.prototype.onClick.call(this,e)};g.b(Ia,lj);
Ia.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);if(e=N.skipOrPreviewRenderer)g.m(e,yV)?(e=g.m(e,yV),y=new bp(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.j,!0),y.yB(this.skipOrPreview),y.init(TV("skip-button"),e,this.macros),g.Q(this,y),this.J=y):g.m(e,vr)&&(e=g.m(e,vr),y=new wh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.j,!1),y.yB(this.skipOrPreview),y.init(TV("ad-preview"),e,this.macros),Ez(y),g.Q(this,y),this.J=y);this.J==
null&&g.t0(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(N)));N.submitButton&&(e=N.submitButton,g.m(e,g.zR)&&(e=g.m(e,g.zR),y=new dV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),y.yB(this.submitButton),y.init(TV("survey-submit"),e,this.macros),g.Q(this,y),this.N=y));e=this.api.T("disable_ad_preview_for_instream_ads");if(y=N.adBadgeRenderer){y=g.m(y,p_5);var w=new c2(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0,
e,!0);w.yB(this.K);w.init(TV("simple-ad-badge"),y,this.macros);this.adBadge=w.element;g.Q(this,w)}if(y=N.adDurationRemaining)y=g.m(y,yVq),w=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.j,void 0,e),w.yB(this.K),w.init(TV("ad-duration-remaining"),y,this.macros),g.Q(this,w);(N=N.adInfoRenderer)&&g.m(N,IQ)&&(y=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,e),g.Q(this,y),e&&this.adBadge!==void 0?this.K.insertBefore(y.element,
this.adBadge.nextSibling):y.yB(this.K),y.init(TV("ad-info-hover-text-button"),g.m(N,IQ),this.macros));this.show()};
Ia.prototype.clear=function(){this.hide()};g.b(vv,lj);vv.prototype.init=function(e,N,y){lj.prototype.init.call(this,e,N,y);fP5(this)};
vv.prototype.show=function(){this.K=Date.now();lj.prototype.show.call(this)};
vv.prototype.Zq=function(){};g.b(tGM,vv);g.J=tGM.prototype;g.J.init=function(e,N,y){var w=this;vv.prototype.init.call(this,e,N,y);N.questionText&&i4M(this,N.questionText);N.answers&&N.answers.forEach(function(E,A){g.m(E,oH)&&D1M(w,g.m(E,oH),y,A)});
this.Z=new Set(this.N.map(function(E){return E.J.J}));
(e=N.noneOfTheAbove)&&(e=g.m(e,Eww))&&ukH(this,e,y);N.surveyAdQuestionCommon&&VGH(this,N.surveyAdQuestionCommon);N.submitEndpoints&&(this.submitEndpoints=N.submitEndpoints);this.Y(this.element,"change",this.onChange);this.show()};
g.J.Zq=function(){qu0(this,!1);this.j.N.subscribe("l",this.DKB,this)};
g.J.onChange=function(e){e.target===this.noneOfTheAbove.button.J?Z4E(this):this.Z.has(e.target)&&(this.noneOfTheAbove.button.toggleButton(!1),qu0(this,!0))};
g.J.DKB=function(){var e=[],N=this.N.reduce(function(E,A,T){var p=A.toggledLoggingParams;A.J&&A.J.isToggled()&&p&&(E.push(p),e.push(T));return E},[]).join("&"),y=this.submitEndpoints.map(function(E){if(!E.loggingUrls)return E;
E=g.gi(E);E.loggingUrls=E.loggingUrls.map(function(A){A.baseUrl&&(A.baseUrl=mV(A.baseUrl,N));return A});
return E});
if(y){y=g.c(y);for(var w=y.next();!w.done;w=y.next())w=w.value,this.layoutId?Kn(this.Y1,w,this.layoutId,this.macros):g.t0(Error("Missing layoutId for multi_select_question."))}this.api.X().T("supports_multi_step_on_desktop")&&this.Kh(e)};
g.J.clear=function(){this.api.X().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.b(zd,vv);zd.prototype.init=function(e,N,y){var w=this;vv.prototype.init.call(this,e,N,y);N.questionText&&i4M(this,N.questionText);N.answers&&N.answers.forEach(function(E,A){g.m(E,oH)&&D1M(w,g.m(E,oH),y,A)});
N.surveyAdQuestionCommon?VGH(this,N.surveyAdQuestionCommon):g.t0(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(N)));this.show()};
zd.prototype.clear=function(){this.api.X().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.b(i9,lj);i9.prototype.init=function(e,N,y){var w=this;lj.prototype.init.call(this,e,N,y);if(this.api.X().T("supports_multi_step_on_desktop")){var E;this.conditioningRules=(E=N.conditioningRules)!=null?E:[];var A;this.N=(A=N.questions)!=null?A:[];var T;((T=N.questions)==null?0:T.length)&&Q6F(this,0)}else(N.questions||[]).forEach(function(p){g.m(p,Pr)?j6E(w,g.m(p,Pr),y):g.m(p,X4)&&nc0(w,g.m(p,X4),y)});
this.show()};
i9.prototype.clear=function(){this.api.X().T("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
i9.prototype.j=function(e){var N=this;if(this.api.X().T("supports_multi_step_on_desktop")){var y;if((y=this.conditioningRules)==null?0:y.length){var w;if(e.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(E){return E.questionIndex===N.J})==null)g.t0(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(E){if(E.questionIndex===N.J)switch(E.condition){case "CONDITION_ALL_OF":var A;if((A=E.answerIndices)==null?0:A.every(function(p){return e.includes(p)}))w=E.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var T;if((T=E.answerIndices)==null?0:T.some(function(p){return e.includes(p)}))w=E.nextQuestionIndex;
break;default:g.t0(Error("Expected specified condition in survey conditioning rules."))}}),w!=null)Q6F(this,w);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.t0(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.b(D_,lj);
D_.prototype.init=function(e,N,y){var w=this;lj.prototype.init.call(this,e,N,y);e=N.timeoutSeconds||0;if(typeof e!=="number"||e<0)g.t0(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+e));else if(N.timeoutCommands)if(N.text)if(N.ctaButton&&g.m(N.ctaButton,g.zR))if(N.brandImage)if(N.backgroundImage&&g.m(N.backgroundImage,iS)&&g.m(N.backgroundImage,iS).landscape){this.layoutId||g.t0(Error("Missing layoutId for survey interstitial."));m1M(this.interstitial,g.m(N.backgroundImage,
iS).landscape);m1M(this.logoImage,N.brandImage);g.AL(this.text,g.SY(N.text));var E=["ytp-ad-survey-interstitial-action-button"];E.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Vv(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,E);g.Q(this,this.actionButton);this.actionButton.yB(this.N);this.actionButton.init(TV("button"),g.m(N.ctaButton,g.zR),y);this.actionButton.show();this.J=new B2(this.api,e*1E3);this.J.subscribe("g",function(){w.transition.hide()});
g.Q(this,this.J);this.Y(this.element,"click",function(A){var T=A.target===w.interstitial;A=w.actionButton.element.contains(A.target);if(T||A)if(w.transition.hide(),T)w.api.onAdUxClicked(w.componentType,w.layoutId)});
this.transition.show(100)}else g.t0(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.t0(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.t0(Error("SurveyTextInterstitialRenderer has no button."));else g.t0(Error("SurveyTextInterstitialRenderer has no text."));else g.t0(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
D_.prototype.clear=function(){this.hide()};
D_.prototype.show=function(){H4M(!0);lj.prototype.show.call(this)};
D_.prototype.hide=function(){H4M(!1);lj.prototype.hide.call(this)};g.b(gV,sZ);g.J=gV.prototype;
g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});if(N.durationMilliseconds){if(N.durationMilliseconds<0){g.t0(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+N.durationMilliseconds));return}this.N=N.durationMilliseconds}else this.N=this.J.WU();var y;if((y=N.previewText)==null||!y.text||g.kw(N.previewText.text))g.t0(Error("No text is returned for AdPreview."));else{this.Z=N.previewText;N.previewText.isTemplated||g.AL(this.K,N.previewText.text);var w;
if(((w=this.api.getVideoData(1))==null?0:w.al)&&N.previewImage){var E,A;(e=((A=dL(((E=N.previewImage)==null?void 0:E.sources)||[],52,!1))==null?void 0:A.url)||"")&&e.length?(this.previewImage=new g.Mu({S:"img",B:"ytp-preview-ad__image",V:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",e),g.Q(this,this.previewImage),this.previewImage.yB(this.element)):g.t0(Error("Failed to get imageUrl in AdPreview."))}else this.K.classList.add("ytp-preview-ad__text--padding--wide")}};
g.J.clear=function(){this.hide()};
g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)};
g.J.show=function(){aM(this);sZ.prototype.show.call(this)};
g.J.w2=function(){this.hide()};
g.J.t3=function(){if(this.J){var e=this.J.getProgressState();if(e!=null&&e.current)if(e=1E3*e.current,e>=this.N)this.transition.hide();else{var N;if((N=this.Z)==null?0:N.isTemplated)if(N=Math.max(0,Math.ceil((this.N-e)/1E3)),N!==this.j){var y,w;(e=(y=this.Z)==null?void 0:(w=y.text)==null?void 0:w.replace("{TIME_REMAINING}",String(N)))&&g.AL(this.K,e);this.j=N}}}};g.b(Va,lj);
Va.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});var y,w;if((e=((w=dL(((y=N.image)==null?void 0:y.sources)||[],KeP(N),!0))==null?void 0:w.url)||"")&&e.length){y=this.hW("ytp-ad-avatar");y.src=e;var E,A;if(w=(E=N.interaction)==null?void 0:(A=E.accessibility)==null?void 0:A.label)y.alt=w;switch(N.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(N.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.t0(Error("Failed to get imageUrl in AdAvatar."))};
Va.prototype.clear=function(){this.hide()};
Va.prototype.onClick=function(e){lj.prototype.onClick.call(this,e)};g.b(fe,lj);
fe.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});var y;e=(y=N.label)==null?void 0:y.content;if((y=e!=null&&!g.kw(e))||N.iconImage){y&&(this.buttonText=new g.Mu({S:"span",B:"ytp-ad-button-vm__text",b9:e}),g.Q(this,this.buttonText),this.buttonText.yB(this.element));var w,E,A=((w=N.interaction)==null?0:(E=w.accessibility)==null?0:E.label)||y?e:"";A&&G1(this.element,A+" This link opens in new tab");OH(this.element);if(N.iconImage){w=void 0;if(N.iconImage){a:{E=N.iconImage;if(E.sources)for(E=
g.c(E.sources),e=E.next();!e.done;e=E.next())if(e=e.value,A=void 0,(A=e.clientResource)==null?0:A.imageName){E=e;break a}E=void 0}if(E){var T;w={iconType:(T=E.clientResource)==null?void 0:T.imageName}}}T=g1(w,!1,this.N);T!=null&&(this.buttonIcon=new g.Mu({S:"span",B:"ytp-ad-button-vm__icon",W:[T]}),g.Q(this,this.buttonIcon),N.iconLeading?(yp(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):y?(this.buttonIcon.yB(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
(this.buttonIcon.yB(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(N.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.J?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(N.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.uA(Error("AdButton does not have label or an icon."))};
fe.prototype.clear=function(){this.hide()};
fe.prototype.onClick=function(e){lj.prototype.onClick.call(this,e)};g.b(We1,sZ);g.J=We1.prototype;
g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});this.api.X().T("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.hW("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"),yp(this.hW("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(e=g.m(N.avatar,mO)){var y=N.headline;if(y){var w=N.description;if(w){var E=g.m(N.button,Ke);E?(this.adAvatar.init(TV("ad-avatar"),e),this.headline.init(TV("ad-simple-attributed-string"),new zF(y)),this.description.init(TV("ad-simple-attributed-string"),new zF(w)),y.content&&y.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
this.adButton.init(TV("ad-button"),E),this.startMilliseconds=N.startMs||0,this.api.OW()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Jt.bind(this)),aM(this)):g.t0(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.t0(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.t0(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.t0(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e&&e.current&&1E3*e.current>=this.startMilliseconds&&(eQ(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.J.w2=function(){this.clear()};
g.J.onClick=function(e){this.api.pauseVideo();sZ.prototype.onClick.call(this,e)};
g.J.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Jt.bind(this))};
g.J.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();sZ.prototype.show.call(this)};
g.J.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();sZ.prototype.hide.call(this)};
g.J.Jt=function(e){e==="hidden"?this.show():this.hide()};g.b(tM,lj);g.J=tM.prototype;
g.J.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(!N.label||g.kw(N.label))g.t0(Error("No label is returned for SkipAdButton."));else if(g.AL(this.j,N.label),e=g1({iconType:"SKIP_NEXT_NEW"}),e==null)g.t0(Error("Unable to retrieve icon for SkipAdButton"));else if(this.K=new g.Mu({S:"span",B:"ytp-skip-ad-button__icon",W:[e]}),g.Q(this,this.K),this.K.yB(this.element),this.api.X().experiments.gP("enable_skip_to_next_messaging")&&(N=g.Ly(N.targetId)))this.N=!0,this.element.setAttribute("data-tooltip-target-id",N),
this.element.setAttribute("data-tooltip-target-fixed","")};
g.J.onClick=function(e){e&&e.preventDefault();var N,y;GvM(e,{contentCpn:(y=(N=this.api.getVideoData(1))==null?void 0:N.clientPlaybackNonce)!=null?y:""})===0?this.api.Mg("onAbnormalityDetected"):(lj.prototype.onClick.call(this,e),this.api.Mg("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.J.clear=function(){this.J.reset();this.hide()};
g.J.hide=function(){lj.prototype.hide.call(this)};
g.J.show=function(){this.J.start();lj.prototype.show.call(this);this.N&&this.api.X().experiments.gP("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.b(O4P,sZ);g.J=O4P.prototype;
g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});e=g.m(N.preskipState,owT);if(this.j||!this.api.X().experiments.gP("disable_ad_preview_for_instream_ads")){if(!e){g.t0(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var y;(y=this.N)==null||y.init(TV("preview-ad"),e);(y=this.N)!=null&&(y.transition.show(100),y.show())}(y=g.m(N.skippableState,hXk))?(N.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=N.skipOffsetMilliseconds:(g.uA(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=
5E3),this.K.init(TV("skip-button"),y),this.show()):g.t0(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.J.show=function(){aM(this);sZ.prototype.show.call(this)};
g.J.hide=function(){!this.isSkippable&&this.N?this.N.hide():this.K&&this.K.hide();eQ(this);sZ.prototype.hide.call(this)};
g.J.clear=function(){var e;(e=this.N)==null||e.clear();this.K&&this.K.clear();eQ(this);sZ.prototype.hide.call(this)};
g.J.w2=function(){this.hide()};
g.J.t3=function(){if(1E3*this.J.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var e;(e=this.N)!=null&&e.transition.hide();(e=this.K)!=null&&(e.transition.show(),e.show())}};g.b(u9,lj);
u9.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N.label){var y;((y=N.label)==null?0:y.content)&&!g.kw(N.label.content)&&(this.linkText=new g.Mu({S:"span",B:"ytp-visit-advertiser-link__text",b9:N.label.content}),g.Q(this,this.linkText),this.linkText.yB(this.element));var w,E;if((w=N.interaction)==null?0:(E=w.accessibility)==null?0:E.label)G1(this.element,N.interaction.accessibility.label+" This link opens in new tab");else{var A;((A=N.label)==null?0:A.content)&&!g.kw(N.label.content)&&G1(this.element,
N.label.content+" This link opens in new tab")}OH(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.t0(Error("No label found in VisitAdvertiserLink."))};
u9.prototype.onClick=function(e){lj.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)};
u9.prototype.clear=function(){this.hide()};g.b(qr,lj);
qr.prototype.init=function(e,N,y,w){lj.prototype.init.call(this,e,N,{});if(N.skipOrPreview){y=N.skipOrPreview;e=g.m(y,cV5);y=g.m(y,owT);var E,A=this.api.X().T("clean_player_style_fix_on_web")&&((E=this.api.getVideoData())==null?void 0:E.isDaiEnabled());e?(this.Af=new O4P(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N),g.Q(this,this.Af),this.Af.yB(this.D),this.Af.init(TV("skip-ad"),e)):!y||this.api.X().experiments.gP("disable_ad_preview_for_instream_ads")&&!A||(this.j=new gV(this.api,
this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,1),g.Q(this,this.j),this.j.yB(this.D),this.j.init(TV("ad-preview"),y),E=this.j,E.transition.show(100),E.show());if(E=g.m(N.skipOrPreview,cV5))var T=E.skipOffsetMilliseconds}N.playerAdCard&&(E=g.m(N.playerAdCard,bq0))&&(this.playerAdCard=new We1(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N),g.Q(this,this.playerAdCard),this.playerAdCard.yB(this.i9),this.playerAdCard.init(TV("ad-avatar-lockup-card"),E));E=this.api.X().T("disable_ad_duration_remaining_for_instream_video_ads")||
N.adPodIndex!==void 0;N.adBadgeRenderer&&((e=g.m(N.adBadgeRenderer,Hv))?(this.K=new DY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,E),g.Q(this,this.K),this.K.yB(this.J),this.K.init(TV("ad-badge"),e)):g.t0(Error("AdBadgeViewModel is not found in player overlay layout.")));N.adPodIndex&&(e=g.m(N.adPodIndex,M0Z))&&(this.adPodIndex=new gh(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,g.m(N.skipOrPreview,cV5)===void 0),g.Q(this,this.adPodIndex),this.adPodIndex.yB(this.J),
this.adPodIndex.init(TV("ad-pod-index"),e));N.adInfoRenderer&&(e=g.m(N.adInfoRenderer,IQ))&&(this.adInfoButton=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,void 0,E),g.Q(this,this.adInfoButton),this.api.X().T("enable_ad_pod_index_autohide")&&this.K!==void 0?this.J.insertBefore(this.adInfoButton.element,this.K.element.nextSibling):this.adInfoButton.yB(this.J),this.adInfoButton.init(TV("ad-info-hover-text-button"),e,this.macros));var p;e=this.api.X().T("clean_player_style_fix_on_web")&&
((p=this.api.getVideoData())==null?void 0:p.isDaiEnabled());N.adDurationRemaining&&(!E||e)&&(p=g.m(N.adDurationRemaining,yVq))&&(this.adDurationRemaining=new I4(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.N,w.videoAdDurationSeconds,E),g.Q(this,this.adDurationRemaining),E&&this.adPodIndex!==void 0?this.J.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?E?this.J.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling):
this.J.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.yB(this.J),this.adDurationRemaining.init(TV("ad-duration-remaining"),p,this.macros),E&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));N.visitAdvertiserLink&&(w=g.m(N.visitAdvertiserLink,B5f))&&(this.visitAdvertiserLink=new u9(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.visitAdvertiserLink),this.visitAdvertiserLink.yB(this.J),
this.visitAdvertiserLink.init(TV("visit-advertiser-link"),w));N.adDisclosureBanner&&(N=g.m(N.adDisclosureBanner,Ykf))&&(this.adDisclosureBanner=new Vd(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.adDisclosureBanner),this.adDisclosureBanner.yB(this.Kh),this.adDisclosureBanner.init(TV("ad-disclosure-banner"),N));this.api.X().T("show_preskip_progress_bar_for_skippable_ads")&&(this.Z=new up(this.api,this.N,T,E),g.Q(this,this.Z),g.Pb(this.api,this.Z.element,4));this.show()};
qr.prototype.clear=function(){this.hide()};g.b(Rw3,lj);g.J=Rw3.prototype;
g.J.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N!=null&&N.title)if(e=N.title)if(this.headline.init(TV("ad-simple-attributed-string"),new zF(e)),e=g.m(N.moreInfoButton,Ke)){if(this.moreInfoButton.init(TV("ad-button"),e),N.descriptions)N.descriptions.length>0&&(e=N.descriptions[0])&&(this.J=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.J),this.J.yB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.J.init(TV("ad-simple-attributed-string"),
new zF(e))),N.descriptions.length>1&&(N=N.descriptions[1])&&(this.N=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.N),this.N.yB(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.N.init(TV("ad-simple-attributed-string"),new zF(N)))}else g.t0(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.t0(Error("No headline found in AdGridCardText."));else g.t0(Error("No headline found in AdGridCardText."))};
g.J.onClick=function(e){lj.prototype.onClick.call(this,e);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.J.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var e;(e=this.J)==null||e.clear();var N;(N=this.N)==null||N.clear()};
g.J.hide=function(){this.headline.hide();this.moreInfoButton.hide();var e;(e=this.J)==null||e.hide();var N;(N=this.N)==null||N.hide();lj.prototype.hide.call(this)};
g.J.show=function(){lj.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var e;(e=this.J)==null||e.show();var N;(N=this.N)==null||N.show()};g.b(Z_,lj);Z_.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N!=null&&N.gridCards)if(N.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.t0(Error("Only single column style is currently supported in AdGridCardCollection."));else for(e=g.c(N.gridCards),N=e.next();!N.done;N=e.next()){if(N=g.m(N.value,Skq)){var y=new Rw3(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,y);y.yB(this.element);y.init(TV("ad-grid-card-text"),N);this.J.push(y)}}else g.t0(Error("No grid cards found in AdGridCardCollection."))};
Z_.prototype.show=function(){for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N.value.show();lj.prototype.show.call(this)};
Z_.prototype.clear=function(){this.hide();for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N.value.clear()};
Z_.prototype.hide=function(){for(var e=g.c(this.J),N=e.next();!N.done;N=e.next())N.value.hide();lj.prototype.hide.call(this)};g.b(xL,sZ);g.J=xL.prototype;g.J.init=function(e,N,y,w,E){E=E===void 0?0:E;sZ.prototype.init.call(this,e,N,y,w);this.playerProgressOffsetMs=E;aM(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Kn.bind(this));this.api.addEventListener("resize",this.Nv.bind(this));this.api.OW()?(this.N=!0,this.api.c7(!0),this.show()):this.hide()};
g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e&&e.current&&!this.N&&1E3*e.current>=this.playerProgressOffsetMs&&(this.N=!0,this.api.c7(!0),this.show())}};
g.J.w2=function(){this.N&&this.api.c7(!1);this.hide()};
g.J.clear=function(){this.api.c7(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Kn.bind(this));this.api.removeEventListener("resize",this.Nv.bind(this));eQ(this);this.hide()};
g.J.hide=function(){GU1(!1);sZ.prototype.hide.call(this)};
g.J.show=function(){GU1(!0);sZ.prototype.show.call(this)};g.b(U13,xL);g.J=U13.prototype;
g.J.init=function(e,N,y,w){if(N!=null&&N.adGridCardCollection)if(N!=null&&N.adButton){var E=Number(N.playerProgressOffsetMs||"0");isNaN(E)?xL.prototype.init.call(this,e,N,y,w):xL.prototype.init.call(this,e,N,y,w,E);e=N.headline;y=g.m(N.adAvatar,mO);e&&y?(this.headline=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.headline),this.headline.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(TV("ad-simple-attributed-string"),new zF(e)),
this.adAvatar=new Va(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.adAvatar),this.adAvatar.yB(this.hW("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(TV("ad-avatar"),y)):this.j.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");e=g.m(N.adGridCardCollection,Ffw);this.adGridCardCollection.init(TV("ad-grid-card-collection"),e);N=g.m(N.adButton,Ke);this.adButton.init(TV("ad-button"),N);
this.hide()}else g.t0(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.t0(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
g.J.onClick=function(e){(this.adButton&&g.Ex(this.adButton.element,e.target)||this.adAvatar&&g.Ex(this.adAvatar.element,e.target))&&this.api.pauseVideo();xL.prototype.onClick.call(this,e);this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.J.Nv=function(){};
g.J.clear=function(){this.hide();var e;(e=this.headline)==null||e.clear();var N;(N=this.adAvatar)==null||N.clear();this.adGridCardCollection.clear();this.adButton.clear();xL.prototype.clear.call(this)};
g.J.show=function(){var e;(e=this.headline)==null||e.show();var N;(N=this.adAvatar)==null||N.show();this.adGridCardCollection.show();this.adButton.show();xL.prototype.show.call(this)};
g.J.hide=function(){var e;(e=this.headline)==null||e.hide();var N;(N=this.adAvatar)==null||N.hide();this.adGridCardCollection.hide();this.adButton.hide();xL.prototype.hide.call(this)};
g.J.Kn=function(e){e==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):e==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):e==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))};g.b(jT,lj);
jT.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(N.attributes===void 0)g.t0(Error("No attributes found in AdDetailsLineViewModel."));else if(N.style===void 0)g.t0(Error("No style found in AdDetailsLineViewModel."));else{e=g.c(N.attributes);for(var y=e.next();!y.done;y=e.next())if(y=y.value,y.text!==void 0){y=y.text;var w=N.style,E=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,E);E.yB(this.element);a:switch(w){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":w="ytp-ad-details-line__text--style-responsive";
break a;default:w="ytp-ad-details-line__text--style-standard"}E.element.classList.add(w);E.init(TV("ad-simple-attributed-string"),new zF(y));this.J.push(E)}this.show()}};
jT.prototype.show=function(){this.J.forEach(function(e){e.show()});
lj.prototype.show.call(this)};
jT.prototype.clear=function(){this.hide()};
jT.prototype.hide=function(){this.J.forEach(function(e){e.hide()});
lj.prototype.hide.call(this)};g.b(ne,lj);ne.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});var y,w;(e=((w=dL(((y=N.image)==null?void 0:y.sources)||[]))==null?void 0:w.url)||"")&&e.length?(y=this.hW("ytp-image-background-image"),g.$0(y,"backgroundImage","url("+e+")"),N.blurLevel!==void 0&&g.$0(y,"filter","blur("+N.blurLevel+"px)"),N.gradient!==void 0&&(N=new g.W({S:"div",dP:["ytp-image-background--gradient-vertical"]}),g.Q(this,N),N.yB(this.element)),this.show()):g.t0(Error("Failed to get imageUrl in ImageBackground."))};
ne.prototype.clear=function(){this.hide()};g.b(LeM,sZ);g.J=LeM.prototype;g.J.init=function(e,N){sZ.prototype.init.call(this,e,N,{});g.$0(this.K,"stroke-dasharray","0 "+this.N);this.show()};
g.J.clear=function(){this.hide()};
g.J.hide=function(){eQ(this);sZ.prototype.hide.call(this)};
g.J.show=function(){aM(this);sZ.prototype.show.call(this)};
g.J.w2=function(){this.hide()};
g.J.t3=function(){if(this.J){var e=this.J.getProgressState();e!=null&&e.current!=null&&g.$0(this.K,"stroke-dasharray",e.current/e.seekableEnd*this.N+" "+this.N)}};g.b(Qa,lj);
Qa.prototype.init=function(e,N){lj.prototype.init.call(this,e,N,{});if(aPn(N)){this.adAvatar=new Va(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.adAvatar);this.adAvatar.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(TV("ad-avatar"),g.m(N.adAvatar,mO));this.headline=new ip(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1);g.Q(this,this.headline);this.headline.yB(this.hW("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(TV("ad-simple-attributed-string"),new zF(N.headline));if(e=g.m(N.adDetailsLine,$Mw))this.detailsLine=new jT(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.detailsLine),this.detailsLine.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(TV("ad-details-line"),e);this.adButton=new fe(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,!0);g.Q(this,this.adButton);
this.adButton.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(TV("ad-button"),g.m(N.adButton,Ke));e=this.api.T("disable_ad_preview_for_instream_ads");this.adBadge=new DY(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,e);g.Q(this,this.adBadge);this.adBadge.yB(this.j);this.adBadge.init(TV("ad-badge"),g.m(N.adBadge,Hv));this.adInfoButton=new GV(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1,this.element,
void 0,e);g.Q(this,this.adInfoButton);this.adInfoButton.yB(this.j);this.adInfoButton.init(TV("ad-info-hover-text-button"),g.m(N.adInfoRenderer,IQ),this.macros);if(e=g.m(N.skipAdButton,hXk))this.skipAdButton=new tM(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.skipAdButton),this.skipAdButton.yB(this.element),this.skipAdButton.init(TV("skip-button"),e);this.N=new XD(N.durationMilliseconds);g.Q(this,this.N);if(e=g.m(N.countdownViewModel,kwk))this.J=new LeM(this.api,
this.layoutId,this.interactionLoggingClientData,this.Y1,this.N),g.Q(this,this.J),this.J.yB(this.hW("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.J.init(TV("timed-pie-countdown"),e);if(N=g.m(N.imageBackground,lZV))this.imageBackground=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.Y1),g.Q(this,this.imageBackground),this.imageBackground.yB(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),
this.imageBackground.init(TV("image-background"),N);this.show();this.element.focus()}};
Qa.prototype.clear=function(){g.g9(this.K);this.hide()};
Qa.prototype.show=function(){s6J(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();lj.prototype.show.call(this)};
Qa.prototype.hide=function(){s6J(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.J&&this.J.hide();this.imageBackground&&this.imageBackground.hide();lj.prototype.hide.call(this)};var Ugw="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.b(Wv,Hq);
Wv.prototype.j=function(e){var N=e.id,y=e.content,w=y.componentType;if(!Ugw.includes(w))switch(e.actionType){case 1:e=this.api;var E=this.Y1,A=y.layoutId,T=y.interactionLoggingClientData,p=y instanceof R0?y.ZH:!1,C=y instanceof R0||y instanceof kN?y.uC:!1;T=T===void 0?{}:T;p=p===void 0?!1:p;C=C===void 0?!1:C;switch(w){case "invideo-overlay":e=new SuE(e,A,T,E);break;case "player-overlay":e=new qE(e,A,T,E,new Nh(e),C);break;case "player-overlay-layout":e=new qr(e,A,T,E,new Nh(e));break;case "survey":e=
new i9(e,A,T,E);break;case "ad-action-interstitial":e=new $1P(e,A,T,E,p,C);break;case "video-interstitial-buttoned-centered":e=new Qa(e,A,T,E);break;case "survey-interstitial":e=new D_(e,A,T,E);break;case "ad-message":e=new PD3(e,A,T,E,new Nh(e,1));break;case "player-underlay":e=new IPJ(e,A,T,E);break;case "display-underlay-text-grid-cards":e=new U13(e,A,T,E,new Nh(e));break;default:e=null}if(!e){g.uA(Error("No UI component returned from ComponentFactory for type: "+w));break}g.P4(this.N,N)?g.uA(Error("Ad UI component already registered: "+
N)):this.N[N]=e;e.bind(y);y instanceof Wt?this.K?this.K.append(e.sE):g.uA(Error("Underlay view was not created but UnderlayRenderer was created")):this.L.append(e.sE);break;case 2:N=eo1(this,e);if(N==null)break;N.bind(y);break;case 3:y=eo1(this,e),y!=null&&(g.JV(y),g.P4(this.N,N)?(y=this.N,N in y&&delete y[N]):g.uA(Error("Ad UI component does not exist: "+N)))}};
Wv.prototype.fh=function(){g.pq(Object.values(this.N));this.N={};Hq.prototype.fh.call(this)};g.b(Nc5,g.dH);g.J=Nc5.prototype;g.J.create=function(){try{y1H(this),this.load(),this.created=!0,y1H(this)}catch(e){YN(e instanceof Error?e:String(e))}};
g.J.load=function(){try{A11(this)}finally{L7(kL(this.J).mW)&&this.player.Go("ad",1)}};
g.J.destroy=function(){var e=this.player.getVideoData(1);this.J.J.ji.Jg(e&&e.clientPlaybackNonce||"");this.unload();this.created=!1};
g.J.unload=function(){g.dH.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(N){YN(N instanceof Error?N:String(N))}if(this.N!=null){var e=this.N;this.N=null;e.dispose()}this.K.reset()};
g.J.uZ=function(){return!1};
g.J.getAdState=function(){return-1};
g.J.getOptions=function(){return Object.values(Gyq)};
g.J.uv=function(e,N){N=N===void 0?{}:N;switch(e){case "replaceUrlMacros":return e=N,e.url?(N=BU_(this.player),Object.assign(N,e.w21),e=g.Vx(e.url,N)):e=null,e;case "onAboutThisAdPopupClosed":this.Jp(N);break;case "executeCommand":e=N;e.command&&e.layoutId&&this.executeCommand(e);break;default:return null}};
g.J.Wi=function(e){var N;return!((N=this.J.J.p$)==null||!N.get().Wi(e))};
g.J.Jp=function(e){e.isMuted&&A00(kL(this.J).D3,kL(this.J).iL,e.layoutId);this.H1&&this.H1.Jp()};
g.J.executeCommand=function(e){kL(this.J).Y1.executeCommand(e.command,e.layoutId)};g.jM("yt.player.Application.create",g.hP.create);g.jM("yt.player.Application.createAlternate",g.hP.create);ucP(DL(),Rfw);var LCk=g.nM("ytcsi.tick");LCk&&LCk("pe");g.Po("ad",Nc5);g.b(g.Gd,g.x);g.Gd.prototype.start=function(e,N,y){this.config={from:e,ZF:N,duration:y,startTime:(0,g.iC)()};this.next()};
g.Gd.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.Gd.prototype.next=function(){if(this.config){var e=this.config,N=e.from,y=e.ZF,w=e.duration;e=e.startTime;var E=(0,g.iC)()-e;e=this.J;w=HKn(e,E/w);if(w==0)e=e.G;else if(w==1)e=e.U;else{E=C9(e.G,e.L,w);var A=C9(e.L,e.Z,w);e=C9(e.Z,e.U,w);E=C9(E,A,w);A=C9(A,e,w);e=C9(E,A,w)}e=g.Ja(e,0,1);this.callback(N+(y-N)*e);e<1&&this.delay.start()}};g.b(g.Uy,g.W);g.J=g.Uy.prototype;g.J.hasSuggestions=function(){return this.suggestionData.length>0};
g.J.zB=function(){this.N&&this.scrollTo(this.scrollPosition-this.containerWidth)};
g.J.show=function(){g.W.prototype.show.call(this);$j5(this)};
g.J.cN=function(){this.N&&this.scrollTo(this.scrollPosition+this.containerWidth)};
g.J.bz=function(){this.I9(this.api.Fz().getPlayerSize())};
g.J.I9=function(e){var N=this.api.isEmbedsShortsMode()?.5625:16/9,y=this.api.Nr();e=e.width-(y?112:58);y=Math.ceil(e/(y?320:192));var w=(e-y*8)/y;N=Math.floor(w/N);for(var E=g.c(this.J),A=E.next();!A.done;A=E.next())A=A.value.hW("ytp-suggestion-image"),A.style.width=w+"px",A.style.height=N+"px";this.suggestions.element.style.height=N+"px";this.j=w;this.U=N;this.containerWidth=e;this.columns=y;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Le(this)};
g.J.onVideoDataChange=function(){var e=this.api.X(),N=this.api.getVideoData();this.Z=N.hs?!1:e.j;this.suggestionData=N.suggestions?g.CG(N.suggestions,function(y){return y&&!y.playlistId}):[];
M_9(this);N.hs?this.title.update({title:g.SO("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:N.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})};
g.J.scrollTo=function(e){e=g.Ja(e,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.G.start(this.scrollPosition,e,1E3);this.scrollPosition=e;g.Le(this);$j5(this)};})(_yt_player);
";s:5:"error";s:0:"";s:4:"info";O:13:"Curl\CurlInfo":1:{s:7:"*info";a:26:{s:3:"url";s:73:"https://www.youtube.com/s/player/af7f576f/player_ias.vflset/en_US/base.js";s:12:"content_type";s:15:"text/javascript";s:9:"http_code";i:200;s:11:"header_size";i:690;s:12:"request_size";i:496;s:8:"filetime";i:-1;s:17:"ssl_verify_result";i:0;s:14:"redirect_count";i:0;s:10:"total_time";d:0.628804;s:15:"namelookup_time";d:0.046014;s:12:"connect_time";d:0.084483;s:16:"pretransfer_time";d:0.14336;s:11:"size_upload";d:0;s:13:"size_download";d:820751;s:14:"speed_download";d:1305257;s:12:"speed_upload";d:0;s:23:"download_content_length";d:820751;s:21:"upload_content_length";d:0;s:18:"starttransfer_time";d:0.183734;s:13:"redirect_time";d:0;s:12:"redirect_url";s:0:"";s:10:"primary_ip";s:15:"142.250.198.206";s:8:"certinfo";a:0:{}s:12:"primary_port";i:443;s:8:"local_ip";s:14:"45.252.249.168";s:10:"local_port";i:57196;}}}

ZeroDay Forums Mini